D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
usr
/
share
/
grafana
/
public
/
lib
/
monaco
/
min
/
vs
/
editor
/
Filename :
editor.main.js
back
Copy
/*!----------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.0(4b8a47f3570a4a05ace9d00ae0df044b55befcd5) * Released under the MIT license * https://github.com/microsoft/vscode/blob/main/LICENSE.txt *-----------------------------------------------------------*/(function(){var oe=["exports","require","vs/base/common/lifecycle","vs/editor/common/core/range","vs/nls","vs/nls!vs/editor/editor.main","vs/base/common/event","vs/base/browser/dom","vs/base/common/strings","vs/platform/instantiation/common/instantiation","vs/base/common/async","vs/editor/common/core/position","vs/editor/browser/editorExtensions","vs/css!vs/editor/editor.main","vs/base/common/errors","vs/platform/theme/common/themeService","vs/platform/contextkey/common/contextkey","vs/base/common/platform","vs/base/common/arrays","vs/base/common/types","vs/editor/common/services/languageFeatures","vs/base/common/cancellation","vs/base/common/uri","vs/editor/common/core/selection","vs/editor/common/editorContextKeys","vs/platform/theme/common/colorRegistry","vs/platform/commands/common/commands","vs/base/common/codicons","vs/editor/common/languages","vs/editor/browser/services/codeEditorService","vs/platform/configuration/common/configuration","vs/base/common/color","vs/editor/common/languages/languageConfigurationRegistry","vs/base/browser/fastDomNode","vs/platform/registry/common/platform","vs/editor/common/model/textModel","vs/editor/common/config/editorOptions","vs/editor/common/languages/language","vs/platform/notification/common/notification","vs/platform/actions/common/actions","vs/base/common/objects","vs/base/browser/browser","vs/base/common/actions","vs/base/common/resources","vs/platform/keybinding/common/keybinding","vs/platform/opener/common/opener","vs/editor/common/model","vs/editor/browser/view/viewPart","vs/base/browser/keyboardEvent","vs/base/browser/ui/aria/aria","vs/editor/common/services/model","vs/base/common/map","vs/base/common/network","vs/platform/instantiation/common/extensions","vs/editor/common/core/editorColorRegistry","vs/base/common/iterator","vs/platform/theme/common/theme","vs/base/common/stopwatch","vs/editor/common/services/resolverService","vs/base/common/keyCodes","vs/editor/common/core/editOperation","vs/editor/common/cursorCommon","vs/base/browser/touch","vs/base/common/filters","vs/base/common/htmlContent","vs/editor/browser/config/domFontInfo","vs/editor/common/core/cursorColumns","vs/base/browser/mouseEvent","vs/base/browser/ui/widget","vs/platform/log/common/log","vs/editor/common/services/languageFeatureDebounce","vs/platform/progress/common/progress","vs/editor/common/languages/modesRegistry","vs/base/common/linkedList","vs/editor/common/viewModel","vs/base/browser/ui/scrollbar/scrollableElement","vs/editor/common/standaloneStrings","vs/platform/accessibility/common/accessibility","vs/platform/contextview/browser/contextView","vs/platform/storage/common/storage","vs/platform/theme/common/iconRegistry","vs/base/common/severity","vs/editor/common/tokens/lineTokens","vs/base/browser/ui/actionbar/actionbar","vs/platform/markers/common/markers","vs/platform/quickinput/common/quickInput","vs/platform/telemetry/common/telemetry","vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/length","vs/editor/contrib/hover/browser/hoverTypes","vs/editor/contrib/snippet/browser/snippetParser","vs/base/common/path","vs/editor/common/core/stringBuilder","vs/editor/common/services/editorWorker","vs/platform/clipboard/common/clipboardService","vs/platform/configuration/common/configurationRegistry","vs/editor/contrib/editorState/browser/editorState","vs/base/common/functional","vs/base/common/mime","vs/editor/common/languages/languageConfiguration","vs/editor/common/textModelEvents","vs/base/browser/event","vs/platform/keybinding/common/keybindingsRegistry","vs/editor/contrib/suggest/browser/suggest","vs/base/common/decorators","vs/base/common/keybindings","vs/base/common/hash","vs/base/common/iconLabels","vs/editor/common/core/characterClassifier","vs/editor/common/commands/replaceCommand","vs/editor/common/encodedTokenAttributes","vs/editor/common/languages/supports","vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/smallImmutableSet","vs/editor/browser/view/dynamicViewOverlay","vs/base/browser/ui/list/listWidget","vs/editor/common/viewLayout/viewLineRenderer","vs/editor/standalone/common/standaloneTheme","vs/platform/layout/browser/layoutService","vs/editor/contrib/markdownRenderer/browser/markdownRenderer","vs/platform/quickinput/common/quickAccess","vs/editor/contrib/peekView/browser/peekView","vs/editor/contrib/snippet/browser/snippetController2","vs/base/browser/ui/tree/tree","vs/base/common/buffer","vs/base/browser/dnd","vs/base/common/numbers","vs/editor/browser/view/renderingContext","vs/editor/common/core/eolCounter","vs/editor/common/core/wordCharacterClassifier","vs/editor/common/core/wordHelper","vs/editor/common/viewEventHandler","vs/editor/common/viewLayout/lineDecorations","vs/editor/contrib/codeAction/browser/types","vs/base/browser/globalPointerMoveMonitor","vs/base/browser/ui/actionbar/actionViewItems","vs/base/browser/ui/iconLabel/iconLabels","vs/base/browser/ui/sash/sash","vs/editor/common/languages/nullTokenize","vs/editor/contrib/gotoSymbol/browser/referencesModel","vs/editor/browser/services/bulkEditService","vs/platform/dialogs/common/dialogs","vs/platform/label/common/label","vs/editor/browser/editorDom","vs/platform/theme/common/styler","vs/editor/contrib/message/browser/messageController","vs/base/common/idGenerator","vs/base/common/lazy","vs/base/common/range","vs/base/common/diff/diff","vs/base/common/uint","vs/base/browser/ui/codicons/codiconStyles","vs/base/browser/ui/mouseCursor/mouseCursor","vs/css!vs/base/parts/quickinput/browser/media/quickInput","vs/editor/browser/stableEditorScroll","vs/editor/common/core/textModelDefaults","vs/editor/common/editorCommon","vs/editor/browser/editorBrowser","vs/editor/common/cursor/cursorWordOperations","vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/ast","vs/editor/common/model/textModelSearch","vs/editor/common/standalone/standaloneEnums","vs/editor/contrib/folding/browser/foldingRanges","vs/base/common/scrollable","vs/base/browser/ui/toggle/toggle","vs/base/browser/ui/tree/abstractTree","vs/editor/common/config/editorZoom","vs/editor/contrib/inlineCompletions/browser/ghostText","vs/editor/common/services/textResourceConfiguration","vs/platform/instantiation/common/serviceCollection","vs/editor/contrib/documentSymbols/browser/outlineModel","vs/editor/browser/coreCommands","vs/editor/contrib/codeAction/browser/codeAction","vs/platform/list/browser/listService","vs/platform/undoRedo/common/undoRedo","vs/editor/browser/widget/codeEditorWidget","vs/editor/browser/widget/embeddedCodeEditorWidget","vs/editor/contrib/find/browser/findModel","vs/platform/workspace/common/workspace","vs/base/common/assert","vs/base/common/dataTransfer","vs/editor/common/core/indentation","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/textModelGuides","vs/editor/browser/viewParts/glyphMargin/glyphMargin","vs/editor/common/viewEvents","vs/editor/contrib/inlineCompletions/browser/consts","vs/editor/contrib/inlineCompletions/browser/utils","vs/base/common/keybindingLabels","vs/base/common/extpath","vs/base/browser/canIUse","vs/base/browser/ui/tree/indexTreeModel","vs/base/browser/ui/tree/objectTreeModel","vs/base/common/marshalling","vs/base/browser/formattedTextRenderer","vs/base/browser/ui/iconLabel/iconLabel","vs/base/browser/ui/scrollbar/scrollbarArrow","vs/base/browser/ui/inputbox/inputBox","vs/base/browser/ui/list/listView","vs/editor/browser/controller/textAreaInput","vs/editor/browser/view/viewLayer","vs/editor/common/languages/supports/richEditBrackets","vs/editor/common/viewModelEventDispatcher","vs/editor/contrib/gotoSymbol/browser/link/clickLinkGesture","vs/editor/contrib/inlineCompletions/browser/inlineCompletionToGhostText","vs/editor/common/config/fontInfo","vs/platform/instantiation/common/descriptors","vs/editor/common/services/markerDecorations","vs/editor/contrib/parameterHints/browser/provideSignatureHelp","vs/platform/jsonschemas/common/jsonContributionRegistry","vs/editor/common/config/editorConfigurationSchema","vs/editor/common/languages/autoIndent","vs/editor/common/languages/enterAction","vs/editor/common/commands/shiftCommand","vs/editor/common/cursor/cursorTypeOperations","vs/editor/contrib/hover/browser/markdownHoverParticipant","vs/platform/actions/browser/menuEntryActionViewItem","vs/editor/contrib/gotoSymbol/browser/goToCommands","vs/editor/standalone/browser/standaloneServices","vs/base/browser/ui/scrollbar/scrollbarState","vs/base/common/cache","vs/base/common/uuid","vs/base/parts/quickinput/common/quickInput","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/editor/browser/view/viewUserInputEvents","vs/editor/browser/viewParts/minimap/minimapCharSheet","vs/editor/browser/controller/textAreaState","vs/editor/common/core/rgba","vs/editor/common/cursor/cursorAtomicMoveOperations","vs/editor/common/editorAction","vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/beforeEditPositionMapper","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/unicodeTextModelHighlighter","vs/editor/common/model/guidesTextModelPart","vs/editor/browser/viewParts/margin/margin","vs/editor/common/viewModel/overviewZoneManager","vs/editor/contrib/comment/browser/blockCommentCommand","vs/editor/contrib/format/browser/formattingEdit","vs/editor/contrib/indentation/browser/indentUtils","vs/editor/contrib/smartSelect/browser/bracketSelections","vs/editor/contrib/suggest/browser/completionModel","vs/editor/contrib/suggest/browser/wordDistance","vs/editor/standalone/common/monarch/monarchCommon","vs/base/common/glob","vs/base/browser/ui/contextview/contextview","vs/base/browser/ui/countBadge/countBadge","vs/base/browser/ui/iconLabel/iconLabelHover","vs/base/browser/ui/highlightedlabel/highlightedLabel","vs/base/browser/ui/resizable/resizable","vs/base/browser/ui/scrollbar/abstractScrollbar","vs/base/browser/ui/hover/hoverWidget","vs/base/browser/ui/splitview/splitview","vs/base/browser/ui/findinput/findInputToggles","vs/base/browser/ui/findinput/findInput","vs/base/browser/ui/tree/objectTree","vs/base/common/worker/simpleWorker","vs/base/parts/quickinput/browser/quickInputUtils","vs/editor/browser/config/elementSizeObserver","vs/editor/browser/config/tabFocus","vs/editor/browser/widget/diffNavigator","vs/editor/common/core/textChange","vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBuffer","vs/editor/common/languages/textToHtmlTokenizer","vs/editor/common/services/editorBaseApi","vs/editor/common/viewModel/minimapTokensColorTracker","vs/editor/contrib/hover/browser/hoverOperation","vs/editor/contrib/inlayHints/browser/inlayHints","vs/editor/browser/config/fontMeasurements","vs/editor/common/viewModel/viewModelDecorations","vs/editor/common/model/editStack","vs/platform/files/common/files","vs/editor/common/services/getSemanticTokens","vs/editor/contrib/codelens/browser/codelens","vs/editor/contrib/colorPicker/browser/color","vs/editor/standalone/common/monarch/monarchLexer","vs/platform/configuration/common/configurationModels","vs/platform/contextkey/common/contextkeys","vs/platform/keybinding/common/resolvedKeybindingItem","vs/editor/standalone/browser/standaloneLayoutService","vs/editor/browser/dnd","vs/editor/browser/services/editorWorkerService","vs/editor/common/cursor/cursor","vs/editor/contrib/suggest/browser/suggestWidgetDetails","vs/platform/history/browser/contextScopedHistoryWidget","vs/editor/contrib/suggest/browser/suggestMemory","vs/editor/browser/viewParts/lines/viewLine","vs/editor/browser/controller/mouseTarget","vs/editor/browser/viewParts/lineNumbers/lineNumbers","vs/editor/common/services/semanticTokensProviderStyling","vs/editor/contrib/quickAccess/browser/editorNavigationQuickAccess","vs/editor/contrib/symbolIcons/browser/symbolIcons","vs/editor/standalone/browser/standaloneCodeEditorService","vs/editor/contrib/codeAction/browser/codeActionMenu","vs/editor/contrib/format/browser/format","vs/editor/contrib/gotoSymbol/browser/goToSymbol","vs/editor/contrib/hover/browser/getHover","vs/editor/contrib/codeAction/browser/codeActionCommands","vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode","vs/editor/contrib/wordOperations/browser/wordOperations","vs/editor/standalone/browser/standaloneThemeService","vs/editor/common/services/modelService","vs/editor/browser/widget/diffEditorWidget","vs/editor/contrib/colorPicker/browser/colorDetector","vs/editor/contrib/find/browser/findController","vs/editor/contrib/gotoError/browser/gotoError","vs/editor/contrib/gotoSymbol/browser/peek/referencesController","vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition","vs/editor/contrib/hover/browser/hover","vs/editor/contrib/inlayHints/browser/inlayHintsController","vs/editor/contrib/snippet/browser/snippetSession","vs/editor/contrib/inlineCompletions/browser/inlineCompletionsModel","vs/editor/contrib/suggest/browser/suggestController","vs/editor/contrib/inlineCompletions/browser/ghostTextController","vs/platform/workspace/common/workspaceTrust","vs/base/browser/iframe","vs/base/browser/ui/list/list","vs/base/browser/ui/list/splice","vs/base/common/collections","vs/base/common/diff/diffChange","vs/base/common/marked/marked","vs/base/common/navigator","vs/base/common/history","vs/base/browser/ui/list/rangeMap","vs/base/common/search","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/hover","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/splitview/splitview","vs/css!vs/base/browser/ui/table/table","vs/css!vs/base/browser/ui/toggle/toggle","vs/css!vs/base/browser/ui/tree/media/tree","vs/css!vs/editor/browser/controller/textAreaHandler","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/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/widget/media/diffEditor","vs/css!vs/editor/browser/widget/media/diffReview","vs/css!vs/editor/browser/widget/media/editor","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/codeAction/browser/media/action","vs/css!vs/editor/contrib/codelens/browser/codelensWidget","vs/css!vs/editor/contrib/colorPicker/browser/colorPicker","vs/css!vs/editor/contrib/dnd/browser/dnd","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/inlineCompletions/browser/ghostText","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/rename/browser/renameInputField","vs/css!vs/editor/contrib/snippet/browser/snippetSession","vs/css!vs/editor/contrib/suggest/browser/media/suggest","vs/css!vs/editor/contrib/unicodeHighlighter/browser/bannerController","vs/css!vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter","vs/css!vs/editor/contrib/zoneWidget/browser/zoneWidget","vs/css!vs/editor/standalone/browser/accessibilityHelp/accessibilityHelp","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/editor/browser/config/charWidthReader","vs/editor/browser/config/migrateOptions","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/common/commands/trimTrailingWhitespaceCommand","vs/editor/common/commands/surroundSelectionCommand","vs/editor/common/cursor/cursorContext","vs/editor/common/diff/diffComputer","vs/editor/common/editorTheme","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/languageBracketsConfiguration","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/indentationGuesser","vs/editor/common/model/intervalTree","vs/editor/common/model/pieceTreeTextBuffer/rbTreeBase","vs/editor/common/model/mirrorTextModel","vs/editor/common/textModelBracketPairs","vs/editor/common/tokens/contiguousMultilineTokens","vs/editor/common/tokens/contiguousMultilineTokensBuilder","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/overlayWidgets/overlayWidgets","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/modelLineProjection","vs/editor/common/viewModel/monospaceLineBreaksComputer","vs/editor/browser/viewParts/overviewRuler/overviewRuler","vs/editor/common/viewModel/viewContext","vs/editor/contrib/caretOperations/browser/moveCaretCommand","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/indentRangeProvider","vs/editor/contrib/folding/browser/syntaxRangeProvider","vs/editor/contrib/inPlaceReplace/browser/inPlaceReplaceCommand","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/nls!vs/base/browser/ui/actionbar/actionViewItems","vs/nls!vs/base/browser/ui/findinput/findInput","vs/nls!vs/base/browser/ui/findinput/findInputToggles","vs/nls!vs/base/browser/ui/findinput/replaceInput","vs/nls!vs/base/browser/ui/iconLabel/iconLabelHover","vs/nls!vs/base/browser/ui/inputbox/inputBox","vs/nls!vs/base/browser/ui/keybindingLabel/keybindingLabel","vs/nls!vs/base/browser/ui/tree/abstractTree","vs/nls!vs/base/common/actions","vs/nls!vs/base/common/errorMessage","vs/base/common/errorMessage","vs/nls!vs/base/common/keybindingLabels","vs/nls!vs/base/common/platform","vs/base/common/process","vs/base/common/fuzzyScorer","vs/base/common/labels","vs/base/browser/ui/scrollbar/scrollbarVisibilityController","vs/base/browser/ui/tree/compressedObjectTreeModel","vs/base/common/comparers","vs/base/browser/dompurify/dompurify","vs/base/browser/ui/dropdown/dropdown","vs/base/browser/ui/dropdown/dropdownActionViewItem","vs/base/browser/ui/button/button","vs/base/browser/ui/keybindingLabel/keybindingLabel","vs/base/browser/ui/list/rowCache","vs/base/browser/ui/progressbar/progressbar","vs/base/browser/ui/scrollbar/horizontalScrollbar","vs/base/browser/ui/scrollbar/verticalScrollbar","vs/base/browser/ui/list/listPaging","vs/base/browser/ui/menu/menu","vs/base/browser/ui/table/tableWidget","vs/base/browser/ui/findinput/replaceInput","vs/base/browser/ui/tree/dataTree","vs/base/browser/ui/tree/asyncDataTree","vs/base/browser/markdownRenderer","vs/base/browser/defaultWorkerFactory","vs/base/parts/quickinput/browser/quickInputBox","vs/base/parts/storage/common/storage","vs/editor/browser/viewParts/contentWidgets/contentWidgets","vs/editor/browser/view/domLineBreaksComputer","vs/editor/browser/view/viewOverlays","vs/editor/common/languageSelector","vs/editor/common/languageFeatureRegistry","vs/editor/common/languages/supports/electricCharacter","vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/bracketPairsTree","vs/editor/common/model/bracketPairsTextModelPart/bracketPairsImpl","vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBufferBuilder","vs/editor/common/services/semanticTokensDto","vs/editor/common/tokenizationRegistry","vs/editor/common/model/textModelTokens","vs/editor/common/model/tokenizationTextModelPart","vs/editor/common/services/editorSimpleWorker","vs/editor/common/viewLayout/viewLayout","vs/editor/contrib/colorPicker/browser/colorPickerModel","vs/editor/contrib/folding/browser/foldingModel","vs/editor/contrib/folding/browser/hiddenRangeModel","vs/nls!vs/base/parts/quickinput/browser/quickInput","vs/nls!vs/base/parts/quickinput/browser/quickInputList","vs/base/parts/quickinput/browser/quickInputList","vs/base/parts/quickinput/browser/quickInput","vs/nls!vs/editor/browser/controller/textAreaHandler","vs/nls!vs/editor/browser/coreCommands","vs/nls!vs/editor/browser/editorExtensions","vs/nls!vs/editor/browser/widget/codeEditorWidget","vs/nls!vs/editor/browser/widget/diffEditorWidget","vs/nls!vs/editor/browser/widget/diffReview","vs/nls!vs/editor/browser/widget/inlineDiffMargin","vs/editor/browser/widget/inlineDiffMargin","vs/nls!vs/editor/common/config/editorConfigurationSchema","vs/nls!vs/editor/common/config/editorOptions","vs/editor/browser/viewParts/viewCursors/viewCursor","vs/nls!vs/editor/common/core/editorColorRegistry","vs/nls!vs/editor/common/editorContextKeys","vs/nls!vs/editor/common/languages/modesRegistry","vs/nls!vs/editor/common/model/editStack","vs/nls!vs/editor/common/standaloneStrings","vs/nls!vs/editor/contrib/anchorSelect/browser/anchorSelect","vs/nls!vs/editor/contrib/bracketMatching/browser/bracketMatching","vs/nls!vs/editor/contrib/caretOperations/browser/caretOperations","vs/nls!vs/editor/contrib/caretOperations/browser/transpose","vs/nls!vs/editor/contrib/clipboard/browser/clipboard","vs/nls!vs/editor/contrib/codeAction/browser/codeActionCommands","vs/nls!vs/editor/contrib/codeAction/browser/codeActionMenu","vs/nls!vs/editor/contrib/codeAction/browser/codeActionWidgetContribution","vs/nls!vs/editor/contrib/codeAction/browser/lightBulbWidget","vs/nls!vs/editor/contrib/codelens/browser/codelensController","vs/nls!vs/editor/contrib/colorPicker/browser/colorPickerWidget","vs/nls!vs/editor/contrib/comment/browser/comment","vs/nls!vs/editor/contrib/contextmenu/browser/contextmenu","vs/nls!vs/editor/contrib/copyPaste/browser/copyPasteContribution","vs/nls!vs/editor/contrib/cursorUndo/browser/cursorUndo","vs/nls!vs/editor/contrib/dropIntoEditor/browser/dropIntoEditorContribution","vs/nls!vs/editor/contrib/editorState/browser/keybindingCancellation","vs/nls!vs/editor/contrib/find/browser/findController","vs/nls!vs/editor/contrib/find/browser/findWidget","vs/nls!vs/editor/contrib/folding/browser/folding","vs/nls!vs/editor/contrib/folding/browser/foldingDecorations","vs/nls!vs/editor/contrib/fontZoom/browser/fontZoom","vs/nls!vs/editor/contrib/format/browser/format","vs/nls!vs/editor/contrib/format/browser/formatActions","vs/nls!vs/editor/contrib/gotoError/browser/gotoError","vs/nls!vs/editor/contrib/gotoError/browser/gotoErrorWidget","vs/nls!vs/editor/contrib/gotoSymbol/browser/goToCommands","vs/nls!vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition","vs/nls!vs/editor/contrib/gotoSymbol/browser/peek/referencesController","vs/nls!vs/editor/contrib/gotoSymbol/browser/peek/referencesTree","vs/nls!vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget","vs/nls!vs/editor/contrib/gotoSymbol/browser/referencesModel","vs/nls!vs/editor/contrib/gotoSymbol/browser/symbolNavigation","vs/nls!vs/editor/contrib/hover/browser/hover","vs/nls!vs/editor/contrib/hover/browser/markdownHoverParticipant","vs/nls!vs/editor/contrib/hover/browser/markerHoverParticipant","vs/nls!vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace","vs/nls!vs/editor/contrib/indentation/browser/indentation","vs/nls!vs/editor/contrib/inlayHints/browser/inlayHintsHover","vs/nls!vs/editor/contrib/inlineCompletions/browser/ghostTextController","vs/nls!vs/editor/contrib/inlineCompletions/browser/ghostTextHoverParticipant","vs/nls!vs/editor/contrib/lineSelection/browser/lineSelection","vs/nls!vs/editor/contrib/linesOperations/browser/linesOperations","vs/nls!vs/editor/contrib/linkedEditing/browser/linkedEditing","vs/nls!vs/editor/contrib/links/browser/links","vs/nls!vs/editor/contrib/message/browser/messageController","vs/nls!vs/editor/contrib/multicursor/browser/multicursor","vs/nls!vs/editor/contrib/parameterHints/browser/parameterHints","vs/nls!vs/editor/contrib/parameterHints/browser/parameterHintsWidget","vs/nls!vs/editor/contrib/peekView/browser/peekView","vs/nls!vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess","vs/nls!vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess","vs/nls!vs/editor/contrib/readOnlyMessage/browser/contribution","vs/nls!vs/editor/contrib/rename/browser/rename","vs/nls!vs/editor/contrib/rename/browser/renameInputField","vs/nls!vs/editor/contrib/smartSelect/browser/smartSelect","vs/nls!vs/editor/contrib/snippet/browser/snippetController2","vs/nls!vs/editor/contrib/snippet/browser/snippetVariables","vs/nls!vs/editor/contrib/suggest/browser/suggest","vs/nls!vs/editor/contrib/suggest/browser/suggestController","vs/nls!vs/editor/contrib/suggest/browser/suggestWidget","vs/nls!vs/editor/contrib/suggest/browser/suggestWidgetDetails","vs/nls!vs/editor/contrib/suggest/browser/suggestWidgetRenderer","vs/nls!vs/editor/contrib/suggest/browser/suggestWidgetStatus","vs/nls!vs/editor/contrib/symbolIcons/browser/symbolIcons","vs/nls!vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode","vs/nls!vs/editor/contrib/tokenization/browser/tokenization","vs/nls!vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter","vs/nls!vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators","vs/nls!vs/editor/contrib/wordHighlighter/browser/wordHighlighter","vs/nls!vs/editor/contrib/wordOperations/browser/wordOperations","vs/nls!vs/platform/actions/browser/menuEntryActionViewItem","vs/nls!vs/platform/actions/common/menuService","vs/nls!vs/platform/configuration/common/configurationRegistry","vs/nls!vs/platform/contextkey/browser/contextKeyService","vs/nls!vs/platform/contextkey/common/contextkeys","vs/nls!vs/platform/history/browser/contextScopedHistoryWidget","vs/nls!vs/platform/keybinding/common/abstractKeybindingService","vs/nls!vs/platform/list/browser/listService","vs/nls!vs/platform/markers/common/markers","vs/nls!vs/platform/quickinput/browser/commandsQuickAccess","vs/nls!vs/platform/quickinput/browser/helpQuickAccess","vs/nls!vs/platform/theme/common/colorRegistry","vs/nls!vs/platform/theme/common/iconRegistry","vs/nls!vs/platform/undoRedo/common/undoRedoService","vs/nls!vs/platform/workspace/common/workspace","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/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/abstractKeybindingService","vs/platform/keybinding/common/baseResolvedKeybinding","vs/platform/keybinding/common/keybindingResolver","vs/platform/keybinding/common/usLayoutResolvedKeybinding","vs/platform/accessibility/browser/accessibilityService","vs/platform/contextview/browser/contextViewService","vs/platform/clipboard/browser/clipboardService","vs/editor/contrib/gotoError/browser/markerNavigationService","vs/platform/markers/common/markerService","vs/editor/browser/services/openerService","vs/editor/contrib/documentSymbols/browser/documentSymbols","vs/platform/quickinput/browser/pickerQuickAccess","vs/platform/dnd/browser/dnd","vs/editor/browser/services/webWorker","vs/editor/common/services/getIconClasses","vs/editor/common/services/languagesAssociations","vs/editor/common/services/languagesRegistry","vs/editor/common/services/languageService","vs/editor/contrib/codeAction/browser/codeActionWidgetContribution","vs/editor/contrib/linesOperations/browser/moveLinesCommand","vs/editor/contrib/hover/browser/marginHover","vs/platform/configuration/common/configurations","vs/platform/quickinput/browser/helpQuickAccess","vs/editor/standalone/browser/quickAccess/standaloneHelpQuickAccess","vs/platform/quickinput/browser/quickAccess","vs/editor/contrib/codelens/browser/codeLensCache","vs/platform/quickinput/browser/commandsQuickAccess","vs/editor/contrib/quickAccess/browser/commandsQuickAccess","vs/platform/contextview/browser/contextMenuHandler","vs/editor/browser/controller/mouseHandler","vs/editor/browser/controller/pointerHandler","vs/editor/browser/viewParts/lines/viewLines","vs/editor/browser/services/abstractCodeEditorService","vs/editor/browser/viewParts/editorScrollbar/editorScrollbar","vs/editor/browser/viewParts/minimap/minimap","vs/editor/browser/viewParts/scrollDecoration/scrollDecoration","vs/editor/browser/viewParts/selections/selections","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/rulers/rulers","vs/editor/browser/viewParts/viewCursors/viewCursors","vs/editor/common/model/bracketPairsTextModelPart/colorizedBracketPairsDecorationProvider","vs/editor/common/services/markerDecorationsService","vs/editor/contrib/codeAction/browser/lightBulbWidget","vs/editor/contrib/colorPicker/browser/colorPickerWidget","vs/editor/contrib/gotoSymbol/browser/peek/referencesTree","vs/editor/contrib/inlineCompletions/browser/ghostTextWidget","vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess","vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess","vs/editor/contrib/rename/browser/renameInputField","vs/editor/standalone/common/themes","vs/editor/browser/services/markerDecorations","vs/editor/browser/view/viewController","vs/editor/browser/view","vs/editor/contrib/anchorSelect/browser/anchorSelect","vs/editor/contrib/caretOperations/browser/caretOperations","vs/editor/contrib/caretOperations/browser/transpose","vs/editor/contrib/clipboard/browser/clipboard","vs/editor/contrib/comment/browser/comment","vs/editor/contrib/contextmenu/browser/contextmenu","vs/editor/contrib/cursorUndo/browser/cursorUndo","vs/editor/contrib/editorState/browser/keybindingCancellation","vs/editor/contrib/codeAction/browser/codeActionModel","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/codeAction/browser/codeActionUi","vs/editor/contrib/codeAction/browser/codeActionContributions","vs/editor/contrib/readOnlyMessage/browser/contribution","vs/editor/contrib/rename/browser/rename","vs/editor/contrib/smartSelect/browser/smartSelect","vs/editor/contrib/stickyScroll/browser/stickyScroll","vs/editor/contrib/suggest/browser/suggestInlineCompletions","vs/editor/contrib/tokenization/browser/tokenization","vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators","vs/editor/contrib/wordPartOperations/browser/wordPartOperations","vs/editor/standalone/browser/accessibilityHelp/accessibilityHelp","vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard","vs/editor/standalone/browser/inspectTokens/inspectTokens","vs/editor/standalone/browser/quickAccess/standaloneCommandsQuickAccess","vs/editor/standalone/browser/quickAccess/standaloneGotoLineQuickAccess","vs/editor/standalone/browser/quickAccess/standaloneGotoSymbolQuickAccess","vs/editor/contrib/suggest/browser/suggestWidgetStatus","vs/platform/actions/common/menuService","vs/platform/contextview/browser/contextMenuService","vs/platform/opener/browser/link","vs/platform/quickinput/browser/quickInput","vs/editor/standalone/browser/quickInput/standaloneQuickInputService","vs/platform/severityIcon/common/severityIcon","vs/editor/browser/widget/diffReview","vs/editor/contrib/parameterHints/browser/parameterHintsWidget","vs/editor/contrib/parameterHints/browser/parameterHints","vs/editor/contrib/suggest/browser/suggestWidgetRenderer","vs/editor/contrib/unicodeHighlighter/browser/bannerController","vs/platform/theme/browser/iconsStyleSheet","vs/editor/standalone/browser/toggleHighContrast/toggleHighContrast","vs/editor/common/viewModel/viewModelLines","vs/editor/common/viewModel/viewModelImpl","vs/editor/contrib/bracketMatching/browser/bracketMatching","vs/editor/contrib/codelens/browser/codelensWidget","vs/editor/contrib/codelens/browser/codelensController","vs/editor/contrib/colorPicker/browser/colorHoverParticipant","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/folding/browser/foldingDecorations","vs/editor/contrib/folding/browser/folding","vs/editor/contrib/hover/browser/contentHover","vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace","vs/editor/contrib/linkedEditing/browser/linkedEditing","vs/editor/contrib/links/browser/links","vs/editor/contrib/multicursor/browser/multicursor","vs/editor/contrib/suggest/browser/suggestWidget","vs/editor/contrib/viewportSemanticTokens/browser/viewportSemanticTokens","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/colorPicker/browser/colorContributions","vs/editor/contrib/inlayHints/browser/inlayHintsLocations","vs/editor/contrib/inlayHints/browser/inlayHintsHover","vs/editor/contrib/inlayHints/browser/inlayHintsContribution","vs/editor/standalone/browser/referenceSearch/standaloneReferenceSearch","vs/platform/undoRedo/common/undoRedoService","vs/editor/contrib/snippet/browser/snippetVariables","vs/editor/contrib/copyPaste/browser/copyPasteController","vs/editor/contrib/copyPaste/browser/copyPasteContribution","vs/editor/contrib/dropIntoEditor/browser/dropIntoEditorContribution","vs/editor/contrib/suggest/browser/suggestModel","vs/editor/contrib/inlineCompletions/browser/suggestWidgetInlineCompletionProvider","vs/editor/contrib/inlineCompletions/browser/suggestWidgetPreviewModel","vs/editor/contrib/inlineCompletions/browser/ghostTextModel","vs/editor/contrib/inlineCompletions/browser/ghostTextHoverParticipant","vs/editor/contrib/inlineCompletions/browser/ghostText.contribution","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/edcore.main"],se=function(q){for(var e=[],y=0,v=q.length;y<v;y++)e[y]=oe[q[y]];return e};define(oe[785],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.load=void 0;function y(b,C,h,u){if(u=u||{},(u["vs/css"]||{}).disabled){h({});return}const n=C.toUrl(b+".css");v(b,n,()=>{h({})},i=>{typeof h.error=="function"&&h.error("Could not find "+n+".")})}e.load=y;function v(b,C,h,u){if(k(b,C)){h();return}D(b,C,h,u)}function k(b,C){const h=document.getElementsByTagName("link");for(let u=0,n=h.length;u<n;u++){const i=h[u].getAttribute("data-name"),t=h[u].getAttribute("href");if(i===b||t===C)return!0}return!1}function D(b,C,h,u){const n=document.createElement("link");n.setAttribute("rel","stylesheet"),n.setAttribute("type","text/css"),n.setAttribute("data-name",b),w(b,n,h,u),n.setAttribute("href",C),(document.head||document.getElementsByTagName("head")[0]).appendChild(n)}function w(b,C,h,u){const n=()=>{C.removeEventListener("load",i),C.removeEventListener("error",t)},i=o=>{n(),h()},t=o=>{n(),u(o)};C.addEventListener("load",i),C.addEventListener("error",t)}});var be=this&&this.__awaiter||function(q,e,y,v){function k(D){return D instanceof y?D:new y(function(w){w(D)})}return new(y||(y=Promise))(function(D,w){function b(u){try{h(v.next(u))}catch(n){w(n)}}function C(u){try{h(v.throw(u))}catch(n){w(n)}}function h(u){u.done?D(u.value):k(u.value).then(b,C)}h((v=v.apply(q,e||[])).next())})};define(oe[4],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.load=e.create=e.setPseudoTranslation=e.getConfiguredDefaultLocale=e.localize=void 0;let y=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;const v="i-default";function k(o,s){let d;return s.length===0?d=o:d=o.replace(/\{(\d+)\}/g,(l,a)=>{const r=a[0],c=s[r];let g=l;return typeof c=="string"?g=c:(typeof c=="number"||typeof c=="boolean"||c===void 0||c===null)&&(g=String(c)),g}),y&&(d="\uFF3B"+d.replace(/[aouei]/g,"$&$&")+"\uFF3D"),d}function D(o,s){let d=o[s];return d||(d=o["*"],d)?d:null}function w(o){return o.charAt(o.length-1)==="/"?o:o+"/"}function b(o,s,d){return be(this,void 0,void 0,function*(){const l=w(o)+w(s)+"vscode/"+w(d),a=yield fetch(l);if(a.ok)return yield a.json();throw new Error(`${a.status} - ${a.statusText}`)})}function C(o){return function(s,d){const l=Array.prototype.slice.call(arguments,2);return k(o[s],l)}}function h(o,s,...d){return k(s,d)}e.localize=h;function u(o){}e.getConfiguredDefaultLocale=u;function n(o){y=o}e.setPseudoTranslation=n;function i(o,s){var d;return{localize:C(s[o]),getConfiguredDefaultLocale:(d=s.getConfiguredDefaultLocale)!==null&&d!==void 0?d:l=>{}}}e.create=i;function t(o,s,d,l){var a;const r=(a=l["vs/nls"])!==null&&a!==void 0?a:{};if(!o||o.length===0)return d({localize:h,getConfiguredDefaultLocale:()=>{var p;return(p=r.availableLanguages)===null||p===void 0?void 0:p["*"]}});const c=r.availableLanguages?D(r.availableLanguages,o):null,g=c===null||c===v;let f=".nls";g||(f=f+"."+c);const _=p=>{Array.isArray(p)?p.localize=C(p):p.localize=C(p[o]),p.getConfiguredDefaultLocale=()=>{var m;return(m=r.availableLanguages)===null||m===void 0?void 0:m["*"]},d(p)};typeof r.loadBundle=="function"?r.loadBundle(o,c,(p,m)=>{p?s([o+".nls"],_):_(m)}):r.translationServiceUrl&&!g?be(this,void 0,void 0,function*(){var p;try{const m=yield b(r.translationServiceUrl,c,o);return _(m)}catch(m){if(!c.includes("-"))return console.error(m),s([o+".nls"],_);try{const S=c.split("-")[0],E=yield b(r.translationServiceUrl,S,o);return(p=r.availableLanguages)!==null&&p!==void 0||(r.availableLanguages={}),r.availableLanguages["*"]=S,_(E)}catch(S){return console.error(S),s([o+".nls"],_)}}}):s([o+f],_,p=>{if(f===".nls"){console.error("Failed trying to load default language strings",p);return}console.error(`Failed to load message bundle for language ${c}. Falling back to the default language:`,p),s([o+".nls"],_)})}e.load=t});/*! @license DOMPurify 2.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.1/LICENSE */function St(q){if(Array.isArray(q)){for(var e=0,y=Array(q.length);e<q.length;e++)y[e]=q[e];return y}else return Array.from(q)}var Vt=Object.hasOwnProperty,Bt=Object.setPrototypeOf,Ht=Object.isFrozen,Kt=Object.getPrototypeOf,ze=Object.getOwnPropertyDescriptor,bt=Object.freeze,Dt=Object.seal,wt=Object.create,At=typeof Reflect<"u"&&Reflect,It=At.apply,Mt=At.construct;It||(It=function(q,e,y){return q.apply(e,y)}),bt||(bt=function(q){return q}),Dt||(Dt=function(q){return q}),Mt||(Mt=function(q,e){return new(Function.prototype.bind.apply(q,[null].concat(St(e))))});var Wt=Ge(Array.prototype.forEach),Nt=Ge(Array.prototype.pop),vt=Ge(Array.prototype.push),We=Ge(String.prototype.toLowerCase),we=Ge(String.prototype.match),Ee=Ge(String.prototype.replace),ut=Ge(String.prototype.indexOf),Et=Ge(String.prototype.trim),Ze=Ge(RegExp.prototype.test),dt=ct(TypeError);function Ge(q){return function(e){for(var y=arguments.length,v=Array(y>1?y-1:0),k=1;k<y;k++)v[k-1]=arguments[k];return It(q,e,v)}}function ct(q){return function(){for(var e=arguments.length,y=Array(e),v=0;v<e;v++)y[v]=arguments[v];return Mt(q,y)}}function Xe(q,e){Bt&&Bt(q,null);for(var y=e.length;y--;){var v=e[y];if(typeof v=="string"){var k=We(v);k!==v&&(Ht(e)||(e[y]=k),v=k)}q[v]=!0}return q}function Rt(q){var e=wt(null),y=void 0;for(y in q)It(Vt,q,[y])&&(e[y]=q[y]);return e}function Tt(q,e){for(;q!==null;){var y=ze(q,e);if(y){if(y.get)return Ge(y.get);if(typeof y.value=="function")return Ge(y.value)}q=Kt(q)}function v(k){return console.warn("fallback value for",k),null}return v}var jt=bt(["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"]),Fe=bt(["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"]),ot=bt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Qe=bt(["animate","color-profile","cursor","discard","fedropshadow","feimage","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"]),st=bt(["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"]),mt=bt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Zt=bt(["#text"]),zt=bt(["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","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"]),ni=bt(["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","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"]),Fi=bt(["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"]),ci=bt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),_n=Dt(/\{\{[\s\S]*|[\s\S]*\}\}/gm),vn=Dt(/<%[\s\S]*|[\s\S]*%>/gm),Cn=Dt(/^data-[\-\w.\u00B7-\uFFFF]/),bn=Dt(/^aria-[\-\w]+$/),Sn=Dt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),yn=Dt(/^(?:\w+script|data):/i),wn=Dt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),oi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q};function qt(q){if(Array.isArray(q)){for(var e=0,y=Array(q.length);e<q.length;e++)y[e]=q[e];return y}else return Array.from(q)}var En=function(){return typeof window>"u"?null:window},Ln=function(q,e){if((typeof q>"u"?"undefined":oi(q))!=="object"||typeof q.createPolicy!="function")return null;var y=null,v="data-tt-policy-suffix";e.currentScript&&e.currentScript.hasAttribute(v)&&(y=e.currentScript.getAttribute(v));var k="dompurify"+(y?"#"+y:"");try{return q.createPolicy(k,{createHTML:function(D){return D}})}catch{return console.warn("TrustedTypes policy "+k+" could not be created."),null}};function Bi(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:En(),e=function(xe){return Bi(xe)};if(e.version="2.3.1",e.removed=[],!q||!q.document||q.document.nodeType!==9)return e.isSupported=!1,e;var y=q.document,v=q.document,k=q.DocumentFragment,D=q.HTMLTemplateElement,w=q.Node,b=q.Element,C=q.NodeFilter,h=q.NamedNodeMap,u=h===void 0?q.NamedNodeMap||q.MozNamedAttrMap:h,n=q.Text,i=q.Comment,t=q.DOMParser,o=q.trustedTypes,s=b.prototype,d=Tt(s,"cloneNode"),l=Tt(s,"nextSibling"),a=Tt(s,"childNodes"),r=Tt(s,"parentNode");if(typeof D=="function"){var c=v.createElement("template");c.content&&c.content.ownerDocument&&(v=c.content.ownerDocument)}var g=Ln(o,y),f=g&&le?g.createHTML(""):"",_=v,p=_.implementation,m=_.createNodeIterator,S=_.createDocumentFragment,E=_.getElementsByTagName,L=y.importNode,N={};try{N=Rt(v).documentMode?v.documentMode:{}}catch{}var I={};e.isSupported=typeof r=="function"&&p&&typeof p.createHTMLDocument<"u"&&N!==9;var R=_n,F=vn,O=Cn,x=bn,M=yn,P=wn,A=Sn,B=null,K=Xe({},[].concat(qt(jt),qt(Fe),qt(ot),qt(st),qt(Zt))),T=null,ee=Xe({},[].concat(qt(zt),qt(ni),qt(Fi),qt(ci))),J=null,$=null,j=!0,G=!0,te=!1,Z=!1,X=!1,ie=!1,H=!1,ae=!1,Y=!1,U=!0,le=!1,z=!0,Q=!0,W=!1,V={},ne=null,de=Xe({},["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"]),ce=null,ue=Xe({},["audio","video","img","source","image","track"]),me=null,_e=Xe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ye="http://www.w3.org/1998/Math/MathML",ke="http://www.w3.org/2000/svg",Te="http://www.w3.org/1999/xhtml",Me=Te,fe=!1,he=null,re=v.createElement("form"),ge=function(xe){he&&he===xe||((!xe||(typeof xe>"u"?"undefined":oi(xe))!=="object")&&(xe={}),xe=Rt(xe),B="ALLOWED_TAGS"in xe?Xe({},xe.ALLOWED_TAGS):K,T="ALLOWED_ATTR"in xe?Xe({},xe.ALLOWED_ATTR):ee,me="ADD_URI_SAFE_ATTR"in xe?Xe(Rt(_e),xe.ADD_URI_SAFE_ATTR):_e,ce="ADD_DATA_URI_TAGS"in xe?Xe(Rt(ue),xe.ADD_DATA_URI_TAGS):ue,ne="FORBID_CONTENTS"in xe?Xe({},xe.FORBID_CONTENTS):de,J="FORBID_TAGS"in xe?Xe({},xe.FORBID_TAGS):{},$="FORBID_ATTR"in xe?Xe({},xe.FORBID_ATTR):{},V="USE_PROFILES"in xe?xe.USE_PROFILES:!1,j=xe.ALLOW_ARIA_ATTR!==!1,G=xe.ALLOW_DATA_ATTR!==!1,te=xe.ALLOW_UNKNOWN_PROTOCOLS||!1,Z=xe.SAFE_FOR_TEMPLATES||!1,X=xe.WHOLE_DOCUMENT||!1,ae=xe.RETURN_DOM||!1,Y=xe.RETURN_DOM_FRAGMENT||!1,U=xe.RETURN_DOM_IMPORT!==!1,le=xe.RETURN_TRUSTED_TYPE||!1,H=xe.FORCE_BODY||!1,z=xe.SANITIZE_DOM!==!1,Q=xe.KEEP_CONTENT!==!1,W=xe.IN_PLACE||!1,A=xe.ALLOWED_URI_REGEXP||A,Me=xe.NAMESPACE||Te,Z&&(G=!1),Y&&(ae=!0),V&&(B=Xe({},[].concat(qt(Zt))),T=[],V.html===!0&&(Xe(B,jt),Xe(T,zt)),V.svg===!0&&(Xe(B,Fe),Xe(T,ni),Xe(T,ci)),V.svgFilters===!0&&(Xe(B,ot),Xe(T,ni),Xe(T,ci)),V.mathMl===!0&&(Xe(B,st),Xe(T,Fi),Xe(T,ci))),xe.ADD_TAGS&&(B===K&&(B=Rt(B)),Xe(B,xe.ADD_TAGS)),xe.ADD_ATTR&&(T===ee&&(T=Rt(T)),Xe(T,xe.ADD_ATTR)),xe.ADD_URI_SAFE_ATTR&&Xe(me,xe.ADD_URI_SAFE_ATTR),xe.FORBID_CONTENTS&&(ne===de&&(ne=Rt(ne)),Xe(ne,xe.FORBID_CONTENTS)),Q&&(B["#text"]=!0),X&&Xe(B,["html","head","body"]),B.table&&(Xe(B,["tbody"]),delete J.tbody),bt&&bt(xe),he=xe)},Se=Xe({},["mi","mo","mn","ms","mtext"]),Le=Xe({},["foreignobject","desc","title","annotation-xml"]),Ne=Xe({},Fe);Xe(Ne,ot),Xe(Ne,Qe);var Ae=Xe({},st);Xe(Ae,mt);var Pe=function(xe){var $e=r(xe);(!$e||!$e.tagName)&&($e={namespaceURI:Te,tagName:"template"});var He=We(xe.tagName),et=We($e.tagName);if(xe.namespaceURI===ke)return $e.namespaceURI===Te?He==="svg":$e.namespaceURI===ye?He==="svg"&&(et==="annotation-xml"||Se[et]):!!Ne[He];if(xe.namespaceURI===ye)return $e.namespaceURI===Te?He==="math":$e.namespaceURI===ke?He==="math"&&Le[et]:!!Ae[He];if(xe.namespaceURI===Te){if($e.namespaceURI===ke&&!Le[et]||$e.namespaceURI===ye&&!Se[et])return!1;var je=Xe({},["title","style","font","a","script"]);return!Ae[He]&&(je[He]||!Ne[He])}return!1},Ce=function(xe){vt(e.removed,{element:xe});try{xe.parentNode.removeChild(xe)}catch{try{xe.outerHTML=f}catch{xe.remove()}}},ve=function(xe,$e){try{vt(e.removed,{attribute:$e.getAttributeNode(xe),from:$e})}catch{vt(e.removed,{attribute:null,from:$e})}if($e.removeAttribute(xe),xe==="is"&&!T[xe])if(ae||Y)try{Ce($e)}catch{}else try{$e.setAttribute(xe,"")}catch{}},De=function(xe){var $e=void 0,He=void 0;if(H)xe="<remove></remove>"+xe;else{var et=we(xe,/^[\r\n\t ]+/);He=et&&et[0]}var je=g?g.createHTML(xe):xe;if(Me===Te)try{$e=new t().parseFromString(je,"text/html")}catch{}if(!$e||!$e.documentElement){$e=p.createDocument(Me,"template",null);try{$e.documentElement.innerHTML=fe?"":je}catch{}}var pt=$e.body||$e.documentElement;return xe&&He&&pt.insertBefore(v.createTextNode(He),pt.childNodes[0]||null),Me===Te?E.call($e,X?"html":"body")[0]:X?$e.documentElement:pt},Be=function(xe){return m.call(xe.ownerDocument||xe,xe,C.SHOW_ELEMENT|C.SHOW_COMMENT|C.SHOW_TEXT,null,!1)},Re=function(xe){return xe instanceof n||xe instanceof i?!1:typeof xe.nodeName!="string"||typeof xe.textContent!="string"||typeof xe.removeChild!="function"||!(xe.attributes instanceof u)||typeof xe.removeAttribute!="function"||typeof xe.setAttribute!="function"||typeof xe.namespaceURI!="string"||typeof xe.insertBefore!="function"},Ve=function(xe){return(typeof w>"u"?"undefined":oi(w))==="object"?xe instanceof w:xe&&(typeof xe>"u"?"undefined":oi(xe))==="object"&&typeof xe.nodeType=="number"&&typeof xe.nodeName=="string"},Ue=function(xe,$e,He){!I[xe]||Wt(I[xe],function(et){et.call(e,$e,He,he)})},Je=function(xe){var $e=void 0;if(Ue("beforeSanitizeElements",xe,null),Re(xe)||we(xe.nodeName,/[\u0080-\uFFFF]/))return Ce(xe),!0;var He=We(xe.nodeName);if(Ue("uponSanitizeElement",xe,{tagName:He,allowedTags:B}),!Ve(xe.firstElementChild)&&(!Ve(xe.content)||!Ve(xe.content.firstElementChild))&&Ze(/<[/\w]/g,xe.innerHTML)&&Ze(/<[/\w]/g,xe.textContent)||He==="select"&&Ze(/<template/i,xe.innerHTML))return Ce(xe),!0;if(!B[He]||J[He]){if(Q&&!ne[He]){var et=r(xe)||xe.parentNode,je=a(xe)||xe.childNodes;if(je&&et)for(var pt=je.length,it=pt-1;it>=0;--it)et.insertBefore(d(je[it],!0),l(xe))}return Ce(xe),!0}return xe instanceof b&&!Pe(xe)||(He==="noscript"||He==="noembed")&&Ze(/<\/no(script|embed)/i,xe.innerHTML)?(Ce(xe),!0):(Z&&xe.nodeType===3&&($e=xe.textContent,$e=Ee($e,R," "),$e=Ee($e,F," "),xe.textContent!==$e&&(vt(e.removed,{element:xe.cloneNode()}),xe.textContent=$e)),Ue("afterSanitizeElements",xe,null),!1)},rt=function(xe,$e,He){return!(z&&($e==="id"||$e==="name")&&(He in v||He in re)||!(G&&!$[$e]&&Ze(O,$e))&&!(j&&Ze(x,$e))&&(!T[$e]||$[$e]||!me[$e]&&!Ze(A,Ee(He,P,""))&&!(($e==="src"||$e==="xlink:href"||$e==="href")&&xe!=="script"&&ut(He,"data:")===0&&ce[xe])&&!(te&&!Ze(M,Ee(He,P,"")))&&He))},gt=function(xe){var $e=void 0,He=void 0,et=void 0,je=void 0;Ue("beforeSanitizeAttributes",xe,null);var pt=xe.attributes;if(pt){var it={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:T};for(je=pt.length;je--;){$e=pt[je];var Ct=$e,nt=Ct.name,ht=Ct.namespaceURI;if(He=Et($e.value),et=We(nt),it.attrName=et,it.attrValue=He,it.keepAttr=!0,it.forceKeepAttr=void 0,Ue("uponSanitizeAttribute",xe,it),He=it.attrValue,!it.forceKeepAttr&&(ve(nt,xe),!!it.keepAttr)){if(Ze(/\/>/i,He)){ve(nt,xe);continue}Z&&(He=Ee(He,R," "),He=Ee(He,F," "));var Ke=xe.nodeName.toLowerCase();if(rt(Ke,et,He))try{ht?xe.setAttributeNS(ht,nt,He):xe.setAttribute(nt,He),Nt(e.removed)}catch{}}}Ue("afterSanitizeAttributes",xe,null)}},ft=function xe($e){var He=void 0,et=Be($e);for(Ue("beforeSanitizeShadowDOM",$e,null);He=et.nextNode();)Ue("uponSanitizeShadowNode",He,null),!Je(He)&&(He.content instanceof k&&xe(He.content),gt(He));Ue("afterSanitizeShadowDOM",$e,null)};return e.sanitize=function(xe,$e){var He=void 0,et=void 0,je=void 0,pt=void 0,it=void 0;if(fe=!xe,fe&&(xe="<!-->"),typeof xe!="string"&&!Ve(xe)){if(typeof xe.toString!="function")throw dt("toString is not a function");if(xe=xe.toString(),typeof xe!="string")throw dt("dirty is not a string, aborting")}if(!e.isSupported){if(oi(q.toStaticHTML)==="object"||typeof q.toStaticHTML=="function"){if(typeof xe=="string")return q.toStaticHTML(xe);if(Ve(xe))return q.toStaticHTML(xe.outerHTML)}return xe}if(ie||ge($e),e.removed=[],typeof xe=="string"&&(W=!1),!W)if(xe instanceof w)He=De("<!---->"),et=He.ownerDocument.importNode(xe,!0),et.nodeType===1&&et.nodeName==="BODY"||et.nodeName==="HTML"?He=et:He.appendChild(et);else{if(!ae&&!Z&&!X&&xe.indexOf("<")===-1)return g&&le?g.createHTML(xe):xe;if(He=De(xe),!He)return ae?null:f}He&&H&&Ce(He.firstChild);for(var Ct=Be(W?xe:He);je=Ct.nextNode();)je.nodeType===3&&je===pt||Je(je)||(je.content instanceof k&&ft(je.content),gt(je),pt=je);if(pt=null,W)return xe;if(ae){if(Y)for(it=S.call(He.ownerDocument);He.firstChild;)it.appendChild(He.firstChild);else it=He;return U&&(it=L.call(y,it,!0)),it}var nt=X?He.outerHTML:He.innerHTML;return Z&&(nt=Ee(nt,R," "),nt=Ee(nt,F," ")),g&&le?g.createHTML(nt):nt},e.setConfig=function(xe){ge(xe),ie=!0},e.clearConfig=function(){he=null,ie=!1},e.isValidAttribute=function(xe,$e,He){he||ge({});var et=We(xe),je=We($e);return rt(et,je,He)},e.addHook=function(xe,$e){typeof $e=="function"&&(I[xe]=I[xe]||[],vt(I[xe],$e))},e.removeHook=function(xe){I[xe]&&Nt(I[xe])},e.removeHooks=function(xe){I[xe]&&(I[xe]=[])},e.removeAllHooks=function(){I={}},e}var Dn=Bi();define("vs/base/browser/dompurify/dompurify",function(){return Dn}),define(oe[33],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createFastDomNode=e.FastDomNode=void 0;class y{constructor(w){this.domNode=w,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(w){const b=v(w);this._maxWidth!==b&&(this._maxWidth=b,this.domNode.style.maxWidth=this._maxWidth)}setWidth(w){const b=v(w);this._width!==b&&(this._width=b,this.domNode.style.width=this._width)}setHeight(w){const b=v(w);this._height!==b&&(this._height=b,this.domNode.style.height=this._height)}setTop(w){const b=v(w);this._top!==b&&(this._top=b,this.domNode.style.top=this._top)}setLeft(w){const b=v(w);this._left!==b&&(this._left=b,this.domNode.style.left=this._left)}setBottom(w){const b=v(w);this._bottom!==b&&(this._bottom=b,this.domNode.style.bottom=this._bottom)}setRight(w){const b=v(w);this._right!==b&&(this._right=b,this.domNode.style.right=this._right)}setFontFamily(w){this._fontFamily!==w&&(this._fontFamily=w,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(w){this._fontWeight!==w&&(this._fontWeight=w,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(w){const b=v(w);this._fontSize!==b&&(this._fontSize=b,this.domNode.style.fontSize=this._fontSize)}setFontStyle(w){this._fontStyle!==w&&(this._fontStyle=w,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(w){this._fontFeatureSettings!==w&&(this._fontFeatureSettings=w,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setTextDecoration(w){this._textDecoration!==w&&(this._textDecoration=w,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(w){const b=v(w);this._lineHeight!==b&&(this._lineHeight=b,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(w){const b=v(w);this._letterSpacing!==b&&(this._letterSpacing=b,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(w){this._className!==w&&(this._className=w,this.domNode.className=this._className)}toggleClassName(w,b){this.domNode.classList.toggle(w,b),this._className=this.domNode.className}setDisplay(w){this._display!==w&&(this._display=w,this.domNode.style.display=this._display)}setPosition(w){this._position!==w&&(this._position=w,this.domNode.style.position=this._position)}setVisibility(w){this._visibility!==w&&(this._visibility=w,this.domNode.style.visibility=this._visibility)}setColor(w){this._color!==w&&(this._color=w,this.domNode.style.color=this._color)}setBackgroundColor(w){this._backgroundColor!==w&&(this._backgroundColor=w,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(w){this._layerHint!==w&&(this._layerHint=w,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(w){this._boxShadow!==w&&(this._boxShadow=w,this.domNode.style.boxShadow=w)}setContain(w){this._contain!==w&&(this._contain=w,this.domNode.style.contain=this._contain)}setAttribute(w,b){this.domNode.setAttribute(w,b)}removeAttribute(w){this.domNode.removeAttribute(w)}appendChild(w){this.domNode.appendChild(w.domNode)}removeChild(w){this.domNode.removeChild(w.domNode)}}e.FastDomNode=y;function v(D){return typeof D=="number"?`${D}px`:D}function k(D){return new y(D)}e.createFastDomNode=k}),define(oe[324],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IframeUtils=void 0;let y=!1,v=null;function k(w){if(!w.parent||w.parent===w)return null;try{const b=w.location,C=w.parent.location;if(b.origin!=="null"&&C.origin!=="null"&&b.origin!==C.origin)return y=!0,null}catch{return y=!0,null}return w.parent}class D{static getSameOriginWindowChain(){if(!v){v=[];let b=window,C;do C=k(b),C?v.push({window:b,iframeElement:b.frameElement||null}):v.push({window:b,iframeElement:null}),b=C;while(b)}return v.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(b,C){if(!C||b===C)return{top:0,left:0};let h=0,u=0;const n=this.getSameOriginWindowChain();for(const i of n){if(h+=i.window.scrollY,u+=i.window.scrollX,i.window===C||!i.iframeElement)break;const t=i.iframeElement.getBoundingClientRect();h+=t.top,u+=t.left}return{top:h,left:u}}}e.IframeUtils=D}),define(oe[325],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ListError=void 0;class y extends Error{constructor(k,D){super(`ListError [${k}] ${D}`)}}e.ListError=y}),define(oe[326],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CombinedSpliceable=void 0;class y{constructor(k){this.spliceables=k}splice(k,D,w){this.spliceables.forEach(b=>b.splice(k,D,w))}}e.CombinedSpliceable=y}),define(oe[221],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ScrollbarState=void 0;const y=20;class v{constructor(D,w,b,C,h,u){this._scrollbarSize=Math.round(w),this._oppositeScrollbarSize=Math.round(b),this._arrowSize=Math.round(D),this._visibleSize=C,this._scrollSize=h,this._scrollPosition=u,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new v(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(D){const w=Math.round(D);return this._visibleSize!==w?(this._visibleSize=w,this._refreshComputedValues(),!0):!1}setScrollSize(D){const w=Math.round(D);return this._scrollSize!==w?(this._scrollSize=w,this._refreshComputedValues(),!0):!1}setScrollPosition(D){const w=Math.round(D);return this._scrollPosition!==w?(this._scrollPosition=w,this._refreshComputedValues(),!0):!1}setScrollbarSize(D){this._scrollbarSize=Math.round(D)}setOppositeScrollbarSize(D){this._oppositeScrollbarSize=Math.round(D)}static _computeValues(D,w,b,C,h){const u=Math.max(0,b-D),n=Math.max(0,u-2*w),i=C>0&&C>b;if(!i)return{computedAvailableSize:Math.round(u),computedIsNeeded:i,computedSliderSize:Math.round(n),computedSliderRatio:0,computedSliderPosition:0};const t=Math.round(Math.max(y,Math.floor(b*n/C))),o=(n-t)/(C-b),s=h*o;return{computedAvailableSize:Math.round(u),computedIsNeeded:i,computedSliderSize:Math.round(t),computedSliderRatio:o,computedSliderPosition:Math.round(s)}}_refreshComputedValues(){const D=v._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=D.computedAvailableSize,this._computedIsNeeded=D.computedIsNeeded,this._computedSliderSize=D.computedSliderSize,this._computedSliderRatio=D.computedSliderRatio,this._computedSliderPosition=D.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(D){if(!this._computedIsNeeded)return 0;const w=D-this._arrowSize-this._computedSliderSize/2;return Math.round(w/this._computedSliderRatio)}getDesiredScrollPositionFromOffsetPaged(D){if(!this._computedIsNeeded)return 0;const w=D-this._arrowSize;let b=this._scrollPosition;return w<this._computedSliderPosition?b-=this._visibleSize:b+=this._visibleSize,b}getDesiredScrollPositionFromDelta(D){if(!this._computedIsNeeded)return 0;const w=this._computedSliderPosition+D;return Math.round(w/this._computedSliderRatio)}}e.ScrollbarState=v}),define(oe[121],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WeakMapper=e.TreeError=e.TreeMouseEventTarget=void 0;var y;(function(D){D[D.Unknown=0]="Unknown",D[D.Twistie=1]="Twistie",D[D.Element=2]="Element",D[D.Filter=3]="Filter"})(y=e.TreeMouseEventTarget||(e.TreeMouseEventTarget={}));class v extends Error{constructor(w,b){super(`TreeError [${w}] ${b}`)}}e.TreeError=v;class k{constructor(w){this.fn=w,this._map=new WeakMap}map(w){let b=this._map.get(w);return b||(b=this.fn(w),this._map.set(w,b)),b}}e.WeakMapper=k}),define(oe[18],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayQueue=e.findMinBy=e.findLastMaxBy=e.findMaxBy=e.numberComparator=e.compareBy=e.CompareResult=e.splice=e.insertInto=e.asArray=e.pushMany=e.pushToEnd=e.pushToStart=e.arrayInsert=e.range=e.firstOrDefault=e.lastIndex=e.findLast=e.distinct=e.isNonEmptyArray=e.isFalsyOrEmpty=e.coalesce=e.groupBy=e.quickSelect=e.findFirstInSorted=e.binarySearch2=e.binarySearch=e.removeFastWithoutKeepingOrder=e.equals=e.tail2=e.tail=void 0;function y(x,M=0){return x[x.length-(1+M)]}e.tail=y;function v(x){if(x.length===0)throw new Error("Invalid tail call");return[x.slice(0,x.length-1),x[x.length-1]]}e.tail2=v;function k(x,M,P=(A,B)=>A===B){if(x===M)return!0;if(!x||!M||x.length!==M.length)return!1;for(let A=0,B=x.length;A<B;A++)if(!P(x[A],M[A]))return!1;return!0}e.equals=k;function D(x,M){const P=x.length-1;M<P&&(x[M]=x[P]),x.pop()}e.removeFastWithoutKeepingOrder=D;function w(x,M,P){return b(x.length,A=>P(x[A],M))}e.binarySearch=w;function b(x,M){let P=0,A=x-1;for(;P<=A;){const B=(P+A)/2|0,K=M(B);if(K<0)P=B+1;else if(K>0)A=B-1;else return B}return-(P+1)}e.binarySearch2=b;function C(x,M){let P=0,A=x.length;if(A===0)return 0;for(;P<A;){const B=Math.floor((P+A)/2);M(x[B])?A=B:P=B+1}return P}e.findFirstInSorted=C;function h(x,M,P){if(x=x|0,x>=M.length)throw new TypeError("invalid index");const A=M[Math.floor(M.length*Math.random())],B=[],K=[],T=[];for(const ee of M){const J=P(ee,A);J<0?B.push(ee):J>0?K.push(ee):T.push(ee)}return x<B.length?h(x,B,P):x<B.length+T.length?T[0]:h(x-(B.length+T.length),K,P)}e.quickSelect=h;function u(x,M){const P=[];let A;for(const B of x.slice(0).sort(M))!A||M(A[0],B)!==0?(A=[B],P.push(A)):A.push(B);return P}e.groupBy=u;function n(x){return x.filter(M=>!!M)}e.coalesce=n;function i(x){return!Array.isArray(x)||x.length===0}e.isFalsyOrEmpty=i;function t(x){return Array.isArray(x)&&x.length>0}e.isNonEmptyArray=t;function o(x,M=P=>P){const P=new Set;return x.filter(A=>{const B=M(A);return P.has(B)?!1:(P.add(B),!0)})}e.distinct=o;function s(x,M){const P=d(x,M);if(P!==-1)return x[P]}e.findLast=s;function d(x,M){for(let P=x.length-1;P>=0;P--){const A=x[P];if(M(A))return P}return-1}e.lastIndex=d;function l(x,M){return x.length>0?x[0]:M}e.firstOrDefault=l;function a(x,M){let P=typeof M=="number"?x:0;typeof M=="number"?P=x:(P=0,M=x);const A=[];if(P<=M)for(let B=P;B<M;B++)A.push(B);else for(let B=P;B>M;B--)A.push(B);return A}e.range=a;function r(x,M,P){const A=x.slice(0,M),B=x.slice(M);return A.concat(P,B)}e.arrayInsert=r;function c(x,M){const P=x.indexOf(M);P>-1&&(x.splice(P,1),x.unshift(M))}e.pushToStart=c;function g(x,M){const P=x.indexOf(M);P>-1&&(x.splice(P,1),x.push(M))}e.pushToEnd=g;function f(x,M){for(const P of M)x.push(P)}e.pushMany=f;function _(x){return Array.isArray(x)?x:[x]}e.asArray=_;function p(x,M,P){const A=S(x,M),B=x.length,K=P.length;x.length=B+K;for(let T=B-1;T>=A;T--)x[T+K]=x[T];for(let T=0;T<K;T++)x[T+A]=P[T]}e.insertInto=p;function m(x,M,P,A){const B=S(x,M),K=x.splice(B,P);return p(x,B,A),K}e.splice=m;function S(x,M){return M<0?Math.max(M+x.length,0):Math.min(M,x.length)}var E;(function(x){function M(B){return B<0}x.isLessThan=M;function P(B){return B>0}x.isGreaterThan=P;function A(B){return B===0}x.isNeitherLessOrGreaterThan=A,x.greaterThan=1,x.lessThan=-1,x.neitherLessOrGreaterThan=0})(E=e.CompareResult||(e.CompareResult={}));function L(x,M){return(P,A)=>M(x(P),x(A))}e.compareBy=L;const N=(x,M)=>x-M;e.numberComparator=N;function I(x,M){if(x.length===0)return;let P=x[0];for(let A=1;A<x.length;A++){const B=x[A];M(B,P)>0&&(P=B)}return P}e.findMaxBy=I;function R(x,M){if(x.length===0)return;let P=x[0];for(let A=1;A<x.length;A++){const B=x[A];M(B,P)>=0&&(P=B)}return P}e.findLastMaxBy=R;function F(x,M){return I(x,(P,A)=>-M(P,A))}e.findMinBy=F;class O{constructor(M){this.items=M,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(M){let P=this.firstIdx;for(;P<this.items.length&&M(this.items[P]);)P++;const A=P===this.firstIdx?null:this.items.slice(this.firstIdx,P);return this.firstIdx=P,A}takeFromEndWhile(M){let P=this.lastIdx;for(;P>=0&&M(this.items[P]);)P--;const A=P===this.lastIdx?null:this.items.slice(P+1,this.lastIdx+1);return this.lastIdx=P,A}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const M=this.items[this.firstIdx];return this.firstIdx++,M}takeCount(M){const P=this.items.slice(this.firstIdx,this.firstIdx+M);return this.firstIdx+=M,P}}e.ArrayQueue=O}),define(oe[177],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ok=void 0;function y(v,k){if(!v)throw new Error(k?`Assertion failed (${k})`:"Assertion Failed")}e.ok=y}),define(oe[122],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.writeUInt8=e.readUInt8=e.writeUInt32BE=e.readUInt32BE=e.writeUInt16LE=e.readUInt16LE=e.VSBuffer=void 0;const y=typeof Buffer<"u";let v;class k{constructor(i){this.buffer=i,this.byteLength=this.buffer.byteLength}static wrap(i){return y&&!Buffer.isBuffer(i)&&(i=Buffer.from(i.buffer,i.byteOffset,i.byteLength)),new k(i)}toString(){return y?this.buffer.toString():(v||(v=new TextDecoder),v.decode(this.buffer))}}e.VSBuffer=k;function D(n,i){return n[i+0]<<0>>>0|n[i+1]<<8>>>0}e.readUInt16LE=D;function w(n,i,t){n[t+0]=i&255,i=i>>>8,n[t+1]=i&255}e.writeUInt16LE=w;function b(n,i){return n[i]*Math.pow(2,24)+n[i+1]*Math.pow(2,16)+n[i+2]*Math.pow(2,8)+n[i+3]}e.readUInt32BE=b;function C(n,i,t){n[t+3]=i,i=i>>>8,n[t+2]=i,i=i>>>8,n[t+1]=i,i=i>>>8,n[t]=i}e.writeUInt32BE=C;function h(n,i){return n[i]}e.readUInt8=h;function u(n,i,t){n[t]=i}e.writeUInt8=u}),define(oe[222],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CachedFunction=e.LRUCachedFunction=void 0;class y{constructor(D){this.fn=D,this.lastCache=void 0,this.lastArgKey=void 0}get(D){const w=JSON.stringify(D);return this.lastArgKey!==w&&(this.lastArgKey=w,this.lastCache=this.fn(D)),this.lastCache}}e.LRUCachedFunction=y;class v{constructor(D){this.fn=D,this._map=new Map}get cachedValues(){return this._map}get(D){if(this._map.has(D))return this._map.get(D);const w=this.fn(D);return this._map.set(D,w),w}}e.CachedFunction=v}),define(oe[27],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CSSIcon=e.Codicon=e.getCodiconAriaLabel=void 0;function y(D){return D?D.replace(/\$\((.*?)\)/g,(w,b)=>` ${b} `).trim():""}e.getCodiconAriaLabel=y;class v{constructor(w,b,C){this.id=w,this.definition=b,this.description=C,v._allCodicons.push(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}static getAll(){return v._allCodicons}}e.Codicon=v,v._allCodicons=[],v.add=new v("add",{fontCharacter:"\\ea60"}),v.plus=new v("plus",v.add.definition),v.gistNew=new v("gist-new",v.add.definition),v.repoCreate=new v("repo-create",v.add.definition),v.lightbulb=new v("lightbulb",{fontCharacter:"\\ea61"}),v.lightBulb=new v("light-bulb",{fontCharacter:"\\ea61"}),v.repo=new v("repo",{fontCharacter:"\\ea62"}),v.repoDelete=new v("repo-delete",{fontCharacter:"\\ea62"}),v.gistFork=new v("gist-fork",{fontCharacter:"\\ea63"}),v.repoForked=new v("repo-forked",{fontCharacter:"\\ea63"}),v.gitPullRequest=new v("git-pull-request",{fontCharacter:"\\ea64"}),v.gitPullRequestAbandoned=new v("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),v.recordKeys=new v("record-keys",{fontCharacter:"\\ea65"}),v.keyboard=new v("keyboard",{fontCharacter:"\\ea65"}),v.tag=new v("tag",{fontCharacter:"\\ea66"}),v.tagAdd=new v("tag-add",{fontCharacter:"\\ea66"}),v.tagRemove=new v("tag-remove",{fontCharacter:"\\ea66"}),v.person=new v("person",{fontCharacter:"\\ea67"}),v.personFollow=new v("person-follow",{fontCharacter:"\\ea67"}),v.personOutline=new v("person-outline",{fontCharacter:"\\ea67"}),v.personFilled=new v("person-filled",{fontCharacter:"\\ea67"}),v.gitBranch=new v("git-branch",{fontCharacter:"\\ea68"}),v.gitBranchCreate=new v("git-branch-create",{fontCharacter:"\\ea68"}),v.gitBranchDelete=new v("git-branch-delete",{fontCharacter:"\\ea68"}),v.sourceControl=new v("source-control",{fontCharacter:"\\ea68"}),v.mirror=new v("mirror",{fontCharacter:"\\ea69"}),v.mirrorPublic=new v("mirror-public",{fontCharacter:"\\ea69"}),v.star=new v("star",{fontCharacter:"\\ea6a"}),v.starAdd=new v("star-add",{fontCharacter:"\\ea6a"}),v.starDelete=new v("star-delete",{fontCharacter:"\\ea6a"}),v.starEmpty=new v("star-empty",{fontCharacter:"\\ea6a"}),v.comment=new v("comment",{fontCharacter:"\\ea6b"}),v.commentAdd=new v("comment-add",{fontCharacter:"\\ea6b"}),v.alert=new v("alert",{fontCharacter:"\\ea6c"}),v.warning=new v("warning",{fontCharacter:"\\ea6c"}),v.search=new v("search",{fontCharacter:"\\ea6d"}),v.searchSave=new v("search-save",{fontCharacter:"\\ea6d"}),v.logOut=new v("log-out",{fontCharacter:"\\ea6e"}),v.signOut=new v("sign-out",{fontCharacter:"\\ea6e"}),v.logIn=new v("log-in",{fontCharacter:"\\ea6f"}),v.signIn=new v("sign-in",{fontCharacter:"\\ea6f"}),v.eye=new v("eye",{fontCharacter:"\\ea70"}),v.eyeUnwatch=new v("eye-unwatch",{fontCharacter:"\\ea70"}),v.eyeWatch=new v("eye-watch",{fontCharacter:"\\ea70"}),v.circleFilled=new v("circle-filled",{fontCharacter:"\\ea71"}),v.primitiveDot=new v("primitive-dot",{fontCharacter:"\\ea71"}),v.closeDirty=new v("close-dirty",{fontCharacter:"\\ea71"}),v.debugBreakpoint=new v("debug-breakpoint",{fontCharacter:"\\ea71"}),v.debugBreakpointDisabled=new v("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),v.debugHint=new v("debug-hint",{fontCharacter:"\\ea71"}),v.primitiveSquare=new v("primitive-square",{fontCharacter:"\\ea72"}),v.edit=new v("edit",{fontCharacter:"\\ea73"}),v.pencil=new v("pencil",{fontCharacter:"\\ea73"}),v.info=new v("info",{fontCharacter:"\\ea74"}),v.issueOpened=new v("issue-opened",{fontCharacter:"\\ea74"}),v.gistPrivate=new v("gist-private",{fontCharacter:"\\ea75"}),v.gitForkPrivate=new v("git-fork-private",{fontCharacter:"\\ea75"}),v.lock=new v("lock",{fontCharacter:"\\ea75"}),v.mirrorPrivate=new v("mirror-private",{fontCharacter:"\\ea75"}),v.close=new v("close",{fontCharacter:"\\ea76"}),v.removeClose=new v("remove-close",{fontCharacter:"\\ea76"}),v.x=new v("x",{fontCharacter:"\\ea76"}),v.repoSync=new v("repo-sync",{fontCharacter:"\\ea77"}),v.sync=new v("sync",{fontCharacter:"\\ea77"}),v.clone=new v("clone",{fontCharacter:"\\ea78"}),v.desktopDownload=new v("desktop-download",{fontCharacter:"\\ea78"}),v.beaker=new v("beaker",{fontCharacter:"\\ea79"}),v.microscope=new v("microscope",{fontCharacter:"\\ea79"}),v.vm=new v("vm",{fontCharacter:"\\ea7a"}),v.deviceDesktop=new v("device-desktop",{fontCharacter:"\\ea7a"}),v.file=new v("file",{fontCharacter:"\\ea7b"}),v.fileText=new v("file-text",{fontCharacter:"\\ea7b"}),v.more=new v("more",{fontCharacter:"\\ea7c"}),v.ellipsis=new v("ellipsis",{fontCharacter:"\\ea7c"}),v.kebabHorizontal=new v("kebab-horizontal",{fontCharacter:"\\ea7c"}),v.mailReply=new v("mail-reply",{fontCharacter:"\\ea7d"}),v.reply=new v("reply",{fontCharacter:"\\ea7d"}),v.organization=new v("organization",{fontCharacter:"\\ea7e"}),v.organizationFilled=new v("organization-filled",{fontCharacter:"\\ea7e"}),v.organizationOutline=new v("organization-outline",{fontCharacter:"\\ea7e"}),v.newFile=new v("new-file",{fontCharacter:"\\ea7f"}),v.fileAdd=new v("file-add",{fontCharacter:"\\ea7f"}),v.newFolder=new v("new-folder",{fontCharacter:"\\ea80"}),v.fileDirectoryCreate=new v("file-directory-create",{fontCharacter:"\\ea80"}),v.trash=new v("trash",{fontCharacter:"\\ea81"}),v.trashcan=new v("trashcan",{fontCharacter:"\\ea81"}),v.history=new v("history",{fontCharacter:"\\ea82"}),v.clock=new v("clock",{fontCharacter:"\\ea82"}),v.folder=new v("folder",{fontCharacter:"\\ea83"}),v.fileDirectory=new v("file-directory",{fontCharacter:"\\ea83"}),v.symbolFolder=new v("symbol-folder",{fontCharacter:"\\ea83"}),v.logoGithub=new v("logo-github",{fontCharacter:"\\ea84"}),v.markGithub=new v("mark-github",{fontCharacter:"\\ea84"}),v.github=new v("github",{fontCharacter:"\\ea84"}),v.terminal=new v("terminal",{fontCharacter:"\\ea85"}),v.console=new v("console",{fontCharacter:"\\ea85"}),v.repl=new v("repl",{fontCharacter:"\\ea85"}),v.zap=new v("zap",{fontCharacter:"\\ea86"}),v.symbolEvent=new v("symbol-event",{fontCharacter:"\\ea86"}),v.error=new v("error",{fontCharacter:"\\ea87"}),v.stop=new v("stop",{fontCharacter:"\\ea87"}),v.variable=new v("variable",{fontCharacter:"\\ea88"}),v.symbolVariable=new v("symbol-variable",{fontCharacter:"\\ea88"}),v.array=new v("array",{fontCharacter:"\\ea8a"}),v.symbolArray=new v("symbol-array",{fontCharacter:"\\ea8a"}),v.symbolModule=new v("symbol-module",{fontCharacter:"\\ea8b"}),v.symbolPackage=new v("symbol-package",{fontCharacter:"\\ea8b"}),v.symbolNamespace=new v("symbol-namespace",{fontCharacter:"\\ea8b"}),v.symbolObject=new v("symbol-object",{fontCharacter:"\\ea8b"}),v.symbolMethod=new v("symbol-method",{fontCharacter:"\\ea8c"}),v.symbolFunction=new v("symbol-function",{fontCharacter:"\\ea8c"}),v.symbolConstructor=new v("symbol-constructor",{fontCharacter:"\\ea8c"}),v.symbolBoolean=new v("symbol-boolean",{fontCharacter:"\\ea8f"}),v.symbolNull=new v("symbol-null",{fontCharacter:"\\ea8f"}),v.symbolNumeric=new v("symbol-numeric",{fontCharacter:"\\ea90"}),v.symbolNumber=new v("symbol-number",{fontCharacter:"\\ea90"}),v.symbolStructure=new v("symbol-structure",{fontCharacter:"\\ea91"}),v.symbolStruct=new v("symbol-struct",{fontCharacter:"\\ea91"}),v.symbolParameter=new v("symbol-parameter",{fontCharacter:"\\ea92"}),v.symbolTypeParameter=new v("symbol-type-parameter",{fontCharacter:"\\ea92"}),v.symbolKey=new v("symbol-key",{fontCharacter:"\\ea93"}),v.symbolText=new v("symbol-text",{fontCharacter:"\\ea93"}),v.symbolReference=new v("symbol-reference",{fontCharacter:"\\ea94"}),v.goToFile=new v("go-to-file",{fontCharacter:"\\ea94"}),v.symbolEnum=new v("symbol-enum",{fontCharacter:"\\ea95"}),v.symbolValue=new v("symbol-value",{fontCharacter:"\\ea95"}),v.symbolRuler=new v("symbol-ruler",{fontCharacter:"\\ea96"}),v.symbolUnit=new v("symbol-unit",{fontCharacter:"\\ea96"}),v.activateBreakpoints=new v("activate-breakpoints",{fontCharacter:"\\ea97"}),v.archive=new v("archive",{fontCharacter:"\\ea98"}),v.arrowBoth=new v("arrow-both",{fontCharacter:"\\ea99"}),v.arrowDown=new v("arrow-down",{fontCharacter:"\\ea9a"}),v.arrowLeft=new v("arrow-left",{fontCharacter:"\\ea9b"}),v.arrowRight=new v("arrow-right",{fontCharacter:"\\ea9c"}),v.arrowSmallDown=new v("arrow-small-down",{fontCharacter:"\\ea9d"}),v.arrowSmallLeft=new v("arrow-small-left",{fontCharacter:"\\ea9e"}),v.arrowSmallRight=new v("arrow-small-right",{fontCharacter:"\\ea9f"}),v.arrowSmallUp=new v("arrow-small-up",{fontCharacter:"\\eaa0"}),v.arrowUp=new v("arrow-up",{fontCharacter:"\\eaa1"}),v.bell=new v("bell",{fontCharacter:"\\eaa2"}),v.bold=new v("bold",{fontCharacter:"\\eaa3"}),v.book=new v("book",{fontCharacter:"\\eaa4"}),v.bookmark=new v("bookmark",{fontCharacter:"\\eaa5"}),v.debugBreakpointConditionalUnverified=new v("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),v.debugBreakpointConditional=new v("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),v.debugBreakpointConditionalDisabled=new v("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),v.debugBreakpointDataUnverified=new v("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),v.debugBreakpointData=new v("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),v.debugBreakpointDataDisabled=new v("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),v.debugBreakpointLogUnverified=new v("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),v.debugBreakpointLog=new v("debug-breakpoint-log",{fontCharacter:"\\eaab"}),v.debugBreakpointLogDisabled=new v("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),v.briefcase=new v("briefcase",{fontCharacter:"\\eaac"}),v.broadcast=new v("broadcast",{fontCharacter:"\\eaad"}),v.browser=new v("browser",{fontCharacter:"\\eaae"}),v.bug=new v("bug",{fontCharacter:"\\eaaf"}),v.calendar=new v("calendar",{fontCharacter:"\\eab0"}),v.caseSensitive=new v("case-sensitive",{fontCharacter:"\\eab1"}),v.check=new v("check",{fontCharacter:"\\eab2"}),v.checklist=new v("checklist",{fontCharacter:"\\eab3"}),v.chevronDown=new v("chevron-down",{fontCharacter:"\\eab4"}),v.dropDownButton=new v("drop-down-button",v.chevronDown.definition),v.chevronLeft=new v("chevron-left",{fontCharacter:"\\eab5"}),v.chevronRight=new v("chevron-right",{fontCharacter:"\\eab6"}),v.chevronUp=new v("chevron-up",{fontCharacter:"\\eab7"}),v.chromeClose=new v("chrome-close",{fontCharacter:"\\eab8"}),v.chromeMaximize=new v("chrome-maximize",{fontCharacter:"\\eab9"}),v.chromeMinimize=new v("chrome-minimize",{fontCharacter:"\\eaba"}),v.chromeRestore=new v("chrome-restore",{fontCharacter:"\\eabb"}),v.circleOutline=new v("circle-outline",{fontCharacter:"\\eabc"}),v.debugBreakpointUnverified=new v("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),v.circleSlash=new v("circle-slash",{fontCharacter:"\\eabd"}),v.circuitBoard=new v("circuit-board",{fontCharacter:"\\eabe"}),v.clearAll=new v("clear-all",{fontCharacter:"\\eabf"}),v.clippy=new v("clippy",{fontCharacter:"\\eac0"}),v.closeAll=new v("close-all",{fontCharacter:"\\eac1"}),v.cloudDownload=new v("cloud-download",{fontCharacter:"\\eac2"}),v.cloudUpload=new v("cloud-upload",{fontCharacter:"\\eac3"}),v.code=new v("code",{fontCharacter:"\\eac4"}),v.collapseAll=new v("collapse-all",{fontCharacter:"\\eac5"}),v.colorMode=new v("color-mode",{fontCharacter:"\\eac6"}),v.commentDiscussion=new v("comment-discussion",{fontCharacter:"\\eac7"}),v.compareChanges=new v("compare-changes",{fontCharacter:"\\eafd"}),v.creditCard=new v("credit-card",{fontCharacter:"\\eac9"}),v.dash=new v("dash",{fontCharacter:"\\eacc"}),v.dashboard=new v("dashboard",{fontCharacter:"\\eacd"}),v.database=new v("database",{fontCharacter:"\\eace"}),v.debugContinue=new v("debug-continue",{fontCharacter:"\\eacf"}),v.debugDisconnect=new v("debug-disconnect",{fontCharacter:"\\ead0"}),v.debugPause=new v("debug-pause",{fontCharacter:"\\ead1"}),v.debugRestart=new v("debug-restart",{fontCharacter:"\\ead2"}),v.debugStart=new v("debug-start",{fontCharacter:"\\ead3"}),v.debugStepInto=new v("debug-step-into",{fontCharacter:"\\ead4"}),v.debugStepOut=new v("debug-step-out",{fontCharacter:"\\ead5"}),v.debugStepOver=new v("debug-step-over",{fontCharacter:"\\ead6"}),v.debugStop=new v("debug-stop",{fontCharacter:"\\ead7"}),v.debug=new v("debug",{fontCharacter:"\\ead8"}),v.deviceCameraVideo=new v("device-camera-video",{fontCharacter:"\\ead9"}),v.deviceCamera=new v("device-camera",{fontCharacter:"\\eada"}),v.deviceMobile=new v("device-mobile",{fontCharacter:"\\eadb"}),v.diffAdded=new v("diff-added",{fontCharacter:"\\eadc"}),v.diffIgnored=new v("diff-ignored",{fontCharacter:"\\eadd"}),v.diffModified=new v("diff-modified",{fontCharacter:"\\eade"}),v.diffRemoved=new v("diff-removed",{fontCharacter:"\\eadf"}),v.diffRenamed=new v("diff-renamed",{fontCharacter:"\\eae0"}),v.diff=new v("diff",{fontCharacter:"\\eae1"}),v.discard=new v("discard",{fontCharacter:"\\eae2"}),v.editorLayout=new v("editor-layout",{fontCharacter:"\\eae3"}),v.emptyWindow=new v("empty-window",{fontCharacter:"\\eae4"}),v.exclude=new v("exclude",{fontCharacter:"\\eae5"}),v.extensions=new v("extensions",{fontCharacter:"\\eae6"}),v.eyeClosed=new v("eye-closed",{fontCharacter:"\\eae7"}),v.fileBinary=new v("file-binary",{fontCharacter:"\\eae8"}),v.fileCode=new v("file-code",{fontCharacter:"\\eae9"}),v.fileMedia=new v("file-media",{fontCharacter:"\\eaea"}),v.filePdf=new v("file-pdf",{fontCharacter:"\\eaeb"}),v.fileSubmodule=new v("file-submodule",{fontCharacter:"\\eaec"}),v.fileSymlinkDirectory=new v("file-symlink-directory",{fontCharacter:"\\eaed"}),v.fileSymlinkFile=new v("file-symlink-file",{fontCharacter:"\\eaee"}),v.fileZip=new v("file-zip",{fontCharacter:"\\eaef"}),v.files=new v("files",{fontCharacter:"\\eaf0"}),v.filter=new v("filter",{fontCharacter:"\\eaf1"}),v.flame=new v("flame",{fontCharacter:"\\eaf2"}),v.foldDown=new v("fold-down",{fontCharacter:"\\eaf3"}),v.foldUp=new v("fold-up",{fontCharacter:"\\eaf4"}),v.fold=new v("fold",{fontCharacter:"\\eaf5"}),v.folderActive=new v("folder-active",{fontCharacter:"\\eaf6"}),v.folderOpened=new v("folder-opened",{fontCharacter:"\\eaf7"}),v.gear=new v("gear",{fontCharacter:"\\eaf8"}),v.gift=new v("gift",{fontCharacter:"\\eaf9"}),v.gistSecret=new v("gist-secret",{fontCharacter:"\\eafa"}),v.gist=new v("gist",{fontCharacter:"\\eafb"}),v.gitCommit=new v("git-commit",{fontCharacter:"\\eafc"}),v.gitCompare=new v("git-compare",{fontCharacter:"\\eafd"}),v.gitMerge=new v("git-merge",{fontCharacter:"\\eafe"}),v.githubAction=new v("github-action",{fontCharacter:"\\eaff"}),v.githubAlt=new v("github-alt",{fontCharacter:"\\eb00"}),v.globe=new v("globe",{fontCharacter:"\\eb01"}),v.grabber=new v("grabber",{fontCharacter:"\\eb02"}),v.graph=new v("graph",{fontCharacter:"\\eb03"}),v.gripper=new v("gripper",{fontCharacter:"\\eb04"}),v.heart=new v("heart",{fontCharacter:"\\eb05"}),v.home=new v("home",{fontCharacter:"\\eb06"}),v.horizontalRule=new v("horizontal-rule",{fontCharacter:"\\eb07"}),v.hubot=new v("hubot",{fontCharacter:"\\eb08"}),v.inbox=new v("inbox",{fontCharacter:"\\eb09"}),v.issueClosed=new v("issue-closed",{fontCharacter:"\\eba4"}),v.issueReopened=new v("issue-reopened",{fontCharacter:"\\eb0b"}),v.issues=new v("issues",{fontCharacter:"\\eb0c"}),v.italic=new v("italic",{fontCharacter:"\\eb0d"}),v.jersey=new v("jersey",{fontCharacter:"\\eb0e"}),v.json=new v("json",{fontCharacter:"\\eb0f"}),v.kebabVertical=new v("kebab-vertical",{fontCharacter:"\\eb10"}),v.key=new v("key",{fontCharacter:"\\eb11"}),v.law=new v("law",{fontCharacter:"\\eb12"}),v.lightbulbAutofix=new v("lightbulb-autofix",{fontCharacter:"\\eb13"}),v.linkExternal=new v("link-external",{fontCharacter:"\\eb14"}),v.link=new v("link",{fontCharacter:"\\eb15"}),v.listOrdered=new v("list-ordered",{fontCharacter:"\\eb16"}),v.listUnordered=new v("list-unordered",{fontCharacter:"\\eb17"}),v.liveShare=new v("live-share",{fontCharacter:"\\eb18"}),v.loading=new v("loading",{fontCharacter:"\\eb19"}),v.location=new v("location",{fontCharacter:"\\eb1a"}),v.mailRead=new v("mail-read",{fontCharacter:"\\eb1b"}),v.mail=new v("mail",{fontCharacter:"\\eb1c"}),v.markdown=new v("markdown",{fontCharacter:"\\eb1d"}),v.megaphone=new v("megaphone",{fontCharacter:"\\eb1e"}),v.mention=new v("mention",{fontCharacter:"\\eb1f"}),v.milestone=new v("milestone",{fontCharacter:"\\eb20"}),v.mortarBoard=new v("mortar-board",{fontCharacter:"\\eb21"}),v.move=new v("move",{fontCharacter:"\\eb22"}),v.multipleWindows=new v("multiple-windows",{fontCharacter:"\\eb23"}),v.mute=new v("mute",{fontCharacter:"\\eb24"}),v.noNewline=new v("no-newline",{fontCharacter:"\\eb25"}),v.note=new v("note",{fontCharacter:"\\eb26"}),v.octoface=new v("octoface",{fontCharacter:"\\eb27"}),v.openPreview=new v("open-preview",{fontCharacter:"\\eb28"}),v.package_=new v("package",{fontCharacter:"\\eb29"}),v.paintcan=new v("paintcan",{fontCharacter:"\\eb2a"}),v.pin=new v("pin",{fontCharacter:"\\eb2b"}),v.play=new v("play",{fontCharacter:"\\eb2c"}),v.run=new v("run",{fontCharacter:"\\eb2c"}),v.plug=new v("plug",{fontCharacter:"\\eb2d"}),v.preserveCase=new v("preserve-case",{fontCharacter:"\\eb2e"}),v.preview=new v("preview",{fontCharacter:"\\eb2f"}),v.project=new v("project",{fontCharacter:"\\eb30"}),v.pulse=new v("pulse",{fontCharacter:"\\eb31"}),v.question=new v("question",{fontCharacter:"\\eb32"}),v.quote=new v("quote",{fontCharacter:"\\eb33"}),v.radioTower=new v("radio-tower",{fontCharacter:"\\eb34"}),v.reactions=new v("reactions",{fontCharacter:"\\eb35"}),v.references=new v("references",{fontCharacter:"\\eb36"}),v.refresh=new v("refresh",{fontCharacter:"\\eb37"}),v.regex=new v("regex",{fontCharacter:"\\eb38"}),v.remoteExplorer=new v("remote-explorer",{fontCharacter:"\\eb39"}),v.remote=new v("remote",{fontCharacter:"\\eb3a"}),v.remove=new v("remove",{fontCharacter:"\\eb3b"}),v.replaceAll=new v("replace-all",{fontCharacter:"\\eb3c"}),v.replace=new v("replace",{fontCharacter:"\\eb3d"}),v.repoClone=new v("repo-clone",{fontCharacter:"\\eb3e"}),v.repoForcePush=new v("repo-force-push",{fontCharacter:"\\eb3f"}),v.repoPull=new v("repo-pull",{fontCharacter:"\\eb40"}),v.repoPush=new v("repo-push",{fontCharacter:"\\eb41"}),v.report=new v("report",{fontCharacter:"\\eb42"}),v.requestChanges=new v("request-changes",{fontCharacter:"\\eb43"}),v.rocket=new v("rocket",{fontCharacter:"\\eb44"}),v.rootFolderOpened=new v("root-folder-opened",{fontCharacter:"\\eb45"}),v.rootFolder=new v("root-folder",{fontCharacter:"\\eb46"}),v.rss=new v("rss",{fontCharacter:"\\eb47"}),v.ruby=new v("ruby",{fontCharacter:"\\eb48"}),v.saveAll=new v("save-all",{fontCharacter:"\\eb49"}),v.saveAs=new v("save-as",{fontCharacter:"\\eb4a"}),v.save=new v("save",{fontCharacter:"\\eb4b"}),v.screenFull=new v("screen-full",{fontCharacter:"\\eb4c"}),v.screenNormal=new v("screen-normal",{fontCharacter:"\\eb4d"}),v.searchStop=new v("search-stop",{fontCharacter:"\\eb4e"}),v.server=new v("server",{fontCharacter:"\\eb50"}),v.settingsGear=new v("settings-gear",{fontCharacter:"\\eb51"}),v.settings=new v("settings",{fontCharacter:"\\eb52"}),v.shield=new v("shield",{fontCharacter:"\\eb53"}),v.smiley=new v("smiley",{fontCharacter:"\\eb54"}),v.sortPrecedence=new v("sort-precedence",{fontCharacter:"\\eb55"}),v.splitHorizontal=new v("split-horizontal",{fontCharacter:"\\eb56"}),v.splitVertical=new v("split-vertical",{fontCharacter:"\\eb57"}),v.squirrel=new v("squirrel",{fontCharacter:"\\eb58"}),v.starFull=new v("star-full",{fontCharacter:"\\eb59"}),v.starHalf=new v("star-half",{fontCharacter:"\\eb5a"}),v.symbolClass=new v("symbol-class",{fontCharacter:"\\eb5b"}),v.symbolColor=new v("symbol-color",{fontCharacter:"\\eb5c"}),v.symbolCustomColor=new v("symbol-customcolor",{fontCharacter:"\\eb5c"}),v.symbolConstant=new v("symbol-constant",{fontCharacter:"\\eb5d"}),v.symbolEnumMember=new v("symbol-enum-member",{fontCharacter:"\\eb5e"}),v.symbolField=new v("symbol-field",{fontCharacter:"\\eb5f"}),v.symbolFile=new v("symbol-file",{fontCharacter:"\\eb60"}),v.symbolInterface=new v("symbol-interface",{fontCharacter:"\\eb61"}),v.symbolKeyword=new v("symbol-keyword",{fontCharacter:"\\eb62"}),v.symbolMisc=new v("symbol-misc",{fontCharacter:"\\eb63"}),v.symbolOperator=new v("symbol-operator",{fontCharacter:"\\eb64"}),v.symbolProperty=new v("symbol-property",{fontCharacter:"\\eb65"}),v.wrench=new v("wrench",{fontCharacter:"\\eb65"}),v.wrenchSubaction=new v("wrench-subaction",{fontCharacter:"\\eb65"}),v.symbolSnippet=new v("symbol-snippet",{fontCharacter:"\\eb66"}),v.tasklist=new v("tasklist",{fontCharacter:"\\eb67"}),v.telescope=new v("telescope",{fontCharacter:"\\eb68"}),v.textSize=new v("text-size",{fontCharacter:"\\eb69"}),v.threeBars=new v("three-bars",{fontCharacter:"\\eb6a"}),v.thumbsdown=new v("thumbsdown",{fontCharacter:"\\eb6b"}),v.thumbsup=new v("thumbsup",{fontCharacter:"\\eb6c"}),v.tools=new v("tools",{fontCharacter:"\\eb6d"}),v.triangleDown=new v("triangle-down",{fontCharacter:"\\eb6e"}),v.triangleLeft=new v("triangle-left",{fontCharacter:"\\eb6f"}),v.triangleRight=new v("triangle-right",{fontCharacter:"\\eb70"}),v.triangleUp=new v("triangle-up",{fontCharacter:"\\eb71"}),v.twitter=new v("twitter",{fontCharacter:"\\eb72"}),v.unfold=new v("unfold",{fontCharacter:"\\eb73"}),v.unlock=new v("unlock",{fontCharacter:"\\eb74"}),v.unmute=new v("unmute",{fontCharacter:"\\eb75"}),v.unverified=new v("unverified",{fontCharacter:"\\eb76"}),v.verified=new v("verified",{fontCharacter:"\\eb77"}),v.versions=new v("versions",{fontCharacter:"\\eb78"}),v.vmActive=new v("vm-active",{fontCharacter:"\\eb79"}),v.vmOutline=new v("vm-outline",{fontCharacter:"\\eb7a"}),v.vmRunning=new v("vm-running",{fontCharacter:"\\eb7b"}),v.watch=new v("watch",{fontCharacter:"\\eb7c"}),v.whitespace=new v("whitespace",{fontCharacter:"\\eb7d"}),v.wholeWord=new v("whole-word",{fontCharacter:"\\eb7e"}),v.window=new v("window",{fontCharacter:"\\eb7f"}),v.wordWrap=new v("word-wrap",{fontCharacter:"\\eb80"}),v.zoomIn=new v("zoom-in",{fontCharacter:"\\eb81"}),v.zoomOut=new v("zoom-out",{fontCharacter:"\\eb82"}),v.listFilter=new v("list-filter",{fontCharacter:"\\eb83"}),v.listFlat=new v("list-flat",{fontCharacter:"\\eb84"}),v.listSelection=new v("list-selection",{fontCharacter:"\\eb85"}),v.selection=new v("selection",{fontCharacter:"\\eb85"}),v.listTree=new v("list-tree",{fontCharacter:"\\eb86"}),v.debugBreakpointFunctionUnverified=new v("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),v.debugBreakpointFunction=new v("debug-breakpoint-function",{fontCharacter:"\\eb88"}),v.debugBreakpointFunctionDisabled=new v("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),v.debugStackframeActive=new v("debug-stackframe-active",{fontCharacter:"\\eb89"}),v.circleSmallFilled=new v("circle-small-filled",{fontCharacter:"\\eb8a"}),v.debugStackframeDot=new v("debug-stackframe-dot",v.circleSmallFilled.definition),v.debugStackframe=new v("debug-stackframe",{fontCharacter:"\\eb8b"}),v.debugStackframeFocused=new v("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),v.debugBreakpointUnsupported=new v("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),v.symbolString=new v("symbol-string",{fontCharacter:"\\eb8d"}),v.debugReverseContinue=new v("debug-reverse-continue",{fontCharacter:"\\eb8e"}),v.debugStepBack=new v("debug-step-back",{fontCharacter:"\\eb8f"}),v.debugRestartFrame=new v("debug-restart-frame",{fontCharacter:"\\eb90"}),v.callIncoming=new v("call-incoming",{fontCharacter:"\\eb92"}),v.callOutgoing=new v("call-outgoing",{fontCharacter:"\\eb93"}),v.menu=new v("menu",{fontCharacter:"\\eb94"}),v.expandAll=new v("expand-all",{fontCharacter:"\\eb95"}),v.feedback=new v("feedback",{fontCharacter:"\\eb96"}),v.groupByRefType=new v("group-by-ref-type",{fontCharacter:"\\eb97"}),v.ungroupByRefType=new v("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),v.account=new v("account",{fontCharacter:"\\eb99"}),v.bellDot=new v("bell-dot",{fontCharacter:"\\eb9a"}),v.debugConsole=new v("debug-console",{fontCharacter:"\\eb9b"}),v.library=new v("library",{fontCharacter:"\\eb9c"}),v.output=new v("output",{fontCharacter:"\\eb9d"}),v.runAll=new v("run-all",{fontCharacter:"\\eb9e"}),v.syncIgnored=new v("sync-ignored",{fontCharacter:"\\eb9f"}),v.pinned=new v("pinned",{fontCharacter:"\\eba0"}),v.githubInverted=new v("github-inverted",{fontCharacter:"\\eba1"}),v.debugAlt=new v("debug-alt",{fontCharacter:"\\eb91"}),v.serverProcess=new v("server-process",{fontCharacter:"\\eba2"}),v.serverEnvironment=new v("server-environment",{fontCharacter:"\\eba3"}),v.pass=new v("pass",{fontCharacter:"\\eba4"}),v.stopCircle=new v("stop-circle",{fontCharacter:"\\eba5"}),v.playCircle=new v("play-circle",{fontCharacter:"\\eba6"}),v.record=new v("record",{fontCharacter:"\\eba7"}),v.debugAltSmall=new v("debug-alt-small",{fontCharacter:"\\eba8"}),v.vmConnect=new v("vm-connect",{fontCharacter:"\\eba9"}),v.cloud=new v("cloud",{fontCharacter:"\\ebaa"}),v.merge=new v("merge",{fontCharacter:"\\ebab"}),v.exportIcon=new v("export",{fontCharacter:"\\ebac"}),v.graphLeft=new v("graph-left",{fontCharacter:"\\ebad"}),v.magnet=new v("magnet",{fontCharacter:"\\ebae"}),v.notebook=new v("notebook",{fontCharacter:"\\ebaf"}),v.redo=new v("redo",{fontCharacter:"\\ebb0"}),v.checkAll=new v("check-all",{fontCharacter:"\\ebb1"}),v.pinnedDirty=new v("pinned-dirty",{fontCharacter:"\\ebb2"}),v.passFilled=new v("pass-filled",{fontCharacter:"\\ebb3"}),v.circleLargeFilled=new v("circle-large-filled",{fontCharacter:"\\ebb4"}),v.circleLargeOutline=new v("circle-large-outline",{fontCharacter:"\\ebb5"}),v.combine=new v("combine",{fontCharacter:"\\ebb6"}),v.gather=new v("gather",{fontCharacter:"\\ebb6"}),v.table=new v("table",{fontCharacter:"\\ebb7"}),v.variableGroup=new v("variable-group",{fontCharacter:"\\ebb8"}),v.typeHierarchy=new v("type-hierarchy",{fontCharacter:"\\ebb9"}),v.typeHierarchySub=new v("type-hierarchy-sub",{fontCharacter:"\\ebba"}),v.typeHierarchySuper=new v("type-hierarchy-super",{fontCharacter:"\\ebbb"}),v.gitPullRequestCreate=new v("git-pull-request-create",{fontCharacter:"\\ebbc"}),v.runAbove=new v("run-above",{fontCharacter:"\\ebbd"}),v.runBelow=new v("run-below",{fontCharacter:"\\ebbe"}),v.notebookTemplate=new v("notebook-template",{fontCharacter:"\\ebbf"}),v.debugRerun=new v("debug-rerun",{fontCharacter:"\\ebc0"}),v.workspaceTrusted=new v("workspace-trusted",{fontCharacter:"\\ebc1"}),v.workspaceUntrusted=new v("workspace-untrusted",{fontCharacter:"\\ebc2"}),v.workspaceUnspecified=new v("workspace-unspecified",{fontCharacter:"\\ebc3"}),v.terminalCmd=new v("terminal-cmd",{fontCharacter:"\\ebc4"}),v.terminalDebian=new v("terminal-debian",{fontCharacter:"\\ebc5"}),v.terminalLinux=new v("terminal-linux",{fontCharacter:"\\ebc6"}),v.terminalPowershell=new v("terminal-powershell",{fontCharacter:"\\ebc7"}),v.terminalTmux=new v("terminal-tmux",{fontCharacter:"\\ebc8"}),v.terminalUbuntu=new v("terminal-ubuntu",{fontCharacter:"\\ebc9"}),v.terminalBash=new v("terminal-bash",{fontCharacter:"\\ebca"}),v.arrowSwap=new v("arrow-swap",{fontCharacter:"\\ebcb"}),v.copy=new v("copy",{fontCharacter:"\\ebcc"}),v.personAdd=new v("person-add",{fontCharacter:"\\ebcd"}),v.filterFilled=new v("filter-filled",{fontCharacter:"\\ebce"}),v.wand=new v("wand",{fontCharacter:"\\ebcf"}),v.debugLineByLine=new v("debug-line-by-line",{fontCharacter:"\\ebd0"}),v.inspect=new v("inspect",{fontCharacter:"\\ebd1"}),v.layers=new v("layers",{fontCharacter:"\\ebd2"}),v.layersDot=new v("layers-dot",{fontCharacter:"\\ebd3"}),v.layersActive=new v("layers-active",{fontCharacter:"\\ebd4"}),v.compass=new v("compass",{fontCharacter:"\\ebd5"}),v.compassDot=new v("compass-dot",{fontCharacter:"\\ebd6"}),v.compassActive=new v("compass-active",{fontCharacter:"\\ebd7"}),v.azure=new v("azure",{fontCharacter:"\\ebd8"}),v.issueDraft=new v("issue-draft",{fontCharacter:"\\ebd9"}),v.gitPullRequestClosed=new v("git-pull-request-closed",{fontCharacter:"\\ebda"}),v.gitPullRequestDraft=new v("git-pull-request-draft",{fontCharacter:"\\ebdb"}),v.debugAll=new v("debug-all",{fontCharacter:"\\ebdc"}),v.debugCoverage=new v("debug-coverage",{fontCharacter:"\\ebdd"}),v.runErrors=new v("run-errors",{fontCharacter:"\\ebde"}),v.folderLibrary=new v("folder-library",{fontCharacter:"\\ebdf"}),v.debugContinueSmall=new v("debug-continue-small",{fontCharacter:"\\ebe0"}),v.beakerStop=new v("beaker-stop",{fontCharacter:"\\ebe1"}),v.graphLine=new v("graph-line",{fontCharacter:"\\ebe2"}),v.graphScatter=new v("graph-scatter",{fontCharacter:"\\ebe3"}),v.pieChart=new v("pie-chart",{fontCharacter:"\\ebe4"}),v.bracket=new v("bracket",v.json.definition),v.bracketDot=new v("bracket-dot",{fontCharacter:"\\ebe5"}),v.bracketError=new v("bracket-error",{fontCharacter:"\\ebe6"}),v.lockSmall=new v("lock-small",{fontCharacter:"\\ebe7"}),v.azureDevops=new v("azure-devops",{fontCharacter:"\\ebe8"}),v.verifiedFilled=new v("verified-filled",{fontCharacter:"\\ebe9"}),v.newLine=new v("newline",{fontCharacter:"\\ebea"}),v.layout=new v("layout",{fontCharacter:"\\ebeb"}),v.layoutActivitybarLeft=new v("layout-activitybar-left",{fontCharacter:"\\ebec"}),v.layoutActivitybarRight=new v("layout-activitybar-right",{fontCharacter:"\\ebed"}),v.layoutPanelLeft=new v("layout-panel-left",{fontCharacter:"\\ebee"}),v.layoutPanelCenter=new v("layout-panel-center",{fontCharacter:"\\ebef"}),v.layoutPanelJustify=new v("layout-panel-justify",{fontCharacter:"\\ebf0"}),v.layoutPanelRight=new v("layout-panel-right",{fontCharacter:"\\ebf1"}),v.layoutPanel=new v("layout-panel",{fontCharacter:"\\ebf2"}),v.layoutSidebarLeft=new v("layout-sidebar-left",{fontCharacter:"\\ebf3"}),v.layoutSidebarRight=new v("layout-sidebar-right",{fontCharacter:"\\ebf4"}),v.layoutStatusbar=new v("layout-statusbar",{fontCharacter:"\\ebf5"}),v.layoutMenubar=new v("layout-menubar",{fontCharacter:"\\ebf6"}),v.layoutCentered=new v("layout-centered",{fontCharacter:"\\ebf7"}),v.layoutSidebarRightOff=new v("layout-sidebar-right-off",{fontCharacter:"\\ec00"}),v.layoutPanelOff=new v("layout-panel-off",{fontCharacter:"\\ec01"}),v.layoutSidebarLeftOff=new v("layout-sidebar-left-off",{fontCharacter:"\\ec02"}),v.target=new v("target",{fontCharacter:"\\ebf8"}),v.indent=new v("indent",{fontCharacter:"\\ebf9"}),v.recordSmall=new v("record-small",{fontCharacter:"\\ebfa"}),v.errorSmall=new v("error-small",{fontCharacter:"\\ebfb"}),v.arrowCircleDown=new v("arrow-circle-down",{fontCharacter:"\\ebfc"}),v.arrowCircleLeft=new v("arrow-circle-left",{fontCharacter:"\\ebfd"}),v.arrowCircleRight=new v("arrow-circle-right",{fontCharacter:"\\ebfe"}),v.arrowCircleUp=new v("arrow-circle-up",{fontCharacter:"\\ebff"}),v.heartFilled=new v("heart-filled",{fontCharacter:"\\ec04"}),v.map=new v("map",{fontCharacter:"\\ec05"}),v.mapFilled=new v("map-filled",{fontCharacter:"\\ec06"}),v.circleSmall=new v("circle-small",{fontCharacter:"\\ec07"}),v.bellSlash=new v("bell-slash",{fontCharacter:"\\ec08"}),v.bellSlashDot=new v("bell-slash-dot",{fontCharacter:"\\ec09"}),v.commentUnresolved=new v("comment-unresolved",{fontCharacter:"\\ec0a"}),v.gitPullRequestGoToChanges=new v("git-pull-request-go-to-changes",{fontCharacter:"\\ec0b"}),v.gitPullRequestNewChanges=new v("git-pull-request-new-changes",{fontCharacter:"\\ec0c"}),v.dialogError=new v("dialog-error",v.error.definition),v.dialogWarning=new v("dialog-warning",v.warning.definition),v.dialogInfo=new v("dialog-info",v.info.definition),v.dialogClose=new v("dialog-close",v.close.definition),v.treeItemExpanded=new v("tree-item-expanded",v.chevronDown.definition),v.treeFilterOnTypeOn=new v("tree-filter-on-type-on",v.listFilter.definition),v.treeFilterOnTypeOff=new v("tree-filter-on-type-off",v.listSelection.definition),v.treeFilterClear=new v("tree-filter-clear",v.close.definition),v.treeItemLoading=new v("tree-item-loading",v.loading.definition),v.menuSelection=new v("menu-selection",v.check.definition),v.menuSubmenu=new v("menu-submenu",v.chevronRight.definition),v.menuBarMore=new v("menubar-more",v.more.definition),v.scrollbarButtonLeft=new v("scrollbar-button-left",v.triangleLeft.definition),v.scrollbarButtonRight=new v("scrollbar-button-right",v.triangleRight.definition),v.scrollbarButtonUp=new v("scrollbar-button-up",v.triangleUp.definition),v.scrollbarButtonDown=new v("scrollbar-button-down",v.triangleDown.definition),v.toolBarMore=new v("toolbar-more",v.more.definition),v.quickInputBack=new v("quick-input-back",v.arrowLeft.definition);var k;(function(D){D.iconNameSegment="[A-Za-z0-9]+",D.iconNameExpression="[A-Za-z0-9-]+",D.iconModifierExpression="~[A-Za-z]+",D.iconNameCharacter="[A-Za-z0-9~-]";const w=new RegExp(`^(${D.iconNameExpression})(${D.iconModifierExpression})?$`);function b(u){if(u instanceof v)return["codicon","codicon-"+u.id];const n=w.exec(u.id);if(!n)return b(v.error);const[,i,t]=n,o=["codicon","codicon-"+i];return t&&o.push("codicon-modifier-"+t.substr(1)),o}D.asClassNameArray=b;function C(u){return b(u).join(" ")}D.asClassName=C;function h(u){return"."+b(u).join(".")}D.asCSSSelector=h})(k=e.CSSIcon||(e.CSSIcon={}))}),define(oe[327],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SetMap=void 0;class y{constructor(){this.map=new Map}add(k,D){let w=this.map.get(k);w||(w=new Set,this.map.set(k,w)),w.add(D)}delete(k,D){const w=this.map.get(k);!w||(w.delete(D),w.size===0&&this.map.delete(k))}forEach(k,D){const w=this.map.get(k);!w||w.forEach(D)}}e.SetMap=y}),define(oe[31],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Color=e.HSVA=e.HSLA=e.RGBA=void 0;function y(b,C){const h=Math.pow(10,C);return Math.round(b*h)/h}class v{constructor(C,h,u,n=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,C))|0,this.g=Math.min(255,Math.max(0,h))|0,this.b=Math.min(255,Math.max(0,u))|0,this.a=y(Math.max(Math.min(1,n),0),3)}static equals(C,h){return C.r===h.r&&C.g===h.g&&C.b===h.b&&C.a===h.a}}e.RGBA=v;class k{constructor(C,h,u,n){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,C),0)|0,this.s=y(Math.max(Math.min(1,h),0),3),this.l=y(Math.max(Math.min(1,u),0),3),this.a=y(Math.max(Math.min(1,n),0),3)}static equals(C,h){return C.h===h.h&&C.s===h.s&&C.l===h.l&&C.a===h.a}static fromRGBA(C){const h=C.r/255,u=C.g/255,n=C.b/255,i=C.a,t=Math.max(h,u,n),o=Math.min(h,u,n);let s=0,d=0;const l=(o+t)/2,a=t-o;if(a>0){switch(d=Math.min(l<=.5?a/(2*l):a/(2-2*l),1),t){case h:s=(u-n)/a+(u<n?6:0);break;case u:s=(n-h)/a+2;break;case n:s=(h-u)/a+4;break}s*=60,s=Math.round(s)}return new k(s,d,l,i)}static _hue2rgb(C,h,u){return u<0&&(u+=1),u>1&&(u-=1),u<1/6?C+(h-C)*6*u:u<1/2?h:u<2/3?C+(h-C)*(2/3-u)*6:C}static toRGBA(C){const h=C.h/360,{s:u,l:n,a:i}=C;let t,o,s;if(u===0)t=o=s=n;else{const d=n<.5?n*(1+u):n+u-n*u,l=2*n-d;t=k._hue2rgb(l,d,h+1/3),o=k._hue2rgb(l,d,h),s=k._hue2rgb(l,d,h-1/3)}return new v(Math.round(t*255),Math.round(o*255),Math.round(s*255),i)}}e.HSLA=k;class D{constructor(C,h,u,n){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,C),0)|0,this.s=y(Math.max(Math.min(1,h),0),3),this.v=y(Math.max(Math.min(1,u),0),3),this.a=y(Math.max(Math.min(1,n),0),3)}static equals(C,h){return C.h===h.h&&C.s===h.s&&C.v===h.v&&C.a===h.a}static fromRGBA(C){const h=C.r/255,u=C.g/255,n=C.b/255,i=Math.max(h,u,n),t=Math.min(h,u,n),o=i-t,s=i===0?0:o/i;let d;return o===0?d=0:i===h?d=((u-n)/o%6+6)%6:i===u?d=(n-h)/o+2:d=(h-u)/o+4,new D(Math.round(d*60),s,i,C.a)}static toRGBA(C){const{h,s:u,v:n,a:i}=C,t=n*u,o=t*(1-Math.abs(h/60%2-1)),s=n-t;let[d,l,a]=[0,0,0];return h<60?(d=t,l=o):h<120?(d=o,l=t):h<180?(l=t,a=o):h<240?(l=o,a=t):h<300?(d=o,a=t):h<=360&&(d=t,a=o),d=Math.round((d+s)*255),l=Math.round((l+s)*255),a=Math.round((a+s)*255),new v(d,l,a,i)}}e.HSVA=D;class w{constructor(C){if(C)if(C instanceof v)this.rgba=C;else if(C instanceof k)this._hsla=C,this.rgba=k.toRGBA(C);else if(C instanceof D)this._hsva=C,this.rgba=D.toRGBA(C);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}static fromHex(C){return w.Format.CSS.parseHex(C)||w.red}get hsla(){return this._hsla?this._hsla:k.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:D.fromRGBA(this.rgba)}equals(C){return!!C&&v.equals(this.rgba,C.rgba)&&k.equals(this.hsla,C.hsla)&&D.equals(this.hsva,C.hsva)}getRelativeLuminance(){const C=w._relativeLuminanceForComponent(this.rgba.r),h=w._relativeLuminanceForComponent(this.rgba.g),u=w._relativeLuminanceForComponent(this.rgba.b),n=.2126*C+.7152*h+.0722*u;return y(n,4)}static _relativeLuminanceForComponent(C){const h=C/255;return h<=.03928?h/12.92:Math.pow((h+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(C){const h=this.getRelativeLuminance(),u=C.getRelativeLuminance();return h>u}isDarkerThan(C){const h=this.getRelativeLuminance(),u=C.getRelativeLuminance();return h<u}lighten(C){return new w(new k(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*C,this.hsla.a))}darken(C){return new w(new k(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*C,this.hsla.a))}transparent(C){const{r:h,g:u,b:n,a:i}=this.rgba;return new w(new v(h,u,n,i*C))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new w(new v(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}toString(){return this._toString||(this._toString=w.Format.CSS.format(this)),this._toString}static getLighterColor(C,h,u){if(C.isLighterThan(h))return C;u=u||.5;const n=C.getRelativeLuminance(),i=h.getRelativeLuminance();return u=u*(i-n)/i,C.lighten(u)}static getDarkerColor(C,h,u){if(C.isDarkerThan(h))return C;u=u||.5;const n=C.getRelativeLuminance(),i=h.getRelativeLuminance();return u=u*(n-i)/n,C.darken(u)}}e.Color=w,w.white=new w(new v(255,255,255,1)),w.black=new w(new v(0,0,0,1)),w.red=new w(new v(255,0,0,1)),w.blue=new w(new v(0,0,255,1)),w.green=new w(new v(0,255,0,1)),w.cyan=new w(new v(0,255,255,1)),w.lightgrey=new w(new v(211,211,211,1)),w.transparent=new w(new v(0,0,0,0)),function(b){let C;(function(h){let u;(function(n){function i(f){return f.rgba.a===1?`rgb(${f.rgba.r}, ${f.rgba.g}, ${f.rgba.b})`:b.Format.CSS.formatRGBA(f)}n.formatRGB=i;function t(f){return`rgba(${f.rgba.r}, ${f.rgba.g}, ${f.rgba.b}, ${+f.rgba.a.toFixed(2)})`}n.formatRGBA=t;function o(f){return f.hsla.a===1?`hsl(${f.hsla.h}, ${(f.hsla.s*100).toFixed(2)}%, ${(f.hsla.l*100).toFixed(2)}%)`:b.Format.CSS.formatHSLA(f)}n.formatHSL=o;function s(f){return`hsla(${f.hsla.h}, ${(f.hsla.s*100).toFixed(2)}%, ${(f.hsla.l*100).toFixed(2)}%, ${f.hsla.a.toFixed(2)})`}n.formatHSLA=s;function d(f){const _=f.toString(16);return _.length!==2?"0"+_:_}function l(f){return`#${d(f.rgba.r)}${d(f.rgba.g)}${d(f.rgba.b)}`}n.formatHex=l;function a(f,_=!1){return _&&f.rgba.a===1?b.Format.CSS.formatHex(f):`#${d(f.rgba.r)}${d(f.rgba.g)}${d(f.rgba.b)}${d(Math.round(f.rgba.a*255))}`}n.formatHexA=a;function r(f){return f.isOpaque()?b.Format.CSS.formatHex(f):b.Format.CSS.formatRGBA(f)}n.format=r;function c(f){const _=f.length;if(_===0||f.charCodeAt(0)!==35)return null;if(_===7){const p=16*g(f.charCodeAt(1))+g(f.charCodeAt(2)),m=16*g(f.charCodeAt(3))+g(f.charCodeAt(4)),S=16*g(f.charCodeAt(5))+g(f.charCodeAt(6));return new b(new v(p,m,S,1))}if(_===9){const p=16*g(f.charCodeAt(1))+g(f.charCodeAt(2)),m=16*g(f.charCodeAt(3))+g(f.charCodeAt(4)),S=16*g(f.charCodeAt(5))+g(f.charCodeAt(6)),E=16*g(f.charCodeAt(7))+g(f.charCodeAt(8));return new b(new v(p,m,S,E/255))}if(_===4){const p=g(f.charCodeAt(1)),m=g(f.charCodeAt(2)),S=g(f.charCodeAt(3));return new b(new v(16*p+p,16*m+m,16*S+S))}if(_===5){const p=g(f.charCodeAt(1)),m=g(f.charCodeAt(2)),S=g(f.charCodeAt(3)),E=g(f.charCodeAt(4));return new b(new v(16*p+p,16*m+m,16*S+S,(16*E+E)/255))}return null}n.parseHex=c;function g(f){switch(f){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}})(u=h.CSS||(h.CSS={}))})(C=b.Format||(b.Format={}))}(w=e.Color||(e.Color={}))}),define(oe[178],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VSDataTransfer=e.createFileDataTransferItem=e.createStringDataTransferItem=void 0;function y(D){return{asString:()=>be(this,void 0,void 0,function*(){return D}),asFile:()=>{},value:typeof D=="string"?D:void 0}}e.createStringDataTransferItem=y;function v(D,w,b){return{asString:()=>be(this,void 0,void 0,function*(){return""}),asFile:()=>({name:D,uri:w,data:b}),value:void 0}}e.createFileDataTransferItem=v;class k{constructor(){this._entries=new Map}get size(){return this._entries.size}has(w){return this._entries.has(this.toKey(w))}get(w){var b;return(b=this._entries.get(this.toKey(w)))===null||b===void 0?void 0:b[0]}append(w,b){const C=this._entries.get(w);C?C.push(b):this._entries.set(this.toKey(w),[b])}replace(w,b){this._entries.set(this.toKey(w),[b])}delete(w){this._entries.delete(this.toKey(w))}*entries(){for(const[w,b]of this._entries.entries())for(const C of b)yield[w,C]}values(){return Array.from(this._entries.values()).flat()}forEach(w){for(const[b,C]of this.entries())w(C,b)}toKey(w){return w.toLowerCase()}}e.VSDataTransfer=k}),define(oe[103],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.memoize=void 0;function y(v,k,D){let w=null,b=null;if(typeof D.value=="function"?(w="value",b=D.value,b.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof D.get=="function"&&(w="get",b=D.get),!b)throw new Error("not supported");const C=`$memoize$${k}`;D[w]=function(...h){return this.hasOwnProperty(C)||Object.defineProperty(this,C,{configurable:!1,enumerable:!1,writable:!1,value:b.apply(this,h)}),this[C]}}e.memoize=y}),define(oe[328],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DiffChange=void 0;class y{constructor(k,D,w,b){this.originalStart=k,this.originalLength=D,this.modifiedStart=w,this.modifiedLength=b}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}e.DiffChange=y}),define(oe[14],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BugIndicatingError=e.ErrorNoTelemetry=e.NotSupportedError=e.illegalState=e.illegalArgument=e.canceled=e.CancellationError=e.isCancellationError=e.transformErrorForSerialization=e.onUnexpectedExternalError=e.onUnexpectedError=e.errorHandler=e.ErrorHandler=void 0;class y{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(d){setTimeout(()=>{throw d.stack?t.isErrorNoTelemetry(d)?new t(d.message+` `+d.stack):new Error(d.message+` `+d.stack):d},0)}}emit(d){this.listeners.forEach(l=>{l(d)})}onUnexpectedError(d){this.unexpectedErrorHandler(d),this.emit(d)}onUnexpectedExternalError(d){this.unexpectedErrorHandler(d)}}e.ErrorHandler=y,e.errorHandler=new y;function v(s){b(s)||e.errorHandler.onUnexpectedError(s)}e.onUnexpectedError=v;function k(s){b(s)||e.errorHandler.onUnexpectedExternalError(s)}e.onUnexpectedExternalError=k;function D(s){if(s instanceof Error){const{name:d,message:l}=s,a=s.stacktrace||s.stack;return{$isError:!0,name:d,message:l,stack:a,noTelemetry:t.isErrorNoTelemetry(s)}}return s}e.transformErrorForSerialization=D;const w="Canceled";function b(s){return s instanceof C?!0:s instanceof Error&&s.name===w&&s.message===w}e.isCancellationError=b;class C extends Error{constructor(){super(w),this.name=this.message}}e.CancellationError=C;function h(){const s=new Error(w);return s.name=s.message,s}e.canceled=h;function u(s){return s?new Error(`Illegal argument: ${s}`):new Error("Illegal argument")}e.illegalArgument=u;function n(s){return s?new Error(`Illegal state: ${s}`):new Error("Illegal state")}e.illegalState=n;class i extends Error{constructor(d){super("NotSupported"),d&&(this.message=d)}}e.NotSupportedError=i;class t extends Error{constructor(d){super(d),this.name="ErrorNoTelemetry"}static fromError(d){if(d instanceof t)return d;const l=new t;return l.message=d.message,l.stack=d.stack,l}static isErrorNoTelemetry(d){return d.name==="ErrorNoTelemetry"}}e.ErrorNoTelemetry=t;class o extends Error{constructor(d){super(d||"An unexpected bug occurred."),Object.setPrototypeOf(this,o.prototype);debugger}}e.BugIndicatingError=o}),define(oe[96],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.once=void 0;function y(v){const k=this;let D=!1,w;return function(){return D||(D=!0,w=v.apply(k,arguments)),w}}e.once=y}),define(oe[144],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultGenerator=e.IdGenerator=void 0;class y{constructor(k){this._prefix=k,this._lastId=0}nextId(){return this._prefix+ ++this._lastId}}e.IdGenerator=y,e.defaultGenerator=new y("id#")}),define(oe[55],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Iterable=void 0;var y;(function(v){function k(_){return _&&typeof _=="object"&&typeof _[Symbol.iterator]=="function"}v.is=k;const D=Object.freeze([]);function w(){return D}v.empty=w;function*b(_){yield _}v.single=b;function C(_){return _||D}v.from=C;function h(_){return!_||_[Symbol.iterator]().next().done===!0}v.isEmpty=h;function u(_){return _[Symbol.iterator]().next().value}v.first=u;function n(_,p){for(const m of _)if(p(m))return!0;return!1}v.some=n;function i(_,p){for(const m of _)if(p(m))return m}v.find=i;function*t(_,p){for(const m of _)p(m)&&(yield m)}v.filter=t;function*o(_,p){let m=0;for(const S of _)yield p(S,m++)}v.map=o;function*s(..._){for(const p of _)for(const m of p)yield m}v.concat=s;function*d(_){for(const p of _)for(const m of p)yield m}v.concatNested=d;function l(_,p,m){let S=m;for(const E of _)S=p(S,E);return S}v.reduce=l;function a(_,p){let m=0;for(const S of _)p(S,m++)}v.forEach=a;function*r(_,p,m=_.length){for(p<0&&(p+=_.length),m<0?m+=_.length:m>_.length&&(m=_.length);p<m;p++)yield _[p]}v.slice=r;function c(_,p=Number.POSITIVE_INFINITY){const m=[];if(p===0)return[m,_];const S=_[Symbol.iterator]();for(let E=0;E<p;E++){const L=S.next();if(L.done)return[m,v.empty()];m.push(L.value)}return[m,{[Symbol.iterator](){return S}}]}v.consume=c;function g(_){return c(_)[0]}v.collect=g;function f(_,p,m=(S,E)=>S===E){const S=_[Symbol.iterator](),E=p[Symbol.iterator]();for(;;){const L=S.next(),N=E.next();if(L.done!==N.done)return!1;if(L.done)return!0;if(!m(L.value,N.value))return!1}}v.equals=f})(y=e.Iterable||(e.Iterable={}))}),define(oe[59],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KeyChord=e.KeyCodeUtils=e.IMMUTABLE_KEY_CODE_TO_CODE=e.IMMUTABLE_CODE_TO_KEY_CODE=e.NATIVE_WINDOWS_KEY_CODE_TO_KEY_CODE=e.EVENT_KEY_CODE_MAP=void 0;class y{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(i,t){this._keyCodeToStr[i]=t,this._strToKeyCode[t.toLowerCase()]=i}keyCodeToStr(i){return this._keyCodeToStr[i]}strToKeyCode(i){return this._strToKeyCode[i.toLowerCase()]||0}}const v=new y,k=new y,D=new y;e.EVENT_KEY_CODE_MAP=new Array(230),e.NATIVE_WINDOWS_KEY_CODE_TO_KEY_CODE={};const w=[],b=Object.create(null),C=Object.create(null);e.IMMUTABLE_CODE_TO_KEY_CODE=[],e.IMMUTABLE_KEY_CODE_TO_CODE=[];for(let n=0;n<=193;n++)e.IMMUTABLE_CODE_TO_KEY_CODE[n]=-1;for(let n=0;n<=127;n++)e.IMMUTABLE_KEY_CODE_TO_CODE[n]=-1;(function(){const n="",i=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN",n,n],[0,1,1,"Hyper",0,n,0,n,n,n],[0,1,2,"Super",0,n,0,n,n,n],[0,1,3,"Fn",0,n,0,n,n,n],[0,1,4,"FnLock",0,n,0,n,n,n],[0,1,5,"Suspend",0,n,0,n,n,n],[0,1,6,"Resume",0,n,0,n,n,n],[0,1,7,"Turbo",0,n,0,n,n,n],[0,1,8,"Sleep",0,n,0,"VK_SLEEP",n,n],[0,1,9,"WakeUp",0,n,0,n,n,n],[31,0,10,"KeyA",31,"A",65,"VK_A",n,n],[32,0,11,"KeyB",32,"B",66,"VK_B",n,n],[33,0,12,"KeyC",33,"C",67,"VK_C",n,n],[34,0,13,"KeyD",34,"D",68,"VK_D",n,n],[35,0,14,"KeyE",35,"E",69,"VK_E",n,n],[36,0,15,"KeyF",36,"F",70,"VK_F",n,n],[37,0,16,"KeyG",37,"G",71,"VK_G",n,n],[38,0,17,"KeyH",38,"H",72,"VK_H",n,n],[39,0,18,"KeyI",39,"I",73,"VK_I",n,n],[40,0,19,"KeyJ",40,"J",74,"VK_J",n,n],[41,0,20,"KeyK",41,"K",75,"VK_K",n,n],[42,0,21,"KeyL",42,"L",76,"VK_L",n,n],[43,0,22,"KeyM",43,"M",77,"VK_M",n,n],[44,0,23,"KeyN",44,"N",78,"VK_N",n,n],[45,0,24,"KeyO",45,"O",79,"VK_O",n,n],[46,0,25,"KeyP",46,"P",80,"VK_P",n,n],[47,0,26,"KeyQ",47,"Q",81,"VK_Q",n,n],[48,0,27,"KeyR",48,"R",82,"VK_R",n,n],[49,0,28,"KeyS",49,"S",83,"VK_S",n,n],[50,0,29,"KeyT",50,"T",84,"VK_T",n,n],[51,0,30,"KeyU",51,"U",85,"VK_U",n,n],[52,0,31,"KeyV",52,"V",86,"VK_V",n,n],[53,0,32,"KeyW",53,"W",87,"VK_W",n,n],[54,0,33,"KeyX",54,"X",88,"VK_X",n,n],[55,0,34,"KeyY",55,"Y",89,"VK_Y",n,n],[56,0,35,"KeyZ",56,"Z",90,"VK_Z",n,n],[22,0,36,"Digit1",22,"1",49,"VK_1",n,n],[23,0,37,"Digit2",23,"2",50,"VK_2",n,n],[24,0,38,"Digit3",24,"3",51,"VK_3",n,n],[25,0,39,"Digit4",25,"4",52,"VK_4",n,n],[26,0,40,"Digit5",26,"5",53,"VK_5",n,n],[27,0,41,"Digit6",27,"6",54,"VK_6",n,n],[28,0,42,"Digit7",28,"7",55,"VK_7",n,n],[29,0,43,"Digit8",29,"8",56,"VK_8",n,n],[30,0,44,"Digit9",30,"9",57,"VK_9",n,n],[21,0,45,"Digit0",21,"0",48,"VK_0",n,n],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN",n,n],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE",n,n],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK",n,n],[2,1,49,"Tab",2,"Tab",9,"VK_TAB",n,n],[10,1,50,"Space",10,"Space",32,"VK_SPACE",n,n],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,n,0,n,n,n],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",n,n],[59,1,64,"F1",59,"F1",112,"VK_F1",n,n],[60,1,65,"F2",60,"F2",113,"VK_F2",n,n],[61,1,66,"F3",61,"F3",114,"VK_F3",n,n],[62,1,67,"F4",62,"F4",115,"VK_F4",n,n],[63,1,68,"F5",63,"F5",116,"VK_F5",n,n],[64,1,69,"F6",64,"F6",117,"VK_F6",n,n],[65,1,70,"F7",65,"F7",118,"VK_F7",n,n],[66,1,71,"F8",66,"F8",119,"VK_F8",n,n],[67,1,72,"F9",67,"F9",120,"VK_F9",n,n],[68,1,73,"F10",68,"F10",121,"VK_F10",n,n],[69,1,74,"F11",69,"F11",122,"VK_F11",n,n],[70,1,75,"F12",70,"F12",123,"VK_F12",n,n],[0,1,76,"PrintScreen",0,n,0,n,n,n],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL",n,n],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",n,n],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT",n,n],[14,1,80,"Home",14,"Home",36,"VK_HOME",n,n],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",n,n],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE",n,n],[13,1,83,"End",13,"End",35,"VK_END",n,n],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT",n,n],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",n],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",n],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",n],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",n],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK",n,n],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE",n,n],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY",n,n],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT",n,n],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD",n,n],[3,1,94,"NumpadEnter",3,n,0,n,n,n],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1",n,n],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2",n,n],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3",n,n],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4",n,n],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5",n,n],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6",n,n],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7",n,n],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8",n,n],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9",n,n],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0",n,n],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL",n,n],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102",n,n],[58,1,107,"ContextMenu",58,"ContextMenu",93,n,n,n],[0,1,108,"Power",0,n,0,n,n,n],[0,1,109,"NumpadEqual",0,n,0,n,n,n],[71,1,110,"F13",71,"F13",124,"VK_F13",n,n],[72,1,111,"F14",72,"F14",125,"VK_F14",n,n],[73,1,112,"F15",73,"F15",126,"VK_F15",n,n],[74,1,113,"F16",74,"F16",127,"VK_F16",n,n],[75,1,114,"F17",75,"F17",128,"VK_F17",n,n],[76,1,115,"F18",76,"F18",129,"VK_F18",n,n],[77,1,116,"F19",77,"F19",130,"VK_F19",n,n],[0,1,117,"F20",0,n,0,"VK_F20",n,n],[0,1,118,"F21",0,n,0,"VK_F21",n,n],[0,1,119,"F22",0,n,0,"VK_F22",n,n],[0,1,120,"F23",0,n,0,"VK_F23",n,n],[0,1,121,"F24",0,n,0,"VK_F24",n,n],[0,1,122,"Open",0,n,0,n,n,n],[0,1,123,"Help",0,n,0,n,n,n],[0,1,124,"Select",0,n,0,n,n,n],[0,1,125,"Again",0,n,0,n,n,n],[0,1,126,"Undo",0,n,0,n,n,n],[0,1,127,"Cut",0,n,0,n,n,n],[0,1,128,"Copy",0,n,0,n,n,n],[0,1,129,"Paste",0,n,0,n,n,n],[0,1,130,"Find",0,n,0,n,n,n],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE",n,n],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP",n,n],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN",n,n],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR",n,n],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1",n,n],[0,1,136,"KanaMode",0,n,0,n,n,n],[0,0,137,"IntlYen",0,n,0,n,n,n],[0,1,138,"Convert",0,n,0,n,n,n],[0,1,139,"NonConvert",0,n,0,n,n,n],[0,1,140,"Lang1",0,n,0,n,n,n],[0,1,141,"Lang2",0,n,0,n,n,n],[0,1,142,"Lang3",0,n,0,n,n,n],[0,1,143,"Lang4",0,n,0,n,n,n],[0,1,144,"Lang5",0,n,0,n,n,n],[0,1,145,"Abort",0,n,0,n,n,n],[0,1,146,"Props",0,n,0,n,n,n],[0,1,147,"NumpadParenLeft",0,n,0,n,n,n],[0,1,148,"NumpadParenRight",0,n,0,n,n,n],[0,1,149,"NumpadBackspace",0,n,0,n,n,n],[0,1,150,"NumpadMemoryStore",0,n,0,n,n,n],[0,1,151,"NumpadMemoryRecall",0,n,0,n,n,n],[0,1,152,"NumpadMemoryClear",0,n,0,n,n,n],[0,1,153,"NumpadMemoryAdd",0,n,0,n,n,n],[0,1,154,"NumpadMemorySubtract",0,n,0,n,n,n],[0,1,155,"NumpadClear",126,"Clear",12,"VK_CLEAR",n,n],[0,1,156,"NumpadClearEntry",0,n,0,n,n,n],[5,1,0,n,5,"Ctrl",17,"VK_CONTROL",n,n],[4,1,0,n,4,"Shift",16,"VK_SHIFT",n,n],[6,1,0,n,6,"Alt",18,"VK_MENU",n,n],[57,1,0,n,57,"Meta",0,"VK_COMMAND",n,n],[5,1,157,"ControlLeft",5,n,0,"VK_LCONTROL",n,n],[4,1,158,"ShiftLeft",4,n,0,"VK_LSHIFT",n,n],[6,1,159,"AltLeft",6,n,0,"VK_LMENU",n,n],[57,1,160,"MetaLeft",57,n,0,"VK_LWIN",n,n],[5,1,161,"ControlRight",5,n,0,"VK_RCONTROL",n,n],[4,1,162,"ShiftRight",4,n,0,"VK_RSHIFT",n,n],[6,1,163,"AltRight",6,n,0,"VK_RMENU",n,n],[57,1,164,"MetaRight",57,n,0,"VK_RWIN",n,n],[0,1,165,"BrightnessUp",0,n,0,n,n,n],[0,1,166,"BrightnessDown",0,n,0,n,n,n],[0,1,167,"MediaPlay",0,n,0,n,n,n],[0,1,168,"MediaRecord",0,n,0,n,n,n],[0,1,169,"MediaFastForward",0,n,0,n,n,n],[0,1,170,"MediaRewind",0,n,0,n,n,n],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",n,n],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",n,n],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP",n,n],[0,1,174,"Eject",0,n,0,n,n,n],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",n,n],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",n,n],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",n,n],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",n,n],[0,1,179,"LaunchApp1",0,n,0,"VK_MEDIA_LAUNCH_APP1",n,n],[0,1,180,"SelectTask",0,n,0,n,n,n],[0,1,181,"LaunchScreenSaver",0,n,0,n,n,n],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH",n,n],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME",n,n],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK",n,n],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD",n,n],[0,1,186,"BrowserStop",0,n,0,"VK_BROWSER_STOP",n,n],[0,1,187,"BrowserRefresh",0,n,0,"VK_BROWSER_REFRESH",n,n],[0,1,188,"BrowserFavorites",0,n,0,"VK_BROWSER_FAVORITES",n,n],[0,1,189,"ZoomToggle",0,n,0,n,n,n],[0,1,190,"MailReply",0,n,0,n,n,n],[0,1,191,"MailForward",0,n,0,n,n,n],[0,1,192,"MailSend",0,n,0,n,n,n],[109,1,0,n,109,"KeyInComposition",229,n,n,n],[111,1,0,n,111,"ABNT_C2",194,"VK_ABNT_C2",n,n],[91,1,0,n,91,"OEM_8",223,"VK_OEM_8",n,n],[0,1,0,n,0,n,0,"VK_KANA",n,n],[0,1,0,n,0,n,0,"VK_HANGUL",n,n],[0,1,0,n,0,n,0,"VK_JUNJA",n,n],[0,1,0,n,0,n,0,"VK_FINAL",n,n],[0,1,0,n,0,n,0,"VK_HANJA",n,n],[0,1,0,n,0,n,0,"VK_KANJI",n,n],[0,1,0,n,0,n,0,"VK_CONVERT",n,n],[0,1,0,n,0,n,0,"VK_NONCONVERT",n,n],[0,1,0,n,0,n,0,"VK_ACCEPT",n,n],[0,1,0,n,0,n,0,"VK_MODECHANGE",n,n],[0,1,0,n,0,n,0,"VK_SELECT",n,n],[0,1,0,n,0,n,0,"VK_PRINT",n,n],[0,1,0,n,0,n,0,"VK_EXECUTE",n,n],[0,1,0,n,0,n,0,"VK_SNAPSHOT",n,n],[0,1,0,n,0,n,0,"VK_HELP",n,n],[0,1,0,n,0,n,0,"VK_APPS",n,n],[0,1,0,n,0,n,0,"VK_PROCESSKEY",n,n],[0,1,0,n,0,n,0,"VK_PACKET",n,n],[0,1,0,n,0,n,0,"VK_DBE_SBCSCHAR",n,n],[0,1,0,n,0,n,0,"VK_DBE_DBCSCHAR",n,n],[0,1,0,n,0,n,0,"VK_ATTN",n,n],[0,1,0,n,0,n,0,"VK_CRSEL",n,n],[0,1,0,n,0,n,0,"VK_EXSEL",n,n],[0,1,0,n,0,n,0,"VK_EREOF",n,n],[0,1,0,n,0,n,0,"VK_PLAY",n,n],[0,1,0,n,0,n,0,"VK_ZOOM",n,n],[0,1,0,n,0,n,0,"VK_NONAME",n,n],[0,1,0,n,0,n,0,"VK_PA1",n,n],[0,1,0,n,0,n,0,"VK_OEM_CLEAR",n,n]],t=[],o=[];for(const s of i){const[d,l,a,r,c,g,f,_,p,m]=s;if(o[a]||(o[a]=!0,w[a]=r,b[r]=a,C[r.toLowerCase()]=a,l&&(e.IMMUTABLE_CODE_TO_KEY_CODE[a]=c,c!==0&&c!==3&&c!==5&&c!==4&&c!==6&&c!==57&&(e.IMMUTABLE_KEY_CODE_TO_CODE[c]=a))),!t[c]){if(t[c]=!0,!g)throw new Error(`String representation missing for key code ${c} around scan code ${r}`);v.define(c,g),k.define(c,p||g),D.define(c,m||p||g)}f&&(e.EVENT_KEY_CODE_MAP[f]=c),_&&(e.NATIVE_WINDOWS_KEY_CODE_TO_KEY_CODE[_]=c)}e.IMMUTABLE_KEY_CODE_TO_CODE[3]=46})();var h;(function(n){function i(a){return v.keyCodeToStr(a)}n.toString=i;function t(a){return v.strToKeyCode(a)}n.fromString=t;function o(a){return k.keyCodeToStr(a)}n.toUserSettingsUS=o;function s(a){return D.keyCodeToStr(a)}n.toUserSettingsGeneral=s;function d(a){return k.strToKeyCode(a)||D.strToKeyCode(a)}n.fromUserSettings=d;function l(a){if(a>=93&&a<=108)return null;switch(a){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return v.keyCodeToStr(a)}n.toElectronAccelerator=l})(h=e.KeyCodeUtils||(e.KeyCodeUtils={}));function u(n,i){const t=(i&65535)<<16>>>0;return(n|t)>>>0}e.KeyChord=u}),define(oe[104],se([1,0,14]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ResolvedKeybinding=e.ResolvedKeybindingPart=e.ScanCodeBinding=e.ChordKeybinding=e.SimpleKeybinding=e.createSimpleKeybinding=e.createKeybinding=void 0;function v(u,n){if(u===0)return null;const i=(u&65535)>>>0,t=(u&4294901760)>>>16;return t!==0?new w([k(i,n),k(t,n)]):new w([k(i,n)])}e.createKeybinding=v;function k(u,n){const i=!!(u&2048),t=!!(u&256),o=n===2?t:i,s=!!(u&1024),d=!!(u&512),l=n===2?i:t,a=u&255;return new D(o,s,d,l,a)}e.createSimpleKeybinding=k;class D{constructor(n,i,t,o,s){this.ctrlKey=n,this.shiftKey=i,this.altKey=t,this.metaKey=o,this.keyCode=s}equals(n){return this.ctrlKey===n.ctrlKey&&this.shiftKey===n.shiftKey&&this.altKey===n.altKey&&this.metaKey===n.metaKey&&this.keyCode===n.keyCode}isModifierKey(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4}toChord(){return new w([this])}isDuplicateModifierCase(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57}}e.SimpleKeybinding=D;class w{constructor(n){if(n.length===0)throw(0,y.illegalArgument)("parts");this.parts=n}}e.ChordKeybinding=w;class b{constructor(n,i,t,o,s){this.ctrlKey=n,this.shiftKey=i,this.altKey=t,this.metaKey=o,this.scanCode=s}isDuplicateModifierCase(){return this.ctrlKey&&(this.scanCode===157||this.scanCode===161)||this.shiftKey&&(this.scanCode===158||this.scanCode===162)||this.altKey&&(this.scanCode===159||this.scanCode===163)||this.metaKey&&(this.scanCode===160||this.scanCode===164)}}e.ScanCodeBinding=b;class C{constructor(n,i,t,o,s,d){this.ctrlKey=n,this.shiftKey=i,this.altKey=t,this.metaKey=o,this.keyLabel=s,this.keyAriaLabel=d}}e.ResolvedKeybindingPart=C;class h{}e.ResolvedKeybinding=h}),define(oe[145],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Lazy=void 0;class y{constructor(k){this.executor=k,this._didRun=!1}hasValue(){return this._didRun}getValue(){if(!this._didRun)try{this._value=this.executor()}catch(k){this._error=k}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}e.Lazy=y}),define(oe[2],se([1,0,96,55]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ImmortalReference=e.SafeDisposable=e.RefCountedDisposable=e.MutableDisposable=e.Disposable=e.DisposableStore=e.toDisposable=e.combinedDisposable=e.dispose=e.isDisposable=e.MultiDisposeError=e.markAsSingleton=e.setDisposableTracker=void 0;const k=!1;let D=null;function w(_){D=_}if(e.setDisposableTracker=w,k){const _="__is_disposable_tracked__";w(new class{trackDisposable(p){const m=new Error("Potentially leaked disposable").stack;setTimeout(()=>{p[_]||console.log(m)},3e3)}setParent(p,m){if(p&&p!==a.None)try{p[_]=!0}catch{}}markAsDisposed(p){if(p&&p!==a.None)try{p[_]=!0}catch{}}markAsSingleton(p){}})}function b(_){return D?.trackDisposable(_),_}function C(_){D?.markAsDisposed(_)}function h(_,p){D?.setParent(_,p)}function u(_,p){if(D)for(const m of _)D.setParent(m,p)}function n(_){return D?.markAsSingleton(_),_}e.markAsSingleton=n;class i extends Error{constructor(p){super(`Encountered errors while disposing of store. Errors: [${p.join(", ")}]`),this.errors=p}}e.MultiDisposeError=i;function t(_){return typeof _.dispose=="function"&&_.dispose.length===0}e.isDisposable=t;function o(_){if(v.Iterable.is(_)){const p=[];for(const m of _)if(m)try{m.dispose()}catch(S){p.push(S)}if(p.length===1)throw p[0];if(p.length>1)throw new i(p);return Array.isArray(_)?[]:_}else if(_)return _.dispose(),_}e.dispose=o;function s(..._){const p=d(()=>o(_));return u(_,p),p}e.combinedDisposable=s;function d(_){const p=b({dispose:(0,y.once)(()=>{C(p),_()})});return p}e.toDisposable=d;class l{constructor(){this._toDispose=new Set,this._isDisposed=!1,b(this)}dispose(){this._isDisposed||(C(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){try{o(this._toDispose.values())}finally{this._toDispose.clear()}}add(p){if(!p)return p;if(p===this)throw new Error("Cannot register a disposable on itself!");return h(p,this),this._isDisposed?l.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(p),p}}e.DisposableStore=l,l.DISABLE_DISPOSED_WARNING=!1;class a{constructor(){this._store=new l,b(this),h(this._store,this)}dispose(){C(this),this._store.dispose()}_register(p){if(p===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(p)}}e.Disposable=a,a.None=Object.freeze({dispose(){}});class r{constructor(){this._isDisposed=!1,b(this)}get value(){return this._isDisposed?void 0:this._value}set value(p){var m;this._isDisposed||p===this._value||((m=this._value)===null||m===void 0||m.dispose(),p&&h(p,this),this._value=p)}clear(){this.value=void 0}dispose(){var p;this._isDisposed=!0,C(this),(p=this._value)===null||p===void 0||p.dispose(),this._value=void 0}clearAndLeak(){const p=this._value;return this._value=void 0,p&&h(p,null),p}}e.MutableDisposable=r;class c{constructor(p){this._disposable=p,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter==0&&this._disposable.dispose(),this}}e.RefCountedDisposable=c;class g{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1,b(this)}set(p){let m=p;return this.unset=()=>m=void 0,this.isset=()=>m!==void 0,this.dispose=()=>{m&&(m(),m=void 0,C(this))},this}}e.SafeDisposable=g;class f{constructor(p){this.object=p}dispose(){}}e.ImmortalReference=f}),define(oe[73],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinkedList=void 0;class y{constructor(D){this.element=D,this.next=y.Undefined,this.prev=y.Undefined}}y.Undefined=new y(void 0);class v{constructor(){this._first=y.Undefined,this._last=y.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===y.Undefined}clear(){let D=this._first;for(;D!==y.Undefined;){const w=D.next;D.prev=y.Undefined,D.next=y.Undefined,D=w}this._first=y.Undefined,this._last=y.Undefined,this._size=0}unshift(D){return this._insert(D,!1)}push(D){return this._insert(D,!0)}_insert(D,w){const b=new y(D);if(this._first===y.Undefined)this._first=b,this._last=b;else if(w){const h=this._last;this._last=b,b.prev=h,h.next=b}else{const h=this._first;this._first=b,b.next=h,h.prev=b}this._size+=1;let C=!1;return()=>{C||(C=!0,this._remove(b))}}shift(){if(this._first!==y.Undefined){const D=this._first.element;return this._remove(this._first),D}}pop(){if(this._last!==y.Undefined){const D=this._last.element;return this._remove(this._last),D}}_remove(D){if(D.prev!==y.Undefined&&D.next!==y.Undefined){const w=D.prev;w.next=D.next,D.next.prev=w}else D.prev===y.Undefined&&D.next===y.Undefined?(this._first=y.Undefined,this._last=y.Undefined):D.next===y.Undefined?(this._last=this._last.prev,this._last.next=y.Undefined):D.prev===y.Undefined&&(this._first=this._first.next,this._first.prev=y.Undefined);this._size-=1}*[Symbol.iterator](){let D=this._first;for(;D!==y.Undefined;)yield D.element,D=D.next}}e.LinkedList=v}),function(q,e){typeof exports=="object"&&typeof module<"u"?e(exports):typeof define=="function"&&define.amd?define(oe[329],se([0]),e):(q=typeof globalThis<"u"?globalThis:q||self,e(q.marked={}))}(this,function(q){"use strict";function e(z,Q){for(var W=0;W<Q.length;W++){var V=Q[W];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(z,V.key,V)}}function y(z,Q,W){return Q&&e(z.prototype,Q),W&&e(z,W),Object.defineProperty(z,"prototype",{writable:!1}),z}function v(z,Q){if(z){if(typeof z=="string")return k(z,Q);var W=Object.prototype.toString.call(z).slice(8,-1);if(W==="Object"&&z.constructor&&(W=z.constructor.name),W==="Map"||W==="Set")return Array.from(z);if(W==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(W))return k(z,Q)}}function k(z,Q){(Q==null||Q>z.length)&&(Q=z.length);for(var W=0,V=new Array(Q);W<Q;W++)V[W]=z[W];return V}function D(z,Q){var W=typeof Symbol<"u"&&z[Symbol.iterator]||z["@@iterator"];if(W)return(W=W.call(z)).next.bind(W);if(Array.isArray(z)||(W=v(z))||Q&&z&&typeof z.length=="number"){W&&(z=W);var V=0;return function(){return V>=z.length?{done:!0}:{done:!1,value:z[V++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}q.defaults=w();function b(z){q.defaults=z}var C=/[&<>"']/,h=/[&<>"']/g,u=/[<>"']|&(?!#?\w+;)/,n=/[<>"']|&(?!#?\w+;)/g,i={"&":"&","<":"<",">":">",'"':""","'":"'"},t=function(z){return i[z]};function o(z,Q){if(Q){if(C.test(z))return z.replace(h,t)}else if(u.test(z))return z.replace(n,t);return z}var s=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function d(z){return z.replace(s,function(Q,W){return W=W.toLowerCase(),W==="colon"?":":W.charAt(0)==="#"?W.charAt(1)==="x"?String.fromCharCode(parseInt(W.substring(2),16)):String.fromCharCode(+W.substring(1)):""})}var l=/(^|[^\[])\^/g;function a(z,Q){z=typeof z=="string"?z:z.source,Q=Q||"";var W={replace:function(V,ne){return ne=ne.source||ne,ne=ne.replace(l,"$1"),z=z.replace(V,ne),W},getRegex:function(){return new RegExp(z,Q)}};return W}var r=/[^\w:]/g,c=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function g(z,Q,W){if(z){var V;try{V=decodeURIComponent(d(W)).replace(r,"").toLowerCase()}catch{return null}if(V.indexOf("javascript:")===0||V.indexOf("vbscript:")===0||V.indexOf("data:")===0)return null}Q&&!c.test(W)&&(W=S(Q,W));try{W=encodeURI(W).replace(/%25/g,"%")}catch{return null}return W}var f={},_=/^[^:]+:\/*[^/]*$/,p=/^([^:]+:)[\s\S]*$/,m=/^([^:]+:\/*[^/]*)[\s\S]*$/;function S(z,Q){f[" "+z]||(_.test(z)?f[" "+z]=z+"/":f[" "+z]=I(z,"/",!0)),z=f[" "+z];var W=z.indexOf(":")===-1;return Q.substring(0,2)==="//"?W?Q:z.replace(p,"$1")+Q:Q.charAt(0)==="/"?W?Q:z.replace(m,"$1")+Q:z+Q}var E={exec:function(){}};function L(z){for(var Q=1,W,V;Q<arguments.length;Q++){W=arguments[Q];for(V in W)Object.prototype.hasOwnProperty.call(W,V)&&(z[V]=W[V])}return z}function N(z,Q){var W=z.replace(/\|/g,function(de,ce,ue){for(var me=!1,_e=ce;--_e>=0&&ue[_e]==="\\";)me=!me;return me?"|":" |"}),V=W.split(/ \|/),ne=0;if(V[0].trim()||V.shift(),V.length>0&&!V[V.length-1].trim()&&V.pop(),V.length>Q)V.splice(Q);else for(;V.length<Q;)V.push("");for(;ne<V.length;ne++)V[ne]=V[ne].trim().replace(/\\\|/g,"|");return V}function I(z,Q,W){var V=z.length;if(V===0)return"";for(var ne=0;ne<V;){var de=z.charAt(V-ne-1);if(de===Q&&!W)ne++;else if(de!==Q&&W)ne++;else break}return z.slice(0,V-ne)}function R(z,Q){if(z.indexOf(Q[1])===-1)return-1;for(var W=z.length,V=0,ne=0;ne<W;ne++)if(z[ne]==="\\")ne++;else if(z[ne]===Q[0])V++;else if(z[ne]===Q[1]&&(V--,V<0))return ne;return-1}function F(z){z&&z.sanitize&&!z.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function O(z,Q){if(Q<1)return"";for(var W="";Q>1;)Q&1&&(W+=z),Q>>=1,z+=z;return W+z}function x(z,Q,W,V){var ne=Q.href,de=Q.title?o(Q.title):null,ce=z[1].replace(/\\([\[\]])/g,"$1");if(z[0].charAt(0)!=="!"){V.state.inLink=!0;var ue={type:"link",raw:W,href:ne,title:de,text:ce,tokens:V.inlineTokens(ce,[])};return V.state.inLink=!1,ue}return{type:"image",raw:W,href:ne,title:de,text:o(ce)}}function M(z,Q){var W=z.match(/^(\s+)(?:```)/);if(W===null)return Q;var V=W[1];return Q.split(` `).map(function(ne){var de=ne.match(/^\s+/);if(de===null)return ne;var ce=de[0];return ce.length>=V.length?ne.slice(V.length):ne}).join(` `)}var P=function(){function z(W){this.options=W||q.defaults}var Q=z.prototype;return Q.space=function(W){var V=this.rules.block.newline.exec(W);if(V&&V[0].length>0)return{type:"space",raw:V[0]}},Q.code=function(W){var V=this.rules.block.code.exec(W);if(V){var ne=V[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:V[0],codeBlockStyle:"indented",text:this.options.pedantic?ne:I(ne,` `)}}},Q.fences=function(W){var V=this.rules.block.fences.exec(W);if(V){var ne=V[0],de=M(ne,V[3]||"");return{type:"code",raw:ne,lang:V[2]?V[2].trim():V[2],text:de}}},Q.heading=function(W){var V=this.rules.block.heading.exec(W);if(V){var ne=V[2].trim();if(/#$/.test(ne)){var de=I(ne,"#");(this.options.pedantic||!de||/ $/.test(de))&&(ne=de.trim())}var ce={type:"heading",raw:V[0],depth:V[1].length,text:ne,tokens:[]};return this.lexer.inline(ce.text,ce.tokens),ce}},Q.hr=function(W){var V=this.rules.block.hr.exec(W);if(V)return{type:"hr",raw:V[0]}},Q.blockquote=function(W){var V=this.rules.block.blockquote.exec(W);if(V){var ne=V[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:V[0],tokens:this.lexer.blockTokens(ne,[]),text:ne}}},Q.list=function(W){var V=this.rules.block.list.exec(W);if(V){var ne,de,ce,ue,me,_e,ye,ke,Te,Me,fe,he,re=V[1].trim(),ge=re.length>1,Se={type:"list",raw:"",ordered:ge,start:ge?+re.slice(0,-1):"",loose:!1,items:[]};re=ge?"\\d{1,9}\\"+re.slice(-1):"\\"+re,this.options.pedantic&&(re=ge?re:"[*+-]");for(var Le=new RegExp("^( {0,3}"+re+")((?:[ ][^\\n]*)?(?:\\n|$))");W&&(he=!1,!(!(V=Le.exec(W))||this.rules.block.hr.test(W)));){if(ne=V[0],W=W.substring(ne.length),ke=V[2].split(` `,1)[0],Te=W.split(` `,1)[0],this.options.pedantic?(ue=2,fe=ke.trimLeft()):(ue=V[2].search(/[^ ]/),ue=ue>4?1:ue,fe=ke.slice(ue),ue+=V[1].length),_e=!1,!ke&&/^ *$/.test(Te)&&(ne+=Te+` `,W=W.substring(Te.length+1),he=!0),!he)for(var Ne=new RegExp("^ {0,"+Math.min(3,ue-1)+"}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))"),Ae=new RegExp("^ {0,"+Math.min(3,ue-1)+"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)");W&&(Me=W.split(` `,1)[0],ke=Me,this.options.pedantic&&(ke=ke.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(Ne.test(ke)||Ae.test(W)));){if(ke.search(/[^ ]/)>=ue||!ke.trim())fe+=` `+ke.slice(ue);else if(!_e)fe+=` `+ke;else break;!_e&&!ke.trim()&&(_e=!0),ne+=Me+` `,W=W.substring(Me.length+1)}Se.loose||(ye?Se.loose=!0:/\n *\n *$/.test(ne)&&(ye=!0)),this.options.gfm&&(de=/^\[[ xX]\] /.exec(fe),de&&(ce=de[0]!=="[ ] ",fe=fe.replace(/^\[[ xX]\] +/,""))),Se.items.push({type:"list_item",raw:ne,task:!!de,checked:ce,loose:!1,text:fe}),Se.raw+=ne}Se.items[Se.items.length-1].raw=ne.trimRight(),Se.items[Se.items.length-1].text=fe.trimRight(),Se.raw=Se.raw.trimRight();var Pe=Se.items.length;for(me=0;me<Pe;me++){this.lexer.state.top=!1,Se.items[me].tokens=this.lexer.blockTokens(Se.items[me].text,[]);var Ce=Se.items[me].tokens.filter(function(De){return De.type==="space"}),ve=Ce.every(function(De){for(var Be=De.raw.split(""),Re=0,Ve=D(Be),Ue;!(Ue=Ve()).done;){var Je=Ue.value;if(Je===` `&&(Re+=1),Re>1)return!0}return!1});!Se.loose&&Ce.length&&ve&&(Se.loose=!0,Se.items[me].loose=!0)}return Se}},Q.html=function(W){var V=this.rules.block.html.exec(W);if(V){var ne={type:"html",raw:V[0],pre:!this.options.sanitizer&&(V[1]==="pre"||V[1]==="script"||V[1]==="style"),text:V[0]};return this.options.sanitize&&(ne.type="paragraph",ne.text=this.options.sanitizer?this.options.sanitizer(V[0]):o(V[0]),ne.tokens=[],this.lexer.inline(ne.text,ne.tokens)),ne}},Q.def=function(W){var V=this.rules.block.def.exec(W);if(V){V[3]&&(V[3]=V[3].substring(1,V[3].length-1));var ne=V[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:ne,raw:V[0],href:V[2],title:V[3]}}},Q.table=function(W){var V=this.rules.block.table.exec(W);if(V){var ne={type:"table",header:N(V[1]).map(function(ye){return{text:ye}}),align:V[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:V[3]&&V[3].trim()?V[3].replace(/\n[ \t]*$/,"").split(` `):[]};if(ne.header.length===ne.align.length){ne.raw=V[0];var de=ne.align.length,ce,ue,me,_e;for(ce=0;ce<de;ce++)/^ *-+: *$/.test(ne.align[ce])?ne.align[ce]="right":/^ *:-+: *$/.test(ne.align[ce])?ne.align[ce]="center":/^ *:-+ *$/.test(ne.align[ce])?ne.align[ce]="left":ne.align[ce]=null;for(de=ne.rows.length,ce=0;ce<de;ce++)ne.rows[ce]=N(ne.rows[ce],ne.header.length).map(function(ye){return{text:ye}});for(de=ne.header.length,ue=0;ue<de;ue++)ne.header[ue].tokens=[],this.lexer.inline(ne.header[ue].text,ne.header[ue].tokens);for(de=ne.rows.length,ue=0;ue<de;ue++)for(_e=ne.rows[ue],me=0;me<_e.length;me++)_e[me].tokens=[],this.lexer.inline(_e[me].text,_e[me].tokens);return ne}}},Q.lheading=function(W){var V=this.rules.block.lheading.exec(W);if(V){var ne={type:"heading",raw:V[0],depth:V[2].charAt(0)==="="?1:2,text:V[1],tokens:[]};return this.lexer.inline(ne.text,ne.tokens),ne}},Q.paragraph=function(W){var V=this.rules.block.paragraph.exec(W);if(V){var ne={type:"paragraph",raw:V[0],text:V[1].charAt(V[1].length-1)===` `?V[1].slice(0,-1):V[1],tokens:[]};return this.lexer.inline(ne.text,ne.tokens),ne}},Q.text=function(W){var V=this.rules.block.text.exec(W);if(V){var ne={type:"text",raw:V[0],text:V[0],tokens:[]};return this.lexer.inline(ne.text,ne.tokens),ne}},Q.escape=function(W){var V=this.rules.inline.escape.exec(W);if(V)return{type:"escape",raw:V[0],text:o(V[1])}},Q.tag=function(W){var V=this.rules.inline.tag.exec(W);if(V)return!this.lexer.state.inLink&&/^<a /i.test(V[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(V[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(V[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(V[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:V[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(V[0]):o(V[0]):V[0]}},Q.link=function(W){var V=this.rules.inline.link.exec(W);if(V){var ne=V[2].trim();if(!this.options.pedantic&&/^</.test(ne)){if(!/>$/.test(ne))return;var de=I(ne.slice(0,-1),"\\");if((ne.length-de.length)%2==0)return}else{var ce=R(V[2],"()");if(ce>-1){var ue=V[0].indexOf("!")===0?5:4,me=ue+V[1].length+ce;V[2]=V[2].substring(0,ce),V[0]=V[0].substring(0,me).trim(),V[3]=""}}var _e=V[2],ye="";if(this.options.pedantic){var ke=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(_e);ke&&(_e=ke[1],ye=ke[3])}else ye=V[3]?V[3].slice(1,-1):"";return _e=_e.trim(),/^</.test(_e)&&(this.options.pedantic&&!/>$/.test(ne)?_e=_e.slice(1):_e=_e.slice(1,-1)),x(V,{href:_e&&_e.replace(this.rules.inline._escapes,"$1"),title:ye&&ye.replace(this.rules.inline._escapes,"$1")},V[0],this.lexer)}},Q.reflink=function(W,V){var ne;if((ne=this.rules.inline.reflink.exec(W))||(ne=this.rules.inline.nolink.exec(W))){var de=(ne[2]||ne[1]).replace(/\s+/g," ");if(de=V[de.toLowerCase()],!de||!de.href){var ce=ne[0].charAt(0);return{type:"text",raw:ce,text:ce}}return x(ne,de,ne[0],this.lexer)}},Q.emStrong=function(W,V,ne){ne===void 0&&(ne="");var de=this.rules.inline.emStrong.lDelim.exec(W);if(de&&!(de[3]&&ne.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var ce=de[1]||de[2]||"";if(!ce||ce&&(ne===""||this.rules.inline.punctuation.exec(ne))){var ue=de[0].length-1,me,_e,ye=ue,ke=0,Te=de[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(Te.lastIndex=0,V=V.slice(-1*W.length+ue);(de=Te.exec(V))!=null;)if(me=de[1]||de[2]||de[3]||de[4]||de[5]||de[6],!!me){if(_e=me.length,de[3]||de[4]){ye+=_e;continue}else if((de[5]||de[6])&&ue%3&&!((ue+_e)%3)){ke+=_e;continue}if(ye-=_e,!(ye>0)){if(_e=Math.min(_e,_e+ye+ke),Math.min(ue,_e)%2){var Me=W.slice(1,ue+de.index+_e);return{type:"em",raw:W.slice(0,ue+de.index+_e+1),text:Me,tokens:this.lexer.inlineTokens(Me,[])}}var fe=W.slice(2,ue+de.index+_e-1);return{type:"strong",raw:W.slice(0,ue+de.index+_e+1),text:fe,tokens:this.lexer.inlineTokens(fe,[])}}}}}},Q.codespan=function(W){var V=this.rules.inline.code.exec(W);if(V){var ne=V[2].replace(/\n/g," "),de=/[^ ]/.test(ne),ce=/^ /.test(ne)&&/ $/.test(ne);return de&&ce&&(ne=ne.substring(1,ne.length-1)),ne=o(ne,!0),{type:"codespan",raw:V[0],text:ne}}},Q.br=function(W){var V=this.rules.inline.br.exec(W);if(V)return{type:"br",raw:V[0]}},Q.del=function(W){var V=this.rules.inline.del.exec(W);if(V)return{type:"del",raw:V[0],text:V[2],tokens:this.lexer.inlineTokens(V[2],[])}},Q.autolink=function(W,V){var ne=this.rules.inline.autolink.exec(W);if(ne){var de,ce;return ne[2]==="@"?(de=o(this.options.mangle?V(ne[1]):ne[1]),ce="mailto:"+de):(de=o(ne[1]),ce=de),{type:"link",raw:ne[0],text:de,href:ce,tokens:[{type:"text",raw:de,text:de}]}}},Q.url=function(W,V){var ne;if(ne=this.rules.inline.url.exec(W)){var de,ce;if(ne[2]==="@")de=o(this.options.mangle?V(ne[0]):ne[0]),ce="mailto:"+de;else{var ue;do ue=ne[0],ne[0]=this.rules.inline._backpedal.exec(ne[0])[0];while(ue!==ne[0]);de=o(ne[0]),ne[1]==="www."?ce="http://"+de:ce=de}return{type:"link",raw:ne[0],text:de,href:ce,tokens:[{type:"text",raw:de,text:de}]}}},Q.inlineText=function(W,V){var ne=this.rules.inline.text.exec(W);if(ne){var de;return this.lexer.state.inRawBlock?de=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ne[0]):o(ne[0]):ne[0]:de=o(this.options.smartypants?V(ne[0]):ne[0]),{type:"text",raw:ne[0],text:de}}},z}(),A={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?<?([^\s>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:E,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};A._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/,A._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,A.def=a(A.def).replace("label",A._label).replace("title",A._title).getRegex(),A.bullet=/(?:[*+-]|\d{1,9}[.)])/,A.listItemStart=a(/^( *)(bull) */).replace("bull",A.bullet).getRegex(),A.list=a(A.list).replace(/bull/g,A.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+A.def.source+")").getRegex(),A._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",A._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,A.html=a(A.html,"i").replace("comment",A._comment).replace("tag",A._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),A.paragraph=a(A._paragraph).replace("hr",A.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",A._tag).getRegex(),A.blockquote=a(A.blockquote).replace("paragraph",A.paragraph).getRegex(),A.normal=L({},A),A.gfm=L({},A.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),A.gfm.table=a(A.gfm.table).replace("hr",A.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",A._tag).getRegex(),A.gfm.paragraph=a(A._paragraph).replace("hr",A.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",A.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",A._tag).getRegex(),A.pedantic=L({},A.normal,{html:a(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",A._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:E,paragraph:a(A.normal._paragraph).replace("hr",A.hr).replace("heading",` *#{1,6} *[^ ]`).replace("lheading",A.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var B={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:E,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:E,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};B._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",B.punctuation=a(B.punctuation).replace(/punctuation/g,B._punctuation).getRegex(),B.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,B.escapedEmSt=/\\\*|\\_/g,B._comment=a(A._comment).replace("(?:-->|$)","-->").getRegex(),B.emStrong.lDelim=a(B.emStrong.lDelim).replace(/punct/g,B._punctuation).getRegex(),B.emStrong.rDelimAst=a(B.emStrong.rDelimAst,"g").replace(/punct/g,B._punctuation).getRegex(),B.emStrong.rDelimUnd=a(B.emStrong.rDelimUnd,"g").replace(/punct/g,B._punctuation).getRegex(),B._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,B._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,B._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,B.autolink=a(B.autolink).replace("scheme",B._scheme).replace("email",B._email).getRegex(),B._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,B.tag=a(B.tag).replace("comment",B._comment).replace("attribute",B._attribute).getRegex(),B._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,B._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,B._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,B.link=a(B.link).replace("label",B._label).replace("href",B._href).replace("title",B._title).getRegex(),B.reflink=a(B.reflink).replace("label",B._label).replace("ref",A._label).getRegex(),B.nolink=a(B.nolink).replace("ref",A._label).getRegex(),B.reflinkSearch=a(B.reflinkSearch,"g").replace("reflink",B.reflink).replace("nolink",B.nolink).getRegex(),B.normal=L({},B),B.pedantic=L({},B.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:a(/^!?\[(label)\]\((.*?)\)/).replace("label",B._label).getRegex(),reflink:a(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",B._label).getRegex()}),B.gfm=L({},B.normal,{escape:a(B.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),B.gfm.url=a(B.gfm.url,"i").replace("email",B.gfm._extended_email).getRegex(),B.breaks=L({},B.gfm,{br:a(B.br).replace("{2,}","*").getRegex(),text:a(B.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});function K(z){return z.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function T(z){var Q="",W,V,ne=z.length;for(W=0;W<ne;W++)V=z.charCodeAt(W),Math.random()>.5&&(V="x"+V.toString(16)),Q+="&#"+V+";";return Q}var ee=function(){function z(W){this.tokens=[],this.tokens.links=Object.create(null),this.options=W||q.defaults,this.options.tokenizer=this.options.tokenizer||new P,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var V={block:A.normal,inline:B.normal};this.options.pedantic?(V.block=A.pedantic,V.inline=B.pedantic):this.options.gfm&&(V.block=A.gfm,this.options.breaks?V.inline=B.breaks:V.inline=B.gfm),this.tokenizer.rules=V}z.lex=function(W,V){var ne=new z(V);return ne.lex(W)},z.lexInline=function(W,V){var ne=new z(V);return ne.inlineTokens(W)};var Q=z.prototype;return Q.lex=function(W){W=W.replace(/\r\n|\r/g,` `),this.blockTokens(W,this.tokens);for(var V;V=this.inlineQueue.shift();)this.inlineTokens(V.src,V.tokens);return this.tokens},Q.blockTokens=function(W,V){var ne=this;V===void 0&&(V=[]),this.options.pedantic?W=W.replace(/\t/g," ").replace(/^ +$/gm,""):W=W.replace(/^( *)(\t+)/gm,function(ye,ke,Te){return ke+" ".repeat(Te.length)});for(var de,ce,ue,me;W;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(function(ye){return(de=ye.call({lexer:ne},W,V))?(W=W.substring(de.raw.length),V.push(de),!0):!1}))){if(de=this.tokenizer.space(W)){W=W.substring(de.raw.length),de.raw.length===1&&V.length>0?V[V.length-1].raw+=` `:V.push(de);continue}if(de=this.tokenizer.code(W)){W=W.substring(de.raw.length),ce=V[V.length-1],ce&&(ce.type==="paragraph"||ce.type==="text")?(ce.raw+=` `+de.raw,ce.text+=` `+de.text,this.inlineQueue[this.inlineQueue.length-1].src=ce.text):V.push(de);continue}if(de=this.tokenizer.fences(W)){W=W.substring(de.raw.length),V.push(de);continue}if(de=this.tokenizer.heading(W)){W=W.substring(de.raw.length),V.push(de);continue}if(de=this.tokenizer.hr(W)){W=W.substring(de.raw.length),V.push(de);continue}if(de=this.tokenizer.blockquote(W)){W=W.substring(de.raw.length),V.push(de);continue}if(de=this.tokenizer.list(W)){W=W.substring(de.raw.length),V.push(de);continue}if(de=this.tokenizer.html(W)){W=W.substring(de.raw.length),V.push(de);continue}if(de=this.tokenizer.def(W)){W=W.substring(de.raw.length),ce=V[V.length-1],ce&&(ce.type==="paragraph"||ce.type==="text")?(ce.raw+=` `+de.raw,ce.text+=` `+de.raw,this.inlineQueue[this.inlineQueue.length-1].src=ce.text):this.tokens.links[de.tag]||(this.tokens.links[de.tag]={href:de.href,title:de.title});continue}if(de=this.tokenizer.table(W)){W=W.substring(de.raw.length),V.push(de);continue}if(de=this.tokenizer.lheading(W)){W=W.substring(de.raw.length),V.push(de);continue}if(ue=W,this.options.extensions&&this.options.extensions.startBlock&&function(){var ye=1/0,ke=W.slice(1),Te=void 0;ne.options.extensions.startBlock.forEach(function(Me){Te=Me.call({lexer:this},ke),typeof Te=="number"&&Te>=0&&(ye=Math.min(ye,Te))}),ye<1/0&&ye>=0&&(ue=W.substring(0,ye+1))}(),this.state.top&&(de=this.tokenizer.paragraph(ue))){ce=V[V.length-1],me&&ce.type==="paragraph"?(ce.raw+=` `+de.raw,ce.text+=` `+de.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=ce.text):V.push(de),me=ue.length!==W.length,W=W.substring(de.raw.length);continue}if(de=this.tokenizer.text(W)){W=W.substring(de.raw.length),ce=V[V.length-1],ce&&ce.type==="text"?(ce.raw+=` `+de.raw,ce.text+=` `+de.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=ce.text):V.push(de);continue}if(W){var _e="Infinite loop on byte: "+W.charCodeAt(0);if(this.options.silent){console.error(_e);break}else throw new Error(_e)}}return this.state.top=!0,V},Q.inline=function(W,V){this.inlineQueue.push({src:W,tokens:V})},Q.inlineTokens=function(W,V){var ne=this;V===void 0&&(V=[]);var de,ce,ue,me=W,_e,ye,ke;if(this.tokens.links){var Te=Object.keys(this.tokens.links);if(Te.length>0)for(;(_e=this.tokenizer.rules.inline.reflinkSearch.exec(me))!=null;)Te.includes(_e[0].slice(_e[0].lastIndexOf("[")+1,-1))&&(me=me.slice(0,_e.index)+"["+O("a",_e[0].length-2)+"]"+me.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(_e=this.tokenizer.rules.inline.blockSkip.exec(me))!=null;)me=me.slice(0,_e.index)+"["+O("a",_e[0].length-2)+"]"+me.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(_e=this.tokenizer.rules.inline.escapedEmSt.exec(me))!=null;)me=me.slice(0,_e.index)+"++"+me.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;W;)if(ye||(ke=""),ye=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(function(fe){return(de=fe.call({lexer:ne},W,V))?(W=W.substring(de.raw.length),V.push(de),!0):!1}))){if(de=this.tokenizer.escape(W)){W=W.substring(de.raw.length),V.push(de);continue}if(de=this.tokenizer.tag(W)){W=W.substring(de.raw.length),ce=V[V.length-1],ce&&de.type==="text"&&ce.type==="text"?(ce.raw+=de.raw,ce.text+=de.text):V.push(de);continue}if(de=this.tokenizer.link(W)){W=W.substring(de.raw.length),V.push(de);continue}if(de=this.tokenizer.reflink(W,this.tokens.links)){W=W.substring(de.raw.length),ce=V[V.length-1],ce&&de.type==="text"&&ce.type==="text"?(ce.raw+=de.raw,ce.text+=de.text):V.push(de);continue}if(de=this.tokenizer.emStrong(W,me,ke)){W=W.substring(de.raw.length),V.push(de);continue}if(de=this.tokenizer.codespan(W)){W=W.substring(de.raw.length),V.push(de);continue}if(de=this.tokenizer.br(W)){W=W.substring(de.raw.length),V.push(de);continue}if(de=this.tokenizer.del(W)){W=W.substring(de.raw.length),V.push(de);continue}if(de=this.tokenizer.autolink(W,T)){W=W.substring(de.raw.length),V.push(de);continue}if(!this.state.inLink&&(de=this.tokenizer.url(W,T))){W=W.substring(de.raw.length),V.push(de);continue}if(ue=W,this.options.extensions&&this.options.extensions.startInline&&function(){var fe=1/0,he=W.slice(1),re=void 0;ne.options.extensions.startInline.forEach(function(ge){re=ge.call({lexer:this},he),typeof re=="number"&&re>=0&&(fe=Math.min(fe,re))}),fe<1/0&&fe>=0&&(ue=W.substring(0,fe+1))}(),de=this.tokenizer.inlineText(ue,K)){W=W.substring(de.raw.length),de.raw.slice(-1)!=="_"&&(ke=de.raw.slice(-1)),ye=!0,ce=V[V.length-1],ce&&ce.type==="text"?(ce.raw+=de.raw,ce.text+=de.text):V.push(de);continue}if(W){var Me="Infinite loop on byte: "+W.charCodeAt(0);if(this.options.silent){console.error(Me);break}else throw new Error(Me)}}return V},y(z,null,[{key:"rules",get:function(){return{block:A,inline:B}}}]),z}(),J=function(){function z(W){this.options=W||q.defaults}var Q=z.prototype;return Q.code=function(W,V,ne){var de=(V||"").match(/\S*/)[0];if(this.options.highlight){var ce=this.options.highlight(W,de);ce!=null&&ce!==W&&(ne=!0,W=ce)}return W=W.replace(/\n$/,"")+` `,de?'<pre><code class="'+this.options.langPrefix+o(de,!0)+'">'+(ne?W:o(W,!0))+`</code></pre> `:"<pre><code>"+(ne?W:o(W,!0))+`</code></pre> `},Q.blockquote=function(W){return`<blockquote> `+W+`</blockquote> `},Q.html=function(W){return W},Q.heading=function(W,V,ne,de){if(this.options.headerIds){var ce=this.options.headerPrefix+de.slug(ne);return"<h"+V+' id="'+ce+'">'+W+"</h"+V+`> `}return"<h"+V+">"+W+"</h"+V+`> `},Q.hr=function(){return this.options.xhtml?`<hr/> `:`<hr> `},Q.list=function(W,V,ne){var de=V?"ol":"ul",ce=V&&ne!==1?' start="'+ne+'"':"";return"<"+de+ce+`> `+W+"</"+de+`> `},Q.listitem=function(W){return"<li>"+W+`</li> `},Q.checkbox=function(W){return"<input "+(W?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Q.paragraph=function(W){return"<p>"+W+`</p> `},Q.table=function(W,V){return V&&(V="<tbody>"+V+"</tbody>"),`<table> <thead> `+W+`</thead> `+V+`</table> `},Q.tablerow=function(W){return`<tr> `+W+`</tr> `},Q.tablecell=function(W,V){var ne=V.header?"th":"td",de=V.align?"<"+ne+' align="'+V.align+'">':"<"+ne+">";return de+W+("</"+ne+`> `)},Q.strong=function(W){return"<strong>"+W+"</strong>"},Q.em=function(W){return"<em>"+W+"</em>"},Q.codespan=function(W){return"<code>"+W+"</code>"},Q.br=function(){return this.options.xhtml?"<br/>":"<br>"},Q.del=function(W){return"<del>"+W+"</del>"},Q.link=function(W,V,ne){if(W=g(this.options.sanitize,this.options.baseUrl,W),W===null)return ne;var de='<a href="'+o(W)+'"';return V&&(de+=' title="'+V+'"'),de+=">"+ne+"</a>",de},Q.image=function(W,V,ne){if(W=g(this.options.sanitize,this.options.baseUrl,W),W===null)return ne;var de='<img src="'+W+'" alt="'+ne+'"';return V&&(de+=' title="'+V+'"'),de+=this.options.xhtml?"/>":">",de},Q.text=function(W){return W},z}(),$=function(){function z(){}var Q=z.prototype;return Q.strong=function(W){return W},Q.em=function(W){return W},Q.codespan=function(W){return W},Q.del=function(W){return W},Q.html=function(W){return W},Q.text=function(W){return W},Q.link=function(W,V,ne){return""+ne},Q.image=function(W,V,ne){return""+ne},Q.br=function(){return""},z}(),j=function(){function z(){this.seen={}}var Q=z.prototype;return Q.serialize=function(W){return W.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},Q.getNextSafeSlug=function(W,V){var ne=W,de=0;if(this.seen.hasOwnProperty(ne)){de=this.seen[W];do de++,ne=W+"-"+de;while(this.seen.hasOwnProperty(ne))}return V||(this.seen[W]=de,this.seen[ne]=0),ne},Q.slug=function(W,V){V===void 0&&(V={});var ne=this.serialize(W);return this.getNextSafeSlug(ne,V.dryrun)},z}(),G=function(){function z(W){this.options=W||q.defaults,this.options.renderer=this.options.renderer||new J,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new $,this.slugger=new j}z.parse=function(W,V){var ne=new z(V);return ne.parse(W)},z.parseInline=function(W,V){var ne=new z(V);return ne.parseInline(W)};var Q=z.prototype;return Q.parse=function(W,V){V===void 0&&(V=!0);var ne="",de,ce,ue,me,_e,ye,ke,Te,Me,fe,he,re,ge,Se,Le,Ne,Ae,Pe,Ce,ve=W.length;for(de=0;de<ve;de++){if(fe=W[de],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[fe.type]&&(Ce=this.options.extensions.renderers[fe.type].call({parser:this},fe),Ce!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(fe.type))){ne+=Ce||"";continue}switch(fe.type){case"space":continue;case"hr":{ne+=this.renderer.hr();continue}case"heading":{ne+=this.renderer.heading(this.parseInline(fe.tokens),fe.depth,d(this.parseInline(fe.tokens,this.textRenderer)),this.slugger);continue}case"code":{ne+=this.renderer.code(fe.text,fe.lang,fe.escaped);continue}case"table":{for(Te="",ke="",me=fe.header.length,ce=0;ce<me;ce++)ke+=this.renderer.tablecell(this.parseInline(fe.header[ce].tokens),{header:!0,align:fe.align[ce]});for(Te+=this.renderer.tablerow(ke),Me="",me=fe.rows.length,ce=0;ce<me;ce++){for(ye=fe.rows[ce],ke="",_e=ye.length,ue=0;ue<_e;ue++)ke+=this.renderer.tablecell(this.parseInline(ye[ue].tokens),{header:!1,align:fe.align[ue]});Me+=this.renderer.tablerow(ke)}ne+=this.renderer.table(Te,Me);continue}case"blockquote":{Me=this.parse(fe.tokens),ne+=this.renderer.blockquote(Me);continue}case"list":{for(he=fe.ordered,re=fe.start,ge=fe.loose,me=fe.items.length,Me="",ce=0;ce<me;ce++)Le=fe.items[ce],Ne=Le.checked,Ae=Le.task,Se="",Le.task&&(Pe=this.renderer.checkbox(Ne),ge?Le.tokens.length>0&&Le.tokens[0].type==="paragraph"?(Le.tokens[0].text=Pe+" "+Le.tokens[0].text,Le.tokens[0].tokens&&Le.tokens[0].tokens.length>0&&Le.tokens[0].tokens[0].type==="text"&&(Le.tokens[0].tokens[0].text=Pe+" "+Le.tokens[0].tokens[0].text)):Le.tokens.unshift({type:"text",text:Pe}):Se+=Pe),Se+=this.parse(Le.tokens,ge),Me+=this.renderer.listitem(Se,Ae,Ne);ne+=this.renderer.list(Me,he,re);continue}case"html":{ne+=this.renderer.html(fe.text);continue}case"paragraph":{ne+=this.renderer.paragraph(this.parseInline(fe.tokens));continue}case"text":{for(Me=fe.tokens?this.parseInline(fe.tokens):fe.text;de+1<ve&&W[de+1].type==="text";)fe=W[++de],Me+=` `+(fe.tokens?this.parseInline(fe.tokens):fe.text);ne+=V?this.renderer.paragraph(Me):Me;continue}default:{var De='Token with "'+fe.type+'" type was not found.';if(this.options.silent){console.error(De);return}else throw new Error(De)}}}return ne},Q.parseInline=function(W,V){V=V||this.renderer;var ne="",de,ce,ue,me=W.length;for(de=0;de<me;de++){if(ce=W[de],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[ce.type]&&(ue=this.options.extensions.renderers[ce.type].call({parser:this},ce),ue!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(ce.type))){ne+=ue||"";continue}switch(ce.type){case"escape":{ne+=V.text(ce.text);break}case"html":{ne+=V.html(ce.text);break}case"link":{ne+=V.link(ce.href,ce.title,this.parseInline(ce.tokens,V));break}case"image":{ne+=V.image(ce.href,ce.title,ce.text);break}case"strong":{ne+=V.strong(this.parseInline(ce.tokens,V));break}case"em":{ne+=V.em(this.parseInline(ce.tokens,V));break}case"codespan":{ne+=V.codespan(ce.text);break}case"br":{ne+=V.br();break}case"del":{ne+=V.del(this.parseInline(ce.tokens,V));break}case"text":{ne+=V.text(ce.text);break}default:{var _e='Token with "'+ce.type+'" type was not found.';if(this.options.silent){console.error(_e);return}else throw new Error(_e)}}}return ne},z}();function te(z,Q,W){if(typeof z>"u"||z===null)throw new Error("marked(): input parameter is undefined or null");if(typeof z!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(z)+", string expected");if(typeof Q=="function"&&(W=Q,Q=null),Q=L({},te.defaults,Q||{}),F(Q),W){var V=Q.highlight,ne;try{ne=ee.lex(z,Q)}catch(me){return W(me)}var de=function(me){var _e;if(!me)try{Q.walkTokens&&te.walkTokens(ne,Q.walkTokens),_e=G.parse(ne,Q)}catch(ye){me=ye}return Q.highlight=V,me?W(me):W(null,_e)};if(!V||V.length<3||(delete Q.highlight,!ne.length))return de();var ce=0;te.walkTokens(ne,function(me){me.type==="code"&&(ce++,setTimeout(function(){V(me.text,me.lang,function(_e,ye){if(_e)return de(_e);ye!=null&&ye!==me.text&&(me.text=ye,me.escaped=!0),ce--,ce===0&&de()})},0))}),ce===0&&de();return}try{var ue=ee.lex(z,Q);return Q.walkTokens&&te.walkTokens(ue,Q.walkTokens),G.parse(ue,Q)}catch(me){if(me.message+=` Please report this to https://github.com/markedjs/marked.`,Q.silent)return"<p>An error occurred:</p><pre>"+o(me.message+"",!0)+"</pre>";throw me}}te.options=te.setOptions=function(z){return L(te.defaults,z),b(te.defaults),te},te.getDefaults=w,te.defaults=q.defaults,te.use=function(){for(var z=arguments.length,Q=new Array(z),W=0;W<z;W++)Q[W]=arguments[W];var V=L.apply(void 0,[{}].concat(Q)),ne=te.defaults.extensions||{renderers:{},childTokens:{}},de;Q.forEach(function(ce){if(ce.extensions&&(de=!0,ce.extensions.forEach(function(me){if(!me.name)throw new Error("extension name required");if(me.renderer){var _e=ne.renderers?ne.renderers[me.name]:null;_e?ne.renderers[me.name]=function(){for(var ye=arguments.length,ke=new Array(ye),Te=0;Te<ye;Te++)ke[Te]=arguments[Te];var Me=me.renderer.apply(this,ke);return Me===!1&&(Me=_e.apply(this,ke)),Me}:ne.renderers[me.name]=me.renderer}if(me.tokenizer){if(!me.level||me.level!=="block"&&me.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");ne[me.level]?ne[me.level].unshift(me.tokenizer):ne[me.level]=[me.tokenizer],me.start&&(me.level==="block"?ne.startBlock?ne.startBlock.push(me.start):ne.startBlock=[me.start]:me.level==="inline"&&(ne.startInline?ne.startInline.push(me.start):ne.startInline=[me.start]))}me.childTokens&&(ne.childTokens[me.name]=me.childTokens)})),ce.renderer&&function(){var me=te.defaults.renderer||new J,_e=function(ke){var Te=me[ke];me[ke]=function(){for(var Me=arguments.length,fe=new Array(Me),he=0;he<Me;he++)fe[he]=arguments[he];var re=ce.renderer[ke].apply(me,fe);return re===!1&&(re=Te.apply(me,fe)),re}};for(var ye in ce.renderer)_e(ye);V.renderer=me}(),ce.tokenizer&&function(){var me=te.defaults.tokenizer||new P,_e=function(ke){var Te=me[ke];me[ke]=function(){for(var Me=arguments.length,fe=new Array(Me),he=0;he<Me;he++)fe[he]=arguments[he];var re=ce.tokenizer[ke].apply(me,fe);return re===!1&&(re=Te.apply(me,fe)),re}};for(var ye in ce.tokenizer)_e(ye);V.tokenizer=me}(),ce.walkTokens){var ue=te.defaults.walkTokens;V.walkTokens=function(me){ce.walkTokens.call(this,me),ue&&ue.call(this,me)}}de&&(V.extensions=ne),te.setOptions(V)})},te.walkTokens=function(z,Q){for(var W=function(){var de=ne.value;switch(Q.call(te,de),de.type){case"table":{for(var ce=D(de.header),ue;!(ue=ce()).done;){var me=ue.value;te.walkTokens(me.tokens,Q)}for(var _e=D(de.rows),ye;!(ye=_e()).done;)for(var ke=ye.value,Te=D(ke),Me;!(Me=Te()).done;){var fe=Me.value;te.walkTokens(fe.tokens,Q)}break}case"list":{te.walkTokens(de.items,Q);break}default:te.defaults.extensions&&te.defaults.extensions.childTokens&&te.defaults.extensions.childTokens[de.type]?te.defaults.extensions.childTokens[de.type].forEach(function(he){te.walkTokens(de[he],Q)}):de.tokens&&te.walkTokens(de.tokens,Q)}},V=D(z),ne;!(ne=V()).done;)W()},te.parseInline=function(z,Q){if(typeof z>"u"||z===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof z!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(z)+", string expected");Q=L({},te.defaults,Q||{}),F(Q);try{var W=ee.lexInline(z,Q);return Q.walkTokens&&te.walkTokens(W,Q.walkTokens),G.parseInline(W,Q)}catch(V){if(V.message+=` Please report this to https://github.com/markedjs/marked.`,Q.silent)return"<p>An error occurred:</p><pre>"+o(V.message+"",!0)+"</pre>";throw V}},te.Parser=G,te.parser=G.parse,te.Renderer=J,te.TextRenderer=$,te.Lexer=ee,te.lexer=ee.lex,te.Tokenizer=P,te.Slugger=j,te.parse=te;var Z=te.options,X=te.setOptions,ie=te.use,H=te.walkTokens,ae=te.parseInline,Y=te,U=G.parse,le=ee.lex;q.Lexer=ee,q.Parser=G,q.Renderer=J,q.Slugger=j,q.TextRenderer=$,q.Tokenizer=P,q.getDefaults=w,q.lexer=le,q.marked=te,q.options=Z,q.parse=Y,q.parseInline=ae,q.parser=U,q.setOptions=X,q.use=ie,q.walkTokens=H,Object.defineProperty(q,"__esModule",{value:!0})}),define(oe[97],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Mimes=void 0,e.Mimes=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"})}),define(oe[123],se([1,0,97]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StaticDND=e.DataTransfers=void 0,e.DataTransfers={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:y.Mimes.text},e.StaticDND={CurrentDragAndDropData:void 0}}),define(oe[330],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayNavigator=void 0;class y{constructor(k,D=0,w=k.length,b=D-1){this.items=k,this.start=D,this.end=w,this.index=b}current(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]}next(){return this.index=Math.min(this.index+1,this.end),this.current()}previous(){return this.index=Math.max(this.index-1,this.start-1),this.current()}first(){return this.index=this.start,this.current()}last(){return this.index=this.end-1,this.current()}}e.ArrayNavigator=y}),define(oe[331],se([1,0,330]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HistoryNavigator=void 0;class v{constructor(D=[],w=10){this._initialize(D),this._limit=w,this._onChange()}getHistory(){return this._elements}add(D){this._history.delete(D),this._history.add(D),this._onChange()}next(){return this._currentPosition()!==this._elements.length-1?this._navigator.next():null}previous(){return this._currentPosition()!==0?this._navigator.previous():null}current(){return this._navigator.current()}first(){return this._navigator.first()}last(){return this._navigator.last()}has(D){return this._history.has(D)}_onChange(){this._reduceToLimit();const D=this._elements;this._navigator=new y.ArrayNavigator(D,0,D.length,D.length)}_reduceToLimit(){const D=this._elements;D.length>this._limit&&this._initialize(D.slice(D.length-this._limit))}_currentPosition(){const D=this._navigator.current();return D?this._elements.indexOf(D):-1}_initialize(D){this._history=new Set;for(const w of D)this._history.add(w)}get _elements(){const D=[];return this._history.forEach(w=>D.push(w)),D}}e.HistoryNavigator=v}),define(oe[124],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SlidingWindowAverage=e.MovingAverage=e.clamp=void 0;function y(D,w,b){return Math.min(Math.max(D,w),b)}e.clamp=y;class v{constructor(){this._n=1,this._val=0}update(w){return this._val=this._val+(w-this._val)/this._n,this._n+=1,this._val}get value(){return this._val}}e.MovingAverage=v;class k{constructor(w){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=new Array(w),this._values.fill(0,0,w)}update(w){const b=this._values[this._index];return this._values[this._index]=w,this._index=(this._index+1)%this._values.length,this._sum-=b,this._sum+=w,this._n<this._values.length&&(this._n+=1),this._val=this._sum/this._n,this._val}get value(){return this._val}}e.SlidingWindowAverage=k}),define(oe[146],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Range=void 0;var y;(function(v){function k(C,h){if(C.start>=h.end||h.start>=C.end)return{start:0,end:0};const u=Math.max(C.start,h.start),n=Math.min(C.end,h.end);return n-u<=0?{start:0,end:0}:{start:u,end:n}}v.intersect=k;function D(C){return C.end-C.start<=0}v.isEmpty=D;function w(C,h){return!D(k(C,h))}v.intersects=w;function b(C,h){const u=[],n={start:C.start,end:Math.min(h.start,C.end)},i={start:Math.max(h.end,C.start),end:C.end};return D(n)||u.push(n),D(i)||u.push(i),u}v.relativeComplement=b})(y=e.Range||(e.Range={}))}),define(oe[332],se([1,0,146]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RangeMap=e.consolidate=e.shift=e.groupIntersect=void 0;function v(C,h){const u=[];for(const n of h){if(C.start>=n.range.end)continue;if(C.end<n.range.start)break;const i=y.Range.intersect(C,n.range);y.Range.isEmpty(i)||u.push({range:i,size:n.size})}return u}e.groupIntersect=v;function k({start:C,end:h},u){return{start:C+u,end:h+u}}e.shift=k;function D(C){const h=[];let u=null;for(const n of C){const i=n.range.start,t=n.range.end,o=n.size;if(u&&o===u.size){u.range.end=t;continue}u={range:{start:i,end:t},size:o},h.push(u)}return h}e.consolidate=D;function w(...C){return D(C.reduce((h,u)=>h.concat(u),[]))}class b{constructor(){this.groups=[],this._size=0}splice(h,u,n=[]){const i=n.length-u,t=v({start:0,end:h},this.groups),o=v({start:h+u,end:Number.POSITIVE_INFINITY},this.groups).map(d=>({range:k(d.range,i),size:d.size})),s=n.map((d,l)=>({range:{start:h+l,end:h+l+1},size:d.size}));this.groups=w(t,s,o),this._size=this.groups.reduce((d,l)=>d+l.size*(l.range.end-l.range.start),0)}get count(){const h=this.groups.length;return h?this.groups[h-1].range.end:0}get size(){return this._size}indexAt(h){if(h<0)return-1;let u=0,n=0;for(const i of this.groups){const t=i.range.end-i.range.start,o=n+t*i.size;if(h<o)return u+Math.floor((h-n)/i.size);u+=t,n=o}return u}indexAfter(h){return Math.min(this.indexAt(h)+1,this.count)}positionAt(h){if(h<0)return-1;let u=0,n=0;for(const i of this.groups){const t=i.range.end-i.range.start,o=n+t;if(h<o)return u+(h-n)*i.size;u+=t*i.size,n=o}return-1}}e.RangeMap=b}),define(oe[8],se([1,0,222,145]),function(q,e,y,v){"use strict";var k;Object.defineProperty(e,"__esModule",{value:!0}),e.InvisibleCharacters=e.AmbiguousCharacters=e.noBreakWhitespace=e.getLeftDeleteOffset=e.singleLetterHash=e.containsUppercaseCharacter=e.startsWithUTF8BOM=e.UTF8_BOM_CHARACTER=e.isEmojiImprecise=e.isFullWidthCharacter=e.containsUnusualLineTerminators=e.UNUSUAL_LINE_TERMINATORS=e.isBasicASCII=e.containsRTL=e.getCharContainingOffset=e.prevCharLength=e.nextCharLength=e.GraphemeIterator=e.CodePointIterator=e.getNextCodePoint=e.computeCodePoint=e.isLowSurrogate=e.isHighSurrogate=e.commonSuffixLength=e.commonPrefixLength=e.startsWithIgnoreCase=e.equalsIgnoreCase=e.isUpperAsciiLetter=e.isLowerAsciiLetter=e.isAsciiDigit=e.compareSubstringIgnoreCase=e.compareIgnoreCase=e.compareSubstring=e.compare=e.lastNonWhitespaceIndex=e.getLeadingWhitespace=e.firstNonWhitespaceIndex=e.splitLines=e.regExpFlags=e.regExpLeadsToEndlessLoop=e.createRegExp=e.stripWildcards=e.convertSimple2RegExpPattern=e.rtrim=e.ltrim=e.trim=e.escapeRegExpCharacters=e.escape=e.format=e.isFalsyOrWhitespace=void 0;function D(ce){return!ce||typeof ce!="string"?!0:ce.trim().length===0}e.isFalsyOrWhitespace=D;const w=/{(\d+)}/g;function b(ce,...ue){return ue.length===0?ce:ce.replace(w,function(me,_e){const ye=parseInt(_e,10);return isNaN(ye)||ye<0||ye>=ue.length?me:ue[ye]})}e.format=b;function C(ce){return ce.replace(/[<>&]/g,function(ue){switch(ue){case"<":return"<";case">":return">";case"&":return"&";default:return ue}})}e.escape=C;function h(ce){return ce.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}e.escapeRegExpCharacters=h;function u(ce,ue=" "){const me=n(ce,ue);return i(me,ue)}e.trim=u;function n(ce,ue){if(!ce||!ue)return ce;const me=ue.length;if(me===0||ce.length===0)return ce;let _e=0;for(;ce.indexOf(ue,_e)===_e;)_e=_e+me;return ce.substring(_e)}e.ltrim=n;function i(ce,ue){if(!ce||!ue)return ce;const me=ue.length,_e=ce.length;if(me===0||_e===0)return ce;let ye=_e,ke=-1;for(;ke=ce.lastIndexOf(ue,ye-1),!(ke===-1||ke+me!==ye);){if(ke===0)return"";ye=ke}return ce.substring(0,ye)}e.rtrim=i;function t(ce){return ce.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}e.convertSimple2RegExpPattern=t;function o(ce){return ce.replace(/\*/g,"")}e.stripWildcards=o;function s(ce,ue,me={}){if(!ce)throw new Error("Cannot create regex from empty string");ue||(ce=h(ce)),me.wholeWord&&(/\B/.test(ce.charAt(0))||(ce="\\b"+ce),/\B/.test(ce.charAt(ce.length-1))||(ce=ce+"\\b"));let _e="";return me.global&&(_e+="g"),me.matchCase||(_e+="i"),me.multiline&&(_e+="m"),me.unicode&&(_e+="u"),new RegExp(ce,_e)}e.createRegExp=s;function d(ce){return ce.source==="^"||ce.source==="^$"||ce.source==="$"||ce.source==="^\\s*$"?!1:!!(ce.exec("")&&ce.lastIndex===0)}e.regExpLeadsToEndlessLoop=d;function l(ce){return(ce.global?"g":"")+(ce.ignoreCase?"i":"")+(ce.multiline?"m":"")+(ce.unicode?"u":"")}e.regExpFlags=l;function a(ce){return ce.split(/\r\n|\r|\n/)}e.splitLines=a;function r(ce){for(let ue=0,me=ce.length;ue<me;ue++){const _e=ce.charCodeAt(ue);if(_e!==32&&_e!==9)return ue}return-1}e.firstNonWhitespaceIndex=r;function c(ce,ue=0,me=ce.length){for(let _e=ue;_e<me;_e++){const ye=ce.charCodeAt(_e);if(ye!==32&&ye!==9)return ce.substring(ue,_e)}return ce.substring(ue,me)}e.getLeadingWhitespace=c;function g(ce,ue=ce.length-1){for(let me=ue;me>=0;me--){const _e=ce.charCodeAt(me);if(_e!==32&&_e!==9)return me}return-1}e.lastNonWhitespaceIndex=g;function f(ce,ue){return ce<ue?-1:ce>ue?1:0}e.compare=f;function _(ce,ue,me=0,_e=ce.length,ye=0,ke=ue.length){for(;me<_e&&ye<ke;me++,ye++){const fe=ce.charCodeAt(me),he=ue.charCodeAt(ye);if(fe<he)return-1;if(fe>he)return 1}const Te=_e-me,Me=ke-ye;return Te<Me?-1:Te>Me?1:0}e.compareSubstring=_;function p(ce,ue){return m(ce,ue,0,ce.length,0,ue.length)}e.compareIgnoreCase=p;function m(ce,ue,me=0,_e=ce.length,ye=0,ke=ue.length){for(;me<_e&&ye<ke;me++,ye++){let fe=ce.charCodeAt(me),he=ue.charCodeAt(ye);if(fe===he)continue;if(fe>=128||he>=128)return _(ce.toLowerCase(),ue.toLowerCase(),me,_e,ye,ke);E(fe)&&(fe-=32),E(he)&&(he-=32);const re=fe-he;if(re!==0)return re}const Te=_e-me,Me=ke-ye;return Te<Me?-1:Te>Me?1:0}e.compareSubstringIgnoreCase=m;function S(ce){return ce>=48&&ce<=57}e.isAsciiDigit=S;function E(ce){return ce>=97&&ce<=122}e.isLowerAsciiLetter=E;function L(ce){return ce>=65&&ce<=90}e.isUpperAsciiLetter=L;function N(ce,ue){return ce.length===ue.length&&m(ce,ue)===0}e.equalsIgnoreCase=N;function I(ce,ue){const me=ue.length;return ue.length>ce.length?!1:m(ce,ue,0,me)===0}e.startsWithIgnoreCase=I;function R(ce,ue){const me=Math.min(ce.length,ue.length);let _e;for(_e=0;_e<me;_e++)if(ce.charCodeAt(_e)!==ue.charCodeAt(_e))return _e;return me}e.commonPrefixLength=R;function F(ce,ue){const me=Math.min(ce.length,ue.length);let _e;const ye=ce.length-1,ke=ue.length-1;for(_e=0;_e<me;_e++)if(ce.charCodeAt(ye-_e)!==ue.charCodeAt(ke-_e))return _e;return me}e.commonSuffixLength=F;function O(ce){return 55296<=ce&&ce<=56319}e.isHighSurrogate=O;function x(ce){return 56320<=ce&&ce<=57343}e.isLowSurrogate=x;function M(ce,ue){return(ce-55296<<10)+(ue-56320)+65536}e.computeCodePoint=M;function P(ce,ue,me){const _e=ce.charCodeAt(me);if(O(_e)&&me+1<ue){const ye=ce.charCodeAt(me+1);if(x(ye))return M(_e,ye)}return _e}e.getNextCodePoint=P;function A(ce,ue){const me=ce.charCodeAt(ue-1);if(x(me)&&ue>1){const _e=ce.charCodeAt(ue-2);if(O(_e))return M(_e,me)}return me}class B{constructor(ue,me=0){this._str=ue,this._len=ue.length,this._offset=me}get offset(){return this._offset}setOffset(ue){this._offset=ue}prevCodePoint(){const ue=A(this._str,this._offset);return this._offset-=ue>=65536?2:1,ue}nextCodePoint(){const ue=P(this._str,this._len,this._offset);return this._offset+=ue>=65536?2:1,ue}eol(){return this._offset>=this._len}}e.CodePointIterator=B;class K{constructor(ue,me=0){this._iterator=new B(ue,me)}get offset(){return this._iterator.offset}nextGraphemeLength(){const ue=le.getInstance(),me=this._iterator,_e=me.offset;let ye=ue.getGraphemeBreakType(me.nextCodePoint());for(;!me.eol();){const ke=me.offset,Te=ue.getGraphemeBreakType(me.nextCodePoint());if(U(ye,Te)){me.setOffset(ke);break}ye=Te}return me.offset-_e}prevGraphemeLength(){const ue=le.getInstance(),me=this._iterator,_e=me.offset;let ye=ue.getGraphemeBreakType(me.prevCodePoint());for(;me.offset>0;){const ke=me.offset,Te=ue.getGraphemeBreakType(me.prevCodePoint());if(U(Te,ye)){me.setOffset(ke);break}ye=Te}return _e-me.offset}eol(){return this._iterator.eol()}}e.GraphemeIterator=K;function T(ce,ue){return new K(ce,ue).nextGraphemeLength()}e.nextCharLength=T;function ee(ce,ue){return new K(ce,ue).prevGraphemeLength()}e.prevCharLength=ee;function J(ce,ue){ue>0&&x(ce.charCodeAt(ue))&&ue--;const me=ue+T(ce,ue);return[me-ee(ce,me),me]}e.getCharContainingOffset=J;const $=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function j(ce){return $.test(ce)}e.containsRTL=j;const G=/^[\t\n\r\x20-\x7E]*$/;function te(ce){return G.test(ce)}e.isBasicASCII=te,e.UNUSUAL_LINE_TERMINATORS=/[\u2028\u2029]/;function Z(ce){return e.UNUSUAL_LINE_TERMINATORS.test(ce)}e.containsUnusualLineTerminators=Z;function X(ce){return ce>=11904&&ce<=55215||ce>=63744&&ce<=64255||ce>=65281&&ce<=65374}e.isFullWidthCharacter=X;function ie(ce){return ce>=127462&&ce<=127487||ce===8986||ce===8987||ce===9200||ce===9203||ce>=9728&&ce<=10175||ce===11088||ce===11093||ce>=127744&&ce<=128591||ce>=128640&&ce<=128764||ce>=128992&&ce<=129008||ce>=129280&&ce<=129535||ce>=129648&&ce<=129782}e.isEmojiImprecise=ie,e.UTF8_BOM_CHARACTER=String.fromCharCode(65279);function H(ce){return!!(ce&&ce.length>0&&ce.charCodeAt(0)===65279)}e.startsWithUTF8BOM=H;function ae(ce,ue=!1){return ce?(ue&&(ce=ce.replace(/\\./g,"")),ce.toLowerCase()!==ce):!1}e.containsUppercaseCharacter=ae;function Y(ce){return ce=ce%(2*26),ce<26?String.fromCharCode(97+ce):String.fromCharCode(65+ce-26)}e.singleLetterHash=Y;function U(ce,ue){return ce===0?ue!==5&&ue!==7:ce===2&&ue===3?!1:ce===4||ce===2||ce===3||ue===4||ue===2||ue===3?!0:!(ce===8&&(ue===8||ue===9||ue===11||ue===12)||(ce===11||ce===9)&&(ue===9||ue===10)||(ce===12||ce===10)&&ue===10||ue===5||ue===13||ue===7||ce===1||ce===13&&ue===14||ce===6&&ue===6)}class le{constructor(){this._data=z()}static getInstance(){return le._INSTANCE||(le._INSTANCE=new le),le._INSTANCE}getGraphemeBreakType(ue){if(ue<32)return ue===10?3:ue===13?2:4;if(ue<127)return 0;const me=this._data,_e=me.length/3;let ye=1;for(;ye<=_e;)if(ue<me[3*ye])ye=2*ye;else if(ue>me[3*ye+1])ye=2*ye+1;else return me[3*ye+2];return 0}}le._INSTANCE=null;function z(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}function Q(ce,ue){if(ce===0)return 0;const me=W(ce,ue);if(me!==void 0)return me;const _e=new B(ue,ce);return _e.prevCodePoint(),_e.offset}e.getLeftDeleteOffset=Q;function W(ce,ue){const me=new B(ue,ce);let _e=me.prevCodePoint();for(;V(_e)||_e===65039||_e===8419;){if(me.offset===0)return;_e=me.prevCodePoint()}if(!ie(_e))return;let ye=me.offset;return ye>0&&me.prevCodePoint()===8205&&(ye=me.offset),ye}function V(ce){return 127995<=ce&&ce<=127999}e.noBreakWhitespace="\xA0";class ne{constructor(ue){this.confusableDictionary=ue}static getInstance(ue){return ne.cache.get(Array.from(ue))}static getLocales(){return ne._locales.getValue()}isAmbiguous(ue){return this.confusableDictionary.has(ue)}getPrimaryConfusable(ue){return this.confusableDictionary.get(ue)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}e.AmbiguousCharacters=ne,k=ne,ne.ambiguousCharacterData=new v.Lazy(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')),ne.cache=new y.LRUCachedFunction(ce=>{function ue(he){const re=new Map;for(let ge=0;ge<he.length;ge+=2)re.set(he[ge],he[ge+1]);return re}function me(he,re){const ge=new Map(he);for(const[Se,Le]of re)ge.set(Se,Le);return ge}function _e(he,re){if(!he)return re;const ge=new Map;for(const[Se,Le]of he)re.has(Se)&&ge.set(Se,Le);return ge}const ye=k.ambiguousCharacterData.getValue();let ke=ce.filter(he=>!he.startsWith("_")&&he in ye);ke.length===0&&(ke=["_default"]);let Te;for(const he of ke){const re=ue(ye[he]);Te=_e(Te,re)}const Me=ue(ye._common),fe=me(Me,Te);return new ne(fe)}),ne._locales=new v.Lazy(()=>Object.keys(ne.ambiguousCharacterData.getValue()).filter(ce=>!ce.startsWith("_")));class de{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(de.getRawData())),this._data}static isInvisibleCharacter(ue){return de.getData().has(ue)}static get codePoints(){return de.getData()}}e.InvisibleCharacters=de,de._data=void 0}),define(oe[105],se([1,0,8]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StringSHA1=e.toHexString=e.stringHash=e.numberHash=e.doHash=e.hash=void 0;function v(s){return k(s,0)}e.hash=v;function k(s,d){switch(typeof s){case"object":return s===null?D(349,d):Array.isArray(s)?C(s,d):h(s,d);case"string":return b(s,d);case"boolean":return w(s,d);case"number":return D(s,d);case"undefined":return D(937,d);default:return D(617,d)}}e.doHash=k;function D(s,d){return(d<<5)-d+s|0}e.numberHash=D;function w(s,d){return D(s?433:863,d)}function b(s,d){d=D(149417,d);for(let l=0,a=s.length;l<a;l++)d=D(s.charCodeAt(l),d);return d}e.stringHash=b;function C(s,d){return d=D(104579,d),s.reduce((l,a)=>k(a,l),d)}function h(s,d){return d=D(181387,d),Object.keys(s).sort().reduce((l,a)=>(l=b(a,l),k(s[a],l)),d)}function u(s,d,l=32){const a=l-d,r=~((1<<a)-1);return(s<<d|(r&s)>>>a)>>>0}function n(s,d=0,l=s.byteLength,a=0){for(let r=0;r<l;r++)s[d+r]=a}function i(s,d,l="0"){for(;s.length<d;)s=l+s;return s}function t(s,d=32){return s instanceof ArrayBuffer?Array.from(new Uint8Array(s)).map(l=>l.toString(16).padStart(2,"0")).join(""):i((s>>>0).toString(16),d/4)}e.toHexString=t;class o{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(64+3),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(d){const l=d.length;if(l===0)return;const a=this._buff;let r=this._buffLen,c=this._leftoverHighSurrogate,g,f;for(c!==0?(g=c,f=-1,c=0):(g=d.charCodeAt(0),f=0);;){let _=g;if(y.isHighSurrogate(g))if(f+1<l){const p=d.charCodeAt(f+1);y.isLowSurrogate(p)?(f++,_=y.computeCodePoint(g,p)):_=65533}else{c=g;break}else y.isLowSurrogate(g)&&(_=65533);if(r=this._push(a,r,_),f++,f<l)g=d.charCodeAt(f);else break}this._buffLen=r,this._leftoverHighSurrogate=c}_push(d,l,a){return a<128?d[l++]=a:a<2048?(d[l++]=192|(a&1984)>>>6,d[l++]=128|(a&63)>>>0):a<65536?(d[l++]=224|(a&61440)>>>12,d[l++]=128|(a&4032)>>>6,d[l++]=128|(a&63)>>>0):(d[l++]=240|(a&1835008)>>>18,d[l++]=128|(a&258048)>>>12,d[l++]=128|(a&4032)>>>6,d[l++]=128|(a&63)>>>0),l>=64&&(this._step(),l-=64,this._totalLen+=64,d[0]=d[64+0],d[1]=d[64+1],d[2]=d[64+2]),l}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),t(this._h0)+t(this._h1)+t(this._h2)+t(this._h3)+t(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,n(this._buff,this._buffLen),this._buffLen>56&&(this._step(),n(this._buff));const d=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(d/4294967296),!1),this._buffDV.setUint32(60,d%4294967296,!1),this._step()}_step(){const d=o._bigBlock32,l=this._buffDV;for(let S=0;S<64;S+=4)d.setUint32(S,l.getUint32(S,!1),!1);for(let S=64;S<320;S+=4)d.setUint32(S,u(d.getUint32(S-12,!1)^d.getUint32(S-32,!1)^d.getUint32(S-56,!1)^d.getUint32(S-64,!1),1),!1);let a=this._h0,r=this._h1,c=this._h2,g=this._h3,f=this._h4,_,p,m;for(let S=0;S<80;S++)S<20?(_=r&c|~r&g,p=1518500249):S<40?(_=r^c^g,p=1859775393):S<60?(_=r&c|r&g|c&g,p=2400959708):(_=r^c^g,p=3395469782),m=u(a,5)+_+f+p+d.getUint32(S*4,!1)&4294967295,f=g,g=c,c=u(r,30),r=a,a=m;this._h0=this._h0+a&4294967295,this._h1=this._h1+r&4294967295,this._h2=this._h2+c&4294967295,this._h3=this._h3+g&4294967295,this._h4=this._h4+f&4294967295}}e.StringSHA1=o,o._bigBlock32=new DataView(new ArrayBuffer(320))}),define(oe[147],se([1,0,328,105]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LcsDiff=e.MyArray=e.Debug=e.stringDiff=e.StringDiffSequence=void 0;class k{constructor(n){this.source=n}getElements(){const n=this.source,i=new Int32Array(n.length);for(let t=0,o=n.length;t<o;t++)i[t]=n.charCodeAt(t);return i}}e.StringDiffSequence=k;function D(u,n,i){return new h(new k(u),new k(n)).ComputeDiff(i).changes}e.stringDiff=D;class w{static Assert(n,i){if(!n)throw new Error(i)}}e.Debug=w;class b{static Copy(n,i,t,o,s){for(let d=0;d<s;d++)t[o+d]=n[i+d]}static Copy2(n,i,t,o,s){for(let d=0;d<s;d++)t[o+d]=n[i+d]}}e.MyArray=b;class C{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new y.DiffChange(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(n,i){this.m_originalStart=Math.min(this.m_originalStart,n),this.m_modifiedStart=Math.min(this.m_modifiedStart,i),this.m_originalCount++}AddModifiedElement(n,i){this.m_originalStart=Math.min(this.m_originalStart,n),this.m_modifiedStart=Math.min(this.m_modifiedStart,i),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class h{constructor(n,i,t=null){this.ContinueProcessingPredicate=t,this._originalSequence=n,this._modifiedSequence=i;const[o,s,d]=h._getElements(n),[l,a,r]=h._getElements(i);this._hasStrings=d&&r,this._originalStringElements=o,this._originalElementsOrHash=s,this._modifiedStringElements=l,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(n){return n.length>0&&typeof n[0]=="string"}static _getElements(n){const i=n.getElements();if(h._isStringArray(i)){const t=new Int32Array(i.length);for(let o=0,s=i.length;o<s;o++)t[o]=(0,v.stringHash)(i[o],0);return[i,t,!0]}return i instanceof Int32Array?[[],i,!1]:[[],new Int32Array(i),!1]}ElementsAreEqual(n,i){return this._originalElementsOrHash[n]!==this._modifiedElementsOrHash[i]?!1:this._hasStrings?this._originalStringElements[n]===this._modifiedStringElements[i]:!0}ElementsAreStrictEqual(n,i){if(!this.ElementsAreEqual(n,i))return!1;const t=h._getStrictElement(this._originalSequence,n),o=h._getStrictElement(this._modifiedSequence,i);return t===o}static _getStrictElement(n,i){return typeof n.getStrictElement=="function"?n.getStrictElement(i):null}OriginalElementsAreEqual(n,i){return this._originalElementsOrHash[n]!==this._originalElementsOrHash[i]?!1:this._hasStrings?this._originalStringElements[n]===this._originalStringElements[i]:!0}ModifiedElementsAreEqual(n,i){return this._modifiedElementsOrHash[n]!==this._modifiedElementsOrHash[i]?!1:this._hasStrings?this._modifiedStringElements[n]===this._modifiedStringElements[i]:!0}ComputeDiff(n){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,n)}_ComputeDiff(n,i,t,o,s){const d=[!1];let l=this.ComputeDiffRecursive(n,i,t,o,d);return s&&(l=this.PrettifyChanges(l)),{quitEarly:d[0],changes:l}}ComputeDiffRecursive(n,i,t,o,s){for(s[0]=!1;n<=i&&t<=o&&this.ElementsAreEqual(n,t);)n++,t++;for(;i>=n&&o>=t&&this.ElementsAreEqual(i,o);)i--,o--;if(n>i||t>o){let g;return t<=o?(w.Assert(n===i+1,"originalStart should only be one more than originalEnd"),g=[new y.DiffChange(n,0,t,o-t+1)]):n<=i?(w.Assert(t===o+1,"modifiedStart should only be one more than modifiedEnd"),g=[new y.DiffChange(n,i-n+1,t,0)]):(w.Assert(n===i+1,"originalStart should only be one more than originalEnd"),w.Assert(t===o+1,"modifiedStart should only be one more than modifiedEnd"),g=[]),g}const d=[0],l=[0],a=this.ComputeRecursionPoint(n,i,t,o,d,l,s),r=d[0],c=l[0];if(a!==null)return a;if(!s[0]){const g=this.ComputeDiffRecursive(n,r,t,c,s);let f=[];return s[0]?f=[new y.DiffChange(r+1,i-(r+1)+1,c+1,o-(c+1)+1)]:f=this.ComputeDiffRecursive(r+1,i,c+1,o,s),this.ConcatenateChanges(g,f)}return[new y.DiffChange(n,i-n+1,t,o-t+1)]}WALKTRACE(n,i,t,o,s,d,l,a,r,c,g,f,_,p,m,S,E,L){let N=null,I=null,R=new C,F=i,O=t,x=_[0]-S[0]-o,M=-1073741824,P=this.m_forwardHistory.length-1;do{const A=x+n;A===F||A<O&&r[A-1]<r[A+1]?(g=r[A+1],p=g-x-o,g<M&&R.MarkNextChange(),M=g,R.AddModifiedElement(g+1,p),x=A+1-n):(g=r[A-1]+1,p=g-x-o,g<M&&R.MarkNextChange(),M=g-1,R.AddOriginalElement(g,p+1),x=A-1-n),P>=0&&(r=this.m_forwardHistory[P],n=r[0],F=1,O=r.length-1)}while(--P>=-1);if(N=R.getReverseChanges(),L[0]){let A=_[0]+1,B=S[0]+1;if(N!==null&&N.length>0){const K=N[N.length-1];A=Math.max(A,K.getOriginalEnd()),B=Math.max(B,K.getModifiedEnd())}I=[new y.DiffChange(A,f-A+1,B,m-B+1)]}else{R=new C,F=d,O=l,x=_[0]-S[0]-a,M=1073741824,P=E?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const A=x+s;A===F||A<O&&c[A-1]>=c[A+1]?(g=c[A+1]-1,p=g-x-a,g>M&&R.MarkNextChange(),M=g+1,R.AddOriginalElement(g+1,p+1),x=A+1-s):(g=c[A-1],p=g-x-a,g>M&&R.MarkNextChange(),M=g,R.AddModifiedElement(g+1,p+1),x=A-1-s),P>=0&&(c=this.m_reverseHistory[P],s=c[0],F=1,O=c.length-1)}while(--P>=-1);I=R.getChanges()}return this.ConcatenateChanges(N,I)}ComputeRecursionPoint(n,i,t,o,s,d,l){let a=0,r=0,c=0,g=0,f=0,_=0;n--,t--,s[0]=0,d[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const p=i-n+(o-t),m=p+1,S=new Int32Array(m),E=new Int32Array(m),L=o-t,N=i-n,I=n-t,R=i-o,F=(N-L)%2==0;S[L]=n,E[N]=i,l[0]=!1;for(let O=1;O<=p/2+1;O++){let x=0,M=0;c=this.ClipDiagonalBound(L-O,O,L,m),g=this.ClipDiagonalBound(L+O,O,L,m);for(let A=c;A<=g;A+=2){A===c||A<g&&S[A-1]<S[A+1]?a=S[A+1]:a=S[A-1]+1,r=a-(A-L)-I;const B=a;for(;a<i&&r<o&&this.ElementsAreEqual(a+1,r+1);)a++,r++;if(S[A]=a,a+r>x+M&&(x=a,M=r),!F&&Math.abs(A-N)<=O-1&&a>=E[A])return s[0]=a,d[0]=r,B<=E[A]&&1447>0&&O<=1447+1?this.WALKTRACE(L,c,g,I,N,f,_,R,S,E,a,i,s,r,o,d,F,l):null}const P=(x-n+(M-t)-O)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(x,P))return l[0]=!0,s[0]=x,d[0]=M,P>0&&1447>0&&O<=1447+1?this.WALKTRACE(L,c,g,I,N,f,_,R,S,E,a,i,s,r,o,d,F,l):(n++,t++,[new y.DiffChange(n,i-n+1,t,o-t+1)]);f=this.ClipDiagonalBound(N-O,O,N,m),_=this.ClipDiagonalBound(N+O,O,N,m);for(let A=f;A<=_;A+=2){A===f||A<_&&E[A-1]>=E[A+1]?a=E[A+1]-1:a=E[A-1],r=a-(A-N)-R;const B=a;for(;a>n&&r>t&&this.ElementsAreEqual(a,r);)a--,r--;if(E[A]=a,F&&Math.abs(A-L)<=O&&a<=S[A])return s[0]=a,d[0]=r,B>=S[A]&&1447>0&&O<=1447+1?this.WALKTRACE(L,c,g,I,N,f,_,R,S,E,a,i,s,r,o,d,F,l):null}if(O<=1447){let A=new Int32Array(g-c+2);A[0]=L-c+1,b.Copy2(S,c,A,1,g-c+1),this.m_forwardHistory.push(A),A=new Int32Array(_-f+2),A[0]=N-f+1,b.Copy2(E,f,A,1,_-f+1),this.m_reverseHistory.push(A)}}return this.WALKTRACE(L,c,g,I,N,f,_,R,S,E,a,i,s,r,o,d,F,l)}PrettifyChanges(n){for(let i=0;i<n.length;i++){const t=n[i],o=i<n.length-1?n[i+1].originalStart:this._originalElementsOrHash.length,s=i<n.length-1?n[i+1].modifiedStart:this._modifiedElementsOrHash.length,d=t.originalLength>0,l=t.modifiedLength>0;for(;t.originalStart+t.originalLength<o&&t.modifiedStart+t.modifiedLength<s&&(!d||this.OriginalElementsAreEqual(t.originalStart,t.originalStart+t.originalLength))&&(!l||this.ModifiedElementsAreEqual(t.modifiedStart,t.modifiedStart+t.modifiedLength));){const r=this.ElementsAreStrictEqual(t.originalStart,t.modifiedStart);if(this.ElementsAreStrictEqual(t.originalStart+t.originalLength,t.modifiedStart+t.modifiedLength)&&!r)break;t.originalStart++,t.modifiedStart++}const a=[null];if(i<n.length-1&&this.ChangesOverlap(n[i],n[i+1],a)){n[i]=a[0],n.splice(i+1,1),i--;continue}}for(let i=n.length-1;i>=0;i--){const t=n[i];let o=0,s=0;if(i>0){const g=n[i-1];o=g.originalStart+g.originalLength,s=g.modifiedStart+g.modifiedLength}const d=t.originalLength>0,l=t.modifiedLength>0;let a=0,r=this._boundaryScore(t.originalStart,t.originalLength,t.modifiedStart,t.modifiedLength);for(let g=1;;g++){const f=t.originalStart-g,_=t.modifiedStart-g;if(f<o||_<s||d&&!this.OriginalElementsAreEqual(f,f+t.originalLength)||l&&!this.ModifiedElementsAreEqual(_,_+t.modifiedLength))break;const p=(f===o&&_===s?5:0)+this._boundaryScore(f,t.originalLength,_,t.modifiedLength);p>r&&(r=p,a=g)}t.originalStart-=a,t.modifiedStart-=a;const c=[null];if(i>0&&this.ChangesOverlap(n[i-1],n[i],c)){n[i-1]=c[0],n.splice(i,1),i++;continue}}if(this._hasStrings)for(let i=1,t=n.length;i<t;i++){const o=n[i-1],s=n[i],d=s.originalStart-o.originalStart-o.originalLength,l=o.originalStart,a=s.originalStart+s.originalLength,r=a-l,c=o.modifiedStart,g=s.modifiedStart+s.modifiedLength,f=g-c;if(d<5&&r<20&&f<20){const _=this._findBetterContiguousSequence(l,r,c,f,d);if(_){const[p,m]=_;(p!==o.originalStart+o.originalLength||m!==o.modifiedStart+o.modifiedLength)&&(o.originalLength=p-o.originalStart,o.modifiedLength=m-o.modifiedStart,s.originalStart=p+d,s.modifiedStart=m+d,s.originalLength=a-s.originalStart,s.modifiedLength=g-s.modifiedStart)}}}return n}_findBetterContiguousSequence(n,i,t,o,s){if(i<s||o<s)return null;const d=n+i-s+1,l=t+o-s+1;let a=0,r=0,c=0;for(let g=n;g<d;g++)for(let f=t;f<l;f++){const _=this._contiguousSequenceScore(g,f,s);_>0&&_>a&&(a=_,r=g,c=f)}return a>0?[r,c]:null}_contiguousSequenceScore(n,i,t){let o=0;for(let s=0;s<t;s++){if(!this.ElementsAreEqual(n+s,i+s))return 0;o+=this._originalStringElements[n+s].length}return o}_OriginalIsBoundary(n){return n<=0||n>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[n])}_OriginalRegionIsBoundary(n,i){if(this._OriginalIsBoundary(n)||this._OriginalIsBoundary(n-1))return!0;if(i>0){const t=n+i;if(this._OriginalIsBoundary(t-1)||this._OriginalIsBoundary(t))return!0}return!1}_ModifiedIsBoundary(n){return n<=0||n>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[n])}_ModifiedRegionIsBoundary(n,i){if(this._ModifiedIsBoundary(n)||this._ModifiedIsBoundary(n-1))return!0;if(i>0){const t=n+i;if(this._ModifiedIsBoundary(t-1)||this._ModifiedIsBoundary(t))return!0}return!1}_boundaryScore(n,i,t,o){const s=this._OriginalRegionIsBoundary(n,i)?1:0,d=this._ModifiedRegionIsBoundary(t,o)?1:0;return s+d}ConcatenateChanges(n,i){const t=[];if(n.length===0||i.length===0)return i.length>0?i:n;if(this.ChangesOverlap(n[n.length-1],i[0],t)){const o=new Array(n.length+i.length-1);return b.Copy(n,0,o,0,n.length-1),o[n.length-1]=t[0],b.Copy(i,1,o,n.length,i.length-1),o}else{const o=new Array(n.length+i.length);return b.Copy(n,0,o,0,n.length),b.Copy(i,0,o,n.length,i.length),o}}ChangesOverlap(n,i,t){if(w.Assert(n.originalStart<=i.originalStart,"Left change is not less than or equal to right change"),w.Assert(n.modifiedStart<=i.modifiedStart,"Left change is not less than or equal to right change"),n.originalStart+n.originalLength>=i.originalStart||n.modifiedStart+n.modifiedLength>=i.modifiedStart){const o=n.originalStart;let s=n.originalLength;const d=n.modifiedStart;let l=n.modifiedLength;return n.originalStart+n.originalLength>=i.originalStart&&(s=i.originalStart+i.originalLength-n.originalStart),n.modifiedStart+n.modifiedLength>=i.modifiedStart&&(l=i.modifiedStart+i.modifiedLength-n.modifiedStart),t[0]=new y.DiffChange(o,s,d,l),!0}else return t[0]=null,!1}ClipDiagonalBound(n,i,t,o){if(n>=0&&n<o)return n;const s=t,d=o-t-1,l=i%2==0;if(n<0){const a=s%2==0;return l===a?0:1}else{const a=d%2==0;return l===a?o-1:o-2}}}e.LcsDiff=h}),define(oe[51],se([1,0,8]),function(q,e,y){"use strict";var v,k;Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=e.LinkedMap=e.ResourceMap=e.TernarySearchTree=e.UriIterator=e.PathIterator=e.ConfigKeysIterator=e.StringIterator=void 0;class D{constructor(){this._value="",this._pos=0}reset(d){return this._value=d,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos<this._value.length-1}cmp(d){const l=d.charCodeAt(0),a=this._value.charCodeAt(this._pos);return l-a}value(){return this._value[this._pos]}}e.StringIterator=D;class w{constructor(d=!0){this._caseSensitive=d}reset(d){return this._value=d,this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let d=!0;for(;this._to<this._value.length;this._to++)if(this._value.charCodeAt(this._to)===46)if(d)this._from++;else break;else d=!1;return this}cmp(d){return this._caseSensitive?(0,y.compareSubstring)(d,this._value,0,d.length,this._from,this._to):(0,y.compareSubstringIgnoreCase)(d,this._value,0,d.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}e.ConfigKeysIterator=w;class b{constructor(d=!0,l=!0){this._splitOnBackslash=d,this._caseSensitive=l}reset(d){this._from=0,this._to=0,this._value=d,this._valueLen=d.length;for(let l=d.length-1;l>=0;l--,this._valueLen--){const a=this._value.charCodeAt(l);if(!(a===47||this._splitOnBackslash&&a===92))break}return this.next()}hasNext(){return this._to<this._valueLen}next(){this._from=this._to;let d=!0;for(;this._to<this._valueLen;this._to++){const l=this._value.charCodeAt(this._to);if(l===47||this._splitOnBackslash&&l===92)if(d)this._from++;else break;else d=!1}return this}cmp(d){return this._caseSensitive?(0,y.compareSubstring)(d,this._value,0,d.length,this._from,this._to):(0,y.compareSubstringIgnoreCase)(d,this._value,0,d.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}e.PathIterator=b;class C{constructor(d,l){this._ignorePathCasing=d,this._ignoreQueryAndFragment=l,this._states=[],this._stateIdx=0}reset(d){return this._value=d,this._states=[],this._value.scheme&&this._states.push(1),this._value.authority&&this._states.push(2),this._value.path&&(this._pathIterator=new b(!1,!this._ignorePathCasing(d)),this._pathIterator.reset(d.path),this._pathIterator.value()&&this._states.push(3)),this._ignoreQueryAndFragment(d)||(this._value.query&&this._states.push(4),this._value.fragment&&this._states.push(5)),this._stateIdx=0,this}next(){return this._states[this._stateIdx]===3&&this._pathIterator.hasNext()?this._pathIterator.next():this._stateIdx+=1,this}hasNext(){return this._states[this._stateIdx]===3&&this._pathIterator.hasNext()||this._stateIdx<this._states.length-1}cmp(d){if(this._states[this._stateIdx]===1)return(0,y.compareIgnoreCase)(d,this._value.scheme);if(this._states[this._stateIdx]===2)return(0,y.compareIgnoreCase)(d,this._value.authority);if(this._states[this._stateIdx]===3)return this._pathIterator.cmp(d);if(this._states[this._stateIdx]===4)return(0,y.compare)(d,this._value.query);if(this._states[this._stateIdx]===5)return(0,y.compare)(d,this._value.fragment);throw new Error}value(){if(this._states[this._stateIdx]===1)return this._value.scheme;if(this._states[this._stateIdx]===2)return this._value.authority;if(this._states[this._stateIdx]===3)return this._pathIterator.value();if(this._states[this._stateIdx]===4)return this._value.query;if(this._states[this._stateIdx]===5)return this._value.fragment;throw new Error}}e.UriIterator=C;class h{constructor(){this.height=1}rotateLeft(){const d=this.right;return this.right=d.left,d.left=this,this.updateHeight(),d.updateHeight(),d}rotateRight(){const d=this.left;return this.left=d.right,d.right=this,this.updateHeight(),d.updateHeight(),d}updateHeight(){this.height=1+Math.max(this.heightLeft,this.heightRight)}balanceFactor(){return this.heightRight-this.heightLeft}get heightLeft(){var d,l;return(l=(d=this.left)===null||d===void 0?void 0:d.height)!==null&&l!==void 0?l:0}get heightRight(){var d,l;return(l=(d=this.right)===null||d===void 0?void 0:d.height)!==null&&l!==void 0?l:0}}class u{constructor(d){this._iter=d}static forUris(d=()=>!1,l=()=>!1){return new u(new C(d,l))}static forStrings(){return new u(new D)}static forConfigKeys(){return new u(new w)}clear(){this._root=void 0}set(d,l){const a=this._iter.reset(d);let r;this._root||(this._root=new h,this._root.segment=a.value());const c=[];for(r=this._root;;){const f=a.cmp(r.segment);if(f>0)r.left||(r.left=new h,r.left.segment=a.value()),c.push([-1,r]),r=r.left;else if(f<0)r.right||(r.right=new h,r.right.segment=a.value()),c.push([1,r]),r=r.right;else if(a.hasNext())a.next(),r.mid||(r.mid=new h,r.mid.segment=a.value()),c.push([0,r]),r=r.mid;else break}const g=r.value;r.value=l,r.key=d;for(let f=c.length-1;f>=0;f--){const _=c[f][1];_.updateHeight();const p=_.balanceFactor();if(p<-1||p>1){const m=c[f][0],S=c[f+1][0];if(m===1&&S===1)c[f][1]=_.rotateLeft();else if(m===-1&&S===-1)c[f][1]=_.rotateRight();else if(m===1&&S===-1)_.right=c[f+1][1]=c[f+1][1].rotateRight(),c[f][1]=_.rotateLeft();else if(m===-1&&S===1)_.left=c[f+1][1]=c[f+1][1].rotateLeft(),c[f][1]=_.rotateRight();else throw new Error;if(f>0)switch(c[f-1][0]){case-1:c[f-1][1].left=c[f][1];break;case 1:c[f-1][1].right=c[f][1];break;case 0:c[f-1][1].mid=c[f][1];break}else this._root=c[0][1]}}return g}get(d){var l;return(l=this._getNode(d))===null||l===void 0?void 0:l.value}_getNode(d){const l=this._iter.reset(d);let a=this._root;for(;a;){const r=l.cmp(a.segment);if(r>0)a=a.left;else if(r<0)a=a.right;else if(l.hasNext())l.next(),a=a.mid;else break}return a}has(d){const l=this._getNode(d);return!(l?.value===void 0&&l?.mid===void 0)}delete(d){return this._delete(d,!1)}deleteSuperstr(d){return this._delete(d,!0)}_delete(d,l){var a;const r=this._iter.reset(d),c=[];let g=this._root;for(;g;){const f=r.cmp(g.segment);if(f>0)c.push([-1,g]),g=g.left;else if(f<0)c.push([1,g]),g=g.right;else if(r.hasNext())r.next(),c.push([0,g]),g=g.mid;else break}if(g){if(l?(g.left=void 0,g.mid=void 0,g.right=void 0,g.height=1):(g.key=void 0,g.value=void 0),!g.mid&&!g.value)if(g.left&&g.right){const f=this._min(g.right),{key:_,value:p,segment:m}=f;this._delete(f.key,!1),g.key=_,g.value=p,g.segment=m}else{const f=(a=g.left)!==null&&a!==void 0?a:g.right;if(c.length>0){const[_,p]=c[c.length-1];switch(_){case-1:p.left=f;break;case 0:p.mid=f;break;case 1:p.right=f;break}}else this._root=f}for(let f=c.length-1;f>=0;f--){const _=c[f][1];_.updateHeight();const p=_.balanceFactor();if(p>1?(_.right.balanceFactor()>=0||(_.right=_.right.rotateRight()),c[f][1]=_.rotateLeft()):p<-1&&(_.left.balanceFactor()<=0||(_.left=_.left.rotateLeft()),c[f][1]=_.rotateRight()),f>0)switch(c[f-1][0]){case-1:c[f-1][1].left=c[f][1];break;case 1:c[f-1][1].right=c[f][1];break;case 0:c[f-1][1].mid=c[f][1];break}else this._root=c[0][1]}}}_min(d){for(;d.left;)d=d.left;return d}findSubstr(d){const l=this._iter.reset(d);let a=this._root,r;for(;a;){const c=l.cmp(a.segment);if(c>0)a=a.left;else if(c<0)a=a.right;else if(l.hasNext())l.next(),r=a.value||r,a=a.mid;else break}return a&&a.value||r}findSuperstr(d){const l=this._iter.reset(d);let a=this._root;for(;a;){const r=l.cmp(a.segment);if(r>0)a=a.left;else if(r<0)a=a.right;else if(l.hasNext())l.next(),a=a.mid;else return a.mid?this._entries(a.mid):void 0}}forEach(d){for(const[l,a]of this)d(a,l)}*[Symbol.iterator](){yield*this._entries(this._root)}_entries(d){const l=[];return this._dfsEntries(d,l),l[Symbol.iterator]()}_dfsEntries(d,l){!d||(d.left&&this._dfsEntries(d.left,l),d.value&&l.push([d.key,d.value]),d.mid&&this._dfsEntries(d.mid,l),d.right&&this._dfsEntries(d.right,l))}}e.TernarySearchTree=u;class n{constructor(d,l){this.uri=d,this.value=l}}class i{constructor(d,l){this[v]="ResourceMap",d instanceof i?(this.map=new Map(d.map),this.toKey=l??i.defaultToKey):(this.map=new Map,this.toKey=d??i.defaultToKey)}set(d,l){return this.map.set(this.toKey(d),new n(d,l)),this}get(d){var l;return(l=this.map.get(this.toKey(d)))===null||l===void 0?void 0:l.value}has(d){return this.map.has(this.toKey(d))}get size(){return this.map.size}clear(){this.map.clear()}delete(d){return this.map.delete(this.toKey(d))}forEach(d,l){typeof l<"u"&&(d=d.bind(l));for(const[a,r]of this.map)d(r.value,r.uri,this)}*values(){for(const d of this.map.values())yield d.value}*keys(){for(const d of this.map.values())yield d.uri}*entries(){for(const d of this.map.values())yield[d.uri,d.value]}*[(v=Symbol.toStringTag,Symbol.iterator)](){for(const[,d]of this.map)yield[d.uri,d.value]}}e.ResourceMap=i,i.defaultToKey=s=>s.toString();class t{constructor(){this[k]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var d;return(d=this._head)===null||d===void 0?void 0:d.value}get last(){var d;return(d=this._tail)===null||d===void 0?void 0:d.value}has(d){return this._map.has(d)}get(d,l=0){const a=this._map.get(d);if(a)return l!==0&&this.touch(a,l),a.value}set(d,l,a=0){let r=this._map.get(d);if(r)r.value=l,a!==0&&this.touch(r,a);else{switch(r={key:d,value:l,next:void 0,previous:void 0},a){case 0:this.addItemLast(r);break;case 1:this.addItemFirst(r);break;case 2:this.addItemLast(r);break;default:this.addItemLast(r);break}this._map.set(d,r),this._size++}return this}delete(d){return!!this.remove(d)}remove(d){const l=this._map.get(d);if(l)return this._map.delete(d),this.removeItem(l),this._size--,l.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const d=this._head;return this._map.delete(d.key),this.removeItem(d),this._size--,d.value}forEach(d,l){const a=this._state;let r=this._head;for(;r;){if(l?d.bind(l)(r.value,r.key,this):d(r.value,r.key,this),this._state!==a)throw new Error("LinkedMap got modified during iteration.");r=r.next}}keys(){const d=this,l=this._state;let a=this._head;const r={[Symbol.iterator](){return r},next(){if(d._state!==l)throw new Error("LinkedMap got modified during iteration.");if(a){const c={value:a.key,done:!1};return a=a.next,c}else return{value:void 0,done:!0}}};return r}values(){const d=this,l=this._state;let a=this._head;const r={[Symbol.iterator](){return r},next(){if(d._state!==l)throw new Error("LinkedMap got modified during iteration.");if(a){const c={value:a.value,done:!1};return a=a.next,c}else return{value:void 0,done:!0}}};return r}entries(){const d=this,l=this._state;let a=this._head;const r={[Symbol.iterator](){return r},next(){if(d._state!==l)throw new Error("LinkedMap got modified during iteration.");if(a){const c={value:[a.key,a.value],done:!1};return a=a.next,c}else return{value:void 0,done:!0}}};return r}[(k=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(d){if(d>=this.size)return;if(d===0){this.clear();return}let l=this._head,a=this.size;for(;l&&a>d;)this._map.delete(l.key),l=l.next,a--;this._head=l,this._size=a,l&&(l.previous=void 0),this._state++}addItemFirst(d){if(!this._head&&!this._tail)this._tail=d;else if(this._head)d.next=this._head,this._head.previous=d;else throw new Error("Invalid list");this._head=d,this._state++}addItemLast(d){if(!this._head&&!this._tail)this._head=d;else if(this._tail)d.previous=this._tail,this._tail.next=d;else throw new Error("Invalid list");this._tail=d,this._state++}removeItem(d){if(d===this._head&&d===this._tail)this._head=void 0,this._tail=void 0;else if(d===this._head){if(!d.next)throw new Error("Invalid list");d.next.previous=void 0,this._head=d.next}else if(d===this._tail){if(!d.previous)throw new Error("Invalid list");d.previous.next=void 0,this._tail=d.previous}else{const l=d.next,a=d.previous;if(!l||!a)throw new Error("Invalid list");l.previous=a,a.next=l}d.next=void 0,d.previous=void 0,this._state++}touch(d,l){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(l!==1&&l!==2)){if(l===1){if(d===this._head)return;const a=d.next,r=d.previous;d===this._tail?(r.next=void 0,this._tail=r):(a.previous=r,r.next=a),d.previous=void 0,d.next=this._head,this._head.previous=d,this._head=d,this._state++}else if(l===2){if(d===this._tail)return;const a=d.next,r=d.previous;d===this._head?(a.previous=void 0,this._head=a):(a.previous=r,r.next=a),d.next=void 0,d.previous=this._tail,this._tail.next=d,this._tail=d,this._state++}}}toJSON(){const d=[];return this.forEach((l,a)=>{d.push([a,l])}),d}fromJSON(d){this.clear();for(const[l,a]of d)this.set(l,a)}}e.LinkedMap=t;class o extends t{constructor(d,l=1){super(),this._limit=d,this._ratio=Math.min(Math.max(0,l),1)}get limit(){return this._limit}set limit(d){this._limit=d,this.checkTrim()}get(d,l=2){return super.get(d,l)}peek(d){return super.get(d,0)}set(d,l){return super.set(d,l,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}e.LRUCache=o}),define(oe[63],se([1,0,51,8]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fuzzyScoreGracefulAggressive=e.fuzzyScore=e.FuzzyScoreOptions=e.FuzzyScore=e.isPatternInWord=e.createMatches=e.anyScore=e.matchesFuzzy=e.matchesWords=e.matchesCamelCase=e.isUpper=e.matchesSubString=e.matchesContiguousSubString=e.matchesPrefix=e.matchesStrictPrefix=e.or=void 0;function k(...W){return function(V,ne){for(let de=0,ce=W.length;de<ce;de++){const ue=W[de](V,ne);if(ue)return ue}return null}}e.or=k,e.matchesStrictPrefix=D.bind(void 0,!1),e.matchesPrefix=D.bind(void 0,!0);function D(W,V,ne){if(!ne||ne.length<V.length)return null;let de;return W?de=v.startsWithIgnoreCase(ne,V):de=ne.indexOf(V)===0,de?V.length>0?[{start:0,end:V.length}]:[]:null}function w(W,V){const ne=V.toLowerCase().indexOf(W.toLowerCase());return ne===-1?null:[{start:ne,end:ne+W.length}]}e.matchesContiguousSubString=w;function b(W,V){return C(W.toLowerCase(),V.toLowerCase(),0,0)}e.matchesSubString=b;function C(W,V,ne,de){if(ne===W.length)return[];if(de===V.length)return null;if(W[ne]===V[de]){let ce=null;return(ce=C(W,V,ne+1,de+1))?l({start:de,end:de+1},ce):null}return C(W,V,ne,de+1)}function h(W){return 97<=W&&W<=122}function u(W){return 65<=W&&W<=90}e.isUpper=u;function n(W){return 48<=W&&W<=57}function i(W){return W===32||W===9||W===10||W===13}const t=new Set;"()[]{}<>`'\"-/;:,.?!".split("").forEach(W=>t.add(W.charCodeAt(0)));function o(W){return i(W)||t.has(W)}function s(W,V){return W===V||o(W)&&o(V)}function d(W){return h(W)||u(W)||n(W)}function l(W,V){return V.length===0?V=[W]:W.end===V[0].start?V[0].start=W.start:V.unshift(W),V}function a(W,V){for(let ne=V;ne<W.length;ne++){const de=W.charCodeAt(ne);if(u(de)||n(de)||ne>0&&!d(W.charCodeAt(ne-1)))return ne}return W.length}function r(W,V,ne,de){if(ne===W.length)return[];if(de===V.length||W[ne]!==V[de].toLowerCase())return null;{let ce=null,ue=de+1;for(ce=r(W,V,ne+1,de+1);!ce&&(ue=a(V,ue))<V.length;)ce=r(W,V,ne+1,ue),ue++;return ce===null?null:l({start:de,end:de+1},ce)}}function c(W){let V=0,ne=0,de=0,ce=0,ue=0;for(let Te=0;Te<W.length;Te++)ue=W.charCodeAt(Te),u(ue)&&V++,h(ue)&&ne++,d(ue)&&de++,n(ue)&&ce++;const me=V/W.length,_e=ne/W.length,ye=de/W.length,ke=ce/W.length;return{upperPercent:me,lowerPercent:_e,alphaPercent:ye,numericPercent:ke}}function g(W){const{upperPercent:V,lowerPercent:ne}=W;return ne===0&&V>.6}function f(W){const{upperPercent:V,lowerPercent:ne,alphaPercent:de,numericPercent:ce}=W;return ne>.2&&V<.8&&de>.6&&ce<.2}function _(W){let V=0,ne=0,de=0,ce=0;for(let ue=0;ue<W.length;ue++)de=W.charCodeAt(ue),u(de)&&V++,h(de)&&ne++,i(de)&&ce++;return(V===0||ne===0)&&ce===0?W.length<=30:V<=5}function p(W,V){if(!V||(V=V.trim(),V.length===0)||!_(W)||V.length>60)return null;const ne=c(V);if(!f(ne)){if(!g(ne))return null;V=V.toLowerCase()}let de=null,ce=0;for(W=W.toLowerCase();ce<V.length&&(de=r(W,V,0,ce))===null;)ce=a(V,ce+1);return de}e.matchesCamelCase=p;function m(W,V,ne=!1){if(!V||V.length===0)return null;let de=null,ce=0;for(W=W.toLowerCase(),V=V.toLowerCase();ce<V.length&&(de=S(W,V,0,ce,ne))===null;)ce=E(V,ce+1);return de}e.matchesWords=m;function S(W,V,ne,de,ce){if(ne===W.length)return[];if(de===V.length)return null;if(s(W.charCodeAt(ne),V.charCodeAt(de))){let ue=null,me=de+1;if(ue=S(W,V,ne+1,de+1,ce),!ce)for(;!ue&&(me=E(V,me))<V.length;)ue=S(W,V,ne+1,me,ce),me++;return ue===null?null:l({start:de,end:de+1},ue)}else return null}function E(W,V){for(let ne=V;ne<W.length;ne++)if(o(W.charCodeAt(ne))||ne>0&&o(W.charCodeAt(ne-1)))return ne;return W.length}const L=k(e.matchesPrefix,p,w),N=k(e.matchesPrefix,p,b),I=new y.LRUCache(1e4);function R(W,V,ne=!1){if(typeof W!="string"||typeof V!="string")return null;let de=I.get(W);de||(de=new RegExp(v.convertSimple2RegExpPattern(W),"i"),I.set(W,de));const ce=de.exec(V);return ce?[{start:ce.index,end:ce.index+ce[0].length}]:ne?N(W,V):L(W,V)}e.matchesFuzzy=R;function F(W,V,ne,de,ce,ue){const me=Math.min(13,W.length);for(;ne<me;ne++){const _e=ae(W,V,ne,de,ce,ue,{firstMatchCanBeWeak:!1,boostFullMatch:!0});if(_e)return _e}return[0,ue]}e.anyScore=F;function O(W){if(typeof W>"u")return[];const V=[],ne=W[1];for(let de=W.length-1;de>1;de--){const ce=W[de]+ne,ue=V[V.length-1];ue&&ue.end===ce?ue.end=ce+1:V.push({start:ce,end:ce+1})}return V}e.createMatches=O;const x=128;function M(){const W=[],V=[];for(let ne=0;ne<=x;ne++)V[ne]=0;for(let ne=0;ne<=x;ne++)W.push(V.slice(0));return W}function P(W){const V=[];for(let ne=0;ne<=W;ne++)V[ne]=0;return V}const A=P(2*x),B=P(2*x),K=M(),T=M(),ee=M(),J=!1;function $(W,V,ne,de,ce){function ue(_e,ye,ke=" "){for(;_e.length<ye;)_e=ke+_e;return _e}let me=` | |${de.split("").map(_e=>ue(_e,3)).join("|")} `;for(let _e=0;_e<=ne;_e++)_e===0?me+=" |":me+=`${V[_e-1]}|`,me+=W[_e].slice(0,ce+1).map(ye=>ue(ye.toString(),3)).join("|")+` `;return me}function j(W,V,ne,de){W=W.substr(V),ne=ne.substr(de),console.log($(T,W,W.length,ne,ne.length)),console.log($(ee,W,W.length,ne,ne.length)),console.log($(K,W,W.length,ne,ne.length))}function G(W,V){if(V<0||V>=W.length)return!1;const ne=W.codePointAt(V);switch(ne){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 62:case 40:case 41:case 91:case 93:case 123:case 125:return!0;case void 0:return!1;default:return!!v.isEmojiImprecise(ne)}}function te(W,V){if(V<0||V>=W.length)return!1;switch(W.charCodeAt(V)){case 32:case 9:return!0;default:return!1}}function Z(W,V,ne){return V[W]!==ne[W]}function X(W,V,ne,de,ce,ue,me=!1){for(;V<ne&&ce<ue;)W[V]===de[ce]&&(me&&(A[V]=ce),V+=1),ce+=1;return V===ne}e.isPatternInWord=X;var ie;(function(W){W.Default=[-100,0];function V(ne){return!ne||ne.length===2&&ne[0]===-100&&ne[1]===0}W.isDefault=V})(ie=e.FuzzyScore||(e.FuzzyScore={}));class H{constructor(V,ne){this.firstMatchCanBeWeak=V,this.boostFullMatch=ne}}e.FuzzyScoreOptions=H,H.default={boostFullMatch:!0,firstMatchCanBeWeak:!1};function ae(W,V,ne,de,ce,ue,me=H.default){const _e=W.length>x?x:W.length,ye=de.length>x?x:de.length;if(ne>=_e||ue>=ye||_e-ne>ye-ue||!X(V,ne,_e,ce,ue,ye,!0))return;Y(_e,ye,ne,ue,V,ce);let ke=1,Te=1,Me=ne,fe=ue;const he=[!1];for(ke=1,Me=ne;Me<_e;ke++,Me++){const Ne=A[Me],Ae=B[Me],Pe=Me+1<_e?B[Me+1]:ye;for(Te=Ne-ue+1,fe=Ne;fe<Pe;Te++,fe++){let Ce=Number.MIN_SAFE_INTEGER,ve=!1;fe<=Ae&&(Ce=U(W,V,Me,ne,de,ce,fe,ye,ue,K[ke-1][Te-1]===0,he));let De=0;Ce!==Number.MAX_SAFE_INTEGER&&(ve=!0,De=Ce+T[ke-1][Te-1]);const Be=fe>Ne,Re=Be?T[ke][Te-1]+(K[ke][Te-1]>0?-5:0):0,Ve=fe>Ne+1&&K[ke][Te-1]>0,Ue=Ve?T[ke][Te-2]+(K[ke][Te-2]>0?-5:0):0;if(Ve&&(!Be||Ue>=Re)&&(!ve||Ue>=De))T[ke][Te]=Ue,ee[ke][Te]=3,K[ke][Te]=0;else if(Be&&(!ve||Re>=De))T[ke][Te]=Re,ee[ke][Te]=2,K[ke][Te]=0;else if(ve)T[ke][Te]=De,ee[ke][Te]=1,K[ke][Te]=K[ke-1][Te-1]+1;else throw new Error("not possible")}}if(J&&j(W,ne,de,ue),!he[0]&&!me.firstMatchCanBeWeak)return;ke--,Te--;const re=[T[ke][Te],ue];let ge=0,Se=0;for(;ke>=1;){let Ne=Te;do{const Ae=ee[ke][Ne];if(Ae===3)Ne=Ne-2;else if(Ae===2)Ne=Ne-1;else break}while(Ne>=1);ge>1&&V[ne+ke-1]===ce[ue+Te-1]&&!Z(Ne+ue-1,de,ce)&&ge+1>K[ke][Ne]&&(Ne=Te),Ne===Te?ge++:ge=1,Se||(Se=Ne),ke--,Te=Ne-1,re.push(Te)}ye===_e&&me.boostFullMatch&&(re[0]+=2);const Le=Se-_e;return re[0]-=Le,re}e.fuzzyScore=ae;function Y(W,V,ne,de,ce,ue){let me=W-1,_e=V-1;for(;me>=ne&&_e>=de;)ce[me]===ue[_e]&&(B[me]=_e,me--),_e--}function U(W,V,ne,de,ce,ue,me,_e,ye,ke,Te){if(V[ne]!==ue[me])return Number.MIN_SAFE_INTEGER;let Me=1,fe=!1;return me===ne-de?Me=W[ne]===ce[me]?7:5:Z(me,ce,ue)&&(me===0||!Z(me-1,ce,ue))?(Me=W[ne]===ce[me]?7:5,fe=!0):G(ue,me)&&(me===0||!G(ue,me-1))?Me=5:(G(ue,me-1)||te(ue,me-1))&&(Me=5,fe=!0),Me>1&&ne===de&&(Te[0]=!0),fe||(fe=Z(me,ce,ue)||G(ue,me-1)||te(ue,me-1)),ne===de?me>ye&&(Me-=fe?3:5):ke?Me+=fe?2:0:Me+=fe?0:1,me+1===_e&&(Me-=fe?3:5),Me}function le(W,V,ne,de,ce,ue,me){return z(W,V,ne,de,ce,ue,!0,me)}e.fuzzyScoreGracefulAggressive=le;function z(W,V,ne,de,ce,ue,me,_e){let ye=ae(W,V,ne,de,ce,ue,_e);if(ye&&!me)return ye;if(W.length>=3){const ke=Math.min(7,W.length-1);for(let Te=ne+1;Te<ke;Te++){const Me=Q(W,Te);if(Me){const fe=ae(Me,Me.toLowerCase(),ne,de,ce,ue,_e);fe&&(fe[0]-=3,(!ye||fe[0]>ye[0])&&(ye=fe))}}}return ye}function Q(W,V){if(V+1>=W.length)return;const ne=W[V],de=W[V+1];if(ne!==de)return W.slice(0,V)+de+ne+W.slice(V+2)}}),define(oe[106],se([1,0,27,63,8]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.matchesFuzzyIconAware=e.parseLabelWithIcons=e.stripIcons=e.markdownEscapeEscapedIcons=e.escapeIcons=e.iconStartMarker=void 0,e.iconStartMarker="$(";const D=new RegExp(`\\$\\(${y.CSSIcon.iconNameExpression}(?:${y.CSSIcon.iconModifierExpression})?\\)`,"g"),w=new RegExp(y.CSSIcon.iconNameCharacter),b=new RegExp(`(\\\\)?${D.source}`,"g");function C(d){return d.replace(b,(l,a)=>a?l:`\\${l}`)}e.escapeIcons=C;const h=new RegExp(`\\\\${D.source}`,"g");function u(d){return d.replace(h,l=>`\\${l}`)}e.markdownEscapeEscapedIcons=u;const n=new RegExp(`(\\s)?(\\\\)?${D.source}(\\s)?`,"g");function i(d){return d.indexOf(e.iconStartMarker)===-1?d:d.replace(n,(l,a,r,c)=>r?l:a||c||"")}e.stripIcons=i;function t(d){const l=d.indexOf(e.iconStartMarker);return l===-1?{text:d}:o(d,l)}e.parseLabelWithIcons=t;function o(d,l){const a=[];let r="";function c(L){if(L){r+=L;for(const N of L)a.push(_)}}let g=-1,f="",_=0,p,m,S=l;const E=d.length;for(c(d.substr(0,l));S<E;)p=d[S],m=d[S+1],p===e.iconStartMarker[0]&&m===e.iconStartMarker[1]?(g=S,c(f),f=e.iconStartMarker,S++):p===")"&&g!==-1?(_+=S-g+1,g=-1,f=""):g!==-1?w.test(p)?f+=p:(c(f),g=-1,f=""):c(p),S++;return c(f),{text:r,iconOffsets:a}}function s(d,l,a=!1){const{text:r,iconOffsets:c}=l;if(!c||c.length===0)return(0,v.matchesFuzzy)(d,r,a);const g=(0,k.ltrim)(r," "),f=r.length-g.length,_=(0,v.matchesFuzzy)(d,g,a);if(_)for(const p of _){const m=c[p.start+f]+f;p.start+=m,p.end+=m}return _}e.matchesFuzzyIconAware=s}),define(oe[64],se([1,0,14,106,8]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseHrefAndDimensions=e.removeMarkdownEscapes=e.escapeDoubleQuotes=e.escapeMarkdownSyntaxTokens=e.isMarkdownString=e.isEmptyMarkdownString=e.MarkdownString=void 0;class D{constructor(t="",o=!1){var s,d,l;if(this.value=t,typeof this.value!="string")throw(0,y.illegalArgument)("value");typeof o=="boolean"?(this.isTrusted=o,this.supportThemeIcons=!1,this.supportHtml=!1):(this.isTrusted=(s=o.isTrusted)!==null&&s!==void 0?s:void 0,this.supportThemeIcons=(d=o.supportThemeIcons)!==null&&d!==void 0?d:!1,this.supportHtml=(l=o.supportHtml)!==null&&l!==void 0?l:!1)}appendText(t,o=0){return this.value+=C(this.supportThemeIcons?(0,v.escapeIcons)(t):t).replace(/([ \t]+)/g,(s,d)=>" ".repeat(d.length)).replace(/\>/gm,"\\>").replace(/\n/g,o===1?`\\ `:` `),this}appendMarkdown(t){return this.value+=t,this}appendCodeblock(t,o){return this.value+="\n```",this.value+=t,this.value+=` `,this.value+=o,this.value+="\n```\n",this}appendLink(t,o,s){return this.value+="[",this.value+=this._escape(o,"]"),this.value+="](",this.value+=this._escape(String(t),")"),s&&(this.value+=` "${this._escape(this._escape(s,'"'),")")}"`),this.value+=")",this}_escape(t,o){const s=new RegExp((0,k.escapeRegExpCharacters)(o),"g");return t.replace(s,(d,l)=>t.charAt(l-1)!=="\\"?`\\${d}`:d)}}e.MarkdownString=D;function w(i){return b(i)?!i.value:Array.isArray(i)?i.every(w):!0}e.isEmptyMarkdownString=w;function b(i){return i instanceof D?!0:i&&typeof i=="object"?typeof i.value=="string"&&(typeof i.isTrusted=="boolean"||i.isTrusted===void 0)&&(typeof i.supportThemeIcons=="boolean"||i.supportThemeIcons===void 0):!1}e.isMarkdownString=b;function C(i){return i.replace(/[\\`*_{}[\]()#+\-!]/g,"\\$&")}e.escapeMarkdownSyntaxTokens=C;function h(i){return i.replace(/"/g,""")}e.escapeDoubleQuotes=h;function u(i){return i&&i.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1")}e.removeMarkdownEscapes=u;function n(i){const t=[],o=i.split("|").map(d=>d.trim());i=o[0];const s=o[1];if(s){const d=/height=(\d+)/.exec(s),l=/width=(\d+)/.exec(s),a=d?d[1]:"",r=l?l[1]:"",c=isFinite(parseInt(r)),g=isFinite(parseInt(a));c&&t.push(`width="${r}"`),g&&t.push(`height="${a}"`)}return{href:i,dimensions:t}}e.parseHrefAndDimensions=n}),define(oe[333],se([1,0,8]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.buildReplaceStringWithCasePreserved=void 0;function v(w,b){if(w&&w[0]!==""){const C=k(w,b,"-"),h=k(w,b,"_");return C&&!h?D(w,b,"-"):!C&&h?D(w,b,"_"):w[0].toUpperCase()===w[0]?b.toUpperCase():w[0].toLowerCase()===w[0]?b.toLowerCase():y.containsUppercaseCharacter(w[0][0])&&b.length>0?b[0].toUpperCase()+b.substr(1):w[0][0].toUpperCase()!==w[0][0]&&b.length>0?b[0].toLowerCase()+b.substr(1):b}else return b}e.buildReplaceStringWithCasePreserved=v;function k(w,b,C){return w[0].indexOf(C)!==-1&&b.indexOf(C)!==-1&&w[0].split(C).length===b.split(C).length}function D(w,b,C){const h=b.split(C),u=w[0].split(C);let n="";return h.forEach((i,t)=>{n+=v([u[t]],i)+C}),n.slice(0,-1)}}),define(oe[81],se([1,0,8]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var v;(function(k){k[k.Ignore=0]="Ignore",k[k.Info=1]="Info",k[k.Warning=2]="Warning",k[k.Error=3]="Error"})(v||(v={})),function(k){const D="error",w="warning",b="warn",C="info",h="ignore";function u(i){return i?y.equalsIgnoreCase(D,i)?k.Error:y.equalsIgnoreCase(w,i)||y.equalsIgnoreCase(b,i)?k.Warning:y.equalsIgnoreCase(C,i)?k.Info:k.Ignore:k.Ignore}k.fromValue=u;function n(i){switch(i){case k.Error:return D;case k.Warning:return w;case k.Info:return C;default:return h}}k.toString=n}(v||(v={})),e.default=v}),define(oe[19],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assertNever=e.withNullAsUndefined=e.createProxyObject=e.getAllMethodNames=e.getAllPropertyNames=e.validateConstraint=e.validateConstraints=e.isFunction=e.assertIsDefined=e.assertType=e.isUndefinedOrNull=e.isDefined=e.isUndefined=e.isBoolean=e.isIterable=e.isNumber=e.isTypedArray=e.isObject=e.isString=e.isArray=void 0;function y(f){return Array.isArray(f)}e.isArray=y;function v(f){return typeof f=="string"}e.isString=v;function k(f){return typeof f=="object"&&f!==null&&!Array.isArray(f)&&!(f instanceof RegExp)&&!(f instanceof Date)}e.isObject=k;function D(f){const _=Object.getPrototypeOf(Uint8Array);return typeof f=="object"&&f instanceof _}e.isTypedArray=D;function w(f){return typeof f=="number"&&!isNaN(f)}e.isNumber=w;function b(f){return!!f&&typeof f[Symbol.iterator]=="function"}e.isIterable=b;function C(f){return f===!0||f===!1}e.isBoolean=C;function h(f){return typeof f>"u"}e.isUndefined=h;function u(f){return!n(f)}e.isDefined=u;function n(f){return h(f)||f===null}e.isUndefinedOrNull=n;function i(f,_){if(!f)throw new Error(_?`Unexpected type, expected '${_}'`:"Unexpected type")}e.assertType=i;function t(f){if(n(f))throw new Error("Assertion Failed: argument is undefined or null");return f}e.assertIsDefined=t;function o(f){return typeof f=="function"}e.isFunction=o;function s(f,_){const p=Math.min(f.length,_.length);for(let m=0;m<p;m++)d(f[m],_[m])}e.validateConstraints=s;function d(f,_){if(v(_)){if(typeof f!==_)throw new Error(`argument does not match constraint: typeof ${_}`)}else if(o(_)){try{if(f instanceof _)return}catch{}if(!n(f)&&f.constructor===_||_.length===1&&_.call(void 0,f)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}e.validateConstraint=d;function l(f){let _=[],p=Object.getPrototypeOf(f);for(;Object.prototype!==p;)_=_.concat(Object.getOwnPropertyNames(p)),p=Object.getPrototypeOf(p);return _}e.getAllPropertyNames=l;function a(f){const _=[];for(const p of l(f))typeof f[p]=="function"&&_.push(p);return _}e.getAllMethodNames=a;function r(f,_){const p=S=>function(){const E=Array.prototype.slice.call(arguments,0);return _(S,E)},m={};for(const S of f)m[S]=p(S);return m}e.createProxyObject=r;function c(f){return f===null?void 0:f}e.withNullAsUndefined=c;function g(f,_="Unreachable"){throw new Error(_)}e.assertNever=g}),define(oe[40],se([1,0,19]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.equals=e.mixin=e.cloneAndChange=e.deepFreeze=e.deepClone=void 0;function v(u){if(!u||typeof u!="object"||u instanceof RegExp)return u;const n=Array.isArray(u)?[]:{};return Object.keys(u).forEach(i=>{u[i]&&typeof u[i]=="object"?n[i]=v(u[i]):n[i]=u[i]}),n}e.deepClone=v;function k(u){if(!u||typeof u!="object")return u;const n=[u];for(;n.length>0;){const i=n.shift();Object.freeze(i);for(const t in i)if(D.call(i,t)){const o=i[t];typeof o=="object"&&!Object.isFrozen(o)&&!(0,y.isTypedArray)(o)&&n.push(o)}}return u}e.deepFreeze=k;const D=Object.prototype.hasOwnProperty;function w(u,n){return b(u,n,new Set)}e.cloneAndChange=w;function b(u,n,i){if((0,y.isUndefinedOrNull)(u))return u;const t=n(u);if(typeof t<"u")return t;if((0,y.isArray)(u)){const o=[];for(const s of u)o.push(b(s,n,i));return o}if((0,y.isObject)(u)){if(i.has(u))throw new Error("Cannot clone recursive data-structure");i.add(u);const o={};for(const s in u)D.call(u,s)&&(o[s]=b(u[s],n,i));return i.delete(u),o}return u}function C(u,n,i=!0){return(0,y.isObject)(u)?((0,y.isObject)(n)&&Object.keys(n).forEach(t=>{t in u?i&&((0,y.isObject)(u[t])&&(0,y.isObject)(n[t])?C(u[t],n[t],i):u[t]=n[t]):u[t]=n[t]}),u):n}e.mixin=C;function h(u,n){if(u===n)return!0;if(u==null||n===null||n===void 0||typeof u!=typeof n||typeof u!="object"||Array.isArray(u)!==Array.isArray(n))return!1;let i,t;if(Array.isArray(u)){if(u.length!==n.length)return!1;for(i=0;i<u.length;i++)if(!h(u[i],n[i]))return!1}else{const o=[];for(t in u)o.push(t);o.sort();const s=[];for(t in n)s.push(t);if(s.sort(),!h(o,s))return!1;for(i=0;i<o.length;i++)if(!h(u[o[i]],n[o[i]]))return!1}return!0}e.equals=h}),define(oe[148],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toUint32=e.toUint8=void 0;function y(k){return k<0?0:k>255?255:k|0}e.toUint8=y;function v(k){return k<0?0:k>4294967295?4294967295:k|0}e.toUint32=v}),define(oe[223],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.generateUuid=void 0,e.generateUuid=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let y;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?y=crypto.getRandomValues.bind(crypto):y=function(D){for(let w=0;w<D.length;w++)D[w]=Math.floor(Math.random()*256);return D};const v=new Uint8Array(16),k=[];for(let D=0;D<256;D++)k.push(D.toString(16).padStart(2,"0"));return function(){y(v),v[6]=v[6]&15|64,v[8]=v[8]&63|128;let D=0,w="";return w+=k[v[D++]],w+=k[v[D++]],w+=k[v[D++]],w+=k[v[D++]],w+="-",w+=k[v[D++]],w+=k[v[D++]],w+="-",w+=k[v[D++]],w+=k[v[D++]],w+="-",w+=k[v[D++]],w+=k[v[D++]],w+="-",w+=k[v[D++]],w+=k[v[D++]],w+=k[v[D++]],w+=k[v[D++]],w+=k[v[D++]],w+=k[v[D++]],w}}()}),define(oe[224],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.quickPickItemScorerAccessor=e.QuickPickItemScorerAccessor=e.ItemActivation=e.QuickInputHideReason=e.NO_KEY_MODS=void 0,e.NO_KEY_MODS={ctrlCmd:!1,alt:!1};var y;(function(D){D[D.Blur=1]="Blur",D[D.Gesture=2]="Gesture",D[D.Other=3]="Other"})(y=e.QuickInputHideReason||(e.QuickInputHideReason={}));var v;(function(D){D[D.NONE=0]="NONE",D[D.FIRST=1]="FIRST",D[D.SECOND=2]="SECOND",D[D.LAST=3]="LAST"})(v=e.ItemActivation||(e.ItemActivation={}));class k{constructor(w){this.options=w}}e.QuickPickItemScorerAccessor=k,e.quickPickItemScorerAccessor=new k}),define(oe[225],se([13]),{}),define(oe[334],se([13]),{}),define(oe[335],se([13]),{}),define(oe[336],se([13]),{}),define(oe[337],se([13]),{}),define(oe[149],se([1,0,27,336,337]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.formatRule=void 0;function v(k){let D=k.definition;for(;D instanceof y.Codicon;)D=D.definition;return`.codicon-${k.id}:before { content: '${D.fontCharacter}'; }`}e.formatRule=v}),define(oe[338],se([13]),{}),define(oe[339],se([13]),{}),define(oe[226],se([13]),{}),define(oe[227],se([13]),{}),define(oe[340],se([13]),{}),define(oe[341],se([13]),{}),define(oe[342],se([13]),{}),define(oe[343],se([13]),{}),define(oe[228],se([13]),{}),define(oe[344],se([13]),{}),define(oe[150],se([1,0,344]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MOUSE_CURSOR_TEXT_CSS_CLASS_NAME=void 0,e.MOUSE_CURSOR_TEXT_CSS_CLASS_NAME="monaco-mouse-cursor-text"}),define(oe[345],se([13]),{}),define(oe[346],se([13]),{}),define(oe[347],se([13]),{}),define(oe[348],se([13]),{}),define(oe[349],se([13]),{}),define(oe[350],se([13]),{}),define(oe[351],se([13]),{}),define(oe[151],se([13]),{}),define(oe[352],se([13]),{}),define(oe[353],se([13]),{}),define(oe[354],se([13]),{}),define(oe[355],se([13]),{}),define(oe[356],se([13]),{}),define(oe[357],se([13]),{}),define(oe[358],se([13]),{}),define(oe[359],se([13]),{}),define(oe[360],se([13]),{}),define(oe[361],se([13]),{}),define(oe[362],se([13]),{}),define(oe[363],se([13]),{}),define(oe[364],se([13]),{}),define(oe[365],se([13]),{}),define(oe[366],se([13]),{}),define(oe[367],se([13]),{}),define(oe[368],se([13]),{}),define(oe[369],se([13]),{}),define(oe[370],se([13]),{}),define(oe[371],se([13]),{}),define(oe[372],se([13]),{}),define(oe[373],se([13]),{}),define(oe[374],se([13]),{}),define(oe[375],se([13]),{}),define(oe[376],se([13]),{}),define(oe[377],se([13]),{}),define(oe[378],se([13]),{}),define(oe[379],se([13]),{}),define(oe[380],se([13]),{}),define(oe[381],se([13]),{}),define(oe[382],se([13]),{}),define(oe[383],se([13]),{}),define(oe[384],se([13]),{}),define(oe[385],se([13]),{}),define(oe[386],se([13]),{}),define(oe[387],se([13]),{}),define(oe[388],se([13]),{}),define(oe[389],se([13]),{}),define(oe[390],se([13]),{}),define(oe[391],se([13]),{}),define(oe[392],se([13]),{}),define(oe[393],se([13]),{}),define(oe[394],se([13]),{}),define(oe[395],se([13]),{}),define(oe[396],se([13]),{}),define(oe[397],se([13]),{}),define(oe[398],se([13]),{}),define(oe[399],se([13]),{}),define(oe[65],se([1,0,33]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.applyFontInfo=void 0;function v(k,D){k instanceof y.FastDomNode?(k.setFontFamily(D.getMassagedFontFamily()),k.setFontWeight(D.fontWeight),k.setFontSize(D.fontSize),k.setFontFeatureSettings(D.fontFeatureSettings),k.setLineHeight(D.lineHeight),k.setLetterSpacing(D.letterSpacing)):(k.style.fontFamily=D.getMassagedFontFamily(),k.style.fontWeight=D.fontWeight,k.style.fontSize=D.fontSize+"px",k.style.fontFeatureSettings=D.fontFeatureSettings,k.style.lineHeight=D.lineHeight+"px",k.style.letterSpacing=D.letterSpacing+"px")}e.applyFontInfo=v}),define(oe[400],se([1,0,65]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.readCharWidths=e.CharWidthRequest=void 0;class v{constructor(b,C){this.chr=b,this.type=C,this.width=0}fulfill(b){this.width=b}}e.CharWidthRequest=v;class k{constructor(b,C){this._bareFontInfo=b,this._requests=C,this._container=null,this._testElements=null}read(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null}_createDomElements(){const b=document.createElement("div");b.style.position="absolute",b.style.top="-50000px",b.style.width="50000px";const C=document.createElement("div");(0,y.applyFontInfo)(C,this._bareFontInfo),b.appendChild(C);const h=document.createElement("div");(0,y.applyFontInfo)(h,this._bareFontInfo),h.style.fontWeight="bold",b.appendChild(h);const u=document.createElement("div");(0,y.applyFontInfo)(u,this._bareFontInfo),u.style.fontStyle="italic",b.appendChild(u);const n=[];for(const i of this._requests){let t;i.type===0&&(t=C),i.type===2&&(t=h),i.type===1&&(t=u),t.appendChild(document.createElement("br"));const o=document.createElement("span");k._render(o,i),t.appendChild(o),n.push(o)}this._container=b,this._testElements=n}static _render(b,C){if(C.chr===" "){let h="\xA0";for(let u=0;u<8;u++)h+=h;b.innerText=h}else{let h=C.chr;for(let u=0;u<8;u++)h+=h;b.textContent=h}}_readFromDomElements(){for(let b=0,C=this._requests.length;b<C;b++){const h=this._requests[b],u=this._testElements[b];h.fulfill(u.offsetWidth/256)}}}function D(w,b){new k(w,b).read()}e.readCharWidths=D}),define(oe[401],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.migrateOptions=e.EditorSettingMigration=void 0;class y{constructor(C,h){this.key=C,this.migrate=h}apply(C){const h=y._read(C,this.key),u=i=>y._read(C,i),n=(i,t)=>y._write(C,i,t);this.migrate(h,u,n)}static _read(C,h){if(typeof C>"u")return;const u=h.indexOf(".");if(u>=0){const n=h.substring(0,u);return this._read(C[n],h.substring(u+1))}return C[h]}static _write(C,h,u){const n=h.indexOf(".");if(n>=0){const i=h.substring(0,n);C[i]=C[i]||{},this._write(C[i],h.substring(n+1),u);return}C[h]=u}}e.EditorSettingMigration=y,y.items=[];function v(b,C){y.items.push(new y(b,C))}function k(b,C){v(b,(h,u,n)=>{if(typeof h<"u"){for(const[i,t]of C)if(h===i){n(b,t);return}}})}function D(b){y.items.forEach(C=>C.apply(b))}e.migrateOptions=D,k("wordWrap",[[!0,"on"],[!1,"off"]]),k("lineNumbers",[[!0,"on"],[!1,"off"]]),k("cursorBlinking",[["visible","solid"]]),k("renderWhitespace",[[!0,"boundary"],[!1,"none"]]),k("renderLineHighlight",[[!0,"line"],[!1,"none"]]),k("acceptSuggestionOnEnter",[[!0,"on"],[!1,"off"]]),k("tabCompletion",[[!1,"off"],[!0,"onlySnippets"]]),k("hover",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),k("parameterHints",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),k("autoIndent",[[!1,"advanced"],[!0,"full"]]),k("matchBrackets",[[!0,"always"],[!1,"never"]]),v("autoClosingBrackets",(b,C,h)=>{b===!1&&(h("autoClosingBrackets","never"),typeof C("autoClosingQuotes")>"u"&&h("autoClosingQuotes","never"),typeof C("autoSurround")>"u"&&h("autoSurround","never"))}),v("renderIndentGuides",(b,C,h)=>{typeof b<"u"&&(h("renderIndentGuides",void 0),typeof C("guides.indentation")>"u"&&h("guides.indentation",!!b))}),v("highlightActiveIndentGuide",(b,C,h)=>{typeof b<"u"&&(h("highlightActiveIndentGuide",void 0),typeof C("guides.highlightActiveIndentation")>"u"&&h("guides.highlightActiveIndentation",!!b))});const w={method:"showMethods",function:"showFunctions",constructor:"showConstructors",deprecated:"showDeprecated",field:"showFields",variable:"showVariables",class:"showClasses",struct:"showStructs",interface:"showInterfaces",module:"showModules",property:"showProperties",event:"showEvents",operator:"showOperators",unit:"showUnits",value:"showValues",constant:"showConstants",enum:"showEnums",enumMember:"showEnumMembers",keyword:"showKeywords",text:"showWords",color:"showColors",file:"showFiles",reference:"showReferences",folder:"showFolders",typeParameter:"showTypeParameters",snippet:"showSnippets"};v("suggest.filteredTypes",(b,C,h)=>{if(b&&typeof b=="object"){for(const u of Object.entries(w))b[u[0]]===!1&&typeof C(`suggest.${u[1]}`)>"u"&&h(`suggest.${u[1]}`,!1);h("suggest.filteredTypes",void 0)}}),v("quickSuggestions",(b,C,h)=>{if(typeof b=="boolean"){const u=b?"on":"off";h("quickSuggestions",{comments:u,strings:u,other:u})}})}),define(oe[152],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StableEditorScrollState=void 0;class y{constructor(k,D,w){this._visiblePosition=k,this._visiblePositionScrollDelta=D,this._cursorPosition=w}static capture(k){let D=null,w=0;if(k.getScrollTop()!==0){const b=k.getVisibleRanges();if(b.length>0){D=b[0].getStartPosition();const C=k.getTopForPosition(D.lineNumber,D.column);w=k.getScrollTop()-C}}return new y(D,w,k.getPosition())}restore(k){if(this._visiblePosition){const D=k.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);k.setScrollTop(D+this._visiblePositionScrollDelta)}}restoreRelativeVerticalPositionOfCursor(k){const D=k.getPosition();if(!this._cursorPosition||!D)return;const w=k.getTopForLineNumber(D.lineNumber)-k.getTopForLineNumber(this._cursorPosition.lineNumber);k.setScrollTop(k.getScrollTop()+w)}}e.StableEditorScrollState=y}),define(oe[125],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VisibleRanges=e.HorizontalPosition=e.FloatHorizontalRange=e.HorizontalRange=e.LineVisibleRanges=e.RenderingContext=e.RestrictedRenderingContext=void 0;class y{constructor(u,n){this._restrictedRenderingContextBrand=void 0,this._viewLayout=u,this.viewportData=n,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;const i=this._viewLayout.getCurrentViewport();this.scrollTop=i.top,this.scrollLeft=i.left,this.viewportWidth=i.width,this.viewportHeight=i.height}getScrolledTopFromAbsoluteTop(u){return u-this.scrollTop}getVerticalOffsetForLineNumber(u){return this._viewLayout.getVerticalOffsetForLineNumber(u)}getDecorationsInViewport(){return this.viewportData.getDecorationsInViewport()}}e.RestrictedRenderingContext=y;class v extends y{constructor(u,n,i){super(u,n),this._renderingContextBrand=void 0,this._viewLines=i}linesVisibleRangesForRange(u,n){return this._viewLines.linesVisibleRangesForRange(u,n)}visibleRangeForPosition(u){return this._viewLines.visibleRangeForPosition(u)}}e.RenderingContext=v;class k{constructor(u,n,i){this.outsideRenderedLine=u,this.lineNumber=n,this.ranges=i}}e.LineVisibleRanges=k;class D{constructor(u,n){this._horizontalRangeBrand=void 0,this.left=Math.round(u),this.width=Math.round(n)}static from(u){const n=new Array(u.length);for(let i=0,t=u.length;i<t;i++){const o=u[i];n[i]=new D(o.left,o.width)}return n}toString(){return`[${this.left},${this.width}]`}}e.HorizontalRange=D;class w{constructor(u,n){this._floatHorizontalRangeBrand=void 0,this.left=u,this.width=n}toString(){return`[${this.left},${this.width}]`}static compare(u,n){return u.left-n.left}}e.FloatHorizontalRange=w;class b{constructor(u,n){this.outsideRenderedLine=u,this.originalLeft=n,this.left=Math.round(this.originalLeft)}}e.HorizontalPosition=b;class C{constructor(u,n){this.outsideRenderedLine=u,this.ranges=n}}e.VisibleRanges=C}),define(oe[229],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewUserInputEvents=void 0;class y{constructor(k){this.onKeyDown=null,this.onKeyUp=null,this.onContextMenu=null,this.onMouseMove=null,this.onMouseLeave=null,this.onMouseDown=null,this.onMouseUp=null,this.onMouseDrag=null,this.onMouseDrop=null,this.onMouseDropCanceled=null,this.onMouseWheel=null,this._coordinatesConverter=k}emitKeyDown(k){var D;(D=this.onKeyDown)===null||D===void 0||D.call(this,k)}emitKeyUp(k){var D;(D=this.onKeyUp)===null||D===void 0||D.call(this,k)}emitContextMenu(k){var D;(D=this.onContextMenu)===null||D===void 0||D.call(this,this._convertViewToModelMouseEvent(k))}emitMouseMove(k){var D;(D=this.onMouseMove)===null||D===void 0||D.call(this,this._convertViewToModelMouseEvent(k))}emitMouseLeave(k){var D;(D=this.onMouseLeave)===null||D===void 0||D.call(this,this._convertViewToModelMouseEvent(k))}emitMouseDown(k){var D;(D=this.onMouseDown)===null||D===void 0||D.call(this,this._convertViewToModelMouseEvent(k))}emitMouseUp(k){var D;(D=this.onMouseUp)===null||D===void 0||D.call(this,this._convertViewToModelMouseEvent(k))}emitMouseDrag(k){var D;(D=this.onMouseDrag)===null||D===void 0||D.call(this,this._convertViewToModelMouseEvent(k))}emitMouseDrop(k){var D;(D=this.onMouseDrop)===null||D===void 0||D.call(this,this._convertViewToModelMouseEvent(k))}emitMouseDropCanceled(){var k;(k=this.onMouseDropCanceled)===null||k===void 0||k.call(this)}emitMouseWheel(k){var D;(D=this.onMouseWheel)===null||D===void 0||D.call(this,k)}_convertViewToModelMouseEvent(k){return k.target?{event:k.event,target:this._convertViewToModelMouseTarget(k.target)}:k}_convertViewToModelMouseTarget(k){return y.convertViewToModelMouseTarget(k,this._coordinatesConverter)}static convertViewToModelMouseTarget(k,D){const w=Object.assign({},k);return w.position&&(w.position=D.convertViewPositionToModelPosition(w.position)),w.range&&(w.range=D.convertViewRangeToModelRange(w.range)),w}}e.ViewUserInputEvents=y}),define(oe[402],se([1,0,125]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RangeUtil=void 0;class v{static _createRange(){return this._handyReadyRange||(this._handyReadyRange=document.createRange()),this._handyReadyRange}static _detachRange(D,w){D.selectNodeContents(w)}static _readClientRects(D,w,b,C,h){const u=this._createRange();try{return u.setStart(D,w),u.setEnd(b,C),u.getClientRects()}catch{return null}finally{this._detachRange(u,h)}}static _mergeAdjacentRanges(D){if(D.length===1)return D;D.sort(y.FloatHorizontalRange.compare);const w=[];let b=0,C=D[0];for(let h=1,u=D.length;h<u;h++){const n=D[h];C.left+C.width+.9>=n.left?C.width=Math.max(C.width,n.left+n.width-C.left):(w[b++]=C,C=n)}return w[b++]=C,w}static _createHorizontalRangesFromClientRects(D,w,b){if(!D||D.length===0)return null;const C=[];for(let h=0,u=D.length;h<u;h++){const n=D[h];C[h]=new y.FloatHorizontalRange(Math.max(0,(n.left-w)/b),n.width/b)}return this._mergeAdjacentRanges(C)}static readHorizontalRanges(D,w,b,C,h,u,n,i){const o=D.children.length-1;if(0>o)return null;if(w=Math.min(o,Math.max(0,w)),C=Math.min(o,Math.max(0,C)),w===C&&b===h&&b===0&&!D.children[w].firstChild){const a=D.children[w].getClientRects();return this._createHorizontalRangesFromClientRects(a,u,n)}w!==C&&C>0&&h===0&&(C--,h=1073741824);let s=D.children[w].firstChild,d=D.children[C].firstChild;if((!s||!d)&&(!s&&b===0&&w>0&&(s=D.children[w-1].firstChild,b=1073741824),!d&&h===0&&C>0&&(d=D.children[C-1].firstChild,h=1073741824)),!s||!d)return null;b=Math.min(s.textContent.length,Math.max(0,b)),h=Math.min(d.textContent.length,Math.max(0,h));const l=this._readClientRects(s,b,d,h,i);return this._createHorizontalRangesFromClientRects(l,u,n)}}e.RangeUtil=v}),define(oe[230],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCharIndex=e.allCharCodes=void 0,e.allCharCodes=(()=>{const v=[];for(let k=32;k<=126;k++)v.push(k);return v.push(65533),v})();const y=(v,k)=>(v-=32,v<0||v>96?k<=2?(v+96)%96:96-1:v);e.getCharIndex=y}),define(oe[403],se([1,0,230,148]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MinimapCharRenderer=void 0;class k{constructor(w,b){this.scale=b,this._minimapCharRendererBrand=void 0,this.charDataNormal=k.soften(w,12/15),this.charDataLight=k.soften(w,50/60)}static soften(w,b){const C=new Uint8ClampedArray(w.length);for(let h=0,u=w.length;h<u;h++)C[h]=(0,v.toUint8)(w[h]*b);return C}renderChar(w,b,C,h,u,n,i,t,o,s,d){const l=1*this.scale,a=2*this.scale,r=d?1:a;if(b+l>w.width||C+r>w.height){console.warn("bad render request outside image data");return}const c=s?this.charDataLight:this.charDataNormal,g=(0,y.getCharIndex)(h,o),f=w.width*4,_=i.r,p=i.g,m=i.b,S=u.r-_,E=u.g-p,L=u.b-m,N=Math.max(n,t),I=w.data;let R=g*l*a,F=C*f+b*4;for(let O=0;O<r;O++){let x=F;for(let M=0;M<l;M++){const P=c[R++]/255*(n/255);I[x++]=_+S*P,I[x++]=p+E*P,I[x++]=m+L*P,I[x++]=N}F+=f}}blockRenderChar(w,b,C,h,u,n,i,t){const o=1*this.scale,s=2*this.scale,d=t?1:s;if(b+o>w.width||C+d>w.height){console.warn("bad render request outside image data");return}const l=w.width*4,a=.5*(u/255),r=n.r,c=n.g,g=n.b,f=h.r-r,_=h.g-c,p=h.b-g,m=r+f*a,S=c+_*a,E=g+p*a,L=Math.max(u,i),N=w.data;let I=C*l+b*4;for(let R=0;R<d;R++){let F=I;for(let O=0;O<o;O++)N[F++]=m,N[F++]=S,N[F++]=E,N[F++]=L;I+=l}}}e.MinimapCharRenderer=k}),define(oe[404],se([1,0,96]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.prebakedMiniMaps=void 0;const v={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15},k=D=>{const w=new Uint8ClampedArray(D.length/2);for(let b=0;b<D.length;b+=2)w[b>>1]=v[D[b]]<<4|v[D[b+1]]&15;return w};e.prebakedMiniMaps={1:(0,y.once)(()=>k("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")),2:(0,y.once)(()=>k("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126"))}}),define(oe[405],se([1,0,403,230,404,148]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MinimapCharRendererFactory=void 0;class w{static create(C,h){if(this.lastCreated&&C===this.lastCreated.scale&&h===this.lastFontFamily)return this.lastCreated;let u;return k.prebakedMiniMaps[C]?u=new y.MinimapCharRenderer(k.prebakedMiniMaps[C](),C):u=w.createFromSampleData(w.createSampleData(h).data,C),this.lastFontFamily=h,this.lastCreated=u,u}static createSampleData(C){const h=document.createElement("canvas"),u=h.getContext("2d");h.style.height="16px",h.height=16,h.width=96*10,h.style.width=96*10+"px",u.fillStyle="#ffffff",u.font=`bold 16px ${C}`,u.textBaseline="middle";let n=0;for(const i of v.allCharCodes)u.fillText(String.fromCharCode(i),n,16/2),n+=10;return u.getImageData(0,0,96*10,16)}static createFromSampleData(C,h){if(C.length!==61440)throw new Error("Unexpected source in MinimapCharRenderer");const n=w._downsample(C,h);return new y.MinimapCharRenderer(n,h)}static _downsampleChar(C,h,u,n,i){const t=1*i,o=2*i;let s=n,d=0;for(let l=0;l<o;l++){const a=l/o*16,r=(l+1)/o*16;for(let c=0;c<t;c++){const g=c/t*10,f=(c+1)/t*10;let _=0,p=0;for(let S=a;S<r;S++){const E=h+Math.floor(S)*3840,L=1-(S-Math.floor(S));for(let N=g;N<f;N++){const I=1-(N-Math.floor(N)),R=E+Math.floor(N)*4,F=I*L;p+=F,_+=C[R]*C[R+3]/255*F}}const m=_/p;d=Math.max(d,m),u[s++]=(0,D.toUint8)(m)}}return d}static _downsample(C,h){const u=2*h*1*h,n=u*96,i=new Uint8ClampedArray(n);let t=0,o=0,s=0;for(let d=0;d<96;d++)s=Math.max(s,this._downsampleChar(C,o,i,t,h)),t+=u,o+=10*4;if(s>0){const d=255/s;for(let l=0;l<n;l++)i[l]*=d}return i}}e.MinimapCharRendererFactory=w}),define(oe[107],se([1,0,148]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CharacterSet=e.CharacterClassifier=void 0;class v{constructor(w){const b=(0,y.toUint8)(w);this._defaultValue=b,this._asciiMap=v._createAsciiMap(b),this._map=new Map}static _createAsciiMap(w){const b=new Uint8Array(256);for(let C=0;C<256;C++)b[C]=w;return b}set(w,b){const C=(0,y.toUint8)(b);w>=0&&w<256?this._asciiMap[w]=C:this._map.set(w,C)}get(w){return w>=0&&w<256?this._asciiMap[w]:this._map.get(w)||this._defaultValue}}e.CharacterClassifier=v;class k{constructor(){this._actual=new v(0)}add(w){this._actual.set(w,1)}has(w){return this._actual.get(w)===1}}e.CharacterSet=k}),define(oe[66],se([1,0,8]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CursorColumns=void 0;class v{static _nextVisibleColumn(D,w,b){return D===9?v.nextRenderTabStop(w,b):y.isFullWidthCharacter(D)||y.isEmojiImprecise(D)?w+2:w+1}static visibleColumnFromColumn(D,w,b){const C=Math.min(w-1,D.length),h=D.substring(0,C),u=new y.GraphemeIterator(h);let n=0;for(;!u.eol();){const i=y.getNextCodePoint(h,C,u.offset);u.nextGraphemeLength(),n=this._nextVisibleColumn(i,n,b)}return n}static columnFromVisibleColumn(D,w,b){if(w<=0)return 1;const C=D.length,h=new y.GraphemeIterator(D);let u=0,n=1;for(;!h.eol();){const i=y.getNextCodePoint(D,C,h.offset);h.nextGraphemeLength();const t=this._nextVisibleColumn(i,u,b),o=h.offset+1;if(t>=w){const s=w-u;return t-w<s?o:n}u=t,n=o}return C+1}static nextRenderTabStop(D,w){return D+w-D%w}static nextIndentTabStop(D,w){return D+w-D%w}static prevRenderTabStop(D,w){return Math.max(0,D-1-(D-1)%w)}static prevIndentTabStop(D,w){return Math.max(0,D-1-(D-1)%w)}}e.CursorColumns=v}),define(oe[126],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.countEOL=void 0;function y(v){let k=0,D=0,w=0,b=0;for(let C=0,h=v.length;C<h;C++){const u=v.charCodeAt(C);u===13?(k===0&&(D=C),k++,C+1<h&&v.charCodeAt(C+1)===10?(b|=2,C++):b|=3,w=C+1):u===10&&(b|=1,k===0&&(D=C),k++,w=C+1)}return k===0&&(D=v.length),[k,D,v.length-w,b]}e.countEOL=y}),define(oe[179],se([1,0,8,66]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.normalizeIndentation=void 0;function k(w,b,C){let h=0;for(let n=0;n<w.length;n++)w.charAt(n)===" "?h=v.CursorColumns.nextIndentTabStop(h,b):h++;let u="";if(!C){const n=Math.floor(h/b);h=h%b;for(let i=0;i<n;i++)u+=" "}for(let n=0;n<h;n++)u+=" ";return u}function D(w,b,C){let h=y.firstNonWhitespaceIndex(w);return h===-1&&(h=w.length),k(w.substring(0,h),b,C)+w.substring(h)}e.normalizeIndentation=D}),define(oe[11],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Position=void 0;class y{constructor(k,D){this.lineNumber=k,this.column=D}with(k=this.lineNumber,D=this.column){return k===this.lineNumber&&D===this.column?this:new y(k,D)}delta(k=0,D=0){return this.with(this.lineNumber+k,this.column+D)}equals(k){return y.equals(this,k)}static equals(k,D){return!k&&!D?!0:!!k&&!!D&&k.lineNumber===D.lineNumber&&k.column===D.column}isBefore(k){return y.isBefore(this,k)}static isBefore(k,D){return k.lineNumber<D.lineNumber?!0:D.lineNumber<k.lineNumber?!1:k.column<D.column}isBeforeOrEqual(k){return y.isBeforeOrEqual(this,k)}static isBeforeOrEqual(k,D){return k.lineNumber<D.lineNumber?!0:D.lineNumber<k.lineNumber?!1:k.column<=D.column}static compare(k,D){const w=k.lineNumber|0,b=D.lineNumber|0;if(w===b){const C=k.column|0,h=D.column|0;return C-h}return w-b}clone(){return new y(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(k){return new y(k.lineNumber,k.column)}static isIPosition(k){return k&&typeof k.lineNumber=="number"&&typeof k.column=="number"}}e.Position=y}),define(oe[3],se([1,0,11]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Range=void 0;class v{constructor(D,w,b,C){D>b||D===b&&w>C?(this.startLineNumber=b,this.startColumn=C,this.endLineNumber=D,this.endColumn=w):(this.startLineNumber=D,this.startColumn=w,this.endLineNumber=b,this.endColumn=C)}isEmpty(){return v.isEmpty(this)}static isEmpty(D){return D.startLineNumber===D.endLineNumber&&D.startColumn===D.endColumn}containsPosition(D){return v.containsPosition(this,D)}static containsPosition(D,w){return!(w.lineNumber<D.startLineNumber||w.lineNumber>D.endLineNumber||w.lineNumber===D.startLineNumber&&w.column<D.startColumn||w.lineNumber===D.endLineNumber&&w.column>D.endColumn)}static strictContainsPosition(D,w){return!(w.lineNumber<D.startLineNumber||w.lineNumber>D.endLineNumber||w.lineNumber===D.startLineNumber&&w.column<=D.startColumn||w.lineNumber===D.endLineNumber&&w.column>=D.endColumn)}containsRange(D){return v.containsRange(this,D)}static containsRange(D,w){return!(w.startLineNumber<D.startLineNumber||w.endLineNumber<D.startLineNumber||w.startLineNumber>D.endLineNumber||w.endLineNumber>D.endLineNumber||w.startLineNumber===D.startLineNumber&&w.startColumn<D.startColumn||w.endLineNumber===D.endLineNumber&&w.endColumn>D.endColumn)}strictContainsRange(D){return v.strictContainsRange(this,D)}static strictContainsRange(D,w){return!(w.startLineNumber<D.startLineNumber||w.endLineNumber<D.startLineNumber||w.startLineNumber>D.endLineNumber||w.endLineNumber>D.endLineNumber||w.startLineNumber===D.startLineNumber&&w.startColumn<=D.startColumn||w.endLineNumber===D.endLineNumber&&w.endColumn>=D.endColumn)}plusRange(D){return v.plusRange(this,D)}static plusRange(D,w){let b,C,h,u;return w.startLineNumber<D.startLineNumber?(b=w.startLineNumber,C=w.startColumn):w.startLineNumber===D.startLineNumber?(b=w.startLineNumber,C=Math.min(w.startColumn,D.startColumn)):(b=D.startLineNumber,C=D.startColumn),w.endLineNumber>D.endLineNumber?(h=w.endLineNumber,u=w.endColumn):w.endLineNumber===D.endLineNumber?(h=w.endLineNumber,u=Math.max(w.endColumn,D.endColumn)):(h=D.endLineNumber,u=D.endColumn),new v(b,C,h,u)}intersectRanges(D){return v.intersectRanges(this,D)}static intersectRanges(D,w){let b=D.startLineNumber,C=D.startColumn,h=D.endLineNumber,u=D.endColumn;const n=w.startLineNumber,i=w.startColumn,t=w.endLineNumber,o=w.endColumn;return b<n?(b=n,C=i):b===n&&(C=Math.max(C,i)),h>t?(h=t,u=o):h===t&&(u=Math.min(u,o)),b>h||b===h&&C>u?null:new v(b,C,h,u)}equalsRange(D){return v.equalsRange(this,D)}static equalsRange(D,w){return!!D&&!!w&&D.startLineNumber===w.startLineNumber&&D.startColumn===w.startColumn&&D.endLineNumber===w.endLineNumber&&D.endColumn===w.endColumn}getEndPosition(){return v.getEndPosition(this)}static getEndPosition(D){return new y.Position(D.endLineNumber,D.endColumn)}getStartPosition(){return v.getStartPosition(this)}static getStartPosition(D){return new y.Position(D.startLineNumber,D.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(D,w){return new v(this.startLineNumber,this.startColumn,D,w)}setStartPosition(D,w){return new v(D,w,this.endLineNumber,this.endColumn)}collapseToStart(){return v.collapseToStart(this)}static collapseToStart(D){return new v(D.startLineNumber,D.startColumn,D.startLineNumber,D.startColumn)}static fromPositions(D,w=D){return new v(D.lineNumber,D.column,w.lineNumber,w.column)}static lift(D){return D?new v(D.startLineNumber,D.startColumn,D.endLineNumber,D.endColumn):null}static isIRange(D){return D&&typeof D.startLineNumber=="number"&&typeof D.startColumn=="number"&&typeof D.endLineNumber=="number"&&typeof D.endColumn=="number"}static areIntersectingOrTouching(D,w){return!(D.endLineNumber<w.startLineNumber||D.endLineNumber===w.startLineNumber&&D.endColumn<w.startColumn||w.endLineNumber<D.startLineNumber||w.endLineNumber===D.startLineNumber&&w.endColumn<D.startColumn)}static areIntersecting(D,w){return!(D.endLineNumber<w.startLineNumber||D.endLineNumber===w.startLineNumber&&D.endColumn<=w.startColumn||w.endLineNumber<D.startLineNumber||w.endLineNumber===D.startLineNumber&&w.endColumn<=D.startColumn)}static compareRangesUsingStarts(D,w){if(D&&w){const b=D.startLineNumber|0,C=w.startLineNumber|0;if(b===C){const h=D.startColumn|0,u=w.startColumn|0;if(h===u){const n=D.endLineNumber|0,i=w.endLineNumber|0;if(n===i){const t=D.endColumn|0,o=w.endColumn|0;return t-o}return n-i}return h-u}return b-C}return(D?1:0)-(w?1:0)}static compareRangesUsingEnds(D,w){return D.endLineNumber===w.endLineNumber?D.endColumn===w.endColumn?D.startLineNumber===w.startLineNumber?D.startColumn-w.startColumn:D.startLineNumber-w.startLineNumber:D.endColumn-w.endColumn:D.endLineNumber-w.endLineNumber}static spansMultipleLines(D){return D.endLineNumber>D.startLineNumber}toJSON(){return this}}e.Range=v}),define(oe[231],se([1,0,8,11,3]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PagedScreenReaderStrategy=e.TextAreaState=e._debugComposition=void 0,e._debugComposition=!1;class D{constructor(C,h,u,n,i){this.value=C,this.selectionStart=h,this.selectionEnd=u,this.selectionStartPosition=n,this.selectionEndPosition=i}toString(){return`[ <${this.value}>, selectionStart: ${this.selectionStart}, selectionEnd: ${this.selectionEnd}]`}static readFromTextArea(C){return new D(C.getValue(),C.getSelectionStart(),C.getSelectionEnd(),null,null)}collapseSelection(){return new D(this.value,this.value.length,this.value.length,null,null)}writeToTextArea(C,h,u){e._debugComposition&&console.log(`writeToTextArea ${C}: ${this.toString()}`),h.setValue(C,this.value),u&&h.setSelectionRange(C,this.selectionStart,this.selectionEnd)}deduceEditorPosition(C){if(C<=this.selectionStart){const n=this.value.substring(C,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,n,-1)}if(C>=this.selectionEnd){const n=this.value.substring(this.selectionEnd,C);return this._finishDeduceEditorPosition(this.selectionEndPosition,n,1)}const h=this.value.substring(this.selectionStart,C);if(h.indexOf(String.fromCharCode(8230))===-1)return this._finishDeduceEditorPosition(this.selectionStartPosition,h,1);const u=this.value.substring(C,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,u,-1)}_finishDeduceEditorPosition(C,h,u){let n=0,i=-1;for(;(i=h.indexOf(` `,i+1))!==-1;)n++;return[C,u*h.length,n]}static deduceInput(C,h,u){if(!C)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};e._debugComposition&&(console.log("------------------------deduceInput"),console.log(`PREVIOUS STATE: ${C.toString()}`),console.log(`CURRENT STATE: ${h.toString()}`));const n=Math.min(y.commonPrefixLength(C.value,h.value),C.selectionStart,h.selectionStart),i=Math.min(y.commonSuffixLength(C.value,h.value),C.value.length-C.selectionEnd,h.value.length-h.selectionEnd),t=C.value.substring(n,C.value.length-i),o=h.value.substring(n,h.value.length-i),s=C.selectionStart-n,d=C.selectionEnd-n,l=h.selectionStart-n,a=h.selectionEnd-n;if(e._debugComposition&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${t}>, selectionStart: ${s}, selectionEnd: ${d}`),console.log(`AFTER DIFFING CURRENT STATE: <${o}>, selectionStart: ${l}, selectionEnd: ${a}`)),l===a){const c=C.selectionStart-n;return e._debugComposition&&console.log(`REMOVE PREVIOUS: ${c} chars`),{text:o,replacePrevCharCnt:c,replaceNextCharCnt:0,positionDelta:0}}const r=d-s;return{text:o,replacePrevCharCnt:r,replaceNextCharCnt:0,positionDelta:0}}static deduceAndroidCompositionInput(C,h){if(!C)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};if(e._debugComposition&&(console.log("------------------------deduceAndroidCompositionInput"),console.log(`PREVIOUS STATE: ${C.toString()}`),console.log(`CURRENT STATE: ${h.toString()}`)),C.value===h.value)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:h.selectionEnd-C.selectionEnd};const u=Math.min(y.commonPrefixLength(C.value,h.value),C.selectionEnd),n=Math.min(y.commonSuffixLength(C.value,h.value),C.value.length-C.selectionEnd),i=C.value.substring(u,C.value.length-n),t=h.value.substring(u,h.value.length-n),o=C.selectionStart-u,s=C.selectionEnd-u,d=h.selectionStart-u,l=h.selectionEnd-u;return e._debugComposition&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${i}>, selectionStart: ${o}, selectionEnd: ${s}`),console.log(`AFTER DIFFING CURRENT STATE: <${t}>, selectionStart: ${d}, selectionEnd: ${l}`)),{text:t,replacePrevCharCnt:s,replaceNextCharCnt:i.length-s,positionDelta:l-t.length}}}e.TextAreaState=D,D.EMPTY=new D("",0,0,null,null);class w{static _getPageOfLine(C,h){return Math.floor((C-1)/h)}static _getRangeForPage(C,h){const u=C*h,n=u+1,i=u+h;return new k.Range(n,1,i+1,1)}static fromEditorSelection(C,h,u,n,i){const t=w._getPageOfLine(u.startLineNumber,n),o=w._getRangeForPage(t,n),s=w._getPageOfLine(u.endLineNumber,n),d=w._getRangeForPage(s,n),l=o.intersectRanges(new k.Range(1,1,u.startLineNumber,u.startColumn));let a=h.getValueInRange(l,1);const r=h.getLineCount(),c=h.getLineMaxColumn(r),g=d.intersectRanges(new k.Range(u.endLineNumber,u.endColumn,r,c));let f=h.getValueInRange(g,1),_;if(t===s||t+1===s)_=h.getValueInRange(u,1);else{const p=o.intersectRanges(u),m=d.intersectRanges(u);_=h.getValueInRange(p,1)+String.fromCharCode(8230)+h.getValueInRange(m,1)}return i&&(a.length>500&&(a=a.substring(a.length-500,a.length)),f.length>500&&(f=f.substring(0,500)),_.length>2*500&&(_=_.substring(0,500)+String.fromCharCode(8230)+_.substring(_.length-500,_.length))),new D(a+_+f,a.length,a.length+_.length,new v.Position(u.startLineNumber,u.startColumn),new v.Position(u.endLineNumber,u.endColumn))}}e.PagedScreenReaderStrategy=w}),define(oe[60],se([1,0,3]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditOperation=void 0;class v{static insert(D,w){return{range:new y.Range(D.lineNumber,D.column,D.lineNumber,D.column),text:w,forceMoveMarkers:!0}}static delete(D){return{range:D,text:null}}static replace(D,w){return{range:D,text:w}}static replaceMove(D,w){return{range:D,text:w,forceMoveMarkers:!0}}}e.EditOperation=v}),define(oe[406],se([1,0,8,60,3]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.trimTrailingWhitespace=e.TrimTrailingWhitespaceCommand=void 0;class D{constructor(C,h){this._selection=C,this._cursors=h,this._selectionId=null}getEditOperations(C,h){const u=w(C,this._cursors);for(let n=0,i=u.length;n<i;n++){const t=u[n];h.addEditOperation(t.range,t.text)}this._selectionId=h.trackSelection(this._selection)}computeCursorState(C,h){return h.getTrackedSelection(this._selectionId)}}e.TrimTrailingWhitespaceCommand=D;function w(b,C){C.sort((t,o)=>t.lineNumber===o.lineNumber?t.column-o.column:t.lineNumber-o.lineNumber);for(let t=C.length-2;t>=0;t--)C[t].lineNumber===C[t+1].lineNumber&&C.splice(t,1);const h=[];let u=0,n=0;const i=C.length;for(let t=1,o=b.getLineCount();t<=o;t++){const s=b.getLineContent(t),d=s.length+1;let l=0;if(n<i&&C[n].lineNumber===t&&(l=C[n].column,n++,l===d)||s.length===0)continue;const a=y.lastNonWhitespaceIndex(s);let r=0;if(a===-1)r=1;else if(a!==s.length-1)r=a+2;else continue;r=Math.max(l,r),h[u++]=v.EditOperation.delete(new k.Range(t,r,t,d))}return h}e.trimTrailingWhitespace=w}),define(oe[232],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RGBA8=void 0;class y{constructor(k,D,w,b){this._rgba8Brand=void 0,this.r=y._clamp(k),this.g=y._clamp(D),this.b=y._clamp(w),this.a=y._clamp(b)}equals(k){return this.r===k.r&&this.g===k.g&&this.b===k.b&&this.a===k.a}static _clamp(k){return k<0?0:k>255?255:k|0}}e.RGBA8=y,y.Empty=new y(0,0,0,0)}),define(oe[23],se([1,0,11,3]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Selection=void 0;class k extends v.Range{constructor(w,b,C,h){super(w,b,C,h),this.selectionStartLineNumber=w,this.selectionStartColumn=b,this.positionLineNumber=C,this.positionColumn=h}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(w){return k.selectionsEqual(this,w)}static selectionsEqual(w,b){return w.selectionStartLineNumber===b.selectionStartLineNumber&&w.selectionStartColumn===b.selectionStartColumn&&w.positionLineNumber===b.positionLineNumber&&w.positionColumn===b.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(w,b){return this.getDirection()===0?new k(this.startLineNumber,this.startColumn,w,b):new k(w,b,this.startLineNumber,this.startColumn)}getPosition(){return new y.Position(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new y.Position(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(w,b){return this.getDirection()===0?new k(w,b,this.endLineNumber,this.endColumn):new k(this.endLineNumber,this.endColumn,w,b)}static fromPositions(w,b=w){return new k(w.lineNumber,w.column,b.lineNumber,b.column)}static fromRange(w,b){return b===0?new k(w.startLineNumber,w.startColumn,w.endLineNumber,w.endColumn):new k(w.endLineNumber,w.endColumn,w.startLineNumber,w.startColumn)}static liftSelection(w){return new k(w.selectionStartLineNumber,w.selectionStartColumn,w.positionLineNumber,w.positionColumn)}static selectionsArrEqual(w,b){if(w&&!b||!w&&b)return!1;if(!w&&!b)return!0;if(w.length!==b.length)return!1;for(let C=0,h=w.length;C<h;C++)if(!this.selectionsEqual(w[C],b[C]))return!1;return!0}static isISelection(w){return w&&typeof w.selectionStartLineNumber=="number"&&typeof w.selectionStartColumn=="number"&&typeof w.positionLineNumber=="number"&&typeof w.positionColumn=="number"}static createWithDirection(w,b,C,h,u){return u===0?new k(w,b,C,h):new k(C,h,w,b)}}e.Selection=k}),define(oe[108],se([1,0,23]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ReplaceCommandThatPreservesSelection=e.ReplaceCommandWithOffsetCursorState=e.ReplaceCommandWithoutChangingPosition=e.ReplaceCommandThatSelectsText=e.ReplaceCommand=void 0;class v{constructor(h,u,n=!1){this._range=h,this._text=u,this.insertsAutoWhitespace=n}getEditOperations(h,u){u.addTrackedEditOperation(this._range,this._text)}computeCursorState(h,u){const n=u.getInverseEditOperations()[0].range;return y.Selection.fromPositions(n.getEndPosition())}}e.ReplaceCommand=v;class k{constructor(h,u){this._range=h,this._text=u}getEditOperations(h,u){u.addTrackedEditOperation(this._range,this._text)}computeCursorState(h,u){const n=u.getInverseEditOperations()[0].range;return y.Selection.fromRange(n,0)}}e.ReplaceCommandThatSelectsText=k;class D{constructor(h,u,n=!1){this._range=h,this._text=u,this.insertsAutoWhitespace=n}getEditOperations(h,u){u.addTrackedEditOperation(this._range,this._text)}computeCursorState(h,u){const n=u.getInverseEditOperations()[0].range;return y.Selection.fromPositions(n.getStartPosition())}}e.ReplaceCommandWithoutChangingPosition=D;class w{constructor(h,u,n,i,t=!1){this._range=h,this._text=u,this._columnDeltaOffset=i,this._lineNumberDeltaOffset=n,this.insertsAutoWhitespace=t}getEditOperations(h,u){u.addTrackedEditOperation(this._range,this._text)}computeCursorState(h,u){const n=u.getInverseEditOperations()[0].range;return y.Selection.fromPositions(n.getEndPosition().delta(this._lineNumberDeltaOffset,this._columnDeltaOffset))}}e.ReplaceCommandWithOffsetCursorState=w;class b{constructor(h,u,n,i=!1){this._range=h,this._text=u,this._initialSelection=n,this._forceMoveMarkers=i,this._selectionId=null}getEditOperations(h,u){u.addTrackedEditOperation(this._range,this._text,this._forceMoveMarkers),this._selectionId=u.trackSelection(this._initialSelection)}computeCursorState(h,u){return u.getTrackedSelection(this._selectionId)}}e.ReplaceCommandThatPreservesSelection=b}),define(oe[407],se([1,0,3,23]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CompositionSurroundSelectionCommand=e.SurroundSelectionCommand=void 0;class k{constructor(b,C,h){this._range=b,this._charBeforeSelection=C,this._charAfterSelection=h}getEditOperations(b,C){C.addTrackedEditOperation(new y.Range(this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),C.addTrackedEditOperation(new y.Range(this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)}computeCursorState(b,C){const h=C.getInverseEditOperations(),u=h[0].range,n=h[1].range;return new v.Selection(u.endLineNumber,u.endColumn,n.endLineNumber,n.endColumn-this._charAfterSelection.length)}}e.SurroundSelectionCommand=k;class D{constructor(b,C,h){this._position=b,this._text=C,this._charAfter=h}getEditOperations(b,C){C.addTrackedEditOperation(new y.Range(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column),this._text+this._charAfter)}computeCursorState(b,C){const h=C.getInverseEditOperations()[0].range;return new v.Selection(h.endLineNumber,h.startColumn,h.endLineNumber,h.endColumn-this._charAfter.length)}}e.CompositionSurroundSelectionCommand=D}),define(oe[153],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EDITOR_MODEL_DEFAULTS=void 0,e.EDITOR_MODEL_DEFAULTS={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}}}),define(oe[127],se([1,0,107]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMapForWordSeparators=e.WordCharacterClassifier=void 0;class v extends y.CharacterClassifier{constructor(w){super(0);for(let b=0,C=w.length;b<C;b++)this.set(w.charCodeAt(b),2);this.set(32,1),this.set(9,1)}}e.WordCharacterClassifier=v;function k(D){const w={};return b=>(w.hasOwnProperty(b)||(w[b]=D(b)),w[b])}e.getMapForWordSeparators=k(D=>new v(D))}),define(oe[128],se([1,0,55,73]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getWordAtText=e.ensureValidWordDefinition=e.DEFAULT_WORD_REGEXP=e.USUAL_WORD_SEPARATORS=void 0,e.USUAL_WORD_SEPARATORS="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function k(h=""){let u="(-?\\d*\\.\\d\\w*)|([^";for(const n of e.USUAL_WORD_SEPARATORS)h.indexOf(n)>=0||(u+="\\"+n);return u+="\\s]+)",new RegExp(u,"g")}e.DEFAULT_WORD_REGEXP=k();function D(h){let u=e.DEFAULT_WORD_REGEXP;if(h&&h instanceof RegExp)if(h.global)u=h;else{let n="g";h.ignoreCase&&(n+="i"),h.multiline&&(n+="m"),h.unicode&&(n+="u"),u=new RegExp(h.source,n)}return u.lastIndex=0,u}e.ensureValidWordDefinition=D;const w=new v.LinkedList;w.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function b(h,u,n,i,t){if(t||(t=y.Iterable.first(w)),n.length>t.maxLen){let a=h-t.maxLen/2;return a<0?a=0:i+=a,n=n.substring(a,h+t.maxLen/2),b(h,u,n,i,t)}const o=Date.now(),s=h-1-i;let d=-1,l=null;for(let a=1;!(Date.now()-o>=t.timeBudget);a++){const r=s-t.windowSize*a;u.lastIndex=Math.max(0,r);const c=C(u,n,s,d);if(!c&&l||(l=c,r<=0))break;d=r}if(l){const a={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return u.lastIndex=0,a}return null}e.getWordAtText=b;function C(h,u,n,i){let t;for(;t=h.exec(u);){const o=t.index||0;if(o<=n&&h.lastIndex>=n)return t;if(i>0&&o>i)return null}return null}}),define(oe[233],se([1,0,66]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AtomicTabMoveOperations=void 0;class v{static whitespaceVisibleColumn(D,w,b){const C=D.length;let h=0,u=-1,n=-1;for(let i=0;i<C;i++){if(i===w)return[u,n,h];switch(h%b==0&&(u=i,n=h),D.charCodeAt(i)){case 32:h+=1;break;case 9:h=y.CursorColumns.nextRenderTabStop(h,b);break;default:return[-1,-1,-1]}}return w===C?[u,n,h]:[-1,-1,-1]}static atomicPosition(D,w,b,C){const h=D.length,[u,n,i]=v.whitespaceVisibleColumn(D,w,b);if(i===-1)return-1;let t;switch(C){case 0:t=!0;break;case 1:t=!1;break;case 2:if(i%b==0)return w;t=i%b<=b/2;break}if(t){if(u===-1)return-1;let d=n;for(let l=u;l<h;++l){if(d===n+b)return u;switch(D.charCodeAt(l)){case 32:d+=1;break;case 9:d=y.CursorColumns.nextRenderTabStop(d,b);break;default:return-1}}return d===n+b?u:-1}const o=y.CursorColumns.nextRenderTabStop(i,b);let s=i;for(let d=w;d<h;d++){if(s===o)return d;switch(D.charCodeAt(d)){case 32:s+=1;break;case 9:s=y.CursorColumns.nextRenderTabStop(s,b);break;default:return-1}}return s===o?h:-1}}e.AtomicTabMoveOperations=v}),define(oe[408],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CursorContext=void 0;class y{constructor(k,D,w,b){this._cursorContextBrand=void 0,this.model=k,this.viewModel=D,this.coordinatesConverter=w,this.cursorConfig=b}}e.CursorContext=y}),define(oe[409],se([1,0,147,8]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DiffComputer=void 0;const k=3;function D(s,d,l,a){return new y.LcsDiff(s,d,l).ComputeDiff(a)}class w{constructor(d){const l=[],a=[];for(let r=0,c=d.length;r<c;r++)l[r]=i(d[r],1),a[r]=t(d[r],1);this.lines=d,this._startColumns=l,this._endColumns=a}getElements(){const d=[];for(let l=0,a=this.lines.length;l<a;l++)d[l]=this.lines[l].substring(this._startColumns[l]-1,this._endColumns[l]-1);return d}getStrictElement(d){return this.lines[d]}getStartLineNumber(d){return d+1}getEndLineNumber(d){return d+1}createCharSequence(d,l,a){const r=[],c=[],g=[];let f=0;for(let _=l;_<=a;_++){const p=this.lines[_],m=d?this._startColumns[_]:1,S=d?this._endColumns[_]:p.length+1;for(let E=m;E<S;E++)r[f]=p.charCodeAt(E-1),c[f]=_+1,g[f]=E,f++;!d&&_<a&&(r[f]=10,c[f]=_+1,g[f]=p.length+1,f++)}return new b(r,c,g)}}class b{constructor(d,l,a){this._charCodes=d,this._lineNumbers=l,this._columns=a}toString(){return"["+this._charCodes.map((d,l)=>(d===10?"\\n":String.fromCharCode(d))+`-(${this._lineNumbers[l]},${this._columns[l]})`).join(", ")+"]"}_assertIndex(d,l){if(d<0||d>=l.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(d){return d>0&&d===this._lineNumbers.length?this.getEndLineNumber(d-1):(this._assertIndex(d,this._lineNumbers),this._lineNumbers[d])}getEndLineNumber(d){return d===-1?this.getStartLineNumber(d+1):(this._assertIndex(d,this._lineNumbers),this._charCodes[d]===10?this._lineNumbers[d]+1:this._lineNumbers[d])}getStartColumn(d){return d>0&&d===this._columns.length?this.getEndColumn(d-1):(this._assertIndex(d,this._columns),this._columns[d])}getEndColumn(d){return d===-1?this.getStartColumn(d+1):(this._assertIndex(d,this._columns),this._charCodes[d]===10?1:this._columns[d]+1)}}class C{constructor(d,l,a,r,c,g,f,_){this.originalStartLineNumber=d,this.originalStartColumn=l,this.originalEndLineNumber=a,this.originalEndColumn=r,this.modifiedStartLineNumber=c,this.modifiedStartColumn=g,this.modifiedEndLineNumber=f,this.modifiedEndColumn=_}static createFromDiffChange(d,l,a){const r=l.getStartLineNumber(d.originalStart),c=l.getStartColumn(d.originalStart),g=l.getEndLineNumber(d.originalStart+d.originalLength-1),f=l.getEndColumn(d.originalStart+d.originalLength-1),_=a.getStartLineNumber(d.modifiedStart),p=a.getStartColumn(d.modifiedStart),m=a.getEndLineNumber(d.modifiedStart+d.modifiedLength-1),S=a.getEndColumn(d.modifiedStart+d.modifiedLength-1);return new C(r,c,g,f,_,p,m,S)}}function h(s){if(s.length<=1)return s;const d=[s[0]];let l=d[0];for(let a=1,r=s.length;a<r;a++){const c=s[a],g=c.originalStart-(l.originalStart+l.originalLength),f=c.modifiedStart-(l.modifiedStart+l.modifiedLength);Math.min(g,f)<k?(l.originalLength=c.originalStart+c.originalLength-l.originalStart,l.modifiedLength=c.modifiedStart+c.modifiedLength-l.modifiedStart):(d.push(c),l=c)}return d}class u{constructor(d,l,a,r,c){this.originalStartLineNumber=d,this.originalEndLineNumber=l,this.modifiedStartLineNumber=a,this.modifiedEndLineNumber=r,this.charChanges=c}static createFromDiffResult(d,l,a,r,c,g,f){let _,p,m,S,E;if(l.originalLength===0?(_=a.getStartLineNumber(l.originalStart)-1,p=0):(_=a.getStartLineNumber(l.originalStart),p=a.getEndLineNumber(l.originalStart+l.originalLength-1)),l.modifiedLength===0?(m=r.getStartLineNumber(l.modifiedStart)-1,S=0):(m=r.getStartLineNumber(l.modifiedStart),S=r.getEndLineNumber(l.modifiedStart+l.modifiedLength-1)),g&&l.originalLength>0&&l.originalLength<20&&l.modifiedLength>0&&l.modifiedLength<20&&c()){const L=a.createCharSequence(d,l.originalStart,l.originalStart+l.originalLength-1),N=r.createCharSequence(d,l.modifiedStart,l.modifiedStart+l.modifiedLength-1);if(L.getElements().length>0&&N.getElements().length>0){let I=D(L,N,c,!0).changes;f&&(I=h(I)),E=[];for(let R=0,F=I.length;R<F;R++)E.push(C.createFromDiffChange(I[R],L,N))}}return new u(_,p,m,S,E)}}class n{constructor(d,l,a){this.shouldComputeCharChanges=a.shouldComputeCharChanges,this.shouldPostProcessCharChanges=a.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=a.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=a.shouldMakePrettyDiff,this.originalLines=d,this.modifiedLines=l,this.original=new w(d),this.modified=new w(l),this.continueLineDiff=o(a.maxComputationTime),this.continueCharDiff=o(a.maxComputationTime===0?0:Math.min(a.maxComputationTime,5e3))}computeDiff(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return this.modified.lines.length===1&&this.modified.lines[0].length===0?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};const d=D(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),l=d.changes,a=d.quitEarly;if(this.shouldIgnoreTrimWhitespace){const f=[];for(let _=0,p=l.length;_<p;_++)f.push(u.createFromDiffResult(this.shouldIgnoreTrimWhitespace,l[_],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:a,changes:f}}const r=[];let c=0,g=0;for(let f=-1,_=l.length;f<_;f++){const p=f+1<_?l[f+1]:null,m=p?p.originalStart:this.originalLines.length,S=p?p.modifiedStart:this.modifiedLines.length;for(;c<m&&g<S;){const E=this.originalLines[c],L=this.modifiedLines[g];if(E!==L){{let N=i(E,1),I=i(L,1);for(;N>1&&I>1;){const R=E.charCodeAt(N-2),F=L.charCodeAt(I-2);if(R!==F)break;N--,I--}(N>1||I>1)&&this._pushTrimWhitespaceCharChange(r,c+1,1,N,g+1,1,I)}{let N=t(E,1),I=t(L,1);const R=E.length+1,F=L.length+1;for(;N<R&&I<F;){const O=E.charCodeAt(N-1),x=E.charCodeAt(I-1);if(O!==x)break;N++,I++}(N<R||I<F)&&this._pushTrimWhitespaceCharChange(r,c+1,N,R,g+1,I,F)}}c++,g++}p&&(r.push(u.createFromDiffResult(this.shouldIgnoreTrimWhitespace,p,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),c+=p.originalLength,g+=p.modifiedLength)}return{quitEarly:a,changes:r}}_pushTrimWhitespaceCharChange(d,l,a,r,c,g,f){if(this._mergeTrimWhitespaceCharChange(d,l,a,r,c,g,f))return;let _;this.shouldComputeCharChanges&&(_=[new C(l,a,l,r,c,g,c,f)]),d.push(new u(l,l,c,c,_))}_mergeTrimWhitespaceCharChange(d,l,a,r,c,g,f){const _=d.length;if(_===0)return!1;const p=d[_-1];return p.originalEndLineNumber===0||p.modifiedEndLineNumber===0?!1:p.originalEndLineNumber+1===l&&p.modifiedEndLineNumber+1===c?(p.originalEndLineNumber=l,p.modifiedEndLineNumber=c,this.shouldComputeCharChanges&&p.charChanges&&p.charChanges.push(new C(l,a,l,r,c,g,c,f)),!0):!1}}e.DiffComputer=n;function i(s,d){const l=v.firstNonWhitespaceIndex(s);return l===-1?d:l+1}function t(s,d){const l=v.lastNonWhitespaceIndex(s);return l===-1?d:l+2}function o(s){if(s===0)return()=>!0;const d=Date.now();return()=>Date.now()-d<s}}),define(oe[234],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InternalEditorAction=void 0;class y{constructor(k,D,w,b,C,h){this.id=k,this.label=D,this.alias=w,this._precondition=b,this._run=C,this._contextKeyService=h}isSupported(){return this._contextKeyService.contextMatchesRules(this._precondition)}run(){return this.isSupported()?this._run():Promise.resolve(void 0)}}e.InternalEditorAction=y}),define(oe[154],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorType=void 0,e.EditorType={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"}}),define(oe[155],se([1,0,154]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCodeEditor=e.isDiffEditor=e.isCodeEditor=void 0;function v(w){return w&&typeof w.getEditorType=="function"?w.getEditorType()===y.EditorType.ICodeEditor:!1}e.isCodeEditor=v;function k(w){return w&&typeof w.getEditorType=="function"?w.getEditorType()===y.EditorType.IDiffEditor:!1}e.isDiffEditor=k;function D(w){return v(w)?w:k(w)?w.getModifiedEditor():null}e.getCodeEditor=D}),define(oe[410],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorTheme=void 0;class y{constructor(k){this._theme=k}get type(){return this._theme.type}get value(){return this._theme}update(k){this._theme=k}getColor(k){return this._theme.getColor(k)}}e.EditorTheme=y}),define(oe[109],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenMetadata=void 0;class y{static getLanguageId(k){return(k&255)>>>0}static getTokenType(k){return(k&768)>>>8}static containsBalancedBrackets(k){return(k&1024)!=0}static getFontStyle(k){return(k&30720)>>>11}static getForeground(k){return(k&16744448)>>>15}static getBackground(k){return(k&4278190080)>>>24}static getClassNameFromMetadata(k){let w="mtk"+this.getForeground(k);const b=this.getFontStyle(k);return b&1&&(w+=" mtki"),b&2&&(w+=" mtkb"),b&4&&(w+=" mtku"),b&8&&(w+=" mtks"),w}static getInlineStyleFromMetadata(k,D){const w=this.getForeground(k),b=this.getFontStyle(k);let C=`color: ${D[w]};`;b&1&&(C+="font-style: italic;"),b&2&&(C+="font-weight: bold;");let h="";return b&4&&(h+=" underline"),b&8&&(h+=" line-through"),h&&(C+=`text-decoration:${h};`),C}static getPresentationFromMetadata(k){const D=this.getForeground(k),w=this.getFontStyle(k);return{foreground:D,italic:!!(w&1),bold:!!(w&2),underline:!!(w&4),strikethrough:!!(w&8)}}}e.TokenMetadata=y}),define(oe[98],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AutoClosingPairs=e.StandardAutoClosingPairConditional=e.IndentAction=void 0;var y;(function(w){w[w.None=0]="None",w[w.Indent=1]="Indent",w[w.IndentOutdent=2]="IndentOutdent",w[w.Outdent=3]="Outdent"})(y=e.IndentAction||(e.IndentAction={}));class v{constructor(b){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=b.open,this.close=b.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(b.notIn))for(let C=0,h=b.notIn.length;C<h;C++)switch(b.notIn[C]){case"string":this._inString=!1;break;case"comment":this._inComment=!1;break;case"regex":this._inRegEx=!1;break}}isOK(b){switch(b){case 0:return!0;case 1:return this._inComment;case 2:return this._inString;case 3:return this._inRegEx}}shouldAutoClose(b,C){if(b.getTokenCount()===0)return!0;const h=b.findTokenIndexAtOffset(C-2),u=b.getStandardTokenType(h);return this.isOK(u)}_findNeutralCharacterInRange(b,C){for(let h=b;h<=C;h++){const u=String.fromCharCode(h);if(!this.open.includes(u)&&!this.close.includes(u))return u}return null}findNeutralCharacter(){return this._neutralCharacterSearched||(this._neutralCharacterSearched=!0,this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(48,57)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(97,122)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(65,90))),this._neutralCharacter}}e.StandardAutoClosingPairConditional=v;class k{constructor(b){this.autoClosingPairsOpenByStart=new Map,this.autoClosingPairsOpenByEnd=new Map,this.autoClosingPairsCloseByStart=new Map,this.autoClosingPairsCloseByEnd=new Map,this.autoClosingPairsCloseSingleChar=new Map;for(const C of b)D(this.autoClosingPairsOpenByStart,C.open.charAt(0),C),D(this.autoClosingPairsOpenByEnd,C.open.charAt(C.open.length-1),C),D(this.autoClosingPairsCloseByStart,C.close.charAt(0),C),D(this.autoClosingPairsCloseByEnd,C.close.charAt(C.close.length-1),C),C.close.length===1&&C.open.length===1&&D(this.autoClosingPairsCloseSingleChar,C.close,C)}}e.AutoClosingPairs=k;function D(w,b,C){w.has(b)?w.get(b).push(C):w.set(b,[C])}}),define(oe[411],se([1,0,107]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.computeLinks=e.LinkComputer=e.StateMachine=e.Uint8Matrix=void 0;class v{constructor(i,t,o){const s=new Uint8Array(i*t);for(let d=0,l=i*t;d<l;d++)s[d]=o;this._data=s,this.rows=i,this.cols=t}get(i,t){return this._data[i*this.cols+t]}set(i,t,o){this._data[i*this.cols+t]=o}}e.Uint8Matrix=v;class k{constructor(i){let t=0,o=0;for(let d=0,l=i.length;d<l;d++){const[a,r,c]=i[d];r>t&&(t=r),a>o&&(o=a),c>o&&(o=c)}t++,o++;const s=new v(o,t,0);for(let d=0,l=i.length;d<l;d++){const[a,r,c]=i[d];s.set(a,r,c)}this._states=s,this._maxCharCode=t}nextState(i,t){return t<0||t>=this._maxCharCode?0:this._states.get(i,t)}}e.StateMachine=k;let D=null;function w(){return D===null&&(D=new k([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),D}let b=null;function C(){if(b===null){b=new y.CharacterClassifier(0);const n=` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\u2018\u3008\u300C\u300E\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u300F\u300D\u3009\u2019\uFF40\uFF5E\u2026`;for(let t=0;t<n.length;t++)b.set(n.charCodeAt(t),1);const i=".,;:";for(let t=0;t<i.length;t++)b.set(i.charCodeAt(t),2)}return b}class h{static _createLink(i,t,o,s,d){let l=d-1;do{const a=t.charCodeAt(l);if(i.get(a)!==2)break;l--}while(l>s);if(s>0){const a=t.charCodeAt(s-1),r=t.charCodeAt(l);(a===40&&r===41||a===91&&r===93||a===123&&r===125)&&l--}return{range:{startLineNumber:o,startColumn:s+1,endLineNumber:o,endColumn:l+2},url:t.substring(s,l+1)}}static computeLinks(i,t=w()){const o=C(),s=[];for(let d=1,l=i.getLineCount();d<=l;d++){const a=i.getLineContent(d),r=a.length;let c=0,g=0,f=0,_=1,p=!1,m=!1,S=!1,E=!1;for(;c<r;){let L=!1;const N=a.charCodeAt(c);if(_===13){let I;switch(N){case 40:p=!0,I=0;break;case 41:I=p?0:1;break;case 91:S=!0,m=!0,I=0;break;case 93:S=!1,I=m?0:1;break;case 123:E=!0,I=0;break;case 125:I=E?0:1;break;case 39:I=f===39?1:0;break;case 34:I=f===34?1:0;break;case 96:I=f===96?1:0;break;case 42:I=f===42?1:0;break;case 124:I=f===124?1:0;break;case 32:I=S?0:1;break;default:I=o.get(N)}I===1&&(s.push(h._createLink(o,a,d,g,c)),L=!0)}else if(_===12){let I;N===91?(m=!0,I=0):I=o.get(N),I===1?L=!0:_=13}else _=t.nextState(_,N),_===0&&(L=!0);L&&(_=1,p=!1,m=!1,E=!1,g=c+1,f=N),c++}_===13&&s.push(h._createLink(o,a,d,g,r))}return s}}e.LinkComputer=h;function u(n){return!n||typeof n.getLineCount!="function"||typeof n.getLineContent!="function"?[]:h.computeLinks(n)}e.computeLinks=u}),define(oe[110],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ignoreBracketsInToken=e.ScopedLineTokens=e.createScopedLineTokens=void 0;function y(D,w){const b=D.getCount(),C=D.findTokenIndexAtOffset(w),h=D.getLanguageId(C);let u=C;for(;u+1<b&&D.getLanguageId(u+1)===h;)u++;let n=C;for(;n>0&&D.getLanguageId(n-1)===h;)n--;return new v(D,h,n,u+1,D.getStartOffset(n),D.getEndOffset(u))}e.createScopedLineTokens=y;class v{constructor(w,b,C,h,u,n){this._scopedLineTokensBrand=void 0,this._actual=w,this.languageId=b,this._firstTokenIndex=C,this._lastTokenIndex=h,this.firstCharOffset=u,this._lastCharOffset=n}getLineContent(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)}getActualLineContentBefore(w){return this._actual.getLineContent().substring(0,this.firstCharOffset+w)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(w){return this._actual.findTokenIndexAtOffset(w+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(w){return this._actual.getStandardTokenType(w+this._firstTokenIndex)}}e.ScopedLineTokens=v;function k(D){return(D&3)!=0}e.ignoreBracketsInToken=k}),define(oe[61],se([1,0,11,3,23,110,66,179]),function(q,e,y,v,k,D,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isQuote=e.EditOperationResult=e.SingleCursorState=e.PartialViewCursorState=e.PartialModelCursorState=e.CursorState=e.CursorConfiguration=void 0;const C=()=>!0,h=()=>!1,u=a=>a===" "||a===" ";class n{constructor(r,c,g,f){this.languageConfigurationService=f,this._cursorMoveConfigurationBrand=void 0,this._languageId=r;const _=g.options,p=_.get(133);this.readOnly=_.get(83),this.tabSize=c.tabSize,this.indentSize=c.indentSize,this.insertSpaces=c.insertSpaces,this.stickyTabStops=_.get(106),this.lineHeight=_.get(61),this.pageSize=Math.max(1,Math.floor(p.height/this.lineHeight)-2),this.useTabStops=_.get(118),this.wordSeparators=_.get(119),this.emptySelectionClipboard=_.get(33),this.copyWithSyntaxHighlighting=_.get(21),this.multiCursorMergeOverlapping=_.get(71),this.multiCursorPaste=_.get(73),this.autoClosingBrackets=_.get(5),this.autoClosingQuotes=_.get(8),this.autoClosingDelete=_.get(6),this.autoClosingOvertype=_.get(7),this.autoSurround=_.get(11),this.autoIndent=_.get(9),this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:this._getShouldAutoClose(r,this.autoClosingQuotes),bracket:this._getShouldAutoClose(r,this.autoClosingBrackets)},this.autoClosingPairs=this.languageConfigurationService.getLanguageConfiguration(r).getAutoClosingPairs();const m=this.languageConfigurationService.getLanguageConfiguration(r).getSurroundingPairs();if(m)for(const S of m)this.surroundingPairs[S.open]=S.close}static shouldRecreate(r){return r.hasChanged(133)||r.hasChanged(119)||r.hasChanged(33)||r.hasChanged(71)||r.hasChanged(73)||r.hasChanged(5)||r.hasChanged(8)||r.hasChanged(6)||r.hasChanged(7)||r.hasChanged(11)||r.hasChanged(118)||r.hasChanged(61)||r.hasChanged(83)}get electricChars(){var r;if(!this._electricChars){this._electricChars={};const c=(r=this.languageConfigurationService.getLanguageConfiguration(this._languageId).electricCharacter)===null||r===void 0?void 0:r.getElectricCharacters();if(c)for(const g of c)this._electricChars[g]=!0}return this._electricChars}onElectricCharacter(r,c,g){const f=(0,D.createScopedLineTokens)(c,g-1),_=this.languageConfigurationService.getLanguageConfiguration(f.languageId).electricCharacter;return _?_.onElectricCharacter(r,f,g-f.firstCharOffset):null}normalizeIndentation(r){return(0,b.normalizeIndentation)(r,this.indentSize,this.insertSpaces)}_getShouldAutoClose(r,c){switch(c){case"beforeWhitespace":return u;case"languageDefined":return this._getLanguageDefinedShouldAutoClose(r);case"always":return C;case"never":return h}}_getLanguageDefinedShouldAutoClose(r){const c=this.languageConfigurationService.getLanguageConfiguration(r).getAutoCloseBeforeSet();return g=>c.indexOf(g)!==-1}visibleColumnFromColumn(r,c){return w.CursorColumns.visibleColumnFromColumn(r.getLineContent(c.lineNumber),c.column,this.tabSize)}columnFromVisibleColumn(r,c,g){const f=w.CursorColumns.columnFromVisibleColumn(r.getLineContent(c),g,this.tabSize),_=r.getLineMinColumn(c);if(f<_)return _;const p=r.getLineMaxColumn(c);return f>p?p:f}}e.CursorConfiguration=n;class i{constructor(r,c){this._cursorStateBrand=void 0,this.modelState=r,this.viewState=c}static fromModelState(r){return new t(r)}static fromViewState(r){return new o(r)}static fromModelSelection(r){const c=k.Selection.liftSelection(r),g=new s(v.Range.fromPositions(c.getSelectionStart()),0,c.getPosition(),0);return i.fromModelState(g)}static fromModelSelections(r){const c=[];for(let g=0,f=r.length;g<f;g++)c[g]=this.fromModelSelection(r[g]);return c}equals(r){return this.viewState.equals(r.viewState)&&this.modelState.equals(r.modelState)}}e.CursorState=i;class t{constructor(r){this.modelState=r,this.viewState=null}}e.PartialModelCursorState=t;class o{constructor(r){this.modelState=null,this.viewState=r}}e.PartialViewCursorState=o;class s{constructor(r,c,g,f){this._singleCursorStateBrand=void 0,this.selectionStart=r,this.selectionStartLeftoverVisibleColumns=c,this.position=g,this.leftoverVisibleColumns=f,this.selection=s._computeSelection(this.selectionStart,this.position)}equals(r){return this.selectionStartLeftoverVisibleColumns===r.selectionStartLeftoverVisibleColumns&&this.leftoverVisibleColumns===r.leftoverVisibleColumns&&this.position.equals(r.position)&&this.selectionStart.equalsRange(r.selectionStart)}hasSelection(){return!this.selection.isEmpty()||!this.selectionStart.isEmpty()}move(r,c,g,f){return r?new s(this.selectionStart,this.selectionStartLeftoverVisibleColumns,new y.Position(c,g),f):new s(new v.Range(c,g,c,g),f,new y.Position(c,g),f)}static _computeSelection(r,c){return r.isEmpty()||!c.isBeforeOrEqual(r.getStartPosition())?k.Selection.fromPositions(r.getStartPosition(),c):k.Selection.fromPositions(r.getEndPosition(),c)}}e.SingleCursorState=s;class d{constructor(r,c,g){this._editOperationResultBrand=void 0,this.type=r,this.commands=c,this.shouldPushStackElementBefore=g.shouldPushStackElementBefore,this.shouldPushStackElementAfter=g.shouldPushStackElementAfter}}e.EditOperationResult=d;function l(a){return a==="'"||a==='"'||a==="`"}e.isQuote=l}),define(oe[412],se([1,0,61,11,3]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColumnSelection=void 0;class D{static columnSelect(b,C,h,u,n,i){const t=Math.abs(n-h)+1,o=h>n,s=u>i,d=u<i,l=[];for(let a=0;a<t;a++){const r=h+(o?-a:a),c=b.columnFromVisibleColumn(C,r,u),g=b.columnFromVisibleColumn(C,r,i),f=b.visibleColumnFromColumn(C,new v.Position(r,c)),_=b.visibleColumnFromColumn(C,new v.Position(r,g));d&&(f>i||_<u)||s&&(_>u||f<i)||l.push(new y.SingleCursorState(new k.Range(r,c,r,c),0,new v.Position(r,g),0))}if(l.length===0)for(let a=0;a<t;a++){const r=h+(o?-a:a),c=C.getLineMaxColumn(r);l.push(new y.SingleCursorState(new k.Range(r,c,r,c),0,new v.Position(r,c),0))}return{viewStates:l,reversed:o,fromLineNumber:h,fromVisualColumn:u,toLineNumber:n,toVisualColumn:i}}static columnSelectLeft(b,C,h){let u=h.toViewVisualColumn;return u>0&&u--,D.columnSelect(b,C,h.fromViewLineNumber,h.fromViewVisualColumn,h.toViewLineNumber,u)}static columnSelectRight(b,C,h){let u=0;const n=Math.min(h.fromViewLineNumber,h.toViewLineNumber),i=Math.max(h.fromViewLineNumber,h.toViewLineNumber);for(let o=n;o<=i;o++){const s=C.getLineMaxColumn(o),d=b.visibleColumnFromColumn(C,new v.Position(o,s));u=Math.max(u,d)}let t=h.toViewVisualColumn;return t<u&&t++,this.columnSelect(b,C,h.fromViewLineNumber,h.fromViewVisualColumn,h.toViewLineNumber,t)}static columnSelectUp(b,C,h,u){const n=u?b.pageSize:1,i=Math.max(1,h.toViewLineNumber-n);return this.columnSelect(b,C,h.fromViewLineNumber,h.fromViewVisualColumn,i,h.toViewVisualColumn)}static columnSelectDown(b,C,h,u){const n=u?b.pageSize:1,i=Math.min(C.getLineCount(),h.toViewLineNumber+n);return this.columnSelect(b,C,h.fromViewLineNumber,h.fromViewVisualColumn,i,h.toViewVisualColumn)}}e.ColumnSelection=D}),define(oe[180],se([1,0,61,66,11,3,8,233]),function(q,e,y,v,k,D,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MoveOperations=e.CursorPosition=void 0;class C{constructor(n,i,t){this._cursorPositionBrand=void 0,this.lineNumber=n,this.column=i,this.leftoverVisibleColumns=t}}e.CursorPosition=C;class h{static leftPosition(n,i){if(i.column>n.getLineMinColumn(i.lineNumber))return i.delta(void 0,-w.prevCharLength(n.getLineContent(i.lineNumber),i.column-1));if(i.lineNumber>1){const t=i.lineNumber-1;return new k.Position(t,n.getLineMaxColumn(t))}else return i}static leftPositionAtomicSoftTabs(n,i,t){if(i.column<=n.getLineIndentColumn(i.lineNumber)){const o=n.getLineMinColumn(i.lineNumber),s=n.getLineContent(i.lineNumber),d=b.AtomicTabMoveOperations.atomicPosition(s,i.column-1,t,0);if(d!==-1&&d+1>=o)return new k.Position(i.lineNumber,d+1)}return this.leftPosition(n,i)}static left(n,i,t){const o=n.stickyTabStops?h.leftPositionAtomicSoftTabs(i,t,n.tabSize):h.leftPosition(i,t);return new C(o.lineNumber,o.column,0)}static moveLeft(n,i,t,o,s){let d,l;if(t.hasSelection()&&!o)d=t.selection.startLineNumber,l=t.selection.startColumn;else{const a=t.position.delta(void 0,-(s-1)),r=i.normalizePosition(h.clipPositionColumn(a,i),0),c=h.left(n,i,r);d=c.lineNumber,l=c.column}return t.move(o,d,l,0)}static clipPositionColumn(n,i){return new k.Position(n.lineNumber,h.clipRange(n.column,i.getLineMinColumn(n.lineNumber),i.getLineMaxColumn(n.lineNumber)))}static clipRange(n,i,t){return n<i?i:n>t?t:n}static rightPosition(n,i,t){return t<n.getLineMaxColumn(i)?t=t+w.nextCharLength(n.getLineContent(i),t-1):i<n.getLineCount()&&(i=i+1,t=n.getLineMinColumn(i)),new k.Position(i,t)}static rightPositionAtomicSoftTabs(n,i,t,o,s){if(t<n.getLineIndentColumn(i)){const d=n.getLineContent(i),l=b.AtomicTabMoveOperations.atomicPosition(d,t-1,o,1);if(l!==-1)return new k.Position(i,l+1)}return this.rightPosition(n,i,t)}static right(n,i,t){const o=n.stickyTabStops?h.rightPositionAtomicSoftTabs(i,t.lineNumber,t.column,n.tabSize,n.indentSize):h.rightPosition(i,t.lineNumber,t.column);return new C(o.lineNumber,o.column,0)}static moveRight(n,i,t,o,s){let d,l;if(t.hasSelection()&&!o)d=t.selection.endLineNumber,l=t.selection.endColumn;else{const a=t.position.delta(void 0,s-1),r=i.normalizePosition(h.clipPositionColumn(a,i),1),c=h.right(n,i,r);d=c.lineNumber,l=c.column}return t.move(o,d,l,0)}static vertical(n,i,t,o,s,d,l,a){const r=v.CursorColumns.visibleColumnFromColumn(i.getLineContent(t),o,n.tabSize)+s,c=i.getLineCount(),g=t===1&&o===1,f=t===c&&o===i.getLineMaxColumn(t),_=d<t?g:f;if(t=d,t<1?(t=1,l?o=i.getLineMinColumn(t):o=Math.min(i.getLineMaxColumn(t),o)):t>c?(t=c,l?o=i.getLineMaxColumn(t):o=Math.min(i.getLineMaxColumn(t),o)):o=n.columnFromVisibleColumn(i,t,r),_?s=0:s=r-v.CursorColumns.visibleColumnFromColumn(i.getLineContent(t),o,n.tabSize),a!==void 0){const p=new k.Position(t,o),m=i.normalizePosition(p,a);s=s+(o-m.column),t=m.lineNumber,o=m.column}return new C(t,o,s)}static down(n,i,t,o,s,d,l){return this.vertical(n,i,t,o,s,t+d,l,4)}static moveDown(n,i,t,o,s){let d,l;t.hasSelection()&&!o?(d=t.selection.endLineNumber,l=t.selection.endColumn):(d=t.position.lineNumber,l=t.position.column);const a=h.down(n,i,d,l,t.leftoverVisibleColumns,s,!0);return t.move(o,a.lineNumber,a.column,a.leftoverVisibleColumns)}static translateDown(n,i,t){const o=t.selection,s=h.down(n,i,o.selectionStartLineNumber,o.selectionStartColumn,t.selectionStartLeftoverVisibleColumns,1,!1),d=h.down(n,i,o.positionLineNumber,o.positionColumn,t.leftoverVisibleColumns,1,!1);return new y.SingleCursorState(new D.Range(s.lineNumber,s.column,s.lineNumber,s.column),s.leftoverVisibleColumns,new k.Position(d.lineNumber,d.column),d.leftoverVisibleColumns)}static up(n,i,t,o,s,d,l){return this.vertical(n,i,t,o,s,t-d,l,3)}static moveUp(n,i,t,o,s){let d,l;t.hasSelection()&&!o?(d=t.selection.startLineNumber,l=t.selection.startColumn):(d=t.position.lineNumber,l=t.position.column);const a=h.up(n,i,d,l,t.leftoverVisibleColumns,s,!0);return t.move(o,a.lineNumber,a.column,a.leftoverVisibleColumns)}static translateUp(n,i,t){const o=t.selection,s=h.up(n,i,o.selectionStartLineNumber,o.selectionStartColumn,t.selectionStartLeftoverVisibleColumns,1,!1),d=h.up(n,i,o.positionLineNumber,o.positionColumn,t.leftoverVisibleColumns,1,!1);return new y.SingleCursorState(new D.Range(s.lineNumber,s.column,s.lineNumber,s.column),s.leftoverVisibleColumns,new k.Position(d.lineNumber,d.column),d.leftoverVisibleColumns)}static _isBlankLine(n,i){return n.getLineFirstNonWhitespaceColumn(i)===0}static moveToPrevBlankLine(n,i,t,o){let s=t.position.lineNumber;for(;s>1&&this._isBlankLine(i,s);)s--;for(;s>1&&!this._isBlankLine(i,s);)s--;return t.move(o,s,i.getLineMinColumn(s),0)}static moveToNextBlankLine(n,i,t,o){const s=i.getLineCount();let d=t.position.lineNumber;for(;d<s&&this._isBlankLine(i,d);)d++;for(;d<s&&!this._isBlankLine(i,d);)d++;return t.move(o,d,i.getLineMinColumn(d),0)}static moveToBeginningOfLine(n,i,t,o){const s=t.position.lineNumber,d=i.getLineMinColumn(s),l=i.getLineFirstNonWhitespaceColumn(s)||d;let a;return t.position.column===l?a=d:a=l,t.move(o,s,a,0)}static moveToEndOfLine(n,i,t,o,s){const d=t.position.lineNumber,l=i.getLineMaxColumn(d);return t.move(o,d,l,s?1073741824-l:0)}static moveToBeginningOfBuffer(n,i,t,o){return t.move(o,1,1,0)}static moveToEndOfBuffer(n,i,t,o){const s=i.getLineCount(),d=i.getLineMaxColumn(s);return t.move(o,s,d,0)}}e.MoveOperations=h}),define(oe[181],se([1,0,8,108,61,66,180,3,11]),function(q,e,y,v,k,D,w,b,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DeleteOperations=void 0;class h{static deleteRight(n,i,t,o){const s=[];let d=n!==3;for(let l=0,a=o.length;l<a;l++){const r=o[l];let c=r;if(c.isEmpty()){const g=r.getPosition(),f=w.MoveOperations.right(i,t,g);c=new b.Range(f.lineNumber,f.column,g.lineNumber,g.column)}if(c.isEmpty()){s[l]=null;continue}c.startLineNumber!==c.endLineNumber&&(d=!0),s[l]=new v.ReplaceCommand(c,"")}return[d,s]}static isAutoClosingPairDelete(n,i,t,o,s,d,l){if(i==="never"&&t==="never"||n==="never")return!1;for(let a=0,r=d.length;a<r;a++){const c=d[a],g=c.getPosition();if(!c.isEmpty())return!1;const f=s.getLineContent(g.lineNumber);if(g.column<2||g.column>=f.length+1)return!1;const _=f.charAt(g.column-2),p=o.get(_);if(!p)return!1;if((0,k.isQuote)(_)){if(t==="never")return!1}else if(i==="never")return!1;const m=f.charAt(g.column-1);let S=!1;for(const E of p)E.open===_&&E.close===m&&(S=!0);if(!S)return!1;if(n==="auto"){let E=!1;for(let L=0,N=l.length;L<N;L++){const I=l[L];if(g.lineNumber===I.startLineNumber&&g.column===I.startColumn){E=!0;break}}if(!E)return!1}}return!0}static _runAutoClosingPairDelete(n,i,t){const o=[];for(let s=0,d=t.length;s<d;s++){const l=t[s].getPosition(),a=new b.Range(l.lineNumber,l.column-1,l.lineNumber,l.column+1);o[s]=new v.ReplaceCommand(a,"")}return[!0,o]}static deleteLeft(n,i,t,o,s){if(this.isAutoClosingPairDelete(i.autoClosingDelete,i.autoClosingBrackets,i.autoClosingQuotes,i.autoClosingPairs.autoClosingPairsOpenByEnd,t,o,s))return this._runAutoClosingPairDelete(i,t,o);const d=[];let l=n!==2;for(let a=0,r=o.length;a<r;a++){const c=h.getDeleteRange(o[a],t,i);if(c.isEmpty()){d[a]=null;continue}c.startLineNumber!==c.endLineNumber&&(l=!0),d[a]=new v.ReplaceCommand(c,"")}return[l,d]}static getDeleteRange(n,i,t){if(!n.isEmpty())return n;const o=n.getPosition();if(t.useTabStops&&o.column>1){const s=i.getLineContent(o.lineNumber),d=y.firstNonWhitespaceIndex(s),l=d===-1?s.length+1:d+1;if(o.column<=l){const a=t.visibleColumnFromColumn(i,o),r=D.CursorColumns.prevIndentTabStop(a,t.indentSize),c=t.columnFromVisibleColumn(i,o.lineNumber,r);return new b.Range(o.lineNumber,c,o.lineNumber,o.column)}}return b.Range.fromPositions(h.getPositionAfterDeleteLeft(o,i),o)}static getPositionAfterDeleteLeft(n,i){if(n.column>1){const t=y.getLeftDeleteOffset(n.column-1,i.getLineContent(n.lineNumber));return n.with(void 0,t+1)}else if(n.lineNumber>1){const t=n.lineNumber-1;return new C.Position(t,i.getLineMaxColumn(t))}else return n}static cut(n,i,t){const o=[];let s=null;t.sort((d,l)=>C.Position.compare(d.getStartPosition(),l.getEndPosition()));for(let d=0,l=t.length;d<l;d++){const a=t[d];if(a.isEmpty())if(n.emptySelectionClipboard){const r=a.getPosition();let c,g,f,_;r.lineNumber<i.getLineCount()?(c=r.lineNumber,g=1,f=r.lineNumber+1,_=1):r.lineNumber>1&&s?.endLineNumber!==r.lineNumber?(c=r.lineNumber-1,g=i.getLineMaxColumn(r.lineNumber-1),f=r.lineNumber,_=i.getLineMaxColumn(r.lineNumber)):(c=r.lineNumber,g=1,f=r.lineNumber,_=i.getLineMaxColumn(r.lineNumber));const p=new b.Range(c,g,f,_);s=p,p.isEmpty()?o[d]=null:o[d]=new v.ReplaceCommand(p,"")}else o[d]=null;else o[d]=new v.ReplaceCommand(a,"")}return new k.EditOperationResult(0,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}}e.DeleteOperations=h}),define(oe[156],se([1,0,8,61,181,127,11,3]),function(q,e,y,v,k,D,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WordPartOperations=e.WordOperations=void 0;class C{static _createWord(i,t,o,s,d){return{start:s,end:d,wordType:t,nextCharClass:o}}static _findPreviousWordOnLine(i,t,o){const s=t.getLineContent(o.lineNumber);return this._doFindPreviousWordOnLine(s,i,o)}static _doFindPreviousWordOnLine(i,t,o){let s=0;for(let d=o.column-2;d>=0;d--){const l=i.charCodeAt(d),a=t.get(l);if(a===0){if(s===2)return this._createWord(i,s,a,d+1,this._findEndOfWord(i,t,s,d+1));s=1}else if(a===2){if(s===1)return this._createWord(i,s,a,d+1,this._findEndOfWord(i,t,s,d+1));s=2}else if(a===1&&s!==0)return this._createWord(i,s,a,d+1,this._findEndOfWord(i,t,s,d+1))}return s!==0?this._createWord(i,s,1,0,this._findEndOfWord(i,t,s,0)):null}static _findEndOfWord(i,t,o,s){const d=i.length;for(let l=s;l<d;l++){const a=i.charCodeAt(l),r=t.get(a);if(r===1||o===1&&r===2||o===2&&r===0)return l}return d}static _findNextWordOnLine(i,t,o){const s=t.getLineContent(o.lineNumber);return this._doFindNextWordOnLine(s,i,o)}static _doFindNextWordOnLine(i,t,o){let s=0;const d=i.length;for(let l=o.column-1;l<d;l++){const a=i.charCodeAt(l),r=t.get(a);if(r===0){if(s===2)return this._createWord(i,s,r,this._findStartOfWord(i,t,s,l-1),l);s=1}else if(r===2){if(s===1)return this._createWord(i,s,r,this._findStartOfWord(i,t,s,l-1),l);s=2}else if(r===1&&s!==0)return this._createWord(i,s,r,this._findStartOfWord(i,t,s,l-1),l)}return s!==0?this._createWord(i,s,1,this._findStartOfWord(i,t,s,d-1),d):null}static _findStartOfWord(i,t,o,s){for(let d=s;d>=0;d--){const l=i.charCodeAt(d),a=t.get(l);if(a===1||o===1&&a===2||o===2&&a===0)return d+1}return 0}static moveWordLeft(i,t,o,s){let d=o.lineNumber,l=o.column;l===1&&d>1&&(d=d-1,l=t.getLineMaxColumn(d));let a=C._findPreviousWordOnLine(i,t,new w.Position(d,l));if(s===0)return new w.Position(d,a?a.start+1:1);if(s===1)return a&&a.wordType===2&&a.end-a.start==1&&a.nextCharClass===0&&(a=C._findPreviousWordOnLine(i,t,new w.Position(d,a.start+1))),new w.Position(d,a?a.start+1:1);if(s===3){for(;a&&a.wordType===2;)a=C._findPreviousWordOnLine(i,t,new w.Position(d,a.start+1));return new w.Position(d,a?a.start+1:1)}return a&&l<=a.end+1&&(a=C._findPreviousWordOnLine(i,t,new w.Position(d,a.start+1))),new w.Position(d,a?a.end+1:1)}static _moveWordPartLeft(i,t){const o=t.lineNumber,s=i.getLineMaxColumn(o);if(t.column===1)return o>1?new w.Position(o-1,i.getLineMaxColumn(o-1)):t;const d=i.getLineContent(o);for(let l=t.column-1;l>1;l--){const a=d.charCodeAt(l-2),r=d.charCodeAt(l-1);if(a===95&&r!==95)return new w.Position(o,l);if((y.isLowerAsciiLetter(a)||y.isAsciiDigit(a))&&y.isUpperAsciiLetter(r))return new w.Position(o,l);if(y.isUpperAsciiLetter(a)&&y.isUpperAsciiLetter(r)&&l+1<s){const c=d.charCodeAt(l);if(y.isLowerAsciiLetter(c)||y.isAsciiDigit(c))return new w.Position(o,l)}}return new w.Position(o,1)}static moveWordRight(i,t,o,s){let d=o.lineNumber,l=o.column,a=!1;l===t.getLineMaxColumn(d)&&d<t.getLineCount()&&(a=!0,d=d+1,l=1);let r=C._findNextWordOnLine(i,t,new w.Position(d,l));if(s===2)r&&r.wordType===2&&r.end-r.start==1&&r.nextCharClass===0&&(r=C._findNextWordOnLine(i,t,new w.Position(d,r.end+1))),r?l=r.end+1:l=t.getLineMaxColumn(d);else if(s===3){for(a&&(l=0);r&&(r.wordType===2||r.start+1<=l);)r=C._findNextWordOnLine(i,t,new w.Position(d,r.end+1));r?l=r.start+1:l=t.getLineMaxColumn(d)}else r&&!a&&l>=r.start+1&&(r=C._findNextWordOnLine(i,t,new w.Position(d,r.end+1))),r?l=r.start+1:l=t.getLineMaxColumn(d);return new w.Position(d,l)}static _moveWordPartRight(i,t){const o=t.lineNumber,s=i.getLineMaxColumn(o);if(t.column===s)return o<i.getLineCount()?new w.Position(o+1,1):t;const d=i.getLineContent(o);for(let l=t.column+1;l<s;l++){const a=d.charCodeAt(l-2),r=d.charCodeAt(l-1);if(a!==95&&r===95)return new w.Position(o,l);if((y.isLowerAsciiLetter(a)||y.isAsciiDigit(a))&&y.isUpperAsciiLetter(r))return new w.Position(o,l);if(y.isUpperAsciiLetter(a)&&y.isUpperAsciiLetter(r)&&l+1<s){const c=d.charCodeAt(l);if(y.isLowerAsciiLetter(c)||y.isAsciiDigit(c))return new w.Position(o,l)}}return new w.Position(o,s)}static _deleteWordLeftWhitespace(i,t){const o=i.getLineContent(t.lineNumber),s=t.column-2,d=y.lastNonWhitespaceIndex(o,s);return d+1<s?new b.Range(t.lineNumber,d+2,t.lineNumber,t.column):null}static deleteWordLeft(i,t){const o=i.wordSeparators,s=i.model,d=i.selection,l=i.whitespaceHeuristics;if(!d.isEmpty())return d;if(k.DeleteOperations.isAutoClosingPairDelete(i.autoClosingDelete,i.autoClosingBrackets,i.autoClosingQuotes,i.autoClosingPairs.autoClosingPairsOpenByEnd,i.model,[i.selection],i.autoClosedCharacters)){const f=i.selection.getPosition();return new b.Range(f.lineNumber,f.column-1,f.lineNumber,f.column+1)}const a=new w.Position(d.positionLineNumber,d.positionColumn);let r=a.lineNumber,c=a.column;if(r===1&&c===1)return null;if(l){const f=this._deleteWordLeftWhitespace(s,a);if(f)return f}let g=C._findPreviousWordOnLine(o,s,a);return t===0?g?c=g.start+1:c>1?c=1:(r--,c=s.getLineMaxColumn(r)):(g&&c<=g.end+1&&(g=C._findPreviousWordOnLine(o,s,new w.Position(r,g.start+1))),g?c=g.end+1:c>1?c=1:(r--,c=s.getLineMaxColumn(r))),new b.Range(r,c,a.lineNumber,a.column)}static deleteInsideWord(i,t,o){if(!o.isEmpty())return o;const s=new w.Position(o.positionLineNumber,o.positionColumn);return this._deleteInsideWordWhitespace(t,s)||this._deleteInsideWordDetermineDeleteRange(i,t,s)}static _charAtIsWhitespace(i,t){const o=i.charCodeAt(t);return o===32||o===9}static _deleteInsideWordWhitespace(i,t){const o=i.getLineContent(t.lineNumber),s=o.length;if(s===0)return null;let d=Math.max(t.column-2,0);if(!this._charAtIsWhitespace(o,d))return null;let l=Math.min(t.column-1,s-1);if(!this._charAtIsWhitespace(o,l))return null;for(;d>0&&this._charAtIsWhitespace(o,d-1);)d--;for(;l+1<s&&this._charAtIsWhitespace(o,l+1);)l++;return new b.Range(t.lineNumber,d+1,t.lineNumber,l+2)}static _deleteInsideWordDetermineDeleteRange(i,t,o){const s=t.getLineContent(o.lineNumber),d=s.length;if(d===0)return o.lineNumber>1?new b.Range(o.lineNumber-1,t.getLineMaxColumn(o.lineNumber-1),o.lineNumber,1):o.lineNumber<t.getLineCount()?new b.Range(o.lineNumber,1,o.lineNumber+1,1):new b.Range(o.lineNumber,1,o.lineNumber,1);const l=f=>f.start+1<=o.column&&o.column<=f.end+1,a=(f,_)=>(f=Math.min(f,o.column),_=Math.max(_,o.column),new b.Range(o.lineNumber,f,o.lineNumber,_)),r=f=>{let _=f.start+1,p=f.end+1,m=!1;for(;p-1<d&&this._charAtIsWhitespace(s,p-1);)m=!0,p++;if(!m)for(;_>1&&this._charAtIsWhitespace(s,_-2);)_--;return a(_,p)},c=C._findPreviousWordOnLine(i,t,o);if(c&&l(c))return r(c);const g=C._findNextWordOnLine(i,t,o);return g&&l(g)?r(g):c&&g?a(c.end+1,g.start+1):c?a(c.start+1,c.end+1):g?a(g.start+1,g.end+1):a(1,d+1)}static _deleteWordPartLeft(i,t){if(!t.isEmpty())return t;const o=t.getPosition(),s=C._moveWordPartLeft(i,o);return new b.Range(o.lineNumber,o.column,s.lineNumber,s.column)}static _findFirstNonWhitespaceChar(i,t){const o=i.length;for(let s=t;s<o;s++){const d=i.charAt(s);if(d!==" "&&d!==" ")return s}return o}static _deleteWordRightWhitespace(i,t){const o=i.getLineContent(t.lineNumber),s=t.column-1,d=this._findFirstNonWhitespaceChar(o,s);return s+1<d?new b.Range(t.lineNumber,t.column,t.lineNumber,d+1):null}static deleteWordRight(i,t){const o=i.wordSeparators,s=i.model,d=i.selection,l=i.whitespaceHeuristics;if(!d.isEmpty())return d;const a=new w.Position(d.positionLineNumber,d.positionColumn);let r=a.lineNumber,c=a.column;const g=s.getLineCount(),f=s.getLineMaxColumn(r);if(r===g&&c===f)return null;if(l){const p=this._deleteWordRightWhitespace(s,a);if(p)return p}let _=C._findNextWordOnLine(o,s,a);return t===2?_?c=_.end+1:c<f||r===g?c=f:(r++,_=C._findNextWordOnLine(o,s,new w.Position(r,1)),_?c=_.start+1:c=s.getLineMaxColumn(r)):(_&&c>=_.start+1&&(_=C._findNextWordOnLine(o,s,new w.Position(r,_.end+1))),_?c=_.start+1:c<f||r===g?c=f:(r++,_=C._findNextWordOnLine(o,s,new w.Position(r,1)),_?c=_.start+1:c=s.getLineMaxColumn(r))),new b.Range(r,c,a.lineNumber,a.column)}static _deleteWordPartRight(i,t){if(!t.isEmpty())return t;const o=t.getPosition(),s=C._moveWordPartRight(i,o);return new b.Range(o.lineNumber,o.column,s.lineNumber,s.column)}static _createWordAtPosition(i,t,o){const s=new b.Range(t,o.start+1,t,o.end+1);return{word:i.getValueInRange(s),startColumn:s.startColumn,endColumn:s.endColumn}}static getWordAtPosition(i,t,o){const s=(0,D.getMapForWordSeparators)(t),d=C._findPreviousWordOnLine(s,i,o);if(d&&d.wordType===1&&d.start<=o.column-1&&o.column-1<=d.end)return C._createWordAtPosition(i,o.lineNumber,d);const l=C._findNextWordOnLine(s,i,o);return l&&l.wordType===1&&l.start<=o.column-1&&o.column-1<=l.end?C._createWordAtPosition(i,o.lineNumber,l):null}static word(i,t,o,s,d){const l=(0,D.getMapForWordSeparators)(i.wordSeparators),a=C._findPreviousWordOnLine(l,t,d),r=C._findNextWordOnLine(l,t,d);if(!s){let p,m;return a&&a.wordType===1&&a.start<=d.column-1&&d.column-1<=a.end?(p=a.start+1,m=a.end+1):r&&r.wordType===1&&r.start<=d.column-1&&d.column-1<=r.end?(p=r.start+1,m=r.end+1):(a?p=a.end+1:p=1,r?m=r.start+1:m=t.getLineMaxColumn(d.lineNumber)),new v.SingleCursorState(new b.Range(d.lineNumber,p,d.lineNumber,m),0,new w.Position(d.lineNumber,m),0)}let c,g;a&&a.wordType===1&&a.start<d.column-1&&d.column-1<a.end?(c=a.start+1,g=a.end+1):r&&r.wordType===1&&r.start<d.column-1&&d.column-1<r.end?(c=r.start+1,g=r.end+1):(c=d.column,g=d.column);const f=d.lineNumber;let _;if(o.selectionStart.containsPosition(d))_=o.selectionStart.endColumn;else if(d.isBeforeOrEqual(o.selectionStart.getStartPosition())){_=c;const p=new w.Position(f,_);o.selectionStart.containsPosition(p)&&(_=o.selectionStart.endColumn)}else{_=g;const p=new w.Position(f,_);o.selectionStart.containsPosition(p)&&(_=o.selectionStart.startColumn)}return o.move(!0,f,_,0)}}e.WordOperations=C;class h extends C{static deleteWordPartLeft(i){const t=u([C.deleteWordLeft(i,0),C.deleteWordLeft(i,2),C._deleteWordPartLeft(i.model,i.selection)]);return t.sort(b.Range.compareRangesUsingEnds),t[2]}static deleteWordPartRight(i){const t=u([C.deleteWordRight(i,0),C.deleteWordRight(i,2),C._deleteWordPartRight(i.model,i.selection)]);return t.sort(b.Range.compareRangesUsingStarts),t[0]}static moveWordPartLeft(i,t,o){const s=u([C.moveWordLeft(i,t,o,0),C.moveWordLeft(i,t,o,2),C._moveWordPartLeft(t,o)]);return s.sort(w.Position.compare),s[2]}static moveWordPartRight(i,t,o){const s=u([C.moveWordRight(i,t,o,0),C.moveWordRight(i,t,o,2),C._moveWordPartRight(t,o)]);return s.sort(w.Position.compare),s[0]}}e.WordPartOperations=h;function u(n){return n.filter(i=>!!i)}}),define(oe[182],se([1,0,19,61,180,156,11,3]),function(q,e,y,v,k,D,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CursorMove=e.CursorMoveCommands=void 0;class C{static addCursorDown(n,i,t){const o=[];let s=0;for(let d=0,l=i.length;d<l;d++){const a=i[d];o[s++]=new v.CursorState(a.modelState,a.viewState),t?o[s++]=v.CursorState.fromModelState(k.MoveOperations.translateDown(n.cursorConfig,n.model,a.modelState)):o[s++]=v.CursorState.fromViewState(k.MoveOperations.translateDown(n.cursorConfig,n,a.viewState))}return o}static addCursorUp(n,i,t){const o=[];let s=0;for(let d=0,l=i.length;d<l;d++){const a=i[d];o[s++]=new v.CursorState(a.modelState,a.viewState),t?o[s++]=v.CursorState.fromModelState(k.MoveOperations.translateUp(n.cursorConfig,n.model,a.modelState)):o[s++]=v.CursorState.fromViewState(k.MoveOperations.translateUp(n.cursorConfig,n,a.viewState))}return o}static moveToBeginningOfLine(n,i,t){const o=[];for(let s=0,d=i.length;s<d;s++){const l=i[s];o[s]=this._moveToLineStart(n,l,t)}return o}static _moveToLineStart(n,i,t){const o=i.viewState.position.column,s=i.modelState.position.column,d=o===s,l=i.viewState.position.lineNumber,a=n.getLineFirstNonWhitespaceColumn(l);return!d&&o!==a?this._moveToLineStartByView(n,i,t):this._moveToLineStartByModel(n,i,t)}static _moveToLineStartByView(n,i,t){return v.CursorState.fromViewState(k.MoveOperations.moveToBeginningOfLine(n.cursorConfig,n,i.viewState,t))}static _moveToLineStartByModel(n,i,t){return v.CursorState.fromModelState(k.MoveOperations.moveToBeginningOfLine(n.cursorConfig,n.model,i.modelState,t))}static moveToEndOfLine(n,i,t,o){const s=[];for(let d=0,l=i.length;d<l;d++){const a=i[d];s[d]=this._moveToLineEnd(n,a,t,o)}return s}static _moveToLineEnd(n,i,t,o){const s=i.viewState.position,d=n.getLineMaxColumn(s.lineNumber),l=s.column===d,a=i.modelState.position,r=n.model.getLineMaxColumn(a.lineNumber),c=d-s.column==r-a.column;return l||c?this._moveToLineEndByModel(n,i,t,o):this._moveToLineEndByView(n,i,t,o)}static _moveToLineEndByView(n,i,t,o){return v.CursorState.fromViewState(k.MoveOperations.moveToEndOfLine(n.cursorConfig,n,i.viewState,t,o))}static _moveToLineEndByModel(n,i,t,o){return v.CursorState.fromModelState(k.MoveOperations.moveToEndOfLine(n.cursorConfig,n.model,i.modelState,t,o))}static expandLineSelection(n,i){const t=[];for(let o=0,s=i.length;o<s;o++){const d=i[o],l=d.modelState.selection.startLineNumber,a=n.model.getLineCount();let r=d.modelState.selection.endLineNumber,c;r===a?c=n.model.getLineMaxColumn(a):(r++,c=1),t[o]=v.CursorState.fromModelState(new v.SingleCursorState(new b.Range(l,1,l,1),0,new w.Position(r,c),0))}return t}static moveToBeginningOfBuffer(n,i,t){const o=[];for(let s=0,d=i.length;s<d;s++){const l=i[s];o[s]=v.CursorState.fromModelState(k.MoveOperations.moveToBeginningOfBuffer(n.cursorConfig,n.model,l.modelState,t))}return o}static moveToEndOfBuffer(n,i,t){const o=[];for(let s=0,d=i.length;s<d;s++){const l=i[s];o[s]=v.CursorState.fromModelState(k.MoveOperations.moveToEndOfBuffer(n.cursorConfig,n.model,l.modelState,t))}return o}static selectAll(n,i){const t=n.model.getLineCount(),o=n.model.getLineMaxColumn(t);return v.CursorState.fromModelState(new v.SingleCursorState(new b.Range(1,1,1,1),0,new w.Position(t,o),0))}static line(n,i,t,o,s){const d=n.model.validatePosition(o),l=s?n.coordinatesConverter.validateViewPosition(new w.Position(s.lineNumber,s.column),d):n.coordinatesConverter.convertModelPositionToViewPosition(d);if(!t||!i.modelState.hasSelection()){const r=n.model.getLineCount();let c=d.lineNumber+1,g=1;return c>r&&(c=r,g=n.model.getLineMaxColumn(c)),v.CursorState.fromModelState(new v.SingleCursorState(new b.Range(d.lineNumber,1,c,g),0,new w.Position(c,g),0))}const a=i.modelState.selectionStart.getStartPosition().lineNumber;if(d.lineNumber<a)return v.CursorState.fromViewState(i.viewState.move(i.modelState.hasSelection(),l.lineNumber,1,0));if(d.lineNumber>a){const r=n.getLineCount();let c=l.lineNumber+1,g=1;return c>r&&(c=r,g=n.getLineMaxColumn(c)),v.CursorState.fromViewState(i.viewState.move(i.modelState.hasSelection(),c,g,0))}else{const r=i.modelState.selectionStart.getEndPosition();return v.CursorState.fromModelState(i.modelState.move(i.modelState.hasSelection(),r.lineNumber,r.column,0))}}static word(n,i,t,o){const s=n.model.validatePosition(o);return v.CursorState.fromModelState(D.WordOperations.word(n.cursorConfig,n.model,i.modelState,t,s))}static cancelSelection(n,i){if(!i.modelState.hasSelection())return new v.CursorState(i.modelState,i.viewState);const t=i.viewState.position.lineNumber,o=i.viewState.position.column;return v.CursorState.fromViewState(new v.SingleCursorState(new b.Range(t,o,t,o),0,new w.Position(t,o),0))}static moveTo(n,i,t,o,s){const d=n.model.validatePosition(o),l=s?n.coordinatesConverter.validateViewPosition(new w.Position(s.lineNumber,s.column),d):n.coordinatesConverter.convertModelPositionToViewPosition(d);return v.CursorState.fromViewState(i.viewState.move(t,l.lineNumber,l.column,0))}static simpleMove(n,i,t,o,s,d){switch(t){case 0:return d===4?this._moveHalfLineLeft(n,i,o):this._moveLeft(n,i,o,s);case 1:return d===4?this._moveHalfLineRight(n,i,o):this._moveRight(n,i,o,s);case 2:return d===2?this._moveUpByViewLines(n,i,o,s):this._moveUpByModelLines(n,i,o,s);case 3:return d===2?this._moveDownByViewLines(n,i,o,s):this._moveDownByModelLines(n,i,o,s);case 4:return d===2?i.map(l=>v.CursorState.fromViewState(k.MoveOperations.moveToPrevBlankLine(n.cursorConfig,n,l.viewState,o))):i.map(l=>v.CursorState.fromModelState(k.MoveOperations.moveToPrevBlankLine(n.cursorConfig,n.model,l.modelState,o)));case 5:return d===2?i.map(l=>v.CursorState.fromViewState(k.MoveOperations.moveToNextBlankLine(n.cursorConfig,n,l.viewState,o))):i.map(l=>v.CursorState.fromModelState(k.MoveOperations.moveToNextBlankLine(n.cursorConfig,n.model,l.modelState,o)));case 6:return this._moveToViewMinColumn(n,i,o);case 7:return this._moveToViewFirstNonWhitespaceColumn(n,i,o);case 8:return this._moveToViewCenterColumn(n,i,o);case 9:return this._moveToViewMaxColumn(n,i,o);case 10:return this._moveToViewLastNonWhitespaceColumn(n,i,o);default:return null}}static viewportMove(n,i,t,o,s){const d=n.getCompletelyVisibleViewRange(),l=n.coordinatesConverter.convertViewRangeToModelRange(d);switch(t){case 11:{const a=this._firstLineNumberInRange(n.model,l,s),r=n.model.getLineFirstNonWhitespaceColumn(a);return[this._moveToModelPosition(n,i[0],o,a,r)]}case 13:{const a=this._lastLineNumberInRange(n.model,l,s),r=n.model.getLineFirstNonWhitespaceColumn(a);return[this._moveToModelPosition(n,i[0],o,a,r)]}case 12:{const a=Math.round((l.startLineNumber+l.endLineNumber)/2),r=n.model.getLineFirstNonWhitespaceColumn(a);return[this._moveToModelPosition(n,i[0],o,a,r)]}case 14:{const a=[];for(let r=0,c=i.length;r<c;r++){const g=i[r];a[r]=this.findPositionInViewportIfOutside(n,g,d,o)}return a}default:return null}}static findPositionInViewportIfOutside(n,i,t,o){const s=i.viewState.position.lineNumber;if(t.startLineNumber<=s&&s<=t.endLineNumber-1)return new v.CursorState(i.modelState,i.viewState);{let d;s>t.endLineNumber-1?d=t.endLineNumber-1:s<t.startLineNumber?d=t.startLineNumber:d=s;const l=k.MoveOperations.vertical(n.cursorConfig,n,s,i.viewState.position.column,i.viewState.leftoverVisibleColumns,d,!1);return v.CursorState.fromViewState(i.viewState.move(o,l.lineNumber,l.column,l.leftoverVisibleColumns))}}static _firstLineNumberInRange(n,i,t){let o=i.startLineNumber;return i.startColumn!==n.getLineMinColumn(o)&&o++,Math.min(i.endLineNumber,o+t-1)}static _lastLineNumberInRange(n,i,t){let o=i.startLineNumber;return i.startColumn!==n.getLineMinColumn(o)&&o++,Math.max(o,i.endLineNumber-t+1)}static _moveLeft(n,i,t,o){return i.map(s=>v.CursorState.fromViewState(k.MoveOperations.moveLeft(n.cursorConfig,n,s.viewState,t,o)))}static _moveHalfLineLeft(n,i,t){const o=[];for(let s=0,d=i.length;s<d;s++){const l=i[s],a=l.viewState.position.lineNumber,r=Math.round(n.getLineContent(a).length/2);o[s]=v.CursorState.fromViewState(k.MoveOperations.moveLeft(n.cursorConfig,n,l.viewState,t,r))}return o}static _moveRight(n,i,t,o){return i.map(s=>v.CursorState.fromViewState(k.MoveOperations.moveRight(n.cursorConfig,n,s.viewState,t,o)))}static _moveHalfLineRight(n,i,t){const o=[];for(let s=0,d=i.length;s<d;s++){const l=i[s],a=l.viewState.position.lineNumber,r=Math.round(n.getLineContent(a).length/2);o[s]=v.CursorState.fromViewState(k.MoveOperations.moveRight(n.cursorConfig,n,l.viewState,t,r))}return o}static _moveDownByViewLines(n,i,t,o){const s=[];for(let d=0,l=i.length;d<l;d++){const a=i[d];s[d]=v.CursorState.fromViewState(k.MoveOperations.moveDown(n.cursorConfig,n,a.viewState,t,o))}return s}static _moveDownByModelLines(n,i,t,o){const s=[];for(let d=0,l=i.length;d<l;d++){const a=i[d];s[d]=v.CursorState.fromModelState(k.MoveOperations.moveDown(n.cursorConfig,n.model,a.modelState,t,o))}return s}static _moveUpByViewLines(n,i,t,o){const s=[];for(let d=0,l=i.length;d<l;d++){const a=i[d];s[d]=v.CursorState.fromViewState(k.MoveOperations.moveUp(n.cursorConfig,n,a.viewState,t,o))}return s}static _moveUpByModelLines(n,i,t,o){const s=[];for(let d=0,l=i.length;d<l;d++){const a=i[d];s[d]=v.CursorState.fromModelState(k.MoveOperations.moveUp(n.cursorConfig,n.model,a.modelState,t,o))}return s}static _moveToViewPosition(n,i,t,o,s){return v.CursorState.fromViewState(i.viewState.move(t,o,s,0))}static _moveToModelPosition(n,i,t,o,s){return v.CursorState.fromModelState(i.modelState.move(t,o,s,0))}static _moveToViewMinColumn(n,i,t){const o=[];for(let s=0,d=i.length;s<d;s++){const l=i[s],a=l.viewState.position.lineNumber,r=n.getLineMinColumn(a);o[s]=this._moveToViewPosition(n,l,t,a,r)}return o}static _moveToViewFirstNonWhitespaceColumn(n,i,t){const o=[];for(let s=0,d=i.length;s<d;s++){const l=i[s],a=l.viewState.position.lineNumber,r=n.getLineFirstNonWhitespaceColumn(a);o[s]=this._moveToViewPosition(n,l,t,a,r)}return o}static _moveToViewCenterColumn(n,i,t){const o=[];for(let s=0,d=i.length;s<d;s++){const l=i[s],a=l.viewState.position.lineNumber,r=Math.round((n.getLineMaxColumn(a)+n.getLineMinColumn(a))/2);o[s]=this._moveToViewPosition(n,l,t,a,r)}return o}static _moveToViewMaxColumn(n,i,t){const o=[];for(let s=0,d=i.length;s<d;s++){const l=i[s],a=l.viewState.position.lineNumber,r=n.getLineMaxColumn(a);o[s]=this._moveToViewPosition(n,l,t,a,r)}return o}static _moveToViewLastNonWhitespaceColumn(n,i,t){const o=[];for(let s=0,d=i.length;s<d;s++){const l=i[s],a=l.viewState.position.lineNumber,r=n.getLineLastNonWhitespaceColumn(a);o[s]=this._moveToViewPosition(n,l,t,a,r)}return o}}e.CursorMoveCommands=C;var h;(function(u){const n=function(t){if(!y.isObject(t))return!1;const o=t;return!(!y.isString(o.to)||!y.isUndefined(o.select)&&!y.isBoolean(o.select)||!y.isUndefined(o.by)&&!y.isString(o.by)||!y.isUndefined(o.value)&&!y.isNumber(o.value))};u.description={description:"Move cursor to a logical position in the view",args:[{name:"Cursor move argument object",description:`Property-value pairs that can be passed through this argument: * 'to': A mandatory logical position value providing where to move the cursor. \`\`\` 'left', 'right', 'up', 'down', 'prevBlankLine', 'nextBlankLine', 'wrappedLineStart', 'wrappedLineEnd', 'wrappedLineColumnCenter' 'wrappedLineFirstNonWhitespaceCharacter', 'wrappedLineLastNonWhitespaceCharacter' 'viewPortTop', 'viewPortCenter', 'viewPortBottom', 'viewPortIfOutside' \`\`\` * 'by': Unit to move. Default is computed based on 'to' value. \`\`\` 'line', 'wrappedLine', 'character', 'halfLine' \`\`\` * 'value': Number of units to move. Default is '1'. * 'select': If 'true' makes the selection. Default is 'false'. `,constraint:n,schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["left","right","up","down","prevBlankLine","nextBlankLine","wrappedLineStart","wrappedLineEnd","wrappedLineColumnCenter","wrappedLineFirstNonWhitespaceCharacter","wrappedLineLastNonWhitespaceCharacter","viewPortTop","viewPortCenter","viewPortBottom","viewPortIfOutside"]},by:{type:"string",enum:["line","wrappedLine","character","halfLine"]},value:{type:"number",default:1},select:{type:"boolean",default:!1}}}}]},u.RawDirection={Left:"left",Right:"right",Up:"up",Down:"down",PrevBlankLine:"prevBlankLine",NextBlankLine:"nextBlankLine",WrappedLineStart:"wrappedLineStart",WrappedLineFirstNonWhitespaceCharacter:"wrappedLineFirstNonWhitespaceCharacter",WrappedLineColumnCenter:"wrappedLineColumnCenter",WrappedLineEnd:"wrappedLineEnd",WrappedLineLastNonWhitespaceCharacter:"wrappedLineLastNonWhitespaceCharacter",ViewPortTop:"viewPortTop",ViewPortCenter:"viewPortCenter",ViewPortBottom:"viewPortBottom",ViewPortIfOutside:"viewPortIfOutside"},u.RawUnit={Line:"line",WrappedLine:"wrappedLine",Character:"character",HalfLine:"halfLine"};function i(t){if(!t.to)return null;let o;switch(t.to){case u.RawDirection.Left:o=0;break;case u.RawDirection.Right:o=1;break;case u.RawDirection.Up:o=2;break;case u.RawDirection.Down:o=3;break;case u.RawDirection.PrevBlankLine:o=4;break;case u.RawDirection.NextBlankLine:o=5;break;case u.RawDirection.WrappedLineStart:o=6;break;case u.RawDirection.WrappedLineFirstNonWhitespaceCharacter:o=7;break;case u.RawDirection.WrappedLineColumnCenter:o=8;break;case u.RawDirection.WrappedLineEnd:o=9;break;case u.RawDirection.WrappedLineLastNonWhitespaceCharacter:o=10;break;case u.RawDirection.ViewPortTop:o=11;break;case u.RawDirection.ViewPortBottom:o=13;break;case u.RawDirection.ViewPortCenter:o=12;break;case u.RawDirection.ViewPortIfOutside:o=14;break;default:return null}let s=0;switch(t.by){case u.RawUnit.Line:s=1;break;case u.RawUnit.WrappedLine:s=2;break;case u.RawUnit.Character:s=3;break;case u.RawUnit.HalfLine:s=4;break}return{direction:o,unit:s,select:!!t.select,value:t.value||1}}u.parse=i})(h=e.CursorMove||(e.CursorMove={}))}),define(oe[413],se([1,0,61,11,3,23]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Cursor=void 0;class w{constructor(C){this._selTrackedRange=null,this._trackSelection=!0,this._setState(C,new y.SingleCursorState(new k.Range(1,1,1,1),0,new v.Position(1,1),0),new y.SingleCursorState(new k.Range(1,1,1,1),0,new v.Position(1,1),0))}dispose(C){this._removeTrackedRange(C)}startTrackingSelection(C){this._trackSelection=!0,this._updateTrackedRange(C)}stopTrackingSelection(C){this._trackSelection=!1,this._removeTrackedRange(C)}_updateTrackedRange(C){!this._trackSelection||(this._selTrackedRange=C.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))}_removeTrackedRange(C){this._selTrackedRange=C.model._setTrackedRange(this._selTrackedRange,null,0)}asCursorState(){return new y.CursorState(this.modelState,this.viewState)}readSelectionFromMarkers(C){const h=C.model._getTrackedRange(this._selTrackedRange);return D.Selection.fromRange(h,this.modelState.selection.getDirection())}ensureValidState(C){this._setState(C,this.modelState,this.viewState)}setState(C,h,u){this._setState(C,h,u)}static _validatePositionWithCache(C,h,u,n){return h.equals(u)?n:C.normalizePosition(h,2)}static _validateViewState(C,h){const u=h.position,n=h.selectionStart.getStartPosition(),i=h.selectionStart.getEndPosition(),t=C.normalizePosition(u,2),o=this._validatePositionWithCache(C,n,u,t),s=this._validatePositionWithCache(C,i,n,o);return u.equals(t)&&n.equals(o)&&i.equals(s)?h:new y.SingleCursorState(k.Range.fromPositions(o,s),h.selectionStartLeftoverVisibleColumns+n.column-o.column,t,h.leftoverVisibleColumns+u.column-t.column)}_setState(C,h,u){if(u&&(u=w._validateViewState(C.viewModel,u)),h){const n=C.model.validateRange(h.selectionStart),i=h.selectionStart.equalsRange(n)?h.selectionStartLeftoverVisibleColumns:0,t=C.model.validatePosition(h.position),o=h.position.equals(t)?h.leftoverVisibleColumns:0;h=new y.SingleCursorState(n,i,t,o)}else{if(!u)return;const n=C.model.validateRange(C.coordinatesConverter.convertViewRangeToModelRange(u.selectionStart)),i=C.model.validatePosition(C.coordinatesConverter.convertViewPositionToModelPosition(u.position));h=new y.SingleCursorState(n,u.selectionStartLeftoverVisibleColumns,i,u.leftoverVisibleColumns)}if(u){const n=C.coordinatesConverter.validateViewRange(u.selectionStart,h.selectionStart),i=C.coordinatesConverter.validateViewPosition(u.position,h.position);u=new y.SingleCursorState(n,h.selectionStartLeftoverVisibleColumns,i,h.leftoverVisibleColumns)}else{const n=C.coordinatesConverter.convertModelPositionToViewPosition(new v.Position(h.selectionStart.startLineNumber,h.selectionStart.startColumn)),i=C.coordinatesConverter.convertModelPositionToViewPosition(new v.Position(h.selectionStart.endLineNumber,h.selectionStart.endColumn)),t=new k.Range(n.lineNumber,n.column,i.lineNumber,i.column),o=C.coordinatesConverter.convertModelPositionToViewPosition(h.position);u=new y.SingleCursorState(t,h.selectionStartLeftoverVisibleColumns,o,h.leftoverVisibleColumns)}this.modelState=h,this.viewState=u,this._updateTrackedRange(C)}}e.Cursor=w}),define(oe[414],se([1,0,18,61,413,11,3,23]),function(q,e,y,v,k,D,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CursorCollection=void 0;class C{constructor(u){this.context=u,this.cursors=[new k.Cursor(u)],this.lastAddedCursorIndex=0}dispose(){for(const u of this.cursors)u.dispose(this.context)}startTrackingSelections(){for(const u of this.cursors)u.startTrackingSelection(this.context)}stopTrackingSelections(){for(const u of this.cursors)u.stopTrackingSelection(this.context)}updateContext(u){this.context=u}ensureValidState(){for(const u of this.cursors)u.ensureValidState(this.context)}readSelectionFromMarkers(){return this.cursors.map(u=>u.readSelectionFromMarkers(this.context))}getAll(){return this.cursors.map(u=>u.asCursorState())}getViewPositions(){return this.cursors.map(u=>u.viewState.position)}getTopMostViewPosition(){return(0,y.findMinBy)(this.cursors,(0,y.compareBy)(u=>u.viewState.position,D.Position.compare)).viewState.position}getBottomMostViewPosition(){return(0,y.findLastMaxBy)(this.cursors,(0,y.compareBy)(u=>u.viewState.position,D.Position.compare)).viewState.position}getSelections(){return this.cursors.map(u=>u.modelState.selection)}getViewSelections(){return this.cursors.map(u=>u.viewState.selection)}setSelections(u){this.setStates(v.CursorState.fromModelSelections(u))}getPrimaryCursor(){return this.cursors[0].asCursorState()}setStates(u){u!==null&&(this.cursors[0].setState(this.context,u[0].modelState,u[0].viewState),this._setSecondaryStates(u.slice(1)))}_setSecondaryStates(u){const n=this.cursors.length-1,i=u.length;if(n<i){const t=i-n;for(let o=0;o<t;o++)this._addSecondaryCursor()}else if(n>i){const t=n-i;for(let o=0;o<t;o++)this._removeSecondaryCursor(this.cursors.length-2)}for(let t=0;t<i;t++)this.cursors[t+1].setState(this.context,u[t].modelState,u[t].viewState)}killSecondaryCursors(){this._setSecondaryStates([])}_addSecondaryCursor(){this.cursors.push(new k.Cursor(this.context)),this.lastAddedCursorIndex=this.cursors.length-1}getLastAddedCursorIndex(){return this.cursors.length===1||this.lastAddedCursorIndex===0?0:this.lastAddedCursorIndex}_removeSecondaryCursor(u){this.lastAddedCursorIndex>=u+1&&this.lastAddedCursorIndex--,this.cursors[u+1].dispose(this.context),this.cursors.splice(u+1,1)}normalize(){if(this.cursors.length===1)return;const u=this.cursors.slice(0),n=[];for(let i=0,t=u.length;i<t;i++)n.push({index:i,selection:u[i].modelState.selection});n.sort((0,y.compareBy)(i=>i.selection,w.Range.compareRangesUsingStarts));for(let i=0;i<n.length-1;i++){const t=n[i],o=n[i+1],s=t.selection,d=o.selection;if(!this.context.cursorConfig.multiCursorMergeOverlapping)continue;let l;if(d.isEmpty()||s.isEmpty()?l=d.getStartPosition().isBeforeOrEqual(s.getEndPosition()):l=d.getStartPosition().isBefore(s.getEndPosition()),l){const a=t.index<o.index?i:i+1,r=t.index<o.index?i+1:i,c=n[r].index,g=n[a].index,f=n[r].selection,_=n[a].selection;if(!f.equalsSelection(_)){const p=f.plusRange(_),m=f.selectionStartLineNumber===f.startLineNumber&&f.selectionStartColumn===f.startColumn,S=_.selectionStartLineNumber===_.startLineNumber&&_.selectionStartColumn===_.startColumn;let E;c===this.lastAddedCursorIndex?(E=m,this.lastAddedCursorIndex=g):E=S;let L;E?L=new b.Selection(p.startLineNumber,p.startColumn,p.endLineNumber,p.endColumn):L=new b.Selection(p.endLineNumber,p.endColumn,p.startLineNumber,p.startColumn),n[a].selection=L;const N=v.CursorState.fromModelSelection(L);u[g].setState(this.context,N.modelState,N.viewState)}for(const p of n)p.index>c&&p.index--;u.splice(c,1),n.splice(r,1),this._removeSecondaryCursor(c-1),i--}}}}e.CursorCollection=C}),define(oe[415],se([1,0,98]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CharacterPairSupport=void 0;class v{constructor(D){if(D.autoClosingPairs?this._autoClosingPairs=D.autoClosingPairs.map(w=>new y.StandardAutoClosingPairConditional(w)):D.brackets?this._autoClosingPairs=D.brackets.map(w=>new y.StandardAutoClosingPairConditional({open:w[0],close:w[1]})):this._autoClosingPairs=[],D.__electricCharacterSupport&&D.__electricCharacterSupport.docComment){const w=D.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new y.StandardAutoClosingPairConditional({open:w.open,close:w.close||""}))}this._autoCloseBefore=typeof D.autoCloseBefore=="string"?D.autoCloseBefore:v.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED,this._surroundingPairs=D.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(){return this._autoCloseBefore}getSurroundingPairs(){return this._surroundingPairs}}e.CharacterPairSupport=v,v.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED=`;:.,=}])> `}),define(oe[416],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndentRulesSupport=void 0;function y(k){return k.global&&(k.lastIndex=0),!0}class v{constructor(D){this._indentationRules=D}shouldIncrease(D){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&y(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(D))}shouldDecrease(D){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&y(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(D))}shouldIndentNextLine(D){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&y(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(D))}shouldIgnore(D){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&y(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(D))}getIndentMetadata(D){let w=0;return this.shouldIncrease(D)&&(w+=1),this.shouldDecrease(D)&&(w+=2),this.shouldIndentNextLine(D)&&(w+=4),this.shouldIgnore(D)&&(w+=8),w}}e.IndentRulesSupport=v}),define(oe[417],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BasicInplaceReplace=void 0;class y{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(k,D,w,b,C){if(k&&D){const h=this.doNavigateValueSet(D,C);if(h)return{range:k,value:h}}if(w&&b){const h=this.doNavigateValueSet(b,C);if(h)return{range:w,value:h}}return null}doNavigateValueSet(k,D){const w=this.numberReplace(k,D);return w!==null?w:this.textReplace(k,D)}numberReplace(k,D){const w=Math.pow(10,k.length-(k.lastIndexOf(".")+1));let b=Number(k);const C=parseFloat(k);return!isNaN(b)&&!isNaN(C)&&b===C?b===0&&!D?null:(b=Math.floor(b*w),b+=D?w:-w,String(b/w)):null}textReplace(k,D){return this.valueSetsReplace(this._defaultValueSet,k,D)}valueSetsReplace(k,D,w){let b=null;for(let C=0,h=k.length;b===null&&C<h;C++)b=this.valueSetReplace(k[C],D,w);return b}valueSetReplace(k,D,w){let b=k.indexOf(D);return b>=0?(b+=w?1:-1,b<0?b=k.length-1:b%=k.length,k[b]):null}}e.BasicInplaceReplace=y,y.INSTANCE=new y}),define(oe[418],se([1,0,222,14]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ClosingBracketKind=e.OpeningBracketKind=e.BracketKindBase=e.LanguageBracketsConfiguration=void 0;class k{constructor(u,n){this.languageId=u;let i;n.colorizedBracketPairs?i=D(n.colorizedBracketPairs.map(s=>[s[0],s[1]])):n.brackets?i=D(n.brackets.map(s=>[s[0],s[1]]).filter(s=>!(s[0]==="<"&&s[1]===">"))):i=[];const t=new y.CachedFunction(s=>{const d=new Set;return{info:new b(this,s,d),closing:d}}),o=new y.CachedFunction(s=>{const d=new Set;return{info:new C(this,s,d),opening:d}});for(const[s,d]of i){const l=t.get(s),a=o.get(d);l.closing.add(a.info),a.opening.add(l.info)}this._openingBrackets=new Map([...t.cachedValues].map(([s,d])=>[s,d.info])),this._closingBrackets=new Map([...o.cachedValues].map(([s,d])=>[s,d.info]))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(u){return this._openingBrackets.get(u)}getClosingBracketInfo(u){return this._closingBrackets.get(u)}getBracketInfo(u){return this.getOpeningBracketInfo(u)||this.getClosingBracketInfo(u)}}e.LanguageBracketsConfiguration=k;function D(h){return h.filter(([u,n])=>u!==""&&n!=="")}class w{constructor(u,n){this.config=u,this.bracketText=n}get languageId(){return this.config.languageId}}e.BracketKindBase=w;class b extends w{constructor(u,n,i){super(u,n),this.openedBrackets=i,this.isOpeningBracket=!0}}e.OpeningBracketKind=b;class C extends w{constructor(u,n,i){super(u,n),this.closedBrackets=i,this.isOpeningBracket=!1}closes(u){if(u.languageId===this.languageId&&u.config!==this.config)throw new v.BugIndicatingError("Brackets from different language configuration cannot be used.");return this.closedBrackets.has(u)}getClosedBrackets(){return[...this.closedBrackets]}}e.ClosingBracketKind=C}),define(oe[419],se([1,0,14,8,98]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OnEnterSupport=void 0;class D{constructor(b){b=b||{},b.brackets=b.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],b.brackets.forEach(C=>{const h=D._createOpenBracketRegExp(C[0]),u=D._createCloseBracketRegExp(C[1]);h&&u&&this._brackets.push({open:C[0],openRegExp:h,close:C[1],closeRegExp:u})}),this._regExpRules=b.onEnterRules||[]}onEnter(b,C,h,u){if(b>=3)for(let n=0,i=this._regExpRules.length;n<i;n++){const t=this._regExpRules[n];if([{reg:t.beforeText,text:h},{reg:t.afterText,text:u},{reg:t.previousLineText,text:C}].every(o=>o.reg?(o.reg.lastIndex=0,o.reg.test(o.text)):!0))return t.action}if(b>=2&&h.length>0&&u.length>0)for(let n=0,i=this._brackets.length;n<i;n++){const t=this._brackets[n];if(t.openRegExp.test(h)&&t.closeRegExp.test(u))return{indentAction:k.IndentAction.IndentOutdent}}if(b>=2&&h.length>0){for(let n=0,i=this._brackets.length;n<i;n++)if(this._brackets[n].openRegExp.test(h))return{indentAction:k.IndentAction.Indent}}return null}static _createOpenBracketRegExp(b){let C=v.escapeRegExpCharacters(b);return/\B/.test(C.charAt(0))||(C="\\b"+C),C+="\\s*$",D._safeRegExp(C)}static _createCloseBracketRegExp(b){let C=v.escapeRegExpCharacters(b);return/\B/.test(C.charAt(C.length-1))||(C=C+"\\b"),C="^\\s*"+C,D._safeRegExp(C)}static _safeRegExp(b){try{return new RegExp(b)}catch(C){return(0,y.onUnexpectedError)(C),null}}}e.OnEnterSupport=D}),define(oe[420],se([1,0,31]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.generateTokensCSSForColorMap=e.ThemeTrieElement=e.ThemeTrieElementRule=e.strcmp=e.toStandardTokenType=e.TokenTheme=e.ColorMap=e.parseTokenTheme=e.ParsedTokenThemeRule=void 0;class v{constructor(d,l,a,r,c){this._parsedThemeRuleBrand=void 0,this.token=d,this.index=l,this.fontStyle=a,this.foreground=r,this.background=c}}e.ParsedTokenThemeRule=v;function k(s){if(!s||!Array.isArray(s))return[];const d=[];let l=0;for(let a=0,r=s.length;a<r;a++){const c=s[a];let g=-1;if(typeof c.fontStyle=="string"){g=0;const p=c.fontStyle.split(" ");for(let m=0,S=p.length;m<S;m++)switch(p[m]){case"italic":g=g|1;break;case"bold":g=g|2;break;case"underline":g=g|4;break;case"strikethrough":g=g|8;break}}let f=null;typeof c.foreground=="string"&&(f=c.foreground);let _=null;typeof c.background=="string"&&(_=c.background),d[l++]=new v(c.token||"",a,g,f,_)}return d}e.parseTokenTheme=k;function D(s,d){s.sort((m,S)=>{const E=n(m.token,S.token);return E!==0?E:m.index-S.index});let l=0,a="000000",r="ffffff";for(;s.length>=1&&s[0].token==="";){const m=s.shift();m.fontStyle!==-1&&(l=m.fontStyle),m.foreground!==null&&(a=m.foreground),m.background!==null&&(r=m.background)}const c=new b;for(const m of d)c.getId(m);const g=c.getId(a),f=c.getId(r),_=new i(l,g,f),p=new t(_);for(let m=0,S=s.length;m<S;m++){const E=s[m];p.insert(E.token,E.fontStyle,c.getId(E.foreground),c.getId(E.background))}return new C(c,p)}const w=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/;class b{constructor(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}getId(d){if(d===null)return 0;const l=d.match(w);if(!l)throw new Error("Illegal value for token color: "+d);d=l[1].toUpperCase();let a=this._color2id.get(d);return a||(a=++this._lastColorId,this._color2id.set(d,a),this._id2color[a]=y.Color.fromHex("#"+d),a)}getColorMap(){return this._id2color.slice(0)}}e.ColorMap=b;class C{constructor(d,l){this._colorMap=d,this._root=l,this._cache=new Map}static createFromRawTokenTheme(d,l){return this.createFromParsedTokenTheme(k(d),l)}static createFromParsedTokenTheme(d,l){return D(d,l)}getColorMap(){return this._colorMap.getColorMap()}_match(d){return this._root.match(d)}match(d,l){let a=this._cache.get(l);if(typeof a>"u"){const r=this._match(l),c=u(l);a=(r.metadata|c<<8)>>>0,this._cache.set(l,a)}return(a|d<<0)>>>0}}e.TokenTheme=C;const h=/\b(comment|string|regex|regexp)\b/;function u(s){const d=s.match(h);if(!d)return 0;switch(d[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"regexp":return 3}throw new Error("Unexpected match for standard token type!")}e.toStandardTokenType=u;function n(s,d){return s<d?-1:s>d?1:0}e.strcmp=n;class i{constructor(d,l,a){this._themeTrieElementRuleBrand=void 0,this._fontStyle=d,this._foreground=l,this._background=a,this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}clone(){return new i(this._fontStyle,this._foreground,this._background)}acceptOverwrite(d,l,a){d!==-1&&(this._fontStyle=d),l!==0&&(this._foreground=l),a!==0&&(this._background=a),this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}}e.ThemeTrieElementRule=i;class t{constructor(d){this._themeTrieElementBrand=void 0,this._mainRule=d,this._children=new Map}match(d){if(d==="")return this._mainRule;const l=d.indexOf(".");let a,r;l===-1?(a=d,r=""):(a=d.substring(0,l),r=d.substring(l+1));const c=this._children.get(a);return typeof c<"u"?c.match(r):this._mainRule}insert(d,l,a,r){if(d===""){this._mainRule.acceptOverwrite(l,a,r);return}const c=d.indexOf(".");let g,f;c===-1?(g=d,f=""):(g=d.substring(0,c),f=d.substring(c+1));let _=this._children.get(g);typeof _>"u"&&(_=new t(this._mainRule.clone()),this._children.set(g,_)),_.insert(f,l,a,r)}}e.ThemeTrieElement=t;function o(s){const d=[];for(let l=1,a=s.length;l<a;l++){const r=s[l];d[l]=`.mtk${l} { color: ${r}; }`}return d.push(".mtki { font-style: italic; }"),d.push(".mtkb { font-weight: bold; }"),d.push(".mtku { text-decoration: underline; text-underline-position: under; }"),d.push(".mtks { text-decoration: line-through; }"),d.push(".mtks.mtku { text-decoration: underline line-through; text-underline-position: under; }"),d.join(` `)}e.generateTokensCSSForColorMap=o}),define(oe[46],se([1,0,40]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.shouldSynchronizeModel=e.ApplyEditsResult=e.SearchData=e.ValidAnnotatedEditOperation=e.isITextSnapshot=e.FindMatch=e.TextModelResolvedOptions=e.InjectedTextCursorStops=e.MinimapPosition=e.OverviewRulerLane=void 0;var v;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=4]="Right",t[t.Full=7]="Full"})(v=e.OverviewRulerLane||(e.OverviewRulerLane={}));var k;(function(t){t[t.Inline=1]="Inline",t[t.Gutter=2]="Gutter"})(k=e.MinimapPosition||(e.MinimapPosition={}));var D;(function(t){t[t.Both=0]="Both",t[t.Right=1]="Right",t[t.Left=2]="Left",t[t.None=3]="None"})(D=e.InjectedTextCursorStops||(e.InjectedTextCursorStops={}));class w{constructor(o){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,o.tabSize|0),this.indentSize=o.tabSize|0,this.insertSpaces=!!o.insertSpaces,this.defaultEOL=o.defaultEOL|0,this.trimAutoWhitespace=!!o.trimAutoWhitespace,this.bracketPairColorizationOptions=o.bracketPairColorizationOptions}equals(o){return this.tabSize===o.tabSize&&this.indentSize===o.indentSize&&this.insertSpaces===o.insertSpaces&&this.defaultEOL===o.defaultEOL&&this.trimAutoWhitespace===o.trimAutoWhitespace&&(0,y.equals)(this.bracketPairColorizationOptions,o.bracketPairColorizationOptions)}createChangeEvent(o){return{tabSize:this.tabSize!==o.tabSize,indentSize:this.indentSize!==o.indentSize,insertSpaces:this.insertSpaces!==o.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==o.trimAutoWhitespace}}}e.TextModelResolvedOptions=w;class b{constructor(o,s){this._findMatchBrand=void 0,this.range=o,this.matches=s}}e.FindMatch=b;function C(t){return t&&typeof t.read=="function"}e.isITextSnapshot=C;class h{constructor(o,s,d,l,a,r){this.identifier=o,this.range=s,this.text=d,this.forceMoveMarkers=l,this.isAutoWhitespaceEdit=a,this._isTracked=r}}e.ValidAnnotatedEditOperation=h;class u{constructor(o,s,d){this.regex=o,this.wordSeparators=s,this.simpleSearch=d}}e.SearchData=u;class n{constructor(o,s,d){this.reverseEdits=o,this.changes=s,this.trimAutoWhitespaceLineNumbers=d}}e.ApplyEditsResult=n;function i(t){return!t.isTooLargeForSyncing()&&!t.isForSimpleWidget}e.shouldSynchronizeModel=i}),define(oe[87],se([1,0,8,3]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.lengthOfString=e.lengthsToRange=e.positionToLength=e.lengthGreaterThanEqual=e.lengthLessThanEqual=e.lengthLessThan=e.lengthDiffNonNegative=e.lengthAdd=e.lengthGetColumnCountIfZeroLineCount=e.lengthGetLineCount=e.lengthToObj=e.toLength=e.lengthIsZero=e.lengthZero=e.lengthDiff=e.LengthObj=void 0;class k{constructor(g,f){this.lineCount=g,this.columnCount=f}toString(){return`${this.lineCount},${this.columnCount}`}}e.LengthObj=k,k.zero=new k(0,0);function D(c,g,f,_){return c!==f?C(f-c,_):C(0,_-g)}e.lengthDiff=D,e.lengthZero=0;function w(c){return c===0}e.lengthIsZero=w;const b=Math.pow(2,26);function C(c,g){return c*b+g}e.toLength=C;function h(c){const g=c,f=Math.floor(g/b),_=g-f*b;return new k(f,_)}e.lengthToObj=h;function u(c){return Math.floor(c/b)}e.lengthGetLineCount=u;function n(c){return c}e.lengthGetColumnCountIfZeroLineCount=n;function i(c,g){return g<b?c+g:c-c%b+g}e.lengthAdd=i;function t(c,g){const f=c,_=g;if(_-f<=0)return e.lengthZero;const p=Math.floor(f/b),m=Math.floor(_/b),S=_-m*b;if(p===m){const E=f-p*b;return C(0,S-E)}else return C(m-p,S)}e.lengthDiffNonNegative=t;function o(c,g){return c<g}e.lengthLessThan=o;function s(c,g){return c<=g}e.lengthLessThanEqual=s;function d(c,g){return c>=g}e.lengthGreaterThanEqual=d;function l(c){return C(c.lineNumber-1,c.column-1)}e.positionToLength=l;function a(c,g){const f=c,_=Math.floor(f/b),p=f-_*b,m=g,S=Math.floor(m/b),E=m-S*b;return new v.Range(_+1,p+1,S+1,E+1)}e.lengthsToRange=a;function r(c){const g=(0,y.splitLines)(c);return C(g.length-1,g[g.length-1].length)}e.lengthOfString=r}),define(oe[235],se([1,0,87]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BeforeEditPositionMapper=e.TextEditInfo=void 0;class v{constructor(b,C,h){this.startOffset=b,this.endOffset=C,this.newLength=h}}e.TextEditInfo=v;class k{constructor(b,C){this.documentLength=C,this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=b.map(h=>D.from(h))}getOffsetBeforeChange(b){return this.adjustNextEdit(b),this.translateCurToOld(b)}getDistanceToNextChange(b){this.adjustNextEdit(b);const C=this.edits[this.nextEditIdx],h=C?this.translateOldToCur(C.offsetObj):this.documentLength;return(0,y.lengthDiffNonNegative)(b,h)}translateOldToCur(b){return b.lineCount===this.deltaLineIdxInOld?(0,y.toLength)(b.lineCount+this.deltaOldToNewLineCount,b.columnCount+this.deltaOldToNewColumnCount):(0,y.toLength)(b.lineCount+this.deltaOldToNewLineCount,b.columnCount)}translateCurToOld(b){const C=(0,y.lengthToObj)(b);return C.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?(0,y.toLength)(C.lineCount-this.deltaOldToNewLineCount,C.columnCount-this.deltaOldToNewColumnCount):(0,y.toLength)(C.lineCount-this.deltaOldToNewLineCount,C.columnCount)}adjustNextEdit(b){for(;this.nextEditIdx<this.edits.length;){const C=this.edits[this.nextEditIdx],h=this.translateOldToCur(C.endOffsetAfterObj);if((0,y.lengthLessThanEqual)(h,b)){this.nextEditIdx++;const u=(0,y.lengthToObj)(h),n=(0,y.lengthToObj)(this.translateOldToCur(C.endOffsetBeforeObj)),i=u.lineCount-n.lineCount;this.deltaOldToNewLineCount+=i;const t=this.deltaLineIdxInOld===C.endOffsetBeforeObj.lineCount?this.deltaOldToNewColumnCount:0,o=u.columnCount-n.columnCount;this.deltaOldToNewColumnCount=t+o,this.deltaLineIdxInOld=C.endOffsetBeforeObj.lineCount}else break}}}e.BeforeEditPositionMapper=k;class D{constructor(b,C,h){this.endOffsetBeforeObj=(0,y.lengthToObj)(C),this.endOffsetAfterObj=(0,y.lengthToObj)((0,y.lengthAdd)(b,h)),this.offsetObj=(0,y.lengthToObj)(b)}static from(b){return new D(b.startOffset,b.endOffset,b.newLength)}}}),define(oe[421],se([1,0,87]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NodeReader=void 0;class v{constructor(b){this.lastOffset=y.lengthZero,this.nextNodes=[b],this.offsets=[y.lengthZero],this.idxs=[]}readLongestNodeAt(b,C){if((0,y.lengthLessThan)(b,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=b;;){const h=D(this.nextNodes);if(!h)return;const u=D(this.offsets);if((0,y.lengthLessThan)(b,u))return;if((0,y.lengthLessThan)(u,b))if((0,y.lengthAdd)(u,h.length)<=b)this.nextNodeAfterCurrent();else{const n=k(h);n!==-1?(this.nextNodes.push(h.getChild(n)),this.offsets.push(u),this.idxs.push(n)):this.nextNodeAfterCurrent()}else{if(C(h))return this.nextNodeAfterCurrent(),h;{const n=k(h);if(n===-1){this.nextNodeAfterCurrent();return}else this.nextNodes.push(h.getChild(n)),this.offsets.push(u),this.idxs.push(n)}}}}nextNodeAfterCurrent(){for(;;){const b=D(this.offsets),C=D(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),this.idxs.length===0)break;const h=D(this.nextNodes),u=k(h,this.idxs[this.idxs.length-1]);if(u!==-1){this.nextNodes.push(h.getChild(u)),this.offsets.push((0,y.lengthAdd)(b,C.length)),this.idxs[this.idxs.length-1]=u;break}else this.idxs.pop()}}}e.NodeReader=v;function k(w,b=-1){for(;;){if(b++,b>=w.childrenLength)return-1;if(w.getChild(b))return b}}function D(w){return w.length>0?w[w.length-1]:void 0}}),define(oe[111],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DenseKeyProvider=e.identityKeyProvider=e.SmallImmutableSet=void 0;const y=new Array;class v{constructor(w,b){this.items=w,this.additionalItems=b}static create(w,b){if(w<=128&&b.length===0){let C=v.cache[w];return C||(C=new v(w,b),v.cache[w]=C),C}return new v(w,b)}static getEmpty(){return this.empty}add(w,b){const C=b.getKey(w);let h=C>>5;if(h===0){const n=1<<C|this.items;return n===this.items?this:v.create(n,this.additionalItems)}h--;const u=this.additionalItems.slice(0);for(;u.length<h;)u.push(0);return u[h]|=1<<(C&31),v.create(this.items,u)}merge(w){const b=this.items|w.items;if(this.additionalItems===y&&w.additionalItems===y)return b===this.items?this:b===w.items?w:v.create(b,y);const C=new Array;for(let h=0;h<Math.max(this.additionalItems.length,w.additionalItems.length);h++){const u=this.additionalItems[h]||0,n=w.additionalItems[h]||0;C.push(u|n)}return v.create(b,C)}intersects(w){if(this.items&w.items)return!0;for(let b=0;b<Math.min(this.additionalItems.length,w.additionalItems.length);b++)if(this.additionalItems[b]&w.additionalItems[b])return!0;return!1}}e.SmallImmutableSet=v,v.cache=new Array(129),v.empty=v.create(0,y),e.identityKeyProvider={getKey(D){return D}};class k{constructor(){this.items=new Map}getKey(w){let b=this.items.get(w);return b===void 0&&(b=this.items.size,this.items.set(w,b)),b}}e.DenseKeyProvider=k}),define(oe[157],se([1,0,66,87,111]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InvalidBracketAstNode=e.BracketAstNode=e.TextAstNode=e.ListAstNode=e.PairAstNode=void 0;class D{constructor(a){this._length=a}get length(){return this._length}}class w extends D{constructor(a,r,c,g,f){super(a),this.openingBracket=r,this.child=c,this.closingBracket=g,this.missingOpeningBracketIds=f}static create(a,r,c){let g=a.length;return r&&(g=(0,v.lengthAdd)(g,r.length)),c&&(g=(0,v.lengthAdd)(g,c.length)),new w(g,a,r,c,r?r.missingOpeningBracketIds:k.SmallImmutableSet.getEmpty())}get kind(){return 2}get listHeight(){return 0}get childrenLength(){return 3}getChild(a){switch(a){case 0:return this.openingBracket;case 1:return this.child;case 2:return this.closingBracket}throw new Error("Invalid child index")}get children(){const a=new Array;return a.push(this.openingBracket),this.child&&a.push(this.child),this.closingBracket&&a.push(this.closingBracket),a}canBeReused(a){return!(this.closingBracket===null||a.intersects(this.missingOpeningBracketIds))}deepClone(){return new w(this.length,this.openingBracket.deepClone(),this.child&&this.child.deepClone(),this.closingBracket&&this.closingBracket.deepClone(),this.missingOpeningBracketIds)}computeMinIndentation(a,r){return this.child?this.child.computeMinIndentation((0,v.lengthAdd)(a,this.openingBracket.length),r):Number.MAX_SAFE_INTEGER}}e.PairAstNode=w;class b extends D{constructor(a,r,c){super(a),this.listHeight=r,this._missingOpeningBracketIds=c,this.cachedMinIndentation=-1}static create23(a,r,c,g=!1){let f=a.length,_=a.missingOpeningBracketIds;if(a.listHeight!==r.listHeight)throw new Error("Invalid list heights");if(f=(0,v.lengthAdd)(f,r.length),_=_.merge(r.missingOpeningBracketIds),c){if(a.listHeight!==c.listHeight)throw new Error("Invalid list heights");f=(0,v.lengthAdd)(f,c.length),_=_.merge(c.missingOpeningBracketIds)}return g?new h(f,a.listHeight+1,a,r,c,_):new C(f,a.listHeight+1,a,r,c,_)}static getEmpty(){return new n(v.lengthZero,0,[],k.SmallImmutableSet.getEmpty())}get kind(){return 4}get missingOpeningBracketIds(){return this._missingOpeningBracketIds}throwIfImmutable(){}makeLastElementMutable(){this.throwIfImmutable();const a=this.childrenLength;if(a===0)return;const r=this.getChild(a-1),c=r.kind===4?r.toMutable():r;return r!==c&&this.setChild(a-1,c),c}makeFirstElementMutable(){if(this.throwIfImmutable(),this.childrenLength===0)return;const a=this.getChild(0),r=a.kind===4?a.toMutable():a;return a!==r&&this.setChild(0,r),r}canBeReused(a){if(a.intersects(this.missingOpeningBracketIds))return!1;let r=this,c;for(;r.kind===4&&(c=r.childrenLength)>0;)r=r.getChild(c-1);return r.canBeReused(a)}handleChildrenChanged(){this.throwIfImmutable();const a=this.childrenLength;let r=this.getChild(0).length,c=this.getChild(0).missingOpeningBracketIds;for(let g=1;g<a;g++){const f=this.getChild(g);r=(0,v.lengthAdd)(r,f.length),c=c.merge(f.missingOpeningBracketIds)}this._length=r,this._missingOpeningBracketIds=c,this.cachedMinIndentation=-1}computeMinIndentation(a,r){if(this.cachedMinIndentation!==-1)return this.cachedMinIndentation;let c=Number.MAX_SAFE_INTEGER,g=a;for(let f=0;f<this.childrenLength;f++){const _=this.getChild(f);_&&(c=Math.min(c,_.computeMinIndentation(g,r)),g=(0,v.lengthAdd)(g,_.length))}return this.cachedMinIndentation=c,c}}e.ListAstNode=b;class C extends b{constructor(a,r,c,g,f,_){super(a,r,_),this._item1=c,this._item2=g,this._item3=f}get childrenLength(){return this._item3!==null?3:2}getChild(a){switch(a){case 0:return this._item1;case 1:return this._item2;case 2:return this._item3}throw new Error("Invalid child index")}setChild(a,r){switch(a){case 0:this._item1=r;return;case 1:this._item2=r;return;case 2:this._item3=r;return}throw new Error("Invalid child index")}get children(){return this._item3?[this._item1,this._item2,this._item3]:[this._item1,this._item2]}get item1(){return this._item1}get item2(){return this._item2}get item3(){return this._item3}deepClone(){return new C(this.length,this.listHeight,this._item1.deepClone(),this._item2.deepClone(),this._item3?this._item3.deepClone():null,this.missingOpeningBracketIds)}appendChildOfSameHeight(a){if(this._item3)throw new Error("Cannot append to a full (2,3) tree node");this.throwIfImmutable(),this._item3=a,this.handleChildrenChanged()}unappendChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const a=this._item3;return this._item3=null,this.handleChildrenChanged(),a}prependChildOfSameHeight(a){if(this._item3)throw new Error("Cannot prepend to a full (2,3) tree node");this.throwIfImmutable(),this._item3=this._item2,this._item2=this._item1,this._item1=a,this.handleChildrenChanged()}unprependChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const a=this._item1;return this._item1=this._item2,this._item2=this._item3,this._item3=null,this.handleChildrenChanged(),a}toMutable(){return this}}class h extends C{toMutable(){return new C(this.length,this.listHeight,this.item1,this.item2,this.item3,this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}class u extends b{constructor(a,r,c,g){super(a,r,g),this._children=c}get childrenLength(){return this._children.length}getChild(a){return this._children[a]}setChild(a,r){this._children[a]=r}get children(){return this._children}deepClone(){const a=new Array(this._children.length);for(let r=0;r<this._children.length;r++)a[r]=this._children[r].deepClone();return new u(this.length,this.listHeight,a,this.missingOpeningBracketIds)}appendChildOfSameHeight(a){this.throwIfImmutable(),this._children.push(a),this.handleChildrenChanged()}unappendChild(){this.throwIfImmutable();const a=this._children.pop();return this.handleChildrenChanged(),a}prependChildOfSameHeight(a){this.throwIfImmutable(),this._children.unshift(a),this.handleChildrenChanged()}unprependChild(){this.throwIfImmutable();const a=this._children.shift();return this.handleChildrenChanged(),a}toMutable(){return this}}class n extends u{toMutable(){return new u(this.length,this.listHeight,[...this.children],this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}const i=[];class t extends D{get listHeight(){return 0}get childrenLength(){return 0}getChild(a){return null}get children(){return i}deepClone(){return this}}class o extends t{get kind(){return 0}get missingOpeningBracketIds(){return k.SmallImmutableSet.getEmpty()}canBeReused(a){return!0}computeMinIndentation(a,r){const c=(0,v.lengthToObj)(a),g=(c.columnCount===0?c.lineCount:c.lineCount+1)+1,f=(0,v.lengthGetLineCount)((0,v.lengthAdd)(a,this.length))+1;let _=Number.MAX_SAFE_INTEGER;for(let p=g;p<=f;p++){const m=r.getLineFirstNonWhitespaceColumn(p),S=r.getLineContent(p);if(m===0)continue;const E=y.CursorColumns.visibleColumnFromColumn(S,m,r.getOptions().tabSize);_=Math.min(_,E)}return _}}e.TextAstNode=o;class s extends t{constructor(a,r,c){super(a),this.bracketInfo=r,this.bracketIds=c}static create(a,r,c){return new s(a,r,c)}get kind(){return 1}get missingOpeningBracketIds(){return k.SmallImmutableSet.getEmpty()}get text(){return this.bracketInfo.bracketText}get languageId(){return this.bracketInfo.languageId}canBeReused(a){return!1}computeMinIndentation(a,r){return Number.MAX_SAFE_INTEGER}}e.BracketAstNode=s;class d extends t{constructor(a,r){super(r),this.missingOpeningBracketIds=a}get kind(){return 3}canBeReused(a){return!a.intersects(this.missingOpeningBracketIds)}computeMinIndentation(a,r){return Number.MAX_SAFE_INTEGER}}e.InvalidBracketAstNode=d}),define(oe[422],se([1,0,157]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.concat23TreesOfSameHeight=e.concat23Trees=void 0;function v(h){if(h.length===0)return null;if(h.length===1)return h[0];let u=0;function n(){if(u>=h.length)return null;const o=u,s=h[o].listHeight;for(u++;u<h.length&&h[u].listHeight===s;)u++;return u-o>=2?k(o===0&&u===h.length?h:h.slice(o,u),!1):h[o]}let i=n(),t=n();if(!t)return i;for(let o=n();o;o=n())D(i,t)<=D(t,o)?(i=w(i,t),t=o):t=w(t,o);return w(i,t)}e.concat23Trees=v;function k(h,u=!1){if(h.length===0)return null;if(h.length===1)return h[0];let n=h.length;for(;n>3;){const i=n>>1;for(let t=0;t<i;t++){const o=t<<1;h[t]=y.ListAstNode.create23(h[o],h[o+1],o+3===n?h[o+2]:null,u)}n=i}return y.ListAstNode.create23(h[0],h[1],n>=3?h[2]:null,u)}e.concat23TreesOfSameHeight=k;function D(h,u){return Math.abs(h.listHeight-u.listHeight)}function w(h,u){return h.listHeight===u.listHeight?y.ListAstNode.create23(h,u,null,!1):h.listHeight>u.listHeight?b(h,u):C(u,h)}function b(h,u){h=h.toMutable();let n=h;const i=new Array;let t;for(;;){if(u.listHeight===n.listHeight){t=u;break}if(n.kind!==4)throw new Error("unexpected");i.push(n),n=n.makeLastElementMutable()}for(let o=i.length-1;o>=0;o--){const s=i[o];t?s.childrenLength>=3?t=y.ListAstNode.create23(s.unappendChild(),t,null,!1):(s.appendChildOfSameHeight(t),t=void 0):s.handleChildrenChanged()}return t?y.ListAstNode.create23(h,t,null,!1):h}function C(h,u){h=h.toMutable();let n=h;const i=new Array;for(;u.listHeight!==n.listHeight;){if(n.kind!==4)throw new Error("unexpected");i.push(n),n=n.makeFirstElementMutable()}let t=u;for(let o=i.length-1;o>=0;o--){const s=i[o];t?s.childrenLength>=3?t=y.ListAstNode.create23(t,s.unprependChild(),null,!1):(s.prependChildOfSameHeight(t),t=void 0):s.handleChildrenChanged()}return t?y.ListAstNode.create23(t,h,null,!1):h}}),define(oe[236],se([1,0,157,235,111,87,422,421]),function(q,e,y,v,k,D,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseDocument=void 0;function C(u,n,i,t){return new h(u,n,i,t).parseDocument()}e.parseDocument=C;class h{constructor(n,i,t,o){if(this.tokenizer=n,this.createImmutableLists=o,this._itemsConstructed=0,this._itemsFromCache=0,t&&o)throw new Error("Not supported");this.oldNodeReader=t?new b.NodeReader(t):void 0,this.positionMapper=new v.BeforeEditPositionMapper(i,n.length)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let n=this.parseList(k.SmallImmutableSet.getEmpty());return n||(n=y.ListAstNode.getEmpty()),n}parseList(n){const i=new Array;for(;;){const t=this.tokenizer.peek();if(!t||t.kind===2&&t.bracketIds.intersects(n))break;const o=this.parseChild(n);o.kind===4&&o.childrenLength===0||i.push(o)}return this.oldNodeReader?(0,w.concat23Trees)(i):(0,w.concat23TreesOfSameHeight)(i,this.createImmutableLists)}parseChild(n){if(this.oldNodeReader){const t=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(!(0,D.lengthIsZero)(t)){const o=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),s=>(0,D.lengthLessThan)(s.length,t)?s.canBeReused(n):!1);if(o)return this._itemsFromCache++,this.tokenizer.skip(o.length),o}}this._itemsConstructed++;const i=this.tokenizer.read();switch(i.kind){case 2:return new y.InvalidBracketAstNode(i.bracketIds,i.length);case 0:return i.astNode;case 1:{const t=n.merge(i.bracketIds),o=this.parseList(t),s=this.tokenizer.peek();return s&&s.kind===2&&(s.bracketId===i.bracketId||s.bracketIds.intersects(i.bracketIds))?(this.tokenizer.read(),y.PairAstNode.create(i.astNode,o,s.astNode)):y.PairAstNode.create(i.astNode,o,null)}default:throw new Error("unexpected")}}}}),define(oe[183],se([1,0,14,109,157,87,111]),function(q,e,y,v,k,D,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FastTokenizer=e.TextBufferTokenizer=e.Token=void 0;class b{constructor(i,t,o,s,d){this.length=i,this.kind=t,this.bracketId=o,this.bracketIds=s,this.astNode=d}}e.Token=b;class C{constructor(i,t){this.textModel=i,this.bracketTokens=t,this.reader=new h(this.textModel,this.bracketTokens),this._offset=D.lengthZero,this.didPeek=!1,this.peeked=null,this.textBufferLineCount=i.getLineCount(),this.textBufferLastLineLength=i.getLineLength(this.textBufferLineCount)}get offset(){return this._offset}get length(){return(0,D.toLength)(this.textBufferLineCount,this.textBufferLastLineLength)}skip(i){this.didPeek=!1,this._offset=(0,D.lengthAdd)(this._offset,i);const t=(0,D.lengthToObj)(this._offset);this.reader.setPosition(t.lineCount,t.columnCount)}read(){let i;return this.peeked?(this.didPeek=!1,i=this.peeked):i=this.reader.read(),i&&(this._offset=(0,D.lengthAdd)(this._offset,i.length)),i}peek(){return this.didPeek||(this.peeked=this.reader.read(),this.didPeek=!0),this.peeked}}e.TextBufferTokenizer=C;class h{constructor(i,t){this.textModel=i,this.bracketTokens=t,this.lineIdx=0,this.line=null,this.lineCharOffset=0,this.lineTokens=null,this.lineTokenOffset=0,this.peekedToken=null,this.textBufferLineCount=i.getLineCount(),this.textBufferLastLineLength=i.getLineLength(this.textBufferLineCount)}setPosition(i,t){i===this.lineIdx?(this.lineCharOffset=t,this.lineTokenOffset=this.lineCharOffset===0?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset)):(this.lineIdx=i,this.lineCharOffset=t,this.line=null),this.peekedToken=null}read(){if(this.peekedToken){const d=this.peekedToken;return this.peekedToken=null,this.lineCharOffset+=(0,D.lengthGetColumnCountIfZeroLineCount)(d.length),d}if(this.lineIdx>this.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;this.line===null&&(this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=this.lineCharOffset===0?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));const i=this.lineIdx,t=this.lineCharOffset;let o=0;for(;;){const d=this.lineTokens,l=d.getCount();let a=null;if(this.lineTokenOffset<l){const r=d.getMetadata(this.lineTokenOffset);for(;this.lineTokenOffset+1<l&&r===d.getMetadata(this.lineTokenOffset+1);)this.lineTokenOffset++;const c=v.TokenMetadata.getTokenType(r)===0,g=v.TokenMetadata.containsBalancedBrackets(r),f=d.getEndOffset(this.lineTokenOffset);if(g&&c&&this.lineCharOffset<f){const _=d.getLanguageId(this.lineTokenOffset),p=this.line.substring(this.lineCharOffset,f),m=this.bracketTokens.getSingleLanguageBracketTokens(_),S=m.regExpGlobal;if(S){S.lastIndex=0;const E=S.exec(p);E&&(a=m.getToken(E[0]),a&&(this.lineCharOffset+=E.index))}}if(o+=f-this.lineCharOffset,a)if(i!==this.lineIdx||t!==this.lineCharOffset){this.peekedToken=a;break}else return this.lineCharOffset+=(0,D.lengthGetColumnCountIfZeroLineCount)(a.length),a;else this.lineTokenOffset++,this.lineCharOffset=f}else if(this.lineIdx===this.textBufferLineCount-1||(this.lineIdx++,this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.lineTokenOffset=0,this.line=this.lineTokens.getLineContent(),this.lineCharOffset=0,o+=33,o>1e3))break;if(o>1500)break}const s=(0,D.lengthDiff)(i,t,this.lineIdx,this.lineCharOffset);return new b(s,0,-1,w.SmallImmutableSet.getEmpty(),new k.TextAstNode(s))}}class u{constructor(i,t){this.text=i,this._offset=D.lengthZero,this.idx=0;const o=t.getRegExpStr(),s=o?new RegExp(o+`| `,"gi"):null,d=[];let l,a=0,r=0,c=0,g=0;const f=new Array;for(let m=0;m<60;m++)f.push(new b((0,D.toLength)(0,m),0,-1,w.SmallImmutableSet.getEmpty(),new k.TextAstNode((0,D.toLength)(0,m))));const _=new Array;for(let m=0;m<60;m++)_.push(new b((0,D.toLength)(1,m),0,-1,w.SmallImmutableSet.getEmpty(),new k.TextAstNode((0,D.toLength)(1,m))));if(s)for(s.lastIndex=0;(l=s.exec(i))!==null;){const m=l.index,S=l[0];if(S===` `)a++,r=m+1;else{if(c!==m){let E;if(g===a){const L=m-c;if(L<f.length)E=f[L];else{const N=(0,D.toLength)(0,L);E=new b(N,0,-1,w.SmallImmutableSet.getEmpty(),new k.TextAstNode(N))}}else{const L=a-g,N=m-r;if(L===1&&N<_.length)E=_[N];else{const I=(0,D.toLength)(L,N);E=new b(I,0,-1,w.SmallImmutableSet.getEmpty(),new k.TextAstNode(I))}}d.push(E)}d.push(t.getToken(S)),c=m+S.length,g=a}}const p=i.length;if(c!==p){const m=g===a?(0,D.toLength)(0,p-c):(0,D.toLength)(a-g,p-r);d.push(new b(m,0,-1,w.SmallImmutableSet.getEmpty(),new k.TextAstNode(m)))}this.length=(0,D.toLength)(a,p-r),this.tokens=d}get offset(){return this._offset}read(){return this.tokens[this.idx++]||null}peek(){return this.tokens[this.idx]||null}skip(i){throw new y.NotSupportedError}}e.FastTokenizer=u}),define(oe[237],se([1,0,8,157,87,111,183]),function(q,e,y,v,k,D,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LanguageAgnosticBracketTokens=e.BracketTokens=void 0;class b{constructor(n){this.map=n,this.hasRegExp=!1,this._regExpGlobal=null}static createFromLanguage(n,i){function t(s){return i.getKey(`${s.languageId}:::${s.bracketText}`)}const o=new Map;for(const s of n.bracketsNew.openingBrackets){const d=(0,k.toLength)(0,s.bracketText.length),l=t(s),a=D.SmallImmutableSet.getEmpty().add(l,D.identityKeyProvider);o.set(s.bracketText,new w.Token(d,1,l,a,v.BracketAstNode.create(d,s,a)))}for(const s of n.bracketsNew.closingBrackets){const d=(0,k.toLength)(0,s.bracketText.length);let l=D.SmallImmutableSet.getEmpty();const a=s.getClosedBrackets();for(const r of a)l=l.add(t(r),D.identityKeyProvider);o.set(s.bracketText,new w.Token(d,2,t(a[0]),l,v.BracketAstNode.create(d,s,l)))}return new b(o)}getRegExpStr(){if(this.isEmpty)return null;{const n=[...this.map.keys()];return n.sort(),n.reverse(),n.map(i=>C(i)).join("|")}}get regExpGlobal(){if(!this.hasRegExp){const n=this.getRegExpStr();this._regExpGlobal=n?new RegExp(n,"gi"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(n){return this.map.get(n.toLowerCase())}findClosingTokenText(n){for(const[i,t]of this.map)if(t.kind===2&&t.bracketIds.intersects(n))return i}get isEmpty(){return this.map.size===0}}e.BracketTokens=b;function C(u){let n=(0,y.escapeRegExpCharacters)(u);return/^[\w ]+/.test(u)&&(n=`\\b${n}`),/[\w ]+$/.test(u)&&(n=`${n}\\b`),n}class h{constructor(n,i){this.denseKeyProvider=n,this.getLanguageConfiguration=i,this.languageIdToBracketTokens=new Map}didLanguageChange(n){return this.languageIdToBracketTokens.has(n)}getSingleLanguageBracketTokens(n){let i=this.languageIdToBracketTokens.get(n);return i||(i=b.createFromLanguage(this.getLanguageConfiguration(n),this.denseKeyProvider),this.languageIdToBracketTokens.set(n,i)),i}}e.LanguageAgnosticBracketTokens=h}),define(oe[423],se([1,0,237,87,236,111,183]),function(q,e,y,v,k,D,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fixBracketsInLine=void 0;function b(h,u){const n=new D.DenseKeyProvider,i=new y.LanguageAgnosticBracketTokens(n,a=>u.getLanguageConfiguration(a)),t=new w.TextBufferTokenizer(new C([h]),i),o=(0,k.parseDocument)(t,[],void 0,!0);let s="";const d=h.getLineContent();function l(a,r){if(a.kind===2)l(a.openingBracket,r),r=(0,v.lengthAdd)(r,a.openingBracket.length),a.child&&(l(a.child,r),r=(0,v.lengthAdd)(r,a.child.length)),a.closingBracket?(l(a.closingBracket,r),r=(0,v.lengthAdd)(r,a.closingBracket.length)):s+=i.getSingleLanguageBracketTokens(a.openingBracket.languageId).findClosingTokenText(a.openingBracket.bracketIds);else if(a.kind!==3){if(a.kind===0||a.kind===1)s+=d.substring((0,v.lengthGetColumnCountIfZeroLineCount)(r),(0,v.lengthGetColumnCountIfZeroLineCount)((0,v.lengthAdd)(r,a.length)));else if(a.kind===4)for(const c of a.children)l(c,r),r=(0,v.lengthAdd)(r,c.length)}}return l(o,v.lengthZero),s}e.fixBracketsInLine=b;class C{constructor(u){this.lines=u,this.tokenization={getLineTokens:n=>this.lines[n-1]}}getLineCount(){return this.lines.length}getLineLength(u){return this.lines[u-1].getLineContent().length}}}),define(oe[424],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.guessIndentation=void 0;class y{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function v(D,w,b,C,h){h.spacesDiff=0,h.looksLikeAlignment=!1;let u;for(u=0;u<w&&u<C;u++){const l=D.charCodeAt(u),a=b.charCodeAt(u);if(l!==a)break}let n=0,i=0;for(let l=u;l<w;l++)D.charCodeAt(l)===32?n++:i++;let t=0,o=0;for(let l=u;l<C;l++)b.charCodeAt(l)===32?t++:o++;if(n>0&&i>0||t>0&&o>0)return;const s=Math.abs(i-o),d=Math.abs(n-t);if(s===0){h.spacesDiff=d,d>0&&0<=t-1&&t-1<D.length&&t<b.length&&b.charCodeAt(t)!==32&&D.charCodeAt(t-1)===32&&D.charCodeAt(D.length-1)===44&&(h.looksLikeAlignment=!0);return}if(d%s==0){h.spacesDiff=d/s;return}}function k(D,w,b){const C=Math.min(D.getLineCount(),1e4);let h=0,u=0,n="",i=0;const t=[2,4,6,8,3,5,7],o=8,s=[0,0,0,0,0,0,0,0,0],d=new y;for(let r=1;r<=C;r++){const c=D.getLineLength(r),g=D.getLineContent(r),f=c<=65536;let _=!1,p=0,m=0,S=0;for(let L=0,N=c;L<N;L++){const I=f?g.charCodeAt(L):D.getLineCharCode(r,L);if(I===9)S++;else if(I===32)m++;else{_=!0,p=L;break}}if(!_||(S>0?h++:m>1&&u++,v(n,i,g,p,d),d.looksLikeAlignment&&!(b&&w===d.spacesDiff)))continue;const E=d.spacesDiff;E<=o&&s[E]++,n=g,i=p}let l=b;h!==u&&(l=h<u);let a=w;if(l){let r=l?0:.1*C;t.forEach(c=>{const g=s[c];g>r&&(r=g,a=c)}),a===4&&s[4]>0&&s[2]>0&&s[2]>=s[4]/2&&(a=2)}return{insertSpaces:l,tabSize:a}}e.guessIndentation=k}),define(oe[425],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.intervalCompare=e.recomputeMaxEnd=e.nodeAcceptEdit=e.IntervalTree=e.SENTINEL=e.IntervalNode=e.getNodeColor=void 0;function y(x){return(x.metadata&1)>>>0}e.getNodeColor=y;function v(x,M){x.metadata=x.metadata&254|M<<0}function k(x){return(x.metadata&2)>>>1==1}function D(x,M){x.metadata=x.metadata&253|(M?1:0)<<1}function w(x){return(x.metadata&4)>>>2==1}function b(x,M){x.metadata=x.metadata&251|(M?1:0)<<2}function C(x){return(x.metadata&24)>>>3}function h(x,M){x.metadata=x.metadata&231|M<<3}function u(x){return(x.metadata&32)>>>5==1}function n(x,M){x.metadata=x.metadata&223|(M?1:0)<<5}class i{constructor(M,P,A){this.metadata=0,this.parent=this,this.left=this,this.right=this,v(this,1),this.start=P,this.end=A,this.delta=0,this.maxEnd=A,this.id=M,this.ownerId=0,this.options=null,b(this,!1),h(this,1),n(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=P,this.cachedAbsoluteEnd=A,this.range=null,D(this,!1)}reset(M,P,A,B){this.start=P,this.end=A,this.maxEnd=A,this.cachedVersionId=M,this.cachedAbsoluteStart=P,this.cachedAbsoluteEnd=A,this.range=B}setOptions(M){this.options=M;const P=this.options.className;b(this,P==="squiggly-error"||P==="squiggly-warning"||P==="squiggly-info"),h(this,this.options.stickiness),n(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(M,P,A){this.cachedVersionId!==A&&(this.range=null),this.cachedVersionId=A,this.cachedAbsoluteStart=M,this.cachedAbsoluteEnd=P}detach(){this.parent=null,this.left=null,this.right=null}}e.IntervalNode=i,e.SENTINEL=new i(null,0,0),e.SENTINEL.parent=e.SENTINEL,e.SENTINEL.left=e.SENTINEL,e.SENTINEL.right=e.SENTINEL,v(e.SENTINEL,0);class t{constructor(){this.root=e.SENTINEL,this.requestNormalizeDelta=!1}intervalSearch(M,P,A,B,K){return this.root===e.SENTINEL?[]:f(this,M,P,A,B,K)}search(M,P,A){return this.root===e.SENTINEL?[]:g(this,M,P,A)}collectNodesFromOwner(M){return r(this,M)}collectNodesPostOrder(){return c(this)}insert(M){_(this,M),this._normalizeDeltaIfNecessary()}delete(M){m(this,M),this._normalizeDeltaIfNecessary()}resolveNode(M,P){const A=M;let B=0;for(;M!==this.root;)M===M.parent.right&&(B+=M.parent.delta),M=M.parent;const K=A.start+B,T=A.end+B;A.setCachedOffsets(K,T,P)}acceptReplace(M,P,A,B){const K=l(this,M,M+P);for(let T=0,ee=K.length;T<ee;T++){const J=K[T];m(this,J)}this._normalizeDeltaIfNecessary(),a(this,M,M+P,A),this._normalizeDeltaIfNecessary();for(let T=0,ee=K.length;T<ee;T++){const J=K[T];J.start=J.cachedAbsoluteStart,J.end=J.cachedAbsoluteEnd,d(J,M,M+P,A,B),J.maxEnd=J.end,_(this,J)}this._normalizeDeltaIfNecessary()}_normalizeDeltaIfNecessary(){!this.requestNormalizeDelta||(this.requestNormalizeDelta=!1,o(this))}}e.IntervalTree=t;function o(x){let M=x.root,P=0;for(;M!==e.SENTINEL;){if(M.left!==e.SENTINEL&&!k(M.left)){M=M.left;continue}if(M.right!==e.SENTINEL&&!k(M.right)){P+=M.delta,M=M.right;continue}M.start=P+M.start,M.end=P+M.end,M.delta=0,R(M),D(M,!0),D(M.left,!1),D(M.right,!1),M===M.parent.right&&(P-=M.parent.delta),M=M.parent}D(x.root,!1)}function s(x,M,P,A){return x<P?!0:x>P||A===1?!1:A===2?!0:M}function d(x,M,P,A,B){const K=C(x),T=K===0||K===2,ee=K===1||K===2,J=P-M,$=A,j=Math.min(J,$),G=x.start;let te=!1;const Z=x.end;let X=!1;M<=G&&Z<=P&&u(x)&&(x.start=M,te=!0,x.end=M,X=!0);{const H=B?1:J>0?2:0;!te&&s(G,T,M,H)&&(te=!0),!X&&s(Z,ee,M,H)&&(X=!0)}if(j>0&&!B){const H=J>$?2:0;!te&&s(G,T,M+j,H)&&(te=!0),!X&&s(Z,ee,M+j,H)&&(X=!0)}{const H=B?1:0;!te&&s(G,T,P,H)&&(x.start=M+$,te=!0),!X&&s(Z,ee,P,H)&&(x.end=M+$,X=!0)}const ie=$-J;te||(x.start=Math.max(0,G+ie)),X||(x.end=Math.max(0,Z+ie)),x.start>x.end&&(x.end=x.start)}e.nodeAcceptEdit=d;function l(x,M,P){let A=x.root,B=0,K=0,T=0,ee=0;const J=[];let $=0;for(;A!==e.SENTINEL;){if(k(A)){D(A.left,!1),D(A.right,!1),A===A.parent.right&&(B-=A.parent.delta),A=A.parent;continue}if(!k(A.left)){if(K=B+A.maxEnd,K<M){D(A,!0);continue}if(A.left!==e.SENTINEL){A=A.left;continue}}if(T=B+A.start,T>P){D(A,!0);continue}if(ee=B+A.end,ee>=M&&(A.setCachedOffsets(T,ee,0),J[$++]=A),D(A,!0),A.right!==e.SENTINEL&&!k(A.right)){B+=A.delta,A=A.right;continue}}return D(x.root,!1),J}function a(x,M,P,A){let B=x.root,K=0,T=0,ee=0;const J=A-(P-M);for(;B!==e.SENTINEL;){if(k(B)){D(B.left,!1),D(B.right,!1),B===B.parent.right&&(K-=B.parent.delta),R(B),B=B.parent;continue}if(!k(B.left)){if(T=K+B.maxEnd,T<M){D(B,!0);continue}if(B.left!==e.SENTINEL){B=B.left;continue}}if(ee=K+B.start,ee>P){B.start+=J,B.end+=J,B.delta+=J,(B.delta<-1073741824||B.delta>1073741824)&&(x.requestNormalizeDelta=!0),D(B,!0);continue}if(D(B,!0),B.right!==e.SENTINEL&&!k(B.right)){K+=B.delta,B=B.right;continue}}D(x.root,!1)}function r(x,M){let P=x.root;const A=[];let B=0;for(;P!==e.SENTINEL;){if(k(P)){D(P.left,!1),D(P.right,!1),P=P.parent;continue}if(P.left!==e.SENTINEL&&!k(P.left)){P=P.left;continue}if(P.ownerId===M&&(A[B++]=P),D(P,!0),P.right!==e.SENTINEL&&!k(P.right)){P=P.right;continue}}return D(x.root,!1),A}function c(x){let M=x.root;const P=[];let A=0;for(;M!==e.SENTINEL;){if(k(M)){D(M.left,!1),D(M.right,!1),M=M.parent;continue}if(M.left!==e.SENTINEL&&!k(M.left)){M=M.left;continue}if(M.right!==e.SENTINEL&&!k(M.right)){M=M.right;continue}P[A++]=M,D(M,!0)}return D(x.root,!1),P}function g(x,M,P,A){let B=x.root,K=0,T=0,ee=0;const J=[];let $=0;for(;B!==e.SENTINEL;){if(k(B)){D(B.left,!1),D(B.right,!1),B===B.parent.right&&(K-=B.parent.delta),B=B.parent;continue}if(B.left!==e.SENTINEL&&!k(B.left)){B=B.left;continue}T=K+B.start,ee=K+B.end,B.setCachedOffsets(T,ee,A);let j=!0;if(M&&B.ownerId&&B.ownerId!==M&&(j=!1),P&&w(B)&&(j=!1),j&&(J[$++]=B),D(B,!0),B.right!==e.SENTINEL&&!k(B.right)){K+=B.delta,B=B.right;continue}}return D(x.root,!1),J}function f(x,M,P,A,B,K){let T=x.root,ee=0,J=0,$=0,j=0;const G=[];let te=0;for(;T!==e.SENTINEL;){if(k(T)){D(T.left,!1),D(T.right,!1),T===T.parent.right&&(ee-=T.parent.delta),T=T.parent;continue}if(!k(T.left)){if(J=ee+T.maxEnd,J<M){D(T,!0);continue}if(T.left!==e.SENTINEL){T=T.left;continue}}if($=ee+T.start,$>P){D(T,!0);continue}if(j=ee+T.end,j>=M){T.setCachedOffsets($,j,K);let Z=!0;A&&T.ownerId&&T.ownerId!==A&&(Z=!1),B&&w(T)&&(Z=!1),Z&&(G[te++]=T)}if(D(T,!0),T.right!==e.SENTINEL&&!k(T.right)){ee+=T.delta,T=T.right;continue}}return D(x.root,!1),G}function _(x,M){if(x.root===e.SENTINEL)return M.parent=e.SENTINEL,M.left=e.SENTINEL,M.right=e.SENTINEL,v(M,0),x.root=M,x.root;p(x,M),F(M.parent);let P=M;for(;P!==x.root&&y(P.parent)===1;)if(P.parent===P.parent.parent.left){const A=P.parent.parent.right;y(A)===1?(v(P.parent,0),v(A,0),v(P.parent.parent,1),P=P.parent.parent):(P===P.parent.right&&(P=P.parent,L(x,P)),v(P.parent,0),v(P.parent.parent,1),N(x,P.parent.parent))}else{const A=P.parent.parent.left;y(A)===1?(v(P.parent,0),v(A,0),v(P.parent.parent,1),P=P.parent.parent):(P===P.parent.left&&(P=P.parent,N(x,P)),v(P.parent,0),v(P.parent.parent,1),L(x,P.parent.parent))}return v(x.root,0),M}function p(x,M){let P=0,A=x.root;const B=M.start,K=M.end;for(;;)if(O(B,K,A.start+P,A.end+P)<0)if(A.left===e.SENTINEL){M.start-=P,M.end-=P,M.maxEnd-=P,A.left=M;break}else A=A.left;else if(A.right===e.SENTINEL){M.start-=P+A.delta,M.end-=P+A.delta,M.maxEnd-=P+A.delta,A.right=M;break}else P+=A.delta,A=A.right;M.parent=A,M.left=e.SENTINEL,M.right=e.SENTINEL,v(M,1)}function m(x,M){let P,A;if(M.left===e.SENTINEL?(P=M.right,A=M,P.delta+=M.delta,(P.delta<-1073741824||P.delta>1073741824)&&(x.requestNormalizeDelta=!0),P.start+=M.delta,P.end+=M.delta):M.right===e.SENTINEL?(P=M.left,A=M):(A=S(M.right),P=A.right,P.start+=A.delta,P.end+=A.delta,P.delta+=A.delta,(P.delta<-1073741824||P.delta>1073741824)&&(x.requestNormalizeDelta=!0),A.start+=M.delta,A.end+=M.delta,A.delta=M.delta,(A.delta<-1073741824||A.delta>1073741824)&&(x.requestNormalizeDelta=!0)),A===x.root){x.root=P,v(P,0),M.detach(),E(),R(P),x.root.parent=e.SENTINEL;return}const B=y(A)===1;if(A===A.parent.left?A.parent.left=P:A.parent.right=P,A===M?P.parent=A.parent:(A.parent===M?P.parent=A:P.parent=A.parent,A.left=M.left,A.right=M.right,A.parent=M.parent,v(A,y(M)),M===x.root?x.root=A:M===M.parent.left?M.parent.left=A:M.parent.right=A,A.left!==e.SENTINEL&&(A.left.parent=A),A.right!==e.SENTINEL&&(A.right.parent=A)),M.detach(),B){F(P.parent),A!==M&&(F(A),F(A.parent)),E();return}F(P),F(P.parent),A!==M&&(F(A),F(A.parent));let K;for(;P!==x.root&&y(P)===0;)P===P.parent.left?(K=P.parent.right,y(K)===1&&(v(K,0),v(P.parent,1),L(x,P.parent),K=P.parent.right),y(K.left)===0&&y(K.right)===0?(v(K,1),P=P.parent):(y(K.right)===0&&(v(K.left,0),v(K,1),N(x,K),K=P.parent.right),v(K,y(P.parent)),v(P.parent,0),v(K.right,0),L(x,P.parent),P=x.root)):(K=P.parent.left,y(K)===1&&(v(K,0),v(P.parent,1),N(x,P.parent),K=P.parent.left),y(K.left)===0&&y(K.right)===0?(v(K,1),P=P.parent):(y(K.left)===0&&(v(K.right,0),v(K,1),L(x,K),K=P.parent.left),v(K,y(P.parent)),v(P.parent,0),v(K.left,0),N(x,P.parent),P=x.root));v(P,0),E()}function S(x){for(;x.left!==e.SENTINEL;)x=x.left;return x}function E(){e.SENTINEL.parent=e.SENTINEL,e.SENTINEL.delta=0,e.SENTINEL.start=0,e.SENTINEL.end=0}function L(x,M){const P=M.right;P.delta+=M.delta,(P.delta<-1073741824||P.delta>1073741824)&&(x.requestNormalizeDelta=!0),P.start+=M.delta,P.end+=M.delta,M.right=P.left,P.left!==e.SENTINEL&&(P.left.parent=M),P.parent=M.parent,M.parent===e.SENTINEL?x.root=P:M===M.parent.left?M.parent.left=P:M.parent.right=P,P.left=M,M.parent=P,R(M),R(P)}function N(x,M){const P=M.left;M.delta-=P.delta,(M.delta<-1073741824||M.delta>1073741824)&&(x.requestNormalizeDelta=!0),M.start-=P.delta,M.end-=P.delta,M.left=P.right,P.right!==e.SENTINEL&&(P.right.parent=M),P.parent=M.parent,M.parent===e.SENTINEL?x.root=P:M===M.parent.right?M.parent.right=P:M.parent.left=P,P.right=M,M.parent=P,R(M),R(P)}function I(x){let M=x.end;if(x.left!==e.SENTINEL){const P=x.left.maxEnd;P>M&&(M=P)}if(x.right!==e.SENTINEL){const P=x.right.maxEnd+x.delta;P>M&&(M=P)}return M}function R(x){x.maxEnd=I(x)}e.recomputeMaxEnd=R;function F(x){for(;x!==e.SENTINEL;){const M=I(x);if(x.maxEnd===M)return;x.maxEnd=M,x=x.parent}}function O(x,M,P,A){return x===P?M-A:x-P}e.intervalCompare=O}),define(oe[426],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.recomputeTreeMetadata=e.updateTreeMetadata=e.fixInsert=e.rbDelete=e.rightRotate=e.leftRotate=e.resetSentinel=e.calculateLF=e.calculateSize=e.righttest=e.leftest=e.SENTINEL=e.TreeNode=void 0;class y{constructor(s,d){this.piece=s,this.color=d,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==e.SENTINEL)return v(this.right);let s=this;for(;s.parent!==e.SENTINEL&&s.parent.left!==s;)s=s.parent;return s.parent===e.SENTINEL?e.SENTINEL:s.parent}prev(){if(this.left!==e.SENTINEL)return k(this.left);let s=this;for(;s.parent!==e.SENTINEL&&s.parent.right!==s;)s=s.parent;return s.parent===e.SENTINEL?e.SENTINEL:s.parent}detach(){this.parent=null,this.left=null,this.right=null}}e.TreeNode=y,e.SENTINEL=new y(null,0),e.SENTINEL.parent=e.SENTINEL,e.SENTINEL.left=e.SENTINEL,e.SENTINEL.right=e.SENTINEL,e.SENTINEL.color=0;function v(o){for(;o.left!==e.SENTINEL;)o=o.left;return o}e.leftest=v;function k(o){for(;o.right!==e.SENTINEL;)o=o.right;return o}e.righttest=k;function D(o){return o===e.SENTINEL?0:o.size_left+o.piece.length+D(o.right)}e.calculateSize=D;function w(o){return o===e.SENTINEL?0:o.lf_left+o.piece.lineFeedCnt+w(o.right)}e.calculateLF=w;function b(){e.SENTINEL.parent=e.SENTINEL}e.resetSentinel=b;function C(o,s){const d=s.right;d.size_left+=s.size_left+(s.piece?s.piece.length:0),d.lf_left+=s.lf_left+(s.piece?s.piece.lineFeedCnt:0),s.right=d.left,d.left!==e.SENTINEL&&(d.left.parent=s),d.parent=s.parent,s.parent===e.SENTINEL?o.root=d:s.parent.left===s?s.parent.left=d:s.parent.right=d,d.left=s,s.parent=d}e.leftRotate=C;function h(o,s){const d=s.left;s.left=d.right,d.right!==e.SENTINEL&&(d.right.parent=s),d.parent=s.parent,s.size_left-=d.size_left+(d.piece?d.piece.length:0),s.lf_left-=d.lf_left+(d.piece?d.piece.lineFeedCnt:0),s.parent===e.SENTINEL?o.root=d:s===s.parent.right?s.parent.right=d:s.parent.left=d,d.right=s,s.parent=d}e.rightRotate=h;function u(o,s){let d,l;if(s.left===e.SENTINEL?(l=s,d=l.right):s.right===e.SENTINEL?(l=s,d=l.left):(l=v(s.right),d=l.right),l===o.root){o.root=d,d.color=0,s.detach(),b(),o.root.parent=e.SENTINEL;return}const a=l.color===1;if(l===l.parent.left?l.parent.left=d:l.parent.right=d,l===s?(d.parent=l.parent,t(o,d)):(l.parent===s?d.parent=l:d.parent=l.parent,t(o,d),l.left=s.left,l.right=s.right,l.parent=s.parent,l.color=s.color,s===o.root?o.root=l:s===s.parent.left?s.parent.left=l:s.parent.right=l,l.left!==e.SENTINEL&&(l.left.parent=l),l.right!==e.SENTINEL&&(l.right.parent=l),l.size_left=s.size_left,l.lf_left=s.lf_left,t(o,l)),s.detach(),d.parent.left===d){const c=D(d),g=w(d);if(c!==d.parent.size_left||g!==d.parent.lf_left){const f=c-d.parent.size_left,_=g-d.parent.lf_left;d.parent.size_left=c,d.parent.lf_left=g,i(o,d.parent,f,_)}}if(t(o,d.parent),a){b();return}let r;for(;d!==o.root&&d.color===0;)d===d.parent.left?(r=d.parent.right,r.color===1&&(r.color=0,d.parent.color=1,C(o,d.parent),r=d.parent.right),r.left.color===0&&r.right.color===0?(r.color=1,d=d.parent):(r.right.color===0&&(r.left.color=0,r.color=1,h(o,r),r=d.parent.right),r.color=d.parent.color,d.parent.color=0,r.right.color=0,C(o,d.parent),d=o.root)):(r=d.parent.left,r.color===1&&(r.color=0,d.parent.color=1,h(o,d.parent),r=d.parent.left),r.left.color===0&&r.right.color===0?(r.color=1,d=d.parent):(r.left.color===0&&(r.right.color=0,r.color=1,C(o,r),r=d.parent.left),r.color=d.parent.color,d.parent.color=0,r.left.color=0,h(o,d.parent),d=o.root));d.color=0,b()}e.rbDelete=u;function n(o,s){for(t(o,s);s!==o.root&&s.parent.color===1;)if(s.parent===s.parent.parent.left){const d=s.parent.parent.right;d.color===1?(s.parent.color=0,d.color=0,s.parent.parent.color=1,s=s.parent.parent):(s===s.parent.right&&(s=s.parent,C(o,s)),s.parent.color=0,s.parent.parent.color=1,h(o,s.parent.parent))}else{const d=s.parent.parent.left;d.color===1?(s.parent.color=0,d.color=0,s.parent.parent.color=1,s=s.parent.parent):(s===s.parent.left&&(s=s.parent,h(o,s)),s.parent.color=0,s.parent.parent.color=1,C(o,s.parent.parent))}o.root.color=0}e.fixInsert=n;function i(o,s,d,l){for(;s!==o.root&&s!==e.SENTINEL;)s.parent.left===s&&(s.parent.size_left+=d,s.parent.lf_left+=l),s=s.parent}e.updateTreeMetadata=i;function t(o,s){let d=0,l=0;if(s!==o.root){for(;s!==o.root&&s===s.parent.right;)s=s.parent;if(s!==o.root)for(s=s.parent,d=D(s.left)-s.size_left,l=w(s.left)-s.lf_left,s.size_left+=d,s.lf_left+=l;s!==o.root&&(d!==0||l!==0);)s.parent.left===s&&(s.parent.size_left+=d,s.parent.lf_left+=l),s=s.parent}}e.recomputeTreeMetadata=t}),define(oe[238],se([1,0,18,148]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PrefixSumIndexOfResult=e.ConstantTimePrefixSumComputer=e.PrefixSumComputer=void 0;class k{constructor(C){this.values=C,this.prefixSum=new Uint32Array(C.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(C,h){C=(0,v.toUint32)(C);const u=this.values,n=this.prefixSum,i=h.length;return i===0?!1:(this.values=new Uint32Array(u.length+i),this.values.set(u.subarray(0,C),0),this.values.set(u.subarray(C),C+i),this.values.set(h,C),C-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=C-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(n.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(C,h){return C=(0,v.toUint32)(C),h=(0,v.toUint32)(h),this.values[C]===h?!1:(this.values[C]=h,C-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=C-1),!0)}removeValues(C,h){C=(0,v.toUint32)(C),h=(0,v.toUint32)(h);const u=this.values,n=this.prefixSum;if(C>=u.length)return!1;const i=u.length-C;return h>=i&&(h=i),h===0?!1:(this.values=new Uint32Array(u.length-h),this.values.set(u.subarray(0,C),0),this.values.set(u.subarray(C+h),C),this.prefixSum=new Uint32Array(this.values.length),C-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=C-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(n.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(C){return C<0?0:(C=(0,v.toUint32)(C),this._getPrefixSum(C))}_getPrefixSum(C){if(C<=this.prefixSumValidIndex[0])return this.prefixSum[C];let h=this.prefixSumValidIndex[0]+1;h===0&&(this.prefixSum[0]=this.values[0],h++),C>=this.values.length&&(C=this.values.length-1);for(let u=h;u<=C;u++)this.prefixSum[u]=this.prefixSum[u-1]+this.values[u];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],C),this.prefixSum[C]}getIndexOf(C){C=Math.floor(C),this.getTotalSum();let h=0,u=this.values.length-1,n=0,i=0,t=0;for(;h<=u;)if(n=h+(u-h)/2|0,i=this.prefixSum[n],t=i-this.values[n],C<t)u=n-1;else if(C>=i)h=n+1;else break;return new w(n,C-t)}}e.PrefixSumComputer=k;class D{constructor(C){this._values=C,this._isValid=!1,this._validEndIndex=-1,this._prefixSum=[],this._indexBySum=[]}getTotalSum(){return this._ensureValid(),this._indexBySum.length}getPrefixSum(C){return this._ensureValid(),C===0?0:this._prefixSum[C-1]}getIndexOf(C){this._ensureValid();const h=this._indexBySum[C],u=h>0?this._prefixSum[h-1]:0;return new w(h,C-u)}removeValues(C,h){this._values.splice(C,h),this._invalidate(C)}insertValues(C,h){this._values=(0,y.arrayInsert)(this._values,C,h),this._invalidate(C)}_invalidate(C){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,C-1)}_ensureValid(){if(!this._isValid){for(let C=this._validEndIndex+1,h=this._values.length;C<h;C++){const u=this._values[C],n=C>0?this._prefixSum[C-1]:0;this._prefixSum[C]=n+u;for(let i=0;i<u;i++)this._indexBySum[n+i]=C}this._prefixSum.length=this._values.length,this._indexBySum.length=this._prefixSum[this._prefixSum.length-1],this._isValid=!0,this._validEndIndex=this._values.length-1}}setValue(C,h){this._values[C]!==h&&(this._values[C]=h,this._invalidate(C))}}e.ConstantTimePrefixSumComputer=D;class w{constructor(C,h){this.index=C,this.remainder=h,this._prefixSumIndexOfResultBrand=void 0,this.index=C,this.remainder=h}}e.PrefixSumIndexOfResult=w}),define(oe[427],se([1,0,8,11,238]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MirrorTextModel=void 0;class D{constructor(b,C,h,u){this._uri=b,this._lines=C,this._eol=h,this._versionId=u,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(b){b.eol&&b.eol!==this._eol&&(this._eol=b.eol,this._lineStarts=null);const C=b.changes;for(const h of C)this._acceptDeleteRange(h.range),this._acceptInsertText(new v.Position(h.range.startLineNumber,h.range.startColumn),h.text);this._versionId=b.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const b=this._eol.length,C=this._lines.length,h=new Uint32Array(C);for(let u=0;u<C;u++)h[u]=this._lines[u].length+b;this._lineStarts=new k.PrefixSumComputer(h)}}_setLineText(b,C){this._lines[b]=C,this._lineStarts&&this._lineStarts.setValue(b,this._lines[b].length+this._eol.length)}_acceptDeleteRange(b){if(b.startLineNumber===b.endLineNumber){if(b.startColumn===b.endColumn)return;this._setLineText(b.startLineNumber-1,this._lines[b.startLineNumber-1].substring(0,b.startColumn-1)+this._lines[b.startLineNumber-1].substring(b.endColumn-1));return}this._setLineText(b.startLineNumber-1,this._lines[b.startLineNumber-1].substring(0,b.startColumn-1)+this._lines[b.endLineNumber-1].substring(b.endColumn-1)),this._lines.splice(b.startLineNumber,b.endLineNumber-b.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(b.startLineNumber,b.endLineNumber-b.startLineNumber)}_acceptInsertText(b,C){if(C.length===0)return;const h=(0,y.splitLines)(C);if(h.length===1){this._setLineText(b.lineNumber-1,this._lines[b.lineNumber-1].substring(0,b.column-1)+h[0]+this._lines[b.lineNumber-1].substring(b.column-1));return}h[h.length-1]+=this._lines[b.lineNumber-1].substring(b.column-1),this._setLineText(b.lineNumber-1,this._lines[b.lineNumber-1].substring(0,b.column-1)+h[0]);const u=new Uint32Array(h.length-1);for(let n=1;n<h.length;n++)this._lines.splice(b.lineNumber+n-1,0,h[n]),u[n-1]=h[n].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(b.lineNumber,u)}}e.MirrorTextModel=D}),define(oe[239],se([1,0,2]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextModelPart=void 0;class v extends y.Disposable{constructor(){super(...arguments),this._isDisposed=!1}dispose(){super.dispose(),this._isDisposed=!0}assertNotDisposed(){if(this._isDisposed)throw new Error("TextModelPart is disposed!")}}e.TextModelPart=v}),define(oe[158],se([1,0,8,127,11,3,46]),function(q,e,y,v,k,D,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Searcher=e.isValidMatch=e.TextModelSearch=e.createFindMatch=e.isMultilineRegexSource=e.SearchParams=void 0;const b=999;class C{constructor(a,r,c,g){this.searchString=a,this.isRegex=r,this.matchCase=c,this.wordSeparators=g}parseSearchRequest(){if(this.searchString==="")return null;let a;this.isRegex?a=h(this.searchString):a=this.searchString.indexOf(` `)>=0;let r=null;try{r=y.createRegExp(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:a,global:!0,unicode:!0})}catch{return null}if(!r)return null;let c=!this.isRegex&&!a;return c&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(c=this.matchCase),new w.SearchData(r,this.wordSeparators?(0,v.getMapForWordSeparators)(this.wordSeparators):null,c?this.searchString:null)}}e.SearchParams=C;function h(l){if(!l||l.length===0)return!1;for(let a=0,r=l.length;a<r;a++){const c=l.charCodeAt(a);if(c===10)return!0;if(c===92){if(a++,a>=r)break;const g=l.charCodeAt(a);if(g===110||g===114||g===87)return!0}}return!1}e.isMultilineRegexSource=h;function u(l,a,r){if(!r)return new w.FindMatch(l,null);const c=[];for(let g=0,f=a.length;g<f;g++)c[g]=a[g];return new w.FindMatch(l,c)}e.createFindMatch=u;class n{constructor(a){const r=[];let c=0;for(let g=0,f=a.length;g<f;g++)a.charCodeAt(g)===10&&(r[c++]=g);this._lineFeedsOffsets=r}findLineFeedCountBeforeOffset(a){const r=this._lineFeedsOffsets;let c=0,g=r.length-1;if(g===-1||a<=r[0])return 0;for(;c<g;){const f=c+((g-c)/2>>0);r[f]>=a?g=f-1:r[f+1]>=a?(c=f,g=f):c=f+1}return c+1}}class i{static findMatches(a,r,c,g,f){const _=r.parseSearchRequest();return _?_.regex.multiline?this._doFindMatchesMultiline(a,c,new d(_.wordSeparators,_.regex),g,f):this._doFindMatchesLineByLine(a,c,_,g,f):[]}static _getMultilineMatchRange(a,r,c,g,f,_){let p,m=0;g?(m=g.findLineFeedCountBeforeOffset(f),p=r+f+m):p=r+f;let S;if(g){const N=g.findLineFeedCountBeforeOffset(f+_.length)-m;S=p+_.length+N}else S=p+_.length;const E=a.getPositionAt(p),L=a.getPositionAt(S);return new D.Range(E.lineNumber,E.column,L.lineNumber,L.column)}static _doFindMatchesMultiline(a,r,c,g,f){const _=a.getOffsetAt(r.getStartPosition()),p=a.getValueInRange(r,1),m=a.getEOL()===`\r `?new n(p):null,S=[];let E=0,L;for(c.reset(0);L=c.next(p);)if(S[E++]=u(this._getMultilineMatchRange(a,_,p,m,L.index,L[0]),L,g),E>=f)return S;return S}static _doFindMatchesLineByLine(a,r,c,g,f){const _=[];let p=0;if(r.startLineNumber===r.endLineNumber){const S=a.getLineContent(r.startLineNumber).substring(r.startColumn-1,r.endColumn-1);return p=this._findMatchesInLine(c,S,r.startLineNumber,r.startColumn-1,p,_,g,f),_}const m=a.getLineContent(r.startLineNumber).substring(r.startColumn-1);p=this._findMatchesInLine(c,m,r.startLineNumber,r.startColumn-1,p,_,g,f);for(let S=r.startLineNumber+1;S<r.endLineNumber&&p<f;S++)p=this._findMatchesInLine(c,a.getLineContent(S),S,0,p,_,g,f);if(p<f){const S=a.getLineContent(r.endLineNumber).substring(0,r.endColumn-1);p=this._findMatchesInLine(c,S,r.endLineNumber,0,p,_,g,f)}return _}static _findMatchesInLine(a,r,c,g,f,_,p,m){const S=a.wordSeparators;if(!p&&a.simpleSearch){const N=a.simpleSearch,I=N.length,R=r.length;let F=-I;for(;(F=r.indexOf(N,F+I))!==-1;)if((!S||s(S,r,R,F,I))&&(_[f++]=new w.FindMatch(new D.Range(c,F+1+g,c,F+1+I+g),null),f>=m))return f;return f}const E=new d(a.wordSeparators,a.regex);let L;E.reset(0);do if(L=E.next(r),L&&(_[f++]=u(new D.Range(c,L.index+1+g,c,L.index+1+L[0].length+g),L,p),f>=m))return f;while(L);return f}static findNextMatch(a,r,c,g){const f=r.parseSearchRequest();if(!f)return null;const _=new d(f.wordSeparators,f.regex);return f.regex.multiline?this._doFindNextMatchMultiline(a,c,_,g):this._doFindNextMatchLineByLine(a,c,_,g)}static _doFindNextMatchMultiline(a,r,c,g){const f=new k.Position(r.lineNumber,1),_=a.getOffsetAt(f),p=a.getLineCount(),m=a.getValueInRange(new D.Range(f.lineNumber,f.column,p,a.getLineMaxColumn(p)),1),S=a.getEOL()===`\r `?new n(m):null;c.reset(r.column-1);const E=c.next(m);return E?u(this._getMultilineMatchRange(a,_,m,S,E.index,E[0]),E,g):r.lineNumber!==1||r.column!==1?this._doFindNextMatchMultiline(a,new k.Position(1,1),c,g):null}static _doFindNextMatchLineByLine(a,r,c,g){const f=a.getLineCount(),_=r.lineNumber,p=a.getLineContent(_),m=this._findFirstMatchInLine(c,p,_,r.column,g);if(m)return m;for(let S=1;S<=f;S++){const E=(_+S-1)%f,L=a.getLineContent(E+1),N=this._findFirstMatchInLine(c,L,E+1,1,g);if(N)return N}return null}static _findFirstMatchInLine(a,r,c,g,f){a.reset(g-1);const _=a.next(r);return _?u(new D.Range(c,_.index+1,c,_.index+1+_[0].length),_,f):null}static findPreviousMatch(a,r,c,g){const f=r.parseSearchRequest();if(!f)return null;const _=new d(f.wordSeparators,f.regex);return f.regex.multiline?this._doFindPreviousMatchMultiline(a,c,_,g):this._doFindPreviousMatchLineByLine(a,c,_,g)}static _doFindPreviousMatchMultiline(a,r,c,g){const f=this._doFindMatchesMultiline(a,new D.Range(1,1,r.lineNumber,r.column),c,g,10*b);if(f.length>0)return f[f.length-1];const _=a.getLineCount();return r.lineNumber!==_||r.column!==a.getLineMaxColumn(_)?this._doFindPreviousMatchMultiline(a,new k.Position(_,a.getLineMaxColumn(_)),c,g):null}static _doFindPreviousMatchLineByLine(a,r,c,g){const f=a.getLineCount(),_=r.lineNumber,p=a.getLineContent(_).substring(0,r.column-1),m=this._findLastMatchInLine(c,p,_,g);if(m)return m;for(let S=1;S<=f;S++){const E=(f+_-S-1)%f,L=a.getLineContent(E+1),N=this._findLastMatchInLine(c,L,E+1,g);if(N)return N}return null}static _findLastMatchInLine(a,r,c,g){let f=null,_;for(a.reset(0);_=a.next(r);)f=u(new D.Range(c,_.index+1,c,_.index+1+_[0].length),_,g);return f}}e.TextModelSearch=i;function t(l,a,r,c,g){if(c===0)return!0;const f=a.charCodeAt(c-1);if(l.get(f)!==0||f===13||f===10)return!0;if(g>0){const _=a.charCodeAt(c);if(l.get(_)!==0)return!0}return!1}function o(l,a,r,c,g){if(c+g===r)return!0;const f=a.charCodeAt(c+g);if(l.get(f)!==0||f===13||f===10)return!0;if(g>0){const _=a.charCodeAt(c+g-1);if(l.get(_)!==0)return!0}return!1}function s(l,a,r,c,g){return t(l,a,r,c,g)&&o(l,a,r,c,g)}e.isValidMatch=s;class d{constructor(a,r){this._wordSeparators=a,this._searchRegex=r,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(a){this._searchRegex.lastIndex=a,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(a){const r=a.length;let c;do{if(this._prevMatchStartIndex+this._prevMatchLength===r||(c=this._searchRegex.exec(a),!c))return null;const g=c.index,f=c[0].length;if(g===this._prevMatchStartIndex&&f===this._prevMatchLength){if(f===0){y.getNextCodePoint(a,r,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=g,this._prevMatchLength=f,!this._wordSeparators||s(this._wordSeparators,a,r,g,f))return c}while(c);return null}}e.Searcher=d}),define(oe[240],se([1,0,11,3,46,426,158]),function(q,e,y,v,k,D,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PieceTreeBase=e.StringBuffer=e.Piece=e.createLineStarts=e.createLineStartsFast=e.LineStarts=e.createUintArray=e.AverageBufferSize=void 0,e.AverageBufferSize=65535;function b(d){let l;return d[d.length-1]<65536?l=new Uint16Array(d.length):l=new Uint32Array(d.length),l.set(d,0),l}e.createUintArray=b;class C{constructor(l,a,r,c,g){this.lineStarts=l,this.cr=a,this.lf=r,this.crlf=c,this.isBasicASCII=g}}e.LineStarts=C;function h(d,l=!0){const a=[0];let r=1;for(let c=0,g=d.length;c<g;c++){const f=d.charCodeAt(c);f===13?c+1<g&&d.charCodeAt(c+1)===10?(a[r++]=c+2,c++):a[r++]=c+1:f===10&&(a[r++]=c+1)}return l?b(a):a}e.createLineStartsFast=h;function u(d,l){d.length=0,d[0]=0;let a=1,r=0,c=0,g=0,f=!0;for(let p=0,m=l.length;p<m;p++){const S=l.charCodeAt(p);S===13?p+1<m&&l.charCodeAt(p+1)===10?(g++,d[a++]=p+2,p++):(r++,d[a++]=p+1):S===10?(c++,d[a++]=p+1):f&&S!==9&&(S<32||S>126)&&(f=!1)}const _=new C(b(d),r,c,g,f);return d.length=0,_}e.createLineStarts=u;class n{constructor(l,a,r,c,g){this.bufferIndex=l,this.start=a,this.end=r,this.lineFeedCnt=c,this.length=g}}e.Piece=n;class i{constructor(l,a){this.buffer=l,this.lineStarts=a}}e.StringBuffer=i;class t{constructor(l,a){this._pieces=[],this._tree=l,this._BOM=a,this._index=0,l.root!==D.SENTINEL&&l.iterate(l.root,r=>(r!==D.SENTINEL&&this._pieces.push(r.piece),!0))}read(){return this._pieces.length===0?this._index===0?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:this._index===0?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class o{constructor(l){this._limit=l,this._cache=[]}get(l){for(let a=this._cache.length-1;a>=0;a--){const r=this._cache[a];if(r.nodeStartOffset<=l&&r.nodeStartOffset+r.node.piece.length>=l)return r}return null}get2(l){for(let a=this._cache.length-1;a>=0;a--){const r=this._cache[a];if(r.nodeStartLineNumber&&r.nodeStartLineNumber<l&&r.nodeStartLineNumber+r.node.piece.lineFeedCnt>=l)return r}return null}set(l){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(l)}validate(l){let a=!1;const r=this._cache;for(let c=0;c<r.length;c++){const g=r[c];if(g.node.parent===null||g.nodeStartOffset>=l){r[c]=null,a=!0;continue}}if(a){const c=[];for(const g of r)g!==null&&c.push(g);this._cache=c}}}class s{constructor(l,a,r){this.create(l,a,r)}create(l,a,r){this._buffers=[new i("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=D.SENTINEL,this._lineCnt=1,this._length=0,this._EOL=a,this._EOLLength=a.length,this._EOLNormalized=r;let c=null;for(let g=0,f=l.length;g<f;g++)if(l[g].buffer.length>0){l[g].lineStarts||(l[g].lineStarts=h(l[g].buffer));const _=new n(g+1,{line:0,column:0},{line:l[g].lineStarts.length-1,column:l[g].buffer.length-l[g].lineStarts[l[g].lineStarts.length-1]},l[g].lineStarts.length-1,l[g].buffer.length);this._buffers.push(l[g]),c=this.rbInsertRight(c,_)}this._searchCache=new o(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(l){const a=e.AverageBufferSize,r=a-Math.floor(a/3),c=r*2;let g="",f=0;const _=[];if(this.iterate(this.root,p=>{const m=this.getNodeContent(p),S=m.length;if(f<=r||f+S<c)return g+=m,f+=S,!0;const E=g.replace(/\r\n|\r|\n/g,l);return _.push(new i(E,h(E))),g=m,f=S,!0}),f>0){const p=g.replace(/\r\n|\r|\n/g,l);_.push(new i(p,h(p)))}this.create(_,l,!0)}getEOL(){return this._EOL}setEOL(l){this._EOL=l,this._EOLLength=this._EOL.length,this.normalizeEOL(l)}createSnapshot(l){return new t(this,l)}getOffsetAt(l,a){let r=0,c=this.root;for(;c!==D.SENTINEL;)if(c.left!==D.SENTINEL&&c.lf_left+1>=l)c=c.left;else{if(c.lf_left+c.piece.lineFeedCnt+1>=l)return r+=c.size_left,r+=this.getAccumulatedValue(c,l-c.lf_left-2)+a-1;l-=c.lf_left+c.piece.lineFeedCnt,r+=c.size_left+c.piece.length,c=c.right}return r}getPositionAt(l){l=Math.floor(l),l=Math.max(0,l);let a=this.root,r=0;const c=l;for(;a!==D.SENTINEL;)if(a.size_left!==0&&a.size_left>=l)a=a.left;else if(a.size_left+a.piece.length>=l){const g=this.getIndexOf(a,l-a.size_left);if(r+=a.lf_left+g.index,g.index===0){const f=this.getOffsetAt(r+1,1),_=c-f;return new y.Position(r+1,_+1)}return new y.Position(r+1,g.remainder+1)}else if(l-=a.size_left+a.piece.length,r+=a.lf_left+a.piece.lineFeedCnt,a.right===D.SENTINEL){const g=this.getOffsetAt(r+1,1),f=c-l-g;return new y.Position(r+1,f+1)}else a=a.right;return new y.Position(1,1)}getValueInRange(l,a){if(l.startLineNumber===l.endLineNumber&&l.startColumn===l.endColumn)return"";const r=this.nodeAt2(l.startLineNumber,l.startColumn),c=this.nodeAt2(l.endLineNumber,l.endColumn),g=this.getValueInRange2(r,c);return a?a!==this._EOL||!this._EOLNormalized?g.replace(/\r\n|\r|\n/g,a):a===this.getEOL()&&this._EOLNormalized?g:g.replace(/\r\n|\r|\n/g,a):g}getValueInRange2(l,a){if(l.node===a.node){const _=l.node,p=this._buffers[_.piece.bufferIndex].buffer,m=this.offsetInBuffer(_.piece.bufferIndex,_.piece.start);return p.substring(m+l.remainder,m+a.remainder)}let r=l.node;const c=this._buffers[r.piece.bufferIndex].buffer,g=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);let f=c.substring(g+l.remainder,g+r.piece.length);for(r=r.next();r!==D.SENTINEL;){const _=this._buffers[r.piece.bufferIndex].buffer,p=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);if(r===a.node){f+=_.substring(p,p+a.remainder);break}else f+=_.substr(p,r.piece.length);r=r.next()}return f}getLinesContent(){const l=[];let a=0,r="",c=!1;return this.iterate(this.root,g=>{if(g===D.SENTINEL)return!0;const f=g.piece;let _=f.length;if(_===0)return!0;const p=this._buffers[f.bufferIndex].buffer,m=this._buffers[f.bufferIndex].lineStarts,S=f.start.line,E=f.end.line;let L=m[S]+f.start.column;if(c&&(p.charCodeAt(L)===10&&(L++,_--),l[a++]=r,r="",c=!1,_===0))return!0;if(S===E)return!this._EOLNormalized&&p.charCodeAt(L+_-1)===13?(c=!0,r+=p.substr(L,_-1)):r+=p.substr(L,_),!0;r+=this._EOLNormalized?p.substring(L,Math.max(L,m[S+1]-this._EOLLength)):p.substring(L,m[S+1]).replace(/(\r\n|\r|\n)$/,""),l[a++]=r;for(let N=S+1;N<E;N++)r=this._EOLNormalized?p.substring(m[N],m[N+1]-this._EOLLength):p.substring(m[N],m[N+1]).replace(/(\r\n|\r|\n)$/,""),l[a++]=r;return!this._EOLNormalized&&p.charCodeAt(m[E]+f.end.column-1)===13?(c=!0,f.end.column===0?a--:r=p.substr(m[E],f.end.column-1)):r=p.substr(m[E],f.end.column),!0}),c&&(l[a++]=r,r=""),l[a++]=r,l}getLength(){return this._length}getLineCount(){return this._lineCnt}getLineContent(l){return this._lastVisitedLine.lineNumber===l?this._lastVisitedLine.value:(this._lastVisitedLine.lineNumber=l,l===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(l):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(l,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(l).replace(/(\r\n|\r|\n)$/,""),this._lastVisitedLine.value)}_getCharCode(l){if(l.remainder===l.node.piece.length){const a=l.node.next();if(!a)return 0;const r=this._buffers[a.piece.bufferIndex],c=this.offsetInBuffer(a.piece.bufferIndex,a.piece.start);return r.buffer.charCodeAt(c)}else{const a=this._buffers[l.node.piece.bufferIndex],r=this.offsetInBuffer(l.node.piece.bufferIndex,l.node.piece.start)+l.remainder;return a.buffer.charCodeAt(r)}}getLineCharCode(l,a){const r=this.nodeAt2(l,a+1);return this._getCharCode(r)}getLineLength(l){if(l===this.getLineCount()){const a=this.getOffsetAt(l,1);return this.getLength()-a}return this.getOffsetAt(l+1,1)-this.getOffsetAt(l,1)-this._EOLLength}findMatchesInNode(l,a,r,c,g,f,_,p,m,S,E){const L=this._buffers[l.piece.bufferIndex],N=this.offsetInBuffer(l.piece.bufferIndex,l.piece.start),I=this.offsetInBuffer(l.piece.bufferIndex,g),R=this.offsetInBuffer(l.piece.bufferIndex,f);let F;const O={line:0,column:0};let x,M;a._wordSeparators?(x=L.buffer.substring(I,R),M=P=>P+I,a.reset(0)):(x=L.buffer,M=P=>P,a.reset(I));do if(F=a.next(x),F){if(M(F.index)>=R)return S;this.positionInBuffer(l,M(F.index)-N,O);const P=this.getLineFeedCnt(l.piece.bufferIndex,g,O),A=O.line===g.line?O.column-g.column+c:O.column+1,B=A+F[0].length;if(E[S++]=(0,w.createFindMatch)(new v.Range(r+P,A,r+P,B),F,p),M(F.index)+F[0].length>=R||S>=m)return S}while(F);return S}findMatchesLineByLine(l,a,r,c){const g=[];let f=0;const _=new w.Searcher(a.wordSeparators,a.regex);let p=this.nodeAt2(l.startLineNumber,l.startColumn);if(p===null)return[];const m=this.nodeAt2(l.endLineNumber,l.endColumn);if(m===null)return[];let S=this.positionInBuffer(p.node,p.remainder);const E=this.positionInBuffer(m.node,m.remainder);if(p.node===m.node)return this.findMatchesInNode(p.node,_,l.startLineNumber,l.startColumn,S,E,a,r,c,f,g),g;let L=l.startLineNumber,N=p.node;for(;N!==m.node;){const R=this.getLineFeedCnt(N.piece.bufferIndex,S,N.piece.end);if(R>=1){const O=this._buffers[N.piece.bufferIndex].lineStarts,x=this.offsetInBuffer(N.piece.bufferIndex,N.piece.start),M=O[S.line+R],P=L===l.startLineNumber?l.startColumn:1;if(f=this.findMatchesInNode(N,_,L,P,S,this.positionInBuffer(N,M-x),a,r,c,f,g),f>=c)return g;L+=R}const F=L===l.startLineNumber?l.startColumn-1:0;if(L===l.endLineNumber){const O=this.getLineContent(L).substring(F,l.endColumn-1);return f=this._findMatchesInLine(a,_,O,l.endLineNumber,F,f,g,r,c),g}if(f=this._findMatchesInLine(a,_,this.getLineContent(L).substr(F),L,F,f,g,r,c),f>=c)return g;L++,p=this.nodeAt2(L,1),N=p.node,S=this.positionInBuffer(p.node,p.remainder)}if(L===l.endLineNumber){const R=L===l.startLineNumber?l.startColumn-1:0,F=this.getLineContent(L).substring(R,l.endColumn-1);return f=this._findMatchesInLine(a,_,F,l.endLineNumber,R,f,g,r,c),g}const I=L===l.startLineNumber?l.startColumn:1;return f=this.findMatchesInNode(m.node,_,L,I,S,E,a,r,c,f,g),g}_findMatchesInLine(l,a,r,c,g,f,_,p,m){const S=l.wordSeparators;if(!p&&l.simpleSearch){const L=l.simpleSearch,N=L.length,I=r.length;let R=-N;for(;(R=r.indexOf(L,R+N))!==-1;)if((!S||(0,w.isValidMatch)(S,r,I,R,N))&&(_[f++]=new k.FindMatch(new v.Range(c,R+1+g,c,R+1+N+g),null),f>=m))return f;return f}let E;a.reset(0);do if(E=a.next(r),E&&(_[f++]=(0,w.createFindMatch)(new v.Range(c,E.index+1+g,c,E.index+1+E[0].length+g),E,p),f>=m))return f;while(E);return f}insert(l,a,r=!1){if(this._EOLNormalized=this._EOLNormalized&&r,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==D.SENTINEL){const{node:c,remainder:g,nodeStartOffset:f}=this.nodeAt(l),_=c.piece,p=_.bufferIndex,m=this.positionInBuffer(c,g);if(c.piece.bufferIndex===0&&_.end.line===this._lastChangeBufferPos.line&&_.end.column===this._lastChangeBufferPos.column&&f+_.length===l&&a.length<e.AverageBufferSize){this.appendToNode(c,a),this.computeBufferMetadata();return}if(f===l)this.insertContentToNodeLeft(a,c),this._searchCache.validate(l);else if(f+c.piece.length>l){const S=[];let E=new n(_.bufferIndex,m,_.end,this.getLineFeedCnt(_.bufferIndex,m,_.end),this.offsetInBuffer(p,_.end)-this.offsetInBuffer(p,m));if(this.shouldCheckCRLF()&&this.endWithCR(a)&&this.nodeCharCodeAt(c,g)===10){const I={line:E.start.line+1,column:0};E=new n(E.bufferIndex,I,E.end,this.getLineFeedCnt(E.bufferIndex,I,E.end),E.length-1),a+=` `}if(this.shouldCheckCRLF()&&this.startWithLF(a))if(this.nodeCharCodeAt(c,g-1)===13){const I=this.positionInBuffer(c,g-1);this.deleteNodeTail(c,I),a="\r"+a,c.piece.length===0&&S.push(c)}else this.deleteNodeTail(c,m);else this.deleteNodeTail(c,m);const L=this.createNewPieces(a);E.length>0&&this.rbInsertRight(c,E);let N=c;for(let I=0;I<L.length;I++)N=this.rbInsertRight(N,L[I]);this.deleteNodes(S)}else this.insertContentToNodeRight(a,c)}else{const c=this.createNewPieces(a);let g=this.rbInsertLeft(null,c[0]);for(let f=1;f<c.length;f++)g=this.rbInsertRight(g,c[f])}this.computeBufferMetadata()}delete(l,a){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",a<=0||this.root===D.SENTINEL)return;const r=this.nodeAt(l),c=this.nodeAt(l+a),g=r.node,f=c.node;if(g===f){const L=this.positionInBuffer(g,r.remainder),N=this.positionInBuffer(g,c.remainder);if(r.nodeStartOffset===l){if(a===g.piece.length){const I=g.next();(0,D.rbDelete)(this,g),this.validateCRLFWithPrevNode(I),this.computeBufferMetadata();return}this.deleteNodeHead(g,N),this._searchCache.validate(l),this.validateCRLFWithPrevNode(g),this.computeBufferMetadata();return}if(r.nodeStartOffset+g.piece.length===l+a){this.deleteNodeTail(g,L),this.validateCRLFWithNextNode(g),this.computeBufferMetadata();return}this.shrinkNode(g,L,N),this.computeBufferMetadata();return}const _=[],p=this.positionInBuffer(g,r.remainder);this.deleteNodeTail(g,p),this._searchCache.validate(l),g.piece.length===0&&_.push(g);const m=this.positionInBuffer(f,c.remainder);this.deleteNodeHead(f,m),f.piece.length===0&&_.push(f);const S=g.next();for(let L=S;L!==D.SENTINEL&&L!==f;L=L.next())_.push(L);const E=g.piece.length===0?g.prev():g;this.deleteNodes(_),this.validateCRLFWithNextNode(E),this.computeBufferMetadata()}insertContentToNodeLeft(l,a){const r=[];if(this.shouldCheckCRLF()&&this.endWithCR(l)&&this.startWithLF(a)){const f=a.piece,_={line:f.start.line+1,column:0},p=new n(f.bufferIndex,_,f.end,this.getLineFeedCnt(f.bufferIndex,_,f.end),f.length-1);a.piece=p,l+=` `,(0,D.updateTreeMetadata)(this,a,-1,-1),a.piece.length===0&&r.push(a)}const c=this.createNewPieces(l);let g=this.rbInsertLeft(a,c[c.length-1]);for(let f=c.length-2;f>=0;f--)g=this.rbInsertLeft(g,c[f]);this.validateCRLFWithPrevNode(g),this.deleteNodes(r)}insertContentToNodeRight(l,a){this.adjustCarriageReturnFromNext(l,a)&&(l+=` `);const r=this.createNewPieces(l),c=this.rbInsertRight(a,r[0]);let g=c;for(let f=1;f<r.length;f++)g=this.rbInsertRight(g,r[f]);this.validateCRLFWithPrevNode(c)}positionInBuffer(l,a,r){const c=l.piece,g=l.piece.bufferIndex,f=this._buffers[g].lineStarts,_=f[c.start.line]+c.start.column+a;let p=c.start.line,m=c.end.line,S=0,E=0,L=0;for(;p<=m&&(S=p+(m-p)/2|0,L=f[S],S!==m);)if(E=f[S+1],_<L)m=S-1;else if(_>=E)p=S+1;else break;return r?(r.line=S,r.column=_-L,null):{line:S,column:_-L}}getLineFeedCnt(l,a,r){if(r.column===0)return r.line-a.line;const c=this._buffers[l].lineStarts;if(r.line===c.length-1)return r.line-a.line;const g=c[r.line+1],f=c[r.line]+r.column;if(g>f+1)return r.line-a.line;const _=f-1;return this._buffers[l].buffer.charCodeAt(_)===13?r.line-a.line+1:r.line-a.line}offsetInBuffer(l,a){return this._buffers[l].lineStarts[a.line]+a.column}deleteNodes(l){for(let a=0;a<l.length;a++)(0,D.rbDelete)(this,l[a])}createNewPieces(l){if(l.length>e.AverageBufferSize){const S=[];for(;l.length>e.AverageBufferSize;){const L=l.charCodeAt(e.AverageBufferSize-1);let N;L===13||L>=55296&&L<=56319?(N=l.substring(0,e.AverageBufferSize-1),l=l.substring(e.AverageBufferSize-1)):(N=l.substring(0,e.AverageBufferSize),l=l.substring(e.AverageBufferSize));const I=h(N);S.push(new n(this._buffers.length,{line:0,column:0},{line:I.length-1,column:N.length-I[I.length-1]},I.length-1,N.length)),this._buffers.push(new i(N,I))}const E=h(l);return S.push(new n(this._buffers.length,{line:0,column:0},{line:E.length-1,column:l.length-E[E.length-1]},E.length-1,l.length)),this._buffers.push(new i(l,E)),S}let a=this._buffers[0].buffer.length;const r=h(l,!1);let c=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===a&&a!==0&&this.startWithLF(l)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},c=this._lastChangeBufferPos;for(let S=0;S<r.length;S++)r[S]+=a+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(r.slice(1)),this._buffers[0].buffer+="_"+l,a+=1}else{if(a!==0)for(let S=0;S<r.length;S++)r[S]+=a;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(r.slice(1)),this._buffers[0].buffer+=l}const g=this._buffers[0].buffer.length,f=this._buffers[0].lineStarts.length-1,_=g-this._buffers[0].lineStarts[f],p={line:f,column:_},m=new n(0,c,p,this.getLineFeedCnt(0,c,p),g-a);return this._lastChangeBufferPos=p,[m]}getLineRawContent(l,a=0){let r=this.root,c="";const g=this._searchCache.get2(l);if(g){r=g.node;const f=this.getAccumulatedValue(r,l-g.nodeStartLineNumber-1),_=this._buffers[r.piece.bufferIndex].buffer,p=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);if(g.nodeStartLineNumber+r.piece.lineFeedCnt===l)c=_.substring(p+f,p+r.piece.length);else{const m=this.getAccumulatedValue(r,l-g.nodeStartLineNumber);return _.substring(p+f,p+m-a)}}else{let f=0;const _=l;for(;r!==D.SENTINEL;)if(r.left!==D.SENTINEL&&r.lf_left>=l-1)r=r.left;else if(r.lf_left+r.piece.lineFeedCnt>l-1){const p=this.getAccumulatedValue(r,l-r.lf_left-2),m=this.getAccumulatedValue(r,l-r.lf_left-1),S=this._buffers[r.piece.bufferIndex].buffer,E=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);return f+=r.size_left,this._searchCache.set({node:r,nodeStartOffset:f,nodeStartLineNumber:_-(l-1-r.lf_left)}),S.substring(E+p,E+m-a)}else if(r.lf_left+r.piece.lineFeedCnt===l-1){const p=this.getAccumulatedValue(r,l-r.lf_left-2),m=this._buffers[r.piece.bufferIndex].buffer,S=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);c=m.substring(S+p,S+r.piece.length);break}else l-=r.lf_left+r.piece.lineFeedCnt,f+=r.size_left+r.piece.length,r=r.right}for(r=r.next();r!==D.SENTINEL;){const f=this._buffers[r.piece.bufferIndex].buffer;if(r.piece.lineFeedCnt>0){const _=this.getAccumulatedValue(r,0),p=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);return c+=f.substring(p,p+_-a),c}else{const _=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);c+=f.substr(_,r.piece.length)}r=r.next()}return c}computeBufferMetadata(){let l=this.root,a=1,r=0;for(;l!==D.SENTINEL;)a+=l.lf_left+l.piece.lineFeedCnt,r+=l.size_left+l.piece.length,l=l.right;this._lineCnt=a,this._length=r,this._searchCache.validate(this._length)}getIndexOf(l,a){const r=l.piece,c=this.positionInBuffer(l,a),g=c.line-r.start.line;if(this.offsetInBuffer(r.bufferIndex,r.end)-this.offsetInBuffer(r.bufferIndex,r.start)===a){const f=this.getLineFeedCnt(l.piece.bufferIndex,r.start,c);if(f!==g)return{index:f,remainder:0}}return{index:g,remainder:c.column}}getAccumulatedValue(l,a){if(a<0)return 0;const r=l.piece,c=this._buffers[r.bufferIndex].lineStarts,g=r.start.line+a+1;return g>r.end.line?c[r.end.line]+r.end.column-c[r.start.line]-r.start.column:c[g]-c[r.start.line]-r.start.column}deleteNodeTail(l,a){const r=l.piece,c=r.lineFeedCnt,g=this.offsetInBuffer(r.bufferIndex,r.end),f=a,_=this.offsetInBuffer(r.bufferIndex,f),p=this.getLineFeedCnt(r.bufferIndex,r.start,f),m=p-c,S=_-g,E=r.length+S;l.piece=new n(r.bufferIndex,r.start,f,p,E),(0,D.updateTreeMetadata)(this,l,S,m)}deleteNodeHead(l,a){const r=l.piece,c=r.lineFeedCnt,g=this.offsetInBuffer(r.bufferIndex,r.start),f=a,_=this.getLineFeedCnt(r.bufferIndex,f,r.end),p=this.offsetInBuffer(r.bufferIndex,f),m=_-c,S=g-p,E=r.length+S;l.piece=new n(r.bufferIndex,f,r.end,_,E),(0,D.updateTreeMetadata)(this,l,S,m)}shrinkNode(l,a,r){const c=l.piece,g=c.start,f=c.end,_=c.length,p=c.lineFeedCnt,m=a,S=this.getLineFeedCnt(c.bufferIndex,c.start,m),E=this.offsetInBuffer(c.bufferIndex,a)-this.offsetInBuffer(c.bufferIndex,g);l.piece=new n(c.bufferIndex,c.start,m,S,E),(0,D.updateTreeMetadata)(this,l,E-_,S-p);const L=new n(c.bufferIndex,r,f,this.getLineFeedCnt(c.bufferIndex,r,f),this.offsetInBuffer(c.bufferIndex,f)-this.offsetInBuffer(c.bufferIndex,r)),N=this.rbInsertRight(l,L);this.validateCRLFWithPrevNode(N)}appendToNode(l,a){this.adjustCarriageReturnFromNext(a,l)&&(a+=` `);const r=this.shouldCheckCRLF()&&this.startWithLF(a)&&this.endWithCR(l),c=this._buffers[0].buffer.length;this._buffers[0].buffer+=a;const g=h(a,!1);for(let N=0;N<g.length;N++)g[N]+=c;if(r){const N=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:c-N}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(g.slice(1));const f=this._buffers[0].lineStarts.length-1,_=this._buffers[0].buffer.length-this._buffers[0].lineStarts[f],p={line:f,column:_},m=l.piece.length+a.length,S=l.piece.lineFeedCnt,E=this.getLineFeedCnt(0,l.piece.start,p),L=E-S;l.piece=new n(l.piece.bufferIndex,l.piece.start,p,E,m),this._lastChangeBufferPos=p,(0,D.updateTreeMetadata)(this,l,a.length,L)}nodeAt(l){let a=this.root;const r=this._searchCache.get(l);if(r)return{node:r.node,nodeStartOffset:r.nodeStartOffset,remainder:l-r.nodeStartOffset};let c=0;for(;a!==D.SENTINEL;)if(a.size_left>l)a=a.left;else if(a.size_left+a.piece.length>=l){c+=a.size_left;const g={node:a,remainder:l-a.size_left,nodeStartOffset:c};return this._searchCache.set(g),g}else l-=a.size_left+a.piece.length,c+=a.size_left+a.piece.length,a=a.right;return null}nodeAt2(l,a){let r=this.root,c=0;for(;r!==D.SENTINEL;)if(r.left!==D.SENTINEL&&r.lf_left>=l-1)r=r.left;else if(r.lf_left+r.piece.lineFeedCnt>l-1){const g=this.getAccumulatedValue(r,l-r.lf_left-2),f=this.getAccumulatedValue(r,l-r.lf_left-1);return c+=r.size_left,{node:r,remainder:Math.min(g+a-1,f),nodeStartOffset:c}}else if(r.lf_left+r.piece.lineFeedCnt===l-1){const g=this.getAccumulatedValue(r,l-r.lf_left-2);if(g+a-1<=r.piece.length)return{node:r,remainder:g+a-1,nodeStartOffset:c};a-=r.piece.length-g;break}else l-=r.lf_left+r.piece.lineFeedCnt,c+=r.size_left+r.piece.length,r=r.right;for(r=r.next();r!==D.SENTINEL;){if(r.piece.lineFeedCnt>0){const g=this.getAccumulatedValue(r,0),f=this.offsetOfNode(r);return{node:r,remainder:Math.min(a-1,g),nodeStartOffset:f}}else if(r.piece.length>=a-1){const g=this.offsetOfNode(r);return{node:r,remainder:a-1,nodeStartOffset:g}}else a-=r.piece.length;r=r.next()}return null}nodeCharCodeAt(l,a){if(l.piece.lineFeedCnt<1)return-1;const r=this._buffers[l.piece.bufferIndex],c=this.offsetInBuffer(l.piece.bufferIndex,l.piece.start)+a;return r.buffer.charCodeAt(c)}offsetOfNode(l){if(!l)return 0;let a=l.size_left;for(;l!==this.root;)l.parent.right===l&&(a+=l.parent.size_left+l.parent.piece.length),l=l.parent;return a}shouldCheckCRLF(){return!(this._EOLNormalized&&this._EOL===` `)}startWithLF(l){if(typeof l=="string")return l.charCodeAt(0)===10;if(l===D.SENTINEL||l.piece.lineFeedCnt===0)return!1;const a=l.piece,r=this._buffers[a.bufferIndex].lineStarts,c=a.start.line,g=r[c]+a.start.column;return c===r.length-1||r[c+1]>g+1?!1:this._buffers[a.bufferIndex].buffer.charCodeAt(g)===10}endWithCR(l){return typeof l=="string"?l.charCodeAt(l.length-1)===13:l===D.SENTINEL||l.piece.lineFeedCnt===0?!1:this.nodeCharCodeAt(l,l.piece.length-1)===13}validateCRLFWithPrevNode(l){if(this.shouldCheckCRLF()&&this.startWithLF(l)){const a=l.prev();this.endWithCR(a)&&this.fixCRLF(a,l)}}validateCRLFWithNextNode(l){if(this.shouldCheckCRLF()&&this.endWithCR(l)){const a=l.next();this.startWithLF(a)&&this.fixCRLF(l,a)}}fixCRLF(l,a){const r=[],c=this._buffers[l.piece.bufferIndex].lineStarts;let g;l.piece.end.column===0?g={line:l.piece.end.line-1,column:c[l.piece.end.line]-c[l.piece.end.line-1]-1}:g={line:l.piece.end.line,column:l.piece.end.column-1};const f=l.piece.length-1,_=l.piece.lineFeedCnt-1;l.piece=new n(l.piece.bufferIndex,l.piece.start,g,_,f),(0,D.updateTreeMetadata)(this,l,-1,-1),l.piece.length===0&&r.push(l);const p={line:a.piece.start.line+1,column:0},m=a.piece.length-1,S=this.getLineFeedCnt(a.piece.bufferIndex,p,a.piece.end);a.piece=new n(a.piece.bufferIndex,p,a.piece.end,S,m),(0,D.updateTreeMetadata)(this,a,-1,-1),a.piece.length===0&&r.push(a);const E=this.createNewPieces(`\r `);this.rbInsertRight(l,E[0]);for(let L=0;L<r.length;L++)(0,D.rbDelete)(this,r[L])}adjustCarriageReturnFromNext(l,a){if(this.shouldCheckCRLF()&&this.endWithCR(l)){const r=a.next();if(this.startWithLF(r)){if(l+=` `,r.piece.length===1)(0,D.rbDelete)(this,r);else{const c=r.piece,g={line:c.start.line+1,column:0},f=c.length-1,_=this.getLineFeedCnt(c.bufferIndex,g,c.end);r.piece=new n(c.bufferIndex,g,c.end,_,f),(0,D.updateTreeMetadata)(this,r,-1,-1)}return!0}}return!1}iterate(l,a){return l===D.SENTINEL?a(D.SENTINEL):this.iterate(l.left,a)&&a(l)&&this.iterate(l.right,a)}getNodeContent(l){if(l===D.SENTINEL)return"";const a=this._buffers[l.piece.bufferIndex],r=l.piece,c=this.offsetInBuffer(r.bufferIndex,r.start),g=this.offsetInBuffer(r.bufferIndex,r.end);return a.buffer.substring(c,g)}getPieceContent(l){const a=this._buffers[l.bufferIndex],r=this.offsetInBuffer(l.bufferIndex,l.start),c=this.offsetInBuffer(l.bufferIndex,l.end);return a.buffer.substring(r,c)}rbInsertRight(l,a){const r=new D.TreeNode(a,1);if(r.left=D.SENTINEL,r.right=D.SENTINEL,r.parent=D.SENTINEL,r.size_left=0,r.lf_left=0,this.root===D.SENTINEL)this.root=r,r.color=0;else if(l.right===D.SENTINEL)l.right=r,r.parent=l;else{const c=(0,D.leftest)(l.right);c.left=r,r.parent=c}return(0,D.fixInsert)(this,r),r}rbInsertLeft(l,a){const r=new D.TreeNode(a,1);if(r.left=D.SENTINEL,r.right=D.SENTINEL,r.parent=D.SENTINEL,r.size_left=0,r.lf_left=0,this.root===D.SENTINEL)this.root=r,r.color=0;else if(l.left===D.SENTINEL)l.left=r,r.parent=l;else{const c=(0,D.righttest)(l.left);c.right=r,r.parent=c}return(0,D.fixInsert)(this,r),r}}e.PieceTreeBase=s}),define(oe[184],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.computeIndentLevel=void 0;function y(v,k){let D=0,w=0;const b=v.length;for(;w<b;){const C=v.charCodeAt(w);if(C===32)D++;else if(C===9)D=D-D%k+k;else break;w++}return w===b?-1:D}e.computeIndentLevel=y}),define(oe[241],se([1,0,19,11,46]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OutputPosition=e.InjectedText=e.ModelLineProjectionData=void 0;class D{constructor(n,i,t,o,s){this.injectionOffsets=n,this.injectionOptions=i,this.breakOffsets=t,this.breakOffsetsVisibleColumn=o,this.wrappedTextIndentLength=s}getOutputLineCount(){return this.breakOffsets.length}getMinOutputOffset(n){return n>0?this.wrappedTextIndentLength:0}getLineLength(n){const i=n>0?this.breakOffsets[n-1]:0;let t=this.breakOffsets[n]-i;return n>0&&(t+=this.wrappedTextIndentLength),t}getMaxOutputOffset(n){return this.getLineLength(n)}translateToInputOffset(n,i){n>0&&(i=Math.max(0,i-this.wrappedTextIndentLength));let t=n===0?i:this.breakOffsets[n-1]+i;if(this.injectionOffsets!==null)for(let o=0;o<this.injectionOffsets.length&&t>this.injectionOffsets[o];o++)t<this.injectionOffsets[o]+this.injectionOptions[o].content.length?t=this.injectionOffsets[o]:t-=this.injectionOptions[o].content.length;return t}translateToOutputPosition(n,i=2){let t=n;if(this.injectionOffsets!==null)for(let o=0;o<this.injectionOffsets.length&&!(n<this.injectionOffsets[o]||i!==1&&n===this.injectionOffsets[o]);o++)t+=this.injectionOptions[o].content.length;return this.offsetInInputWithInjectionsToOutputPosition(t,i)}offsetInInputWithInjectionsToOutputPosition(n,i=2){let t=0,o=this.breakOffsets.length-1,s=0,d=0;for(;t<=o;){s=t+(o-t)/2|0;const a=this.breakOffsets[s];if(d=s>0?this.breakOffsets[s-1]:0,i===0)if(n<=d)o=s-1;else if(n>a)t=s+1;else break;else if(n<d)o=s-1;else if(n>=a)t=s+1;else break}let l=n-d;return s>0&&(l+=this.wrappedTextIndentLength),new h(s,l)}normalizeOutputPosition(n,i,t){if(this.injectionOffsets!==null){const o=this.outputPositionToOffsetInInputWithInjections(n,i),s=this.normalizeOffsetInInputWithInjectionsAroundInjections(o,t);if(s!==o)return this.offsetInInputWithInjectionsToOutputPosition(s,t)}if(t===0){if(n>0&&i===this.getMinOutputOffset(n))return new h(n-1,this.getMaxOutputOffset(n-1))}else if(t===1){const o=this.getOutputLineCount()-1;if(n<o&&i===this.getMaxOutputOffset(n))return new h(n+1,this.getMinOutputOffset(n+1))}return new h(n,i)}outputPositionToOffsetInInputWithInjections(n,i){return n>0&&(i=Math.max(0,i-this.wrappedTextIndentLength)),(n>0?this.breakOffsets[n-1]:0)+i}normalizeOffsetInInputWithInjectionsAroundInjections(n,i){const t=this.getInjectedTextAtOffset(n);if(!t)return n;if(i===2){if(n===t.offsetInInputWithInjections+t.length&&w(this.injectionOptions[t.injectedTextIndex].cursorStops))return t.offsetInInputWithInjections+t.length;{let o=t.offsetInInputWithInjections;if(b(this.injectionOptions[t.injectedTextIndex].cursorStops))return o;let s=t.injectedTextIndex-1;for(;s>=0&&this.injectionOffsets[s]===this.injectionOffsets[t.injectedTextIndex]&&!(w(this.injectionOptions[s].cursorStops)||(o-=this.injectionOptions[s].content.length,b(this.injectionOptions[s].cursorStops)));)s--;return o}}else if(i===1||i===4){let o=t.offsetInInputWithInjections+t.length,s=t.injectedTextIndex;for(;s+1<this.injectionOffsets.length&&this.injectionOffsets[s+1]===this.injectionOffsets[s];)o+=this.injectionOptions[s+1].content.length,s++;return o}else if(i===0||i===3){let o=t.offsetInInputWithInjections,s=t.injectedTextIndex;for(;s-1>=0&&this.injectionOffsets[s-1]===this.injectionOffsets[s];)o-=this.injectionOptions[s-1].content.length,s--;return o}(0,y.assertNever)(i)}getInjectedText(n,i){const t=this.outputPositionToOffsetInInputWithInjections(n,i),o=this.getInjectedTextAtOffset(t);return o?{options:this.injectionOptions[o.injectedTextIndex]}:null}getInjectedTextAtOffset(n){const i=this.injectionOffsets,t=this.injectionOptions;if(i!==null){let o=0;for(let s=0;s<i.length;s++){const d=t[s].content.length,l=i[s]+o,a=i[s]+o+d;if(l>n)break;if(n<=a)return{injectedTextIndex:s,offsetInInputWithInjections:l,length:d};o+=d}}}}e.ModelLineProjectionData=D;function w(u){return u==null?!0:u===k.InjectedTextCursorStops.Right||u===k.InjectedTextCursorStops.Both}function b(u){return u==null?!0:u===k.InjectedTextCursorStops.Left||u===k.InjectedTextCursorStops.Both}class C{constructor(n){this.options=n}}e.InjectedText=C;class h{constructor(n,i){this.outputLineIndex=n,this.outputOffset=i}toString(){return`${this.outputLineIndex}:${this.outputOffset}`}toPosition(n){return new v.Position(n+this.outputLineIndex,this.outputOffset+1)}}e.OutputPosition=h}),define(oe[242],se([1,0,3,158,8,19,128]),function(q,e,y,v,k,D,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UnicodeTextModelHighlighter=void 0;class b{static computeUnicodeHighlights(i,t,o){const s=o?o.startLineNumber:1,d=o?o.endLineNumber:i.getLineCount(),l=new h(t),a=l.getCandidateCodePoints();let r;a==="allNonBasicAscii"?r=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):r=new RegExp(`${C(Array.from(a))}`,"g");const c=new v.Searcher(null,r),g=[];let f=!1,_,p=0,m=0,S=0;e:for(let E=s,L=d;E<=L;E++){const N=i.getLineContent(E),I=N.length;c.reset(0);do if(_=c.next(N),_){let R=_.index,F=_.index+_[0].length;if(R>0){const P=N.charCodeAt(R-1);k.isHighSurrogate(P)&&R--}if(F+1<I){const P=N.charCodeAt(F-1);k.isHighSurrogate(P)&&F++}const O=N.substring(R,F),x=(0,w.getWordAtText)(R+1,w.DEFAULT_WORD_REGEXP,N,0),M=l.shouldHighlightNonBasicASCII(O,x?x.word:null);if(M!==0){M===3?p++:M===2?m++:M===1?S++:(0,D.assertNever)(M);const P=1e3;if(g.length>=P){f=!0;break e}g.push(new y.Range(E,R+1,E,F+1))}}while(_)}return{ranges:g,hasMore:f,ambiguousCharacterCount:p,invisibleCharacterCount:m,nonBasicAsciiCharacterCount:S}}static computeUnicodeHighlightReason(i,t){const o=new h(t);switch(o.shouldHighlightNonBasicASCII(i,null)){case 0:return null;case 2:return{kind:1};case 3:{const s=i.codePointAt(0),d=o.ambiguousCharacters.getPrimaryConfusable(s),l=k.AmbiguousCharacters.getLocales().filter(a=>!k.AmbiguousCharacters.getInstance(new Set([...t.allowedLocales,a])).isAmbiguous(s));return{kind:0,confusableWith:String.fromCodePoint(d),notAmbiguousInLocales:l}}case 1:return{kind:2}}}}e.UnicodeTextModelHighlighter=b;function C(n,i){return`[${k.escapeRegExpCharacters(n.map(t=>String.fromCodePoint(t)).join(""))}]`}class h{constructor(i){this.options=i,this.allowedCodePoints=new Set(i.allowedCodePoints),this.ambiguousCharacters=k.AmbiguousCharacters.getInstance(new Set(i.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const i=new Set;if(this.options.invisibleCharacters)for(const t of k.InvisibleCharacters.codePoints)u(String.fromCodePoint(t))||i.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())i.add(t);for(const t of this.allowedCodePoints)i.delete(t);return i}shouldHighlightNonBasicASCII(i,t){const o=i.codePointAt(0);if(this.allowedCodePoints.has(o))return 0;if(this.options.nonBasicASCII)return 1;let s=!1,d=!1;if(t)for(const l of t){const a=l.codePointAt(0),r=k.isBasicASCII(l);s=s||r,!r&&!this.ambiguousCharacters.isAmbiguous(a)&&!k.InvisibleCharacters.isInvisibleCharacter(a)&&(d=!0)}return!s&&d?0:this.options.invisibleCharacters&&!u(i)&&k.InvisibleCharacters.isInvisibleCharacter(o)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(o)?3:0}}function u(n){return n===" "||n===` `||n===" "}}),define(oe[159],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WrappingIndent=e.TrackedRangeStickiness=e.TextEditorCursorStyle=e.TextEditorCursorBlinkingStyle=e.SymbolTag=e.SymbolKind=e.SignatureHelpTriggerKind=e.SelectionDirection=e.ScrollbarVisibility=e.ScrollType=e.RenderMinimap=e.RenderLineNumbersType=e.PositionAffinity=e.OverviewRulerLane=e.OverlayWidgetPositionPreference=e.MouseTargetType=e.MinimapPosition=e.MarkerTag=e.MarkerSeverity=e.KeyCode=e.InlineCompletionTriggerKind=e.InlayHintKind=e.InjectedTextCursorStops=e.IndentAction=e.EndOfLineSequence=e.EndOfLinePreference=e.EditorOption=e.EditorAutoIndentStrategy=e.DocumentHighlightKind=e.DefaultEndOfLine=e.CursorChangeReason=e.ContentWidgetPositionPreference=e.CompletionTriggerKind=e.CompletionItemTag=e.CompletionItemKind=e.CompletionItemInsertTextRule=e.CodeActionTriggerType=e.AccessibilitySupport=void 0;var y;(function(T){T[T.Unknown=0]="Unknown",T[T.Disabled=1]="Disabled",T[T.Enabled=2]="Enabled"})(y=e.AccessibilitySupport||(e.AccessibilitySupport={}));var v;(function(T){T[T.Invoke=1]="Invoke",T[T.Auto=2]="Auto"})(v=e.CodeActionTriggerType||(e.CodeActionTriggerType={}));var k;(function(T){T[T.KeepWhitespace=1]="KeepWhitespace",T[T.InsertAsSnippet=4]="InsertAsSnippet"})(k=e.CompletionItemInsertTextRule||(e.CompletionItemInsertTextRule={}));var D;(function(T){T[T.Method=0]="Method",T[T.Function=1]="Function",T[T.Constructor=2]="Constructor",T[T.Field=3]="Field",T[T.Variable=4]="Variable",T[T.Class=5]="Class",T[T.Struct=6]="Struct",T[T.Interface=7]="Interface",T[T.Module=8]="Module",T[T.Property=9]="Property",T[T.Event=10]="Event",T[T.Operator=11]="Operator",T[T.Unit=12]="Unit",T[T.Value=13]="Value",T[T.Constant=14]="Constant",T[T.Enum=15]="Enum",T[T.EnumMember=16]="EnumMember",T[T.Keyword=17]="Keyword",T[T.Text=18]="Text",T[T.Color=19]="Color",T[T.File=20]="File",T[T.Reference=21]="Reference",T[T.Customcolor=22]="Customcolor",T[T.Folder=23]="Folder",T[T.TypeParameter=24]="TypeParameter",T[T.User=25]="User",T[T.Issue=26]="Issue",T[T.Snippet=27]="Snippet"})(D=e.CompletionItemKind||(e.CompletionItemKind={}));var w;(function(T){T[T.Deprecated=1]="Deprecated"})(w=e.CompletionItemTag||(e.CompletionItemTag={}));var b;(function(T){T[T.Invoke=0]="Invoke",T[T.TriggerCharacter=1]="TriggerCharacter",T[T.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(b=e.CompletionTriggerKind||(e.CompletionTriggerKind={}));var C;(function(T){T[T.EXACT=0]="EXACT",T[T.ABOVE=1]="ABOVE",T[T.BELOW=2]="BELOW"})(C=e.ContentWidgetPositionPreference||(e.ContentWidgetPositionPreference={}));var h;(function(T){T[T.NotSet=0]="NotSet",T[T.ContentFlush=1]="ContentFlush",T[T.RecoverFromMarkers=2]="RecoverFromMarkers",T[T.Explicit=3]="Explicit",T[T.Paste=4]="Paste",T[T.Undo=5]="Undo",T[T.Redo=6]="Redo"})(h=e.CursorChangeReason||(e.CursorChangeReason={}));var u;(function(T){T[T.LF=1]="LF",T[T.CRLF=2]="CRLF"})(u=e.DefaultEndOfLine||(e.DefaultEndOfLine={}));var n;(function(T){T[T.Text=0]="Text",T[T.Read=1]="Read",T[T.Write=2]="Write"})(n=e.DocumentHighlightKind||(e.DocumentHighlightKind={}));var i;(function(T){T[T.None=0]="None",T[T.Keep=1]="Keep",T[T.Brackets=2]="Brackets",T[T.Advanced=3]="Advanced",T[T.Full=4]="Full"})(i=e.EditorAutoIndentStrategy||(e.EditorAutoIndentStrategy={}));var t;(function(T){T[T.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",T[T.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",T[T.accessibilitySupport=2]="accessibilitySupport",T[T.accessibilityPageSize=3]="accessibilityPageSize",T[T.ariaLabel=4]="ariaLabel",T[T.autoClosingBrackets=5]="autoClosingBrackets",T[T.autoClosingDelete=6]="autoClosingDelete",T[T.autoClosingOvertype=7]="autoClosingOvertype",T[T.autoClosingQuotes=8]="autoClosingQuotes",T[T.autoIndent=9]="autoIndent",T[T.automaticLayout=10]="automaticLayout",T[T.autoSurround=11]="autoSurround",T[T.bracketPairColorization=12]="bracketPairColorization",T[T.guides=13]="guides",T[T.codeLens=14]="codeLens",T[T.codeLensFontFamily=15]="codeLensFontFamily",T[T.codeLensFontSize=16]="codeLensFontSize",T[T.colorDecorators=17]="colorDecorators",T[T.columnSelection=18]="columnSelection",T[T.comments=19]="comments",T[T.contextmenu=20]="contextmenu",T[T.copyWithSyntaxHighlighting=21]="copyWithSyntaxHighlighting",T[T.cursorBlinking=22]="cursorBlinking",T[T.cursorSmoothCaretAnimation=23]="cursorSmoothCaretAnimation",T[T.cursorStyle=24]="cursorStyle",T[T.cursorSurroundingLines=25]="cursorSurroundingLines",T[T.cursorSurroundingLinesStyle=26]="cursorSurroundingLinesStyle",T[T.cursorWidth=27]="cursorWidth",T[T.disableLayerHinting=28]="disableLayerHinting",T[T.disableMonospaceOptimizations=29]="disableMonospaceOptimizations",T[T.domReadOnly=30]="domReadOnly",T[T.dragAndDrop=31]="dragAndDrop",T[T.dropIntoEditor=32]="dropIntoEditor",T[T.emptySelectionClipboard=33]="emptySelectionClipboard",T[T.experimental=34]="experimental",T[T.extraEditorClassName=35]="extraEditorClassName",T[T.fastScrollSensitivity=36]="fastScrollSensitivity",T[T.find=37]="find",T[T.fixedOverflowWidgets=38]="fixedOverflowWidgets",T[T.folding=39]="folding",T[T.foldingStrategy=40]="foldingStrategy",T[T.foldingHighlight=41]="foldingHighlight",T[T.foldingImportsByDefault=42]="foldingImportsByDefault",T[T.foldingMaximumRegions=43]="foldingMaximumRegions",T[T.unfoldOnClickAfterEndOfLine=44]="unfoldOnClickAfterEndOfLine",T[T.fontFamily=45]="fontFamily",T[T.fontInfo=46]="fontInfo",T[T.fontLigatures=47]="fontLigatures",T[T.fontSize=48]="fontSize",T[T.fontWeight=49]="fontWeight",T[T.formatOnPaste=50]="formatOnPaste",T[T.formatOnType=51]="formatOnType",T[T.glyphMargin=52]="glyphMargin",T[T.gotoLocation=53]="gotoLocation",T[T.hideCursorInOverviewRuler=54]="hideCursorInOverviewRuler",T[T.hover=55]="hover",T[T.inDiffEditor=56]="inDiffEditor",T[T.inlineSuggest=57]="inlineSuggest",T[T.letterSpacing=58]="letterSpacing",T[T.lightbulb=59]="lightbulb",T[T.lineDecorationsWidth=60]="lineDecorationsWidth",T[T.lineHeight=61]="lineHeight",T[T.lineNumbers=62]="lineNumbers",T[T.lineNumbersMinChars=63]="lineNumbersMinChars",T[T.linkedEditing=64]="linkedEditing",T[T.links=65]="links",T[T.matchBrackets=66]="matchBrackets",T[T.minimap=67]="minimap",T[T.mouseStyle=68]="mouseStyle",T[T.mouseWheelScrollSensitivity=69]="mouseWheelScrollSensitivity",T[T.mouseWheelZoom=70]="mouseWheelZoom",T[T.multiCursorMergeOverlapping=71]="multiCursorMergeOverlapping",T[T.multiCursorModifier=72]="multiCursorModifier",T[T.multiCursorPaste=73]="multiCursorPaste",T[T.occurrencesHighlight=74]="occurrencesHighlight",T[T.overviewRulerBorder=75]="overviewRulerBorder",T[T.overviewRulerLanes=76]="overviewRulerLanes",T[T.padding=77]="padding",T[T.parameterHints=78]="parameterHints",T[T.peekWidgetDefaultFocus=79]="peekWidgetDefaultFocus",T[T.definitionLinkOpensInPeek=80]="definitionLinkOpensInPeek",T[T.quickSuggestions=81]="quickSuggestions",T[T.quickSuggestionsDelay=82]="quickSuggestionsDelay",T[T.readOnly=83]="readOnly",T[T.renameOnType=84]="renameOnType",T[T.renderControlCharacters=85]="renderControlCharacters",T[T.renderFinalNewline=86]="renderFinalNewline",T[T.renderLineHighlight=87]="renderLineHighlight",T[T.renderLineHighlightOnlyWhenFocus=88]="renderLineHighlightOnlyWhenFocus",T[T.renderValidationDecorations=89]="renderValidationDecorations",T[T.renderWhitespace=90]="renderWhitespace",T[T.revealHorizontalRightPadding=91]="revealHorizontalRightPadding",T[T.roundedSelection=92]="roundedSelection",T[T.rulers=93]="rulers",T[T.scrollbar=94]="scrollbar",T[T.scrollBeyondLastColumn=95]="scrollBeyondLastColumn",T[T.scrollBeyondLastLine=96]="scrollBeyondLastLine",T[T.scrollPredominantAxis=97]="scrollPredominantAxis",T[T.selectionClipboard=98]="selectionClipboard",T[T.selectionHighlight=99]="selectionHighlight",T[T.selectOnLineNumbers=100]="selectOnLineNumbers",T[T.showFoldingControls=101]="showFoldingControls",T[T.showUnused=102]="showUnused",T[T.snippetSuggestions=103]="snippetSuggestions",T[T.smartSelect=104]="smartSelect",T[T.smoothScrolling=105]="smoothScrolling",T[T.stickyTabStops=106]="stickyTabStops",T[T.stopRenderingLineAfter=107]="stopRenderingLineAfter",T[T.suggest=108]="suggest",T[T.suggestFontSize=109]="suggestFontSize",T[T.suggestLineHeight=110]="suggestLineHeight",T[T.suggestOnTriggerCharacters=111]="suggestOnTriggerCharacters",T[T.suggestSelection=112]="suggestSelection",T[T.tabCompletion=113]="tabCompletion",T[T.tabIndex=114]="tabIndex",T[T.unicodeHighlighting=115]="unicodeHighlighting",T[T.unusualLineTerminators=116]="unusualLineTerminators",T[T.useShadowDOM=117]="useShadowDOM",T[T.useTabStops=118]="useTabStops",T[T.wordSeparators=119]="wordSeparators",T[T.wordWrap=120]="wordWrap",T[T.wordWrapBreakAfterCharacters=121]="wordWrapBreakAfterCharacters",T[T.wordWrapBreakBeforeCharacters=122]="wordWrapBreakBeforeCharacters",T[T.wordWrapColumn=123]="wordWrapColumn",T[T.wordWrapOverride1=124]="wordWrapOverride1",T[T.wordWrapOverride2=125]="wordWrapOverride2",T[T.wrappingIndent=126]="wrappingIndent",T[T.wrappingStrategy=127]="wrappingStrategy",T[T.showDeprecated=128]="showDeprecated",T[T.inlayHints=129]="inlayHints",T[T.editorClassName=130]="editorClassName",T[T.pixelRatio=131]="pixelRatio",T[T.tabFocusMode=132]="tabFocusMode",T[T.layoutInfo=133]="layoutInfo",T[T.wrappingInfo=134]="wrappingInfo"})(t=e.EditorOption||(e.EditorOption={}));var o;(function(T){T[T.TextDefined=0]="TextDefined",T[T.LF=1]="LF",T[T.CRLF=2]="CRLF"})(o=e.EndOfLinePreference||(e.EndOfLinePreference={}));var s;(function(T){T[T.LF=0]="LF",T[T.CRLF=1]="CRLF"})(s=e.EndOfLineSequence||(e.EndOfLineSequence={}));var d;(function(T){T[T.None=0]="None",T[T.Indent=1]="Indent",T[T.IndentOutdent=2]="IndentOutdent",T[T.Outdent=3]="Outdent"})(d=e.IndentAction||(e.IndentAction={}));var l;(function(T){T[T.Both=0]="Both",T[T.Right=1]="Right",T[T.Left=2]="Left",T[T.None=3]="None"})(l=e.InjectedTextCursorStops||(e.InjectedTextCursorStops={}));var a;(function(T){T[T.Type=1]="Type",T[T.Parameter=2]="Parameter"})(a=e.InlayHintKind||(e.InlayHintKind={}));var r;(function(T){T[T.Automatic=0]="Automatic",T[T.Explicit=1]="Explicit"})(r=e.InlineCompletionTriggerKind||(e.InlineCompletionTriggerKind={}));var c;(function(T){T[T.DependsOnKbLayout=-1]="DependsOnKbLayout",T[T.Unknown=0]="Unknown",T[T.Backspace=1]="Backspace",T[T.Tab=2]="Tab",T[T.Enter=3]="Enter",T[T.Shift=4]="Shift",T[T.Ctrl=5]="Ctrl",T[T.Alt=6]="Alt",T[T.PauseBreak=7]="PauseBreak",T[T.CapsLock=8]="CapsLock",T[T.Escape=9]="Escape",T[T.Space=10]="Space",T[T.PageUp=11]="PageUp",T[T.PageDown=12]="PageDown",T[T.End=13]="End",T[T.Home=14]="Home",T[T.LeftArrow=15]="LeftArrow",T[T.UpArrow=16]="UpArrow",T[T.RightArrow=17]="RightArrow",T[T.DownArrow=18]="DownArrow",T[T.Insert=19]="Insert",T[T.Delete=20]="Delete",T[T.Digit0=21]="Digit0",T[T.Digit1=22]="Digit1",T[T.Digit2=23]="Digit2",T[T.Digit3=24]="Digit3",T[T.Digit4=25]="Digit4",T[T.Digit5=26]="Digit5",T[T.Digit6=27]="Digit6",T[T.Digit7=28]="Digit7",T[T.Digit8=29]="Digit8",T[T.Digit9=30]="Digit9",T[T.KeyA=31]="KeyA",T[T.KeyB=32]="KeyB",T[T.KeyC=33]="KeyC",T[T.KeyD=34]="KeyD",T[T.KeyE=35]="KeyE",T[T.KeyF=36]="KeyF",T[T.KeyG=37]="KeyG",T[T.KeyH=38]="KeyH",T[T.KeyI=39]="KeyI",T[T.KeyJ=40]="KeyJ",T[T.KeyK=41]="KeyK",T[T.KeyL=42]="KeyL",T[T.KeyM=43]="KeyM",T[T.KeyN=44]="KeyN",T[T.KeyO=45]="KeyO",T[T.KeyP=46]="KeyP",T[T.KeyQ=47]="KeyQ",T[T.KeyR=48]="KeyR",T[T.KeyS=49]="KeyS",T[T.KeyT=50]="KeyT",T[T.KeyU=51]="KeyU",T[T.KeyV=52]="KeyV",T[T.KeyW=53]="KeyW",T[T.KeyX=54]="KeyX",T[T.KeyY=55]="KeyY",T[T.KeyZ=56]="KeyZ",T[T.Meta=57]="Meta",T[T.ContextMenu=58]="ContextMenu",T[T.F1=59]="F1",T[T.F2=60]="F2",T[T.F3=61]="F3",T[T.F4=62]="F4",T[T.F5=63]="F5",T[T.F6=64]="F6",T[T.F7=65]="F7",T[T.F8=66]="F8",T[T.F9=67]="F9",T[T.F10=68]="F10",T[T.F11=69]="F11",T[T.F12=70]="F12",T[T.F13=71]="F13",T[T.F14=72]="F14",T[T.F15=73]="F15",T[T.F16=74]="F16",T[T.F17=75]="F17",T[T.F18=76]="F18",T[T.F19=77]="F19",T[T.NumLock=78]="NumLock",T[T.ScrollLock=79]="ScrollLock",T[T.Semicolon=80]="Semicolon",T[T.Equal=81]="Equal",T[T.Comma=82]="Comma",T[T.Minus=83]="Minus",T[T.Period=84]="Period",T[T.Slash=85]="Slash",T[T.Backquote=86]="Backquote",T[T.BracketLeft=87]="BracketLeft",T[T.Backslash=88]="Backslash",T[T.BracketRight=89]="BracketRight",T[T.Quote=90]="Quote",T[T.OEM_8=91]="OEM_8",T[T.IntlBackslash=92]="IntlBackslash",T[T.Numpad0=93]="Numpad0",T[T.Numpad1=94]="Numpad1",T[T.Numpad2=95]="Numpad2",T[T.Numpad3=96]="Numpad3",T[T.Numpad4=97]="Numpad4",T[T.Numpad5=98]="Numpad5",T[T.Numpad6=99]="Numpad6",T[T.Numpad7=100]="Numpad7",T[T.Numpad8=101]="Numpad8",T[T.Numpad9=102]="Numpad9",T[T.NumpadMultiply=103]="NumpadMultiply",T[T.NumpadAdd=104]="NumpadAdd",T[T.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",T[T.NumpadSubtract=106]="NumpadSubtract",T[T.NumpadDecimal=107]="NumpadDecimal",T[T.NumpadDivide=108]="NumpadDivide",T[T.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",T[T.ABNT_C1=110]="ABNT_C1",T[T.ABNT_C2=111]="ABNT_C2",T[T.AudioVolumeMute=112]="AudioVolumeMute",T[T.AudioVolumeUp=113]="AudioVolumeUp",T[T.AudioVolumeDown=114]="AudioVolumeDown",T[T.BrowserSearch=115]="BrowserSearch",T[T.BrowserHome=116]="BrowserHome",T[T.BrowserBack=117]="BrowserBack",T[T.BrowserForward=118]="BrowserForward",T[T.MediaTrackNext=119]="MediaTrackNext",T[T.MediaTrackPrevious=120]="MediaTrackPrevious",T[T.MediaStop=121]="MediaStop",T[T.MediaPlayPause=122]="MediaPlayPause",T[T.LaunchMediaPlayer=123]="LaunchMediaPlayer",T[T.LaunchMail=124]="LaunchMail",T[T.LaunchApp2=125]="LaunchApp2",T[T.Clear=126]="Clear",T[T.MAX_VALUE=127]="MAX_VALUE"})(c=e.KeyCode||(e.KeyCode={}));var g;(function(T){T[T.Hint=1]="Hint",T[T.Info=2]="Info",T[T.Warning=4]="Warning",T[T.Error=8]="Error"})(g=e.MarkerSeverity||(e.MarkerSeverity={}));var f;(function(T){T[T.Unnecessary=1]="Unnecessary",T[T.Deprecated=2]="Deprecated"})(f=e.MarkerTag||(e.MarkerTag={}));var _;(function(T){T[T.Inline=1]="Inline",T[T.Gutter=2]="Gutter"})(_=e.MinimapPosition||(e.MinimapPosition={}));var p;(function(T){T[T.UNKNOWN=0]="UNKNOWN",T[T.TEXTAREA=1]="TEXTAREA",T[T.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",T[T.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",T[T.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",T[T.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",T[T.CONTENT_TEXT=6]="CONTENT_TEXT",T[T.CONTENT_EMPTY=7]="CONTENT_EMPTY",T[T.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",T[T.CONTENT_WIDGET=9]="CONTENT_WIDGET",T[T.OVERVIEW_RULER=10]="OVERVIEW_RULER",T[T.SCROLLBAR=11]="SCROLLBAR",T[T.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",T[T.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(p=e.MouseTargetType||(e.MouseTargetType={}));var m;(function(T){T[T.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",T[T.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",T[T.TOP_CENTER=2]="TOP_CENTER"})(m=e.OverlayWidgetPositionPreference||(e.OverlayWidgetPositionPreference={}));var S;(function(T){T[T.Left=1]="Left",T[T.Center=2]="Center",T[T.Right=4]="Right",T[T.Full=7]="Full"})(S=e.OverviewRulerLane||(e.OverviewRulerLane={}));var E;(function(T){T[T.Left=0]="Left",T[T.Right=1]="Right",T[T.None=2]="None",T[T.LeftOfInjectedText=3]="LeftOfInjectedText",T[T.RightOfInjectedText=4]="RightOfInjectedText"})(E=e.PositionAffinity||(e.PositionAffinity={}));var L;(function(T){T[T.Off=0]="Off",T[T.On=1]="On",T[T.Relative=2]="Relative",T[T.Interval=3]="Interval",T[T.Custom=4]="Custom"})(L=e.RenderLineNumbersType||(e.RenderLineNumbersType={}));var N;(function(T){T[T.None=0]="None",T[T.Text=1]="Text",T[T.Blocks=2]="Blocks"})(N=e.RenderMinimap||(e.RenderMinimap={}));var I;(function(T){T[T.Smooth=0]="Smooth",T[T.Immediate=1]="Immediate"})(I=e.ScrollType||(e.ScrollType={}));var R;(function(T){T[T.Auto=1]="Auto",T[T.Hidden=2]="Hidden",T[T.Visible=3]="Visible"})(R=e.ScrollbarVisibility||(e.ScrollbarVisibility={}));var F;(function(T){T[T.LTR=0]="LTR",T[T.RTL=1]="RTL"})(F=e.SelectionDirection||(e.SelectionDirection={}));var O;(function(T){T[T.Invoke=1]="Invoke",T[T.TriggerCharacter=2]="TriggerCharacter",T[T.ContentChange=3]="ContentChange"})(O=e.SignatureHelpTriggerKind||(e.SignatureHelpTriggerKind={}));var x;(function(T){T[T.File=0]="File",T[T.Module=1]="Module",T[T.Namespace=2]="Namespace",T[T.Package=3]="Package",T[T.Class=4]="Class",T[T.Method=5]="Method",T[T.Property=6]="Property",T[T.Field=7]="Field",T[T.Constructor=8]="Constructor",T[T.Enum=9]="Enum",T[T.Interface=10]="Interface",T[T.Function=11]="Function",T[T.Variable=12]="Variable",T[T.Constant=13]="Constant",T[T.String=14]="String",T[T.Number=15]="Number",T[T.Boolean=16]="Boolean",T[T.Array=17]="Array",T[T.Object=18]="Object",T[T.Key=19]="Key",T[T.Null=20]="Null",T[T.EnumMember=21]="EnumMember",T[T.Struct=22]="Struct",T[T.Event=23]="Event",T[T.Operator=24]="Operator",T[T.TypeParameter=25]="TypeParameter"})(x=e.SymbolKind||(e.SymbolKind={}));var M;(function(T){T[T.Deprecated=1]="Deprecated"})(M=e.SymbolTag||(e.SymbolTag={}));var P;(function(T){T[T.Hidden=0]="Hidden",T[T.Blink=1]="Blink",T[T.Smooth=2]="Smooth",T[T.Phase=3]="Phase",T[T.Expand=4]="Expand",T[T.Solid=5]="Solid"})(P=e.TextEditorCursorBlinkingStyle||(e.TextEditorCursorBlinkingStyle={}));var A;(function(T){T[T.Line=1]="Line",T[T.Block=2]="Block",T[T.Underline=3]="Underline",T[T.LineThin=4]="LineThin",T[T.BlockOutline=5]="BlockOutline",T[T.UnderlineThin=6]="UnderlineThin"})(A=e.TextEditorCursorStyle||(e.TextEditorCursorStyle={}));var B;(function(T){T[T.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",T[T.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",T[T.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",T[T.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(B=e.TrackedRangeStickiness||(e.TrackedRangeStickiness={}));var K;(function(T){T[T.None=0]="None",T[T.Same=1]="Same",T[T.Indent=2]="Indent",T[T.DeepIndent=3]="DeepIndent"})(K=e.WrappingIndent||(e.WrappingIndent={}))}),define(oe[428],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BracketPairWithMinIndentationInfo=e.BracketPairInfo=e.BracketInfo=void 0;class y{constructor(w,b,C,h){this.range=w,this.nestingLevel=b,this.nestingLevelOfEqualBracketType=C,this.isInvalid=h}}e.BracketInfo=y;class v{constructor(w,b,C,h,u,n){this.range=w,this.openingBracketRange=b,this.closingBracketRange=C,this.nestingLevel=h,this.nestingLevelOfEqualBracketType=u,this.bracketPairNode=n}get openingBracketInfo(){return this.bracketPairNode.openingBracket.bracketInfo}}e.BracketPairInfo=v;class k extends v{constructor(w,b,C,h,u,n,i){super(w,b,C,h,u,n),this.minVisibleColumnIndentation=i}}e.BracketPairWithMinIndentationInfo=k}),define(oe[99],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InternalModelContentChangeEvent=e.ModelInjectedTextChangedEvent=e.ModelRawContentChangedEvent=e.ModelRawEOLChanged=e.ModelRawLinesInserted=e.ModelRawLinesDeleted=e.ModelRawLineChanged=e.LineInjectedText=e.ModelRawFlush=void 0;class y{constructor(){this.changeType=1}}e.ModelRawFlush=y;class v{constructor(i,t,o,s,d){this.ownerId=i,this.lineNumber=t,this.column=o,this.options=s,this.order=d}static applyInjectedText(i,t){if(!t||t.length===0)return i;let o="",s=0;for(const d of t)o+=i.substring(s,d.column-1),s=d.column-1,o+=d.options.content;return o+=i.substring(s),o}static fromDecorations(i){const t=[];for(const o of i)o.options.before&&o.options.before.content.length>0&&t.push(new v(o.ownerId,o.range.startLineNumber,o.range.startColumn,o.options.before,0)),o.options.after&&o.options.after.content.length>0&&t.push(new v(o.ownerId,o.range.endLineNumber,o.range.endColumn,o.options.after,1));return t.sort((o,s)=>o.lineNumber===s.lineNumber?o.column===s.column?o.order-s.order:o.column-s.column:o.lineNumber-s.lineNumber),t}}e.LineInjectedText=v;class k{constructor(i,t,o){this.changeType=2,this.lineNumber=i,this.detail=t,this.injectedText=o}}e.ModelRawLineChanged=k;class D{constructor(i,t){this.changeType=3,this.fromLineNumber=i,this.toLineNumber=t}}e.ModelRawLinesDeleted=D;class w{constructor(i,t,o,s){this.changeType=4,this.injectedTexts=s,this.fromLineNumber=i,this.toLineNumber=t,this.detail=o}}e.ModelRawLinesInserted=w;class b{constructor(){this.changeType=5}}e.ModelRawEOLChanged=b;class C{constructor(i,t,o,s){this.changes=i,this.versionId=t,this.isUndoing=o,this.isRedoing=s,this.resultingSelection=null}containsEvent(i){for(let t=0,o=this.changes.length;t<o;t++)if(this.changes[t].changeType===i)return!0;return!1}static merge(i,t){const o=[].concat(i.changes).concat(t.changes),s=t.versionId,d=i.isUndoing||t.isUndoing,l=i.isRedoing||t.isRedoing;return new C(o,s,d,l)}}e.ModelRawContentChangedEvent=C;class h{constructor(i){this.changes=i}}e.ModelInjectedTextChangedEvent=h;class u{constructor(i,t){this.rawContentChangedEvent=i,this.contentChangedEvent=t}merge(i){const t=C.merge(this.rawContentChangedEvent,i.rawContentChangedEvent),o=u._mergeChangeEvents(this.contentChangedEvent,i.contentChangedEvent);return new u(t,o)}static _mergeChangeEvents(i,t){const o=[].concat(i.changes).concat(t.changes),s=t.eol,d=t.versionId,l=i.isUndoing||t.isUndoing,a=i.isRedoing||t.isRedoing,r=i.isFlush||t.isFlush;return{changes:o,eol:s,versionId:d,isUndoing:l,isRedoing:a,isFlush:r}}}e.InternalModelContentChangeEvent=u}),define(oe[185],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndentGuideHorizontalLine=e.IndentGuide=e.HorizontalGuidesState=void 0;var y;(function(D){D[D.Disabled=0]="Disabled",D[D.EnabledForActive=1]="EnabledForActive",D[D.Enabled=2]="Enabled"})(y=e.HorizontalGuidesState||(e.HorizontalGuidesState={}));class v{constructor(w,b,C,h,u,n){if(this.visibleColumn=w,this.column=b,this.className=C,this.horizontalLine=h,this.forWrappedLinesAfterColumn=u,this.forWrappedLinesBeforeOrAtColumn=n,w!==-1==(b!==-1))throw new Error}}e.IndentGuide=v;class k{constructor(w,b){this.top=w,this.endColumn=b}}e.IndentGuideHorizontalLine=k}),define(oe[243],se([1,0,18,8,66,3,239,184,185]),function(q,e,y,v,k,D,w,b,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BracketPairGuidesClassNames=e.GuidesTextModelPart=void 0;class h extends w.TextModelPart{constructor(i,t){super(),this.textModel=i,this.languageConfigurationService=t}getLanguageConfiguration(i){return this.languageConfigurationService.getLanguageConfiguration(i)}_computeIndentLevel(i){return(0,b.computeIndentLevel)(this.textModel.getLineContent(i+1),this.textModel.getOptions().tabSize)}getActiveIndentGuide(i,t,o){this.assertNotDisposed();const s=this.textModel.getLineCount();if(i<1||i>s)throw new Error("Illegal value for lineNumber");const d=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,l=!!(d&&d.offSide);let a=-2,r=-1,c=-2,g=-1;const f=x=>{if(a!==-1&&(a===-2||a>x-1)){a=-1,r=-1;for(let M=x-2;M>=0;M--){const P=this._computeIndentLevel(M);if(P>=0){a=M,r=P;break}}}if(c===-2){c=-1,g=-1;for(let M=x;M<s;M++){const P=this._computeIndentLevel(M);if(P>=0){c=M,g=P;break}}}};let _=-2,p=-1,m=-2,S=-1;const E=x=>{if(_===-2){_=-1,p=-1;for(let M=x-2;M>=0;M--){const P=this._computeIndentLevel(M);if(P>=0){_=M,p=P;break}}}if(m!==-1&&(m===-2||m<x-1)){m=-1,S=-1;for(let M=x;M<s;M++){const P=this._computeIndentLevel(M);if(P>=0){m=M,S=P;break}}}};let L=0,N=!0,I=0,R=!0,F=0,O=0;for(let x=0;N||R;x++){const M=i-x,P=i+x;x>1&&(M<1||M<t)&&(N=!1),x>1&&(P>s||P>o)&&(R=!1),x>5e4&&(N=!1,R=!1);let A=-1;if(N&&M>=1){const K=this._computeIndentLevel(M-1);K>=0?(c=M-1,g=K,A=Math.ceil(K/this.textModel.getOptions().indentSize)):(f(M),A=this._getIndentLevelForWhitespaceLine(l,r,g))}let B=-1;if(R&&P<=s){const K=this._computeIndentLevel(P-1);K>=0?(_=P-1,p=K,B=Math.ceil(K/this.textModel.getOptions().indentSize)):(E(P),B=this._getIndentLevelForWhitespaceLine(l,p,S))}if(x===0){O=A;continue}if(x===1){if(P<=s&&B>=0&&O+1===B){N=!1,L=P,I=P,F=B;continue}if(M>=1&&A>=0&&A-1===O){R=!1,L=M,I=M,F=A;continue}if(L=i,I=i,F=O,F===0)return{startLineNumber:L,endLineNumber:I,indent:F}}N&&(A>=F?L=M:N=!1),R&&(B>=F?I=P:R=!1)}return{startLineNumber:L,endLineNumber:I,indent:F}}getLinesBracketGuides(i,t,o,s){var d;const l=[];for(let _=i;_<=t;_++)l.push([]);const a=!0,r=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new D.Range(i,1,t,this.textModel.getLineMaxColumn(t)));let c;if(o&&r.length>0){const _=(i<=o.lineNumber&&o.lineNumber<=t?r:this.textModel.bracketPairs.getBracketPairsInRange(D.Range.fromPositions(o))).filter(p=>D.Range.strictContainsPosition(p.range,o));c=(d=(0,y.findLast)(_,p=>a||p.range.startLineNumber!==p.range.endLineNumber))===null||d===void 0?void 0:d.range}const g=this.textModel.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,f=new u;for(const _ of r){if(!_.closingBracketRange)continue;const p=c&&_.range.equalsRange(c);if(!p&&!s.includeInactive)continue;const m=f.getInlineClassName(_.nestingLevel,_.nestingLevelOfEqualBracketType,g)+(s.highlightActive&&p?" "+f.activeClassName:""),S=_.openingBracketRange.getStartPosition(),E=_.closingBracketRange.getStartPosition(),L=s.horizontalGuides===C.HorizontalGuidesState.Enabled||s.horizontalGuides===C.HorizontalGuidesState.EnabledForActive&&p;if(_.range.startLineNumber===_.range.endLineNumber){a&&L&&l[_.range.startLineNumber-i].push(new C.IndentGuide(-1,_.openingBracketRange.getEndPosition().column,m,new C.IndentGuideHorizontalLine(!1,E.column),-1,-1));continue}const N=this.getVisibleColumnFromPosition(E),I=this.getVisibleColumnFromPosition(_.openingBracketRange.getStartPosition()),R=Math.min(I,N,_.minVisibleColumnIndentation+1);let F=!1;v.firstNonWhitespaceIndex(this.textModel.getLineContent(_.closingBracketRange.startLineNumber))<_.closingBracketRange.startColumn-1&&(F=!0);const O=Math.max(S.lineNumber,i),x=Math.min(E.lineNumber,t),M=F?1:0;for(let P=O;P<x+M;P++)l[P-i].push(new C.IndentGuide(R,-1,m,null,P===S.lineNumber?S.column:-1,P===E.lineNumber?E.column:-1));L&&(S.lineNumber>=i&&I>R&&l[S.lineNumber-i].push(new C.IndentGuide(R,-1,m,new C.IndentGuideHorizontalLine(!1,S.column),-1,-1)),E.lineNumber<=t&&N>R&&l[E.lineNumber-i].push(new C.IndentGuide(R,-1,m,new C.IndentGuideHorizontalLine(!F,E.column),-1,-1)))}for(const _ of l)_.sort((p,m)=>p.visibleColumn-m.visibleColumn);return l}getVisibleColumnFromPosition(i){return k.CursorColumns.visibleColumnFromColumn(this.textModel.getLineContent(i.lineNumber),i.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(i,t){this.assertNotDisposed();const o=this.textModel.getLineCount();if(i<1||i>o)throw new Error("Illegal value for startLineNumber");if(t<1||t>o)throw new Error("Illegal value for endLineNumber");const s=this.textModel.getOptions(),d=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,l=!!(d&&d.offSide),a=new Array(t-i+1);let r=-2,c=-1,g=-2,f=-1;for(let _=i;_<=t;_++){const p=_-i,m=this._computeIndentLevel(_-1);if(m>=0){r=_-1,c=m,a[p]=Math.ceil(m/s.indentSize);continue}if(r===-2){r=-1,c=-1;for(let S=_-2;S>=0;S--){const E=this._computeIndentLevel(S);if(E>=0){r=S,c=E;break}}}if(g!==-1&&(g===-2||g<_-1)){g=-1,f=-1;for(let S=_;S<o;S++){const E=this._computeIndentLevel(S);if(E>=0){g=S,f=E;break}}}a[p]=this._getIndentLevelForWhitespaceLine(l,c,f)}return a}_getIndentLevelForWhitespaceLine(i,t,o){const s=this.textModel.getOptions();return t===-1||o===-1?0:t<o?1+Math.floor(t/s.indentSize):t===o||i?Math.ceil(o/s.indentSize):1+Math.floor(o/s.indentSize)}}e.GuidesTextModelPart=h;class u{constructor(){this.activeClassName="indent-active"}getInlineClassName(i,t,o){return this.getInlineClassNameOfLevel(o?t:i)}getInlineClassNameOfLevel(i){return`bracket-indent-guide lvl-${i%30}`}}e.BracketPairGuidesClassNames=u}),define(oe[429],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContiguousMultilineTokens=void 0;class y{constructor(k,D){this._startLineNumber=k,this._tokens=D}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._startLineNumber+this._tokens.length-1}getLineTokens(k){return this._tokens[k-this._startLineNumber]}appendLineTokens(k){this._tokens.push(k)}}e.ContiguousMultilineTokens=y}),define(oe[430],se([1,0,429]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContiguousMultilineTokensBuilder=void 0;class v{constructor(){this._tokens=[]}add(D,w){if(this._tokens.length>0){const b=this._tokens[this._tokens.length-1];if(b.endLineNumber+1===D){b.appendLineTokens(w);return}}this._tokens.push(new y.ContiguousMultilineTokens(D,[w]))}finalize(){return this._tokens}}e.ContiguousMultilineTokensBuilder=v}),define(oe[82],se([1,0,109]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LineTokens=void 0;class v{constructor(w,b,C){this._lineTokensBrand=void 0,this._tokens=w,this._tokensCount=this._tokens.length>>>1,this._text=b,this._languageIdCodec=C}static createEmpty(w,b){const C=v.defaultTokenMetadata,h=new Uint32Array(2);return h[0]=w.length,h[1]=C,new v(h,w,b)}equals(w){return w instanceof v?this.slicedEquals(w,0,this._tokensCount):!1}slicedEquals(w,b,C){if(this._text!==w._text||this._tokensCount!==w._tokensCount)return!1;const h=b<<1,u=h+(C<<1);for(let n=h;n<u;n++)if(this._tokens[n]!==w._tokens[n])return!1;return!0}getLineContent(){return this._text}getCount(){return this._tokensCount}getStartOffset(w){return w>0?this._tokens[w-1<<1]:0}getMetadata(w){return this._tokens[(w<<1)+1]}getLanguageId(w){const b=this._tokens[(w<<1)+1],C=y.TokenMetadata.getLanguageId(b);return this._languageIdCodec.decodeLanguageId(C)}getStandardTokenType(w){const b=this._tokens[(w<<1)+1];return y.TokenMetadata.getTokenType(b)}getForeground(w){const b=this._tokens[(w<<1)+1];return y.TokenMetadata.getForeground(b)}getClassName(w){const b=this._tokens[(w<<1)+1];return y.TokenMetadata.getClassNameFromMetadata(b)}getInlineStyle(w,b){const C=this._tokens[(w<<1)+1];return y.TokenMetadata.getInlineStyleFromMetadata(C,b)}getPresentation(w){const b=this._tokens[(w<<1)+1];return y.TokenMetadata.getPresentationFromMetadata(b)}getEndOffset(w){return this._tokens[w<<1]}findTokenIndexAtOffset(w){return v.findIndexInTokensArray(this._tokens,w)}inflate(){return this}sliceAndInflate(w,b,C){return new k(this,w,b,C)}static convertToEndOffset(w,b){const C=(w.length>>>1)-1;for(let h=0;h<C;h++)w[h<<1]=w[h+1<<1];w[C<<1]=b}static findIndexInTokensArray(w,b){if(w.length<=2)return 0;let C=0,h=(w.length>>>1)-1;for(;C<h;){const u=C+Math.floor((h-C)/2),n=w[u<<1];if(n===b)return u+1;n<b?C=u+1:n>b&&(h=u)}return C}withInserted(w){if(w.length===0)return this;let b=0,C=0,h="";const u=new Array;let n=0;for(;;){const i=b<this._tokensCount?this._tokens[b<<1]:-1,t=C<w.length?w[C]:null;if(i!==-1&&(t===null||i<=t.offset)){h+=this._text.substring(n,i);const o=this._tokens[(b<<1)+1];u.push(h.length,o),b++,n=i}else if(t){if(t.offset>n){h+=this._text.substring(n,t.offset);const o=this._tokens[(b<<1)+1];u.push(h.length,o),n=t.offset}h+=t.text,u.push(h.length,t.tokenMetadata),C++}else break}return new v(new Uint32Array(u),h,this._languageIdCodec)}}e.LineTokens=v,v.defaultTokenMetadata=(32768|2<<24)>>>0;class k{constructor(w,b,C,h){this._source=w,this._startOffset=b,this._endOffset=C,this._deltaOffset=h,this._firstTokenIndex=w.findTokenIndexAtOffset(b),this._tokensCount=0;for(let u=this._firstTokenIndex,n=w.getCount();u<n&&!(w.getStartOffset(u)>=C);u++)this._tokensCount++}getMetadata(w){return this._source.getMetadata(this._firstTokenIndex+w)}getLanguageId(w){return this._source.getLanguageId(this._firstTokenIndex+w)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(w){return w instanceof k?this._startOffset===w._startOffset&&this._endOffset===w._endOffset&&this._deltaOffset===w._deltaOffset&&this._source.slicedEquals(w._source,this._firstTokenIndex,this._tokensCount):!1}getCount(){return this._tokensCount}getForeground(w){return this._source.getForeground(this._firstTokenIndex+w)}getEndOffset(w){const b=this._source.getEndOffset(this._firstTokenIndex+w);return Math.min(this._endOffset,b)-this._startOffset+this._deltaOffset}getClassName(w){return this._source.getClassName(this._firstTokenIndex+w)}getInlineStyle(w,b){return this._source.getInlineStyle(this._firstTokenIndex+w,b)}getPresentation(w){return this._source.getPresentation(this._firstTokenIndex+w)}findTokenIndexAtOffset(w){return this._source.findTokenIndexAtOffset(w+this._startOffset-this._deltaOffset)-this._firstTokenIndex}}}),define(oe[431],se([1,0,82]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toUint32Array=e.ContiguousTokensEditing=e.EMPTY_LINE_TOKENS=void 0,e.EMPTY_LINE_TOKENS=new Uint32Array(0).buffer;class v{static deleteBeginning(w,b){return w===null||w===e.EMPTY_LINE_TOKENS?w:v.delete(w,0,b)}static deleteEnding(w,b){if(w===null||w===e.EMPTY_LINE_TOKENS)return w;const C=k(w),h=C[C.length-2];return v.delete(w,b,h)}static delete(w,b,C){if(w===null||w===e.EMPTY_LINE_TOKENS||b===C)return w;const h=k(w),u=h.length>>>1;if(b===0&&h[h.length-2]===C)return e.EMPTY_LINE_TOKENS;const n=y.LineTokens.findIndexInTokensArray(h,b),i=n>0?h[n-1<<1]:0,t=h[n<<1];if(C<t){const a=C-b;for(let r=n;r<u;r++)h[r<<1]-=a;return w}let o,s;i!==b?(h[n<<1]=b,o=n+1<<1,s=b):(o=n<<1,s=i);const d=C-b;for(let a=n+1;a<u;a++){const r=h[a<<1]-d;r>s&&(h[o++]=r,h[o++]=h[(a<<1)+1],s=r)}if(o===h.length)return w;const l=new Uint32Array(o);return l.set(h.subarray(0,o),0),l.buffer}static append(w,b){if(b===e.EMPTY_LINE_TOKENS)return w;if(w===e.EMPTY_LINE_TOKENS)return b;if(w===null)return w;if(b===null)return null;const C=k(w),h=k(b),u=h.length>>>1,n=new Uint32Array(C.length+h.length);n.set(C,0);let i=C.length;const t=C[C.length-2];for(let o=0;o<u;o++)n[i++]=h[o<<1]+t,n[i++]=h[(o<<1)+1];return n.buffer}static insert(w,b,C){if(w===null||w===e.EMPTY_LINE_TOKENS)return w;const h=k(w),u=h.length>>>1;let n=y.LineTokens.findIndexInTokensArray(h,b);n>0&&h[n-1<<1]===b&&n--;for(let i=n;i<u;i++)h[i<<1]+=C;return w}}e.ContiguousTokensEditing=v;function k(D){return D instanceof Uint32Array?D:new Uint32Array(D)}e.toUint32Array=k}),define(oe[432],se([1,0,18,11,431,82,109]),function(q,e,y,v,k,D,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContiguousTokensStore=void 0;class b{constructor(u){this._lineTokens=[],this._len=0,this._languageIdCodec=u}flush(){this._lineTokens=[],this._len=0}getTokens(u,n,i){let t=null;if(n<this._len&&(t=this._lineTokens[n]),t!==null&&t!==k.EMPTY_LINE_TOKENS)return new D.LineTokens((0,k.toUint32Array)(t),i,this._languageIdCodec);const o=new Uint32Array(2);return o[0]=i.length,o[1]=C(this._languageIdCodec.encodeLanguageId(u)),new D.LineTokens(o,i,this._languageIdCodec)}static _massageTokens(u,n,i){const t=i?(0,k.toUint32Array)(i):null;if(n===0){let o=!1;if(t&&t.length>1&&(o=w.TokenMetadata.getLanguageId(t[1])!==u),!o)return k.EMPTY_LINE_TOKENS}if(!t||t.length===0){const o=new Uint32Array(2);return o[0]=n,o[1]=C(u),o.buffer}return t[t.length-2]=n,t.byteOffset===0&&t.byteLength===t.buffer.byteLength?t.buffer:t}_ensureLine(u){for(;u>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(u,n){n!==0&&(u+n>this._len&&(n=this._len-u),this._lineTokens.splice(u,n),this._len-=n)}_insertLines(u,n){if(n===0)return;const i=[];for(let t=0;t<n;t++)i[t]=null;this._lineTokens=y.arrayInsert(this._lineTokens,u,i),this._len+=n}setTokens(u,n,i,t,o){const s=b._massageTokens(this._languageIdCodec.encodeLanguageId(u),i,t);this._ensureLine(n);const d=this._lineTokens[n];return this._lineTokens[n]=s,o?!b._equals(d,s):!1}static _equals(u,n){if(!u||!n)return!u&&!n;const i=(0,k.toUint32Array)(u),t=(0,k.toUint32Array)(n);if(i.length!==t.length)return!1;for(let o=0,s=i.length;o<s;o++)if(i[o]!==t[o])return!1;return!0}acceptEdit(u,n,i){this._acceptDeleteRange(u),this._acceptInsertText(new v.Position(u.startLineNumber,u.startColumn),n,i)}_acceptDeleteRange(u){const n=u.startLineNumber-1;if(n>=this._len)return;if(u.startLineNumber===u.endLineNumber){if(u.startColumn===u.endColumn)return;this._lineTokens[n]=k.ContiguousTokensEditing.delete(this._lineTokens[n],u.startColumn-1,u.endColumn-1);return}this._lineTokens[n]=k.ContiguousTokensEditing.deleteEnding(this._lineTokens[n],u.startColumn-1);const i=u.endLineNumber-1;let t=null;i<this._len&&(t=k.ContiguousTokensEditing.deleteBeginning(this._lineTokens[i],u.endColumn-1)),this._lineTokens[n]=k.ContiguousTokensEditing.append(this._lineTokens[n],t),this._deleteLines(u.startLineNumber,u.endLineNumber-u.startLineNumber)}_acceptInsertText(u,n,i){if(n===0&&i===0)return;const t=u.lineNumber-1;if(!(t>=this._len)){if(n===0){this._lineTokens[t]=k.ContiguousTokensEditing.insert(this._lineTokens[t],u.column-1,i);return}this._lineTokens[t]=k.ContiguousTokensEditing.deleteEnding(this._lineTokens[t],u.column-1),this._lineTokens[t]=k.ContiguousTokensEditing.insert(this._lineTokens[t],u.column-1,i),this._insertLines(u.lineNumber,n)}}}e.ContiguousTokensStore=b;function C(h){return(h<<0|0|0|32768|2<<24|1024)>>>0}}),define(oe[433],se([1,0,11,3,126]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SparseLineTokens=e.SparseMultilineTokens=void 0;class D{constructor(h,u){this._startLineNumber=h,this._tokens=u,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}static create(h,u){return new D(h,new w(u))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(h){return this._startLineNumber<=h&&h<=this._endLineNumber?this._tokens.getLineTokens(h-this._startLineNumber):null}getRange(){const h=this._tokens.getRange();return h&&new v.Range(this._startLineNumber+h.startLineNumber,h.startColumn,this._startLineNumber+h.endLineNumber,h.endColumn)}removeTokens(h){const u=h.startLineNumber-this._startLineNumber,n=h.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(u,h.startColumn-1,n,h.endColumn-1),this._updateEndLineNumber()}split(h){const u=h.startLineNumber-this._startLineNumber,n=h.endLineNumber-this._startLineNumber,[i,t,o]=this._tokens.split(u,h.startColumn-1,n,h.endColumn-1);return[new D(this._startLineNumber,i),new D(this._startLineNumber+o,t)]}applyEdit(h,u){const[n,i,t]=(0,k.countEOL)(u);this.acceptEdit(h,n,i,t,u.length>0?u.charCodeAt(0):0)}acceptEdit(h,u,n,i,t){this._acceptDeleteRange(h),this._acceptInsertText(new y.Position(h.startLineNumber,h.startColumn),u,n,i,t),this._updateEndLineNumber()}_acceptDeleteRange(h){if(h.startLineNumber===h.endLineNumber&&h.startColumn===h.endColumn)return;const u=h.startLineNumber-this._startLineNumber,n=h.endLineNumber-this._startLineNumber;if(n<0){const t=n-u;this._startLineNumber-=t;return}const i=this._tokens.getMaxDeltaLine();if(!(u>=i+1)){if(u<0&&n>=i+1){this._startLineNumber=0,this._tokens.clear();return}if(u<0){const t=-u;this._startLineNumber-=t,this._tokens.acceptDeleteRange(h.startColumn-1,0,0,n,h.endColumn-1)}else this._tokens.acceptDeleteRange(0,u,h.startColumn-1,n,h.endColumn-1)}}_acceptInsertText(h,u,n,i,t){if(u===0&&n===0)return;const o=h.lineNumber-this._startLineNumber;if(o<0){this._startLineNumber+=u;return}const s=this._tokens.getMaxDeltaLine();o>=s+1||this._tokens.acceptInsertText(o,h.column-1,u,n,i,t)}}e.SparseMultilineTokens=D;class w{constructor(h){this._tokens=h,this._tokenCount=h.length/4}toString(h){const u=[];for(let n=0;n<this._tokenCount;n++)u.push(`(${this._getDeltaLine(n)+h},${this._getStartCharacter(n)}-${this._getEndCharacter(n)})`);return`[${u.join(",")}]`}getMaxDeltaLine(){const h=this._getTokenCount();return h===0?-1:this._getDeltaLine(h-1)}getRange(){const h=this._getTokenCount();if(h===0)return null;const u=this._getStartCharacter(0),n=this._getDeltaLine(h-1),i=this._getEndCharacter(h-1);return new v.Range(0,u+1,n,i+1)}_getTokenCount(){return this._tokenCount}_getDeltaLine(h){return this._tokens[4*h]}_getStartCharacter(h){return this._tokens[4*h+1]}_getEndCharacter(h){return this._tokens[4*h+2]}isEmpty(){return this._getTokenCount()===0}getLineTokens(h){let u=0,n=this._getTokenCount()-1;for(;u<n;){const i=u+Math.floor((n-u)/2),t=this._getDeltaLine(i);if(t<h)u=i+1;else if(t>h)n=i-1;else{let o=i;for(;o>u&&this._getDeltaLine(o-1)===h;)o--;let s=i;for(;s<n&&this._getDeltaLine(s+1)===h;)s++;return new b(this._tokens.subarray(4*o,4*s+4))}}return this._getDeltaLine(u)===h?new b(this._tokens.subarray(4*u,4*u+4)):null}clear(){this._tokenCount=0}removeTokens(h,u,n,i){const t=this._tokens,o=this._tokenCount;let s=0,d=!1,l=0;for(let a=0;a<o;a++){const r=4*a,c=t[r],g=t[r+1],f=t[r+2],_=t[r+3];if((c>h||c===h&&f>=u)&&(c<n||c===n&&g<=i))d=!0;else{if(s===0&&(l=c),d){const p=4*s;t[p]=c-l,t[p+1]=g,t[p+2]=f,t[p+3]=_}s++}}return this._tokenCount=s,l}split(h,u,n,i){const t=this._tokens,o=this._tokenCount,s=[],d=[];let l=s,a=0,r=0;for(let c=0;c<o;c++){const g=4*c,f=t[g],_=t[g+1],p=t[g+2],m=t[g+3];if(f>h||f===h&&p>=u){if(f<n||f===n&&_<=i)continue;l!==d&&(l=d,a=0,r=f)}l[a++]=f-r,l[a++]=_,l[a++]=p,l[a++]=m}return[new w(new Uint32Array(s)),new w(new Uint32Array(d)),r]}acceptDeleteRange(h,u,n,i,t){const o=this._tokens,s=this._tokenCount,d=i-u;let l=0,a=!1;for(let r=0;r<s;r++){const c=4*r;let g=o[c],f=o[c+1],_=o[c+2];const p=o[c+3];if(g<u||g===u&&_<=n){l++;continue}else if(g===u&&f<n)g===i&&_>t?_-=t-n:_=n;else if(g===u&&f===n)if(g===i&&_>t)_-=t-n;else{a=!0;continue}else if(g<i||g===i&&f<t)if(g===i&&_>t)g===u?(f=n,_=f+(_-t)):(f=0,_=f+(_-t));else{a=!0;continue}else if(g>i){if(d===0&&!a){l=s;break}g-=d}else if(g===i&&f>=t)h&&g===0&&(f+=h,_+=h),g-=d,f-=t-n,_-=t-n;else throw new Error("Not possible!");const m=4*l;o[m]=g,o[m+1]=f,o[m+2]=_,o[m+3]=p,l++}this._tokenCount=l}acceptInsertText(h,u,n,i,t,o){const s=n===0&&i===1&&(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122),d=this._tokens,l=this._tokenCount;for(let a=0;a<l;a++){const r=4*a;let c=d[r],g=d[r+1],f=d[r+2];if(!(c<h||c===h&&f<u)){if(c===h&&f===u)if(s)f+=1;else continue;else if(c===h&&g<u&&u<f)n===0?f+=i:f=u;else{if(c===h&&g===u&&s)continue;if(c===h)if(c+=n,n===0)g+=i,f+=i;else{const _=f-g;g=t+(g-u),f=g+_}else c+=n}d[r]=c,d[r+1]=g,d[r+2]=f}}}}class b{constructor(h){this._tokens=h}getCount(){return this._tokens.length/4}getStartCharacter(h){return this._tokens[4*h+1]}getEndCharacter(h){return this._tokens[4*h+2]}getMetadata(h){return this._tokens[4*h+3]}}e.SparseLineTokens=b}),define(oe[434],se([1,0,18,82]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SparseTokensStore=void 0;class k{constructor(w){this._pieces=[],this._isComplete=!1,this._languageIdCodec=w}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return this._pieces.length===0}set(w,b){this._pieces=w||[],this._isComplete=b}setPartial(w,b){let C=w;if(b.length>0){const u=b[0].getRange(),n=b[b.length-1].getRange();if(!u||!n)return w;C=w.plusRange(u).plusRange(n)}let h=null;for(let u=0,n=this._pieces.length;u<n;u++){const i=this._pieces[u];if(i.endLineNumber<C.startLineNumber)continue;if(i.startLineNumber>C.endLineNumber){h=h||{index:u};break}if(i.removeTokens(C),i.isEmpty()){this._pieces.splice(u,1),u--,n--;continue}if(i.endLineNumber<C.startLineNumber)continue;if(i.startLineNumber>C.endLineNumber){h=h||{index:u};continue}const[t,o]=i.split(C);if(t.isEmpty()){h=h||{index:u};continue}o.isEmpty()||(this._pieces.splice(u,1,t,o),u++,n++,h=h||{index:u})}return h=h||{index:this._pieces.length},b.length>0&&(this._pieces=y.arrayInsert(this._pieces,h.index,b)),C}isComplete(){return this._isComplete}addSparseTokens(w,b){if(b.getLineContent().length===0)return b;const C=this._pieces;if(C.length===0)return b;const h=k._findFirstPieceWithLine(C,w),u=C[h].getLineTokens(w);if(!u)return b;const n=b.getCount(),i=u.getCount();let t=0;const o=[];let s=0,d=0;const l=(a,r)=>{a!==d&&(d=a,o[s++]=a,o[s++]=r)};for(let a=0;a<i;a++){const r=u.getStartCharacter(a),c=u.getEndCharacter(a),g=u.getMetadata(a),f=((g&1?2048:0)|(g&2?4096:0)|(g&4?8192:0)|(g&8?16384:0)|(g&16?16744448:0)|(g&32?4278190080:0))>>>0,_=~f>>>0;for(;t<n&&b.getEndOffset(t)<=r;)l(b.getEndOffset(t),b.getMetadata(t)),t++;for(t<n&&b.getStartOffset(t)<r&&l(r,b.getMetadata(t));t<n&&b.getEndOffset(t)<c;)l(b.getEndOffset(t),b.getMetadata(t)&_|g&f),t++;if(t<n)l(c,b.getMetadata(t)&_|g&f),b.getEndOffset(t)===c&&t++;else{const p=Math.min(Math.max(0,t-1),n-1);l(c,b.getMetadata(p)&_|g&f)}}for(;t<n;)l(b.getEndOffset(t),b.getMetadata(t)),t++;return new v.LineTokens(new Uint32Array(o),b.getLineContent(),this._languageIdCodec)}static _findFirstPieceWithLine(w,b){let C=0,h=w.length-1;for(;C<h;){let u=C+Math.floor((h-C)/2);if(w[u].endLineNumber<b)C=u+1;else if(w[u].startLineNumber>b)h=u-1;else{for(;u>C&&w[u-1].startLineNumber<=b&&b<=w[u-1].endLineNumber;)u--;return u}}return C}acceptEdit(w,b,C,h,u){for(const n of this._pieces)n.acceptEdit(w,b,C,h,u)}}e.SparseTokensStore=k}),define(oe[129],se([1,0,2]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewEventHandler=void 0;class v extends y.Disposable{constructor(){super(),this._shouldRender=!0}shouldRender(){return this._shouldRender}forceShouldRender(){this._shouldRender=!0}setShouldRender(){this._shouldRender=!0}onDidRender(){this._shouldRender=!1}onCompositionStart(D){return!1}onCompositionEnd(D){return!1}onConfigurationChanged(D){return!1}onCursorStateChanged(D){return!1}onDecorationsChanged(D){return!1}onFlushed(D){return!1}onFocusChanged(D){return!1}onLanguageConfigurationChanged(D){return!1}onLineMappingChanged(D){return!1}onLinesChanged(D){return!1}onLinesDeleted(D){return!1}onLinesInserted(D){return!1}onRevealRangeRequest(D){return!1}onScrollChanged(D){return!1}onThemeChanged(D){return!1}onTokensChanged(D){return!1}onTokensColorsChanged(D){return!1}onZonesChanged(D){return!1}handleEvents(D){let w=!1;for(let b=0,C=D.length;b<C;b++){const h=D[b];switch(h.type){case 0:this.onCompositionStart(h)&&(w=!0);break;case 1:this.onCompositionEnd(h)&&(w=!0);break;case 2:this.onConfigurationChanged(h)&&(w=!0);break;case 3:this.onCursorStateChanged(h)&&(w=!0);break;case 4:this.onDecorationsChanged(h)&&(w=!0);break;case 5:this.onFlushed(h)&&(w=!0);break;case 6:this.onFocusChanged(h)&&(w=!0);break;case 7:this.onLanguageConfigurationChanged(h)&&(w=!0);break;case 8:this.onLineMappingChanged(h)&&(w=!0);break;case 9:this.onLinesChanged(h)&&(w=!0);break;case 10:this.onLinesDeleted(h)&&(w=!0);break;case 11:this.onLinesInserted(h)&&(w=!0);break;case 12:this.onRevealRangeRequest(h)&&(w=!0);break;case 13:this.onScrollChanged(h)&&(w=!0);break;case 15:this.onTokensChanged(h)&&(w=!0);break;case 14:this.onThemeChanged(h)&&(w=!0);break;case 16:this.onTokensColorsChanged(h)&&(w=!0);break;case 17:this.onZonesChanged(h)&&(w=!0);break;default:console.info("View received unknown event: "),console.info(h)}}w&&(this._shouldRender=!0)}}e.ViewEventHandler=v}),define(oe[112],se([1,0,129]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DynamicViewOverlay=void 0;class v extends y.ViewEventHandler{}e.DynamicViewOverlay=v}),define(oe[47],se([1,0,129]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PartFingerprints=e.ViewPart=void 0;class v extends y.ViewEventHandler{constructor(w){super(),this._context=w,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}}e.ViewPart=v;class k{static write(w,b){w.setAttribute("data-mprt",String(b))}static read(w){const b=w.getAttribute("data-mprt");return b===null?0:parseInt(b,10)}static collect(w,b){const C=[];let h=0;for(;w&&w!==document.body&&w!==b;)w.nodeType===w.ELEMENT_NODE&&(C[h++]=this.read(w)),w=w.parentElement;const u=new Uint8Array(h);for(let n=0;n<h;n++)u[n]=C[h-n-1];return u}}e.PartFingerprints=k}),define(oe[435],se([1,0,33,47,353]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BlockDecorations=void 0;class k extends v.ViewPart{constructor(w){super(w),this.blocks=[],this.contentWidth=-1,this.domNode=(0,y.createFastDomNode)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("blockDecorations-container"),this.update()}update(){let w=!1;const b=this._context.configuration.options.get(133),C=b.contentWidth-b.verticalScrollbarWidth;return this.contentWidth!==C&&(this.contentWidth=C,w=!0),w}dispose(){super.dispose()}onConfigurationChanged(w){return this.update()}onScrollChanged(w){return w.scrollTopChanged||w.scrollLeftChanged}onDecorationsChanged(w){return!0}onZonesChanged(w){return!0}prepareRender(w){}render(w){let b=0;const C=w.getDecorationsInViewport();for(const h of C){if(!h.options.blockClassName)continue;let u=this.blocks[b];u||(u=this.blocks[b]=(0,y.createFastDomNode)(document.createElement("div")),this.domNode.appendChild(u));const n=w.getVerticalOffsetForLineNumber(h.range.startLineNumber),i=w.getVerticalOffsetForLineNumber(h.range.endLineNumber+1);u.setClassName("blockDecorations-block "+h.options.blockClassName),u.setLeft(w.scrollLeft),u.setWidth(this.contentWidth),u.setTop(n),u.setHeight(i-n),b++}for(let h=b;h<this.blocks.length;h++)this.blocks[h].domNode.remove();this.blocks.length=b}}e.BlockDecorations=k}),define(oe[436],se([1,0,112,3,125,355]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DecorationsOverlay=void 0;class D extends y.DynamicViewOverlay{constructor(b){super(),this._context=b;const C=this._context.configuration.options;this._lineHeight=C.get(61),this._typicalHalfwidthCharacterWidth=C.get(46).typicalHalfwidthCharacterWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(b){const C=this._context.configuration.options;return this._lineHeight=C.get(61),this._typicalHalfwidthCharacterWidth=C.get(46).typicalHalfwidthCharacterWidth,!0}onDecorationsChanged(b){return!0}onFlushed(b){return!0}onLinesChanged(b){return!0}onLinesDeleted(b){return!0}onLinesInserted(b){return!0}onScrollChanged(b){return b.scrollTopChanged||b.scrollWidthChanged}onZonesChanged(b){return!0}prepareRender(b){const C=b.getDecorationsInViewport();let h=[],u=0;for(let o=0,s=C.length;o<s;o++){const d=C[o];d.options.className&&(h[u++]=d)}h=h.sort((o,s)=>{if(o.options.zIndex<s.options.zIndex)return-1;if(o.options.zIndex>s.options.zIndex)return 1;const d=o.options.className,l=s.options.className;return d<l?-1:d>l?1:v.Range.compareRangesUsingStarts(o.range,s.range)});const n=b.visibleRange.startLineNumber,i=b.visibleRange.endLineNumber,t=[];for(let o=n;o<=i;o++){const s=o-n;t[s]=""}this._renderWholeLineDecorations(b,h,t),this._renderNormalDecorations(b,h,t),this._renderResult=t}_renderWholeLineDecorations(b,C,h){const u=String(this._lineHeight),n=b.visibleRange.startLineNumber,i=b.visibleRange.endLineNumber;for(let t=0,o=C.length;t<o;t++){const s=C[t];if(!s.options.isWholeLine)continue;const d='<div class="cdr '+s.options.className+'" style="left:0;width:100%;height:'+u+'px;"></div>',l=Math.max(s.range.startLineNumber,n),a=Math.min(s.range.endLineNumber,i);for(let r=l;r<=a;r++){const c=r-n;h[c]+=d}}}_renderNormalDecorations(b,C,h){const u=String(this._lineHeight),n=b.visibleRange.startLineNumber;let i=null,t=!1,o=null;for(let s=0,d=C.length;s<d;s++){const l=C[s];if(l.options.isWholeLine)continue;const a=l.options.className,r=!!l.options.showIfCollapsed;let c=l.range;if(r&&c.endColumn===1&&c.endLineNumber!==c.startLineNumber&&(c=new v.Range(c.startLineNumber,c.startColumn,c.endLineNumber-1,this._context.viewModel.getLineMaxColumn(c.endLineNumber-1))),i===a&&t===r&&v.Range.areIntersectingOrTouching(o,c)){o=v.Range.plusRange(o,c);continue}i!==null&&this._renderNormalDecoration(b,o,i,t,u,n,h),i=a,t=r,o=c}i!==null&&this._renderNormalDecoration(b,o,i,t,u,n,h)}_renderNormalDecoration(b,C,h,u,n,i,t){const o=b.linesVisibleRangesForRange(C,h==="findMatch");if(o)for(let s=0,d=o.length;s<d;s++){const l=o[s];if(l.outsideRenderedLine)continue;const a=l.lineNumber-i;if(u&&l.ranges.length===1){const r=l.ranges[0];if(r.width<this._typicalHalfwidthCharacterWidth){const c=Math.round(r.left+r.width/2),g=Math.max(0,Math.round(c-this._typicalHalfwidthCharacterWidth/2));l.ranges[0]=new k.HorizontalRange(g,this._typicalHalfwidthCharacterWidth)}}for(let r=0,c=l.ranges.length;r<c;r++){const g=l.ranges[r],f='<div class="cdr '+h+'" style="left:'+String(g.left)+"px;width:"+String(g.width)+"px;height:"+n+'px;"></div>';t[a]+=f}}}render(b,C){if(!this._renderResult)return"";const h=C-b;return h<0||h>=this._renderResult.length?"":this._renderResult[h]}}e.DecorationsOverlay=D}),define(oe[186],se([1,0,112,356]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GlyphMarginOverlay=e.DedupOverlay=e.DecorationToRender=void 0;class v{constructor(b,C,h){this._decorationToRenderBrand=void 0,this.startLineNumber=+b,this.endLineNumber=+C,this.className=String(h)}}e.DecorationToRender=v;class k extends y.DynamicViewOverlay{_render(b,C,h){const u=[];for(let t=b;t<=C;t++){const o=t-b;u[o]=[]}if(h.length===0)return u;h.sort((t,o)=>t.className===o.className?t.startLineNumber===o.startLineNumber?t.endLineNumber-o.endLineNumber:t.startLineNumber-o.startLineNumber:t.className<o.className?-1:1);let n=null,i=0;for(let t=0,o=h.length;t<o;t++){const s=h[t],d=s.className;let l=Math.max(s.startLineNumber,b)-b;const a=Math.min(s.endLineNumber,C)-b;n===d?(l=Math.max(i+1,l),i=Math.max(i,a)):(n=d,i=a);for(let r=l;r<=i;r++)u[r].push(n)}return u}}e.DedupOverlay=k;class D extends k{constructor(b){super(),this._context=b;const C=this._context.configuration.options,h=C.get(133);this._lineHeight=C.get(61),this._glyphMargin=C.get(52),this._glyphMarginLeft=h.glyphMarginLeft,this._glyphMarginWidth=h.glyphMarginWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(b){const C=this._context.configuration.options,h=C.get(133);return this._lineHeight=C.get(61),this._glyphMargin=C.get(52),this._glyphMarginLeft=h.glyphMarginLeft,this._glyphMarginWidth=h.glyphMarginWidth,!0}onDecorationsChanged(b){return!0}onFlushed(b){return!0}onLinesChanged(b){return!0}onLinesDeleted(b){return!0}onLinesInserted(b){return!0}onScrollChanged(b){return b.scrollTopChanged}onZonesChanged(b){return!0}_getDecorations(b){const C=b.getDecorationsInViewport(),h=[];let u=0;for(let n=0,i=C.length;n<i;n++){const t=C[n],o=t.options.glyphMarginClassName;o&&(h[u++]=new v(t.range.startLineNumber,t.range.endLineNumber,o))}return h}prepareRender(b){if(!this._glyphMargin){this._renderResult=null;return}const C=b.visibleRange.startLineNumber,h=b.visibleRange.endLineNumber,u=this._render(C,h,this._getDecorations(b)),n=this._lineHeight.toString(),i=this._glyphMarginLeft.toString(),t=this._glyphMarginWidth.toString(),o='" style="left:'+i+"px;width:"+t+"px;height:"+n+'px;"></div>',s=[];for(let d=C;d<=h;d++){const l=d-C,a=u[l];a.length===0?s[l]="":s[l]='<div class="cgmr codicon '+a.join(" ")+o}this._renderResult=s}render(b,C){if(!this._renderResult)return"";const h=C-b;return h<0||h>=this._renderResult.length?"":this._renderResult[h]}}e.GlyphMarginOverlay=D}),define(oe[437],se([1,0,186,360]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinesDecorationsOverlay=void 0;class v extends y.DedupOverlay{constructor(D){super(),this._context=D;const w=this._context.configuration.options.get(133);this._decorationsLeft=w.decorationsLeft,this._decorationsWidth=w.decorationsWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(D){const w=this._context.configuration.options.get(133);return this._decorationsLeft=w.decorationsLeft,this._decorationsWidth=w.decorationsWidth,!0}onDecorationsChanged(D){return!0}onFlushed(D){return!0}onLinesChanged(D){return!0}onLinesDeleted(D){return!0}onLinesInserted(D){return!0}onScrollChanged(D){return D.scrollTopChanged}onZonesChanged(D){return!0}_getDecorations(D){const w=D.getDecorationsInViewport(),b=[];let C=0;for(let h=0,u=w.length;h<u;h++){const n=w[h],i=n.options.linesDecorationsClassName;i&&(b[C++]=new y.DecorationToRender(n.range.startLineNumber,n.range.endLineNumber,i));const t=n.options.firstLineDecorationClassName;t&&(b[C++]=new y.DecorationToRender(n.range.startLineNumber,n.range.startLineNumber,t))}return b}prepareRender(D){const w=D.visibleRange.startLineNumber,b=D.visibleRange.endLineNumber,C=this._render(w,b,this._getDecorations(D)),h=this._decorationsLeft.toString(),u=this._decorationsWidth.toString(),n='" style="left:'+h+"px;width:"+u+'px;"></div>',i=[];for(let t=w;t<=b;t++){const o=t-w,s=C[o];let d="";for(let l=0,a=s.length;l<a;l++)d+='<div class="cldr '+s[l]+n;i[o]=d}this._renderResult=i}render(D,w){return this._renderResult?this._renderResult[w-D]:""}}e.LinesDecorationsOverlay=v}),define(oe[244],se([1,0,33,47]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Margin=void 0;class k extends v.ViewPart{constructor(w){super(w);const b=this._context.configuration.options,C=b.get(133);this._canUseLayerHinting=!b.get(28),this._contentLeft=C.contentLeft,this._glyphMarginLeft=C.glyphMarginLeft,this._glyphMarginWidth=C.glyphMarginWidth,this._domNode=(0,y.createFastDomNode)(document.createElement("div")),this._domNode.setClassName(k.OUTER_CLASS_NAME),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._glyphMarginBackgroundDomNode=(0,y.createFastDomNode)(document.createElement("div")),this._glyphMarginBackgroundDomNode.setClassName(k.CLASS_NAME),this._domNode.appendChild(this._glyphMarginBackgroundDomNode)}dispose(){super.dispose()}getDomNode(){return this._domNode}onConfigurationChanged(w){const b=this._context.configuration.options,C=b.get(133);return this._canUseLayerHinting=!b.get(28),this._contentLeft=C.contentLeft,this._glyphMarginLeft=C.glyphMarginLeft,this._glyphMarginWidth=C.glyphMarginWidth,!0}onScrollChanged(w){return super.onScrollChanged(w)||w.scrollTopChanged}prepareRender(w){}render(w){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");const b=w.scrollTop-w.bigNumbersDelta;this._domNode.setTop(-b);const C=Math.min(w.scrollHeight,1e6);this._domNode.setHeight(C),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(C)}}e.Margin=k,k.CLASS_NAME="glyph-margin",k.OUTER_CLASS_NAME="margin"}),define(oe[438],se([1,0,186,361]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MarginViewLineDecorationsOverlay=void 0;class v extends y.DedupOverlay{constructor(D){super(),this._context=D,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(D){return!0}onDecorationsChanged(D){return!0}onFlushed(D){return!0}onLinesChanged(D){return!0}onLinesDeleted(D){return!0}onLinesInserted(D){return!0}onScrollChanged(D){return D.scrollTopChanged}onZonesChanged(D){return!0}_getDecorations(D){const w=D.getDecorationsInViewport(),b=[];let C=0;for(let h=0,u=w.length;h<u;h++){const n=w[h],i=n.options.marginClassName;i&&(b[C++]=new y.DecorationToRender(n.range.startLineNumber,n.range.endLineNumber,i))}return b}prepareRender(D){const w=D.visibleRange.startLineNumber,b=D.visibleRange.endLineNumber,C=this._render(w,b,this._getDecorations(D)),h=[];for(let u=w;u<=b;u++){const n=u-w,i=C[n];let t="";for(let o=0,s=i.length;o<s;o++)t+='<div class="cmdr '+i[o]+'" style=""></div>';h[n]=t}this._renderResult=h}render(D,w){return this._renderResult?this._renderResult[w-D]:""}}e.MarginViewLineDecorationsOverlay=v}),define(oe[439],se([1,0,33,47,363]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewOverlayWidgets=void 0;class k extends v.ViewPart{constructor(w){super(w);const b=this._context.configuration.options.get(133);this._widgets={},this._verticalScrollbarWidth=b.verticalScrollbarWidth,this._minimapWidth=b.minimap.minimapWidth,this._horizontalScrollbarHeight=b.horizontalScrollbarHeight,this._editorHeight=b.height,this._editorWidth=b.width,this._domNode=(0,y.createFastDomNode)(document.createElement("div")),v.PartFingerprints.write(this._domNode,4),this._domNode.setClassName("overlayWidgets")}dispose(){super.dispose(),this._widgets={}}getDomNode(){return this._domNode}onConfigurationChanged(w){const b=this._context.configuration.options.get(133);return this._verticalScrollbarWidth=b.verticalScrollbarWidth,this._minimapWidth=b.minimap.minimapWidth,this._horizontalScrollbarHeight=b.horizontalScrollbarHeight,this._editorHeight=b.height,this._editorWidth=b.width,!0}addWidget(w){const b=(0,y.createFastDomNode)(w.getDomNode());this._widgets[w.getId()]={widget:w,preference:null,domNode:b},b.setPosition("absolute"),b.setAttribute("widgetId",w.getId()),this._domNode.appendChild(b),this.setShouldRender()}setWidgetPosition(w,b){const C=this._widgets[w.getId()];return C.preference===b?!1:(C.preference=b,this.setShouldRender(),!0)}removeWidget(w){const b=w.getId();if(this._widgets.hasOwnProperty(b)){const C=this._widgets[b].domNode.domNode;delete this._widgets[b],C.parentNode.removeChild(C),this.setShouldRender()}}_renderWidget(w){const b=w.domNode;if(w.preference===null){b.setTop("");return}if(w.preference===0)b.setTop(0),b.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(w.preference===1){const C=b.domNode.clientHeight;b.setTop(this._editorHeight-C-2*this._horizontalScrollbarHeight),b.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else w.preference===2&&(b.setTop(0),b.domNode.style.right="50%")}prepareRender(w){}render(w){this._domNode.setWidth(this._editorWidth);const b=Object.keys(this._widgets);for(let C=0,h=b.length;C<h;C++){const u=b[C];this._renderWidget(this._widgets[u])}}}e.ViewOverlayWidgets=k}),define(oe[440],se([1,0,33,14,47,11]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewZones=void 0;const w=()=>{throw new Error("Invalid change accessor")};class b extends k.ViewPart{constructor(u){super(u);const n=this._context.configuration.options,i=n.get(133);this._lineHeight=n.get(61),this._contentWidth=i.contentWidth,this._contentLeft=i.contentLeft,this.domNode=(0,y.createFastDomNode)(document.createElement("div")),this.domNode.setClassName("view-zones"),this.domNode.setPosition("absolute"),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.marginDomNode=(0,y.createFastDomNode)(document.createElement("div")),this.marginDomNode.setClassName("margin-view-zones"),this.marginDomNode.setPosition("absolute"),this.marginDomNode.setAttribute("role","presentation"),this.marginDomNode.setAttribute("aria-hidden","true"),this._zones={}}dispose(){super.dispose(),this._zones={}}_recomputeWhitespacesProps(){const u=this._context.viewLayout.getWhitespaces(),n=new Map;for(const t of u)n.set(t.id,t);let i=!1;return this._context.viewModel.changeWhitespace(t=>{const o=Object.keys(this._zones);for(let s=0,d=o.length;s<d;s++){const l=o[s],a=this._zones[l],r=this._computeWhitespaceProps(a.delegate);a.isInHiddenArea=r.isInHiddenArea;const c=n.get(l);c&&(c.afterLineNumber!==r.afterViewLineNumber||c.height!==r.heightInPx)&&(t.changeOneWhitespace(l,r.afterViewLineNumber,r.heightInPx),this._safeCallOnComputedHeight(a.delegate,r.heightInPx),i=!0)}}),i}onConfigurationChanged(u){const n=this._context.configuration.options,i=n.get(133);return this._lineHeight=n.get(61),this._contentWidth=i.contentWidth,this._contentLeft=i.contentLeft,u.hasChanged(61)&&this._recomputeWhitespacesProps(),!0}onLineMappingChanged(u){return this._recomputeWhitespacesProps()}onLinesDeleted(u){return!0}onScrollChanged(u){return u.scrollTopChanged||u.scrollWidthChanged}onZonesChanged(u){return!0}onLinesInserted(u){return!0}_getZoneOrdinal(u){return typeof u.afterColumn<"u"?u.afterColumn:1e4}_computeWhitespaceProps(u){if(u.afterLineNumber===0)return{isInHiddenArea:!1,afterViewLineNumber:0,heightInPx:this._heightInPixels(u),minWidthInPx:this._minWidthInPixels(u)};let n;if(typeof u.afterColumn<"u")n=this._context.viewModel.model.validatePosition({lineNumber:u.afterLineNumber,column:u.afterColumn});else{const s=this._context.viewModel.model.validatePosition({lineNumber:u.afterLineNumber,column:1}).lineNumber;n=new D.Position(s,this._context.viewModel.model.getLineMaxColumn(s))}let i;n.column===this._context.viewModel.model.getLineMaxColumn(n.lineNumber)?i=this._context.viewModel.model.validatePosition({lineNumber:n.lineNumber+1,column:1}):i=this._context.viewModel.model.validatePosition({lineNumber:n.lineNumber,column:n.column+1});const t=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(n,u.afterColumnAffinity),o=this._context.viewModel.coordinatesConverter.modelPositionIsVisible(i);return{isInHiddenArea:!o,afterViewLineNumber:t.lineNumber,heightInPx:o?this._heightInPixels(u):0,minWidthInPx:this._minWidthInPixels(u)}}changeViewZones(u){let n=!1;return this._context.viewModel.changeWhitespace(i=>{const t={addZone:o=>(n=!0,this._addZone(i,o)),removeZone:o=>{!o||(n=this._removeZone(i,o)||n)},layoutZone:o=>{!o||(n=this._layoutZone(i,o)||n)}};C(u,t),t.addZone=w,t.removeZone=w,t.layoutZone=w}),n}_addZone(u,n){const i=this._computeWhitespaceProps(n),t={whitespaceId:u.insertWhitespace(i.afterViewLineNumber,this._getZoneOrdinal(n),i.heightInPx,i.minWidthInPx),delegate:n,isInHiddenArea:i.isInHiddenArea,isVisible:!1,domNode:(0,y.createFastDomNode)(n.domNode),marginDomNode:n.marginDomNode?(0,y.createFastDomNode)(n.marginDomNode):null};return this._safeCallOnComputedHeight(t.delegate,i.heightInPx),t.domNode.setPosition("absolute"),t.domNode.domNode.style.width="100%",t.domNode.setDisplay("none"),t.domNode.setAttribute("monaco-view-zone",t.whitespaceId),this.domNode.appendChild(t.domNode),t.marginDomNode&&(t.marginDomNode.setPosition("absolute"),t.marginDomNode.domNode.style.width="100%",t.marginDomNode.setDisplay("none"),t.marginDomNode.setAttribute("monaco-view-zone",t.whitespaceId),this.marginDomNode.appendChild(t.marginDomNode)),this._zones[t.whitespaceId]=t,this.setShouldRender(),t.whitespaceId}_removeZone(u,n){if(this._zones.hasOwnProperty(n)){const i=this._zones[n];return delete this._zones[n],u.removeWhitespace(i.whitespaceId),i.domNode.removeAttribute("monaco-visible-view-zone"),i.domNode.removeAttribute("monaco-view-zone"),i.domNode.domNode.parentNode.removeChild(i.domNode.domNode),i.marginDomNode&&(i.marginDomNode.removeAttribute("monaco-visible-view-zone"),i.marginDomNode.removeAttribute("monaco-view-zone"),i.marginDomNode.domNode.parentNode.removeChild(i.marginDomNode.domNode)),this.setShouldRender(),!0}return!1}_layoutZone(u,n){if(this._zones.hasOwnProperty(n)){const i=this._zones[n],t=this._computeWhitespaceProps(i.delegate);return i.isInHiddenArea=t.isInHiddenArea,u.changeOneWhitespace(i.whitespaceId,t.afterViewLineNumber,t.heightInPx),this._safeCallOnComputedHeight(i.delegate,t.heightInPx),this.setShouldRender(),!0}return!1}shouldSuppressMouseDownOnViewZone(u){return this._zones.hasOwnProperty(u)?!!this._zones[u].delegate.suppressMouseDown:!1}_heightInPixels(u){return typeof u.heightInPx=="number"?u.heightInPx:typeof u.heightInLines=="number"?this._lineHeight*u.heightInLines:this._lineHeight}_minWidthInPixels(u){return typeof u.minWidthInPx=="number"?u.minWidthInPx:0}_safeCallOnComputedHeight(u,n){if(typeof u.onComputedHeight=="function")try{u.onComputedHeight(n)}catch(i){(0,v.onUnexpectedError)(i)}}_safeCallOnDomNodeTop(u,n){if(typeof u.onDomNodeTop=="function")try{u.onDomNodeTop(n)}catch(i){(0,v.onUnexpectedError)(i)}}prepareRender(u){}render(u){const n=u.viewportData.whitespaceViewportData,i={};let t=!1;for(const s of n)this._zones[s.id].isInHiddenArea||(i[s.id]=s,t=!0);const o=Object.keys(this._zones);for(let s=0,d=o.length;s<d;s++){const l=o[s],a=this._zones[l];let r=0,c=0,g="none";i.hasOwnProperty(l)?(r=i[l].verticalOffset-u.bigNumbersDelta,c=i[l].height,g="block",a.isVisible||(a.domNode.setAttribute("monaco-visible-view-zone","true"),a.isVisible=!0),this._safeCallOnDomNodeTop(a.delegate,u.getScrolledTopFromAbsoluteTop(i[l].verticalOffset))):(a.isVisible&&(a.domNode.removeAttribute("monaco-visible-view-zone"),a.isVisible=!1),this._safeCallOnDomNodeTop(a.delegate,u.getScrolledTopFromAbsoluteTop(-1e6))),a.domNode.setTop(r),a.domNode.setHeight(c),a.domNode.setDisplay(g),a.marginDomNode&&(a.marginDomNode.setTop(r),a.marginDomNode.setHeight(c),a.marginDomNode.setDisplay(g))}t&&(this.domNode.setWidth(Math.max(u.scrollWidth,this._contentWidth)),this.marginDomNode.setWidth(this._contentLeft))}}e.ViewZones=b;function C(h,u){try{return h(u)}catch(n){(0,v.onUnexpectedError)(n)}}}),define(oe[187],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewZonesChangedEvent=e.ViewTokensColorsChangedEvent=e.ViewTokensChangedEvent=e.ViewThemeChangedEvent=e.ViewScrollChangedEvent=e.ViewRevealRangeRequestEvent=e.ViewLinesInsertedEvent=e.ViewLinesDeletedEvent=e.ViewLinesChangedEvent=e.ViewLineMappingChangedEvent=e.ViewLanguageConfigurationEvent=e.ViewFocusChangedEvent=e.ViewFlushedEvent=e.ViewDecorationsChangedEvent=e.ViewCursorStateChangedEvent=e.ViewConfigurationChangedEvent=e.ViewCompositionEndEvent=e.ViewCompositionStartEvent=void 0;class y{constructor(){this.type=0}}e.ViewCompositionStartEvent=y;class v{constructor(){this.type=1}}e.ViewCompositionEndEvent=v;class k{constructor(g){this.type=2,this._source=g}hasChanged(g){return this._source.hasChanged(g)}}e.ViewConfigurationChangedEvent=k;class D{constructor(g,f){this.type=3,this.selections=g,this.modelSelections=f}}e.ViewCursorStateChangedEvent=D;class w{constructor(g){this.type=4,g?(this.affectsMinimap=g.affectsMinimap,this.affectsOverviewRuler=g.affectsOverviewRuler):(this.affectsMinimap=!0,this.affectsOverviewRuler=!0)}}e.ViewDecorationsChangedEvent=w;class b{constructor(){this.type=5}}e.ViewFlushedEvent=b;class C{constructor(g){this.type=6,this.isFocused=g}}e.ViewFocusChangedEvent=C;class h{constructor(){this.type=7}}e.ViewLanguageConfigurationEvent=h;class u{constructor(){this.type=8}}e.ViewLineMappingChangedEvent=u;class n{constructor(g,f){this.fromLineNumber=g,this.count=f,this.type=9}}e.ViewLinesChangedEvent=n;class i{constructor(g,f){this.type=10,this.fromLineNumber=g,this.toLineNumber=f}}e.ViewLinesDeletedEvent=i;class t{constructor(g,f){this.type=11,this.fromLineNumber=g,this.toLineNumber=f}}e.ViewLinesInsertedEvent=t;class o{constructor(g,f,_,p,m,S,E){this.source=g,this.minimalReveal=f,this.range=_,this.selections=p,this.verticalType=m,this.revealHorizontal=S,this.scrollType=E,this.type=12}}e.ViewRevealRangeRequestEvent=o;class s{constructor(g){this.type=13,this.scrollWidth=g.scrollWidth,this.scrollLeft=g.scrollLeft,this.scrollHeight=g.scrollHeight,this.scrollTop=g.scrollTop,this.scrollWidthChanged=g.scrollWidthChanged,this.scrollLeftChanged=g.scrollLeftChanged,this.scrollHeightChanged=g.scrollHeightChanged,this.scrollTopChanged=g.scrollTopChanged}}e.ViewScrollChangedEvent=s;class d{constructor(g){this.theme=g,this.type=14}}e.ViewThemeChangedEvent=d;class l{constructor(g){this.type=15,this.ranges=g}}e.ViewTokensChangedEvent=l;class a{constructor(){this.type=16}}e.ViewTokensColorsChangedEvent=a;class r{constructor(){this.type=17}}e.ViewZonesChangedEvent=r}),define(oe[130],se([1,0,8]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LineDecorationsNormalizer=e.DecorationSegment=e.LineDecoration=void 0;class v{constructor(C,h,u,n){this.startColumn=C,this.endColumn=h,this.className=u,this.type=n,this._lineDecorationBrand=void 0}static _equals(C,h){return C.startColumn===h.startColumn&&C.endColumn===h.endColumn&&C.className===h.className&&C.type===h.type}static equalsArr(C,h){const u=C.length,n=h.length;if(u!==n)return!1;for(let i=0;i<u;i++)if(!v._equals(C[i],h[i]))return!1;return!0}static extractWrapped(C,h,u){if(C.length===0)return C;const n=h+1,i=u+1,t=u-h,o=[];let s=0;for(const d of C)d.endColumn<=n||d.startColumn>=i||(o[s++]=new v(Math.max(1,d.startColumn-n+1),Math.min(t+1,d.endColumn-n+1),d.className,d.type));return o}static filter(C,h,u,n){if(C.length===0)return[];const i=[];let t=0;for(let o=0,s=C.length;o<s;o++){const d=C[o],l=d.range;if(l.endLineNumber<h||l.startLineNumber>h||l.isEmpty()&&(d.type===0||d.type===3))continue;const a=l.startLineNumber===h?l.startColumn:u,r=l.endLineNumber===h?l.endColumn:n;i[t++]=new v(a,r,d.inlineClassName,d.type)}return i}static _typeCompare(C,h){const u=[2,0,1,3];return u[C]-u[h]}static compare(C,h){if(C.startColumn!==h.startColumn)return C.startColumn-h.startColumn;if(C.endColumn!==h.endColumn)return C.endColumn-h.endColumn;const u=v._typeCompare(C.type,h.type);return u!==0?u:C.className!==h.className?C.className<h.className?-1:1:0}}e.LineDecoration=v;class k{constructor(C,h,u,n){this.startOffset=C,this.endOffset=h,this.className=u,this.metadata=n}}e.DecorationSegment=k;class D{constructor(){this.stopOffsets=[],this.classNames=[],this.metadata=[],this.count=0}static _metadata(C){let h=0;for(let u=0,n=C.length;u<n;u++)h|=C[u];return h}consumeLowerThan(C,h,u){for(;this.count>0&&this.stopOffsets[0]<C;){let n=0;for(;n+1<this.count&&this.stopOffsets[n]===this.stopOffsets[n+1];)n++;u.push(new k(h,this.stopOffsets[n],this.classNames.join(" "),D._metadata(this.metadata))),h=this.stopOffsets[n]+1,this.stopOffsets.splice(0,n+1),this.classNames.splice(0,n+1),this.metadata.splice(0,n+1),this.count-=n+1}return this.count>0&&h<C&&(u.push(new k(h,C-1,this.classNames.join(" "),D._metadata(this.metadata))),h=C),h}insert(C,h,u){if(this.count===0||this.stopOffsets[this.count-1]<=C)this.stopOffsets.push(C),this.classNames.push(h),this.metadata.push(u);else for(let n=0;n<this.count;n++)if(this.stopOffsets[n]>=C){this.stopOffsets.splice(n,0,C),this.classNames.splice(n,0,h),this.metadata.splice(n,0,u);break}this.count++}}class w{static normalize(C,h){if(h.length===0)return[];const u=[],n=new D;let i=0;for(let t=0,o=h.length;t<o;t++){const s=h[t];let d=s.startColumn,l=s.endColumn;const a=s.className,r=s.type===1?2:s.type===2?4:0;if(d>1){const f=C.charCodeAt(d-2);y.isHighSurrogate(f)&&d--}if(l>1){const f=C.charCodeAt(l-2);y.isHighSurrogate(f)&&l--}const c=d-1,g=l-2;i=n.consumeLowerThan(c,i,u),n.count===0&&(i=c),n.insert(g,a,r)}return n.consumeLowerThan(1073741824,i,u),u}}e.LineDecorationsNormalizer=w}),define(oe[441],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinePart=void 0;class y{constructor(k,D,w,b){this.endIndex=k,this.type=D,this.metadata=w,this.containsRTL=b,this._linePartBrand=void 0}isWhitespace(){return!!(this.metadata&1)}isPseudoAfter(){return!!(this.metadata&4)}}e.LinePart=y}),define(oe[442],se([1,0,8]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinesLayout=e.EditorWhitespace=void 0;class v{constructor(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}insert(b){this._hasPending=!0,this._inserts.push(b)}change(b){this._hasPending=!0,this._changes.push(b)}remove(b){this._hasPending=!0,this._removes.push(b)}mustCommit(){return this._hasPending}commit(b){if(!this._hasPending)return;const C=this._inserts,h=this._changes,u=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],b._commitPendingChanges(C,h,u)}}class k{constructor(b,C,h,u,n){this.id=b,this.afterLineNumber=C,this.ordinal=h,this.height=u,this.minWidth=n,this.prefixSum=0}}e.EditorWhitespace=k;class D{constructor(b,C,h,u){this._instanceId=y.singleLetterHash(++D.INSTANCE_COUNT),this._pendingChanges=new v,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=b,this._lineHeight=C,this._paddingTop=h,this._paddingBottom=u}static findInsertionIndex(b,C,h){let u=0,n=b.length;for(;u<n;){const i=u+n>>>1;C===b[i].afterLineNumber?h<b[i].ordinal?n=i:u=i+1:C<b[i].afterLineNumber?n=i:u=i+1}return u}setLineHeight(b){this._checkPendingChanges(),this._lineHeight=b}setPadding(b,C){this._paddingTop=b,this._paddingBottom=C}onFlushed(b){this._checkPendingChanges(),this._lineCount=b}changeWhitespace(b){let C=!1;try{b({insertWhitespace:(h,u,n,i)=>{C=!0,h=h|0,u=u|0,n=n|0,i=i|0;const t=this._instanceId+ ++this._lastWhitespaceId;return this._pendingChanges.insert(new k(t,h,u,n,i)),t},changeOneWhitespace:(h,u,n)=>{C=!0,u=u|0,n=n|0,this._pendingChanges.change({id:h,newAfterLineNumber:u,newHeight:n})},removeWhitespace:h=>{C=!0,this._pendingChanges.remove({id:h})}})}finally{this._pendingChanges.commit(this)}return C}_commitPendingChanges(b,C,h){if((b.length>0||h.length>0)&&(this._minWidth=-1),b.length+C.length+h.length<=1){for(const o of b)this._insertWhitespace(o);for(const o of C)this._changeOneWhitespace(o.id,o.newAfterLineNumber,o.newHeight);for(const o of h){const s=this._findWhitespaceIndex(o.id);s!==-1&&this._removeWhitespace(s)}return}const u=new Set;for(const o of h)u.add(o.id);const n=new Map;for(const o of C)n.set(o.id,o);const i=o=>{const s=[];for(const d of o)if(!u.has(d.id)){if(n.has(d.id)){const l=n.get(d.id);d.afterLineNumber=l.newAfterLineNumber,d.height=l.newHeight}s.push(d)}return s},t=i(this._arr).concat(i(b));t.sort((o,s)=>o.afterLineNumber===s.afterLineNumber?o.ordinal-s.ordinal:o.afterLineNumber-s.afterLineNumber),this._arr=t,this._prefixSumValidIndex=-1}_checkPendingChanges(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)}_insertWhitespace(b){const C=D.findInsertionIndex(this._arr,b.afterLineNumber,b.ordinal);this._arr.splice(C,0,b),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,C-1)}_findWhitespaceIndex(b){const C=this._arr;for(let h=0,u=C.length;h<u;h++)if(C[h].id===b)return h;return-1}_changeOneWhitespace(b,C,h){const u=this._findWhitespaceIndex(b);if(u!==-1&&(this._arr[u].height!==h&&(this._arr[u].height=h,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,u-1)),this._arr[u].afterLineNumber!==C)){const n=this._arr[u];this._removeWhitespace(u),n.afterLineNumber=C,this._insertWhitespace(n)}}_removeWhitespace(b){this._arr.splice(b,1),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,b-1)}onLinesDeleted(b,C){this._checkPendingChanges(),b=b|0,C=C|0,this._lineCount-=C-b+1;for(let h=0,u=this._arr.length;h<u;h++){const n=this._arr[h].afterLineNumber;b<=n&&n<=C?this._arr[h].afterLineNumber=b-1:n>C&&(this._arr[h].afterLineNumber-=C-b+1)}}onLinesInserted(b,C){this._checkPendingChanges(),b=b|0,C=C|0,this._lineCount+=C-b+1;for(let h=0,u=this._arr.length;h<u;h++){const n=this._arr[h].afterLineNumber;b<=n&&(this._arr[h].afterLineNumber+=C-b+1)}}getWhitespacesTotalHeight(){return this._checkPendingChanges(),this._arr.length===0?0:this.getWhitespacesAccumulatedHeight(this._arr.length-1)}getWhitespacesAccumulatedHeight(b){this._checkPendingChanges(),b=b|0;let C=Math.max(0,this._prefixSumValidIndex+1);C===0&&(this._arr[0].prefixSum=this._arr[0].height,C++);for(let h=C;h<=b;h++)this._arr[h].prefixSum=this._arr[h-1].prefixSum+this._arr[h].height;return this._prefixSumValidIndex=Math.max(this._prefixSumValidIndex,b),this._arr[b].prefixSum}getLinesTotalHeight(){this._checkPendingChanges();const b=this._lineHeight*this._lineCount,C=this.getWhitespacesTotalHeight();return b+C+this._paddingTop+this._paddingBottom}getWhitespaceAccumulatedHeightBeforeLineNumber(b){this._checkPendingChanges(),b=b|0;const C=this._findLastWhitespaceBeforeLineNumber(b);return C===-1?0:this.getWhitespacesAccumulatedHeight(C)}_findLastWhitespaceBeforeLineNumber(b){b=b|0;const C=this._arr;let h=0,u=C.length-1;for(;h<=u;){const n=(u-h|0)/2|0,i=h+n|0;if(C[i].afterLineNumber<b){if(i+1>=C.length||C[i+1].afterLineNumber>=b)return i;h=i+1|0}else u=i-1|0}return-1}_findFirstWhitespaceAfterLineNumber(b){b=b|0;const C=this._findLastWhitespaceBeforeLineNumber(b)+1;return C<this._arr.length?C:-1}getFirstWhitespaceIndexAfterLineNumber(b){return this._checkPendingChanges(),b=b|0,this._findFirstWhitespaceAfterLineNumber(b)}getVerticalOffsetForLineNumber(b,C=!1){this._checkPendingChanges(),b=b|0;let h;b>1?h=this._lineHeight*(b-1):h=0;const u=this.getWhitespaceAccumulatedHeightBeforeLineNumber(b-(C?1:0));return h+u+this._paddingTop}getVerticalOffsetAfterLineNumber(b,C=!1){this._checkPendingChanges(),b=b|0;const h=this._lineHeight*b,u=this.getWhitespaceAccumulatedHeightBeforeLineNumber(b+(C?1:0));return h+u+this._paddingTop}getWhitespaceMinWidth(){if(this._checkPendingChanges(),this._minWidth===-1){let b=0;for(let C=0,h=this._arr.length;C<h;C++)b=Math.max(b,this._arr[C].minWidth);this._minWidth=b}return this._minWidth}isAfterLines(b){this._checkPendingChanges();const C=this.getLinesTotalHeight();return b>C}isInTopPadding(b){return this._paddingTop===0?!1:(this._checkPendingChanges(),b<this._paddingTop)}isInBottomPadding(b){if(this._paddingBottom===0)return!1;this._checkPendingChanges();const C=this.getLinesTotalHeight();return b>=C-this._paddingBottom}getLineNumberAtOrAfterVerticalOffset(b){if(this._checkPendingChanges(),b=b|0,b<0)return 1;const C=this._lineCount|0,h=this._lineHeight;let u=1,n=C;for(;u<n;){const i=(u+n)/2|0,t=this.getVerticalOffsetForLineNumber(i)|0;if(b>=t+h)u=i+1;else{if(b>=t)return i;n=i}}return u>C?C:u}getLinesViewportData(b,C){this._checkPendingChanges(),b=b|0,C=C|0;const h=this._lineHeight,u=this.getLineNumberAtOrAfterVerticalOffset(b)|0,n=this.getVerticalOffsetForLineNumber(u)|0;let i=this._lineCount|0,t=this.getFirstWhitespaceIndexAfterLineNumber(u)|0;const o=this.getWhitespacesCount()|0;let s,d;t===-1?(t=o,d=i+1,s=0):(d=this.getAfterLineNumberForWhitespaceIndex(t)|0,s=this.getHeightForWhitespaceIndex(t)|0);let l=n,a=l;const r=5e5;let c=0;n>=r&&(c=Math.floor(n/r)*r,c=Math.floor(c/h)*h,a-=c);const g=[],f=b+(C-b)/2;let _=-1;for(let E=u;E<=i;E++){if(_===-1){const L=l,N=l+h;(L<=f&&f<N||L>f)&&(_=E)}for(l+=h,g[E-u]=a,a+=h;d===E;)a+=s,l+=s,t++,t>=o?d=i+1:(d=this.getAfterLineNumberForWhitespaceIndex(t)|0,s=this.getHeightForWhitespaceIndex(t)|0);if(l>=C){i=E;break}}_===-1&&(_=i);const p=this.getVerticalOffsetForLineNumber(i)|0;let m=u,S=i;return m<S&&n<b&&m++,m<S&&p+h>C&&S--,{bigNumbersDelta:c,startLineNumber:u,endLineNumber:i,relativeVerticalOffset:g,centeredLineNumber:_,completelyVisibleStartLineNumber:m,completelyVisibleEndLineNumber:S}}getVerticalOffsetForWhitespaceIndex(b){this._checkPendingChanges(),b=b|0;const C=this.getAfterLineNumberForWhitespaceIndex(b);let h;C>=1?h=this._lineHeight*C:h=0;let u;return b>0?u=this.getWhitespacesAccumulatedHeight(b-1):u=0,h+u+this._paddingTop}getWhitespaceIndexAtOrAfterVerticallOffset(b){this._checkPendingChanges(),b=b|0;let C=0,h=this.getWhitespacesCount()-1;if(h<0)return-1;const u=this.getVerticalOffsetForWhitespaceIndex(h),n=this.getHeightForWhitespaceIndex(h);if(b>=u+n)return-1;for(;C<h;){const i=Math.floor((C+h)/2),t=this.getVerticalOffsetForWhitespaceIndex(i),o=this.getHeightForWhitespaceIndex(i);if(b>=t+o)C=i+1;else{if(b>=t)return i;h=i}}return C}getWhitespaceAtVerticalOffset(b){this._checkPendingChanges(),b=b|0;const C=this.getWhitespaceIndexAtOrAfterVerticallOffset(b);if(C<0||C>=this.getWhitespacesCount())return null;const h=this.getVerticalOffsetForWhitespaceIndex(C);if(h>b)return null;const u=this.getHeightForWhitespaceIndex(C),n=this.getIdForWhitespaceIndex(C),i=this.getAfterLineNumberForWhitespaceIndex(C);return{id:n,afterLineNumber:i,verticalOffset:h,height:u}}getWhitespaceViewportData(b,C){this._checkPendingChanges(),b=b|0,C=C|0;const h=this.getWhitespaceIndexAtOrAfterVerticallOffset(b),u=this.getWhitespacesCount()-1;if(h<0)return[];const n=[];for(let i=h;i<=u;i++){const t=this.getVerticalOffsetForWhitespaceIndex(i),o=this.getHeightForWhitespaceIndex(i);if(t>=C)break;n.push({id:this.getIdForWhitespaceIndex(i),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(i),verticalOffset:t,height:o})}return n}getWhitespaces(){return this._checkPendingChanges(),this._arr.slice(0)}getWhitespacesCount(){return this._checkPendingChanges(),this._arr.length}getIdForWhitespaceIndex(b){return this._checkPendingChanges(),b=b|0,this._arr[b].id}getAfterLineNumberForWhitespaceIndex(b){return this._checkPendingChanges(),b=b|0,this._arr[b].afterLineNumber}getHeightForWhitespaceIndex(b){return this._checkPendingChanges(),b=b|0,this._arr[b].height}}e.LinesLayout=D,D.INSTANCE_COUNT=0}),define(oe[443],se([1,0,3]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewportData=void 0;class v{constructor(D,w,b,C){this.selections=D,this.startLineNumber=w.startLineNumber|0,this.endLineNumber=w.endLineNumber|0,this.relativeVerticalOffset=w.relativeVerticalOffset,this.bigNumbersDelta=w.bigNumbersDelta|0,this.whitespaceViewportData=b,this._model=C,this.visibleRange=new y.Range(w.startLineNumber,this._model.getLineMinColumn(w.startLineNumber),w.endLineNumber,this._model.getLineMaxColumn(w.endLineNumber))}getViewLineRenderingData(D){return this._model.getViewportViewLineRenderingData(this.visibleRange,D)}getDecorationsInViewport(){return this._model.getDecorationsInViewport(this.visibleRange)}}e.ViewportData=v}),define(oe[74],se([1,0,8,3]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OverviewRulerDecorationsGroup=e.ViewModelDecoration=e.SingleLineInlineDecoration=e.InlineDecoration=e.ViewLineRenderingData=e.ViewLineData=e.MinimapLinesRenderingData=e.Viewport=void 0;class k{constructor(t,o,s,d){this._viewportBrand=void 0,this.top=t|0,this.left=o|0,this.width=s|0,this.height=d|0}}e.Viewport=k;class D{constructor(t,o){this.tabSize=t,this.data=o}}e.MinimapLinesRenderingData=D;class w{constructor(t,o,s,d,l,a,r){this._viewLineDataBrand=void 0,this.content=t,this.continuesWithWrappedLine=o,this.minColumn=s,this.maxColumn=d,this.startVisibleColumn=l,this.tokens=a,this.inlineDecorations=r}}e.ViewLineData=w;class b{constructor(t,o,s,d,l,a,r,c,g,f){this.minColumn=t,this.maxColumn=o,this.content=s,this.continuesWithWrappedLine=d,this.isBasicASCII=b.isBasicASCII(s,a),this.containsRTL=b.containsRTL(s,this.isBasicASCII,l),this.tokens=r,this.inlineDecorations=c,this.tabSize=g,this.startVisibleColumn=f}static isBasicASCII(t,o){return o?y.isBasicASCII(t):!0}static containsRTL(t,o,s){return!o&&s?y.containsRTL(t):!1}}e.ViewLineRenderingData=b;class C{constructor(t,o,s){this.range=t,this.inlineClassName=o,this.type=s}}e.InlineDecoration=C;class h{constructor(t,o,s,d){this.startOffset=t,this.endOffset=o,this.inlineClassName=s,this.inlineClassNameAffectsLetterSpacing=d}toInlineDecoration(t){return new C(new v.Range(t,this.startOffset+1,t,this.endOffset+1),this.inlineClassName,this.inlineClassNameAffectsLetterSpacing?3:0)}}e.SingleLineInlineDecoration=h;class u{constructor(t,o){this._viewModelDecorationBrand=void 0,this.range=t,this.options=o}}e.ViewModelDecoration=u;class n{constructor(t,o,s){this.color=t,this.zIndex=o,this.data=s}static cmp(t,o){return t.zIndex===o.zIndex?t.color<o.color?-1:t.color>o.color?1:0:t.zIndex-o.zIndex}}e.OverviewRulerDecorationsGroup=n}),define(oe[444],se([1,0,82,11,99,74]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createModelLineProjection=void 0;function w(t,o){return t===null?o?C.INSTANCE:h.INSTANCE:new b(t,o)}e.createModelLineProjection=w;class b{constructor(o,s){this._projectionData=o,this._isVisible=s}isVisible(){return this._isVisible}setVisible(o){return this._isVisible=o,this}getProjectionData(){return this._projectionData}getViewLineCount(){return this._isVisible?this._projectionData.getOutputLineCount():0}getViewLineContent(o,s,d){this._assertVisible();const l=d>0?this._projectionData.breakOffsets[d-1]:0,a=this._projectionData.breakOffsets[d];let r;if(this._projectionData.injectionOffsets!==null){const c=this._projectionData.injectionOffsets.map((g,f)=>new k.LineInjectedText(0,0,g+1,this._projectionData.injectionOptions[f],0));r=k.LineInjectedText.applyInjectedText(o.getLineContent(s),c).substring(l,a)}else r=o.getValueInRange({startLineNumber:s,startColumn:l+1,endLineNumber:s,endColumn:a+1});return d>0&&(r=n(this._projectionData.wrappedTextIndentLength)+r),r}getViewLineLength(o,s,d){return this._assertVisible(),this._projectionData.getLineLength(d)}getViewLineMinColumn(o,s,d){return this._assertVisible(),this._projectionData.getMinOutputOffset(d)+1}getViewLineMaxColumn(o,s,d){return this._assertVisible(),this._projectionData.getMaxOutputOffset(d)+1}getViewLineData(o,s,d){const l=new Array;return this.getViewLinesData(o,s,d,1,0,[!0],l),l[0]}getViewLinesData(o,s,d,l,a,r,c){this._assertVisible();const g=this._projectionData,f=g.injectionOffsets,_=g.injectionOptions;let p=null;if(f){p=[];let S=0,E=0;for(let L=0;L<g.getOutputLineCount();L++){const N=new Array;p[L]=N;const I=L>0?g.breakOffsets[L-1]:0,R=g.breakOffsets[L];for(;E<f.length;){const F=_[E].content.length,O=f[E]+S,x=O+F;if(O>R)break;if(I<x){const M=_[E];if(M.inlineClassName){const P=L>0?g.wrappedTextIndentLength:0,A=P+Math.max(O-I,0),B=P+Math.min(x-I,R);A!==B&&N.push(new D.SingleLineInlineDecoration(A,B,M.inlineClassName,M.inlineClassNameAffectsLetterSpacing))}}if(x<=R)S+=F,E++;else break}}}let m;f?m=o.tokenization.getLineTokens(s).withInserted(f.map((S,E)=>({offset:S,text:_[E].content,tokenMetadata:y.LineTokens.defaultTokenMetadata}))):m=o.tokenization.getLineTokens(s);for(let S=d;S<d+l;S++){const E=a+S-d;if(!r[E]){c[E]=null;continue}c[E]=this._getViewLineData(m,p?p[S]:null,S)}}_getViewLineData(o,s,d){this._assertVisible();const l=this._projectionData,a=d>0?l.wrappedTextIndentLength:0,r=d>0?l.breakOffsets[d-1]:0,c=l.breakOffsets[d],g=o.sliceAndInflate(r,c,a);let f=g.getLineContent();d>0&&(f=n(l.wrappedTextIndentLength)+f);const _=this._projectionData.getMinOutputOffset(d)+1,p=f.length+1,m=d+1<this.getViewLineCount(),S=d===0?0:l.breakOffsetsVisibleColumn[d-1];return new D.ViewLineData(f,m,_,p,S,g,s)}getModelColumnOfViewPosition(o,s){return this._assertVisible(),this._projectionData.translateToInputOffset(o,s-1)+1}getViewPositionOfModelPosition(o,s,d=2){return this._assertVisible(),this._projectionData.translateToOutputPosition(s-1,d).toPosition(o)}getViewLineNumberOfModelPosition(o,s){this._assertVisible();const d=this._projectionData.translateToOutputPosition(s-1);return o+d.outputLineIndex}normalizePosition(o,s,d){const l=s.lineNumber-o;return this._projectionData.normalizeOutputPosition(o,s.column-1,d).toPosition(l)}getInjectedTextAt(o,s){return this._projectionData.getInjectedText(o,s-1)}_assertVisible(){if(!this._isVisible)throw new Error("Not supported")}}class C{constructor(){}isVisible(){return!0}setVisible(o){return o?this:h.INSTANCE}getProjectionData(){return null}getViewLineCount(){return 1}getViewLineContent(o,s,d){return o.getLineContent(s)}getViewLineLength(o,s,d){return o.getLineLength(s)}getViewLineMinColumn(o,s,d){return o.getLineMinColumn(s)}getViewLineMaxColumn(o,s,d){return o.getLineMaxColumn(s)}getViewLineData(o,s,d){const l=o.tokenization.getLineTokens(s),a=l.getLineContent();return new D.ViewLineData(a,!1,1,a.length+1,0,l.inflate(),null)}getViewLinesData(o,s,d,l,a,r,c){if(!r[a]){c[a]=null;return}c[a]=this.getViewLineData(o,s,0)}getModelColumnOfViewPosition(o,s){return s}getViewPositionOfModelPosition(o,s){return new v.Position(o,s)}getViewLineNumberOfModelPosition(o,s){return o}normalizePosition(o,s,d){return s}getInjectedTextAt(o,s){return null}}C.INSTANCE=new C;class h{constructor(){}isVisible(){return!1}setVisible(o){return o?C.INSTANCE:this}getProjectionData(){return null}getViewLineCount(){return 0}getViewLineContent(o,s,d){throw new Error("Not supported")}getViewLineLength(o,s,d){throw new Error("Not supported")}getViewLineMinColumn(o,s,d){throw new Error("Not supported")}getViewLineMaxColumn(o,s,d){throw new Error("Not supported")}getViewLineData(o,s,d){throw new Error("Not supported")}getViewLinesData(o,s,d,l,a,r,c){throw new Error("Not supported")}getModelColumnOfViewPosition(o,s){throw new Error("Not supported")}getViewPositionOfModelPosition(o,s){throw new Error("Not supported")}getViewLineNumberOfModelPosition(o,s){throw new Error("Not supported")}normalizePosition(o,s,d){throw new Error("Not supported")}getInjectedTextAt(o,s){throw new Error("Not supported")}}h.INSTANCE=new h;const u=[""];function n(t){if(t>=u.length)for(let o=1;o<=t;o++)u[o]=i(o);return u[t]}function i(t){return new Array(t+1).join(" ")}}),define(oe[445],se([1,0,8,107,99,241]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MonospaceLineBreaksComputerFactory=void 0;class w{constructor(l,a){this.classifier=new b(l,a)}static create(l){return new w(l.get(122),l.get(121))}createLineBreaksComputer(l,a,r,c){const g=[],f=[],_=[];return{addRequest:(p,m,S)=>{g.push(p),f.push(m),_.push(S)},finalize:()=>{const p=l.typicalFullwidthCharacterWidth/l.typicalHalfwidthCharacterWidth,m=[];for(let S=0,E=g.length;S<E;S++){const L=f[S],N=_[S];N&&!N.injectionOptions&&!L?m[S]=u(this.classifier,N,g[S],a,r,p,c):m[S]=n(this.classifier,g[S],L,a,r,p,c)}return C.length=0,h.length=0,m}}}}e.MonospaceLineBreaksComputerFactory=w;class b extends v.CharacterClassifier{constructor(l,a){super(0);for(let r=0;r<l.length;r++)this.set(l.charCodeAt(r),1);for(let r=0;r<a.length;r++)this.set(a.charCodeAt(r),2)}get(l){return l>=0&&l<256?this._asciiMap[l]:l>=12352&&l<=12543||l>=13312&&l<=19903||l>=19968&&l<=40959?3:this._map.get(l)||this._defaultValue}}let C=[],h=[];function u(d,l,a,r,c,g,f){if(c===-1)return null;const _=a.length;if(_<=1)return null;const p=l.breakOffsets,m=l.breakOffsetsVisibleColumn,S=s(a,r,c,g,f),E=c-S,L=C,N=h;let I=0,R=0,F=0,O=c;const x=p.length;let M=0;if(M>=0){let P=Math.abs(m[M]-O);for(;M+1<x;){const A=Math.abs(m[M+1]-O);if(A>=P)break;P=A,M++}}for(;M<x;){let P=M<0?0:p[M],A=M<0?0:m[M];R>P&&(P=R,A=F);let B=0,K=0,T=0,ee=0;if(A<=O){let $=A,j=P===0?0:a.charCodeAt(P-1),G=P===0?0:d.get(j),te=!0;for(let Z=P;Z<_;Z++){const X=Z,ie=a.charCodeAt(Z);let H,ae;if(y.isHighSurrogate(ie)?(Z++,H=0,ae=2):(H=d.get(ie),ae=i(ie,$,r,g)),X>R&&o(j,G,ie,H)&&(B=X,K=$),$+=ae,$>O){X>R?(T=X,ee=$-ae):(T=Z+1,ee=$),$-K>E&&(B=0),te=!1;break}j=ie,G=H}if(te){I>0&&(L[I]=p[p.length-1],N[I]=m[p.length-1],I++);break}}if(B===0){let $=A,j=a.charCodeAt(P),G=d.get(j),te=!1;for(let Z=P-1;Z>=R;Z--){const X=Z+1,ie=a.charCodeAt(Z);if(ie===9){te=!0;break}let H,ae;if(y.isLowSurrogate(ie)?(Z--,H=0,ae=2):(H=d.get(ie),ae=y.isFullWidthCharacter(ie)?g:1),$<=O){if(T===0&&(T=X,ee=$),$<=O-E)break;if(o(ie,H,j,G)){B=X,K=$;break}}$-=ae,j=ie,G=H}if(B!==0){const Z=E-(ee-K);if(Z<=r){const X=a.charCodeAt(T);let ie;y.isHighSurrogate(X)?ie=2:ie=i(X,ee,r,g),Z-ie<0&&(B=0)}}if(te){M--;continue}}if(B===0&&(B=T,K=ee),B<=R){const $=a.charCodeAt(R);y.isHighSurrogate($)?(B=R+2,K=F+2):(B=R+1,K=F+i($,F,r,g))}for(R=B,L[I]=B,F=K,N[I]=K,I++,O=K+E;M<0||M<x&&m[M]<K;)M++;let J=Math.abs(m[M]-O);for(;M+1<x;){const $=Math.abs(m[M+1]-O);if($>=J)break;J=$,M++}}return I===0?null:(L.length=I,N.length=I,C=l.breakOffsets,h=l.breakOffsetsVisibleColumn,l.breakOffsets=L,l.breakOffsetsVisibleColumn=N,l.wrappedTextIndentLength=S,l)}function n(d,l,a,r,c,g,f){const _=k.LineInjectedText.applyInjectedText(l,a);let p,m;if(a&&a.length>0?(p=a.map(K=>K.options),m=a.map(K=>K.column-1)):(p=null,m=null),c===-1)return p?new D.ModelLineProjectionData(m,p,[_.length],[],0):null;const S=_.length;if(S<=1)return p?new D.ModelLineProjectionData(m,p,[_.length],[],0):null;const E=s(_,r,c,g,f),L=c-E,N=[],I=[];let R=0,F=0,O=0,x=c,M=_.charCodeAt(0),P=d.get(M),A=i(M,0,r,g),B=1;y.isHighSurrogate(M)&&(A+=1,M=_.charCodeAt(1),P=d.get(M),B++);for(let K=B;K<S;K++){const T=K,ee=_.charCodeAt(K);let J,$;y.isHighSurrogate(ee)?(K++,J=0,$=2):(J=d.get(ee),$=i(ee,A,r,g)),o(M,P,ee,J)&&(F=T,O=A),A+=$,A>x&&((F===0||A-O>L)&&(F=T,O=A-$),N[R]=F,I[R]=O,R++,x=O+L,F=0),M=ee,P=J}return R===0&&(!a||a.length===0)?null:(N[R]=S,I[R]=A,new D.ModelLineProjectionData(m,p,N,I,E))}function i(d,l,a,r){return d===9?a-l%a:y.isFullWidthCharacter(d)||d<32?r:1}function t(d,l){return l-d%l}function o(d,l,a,r){return a!==32&&(l===2&&r!==2||l!==1&&r===1||l===3&&r!==2||r===3&&l!==1)}function s(d,l,a,r,c){let g=0;if(c!==0){const f=y.firstNonWhitespaceIndex(d);if(f!==-1){for(let p=0;p<f;p++)g+=d.charCodeAt(p)===9?t(g,l):1;const _=c===3?2:c===2?1:0;for(let p=0;p<_;p++)g+=t(g,l);g+r>a&&(g=0)}}return g}}),define(oe[245],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OverviewZoneManager=e.OverviewRulerZone=e.ColorZone=void 0;class y{constructor(w,b,C){this._colorZoneBrand=void 0,this.from=w|0,this.to=b|0,this.colorId=C|0}static compare(w,b){return w.colorId===b.colorId?w.from===b.from?w.to-b.to:w.from-b.from:w.colorId-b.colorId}}e.ColorZone=y;class v{constructor(w,b,C,h){this._overviewRulerZoneBrand=void 0,this.startLineNumber=w,this.endLineNumber=b,this.heightInLines=C,this.color=h,this._colorZone=null}static compare(w,b){return w.color===b.color?w.startLineNumber===b.startLineNumber?w.heightInLines===b.heightInLines?w.endLineNumber-b.endLineNumber:w.heightInLines-b.heightInLines:w.startLineNumber-b.startLineNumber:w.color<b.color?-1:1}setColorZone(w){this._colorZone=w}getColorZones(){return this._colorZone}}e.OverviewRulerZone=v;class k{constructor(w){this._getVerticalOffsetForLine=w,this._zones=[],this._colorZonesInvalid=!1,this._lineHeight=0,this._domWidth=0,this._domHeight=0,this._outerHeight=0,this._pixelRatio=1,this._lastAssignedId=0,this._color2Id=Object.create(null),this._id2Color=[]}getId2Color(){return this._id2Color}setZones(w){this._zones=w,this._zones.sort(v.compare)}setLineHeight(w){return this._lineHeight===w?!1:(this._lineHeight=w,this._colorZonesInvalid=!0,!0)}setPixelRatio(w){this._pixelRatio=w,this._colorZonesInvalid=!0}getDOMWidth(){return this._domWidth}getCanvasWidth(){return this._domWidth*this._pixelRatio}setDOMWidth(w){return this._domWidth===w?!1:(this._domWidth=w,this._colorZonesInvalid=!0,!0)}getDOMHeight(){return this._domHeight}getCanvasHeight(){return this._domHeight*this._pixelRatio}setDOMHeight(w){return this._domHeight===w?!1:(this._domHeight=w,this._colorZonesInvalid=!0,!0)}getOuterHeight(){return this._outerHeight}setOuterHeight(w){return this._outerHeight===w?!1:(this._outerHeight=w,this._colorZonesInvalid=!0,!0)}resolveColorZones(){const w=this._colorZonesInvalid,b=Math.floor(this._lineHeight),C=Math.floor(this.getCanvasHeight()),h=Math.floor(this._outerHeight),u=C/h,n=Math.floor(4*this._pixelRatio/2),i=[];for(let t=0,o=this._zones.length;t<o;t++){const s=this._zones[t];if(!w){const m=s.getColorZones();if(m){i.push(m);continue}}const d=this._getVerticalOffsetForLine(s.startLineNumber),l=s.heightInLines===0?this._getVerticalOffsetForLine(s.endLineNumber)+b:d+s.heightInLines*b,a=Math.floor(u*d),r=Math.floor(u*l);let c=Math.floor((a+r)/2),g=r-c;g<n&&(g=n),c-g<0&&(c=g),c+g>C&&(c=C-g);const f=s.color;let _=this._color2Id[f];_||(_=++this._lastAssignedId,this._color2Id[f]=_,this._id2Color[_]=f);const p=new y(c-g,c+g,_);s.setColorZone(p),i.push(p)}return this._colorZonesInvalid=!1,i.sort(y.compare),i}}e.OverviewZoneManager=k}),define(oe[446],se([1,0,33,245,129]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OverviewRuler=void 0;class D extends k.ViewEventHandler{constructor(b,C){super(),this._context=b;const h=this._context.configuration.options;this._domNode=(0,y.createFastDomNode)(document.createElement("canvas")),this._domNode.setClassName(C),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._zoneManager=new v.OverviewZoneManager(u=>this._context.viewLayout.getVerticalOffsetForLineNumber(u)),this._zoneManager.setDOMWidth(0),this._zoneManager.setDOMHeight(0),this._zoneManager.setOuterHeight(this._context.viewLayout.getScrollHeight()),this._zoneManager.setLineHeight(h.get(61)),this._zoneManager.setPixelRatio(h.get(131)),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(b){const C=this._context.configuration.options;return b.hasChanged(61)&&(this._zoneManager.setLineHeight(C.get(61)),this._render()),b.hasChanged(131)&&(this._zoneManager.setPixelRatio(C.get(131)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0}onFlushed(b){return this._render(),!0}onScrollChanged(b){return b.scrollHeightChanged&&(this._zoneManager.setOuterHeight(b.scrollHeight),this._render()),!0}onZonesChanged(b){return this._render(),!0}getDomNode(){return this._domNode.domNode}setLayout(b){this._domNode.setTop(b.top),this._domNode.setRight(b.right);let C=!1;C=this._zoneManager.setDOMWidth(b.width)||C,C=this._zoneManager.setDOMHeight(b.height)||C,C&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())}setZones(b){this._zoneManager.setZones(b),this._render()}_render(){if(this._zoneManager.getOuterHeight()===0)return!1;const b=this._zoneManager.getCanvasWidth(),C=this._zoneManager.getCanvasHeight(),h=this._zoneManager.resolveColorZones(),u=this._zoneManager.getId2Color(),n=this._domNode.domNode.getContext("2d");return n.clearRect(0,0,b,C),h.length>0&&this._renderOneLane(n,h,u,b),!0}_renderOneLane(b,C,h,u){let n=0,i=0,t=0;for(const o of C){const s=o.colorId,d=o.from,l=o.to;s!==n?(b.fillRect(0,i,u,t-i),n=s,b.fillStyle=h[n],i=d,t=l):t>=d?t=Math.max(t,l):(b.fillRect(0,i,u,t-i),i=d,t=l)}b.fillRect(0,i,u,t-i)}}e.OverviewRuler=D}),define(oe[447],se([1,0,410]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewContext=void 0;class v{constructor(D,w,b){this.configuration=D,this.theme=new y.EditorTheme(w),this.viewModel=b,this.viewLayout=b.viewLayout}addEventHandler(D){this.viewModel.addViewEventHandler(D)}removeEventHandler(D){this.viewModel.removeViewEventHandler(D)}}e.ViewContext=v}),define(oe[448],se([1,0,3,23]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MoveCaretCommand=void 0;class k{constructor(w,b){this._selection=w,this._isMovingLeft=b}getEditOperations(w,b){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const C=this._selection.startLineNumber,h=this._selection.startColumn,u=this._selection.endColumn;if(!(this._isMovingLeft&&h===1)&&!(!this._isMovingLeft&&u===w.getLineMaxColumn(C)))if(this._isMovingLeft){const n=new y.Range(C,h-1,C,h),i=w.getValueInRange(n);b.addEditOperation(n,null),b.addEditOperation(new y.Range(C,u,C,u),i)}else{const n=new y.Range(C,u,C,u+1),i=w.getValueInRange(n);b.addEditOperation(n,null),b.addEditOperation(new y.Range(C,h,C,h),i)}}computeCursorState(w,b){return this._isMovingLeft?new v.Selection(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new v.Selection(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}e.MoveCaretCommand=k}),define(oe[131],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CodeActionCommandArgs=e.filtersAction=e.mayIncludeActionsOfKind=e.CodeActionTriggerSource=e.CodeActionKind=void 0;class y{constructor(h){this.value=h}equals(h){return this.value===h.value}contains(h){return this.equals(h)||this.value===""||h.value.startsWith(this.value+y.sep)}intersects(h){return this.contains(h)||h.contains(this)}append(h){return new y(this.value+y.sep+h)}}e.CodeActionKind=y,y.sep=".",y.None=new y("@@none@@"),y.Empty=new y(""),y.QuickFix=new y("quickfix"),y.Refactor=new y("refactor"),y.Source=new y("source"),y.SourceOrganizeImports=y.Source.append("organizeImports"),y.SourceFixAll=y.Source.append("fixAll");var v;(function(C){C.Refactor="refactor",C.RefactorPreview="refactor preview",C.Lightbulb="lightbulb",C.Default="other (default)",C.SourceAction="source action",C.QuickFix="quick fix action",C.FixAll="fix all",C.OrganizeImports="organize imports",C.AutoFix="auto fix",C.QuickFixHover="quick fix hover window",C.OnSave="save participants",C.ProblemsView="problems view"})(v=e.CodeActionTriggerSource||(e.CodeActionTriggerSource={}));function k(C,h){return!(C.include&&!C.include.intersects(h)||C.excludes&&C.excludes.some(u=>w(h,u,C.include))||!C.includeSourceActions&&y.Source.contains(h))}e.mayIncludeActionsOfKind=k;function D(C,h){const u=h.kind?new y(h.kind):void 0;return!(C.include&&(!u||!C.include.contains(u))||C.excludes&&u&&C.excludes.some(n=>w(u,n,C.include))||!C.includeSourceActions&&u&&y.Source.contains(u)||C.onlyIncludePreferredActions&&!h.isPreferred)}e.filtersAction=D;function w(C,h,u){return!(!h.contains(C)||u&&h.contains(u))}class b{constructor(h,u,n){this.kind=h,this.apply=u,this.preferred=n}static fromUser(h,u){return!h||typeof h!="object"?new b(u.kind,u.apply,!1):new b(b.getKindFromUser(h,u.kind),b.getApplyFromUser(h,u.apply),b.getPreferredUser(h))}static getApplyFromUser(h,u){switch(typeof h.apply=="string"?h.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return u}}static getKindFromUser(h,u){return typeof h.kind=="string"?new y(h.kind):u}static getPreferredUser(h){return typeof h.preferred=="boolean"?h.preferred:!1}}e.CodeActionCommandArgs=b}),define(oe[246],se([1,0,60,11,3,23]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BlockCommentCommand=void 0;class w{constructor(C,h,u){this.languageConfigurationService=u,this._selection=C,this._insertSpace=h,this._usedEndToken=null}static _haystackHasNeedleAtOffset(C,h,u){if(u<0)return!1;const n=h.length,i=C.length;if(u+n>i)return!1;for(let t=0;t<n;t++){const o=C.charCodeAt(u+t),s=h.charCodeAt(t);if(o!==s&&!(o>=65&&o<=90&&o+32===s)&&!(s>=65&&s<=90&&s+32===o))return!1}return!0}_createOperationsForBlockComment(C,h,u,n,i,t){const o=C.startLineNumber,s=C.startColumn,d=C.endLineNumber,l=C.endColumn,a=i.getLineContent(o),r=i.getLineContent(d);let c=a.lastIndexOf(h,s-1+h.length),g=r.indexOf(u,l-1-u.length);if(c!==-1&&g!==-1)if(o===d)a.substring(c+h.length,g).indexOf(u)>=0&&(c=-1,g=-1);else{const _=a.substring(c+h.length),p=r.substring(0,g);(_.indexOf(u)>=0||p.indexOf(u)>=0)&&(c=-1,g=-1)}let f;c!==-1&&g!==-1?(n&&c+h.length<a.length&&a.charCodeAt(c+h.length)===32&&(h=h+" "),n&&g>0&&r.charCodeAt(g-1)===32&&(u=" "+u,g-=1),f=w._createRemoveBlockCommentOperations(new k.Range(o,c+h.length+1,d,g+1),h,u)):(f=w._createAddBlockCommentOperations(C,h,u,this._insertSpace),this._usedEndToken=f.length===1?u:null);for(const _ of f)t.addTrackedEditOperation(_.range,_.text)}static _createRemoveBlockCommentOperations(C,h,u){const n=[];return k.Range.isEmpty(C)?n.push(y.EditOperation.delete(new k.Range(C.startLineNumber,C.startColumn-h.length,C.endLineNumber,C.endColumn+u.length))):(n.push(y.EditOperation.delete(new k.Range(C.startLineNumber,C.startColumn-h.length,C.startLineNumber,C.startColumn))),n.push(y.EditOperation.delete(new k.Range(C.endLineNumber,C.endColumn,C.endLineNumber,C.endColumn+u.length)))),n}static _createAddBlockCommentOperations(C,h,u,n){const i=[];return k.Range.isEmpty(C)?i.push(y.EditOperation.replace(new k.Range(C.startLineNumber,C.startColumn,C.endLineNumber,C.endColumn),h+" "+u)):(i.push(y.EditOperation.insert(new v.Position(C.startLineNumber,C.startColumn),h+(n?" ":""))),i.push(y.EditOperation.insert(new v.Position(C.endLineNumber,C.endColumn),(n?" ":"")+u))),i}getEditOperations(C,h){const u=this._selection.startLineNumber,n=this._selection.startColumn;C.tokenization.tokenizeIfCheap(u);const i=C.getLanguageIdAtPosition(u,n),t=this.languageConfigurationService.getLanguageConfiguration(i).comments;!t||!t.blockCommentStartToken||!t.blockCommentEndToken||this._createOperationsForBlockComment(this._selection,t.blockCommentStartToken,t.blockCommentEndToken,this._insertSpace,C,h)}computeCursorState(C,h){const u=h.getInverseEditOperations();if(u.length===2){const n=u[0],i=u[1];return new D.Selection(n.range.endLineNumber,n.range.endColumn,i.range.startLineNumber,i.range.startColumn)}else{const n=u[0].range,i=this._usedEndToken?-this._usedEndToken.length-1:0;return new D.Selection(n.endLineNumber,n.endColumn+i,n.endLineNumber,n.endColumn+i)}}}e.BlockCommentCommand=w}),define(oe[449],se([1,0,8,60,11,3,23,246]),function(q,e,y,v,k,D,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LineCommentCommand=void 0;class C{constructor(u,n,i,t,o,s,d){this.languageConfigurationService=u,this._selection=n,this._tabSize=i,this._type=t,this._insertSpace=o,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1,this._ignoreEmptyLines=s,this._ignoreFirstLine=d||!1}static _gatherPreflightCommentStrings(u,n,i,t){u.tokenization.tokenizeIfCheap(n);const o=u.getLanguageIdAtPosition(n,1),s=t.getLanguageConfiguration(o).comments,d=s?s.lineCommentToken:null;if(!d)return null;const l=[];for(let a=0,r=i-n+1;a<r;a++)l[a]={ignore:!1,commentStr:d,commentStrOffset:0,commentStrLength:d.length};return l}static _analyzeLines(u,n,i,t,o,s,d,l){let a=!0,r;u===0?r=!0:u===1?r=!1:r=!0;for(let c=0,g=t.length;c<g;c++){const f=t[c],_=o+c;if(_===o&&d){f.ignore=!0;continue}const p=i.getLineContent(_),m=y.firstNonWhitespaceIndex(p);if(m===-1){f.ignore=s,f.commentStrOffset=p.length;continue}if(a=!1,f.ignore=!1,f.commentStrOffset=m,r&&!b.BlockCommentCommand._haystackHasNeedleAtOffset(p,f.commentStr,m)&&(u===0?r=!1:u===1||(f.ignore=!0)),r&&n){const S=m+f.commentStrLength;S<p.length&&p.charCodeAt(S)===32&&(f.commentStrLength+=1)}}if(u===0&&a){r=!1;for(let c=0,g=t.length;c<g;c++)t[c].ignore=!1}return{supported:!0,shouldRemoveComments:r,lines:t}}static _gatherPreflightData(u,n,i,t,o,s,d,l){const a=C._gatherPreflightCommentStrings(i,t,o,l);return a===null?{supported:!1}:C._analyzeLines(u,n,i,a,t,s,d,l)}_executeLineComments(u,n,i,t){let o;i.shouldRemoveComments?o=C._createRemoveLineCommentsOperations(i.lines,t.startLineNumber):(C._normalizeInsertionPoint(u,i.lines,t.startLineNumber,this._tabSize),o=this._createAddLineCommentsOperations(i.lines,t.startLineNumber));const s=new k.Position(t.positionLineNumber,t.positionColumn);for(let d=0,l=o.length;d<l;d++)n.addEditOperation(o[d].range,o[d].text),D.Range.isEmpty(o[d].range)&&D.Range.getStartPosition(o[d].range).equals(s)&&u.getLineContent(s.lineNumber).length+1===s.column&&(this._deltaColumn=(o[d].text||"").length);this._selectionId=n.trackSelection(t)}_attemptRemoveBlockComment(u,n,i,t){let o=n.startLineNumber,s=n.endLineNumber;const d=t.length+Math.max(u.getLineFirstNonWhitespaceColumn(n.startLineNumber),n.startColumn);let l=u.getLineContent(o).lastIndexOf(i,d-1),a=u.getLineContent(s).indexOf(t,n.endColumn-1-i.length);return l!==-1&&a===-1&&(a=u.getLineContent(o).indexOf(t,l+i.length),s=o),l===-1&&a!==-1&&(l=u.getLineContent(s).lastIndexOf(i,a),o=s),n.isEmpty()&&(l===-1||a===-1)&&(l=u.getLineContent(o).indexOf(i),l!==-1&&(a=u.getLineContent(o).indexOf(t,l+i.length))),l!==-1&&u.getLineContent(o).charCodeAt(l+i.length)===32&&(i+=" "),a!==-1&&u.getLineContent(s).charCodeAt(a-1)===32&&(t=" "+t,a-=1),l!==-1&&a!==-1?b.BlockCommentCommand._createRemoveBlockCommentOperations(new D.Range(o,l+i.length+1,s,a+1),i,t):null}_executeBlockComment(u,n,i){u.tokenization.tokenizeIfCheap(i.startLineNumber);const t=u.getLanguageIdAtPosition(i.startLineNumber,1),o=this.languageConfigurationService.getLanguageConfiguration(t).comments;if(!o||!o.blockCommentStartToken||!o.blockCommentEndToken)return;const s=o.blockCommentStartToken,d=o.blockCommentEndToken;let l=this._attemptRemoveBlockComment(u,i,s,d);if(!l){if(i.isEmpty()){const a=u.getLineContent(i.startLineNumber);let r=y.firstNonWhitespaceIndex(a);r===-1&&(r=a.length),l=b.BlockCommentCommand._createAddBlockCommentOperations(new D.Range(i.startLineNumber,r+1,i.startLineNumber,a.length+1),s,d,this._insertSpace)}else l=b.BlockCommentCommand._createAddBlockCommentOperations(new D.Range(i.startLineNumber,u.getLineFirstNonWhitespaceColumn(i.startLineNumber),i.endLineNumber,u.getLineMaxColumn(i.endLineNumber)),s,d,this._insertSpace);l.length===1&&(this._deltaColumn=s.length+1)}this._selectionId=n.trackSelection(i);for(const a of l)n.addEditOperation(a.range,a.text)}getEditOperations(u,n){let i=this._selection;if(this._moveEndPositionDown=!1,i.startLineNumber===i.endLineNumber&&this._ignoreFirstLine){n.addEditOperation(new D.Range(i.startLineNumber,u.getLineMaxColumn(i.startLineNumber),i.startLineNumber+1,1),i.startLineNumber===u.getLineCount()?"":` `),this._selectionId=n.trackSelection(i);return}i.startLineNumber<i.endLineNumber&&i.endColumn===1&&(this._moveEndPositionDown=!0,i=i.setEndPosition(i.endLineNumber-1,u.getLineMaxColumn(i.endLineNumber-1)));const t=C._gatherPreflightData(this._type,this._insertSpace,u,i.startLineNumber,i.endLineNumber,this._ignoreEmptyLines,this._ignoreFirstLine,this.languageConfigurationService);return t.supported?this._executeLineComments(u,n,t,i):this._executeBlockComment(u,n,i)}computeCursorState(u,n){let i=n.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(i=i.setEndPosition(i.endLineNumber+1,1)),new w.Selection(i.selectionStartLineNumber,i.selectionStartColumn+this._deltaColumn,i.positionLineNumber,i.positionColumn+this._deltaColumn)}static _createRemoveLineCommentsOperations(u,n){const i=[];for(let t=0,o=u.length;t<o;t++){const s=u[t];s.ignore||i.push(v.EditOperation.delete(new D.Range(n+t,s.commentStrOffset+1,n+t,s.commentStrOffset+s.commentStrLength+1)))}return i}_createAddLineCommentsOperations(u,n){const i=[],t=this._insertSpace?" ":"";for(let o=0,s=u.length;o<s;o++){const d=u[o];d.ignore||i.push(v.EditOperation.insert(new k.Position(n+o,d.commentStrOffset+1),d.commentStr+t))}return i}static nextVisibleColumn(u,n,i,t){return i?u+(n-u%n):u+t}static _normalizeInsertionPoint(u,n,i,t){let o=1073741824,s,d;for(let l=0,a=n.length;l<a;l++){if(n[l].ignore)continue;const r=u.getLineContent(i+l);let c=0;for(let g=0,f=n[l].commentStrOffset;c<o&&g<f;g++)c=C.nextVisibleColumn(c,t,r.charCodeAt(g)===9,1);c<o&&(o=c)}o=Math.floor(o/t)*t;for(let l=0,a=n.length;l<a;l++){if(n[l].ignore)continue;const r=u.getLineContent(i+l);let c=0;for(s=0,d=n[l].commentStrOffset;c<o&&s<d;s++)c=C.nextVisibleColumn(c,t,r.charCodeAt(s)===9,1);c>o?n[l].commentStrOffset=s-1:n[l].commentStrOffset=s}}}e.LineCommentCommand=C}),define(oe[450],se([1,0,3,23]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DragAndDropCommand=void 0;class k{constructor(w,b,C){this.selection=w,this.targetPosition=b,this.copy=C,this.targetSelection=null}getEditOperations(w,b){const C=w.getValueInRange(this.selection);if(this.copy||b.addEditOperation(this.selection,null),b.addEditOperation(new y.Range(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),C),this.selection.containsPosition(this.targetPosition)&&!(this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition)))){this.targetSelection=this.selection;return}if(this.copy){this.targetSelection=new v.Selection(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumber>this.selection.endLineNumber){this.targetSelection=new v.Selection(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumber<this.selection.endLineNumber){this.targetSelection=new v.Selection(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber+this.selection.endLineNumber-this.selection.startLineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}this.selection.endColumn<=this.targetPosition.column?this.targetSelection=new v.Selection(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column-this.selection.endColumn+this.selection.startColumn:this.targetPosition.column-this.selection.endColumn+this.selection.startColumn,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column:this.selection.endColumn):this.targetSelection=new v.Selection(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column+this.selection.endColumn-this.selection.startColumn)}computeCursorState(w,b){return this.targetSelection}}e.DragAndDropCommand=k}),define(oe[451],se([1,0,3]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ReplaceAllCommand=void 0;class v{constructor(D,w,b){this._editorSelection=D,this._ranges=w,this._replaceStrings=b,this._trackedEditorSelectionId=null}getEditOperations(D,w){if(this._ranges.length>0){const b=[];for(let u=0;u<this._ranges.length;u++)b.push({range:this._ranges[u],text:this._replaceStrings[u]});b.sort((u,n)=>y.Range.compareRangesUsingStarts(u.range,n.range));const C=[];let h=b[0];for(let u=1;u<b.length;u++)h.range.endLineNumber===b[u].range.startLineNumber&&h.range.endColumn===b[u].range.startColumn?(h.range=h.range.plusRange(b[u].range),h.text=h.text+b[u].text):(C.push(h),h=b[u]);C.push(h);for(const u of C)w.addEditOperation(u.range,u.text)}this._trackedEditorSelectionId=w.trackSelection(this._editorSelection)}computeCursorState(D,w){return w.getTrackedSelection(this._trackedEditorSelectionId)}}e.ReplaceAllCommand=v}),define(oe[452],se([1,0,333]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseReplaceString=e.ReplacePiece=e.ReplacePattern=void 0;class v{constructor(u){this.staticValue=u,this.kind=0}}class k{constructor(u){this.pieces=u,this.kind=1}}class D{constructor(u){!u||u.length===0?this._state=new v(""):u.length===1&&u[0].staticValue!==null?this._state=new v(u[0].staticValue):this._state=new k(u)}static fromStaticValue(u){return new D([w.staticValue(u)])}get hasReplacementPatterns(){return this._state.kind===1}buildReplaceString(u,n){if(this._state.kind===0)return n?(0,y.buildReplaceStringWithCasePreserved)(u,this._state.staticValue):this._state.staticValue;let i="";for(let t=0,o=this._state.pieces.length;t<o;t++){const s=this._state.pieces[t];if(s.staticValue!==null){i+=s.staticValue;continue}let d=D._substitute(s.matchIndex,u);if(s.caseOps!==null&&s.caseOps.length>0){const l=[],a=s.caseOps.length;let r=0;for(let c=0,g=d.length;c<g;c++){if(r>=a){l.push(d.slice(c));break}switch(s.caseOps[r]){case"U":l.push(d[c].toUpperCase());break;case"u":l.push(d[c].toUpperCase()),r++;break;case"L":l.push(d[c].toLowerCase());break;case"l":l.push(d[c].toLowerCase()),r++;break;default:l.push(d[c])}}d=l.join("")}i+=d}return i}static _substitute(u,n){if(n===null)return"";if(u===0)return n[0];let i="";for(;u>0;){if(u<n.length)return(n[u]||"")+i;i=String(u%10)+i,u=Math.floor(u/10)}return"$"+i}}e.ReplacePattern=D;class w{constructor(u,n,i){this.staticValue=u,this.matchIndex=n,!i||i.length===0?this.caseOps=null:this.caseOps=i.slice(0)}static staticValue(u){return new w(u,-1,null)}static caseOps(u,n){return new w(null,u,n)}}e.ReplacePiece=w;class b{constructor(u){this._source=u,this._lastCharIndex=0,this._result=[],this._resultLen=0,this._currentStaticPiece=""}emitUnchanged(u){this._emitStatic(this._source.substring(this._lastCharIndex,u)),this._lastCharIndex=u}emitStatic(u,n){this._emitStatic(u),this._lastCharIndex=n}_emitStatic(u){u.length!==0&&(this._currentStaticPiece+=u)}emitMatchIndex(u,n,i){this._currentStaticPiece.length!==0&&(this._result[this._resultLen++]=w.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),this._result[this._resultLen++]=w.caseOps(u,i),this._lastCharIndex=n}finalize(){return this.emitUnchanged(this._source.length),this._currentStaticPiece.length!==0&&(this._result[this._resultLen++]=w.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),new D(this._result)}}function C(h){if(!h||h.length===0)return new D(null);const u=[],n=new b(h);for(let i=0,t=h.length;i<t;i++){const o=h.charCodeAt(i);if(o===92){if(i++,i>=t)break;const s=h.charCodeAt(i);switch(s){case 92:n.emitUnchanged(i-1),n.emitStatic("\\",i+1);break;case 110:n.emitUnchanged(i-1),n.emitStatic(` `,i+1);break;case 116:n.emitUnchanged(i-1),n.emitStatic(" ",i+1);break;case 117:case 85:case 108:case 76:n.emitUnchanged(i-1),n.emitStatic("",i+1),u.push(String.fromCharCode(s));break}continue}if(o===36){if(i++,i>=t)break;const s=h.charCodeAt(i);if(s===36){n.emitUnchanged(i-1),n.emitStatic("$",i+1);continue}if(s===48||s===38){n.emitUnchanged(i-1),n.emitMatchIndex(0,i+1,u),u.length=0;continue}if(49<=s&&s<=57){let d=s-48;if(i+1<t){const l=h.charCodeAt(i+1);if(48<=l&&l<=57){i++,d=d*10+(l-48),n.emitUnchanged(i-2),n.emitMatchIndex(d,i+1,u),u.length=0;continue}}n.emitUnchanged(i-1),n.emitMatchIndex(d,i+1,u),u.length=0;continue}}}return n.finalize()}e.parseReplaceString=C}),define(oe[160],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FoldingRegion=e.FoldingRegions=e.MAX_LINE_NUMBER=e.MAX_FOLDING_REGIONS=void 0,e.MAX_FOLDING_REGIONS=65535,e.MAX_LINE_NUMBER=16777215;const y=4278190080;class v{constructor(b){const C=Math.ceil(b/32);this._states=new Uint32Array(C)}get(b){const C=b/32|0,h=b%32;return(this._states[C]&1<<h)!=0}set(b,C){const h=b/32|0,u=b%32,n=this._states[h];C?this._states[h]=n|1<<u:this._states[h]=n&~(1<<u)}}class k{constructor(b,C,h){if(this.sourceAbbr={[0]:" ",[1]:"u",[2]:"r"},b.length!==C.length||b.length>e.MAX_FOLDING_REGIONS)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=b,this._endIndexes=C,this._collapseStates=new v(b.length),this._userDefinedStates=new v(b.length),this._recoveredStates=new v(b.length),this._types=h,this._parentsComputed=!1}ensureParentIndices(){if(!this._parentsComputed){this._parentsComputed=!0;const b=[],C=(h,u)=>{const n=b[b.length-1];return this.getStartLineNumber(n)<=h&&this.getEndLineNumber(n)>=u};for(let h=0,u=this._startIndexes.length;h<u;h++){const n=this._startIndexes[h],i=this._endIndexes[h];if(n>e.MAX_LINE_NUMBER||i>e.MAX_LINE_NUMBER)throw new Error("startLineNumber or endLineNumber must not exceed "+e.MAX_LINE_NUMBER);for(;b.length>0&&!C(n,i);)b.pop();const t=b.length>0?b[b.length-1]:-1;b.push(h),this._startIndexes[h]=n+((t&255)<<24),this._endIndexes[h]=i+((t&65280)<<16)}}}get length(){return this._startIndexes.length}getStartLineNumber(b){return this._startIndexes[b]&e.MAX_LINE_NUMBER}getEndLineNumber(b){return this._endIndexes[b]&e.MAX_LINE_NUMBER}getType(b){return this._types?this._types[b]:void 0}hasTypes(){return!!this._types}isCollapsed(b){return this._collapseStates.get(b)}setCollapsed(b,C){this._collapseStates.set(b,C)}isUserDefined(b){return this._userDefinedStates.get(b)}setUserDefined(b,C){return this._userDefinedStates.set(b,C)}isRecovered(b){return this._recoveredStates.get(b)}setRecovered(b,C){return this._recoveredStates.set(b,C)}getSource(b){return this.isUserDefined(b)?1:this.isRecovered(b)?2:0}setSource(b,C){C===1?(this.setUserDefined(b,!0),this.setRecovered(b,!1)):C===2?(this.setUserDefined(b,!1),this.setRecovered(b,!0)):(this.setUserDefined(b,!1),this.setRecovered(b,!1))}setCollapsedAllOfType(b,C){let h=!1;if(this._types)for(let u=0;u<this._types.length;u++)this._types[u]===b&&(this.setCollapsed(u,C),h=!0);return h}toRegion(b){return new D(this,b)}getParentIndex(b){this.ensureParentIndices();const C=((this._startIndexes[b]&y)>>>24)+((this._endIndexes[b]&y)>>>16);return C===e.MAX_FOLDING_REGIONS?-1:C}contains(b,C){return this.getStartLineNumber(b)<=C&&this.getEndLineNumber(b)>=C}findIndex(b){let C=0,h=this._startIndexes.length;if(h===0)return-1;for(;C<h;){const u=Math.floor((C+h)/2);b<this.getStartLineNumber(u)?h=u:C=u+1}return C-1}findRange(b){let C=this.findIndex(b);if(C>=0){if(this.getEndLineNumber(C)>=b)return C;for(C=this.getParentIndex(C);C!==-1;){if(this.contains(C,b))return C;C=this.getParentIndex(C)}}return-1}toString(){const b=[];for(let C=0;C<this.length;C++)b[C]=`[${this.sourceAbbr[this.getSource(C)]}${this.isCollapsed(C)?"+":"-"}] ${this.getStartLineNumber(C)}/${this.getEndLineNumber(C)}`;return b.join(", ")}toFoldRange(b){return{startLineNumber:this._startIndexes[b]&e.MAX_LINE_NUMBER,endLineNumber:this._endIndexes[b]&e.MAX_LINE_NUMBER,type:this._types?this._types[b]:void 0,isCollapsed:this.isCollapsed(b),source:this.getSource(b)}}static fromFoldRanges(b){const C=b.length,h=new Uint32Array(C),u=new Uint32Array(C);let n=[],i=!1;for(let o=0;o<C;o++){const s=b[o];h[o]=s.startLineNumber,u[o]=s.endLineNumber,n.push(s.type),s.type&&(i=!0)}i||(n=void 0);const t=new k(h,u,n);for(let o=0;o<C;o++)b[o].isCollapsed&&t.setCollapsed(o,!0),t.setSource(o,b[o].source);return t}static sanitizeAndMerge(b,C,h){h=h??Number.MAX_VALUE;const u=(g,f)=>Array.isArray(g)?_=>_<f?g[_]:void 0:_=>_<f?g.toFoldRange(_):void 0,n=u(b,b.length),i=u(C,C.length);let t=0,o=0,s=n(0),d=i(0);const l=[];let a,r=0;const c=[];for(;s||d;){let g;if(d&&(!s||s.startLineNumber>=d.startLineNumber))s&&s.startLineNumber===d.startLineNumber?(d.source===1?g=d:(g=s,g.isCollapsed=d.isCollapsed&&s.endLineNumber===d.endLineNumber,g.source=0),s=n(++t)):(g=d,d.isCollapsed&&d.source===0&&(g.source=2)),d=i(++o);else{let f=o,_=d;for(;;){if(!_||_.startLineNumber>s.endLineNumber){g=s;break}if(_.source===1&&_.endLineNumber>s.endLineNumber)break;_=i(++f)}s=n(++t)}if(g){for(;a&&a.endLineNumber<g.startLineNumber;)a=l.pop();g.endLineNumber>g.startLineNumber&&g.startLineNumber>r&&g.endLineNumber<=h&&(!a||a.endLineNumber>=g.endLineNumber)&&(c.push(g),r=g.startLineNumber,a&&l.push(a),a=g)}}return c}}e.FoldingRegions=k;class D{constructor(b,C){this.ranges=b,this.index=C}get startLineNumber(){return this.ranges.getStartLineNumber(this.index)}get endLineNumber(){return this.ranges.getEndLineNumber(this.index)}get regionIndex(){return this.index}get parentIndex(){return this.ranges.getParentIndex(this.index)}get isCollapsed(){return this.ranges.isCollapsed(this.index)}containedBy(b){return b.startLineNumber<=this.startLineNumber&&b.endLineNumber>=this.endLineNumber}containsLine(b){return this.startLineNumber<=b&&b<=this.endLineNumber}}e.FoldingRegion=D}),define(oe[453],se([1,0,184,160]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.computeRanges=e.RangesCollector=e.IndentRangeProvider=e.ID_INDENT_PROVIDER=void 0;const k=5e3;e.ID_INDENT_PROVIDER="indent";class D{constructor(h,u,n){this.editorModel=h,this.languageConfigurationService=u,this.maxFoldingRegions=n,this.id=e.ID_INDENT_PROVIDER}dispose(){}compute(h,u){const n=this.languageConfigurationService.getLanguageConfiguration(this.editorModel.getLanguageId()).foldingRules,i=n&&!!n.offSide,t=n&&n.markers;return Promise.resolve(b(this.editorModel,i,t,this.maxFoldingRegions,u))}}e.IndentRangeProvider=D;class w{constructor(h,u){this._notifyTooManyRegions=u,this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=h}insertFirst(h,u,n){if(h>v.MAX_LINE_NUMBER||u>v.MAX_LINE_NUMBER)return;const i=this._length;this._startIndexes[i]=h,this._endIndexes[i]=u,this._length++,n<1e3&&(this._indentOccurrences[n]=(this._indentOccurrences[n]||0)+1)}toIndentRanges(h){var u;if(this._length<=this._foldingRangesLimit){const n=new Uint32Array(this._length),i=new Uint32Array(this._length);for(let t=this._length-1,o=0;t>=0;t--,o++)n[o]=this._startIndexes[t],i[o]=this._endIndexes[t];return new v.FoldingRegions(n,i)}else{(u=this._notifyTooManyRegions)===null||u===void 0||u.call(this,this._foldingRangesLimit);let n=0,i=this._indentOccurrences.length;for(let d=0;d<this._indentOccurrences.length;d++){const l=this._indentOccurrences[d];if(l){if(l+n>this._foldingRangesLimit){i=d;break}n+=l}}const t=h.getOptions().tabSize,o=new Uint32Array(this._foldingRangesLimit),s=new Uint32Array(this._foldingRangesLimit);for(let d=this._length-1,l=0;d>=0;d--){const a=this._startIndexes[d],r=h.getLineContent(a),c=(0,y.computeIndentLevel)(r,t);(c<i||c===i&&n++<this._foldingRangesLimit)&&(o[l]=a,s[l]=this._endIndexes[d],l++)}return new v.FoldingRegions(o,s)}}}e.RangesCollector=w;function b(C,h,u,n,i){const t=C.getOptions().tabSize;n=n??k;const o=new w(n,i);let s;u&&(s=new RegExp(`(${u.start.source})|(?:${u.end.source})`));const d=[],l=C.getLineCount()+1;d.push({indent:-1,endAbove:l,line:l});for(let a=C.getLineCount();a>0;a--){const r=C.getLineContent(a),c=(0,y.computeIndentLevel)(r,t);let g=d[d.length-1];if(c===-1){h&&(g.endAbove=a);continue}let f;if(s&&(f=r.match(s)))if(f[1]){let _=d.length-1;for(;_>0&&d[_].indent!==-2;)_--;if(_>0){d.length=_+1,g=d[_],o.insertFirst(a,g.line,c),g.line=a,g.indent=c,g.endAbove=a;continue}}else{d.push({indent:-2,endAbove:a,line:a});continue}if(g.indent>c){do d.pop(),g=d[d.length-1];while(g.indent>c);const _=g.endAbove-1;_-a>=1&&o.insertFirst(a,_,c)}g.indent===c?g.endAbove=a:d.push({indent:c,endAbove:a,line:a})}return o.toIndentRanges(C)}e.computeRanges=b}),define(oe[454],se([1,0,14,2,160]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sanitizeRanges=e.RangesCollector=e.SyntaxRangeProvider=e.ID_SYNTAX_PROVIDER=void 0;const D={};e.ID_SYNTAX_PROVIDER="syntax";class w{constructor(n,i,t,o){this.editorModel=n,this.providers=i,this.limit=o,this.id=e.ID_SYNTAX_PROVIDER;for(const s of i)typeof s.onDidChange=="function"&&(this.disposables||(this.disposables=new v.DisposableStore),this.disposables.add(s.onDidChange(t)))}compute(n,i){return b(this.providers,this.editorModel,n).then(t=>t?h(t,this.limit,i):null)}dispose(){var n;(n=this.disposables)===null||n===void 0||n.dispose()}}e.SyntaxRangeProvider=w;function b(u,n,i){let t=null;const o=u.map((s,d)=>Promise.resolve(s.provideFoldingRanges(n,D,i)).then(l=>{if(!i.isCancellationRequested&&Array.isArray(l)){Array.isArray(t)||(t=[]);const a=n.getLineCount();for(const r of l)r.start>0&&r.end>r.start&&r.end<=a&&t.push({start:r.start,end:r.end,rank:d,kind:r.kind})}},y.onUnexpectedExternalError));return Promise.all(o).then(s=>t)}class C{constructor(n,i){this._notifyTooManyRegions=i,this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=n}add(n,i,t,o){if(n>k.MAX_LINE_NUMBER||i>k.MAX_LINE_NUMBER)return;const s=this._length;this._startIndexes[s]=n,this._endIndexes[s]=i,this._nestingLevels[s]=o,this._types[s]=t,this._length++,o<30&&(this._nestingLevelCounts[o]=(this._nestingLevelCounts[o]||0)+1)}toIndentRanges(){var n;if(this._length<=this._foldingRangesLimit){const i=new Uint32Array(this._length),t=new Uint32Array(this._length);for(let o=0;o<this._length;o++)i[o]=this._startIndexes[o],t[o]=this._endIndexes[o];return new k.FoldingRegions(i,t,this._types)}else{(n=this._notifyTooManyRegions)===null||n===void 0||n.call(this,this._foldingRangesLimit);let i=0,t=this._nestingLevelCounts.length;for(let l=0;l<this._nestingLevelCounts.length;l++){const a=this._nestingLevelCounts[l];if(a){if(a+i>this._foldingRangesLimit){t=l;break}i+=a}}const o=new Uint32Array(this._foldingRangesLimit),s=new Uint32Array(this._foldingRangesLimit),d=[];for(let l=0,a=0;l<this._length;l++){const r=this._nestingLevels[l];(r<t||r===t&&i++<this._foldingRangesLimit)&&(o[a]=this._startIndexes[l],s[a]=this._endIndexes[l],d[a]=this._types[l],a++)}return new k.FoldingRegions(o,s,d)}}}e.RangesCollector=C;function h(u,n,i){const t=u.sort((l,a)=>{let r=l.start-a.start;return r===0&&(r=l.rank-a.rank),r}),o=new C(n,i);let s;const d=[];for(const l of t)if(!s)s=l,o.add(l.start,l.end,l.kind&&l.kind.value,d.length);else if(l.start>s.start)if(l.end<=s.end)d.push(s),s=l,o.add(l.start,l.end,l.kind&&l.kind.value,d.length);else{if(l.start>s.end){do s=d.pop();while(s&&l.start>s.end);s&&d.push(s),s=l}o.add(l.start,l.end,l.kind&&l.kind.value,d.length)}return o.toIndentRanges()}e.sanitizeRanges=h}),define(oe[247],se([1,0,60,3]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FormattingEdit=void 0;class k{static _handleEolEdits(w,b){let C;const h=[];for(const u of b)typeof u.eol=="number"&&(C=u.eol),u.range&&typeof u.text=="string"&&h.push(u);return typeof C=="number"&&w.hasModel()&&w.getModel().pushEOL(C),h}static _isFullModelReplaceEdit(w,b){if(!w.hasModel())return!1;const C=w.getModel(),h=C.validateRange(b.range);return C.getFullModelRange().equalsRange(h)}static execute(w,b,C){C&&w.pushUndoStop();const h=k._handleEolEdits(w,b);h.length===1&&k._isFullModelReplaceEdit(w,h[0])?w.executeEdits("formatEditsCommand",h.map(u=>y.EditOperation.replace(v.Range.lift(u.range),u.text))):w.executeEdits("formatEditsCommand",h.map(u=>y.EditOperation.replaceMove(v.Range.lift(u.range),u.text))),C&&w.pushUndoStop()}}e.FormattingEdit=k}),define(oe[88],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HoverParticipantRegistry=e.HoverForeignElementAnchor=e.HoverRangeAnchor=void 0;class y{constructor(D,w){this.priority=D,this.range=w,this.type=1}equals(D){return D.type===1&&this.range.equalsRange(D.range)}canAdoptVisibleHover(D,w){return D.type===1&&w.lineNumber===this.range.startLineNumber}}e.HoverRangeAnchor=y;class v{constructor(D,w,b){this.priority=D,this.owner=w,this.range=b,this.type=2}equals(D){return D.type===2&&this.owner===D.owner}canAdoptVisibleHover(D,w){return D.type===2&&this.owner===D.owner}}e.HoverForeignElementAnchor=v,e.HoverParticipantRegistry=new class{constructor(){this._participants=[]}register(k){this._participants.push(k)}getAll(){return this._participants}}}),define(oe[455],se([1,0,23]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InPlaceReplaceCommand=void 0;class v{constructor(D,w,b){this._editRange=D,this._originalSelection=w,this._text=b}getEditOperations(D,w){w.addTrackedEditOperation(this._editRange,this._text)}computeCursorState(D,w){const b=w.getInverseEditOperations()[0].range;return this._originalSelection.isEmpty()?new y.Selection(b.endLineNumber,Math.min(this._originalSelection.positionColumn,b.endColumn),b.endLineNumber,Math.min(this._originalSelection.positionColumn,b.endColumn)):new y.Selection(b.endLineNumber,b.endColumn-this._text.length,b.endLineNumber,b.endColumn)}}e.InPlaceReplaceCommand=v}),define(oe[248],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.generateIndent=e.getSpaceCnt=void 0;function y(k,D){let w=0;for(let b=0;b<k.length;b++)k.charAt(b)===" "?w+=D:w++;return w}e.getSpaceCnt=y;function v(k,D,w){k=k<0?0:k;let b="";if(!w){const C=Math.floor(k/D);k=k%D;for(let h=0;h<C;h++)b+=" "}for(let C=0;C<k;C++)b+=" ";return b}e.generateIndent=v}),define(oe[188],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.inlineSuggestCommitId=void 0,e.inlineSuggestCommitId="editor.action.inlineSuggest.commit"}),define(oe[189],se([1,0,3]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getReadonlyEmptyArray=e.applyEdits=e.createDisposableRef=void 0;function v(C,h){return{object:C,dispose:()=>h?.dispose()}}e.createDisposableRef=v;function k(C,h){const u=new D(C),n=h.map(i=>{const t=y.Range.lift(i.range);return{startOffset:u.getOffset(t.getStartPosition()),endOffset:u.getOffset(t.getEndPosition()),text:i.text}});n.sort((i,t)=>t.startOffset-i.startOffset);for(const i of n)C=C.substring(0,i.startOffset)+i.text+C.substring(i.endOffset);return C}e.applyEdits=k;class D{constructor(h){this.lineStartOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let u=0;u<h.length;u++)h.charAt(u)===` `&&this.lineStartOffsetByLineIdx.push(u+1)}getOffset(h){return this.lineStartOffsetByLineIdx[h.lineNumber-1]+h.column-1}}const w=[];function b(){return w}e.getReadonlyEmptyArray=b}),define(oe[456],se([1,0,3,23]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CopyLinesCommand=void 0;class k{constructor(w,b,C){this._selection=w,this._isCopyingDown=b,this._noop=C||!1,this._selectionDirection=0,this._selectionId=null,this._startLineNumberDelta=0,this._endLineNumberDelta=0}getEditOperations(w,b){let C=this._selection;this._startLineNumberDelta=0,this._endLineNumberDelta=0,C.startLineNumber<C.endLineNumber&&C.endColumn===1&&(this._endLineNumberDelta=1,C=C.setEndPosition(C.endLineNumber-1,w.getLineMaxColumn(C.endLineNumber-1)));const h=[];for(let n=C.startLineNumber;n<=C.endLineNumber;n++)h.push(w.getLineContent(n));const u=h.join(` `);u===""&&this._isCopyingDown&&(this._startLineNumberDelta++,this._endLineNumberDelta++),this._noop?b.addEditOperation(new y.Range(C.endLineNumber,w.getLineMaxColumn(C.endLineNumber),C.endLineNumber+1,1),C.endLineNumber===w.getLineCount()?"":` `):this._isCopyingDown?b.addEditOperation(new y.Range(C.startLineNumber,1,C.startLineNumber,1),u+` `):b.addEditOperation(new y.Range(C.endLineNumber,w.getLineMaxColumn(C.endLineNumber),C.endLineNumber,w.getLineMaxColumn(C.endLineNumber)),` `+u),this._selectionId=b.trackSelection(C),this._selectionDirection=this._selection.getDirection()}computeCursorState(w,b){let C=b.getTrackedSelection(this._selectionId);if(this._startLineNumberDelta!==0||this._endLineNumberDelta!==0){let h=C.startLineNumber,u=C.startColumn,n=C.endLineNumber,i=C.endColumn;this._startLineNumberDelta!==0&&(h=h+this._startLineNumberDelta,u=1),this._endLineNumberDelta!==0&&(n=n+this._endLineNumberDelta,i=1),C=v.Selection.createWithDirection(h,u,n,i,this._selectionDirection)}return C}}e.CopyLinesCommand=k}),define(oe[457],se([1,0,60,3]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SortLinesCommand=void 0;class k{constructor(C,h){this.selection=C,this.descending=h,this.selectionId=null}static getCollator(){return k._COLLATOR||(k._COLLATOR=new Intl.Collator),k._COLLATOR}getEditOperations(C,h){const u=w(C,this.selection,this.descending);u&&h.addEditOperation(u.range,u.text),this.selectionId=h.trackSelection(this.selection)}computeCursorState(C,h){return h.getTrackedSelection(this.selectionId)}static canRun(C,h,u){if(C===null)return!1;const n=D(C,h,u);if(!n)return!1;for(let i=0,t=n.before.length;i<t;i++)if(n.before[i]!==n.after[i])return!0;return!1}}e.SortLinesCommand=k,k._COLLATOR=null;function D(b,C,h){const u=C.startLineNumber;let n=C.endLineNumber;if(C.endColumn===1&&n--,u>=n)return null;const i=[];for(let o=u;o<=n;o++)i.push(b.getLineContent(o));let t=i.slice(0);return t.sort(k.getCollator().compare),h===!0&&(t=t.reverse()),{startLineNumber:u,endLineNumber:n,before:i,after:t}}function w(b,C,h){const u=D(b,C,h);return u?y.EditOperation.replace(new v.Range(u.startLineNumber,1,u.endLineNumber,b.getLineMaxColumn(u.endLineNumber)),u.after.join(` `)):null}}),define(oe[249],se([1,0,73,11,3]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BracketSelectionRangeProvider=void 0;class D{provideSelectionRanges(b,C){return be(this,void 0,void 0,function*(){const h=[];for(const u of C){const n=[];h.push(n);const i=new Map;yield new Promise(t=>D._bracketsRightYield(t,0,b,u,i)),yield new Promise(t=>D._bracketsLeftYield(t,0,b,u,i,n))}return h})}static _bracketsRightYield(b,C,h,u,n){const i=new Map,t=Date.now();for(;;){if(C>=D._maxRounds){b();break}if(!u){b();break}const o=h.bracketPairs.findNextBracket(u);if(!o){b();break}if(Date.now()-t>D._maxDuration){setTimeout(()=>D._bracketsRightYield(b,C+1,h,u,n));break}if(o.bracketInfo.isOpeningBracket){const s=o.bracketInfo.bracketText,d=i.has(s)?i.get(s):0;i.set(s,d+1)}else{const s=o.bracketInfo.getClosedBrackets()[0].bracketText;let d=i.has(s)?i.get(s):0;if(d-=1,i.set(s,Math.max(0,d)),d<0){let l=n.get(s);l||(l=new y.LinkedList,n.set(s,l)),l.push(o.range)}}u=o.range.getEndPosition()}}static _bracketsLeftYield(b,C,h,u,n,i){const t=new Map,o=Date.now();for(;;){if(C>=D._maxRounds&&n.size===0){b();break}if(!u){b();break}const s=h.bracketPairs.findPrevBracket(u);if(!s){b();break}if(Date.now()-o>D._maxDuration){setTimeout(()=>D._bracketsLeftYield(b,C+1,h,u,n,i));break}if(s.bracketInfo.isOpeningBracket){const d=s.bracketInfo.bracketText;let l=t.has(d)?t.get(d):0;if(l-=1,t.set(d,Math.max(0,l)),l<0){const a=n.get(d);if(a){const r=a.shift();a.size===0&&n.delete(d);const c=k.Range.fromPositions(s.range.getEndPosition(),r.getStartPosition()),g=k.Range.fromPositions(s.range.getStartPosition(),r.getEndPosition());i.push({range:c}),i.push({range:g}),D._addBracketLeading(h,g,i)}}}else{const d=s.bracketInfo.getClosedBrackets()[0].bracketText,l=t.has(d)?t.get(d):0;t.set(d,l+1)}u=s.range.getStartPosition()}}static _addBracketLeading(b,C,h){if(C.startLineNumber===C.endLineNumber)return;const u=C.startLineNumber,n=b.getLineFirstNonWhitespaceColumn(u);n!==0&&n!==C.startColumn&&(h.push({range:k.Range.fromPositions(new v.Position(u,n),C.getEndPosition())}),h.push({range:k.Range.fromPositions(new v.Position(u,1),C.getEndPosition())}));const i=u-1;if(i>0){const t=b.getLineFirstNonWhitespaceColumn(i);t===C.startColumn&&t!==b.getLineLastNonWhitespaceColumn(i)&&(h.push({range:k.Range.fromPositions(new v.Position(i,t),C.getEndPosition())}),h.push({range:k.Range.fromPositions(new v.Position(i,1),C.getEndPosition())}))}}}e.BracketSelectionRangeProvider=D,D._maxDuration=30,D._maxRounds=2}),define(oe[458],se([1,0,8,3]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WordSelectionRangeProvider=void 0;class k{provideSelectionRanges(w,b){const C=[];for(const h of b){const u=[];C.push(u),this._addInWordRanges(u,w,h),this._addWordRanges(u,w,h),this._addWhitespaceLine(u,w,h),u.push({range:w.getFullModelRange()})}return C}_addInWordRanges(w,b,C){const h=b.getWordAtPosition(C);if(!h)return;const{word:u,startColumn:n}=h,i=C.column-n;let t=i,o=i,s=0;for(;t>=0;t--){const d=u.charCodeAt(t);if(t!==i&&(d===95||d===45)||(0,y.isLowerAsciiLetter)(d)&&(0,y.isUpperAsciiLetter)(s))break;s=d}for(t+=1;o<u.length;o++){const d=u.charCodeAt(o);if((0,y.isUpperAsciiLetter)(d)&&(0,y.isLowerAsciiLetter)(s)||d===95||d===45)break;s=d}t<o&&w.push({range:new v.Range(C.lineNumber,n+t,C.lineNumber,n+o)})}_addWordRanges(w,b,C){const h=b.getWordAtPosition(C);h&&w.push({range:new v.Range(C.lineNumber,h.startColumn,C.lineNumber,h.endColumn)})}_addWhitespaceLine(w,b,C){b.getLineLength(C.lineNumber)>0&&b.getLineFirstNonWhitespaceColumn(C.lineNumber)===0&&b.getLineLastNonWhitespaceColumn(C.lineNumber)===0&&w.push({range:new v.Range(C.lineNumber,1,C.lineNumber,b.getLineMaxColumn(C.lineNumber))})}}e.WordSelectionRangeProvider=k}),define(oe[89],se([1,0]),function(q,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 y{constructor(){this.value="",this.pos=0}static isDigitCharacter(s){return s>=48&&s<=57}static isVariableCharacter(s){return s===95||s>=97&&s<=122||s>=65&&s<=90}text(s){this.value=s,this.pos=0}tokenText(s){return this.value.substr(s.pos,s.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};const s=this.pos;let d=0,l=this.value.charCodeAt(s),a;if(a=y._table[l],typeof a=="number")return this.pos+=1,{type:a,pos:s,len:1};if(y.isDigitCharacter(l)){a=8;do d+=1,l=this.value.charCodeAt(s+d);while(y.isDigitCharacter(l));return this.pos+=d,{type:a,pos:s,len:d}}if(y.isVariableCharacter(l)){a=9;do l=this.value.charCodeAt(s+ ++d);while(y.isVariableCharacter(l)||y.isDigitCharacter(l));return this.pos+=d,{type:a,pos:s,len:d}}a=10;do d+=1,l=this.value.charCodeAt(s+d);while(!isNaN(l)&&typeof y._table[l]>"u"&&!y.isDigitCharacter(l)&&!y.isVariableCharacter(l));return this.pos+=d,{type:a,pos:s,len:d}}}e.Scanner=y,y._table={[36]:0,[58]:1,[44]:2,[123]:3,[125]:4,[92]:5,[47]:6,[124]:7,[43]:11,[45]:12,[63]:13};class v{constructor(){this._children=[]}appendChild(s){return s instanceof k&&this._children[this._children.length-1]instanceof k?this._children[this._children.length-1].value+=s.value:(s.parent=this,this._children.push(s)),this}replace(s,d){const{parent:l}=s,a=l.children.indexOf(s),r=l.children.slice(0);r.splice(a,1,...d),l._children=r,function c(g,f){for(const _ of g)_.parent=f,c(_.children,_)}(d,l)}get children(){return this._children}get snippet(){let s=this;for(;;){if(!s)return;if(s instanceof i)return s;s=s.parent}}toString(){return this.children.reduce((s,d)=>s+d.toString(),"")}len(){return 0}}e.Marker=v;class k extends v{constructor(s){super(),this.value=s}toString(){return this.value}len(){return this.value.length}clone(){return new k(this.value)}}e.Text=k;class D extends v{}e.TransformableMarker=D;class w extends D{constructor(s){super(),this.index=s}static compareByIndex(s,d){return s.index===d.index?0:s.isFinalTabstop?1:d.isFinalTabstop||s.index<d.index?-1:s.index>d.index?1:0}get isFinalTabstop(){return this.index===0}get choice(){return this._children.length===1&&this._children[0]instanceof b?this._children[0]:void 0}clone(){const s=new w(this.index);return this.transform&&(s.transform=this.transform.clone()),s._children=this.children.map(d=>d.clone()),s}}e.Placeholder=w;class b extends v{constructor(){super(...arguments),this.options=[]}appendChild(s){return s instanceof k&&(s.parent=this,this.options.push(s)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const s=new b;return this.options.forEach(s.appendChild,s),s}}e.Choice=b;class C extends v{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(s){const d=this;let l=!1,a=s.replace(this.regexp,function(){return l=!0,d._replace(Array.prototype.slice.call(arguments,0,-2))});return!l&&this._children.some(r=>r instanceof h&&!!r.elseValue)&&(a=this._replace([])),a}_replace(s){let d="";for(const l of this._children)if(l instanceof h){let a=s[l.index]||"";a=l.resolve(a),d+=a}else d+=l.toString();return d}toString(){return""}clone(){const s=new C;return s.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),s._children=this.children.map(d=>d.clone()),s}}e.Transform=C;class h extends v{constructor(s,d,l,a){super(),this.index=s,this.shorthandName=d,this.ifValue=l,this.elseValue=a}resolve(s){return this.shorthandName==="upcase"?s?s.toLocaleUpperCase():"":this.shorthandName==="downcase"?s?s.toLocaleLowerCase():"":this.shorthandName==="capitalize"?s?s[0].toLocaleUpperCase()+s.substr(1):"":this.shorthandName==="pascalcase"?s?this._toPascalCase(s):"":this.shorthandName==="camelcase"?s?this._toCamelCase(s):"":s&&typeof this.ifValue=="string"?this.ifValue:!s&&typeof this.elseValue=="string"?this.elseValue:s||""}_toPascalCase(s){const d=s.match(/[a-z0-9]+/gi);return d?d.map(l=>l.charAt(0).toUpperCase()+l.substr(1)).join(""):s}_toCamelCase(s){const d=s.match(/[a-z0-9]+/gi);return d?d.map((l,a)=>a===0?l.charAt(0).toLowerCase()+l.substr(1):l.charAt(0).toUpperCase()+l.substr(1)).join(""):s}clone(){return new h(this.index,this.shorthandName,this.ifValue,this.elseValue)}}e.FormatString=h;class u extends D{constructor(s){super(),this.name=s}resolve(s){let d=s.resolve(this);return this.transform&&(d=this.transform.resolve(d||"")),d!==void 0?(this._children=[new k(d)],!0):!1}clone(){const s=new u(this.name);return this.transform&&(s.transform=this.transform.clone()),s._children=this.children.map(d=>d.clone()),s}}e.Variable=u;function n(o,s){const d=[...o];for(;d.length>0;){const l=d.shift();if(!s(l))break;d.unshift(...l.children)}}class i extends v{get placeholderInfo(){if(!this._placeholders){const s=[];let d;this.walk(function(l){return l instanceof w&&(s.push(l),d=!d||d.index<l.index?l:d),!0}),this._placeholders={all:s,last:d}}return this._placeholders}get placeholders(){const{all:s}=this.placeholderInfo;return s}offset(s){let d=0,l=!1;return this.walk(a=>a===s?(l=!0,!1):(d+=a.len(),!0)),l?d:-1}fullLen(s){let d=0;return n([s],l=>(d+=l.len(),!0)),d}enclosingPlaceholders(s){const d=[];let{parent:l}=s;for(;l;)l instanceof w&&d.push(l),l=l.parent;return d}resolveVariables(s){return this.walk(d=>(d instanceof u&&d.resolve(s)&&(this._placeholders=void 0),!0)),this}appendChild(s){return this._placeholders=void 0,super.appendChild(s)}replace(s,d){return this._placeholders=void 0,super.replace(s,d)}clone(){const s=new i;return this._children=this.children.map(d=>d.clone()),s}walk(s){n(this.children,s)}}e.TextmateSnippet=i;class t{constructor(){this._scanner=new y,this._token={type:14,pos:0,len:0}}static escape(s){return s.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(s){return/\${?CLIPBOARD/.test(s)}parse(s,d,l){const a=new i;return this.parseFragment(s,a),this.ensureFinalTabstop(a,l??!1,d??!1),a}parseFragment(s,d){const l=d.children.length;for(this._scanner.text(s),this._token=this._scanner.next();this._parse(d););const a=new Map,r=[];d.walk(c=>(c instanceof w&&(c.isFinalTabstop?a.set(0,void 0):!a.has(c.index)&&c.children.length>0?a.set(c.index,c.children):r.push(c)),!0));for(const c of r){const g=a.get(c.index);if(g){const f=new w(c.index);f.transform=c.transform;for(const _ of g)f.appendChild(_.clone());d.replace(c,[f])}}return d.children.slice(l)}ensureFinalTabstop(s,d,l){(d||l&&s.placeholders.length>0)&&(s.placeholders.find(a=>a.index===0)||s.appendChild(new w(0)))}_accept(s,d){if(s===void 0||this._token.type===s){const l=d?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),l}return!1}_backTo(s){return this._scanner.pos=s.pos+s.len,this._token=s,!1}_until(s){const d=this._token;for(;this._token.type!==s;){if(this._token.type===14)return!1;if(this._token.type===5){const a=this._scanner.next();if(a.type!==0&&a.type!==4&&a.type!==5)return!1}this._token=this._scanner.next()}const l=this._scanner.value.substring(d.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),l}_parse(s){return this._parseEscaped(s)||this._parseTabstopOrVariableName(s)||this._parseComplexPlaceholder(s)||this._parseComplexVariable(s)||this._parseAnything(s)}_parseEscaped(s){let d;return(d=this._accept(5,!0))?(d=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||d,s.appendChild(new k(d)),!0):!1}_parseTabstopOrVariableName(s){let d;const l=this._token;return this._accept(0)&&(d=this._accept(9,!0)||this._accept(8,!0))?(s.appendChild(/^\d+$/.test(d)?new w(Number(d)):new u(d)),!0):this._backTo(l)}_parseComplexPlaceholder(s){let d;const l=this._token;if(!(this._accept(0)&&this._accept(3)&&(d=this._accept(8,!0))))return this._backTo(l);const a=new w(Number(d));if(this._accept(1))for(;;){if(this._accept(4))return s.appendChild(a),!0;if(!this._parse(a))return s.appendChild(new k("${"+d+":")),a.children.forEach(s.appendChild,s),!0}else if(a.index>0&&this._accept(7)){const r=new b;for(;;){if(this._parseChoiceElement(r)){if(this._accept(2))continue;if(this._accept(7)&&(a.appendChild(r),this._accept(4)))return s.appendChild(a),!0}return this._backTo(l),!1}}else return this._accept(6)?this._parseTransform(a)?(s.appendChild(a),!0):(this._backTo(l),!1):this._accept(4)?(s.appendChild(a),!0):this._backTo(l)}_parseChoiceElement(s){const d=this._token,l=[];for(;!(this._token.type===2||this._token.type===7);){let a;if((a=this._accept(5,!0))?a=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||a:a=this._accept(void 0,!0),!a)return this._backTo(d),!1;l.push(a)}return l.length===0?(this._backTo(d),!1):(s.appendChild(new k(l.join(""))),!0)}_parseComplexVariable(s){let d;const l=this._token;if(!(this._accept(0)&&this._accept(3)&&(d=this._accept(9,!0))))return this._backTo(l);const a=new u(d);if(this._accept(1))for(;;){if(this._accept(4))return s.appendChild(a),!0;if(!this._parse(a))return s.appendChild(new k("${"+d+":")),a.children.forEach(s.appendChild,s),!0}else return this._accept(6)?this._parseTransform(a)?(s.appendChild(a),!0):(this._backTo(l),!1):this._accept(4)?(s.appendChild(a),!0):this._backTo(l)}_parseTransform(s){const d=new C;let l="",a="";for(;!this._accept(6);){let r;if(r=this._accept(5,!0)){r=this._accept(6,!0)||r,l+=r;continue}if(this._token.type!==14){l+=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,d.appendChild(new k(r));continue}if(!(this._parseFormatString(d)||this._parseAnything(d)))return!1}for(;!this._accept(4);){if(this._token.type!==14){a+=this._accept(void 0,!0);continue}return!1}try{d.regexp=new RegExp(l,a)}catch{return!1}return s.transform=d,!0}_parseFormatString(s){const d=this._token;if(!this._accept(0))return!1;let l=!1;this._accept(3)&&(l=!0);const a=this._accept(8,!0);if(a)if(l){if(this._accept(4))return s.appendChild(new h(Number(a))),!0;if(!this._accept(1))return this._backTo(d),!1}else return s.appendChild(new h(Number(a))),!0;else return this._backTo(d),!1;if(this._accept(6)){const r=this._accept(9,!0);return!r||!this._accept(4)?(this._backTo(d),!1):(s.appendChild(new h(Number(a),r)),!0)}else if(this._accept(11)){const r=this._until(4);if(r)return s.appendChild(new h(Number(a),void 0,r,void 0)),!0}else if(this._accept(12)){const r=this._until(4);if(r)return s.appendChild(new h(Number(a),void 0,void 0,r)),!0}else if(this._accept(13)){const r=this._until(1);if(r){const c=this._until(4);if(c)return s.appendChild(new h(Number(a),void 0,r,c)),!0}}else{const r=this._until(4);if(r)return s.appendChild(new h(Number(a),void 0,void 0,r)),!0}return this._backTo(d),!1}_parseAnything(s){return this._token.type!==14?(s.appendChild(new k(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1}}e.SnippetParser=t}),define(oe[250],se([1,0,18,63,8]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CompletionModel=e.LineContext=void 0;class D{constructor(C,h){this.leadingLineContent=C,this.characterCountDelta=h}}e.LineContext=D;class w{constructor(C,h,u,n,i,t,o=v.FuzzyScoreOptions.default,s=void 0){this.clipboardText=s,this._snippetCompareFn=w._compareCompletionItems,this._items=C,this._column=h,this._wordDistance=n,this._options=i,this._refilterKind=1,this._lineContext=u,this._fuzzyScoreOptions=o,t==="top"?this._snippetCompareFn=w._compareCompletionItemsSnippetsUp:t==="bottom"&&(this._snippetCompareFn=w._compareCompletionItemsSnippetsDown)}get lineContext(){return this._lineContext}set lineContext(C){(this._lineContext.leadingLineContent!==C.leadingLineContent||this._lineContext.characterCountDelta!==C.characterCountDelta)&&(this._refilterKind=this._lineContext.characterCountDelta<C.characterCountDelta&&this._filteredItems?2:1,this._lineContext=C)}get items(){return this._ensureCachedState(),this._filteredItems}get allProvider(){return this._ensureCachedState(),this._providerInfo.keys()}get incomplete(){this._ensureCachedState();const C=new Set;for(const[h,u]of this._providerInfo)u&&C.add(h);return C}adopt(C){const h=[];for(let u=0;u<this._items.length;)C.has(this._items[u].provider)?u++:(h.push(this._items[u]),this._items[u]=this._items[this._items.length-1],this._items.pop());return this._refilterKind=1,h}get stats(){return this._ensureCachedState(),this._stats}_ensureCachedState(){this._refilterKind!==0&&this._createCachedState()}_createCachedState(){this._providerInfo=new Map;const C=[],{leadingLineContent:h,characterCountDelta:u}=this._lineContext;let n="",i="";const t=this._refilterKind===1?this._items:this._filteredItems,o=[],s=!this._options.filterGraceful||t.length>2e3?v.fuzzyScore:v.fuzzyScoreGracefulAggressive;for(let d=0;d<t.length;d++){const l=t[d];if(l.isInvalid)continue;this._providerInfo.set(l.provider,!!l.container.incomplete);const a=l.position.column-l.editStart.column,r=a+u-(l.position.column-this._column);if(n.length!==r&&(n=r===0?"":h.slice(-r),i=n.toLowerCase()),l.word=n,r===0)l.score=v.FuzzyScore.Default;else{let c=0;for(;c<a;){const g=n.charCodeAt(c);if(g===32||g===9)c+=1;else break}if(c>=r)l.score=v.FuzzyScore.Default;else if(typeof l.completion.filterText=="string"){const g=s(n,i,c,l.completion.filterText,l.filterTextLow,0,this._fuzzyScoreOptions);if(!g)continue;(0,k.compareIgnoreCase)(l.completion.filterText,l.textLabel)===0?l.score=g:(l.score=(0,v.anyScore)(n,i,c,l.textLabel,l.labelLow,0),l.score[0]=g[0])}else{const g=s(n,i,c,l.textLabel,l.labelLow,0,this._fuzzyScoreOptions);if(!g)continue;l.score=g}}l.idx=d,l.distance=this._wordDistance.distance(l.position,l.completion),o.push(l),C.push(l.textLabel.length)}this._filteredItems=o.sort(this._snippetCompareFn),this._refilterKind=0,this._stats={pLabelLen:C.length?(0,y.quickSelect)(C.length-.85,C,(d,l)=>d-l):0}}static _compareCompletionItems(C,h){return C.score[0]>h.score[0]?-1:C.score[0]<h.score[0]?1:C.distance<h.distance?-1:C.distance>h.distance?1:C.idx<h.idx?-1:C.idx>h.idx?1:0}static _compareCompletionItemsSnippetsDown(C,h){if(C.completion.kind!==h.completion.kind){if(C.completion.kind===27)return 1;if(h.completion.kind===27)return-1}return w._compareCompletionItems(C,h)}static _compareCompletionItemsSnippetsUp(C,h){if(C.completion.kind!==h.completion.kind){if(C.completion.kind===27)return-1;if(h.completion.kind===27)return 1}return w._compareCompletionItems(C,h)}}e.CompletionModel=w}),define(oe[459],se([1,0,18,2,107]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CommitCharacterController=void 0;class D{constructor(b,C,h){this._disposables=new v.DisposableStore,this._disposables.add(C.onDidShow(()=>this._onItem(C.getFocusedItem()))),this._disposables.add(C.onDidFocus(this._onItem,this)),this._disposables.add(C.onDidHide(this.reset,this)),this._disposables.add(b.onWillType(u=>{if(this._active&&!C.isFrozen()){const n=u.charCodeAt(u.length-1);this._active.acceptCharacters.has(n)&&b.getOption(0)&&h(this._active.item)}}))}_onItem(b){if(!b||!(0,y.isNonEmptyArray)(b.item.completion.commitCharacters)){this.reset();return}if(this._active&&this._active.item.item===b.item)return;const C=new k.CharacterSet;for(const h of b.item.completion.commitCharacters)h.length>0&&C.add(h.charCodeAt(0));this._active={acceptCharacters:C,item:b}}reset(){this._active=void 0}dispose(){this._disposables.dispose()}}e.CommitCharacterController=D}),define(oe[460],se([1,0,2]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OvertypingCapturer=void 0;class v{constructor(D,w){this._disposables=new y.DisposableStore,this._lastOvertyped=[],this._empty=!0,this._disposables.add(D.onWillType(()=>{if(!this._empty||!D.hasModel())return;const b=D.getSelections(),C=b.length;let h=!1;for(let n=0;n<C;n++)if(!b[n].isEmpty()){h=!0;break}if(!h)return;this._lastOvertyped=[];const u=D.getModel();for(let n=0;n<C;n++){const i=b[n];if(u.getValueLengthInRange(i)>v._maxSelectionLength)return;this._lastOvertyped[n]={value:u.getValueInRange(i),multiline:i.startLineNumber!==i.endLineNumber}}this._empty=!1})),this._disposables.add(w.onDidCancel(b=>{!this._empty&&!b.retrigger&&(this._empty=!0)}))}getLastOvertypedInfo(D){if(!this._empty&&D>=0&&D<this._lastOvertyped.length)return this._lastOvertyped[D]}dispose(){this._disposables.dispose()}}e.OvertypingCapturer=v,v._maxSelectionLength=51200}),define(oe[251],se([1,0,18,3,249]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WordDistance=void 0;class D{static create(b,C){return be(this,void 0,void 0,function*(){if(!C.getOption(108).localityBonus||!C.hasModel())return D.None;const h=C.getModel(),u=C.getPosition();if(!b.canComputeWordRanges(h.uri))return D.None;const[n]=yield new k.BracketSelectionRangeProvider().provideSelectionRanges(h,[u]);if(n.length===0)return D.None;const i=yield b.computeWordRanges(h.uri,n[0].range);if(!i)return D.None;const t=h.getWordUntilPosition(u);return delete i[t.word],new class extends D{distance(o,s){if(!u.equals(C.getPosition()))return 0;if(s.kind===17)return 2<<20;const d=typeof s.label=="string"?s.label:s.label.label,l=i[d];if((0,y.isFalsyOrEmpty)(l))return 2<<20;const a=(0,y.binarySearch)(l,v.Range.fromPositions(o),v.Range.compareRangesUsingStarts),r=a>=0?l[a]:l[Math.max(0,~a-1)];let c=n.length;for(const g of n){if(!v.Range.containsRange(g.range,r))break;c-=1}return c}}})}}e.WordDistance=D,D.None=new class extends D{distance(){return 0}}}),define(oe[252],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.stateExists=e.findRules=e.substituteMatches=e.createError=e.log=e.sanitize=e.fixCase=e.empty=e.isIAction=e.isString=e.isFuzzyAction=e.isFuzzyActionArr=void 0;function y(o){return Array.isArray(o)}e.isFuzzyActionArr=y;function v(o){return!y(o)}e.isFuzzyAction=v;function k(o){return typeof o=="string"}e.isString=k;function D(o){return!k(o)}e.isIAction=D;function w(o){return!o}e.empty=w;function b(o,s){return o.ignoreCase&&s?s.toLowerCase():s}e.fixCase=b;function C(o){return o.replace(/[&<>'"_]/g,"-")}e.sanitize=C;function h(o,s){console.log(`${o.languageId}: ${s}`)}e.log=h;function u(o,s){return new Error(`${o.languageId}: ${s}`)}e.createError=u;function n(o,s,d,l,a){const r=/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g;let c=null;return s.replace(r,function(g,f,_,p,m,S,E,L,N){return w(_)?w(p)?!w(m)&&m<l.length?b(o,l[m]):!w(E)&&o&&typeof o[E]=="string"?o[E]:(c===null&&(c=a.split("."),c.unshift(a)),!w(S)&&S<c.length?b(o,c[S]):""):b(o,d):"$"})}e.substituteMatches=n;function i(o,s){let d=s;for(;d&&d.length>0;){const l=o.tokenizer[d];if(l)return l;const a=d.lastIndexOf(".");a<0?d=null:d=d.substr(0,a)}return null}e.findRules=i;function t(o,s){let d=s;for(;d&&d.length>0;){if(o.stateNames[d])return!0;const l=d.lastIndexOf(".");l<0?d=null:d=d.substr(0,l)}return!1}e.stateExists=t}),define(oe[461],se([1,0,252]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.compile=void 0;function v(o,s){if(!s||!Array.isArray(s))return!1;for(const d of s)if(!o(d))return!1;return!0}function k(o,s){return typeof o=="boolean"?o:s}function D(o,s){return typeof o=="string"?o:s}function w(o){const s={};for(const d of o)s[d]=!0;return s}function b(o,s=!1){s&&(o=o.map(function(l){return l.toLowerCase()}));const d=w(o);return s?function(l){return d[l.toLowerCase()]!==void 0&&d.hasOwnProperty(l.toLowerCase())}:function(l){return d[l]!==void 0&&d.hasOwnProperty(l)}}function C(o,s){s=s.replace(/@@/g,"");let d=0,l;do l=!1,s=s.replace(/@(\w+)/g,function(r,c){l=!0;let g="";if(typeof o[c]=="string")g=o[c];else if(o[c]&&o[c]instanceof RegExp)g=o[c].source;else throw o[c]===void 0?y.createError(o,"language definition does not contain attribute '"+c+"', used at: "+s):y.createError(o,"attribute reference '"+c+"' must be a string, used at: "+s);return y.empty(g)?"":"(?:"+g+")"}),d++;while(l&&d<5);s=s.replace(/\x01/g,"@");const a=(o.ignoreCase?"i":"")+(o.unicode?"u":"");return new RegExp(s,a)}function h(o,s,d,l){if(l<0)return o;if(l<s.length)return s[l];if(l>=100){l=l-100;const a=d.split(".");if(a.unshift(d),l<a.length)return a[l]}return null}function u(o,s,d,l){let a=-1,r=d,c=d.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);c&&(c[3]&&(a=parseInt(c[3]),c[2]&&(a=a+100)),r=c[4]);let g="~",f=r;!r||r.length===0?(g="!=",f=""):/^\w*$/.test(f)?g="==":(c=r.match(/^(@|!@|~|!~|==|!=)(.*)$/),c&&(g=c[1],f=c[2]));let _;if((g==="~"||g==="!~")&&/^(\w|\|)*$/.test(f)){const p=b(f.split("|"),o.ignoreCase);_=function(m){return g==="~"?p(m):!p(m)}}else if(g==="@"||g==="!@"){const p=o[f];if(!p)throw y.createError(o,"the @ match target '"+f+"' is not defined, in rule: "+s);if(!v(function(S){return typeof S=="string"},p))throw y.createError(o,"the @ match target '"+f+"' must be an array of strings, in rule: "+s);const m=b(p,o.ignoreCase);_=function(S){return g==="@"?m(S):!m(S)}}else if(g==="~"||g==="!~")if(f.indexOf("$")<0){const p=C(o,"^"+f+"$");_=function(m){return g==="~"?p.test(m):!p.test(m)}}else _=function(p,m,S,E){return C(o,"^"+y.substituteMatches(o,f,m,S,E)+"$").test(p)};else if(f.indexOf("$")<0){const p=y.fixCase(o,f);_=function(m){return g==="=="?m===p:m!==p}}else{const p=y.fixCase(o,f);_=function(m,S,E,L,N){const I=y.substituteMatches(o,p,S,E,L);return g==="=="?m===I:m!==I}}return a===-1?{name:d,value:l,test:function(p,m,S,E){return _(p,p,m,S,E)}}:{name:d,value:l,test:function(p,m,S,E){const L=h(p,m,S,a);return _(L||"",p,m,S,E)}}}function n(o,s,d){if(d){if(typeof d=="string")return d;if(d.token||d.token===""){if(typeof d.token!="string")throw y.createError(o,"a 'token' attribute must be of type string, in rule: "+s);{const l={token:d.token};if(d.token.indexOf("$")>=0&&(l.tokenSubst=!0),typeof d.bracket=="string")if(d.bracket==="@open")l.bracket=1;else if(d.bracket==="@close")l.bracket=-1;else throw y.createError(o,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+s);if(d.next){if(typeof d.next!="string")throw y.createError(o,"the next state must be a string value in rule: "+s);{let a=d.next;if(!/^(@pop|@push|@popall)$/.test(a)&&(a[0]==="@"&&(a=a.substr(1)),a.indexOf("$")<0&&!y.stateExists(o,y.substituteMatches(o,a,"",[],""))))throw y.createError(o,"the next state '"+d.next+"' is not defined in rule: "+s);l.next=a}}return typeof d.goBack=="number"&&(l.goBack=d.goBack),typeof d.switchTo=="string"&&(l.switchTo=d.switchTo),typeof d.log=="string"&&(l.log=d.log),typeof d.nextEmbedded=="string"&&(l.nextEmbedded=d.nextEmbedded,o.usesEmbedded=!0),l}}else if(Array.isArray(d)){const l=[];for(let a=0,r=d.length;a<r;a++)l[a]=n(o,s,d[a]);return{group:l}}else if(d.cases){const l=[];for(const r in d.cases)if(d.cases.hasOwnProperty(r)){const c=n(o,s,d.cases[r]);r==="@default"||r==="@"||r===""?l.push({test:void 0,value:c,name:r}):r==="@eos"?l.push({test:function(g,f,_,p){return p},value:c,name:r}):l.push(u(o,s,r,c))}const a=o.defaultToken;return{test:function(r,c,g,f){for(const _ of l)if(!_.test||_.test(r,c,g,f))return _.value;return a}}}else throw y.createError(o,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+s)}else return{token:""}}class i{constructor(s){this.regex=new RegExp(""),this.action={token:""},this.matchOnlyAtLineStart=!1,this.name="",this.name=s}setRegex(s,d){let l;if(typeof d=="string")l=d;else if(d instanceof RegExp)l=d.source;else throw y.createError(s,"rules must start with a match string or regular expression: "+this.name);this.matchOnlyAtLineStart=l.length>0&&l[0]==="^",this.name=this.name+": "+l,this.regex=C(s,"^(?:"+(this.matchOnlyAtLineStart?l.substr(1):l)+")")}setAction(s,d){this.action=n(s,this.name,d)}}function t(o,s){if(!s||typeof s!="object")throw new Error("Monarch: expecting a language definition object");const d={};d.languageId=o,d.includeLF=k(s.includeLF,!1),d.noThrow=!1,d.maxStack=100,d.start=typeof s.start=="string"?s.start:null,d.ignoreCase=k(s.ignoreCase,!1),d.unicode=k(s.unicode,!1),d.tokenPostfix=D(s.tokenPostfix,"."+d.languageId),d.defaultToken=D(s.defaultToken,"source"),d.usesEmbedded=!1;const l=s;l.languageId=o,l.includeLF=d.includeLF,l.ignoreCase=d.ignoreCase,l.unicode=d.unicode,l.noThrow=d.noThrow,l.usesEmbedded=d.usesEmbedded,l.stateNames=s.tokenizer,l.defaultToken=d.defaultToken;function a(c,g,f){for(const _ of f){let p=_.include;if(p){if(typeof p!="string")throw y.createError(d,"an 'include' attribute must be a string at: "+c);if(p[0]==="@"&&(p=p.substr(1)),!s.tokenizer[p])throw y.createError(d,"include target '"+p+"' is not defined at: "+c);a(c+"."+p,g,s.tokenizer[p])}else{const m=new i(c);if(Array.isArray(_)&&_.length>=1&&_.length<=3)if(m.setRegex(l,_[0]),_.length>=3)if(typeof _[1]=="string")m.setAction(l,{token:_[1],next:_[2]});else if(typeof _[1]=="object"){const S=_[1];S.next=_[2],m.setAction(l,S)}else throw y.createError(d,"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: "+c);else m.setAction(l,_[1]);else{if(!_.regex)throw y.createError(d,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+c);_.name&&typeof _.name=="string"&&(m.name=_.name),_.matchOnlyAtStart&&(m.matchOnlyAtLineStart=k(_.matchOnlyAtLineStart,!1)),m.setRegex(l,_.regex),m.setAction(l,_.action)}g.push(m)}}}if(!s.tokenizer||typeof s.tokenizer!="object")throw y.createError(d,"a language definition must define the 'tokenizer' attribute as an object");d.tokenizer=[];for(const c in s.tokenizer)if(s.tokenizer.hasOwnProperty(c)){d.start||(d.start=c);const g=s.tokenizer[c];d.tokenizer[c]=new Array,a("tokenizer."+c,d.tokenizer[c],g)}if(d.usesEmbedded=l.usesEmbedded,s.brackets){if(!Array.isArray(s.brackets))throw y.createError(d,"the 'brackets' attribute must be defined as an array")}else s.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 c of s.brackets){let g=c;if(g&&Array.isArray(g)&&g.length===3&&(g={token:g[2],open:g[0],close:g[1]}),g.open===g.close)throw y.createError(d,"open and close brackets in a 'brackets' attribute must be different: "+g.open+` hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof g.open=="string"&&typeof g.token=="string"&&typeof g.close=="string")r.push({token:g.token+d.tokenPostfix,open:y.fixCase(d,g.open),close:y.fixCase(d,g.close)});else throw y.createError(d,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return d.brackets=r,d.noThrow=!0,d}e.compile=t}),define(oe[462],se([4,5]),function(q,e){return q.create("vs/base/browser/ui/actionbar/actionViewItems",e)}),define(oe[463],se([4,5]),function(q,e){return q.create("vs/base/browser/ui/findinput/findInput",e)}),define(oe[464],se([4,5]),function(q,e){return q.create("vs/base/browser/ui/findinput/findInputToggles",e)}),define(oe[465],se([4,5]),function(q,e){return q.create("vs/base/browser/ui/findinput/replaceInput",e)}),define(oe[466],se([4,5]),function(q,e){return q.create("vs/base/browser/ui/iconLabel/iconLabelHover",e)}),define(oe[467],se([4,5]),function(q,e){return q.create("vs/base/browser/ui/inputbox/inputBox",e)}),define(oe[468],se([4,5]),function(q,e){return q.create("vs/base/browser/ui/keybindingLabel/keybindingLabel",e)}),define(oe[469],se([4,5]),function(q,e){return q.create("vs/base/browser/ui/tree/abstractTree",e)}),define(oe[470],se([4,5]),function(q,e){return q.create("vs/base/common/actions",e)}),define(oe[471],se([4,5]),function(q,e){return q.create("vs/base/common/errorMessage",e)}),define(oe[472],se([1,0,18,19,471]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toErrorMessage=void 0;function D(h,u){return u&&(h.stack||h.stacktrace)?k.localize(0,null,b(h),w(h.stack)||w(h.stacktrace)):b(h)}function w(h){return Array.isArray(h)?h.join(` `):h}function b(h){return typeof h.code=="string"&&typeof h.errno=="number"&&typeof h.syscall=="string"?k.localize(1,null,h.message):h.message||k.localize(2,null)}function C(h=null,u=!1){if(!h)return k.localize(3,null);if(Array.isArray(h)){const n=y.coalesce(h),i=C(n[0],u);return n.length>1?k.localize(4,null,i,n.length):i}if(v.isString(h))return h;if(h.detail){const n=h.detail;if(n.error)return D(n.error,u);if(n.exception)return D(n.exception,u)}return h.stack?D(h,u):h.message?h.message:k.localize(5,null)}e.toErrorMessage=C}),define(oe[473],se([4,5]),function(q,e){return q.create("vs/base/common/keybindingLabels",e)}),define(oe[190],se([1,0,473]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UserSettingsLabelProvider=e.ElectronAcceleratorLabelProvider=e.AriaLabelProvider=e.UILabelProvider=e.ModifierLabelProvider=void 0;class v{constructor(w,b,C=b){this.modifierLabels=[null],this.modifierLabels[2]=w,this.modifierLabels[1]=b,this.modifierLabels[3]=C}toLabel(w,b,C){if(b.length===0)return null;const h=[];for(let u=0,n=b.length;u<n;u++){const i=b[u],t=C(i);if(t===null)return null;h[u]=k(i,t,this.modifierLabels[w])}return h.join(" ")}}e.ModifierLabelProvider=v,e.UILabelProvider=new v({ctrlKey:"\u2303",shiftKey:"\u21E7",altKey:"\u2325",metaKey:"\u2318",separator:""},{ctrlKey:y.localize(0,null),shiftKey:y.localize(1,null),altKey:y.localize(2,null),metaKey:y.localize(3,null),separator:"+"},{ctrlKey:y.localize(4,null),shiftKey:y.localize(5,null),altKey:y.localize(6,null),metaKey:y.localize(7,null),separator:"+"}),e.AriaLabelProvider=new v({ctrlKey:y.localize(8,null),shiftKey:y.localize(9,null),altKey:y.localize(10,null),metaKey:y.localize(11,null),separator:"+"},{ctrlKey:y.localize(12,null),shiftKey:y.localize(13,null),altKey:y.localize(14,null),metaKey:y.localize(15,null),separator:"+"},{ctrlKey:y.localize(16,null),shiftKey:y.localize(17,null),altKey:y.localize(18,null),metaKey:y.localize(19,null),separator:"+"}),e.ElectronAcceleratorLabelProvider=new v({ctrlKey:"Ctrl",shiftKey:"Shift",altKey:"Alt",metaKey:"Cmd",separator:"+"},{ctrlKey:"Ctrl",shiftKey:"Shift",altKey:"Alt",metaKey:"Super",separator:"+"}),e.UserSettingsLabelProvider=new v({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 k(D,w,b){if(w===null)return"";const C=[];return D.ctrlKey&&C.push(b.ctrlKey),D.shiftKey&&C.push(b.shiftKey),D.altKey&&C.push(b.altKey),D.metaKey&&C.push(b.metaKey),w!==""&&C.push(w),C.join(b.separator)}}),define(oe[474],se([4,5]),function(q,e){return q.create("vs/base/common/platform",e)}),define(oe[17],se([1,0,474]),function(q,e,y){"use strict";var v;Object.defineProperty(e,"__esModule",{value:!0}),e.isAndroid=e.isEdge=e.isSafari=e.isFirefox=e.isChrome=e.isLittleEndian=e.OS=e.setTimeout0=e.setTimeout0IsFaster=e.language=e.userAgent=e.isIOS=e.isWebWorker=e.isWeb=e.isNative=e.isLinux=e.isMacintosh=e.isWindows=e.globals=void 0;const k="en";let D=!1,w=!1,b=!1,C=!1,h=!1,u=!1,n=!1,i=!1,t=!1,o,s=k,d,l;e.globals=typeof self=="object"?self:typeof global=="object"?global:{};let a;typeof e.globals.vscode<"u"&&typeof e.globals.vscode.process<"u"?a=e.globals.vscode.process:typeof process<"u"&&(a=process);const r=typeof((v=a?.versions)===null||v===void 0?void 0:v.electron)=="string",c=r&&a?.type==="renderer";if(typeof navigator=="object"&&!c)l=navigator.userAgent,D=l.indexOf("Windows")>=0,w=l.indexOf("Macintosh")>=0,i=(l.indexOf("Macintosh")>=0||l.indexOf("iPad")>=0||l.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,b=l.indexOf("Linux")>=0,u=!0,o=y.getConfiguredDefaultLocale(y.localize(0,null))||k,s=o;else if(typeof a=="object"){D=a.platform==="win32",w=a.platform==="darwin",b=a.platform==="linux",C=b&&!!a.env.SNAP&&!!a.env.SNAP_REVISION,n=r,t=!!a.env.CI||!!a.env.BUILD_ARTIFACTSTAGINGDIRECTORY,o=k,s=k;const m=a.env.VSCODE_NLS_CONFIG;if(m)try{const S=JSON.parse(m),E=S.availableLanguages["*"];o=S.locale,s=E||k,d=S._translationsConfigFile}catch{}h=!0}else console.error("Unable to resolve platform.");let g=0;w?g=1:D?g=3:b&&(g=2),e.isWindows=D,e.isMacintosh=w,e.isLinux=b,e.isNative=h,e.isWeb=u,e.isWebWorker=u&&typeof e.globals.importScripts=="function",e.isIOS=i,e.userAgent=l,e.language=s,e.setTimeout0IsFaster=typeof e.globals.postMessage=="function"&&!e.globals.importScripts,e.setTimeout0=(()=>{if(e.setTimeout0IsFaster){const m=[];e.globals.addEventListener("message",E=>{if(E.data&&E.data.vscodeScheduleAsyncWork)for(let L=0,N=m.length;L<N;L++){const I=m[L];if(I.id===E.data.vscodeScheduleAsyncWork){m.splice(L,1),I.callback();return}}});let S=0;return E=>{const L=++S;m.push({id:L,callback:E}),e.globals.postMessage({vscodeScheduleAsyncWork:L},"*")}}return m=>setTimeout(m)})(),e.OS=w||i?2:D?1:3;let f=!0,_=!1;function p(){if(!_){_=!0;const m=new Uint8Array(2);m[0]=1,m[1]=2,f=new Uint16Array(m.buffer)[0]===512+1}return f}e.isLittleEndian=p,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[475],se([1,0,17]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.platform=e.env=e.cwd=void 0;let v;if(typeof y.globals.vscode<"u"&&typeof y.globals.vscode.process<"u"){const k=y.globals.vscode.process;v={get platform(){return k.platform},get arch(){return k.arch},get env(){return k.env},cwd(){return k.cwd()}}}else typeof process<"u"?v={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:v={get platform(){return y.isWindows?"win32":y.isMacintosh?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};e.cwd=v.cwd,e.env=v.env,e.platform=v.platform}),define(oe[90],se([1,0,475]),function(q,e,y){"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 v=65,k=97,D=90,w=122,b=46,C=47,h=92,u=58,n=63;class i extends Error{constructor(c,g,f){let _;typeof g=="string"&&g.indexOf("not ")===0?(_="must not be",g=g.replace(/^not /,"")):_="must be";const p=c.indexOf(".")!==-1?"property":"argument";let m=`The "${c}" ${p} ${_} of type ${g}`;m+=`. Received type ${typeof f}`,super(m),this.code="ERR_INVALID_ARG_TYPE"}}function t(r,c){if(typeof r!="string")throw new i(c,"string",r)}function o(r){return r===C||r===h}function s(r){return r===C}function d(r){return r>=v&&r<=D||r>=k&&r<=w}function l(r,c,g,f){let _="",p=0,m=-1,S=0,E=0;for(let L=0;L<=r.length;++L){if(L<r.length)E=r.charCodeAt(L);else{if(f(E))break;E=C}if(f(E)){if(!(m===L-1||S===1))if(S===2){if(_.length<2||p!==2||_.charCodeAt(_.length-1)!==b||_.charCodeAt(_.length-2)!==b){if(_.length>2){const N=_.lastIndexOf(g);N===-1?(_="",p=0):(_=_.slice(0,N),p=_.length-1-_.lastIndexOf(g)),m=L,S=0;continue}else if(_.length!==0){_="",p=0,m=L,S=0;continue}}c&&(_+=_.length>0?`${g}..`:"..",p=2)}else _.length>0?_+=`${g}${r.slice(m+1,L)}`:_=r.slice(m+1,L),p=L-m-1;m=L,S=0}else E===b&&S!==-1?++S:S=-1}return _}function a(r,c){if(c===null||typeof c!="object")throw new i("pathObject","Object",c);const g=c.dir||c.root,f=c.base||`${c.name||""}${c.ext||""}`;return g?g===c.root?`${g}${f}`:`${g}${r}${f}`:f}e.win32={resolve(...r){let c="",g="",f=!1;for(let _=r.length-1;_>=-1;_--){let p;if(_>=0){if(p=r[_],t(p,"path"),p.length===0)continue}else c.length===0?p=y.cwd():(p=y.env[`=${c}`]||y.cwd(),(p===void 0||p.slice(0,2).toLowerCase()!==c.toLowerCase()&&p.charCodeAt(2)===h)&&(p=`${c}\\`));const m=p.length;let S=0,E="",L=!1;const N=p.charCodeAt(0);if(m===1)o(N)&&(S=1,L=!0);else if(o(N))if(L=!0,o(p.charCodeAt(1))){let I=2,R=I;for(;I<m&&!o(p.charCodeAt(I));)I++;if(I<m&&I!==R){const F=p.slice(R,I);for(R=I;I<m&&o(p.charCodeAt(I));)I++;if(I<m&&I!==R){for(R=I;I<m&&!o(p.charCodeAt(I));)I++;(I===m||I!==R)&&(E=`\\\\${F}\\${p.slice(R,I)}`,S=I)}}}else S=1;else d(N)&&p.charCodeAt(1)===u&&(E=p.slice(0,2),S=2,m>2&&o(p.charCodeAt(2))&&(L=!0,S=3));if(E.length>0)if(c.length>0){if(E.toLowerCase()!==c.toLowerCase())continue}else c=E;if(f){if(c.length>0)break}else if(g=`${p.slice(S)}\\${g}`,f=L,L&&c.length>0)break}return g=l(g,!f,"\\",o),f?`${c}\\${g}`:`${c}${g}`||"."},normalize(r){t(r,"path");const c=r.length;if(c===0)return".";let g=0,f,_=!1;const p=r.charCodeAt(0);if(c===1)return s(p)?"\\":r;if(o(p))if(_=!0,o(r.charCodeAt(1))){let S=2,E=S;for(;S<c&&!o(r.charCodeAt(S));)S++;if(S<c&&S!==E){const L=r.slice(E,S);for(E=S;S<c&&o(r.charCodeAt(S));)S++;if(S<c&&S!==E){for(E=S;S<c&&!o(r.charCodeAt(S));)S++;if(S===c)return`\\\\${L}\\${r.slice(E)}\\`;S!==E&&(f=`\\\\${L}\\${r.slice(E,S)}`,g=S)}}}else g=1;else d(p)&&r.charCodeAt(1)===u&&(f=r.slice(0,2),g=2,c>2&&o(r.charCodeAt(2))&&(_=!0,g=3));let m=g<c?l(r.slice(g),!_,"\\",o):"";return m.length===0&&!_&&(m="."),m.length>0&&o(r.charCodeAt(c-1))&&(m+="\\"),f===void 0?_?`\\${m}`:m:_?`${f}\\${m}`:`${f}${m}`},isAbsolute(r){t(r,"path");const c=r.length;if(c===0)return!1;const g=r.charCodeAt(0);return o(g)||c>2&&d(g)&&r.charCodeAt(1)===u&&o(r.charCodeAt(2))},join(...r){if(r.length===0)return".";let c,g;for(let p=0;p<r.length;++p){const m=r[p];t(m,"path"),m.length>0&&(c===void 0?c=g=m:c+=`\\${m}`)}if(c===void 0)return".";let f=!0,_=0;if(typeof g=="string"&&o(g.charCodeAt(0))){++_;const p=g.length;p>1&&o(g.charCodeAt(1))&&(++_,p>2&&(o(g.charCodeAt(2))?++_:f=!1))}if(f){for(;_<c.length&&o(c.charCodeAt(_));)_++;_>=2&&(c=`\\${c.slice(_)}`)}return e.win32.normalize(c)},relative(r,c){if(t(r,"from"),t(c,"to"),r===c)return"";const g=e.win32.resolve(r),f=e.win32.resolve(c);if(g===f||(r=g.toLowerCase(),c=f.toLowerCase(),r===c))return"";let _=0;for(;_<r.length&&r.charCodeAt(_)===h;)_++;let p=r.length;for(;p-1>_&&r.charCodeAt(p-1)===h;)p--;const m=p-_;let S=0;for(;S<c.length&&c.charCodeAt(S)===h;)S++;let E=c.length;for(;E-1>S&&c.charCodeAt(E-1)===h;)E--;const L=E-S,N=m<L?m:L;let I=-1,R=0;for(;R<N;R++){const O=r.charCodeAt(_+R);if(O!==c.charCodeAt(S+R))break;O===h&&(I=R)}if(R!==N){if(I===-1)return f}else{if(L>N){if(c.charCodeAt(S+R)===h)return f.slice(S+R+1);if(R===2)return f.slice(S+R)}m>N&&(r.charCodeAt(_+R)===h?I=R:R===2&&(I=3)),I===-1&&(I=0)}let F="";for(R=_+I+1;R<=p;++R)(R===p||r.charCodeAt(R)===h)&&(F+=F.length===0?"..":"\\..");return S+=I,F.length>0?`${F}${f.slice(S,E)}`:(f.charCodeAt(S)===h&&++S,f.slice(S,E))},toNamespacedPath(r){if(typeof r!="string")return r;if(r.length===0)return"";const c=e.win32.resolve(r);if(c.length<=2)return r;if(c.charCodeAt(0)===h){if(c.charCodeAt(1)===h){const g=c.charCodeAt(2);if(g!==n&&g!==b)return`\\\\?\\UNC\\${c.slice(2)}`}}else if(d(c.charCodeAt(0))&&c.charCodeAt(1)===u&&c.charCodeAt(2)===h)return`\\\\?\\${c}`;return r},dirname(r){t(r,"path");const c=r.length;if(c===0)return".";let g=-1,f=0;const _=r.charCodeAt(0);if(c===1)return o(_)?r:".";if(o(_)){if(g=f=1,o(r.charCodeAt(1))){let S=2,E=S;for(;S<c&&!o(r.charCodeAt(S));)S++;if(S<c&&S!==E){for(E=S;S<c&&o(r.charCodeAt(S));)S++;if(S<c&&S!==E){for(E=S;S<c&&!o(r.charCodeAt(S));)S++;if(S===c)return r;S!==E&&(g=f=S+1)}}}}else d(_)&&r.charCodeAt(1)===u&&(g=c>2&&o(r.charCodeAt(2))?3:2,f=g);let p=-1,m=!0;for(let S=c-1;S>=f;--S)if(o(r.charCodeAt(S))){if(!m){p=S;break}}else m=!1;if(p===-1){if(g===-1)return".";p=g}return r.slice(0,p)},basename(r,c){c!==void 0&&t(c,"ext"),t(r,"path");let g=0,f=-1,_=!0,p;if(r.length>=2&&d(r.charCodeAt(0))&&r.charCodeAt(1)===u&&(g=2),c!==void 0&&c.length>0&&c.length<=r.length){if(c===r)return"";let m=c.length-1,S=-1;for(p=r.length-1;p>=g;--p){const E=r.charCodeAt(p);if(o(E)){if(!_){g=p+1;break}}else S===-1&&(_=!1,S=p+1),m>=0&&(E===c.charCodeAt(m)?--m==-1&&(f=p):(m=-1,f=S))}return g===f?f=S:f===-1&&(f=r.length),r.slice(g,f)}for(p=r.length-1;p>=g;--p)if(o(r.charCodeAt(p))){if(!_){g=p+1;break}}else f===-1&&(_=!1,f=p+1);return f===-1?"":r.slice(g,f)},extname(r){t(r,"path");let c=0,g=-1,f=0,_=-1,p=!0,m=0;r.length>=2&&r.charCodeAt(1)===u&&d(r.charCodeAt(0))&&(c=f=2);for(let S=r.length-1;S>=c;--S){const E=r.charCodeAt(S);if(o(E)){if(!p){f=S+1;break}continue}_===-1&&(p=!1,_=S+1),E===b?g===-1?g=S:m!==1&&(m=1):g!==-1&&(m=-1)}return g===-1||_===-1||m===0||m===1&&g===_-1&&g===f+1?"":r.slice(g,_)},format:a.bind(null,"\\"),parse(r){t(r,"path");const c={root:"",dir:"",base:"",ext:"",name:""};if(r.length===0)return c;const g=r.length;let f=0,_=r.charCodeAt(0);if(g===1)return o(_)?(c.root=c.dir=r,c):(c.base=c.name=r,c);if(o(_)){if(f=1,o(r.charCodeAt(1))){let I=2,R=I;for(;I<g&&!o(r.charCodeAt(I));)I++;if(I<g&&I!==R){for(R=I;I<g&&o(r.charCodeAt(I));)I++;if(I<g&&I!==R){for(R=I;I<g&&!o(r.charCodeAt(I));)I++;I===g?f=I:I!==R&&(f=I+1)}}}}else if(d(_)&&r.charCodeAt(1)===u){if(g<=2)return c.root=c.dir=r,c;if(f=2,o(r.charCodeAt(2))){if(g===3)return c.root=c.dir=r,c;f=3}}f>0&&(c.root=r.slice(0,f));let p=-1,m=f,S=-1,E=!0,L=r.length-1,N=0;for(;L>=f;--L){if(_=r.charCodeAt(L),o(_)){if(!E){m=L+1;break}continue}S===-1&&(E=!1,S=L+1),_===b?p===-1?p=L:N!==1&&(N=1):p!==-1&&(N=-1)}return S!==-1&&(p===-1||N===0||N===1&&p===S-1&&p===m+1?c.base=c.name=r.slice(m,S):(c.name=r.slice(m,p),c.base=r.slice(m,S),c.ext=r.slice(p,S))),m>0&&m!==f?c.dir=r.slice(0,m-1):c.dir=c.root,c},sep:"\\",delimiter:";",win32:null,posix:null},e.posix={resolve(...r){let c="",g=!1;for(let f=r.length-1;f>=-1&&!g;f--){const _=f>=0?r[f]:y.cwd();t(_,"path"),_.length!==0&&(c=`${_}/${c}`,g=_.charCodeAt(0)===C)}return c=l(c,!g,"/",s),g?`/${c}`:c.length>0?c:"."},normalize(r){if(t(r,"path"),r.length===0)return".";const c=r.charCodeAt(0)===C,g=r.charCodeAt(r.length-1)===C;return r=l(r,!c,"/",s),r.length===0?c?"/":g?"./":".":(g&&(r+="/"),c?`/${r}`:r)},isAbsolute(r){return t(r,"path"),r.length>0&&r.charCodeAt(0)===C},join(...r){if(r.length===0)return".";let c;for(let g=0;g<r.length;++g){const f=r[g];t(f,"path"),f.length>0&&(c===void 0?c=f:c+=`/${f}`)}return c===void 0?".":e.posix.normalize(c)},relative(r,c){if(t(r,"from"),t(c,"to"),r===c||(r=e.posix.resolve(r),c=e.posix.resolve(c),r===c))return"";const g=1,f=r.length,_=f-g,p=1,m=c.length-p,S=_<m?_:m;let E=-1,L=0;for(;L<S;L++){const I=r.charCodeAt(g+L);if(I!==c.charCodeAt(p+L))break;I===C&&(E=L)}if(L===S)if(m>S){if(c.charCodeAt(p+L)===C)return c.slice(p+L+1);if(L===0)return c.slice(p+L)}else _>S&&(r.charCodeAt(g+L)===C?E=L:L===0&&(E=0));let N="";for(L=g+E+1;L<=f;++L)(L===f||r.charCodeAt(L)===C)&&(N+=N.length===0?"..":"/..");return`${N}${c.slice(p+E)}`},toNamespacedPath(r){return r},dirname(r){if(t(r,"path"),r.length===0)return".";const c=r.charCodeAt(0)===C;let g=-1,f=!0;for(let _=r.length-1;_>=1;--_)if(r.charCodeAt(_)===C){if(!f){g=_;break}}else f=!1;return g===-1?c?"/":".":c&&g===1?"//":r.slice(0,g)},basename(r,c){c!==void 0&&t(c,"ext"),t(r,"path");let g=0,f=-1,_=!0,p;if(c!==void 0&&c.length>0&&c.length<=r.length){if(c===r)return"";let m=c.length-1,S=-1;for(p=r.length-1;p>=0;--p){const E=r.charCodeAt(p);if(E===C){if(!_){g=p+1;break}}else S===-1&&(_=!1,S=p+1),m>=0&&(E===c.charCodeAt(m)?--m==-1&&(f=p):(m=-1,f=S))}return g===f?f=S:f===-1&&(f=r.length),r.slice(g,f)}for(p=r.length-1;p>=0;--p)if(r.charCodeAt(p)===C){if(!_){g=p+1;break}}else f===-1&&(_=!1,f=p+1);return f===-1?"":r.slice(g,f)},extname(r){t(r,"path");let c=-1,g=0,f=-1,_=!0,p=0;for(let m=r.length-1;m>=0;--m){const S=r.charCodeAt(m);if(S===C){if(!_){g=m+1;break}continue}f===-1&&(_=!1,f=m+1),S===b?c===-1?c=m:p!==1&&(p=1):c!==-1&&(p=-1)}return c===-1||f===-1||p===0||p===1&&c===f-1&&c===g+1?"":r.slice(c,f)},format:a.bind(null,"/"),parse(r){t(r,"path");const c={root:"",dir:"",base:"",ext:"",name:""};if(r.length===0)return c;const g=r.charCodeAt(0)===C;let f;g?(c.root="/",f=1):f=0;let _=-1,p=0,m=-1,S=!0,E=r.length-1,L=0;for(;E>=f;--E){const N=r.charCodeAt(E);if(N===C){if(!S){p=E+1;break}continue}m===-1&&(S=!1,m=E+1),N===b?_===-1?_=E:L!==1&&(L=1):_!==-1&&(L=-1)}if(m!==-1){const N=p===0&&g?1:p;_===-1||L===0||L===1&&_===m-1&&_===p+1?c.base=c.name=r.slice(N,m):(c.name=r.slice(N,_),c.base=r.slice(N,m),c.ext=r.slice(_,m))}return p>0?c.dir=r.slice(0,p-1):g&&(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=y.platform==="win32"?e.win32.normalize:e.posix.normalize,e.resolve=y.platform==="win32"?e.win32.resolve:e.posix.resolve,e.relative=y.platform==="win32"?e.win32.relative:e.posix.relative,e.dirname=y.platform==="win32"?e.win32.dirname:e.posix.dirname,e.basename=y.platform==="win32"?e.win32.basename:e.posix.basename,e.extname=y.platform==="win32"?e.win32.extname:e.posix.extname,e.sep=y.platform==="win32"?e.win32.sep:e.posix.sep}),define(oe[191],se([1,0,90,17,8]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hasDriveLetter=e.isWindowsDriveLetter=e.isEqualOrParent=e.getRoot=e.toPosixPath=e.toSlashes=e.isPathSeparator=void 0;function D(i){return i===47||i===92}e.isPathSeparator=D;function w(i){return i.replace(/[\\/]/g,y.posix.sep)}e.toSlashes=w;function b(i){return i.indexOf("/")===-1&&(i=w(i)),/^[a-zA-Z]:(\/|$)/.test(i)&&(i="/"+i),i}e.toPosixPath=b;function C(i,t=y.posix.sep){if(!i)return"";const o=i.length,s=i.charCodeAt(0);if(D(s)){if(D(i.charCodeAt(1))&&!D(i.charCodeAt(2))){let l=3;const a=l;for(;l<o&&!D(i.charCodeAt(l));l++);if(a!==l&&!D(i.charCodeAt(l+1))){for(l+=1;l<o;l++)if(D(i.charCodeAt(l)))return i.slice(0,l+1).replace(/[\\/]/g,t)}}return t}else if(u(s)&&i.charCodeAt(1)===58)return D(i.charCodeAt(2))?i.slice(0,2)+t:i.slice(0,2);let d=i.indexOf("://");if(d!==-1){for(d+=3;d<o;d++)if(D(i.charCodeAt(d)))return i.slice(0,d+1)}return""}e.getRoot=C;function h(i,t,o,s=y.sep){if(i===t)return!0;if(!i||!t||t.length>i.length)return!1;if(o){if(!(0,k.startsWithIgnoreCase)(i,t))return!1;if(t.length===i.length)return!0;let d=t.length;return t.charAt(t.length-1)===s&&d--,i.charAt(d)===s}return t.charAt(t.length-1)!==s&&(t+=s),i.indexOf(t)===0}e.isEqualOrParent=h;function u(i){return i>=65&&i<=90||i>=97&&i<=122}e.isWindowsDriveLetter=u;function n(i,t=v.isWindows){return t?u(i.charCodeAt(0))&&i.charCodeAt(1)===58:!1}e.hasDriveLetter=n}),define(oe[476],se([1,0,63,90,17,8]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pieceToQuery=e.prepareQuery=e.scoreFuzzy2=void 0;const w=[void 0,[]];function b(a,r,c=0,g=0){const f=r;return f.values&&f.values.length>1?C(a,f.values,c,g):h(a,r,c,g)}e.scoreFuzzy2=b;function C(a,r,c,g){let f=0;const _=[];for(const p of r){const[m,S]=h(a,p,c,g);if(typeof m!="number")return w;f+=m,_.push(...S)}return[f,n(_)]}function h(a,r,c,g){const f=(0,y.fuzzyScore)(r.original,r.originalLowercase,c,a,a.toLowerCase(),g,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return f?[f[0],(0,y.createMatches)(f)]:w}const u=Object.freeze({score:0});function n(a){const r=a.sort((f,_)=>f.start-_.start),c=[];let g;for(const f of r)!g||!i(g,f)?(g=f,c.push(f)):(g.start=Math.min(g.start,f.start),g.end=Math.max(g.end,f.end));return c}function i(a,r){return!(a.end<r.start||r.end<a.start)}function t(a){return a.startsWith('"')&&a.endsWith('"')}const o=" ";function s(a){typeof a!="string"&&(a="");const r=a.toLowerCase(),{pathNormalized:c,normalized:g,normalizedLowercase:f}=d(a),_=c.indexOf(v.sep)>=0,p=t(a);let m;const S=a.split(o);if(S.length>1)for(const E of S){const L=t(E),{pathNormalized:N,normalized:I,normalizedLowercase:R}=d(E);I&&(m||(m=[]),m.push({original:E,originalLowercase:E.toLowerCase(),pathNormalized:N,normalized:I,normalizedLowercase:R,expectContiguousMatch:L}))}return{original:a,originalLowercase:r,pathNormalized:c,normalized:g,normalizedLowercase:f,values:m,containsPathSeparator:_,expectContiguousMatch:p}}e.prepareQuery=s;function d(a){let r;k.isWindows?r=a.replace(/\//g,v.sep):r=a.replace(/\\/g,v.sep);const c=(0,D.stripWildcards)(r).replace(/\s|"/g,"");return{pathNormalized:r,normalized:c,normalizedLowercase:c.toLowerCase()}}function l(a){return Array.isArray(a)?s(a.map(r=>r.original).join(o)):s(a.original)}e.pieceToQuery=l}),define(oe[477],se([1,0,191,17]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.normalizeDriveLetter=void 0;function k(w,b=v.isWindows){return(0,y.hasDriveLetter)(w,b)?w.charAt(0).toUpperCase()+w.slice(1):w}e.normalizeDriveLetter=k;let D=Object.create(null)}),define(oe[57],se([1,0,17]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StopWatch=void 0;const v=y.globals.performance&&typeof y.globals.performance.now=="function";class k{constructor(w){this._highResolution=v&&w,this._startTime=this._now(),this._stopTime=-1}static create(w=!0){return new k(w)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?y.globals.performance.now():Date.now()}}e.StopWatch=k}),define(oe[6],se([1,0,14,2,73,57]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Relay=e.EventBufferer=e.DebounceEmitter=e.PauseableEmitter=e.EventDeliveryQueue=e.Emitter=e.Event=void 0;const w=!1,b=!1;var C;(function(f){f.None=()=>v.Disposable.None;function _(G){if(b){const{onListenerDidAdd:te}=G,Z=i.create();let X=0;G.onListenerDidAdd=()=>{++X==2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),Z.print()),te?.()}}}function p(G){return(te,Z=null,X)=>{let ie=!1,H;return H=G(ae=>{if(!ie)return H?H.dispose():ie=!0,te.call(Z,ae)},null,X),ie&&H.dispose(),H}}f.once=p;function m(G,te,Z){return R((X,ie=null,H)=>G(ae=>X.call(ie,te(ae)),null,H),Z)}f.map=m;function S(G,te,Z){return R((X,ie=null,H)=>G(ae=>{te(ae),X.call(ie,ae)},null,H),Z)}f.forEach=S;function E(G,te,Z){return R((X,ie=null,H)=>G(ae=>te(ae)&&X.call(ie,ae),null,H),Z)}f.filter=E;function L(G){return G}f.signal=L;function N(...G){return(te,Z=null,X)=>(0,v.combinedDisposable)(...G.map(ie=>ie(H=>te.call(Z,H),null,X)))}f.any=N;function I(G,te,Z,X){let ie=Z;return m(G,H=>(ie=te(ie,H),ie),X)}f.reduce=I;function R(G,te){let Z;const X={onFirstListenerAdd(){Z=G(ie.fire,ie)},onLastListenerRemove(){Z?.dispose()}};te||_(X);const ie=new o(X);return te?.add(ie),ie.event}function F(G,te,Z=100,X=!1,ie,H){let ae,Y,U,le=0;const z={leakWarningThreshold:ie,onFirstListenerAdd(){ae=G(W=>{le++,Y=te(Y,W),X&&!U&&(Q.fire(Y),Y=void 0),clearTimeout(U),U=setTimeout(()=>{const V=Y;Y=void 0,U=void 0,(!X||le>1)&&Q.fire(V),le=0},Z)})},onLastListenerRemove(){ae.dispose()}};H||_(z);const Q=new o(z);return H?.add(Q),Q.event}f.debounce=F;function O(G,te=(X,ie)=>X===ie,Z){let X=!0,ie;return E(G,H=>{const ae=X||!te(H,ie);return X=!1,ie=H,ae},Z)}f.latch=O;function x(G,te,Z){return[f.filter(G,te,Z),f.filter(G,X=>!te(X),Z)]}f.split=x;function M(G,te=!1,Z=[]){let X=Z.slice(),ie=G(Y=>{X?X.push(Y):ae.fire(Y)});const H=()=>{X?.forEach(Y=>ae.fire(Y)),X=null},ae=new o({onFirstListenerAdd(){ie||(ie=G(Y=>ae.fire(Y)))},onFirstListenerDidAdd(){X&&(te?setTimeout(H):H())},onLastListenerRemove(){ie&&ie.dispose(),ie=null}});return ae.event}f.buffer=M;class P{constructor(te){this.event=te,this.disposables=new v.DisposableStore}map(te){return new P(m(this.event,te,this.disposables))}forEach(te){return new P(S(this.event,te,this.disposables))}filter(te){return new P(E(this.event,te,this.disposables))}reduce(te,Z){return new P(I(this.event,te,Z,this.disposables))}latch(){return new P(O(this.event,void 0,this.disposables))}debounce(te,Z=100,X=!1,ie){return new P(F(this.event,te,Z,X,ie,this.disposables))}on(te,Z,X){return this.event(te,Z,X)}once(te,Z,X){return p(this.event)(te,Z,X)}dispose(){this.disposables.dispose()}}function A(G){return new P(G)}f.chain=A;function B(G,te,Z=X=>X){const X=(...Y)=>ae.fire(Z(...Y)),ie=()=>G.on(te,X),H=()=>G.removeListener(te,X),ae=new o({onFirstListenerAdd:ie,onLastListenerRemove:H});return ae.event}f.fromNodeEventEmitter=B;function K(G,te,Z=X=>X){const X=(...Y)=>ae.fire(Z(...Y)),ie=()=>G.addEventListener(te,X),H=()=>G.removeEventListener(te,X),ae=new o({onFirstListenerAdd:ie,onLastListenerRemove:H});return ae.event}f.fromDOMEventEmitter=K;function T(G){return new Promise(te=>p(G)(te))}f.toPromise=T;function ee(G,te){return te(void 0),G(Z=>te(Z))}f.runAndSubscribe=ee;function J(G,te){let Z=null;function X(H){Z?.dispose(),Z=new v.DisposableStore,te(H,Z)}X(void 0);const ie=G(H=>X(H));return(0,v.toDisposable)(()=>{ie.dispose(),Z?.dispose()})}f.runAndSubscribeWithStore=J;class ${constructor(te,Z){this.obs=te,this._counter=0,this._hasChanged=!1;const X={onFirstListenerAdd:()=>{te.addObserver(this)},onLastListenerRemove:()=>{te.removeObserver(this)}};Z||_(X),this.emitter=new o(X),Z&&Z.add(this.emitter)}beginUpdate(te){this._counter++}handleChange(te,Z){this._hasChanged=!0}endUpdate(te){--this._counter==0&&this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this.obs.get()))}}function j(G,te){return new $(G,te).emitter.event}f.fromObservable=j})(C=e.Event||(e.Event={}));class h{constructor(_){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${_}_${h._idPool++}`}start(_){this._stopWatch=new D.StopWatch(!0),this._listenerCount=_}stop(){if(this._stopWatch){const _=this._stopWatch.elapsed();this._elapsedOverall+=_,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${_.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}h._idPool=0;let u=-1;class n{constructor(_,p=Math.random().toString(18).slice(2,5)){this.customThreshold=_,this.name=p,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(_,p){let m=u;if(typeof this.customThreshold=="number"&&(m=this.customThreshold),m<=0||p<m)return;this._stacks||(this._stacks=new Map);const S=this._stacks.get(_.value)||0;if(this._stacks.set(_.value,S+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=m*.5;let E,L=0;for(const[N,I]of this._stacks)(!E||L<I)&&(E=N,L=I);console.warn(`[${this.name}] potential listener LEAK detected, having ${p} listeners already. MOST frequent listener (${L}):`),console.warn(E)}return()=>{const E=this._stacks.get(_.value)||0;this._stacks.set(_.value,E-1)}}}class i{constructor(_){this.value=_}static create(){var _;return new i((_=new Error().stack)!==null&&_!==void 0?_:"")}print(){console.warn(this.value.split(` `).slice(2).join(` `))}}class t{constructor(_,p,m){this.callback=_,this.callbackThis=p,this.stack=m,this.subscription=new v.SafeDisposable}invoke(_){this.callback.call(this.callbackThis,_)}}class o{constructor(_){var p,m;this._disposed=!1,this._options=_,this._leakageMon=u>0?new n(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=!((p=this._options)===null||p===void 0)&&p._profName?new h(this._options._profName):void 0,this._deliveryQueue=(m=this._options)===null||m===void 0?void 0:m.deliveryQueue}dispose(){var _,p,m,S;if(!this._disposed){if(this._disposed=!0,this._listeners){if(w){const E=Array.from(this._listeners);queueMicrotask(()=>{var L;for(const N of E)N.subscription.isset()&&(N.subscription.unset(),(L=N.stack)===null||L===void 0||L.print())})}this._listeners.clear()}(_=this._deliveryQueue)===null||_===void 0||_.clear(this),(m=(p=this._options)===null||p===void 0?void 0:p.onLastListenerRemove)===null||m===void 0||m.call(p),(S=this._leakageMon)===null||S===void 0||S.dispose()}}get event(){return this._event||(this._event=(_,p,m)=>{var S,E,L;this._listeners||(this._listeners=new k.LinkedList);const N=this._listeners.isEmpty();N&&(!((S=this._options)===null||S===void 0)&&S.onFirstListenerAdd)&&this._options.onFirstListenerAdd(this);let I,R;this._leakageMon&&this._listeners.size>=30&&(R=i.create(),I=this._leakageMon.check(R,this._listeners.size+1)),w&&(R=R??i.create());const F=new t(_,p,R),O=this._listeners.push(F);N&&(!((E=this._options)===null||E===void 0)&&E.onFirstListenerDidAdd)&&this._options.onFirstListenerDidAdd(this),!((L=this._options)===null||L===void 0)&&L.onListenerDidAdd&&this._options.onListenerDidAdd(this,_,p);const x=F.subscription.set(()=>{I?.(),this._disposed||(O(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return m instanceof v.DisposableStore?m.add(x):Array.isArray(m)&&m.push(x),x}),this._event}fire(_){var p,m;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new d);for(const S of this._listeners)this._deliveryQueue.push(this,S,_);(p=this._perfMon)===null||p===void 0||p.start(this._deliveryQueue.size),this._deliveryQueue.deliver(),(m=this._perfMon)===null||m===void 0||m.stop()}}}e.Emitter=o;class s{constructor(){this._queue=new k.LinkedList}get size(){return this._queue.size}push(_,p,m){this._queue.push(new l(_,p,m))}clear(_){const p=new k.LinkedList;for(const m of this._queue)m.emitter!==_&&p.push(m);this._queue=p}deliver(){for(;this._queue.size>0;){const _=this._queue.shift();try{_.listener.invoke(_.event)}catch(p){(0,y.onUnexpectedError)(p)}}}}e.EventDeliveryQueue=s;class d extends s{clear(_){this._queue.clear()}}class l{constructor(_,p,m){this.emitter=_,this.listener=p,this.event=m}}class a extends o{constructor(_){super(_),this._isPaused=0,this._eventQueue=new k.LinkedList,this._mergeFn=_?.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused==0)if(this._mergeFn){const _=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(_))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(_){this._listeners&&(this._isPaused!==0?this._eventQueue.push(_):super.fire(_))}}e.PauseableEmitter=a;class r extends a{constructor(_){var p;super(_),this._delay=(p=_.delay)!==null&&p!==void 0?p:100}fire(_){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(_)}}e.DebounceEmitter=r;class c{constructor(){this.buffers=[]}wrapEvent(_){return(p,m,S)=>_(E=>{const L=this.buffers[this.buffers.length-1];L?L.push(()=>p.call(m,E)):p.call(m,E)},void 0,S)}bufferEvents(_){const p=[];this.buffers.push(p);const m=_();return this.buffers.pop(),p.forEach(S=>S()),m}}e.EventBufferer=c;class g{constructor(){this.listening=!1,this.inputEvent=C.None,this.inputEventListener=v.Disposable.None,this.emitter=new o({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(_){this.inputEvent=_,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=_(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}e.Relay=g}),define(oe[41],se([1,0,6,2]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isStandalone=e.isAndroid=e.isElectron=e.isWebkitWebView=e.isSafari=e.isChrome=e.isWebKit=e.isFirefox=e.getZoomFactor=e.PixelRatio=e.addMatchMediaChangeListener=void 0;class k{constructor(){this._zoomFactor=1}getZoomFactor(){return this._zoomFactor}}k.INSTANCE=new k;class D extends v.Disposable{constructor(){super(),this._onDidChange=this._register(new y.Emitter),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(!0),this._mediaQueryList=null,this._handleChange(!1)}_handleChange(o){var s;(s=this._mediaQueryList)===null||s===void 0||s.removeEventListener("change",this._listener),this._mediaQueryList=matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),o&&this._onDidChange.fire()}}class w extends v.Disposable{constructor(){super(),this._onDidChange=this._register(new y.Emitter),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio();const o=this._register(new D);this._register(o.onDidChange(()=>{this._value=this._getPixelRatio(),this._onDidChange.fire(this._value)}))}get value(){return this._value}_getPixelRatio(){const o=document.createElement("canvas").getContext("2d"),s=window.devicePixelRatio||1,d=o.webkitBackingStorePixelRatio||o.mozBackingStorePixelRatio||o.msBackingStorePixelRatio||o.oBackingStorePixelRatio||o.backingStorePixelRatio||1;return s/d}}class b{constructor(){this._pixelRatioMonitor=null}_getOrCreatePixelRatioMonitor(){return this._pixelRatioMonitor||(this._pixelRatioMonitor=(0,v.markAsSingleton)(new w)),this._pixelRatioMonitor}get value(){return this._getOrCreatePixelRatioMonitor().value}get onDidChange(){return this._getOrCreatePixelRatioMonitor().onDidChange}}function C(t,o){typeof t=="string"&&(t=window.matchMedia(t)),t.addEventListener("change",o)}e.addMatchMediaChangeListener=C,e.PixelRatio=new b;function h(){return k.INSTANCE.getZoomFactor()}e.getZoomFactor=h;const u=navigator.userAgent;e.isFirefox=u.indexOf("Firefox")>=0,e.isWebKit=u.indexOf("AppleWebKit")>=0,e.isChrome=u.indexOf("Chrome")>=0,e.isSafari=!e.isChrome&&u.indexOf("Safari")>=0,e.isWebkitWebView=!e.isChrome&&!e.isSafari&&e.isWebKit,e.isElectron=u.indexOf("Electron/")>=0,e.isAndroid=u.indexOf("Android")>=0;let n=!1;if(window.matchMedia){const t=window.matchMedia("(display-mode: standalone)");n=t.matches,C(t,({matches:o})=>{n=o})}function i(){return n}e.isStandalone=i}),define(oe[192],se([1,0,41,17]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BrowserFeatures=void 0,e.BrowserFeatures={clipboard:{writeText:v.isNative||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:v.isNative||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:(()=>v.isNative||y.isStandalone()?0:navigator.keyboard||y.isSafari?1:2)(),touch:"ontouchstart"in window||navigator.maxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0)}}),define(oe[100],se([1,0,6]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.stopEvent=e.DomEmitter=void 0;class v{constructor(w,b,C){const h=u=>this.emitter.fire(u);this.emitter=new y.Emitter({onFirstListenerAdd:()=>w.addEventListener(b,h,C),onLastListenerRemove:()=>w.removeEventListener(b,h,C)})}get event(){return this.emitter.event}dispose(){this.emitter.dispose()}}e.DomEmitter=v;function k(D){return D.preventDefault(),D.stopPropagation(),D}e.stopEvent=k}),define(oe[48],se([1,0,41,59,104,17]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StandardKeyboardEvent=void 0;function w(i){if(i.charCode){const o=String.fromCharCode(i.charCode).toUpperCase();return v.KeyCodeUtils.fromString(o)}const t=i.keyCode;if(t===3)return 7;if(y.isFirefox){if(t===59)return 80;if(t===107)return 81;if(t===109)return 83;if(D.isMacintosh&&t===224)return 57}else if(y.isWebKit&&(t===91||D.isMacintosh&&t===93||!D.isMacintosh&&t===92))return 57;return v.EVENT_KEY_CODE_MAP[t]||0}const b=D.isMacintosh?256:2048,C=512,h=1024,u=D.isMacintosh?2048:256;class n{constructor(t){this._standardKeyboardEventBrand=!0;const o=t;this.browserEvent=o,this.target=o.target,this.ctrlKey=o.ctrlKey,this.shiftKey=o.shiftKey,this.altKey=o.altKey,this.metaKey=o.metaKey,this.keyCode=w(o),this.code=o.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._asRuntimeKeybinding=this._computeRuntimeKeybinding()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeybinding(){return this._asRuntimeKeybinding}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 o=0;return this.ctrlKey&&(o|=b),this.altKey&&(o|=C),this.shiftKey&&(o|=h),this.metaKey&&(o|=u),o|=t,o}_computeRuntimeKeybinding(){let t=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(t=this.keyCode),new k.SimpleKeybinding(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,t)}}e.StandardKeyboardEvent=n}),define(oe[67],se([1,0,41,324,17]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StandardWheelEvent=e.StandardMouseEvent=void 0;class D{constructor(C){this.timestamp=Date.now(),this.browserEvent=C,this.leftButton=C.button===0,this.middleButton=C.button===1,this.rightButton=C.button===2,this.buttons=C.buttons,this.target=C.target,this.detail=C.detail||1,C.type==="dblclick"&&(this.detail=2),this.ctrlKey=C.ctrlKey,this.shiftKey=C.shiftKey,this.altKey=C.altKey,this.metaKey=C.metaKey,typeof C.pageX=="number"?(this.posx=C.pageX,this.posy=C.pageY):(this.posx=C.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=C.clientY+document.body.scrollTop+document.documentElement.scrollTop);const h=v.IframeUtils.getPositionOfChildWindowRelativeToAncestorWindow(self,C.view);this.posx-=h.left,this.posy-=h.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}e.StandardMouseEvent=D;class w{constructor(C,h=0,u=0){if(this.browserEvent=C||null,this.target=C?C.target||C.targetNode||C.srcElement:null,this.deltaY=u,this.deltaX=h,C){const n=C,i=C;if(typeof n.wheelDeltaY<"u")this.deltaY=n.wheelDeltaY/120;else if(typeof i.VERTICAL_AXIS<"u"&&i.axis===i.VERTICAL_AXIS)this.deltaY=-i.detail/3;else if(C.type==="wheel"){const t=C;t.deltaMode===t.DOM_DELTA_LINE?y.isFirefox&&!k.isMacintosh?this.deltaY=-C.deltaY/3:this.deltaY=-C.deltaY:this.deltaY=-C.deltaY/40}if(typeof n.wheelDeltaX<"u")y.isSafari&&k.isWindows?this.deltaX=-(n.wheelDeltaX/120):this.deltaX=n.wheelDeltaX/120;else if(typeof i.HORIZONTAL_AXIS<"u"&&i.axis===i.HORIZONTAL_AXIS)this.deltaX=-C.detail/3;else if(C.type==="wheel"){const t=C;t.deltaMode===t.DOM_DELTA_LINE?y.isFirefox&&!k.isMacintosh?this.deltaX=-C.deltaX/3:this.deltaX=-C.deltaX:this.deltaX=-C.deltaX/40}this.deltaY===0&&this.deltaX===0&&C.wheelDelta&&(this.deltaY=C.wheelDelta/120)}}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation()}}e.StandardWheelEvent=w}),define(oe[42],se([1,0,6,2,470]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toAction=e.EmptySubmenuAction=e.SubmenuAction=e.Separator=e.ActionRunner=e.Action=void 0;class D extends v.Disposable{constructor(i,t="",o="",s=!0,d){super(),this._onDidChange=this._register(new y.Emitter),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=i,this._label=t,this._cssClass=o,this._enabled=s,this._actionCallback=d}get id(){return this._id}get label(){return this._label}set label(i){this._setLabel(i)}_setLabel(i){this._label!==i&&(this._label=i,this._onDidChange.fire({label:i}))}get tooltip(){return this._tooltip||""}set tooltip(i){this._setTooltip(i)}_setTooltip(i){this._tooltip!==i&&(this._tooltip=i,this._onDidChange.fire({tooltip:i}))}get class(){return this._cssClass}set class(i){this._setClass(i)}_setClass(i){this._cssClass!==i&&(this._cssClass=i,this._onDidChange.fire({class:i}))}get enabled(){return this._enabled}set enabled(i){this._setEnabled(i)}_setEnabled(i){this._enabled!==i&&(this._enabled=i,this._onDidChange.fire({enabled:i}))}get checked(){return this._checked}set checked(i){this._setChecked(i)}_setChecked(i){this._checked!==i&&(this._checked=i,this._onDidChange.fire({checked:i}))}run(i,t){return be(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(i))})}}e.Action=D;class w extends v.Disposable{constructor(){super(...arguments),this._onBeforeRun=this._register(new y.Emitter),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new y.Emitter),this.onDidRun=this._onDidRun.event}run(i,t){return be(this,void 0,void 0,function*(){if(!i.enabled)return;this._onBeforeRun.fire({action:i});let o;try{yield this.runAction(i,t)}catch(s){o=s}this._onDidRun.fire({action:i,error:o})})}runAction(i,t){return be(this,void 0,void 0,function*(){yield i.run(t)})}}e.ActionRunner=w;class b extends D{constructor(i){super(b.ID,i,i?"separator text":"separator"),this.checked=!1,this.enabled=!1}}e.Separator=b,b.ID="vs.actions.separator";class C{constructor(i,t,o,s){this.tooltip="",this.enabled=!0,this.checked=void 0,this.id=i,this.label=t,this.class=s,this._actions=o}get actions(){return this._actions}dispose(){}run(){return be(this,void 0,void 0,function*(){})}}e.SubmenuAction=C;class h extends D{constructor(){super(h.ID,k.localize(0,null),void 0,!1)}}e.EmptySubmenuAction=h,h.ID="vs.actions.empty";function u(n){var i,t;return{id:n.id,label:n.label,class:void 0,enabled:(i=n.enabled)!==null&&i!==void 0?i:!0,checked:(t=n.checked)!==null&&t!==void 0?t:!1,run:()=>be(this,void 0,void 0,function*(){return n.run()}),tooltip:n.label,dispose:()=>{}}}e.toAction=u}),define(oe[21],se([1,0,6]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;const v=Object.freeze(function(b,C){const h=setTimeout(b.bind(C),0);return{dispose(){clearTimeout(h)}}});var k;(function(b){function C(h){return h===b.None||h===b.Cancelled||h instanceof D?!0:!h||typeof h!="object"?!1:typeof h.isCancellationRequested=="boolean"&&typeof h.onCancellationRequested=="function"}b.isCancellationToken=C,b.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:y.Event.None}),b.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:v})})(k=e.CancellationToken||(e.CancellationToken={}));class D{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?v:(this._emitter||(this._emitter=new y.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class w{constructor(C){this._token=void 0,this._parentListener=void 0,this._parentListener=C&&C.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new D),this._token}cancel(){this._token?this._token instanceof D&&this._token.cancel():this._token=k.Cancelled}dispose(C=!1){C&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof D&&this._token.dispose():this._token=k.None}}e.CancellationTokenSource=w});var Gt=this&&this.__asyncValues||function(q){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=q[Symbol.asyncIterator],y;return e?e.call(q):(q=typeof __values=="function"?__values(q):q[Symbol.iterator](),y={},v("next"),v("throw"),v("return"),y[Symbol.asyncIterator]=function(){return this},y);function v(D){y[D]=q[D]&&function(w){return new Promise(function(b,C){w=q[D](w),k(b,C,w.done,w.value)})}}function k(D,w,b,C){Promise.resolve(C).then(function(h){D({value:h,done:b})},w)}};define(oe[10],se([1,0,21,14,6,2,17]),function(q,e,y,v,k,D,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createCancelableAsyncIterable=e.CancelableAsyncIterableObject=e.AsyncIterableObject=e.Promises=e.DeferredPromise=e.IdleValue=e.runWhenIdle=e.RunOnceScheduler=e.IntervalTimer=e.TimeoutTimer=e.first=e.disposableTimeout=e.timeout=e.ThrottledDelayer=e.Delayer=e.MicrotaskDelay=e.Throttler=e.raceCancellation=e.createCancelablePromise=e.isThenable=void 0;function b(E){return!!E&&typeof E.then=="function"}e.isThenable=b;function C(E){const L=new y.CancellationTokenSource,N=E(L.token),I=new Promise((R,F)=>{const O=L.token.onCancellationRequested(()=>{O.dispose(),L.dispose(),F(new v.CancellationError)});Promise.resolve(N).then(x=>{O.dispose(),L.dispose(),R(x)},x=>{O.dispose(),L.dispose(),F(x)})});return new class{cancel(){L.cancel()}then(R,F){return I.then(R,F)}catch(R){return this.then(void 0,R)}finally(R){return I.finally(R)}}}e.createCancelablePromise=C;function h(E,L,N){return new Promise((I,R)=>{const F=L.onCancellationRequested(()=>{F.dispose(),I(N)});E.then(I,R).finally(()=>F.dispose())})}e.raceCancellation=h;class u{constructor(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(L){if(this.activePromise){if(this.queuedPromiseFactory=L,!this.queuedPromise){const N=()=>{this.queuedPromise=null;const I=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,I};this.queuedPromise=new Promise(I=>{this.activePromise.then(N,N).then(I)})}return new Promise((N,I)=>{this.queuedPromise.then(N,I)})}return this.activePromise=L(),new Promise((N,I)=>{this.activePromise.then(R=>{this.activePromise=null,N(R)},R=>{this.activePromise=null,I(R)})})}}e.Throttler=u;const n=(E,L)=>{let N=!0;const I=setTimeout(()=>{N=!1,L()},E);return{isTriggered:()=>N,dispose:()=>{clearTimeout(I),N=!1}}},i=E=>{let L=!0;return queueMicrotask(()=>{L&&(L=!1,E())}),{isTriggered:()=>L,dispose:()=>{L=!1}}};e.MicrotaskDelay=Symbol("MicrotaskDelay");class t{constructor(L){this.defaultDelay=L,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(L,N=this.defaultDelay){this.task=L,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((R,F)=>{this.doResolve=R,this.doReject=F}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const R=this.task;return this.task=null,R()}}));const I=()=>{var R;this.deferred=null,(R=this.doResolve)===null||R===void 0||R.call(this,null)};return this.deferred=N===e.MicrotaskDelay?i(I):n(N,I),this.completionPromise}isTriggered(){var L;return!!(!((L=this.deferred)===null||L===void 0)&&L.isTriggered())}cancel(){var L;this.cancelTimeout(),this.completionPromise&&((L=this.doReject)===null||L===void 0||L.call(this,new v.CancellationError),this.completionPromise=null)}cancelTimeout(){var L;(L=this.deferred)===null||L===void 0||L.dispose(),this.deferred=null}dispose(){this.cancel()}}e.Delayer=t;class o{constructor(L){this.delayer=new t(L),this.throttler=new u}trigger(L,N){return this.delayer.trigger(()=>this.throttler.queue(L),N)}dispose(){this.delayer.dispose()}}e.ThrottledDelayer=o;function s(E,L){return L?new Promise((N,I)=>{const R=setTimeout(()=>{F.dispose(),N()},E),F=L.onCancellationRequested(()=>{clearTimeout(R),F.dispose(),I(new v.CancellationError)})}):C(N=>s(E,N))}e.timeout=s;function d(E,L=0){const N=setTimeout(E,L);return(0,D.toDisposable)(()=>clearTimeout(N))}e.disposableTimeout=d;function l(E,L=I=>!!I,N=null){let I=0;const R=E.length,F=()=>{if(I>=R)return Promise.resolve(N);const O=E[I++];return Promise.resolve(O()).then(x=>L(x)?Promise.resolve(x):F())};return F()}e.first=l;class a{constructor(L,N){this._token=-1,typeof L=="function"&&typeof N=="number"&&this.setIfNotSet(L,N)}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(L,N){this.cancel(),this._token=setTimeout(()=>{this._token=-1,L()},N)}setIfNotSet(L,N){this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,L()},N))}}e.TimeoutTimer=a;class r{constructor(){this._token=-1}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearInterval(this._token),this._token=-1)}cancelAndSet(L,N){this.cancel(),this._token=setInterval(()=>{L()},N)}}e.IntervalTimer=r;class c{constructor(L,N){this.timeoutToken=-1,this.runner=L,this.timeout=N,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(L=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,L)}get delay(){return this.timeout}set delay(L){this.timeout=L}isScheduled(){return this.timeoutToken!==-1}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){var L;(L=this.runner)===null||L===void 0||L.call(this)}}e.RunOnceScheduler=c,function(){typeof requestIdleCallback!="function"||typeof cancelIdleCallback!="function"?e.runWhenIdle=E=>{(0,w.setTimeout0)(()=>{if(L)return;const N=Date.now()+15;E(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,N-Date.now())}}))});let L=!1;return{dispose(){L||(L=!0)}}}:e.runWhenIdle=(E,L)=>{const N=requestIdleCallback(E,typeof L=="number"?{timeout:L}:void 0);let I=!1;return{dispose(){I||(I=!0,cancelIdleCallback(N))}}}}();class g{constructor(L){this._didRun=!1,this._executor=()=>{try{this._value=L()}catch(N){this._error=N}finally{this._didRun=!0}},this._handle=(0,e.runWhenIdle)(()=>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.IdleValue=g;class f{constructor(){this.rejected=!1,this.resolved=!1,this.p=new Promise((L,N)=>{this.completeCallback=L,this.errorCallback=N})}get isRejected(){return this.rejected}get isSettled(){return this.rejected||this.resolved}complete(L){return new Promise(N=>{this.completeCallback(L),this.resolved=!0,N()})}cancel(){new Promise(L=>{this.errorCallback(new v.CancellationError),this.rejected=!0,L()})}}e.DeferredPromise=f;var _;(function(E){function L(I){return be(this,void 0,void 0,function*(){let R;const F=yield Promise.all(I.map(O=>O.then(x=>x,x=>{R||(R=x)})));if(typeof R<"u")throw R;return F})}E.settled=L;function N(I){return new Promise((R,F)=>be(this,void 0,void 0,function*(){try{yield I(R,F)}catch(O){F(O)}}))}E.withAsyncBody=N})(_=e.Promises||(e.Promises={}));class p{constructor(L){this._state=0,this._results=[],this._error=null,this._onStateChanged=new k.Emitter,queueMicrotask(()=>be(this,void 0,void 0,function*(){const N={emitOne:I=>this.emitOne(I),emitMany:I=>this.emitMany(I),reject:I=>this.reject(I)};try{yield Promise.resolve(L(N)),this.resolve()}catch(I){this.reject(I)}finally{N.emitOne=void 0,N.emitMany=void 0,N.reject=void 0}}))}static fromArray(L){return new p(N=>{N.emitMany(L)})}static fromPromise(L){return new p(N=>be(this,void 0,void 0,function*(){N.emitMany(yield L)}))}static fromPromises(L){return new p(N=>be(this,void 0,void 0,function*(){yield Promise.all(L.map(I=>be(this,void 0,void 0,function*(){return N.emitOne(yield I)})))}))}static merge(L){return new p(N=>be(this,void 0,void 0,function*(){yield Promise.all(L.map(I=>{var R,F;return be(this,void 0,void 0,function*(){var O,x;try{for(R=Gt(I);F=yield R.next(),!F.done;){const M=F.value;N.emitOne(M)}}catch(M){O={error:M}}finally{try{F&&!F.done&&(x=R.return)&&(yield x.call(R))}finally{if(O)throw O.error}}})}))}))}[Symbol.asyncIterator](){let L=0;return{next:()=>be(this,void 0,void 0,function*(){do{if(this._state===2)throw this._error;if(L<this._results.length)return{done:!1,value:this._results[L++]};if(this._state===1)return{done:!0,value:void 0};yield k.Event.toPromise(this._onStateChanged.event)}while(!0)})}}static map(L,N){return new p(I=>be(this,void 0,void 0,function*(){var R,F;try{for(var O=Gt(L),x;x=yield O.next(),!x.done;){const M=x.value;I.emitOne(N(M))}}catch(M){R={error:M}}finally{try{x&&!x.done&&(F=O.return)&&(yield F.call(O))}finally{if(R)throw R.error}}}))}map(L){return p.map(this,L)}static filter(L,N){return new p(I=>be(this,void 0,void 0,function*(){var R,F;try{for(var O=Gt(L),x;x=yield O.next(),!x.done;){const M=x.value;N(M)&&I.emitOne(M)}}catch(M){R={error:M}}finally{try{x&&!x.done&&(F=O.return)&&(yield F.call(O))}finally{if(R)throw R.error}}}))}filter(L){return p.filter(this,L)}static coalesce(L){return p.filter(L,N=>!!N)}coalesce(){return p.coalesce(this)}static toPromise(L){var N,I,R,F;return be(this,void 0,void 0,function*(){const O=[];try{for(N=Gt(L);I=yield N.next(),!I.done;){const x=I.value;O.push(x)}}catch(x){R={error:x}}finally{try{I&&!I.done&&(F=N.return)&&(yield F.call(N))}finally{if(R)throw R.error}}return O})}toPromise(){return p.toPromise(this)}emitOne(L){this._state===0&&(this._results.push(L),this._onStateChanged.fire())}emitMany(L){this._state===0&&(this._results=this._results.concat(L),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(L){this._state===0&&(this._state=2,this._error=L,this._onStateChanged.fire())}}e.AsyncIterableObject=p,p.EMPTY=p.fromArray([]);class m extends p{constructor(L,N){super(N),this._source=L}cancel(){this._source.cancel()}}e.CancelableAsyncIterableObject=m;function S(E){const L=new y.CancellationTokenSource,N=E(L.token);return new m(L,I=>be(this,void 0,void 0,function*(){var R,F;const O=L.token.onCancellationRequested(()=>{O.dispose(),L.dispose(),I.reject(new v.CancellationError)});try{try{for(var x=Gt(N),M;M=yield x.next(),!M.done;){const P=M.value;if(L.token.isCancellationRequested)return;I.emitOne(P)}}catch(P){R={error:P}}finally{try{M&&!M.done&&(F=x.return)&&(yield F.call(x))}finally{if(R)throw R.error}}O.dispose(),L.dispose()}catch(P){O.dispose(),L.dispose(),I.reject(P)}}))}e.createCancelableAsyncIterable=S}),define(oe[478],se([1,0,10,2]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ScrollbarVisibilityController=void 0;class k extends v.Disposable{constructor(w,b,C){super(),this._visibility=w,this._visibleClassName=b,this._invisibleClassName=C,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new y.TimeoutTimer)}setVisibility(w){this._visibility!==w&&(this._visibility=w,this._updateShouldBeVisible())}setShouldBeVisible(w){this._rawShouldBeVisible=w,this._updateShouldBeVisible()}_applyVisibilitySetting(){return this._visibility===2?!1:this._visibility===3?!0:this._rawShouldBeVisible}_updateShouldBeVisible(){const w=this._applyVisibilitySetting();this._shouldBeVisible!==w&&(this._shouldBeVisible=w,this.ensureVisibility())}setIsNeeded(w){this._isNeeded!==w&&(this._isNeeded=w,this.ensureVisibility())}setDomNode(w){this._domNode=w,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(()=>{var w;(w=this._domNode)===null||w===void 0||w.setClassName(this._visibleClassName)},0))}_hide(w){var b;this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,(b=this._domNode)===null||b===void 0||b.setClassName(this._invisibleClassName+(w?" fade":"")))}}e.ScrollbarVisibilityController=k}),define(oe[193],se([1,0,121,18,10,147,6,55]),function(q,e,y,v,k,D,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndexTreeModel=e.getVisibleState=e.isFilterResult=void 0;function C(i){return typeof i=="object"&&"visibility"in i&&"data"in i}e.isFilterResult=C;function h(i){switch(i){case!0:return 1;case!1:return 0;default:return i}}e.getVisibleState=h;function u(i){return typeof i.collapsible=="boolean"}class n{constructor(t,o,s,d={}){this.user=t,this.list=o,this.rootRef=[],this.eventBufferer=new w.EventBufferer,this._onDidChangeCollapseState=new w.Emitter,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new w.Emitter,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new w.Emitter,this.onDidSplice=this._onDidSplice.event,this.refilterDelayer=new k.Delayer(k.MicrotaskDelay),this.collapseByDefault=typeof d.collapseByDefault>"u"?!1:d.collapseByDefault,this.filter=d.filter,this.autoExpandSingleChildren=typeof d.autoExpandSingleChildren>"u"?!1:d.autoExpandSingleChildren,this.root={parent:void 0,element:s,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visibility:1,visible:!0,filterData:void 0}}splice(t,o,s=b.Iterable.empty(),d={}){if(t.length===0)throw new y.TreeError(this.user,"Invalid tree location");d.diffIdentityProvider?this.spliceSmart(d.diffIdentityProvider,t,o,s,d):this.spliceSimple(t,o,s,d)}spliceSmart(t,o,s,d,l,a){var r;d===void 0&&(d=b.Iterable.empty()),a===void 0&&(a=(r=l.diffDepth)!==null&&r!==void 0?r:0);const{parentNode:c}=this.getParentNodeWithListIndex(o);if(!c.lastDiffIds)return this.spliceSimple(o,s,d,l);const g=[...d],f=o[o.length-1],_=new D.LcsDiff({getElements:()=>c.lastDiffIds},{getElements:()=>[...c.children.slice(0,f),...g,...c.children.slice(f+s)].map(L=>t.getId(L.element).toString())}).ComputeDiff(!1);if(_.quitEarly)return c.lastDiffIds=void 0,this.spliceSimple(o,s,g,l);const p=o.slice(0,-1),m=(L,N,I)=>{if(a>0)for(let R=0;R<I;R++)L--,N--,this.spliceSmart(t,[...p,L,0],Number.MAX_SAFE_INTEGER,g[N].children,l,a-1)};let S=Math.min(c.children.length,f+s),E=g.length;for(const L of _.changes.sort((N,I)=>I.originalStart-N.originalStart))m(S,E,S-(L.originalStart+L.originalLength)),S=L.originalStart,E=L.modifiedStart-f,this.spliceSimple([...p,S],L.originalLength,b.Iterable.slice(g,E,E+L.modifiedLength),l);m(S,E,S)}spliceSimple(t,o,s=b.Iterable.empty(),{onDidCreateNode:d,onDidDeleteNode:l,diffIdentityProvider:a}){const{parentNode:r,listIndex:c,revealed:g,visible:f}=this.getParentNodeWithListIndex(t),_=[],p=b.Iterable.map(s,M=>this.createTreeNode(M,r,r.visible?1:0,g,_,d)),m=t[t.length-1],S=r.children.length>0;let E=0;for(let M=m;M>=0&&M<r.children.length;M--){const P=r.children[M];if(P.visible){E=P.visibleChildIndex;break}}const L=[];let N=0,I=0;for(const M of p)L.push(M),I+=M.renderNodeCount,M.visible&&(M.visibleChildIndex=E+N++);const R=(0,v.splice)(r.children,m,o,L);a?r.lastDiffIds?(0,v.splice)(r.lastDiffIds,m,o,L.map(M=>a.getId(M.element).toString())):r.lastDiffIds=r.children.map(M=>a.getId(M.element).toString()):r.lastDiffIds=void 0;let F=0;for(const M of R)M.visible&&F++;if(F!==0)for(let M=m+L.length;M<r.children.length;M++){const P=r.children[M];P.visible&&(P.visibleChildIndex-=F)}if(r.visibleChildrenCount+=N-F,g&&f){const M=R.reduce((P,A)=>P+(A.visible?A.renderNodeCount:0),0);this._updateAncestorsRenderNodeCount(r,I-M),this.list.splice(c,M,_)}if(R.length>0&&l){const M=P=>{l(P),P.children.forEach(M)};R.forEach(M)}this._onDidSplice.fire({insertedNodes:L,deletedNodes:R});const O=r.children.length>0;S!==O&&this.setCollapsible(t.slice(0,-1),O);let x=r;for(;x;){if(x.visibility===2){this.refilterDelayer.trigger(()=>this.refilter());break}x=x.parent}}rerender(t){if(t.length===0)throw new y.TreeError(this.user,"Invalid tree location");const{node:o,listIndex:s,revealed:d}=this.getTreeNodeWithListIndex(t);o.visible&&d&&this.list.splice(s,1,[o])}has(t){return this.hasTreeNode(t)}getListIndex(t){const{listIndex:o,visible:s,revealed:d}=this.getTreeNodeWithListIndex(t);return s&&d?o:-1}getListRenderCount(t){return this.getTreeNode(t).renderNodeCount}isCollapsible(t){return this.getTreeNode(t).collapsible}setCollapsible(t,o){const s=this.getTreeNode(t);typeof o>"u"&&(o=!s.collapsible);const d={collapsible:o};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(t,d))}isCollapsed(t){return this.getTreeNode(t).collapsed}setCollapsed(t,o,s){const d=this.getTreeNode(t);typeof o>"u"&&(o=!d.collapsed);const l={collapsed:o,recursive:s||!1};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(t,l))}_setCollapseState(t,o){const{node:s,listIndex:d,revealed:l}=this.getTreeNodeWithListIndex(t),a=this._setListNodeCollapseState(s,d,l,o);if(s!==this.root&&this.autoExpandSingleChildren&&a&&!u(o)&&s.collapsible&&!s.collapsed&&!o.recursive){let r=-1;for(let c=0;c<s.children.length;c++)if(s.children[c].visible)if(r>-1){r=-1;break}else r=c;r>-1&&this._setCollapseState([...t,r],o)}return a}_setListNodeCollapseState(t,o,s,d){const l=this._setNodeCollapseState(t,d,!1);if(!s||!t.visible||!l)return l;const a=t.renderNodeCount,r=this.updateNodeAfterCollapseChange(t),c=a-(o===-1?0:1);return this.list.splice(o+1,c,r.slice(1)),l}_setNodeCollapseState(t,o,s){let d;if(t===this.root?d=!1:(u(o)?(d=t.collapsible!==o.collapsible,t.collapsible=o.collapsible):t.collapsible?(d=t.collapsed!==o.collapsed,t.collapsed=o.collapsed):d=!1,d&&this._onDidChangeCollapseState.fire({node:t,deep:s})),!u(o)&&o.recursive)for(const l of t.children)d=this._setNodeCollapseState(l,o,!0)||d;return d}expandTo(t){this.eventBufferer.bufferEvents(()=>{let o=this.getTreeNode(t);for(;o.parent;)o=o.parent,t=t.slice(0,t.length-1),o.collapsed&&this._setCollapseState(t,{collapsed:!1,recursive:!1})})}refilter(){const t=this.root.renderNodeCount,o=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,t,o),this.refilterDelayer.cancel()}createTreeNode(t,o,s,d,l,a){const r={parent:o,element:t.element,children:[],depth:o.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:typeof t.collapsible=="boolean"?t.collapsible:typeof t.collapsed<"u",collapsed:typeof t.collapsed>"u"?this.collapseByDefault:t.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},c=this._filterNode(r,s);r.visibility=c,d&&l.push(r);const g=t.children||b.Iterable.empty(),f=d&&c!==0&&!r.collapsed,_=b.Iterable.map(g,S=>this.createTreeNode(S,r,c,f,l,a));let p=0,m=1;for(const S of _)r.children.push(S),m+=S.renderNodeCount,S.visible&&(S.visibleChildIndex=p++);return r.collapsible=r.collapsible||r.children.length>0,r.visibleChildrenCount=p,r.visible=c===2?p>0:c===1,r.visible?r.collapsed||(r.renderNodeCount=m):(r.renderNodeCount=0,d&&l.pop()),a?.(r),r}updateNodeAfterCollapseChange(t){const o=t.renderNodeCount,s=[];return this._updateNodeAfterCollapseChange(t,s),this._updateAncestorsRenderNodeCount(t.parent,s.length-o),s}_updateNodeAfterCollapseChange(t,o){if(t.visible===!1)return 0;if(o.push(t),t.renderNodeCount=1,!t.collapsed)for(const s of t.children)t.renderNodeCount+=this._updateNodeAfterCollapseChange(s,o);return this._onDidChangeRenderNodeCount.fire(t),t.renderNodeCount}updateNodeAfterFilterChange(t){const o=t.renderNodeCount,s=[];return this._updateNodeAfterFilterChange(t,t.visible?1:0,s),this._updateAncestorsRenderNodeCount(t.parent,s.length-o),s}_updateNodeAfterFilterChange(t,o,s,d=!0){let l;if(t!==this.root){if(l=this._filterNode(t,o),l===0)return t.visible=!1,t.renderNodeCount=0,!1;d&&s.push(t)}const a=s.length;t.renderNodeCount=t===this.root?0:1;let r=!1;if(!t.collapsed||l!==0){let c=0;for(const g of t.children)r=this._updateNodeAfterFilterChange(g,l,s,d&&!t.collapsed)||r,g.visible&&(g.visibleChildIndex=c++);t.visibleChildrenCount=c}else t.visibleChildrenCount=0;return t!==this.root&&(t.visible=l===2?r:l===1,t.visibility=l),t.visible?t.collapsed||(t.renderNodeCount+=s.length-a):(t.renderNodeCount=0,d&&s.pop()),this._onDidChangeRenderNodeCount.fire(t),t.visible}_updateAncestorsRenderNodeCount(t,o){if(o!==0)for(;t;)t.renderNodeCount+=o,this._onDidChangeRenderNodeCount.fire(t),t=t.parent}_filterNode(t,o){const s=this.filter?this.filter.filter(t.element,o):1;return typeof s=="boolean"?(t.filterData=void 0,s?1:0):C(s)?(t.filterData=s.data,h(s.visibility)):(t.filterData=void 0,h(s))}hasTreeNode(t,o=this.root){if(!t||t.length===0)return!0;const[s,...d]=t;return s<0||s>o.children.length?!1:this.hasTreeNode(d,o.children[s])}getTreeNode(t,o=this.root){if(!t||t.length===0)return o;const[s,...d]=t;if(s<0||s>o.children.length)throw new y.TreeError(this.user,"Invalid tree location");return this.getTreeNode(d,o.children[s])}getTreeNodeWithListIndex(t){if(t.length===0)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};const{parentNode:o,listIndex:s,revealed:d,visible:l}=this.getParentNodeWithListIndex(t),a=t[t.length-1];if(a<0||a>o.children.length)throw new y.TreeError(this.user,"Invalid tree location");const r=o.children[a];return{node:r,listIndex:s,revealed:d,visible:l&&r.visible}}getParentNodeWithListIndex(t,o=this.root,s=0,d=!0,l=!0){const[a,...r]=t;if(a<0||a>o.children.length)throw new y.TreeError(this.user,"Invalid tree location");for(let c=0;c<a;c++)s+=o.children[c].renderNodeCount;return d=d&&!o.collapsed,l=l&&o.visible,r.length===0?{parentNode:o,listIndex:s,revealed:d,visible:l}:this.getParentNodeWithListIndex(r,o.children[a],s+1,d,l)}getNode(t=[]){return this.getTreeNode(t)}getNodeLocation(t){const o=[];let s=t;for(;s.parent;)o.push(s.parent.children.indexOf(s)),s=s.parent;return o.reverse()}getParentNodeLocation(t){if(t.length!==0)return t.length===1?[]:(0,v.tail2)(t)[0]}getFirstElementChild(t){const o=this.getTreeNode(t);if(o.children.length!==0)return o.children[0].element}}e.IndexTreeModel=n}),define(oe[194],se([1,0,193,121,55]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ObjectTreeModel=void 0;class D{constructor(b,C,h={}){this.user=b,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new y.IndexTreeModel(b,C,null,h),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,h.sorter&&(this.sorter={compare(u,n){return h.sorter.compare(u.element,n.element)}}),this.identityProvider=h.identityProvider}setChildren(b,C=k.Iterable.empty(),h={}){const u=this.getElementLocation(b);this._setChildren(u,this.preserveCollapseState(C),h)}_setChildren(b,C=k.Iterable.empty(),h){const u=new Set,n=new Set,i=o=>{var s;if(o.element===null)return;const d=o;if(u.add(d.element),this.nodes.set(d.element,d),this.identityProvider){const l=this.identityProvider.getId(d.element).toString();n.add(l),this.nodesByIdentity.set(l,d)}(s=h.onDidCreateNode)===null||s===void 0||s.call(h,d)},t=o=>{var s;if(o.element===null)return;const d=o;if(u.has(d.element)||this.nodes.delete(d.element),this.identityProvider){const l=this.identityProvider.getId(d.element).toString();n.has(l)||this.nodesByIdentity.delete(l)}(s=h.onDidDeleteNode)===null||s===void 0||s.call(h,d)};this.model.splice([...b,0],Number.MAX_VALUE,C,Object.assign(Object.assign({},h),{onDidCreateNode:i,onDidDeleteNode:t}))}preserveCollapseState(b=k.Iterable.empty()){return this.sorter&&(b=[...b].sort(this.sorter.compare.bind(this.sorter))),k.Iterable.map(b,C=>{let h=this.nodes.get(C.element);if(!h&&this.identityProvider){const i=this.identityProvider.getId(C.element).toString();h=this.nodesByIdentity.get(i)}if(!h)return Object.assign(Object.assign({},C),{children:this.preserveCollapseState(C.children)});const u=typeof C.collapsible=="boolean"?C.collapsible:h.collapsible,n=typeof C.collapsed<"u"?C.collapsed:h.collapsed;return Object.assign(Object.assign({},C),{collapsible:u,collapsed:n,children:this.preserveCollapseState(C.children)})})}rerender(b){const C=this.getElementLocation(b);this.model.rerender(C)}getFirstElementChild(b=null){const C=this.getElementLocation(b);return this.model.getFirstElementChild(C)}has(b){return this.nodes.has(b)}getListIndex(b){const C=this.getElementLocation(b);return this.model.getListIndex(C)}getListRenderCount(b){const C=this.getElementLocation(b);return this.model.getListRenderCount(C)}isCollapsible(b){const C=this.getElementLocation(b);return this.model.isCollapsible(C)}setCollapsible(b,C){const h=this.getElementLocation(b);return this.model.setCollapsible(h,C)}isCollapsed(b){const C=this.getElementLocation(b);return this.model.isCollapsed(C)}setCollapsed(b,C,h){const u=this.getElementLocation(b);return this.model.setCollapsed(u,C,h)}expandTo(b){const C=this.getElementLocation(b);this.model.expandTo(C)}refilter(){this.model.refilter()}getNode(b=null){if(b===null)return this.model.getNode(this.model.rootRef);const C=this.nodes.get(b);if(!C)throw new v.TreeError(this.user,`Tree element not found: ${b}`);return C}getNodeLocation(b){return b.element}getParentNodeLocation(b){if(b===null)throw new v.TreeError(this.user,"Invalid getParentNodeLocation call");const C=this.nodes.get(b);if(!C)throw new v.TreeError(this.user,`Tree element not found: ${b}`);const h=this.model.getNodeLocation(C),u=this.model.getParentNodeLocation(h);return this.model.getNode(u).element}getElementLocation(b){if(b===null)return[];const C=this.nodes.get(b);if(!C)throw new v.TreeError(this.user,`Tree element not found: ${b}`);return this.model.getNodeLocation(C)}}e.ObjectTreeModel=D}),define(oe[479],se([1,0,194,121,6,55]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CompressibleObjectTreeModel=e.DefaultElementMapper=e.CompressedObjectTreeModel=e.decompress=e.compress=void 0;function w(a){const r=[a.element],c=a.incompressible||!1;return{element:{elements:r,incompressible:c},children:D.Iterable.map(D.Iterable.from(a.children),w),collapsible:a.collapsible,collapsed:a.collapsed}}function b(a){const r=[a.element],c=a.incompressible||!1;let g,f;for(;[f,g]=D.Iterable.consume(D.Iterable.from(a.children),2),!(f.length!==1||f[0].incompressible);)a=f[0],r.push(a.element);return{element:{elements:r,incompressible:c},children:D.Iterable.map(D.Iterable.concat(f,g),b),collapsible:a.collapsible,collapsed:a.collapsed}}e.compress=b;function C(a,r=0){let c;return r<a.element.elements.length-1?c=[C(a,r+1)]:c=D.Iterable.map(D.Iterable.from(a.children),g=>C(g,0)),r===0&&a.element.incompressible?{element:a.element.elements[r],children:c,incompressible:!0,collapsible:a.collapsible,collapsed:a.collapsed}:{element:a.element.elements[r],children:c,collapsible:a.collapsible,collapsed:a.collapsed}}function h(a){return C(a,0)}e.decompress=h;function u(a,r,c){return a.element===r?Object.assign(Object.assign({},a),{children:c}):Object.assign(Object.assign({},a),{children:D.Iterable.map(D.Iterable.from(a.children),g=>u(g,r,c))})}const n=a=>({getId(r){return r.elements.map(c=>a.getId(c).toString()).join("\0")}});class i{constructor(r,c,g={}){this.user=r,this.rootRef=null,this.nodes=new Map,this.model=new y.ObjectTreeModel(r,c,g),this.enabled=typeof g.compressionEnabled>"u"?!0:g.compressionEnabled,this.identityProvider=g.identityProvider}get onDidSplice(){return this.model.onDidSplice}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}setChildren(r,c=D.Iterable.empty(),g){const f=g.diffIdentityProvider&&n(g.diffIdentityProvider);if(r===null){const R=D.Iterable.map(c,this.enabled?b:w);this._setChildren(null,R,{diffIdentityProvider:f,diffDepth:1/0});return}const _=this.nodes.get(r);if(!_)throw new Error("Unknown compressed tree node");const p=this.model.getNode(_),m=this.model.getParentNodeLocation(_),S=this.model.getNode(m),E=h(p),L=u(E,r,c),N=(this.enabled?b:w)(L),I=S.children.map(R=>R===p?N:R);this._setChildren(S.element,I,{diffIdentityProvider:f,diffDepth:p.depth-S.depth})}setCompressionEnabled(r){if(r===this.enabled)return;this.enabled=r;const c=this.model.getNode().children,g=D.Iterable.map(c,h),f=D.Iterable.map(g,r?b:w);this._setChildren(null,f,{diffIdentityProvider:this.identityProvider,diffDepth:1/0})}_setChildren(r,c,g){const f=new Set,_=m=>{for(const S of m.element.elements)f.add(S),this.nodes.set(S,m.element)},p=m=>{for(const S of m.element.elements)f.has(S)||this.nodes.delete(S)};this.model.setChildren(r,c,Object.assign(Object.assign({},g),{onDidCreateNode:_,onDidDeleteNode:p}))}has(r){return this.nodes.has(r)}getListIndex(r){const c=this.getCompressedNode(r);return this.model.getListIndex(c)}getListRenderCount(r){const c=this.getCompressedNode(r);return this.model.getListRenderCount(c)}getNode(r){if(typeof r>"u")return this.model.getNode();const c=this.getCompressedNode(r);return this.model.getNode(c)}getNodeLocation(r){const c=this.model.getNodeLocation(r);return c===null?null:c.elements[c.elements.length-1]}getParentNodeLocation(r){const c=this.getCompressedNode(r),g=this.model.getParentNodeLocation(c);return g===null?null:g.elements[g.elements.length-1]}getFirstElementChild(r){const c=this.getCompressedNode(r);return this.model.getFirstElementChild(c)}isCollapsible(r){const c=this.getCompressedNode(r);return this.model.isCollapsible(c)}setCollapsible(r,c){const g=this.getCompressedNode(r);return this.model.setCollapsible(g,c)}isCollapsed(r){const c=this.getCompressedNode(r);return this.model.isCollapsed(c)}setCollapsed(r,c,g){const f=this.getCompressedNode(r);return this.model.setCollapsed(f,c,g)}expandTo(r){const c=this.getCompressedNode(r);this.model.expandTo(c)}rerender(r){const c=this.getCompressedNode(r);this.model.rerender(c)}refilter(){this.model.refilter()}getCompressedNode(r){if(r===null)return null;const c=this.nodes.get(r);if(!c)throw new v.TreeError(this.user,`Tree element not found: ${r}`);return c}}e.CompressedObjectTreeModel=i;const t=a=>a[a.length-1];e.DefaultElementMapper=t;class o{constructor(r,c){this.unwrapper=r,this.node=c}get element(){return this.node.element===null?null:this.unwrapper(this.node.element)}get children(){return this.node.children.map(r=>new o(this.unwrapper,r))}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}}function s(a,r){return{splice(c,g,f){r.splice(c,g,f.map(_=>a.map(_)))},updateElementHeight(c,g){r.updateElementHeight(c,g)}}}function d(a,r){return Object.assign(Object.assign({},r),{identityProvider:r.identityProvider&&{getId(c){return r.identityProvider.getId(a(c))}},sorter:r.sorter&&{compare(c,g){return r.sorter.compare(c.elements[0],g.elements[0])}},filter:r.filter&&{filter(c,g){return r.filter.filter(a(c),g)}}})}class l{constructor(r,c,g={}){this.rootRef=null,this.elementMapper=g.elementMapper||e.DefaultElementMapper;const f=_=>this.elementMapper(_.elements);this.nodeMapper=new v.WeakMapper(_=>new o(f,_)),this.model=new i(r,s(this.nodeMapper,c),d(f,g))}get onDidSplice(){return k.Event.map(this.model.onDidSplice,({insertedNodes:r,deletedNodes:c})=>({insertedNodes:r.map(g=>this.nodeMapper.map(g)),deletedNodes:c.map(g=>this.nodeMapper.map(g))}))}get onDidChangeCollapseState(){return k.Event.map(this.model.onDidChangeCollapseState,({node:r,deep:c})=>({node:this.nodeMapper.map(r),deep:c}))}get onDidChangeRenderNodeCount(){return k.Event.map(this.model.onDidChangeRenderNodeCount,r=>this.nodeMapper.map(r))}setChildren(r,c=D.Iterable.empty(),g={}){this.model.setChildren(r,c,g)}setCompressionEnabled(r){this.model.setCompressionEnabled(r)}has(r){return this.model.has(r)}getListIndex(r){return this.model.getListIndex(r)}getListRenderCount(r){return this.model.getListRenderCount(r)}getNode(r){return this.nodeMapper.map(this.model.getNode(r))}getNodeLocation(r){return r.element}getParentNodeLocation(r){return this.model.getParentNodeLocation(r)}getFirstElementChild(r){const c=this.model.getFirstElementChild(r);return c===null||typeof c>"u"?c:this.elementMapper(c.elements)}isCollapsible(r){return this.model.isCollapsible(r)}setCollapsible(r,c){return this.model.setCollapsible(r,c)}isCollapsed(r){return this.model.isCollapsed(r)}setCollapsed(r,c,g){return this.model.setCollapsed(r,c,g)}expandTo(r){return this.model.expandTo(r)}rerender(r){return this.model.rerender(r)}refilter(){return this.model.refilter()}getCompressedTreeNode(r=null){return this.model.getNode(r)}}e.CompressibleObjectTreeModel=l}),define(oe[480],se([1,0,10]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.compareByPrefix=e.compareAnything=e.compareFileNames=void 0;const v=new y.IdleValue(()=>{const h=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:h,collatorIsNumeric:h.resolvedOptions().numeric}}),k=new y.IdleValue(()=>({collator:new Intl.Collator(void 0,{numeric:!0})})),D=new y.IdleValue(()=>({collator:new Intl.Collator(void 0,{numeric:!0,sensitivity:"accent"})}));function w(h,u,n=!1){const i=h||"",t=u||"",o=v.value.collator.compare(i,t);return v.value.collatorIsNumeric&&o===0&&i!==t?i<t?-1:1:o}e.compareFileNames=w;function b(h,u,n){const i=h.toLowerCase(),t=u.toLowerCase(),o=C(h,u,n);if(o)return o;const s=i.endsWith(n),d=t.endsWith(n);if(s!==d)return s?-1:1;const l=w(i,t);return l!==0?l:i.localeCompare(t)}e.compareAnything=b;function C(h,u,n){const i=h.toLowerCase(),t=u.toLowerCase(),o=i.startsWith(n),s=t.startsWith(n);if(o!==s)return o?-1:1;if(o&&s){if(i.length<t.length)return-1;if(i.length>t.length)return 1}return 0}e.compareByPrefix=C}),define(oe[253],se([1,0,10,191,51,90,17,8]),function(q,e,y,v,k,D,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isRelativePattern=e.parse=e.match=e.splitGlobAware=e.GLOB_SPLIT=e.GLOBSTAR=void 0,e.GLOBSTAR="**",e.GLOB_SPLIT="/";const C="[/\\\\]",h="[^/\\\\]",u=/\//g;function n(A,B){switch(A){case 0:return"";case 1:return`${h}*?`;default:return`(?:${C}|${h}+${C}${B?`|${C}${h}+`:""})*?`}}function i(A,B){if(!A)return[];const K=[];let T=!1,ee=!1,J="";for(const $ of A){switch($){case B:if(!T&&!ee){K.push(J),J="";continue}break;case"{":T=!0;break;case"}":T=!1;break;case"[":ee=!0;break;case"]":ee=!1;break}J+=$}return J&&K.push(J),K}e.splitGlobAware=i;function t(A){if(!A)return"";let B="";const K=i(A,e.GLOB_SPLIT);if(K.every(T=>T===e.GLOBSTAR))B=".*";else{let T=!1;K.forEach((ee,J)=>{if(ee===e.GLOBSTAR){if(T)return;B+=n(2,J===K.length-1)}else{let $=!1,j="",G=!1,te="";for(const Z of ee){if(Z!=="}"&&$){j+=Z;continue}if(G&&(Z!=="]"||!te)){let X;Z==="-"?X=Z:(Z==="^"||Z==="!")&&!te?X="^":Z===e.GLOB_SPLIT?X="":X=(0,b.escapeRegExpCharacters)(Z),te+=X;continue}switch(Z){case"{":$=!0;continue;case"[":G=!0;continue;case"}":{B+=`(?:${i(j,",").map(X=>t(X)).join("|")})`,$=!1,j="";break}case"]":{B+="["+te+"]",G=!1,te="";break}case"?":B+=h;continue;case"*":B+=n(1);continue;default:B+=(0,b.escapeRegExpCharacters)(Z)}}J<K.length-1&&(K[J+1]!==e.GLOBSTAR||J+2<K.length)&&(B+=C)}T=ee===e.GLOBSTAR})}return B}const o=/^\*\*\/\*\.[\w\.-]+$/,s=/^\*\*\/([\w\.-]+)\/?$/,d=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,l=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,a=/^\*\*((\/[\w\.-]+)+)\/?$/,r=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,c=new k.LRUCache(1e4),g=function(){return!1},f=function(){return null};function _(A,B){if(!A)return f;let K;typeof A!="string"?K=A.pattern:K=A,K=K.trim();const T=`${K}_${!!B.trimForExclusions}`;let ee=c.get(T);if(ee)return p(ee,A);let J;return o.test(K)?ee=S(K.substr(4),K):(J=s.exec(m(K,B)))?ee=E(J[1],K):(B.trimForExclusions?l:d).test(K)?ee=L(K,B):(J=a.exec(m(K,B)))?ee=N(J[1].substr(1),K,!0):(J=r.exec(m(K,B)))?ee=N(J[1],K,!1):ee=I(K),c.set(T,ee),p(ee,A)}function p(A,B){if(typeof B=="string")return A;const K=function(T,ee){return(0,v.isEqualOrParent)(T,B.base,!w.isLinux)?A(T.substr(B.base.length+1),ee):null};return K.allBasenames=A.allBasenames,K.allPaths=A.allPaths,K.basenames=A.basenames,K.patterns=A.patterns,K}function m(A,B){return B.trimForExclusions&&A.endsWith("/**")?A.substr(0,A.length-2):A}function S(A,B){return function(K,T){return typeof K=="string"&&K.endsWith(A)?B:null}}function E(A,B){const K=`/${A}`,T=`\\${A}`,ee=function($,j){return typeof $!="string"?null:j?j===A?B:null:$===A||$.endsWith(K)||$.endsWith(T)?B:null},J=[A];return ee.basenames=J,ee.patterns=[B],ee.allBasenames=J,ee}function L(A,B){const K=P(A.slice(1,-1).split(",").map(j=>_(j,B)).filter(j=>j!==f),A),T=K.length;if(!T)return f;if(T===1)return K[0];const ee=function(j,G){for(let te=0,Z=K.length;te<Z;te++)if(K[te](j,G))return A;return null},J=K.find(j=>!!j.allBasenames);J&&(ee.allBasenames=J.allBasenames);const $=K.reduce((j,G)=>G.allPaths?j.concat(G.allPaths):j,[]);return $.length&&(ee.allPaths=$),ee}function N(A,B,K){const T=D.sep===D.posix.sep,ee=T?A:A.replace(u,D.sep),J=D.sep+ee,$=D.posix.sep+A;let j;return K?j=function(G,te){return typeof G=="string"&&(G===ee||G.endsWith(J)||!T&&(G===A||G.endsWith($)))?B:null}:j=function(G,te){return typeof G=="string"&&(G===ee||!T&&G===A)?B:null},j.allPaths=[(K?"*/":"./")+A],j}function I(A){try{const B=new RegExp(`^${t(A)}$`);return function(K){return B.lastIndex=0,typeof K=="string"&&B.test(K)?A:null}}catch{return f}}function R(A,B,K){return!A||typeof B!="string"?!1:F(A)(B,void 0,K)}e.match=R;function F(A,B={}){if(!A)return g;if(typeof A=="string"||O(A)){const K=_(A,B);if(K===f)return g;const T=function(ee,J){return!!K(ee,J)};return K.allBasenames&&(T.allBasenames=K.allBasenames),K.allPaths&&(T.allPaths=K.allPaths),T}return x(A,B)}e.parse=F;function O(A){const B=A;return B?typeof B.base=="string"&&typeof B.pattern=="string":!1}e.isRelativePattern=O;function x(A,B){const K=P(Object.getOwnPropertyNames(A).map(j=>M(j,A[j],B)).filter(j=>j!==f)),T=K.length;if(!T)return f;if(!K.some(j=>!!j.requiresSiblings)){if(T===1)return K[0];const j=function(Z,X){let ie;for(let H=0,ae=K.length;H<ae;H++){const Y=K[H](Z,X);if(typeof Y=="string")return Y;(0,y.isThenable)(Y)&&(ie||(ie=[]),ie.push(Y))}return ie?(()=>be(this,void 0,void 0,function*(){for(const H of ie){const ae=yield H;if(typeof ae=="string")return ae}return null}))():null},G=K.find(Z=>!!Z.allBasenames);G&&(j.allBasenames=G.allBasenames);const te=K.reduce((Z,X)=>X.allPaths?Z.concat(X.allPaths):Z,[]);return te.length&&(j.allPaths=te),j}const ee=function(j,G,te){let Z,X;for(let ie=0,H=K.length;ie<H;ie++){const ae=K[ie];ae.requiresSiblings&&te&&(G||(G=(0,D.basename)(j)),Z||(Z=G.substr(0,G.length-(0,D.extname)(j).length)));const Y=ae(j,G,Z,te);if(typeof Y=="string")return Y;(0,y.isThenable)(Y)&&(X||(X=[]),X.push(Y))}return X?(()=>be(this,void 0,void 0,function*(){for(const ie of X){const H=yield ie;if(typeof H=="string")return H}return null}))():null},J=K.find(j=>!!j.allBasenames);J&&(ee.allBasenames=J.allBasenames);const $=K.reduce((j,G)=>G.allPaths?j.concat(G.allPaths):j,[]);return $.length&&(ee.allPaths=$),ee}function M(A,B,K){if(B===!1)return f;const T=_(A,K);if(T===f)return f;if(typeof B=="boolean")return T;if(B){const ee=B.when;if(typeof ee=="string"){const J=($,j,G,te)=>{if(!te||!T($,j))return null;const Z=ee.replace("$(basename)",G),X=te(Z);return(0,y.isThenable)(X)?X.then(ie=>ie?A:null):X?A:null};return J.requiresSiblings=!0,J}}return T}function P(A,B){const K=A.filter(j=>!!j.basenames);if(K.length<2)return A;const T=K.reduce((j,G)=>{const te=G.basenames;return te?j.concat(te):j},[]);let ee;if(B){ee=[];for(let j=0,G=T.length;j<G;j++)ee.push(B)}else ee=K.reduce((j,G)=>{const te=G.patterns;return te?j.concat(te):j},[]);const J=function(j,G){if(typeof j!="string")return null;if(!G){let Z;for(Z=j.length;Z>0;Z--){const X=j.charCodeAt(Z-1);if(X===47||X===92)break}G=j.substr(Z)}const te=T.indexOf(G);return te!==-1?ee[te]:null};J.basenames=T,J.patterns=ee,J.allBasenames=T;const $=A.filter(j=>!j.basenames);return $.push(J),$}}),define(oe[161],se([1,0,6,2]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SmoothScrollingOperation=e.SmoothScrollingUpdate=e.Scrollable=e.ScrollState=void 0;class k{constructor(t,o,s,d,l,a,r){this._forceIntegerValues=t,this._scrollStateBrand=void 0,this._forceIntegerValues&&(o=o|0,s=s|0,d=d|0,l=l|0,a=a|0,r=r|0),this.rawScrollLeft=d,this.rawScrollTop=r,o<0&&(o=0),d+o>s&&(d=s-o),d<0&&(d=0),l<0&&(l=0),r+l>a&&(r=a-l),r<0&&(r=0),this.width=o,this.scrollWidth=s,this.scrollLeft=d,this.height=l,this.scrollHeight=a,this.scrollTop=r}equals(t){return this.rawScrollLeft===t.rawScrollLeft&&this.rawScrollTop===t.rawScrollTop&&this.width===t.width&&this.scrollWidth===t.scrollWidth&&this.scrollLeft===t.scrollLeft&&this.height===t.height&&this.scrollHeight===t.scrollHeight&&this.scrollTop===t.scrollTop}withScrollDimensions(t,o){return new k(this._forceIntegerValues,typeof t.width<"u"?t.width:this.width,typeof t.scrollWidth<"u"?t.scrollWidth:this.scrollWidth,o?this.rawScrollLeft:this.scrollLeft,typeof t.height<"u"?t.height:this.height,typeof t.scrollHeight<"u"?t.scrollHeight:this.scrollHeight,o?this.rawScrollTop:this.scrollTop)}withScrollPosition(t){return new k(this._forceIntegerValues,this.width,this.scrollWidth,typeof t.scrollLeft<"u"?t.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,typeof t.scrollTop<"u"?t.scrollTop:this.rawScrollTop)}createScrollEvent(t,o){const s=this.width!==t.width,d=this.scrollWidth!==t.scrollWidth,l=this.scrollLeft!==t.scrollLeft,a=this.height!==t.height,r=this.scrollHeight!==t.scrollHeight,c=this.scrollTop!==t.scrollTop;return{inSmoothScrolling:o,oldWidth:t.width,oldScrollWidth:t.scrollWidth,oldScrollLeft:t.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:t.height,oldScrollHeight:t.scrollHeight,oldScrollTop:t.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:s,scrollWidthChanged:d,scrollLeftChanged:l,heightChanged:a,scrollHeightChanged:r,scrollTopChanged:c}}}e.ScrollState=k;class D extends v.Disposable{constructor(t){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new y.Emitter),this.onScroll=this._onScroll.event,this._smoothScrollDuration=t.smoothScrollDuration,this._scheduleAtNextAnimationFrame=t.scheduleAtNextAnimationFrame,this._state=new k(t.forceIntegerValues,0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(t){this._smoothScrollDuration=t}validateScrollPosition(t){return this._state.withScrollPosition(t)}getScrollDimensions(){return this._state}setScrollDimensions(t,o){var s;const d=this._state.withScrollDimensions(t,o);this._setState(d,!!this._smoothScrolling),(s=this._smoothScrolling)===null||s===void 0||s.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(t){const o=this._state.withScrollPosition(t);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(o,!1)}setScrollPositionSmooth(t,o){if(this._smoothScrollDuration===0)return this.setScrollPositionNow(t);if(this._smoothScrolling){t={scrollLeft:typeof t.scrollLeft>"u"?this._smoothScrolling.to.scrollLeft:t.scrollLeft,scrollTop:typeof t.scrollTop>"u"?this._smoothScrolling.to.scrollTop:t.scrollTop};const s=this._state.withScrollPosition(t);if(this._smoothScrolling.to.scrollLeft===s.scrollLeft&&this._smoothScrolling.to.scrollTop===s.scrollTop)return;let d;o?d=new h(this._smoothScrolling.from,s,this._smoothScrolling.startTime,this._smoothScrolling.duration):d=this._smoothScrolling.combine(this._state,s,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=d}else{const s=this._state.withScrollPosition(t);this._smoothScrolling=h.start(this._state,s,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{!this._smoothScrolling||(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}_performSmoothScrolling(){if(!this._smoothScrolling)return;const t=this._smoothScrolling.tick(),o=this._state.withScrollPosition(t);if(this._setState(o,!0),!!this._smoothScrolling){if(t.isDone){this._smoothScrolling.dispose(),this._smoothScrolling=null;return}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{!this._smoothScrolling||(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}}_setState(t,o){const s=this._state;s.equals(t)||(this._state=t,this._onScroll.fire(this._state.createScrollEvent(s,o)))}}e.Scrollable=D;class w{constructor(t,o,s){this.scrollLeft=t,this.scrollTop=o,this.isDone=s}}e.SmoothScrollingUpdate=w;function b(i,t){const o=t-i;return function(s){return i+o*n(s)}}function C(i,t,o){return function(s){return s<o?i(s/o):t((s-o)/(1-o))}}class h{constructor(t,o,s,d){this.from=t,this.to=o,this.duration=d,this.startTime=s,this.animationFrameDisposable=null,this._initAnimations()}_initAnimations(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)}_initAnimation(t,o,s){if(Math.abs(t-o)>2.5*s){let d,l;return t<o?(d=t+.75*s,l=o-.75*s):(d=t-.75*s,l=o+.75*s),C(b(t,d),b(l,o),.33)}return b(t,o)}dispose(){this.animationFrameDisposable!==null&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null)}acceptScrollDimensions(t){this.to=t.withScrollPosition(this.to),this._initAnimations()}tick(){return this._tick(Date.now())}_tick(t){const o=(t-this.startTime)/this.duration;if(o<1){const s=this.scrollLeft(o),d=this.scrollTop(o);return new w(s,d,!1)}return new w(this.to.scrollLeft,this.to.scrollTop,!0)}combine(t,o,s){return h.start(t,o,s)}static start(t,o,s){s=s+10;const d=Date.now()-10;return new h(t,o,d,s)}}e.SmoothScrollingOperation=h;function u(i){return Math.pow(i,3)}function n(i){return 1-u(1-i)}}),define(oe[22],se([1,0,90,17]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.uriToFsPath=e.URI=void 0;const k=/^\w[\w\d+.-]*$/,D=/^\//,w=/^\/\//;function b(p,m){if(!p.scheme&&m)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${p.authority}", path: "${p.path}", query: "${p.query}", fragment: "${p.fragment}"}`);if(p.scheme&&!k.test(p.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(p.path){if(p.authority){if(!D.test(p.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(w.test(p.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(p,m){return!p&&!m?"file":p}function h(p,m){switch(p){case"https":case"http":case"file":m?m[0]!==n&&(m=n+m):m=n;break}return m}const u="",n="/",i=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class t{constructor(m,S,E,L,N,I=!1){typeof m=="object"?(this.scheme=m.scheme||u,this.authority=m.authority||u,this.path=m.path||u,this.query=m.query||u,this.fragment=m.fragment||u):(this.scheme=C(m,I),this.authority=S||u,this.path=h(this.scheme,E||u),this.query=L||u,this.fragment=N||u,b(this,I))}static isUri(m){return m instanceof t?!0:m?typeof m.authority=="string"&&typeof m.fragment=="string"&&typeof m.path=="string"&&typeof m.query=="string"&&typeof m.scheme=="string"&&typeof m.fsPath=="string"&&typeof m.with=="function"&&typeof m.toString=="function":!1}get fsPath(){return r(this,!1)}with(m){if(!m)return this;let{scheme:S,authority:E,path:L,query:N,fragment:I}=m;return S===void 0?S=this.scheme:S===null&&(S=u),E===void 0?E=this.authority:E===null&&(E=u),L===void 0?L=this.path:L===null&&(L=u),N===void 0?N=this.query:N===null&&(N=u),I===void 0?I=this.fragment:I===null&&(I=u),S===this.scheme&&E===this.authority&&L===this.path&&N===this.query&&I===this.fragment?this:new s(S,E,L,N,I)}static parse(m,S=!1){const E=i.exec(m);return E?new s(E[2]||u,_(E[4]||u),_(E[5]||u),_(E[7]||u),_(E[9]||u),S):new s(u,u,u,u,u)}static file(m){let S=u;if(v.isWindows&&(m=m.replace(/\\/g,n)),m[0]===n&&m[1]===n){const E=m.indexOf(n,2);E===-1?(S=m.substring(2),m=n):(S=m.substring(2,E),m=m.substring(E)||n)}return new s("file",S,m,u,u)}static from(m){const S=new s(m.scheme,m.authority,m.path,m.query,m.fragment);return b(S,!0),S}static joinPath(m,...S){if(!m.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let E;return v.isWindows&&m.scheme==="file"?E=t.file(y.win32.join(r(m,!0),...S)).path:E=y.posix.join(m.path,...S),m.with({path:E})}toString(m=!1){return c(this,m)}toJSON(){return this}static revive(m){if(m){if(m instanceof t)return m;{const S=new s(m);return S._formatted=m.external,S._fsPath=m._sep===o?m.fsPath:null,S}}else return m}}e.URI=t;const o=v.isWindows?1:void 0;class s extends t{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=r(this,!1)),this._fsPath}toString(m=!1){return m?c(this,!0):(this._formatted||(this._formatted=c(this,!1)),this._formatted)}toJSON(){const m={$mid:1};return this._fsPath&&(m.fsPath=this._fsPath,m._sep=o),this._formatted&&(m.external=this._formatted),this.path&&(m.path=this.path),this.scheme&&(m.scheme=this.scheme),this.authority&&(m.authority=this.authority),this.query&&(m.query=this.query),this.fragment&&(m.fragment=this.fragment),m}}const d={[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 l(p,m){let S,E=-1;for(let L=0;L<p.length;L++){const N=p.charCodeAt(L);if(N>=97&&N<=122||N>=65&&N<=90||N>=48&&N<=57||N===45||N===46||N===95||N===126||m&&N===47)E!==-1&&(S+=encodeURIComponent(p.substring(E,L)),E=-1),S!==void 0&&(S+=p.charAt(L));else{S===void 0&&(S=p.substr(0,L));const I=d[N];I!==void 0?(E!==-1&&(S+=encodeURIComponent(p.substring(E,L)),E=-1),S+=I):E===-1&&(E=L)}}return E!==-1&&(S+=encodeURIComponent(p.substring(E))),S!==void 0?S:p}function a(p){let m;for(let S=0;S<p.length;S++){const E=p.charCodeAt(S);E===35||E===63?(m===void 0&&(m=p.substr(0,S)),m+=d[E]):m!==void 0&&(m+=p[S])}return m!==void 0?m:p}function r(p,m){let S;return p.authority&&p.path.length>1&&p.scheme==="file"?S=`//${p.authority}${p.path}`:p.path.charCodeAt(0)===47&&(p.path.charCodeAt(1)>=65&&p.path.charCodeAt(1)<=90||p.path.charCodeAt(1)>=97&&p.path.charCodeAt(1)<=122)&&p.path.charCodeAt(2)===58?m?S=p.path.substr(1):S=p.path[1].toLowerCase()+p.path.substr(2):S=p.path,v.isWindows&&(S=S.replace(/\//g,"\\")),S}e.uriToFsPath=r;function c(p,m){const S=m?a:l;let E="",{scheme:L,authority:N,path:I,query:R,fragment:F}=p;if(L&&(E+=L,E+=":"),(N||L==="file")&&(E+=n,E+=n),N){let O=N.indexOf("@");if(O!==-1){const x=N.substr(0,O);N=N.substr(O+1),O=x.indexOf(":"),O===-1?E+=S(x,!1):(E+=S(x.substr(0,O),!1),E+=":",E+=S(x.substr(O+1),!1)),E+="@"}N=N.toLowerCase(),O=N.indexOf(":"),O===-1?E+=S(N,!1):(E+=S(N.substr(0,O),!1),E+=N.substr(O))}if(I){if(I.length>=3&&I.charCodeAt(0)===47&&I.charCodeAt(2)===58){const O=I.charCodeAt(1);O>=65&&O<=90&&(I=`/${String.fromCharCode(O+32)}:${I.substr(3)}`)}else if(I.length>=2&&I.charCodeAt(1)===58){const O=I.charCodeAt(0);O>=65&&O<=90&&(I=`${String.fromCharCode(O+32)}:${I.substr(2)}`)}E+=S(I,!0)}return R&&(E+="?",E+=S(R,!1)),F&&(E+="#",E+=m?F:l(F,!1)),E}function g(p){try{return decodeURIComponent(p)}catch{return p.length>3?p.substr(0,3)+g(p.substr(3)):p}}const f=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function _(p){return p.match(f)?p.replace(f,m=>g(m)):p}}),define(oe[195],se([1,0,122,22]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.revive=e.parse=void 0;function k(w){let b=JSON.parse(w);return b=D(b),b}e.parse=k;function D(w,b=0){if(!w||b>200)return w;if(typeof w=="object"){switch(w.$mid){case 1:return v.URI.revive(w);case 2:return new RegExp(w.source,w.flags);case 14:return new Date(w.source)}if(w instanceof y.VSBuffer||w instanceof Uint8Array)return w;if(Array.isArray(w))for(let C=0;C<w.length;++C)w[C]=D(w[C],b+1);else for(const C in w)Object.hasOwnProperty.call(w,C)&&(w[C]=D(w[C],b+1))}return w}e.revive=D}),define(oe[52],se([1,0,17,22]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FileAccess=e.RemoteAuthorities=e.connectionTokenQueryName=e.Schemas=void 0;var k;(function(b){b.inMemory="inmemory",b.vscode="vscode",b.internal="private",b.walkThrough="walkThrough",b.walkThroughSnippet="walkThroughSnippet",b.http="http",b.https="https",b.file="file",b.mailto="mailto",b.untitled="untitled",b.data="data",b.command="command",b.vscodeRemote="vscode-remote",b.vscodeRemoteResource="vscode-remote-resource",b.vscodeUserData="vscode-userdata",b.vscodeCustomEditor="vscode-custom-editor",b.vscodeNotebook="vscode-notebook",b.vscodeNotebookCell="vscode-notebook-cell",b.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",b.vscodeNotebookCellOutput="vscode-notebook-cell-output",b.vscodeInteractive="vscode-interactive",b.vscodeInteractiveInput="vscode-interactive-input",b.vscodeSettings="vscode-settings",b.vscodeWorkspaceTrust="vscode-workspace-trust",b.vscodeTerminal="vscode-terminal",b.webviewPanel="webview-panel",b.vscodeWebview="vscode-webview",b.extension="extension",b.vscodeFileResource="vscode-file",b.tmp="tmp",b.vsls="vsls",b.vscodeSourceControl="vscode-scm"})(k=e.Schemas||(e.Schemas={})),e.connectionTokenQueryName="tkn";class D{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._remoteResourcesPath=`/${k.vscodeRemoteResource}`}setPreferredWebSchema(C){this._preferredWebSchema=C}rewrite(C){if(this._delegate)return this._delegate(C);const h=C.authority;let u=this._hosts[h];u&&u.indexOf(":")!==-1&&(u=`[${u}]`);const n=this._ports[h],i=this._connectionTokens[h];let t=`path=${encodeURIComponent(C.path)}`;return typeof i=="string"&&(t+=`&${e.connectionTokenQueryName}=${encodeURIComponent(i)}`),v.URI.from({scheme:y.isWeb?this._preferredWebSchema:k.vscodeRemoteResource,authority:`${u}:${n}`,path:this._remoteResourcesPath,query:t})}}e.RemoteAuthorities=new D;class w{asBrowserUri(C,h){const u=this.toUri(C,h);return u.scheme===k.vscodeRemote?e.RemoteAuthorities.rewrite(u):u.scheme===k.file&&(y.isNative||y.isWebWorker&&y.globals.origin===`${k.vscodeFileResource}://${w.FALLBACK_AUTHORITY}`)?u.with({scheme:k.vscodeFileResource,authority:u.authority||w.FALLBACK_AUTHORITY,query:null,fragment:null}):u}toUri(C,h){return v.URI.isUri(C)?C:v.URI.parse(h.toUrl(C))}}w.FALLBACK_AUTHORITY="vscode-app",e.FileAccess=new w}),define(oe[7],se([1,0,41,192,48,67,14,6,481,2,52,17]),function(q,e,y,v,k,D,w,b,C,h,u,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.h=e.DragAndDropObserver=e.ModifierKeyEmitter=e.hookDomPurifyHrefAndSrcSanitizer=e.asCSSPropertyValue=e.asCSSUrl=e.animate=e.windowOpenNoOpener=e.computeScreenAwareSize=e.getElementsByTagName=e.hide=e.show=e.$=e.Namespace=e.reset=e.prepend=e.append=e.trackFocus=e.restoreParentsScrollTop=e.saveParentsScrollTop=e.EventHelper=e.EventType=e.isHTMLElement=e.removeCSSRulesContainingSelector=e.createCSSRule=e.createStyleSheet=e.getActiveElement=e.getShadowRoot=e.isInShadowDOM=e.isShadowRoot=e.hasParentWithClass=e.findParentWithClass=e.isAncestor=e.getTotalHeight=e.getContentHeight=e.getContentWidth=e.getTotalWidth=e.StandardWindow=e.getDomNodeZoomLevel=e.getDomNodePagePosition=e.size=e.getTopLeftOffset=e.Dimension=e.getClientArea=e.getComputedStyle=e.scheduleAtNextAnimationFrame=e.runAtThisOrScheduleAtNextAnimationFrame=e.createEventEmitter=e.addDisposableGenericMouseUpListener=e.addDisposableGenericMouseDownListener=e.addStandardDisposableGenericMouseUpListener=e.addStandardDisposableGenericMouseDownListener=e.addStandardDisposableListener=e.addDisposableListener=e.isInDOM=e.clearNode=void 0;function i(Ce){for(;Ce.firstChild;)Ce.firstChild.remove()}e.clearNode=i;function t(Ce){var ve;return(ve=Ce?.isConnected)!==null&&ve!==void 0?ve:!1}e.isInDOM=t;class o{constructor(ve,De,Be,Re){this._node=ve,this._type=De,this._handler=Be,this._options=Re||!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 s(Ce,ve,De,Be){return new o(Ce,ve,De,Be)}e.addDisposableListener=s;function d(Ce){return function(ve){return Ce(new D.StandardMouseEvent(ve))}}function l(Ce){return function(ve){return Ce(new k.StandardKeyboardEvent(ve))}}const a=function(Ce,ve,De,Be){let Re=De;return ve==="click"||ve==="mousedown"?Re=d(De):(ve==="keydown"||ve==="keypress"||ve==="keyup")&&(Re=l(De)),s(Ce,ve,Re,Be)};e.addStandardDisposableListener=a;const r=function(Ce,ve,De){const Be=d(ve);return g(Ce,Be,De)};e.addStandardDisposableGenericMouseDownListener=r;const c=function(Ce,ve,De){const Be=d(ve);return f(Ce,Be,De)};e.addStandardDisposableGenericMouseUpListener=c;function g(Ce,ve,De){return s(Ce,n.isIOS&&v.BrowserFeatures.pointerEvents?e.EventType.POINTER_DOWN:e.EventType.MOUSE_DOWN,ve,De)}e.addDisposableGenericMouseDownListener=g;function f(Ce,ve,De){return s(Ce,n.isIOS&&v.BrowserFeatures.pointerEvents?e.EventType.POINTER_UP:e.EventType.MOUSE_UP,ve,De)}e.addDisposableGenericMouseUpListener=f;function _(Ce,ve,De){let Be=null;const Re=rt=>Je.fire(rt),Ve=()=>{Be||(Be=new o(Ce,ve,Re,De))},Ue=()=>{Be&&(Be.dispose(),Be=null)},Je=new b.Emitter({onFirstListenerAdd:Ve,onLastListenerRemove:Ue});return Je}e.createEventEmitter=_;let p=null;function m(Ce){if(!p){const ve=De=>setTimeout(()=>De(new Date().getTime()),0);p=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||ve}return p.call(self,Ce)}class S{constructor(ve,De=0){this._runner=ve,this.priority=De,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(ve){(0,w.onUnexpectedError)(ve)}}static sort(ve,De){return De.priority-ve.priority}}(function(){let Ce=[],ve=null,De=!1,Be=!1;const Re=()=>{for(De=!1,ve=Ce,Ce=[],Be=!0;ve.length>0;)ve.sort(S.sort),ve.shift().execute();Be=!1};e.scheduleAtNextAnimationFrame=(Ve,Ue=0)=>{const Je=new S(Ve,Ue);return Ce.push(Je),De||(De=!0,m(Re)),Je},e.runAtThisOrScheduleAtNextAnimationFrame=(Ve,Ue)=>{if(Be){const Je=new S(Ve,Ue);return ve.push(Je),Je}else return(0,e.scheduleAtNextAnimationFrame)(Ve,Ue)}})();function E(Ce){return document.defaultView.getComputedStyle(Ce,null)}e.getComputedStyle=E;function L(Ce){if(Ce!==document.body)return new I(Ce.clientWidth,Ce.clientHeight);if(n.isIOS&&window.visualViewport)return new I(window.visualViewport.width,window.visualViewport.height);if(window.innerWidth&&window.innerHeight)return new I(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new I(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new I(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}e.getClientArea=L;class N{static convertToPixels(ve,De){return parseFloat(De)||0}static getDimension(ve,De,Be){const Re=E(ve);let Ve="0";return Re&&(Re.getPropertyValue?Ve=Re.getPropertyValue(De):Ve=Re.getAttribute(Be)),N.convertToPixels(ve,Ve)}static getBorderLeftWidth(ve){return N.getDimension(ve,"border-left-width","borderLeftWidth")}static getBorderRightWidth(ve){return N.getDimension(ve,"border-right-width","borderRightWidth")}static getBorderTopWidth(ve){return N.getDimension(ve,"border-top-width","borderTopWidth")}static getBorderBottomWidth(ve){return N.getDimension(ve,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(ve){return N.getDimension(ve,"padding-left","paddingLeft")}static getPaddingRight(ve){return N.getDimension(ve,"padding-right","paddingRight")}static getPaddingTop(ve){return N.getDimension(ve,"padding-top","paddingTop")}static getPaddingBottom(ve){return N.getDimension(ve,"padding-bottom","paddingBottom")}static getMarginLeft(ve){return N.getDimension(ve,"margin-left","marginLeft")}static getMarginTop(ve){return N.getDimension(ve,"margin-top","marginTop")}static getMarginRight(ve){return N.getDimension(ve,"margin-right","marginRight")}static getMarginBottom(ve){return N.getDimension(ve,"margin-bottom","marginBottom")}}class I{constructor(ve,De){this.width=ve,this.height=De}with(ve=this.width,De=this.height){return ve!==this.width||De!==this.height?new I(ve,De):this}static is(ve){return typeof ve=="object"&&typeof ve.height=="number"&&typeof ve.width=="number"}static lift(ve){return ve instanceof I?ve:new I(ve.width,ve.height)}static equals(ve,De){return ve===De?!0:!ve||!De?!1:ve.width===De.width&&ve.height===De.height}}e.Dimension=I,I.None=new I(0,0);function R(Ce){let ve=Ce.offsetParent,De=Ce.offsetTop,Be=Ce.offsetLeft;for(;(Ce=Ce.parentNode)!==null&&Ce!==document.body&&Ce!==document.documentElement;){De-=Ce.scrollTop;const Re=J(Ce)?null:E(Ce);Re&&(Be-=Re.direction!=="rtl"?Ce.scrollLeft:-Ce.scrollLeft),Ce===ve&&(Be+=N.getBorderLeftWidth(Ce),De+=N.getBorderTopWidth(Ce),De+=Ce.offsetTop,Be+=Ce.offsetLeft,ve=Ce.offsetParent)}return{left:Be,top:De}}e.getTopLeftOffset=R;function F(Ce,ve,De){typeof ve=="number"&&(Ce.style.width=`${ve}px`),typeof De=="number"&&(Ce.style.height=`${De}px`)}e.size=F;function O(Ce){const ve=Ce.getBoundingClientRect();return{left:ve.left+e.StandardWindow.scrollX,top:ve.top+e.StandardWindow.scrollY,width:ve.width,height:ve.height}}e.getDomNodePagePosition=O;function x(Ce){let ve=Ce,De=1;do{const Be=E(ve).zoom;Be!=null&&Be!=="1"&&(De*=Be),ve=ve.parentElement}while(ve!==null&&ve!==document.documentElement);return De}e.getDomNodeZoomLevel=x,e.StandardWindow=new class{get scrollX(){return typeof window.scrollX=="number"?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft}get scrollY(){return typeof window.scrollY=="number"?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop}};function M(Ce){const ve=N.getMarginLeft(Ce)+N.getMarginRight(Ce);return Ce.offsetWidth+ve}e.getTotalWidth=M;function P(Ce){const ve=N.getBorderLeftWidth(Ce)+N.getBorderRightWidth(Ce),De=N.getPaddingLeft(Ce)+N.getPaddingRight(Ce);return Ce.offsetWidth-ve-De}e.getContentWidth=P;function A(Ce){const ve=N.getBorderTopWidth(Ce)+N.getBorderBottomWidth(Ce),De=N.getPaddingTop(Ce)+N.getPaddingBottom(Ce);return Ce.offsetHeight-ve-De}e.getContentHeight=A;function B(Ce){const ve=N.getMarginTop(Ce)+N.getMarginBottom(Ce);return Ce.offsetHeight+ve}e.getTotalHeight=B;function K(Ce,ve){for(;Ce;){if(Ce===ve)return!0;Ce=Ce.parentNode}return!1}e.isAncestor=K;function T(Ce,ve,De){for(;Ce&&Ce.nodeType===Ce.ELEMENT_NODE;){if(Ce.classList.contains(ve))return Ce;if(De){if(typeof De=="string"){if(Ce.classList.contains(De))return null}else if(Ce===De)return null}Ce=Ce.parentNode}return null}e.findParentWithClass=T;function ee(Ce,ve,De){return!!T(Ce,ve,De)}e.hasParentWithClass=ee;function J(Ce){return Ce&&!!Ce.host&&!!Ce.mode}e.isShadowRoot=J;function $(Ce){return!!j(Ce)}e.isInShadowDOM=$;function j(Ce){for(;Ce.parentNode;){if(Ce===document.body)return null;Ce=Ce.parentNode}return J(Ce)?Ce:null}e.getShadowRoot=j;function G(){let Ce=document.activeElement;for(;Ce?.shadowRoot;)Ce=Ce.shadowRoot.activeElement;return Ce}e.getActiveElement=G;function te(Ce=document.getElementsByTagName("head")[0]){const ve=document.createElement("style");return ve.type="text/css",ve.media="screen",Ce.appendChild(ve),ve}e.createStyleSheet=te;let Z=null;function X(){return Z||(Z=te()),Z}function ie(Ce){var ve,De;return!((ve=Ce?.sheet)===null||ve===void 0)&&ve.rules?Ce.sheet.rules:!((De=Ce?.sheet)===null||De===void 0)&&De.cssRules?Ce.sheet.cssRules:[]}function H(Ce,ve,De=X()){!De||!ve||De.sheet.insertRule(Ce+"{"+ve+"}",0)}e.createCSSRule=H;function ae(Ce,ve=X()){if(!ve)return;const De=ie(ve),Be=[];for(let Re=0;Re<De.length;Re++)De[Re].selectorText.indexOf(Ce)!==-1&&Be.push(Re);for(let Re=Be.length-1;Re>=0;Re--)ve.sheet.deleteRule(Be[Re])}e.removeCSSRulesContainingSelector=ae;function Y(Ce){return typeof HTMLElement=="object"?Ce instanceof HTMLElement:Ce&&typeof Ce=="object"&&Ce.nodeType===1&&typeof Ce.nodeName=="string"}e.isHTMLElement=Y,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",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:y.isWebKit?"webkitAnimationStart":"animationstart",ANIMATION_END:y.isWebKit?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:y.isWebKit?"webkitAnimationIteration":"animationiteration"},e.EventHelper={stop:function(Ce,ve){Ce.preventDefault?Ce.preventDefault():Ce.returnValue=!1,ve&&(Ce.stopPropagation?Ce.stopPropagation():Ce.cancelBubble=!0)}};function U(Ce){const ve=[];for(let De=0;Ce&&Ce.nodeType===Ce.ELEMENT_NODE;De++)ve[De]=Ce.scrollTop,Ce=Ce.parentNode;return ve}e.saveParentsScrollTop=U;function le(Ce,ve){for(let De=0;Ce&&Ce.nodeType===Ce.ELEMENT_NODE;De++)Ce.scrollTop!==ve[De]&&(Ce.scrollTop=ve[De]),Ce=Ce.parentNode}e.restoreParentsScrollTop=le;class z extends h.Disposable{constructor(ve){super(),this._onDidFocus=this._register(new b.Emitter),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new b.Emitter),this.onDidBlur=this._onDidBlur.event;let De=z.hasFocusWithin(ve),Be=!1;const Re=()=>{Be=!1,De||(De=!0,this._onDidFocus.fire())},Ve=()=>{De&&(Be=!0,window.setTimeout(()=>{Be&&(Be=!1,De=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{z.hasFocusWithin(ve)!==De&&(De?Ve():Re())},this._register(s(ve,e.EventType.FOCUS,Re,!0)),this._register(s(ve,e.EventType.BLUR,Ve,!0)),this._register(s(ve,e.EventType.FOCUS_IN,()=>this._refreshStateHandler())),this._register(s(ve,e.EventType.FOCUS_OUT,()=>this._refreshStateHandler()))}static hasFocusWithin(ve){const De=j(ve),Be=De?De.activeElement:document.activeElement;return K(Be,ve)}}function Q(Ce){return new z(Ce)}e.trackFocus=Q;function W(Ce,...ve){if(Ce.append(...ve),ve.length===1&&typeof ve[0]!="string")return ve[0]}e.append=W;function V(Ce,ve){return Ce.insertBefore(ve,Ce.firstChild),ve}e.prepend=V;function ne(Ce,...ve){Ce.innerText="",W(Ce,...ve)}e.reset=ne;const de=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;var ce;(function(Ce){Ce.HTML="http://www.w3.org/1999/xhtml",Ce.SVG="http://www.w3.org/2000/svg"})(ce=e.Namespace||(e.Namespace={}));function ue(Ce,ve,De,...Be){const Re=de.exec(ve);if(!Re)throw new Error("Bad use of emmet");De=Object.assign({},De||{});const Ve=Re[1]||"div";let Ue;return Ce!==ce.HTML?Ue=document.createElementNS(Ce,Ve):Ue=document.createElement(Ve),Re[3]&&(Ue.id=Re[3]),Re[4]&&(Ue.className=Re[4].replace(/\./g," ").trim()),Object.keys(De).forEach(Je=>{const rt=De[Je];typeof rt<"u"&&(/^on\w+$/.test(Je)?Ue[Je]=rt:Je==="selected"?rt&&Ue.setAttribute(Je,"true"):Ue.setAttribute(Je,rt))}),Ue.append(...Be),Ue}function me(Ce,ve,...De){return ue(ce.HTML,Ce,ve,...De)}e.$=me,me.SVG=function(Ce,ve,...De){return ue(ce.SVG,Ce,ve,...De)};function _e(...Ce){for(const ve of Ce)ve.style.display="",ve.removeAttribute("aria-hidden")}e.show=_e;function ye(...Ce){for(const ve of Ce)ve.style.display="none",ve.setAttribute("aria-hidden","true")}e.hide=ye;function ke(Ce){return Array.prototype.slice.call(document.getElementsByTagName(Ce),0)}e.getElementsByTagName=ke;function Te(Ce){const ve=window.devicePixelRatio*Ce;return Math.max(1,Math.floor(ve))/window.devicePixelRatio}e.computeScreenAwareSize=Te;function Me(Ce){window.open(Ce,"_blank","noopener")}e.windowOpenNoOpener=Me;function fe(Ce){const ve=()=>{Ce(),De=(0,e.scheduleAtNextAnimationFrame)(ve)};let De=(0,e.scheduleAtNextAnimationFrame)(ve);return(0,h.toDisposable)(()=>De.dispose())}e.animate=fe,u.RemoteAuthorities.setPreferredWebSchema(/^https:/.test(window.location.href)?"https":"http");function he(Ce){return Ce?`url('${u.FileAccess.asBrowserUri(Ce).toString(!0).replace(/'/g,"%27")}')`:"url('')"}e.asCSSUrl=he;function re(Ce){return`'${Ce.replace(/'/g,"%27")}'`}e.asCSSPropertyValue=re;function ge(Ce,ve=!1){const De=document.createElement("a");return C.addHook("afterSanitizeAttributes",Be=>{for(const Re of["href","src"])if(Be.hasAttribute(Re)){const Ve=Be.getAttribute(Re);if(Re==="href"&&Ve.startsWith("#"))continue;if(De.href=Ve,!Ce.includes(De.protocol.replace(/:$/,""))){if(ve&&Re==="src"&&De.href.startsWith("data:"))continue;Be.removeAttribute(Re)}}}),(0,h.toDisposable)(()=>{C.removeHook("afterSanitizeAttributes")})}e.hookDomPurifyHrefAndSrcSanitizer=ge;class Se extends b.Emitter{constructor(){super(),this._subscriptions=new h.DisposableStore,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(s(window,"keydown",ve=>{if(ve.defaultPrevented)return;const De=new k.StandardKeyboardEvent(ve);if(!(De.keyCode===6&&ve.repeat)){if(ve.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(ve.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(ve.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(ve.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else if(De.keyCode!==6)this._keyStatus.lastKeyPressed=void 0;else return;this._keyStatus.altKey=ve.altKey,this._keyStatus.ctrlKey=ve.ctrlKey,this._keyStatus.metaKey=ve.metaKey,this._keyStatus.shiftKey=ve.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=ve,this.fire(this._keyStatus))}},!0)),this._subscriptions.add(s(window,"keyup",ve=>{ve.defaultPrevented||(!ve.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!ve.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!ve.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!ve.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=ve.altKey,this._keyStatus.ctrlKey=ve.ctrlKey,this._keyStatus.metaKey=ve.metaKey,this._keyStatus.shiftKey=ve.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=ve,this.fire(this._keyStatus)))},!0)),this._subscriptions.add(s(document.body,"mousedown",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),this._subscriptions.add(s(document.body,"mouseup",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),this._subscriptions.add(s(document.body,"mousemove",ve=>{ve.buttons&&(this._keyStatus.lastKeyPressed=void 0)},!0)),this._subscriptions.add(s(window,"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 Se.instance||(Se.instance=new Se),Se.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}e.ModifierKeyEmitter=Se;class Le extends h.Disposable{constructor(ve,De){super(),this.element=ve,this.callbacks=De,this.counter=0,this.dragStartTime=0,this.registerListeners()}registerListeners(){this._register(s(this.element,e.EventType.DRAG_ENTER,ve=>{this.counter++,this.dragStartTime=ve.timeStamp,this.callbacks.onDragEnter(ve)})),this._register(s(this.element,e.EventType.DRAG_OVER,ve=>{var De,Be;ve.preventDefault(),(Be=(De=this.callbacks).onDragOver)===null||Be===void 0||Be.call(De,ve,ve.timeStamp-this.dragStartTime)})),this._register(s(this.element,e.EventType.DRAG_LEAVE,ve=>{this.counter--,this.counter===0&&(this.dragStartTime=0,this.callbacks.onDragLeave(ve))})),this._register(s(this.element,e.EventType.DRAG_END,ve=>{this.counter=0,this.dragStartTime=0,this.callbacks.onDragEnd(ve)})),this._register(s(this.element,e.EventType.DROP,ve=>{this.counter=0,this.dragStartTime=0,this.callbacks.onDrop(ve)}))}}e.DragAndDropObserver=Le;const Ne=/(?<tag>[\w\-]+)?(?:#(?<id>[\w\-]+))?(?<class>(?:\.(?:[\w\-]+))*)(?:@(?<name>(?:[\w\_])+))?/;function Ae(Ce,...ve){let De,Be;Array.isArray(ve[0])?(De={},Be=ve[0]):(De=ve[0]||{},Be=ve[1]);const Re=Ne.exec(Ce);if(!Re||!Re.groups)throw new Error("Bad use of h");const Ve=Re.groups.tag||"div",Ue=document.createElement(Ve);Re.groups.id&&(Ue.id=Re.groups.id),Re.groups.class&&(Ue.className=Re.groups.class.replace(/\./g," ").trim());const Je={};if(Re.groups.name&&(Je[Re.groups.name]=Ue),Be)for(const rt of Be)rt instanceof HTMLElement?Ue.appendChild(rt):typeof rt=="string"?Ue.append(rt):(Object.assign(Je,rt),Ue.appendChild(rt.root));for(const[rt,gt]of Object.entries(De))if(rt==="style")for(const[ft,xe]of Object.entries(gt))Ue.style.setProperty(Pe(ft),typeof xe=="number"?xe+"px":""+xe);else rt==="tabIndex"?Ue.tabIndex=gt:Ue.setAttribute(Pe(rt),gt.toString());return Je.root=Ue,Je}e.h=Ae;function Pe(Ce){return Ce.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}}),define(oe[196],se([1,0,7]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createElement=e.renderFormattedText=e.renderText=void 0;function v(n,i={}){const t=D(i);return t.textContent=n,t}e.renderText=v;function k(n,i={}){const t=D(i);return b(t,C(n,!!i.renderCodeSegments),i.actionHandler,i.renderCodeSegments),t}e.renderFormattedText=k;function D(n){const i=n.inline?"span":"div",t=document.createElement(i);return n.className&&(t.className=n.className),t}e.createElement=D;class w{constructor(i){this.source=i,this.index=0}eos(){return this.index>=this.source.length}next(){const i=this.peek();return this.advance(),i}peek(){return this.source[this.index]}advance(){this.index++}}function b(n,i,t,o){let s;if(i.type===2)s=document.createTextNode(i.content||"");else if(i.type===3)s=document.createElement("b");else if(i.type===4)s=document.createElement("i");else if(i.type===7&&o)s=document.createElement("code");else if(i.type===5&&t){const d=document.createElement("a");t.disposables.add(y.addStandardDisposableListener(d,"click",l=>{t.callback(String(i.index),l)})),s=d}else i.type===8?s=document.createElement("br"):i.type===1&&(s=n);s&&n!==s&&n.appendChild(s),s&&Array.isArray(i.children)&&i.children.forEach(d=>{b(s,d,t,o)})}function C(n,i){const t={type:1,children:[]};let o=0,s=t;const d=[],l=new w(n);for(;!l.eos();){let a=l.next();const r=a==="\\"&&u(l.peek(),i)!==0;if(r&&(a=l.next()),!r&&h(a,i)&&a===l.peek()){l.advance(),s.type===2&&(s=d.pop());const c=u(a,i);if(s.type===c||s.type===5&&c===6)s=d.pop();else{const g={type:c,children:[]};c===5&&(g.index=o,o++),s.children.push(g),d.push(s),s=g}}else if(a===` `)s.type===2&&(s=d.pop()),s.children.push({type:8});else if(s.type!==2){const c={type:2,content:a};s.children.push(c),d.push(s),s=c}else s.content+=a}return s.type===2&&(s=d.pop()),d.length,t}function h(n,i){return u(n,i)!==0}function u(n,i){switch(n){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return i?7:0;default:return 0}}}),define(oe[132],se([1,0,7,2]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GlobalPointerMoveMonitor=void 0;class k{constructor(){this._hooks=new v.DisposableStore,this._pointerMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(w,b){if(!this.isMonitoring())return;this._hooks.clear(),this._pointerMoveCallback=null;const C=this._onStopCallback;this._onStopCallback=null,w&&C&&C(b)}isMonitoring(){return!!this._pointerMoveCallback}startMonitoring(w,b,C,h,u){this.isMonitoring()&&this.stopMonitoring(!1),this._pointerMoveCallback=h,this._onStopCallback=u;let n=w;try{w.setPointerCapture(b),this._hooks.add((0,v.toDisposable)(()=>{w.releasePointerCapture(b)}))}catch{n=window}this._hooks.add(y.addDisposableListener(n,y.EventType.POINTER_MOVE,i=>{if(i.buttons!==C){this.stopMonitoring(!0);return}i.preventDefault(),this._pointerMoveCallback(i)})),this._hooks.add(y.addDisposableListener(n,y.EventType.POINTER_UP,i=>this.stopMonitoring(!0)))}}e.GlobalPointerMoveMonitor=k});var Ie=this&&this.__decorate||function(q,e,y,v){var k=arguments.length,D=k<3?e:v===null?v=Object.getOwnPropertyDescriptor(e,y):v,w;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")D=Reflect.decorate(q,e,y,v);else for(var b=q.length-1;b>=0;b--)(w=q[b])&&(D=(k<3?w(D):k>3?w(e,y,D):w(e,y))||D);return k>3&&D&&Object.defineProperty(e,y,D),D};define(oe[62],se([1,0,7,18,103,2]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Gesture=e.EventType=void 0;var w;(function(C){C.Tap="-monaco-gesturetap",C.Change="-monaco-gesturechange",C.Start="-monaco-gesturestart",C.End="-monaco-gesturesend",C.Contextmenu="-monaco-gesturecontextmenu"})(w=e.EventType||(e.EventType={}));class b extends D.Disposable{constructor(){super(),this.dispatched=!1,this.activeTouches={},this.handle=null,this.targets=[],this.ignoreTargets=[],this._lastSetTapCountTime=0,this._register(y.addDisposableListener(document,"touchstart",h=>this.onTouchStart(h),{passive:!1})),this._register(y.addDisposableListener(document,"touchend",h=>this.onTouchEnd(h))),this._register(y.addDisposableListener(document,"touchmove",h=>this.onTouchMove(h),{passive:!1}))}static addTarget(h){return b.isTouchDevice()?(b.INSTANCE||(b.INSTANCE=new b),b.INSTANCE.targets.push(h),{dispose:()=>{b.INSTANCE.targets=b.INSTANCE.targets.filter(u=>u!==h)}}):D.Disposable.None}static ignoreTarget(h){return b.isTouchDevice()?(b.INSTANCE||(b.INSTANCE=new b),b.INSTANCE.ignoreTargets.push(h),{dispose:()=>{b.INSTANCE.ignoreTargets=b.INSTANCE.ignoreTargets.filter(u=>u!==h)}}):D.Disposable.None}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(h){const u=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let n=0,i=h.targetTouches.length;n<i;n++){const t=h.targetTouches.item(n);this.activeTouches[t.identifier]={id:t.identifier,initialTarget:t.target,initialTimeStamp:u,initialPageX:t.pageX,initialPageY:t.pageY,rollingTimestamps:[u],rollingPageX:[t.pageX],rollingPageY:[t.pageY]};const o=this.newGestureEvent(w.Start,t.target);o.pageX=t.pageX,o.pageY=t.pageY,this.dispatchEvent(o)}this.dispatched&&(h.preventDefault(),h.stopPropagation(),this.dispatched=!1)}onTouchEnd(h){const u=Date.now(),n=Object.keys(this.activeTouches).length;for(let i=0,t=h.changedTouches.length;i<t;i++){const o=h.changedTouches.item(i);if(!this.activeTouches.hasOwnProperty(String(o.identifier))){console.warn("move of an UNKNOWN touch",o);continue}const s=this.activeTouches[o.identifier],d=Date.now()-s.initialTimeStamp;if(d<b.HOLD_DELAY&&Math.abs(s.initialPageX-v.tail(s.rollingPageX))<30&&Math.abs(s.initialPageY-v.tail(s.rollingPageY))<30){const l=this.newGestureEvent(w.Tap,s.initialTarget);l.pageX=v.tail(s.rollingPageX),l.pageY=v.tail(s.rollingPageY),this.dispatchEvent(l)}else if(d>=b.HOLD_DELAY&&Math.abs(s.initialPageX-v.tail(s.rollingPageX))<30&&Math.abs(s.initialPageY-v.tail(s.rollingPageY))<30){const l=this.newGestureEvent(w.Contextmenu,s.initialTarget);l.pageX=v.tail(s.rollingPageX),l.pageY=v.tail(s.rollingPageY),this.dispatchEvent(l)}else if(n===1){const l=v.tail(s.rollingPageX),a=v.tail(s.rollingPageY),r=v.tail(s.rollingTimestamps)-s.rollingTimestamps[0],c=l-s.rollingPageX[0],g=a-s.rollingPageY[0],f=this.targets.filter(_=>s.initialTarget instanceof Node&&_.contains(s.initialTarget));this.inertia(f,u,Math.abs(c)/r,c>0?1:-1,l,Math.abs(g)/r,g>0?1:-1,a)}this.dispatchEvent(this.newGestureEvent(w.End,s.initialTarget)),delete this.activeTouches[o.identifier]}this.dispatched&&(h.preventDefault(),h.stopPropagation(),this.dispatched=!1)}newGestureEvent(h,u){const n=document.createEvent("CustomEvent");return n.initEvent(h,!1,!0),n.initialTarget=u,n.tapCount=0,n}dispatchEvent(h){if(h.type===w.Tap){const u=new Date().getTime();let n=0;u-this._lastSetTapCountTime>b.CLEAR_TAP_COUNT_TIME?n=1:n=2,this._lastSetTapCountTime=u,h.tapCount=n}else(h.type===w.Change||h.type===w.Contextmenu)&&(this._lastSetTapCountTime=0);for(let u=0;u<this.ignoreTargets.length;u++)if(h.initialTarget instanceof Node&&this.ignoreTargets[u].contains(h.initialTarget))return;this.targets.forEach(u=>{h.initialTarget instanceof Node&&u.contains(h.initialTarget)&&(u.dispatchEvent(h),this.dispatched=!0)})}inertia(h,u,n,i,t,o,s,d){this.handle=y.scheduleAtNextAnimationFrame(()=>{const l=Date.now(),a=l-u;let r=0,c=0,g=!0;n+=b.SCROLL_FRICTION*a,o+=b.SCROLL_FRICTION*a,n>0&&(g=!1,r=i*n*a),o>0&&(g=!1,c=s*o*a);const f=this.newGestureEvent(w.Change);f.translationX=r,f.translationY=c,h.forEach(_=>_.dispatchEvent(f)),g||this.inertia(h,l,n,i,t+r,o,s,d+c)})}onTouchMove(h){const u=Date.now();for(let n=0,i=h.changedTouches.length;n<i;n++){const t=h.changedTouches.item(n);if(!this.activeTouches.hasOwnProperty(String(t.identifier))){console.warn("end of an UNKNOWN touch",t);continue}const o=this.activeTouches[t.identifier],s=this.newGestureEvent(w.Change,o.initialTarget);s.translationX=t.pageX-v.tail(o.rollingPageX),s.translationY=t.pageY-v.tail(o.rollingPageY),s.pageX=t.pageX,s.pageY=t.pageY,this.dispatchEvent(s),o.rollingPageX.length>3&&(o.rollingPageX.shift(),o.rollingPageY.shift(),o.rollingTimestamps.shift()),o.rollingPageX.push(t.pageX),o.rollingPageY.push(t.pageY),o.rollingTimestamps.push(u)}this.dispatched&&(h.preventDefault(),h.stopPropagation(),this.dispatched=!1)}}b.SCROLL_FRICTION=-.005,b.HOLD_DELAY=700,b.CLEAR_TAP_COUNT_TIME=400,Ie([k.memoize],b,"isTouchDevice",null),e.Gesture=b}),define(oe[49],se([1,0,7,17,334]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.status=e.alert=e.setARIAContainer=void 0;const k=2e4;let D,w,b,C,h;function u(o){D=document.createElement("div"),D.className="monaco-aria-container";const s=()=>{const l=document.createElement("div");return l.className="monaco-alert",l.setAttribute("role","alert"),l.setAttribute("aria-atomic","true"),D.appendChild(l),l};w=s(),b=s();const d=()=>{const l=document.createElement("div");return l.className="monaco-status",l.setAttribute("role","complementary"),l.setAttribute("aria-live","polite"),l.setAttribute("aria-atomic","true"),D.appendChild(l),l};C=d(),h=d(),o.appendChild(D)}e.setARIAContainer=u;function n(o){!D||(w.textContent!==o?(y.clearNode(b),t(w,o)):(y.clearNode(w),t(b,o)))}e.alert=n;function i(o){!D||(v.isMacintosh?n(o):C.textContent!==o?(y.clearNode(h),t(C,o)):(y.clearNode(C),t(h,o)))}e.status=i;function t(o,s){y.clearNode(o),s.length>k&&(s=s.substr(0,k)),o.textContent=s,o.style.visibility="hidden",o.style.visibility="visible"}}),define(oe[254],se([1,0,192,7,2,17,146,338]),function(q,e,y,v,k,D,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContextView=e.layout=e.LayoutAnchorMode=void 0;var b;(function(n){n[n.AVOID=0]="AVOID",n[n.ALIGN=1]="ALIGN"})(b=e.LayoutAnchorMode||(e.LayoutAnchorMode={}));function C(n,i,t){const o=t.mode===b.ALIGN?t.offset:t.offset+t.size,s=t.mode===b.ALIGN?t.offset+t.size:t.offset;return t.position===0?i<=n-o?o:i<=s?s-i:Math.max(n-i,0):i<=s?s-i:i<=n-o?o:0}e.layout=C;class h extends k.Disposable{constructor(i,t){super(),this.container=null,this.delegate=null,this.toDisposeOnClean=k.Disposable.None,this.toDisposeOnSetContainer=k.Disposable.None,this.shadowRoot=null,this.shadowRootHostElement=null,this.view=v.$(".context-view"),this.useFixedPosition=!1,this.useShadowDOM=!1,v.hide(this.view),this.setContainer(i,t),this._register((0,k.toDisposable)(()=>this.setContainer(null,1)))}setContainer(i,t){var o;if(this.container&&(this.toDisposeOnSetContainer.dispose(),this.shadowRoot?(this.shadowRoot.removeChild(this.view),this.shadowRoot=null,(o=this.shadowRootHostElement)===null||o===void 0||o.remove(),this.shadowRootHostElement=null):this.container.removeChild(this.view),this.container=null),i){if(this.container=i,this.useFixedPosition=t!==1,this.useShadowDOM=t===3,this.useShadowDOM){this.shadowRootHostElement=v.$(".shadow-root-host"),this.container.appendChild(this.shadowRootHostElement),this.shadowRoot=this.shadowRootHostElement.attachShadow({mode:"open"});const d=document.createElement("style");d.textContent=u,this.shadowRoot.appendChild(d),this.shadowRoot.appendChild(this.view),this.shadowRoot.appendChild(v.$("slot"))}else this.container.appendChild(this.view);const s=new k.DisposableStore;h.BUBBLE_UP_EVENTS.forEach(d=>{s.add(v.addStandardDisposableListener(this.container,d,l=>{this.onDOMEvent(l,!1)}))}),h.BUBBLE_DOWN_EVENTS.forEach(d=>{s.add(v.addStandardDisposableListener(this.container,d,l=>{this.onDOMEvent(l,!0)},!0))}),this.toDisposeOnSetContainer=s}}show(i){var t,o;this.isVisible()&&this.hide(),v.clearNode(this.view),this.view.className="context-view",this.view.style.top="0px",this.view.style.left="0px",this.view.style.zIndex="2575",this.view.style.position=this.useFixedPosition?"fixed":"absolute",v.show(this.view),this.toDisposeOnClean=i.render(this.view)||k.Disposable.None,this.delegate=i,this.doLayout(),(o=(t=this.delegate).focus)===null||o===void 0||o.call(t)}getViewElement(){return this.view}layout(){if(this.isVisible()){if(this.delegate.canRelayout===!1&&!(D.isIOS&&y.BrowserFeatures.pointerEvents)){this.hide();return}this.delegate.layout&&this.delegate.layout(),this.doLayout()}}doLayout(){if(!this.isVisible())return;const i=this.delegate.getAnchor();let t;if(v.isHTMLElement(i)){const f=v.getDomNodePagePosition(i),_=v.getDomNodeZoomLevel(i);t={top:f.top*_,left:f.left*_,width:f.width*_,height:f.height*_}}else t={top:i.y,left:i.x,width:i.width||1,height:i.height||2};const o=v.getTotalWidth(this.view),s=v.getTotalHeight(this.view),d=this.delegate.anchorPosition||0,l=this.delegate.anchorAlignment||0,a=this.delegate.anchorAxisAlignment||0;let r,c;if(a===0){const f={offset:t.top-window.pageYOffset,size:t.height,position:d===0?0:1},_={offset:t.left,size:t.width,position:l===0?0:1,mode:b.ALIGN};r=C(window.innerHeight,s,f)+window.pageYOffset,w.Range.intersects({start:r,end:r+s},{start:f.offset,end:f.offset+f.size})&&(_.mode=b.AVOID),c=C(window.innerWidth,o,_)}else{const f={offset:t.left,size:t.width,position:l===0?0:1},_={offset:t.top,size:t.height,position:d===0?0:1,mode:b.ALIGN};c=C(window.innerWidth,o,f),w.Range.intersects({start:c,end:c+o},{start:f.offset,end:f.offset+f.size})&&(_.mode=b.AVOID),r=C(window.innerHeight,s,_)+window.pageYOffset}this.view.classList.remove("top","bottom","left","right"),this.view.classList.add(d===0?"bottom":"top"),this.view.classList.add(l===0?"left":"right"),this.view.classList.toggle("fixed",this.useFixedPosition);const g=v.getDomNodePagePosition(this.container);this.view.style.top=`${r-(this.useFixedPosition?v.getDomNodePagePosition(this.view).top:g.top)}px`,this.view.style.left=`${c-(this.useFixedPosition?v.getDomNodePagePosition(this.view).left:g.left)}px`,this.view.style.width="initial"}hide(i){const t=this.delegate;this.delegate=null,t?.onHide&&t.onHide(i),this.toDisposeOnClean.dispose(),v.hide(this.view)}isVisible(){return!!this.delegate}onDOMEvent(i,t){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(i,document.activeElement):t&&!v.isAncestor(i.target,this.container)&&this.hide())}dispose(){this.hide(),super.dispose()}}e.ContextView=h,h.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"],h.BUBBLE_DOWN_EVENTS=["click"];const u=` :host { all: initial; /* 1st rule so subsequent properties are reset. */ } @font-face { font-family: "codicon"; font-display: block; src: url("./codicon.ttf?5d4d76ab2ce5108968ad644d591a16a6") format("truetype"); } .codicon[class*='codicon-'] { font: normal normal normal 16px/1 codicon; display: inline-block; text-decoration: none; text-rendering: auto; text-align: center; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; user-select: none; -webkit-user-select: none; -ms-user-select: none; } :host { font-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", system-ui, "Ubuntu", "Droid Sans", sans-serif; } :host-context(.mac) { font-family: -apple-system, BlinkMacSystemFont, sans-serif; } :host-context(.mac:lang(zh-Hans)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif; } :host-context(.mac:lang(zh-Hant)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif; } :host-context(.mac:lang(ja)) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic Pro", sans-serif; } :host-context(.mac:lang(ko)) { font-family: -apple-system, BlinkMacSystemFont, "Nanum Gothic", "Apple SD Gothic Neo", "AppleGothic", sans-serif; } :host-context(.windows) { font-family: "Segoe WPC", "Segoe UI", sans-serif; } :host-context(.windows:lang(zh-Hans)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft YaHei", sans-serif; } :host-context(.windows:lang(zh-Hant)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft Jhenghei", sans-serif; } :host-context(.windows:lang(ja)) { font-family: "Segoe WPC", "Segoe UI", "Yu Gothic UI", "Meiryo UI", sans-serif; } :host-context(.windows:lang(ko)) { font-family: "Segoe WPC", "Segoe UI", "Malgun Gothic", "Dotom", sans-serif; } :host-context(.linux) { font-family: system-ui, "Ubuntu", "Droid Sans", sans-serif; } :host-context(.linux:lang(zh-Hans)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans SC", "Source Han Sans CN", "Source Han Sans", sans-serif; } :host-context(.linux:lang(zh-Hant)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans TC", "Source Han Sans TW", "Source Han Sans", sans-serif; } :host-context(.linux:lang(ja)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans J", "Source Han Sans JP", "Source Han Sans", sans-serif; } :host-context(.linux:lang(ko)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans K", "Source Han Sans JR", "Source Han Sans", "UnDotum", "FBaekmuk Gulim", sans-serif; } `}),define(oe[255],se([1,0,7,31,40,8,339]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CountBadge=void 0;const w={badgeBackground:v.Color.fromHex("#4D4D4D"),badgeForeground:v.Color.fromHex("#FFFFFF")};class b{constructor(h,u){this.count=0,this.options=u||Object.create(null),(0,k.mixin)(this.options,w,!1),this.badgeBackground=this.options.badgeBackground,this.badgeForeground=this.options.badgeForeground,this.badgeBorder=this.options.badgeBorder,this.element=(0,y.append)(h,(0,y.$)(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}setCount(h){this.count=h,this.render()}setTitleFormat(h){this.titleFormat=h,this.render()}render(){this.element.textContent=(0,D.format)(this.countFormat,this.count),this.element.title=(0,D.format)(this.titleFormat,this.count),this.applyStyles()}style(h){this.badgeBackground=h.badgeBackground,this.badgeForeground=h.badgeForeground,this.badgeBorder=h.badgeBorder,this.applyStyles()}applyStyles(){if(this.element){const h=this.badgeBackground?this.badgeBackground.toString():"",u=this.badgeForeground?this.badgeForeground.toString():"",n=this.badgeBorder?this.badgeBorder.toString():"";this.element.style.backgroundColor=h,this.element.style.color=u,this.element.style.borderWidth=n?"1px":"",this.element.style.borderStyle=n?"solid":"",this.element.style.borderColor=n}}}e.CountBadge=b}),define(oe[482],se([1,0,7,48,62,42,6,226]),function(q,e,y,v,k,D,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DropdownMenu=e.BaseDropdown=void 0;class b extends D.ActionRunner{constructor(u,n){super(),this._onDidChangeVisibility=this._register(new w.Emitter),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this._element=(0,y.append)(u,(0,y.$)(".monaco-dropdown")),this._label=(0,y.append)(this._element,(0,y.$)(".dropdown-label"));let i=n.labelRenderer;i||(i=o=>(o.textContent=n.label||"",null));for(const o of[y.EventType.CLICK,y.EventType.MOUSE_DOWN,k.EventType.Tap])this._register((0,y.addDisposableListener)(this.element,o,s=>y.EventHelper.stop(s,!0)));for(const o of[y.EventType.MOUSE_DOWN,k.EventType.Tap])this._register((0,y.addDisposableListener)(this._label,o,s=>{s instanceof MouseEvent&&(s.detail>1||s.button!==0)||(this.visible?this.hide():this.show())}));this._register((0,y.addDisposableListener)(this._label,y.EventType.KEY_UP,o=>{const s=new v.StandardKeyboardEvent(o);(s.equals(3)||s.equals(10))&&(y.EventHelper.stop(o,!0),this.visible?this.hide():this.show())}));const t=i(this._label);t&&this._register(t),this._register(k.Gesture.addTarget(this._label))}get element(){return this._element}show(){this.visible||(this.visible=!0,this._onDidChangeVisibility.fire(!0))}hide(){this.visible&&(this.visible=!1,this._onDidChangeVisibility.fire(!1))}dispose(){super.dispose(),this.hide(),this.boxContainer&&(this.boxContainer.remove(),this.boxContainer=void 0),this.contents&&(this.contents.remove(),this.contents=void 0),this._label&&(this._label.remove(),this._label=void 0)}}e.BaseDropdown=b;class C extends b{constructor(u,n){super(u,n),this._actions=[],this._contextMenuProvider=n.contextMenuProvider,this.actions=n.actions||[],this.actionProvider=n.actionProvider,this.menuClassName=n.menuClassName||"",this.menuAsChild=!!n.menuAsChild}set menuOptions(u){this._menuOptions=u}get menuOptions(){return this._menuOptions}get actions(){return this.actionProvider?this.actionProvider.getActions():this._actions}set actions(u){this._actions=u}show(){super.show(),this.element.classList.add("active"),this._contextMenuProvider.showContextMenu({getAnchor:()=>this.element,getActions:()=>this.actions,getActionsContext:()=>this.menuOptions?this.menuOptions.context:null,getActionViewItem:u=>this.menuOptions&&this.menuOptions.actionViewItemProvider?this.menuOptions.actionViewItemProvider(u):void 0,getKeyBinding:u=>this.menuOptions&&this.menuOptions.getKeyBinding?this.menuOptions.getKeyBinding(u):void 0,getMenuClassName:()=>this.menuClassName,onHide:()=>this.onHide(),actionRunner:this.menuOptions?this.menuOptions.actionRunner:void 0,anchorAlignment:this.menuOptions?this.menuOptions.anchorAlignment:0,domForShadowRoot:this.menuAsChild?this.element:void 0})}hide(){super.hide()}onHide(){this.hide(),this.element.classList.remove("active")}}e.DropdownMenu=C}),define(oe[256],se([1,0,7,10,21,64,106,2,19,466]),function(q,e,y,v,k,D,w,b,C,h){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setupCustomHover=e.setupNativeHover=void 0;function u(t,o){(0,C.isString)(o)?t.title=(0,w.stripIcons)(o):o?.markdownNotSupportedFallback?t.title=o.markdownNotSupportedFallback:t.removeAttribute("title")}e.setupNativeHover=u;class n{constructor(o,s,d){this.hoverDelegate=o,this.target=s,this.fadeInAnimation=d}update(o,s,d){var l;return be(this,void 0,void 0,function*(){if(this._cancellationTokenSource&&(this._cancellationTokenSource.dispose(!0),this._cancellationTokenSource=void 0),this.isDisposed)return;let a;if(o===void 0||(0,C.isString)(o)||o instanceof HTMLElement)a=o;else if(!(0,C.isFunction)(o.markdown))a=(l=o.markdown)!==null&&l!==void 0?l:o.markdownNotSupportedFallback;else{this._hoverWidget||this.show((0,h.localize)(0,null),s),this._cancellationTokenSource=new k.CancellationTokenSource;const r=this._cancellationTokenSource.token;if(a=yield o.markdown(r),a===void 0&&(a=o.markdownNotSupportedFallback),this.isDisposed||r.isCancellationRequested)return}this.show(a,s,d)})}show(o,s,d){const l=this._hoverWidget;if(this.hasContent(o)){const a=Object.assign({content:o,target:this.target,showPointer:this.hoverDelegate.placement==="element",hoverPosition:2,skipFadeInAnimation:!this.fadeInAnimation||!!l},d);this._hoverWidget=this.hoverDelegate.showHover(a,s)}l?.dispose()}hasContent(o){return o?(0,D.isMarkdownString)(o)?!!o.value:!0:!1}get isDisposed(){var o;return(o=this._hoverWidget)===null||o===void 0?void 0:o.isDisposed}dispose(){var o,s;(o=this._hoverWidget)===null||o===void 0||o.dispose(),(s=this._cancellationTokenSource)===null||s===void 0||s.dispose(!0),this._cancellationTokenSource=void 0}}function i(t,o,s,d){let l,a;const r=(_,p)=>{var m;_&&(a?.dispose(),a=void 0),p&&(l?.dispose(),l=void 0),(m=t.onDidHideHover)===null||m===void 0||m.call(t)},c=(_,p,m)=>new v.TimeoutTimer(()=>be(this,void 0,void 0,function*(){(!a||a.isDisposed)&&(a=new n(t,m||o,_>0),yield a.update(s,p,d))}),_),g=()=>{if(l)return;const _=new b.DisposableStore,p=E=>r(!1,E.fromElement===o);_.add(y.addDisposableListener(o,y.EventType.MOUSE_LEAVE,p,!0));const m=()=>r(!0,!0);_.add(y.addDisposableListener(o,y.EventType.MOUSE_DOWN,m,!0));const S={targetElements:[o],dispose:()=>{}};if(t.placement===void 0||t.placement==="mouse"){const E=L=>{S.x=L.x+10,L.target instanceof HTMLElement&&L.target.classList.contains("action-label")&&r(!0,!0)};_.add(y.addDisposableListener(o,y.EventType.MOUSE_MOVE,E,!0))}_.add(c(t.delay,!1,S)),l=_},f=y.addDisposableListener(o,y.EventType.MOUSE_OVER,g,!0);return{show:_=>{r(!1,!0),c(0,_)},hide:()=>{r(!0,!0)},update:(_,p)=>be(this,void 0,void 0,function*(){s=_,yield a?.update(s,void 0,p)}),dispose:()=>{f.dispose(),r(!0,!0)}}}e.setupCustomHover=i}),define(oe[133],se([1,0,41,123,7,62,256,42,2,17,19,462,225]),function(q,e,y,v,k,D,w,b,C,h,u,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ActionViewItem=e.BaseActionViewItem=void 0;class i extends C.Disposable{constructor(s,d,l={}){super(),this.options=l,this._context=s||this,this._action=d,d instanceof b.Action&&this._register(d.onDidChange(a=>{!this.element||this.handleActionChangeEvent(a)}))}get action(){return this._action}handleActionChangeEvent(s){s.enabled!==void 0&&this.updateEnabled(),s.checked!==void 0&&this.updateChecked(),s.class!==void 0&&this.updateClass(),s.label!==void 0&&(this.updateLabel(),this.updateTooltip()),s.tooltip!==void 0&&this.updateTooltip()}get actionRunner(){return this._actionRunner||(this._actionRunner=this._register(new b.ActionRunner)),this._actionRunner}set actionRunner(s){this._actionRunner=s}getAction(){return this._action}isEnabled(){return this._action.enabled}setActionContext(s){this._context=s}render(s){const d=this.element=s;this._register(D.Gesture.addTarget(s));const l=this.options&&this.options.draggable;l&&(s.draggable=!0,y.isFirefox&&this._register((0,k.addDisposableListener)(s,k.EventType.DRAG_START,a=>{var r;return(r=a.dataTransfer)===null||r===void 0?void 0:r.setData(v.DataTransfers.TEXT,this._action.label)}))),this._register((0,k.addDisposableListener)(d,D.EventType.Tap,a=>this.onClick(a,!0))),this._register((0,k.addDisposableListener)(d,k.EventType.MOUSE_DOWN,a=>{l||k.EventHelper.stop(a,!0),this._action.enabled&&a.button===0&&d.classList.add("active")})),h.isMacintosh&&this._register((0,k.addDisposableListener)(d,k.EventType.CONTEXT_MENU,a=>{a.button===0&&a.ctrlKey===!0&&this.onClick(a)})),this._register((0,k.addDisposableListener)(d,k.EventType.CLICK,a=>{k.EventHelper.stop(a,!0),this.options&&this.options.isMenu||this.onClick(a)})),this._register((0,k.addDisposableListener)(d,k.EventType.DBLCLICK,a=>{k.EventHelper.stop(a,!0)})),[k.EventType.MOUSE_UP,k.EventType.MOUSE_OUT].forEach(a=>{this._register((0,k.addDisposableListener)(d,a,r=>{k.EventHelper.stop(r),d.classList.remove("active")}))})}onClick(s,d=!1){var l;k.EventHelper.stop(s,!0);const a=u.isUndefinedOrNull(this._context)?!((l=this.options)===null||l===void 0)&&l.useEventAsContext?s:{preserveFocus:d}:this._context;this.actionRunner.run(this._action,a)}focus(){this.element&&(this.element.tabIndex=0,this.element.focus(),this.element.classList.add("focused"))}blur(){this.element&&(this.element.blur(),this.element.tabIndex=-1,this.element.classList.remove("focused"))}setFocusable(s){this.element&&(this.element.tabIndex=s?0:-1)}get trapsArrowNavigation(){return!1}updateEnabled(){}updateLabel(){}getTooltip(){return this.getAction().tooltip}updateTooltip(){var s;if(!this.element)return;const d=(s=this.getTooltip())!==null&&s!==void 0?s:"";this.element.setAttribute("aria-label",d),this.options.hoverDelegate?(this.element.title="",this.customHover?this.customHover.update(d):(this.customHover=(0,w.setupCustomHover)(this.options.hoverDelegate,this.element,d),this._store.add(this.customHover))):this.element.title=d}updateClass(){}updateChecked(){}dispose(){this.element&&(this.element.remove(),this.element=void 0),super.dispose()}}e.BaseActionViewItem=i;class t extends i{constructor(s,d,l={}){super(s,d,l),this.options=l,this.options.icon=l.icon!==void 0?l.icon:!1,this.options.label=l.label!==void 0?l.label:!0,this.cssClass=""}render(s){super.render(s),this.element&&(this.label=(0,k.append)(this.element,(0,k.$)("a.action-label"))),this.label&&(this._action.id===b.Separator.ID?this.label.setAttribute("role","presentation"):this.options.isMenu?this.label.setAttribute("role","menuitem"):this.label.setAttribute("role","button")),this.options.label&&this.options.keybinding&&this.element&&((0,k.append)(this.element,(0,k.$)("span.keybinding")).textContent=this.options.keybinding),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()}focus(){this.label&&(this.label.tabIndex=0,this.label.focus())}blur(){this.label&&(this.label.tabIndex=-1)}setFocusable(s){this.label&&(this.label.tabIndex=s?0:-1)}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this.getAction().label)}getTooltip(){let s=null;return this.getAction().tooltip?s=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(s=this.getAction().label,this.options.keybinding&&(s=n.localize(0,null,s,this.options.keybinding))),s??void 0}updateClass(){var s;this.cssClass&&this.label&&this.label.classList.remove(...this.cssClass.split(" ")),this.options.icon?(this.cssClass=this.getAction().class,this.label&&(this.label.classList.add("codicon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" "))),this.updateEnabled()):(s=this.label)===null||s===void 0||s.classList.remove("codicon")}updateEnabled(){var s,d;this.getAction().enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),this.label.classList.remove("disabled")),(s=this.element)===null||s===void 0||s.classList.remove("disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),this.label.classList.add("disabled")),(d=this.element)===null||d===void 0||d.classList.add("disabled"))}updateChecked(){this.label&&(this.getAction().checked?this.label.classList.add("checked"):this.label.classList.remove("checked"))}}e.ActionViewItem=t}),define(oe[83],se([1,0,7,48,133,42,6,2,19,225]),function(q,e,y,v,k,D,w,b,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ActionBar=void 0;class h extends b.Disposable{constructor(n,i={}){var t,o,s,d,l,a;super(),this.triggerKeyDown=!1,this.focusable=!0,this._onDidBlur=this._register(new w.Emitter),this.onDidBlur=this._onDidBlur.event,this._onDidCancel=this._register(new w.Emitter({onFirstListenerAdd:()=>this.cancelHasListener=!0})),this.onDidCancel=this._onDidCancel.event,this.cancelHasListener=!1,this._onDidRun=this._register(new w.Emitter),this.onDidRun=this._onDidRun.event,this._onBeforeRun=this._register(new w.Emitter),this.onBeforeRun=this._onBeforeRun.event,this.options=i,this._context=(t=i.context)!==null&&t!==void 0?t:null,this._orientation=(o=this.options.orientation)!==null&&o!==void 0?o:0,this._triggerKeys={keyDown:(d=(s=this.options.triggerKeys)===null||s===void 0?void 0:s.keyDown)!==null&&d!==void 0?d:!1,keys:(a=(l=this.options.triggerKeys)===null||l===void 0?void 0:l.keys)!==null&&a!==void 0?a:[3,10]},this.options.actionRunner?this._actionRunner=this.options.actionRunner:(this._actionRunner=new D.ActionRunner,this._register(this._actionRunner)),this._register(this._actionRunner.onDidRun(g=>this._onDidRun.fire(g))),this._register(this._actionRunner.onBeforeRun(g=>this._onBeforeRun.fire(g))),this._actionIds=[],this.viewItems=[],this.viewItemDisposables=new Map,this.focusedItem=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar",i.animated!==!1&&this.domNode.classList.add("animated");let r,c;switch(this._orientation){case 0:r=[15],c=[17];break;case 1:r=[16],c=[18],this.domNode.className+=" vertical";break}this._register(y.addDisposableListener(this.domNode,y.EventType.KEY_DOWN,g=>{const f=new v.StandardKeyboardEvent(g);let _=!0;const p=typeof this.focusedItem=="number"?this.viewItems[this.focusedItem]:void 0;r&&(f.equals(r[0])||f.equals(r[1]))?_=this.focusPrevious():c&&(f.equals(c[0])||f.equals(c[1]))?_=this.focusNext():f.equals(9)&&this.cancelHasListener?this._onDidCancel.fire():f.equals(14)?_=this.focusFirst():f.equals(13)?_=this.focusLast():f.equals(2)&&p instanceof k.BaseActionViewItem&&p.trapsArrowNavigation?_=this.focusNext():this.isTriggerKeyEvent(f)?this._triggerKeys.keyDown?this.doTrigger(f):this.triggerKeyDown=!0:_=!1,_&&(f.preventDefault(),f.stopPropagation())})),this._register(y.addDisposableListener(this.domNode,y.EventType.KEY_UP,g=>{const f=new v.StandardKeyboardEvent(g);this.isTriggerKeyEvent(f)?(!this._triggerKeys.keyDown&&this.triggerKeyDown&&(this.triggerKeyDown=!1,this.doTrigger(f)),f.preventDefault(),f.stopPropagation()):(f.equals(2)||f.equals(1026))&&this.updateFocusedItem()})),this.focusTracker=this._register(y.trackFocus(this.domNode)),this._register(this.focusTracker.onDidBlur(()=>{(y.getActiveElement()===this.domNode||!y.isAncestor(y.getActiveElement(),this.domNode))&&(this._onDidBlur.fire(),this.focusedItem=void 0,this.previouslyFocusedItem=void 0,this.triggerKeyDown=!1)})),this._register(this.focusTracker.onDidFocus(()=>this.updateFocusedItem())),this.actionsList=document.createElement("ul"),this.actionsList.className="actions-container",this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"),this.options.ariaLabel&&this.actionsList.setAttribute("aria-label",this.options.ariaLabel),this.domNode.appendChild(this.actionsList),n.appendChild(this.domNode)}refreshRole(){this.length()>=2?this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"):this.actionsList.setAttribute("role","presentation")}setFocusable(n){if(this.focusable=n,this.focusable){const i=this.viewItems.find(t=>t instanceof k.BaseActionViewItem&&t.isEnabled());i instanceof k.BaseActionViewItem&&i.setFocusable(!0)}else this.viewItems.forEach(i=>{i instanceof k.BaseActionViewItem&&i.setFocusable(!1)})}isTriggerKeyEvent(n){let i=!1;return this._triggerKeys.keys.forEach(t=>{i=i||n.equals(t)}),i}updateFocusedItem(){for(let n=0;n<this.actionsList.children.length;n++){const i=this.actionsList.children[n];if(y.isAncestor(y.getActiveElement(),i)){this.focusedItem=n;break}}}get context(){return this._context}set context(n){this._context=n,this.viewItems.forEach(i=>i.setActionContext(n))}get actionRunner(){return this._actionRunner}set actionRunner(n){n&&(this._actionRunner=n,this.viewItems.forEach(i=>i.actionRunner=n))}getContainer(){return this.domNode}push(n,i={}){const t=Array.isArray(n)?n:[n];let o=C.isNumber(i.index)?i.index:null;t.forEach(s=>{const d=document.createElement("li");d.className="action-item",d.setAttribute("role","presentation");let l;this.options.actionViewItemProvider&&(l=this.options.actionViewItemProvider(s)),l||(l=new k.ActionViewItem(this.context,s,Object.assign({hoverDelegate:this.options.hoverDelegate},i))),this.options.allowContextMenu||this.viewItemDisposables.set(l,y.addDisposableListener(d,y.EventType.CONTEXT_MENU,a=>{y.EventHelper.stop(a,!0)})),l.actionRunner=this._actionRunner,l.setActionContext(this.context),l.render(d),this.focusable&&l instanceof k.BaseActionViewItem&&this.viewItems.length===0&&l.setFocusable(!0),o===null||o<0||o>=this.actionsList.children.length?(this.actionsList.appendChild(d),this.viewItems.push(l),this._actionIds.push(s.id)):(this.actionsList.insertBefore(d,this.actionsList.children[o]),this.viewItems.splice(o,0,l),this._actionIds.splice(o,0,s.id),o++)}),typeof this.focusedItem=="number"&&this.focus(this.focusedItem),this.refreshRole()}clear(){(0,b.dispose)(this.viewItems),this.viewItemDisposables.forEach(n=>n.dispose()),this.viewItemDisposables.clear(),this.viewItems=[],this._actionIds=[],y.clearNode(this.actionsList),this.refreshRole()}length(){return this.viewItems.length}focus(n){let i=!1,t;if(n===void 0?i=!0:typeof n=="number"?t=n:typeof n=="boolean"&&(i=n),i&&typeof this.focusedItem>"u"){const o=this.viewItems.findIndex(s=>s.isEnabled());this.focusedItem=o===-1?void 0:o,this.updateFocus(void 0,void 0,!0)}else t!==void 0&&(this.focusedItem=t),this.updateFocus(void 0,void 0,!0)}focusFirst(){return this.focusedItem=this.length()-1,this.focusNext(!0)}focusLast(){return this.focusedItem=0,this.focusPrevious(!0)}focusNext(n){if(typeof this.focusedItem>"u")this.focusedItem=this.viewItems.length-1;else if(this.viewItems.length<=1)return!1;const i=this.focusedItem;let t;do{if(!n&&this.options.preventLoopNavigation&&this.focusedItem+1>=this.viewItems.length)return this.focusedItem=i,!1;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,t=this.viewItems[this.focusedItem]}while(this.focusedItem!==i&&(this.options.focusOnlyEnabledItems&&!t.isEnabled()||t.action.id===D.Separator.ID));return this.updateFocus(),!0}focusPrevious(n){if(typeof this.focusedItem>"u")this.focusedItem=0;else if(this.viewItems.length<=1)return!1;const i=this.focusedItem;let t;do{if(this.focusedItem=this.focusedItem-1,this.focusedItem<0){if(!n&&this.options.preventLoopNavigation)return this.focusedItem=i,!1;this.focusedItem=this.viewItems.length-1}t=this.viewItems[this.focusedItem]}while(this.focusedItem!==i&&(this.options.focusOnlyEnabledItems&&!t.isEnabled()||t.action.id===D.Separator.ID));return this.updateFocus(!0),!0}updateFocus(n,i,t=!1){var o;typeof this.focusedItem>"u"&&this.actionsList.focus({preventScroll:i}),this.previouslyFocusedItem!==void 0&&this.previouslyFocusedItem!==this.focusedItem&&((o=this.viewItems[this.previouslyFocusedItem])===null||o===void 0||o.blur());const s=this.focusedItem!==void 0&&this.viewItems[this.focusedItem];if(s){let d=!0;C.isFunction(s.focus)||(d=!1),this.options.focusOnlyEnabledItems&&C.isFunction(s.isEnabled)&&!s.isEnabled()&&(d=!1),s.action.id===D.Separator.ID&&(d=!1),d?(t||this.previouslyFocusedItem!==this.focusedItem)&&(s.focus(n),this.previouslyFocusedItem=this.focusedItem):(this.actionsList.focus({preventScroll:i}),this.previouslyFocusedItem=void 0)}}doTrigger(n){if(typeof this.focusedItem>"u")return;const i=this.viewItems[this.focusedItem];if(i instanceof k.BaseActionViewItem){const t=i._context===null||i._context===void 0?n:i._context;this.run(i._action,t)}}run(n,i){return be(this,void 0,void 0,function*(){yield this._actionRunner.run(n,i)})}dispose(){(0,b.dispose)(this.viewItems),this.viewItems=[],this._actionIds=[],this.getContainer().remove(),super.dispose()}}e.ActionBar=h}),define(oe[483],se([1,0,7,133,482,6,226]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DropdownMenuActionViewItem=void 0;class w extends v.BaseActionViewItem{constructor(C,h,u,n=Object.create(null)){super(null,C,n),this.actionItem=null,this._onDidChangeVisibility=this._register(new D.Emitter),this.menuActionsOrProvider=h,this.contextMenuProvider=u,this.options=n,this.options.actionRunner&&(this.actionRunner=this.options.actionRunner)}render(C){this.actionItem=C;const h=i=>{this.element=(0,y.append)(i,(0,y.$)("a.action-label"));let t=[];return typeof this.options.classNames=="string"?t=this.options.classNames.split(/\s+/g).filter(o=>!!o):this.options.classNames&&(t=this.options.classNames),t.find(o=>o==="icon")||t.push("codicon"),this.element.classList.add(...t),this.element.setAttribute("role","button"),this.element.setAttribute("aria-haspopup","true"),this.element.setAttribute("aria-expanded","false"),this.element.title=this._action.label||"",this.element.ariaLabel=this._action.label||"",null},u=Array.isArray(this.menuActionsOrProvider),n={contextMenuProvider:this.contextMenuProvider,labelRenderer:h,menuAsChild:this.options.menuAsChild,actions:u?this.menuActionsOrProvider:void 0,actionProvider:u?void 0:this.menuActionsOrProvider};if(this.dropdownMenu=this._register(new k.DropdownMenu(C,n)),this._register(this.dropdownMenu.onDidChangeVisibility(i=>{var t;(t=this.element)===null||t===void 0||t.setAttribute("aria-expanded",`${i}`),this._onDidChangeVisibility.fire(i)})),this.dropdownMenu.menuOptions={actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,getKeyBinding:this.options.keybindingProvider,context:this._context},this.options.anchorAlignmentProvider){const i=this;this.dropdownMenu.menuOptions=Object.assign(Object.assign({},this.dropdownMenu.menuOptions),{get anchorAlignment(){return i.options.anchorAlignmentProvider()}})}this.updateTooltip(),this.updateEnabled()}getTooltip(){let C=null;return this.getAction().tooltip?C=this.getAction().tooltip:this.getAction().label&&(C=this.getAction().label),C??void 0}setActionContext(C){super.setActionContext(C),this.dropdownMenu&&(this.dropdownMenu.menuOptions?this.dropdownMenu.menuOptions.context=C:this.dropdownMenu.menuOptions={context:C})}updateEnabled(){var C,h;const u=!this.getAction().enabled;(C=this.actionItem)===null||C===void 0||C.classList.toggle("disabled",u),(h=this.element)===null||h===void 0||h.classList.toggle("disabled",u)}}e.DropdownMenuActionViewItem=w}),define(oe[134],se([1,0,7,27]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.renderIcon=e.renderLabelWithIcons=void 0;const k=new RegExp(`(\\\\)?\\$\\((${v.CSSIcon.iconNameExpression}(?:${v.CSSIcon.iconModifierExpression})?)\\)`,"g");function D(b){const C=new Array;let h,u=0,n=0;for(;(h=k.exec(b))!==null;){n=h.index||0,C.push(b.substring(u,n)),u=(h.index||0)+h[0].length;const[,i,t]=h;C.push(i?`$(${t})`:w({id:t}))}return u<b.length&&C.push(b.substring(u)),C}e.renderLabelWithIcons=D;function w(b){const C=y.$("span");return C.classList.add(...v.CSSIcon.asClassNameArray(b)),C}e.renderIcon=w}),define(oe[484],se([1,0,7,48,62,134,31,6,2,40,335]),function(q,e,y,v,k,D,w,b,C,h){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Button=void 0;const u={buttonBackground:w.Color.fromHex("#0E639C"),buttonHoverBackground:w.Color.fromHex("#006BB3"),buttonSeparator:w.Color.white,buttonForeground:w.Color.white};class n extends C.Disposable{constructor(t,o){super(),this._onDidClick=this._register(new b.Emitter),this.options=o||Object.create(null),(0,h.mixin)(this.options,u,!1),this.buttonForeground=this.options.buttonForeground,this.buttonBackground=this.options.buttonBackground,this.buttonHoverBackground=this.options.buttonHoverBackground,this.buttonSecondaryForeground=this.options.buttonSecondaryForeground,this.buttonSecondaryBackground=this.options.buttonSecondaryBackground,this.buttonSecondaryHoverBackground=this.options.buttonSecondaryHoverBackground,this.buttonBorder=this.options.buttonBorder,this._element=document.createElement("a"),this._element.classList.add("monaco-button"),this._element.tabIndex=0,this._element.setAttribute("role","button"),t.appendChild(this._element),this._register(k.Gesture.addTarget(this._element)),[y.EventType.CLICK,k.EventType.Tap].forEach(s=>{this._register((0,y.addDisposableListener)(this._element,s,d=>{if(!this.enabled){y.EventHelper.stop(d);return}this._onDidClick.fire(d)}))}),this._register((0,y.addDisposableListener)(this._element,y.EventType.KEY_DOWN,s=>{const d=new v.StandardKeyboardEvent(s);let l=!1;this.enabled&&(d.equals(3)||d.equals(10))?(this._onDidClick.fire(s),l=!0):d.equals(9)&&(this._element.blur(),l=!0),l&&y.EventHelper.stop(d,!0)})),this._register((0,y.addDisposableListener)(this._element,y.EventType.MOUSE_OVER,s=>{this._element.classList.contains("disabled")||this.setHoverBackground()})),this._register((0,y.addDisposableListener)(this._element,y.EventType.MOUSE_OUT,s=>{this.applyStyles()})),this.focusTracker=this._register((0,y.trackFocus)(this._element)),this._register(this.focusTracker.onDidFocus(()=>{this.enabled&&this.setHoverBackground()})),this._register(this.focusTracker.onDidBlur(()=>{this.enabled&&this.applyStyles()})),this.applyStyles()}get onDidClick(){return this._onDidClick.event}setHoverBackground(){let t;this.options.secondary?t=this.buttonSecondaryHoverBackground?this.buttonSecondaryHoverBackground.toString():null:t=this.buttonHoverBackground?this.buttonHoverBackground.toString():null,t&&(this._element.style.backgroundColor=t)}style(t){this.buttonForeground=t.buttonForeground,this.buttonBackground=t.buttonBackground,this.buttonHoverBackground=t.buttonHoverBackground,this.buttonSecondaryForeground=t.buttonSecondaryForeground,this.buttonSecondaryBackground=t.buttonSecondaryBackground,this.buttonSecondaryHoverBackground=t.buttonSecondaryHoverBackground,this.buttonBorder=t.buttonBorder,this.applyStyles()}applyStyles(){if(this._element){let t,o;this.options.secondary?(o=this.buttonSecondaryForeground?this.buttonSecondaryForeground.toString():"",t=this.buttonSecondaryBackground?this.buttonSecondaryBackground.toString():""):(o=this.buttonForeground?this.buttonForeground.toString():"",t=this.buttonBackground?this.buttonBackground.toString():"");const s=this.buttonBorder?this.buttonBorder.toString():"";this._element.style.color=o,this._element.style.backgroundColor=t,this._element.style.borderWidth=s?"1px":"",this._element.style.borderStyle=s?"solid":"",this._element.style.borderColor=s}}get element(){return this._element}set label(t){this._element.classList.add("monaco-text-button"),this.options.supportIcons?(0,y.reset)(this._element,...(0,D.renderLabelWithIcons)(t)):this._element.textContent=t,typeof this.options.title=="string"?this._element.title=this.options.title:this.options.title&&(this._element.title=t)}set enabled(t){t?(this._element.classList.remove("disabled"),this._element.setAttribute("aria-disabled",String(!1)),this._element.tabIndex=0):(this._element.classList.add("disabled"),this._element.setAttribute("aria-disabled",String(!0)))}get enabled(){return!this._element.classList.contains("disabled")}}e.Button=n}),define(oe[257],se([1,0,7,134,40]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HighlightedLabel=void 0;class D{constructor(b,C){var h;this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.supportIcons=(h=C?.supportIcons)!==null&&h!==void 0?h:!1,this.domNode=y.append(b,y.$("span.monaco-highlighted-label"))}get element(){return this.domNode}set(b,C=[],h="",u){b||(b=""),u&&(b=D.escapeNewLines(b,C)),!(this.didEverRender&&this.text===b&&this.title===h&&k.equals(this.highlights,C))&&(this.text=b,this.title=h,this.highlights=C,this.render())}render(){const b=[];let C=0;for(const h of this.highlights){if(h.end===h.start)continue;if(C<h.start){const i=this.text.substring(C,h.start);b.push(y.$("span",void 0,...this.supportIcons?(0,v.renderLabelWithIcons)(i):[i])),C=h.end}const u=this.text.substring(h.start,h.end),n=y.$("span.highlight",void 0,...this.supportIcons?(0,v.renderLabelWithIcons)(u):[u]);h.extraClasses&&n.classList.add(...h.extraClasses),b.push(n),C=h.end}if(C<this.text.length){const h=this.text.substring(C);b.push(y.$("span",void 0,...this.supportIcons?(0,v.renderLabelWithIcons)(h):[h]))}y.reset(this.domNode,...b),this.title?this.domNode.title=this.title:this.domNode.removeAttribute("title"),this.didEverRender=!0}static escapeNewLines(b,C){let h=0,u=0;return b.replace(/\r\n|\r|\n/g,(n,i)=>{u=n===`\r `?-1:0,i+=h;for(const t of C)t.end<=i||(t.start>=i&&(t.start+=u),t.end>=i&&(t.end+=u));return h+=u,"\u23CE"})}}e.HighlightedLabel=D}),define(oe[197],se([1,0,7,257,256,2,40,146,341]),function(q,e,y,v,k,D,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IconLabel=void 0;class C{constructor(o){this._element=o}get element(){return this._element}set textContent(o){this.disposed||o===this._textContent||(this._textContent=o,this._element.textContent=o)}set className(o){this.disposed||o===this._className||(this._className=o,this._element.className=o)}set empty(o){this.disposed||o===this._empty||(this._empty=o,this._element.style.marginLeft=o?"0":"")}dispose(){this.disposed=!0}}class h extends D.Disposable{constructor(o,s){super(),this.customHovers=new Map,this.domNode=this._register(new C(y.append(o,y.$(".monaco-icon-label")))),this.labelContainer=y.append(this.domNode.element,y.$(".monaco-icon-label-container"));const d=y.append(this.labelContainer,y.$("span.monaco-icon-name-container"));this.descriptionContainer=this._register(new C(y.append(this.labelContainer,y.$("span.monaco-icon-description-container")))),s?.supportHighlights||s?.supportIcons?this.nameNode=new i(d,!!s.supportIcons):this.nameNode=new u(d),s?.supportDescriptionHighlights?this.descriptionNodeFactory=()=>new v.HighlightedLabel(y.append(this.descriptionContainer.element,y.$("span.label-description")),{supportIcons:!!s.supportIcons}):this.descriptionNodeFactory=()=>this._register(new C(y.append(this.descriptionContainer.element,y.$("span.label-description")))),this.hoverDelegate=s?.hoverDelegate}get element(){return this.domNode.element}setLabel(o,s,d){const l=["monaco-icon-label"];d&&(d.extraClasses&&l.push(...d.extraClasses),d.italic&&l.push("italic"),d.strikethrough&&l.push("strikethrough")),this.domNode.className=l.join(" "),this.setupHover(d?.descriptionTitle?this.labelContainer:this.element,d?.title),this.nameNode.setLabel(o,d),(s||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof v.HighlightedLabel?(this.descriptionNode.set(s||"",d?d.descriptionMatches:void 0),this.setupHover(this.descriptionNode.element,d?.descriptionTitle)):(this.descriptionNode.textContent=s||"",this.setupHover(this.descriptionNode.element,d?.descriptionTitle||""),this.descriptionNode.empty=!s))}setupHover(o,s){const d=this.customHovers.get(o);if(d&&(d.dispose(),this.customHovers.delete(o)),!s){o.removeAttribute("title");return}if(!this.hoverDelegate)(0,k.setupNativeHover)(o,s);else{const l=(0,k.setupCustomHover)(this.hoverDelegate,o,s);l&&this.customHovers.set(o,l)}}dispose(){super.dispose();for(const o of this.customHovers.values())o.dispose();this.customHovers.clear()}}e.IconLabel=h;class u{constructor(o){this.container=o,this.label=void 0,this.singleLabel=void 0}setLabel(o,s){if(!(this.label===o&&(0,w.equals)(this.options,s)))if(this.label=o,this.options=s,typeof o=="string")this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=y.append(this.container,y.$("a.label-name",{id:s?.domId}))),this.singleLabel.textContent=o;else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;for(let d=0;d<o.length;d++){const l=o[d],a=s?.domId&&`${s?.domId}_${d}`;y.append(this.container,y.$("a.label-name",{id:a,"data-icon-label-count":o.length,"data-icon-label-index":d,role:"treeitem"},l)),d<o.length-1&&y.append(this.container,y.$("span.label-separator",void 0,s?.separator||"/"))}}}}function n(t,o,s){if(!s)return;let d=0;return t.map(l=>{const a={start:d,end:d+l.length},r=s.map(c=>b.Range.intersect(a,c)).filter(c=>!b.Range.isEmpty(c)).map(({start:c,end:g})=>({start:c-d,end:g-d}));return d=a.end+o.length,r})}class i{constructor(o,s){this.container=o,this.supportIcons=s,this.label=void 0,this.singleLabel=void 0}setLabel(o,s){if(!(this.label===o&&(0,w.equals)(this.options,s)))if(this.label=o,this.options=s,typeof o=="string")this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=new v.HighlightedLabel(y.append(this.container,y.$("a.label-name",{id:s?.domId})),{supportIcons:this.supportIcons})),this.singleLabel.set(o,s?.matches,void 0,s?.labelEscapeNewLines);else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;const d=s?.separator||"/",l=n(o,d,s?.matches);for(let a=0;a<o.length;a++){const r=o[a],c=l?l[a]:void 0,g=s?.domId&&`${s?.domId}_${a}`,f=y.$("a.label-name",{id:g,"data-icon-label-count":o.length,"data-icon-label-index":a,role:"treeitem"});new v.HighlightedLabel(y.append(this.container,f),{supportIcons:this.supportIcons}).set(r,c,void 0,s?.labelEscapeNewLines),a<o.length-1&&y.append(f,y.$("span.label-separator",void 0,d))}}}}}),define(oe[485],se([1,0,7,190,40,468,343]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KeybindingLabel=void 0;const w=y.$;class b{constructor(h,u,n){this.os=u,this.keyElements=new Set,this.options=n||Object.create(null),this.labelBackground=this.options.keybindingLabelBackground,this.labelForeground=this.options.keybindingLabelForeground,this.labelBorder=this.options.keybindingLabelBorder,this.labelBottomBorder=this.options.keybindingLabelBottomBorder,this.labelShadow=this.options.keybindingLabelShadow,this.domNode=y.append(h,w(".monaco-keybinding")),this.didEverRender=!1,h.appendChild(this.domNode)}get element(){return this.domNode}set(h,u){this.didEverRender&&this.keybinding===h&&b.areSame(this.matches,u)||(this.keybinding=h,this.matches=u,this.render())}render(){if(this.clear(),this.keybinding){const[h,u]=this.keybinding.getParts();h&&this.renderPart(this.domNode,h,this.matches?this.matches.firstPart:null),u&&(y.append(this.domNode,w("span.monaco-keybinding-key-chord-separator",void 0," ")),this.renderPart(this.domNode,u,this.matches?this.matches.chordPart:null)),this.domNode.title=this.keybinding.getAriaLabel()||""}else this.options&&this.options.renderUnboundKeybindings&&this.renderUnbound(this.domNode);this.applyStyles(),this.didEverRender=!0}clear(){y.clearNode(this.domNode),this.keyElements.clear()}renderPart(h,u,n){const i=v.UILabelProvider.modifierLabels[this.os];u.ctrlKey&&this.renderKey(h,i.ctrlKey,!!n?.ctrlKey,i.separator),u.shiftKey&&this.renderKey(h,i.shiftKey,!!n?.shiftKey,i.separator),u.altKey&&this.renderKey(h,i.altKey,!!n?.altKey,i.separator),u.metaKey&&this.renderKey(h,i.metaKey,!!n?.metaKey,i.separator);const t=u.keyLabel;t&&this.renderKey(h,t,!!n?.keyCode,"")}renderKey(h,u,n,i){y.append(h,this.createKeyElement(u,n?".highlight":"")),i&&y.append(h,w("span.monaco-keybinding-key-separator",void 0,i))}renderUnbound(h){y.append(h,this.createKeyElement((0,D.localize)(0,null)))}createKeyElement(h,u=""){const n=w("span.monaco-keybinding-key"+u,void 0,h);return this.keyElements.add(n),n}style(h){this.labelBackground=h.keybindingLabelBackground,this.labelForeground=h.keybindingLabelForeground,this.labelBorder=h.keybindingLabelBorder,this.labelBottomBorder=h.keybindingLabelBottomBorder,this.labelShadow=h.keybindingLabelShadow,this.applyStyles()}applyStyles(){var h;if(this.element){for(const u of this.keyElements)this.labelBackground&&(u.style.backgroundColor=(h=this.labelBackground)===null||h===void 0?void 0:h.toString()),this.labelBorder&&(u.style.borderColor=this.labelBorder.toString()),this.labelBottomBorder&&(u.style.borderBottomColor=this.labelBottomBorder.toString()),this.labelShadow&&(u.style.boxShadow=`inset 0 -1px 0 ${this.labelShadow}`);this.labelForeground&&(this.element.style.color=this.labelForeground.toString())}}static areSame(h,u){return h===u||!h&&!u?!0:!!h&&!!u&&(0,k.equals)(h.firstPart,u.firstPart)&&(0,k.equals)(h.chordPart,u.chordPart)}}e.KeybindingLabel=b}),define(oe[486],se([1,0,7]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RowCache=void 0;function v(D){var w;try{(w=D.parentElement)===null||w===void 0||w.removeChild(D)}catch{}}class k{constructor(w){this.renderers=w,this.cache=new Map}alloc(w){let b=this.getTemplateCache(w).pop();if(!b){const C=(0,y.$)(".monaco-list-row"),h=this.getRenderer(w).renderTemplate(C);b={domNode:C,templateId:w,templateData:h}}return b}release(w){!w||this.releaseRow(w)}releaseRow(w){const{domNode:b,templateId:C}=w;b&&(b.classList.remove("scrolling"),v(b)),this.getTemplateCache(C).push(w)}getTemplateCache(w){let b=this.cache.get(w);return b||(b=[],this.cache.set(w,b)),b}dispose(){this.cache.forEach((w,b)=>{for(const C of w)this.getRenderer(b).disposeTemplate(C.templateData),C.templateData=null}),this.cache.clear()}getRenderer(w){const b=this.renderers.get(w);if(!b)throw new Error(`No renderer found for ${w}`);return b}}e.RowCache=k}),define(oe[487],se([1,0,7,10,31,2,40,345]),function(q,e,y,v,k,D,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ProgressBar=void 0;const b="done",C="active",h="infinite",u="infinite-long-running",n="discrete",i={progressBarBackground:k.Color.fromHex("#0E70C0")};class t extends D.Disposable{constructor(s,d){super(),this.options=d||Object.create(null),(0,w.mixin)(this.options,i,!1),this.workedVal=0,this.progressBarBackground=this.options.progressBarBackground,this.showDelayedScheduler=this._register(new v.RunOnceScheduler(()=>(0,y.show)(this.element),0)),this.longRunningScheduler=this._register(new v.RunOnceScheduler(()=>this.infiniteLongRunning(),t.LONG_RUNNING_INFINITE_THRESHOLD)),this.create(s)}create(s){this.element=document.createElement("div"),this.element.classList.add("monaco-progress-container"),this.element.setAttribute("role","progressbar"),this.element.setAttribute("aria-valuemin","0"),s.appendChild(this.element),this.bit=document.createElement("div"),this.bit.classList.add("progress-bit"),this.element.appendChild(this.bit),this.applyStyles()}off(){this.bit.style.width="inherit",this.bit.style.opacity="1",this.element.classList.remove(C,h,u,n),this.workedVal=0,this.totalWork=void 0,this.longRunningScheduler.cancel()}stop(){return this.doDone(!1)}doDone(s){return this.element.classList.add(b),this.element.classList.contains(h)?(this.bit.style.opacity="0",s?setTimeout(()=>this.off(),200):this.off()):(this.bit.style.width="inherit",s?setTimeout(()=>this.off(),200):this.off()),this}infinite(){return this.bit.style.width="2%",this.bit.style.opacity="1",this.element.classList.remove(n,b,u),this.element.classList.add(C,h),this.longRunningScheduler.schedule(),this}infiniteLongRunning(){this.element.classList.add(u)}getContainer(){return this.element}style(s){this.progressBarBackground=s.progressBarBackground,this.applyStyles()}applyStyles(){if(this.bit){const s=this.progressBarBackground?this.progressBarBackground.toString():"";this.bit.style.backgroundColor=s}}}e.ProgressBar=t,t.LONG_RUNNING_INFINITE_THRESHOLD=1e4}),define(oe[135],se([1,0,7,100,62,10,103,6,2,17,346]),function(q,e,y,v,k,D,w,b,C,h){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Sash=e.OrthogonalEdge=void 0;const u=!1;var n;(function(g){g.North="north",g.South="south",g.East="east",g.West="west"})(n=e.OrthogonalEdge||(e.OrthogonalEdge={}));let i=4;const t=new b.Emitter;let o=300;const s=new b.Emitter;class d{constructor(){this.disposables=new C.DisposableStore}get onPointerMove(){return this.disposables.add(new v.DomEmitter(window,"mousemove")).event}get onPointerUp(){return this.disposables.add(new v.DomEmitter(window,"mouseup")).event}dispose(){this.disposables.dispose()}}Ie([w.memoize],d.prototype,"onPointerMove",null),Ie([w.memoize],d.prototype,"onPointerUp",null);class l{constructor(f){this.el=f,this.disposables=new C.DisposableStore}get onPointerMove(){return this.disposables.add(new v.DomEmitter(this.el,k.EventType.Change)).event}get onPointerUp(){return this.disposables.add(new v.DomEmitter(this.el,k.EventType.End)).event}dispose(){this.disposables.dispose()}}Ie([w.memoize],l.prototype,"onPointerMove",null),Ie([w.memoize],l.prototype,"onPointerUp",null);class a{constructor(f){this.factory=f}get onPointerMove(){return this.factory.onPointerMove}get onPointerUp(){return this.factory.onPointerUp}dispose(){}}Ie([w.memoize],a.prototype,"onPointerMove",null),Ie([w.memoize],a.prototype,"onPointerUp",null);const r="pointer-events-disabled";class c extends C.Disposable{constructor(f,_,p){super(),this.hoverDelay=o,this.hoverDelayer=this._register(new D.Delayer(this.hoverDelay)),this._state=3,this.onDidEnablementChange=this._register(new b.Emitter),this._onDidStart=this._register(new b.Emitter),this._onDidChange=this._register(new b.Emitter),this._onDidReset=this._register(new b.Emitter),this._onDidEnd=this._register(new b.Emitter),this.orthogonalStartSashDisposables=this._register(new C.DisposableStore),this.orthogonalStartDragHandleDisposables=this._register(new C.DisposableStore),this.orthogonalEndSashDisposables=this._register(new C.DisposableStore),this.orthogonalEndDragHandleDisposables=this._register(new C.DisposableStore),this.onDidStart=this._onDidStart.event,this.onDidChange=this._onDidChange.event,this.onDidReset=this._onDidReset.event,this.onDidEnd=this._onDidEnd.event,this.linkedSash=void 0,this.el=(0,y.append)(f,(0,y.$)(".monaco-sash")),p.orthogonalEdge&&this.el.classList.add(`orthogonal-edge-${p.orthogonalEdge}`),h.isMacintosh&&this.el.classList.add("mac");const m=this._register(new v.DomEmitter(this.el,"mousedown")).event;this._register(m(F=>this.onPointerStart(F,new d),this));const S=this._register(new v.DomEmitter(this.el,"dblclick")).event;this._register(S(this.onPointerDoublePress,this));const E=this._register(new v.DomEmitter(this.el,"mouseenter")).event;this._register(E(()=>c.onMouseEnter(this)));const L=this._register(new v.DomEmitter(this.el,"mouseleave")).event;this._register(L(()=>c.onMouseLeave(this))),this._register(k.Gesture.addTarget(this.el));const N=b.Event.map(this._register(new v.DomEmitter(this.el,k.EventType.Start)).event,F=>{var O;return Object.assign(Object.assign({},F),{target:(O=F.initialTarget)!==null&&O!==void 0?O:null})});this._register(N(F=>this.onPointerStart(F,new l(this.el)),this));const I=this._register(new v.DomEmitter(this.el,k.EventType.Tap)).event,R=b.Event.map(b.Event.filter(b.Event.debounce(I,(F,O)=>{var x;return{event:O,count:((x=F?.count)!==null&&x!==void 0?x:0)+1}},250),({count:F})=>F===2),({event:F})=>{var O;return Object.assign(Object.assign({},F),{target:(O=F.initialTarget)!==null&&O!==void 0?O:null})});this._register(R(this.onPointerDoublePress,this)),typeof p.size=="number"?(this.size=p.size,p.orientation===0?this.el.style.width=`${this.size}px`:this.el.style.height=`${this.size}px`):(this.size=i,this._register(t.event(F=>{this.size=F,this.layout()}))),this._register(s.event(F=>this.hoverDelay=F)),this.layoutProvider=_,this.orthogonalStartSash=p.orthogonalStartSash,this.orthogonalEndSash=p.orthogonalEndSash,this.orientation=p.orientation||0,this.orientation===1?(this.el.classList.add("horizontal"),this.el.classList.remove("vertical")):(this.el.classList.remove("horizontal"),this.el.classList.add("vertical")),this.el.classList.toggle("debug",u),this.layout()}get state(){return this._state}get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}set state(f){this._state!==f&&(this.el.classList.toggle("disabled",f===0),this.el.classList.toggle("minimum",f===1),this.el.classList.toggle("maximum",f===2),this._state=f,this.onDidEnablementChange.fire(f))}set orthogonalStartSash(f){if(this.orthogonalStartDragHandleDisposables.clear(),this.orthogonalStartSashDisposables.clear(),f){const _=p=>{this.orthogonalStartDragHandleDisposables.clear(),p!==0&&(this._orthogonalStartDragHandle=(0,y.append)(this.el,(0,y.$)(".orthogonal-drag-handle.start")),this.orthogonalStartDragHandleDisposables.add((0,C.toDisposable)(()=>this._orthogonalStartDragHandle.remove())),this.orthogonalStartDragHandleDisposables.add(new v.DomEmitter(this._orthogonalStartDragHandle,"mouseenter")).event(()=>c.onMouseEnter(f),void 0,this.orthogonalStartDragHandleDisposables),this.orthogonalStartDragHandleDisposables.add(new v.DomEmitter(this._orthogonalStartDragHandle,"mouseleave")).event(()=>c.onMouseLeave(f),void 0,this.orthogonalStartDragHandleDisposables))};this.orthogonalStartSashDisposables.add(f.onDidEnablementChange.event(_,this)),_(f.state)}this._orthogonalStartSash=f}set orthogonalEndSash(f){if(this.orthogonalEndDragHandleDisposables.clear(),this.orthogonalEndSashDisposables.clear(),f){const _=p=>{this.orthogonalEndDragHandleDisposables.clear(),p!==0&&(this._orthogonalEndDragHandle=(0,y.append)(this.el,(0,y.$)(".orthogonal-drag-handle.end")),this.orthogonalEndDragHandleDisposables.add((0,C.toDisposable)(()=>this._orthogonalEndDragHandle.remove())),this.orthogonalEndDragHandleDisposables.add(new v.DomEmitter(this._orthogonalEndDragHandle,"mouseenter")).event(()=>c.onMouseEnter(f),void 0,this.orthogonalEndDragHandleDisposables),this.orthogonalEndDragHandleDisposables.add(new v.DomEmitter(this._orthogonalEndDragHandle,"mouseleave")).event(()=>c.onMouseLeave(f),void 0,this.orthogonalEndDragHandleDisposables))};this.orthogonalEndSashDisposables.add(f.onDidEnablementChange.event(_,this)),_(f.state)}this._orthogonalEndSash=f}onPointerStart(f,_){y.EventHelper.stop(f);let p=!1;if(!f.__orthogonalSashEvent){const M=this.getOrthogonalSash(f);M&&(p=!0,f.__orthogonalSashEvent=!0,M.onPointerStart(f,new a(_)))}if(this.linkedSash&&!f.__linkedSashEvent&&(f.__linkedSashEvent=!0,this.linkedSash.onPointerStart(f,new a(_))),!this.state)return;const m=(0,y.getElementsByTagName)("iframe");for(const M of m)M.classList.add(r);const S=f.pageX,E=f.pageY,L=f.altKey,N={startX:S,currentX:S,startY:E,currentY:E,altKey:L};this.el.classList.add("active"),this._onDidStart.fire(N);const I=(0,y.createStyleSheet)(this.el),R=()=>{let M="";p?M="all-scroll":this.orientation===1?this.state===1?M="s-resize":this.state===2?M="n-resize":M=h.isMacintosh?"row-resize":"ns-resize":this.state===1?M="e-resize":this.state===2?M="w-resize":M=h.isMacintosh?"col-resize":"ew-resize",I.textContent=`* { cursor: ${M} !important; }`},F=new C.DisposableStore;R(),p||this.onDidEnablementChange.event(R,null,F);const O=M=>{y.EventHelper.stop(M,!1);const P={startX:S,currentX:M.pageX,startY:E,currentY:M.pageY,altKey:L};this._onDidChange.fire(P)},x=M=>{y.EventHelper.stop(M,!1),this.el.removeChild(I),this.el.classList.remove("active"),this._onDidEnd.fire(),F.dispose();for(const P of m)P.classList.remove(r)};_.onPointerMove(O,null,F),_.onPointerUp(x,null,F),F.add(_)}onPointerDoublePress(f){const _=this.getOrthogonalSash(f);_&&_._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()}static onMouseEnter(f,_=!1){f.el.classList.contains("active")?(f.hoverDelayer.cancel(),f.el.classList.add("hover")):f.hoverDelayer.trigger(()=>f.el.classList.add("hover"),f.hoverDelay).then(void 0,()=>{}),!_&&f.linkedSash&&c.onMouseEnter(f.linkedSash,!0)}static onMouseLeave(f,_=!1){f.hoverDelayer.cancel(),f.el.classList.remove("hover"),!_&&f.linkedSash&&c.onMouseLeave(f.linkedSash,!0)}clearSashHoverState(){c.onMouseLeave(this)}layout(){if(this.orientation===0){const f=this.layoutProvider;this.el.style.left=f.getVerticalSashLeft(this)-this.size/2+"px",f.getVerticalSashTop&&(this.el.style.top=f.getVerticalSashTop(this)+"px"),f.getVerticalSashHeight&&(this.el.style.height=f.getVerticalSashHeight(this)+"px")}else{const f=this.layoutProvider;this.el.style.top=f.getHorizontalSashTop(this)-this.size/2+"px",f.getHorizontalSashLeft&&(this.el.style.left=f.getHorizontalSashLeft(this)+"px"),f.getHorizontalSashWidth&&(this.el.style.width=f.getHorizontalSashWidth(this)+"px")}}getOrthogonalSash(f){if(!(!f.target||!(f.target instanceof HTMLElement))&&f.target.classList.contains("orthogonal-drag-handle"))return f.target.classList.contains("start")?this.orthogonalStartSash:this.orthogonalEndSash}dispose(){super.dispose(),this.el.remove()}}e.Sash=c}),define(oe[258],se([1,0,7,135,6,2]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ResizableHTMLElement=void 0;class w{constructor(){this._onDidWillResize=new k.Emitter,this.onDidWillResize=this._onDidWillResize.event,this._onDidResize=new k.Emitter,this.onDidResize=this._onDidResize.event,this._sashListener=new D.DisposableStore,this._size=new y.Dimension(0,0),this._minSize=new y.Dimension(0,0),this._maxSize=new y.Dimension(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),this.domNode=document.createElement("div"),this._eastSash=new v.Sash(this.domNode,{getVerticalSashLeft:()=>this._size.width},{orientation:0}),this._westSash=new v.Sash(this.domNode,{getVerticalSashLeft:()=>0},{orientation:0}),this._northSash=new v.Sash(this.domNode,{getHorizontalSashTop:()=>0},{orientation:1,orthogonalEdge:v.OrthogonalEdge.North}),this._southSash=new v.Sash(this.domNode,{getHorizontalSashTop:()=>this._size.height},{orientation:1,orthogonalEdge:v.OrthogonalEdge.South}),this._northSash.orthogonalStartSash=this._westSash,this._northSash.orthogonalEndSash=this._eastSash,this._southSash.orthogonalStartSash=this._westSash,this._southSash.orthogonalEndSash=this._eastSash;let C,h=0,u=0;this._sashListener.add(k.Event.any(this._northSash.onDidStart,this._eastSash.onDidStart,this._southSash.onDidStart,this._westSash.onDidStart)(()=>{C===void 0&&(this._onDidWillResize.fire(),C=this._size,h=0,u=0)})),this._sashListener.add(k.Event.any(this._northSash.onDidEnd,this._eastSash.onDidEnd,this._southSash.onDidEnd,this._westSash.onDidEnd)(()=>{C!==void 0&&(C=void 0,h=0,u=0,this._onDidResize.fire({dimension:this._size,done:!0}))})),this._sashListener.add(this._eastSash.onDidChange(n=>{C&&(u=n.currentX-n.startX,this.layout(C.height+h,C.width+u),this._onDidResize.fire({dimension:this._size,done:!1,east:!0}))})),this._sashListener.add(this._westSash.onDidChange(n=>{C&&(u=-(n.currentX-n.startX),this.layout(C.height+h,C.width+u),this._onDidResize.fire({dimension:this._size,done:!1,west:!0}))})),this._sashListener.add(this._northSash.onDidChange(n=>{C&&(h=-(n.currentY-n.startY),this.layout(C.height+h,C.width+u),this._onDidResize.fire({dimension:this._size,done:!1,north:!0}))})),this._sashListener.add(this._southSash.onDidChange(n=>{C&&(h=n.currentY-n.startY,this.layout(C.height+h,C.width+u),this._onDidResize.fire({dimension:this._size,done:!1,south:!0}))})),this._sashListener.add(k.Event.any(this._eastSash.onDidReset,this._westSash.onDidReset)(n=>{this._preferredSize&&(this.layout(this._size.height,this._preferredSize.width),this._onDidResize.fire({dimension:this._size,done:!0}))})),this._sashListener.add(k.Event.any(this._northSash.onDidReset,this._southSash.onDidReset)(n=>{this._preferredSize&&(this.layout(this._preferredSize.height,this._size.width),this._onDidResize.fire({dimension:this._size,done:!0}))}))}dispose(){this._northSash.dispose(),this._southSash.dispose(),this._eastSash.dispose(),this._westSash.dispose(),this._sashListener.dispose(),this._onDidResize.dispose(),this._onDidWillResize.dispose(),this.domNode.remove()}enableSashes(C,h,u,n){this._northSash.state=C?3:0,this._eastSash.state=h?3:0,this._southSash.state=u?3:0,this._westSash.state=n?3:0}layout(C=this.size.height,h=this.size.width){const{height:u,width:n}=this._minSize,{height:i,width:t}=this._maxSize;C=Math.max(u,Math.min(i,C)),h=Math.max(n,Math.min(t,h));const o=new y.Dimension(h,C);y.Dimension.equals(o,this._size)||(this.domNode.style.height=C+"px",this.domNode.style.width=h+"px",this._size=o,this._northSash.layout(),this._eastSash.layout(),this._southSash.layout(),this._westSash.layout())}clearSashHoverState(){this._eastSash.clearSashHoverState(),this._westSash.clearSashHoverState(),this._northSash.clearSashHoverState(),this._southSash.clearSashHoverState()}get size(){return this._size}set maxSize(C){this._maxSize=C}get maxSize(){return this._maxSize}set minSize(C){this._minSize=C}get minSize(){return this._minSize}set preferredSize(C){this._preferredSize=C}get preferredSize(){return this._preferredSize}}e.ResizableHTMLElement=w}),define(oe[68],se([1,0,7,48,67,62,2]),function(q,e,y,v,k,D,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Widget=void 0;class b extends w.Disposable{onclick(h,u){this._register(y.addDisposableListener(h,y.EventType.CLICK,n=>u(new k.StandardMouseEvent(n))))}onmousedown(h,u){this._register(y.addDisposableListener(h,y.EventType.MOUSE_DOWN,n=>u(new k.StandardMouseEvent(n))))}onmouseover(h,u){this._register(y.addDisposableListener(h,y.EventType.MOUSE_OVER,n=>u(new k.StandardMouseEvent(n))))}onmouseleave(h,u){this._register(y.addDisposableListener(h,y.EventType.MOUSE_LEAVE,n=>u(new k.StandardMouseEvent(n))))}onkeydown(h,u){this._register(y.addDisposableListener(h,y.EventType.KEY_DOWN,n=>u(new v.StandardKeyboardEvent(n))))}onkeyup(h,u){this._register(y.addDisposableListener(h,y.EventType.KEY_UP,n=>u(new v.StandardKeyboardEvent(n))))}oninput(h,u){this._register(y.addDisposableListener(h,y.EventType.INPUT,u))}onblur(h,u){this._register(y.addDisposableListener(h,y.EventType.BLUR,u))}onfocus(h,u){this._register(y.addDisposableListener(h,y.EventType.FOCUS,u))}ignoreGesture(h){D.Gesture.ignoreTarget(h)}}e.Widget=b}),define(oe[198],se([1,0,132,68,10,7]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ScrollbarArrow=e.ARROW_IMG_SIZE=void 0,e.ARROW_IMG_SIZE=11;class w extends v.Widget{constructor(C){super(),this._onActivate=C.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=C.bgWidth+"px",this.bgDomNode.style.height=C.bgHeight+"px",typeof C.top<"u"&&(this.bgDomNode.style.top="0px"),typeof C.left<"u"&&(this.bgDomNode.style.left="0px"),typeof C.bottom<"u"&&(this.bgDomNode.style.bottom="0px"),typeof C.right<"u"&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=C.className,this.domNode.classList.add(...C.icon.classNamesArray),this.domNode.style.position="absolute",this.domNode.style.width=e.ARROW_IMG_SIZE+"px",this.domNode.style.height=e.ARROW_IMG_SIZE+"px",typeof C.top<"u"&&(this.domNode.style.top=C.top+"px"),typeof C.left<"u"&&(this.domNode.style.left=C.left+"px"),typeof C.bottom<"u"&&(this.domNode.style.bottom=C.bottom+"px"),typeof C.right<"u"&&(this.domNode.style.right=C.right+"px"),this._pointerMoveMonitor=this._register(new y.GlobalPointerMoveMonitor),this._register(D.addStandardDisposableListener(this.bgDomNode,D.EventType.POINTER_DOWN,h=>this._arrowPointerDown(h))),this._register(D.addStandardDisposableListener(this.domNode,D.EventType.POINTER_DOWN,h=>this._arrowPointerDown(h))),this._pointerdownRepeatTimer=this._register(new k.IntervalTimer),this._pointerdownScheduleRepeatTimer=this._register(new k.TimeoutTimer)}_arrowPointerDown(C){if(!C.target||!(C.target instanceof Element))return;const h=()=>{this._pointerdownRepeatTimer.cancelAndSet(()=>this._onActivate(),1e3/24)};this._onActivate(),this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancelAndSet(h,200),this._pointerMoveMonitor.startMonitoring(C.target,C.pointerId,C.buttons,u=>{},()=>{this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancel()}),C.preventDefault()}}e.ScrollbarArrow=w}),define(oe[259],se([1,0,7,33,132,198,478,68,17]),function(q,e,y,v,k,D,w,b,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractScrollbar=void 0;const h=140;class u extends b.Widget{constructor(i){super(),this._lazyRender=i.lazyRender,this._host=i.host,this._scrollable=i.scrollable,this._scrollByPage=i.scrollByPage,this._scrollbarState=i.scrollbarState,this._visibilityController=this._register(new w.ScrollbarVisibilityController(i.visibility,"visible scrollbar "+i.extraScrollbarClassName,"invisible scrollbar "+i.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._pointerMoveMonitor=this._register(new k.GlobalPointerMoveMonitor),this._shouldRender=!0,this.domNode=(0,v.createFastDomNode)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this._register(y.addDisposableListener(this.domNode.domNode,y.EventType.POINTER_DOWN,t=>this._domNodePointerDown(t)))}_createArrow(i){const t=this._register(new D.ScrollbarArrow(i));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}_createSlider(i,t,o,s){this.slider=(0,v.createFastDomNode)(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(i),this.slider.setLeft(t),typeof o=="number"&&this.slider.setWidth(o),typeof s=="number"&&this.slider.setHeight(s),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this._register(y.addDisposableListener(this.slider.domNode,y.EventType.POINTER_DOWN,d=>{d.button===0&&(d.preventDefault(),this._sliderPointerDown(d))})),this.onclick(this.slider.domNode,d=>{d.leftButton&&d.stopPropagation()})}_onElementSize(i){return this._scrollbarState.setVisibleSize(i)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(i){return this._scrollbarState.setScrollSize(i)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(i){return this._scrollbarState.setScrollPosition(i)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){!this._shouldRender||(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodePointerDown(i){i.target===this.domNode.domNode&&this._onPointerDown(i)}delegatePointerDown(i){const t=this.domNode.domNode.getClientRects()[0].top,o=t+this._scrollbarState.getSliderPosition(),s=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),d=this._sliderPointerPosition(i);o<=d&&d<=s?i.button===0&&(i.preventDefault(),this._sliderPointerDown(i)):this._onPointerDown(i)}_onPointerDown(i){let t,o;if(i.target===this.domNode.domNode&&typeof i.offsetX=="number"&&typeof i.offsetY=="number")t=i.offsetX,o=i.offsetY;else{const d=y.getDomNodePagePosition(this.domNode.domNode);t=i.pageX-d.left,o=i.pageY-d.top}const s=this._pointerDownRelativePosition(t,o);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(s):this._scrollbarState.getDesiredScrollPositionFromOffset(s)),i.button===0&&(i.preventDefault(),this._sliderPointerDown(i))}_sliderPointerDown(i){if(!i.target||!(i.target instanceof Element))return;const t=this._sliderPointerPosition(i),o=this._sliderOrthogonalPointerPosition(i),s=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._pointerMoveMonitor.startMonitoring(i.target,i.pointerId,i.buttons,d=>{const l=this._sliderOrthogonalPointerPosition(d),a=Math.abs(l-o);if(C.isWindows&&a>h){this._setDesiredScrollPositionNow(s.getScrollPosition());return}const r=this._sliderPointerPosition(d)-t;this._setDesiredScrollPositionNow(s.getDesiredScrollPositionFromDelta(r))},()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd()}),this._host.onDragStart()}_setDesiredScrollPositionNow(i){const t={};this.writeScrollPosition(t,i),this._scrollable.setScrollPositionNow(t)}updateScrollbarSize(i){this._updateScrollbarSize(i),this._scrollbarState.setScrollbarSize(i),this._shouldRender=!0,this._lazyRender||this.render()}isNeeded(){return this._scrollbarState.isNeeded()}}e.AbstractScrollbar=u}),define(oe[488],se([1,0,67,259,198,221,27]),function(q,e,y,v,k,D,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HorizontalScrollbar=void 0;class b extends v.AbstractScrollbar{constructor(h,u,n){const i=h.getScrollDimensions(),t=h.getCurrentScrollPosition();if(super({lazyRender:u.lazyRender,host:n,scrollbarState:new D.ScrollbarState(u.horizontalHasArrows?u.arrowSize:0,u.horizontal===2?0:u.horizontalScrollbarSize,u.vertical===2?0:u.verticalScrollbarSize,i.width,i.scrollWidth,t.scrollLeft),visibility:u.horizontal,extraScrollbarClassName:"horizontal",scrollable:h,scrollByPage:u.scrollByPage}),u.horizontalHasArrows){const o=(u.arrowSize-k.ARROW_IMG_SIZE)/2,s=(u.horizontalScrollbarSize-k.ARROW_IMG_SIZE)/2;this._createArrow({className:"scra",icon:w.Codicon.scrollbarButtonLeft,top:s,left:o,bottom:void 0,right:void 0,bgWidth:u.arrowSize,bgHeight:u.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new y.StandardWheelEvent(null,1,0))}),this._createArrow({className:"scra",icon:w.Codicon.scrollbarButtonRight,top:s,left:void 0,bottom:void 0,right:o,bgWidth:u.arrowSize,bgHeight:u.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new y.StandardWheelEvent(null,-1,0))})}this._createSlider(Math.floor((u.horizontalScrollbarSize-u.horizontalSliderSize)/2),0,void 0,u.horizontalSliderSize)}_updateSlider(h,u){this.slider.setWidth(h),this.slider.setLeft(u)}_renderDomNode(h,u){this.domNode.setWidth(h),this.domNode.setHeight(u),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(h){return this._shouldRender=this._onElementScrollSize(h.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(h.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(h.width)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(h,u){return h}_sliderPointerPosition(h){return h.pageX}_sliderOrthogonalPointerPosition(h){return h.pageY}_updateScrollbarSize(h){this.slider.setHeight(h)}writeScrollPosition(h,u){h.scrollLeft=u}updateOptions(h){this.updateScrollbarSize(h.horizontal===2?0:h.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(h.vertical===2?0:h.verticalScrollbarSize),this._visibilityController.setVisibility(h.horizontal),this._scrollByPage=h.scrollByPage}}e.HorizontalScrollbar=b}),define(oe[489],se([1,0,67,259,198,221,27]),function(q,e,y,v,k,D,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VerticalScrollbar=void 0;class b extends v.AbstractScrollbar{constructor(h,u,n){const i=h.getScrollDimensions(),t=h.getCurrentScrollPosition();if(super({lazyRender:u.lazyRender,host:n,scrollbarState:new D.ScrollbarState(u.verticalHasArrows?u.arrowSize:0,u.vertical===2?0:u.verticalScrollbarSize,0,i.height,i.scrollHeight,t.scrollTop),visibility:u.vertical,extraScrollbarClassName:"vertical",scrollable:h,scrollByPage:u.scrollByPage}),u.verticalHasArrows){const o=(u.arrowSize-k.ARROW_IMG_SIZE)/2,s=(u.verticalScrollbarSize-k.ARROW_IMG_SIZE)/2;this._createArrow({className:"scra",icon:w.Codicon.scrollbarButtonUp,top:o,left:s,bottom:void 0,right:void 0,bgWidth:u.verticalScrollbarSize,bgHeight:u.arrowSize,onActivate:()=>this._host.onMouseWheel(new y.StandardWheelEvent(null,0,1))}),this._createArrow({className:"scra",icon:w.Codicon.scrollbarButtonDown,top:void 0,left:s,bottom:o,right:void 0,bgWidth:u.verticalScrollbarSize,bgHeight:u.arrowSize,onActivate:()=>this._host.onMouseWheel(new y.StandardWheelEvent(null,0,-1))})}this._createSlider(0,Math.floor((u.verticalScrollbarSize-u.verticalSliderSize)/2),u.verticalSliderSize,void 0)}_updateSlider(h,u){this.slider.setHeight(h),this.slider.setTop(u)}_renderDomNode(h,u){this.domNode.setWidth(u),this.domNode.setHeight(h),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(h){return this._shouldRender=this._onElementScrollSize(h.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(h.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(h.height)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(h,u){return u}_sliderPointerPosition(h){return h.pageY}_sliderOrthogonalPointerPosition(h){return h.pageX}_updateScrollbarSize(h){this.slider.setWidth(h)}writeScrollPosition(h,u){h.scrollTop=u}updateOptions(h){this.updateScrollbarSize(h.vertical===2?0:h.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(h.vertical),this._scrollByPage=h.scrollByPage}}e.VerticalScrollbar=b}),define(oe[75],se([1,0,41,7,33,67,488,489,68,10,6,2,17,161,347]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DomScrollableElement=e.SmoothScrollableElement=e.ScrollableElement=e.AbstractScrollableElement=e.MouseWheelClassifier=void 0;const o=500,s=50,d=!0;class l{constructor(m,S,E){this.timestamp=m,this.deltaX=S,this.deltaY=E,this.score=0}}class a{constructor(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}isPhysicalMouseWheel(){if(this._front===-1&&this._rear===-1)return!1;let m=1,S=0,E=1,L=this._rear;do{const N=L===this._front?m:Math.pow(2,-E);if(m-=N,S+=this._memory[L].score*N,L===this._front)break;L=(this._capacity+L-1)%this._capacity,E++}while(!0);return S<=.5}accept(m,S,E){const L=new l(m,S,E);L.score=this._computeScore(L),this._front===-1&&this._rear===-1?(this._memory[0]=L,this._front=0,this._rear=0):(this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=L)}_computeScore(m){if(Math.abs(m.deltaX)>0&&Math.abs(m.deltaY)>0)return 1;let S=.5;const E=this._front===-1&&this._rear===-1?null:this._memory[this._rear];return(!this._isAlmostInt(m.deltaX)||!this._isAlmostInt(m.deltaY))&&(S+=.25),Math.min(Math.max(S,0),1)}_isAlmostInt(m){return Math.abs(Math.round(m)-m)<.01}}e.MouseWheelClassifier=a,a.INSTANCE=new a;class r extends C.Widget{constructor(m,S,E){super(),this._onScroll=this._register(new u.Emitter),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new u.Emitter),m.style.overflow="hidden",this._options=_(S),this._scrollable=E,this._register(this._scrollable.onScroll(N=>{this._onWillScroll.fire(N),this._onDidScroll(N),this._onScroll.fire(N)}));const L={onMouseWheel:N=>this._onMouseWheel(N),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new b.VerticalScrollbar(this._scrollable,this._options,L)),this._horizontalScrollbar=this._register(new w.HorizontalScrollbar(this._scrollable,this._options,L)),this._domNode=document.createElement("div"),this._domNode.className="monaco-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.style.overflow="hidden",this._domNode.appendChild(m),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=(0,k.createFastDomNode)(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=(0,k.createFastDomNode)(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=(0,k.createFastDomNode)(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,N=>this._onMouseOver(N)),this.onmouseleave(this._listenOnDomNode,N=>this._onMouseLeave(N)),this._hideTimeout=this._register(new h.TimeoutTimer),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}get options(){return this._options}dispose(){this._mouseWheelToDispose=(0,n.dispose)(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarPointerDown(m){this._verticalScrollbar.delegatePointerDown(m)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(m){this._scrollable.setScrollDimensions(m,!1)}updateClassName(m){this._options.className=m,i.isMacintosh&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}updateOptions(m){typeof m.handleMouseWheel<"u"&&(this._options.handleMouseWheel=m.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),typeof m.mouseWheelScrollSensitivity<"u"&&(this._options.mouseWheelScrollSensitivity=m.mouseWheelScrollSensitivity),typeof m.fastScrollSensitivity<"u"&&(this._options.fastScrollSensitivity=m.fastScrollSensitivity),typeof m.scrollPredominantAxis<"u"&&(this._options.scrollPredominantAxis=m.scrollPredominantAxis),typeof m.horizontal<"u"&&(this._options.horizontal=m.horizontal),typeof m.vertical<"u"&&(this._options.vertical=m.vertical),typeof m.horizontalScrollbarSize<"u"&&(this._options.horizontalScrollbarSize=m.horizontalScrollbarSize),typeof m.verticalScrollbarSize<"u"&&(this._options.verticalScrollbarSize=m.verticalScrollbarSize),typeof m.scrollByPage<"u"&&(this._options.scrollByPage=m.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}_setListeningToMouseWheel(m){if(this._mouseWheelToDispose.length>0!==m&&(this._mouseWheelToDispose=(0,n.dispose)(this._mouseWheelToDispose),m)){const S=E=>{this._onMouseWheel(new D.StandardWheelEvent(E))};this._mouseWheelToDispose.push(v.addDisposableListener(this._listenOnDomNode,v.EventType.MOUSE_WHEEL,S,{passive:!1}))}}_onMouseWheel(m){const S=a.INSTANCE;if(d){const N=window.devicePixelRatio/(0,y.getZoomFactor)();i.isWindows||i.isLinux?S.accept(Date.now(),m.deltaX/N,m.deltaY/N):S.accept(Date.now(),m.deltaX,m.deltaY)}let E=!1;if(m.deltaY||m.deltaX){let N=m.deltaY*this._options.mouseWheelScrollSensitivity,I=m.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(Math.abs(N)>=Math.abs(I)?I=0:N=0),this._options.flipAxes&&([N,I]=[I,N]);const R=!i.isMacintosh&&m.browserEvent&&m.browserEvent.shiftKey;(this._options.scrollYToX||R)&&!I&&(I=N,N=0),m.browserEvent&&m.browserEvent.altKey&&(I=I*this._options.fastScrollSensitivity,N=N*this._options.fastScrollSensitivity);const F=this._scrollable.getFutureScrollPosition();let O={};if(N){const x=s*N,M=F.scrollTop-(x<0?Math.floor(x):Math.ceil(x));this._verticalScrollbar.writeScrollPosition(O,M)}if(I){const x=s*I,M=F.scrollLeft-(x<0?Math.floor(x):Math.ceil(x));this._horizontalScrollbar.writeScrollPosition(O,M)}O=this._scrollable.validateScrollPosition(O),(F.scrollLeft!==O.scrollLeft||F.scrollTop!==O.scrollTop)&&(d&&this._options.mouseWheelSmoothScroll&&S.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(O):this._scrollable.setScrollPositionNow(O),E=!0)}let L=E;!L&&this._options.alwaysConsumeMouseWheel&&(L=!0),!L&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(L=!0),L&&(m.preventDefault(),m.stopPropagation())}_onDidScroll(m){this._shouldRender=this._horizontalScrollbar.onDidScroll(m)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(m)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){const m=this._scrollable.getCurrentScrollPosition(),S=m.scrollTop>0,E=m.scrollLeft>0,L=E?" left":"",N=S?" top":"",I=E||S?" top-left-corner":"";this._leftShadowDomNode.setClassName(`shadow${L}`),this._topShadowDomNode.setClassName(`shadow${N}`),this._topLeftShadowDomNode.setClassName(`shadow${I}${N}${L}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseLeave(m){this._mouseIsOver=!1,this._hide()}_onMouseOver(m){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){!this._mouseIsOver&&!this._isDragging&&(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){!this._mouseIsOver&&!this._isDragging&&this._hideTimeout.cancelAndSet(()=>this._hide(),o)}}e.AbstractScrollableElement=r;class c extends r{constructor(m,S){S=S||{},S.mouseWheelSmoothScroll=!1;const E=new t.Scrollable({forceIntegerValues:!0,smoothScrollDuration:0,scheduleAtNextAnimationFrame:L=>v.scheduleAtNextAnimationFrame(L)});super(m,S,E),this._register(E)}setScrollPosition(m){this._scrollable.setScrollPositionNow(m)}}e.ScrollableElement=c;class g extends r{constructor(m,S,E){super(m,S,E)}setScrollPosition(m){m.reuseAnimation?this._scrollable.setScrollPositionSmooth(m,m.reuseAnimation):this._scrollable.setScrollPositionNow(m)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}}e.SmoothScrollableElement=g;class f extends r{constructor(m,S){S=S||{},S.mouseWheelSmoothScroll=!1;const E=new t.Scrollable({forceIntegerValues:!1,smoothScrollDuration:0,scheduleAtNextAnimationFrame:L=>v.scheduleAtNextAnimationFrame(L)});super(m,S,E),this._register(E),this._element=m,this.onScroll(L=>{L.scrollTopChanged&&(this._element.scrollTop=L.scrollTop),L.scrollLeftChanged&&(this._element.scrollLeft=L.scrollLeft)}),this.scanDomNode()}setScrollPosition(m){this._scrollable.setScrollPositionNow(m)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}scanDomNode(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})}}e.DomScrollableElement=f;function _(p){const m={lazyRender:typeof p.lazyRender<"u"?p.lazyRender:!1,className:typeof p.className<"u"?p.className:"",useShadows:typeof p.useShadows<"u"?p.useShadows:!0,handleMouseWheel:typeof p.handleMouseWheel<"u"?p.handleMouseWheel:!0,flipAxes:typeof p.flipAxes<"u"?p.flipAxes:!1,consumeMouseWheelIfScrollbarIsNeeded:typeof p.consumeMouseWheelIfScrollbarIsNeeded<"u"?p.consumeMouseWheelIfScrollbarIsNeeded:!1,alwaysConsumeMouseWheel:typeof p.alwaysConsumeMouseWheel<"u"?p.alwaysConsumeMouseWheel:!1,scrollYToX:typeof p.scrollYToX<"u"?p.scrollYToX:!1,mouseWheelScrollSensitivity:typeof p.mouseWheelScrollSensitivity<"u"?p.mouseWheelScrollSensitivity:1,fastScrollSensitivity:typeof p.fastScrollSensitivity<"u"?p.fastScrollSensitivity:5,scrollPredominantAxis:typeof p.scrollPredominantAxis<"u"?p.scrollPredominantAxis:!0,mouseWheelSmoothScroll:typeof p.mouseWheelSmoothScroll<"u"?p.mouseWheelSmoothScroll:!0,arrowSize:typeof p.arrowSize<"u"?p.arrowSize:11,listenOnDomNode:typeof p.listenOnDomNode<"u"?p.listenOnDomNode:null,horizontal:typeof p.horizontal<"u"?p.horizontal:1,horizontalScrollbarSize:typeof p.horizontalScrollbarSize<"u"?p.horizontalScrollbarSize:10,horizontalSliderSize:typeof p.horizontalSliderSize<"u"?p.horizontalSliderSize:0,horizontalHasArrows:typeof p.horizontalHasArrows<"u"?p.horizontalHasArrows:!1,vertical:typeof p.vertical<"u"?p.vertical:1,verticalScrollbarSize:typeof p.verticalScrollbarSize<"u"?p.verticalScrollbarSize:10,verticalHasArrows:typeof p.verticalHasArrows<"u"?p.verticalHasArrows:!1,verticalSliderSize:typeof p.verticalSliderSize<"u"?p.verticalSliderSize:0,scrollByPage:typeof p.scrollByPage<"u"?p.scrollByPage:!1};return m.horizontalSliderSize=typeof p.horizontalSliderSize<"u"?p.horizontalSliderSize:m.horizontalScrollbarSize,m.verticalSliderSize=typeof p.verticalSliderSize<"u"?p.verticalSliderSize:m.verticalScrollbarSize,i.isMacintosh&&(m.className+=" mac"),m}}),define(oe[260],se([1,0,7,48,75,2,340]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HoverAction=e.HoverWidget=void 0;const w=y.$;class b extends D.Disposable{constructor(){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this.scrollbar=this._register(new k.DomScrollableElement(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}}e.HoverWidget=b;class C extends D.Disposable{constructor(u,n,i){super(),this.actionContainer=y.append(u,w("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=y.append(this.actionContainer,w("a.action")),this.action.setAttribute("role","button"),n.iconClass&&y.append(this.action,w(`span.icon.${n.iconClass}`));const t=y.append(this.action,w("span"));t.textContent=i?`${n.label} (${i})`:n.label,this._register(y.addDisposableListener(this.actionContainer,y.EventType.CLICK,o=>{o.stopPropagation(),o.preventDefault(),n.run(this.actionContainer)})),this._register(y.addDisposableListener(this.actionContainer,y.EventType.KEY_UP,o=>{new v.StandardKeyboardEvent(o).equals(3)&&(o.stopPropagation(),o.preventDefault(),n.run(this.actionContainer))})),this.setEnabled(!0)}static render(u,n,i){return new C(u,n,i)}setEnabled(u){u?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}}e.HoverAction=C}),define(oe[199],se([1,0,7,100,196,83,49,75,68,31,6,331,40,467,342]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HistoryInputBox=e.InputBox=void 0;const o=y.$,s={inputBackground:h.Color.fromHex("#3C3C3C"),inputForeground:h.Color.fromHex("#CCCCCC"),inputValidationInfoBorder:h.Color.fromHex("#55AAFF"),inputValidationInfoBackground:h.Color.fromHex("#063B49"),inputValidationWarningBorder:h.Color.fromHex("#B89500"),inputValidationWarningBackground:h.Color.fromHex("#352A05"),inputValidationErrorBorder:h.Color.fromHex("#BE1100"),inputValidationErrorBackground:h.Color.fromHex("#5A1D1D")};class d extends C.Widget{constructor(r,c,g){var f;super(),this.state="idle",this.maxHeight=Number.POSITIVE_INFINITY,this._onDidChange=this._register(new u.Emitter),this.onDidChange=this._onDidChange.event,this._onDidHeightChange=this._register(new u.Emitter),this.onDidHeightChange=this._onDidHeightChange.event,this.contextViewProvider=c,this.options=g||Object.create(null),(0,i.mixin)(this.options,s,!1),this.message=null,this.placeholder=this.options.placeholder||"",this.tooltip=(f=this.options.tooltip)!==null&&f!==void 0?f:this.placeholder||"",this.ariaLabel=this.options.ariaLabel||"",this.inputBackground=this.options.inputBackground,this.inputForeground=this.options.inputForeground,this.inputBorder=this.options.inputBorder,this.inputValidationInfoBorder=this.options.inputValidationInfoBorder,this.inputValidationInfoBackground=this.options.inputValidationInfoBackground,this.inputValidationInfoForeground=this.options.inputValidationInfoForeground,this.inputValidationWarningBorder=this.options.inputValidationWarningBorder,this.inputValidationWarningBackground=this.options.inputValidationWarningBackground,this.inputValidationWarningForeground=this.options.inputValidationWarningForeground,this.inputValidationErrorBorder=this.options.inputValidationErrorBorder,this.inputValidationErrorBackground=this.options.inputValidationErrorBackground,this.inputValidationErrorForeground=this.options.inputValidationErrorForeground,this.options.validationOptions&&(this.validation=this.options.validationOptions.validation),this.element=y.append(r,o(".monaco-inputbox.idle"));const _=this.options.flexibleHeight?"textarea":"input",p=y.append(this.element,o(".ibwrapper"));if(this.input=y.append(p,o(_+".input.empty")),this.input.setAttribute("autocorrect","off"),this.input.setAttribute("autocapitalize","off"),this.input.setAttribute("spellcheck","false"),this.onfocus(this.input,()=>this.element.classList.add("synthetic-focus")),this.onblur(this.input,()=>this.element.classList.remove("synthetic-focus")),this.options.flexibleHeight){this.maxHeight=typeof this.options.flexibleMaxHeight=="number"?this.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,this.mirror=y.append(p,o("div.mirror")),this.mirror.innerText="\xA0",this.scrollableElement=new b.ScrollableElement(this.element,{vertical:1}),this.options.flexibleWidth&&(this.input.setAttribute("wrap","off"),this.mirror.style.whiteSpace="pre",this.mirror.style.wordWrap="initial"),y.append(r,this.scrollableElement.getDomNode()),this._register(this.scrollableElement),this._register(this.scrollableElement.onScroll(E=>this.input.scrollTop=E.scrollTop));const m=this._register(new v.DomEmitter(document,"selectionchange")),S=u.Event.filter(m.event,()=>{const E=document.getSelection();return E?.anchorNode===p});this._register(S(this.updateScrollDimensions,this)),this._register(this.onDidHeightChange(this.updateScrollDimensions,this))}else this.input.type=this.options.type||"text",this.input.setAttribute("wrap","off");this.ariaLabel&&this.input.setAttribute("aria-label",this.ariaLabel),this.placeholder&&!this.options.showPlaceholderOnFocus&&this.setPlaceHolder(this.placeholder),this.tooltip&&this.setTooltip(this.tooltip),this.oninput(this.input,()=>this.onValueChange()),this.onblur(this.input,()=>this.onBlur()),this.onfocus(this.input,()=>this.onFocus()),this.ignoreGesture(this.input),setTimeout(()=>this.updateMirror(),0),this.options.actions&&(this.actionbar=this._register(new D.ActionBar(this.element)),this.actionbar.push(this.options.actions,{icon:!0,label:!1})),this.applyStyles()}onBlur(){this._hideMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder","")}onFocus(){this._showMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder",this.placeholder||"")}setPlaceHolder(r){this.placeholder=r,this.input.setAttribute("placeholder",r)}setTooltip(r){this.tooltip=r,this.input.title=r}setAriaLabel(r){this.ariaLabel=r,r?this.input.setAttribute("aria-label",this.ariaLabel):this.input.removeAttribute("aria-label")}getAriaLabel(){return this.ariaLabel}get inputElement(){return this.input}get value(){return this.input.value}set value(r){this.input.value!==r&&(this.input.value=r,this.onValueChange())}get height(){return typeof this.cachedHeight=="number"?this.cachedHeight:y.getTotalHeight(this.element)}focus(){this.input.focus()}blur(){this.input.blur()}hasFocus(){return document.activeElement===this.input}select(r=null){this.input.select(),r&&(this.input.setSelectionRange(r.start,r.end),r.end===this.input.value.length&&(this.input.scrollLeft=this.input.scrollWidth))}isSelectionAtEnd(){return this.input.selectionEnd===this.input.value.length&&this.input.selectionStart===this.input.selectionEnd}enable(){this.input.removeAttribute("disabled")}disable(){this.blur(),this.input.disabled=!0,this._hideMessage()}get width(){return y.getTotalWidth(this.input)}set width(r){if(this.options.flexibleHeight&&this.options.flexibleWidth){let c=0;if(this.mirror){const g=parseFloat(this.mirror.style.paddingLeft||"")||0,f=parseFloat(this.mirror.style.paddingRight||"")||0;c=g+f}this.input.style.width=r-c+"px"}else this.input.style.width=r+"px";this.mirror&&(this.mirror.style.width=r+"px")}set paddingRight(r){this.input.style.width=`calc(100% - ${r}px)`,this.mirror&&(this.mirror.style.paddingRight=r+"px")}updateScrollDimensions(){if(typeof this.cachedContentHeight!="number"||typeof this.cachedHeight!="number"||!this.scrollableElement)return;const r=this.cachedContentHeight,c=this.cachedHeight,g=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:r,height:c}),this.scrollableElement.setScrollPosition({scrollTop:g})}showMessage(r,c){this.message=r,this.element.classList.remove("idle"),this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add(this.classForType(r.type));const g=this.stylesForType(this.message.type);this.element.style.border=g.border?`1px solid ${g.border}`:"",(this.hasFocus()||c)&&this._showMessage()}hideMessage(){this.message=null,this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add("idle"),this._hideMessage(),this.applyStyles()}validate(){let r=null;return this.validation&&(r=this.validation(this.value),r?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(r)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),r?.type}stylesForType(r){switch(r){case 1:return{border:this.inputValidationInfoBorder,background:this.inputValidationInfoBackground,foreground:this.inputValidationInfoForeground};case 2:return{border:this.inputValidationWarningBorder,background:this.inputValidationWarningBackground,foreground:this.inputValidationWarningForeground};default:return{border:this.inputValidationErrorBorder,background:this.inputValidationErrorBackground,foreground:this.inputValidationErrorForeground}}}classForType(r){switch(r){case 1:return"info";case 2:return"warning";default:return"error"}}_showMessage(){if(!this.contextViewProvider||!this.message)return;let r;const c=()=>r.style.width=y.getTotalWidth(this.element)+"px";this.contextViewProvider.showContextView({getAnchor:()=>this.element,anchorAlignment:1,render:f=>{if(!this.message)return null;r=y.append(f,o(".monaco-inputbox-container")),c();const _={inline:!0,className:"monaco-inputbox-message"},p=this.message.formatContent?(0,k.renderFormattedText)(this.message.content,_):(0,k.renderText)(this.message.content,_);p.classList.add(this.classForType(this.message.type));const m=this.stylesForType(this.message.type);return p.style.backgroundColor=m.background?m.background.toString():"",p.style.color=m.foreground?m.foreground.toString():"",p.style.border=m.border?`1px solid ${m.border}`:"",y.append(r,p),null},onHide:()=>{this.state="closed"},layout:c});let g;this.message.type===3?g=t.localize(0,null,this.message.content):this.message.type===2?g=t.localize(1,null,this.message.content):g=t.localize(2,null,this.message.content),w.alert(g),this.state="open"}_hideMessage(){!this.contextViewProvider||(this.state==="open"&&this.contextViewProvider.hideContextView(),this.state="idle")}onValueChange(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),this.input.classList.toggle("empty",!this.value),this.state==="open"&&this.contextViewProvider&&this.contextViewProvider.layout()}updateMirror(){if(!this.mirror)return;const r=this.value,c=r.charCodeAt(r.length-1)===10?" ":"";(r+c).replace(/\u000c/g,"")?this.mirror.textContent=r+c:this.mirror.innerText="\xA0",this.layout()}style(r){this.inputBackground=r.inputBackground,this.inputForeground=r.inputForeground,this.inputBorder=r.inputBorder,this.inputValidationInfoBackground=r.inputValidationInfoBackground,this.inputValidationInfoForeground=r.inputValidationInfoForeground,this.inputValidationInfoBorder=r.inputValidationInfoBorder,this.inputValidationWarningBackground=r.inputValidationWarningBackground,this.inputValidationWarningForeground=r.inputValidationWarningForeground,this.inputValidationWarningBorder=r.inputValidationWarningBorder,this.inputValidationErrorBackground=r.inputValidationErrorBackground,this.inputValidationErrorForeground=r.inputValidationErrorForeground,this.inputValidationErrorBorder=r.inputValidationErrorBorder,this.applyStyles()}applyStyles(){const r=this.inputBackground?this.inputBackground.toString():"",c=this.inputForeground?this.inputForeground.toString():"",g=this.inputBorder?this.inputBorder.toString():"";this.element.style.backgroundColor=r,this.element.style.color=c,this.input.style.backgroundColor="inherit",this.input.style.color=c,this.element.style.borderWidth=g?"1px":"",this.element.style.borderStyle=g?"solid":"",this.element.style.borderColor=g}layout(){if(!this.mirror)return;const r=this.cachedContentHeight;this.cachedContentHeight=y.getTotalHeight(this.mirror),r!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))}insertAtCursor(r){const c=this.inputElement,g=c.selectionStart,f=c.selectionEnd,_=c.value;g!==null&&f!==null&&(this.value=_.substr(0,g)+r+_.substr(f),c.setSelectionRange(g+1,g+1),this.layout())}dispose(){this._hideMessage(),this.message=null,this.actionbar&&this.actionbar.dispose(),super.dispose()}}e.InputBox=d;class l extends d{constructor(r,c,g){const f=t.localize(3,null),_=` or \u21C5 ${f}`,p=` (\u21C5 ${f})`;super(r,c,g),this._onDidFocus=this._register(new u.Emitter),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new u.Emitter),this.onDidBlur=this._onDidBlur.event,this.history=new n.HistoryNavigator(g.history,100);const m=()=>{if(g.showHistoryHint&&g.showHistoryHint()&&!this.placeholder.endsWith(_)&&!this.placeholder.endsWith(p)&&this.history.getHistory().length){const S=this.placeholder.endsWith(")")?_:p,E=this.placeholder+S;g.showPlaceholderOnFocus&&document.activeElement!==this.input?this.placeholder=E:this.setPlaceHolder(E)}};this.observer=new MutationObserver((S,E)=>{S.forEach(L=>{L.target.textContent||m()})}),this.observer.observe(this.input,{attributeFilter:["class"]}),this.onfocus(this.input,()=>m()),this.onblur(this.input,()=>{const S=E=>{if(this.placeholder.endsWith(E)){const L=this.placeholder.slice(0,this.placeholder.length-E.length);return g.showPlaceholderOnFocus?this.placeholder=L:this.setPlaceHolder(L),!0}else return!1};S(p)||S(_)})}dispose(){super.dispose(),this.observer&&(this.observer.disconnect(),this.observer=void 0)}addToHistory(){this.value&&this.value!==this.getCurrentValue()&&this.history.add(this.value)}showNextValue(){this.history.has(this.value)||this.addToHistory();let r=this.getNextValue();r&&(r=r===this.value?this.getNextValue():r),r&&(this.value=r,w.status(this.value))}showPreviousValue(){this.history.has(this.value)||this.addToHistory();let r=this.getPreviousValue();r&&(r=r===this.value?this.getPreviousValue():r),r&&(this.value=r,w.status(this.value))}onBlur(){super.onBlur(),this._onDidBlur.fire()}onFocus(){super.onFocus(),this._onDidFocus.fire()}getCurrentValue(){let r=this.history.current();return r||(r=this.history.last(),this.history.next()),r}getPreviousValue(){return this.history.previous()||this.history.first()}getNextValue(){return this.history.next()||this.history.last()}}e.HistoryInputBox=l}),define(oe[200],se([1,0,41,123,7,100,62,75,18,10,103,6,2,146,161,332,486]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ListView=e.NativeDragAndDropData=e.ExternalElementsDragAndDropData=e.ElementsDragAndDropData=void 0;const l={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,setRowHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements(p){return[p]},getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){}},horizontalScrolling:!1,transformOptimization:!0,alwaysConsumeMouseWheel:!0};class a{constructor(m){this.elements=m}update(){}getData(){return this.elements}}e.ElementsDragAndDropData=a;class r{constructor(m){this.elements=m}update(){}getData(){return this.elements}}e.ExternalElementsDragAndDropData=r;class c{constructor(){this.types=[],this.files=[]}update(m){if(m.types&&this.types.splice(0,this.types.length,...m.types),m.files){this.files.splice(0,this.files.length);for(let S=0;S<m.files.length;S++){const E=m.files.item(S);E&&(E.size||E.type)&&this.files.push(E)}}}getData(){return{types:this.types,files:this.files}}}e.NativeDragAndDropData=c;function g(p,m){return Array.isArray(p)&&Array.isArray(m)?(0,C.equals)(p,m):p===m}class f{constructor(m){m?.getSetSize?this.getSetSize=m.getSetSize.bind(m):this.getSetSize=(S,E,L)=>L,m?.getPosInSet?this.getPosInSet=m.getPosInSet.bind(m):this.getPosInSet=(S,E)=>E+1,m?.getRole?this.getRole=m.getRole.bind(m):this.getRole=S=>"listitem",m?.isChecked?this.isChecked=m.isChecked.bind(m):this.isChecked=S=>{}}}class _{constructor(m,S,E,L=l){var N,I,R,F,O,x,M,P,A,B;if(this.virtualDelegate=S,this.domId=`list_id_${++_.InstanceCount}`,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new h.Delayer(50),this.splicing=!1,this.dragOverAnimationStopDisposable=i.Disposable.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=i.Disposable.None,this.onDragLeaveTimeout=i.Disposable.None,this.disposables=new i.DisposableStore,this._onDidChangeContentHeight=new n.Emitter,this._horizontalScrolling=!1,L.horizontalScrolling&&L.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=new s.RangeMap;for(const K of E)this.renderers.set(K.templateId,K);this.cache=this.disposables.add(new d.RowCache(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",this.domNode.classList.add(this.domId),this.domNode.tabIndex=0,this.domNode.classList.toggle("mouse-support",typeof L.mouseSupport=="boolean"?L.mouseSupport:!0),this._horizontalScrolling=(N=L.horizontalScrolling)!==null&&N!==void 0?N:l.horizontalScrolling,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this.additionalScrollHeight=typeof L.additionalScrollHeight>"u"?0:L.additionalScrollHeight,this.accessibilityProvider=new f(L.accessibilityProvider),this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows",((I=L.transformOptimization)!==null&&I!==void 0?I:l.transformOptimization)&&(this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)"),this.disposables.add(w.Gesture.addTarget(this.rowsContainer)),this.scrollable=new o.Scrollable({forceIntegerValues:!0,smoothScrollDuration:(R=L.smoothScrolling)!==null&&R!==void 0&&R?125:0,scheduleAtNextAnimationFrame:K=>(0,k.scheduleAtNextAnimationFrame)(K)}),this.scrollableElement=this.disposables.add(new b.SmoothScrollableElement(this.rowsContainer,{alwaysConsumeMouseWheel:(F=L.alwaysConsumeMouseWheel)!==null&&F!==void 0?F:l.alwaysConsumeMouseWheel,horizontal:1,vertical:(O=L.verticalScrollMode)!==null&&O!==void 0?O:l.verticalScrollMode,useShadows:(x=L.useShadows)!==null&&x!==void 0?x:l.useShadows,mouseWheelScrollSensitivity:L.mouseWheelScrollSensitivity,fastScrollSensitivity:L.fastScrollSensitivity},this.scrollable)),this.domNode.appendChild(this.scrollableElement.getDomNode()),m.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),this.disposables.add((0,k.addDisposableListener)(this.rowsContainer,w.EventType.Change,K=>this.onTouchChange(K))),this.disposables.add((0,k.addDisposableListener)(this.scrollableElement.getDomNode(),"scroll",K=>K.target.scrollTop=0)),this.disposables.add((0,k.addDisposableListener)(this.domNode,"dragover",K=>this.onDragOver(this.toDragEvent(K)))),this.disposables.add((0,k.addDisposableListener)(this.domNode,"drop",K=>this.onDrop(this.toDragEvent(K)))),this.disposables.add((0,k.addDisposableListener)(this.domNode,"dragleave",K=>this.onDragLeave(this.toDragEvent(K)))),this.disposables.add((0,k.addDisposableListener)(this.domNode,"dragend",K=>this.onDragEnd(K))),this.setRowLineHeight=(M=L.setRowLineHeight)!==null&&M!==void 0?M:l.setRowLineHeight,this.setRowHeight=(P=L.setRowHeight)!==null&&P!==void 0?P:l.setRowHeight,this.supportDynamicHeights=(A=L.supportDynamicHeights)!==null&&A!==void 0?A:l.supportDynamicHeights,this.dnd=(B=L.dnd)!==null&&B!==void 0?B:l.dnd,this.layout()}get contentHeight(){return this.rangeMap.size}get horizontalScrolling(){return this._horizontalScrolling}set horizontalScrolling(m){if(m!==this._horizontalScrolling){if(m&&this.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");if(this._horizontalScrolling=m,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this._horizontalScrolling){for(const S of this.items)this.measureItemWidth(S);this.updateScrollWidth(),this.scrollableElement.setScrollDimensions({width:(0,k.getContentWidth)(this.domNode)}),this.rowsContainer.style.width=`${Math.max(this.scrollWidth||0,this.renderWidth)}px`}else this.scrollableElementWidthDelayer.cancel(),this.scrollableElement.setScrollDimensions({width:this.renderWidth,scrollWidth:this.renderWidth}),this.rowsContainer.style.width=""}}updateOptions(m){m.additionalScrollHeight!==void 0&&(this.additionalScrollHeight=m.additionalScrollHeight,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),m.smoothScrolling!==void 0&&this.scrollable.setSmoothScrollDuration(m.smoothScrolling?125:0),m.horizontalScrolling!==void 0&&(this.horizontalScrolling=m.horizontalScrolling),m.mouseWheelScrollSensitivity!==void 0&&this.scrollableElement.updateOptions({mouseWheelScrollSensitivity:m.mouseWheelScrollSensitivity}),m.fastScrollSensitivity!==void 0&&this.scrollableElement.updateOptions({fastScrollSensitivity:m.fastScrollSensitivity})}splice(m,S,E=[]){if(this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(m,S,E)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}}_splice(m,S,E=[]){const L=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),N={start:m,end:m+S},I=t.Range.intersect(L,N),R=new Map;for(let G=I.end-1;G>=I.start;G--){const te=this.items[G];if(te.dragStartDisposable.dispose(),te.checkedDisposable.dispose(),te.row){let Z=R.get(te.templateId);Z||(Z=[],R.set(te.templateId,Z));const X=this.renderers.get(te.templateId);X&&X.disposeElement&&X.disposeElement(te.element,G,te.row.templateData,te.size),Z.push(te.row)}te.row=null}const F={start:m+S,end:this.items.length},O=t.Range.intersect(F,L),x=t.Range.relativeComplement(F,L),M=E.map(G=>({id:String(this.itemId++),element:G,templateId:this.virtualDelegate.getTemplateId(G),size:this.virtualDelegate.getHeight(G),width:void 0,hasDynamicHeight:!!this.virtualDelegate.hasDynamicHeight&&this.virtualDelegate.hasDynamicHeight(G),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:i.Disposable.None,checkedDisposable:i.Disposable.None}));let P;m===0&&S>=this.items.length?(this.rangeMap=new s.RangeMap,this.rangeMap.splice(0,0,M),P=this.items,this.items=M):(this.rangeMap.splice(m,S,M),P=this.items.splice(m,S,...M));const A=E.length-S,B=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),K=(0,s.shift)(O,A),T=t.Range.intersect(B,K);for(let G=T.start;G<T.end;G++)this.updateItemInDOM(this.items[G],G);const ee=t.Range.relativeComplement(K,B);for(const G of ee)for(let te=G.start;te<G.end;te++)this.removeItemFromDOM(te);const J=x.map(G=>(0,s.shift)(G,A)),$=[{start:m,end:m+E.length},...J].map(G=>t.Range.intersect(B,G)),j=this.getNextToLastElement($);for(const G of $)for(let te=G.start;te<G.end;te++){const Z=this.items[te],X=R.get(Z.templateId),ie=X?.pop();this.insertItemInDOM(te,j,ie)}for(const G of R.values())for(const te of G)this.cache.release(te);return this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),P.map(G=>G.element)}eventuallyUpdateScrollDimensions(){this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=`${this._scrollHeight}px`,this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=(0,k.scheduleAtNextAnimationFrame)(()=>{this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight}),this.updateScrollWidth(),this.scrollableElementUpdateDisposable=null}))}eventuallyUpdateScrollWidth(){if(!this.horizontalScrolling){this.scrollableElementWidthDelayer.cancel();return}this.scrollableElementWidthDelayer.trigger(()=>this.updateScrollWidth())}updateScrollWidth(){if(!this.horizontalScrolling)return;let m=0;for(const S of this.items)typeof S.width<"u"&&(m=Math.max(m,S.width));this.scrollWidth=m,this.scrollableElement.setScrollDimensions({scrollWidth:m===0?0:m+10})}rerender(){if(this.supportDynamicHeights){for(const m of this.items)m.lastDynamicHeightWidth=void 0;this._rerender(this.lastRenderTop,this.lastRenderHeight)}}get length(){return this.items.length}get renderHeight(){return this.scrollableElement.getScrollDimensions().height}element(m){return this.items[m].element}domElement(m){const S=this.items[m].row;return S&&S.domNode}elementHeight(m){return this.items[m].size}elementTop(m){return this.rangeMap.positionAt(m)}indexAt(m){return this.rangeMap.indexAt(m)}indexAfter(m){return this.rangeMap.indexAfter(m)}layout(m,S){const E={height:typeof m=="number"?m:(0,k.getContentHeight)(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,E.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(E),typeof S<"u"&&(this.renderWidth=S,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight)),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:typeof S=="number"?S:(0,k.getContentWidth)(this.domNode)})}render(m,S,E,L,N,I=!1){const R=this.getRenderRange(S,E),F=t.Range.relativeComplement(R,m),O=t.Range.relativeComplement(m,R),x=this.getNextToLastElement(F);if(I){const M=t.Range.intersect(m,R);for(let P=M.start;P<M.end;P++)this.updateItemInDOM(this.items[P],P)}for(const M of F)for(let P=M.start;P<M.end;P++)this.insertItemInDOM(P,x);for(const M of O)for(let P=M.start;P<M.end;P++)this.removeItemFromDOM(P);L!==void 0&&(this.rowsContainer.style.left=`-${L}px`),this.rowsContainer.style.top=`-${S}px`,this.horizontalScrolling&&N!==void 0&&(this.rowsContainer.style.width=`${Math.max(N,this.renderWidth)}px`),this.lastRenderTop=S,this.lastRenderHeight=E}insertItemInDOM(m,S,E){const L=this.items[m];L.row||(L.row=E??this.cache.alloc(L.templateId));const N=this.accessibilityProvider.getRole(L.element)||"listitem";L.row.domNode.setAttribute("role",N);const I=this.accessibilityProvider.isChecked(L.element);if(typeof I=="boolean")L.row.domNode.setAttribute("aria-checked",String(!!I));else if(I){const O=x=>L.row.domNode.setAttribute("aria-checked",String(!!x));O(I.value),L.checkedDisposable=I.onDidChange(O)}L.row.domNode.parentElement||(S?this.rowsContainer.insertBefore(L.row.domNode,S):this.rowsContainer.appendChild(L.row.domNode)),this.updateItemInDOM(L,m);const R=this.renderers.get(L.templateId);if(!R)throw new Error(`No renderer found for template id ${L.templateId}`);R?.renderElement(L.element,m,L.row.templateData,L.size);const F=this.dnd.getDragURI(L.element);L.dragStartDisposable.dispose(),L.row.domNode.draggable=!!F,F&&(L.dragStartDisposable=(0,k.addDisposableListener)(L.row.domNode,"dragstart",O=>this.onDragStart(L.element,F,O))),this.horizontalScrolling&&(this.measureItemWidth(L),this.eventuallyUpdateScrollWidth())}measureItemWidth(m){if(!m.row||!m.row.domNode)return;m.row.domNode.style.width=y.isFirefox?"-moz-fit-content":"fit-content",m.width=(0,k.getContentWidth)(m.row.domNode);const S=window.getComputedStyle(m.row.domNode);S.paddingLeft&&(m.width+=parseFloat(S.paddingLeft)),S.paddingRight&&(m.width+=parseFloat(S.paddingRight)),m.row.domNode.style.width=""}updateItemInDOM(m,S){m.row.domNode.style.top=`${this.elementTop(S)}px`,this.setRowHeight&&(m.row.domNode.style.height=`${m.size}px`),this.setRowLineHeight&&(m.row.domNode.style.lineHeight=`${m.size}px`),m.row.domNode.setAttribute("data-index",`${S}`),m.row.domNode.setAttribute("data-last-element",S===this.length-1?"true":"false"),m.row.domNode.setAttribute("data-parity",S%2==0?"even":"odd"),m.row.domNode.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(m.element,S,this.length))),m.row.domNode.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(m.element,S))),m.row.domNode.setAttribute("id",this.getElementDomId(S)),m.row.domNode.classList.toggle("drop-target",m.dropTarget)}removeItemFromDOM(m){const S=this.items[m];if(S.dragStartDisposable.dispose(),S.checkedDisposable.dispose(),S.row){const E=this.renderers.get(S.templateId);E&&E.disposeElement&&E.disposeElement(S.element,m,S.row.templateData,S.size),this.cache.release(S.row),S.row=null}this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()}getScrollTop(){return this.scrollableElement.getScrollPosition().scrollTop}setScrollTop(m,S){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:m,reuseAnimation:S})}get scrollTop(){return this.getScrollTop()}set scrollTop(m){this.setScrollTop(m)}get scrollHeight(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.additionalScrollHeight}get onMouseClick(){return n.Event.map(this.disposables.add(new D.DomEmitter(this.domNode,"click")).event,m=>this.toMouseEvent(m),this.disposables)}get onMouseDblClick(){return n.Event.map(this.disposables.add(new D.DomEmitter(this.domNode,"dblclick")).event,m=>this.toMouseEvent(m),this.disposables)}get onMouseMiddleClick(){return n.Event.filter(n.Event.map(this.disposables.add(new D.DomEmitter(this.domNode,"auxclick")).event,m=>this.toMouseEvent(m),this.disposables),m=>m.browserEvent.button===1,this.disposables)}get onMouseDown(){return n.Event.map(this.disposables.add(new D.DomEmitter(this.domNode,"mousedown")).event,m=>this.toMouseEvent(m),this.disposables)}get onMouseOver(){return n.Event.map(this.disposables.add(new D.DomEmitter(this.domNode,"mouseover")).event,m=>this.toMouseEvent(m),this.disposables)}get onContextMenu(){return n.Event.any(n.Event.map(this.disposables.add(new D.DomEmitter(this.domNode,"contextmenu")).event,m=>this.toMouseEvent(m),this.disposables),n.Event.map(this.disposables.add(new D.DomEmitter(this.domNode,w.EventType.Contextmenu)).event,m=>this.toGestureEvent(m),this.disposables))}get onTouchStart(){return n.Event.map(this.disposables.add(new D.DomEmitter(this.domNode,"touchstart")).event,m=>this.toTouchEvent(m),this.disposables)}get onTap(){return n.Event.map(this.disposables.add(new D.DomEmitter(this.rowsContainer,w.EventType.Tap)).event,m=>this.toGestureEvent(m),this.disposables)}toMouseEvent(m){const S=this.getItemIndexFromEventTarget(m.target||null),E=typeof S>"u"?void 0:this.items[S],L=E&&E.element;return{browserEvent:m,index:S,element:L}}toTouchEvent(m){const S=this.getItemIndexFromEventTarget(m.target||null),E=typeof S>"u"?void 0:this.items[S],L=E&&E.element;return{browserEvent:m,index:S,element:L}}toGestureEvent(m){const S=this.getItemIndexFromEventTarget(m.initialTarget||null),E=typeof S>"u"?void 0:this.items[S],L=E&&E.element;return{browserEvent:m,index:S,element:L}}toDragEvent(m){const S=this.getItemIndexFromEventTarget(m.target||null),E=typeof S>"u"?void 0:this.items[S],L=E&&E.element;return{browserEvent:m,index:S,element:L}}onScroll(m){try{const S=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);this.render(S,m.scrollTop,m.height,m.scrollLeft,m.scrollWidth),this.supportDynamicHeights&&this._rerender(m.scrollTop,m.height,m.inSmoothScrolling)}catch(S){throw console.error("Got bad scroll event:",m),S}}onTouchChange(m){m.preventDefault(),m.stopPropagation(),this.scrollTop-=m.translationY}onDragStart(m,S,E){var L,N;if(!E.dataTransfer)return;const I=this.dnd.getDragElements(m);if(E.dataTransfer.effectAllowed="copyMove",E.dataTransfer.setData(v.DataTransfers.TEXT,S),E.dataTransfer.setDragImage){let R;this.dnd.getDragLabel&&(R=this.dnd.getDragLabel(I,E)),typeof R>"u"&&(R=String(I.length));const F=(0,k.$)(".monaco-drag-image");F.textContent=R,document.body.appendChild(F),E.dataTransfer.setDragImage(F,-10,-10),setTimeout(()=>document.body.removeChild(F),0)}this.currentDragData=new a(I),v.StaticDND.CurrentDragAndDropData=new r(I),(N=(L=this.dnd).onDragStart)===null||N===void 0||N.call(L,this.currentDragData,E)}onDragOver(m){var S;if(m.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),v.StaticDND.CurrentDragAndDropData&&v.StaticDND.CurrentDragAndDropData.getData()==="vscode-ui"||(this.setupDragAndDropScrollTopAnimation(m.browserEvent),!m.browserEvent.dataTransfer))return!1;if(!this.currentDragData)if(v.StaticDND.CurrentDragAndDropData)this.currentDragData=v.StaticDND.CurrentDragAndDropData;else{if(!m.browserEvent.dataTransfer.types)return!1;this.currentDragData=new c}const E=this.dnd.onDragOver(this.currentDragData,m.element,m.index,m.browserEvent);if(this.canDrop=typeof E=="boolean"?E:E.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;m.browserEvent.dataTransfer.dropEffect=typeof E!="boolean"&&E.effect===0?"copy":"move";let L;if(typeof E!="boolean"&&E.feedback?L=E.feedback:typeof m.index>"u"?L=[-1]:L=[m.index],L=(0,C.distinct)(L).filter(N=>N>=-1&&N<this.length).sort((N,I)=>N-I),L=L[0]===-1?[-1]:L,g(this.currentDragFeedback,L))return!0;if(this.currentDragFeedback=L,this.currentDragFeedbackDisposable.dispose(),L[0]===-1)this.domNode.classList.add("drop-target"),this.rowsContainer.classList.add("drop-target"),this.currentDragFeedbackDisposable=(0,i.toDisposable)(()=>{this.domNode.classList.remove("drop-target"),this.rowsContainer.classList.remove("drop-target")});else{for(const N of L){const I=this.items[N];I.dropTarget=!0,(S=I.row)===null||S===void 0||S.domNode.classList.add("drop-target")}this.currentDragFeedbackDisposable=(0,i.toDisposable)(()=>{var N;for(const I of L){const R=this.items[I];R.dropTarget=!1,(N=R.row)===null||N===void 0||N.domNode.classList.remove("drop-target")}})}return!0}onDragLeave(m){var S,E;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=(0,h.disposableTimeout)(()=>this.clearDragOverFeedback(),100),this.currentDragData&&((E=(S=this.dnd).onDragLeave)===null||E===void 0||E.call(S,this.currentDragData,m.element,m.index,m.browserEvent))}onDrop(m){if(!this.canDrop)return;const S=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,v.StaticDND.CurrentDragAndDropData=void 0,!(!S||!m.browserEvent.dataTransfer)&&(m.browserEvent.preventDefault(),S.update(m.browserEvent.dataTransfer),this.dnd.drop(S,m.element,m.index,m.browserEvent))}onDragEnd(m){var S,E;this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,v.StaticDND.CurrentDragAndDropData=void 0,(E=(S=this.dnd).onDragEnd)===null||E===void 0||E.call(S,m)}clearDragOverFeedback(){this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=i.Disposable.None}setupDragAndDropScrollTopAnimation(m){if(!this.dragOverAnimationDisposable){const S=(0,k.getTopLeftOffset)(this.domNode).top;this.dragOverAnimationDisposable=(0,k.animate)(this.animateDragAndDropScrollTop.bind(this,S))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=(0,h.disposableTimeout)(()=>{this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},1e3),this.dragOverMouseY=m.pageY}animateDragAndDropScrollTop(m){if(this.dragOverMouseY===void 0)return;const S=this.dragOverMouseY-m,E=this.renderHeight-35;S<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(S-35))):S>E&&(this.scrollTop+=Math.min(14,Math.floor(.3*(S-E))))}teardownDragAndDropScrollTopAnimation(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}getItemIndexFromEventTarget(m){const S=this.scrollableElement.getDomNode();let E=m;for(;E instanceof HTMLElement&&E!==this.rowsContainer&&S.contains(E);){const L=E.getAttribute("data-index");if(L){const N=Number(L);if(!isNaN(N))return N}E=E.parentElement}}getRenderRange(m,S){return{start:this.rangeMap.indexAt(m),end:this.rangeMap.indexAfter(m+S-1)}}_rerender(m,S,E){const L=this.getRenderRange(m,S);let N,I;m===this.elementTop(L.start)?(N=L.start,I=0):L.end-L.start>1&&(N=L.start+1,I=this.elementTop(N)-m);let R=0;for(;;){const F=this.getRenderRange(m,S);let O=!1;for(let x=F.start;x<F.end;x++){const M=this.probeDynamicHeight(x);M!==0&&this.rangeMap.splice(x,1,[this.items[x]]),R+=M,O=O||M!==0}if(!O){R!==0&&this.eventuallyUpdateScrollDimensions();const x=t.Range.relativeComplement(L,F);for(const P of x)for(let A=P.start;A<P.end;A++)this.items[A].row&&this.removeItemFromDOM(A);const M=t.Range.relativeComplement(F,L);for(const P of M)for(let A=P.start;A<P.end;A++){const B=A+1,K=B<this.items.length?this.items[B].row:null,T=K?K.domNode:null;this.insertItemInDOM(A,T)}for(let P=F.start;P<F.end;P++)this.items[P].row&&this.updateItemInDOM(this.items[P],P);if(typeof N=="number"){const P=this.scrollable.getFutureScrollPosition().scrollTop-m,A=this.elementTop(N)-I+P;this.setScrollTop(A,E)}this._onDidChangeContentHeight.fire(this.contentHeight);return}}}probeDynamicHeight(m){var S,E,L;const N=this.items[m];if(this.virtualDelegate.getDynamicHeight){const O=this.virtualDelegate.getDynamicHeight(N.element);if(O!==null){const x=N.size;return N.size=O,N.lastDynamicHeightWidth=this.renderWidth,O-x}}if(!N.hasDynamicHeight||N.lastDynamicHeightWidth===this.renderWidth||this.virtualDelegate.hasDynamicHeight&&!this.virtualDelegate.hasDynamicHeight(N.element))return 0;const I=N.size;if(!this.setRowHeight&&N.row){const O=N.row.domNode.offsetHeight;return N.size=O,N.lastDynamicHeightWidth=this.renderWidth,O-I}const R=this.cache.alloc(N.templateId);R.domNode.style.height="",this.rowsContainer.appendChild(R.domNode);const F=this.renderers.get(N.templateId);return F&&(F.renderElement(N.element,m,R.templateData,void 0),(S=F.disposeElement)===null||S===void 0||S.call(F,N.element,m,R.templateData,void 0)),N.size=R.domNode.offsetHeight,(L=(E=this.virtualDelegate).setDynamicHeight)===null||L===void 0||L.call(E,N.element,N.size),N.lastDynamicHeightWidth=this.renderWidth,this.rowsContainer.removeChild(R.domNode),this.cache.release(R),N.size-I}getNextToLastElement(m){const S=m[m.length-1];if(!S)return null;const E=this.items[S.end];return!E||!E.row?null:E.row.domNode}getElementDomId(m){return`${this.domId}_${m}`}dispose(){var m;if(this.items){for(const S of this.items)if(S.row){const E=this.renderers.get(S.row.templateId);E&&((m=E.disposeElement)===null||m===void 0||m.call(E,S.element,-1,S.row.templateData,void 0),E.disposeTemplate(S.row.templateData))}this.items=[]}this.domNode&&this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),(0,i.dispose)(this.disposables)}}_.InstanceCount=0,Ie([u.memoize],_.prototype,"onMouseClick",null),Ie([u.memoize],_.prototype,"onMouseDblClick",null),Ie([u.memoize],_.prototype,"onMouseMiddleClick",null),Ie([u.memoize],_.prototype,"onMouseDown",null),Ie([u.memoize],_.prototype,"onMouseOver",null),Ie([u.memoize],_.prototype,"onContextMenu",null),Ie([u.memoize],_.prototype,"onTouchStart",null),Ie([u.memoize],_.prototype,"onTap",null),e.ListView=_}),define(oe[113],se([1,0,7,100,48,62,49,326,18,10,31,103,6,63,2,124,40,17,19,325,200,228]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.List=e.DefaultStyleController=e.MouseController=e.isSelectionRangeChangeEvent=e.isSelectionSingleChangeEvent=e.DefaultKeyboardNavigationDelegate=e.TypeNavigationMode=e.isButton=e.isMonacoEditor=e.isInputElement=void 0;class g{constructor(H){this.trait=H,this.renderedElements=[]}get templateId(){return`template:${this.trait.name}`}renderTemplate(H){return H}renderElement(H,ae,Y){const U=this.renderedElements.findIndex(le=>le.templateData===Y);if(U>=0){const le=this.renderedElements[U];this.trait.unrender(Y),le.index=ae}else{const le={index:ae,templateData:Y};this.renderedElements.push(le)}this.trait.renderIndex(ae,Y)}splice(H,ae,Y){const U=[];for(const le of this.renderedElements)le.index<H?U.push(le):le.index>=H+ae&&U.push({index:le.index+Y-ae,templateData:le.templateData});this.renderedElements=U}renderIndexes(H){for(const{index:ae,templateData:Y}of this.renderedElements)H.indexOf(ae)>-1&&this.trait.renderIndex(ae,Y)}disposeTemplate(H){const ae=this.renderedElements.findIndex(Y=>Y.templateData===H);ae<0||this.renderedElements.splice(ae,1)}}class f{constructor(H){this._trait=H,this.length=0,this.indexes=[],this.sortedIndexes=[],this._onChange=new i.Emitter,this.onChange=this._onChange.event}get name(){return this._trait}get renderer(){return new g(this)}splice(H,ae,Y){var U;ae=Math.max(0,Math.min(ae,this.length-H));const le=Y.length-ae,z=H+ae,Q=[...this.sortedIndexes.filter(V=>V<H),...Y.map((V,ne)=>V?ne+H:-1).filter(V=>V!==-1),...this.sortedIndexes.filter(V=>V>=z).map(V=>V+le)],W=this.length+le;if(this.sortedIndexes.length>0&&Q.length===0&&W>0){const V=(U=this.sortedIndexes.find(ne=>ne>=H))!==null&&U!==void 0?U:W-1;Q.push(Math.min(V,W-1))}this.renderer.splice(H,ae,Y.length),this._set(Q,Q),this.length=W}renderIndex(H,ae){ae.classList.toggle(this._trait,this.contains(H))}unrender(H){H.classList.remove(this._trait)}set(H,ae){return this._set(H,[...H].sort(j),ae)}_set(H,ae,Y){const U=this.indexes,le=this.sortedIndexes;this.indexes=H,this.sortedIndexes=ae;const z=J(le,H);return this.renderer.renderIndexes(z),this._onChange.fire({indexes:H,browserEvent:Y}),U}get(){return this.indexes}contains(H){return(0,C.binarySearch)(this.sortedIndexes,H,j)>=0}dispose(){(0,o.dispose)(this._onChange)}}Ie([n.memoize],f.prototype,"renderer",null);class _ extends f{constructor(H){super("selected"),this.setAriaSelected=H}renderIndex(H,ae){super.renderIndex(H,ae),this.setAriaSelected&&(this.contains(H)?ae.setAttribute("aria-selected","true"):ae.setAttribute("aria-selected","false"))}}class p{constructor(H,ae,Y){this.trait=H,this.view=ae,this.identityProvider=Y}splice(H,ae,Y){if(!this.identityProvider)return this.trait.splice(H,ae,Y.map(()=>!1));const U=this.trait.get().map(z=>this.identityProvider.getId(this.view.element(z)).toString()),le=Y.map(z=>U.indexOf(this.identityProvider.getId(z).toString())>-1);this.trait.splice(H,ae,le)}}function m(ie){return ie.tagName==="INPUT"||ie.tagName==="TEXTAREA"}e.isInputElement=m;function S(ie){return ie.classList.contains("monaco-editor")?!0:ie.classList.contains("monaco-list")||!ie.parentElement?!1:S(ie.parentElement)}e.isMonacoEditor=S;function E(ie){return ie.tagName==="A"&&ie.classList.contains("monaco-button")||ie.tagName==="DIV"&&ie.classList.contains("monaco-button-dropdown")?!0:ie.classList.contains("monaco-list")||!ie.parentElement?!1:E(ie.parentElement)}e.isButton=E;class L{constructor(H,ae,Y){this.list=H,this.view=ae,this.disposables=new o.DisposableStore,this.multipleSelectionDisposables=new o.DisposableStore,this.onKeyDown.filter(U=>U.keyCode===3).on(this.onEnter,this,this.disposables),this.onKeyDown.filter(U=>U.keyCode===16).on(this.onUpArrow,this,this.disposables),this.onKeyDown.filter(U=>U.keyCode===18).on(this.onDownArrow,this,this.disposables),this.onKeyDown.filter(U=>U.keyCode===11).on(this.onPageUpArrow,this,this.disposables),this.onKeyDown.filter(U=>U.keyCode===12).on(this.onPageDownArrow,this,this.disposables),this.onKeyDown.filter(U=>U.keyCode===9).on(this.onEscape,this,this.disposables),Y.multipleSelectionSupport!==!1&&this.onKeyDown.filter(U=>(l.isMacintosh?U.metaKey:U.ctrlKey)&&U.keyCode===31).on(this.onCtrlA,this,this.multipleSelectionDisposables)}get onKeyDown(){return this.disposables.add(i.Event.chain(this.disposables.add(new v.DomEmitter(this.view.domNode,"keydown")).event).filter(H=>!m(H.target)).map(H=>new k.StandardKeyboardEvent(H)))}updateOptions(H){H.multipleSelectionSupport!==void 0&&(this.multipleSelectionDisposables.clear(),H.multipleSelectionSupport&&this.onKeyDown.filter(ae=>(l.isMacintosh?ae.metaKey:ae.ctrlKey)&&ae.keyCode===31).on(this.onCtrlA,this,this.multipleSelectionDisposables))}onEnter(H){H.preventDefault(),H.stopPropagation(),this.list.setSelection(this.list.getFocus(),H.browserEvent)}onUpArrow(H){H.preventDefault(),H.stopPropagation(),this.list.focusPrevious(1,!1,H.browserEvent);const ae=this.list.getFocus()[0];this.list.setAnchor(ae),this.list.reveal(ae),this.view.domNode.focus()}onDownArrow(H){H.preventDefault(),H.stopPropagation(),this.list.focusNext(1,!1,H.browserEvent);const ae=this.list.getFocus()[0];this.list.setAnchor(ae),this.list.reveal(ae),this.view.domNode.focus()}onPageUpArrow(H){H.preventDefault(),H.stopPropagation(),this.list.focusPreviousPage(H.browserEvent);const ae=this.list.getFocus()[0];this.list.setAnchor(ae),this.list.reveal(ae),this.view.domNode.focus()}onPageDownArrow(H){H.preventDefault(),H.stopPropagation(),this.list.focusNextPage(H.browserEvent);const ae=this.list.getFocus()[0];this.list.setAnchor(ae),this.list.reveal(ae),this.view.domNode.focus()}onCtrlA(H){H.preventDefault(),H.stopPropagation(),this.list.setSelection((0,C.range)(this.list.length),H.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus()}onEscape(H){this.list.getSelection().length&&(H.preventDefault(),H.stopPropagation(),this.list.setSelection([],H.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus())}dispose(){this.disposables.dispose(),this.multipleSelectionDisposables.dispose()}}Ie([n.memoize],L.prototype,"onKeyDown",null);var N;(function(ie){ie[ie.Automatic=0]="Automatic",ie[ie.Trigger=1]="Trigger"})(N=e.TypeNavigationMode||(e.TypeNavigationMode={}));var I;(function(ie){ie[ie.Idle=0]="Idle",ie[ie.Typing=1]="Typing"})(I||(I={})),e.DefaultKeyboardNavigationDelegate=new class{mightProducePrintableCharacter(ie){return ie.ctrlKey||ie.metaKey||ie.altKey?!1:ie.keyCode>=31&&ie.keyCode<=56||ie.keyCode>=21&&ie.keyCode<=30||ie.keyCode>=93&&ie.keyCode<=102||ie.keyCode>=80&&ie.keyCode<=90}};class R{constructor(H,ae,Y,U,le){this.list=H,this.view=ae,this.keyboardNavigationLabelProvider=Y,this.keyboardNavigationEventFilter=U,this.delegate=le,this.enabled=!1,this.state=I.Idle,this.mode=N.Automatic,this.triggered=!1,this.previouslyFocused=-1,this.enabledDisposables=new o.DisposableStore,this.disposables=new o.DisposableStore,this.updateOptions(H.options)}updateOptions(H){var ae,Y;!((ae=H.typeNavigationEnabled)!==null&&ae!==void 0)||ae?this.enable():this.disable(),this.mode=(Y=H.typeNavigationMode)!==null&&Y!==void 0?Y:N.Automatic}enable(){if(this.enabled)return;let H=!1;const ae=this.enabledDisposables.add(i.Event.chain(this.enabledDisposables.add(new v.DomEmitter(this.view.domNode,"keydown")).event)).filter(U=>!m(U.target)).filter(()=>this.mode===N.Automatic||this.triggered).map(U=>new k.StandardKeyboardEvent(U)).filter(U=>H||this.keyboardNavigationEventFilter(U)).filter(U=>this.delegate.mightProducePrintableCharacter(U)).forEach(v.stopEvent).map(U=>U.browserEvent.key).event,Y=i.Event.debounce(ae,()=>null,800,void 0,void 0,this.enabledDisposables);i.Event.reduce(i.Event.any(ae,Y),(U,le)=>le===null?null:(U||"")+le,void 0,this.enabledDisposables)(this.onInput,this,this.enabledDisposables),Y(this.onClear,this,this.enabledDisposables),ae(()=>H=!0,void 0,this.enabledDisposables),Y(()=>H=!1,void 0,this.enabledDisposables),this.enabled=!0,this.triggered=!1}disable(){!this.enabled||(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)}onClear(){var H;const ae=this.list.getFocus();if(ae.length>0&&ae[0]===this.previouslyFocused){const Y=(H=this.list.options.accessibilityProvider)===null||H===void 0?void 0:H.getAriaLabel(this.list.element(ae[0]));Y&&(0,w.alert)(Y)}this.previouslyFocused=-1}onInput(H){if(!H){this.state=I.Idle,this.triggered=!1;return}const ae=this.list.getFocus(),Y=ae.length>0?ae[0]:0,U=this.state===I.Idle?1:0;this.state=I.Typing;for(let le=0;le<this.list.length;le++){const z=(Y+le+U)%this.list.length,Q=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(this.view.element(z)),W=Q&&Q.toString();if(typeof W>"u"||(0,t.matchesPrefix)(H,W)){this.previouslyFocused=Y,this.list.setFocus([z]),this.list.reveal(z);return}}}dispose(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()}}class F{constructor(H,ae){this.list=H,this.view=ae,this.disposables=new o.DisposableStore,this.disposables.add(i.Event.chain(this.disposables.add(new v.DomEmitter(ae.domNode,"keydown")).event)).filter(Y=>!m(Y.target)).map(Y=>new k.StandardKeyboardEvent(Y)).filter(Y=>Y.keyCode===2&&!Y.ctrlKey&&!Y.metaKey&&!Y.shiftKey&&!Y.altKey).on(this.onTab,this,this.disposables)}onTab(H){if(H.target!==this.view.domNode)return;const ae=this.list.getFocus();if(ae.length===0)return;const Y=this.view.domElement(ae[0]);if(!Y)return;const U=Y.querySelector("[tabIndex]");if(!U||!(U instanceof HTMLElement)||U.tabIndex===-1)return;const le=window.getComputedStyle(U);le.visibility==="hidden"||le.display==="none"||(H.preventDefault(),H.stopPropagation(),U.focus())}dispose(){this.disposables.dispose()}}function O(ie){return l.isMacintosh?ie.browserEvent.metaKey:ie.browserEvent.ctrlKey}e.isSelectionSingleChangeEvent=O;function x(ie){return ie.browserEvent.shiftKey}e.isSelectionRangeChangeEvent=x;function M(ie){return ie instanceof MouseEvent&&ie.button===2}const P={isSelectionSingleChangeEvent:O,isSelectionRangeChangeEvent:x};class A{constructor(H){this.list=H,this.disposables=new o.DisposableStore,this._onPointer=new i.Emitter,this.onPointer=this._onPointer.event,H.options.multipleSelectionSupport!==!1&&(this.multipleSelectionController=this.list.options.multipleSelectionController||P),this.mouseSupport=typeof H.options.mouseSupport>"u"||!!H.options.mouseSupport,this.mouseSupport&&(H.onMouseDown(this.onMouseDown,this,this.disposables),H.onContextMenu(this.onContextMenu,this,this.disposables),H.onMouseDblClick(this.onDoubleClick,this,this.disposables),H.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(D.Gesture.addTarget(H.getHTMLElement()))),i.Event.any(H.onMouseClick,H.onMouseMiddleClick,H.onTap)(this.onViewPointer,this,this.disposables)}updateOptions(H){H.multipleSelectionSupport!==void 0&&(this.multipleSelectionController=void 0,H.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||P))}isSelectionSingleChangeEvent(H){return this.multipleSelectionController?this.multipleSelectionController.isSelectionSingleChangeEvent(H):!1}isSelectionRangeChangeEvent(H){return this.multipleSelectionController?this.multipleSelectionController.isSelectionRangeChangeEvent(H):!1}isSelectionChangeEvent(H){return this.isSelectionSingleChangeEvent(H)||this.isSelectionRangeChangeEvent(H)}onMouseDown(H){S(H.browserEvent.target)||document.activeElement!==H.browserEvent.target&&this.list.domFocus()}onContextMenu(H){if(S(H.browserEvent.target))return;const ae=typeof H.index>"u"?[]:[H.index];this.list.setFocus(ae,H.browserEvent)}onViewPointer(H){if(!this.mouseSupport||m(H.browserEvent.target)||S(H.browserEvent.target))return;const ae=H.index;if(typeof ae>"u"){this.list.setFocus([],H.browserEvent),this.list.setSelection([],H.browserEvent),this.list.setAnchor(void 0);return}if(this.isSelectionRangeChangeEvent(H))return this.changeSelection(H);if(this.isSelectionChangeEvent(H))return this.changeSelection(H);this.list.setFocus([ae],H.browserEvent),this.list.setAnchor(ae),M(H.browserEvent)||this.list.setSelection([ae],H.browserEvent),this._onPointer.fire(H)}onDoubleClick(H){if(m(H.browserEvent.target)||S(H.browserEvent.target)||this.isSelectionChangeEvent(H))return;const ae=this.list.getFocus();this.list.setSelection(ae,H.browserEvent)}changeSelection(H){const ae=H.index;let Y=this.list.getAnchor();if(this.isSelectionRangeChangeEvent(H)){typeof Y>"u"&&(Y=this.list.getFocus()[0]??ae,this.list.setAnchor(Y));const U=Math.min(Y,ae),le=Math.max(Y,ae),z=(0,C.range)(U,le+1),Q=this.list.getSelection(),W=ee(J(Q,[Y]),Y);if(W.length===0)return;const V=J(z,$(Q,W));this.list.setSelection(V,H.browserEvent),this.list.setFocus([ae],H.browserEvent)}else if(this.isSelectionSingleChangeEvent(H)){const U=this.list.getSelection(),le=U.filter(z=>z!==ae);this.list.setFocus([ae]),this.list.setAnchor(ae),U.length===le.length?this.list.setSelection([...le,ae],H.browserEvent):this.list.setSelection(le,H.browserEvent)}}dispose(){this.disposables.dispose()}}e.MouseController=A;class B{constructor(H,ae){this.styleElement=H,this.selectorSuffix=ae}style(H){const ae=this.selectorSuffix&&`.${this.selectorSuffix}`,Y=[];H.listBackground&&(H.listBackground.isOpaque()?Y.push(`.monaco-list${ae} .monaco-list-rows { background: ${H.listBackground}; }`):l.isMacintosh||console.warn(`List with id '${this.selectorSuffix}' was styled with a non-opaque background color. This will break sub-pixel antialiasing.`)),H.listFocusBackground&&(Y.push(`.monaco-list${ae}:focus .monaco-list-row.focused { background-color: ${H.listFocusBackground}; }`),Y.push(`.monaco-list${ae}:focus .monaco-list-row.focused:hover { background-color: ${H.listFocusBackground}; }`)),H.listFocusForeground&&Y.push(`.monaco-list${ae}:focus .monaco-list-row.focused { color: ${H.listFocusForeground}; }`),H.listActiveSelectionBackground&&(Y.push(`.monaco-list${ae}:focus .monaco-list-row.selected { background-color: ${H.listActiveSelectionBackground}; }`),Y.push(`.monaco-list${ae}:focus .monaco-list-row.selected:hover { background-color: ${H.listActiveSelectionBackground}; }`)),H.listActiveSelectionForeground&&Y.push(`.monaco-list${ae}:focus .monaco-list-row.selected { color: ${H.listActiveSelectionForeground}; }`),H.listActiveSelectionIconForeground&&Y.push(`.monaco-list${ae}:focus .monaco-list-row.selected .codicon { color: ${H.listActiveSelectionIconForeground}; }`),H.listFocusAndSelectionOutline&&Y.push(`.monaco-list${ae}:focus .monaco-list-row.selected { outline-color: ${H.listFocusAndSelectionOutline} !important; }`),H.listFocusAndSelectionBackground&&Y.push(` .monaco-drag-image, .monaco-list${ae}:focus .monaco-list-row.selected.focused { background-color: ${H.listFocusAndSelectionBackground}; } `),H.listFocusAndSelectionForeground&&Y.push(` .monaco-drag-image, .monaco-list${ae}:focus .monaco-list-row.selected.focused { color: ${H.listFocusAndSelectionForeground}; } `),H.listInactiveFocusForeground&&(Y.push(`.monaco-list${ae} .monaco-list-row.focused { color: ${H.listInactiveFocusForeground}; }`),Y.push(`.monaco-list${ae} .monaco-list-row.focused:hover { color: ${H.listInactiveFocusForeground}; }`)),H.listInactiveSelectionIconForeground&&Y.push(`.monaco-list${ae} .monaco-list-row.focused .codicon { color: ${H.listInactiveSelectionIconForeground}; }`),H.listInactiveFocusBackground&&(Y.push(`.monaco-list${ae} .monaco-list-row.focused { background-color: ${H.listInactiveFocusBackground}; }`),Y.push(`.monaco-list${ae} .monaco-list-row.focused:hover { background-color: ${H.listInactiveFocusBackground}; }`)),H.listInactiveSelectionBackground&&(Y.push(`.monaco-list${ae} .monaco-list-row.selected { background-color: ${H.listInactiveSelectionBackground}; }`),Y.push(`.monaco-list${ae} .monaco-list-row.selected:hover { background-color: ${H.listInactiveSelectionBackground}; }`)),H.listInactiveSelectionForeground&&Y.push(`.monaco-list${ae} .monaco-list-row.selected { color: ${H.listInactiveSelectionForeground}; }`),H.listHoverBackground&&Y.push(`.monaco-list${ae}:not(.drop-target) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: ${H.listHoverBackground}; }`),H.listHoverForeground&&Y.push(`.monaco-list${ae} .monaco-list-row:hover:not(.selected):not(.focused) { color: ${H.listHoverForeground}; }`),H.listSelectionOutline&&Y.push(`.monaco-list${ae} .monaco-list-row.selected { outline: 1px dotted ${H.listSelectionOutline}; outline-offset: -1px; }`),H.listFocusOutline&&Y.push(` .monaco-drag-image, .monaco-list${ae}:focus .monaco-list-row.focused { outline: 1px solid ${H.listFocusOutline}; outline-offset: -1px; } .monaco-workbench.context-menu-visible .monaco-list${ae}.last-focused .monaco-list-row.focused { outline: 1px solid ${H.listFocusOutline}; outline-offset: -1px; } `),H.listInactiveFocusOutline&&Y.push(`.monaco-list${ae} .monaco-list-row.focused { outline: 1px dotted ${H.listInactiveFocusOutline}; outline-offset: -1px; }`),H.listHoverOutline&&Y.push(`.monaco-list${ae} .monaco-list-row:hover { outline: 1px dashed ${H.listHoverOutline}; outline-offset: -1px; }`),H.listDropBackground&&Y.push(` .monaco-list${ae}.drop-target, .monaco-list${ae} .monaco-list-rows.drop-target, .monaco-list${ae} .monaco-list-row.drop-target { background-color: ${H.listDropBackground} !important; color: inherit !important; } `),H.tableColumnsBorder&&Y.push(` .monaco-table:hover > .monaco-split-view2, .monaco-table:hover > .monaco-split-view2 .monaco-sash.vertical::before { border-color: ${H.tableColumnsBorder}; }`),H.tableOddRowsBackgroundColor&&Y.push(` .monaco-table .monaco-list-row[data-parity=odd]:not(.focused):not(.selected):not(:hover) .monaco-table-tr, .monaco-table .monaco-list:not(:focus) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr, .monaco-table .monaco-list:not(.focused) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr { background-color: ${H.tableOddRowsBackgroundColor}; } `),this.styleElement.textContent=Y.join(` `)}}e.DefaultStyleController=B;const K={listFocusBackground:u.Color.fromHex("#7FB0D0"),listActiveSelectionBackground:u.Color.fromHex("#0E639C"),listActiveSelectionForeground:u.Color.fromHex("#FFFFFF"),listActiveSelectionIconForeground:u.Color.fromHex("#FFFFFF"),listFocusAndSelectionOutline:u.Color.fromHex("#90C2F9"),listFocusAndSelectionBackground:u.Color.fromHex("#094771"),listFocusAndSelectionForeground:u.Color.fromHex("#FFFFFF"),listInactiveSelectionBackground:u.Color.fromHex("#3F3F46"),listInactiveSelectionIconForeground:u.Color.fromHex("#FFFFFF"),listHoverBackground:u.Color.fromHex("#2A2D2E"),listDropBackground:u.Color.fromHex("#383B3D"),treeIndentGuidesStroke:u.Color.fromHex("#a9a9a9"),tableColumnsBorder:u.Color.fromHex("#cccccc").transparent(.2),tableOddRowsBackgroundColor:u.Color.fromHex("#cccccc").transparent(.04)},T={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){}}};function ee(ie,H){const ae=ie.indexOf(H);if(ae===-1)return[];const Y=[];let U=ae-1;for(;U>=0&&ie[U]===H-(ae-U);)Y.push(ie[U--]);for(Y.reverse(),U=ae;U<ie.length&&ie[U]===H+(U-ae);)Y.push(ie[U++]);return Y}function J(ie,H){const ae=[];let Y=0,U=0;for(;Y<ie.length||U<H.length;)if(Y>=ie.length)ae.push(H[U++]);else if(U>=H.length)ae.push(ie[Y++]);else if(ie[Y]===H[U]){ae.push(ie[Y]),Y++,U++;continue}else ie[Y]<H[U]?ae.push(ie[Y++]):ae.push(H[U++]);return ae}function $(ie,H){const ae=[];let Y=0,U=0;for(;Y<ie.length||U<H.length;)if(Y>=ie.length)ae.push(H[U++]);else if(U>=H.length)ae.push(ie[Y++]);else if(ie[Y]===H[U]){Y++,U++;continue}else ie[Y]<H[U]?ae.push(ie[Y++]):U++;return ae}const j=(ie,H)=>ie-H;class G{constructor(H,ae){this._templateId=H,this.renderers=ae}get templateId(){return this._templateId}renderTemplate(H){return this.renderers.map(ae=>ae.renderTemplate(H))}renderElement(H,ae,Y,U){let le=0;for(const z of this.renderers)z.renderElement(H,ae,Y[le++],U)}disposeElement(H,ae,Y,U){var le;let z=0;for(const Q of this.renderers)(le=Q.disposeElement)===null||le===void 0||le.call(Q,H,ae,Y[z],U),z+=1}disposeTemplate(H){let ae=0;for(const Y of this.renderers)Y.disposeTemplate(H[ae++])}}class te{constructor(H){this.accessibilityProvider=H,this.templateId="a18n"}renderTemplate(H){return H}renderElement(H,ae,Y){const U=this.accessibilityProvider.getAriaLabel(H);U?Y.setAttribute("aria-label",U):Y.removeAttribute("aria-label");const le=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(H);typeof le=="number"?Y.setAttribute("aria-level",`${le}`):Y.removeAttribute("aria-level")}disposeTemplate(H){}}class Z{constructor(H,ae){this.list=H,this.dnd=ae}getDragElements(H){const ae=this.list.getSelectedElements();return ae.indexOf(H)>-1?ae:[H]}getDragURI(H){return this.dnd.getDragURI(H)}getDragLabel(H,ae){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(H,ae)}onDragStart(H,ae){var Y,U;(U=(Y=this.dnd).onDragStart)===null||U===void 0||U.call(Y,H,ae)}onDragOver(H,ae,Y,U){return this.dnd.onDragOver(H,ae,Y,U)}onDragLeave(H,ae,Y,U){var le,z;(z=(le=this.dnd).onDragLeave)===null||z===void 0||z.call(le,H,ae,Y,U)}onDragEnd(H){var ae,Y;(Y=(ae=this.dnd).onDragEnd)===null||Y===void 0||Y.call(ae,H)}drop(H,ae,Y,U){this.dnd.drop(H,ae,Y,U)}}class X{constructor(H,ae,Y,U,le=T){var z,Q,W,V;this.user=H,this._options=le,this.focus=new f("focused"),this.anchor=new f("anchor"),this.eventBufferer=new i.EventBufferer,this._ariaLabel="",this.disposables=new o.DisposableStore,this._onDidDispose=new i.Emitter,this.onDidDispose=this._onDidDispose.event;const ne=this._options.accessibilityProvider&&this._options.accessibilityProvider.getWidgetRole?(z=this._options.accessibilityProvider)===null||z===void 0?void 0:z.getWidgetRole():"list";this.selection=new _(ne!=="listbox"),(0,d.mixin)(le,K,!1);const de=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=le.accessibilityProvider,this.accessibilityProvider&&(de.push(new te(this.accessibilityProvider)),(W=(Q=this.accessibilityProvider).onDidChangeActiveDescendant)===null||W===void 0||W.call(Q,this.onDidChangeActiveDescendant,this,this.disposables)),U=U.map(ue=>new G(ue.templateId,[...de,ue]));const ce=Object.assign(Object.assign({},le),{dnd:le.dnd&&new Z(this,le.dnd)});if(this.view=new c.ListView(ae,Y,U,ce),this.view.domNode.setAttribute("role",ne),le.styleController)this.styleController=le.styleController(this.view.domId);else{const ue=(0,y.createStyleSheet)(this.view.domNode);this.styleController=new B(ue,this.view.domId)}if(this.spliceable=new b.CombinedSpliceable([new p(this.focus,this.view,le.identityProvider),new p(this.selection,this.view,le.identityProvider),new p(this.anchor,this.view,le.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.anchor),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.disposables.add(new F(this,this.view)),(typeof le.keyboardSupport!="boolean"||le.keyboardSupport)&&(this.keyboardController=new L(this,this.view,le),this.disposables.add(this.keyboardController)),le.keyboardNavigationLabelProvider){const ue=le.keyboardNavigationDelegate||e.DefaultKeyboardNavigationDelegate;this.typeNavigationController=new R(this,this.view,le.keyboardNavigationLabelProvider,(V=le.keyboardNavigationEventFilter)!==null&&V!==void 0?V:()=>!0,ue),this.disposables.add(this.typeNavigationController)}this.mouseController=this.createMouseController(le),this.disposables.add(this.mouseController),this.onDidChangeFocus(this._onFocusChange,this,this.disposables),this.onDidChangeSelection(this._onSelectionChange,this,this.disposables),this.accessibilityProvider&&(this.ariaLabel=this.accessibilityProvider.getWidgetAriaLabel()),this._options.multipleSelectionSupport!==!1&&this.view.domNode.setAttribute("aria-multiselectable","true")}get onDidChangeFocus(){return i.Event.map(this.eventBufferer.wrapEvent(this.focus.onChange),H=>this.toListEvent(H),this.disposables)}get onDidChangeSelection(){return i.Event.map(this.eventBufferer.wrapEvent(this.selection.onChange),H=>this.toListEvent(H),this.disposables)}get domId(){return this.view.domId}get onMouseClick(){return this.view.onMouseClick}get onMouseDblClick(){return this.view.onMouseDblClick}get onMouseMiddleClick(){return this.view.onMouseMiddleClick}get onPointer(){return this.mouseController.onPointer}get onMouseDown(){return this.view.onMouseDown}get onMouseOver(){return this.view.onMouseOver}get onTouchStart(){return this.view.onTouchStart}get onTap(){return this.view.onTap}get onContextMenu(){let H=!1;const ae=this.disposables.add(i.Event.chain(this.disposables.add(new v.DomEmitter(this.view.domNode,"keydown")).event)).map(le=>new k.StandardKeyboardEvent(le)).filter(le=>H=le.keyCode===58||le.shiftKey&&le.keyCode===68).map(v.stopEvent).filter(()=>!1).event,Y=this.disposables.add(i.Event.chain(this.disposables.add(new v.DomEmitter(this.view.domNode,"keyup")).event)).forEach(()=>H=!1).map(le=>new k.StandardKeyboardEvent(le)).filter(le=>le.keyCode===58||le.shiftKey&&le.keyCode===68).map(v.stopEvent).map(({browserEvent:le})=>{const z=this.getFocus(),Q=z.length?z[0]:void 0,W=typeof Q<"u"?this.view.element(Q):void 0,V=typeof Q<"u"?this.view.domElement(Q):this.view.domNode;return{index:Q,element:W,anchor:V,browserEvent:le}}).event,U=this.disposables.add(i.Event.chain(this.view.onContextMenu)).filter(le=>!H).map(({element:le,index:z,browserEvent:Q})=>({element:le,index:z,anchor:{x:Q.pageX+1,y:Q.pageY},browserEvent:Q})).event;return i.Event.any(ae,Y,U)}get onKeyDown(){return this.disposables.add(new v.DomEmitter(this.view.domNode,"keydown")).event}get onDidFocus(){return i.Event.signal(this.disposables.add(new v.DomEmitter(this.view.domNode,"focus",!0)).event)}createMouseController(H){return new A(this)}updateOptions(H={}){var ae,Y;this._options=Object.assign(Object.assign({},this._options),H),(ae=this.typeNavigationController)===null||ae===void 0||ae.updateOptions(this._options),this._options.multipleSelectionController!==void 0&&(this._options.multipleSelectionSupport?this.view.domNode.setAttribute("aria-multiselectable","true"):this.view.domNode.removeAttribute("aria-multiselectable")),this.mouseController.updateOptions(H),(Y=this.keyboardController)===null||Y===void 0||Y.updateOptions(H),this.view.updateOptions(H)}get options(){return this._options}splice(H,ae,Y=[]){if(H<0||H>this.view.length)throw new r.ListError(this.user,`Invalid start index: ${H}`);if(ae<0)throw new r.ListError(this.user,`Invalid delete count: ${ae}`);ae===0&&Y.length===0||this.eventBufferer.bufferEvents(()=>this.spliceable.splice(H,ae,Y))}rerender(){this.view.rerender()}element(H){return this.view.element(H)}get length(){return this.view.length}get contentHeight(){return this.view.contentHeight}get scrollTop(){return this.view.getScrollTop()}set scrollTop(H){this.view.setScrollTop(H)}get ariaLabel(){return this._ariaLabel}set ariaLabel(H){this._ariaLabel=H,this.view.domNode.setAttribute("aria-label",H)}domFocus(){this.view.domNode.focus({preventScroll:!0})}layout(H,ae){this.view.layout(H,ae)}setSelection(H,ae){for(const Y of H)if(Y<0||Y>=this.length)throw new r.ListError(this.user,`Invalid index ${Y}`);this.selection.set(H,ae)}getSelection(){return this.selection.get()}getSelectedElements(){return this.getSelection().map(H=>this.view.element(H))}setAnchor(H){if(typeof H>"u"){this.anchor.set([]);return}if(H<0||H>=this.length)throw new r.ListError(this.user,`Invalid index ${H}`);this.anchor.set([H])}getAnchor(){return(0,C.firstOrDefault)(this.anchor.get(),void 0)}getAnchorElement(){const H=this.getAnchor();return typeof H>"u"?void 0:this.element(H)}setFocus(H,ae){for(const Y of H)if(Y<0||Y>=this.length)throw new r.ListError(this.user,`Invalid index ${Y}`);this.focus.set(H,ae)}focusNext(H=1,ae=!1,Y,U){if(this.length===0)return;const le=this.focus.get(),z=this.findNextIndex(le.length>0?le[0]+H:0,ae,U);z>-1&&this.setFocus([z],Y)}focusPrevious(H=1,ae=!1,Y,U){if(this.length===0)return;const le=this.focus.get(),z=this.findPreviousIndex(le.length>0?le[0]-H:0,ae,U);z>-1&&this.setFocus([z],Y)}focusNextPage(H,ae){return be(this,void 0,void 0,function*(){let Y=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);Y=Y===0?0:Y-1;const U=this.getFocus()[0];if(U!==Y&&(U===void 0||Y>U)){const le=this.findPreviousIndex(Y,!1,ae);le>-1&&U!==le?this.setFocus([le],H):this.setFocus([Y],H)}else{const le=this.view.getScrollTop();let z=le+this.view.renderHeight;Y>U&&(z-=this.view.elementHeight(Y)),this.view.setScrollTop(z),this.view.getScrollTop()!==le&&(this.setFocus([]),yield(0,h.timeout)(0),yield this.focusNextPage(H,ae))}})}focusPreviousPage(H,ae){return be(this,void 0,void 0,function*(){let Y;const U=this.view.getScrollTop();U===0?Y=this.view.indexAt(U):Y=this.view.indexAfter(U-1);const le=this.getFocus()[0];if(le!==Y&&(le===void 0||le>=Y)){const z=this.findNextIndex(Y,!1,ae);z>-1&&le!==z?this.setFocus([z],H):this.setFocus([Y],H)}else{const z=U;this.view.setScrollTop(U-this.view.renderHeight),this.view.getScrollTop()!==z&&(this.setFocus([]),yield(0,h.timeout)(0),yield this.focusPreviousPage(H,ae))}})}focusLast(H,ae){if(this.length===0)return;const Y=this.findPreviousIndex(this.length-1,!1,ae);Y>-1&&this.setFocus([Y],H)}focusFirst(H,ae){this.focusNth(0,H,ae)}focusNth(H,ae,Y){if(this.length===0)return;const U=this.findNextIndex(H,!1,Y);U>-1&&this.setFocus([U],ae)}findNextIndex(H,ae=!1,Y){for(let U=0;U<this.length;U++){if(H>=this.length&&!ae)return-1;if(H=H%this.length,!Y||Y(this.element(H)))return H;H++}return-1}findPreviousIndex(H,ae=!1,Y){for(let U=0;U<this.length;U++){if(H<0&&!ae)return-1;if(H=(this.length+H%this.length)%this.length,!Y||Y(this.element(H)))return H;H--}return-1}getFocus(){return this.focus.get()}getFocusedElements(){return this.getFocus().map(H=>this.view.element(H))}reveal(H,ae){if(H<0||H>=this.length)throw new r.ListError(this.user,`Invalid index ${H}`);const Y=this.view.getScrollTop(),U=this.view.elementTop(H),le=this.view.elementHeight(H);if((0,a.isNumber)(ae)){const z=le-this.view.renderHeight;this.view.setScrollTop(z*(0,s.clamp)(ae,0,1)+U)}else{const z=U+le,Q=Y+this.view.renderHeight;U<Y&&z>=Q||(U<Y||z>=Q&&le>=this.view.renderHeight?this.view.setScrollTop(U):z>=Q&&this.view.setScrollTop(z-this.view.renderHeight))}}getHTMLElement(){return this.view.domNode}getElementID(H){return this.view.getElementDomId(H)}style(H){this.styleController.style(H)}toListEvent({indexes:H,browserEvent:ae}){return{indexes:H,elements:H.map(Y=>this.view.element(Y)),browserEvent:ae}}_onFocusChange(){const H=this.focus.get();this.view.domNode.classList.toggle("element-focused",H.length>0),this.onDidChangeActiveDescendant()}onDidChangeActiveDescendant(){var H;const ae=this.focus.get();if(ae.length>0){let Y;!((H=this.accessibilityProvider)===null||H===void 0)&&H.getActiveDescendantId&&(Y=this.accessibilityProvider.getActiveDescendantId(this.view.element(ae[0]))),this.view.domNode.setAttribute("aria-activedescendant",Y||this.view.getElementDomId(ae[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")}_onSelectionChange(){const H=this.selection.get();this.view.domNode.classList.toggle("selection-none",H.length===0),this.view.domNode.classList.toggle("selection-single",H.length===1),this.view.domNode.classList.toggle("selection-multiple",H.length>1)}dispose(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidDispose.dispose()}}Ie([n.memoize],X.prototype,"onDidChangeFocus",null),Ie([n.memoize],X.prototype,"onDidChangeSelection",null),Ie([n.memoize],X.prototype,"onContextMenu",null),Ie([n.memoize],X.prototype,"onKeyDown",null),Ie([n.memoize],X.prototype,"onDidFocus",null),e.List=X}),define(oe[490],se([1,0,18,21,6,2,113,228]),function(q,e,y,v,k,D,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PagedList=void 0;class b{constructor(i,t){this.renderer=i,this.modelProvider=t}get templateId(){return this.renderer.templateId}renderTemplate(i){return{data:this.renderer.renderTemplate(i),disposable:D.Disposable.None}}renderElement(i,t,o,s){if(o.disposable&&o.disposable.dispose(),!o.data)return;const d=this.modelProvider();if(d.isResolved(i))return this.renderer.renderElement(d.get(i),i,o.data,s);const l=new v.CancellationTokenSource,a=d.resolve(i,l.token);o.disposable={dispose:()=>l.cancel()},this.renderer.renderPlaceholder(i,o.data),a.then(r=>this.renderer.renderElement(r,i,o.data,s))}disposeTemplate(i){i.disposable&&(i.disposable.dispose(),i.disposable=void 0),i.data&&(this.renderer.disposeTemplate(i.data),i.data=void 0)}}class C{constructor(i,t){this.modelProvider=i,this.accessibilityProvider=t}getWidgetAriaLabel(){return this.accessibilityProvider.getWidgetAriaLabel()}getAriaLabel(i){const t=this.modelProvider();return t.isResolved(i)?this.accessibilityProvider.getAriaLabel(t.get(i)):null}}function h(n,i){return Object.assign(Object.assign({},i),{accessibilityProvider:i.accessibilityProvider&&new C(n,i.accessibilityProvider)})}class u{constructor(i,t,o,s,d={}){const l=()=>this.model,a=s.map(r=>new b(r,l));this.list=new w.List(i,t,o,a,h(l,d))}updateOptions(i){this.list.updateOptions(i)}getHTMLElement(){return this.list.getHTMLElement()}get onDidFocus(){return this.list.onDidFocus}get onDidDispose(){return this.list.onDidDispose}get onMouseDblClick(){return k.Event.map(this.list.onMouseDblClick,({element:i,index:t,browserEvent:o})=>({element:i===void 0?void 0:this._model.get(i),index:t,browserEvent:o}))}get onPointer(){return k.Event.map(this.list.onPointer,({element:i,index:t,browserEvent:o})=>({element:i===void 0?void 0:this._model.get(i),index:t,browserEvent:o}))}get onDidChangeSelection(){return k.Event.map(this.list.onDidChangeSelection,({elements:i,indexes:t,browserEvent:o})=>({elements:i.map(s=>this._model.get(s)),indexes:t,browserEvent:o}))}get model(){return this._model}set model(i){this._model=i,this.list.splice(0,this.list.length,(0,y.range)(i.length))}getFocus(){return this.list.getFocus()}getSelection(){return this.list.getSelection()}getSelectedElements(){return this.getSelection().map(i=>this.model.get(i))}style(i){this.list.style(i)}dispose(){this.list.dispose()}}e.PagedList=u}),define(oe[491],se([1,0,41,62,7,48,67,83,133,149,254,75,42,10,27,106,2,17,8]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.cleanMnemonic=e.Menu=e.Direction=e.MENU_ESCAPED_MNEMONIC_REGEX=e.MENU_MNEMONIC_REGEX=void 0,e.MENU_MNEMONIC_REGEX=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,e.MENU_ESCAPED_MNEMONIC_REGEX=/(&)?(&)([^\s&])/g;var r;(function(S){S[S.Right=0]="Right",S[S.Left=1]="Left"})(r=e.Direction||(e.Direction={}));class c extends b.ActionBar{constructor(E,L,N={}){E.classList.add("monaco-menu-container"),E.setAttribute("role","presentation");const I=document.createElement("div");I.classList.add("monaco-menu"),I.setAttribute("role","presentation"),super(I,{orientation:1,actionViewItemProvider:O=>this.doGetActionViewItem(O,N,R),context:N.context,actionRunner:N.actionRunner,ariaLabel:N.ariaLabel,ariaRole:"menu",focusOnlyEnabledItems:!0,triggerKeys:{keys:[3,...l.isMacintosh||l.isLinux?[10]:[]],keyDown:!0}}),this.menuElement=I,this.actionsList.tabIndex=0,this.menuDisposables=this._register(new d.DisposableStore),this.initializeOrUpdateStyleSheet(E,{}),this._register(v.Gesture.addTarget(I)),(0,k.addDisposableListener)(I,k.EventType.KEY_DOWN,O=>{new D.StandardKeyboardEvent(O).equals(2)&&O.preventDefault()}),N.enableMnemonics&&this.menuDisposables.add((0,k.addDisposableListener)(I,k.EventType.KEY_DOWN,O=>{const x=O.key.toLocaleLowerCase();if(this.mnemonics.has(x)){k.EventHelper.stop(O,!0);const M=this.mnemonics.get(x);if(M.length===1&&(M[0]instanceof f&&M[0].container&&this.focusItemByElement(M[0].container),M[0].onClick(O)),M.length>1){const P=M.shift();P&&P.container&&(this.focusItemByElement(P.container),M.push(P)),this.mnemonics.set(x,M)}}})),l.isLinux&&this._register((0,k.addDisposableListener)(I,k.EventType.KEY_DOWN,O=>{const x=new D.StandardKeyboardEvent(O);x.equals(14)||x.equals(11)?(this.focusedItem=this.viewItems.length-1,this.focusNext(),k.EventHelper.stop(O,!0)):(x.equals(13)||x.equals(12))&&(this.focusedItem=0,this.focusPrevious(),k.EventHelper.stop(O,!0))})),this._register((0,k.addDisposableListener)(this.domNode,k.EventType.MOUSE_OUT,O=>{const x=O.relatedTarget;(0,k.isAncestor)(x,this.domNode)||(this.focusedItem=void 0,this.updateFocus(),O.stopPropagation())})),this._register((0,k.addDisposableListener)(this.actionsList,k.EventType.MOUSE_OVER,O=>{let x=O.target;if(!(!x||!(0,k.isAncestor)(x,this.actionsList)||x===this.actionsList)){for(;x.parentElement!==this.actionsList&&x.parentElement!==null;)x=x.parentElement;if(x.classList.contains("action-item")){const M=this.focusedItem;this.setFocusedItem(x),M!==this.focusedItem&&this.updateFocus()}}})),this._register(v.Gesture.addTarget(this.actionsList)),this._register((0,k.addDisposableListener)(this.actionsList,v.EventType.Tap,O=>{let x=O.initialTarget;if(!(!x||!(0,k.isAncestor)(x,this.actionsList)||x===this.actionsList)){for(;x.parentElement!==this.actionsList&&x.parentElement!==null;)x=x.parentElement;if(x.classList.contains("action-item")){const M=this.focusedItem;this.setFocusedItem(x),M!==this.focusedItem&&this.updateFocus()}}}));const R={parent:this};this.mnemonics=new Map,this.scrollableElement=this._register(new n.DomScrollableElement(I,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));const F=this.scrollableElement.getDomNode();F.style.position="",this._register((0,k.addDisposableListener)(I,v.EventType.Change,O=>{k.EventHelper.stop(O,!0);const x=this.scrollableElement.getScrollPosition().scrollTop;this.scrollableElement.setScrollPosition({scrollTop:x-O.translationY})})),this._register((0,k.addDisposableListener)(F,k.EventType.MOUSE_UP,O=>{O.preventDefault()})),I.style.maxHeight=`${Math.max(10,window.innerHeight-E.getBoundingClientRect().top-35)}px`,L=L.filter(O=>{var x;return!((x=N.submenuIds)===null||x===void 0)&&x.has(O.id)?(console.warn(`Found submenu cycle: ${O.id}`),!1):!0}),this.push(L,{icon:!0,label:!0,isMenu:!0}),E.appendChild(this.scrollableElement.getDomNode()),this.scrollableElement.scanDomNode(),this.viewItems.filter(O=>!(O instanceof _)).forEach((O,x,M)=>{O.updatePositionInSet(x+1,M.length)})}initializeOrUpdateStyleSheet(E,L){this.styleSheet||((0,k.isInShadowDOM)(E)?this.styleSheet=(0,k.createStyleSheet)(E):(c.globalStyleSheet||(c.globalStyleSheet=(0,k.createStyleSheet)()),this.styleSheet=c.globalStyleSheet)),this.styleSheet.textContent=m(L,(0,k.isInShadowDOM)(E))}style(E){const L=this.getContainer();this.initializeOrUpdateStyleSheet(L,E);const N=E.foregroundColor?`${E.foregroundColor}`:"",I=E.backgroundColor?`${E.backgroundColor}`:"",R=E.borderColor?`1px solid ${E.borderColor}`:"",F="5px",O=E.shadowColor?`0 2px 8px ${E.shadowColor}`:"";L.style.outline=R,L.style.borderRadius=F,L.style.color=N,L.style.backgroundColor=I,L.style.boxShadow=O,this.viewItems&&this.viewItems.forEach(x=>{(x instanceof g||x instanceof _)&&x.style(E)})}getContainer(){return this.scrollableElement.getDomNode()}get onScroll(){return this.scrollableElement.onScroll}focusItemByElement(E){const L=this.focusedItem;this.setFocusedItem(E),L!==this.focusedItem&&this.updateFocus()}setFocusedItem(E){for(let L=0;L<this.actionsList.children.length;L++){const N=this.actionsList.children[L];if(E===N){this.focusedItem=L;break}}}updateFocus(E){super.updateFocus(E,!0,!0),typeof this.focusedItem<"u"&&this.scrollableElement.setScrollPosition({scrollTop:Math.round(this.menuElement.scrollTop)})}doGetActionViewItem(E,L,N){if(E instanceof i.Separator)return new _(L.context,E,{icon:!0});if(E instanceof i.SubmenuAction){const I=new f(E,E.actions,N,Object.assign(Object.assign({},L),{submenuIds:new Set([...L.submenuIds||[],E.id])}));if(L.enableMnemonics){const R=I.getMnemonic();if(R&&I.isEnabled()){let F=[];this.mnemonics.has(R)&&(F=this.mnemonics.get(R)),F.push(I),this.mnemonics.set(R,F)}}return I}else{const I={enableMnemonics:L.enableMnemonics,useEventAsContext:L.useEventAsContext};if(L.getKeyBinding){const F=L.getKeyBinding(E);if(F){const O=F.getLabel();O&&(I.keybinding=O)}}const R=new g(L.context,E,I);if(L.enableMnemonics){const F=R.getMnemonic();if(F&&R.isEnabled()){let O=[];this.mnemonics.has(F)&&(O=this.mnemonics.get(F)),O.push(R),this.mnemonics.set(F,O)}}return R}}}e.Menu=c;class g extends C.BaseActionViewItem{constructor(E,L,N={}){if(N.isMenu=!0,super(L,L,N),this.options=N,this.options.icon=N.icon!==void 0?N.icon:!1,this.options.label=N.label!==void 0?N.label:!0,this.cssClass="",this.options.label&&N.enableMnemonics){const I=this.getAction().label;if(I){const R=e.MENU_MNEMONIC_REGEX.exec(I);R&&(this.mnemonic=(R[1]?R[1]:R[3]).toLocaleLowerCase())}}this.runOnceToEnableMouseUp=new t.RunOnceScheduler(()=>{!this.element||(this._register((0,k.addDisposableListener)(this.element,k.EventType.MOUSE_UP,I=>{if(k.EventHelper.stop(I,!0),y.isFirefox){if(new w.StandardMouseEvent(I).rightButton)return;this.onClick(I)}else setTimeout(()=>{this.onClick(I)},0)})),this._register((0,k.addDisposableListener)(this.element,k.EventType.CONTEXT_MENU,I=>{k.EventHelper.stop(I,!0)})))},100),this._register(this.runOnceToEnableMouseUp)}render(E){super.render(E),this.element&&(this.container=E,this.item=(0,k.append)(this.element,(0,k.$)("a.action-menu-item")),this._action.id===i.Separator.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",`${this.mnemonic}`)),this.check=(0,k.append)(this.item,(0,k.$)("span.menu-item-check"+o.Codicon.menuSelection.cssSelector)),this.check.setAttribute("role","none"),this.label=(0,k.append)(this.item,(0,k.$)("span.action-label")),this.options.label&&this.options.keybinding&&((0,k.append)(this.item,(0,k.$)("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked())}blur(){super.blur(),this.applyStyle()}focus(){super.focus(),this.item&&this.item.focus(),this.applyStyle()}updatePositionInSet(E,L){this.item&&(this.item.setAttribute("aria-posinset",`${E}`),this.item.setAttribute("aria-setsize",`${L}`))}updateLabel(){var E;if(this.label&&this.options.label){(0,k.clearNode)(this.label);let L=(0,s.stripIcons)(this.getAction().label);if(L){const N=p(L);this.options.enableMnemonics||(L=N),this.label.setAttribute("aria-label",N.replace(/&&/g,"&"));const I=e.MENU_MNEMONIC_REGEX.exec(L);if(I){L=a.escape(L),e.MENU_ESCAPED_MNEMONIC_REGEX.lastIndex=0;let R=e.MENU_ESCAPED_MNEMONIC_REGEX.exec(L);for(;R&&R[1];)R=e.MENU_ESCAPED_MNEMONIC_REGEX.exec(L);const F=O=>O.replace(/&&/g,"&");R?this.label.append(a.ltrim(F(L.substr(0,R.index))," "),(0,k.$)("u",{"aria-hidden":"true"},R[3]),a.rtrim(F(L.substr(R.index+R[0].length))," ")):this.label.innerText=F(L).trim(),(E=this.item)===null||E===void 0||E.setAttribute("aria-keyshortcuts",(I[1]?I[1]:I[3]).toLocaleLowerCase())}else this.label.innerText=L.replace(/&&/g,"&").trim()}}}updateTooltip(){}updateClass(){this.cssClass&&this.item&&this.item.classList.remove(...this.cssClass.split(" ")),this.options.icon&&this.label?(this.cssClass=this.getAction().class||"",this.label.classList.add("icon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" ")),this.updateEnabled()):this.label&&this.label.classList.remove("icon")}updateEnabled(){this.getAction().enabled?(this.element&&(this.element.classList.remove("disabled"),this.element.removeAttribute("aria-disabled")),this.item&&(this.item.classList.remove("disabled"),this.item.removeAttribute("aria-disabled"),this.item.tabIndex=0)):(this.element&&(this.element.classList.add("disabled"),this.element.setAttribute("aria-disabled","true")),this.item&&(this.item.classList.add("disabled"),this.item.setAttribute("aria-disabled","true")))}updateChecked(){if(!this.item)return;const E=this.getAction().checked;this.item.classList.toggle("checked",!!E),E!==void 0?(this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked",E?"true":"false")):(this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked",""))}getMnemonic(){return this.mnemonic}applyStyle(){if(!this.menuStyle)return;const E=this.element&&this.element.classList.contains("focused"),L=E&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,N=E&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,I=E&&this.menuStyle.selectionBorderColor?`1px solid ${this.menuStyle.selectionBorderColor}`:"",R=E&&this.menuStyle.selectionBorderColor?"-1px":"";this.item&&(this.item.style.color=L?L.toString():"",this.item.style.backgroundColor=N?N.toString():"",this.item.style.outline=I,this.item.style.outlineOffset=R),this.check&&(this.check.style.color=L?L.toString():"")}style(E){this.menuStyle=E,this.applyStyle()}}class f extends g{constructor(E,L,N,I){super(E,E,I),this.submenuActions=L,this.parentData=N,this.submenuOptions=I,this.mysubmenu=null,this.submenuDisposables=this._register(new d.DisposableStore),this.mouseOver=!1,this.expandDirection=I&&I.expandDirection!==void 0?I.expandDirection:r.Right,this.showScheduler=new t.RunOnceScheduler(()=>{this.mouseOver&&(this.cleanupExistingSubmenu(!1),this.createSubmenu(!1))},250),this.hideScheduler=new t.RunOnceScheduler(()=>{this.element&&!(0,k.isAncestor)((0,k.getActiveElement)(),this.element)&&this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))},750)}render(E){super.render(E),this.element&&(this.item&&(this.item.classList.add("monaco-submenu-item"),this.item.tabIndex=0,this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=(0,k.append)(this.item,(0,k.$)("span.submenu-indicator"+o.Codicon.menuSubmenu.cssSelector)),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register((0,k.addDisposableListener)(this.element,k.EventType.KEY_UP,L=>{const N=new D.StandardKeyboardEvent(L);(N.equals(17)||N.equals(3))&&(k.EventHelper.stop(L,!0),this.createSubmenu(!0))})),this._register((0,k.addDisposableListener)(this.element,k.EventType.KEY_DOWN,L=>{const N=new D.StandardKeyboardEvent(L);(0,k.getActiveElement)()===this.item&&(N.equals(17)||N.equals(3))&&k.EventHelper.stop(L,!0)})),this._register((0,k.addDisposableListener)(this.element,k.EventType.MOUSE_OVER,L=>{this.mouseOver||(this.mouseOver=!0,this.showScheduler.schedule())})),this._register((0,k.addDisposableListener)(this.element,k.EventType.MOUSE_LEAVE,L=>{this.mouseOver=!1})),this._register((0,k.addDisposableListener)(this.element,k.EventType.FOCUS_OUT,L=>{this.element&&!(0,k.isAncestor)((0,k.getActiveElement)(),this.element)&&this.hideScheduler.schedule()})),this._register(this.parentData.parent.onScroll(()=>{this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))})))}updateEnabled(){}onClick(E){k.EventHelper.stop(E,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)}cleanupExistingSubmenu(E){if(this.parentData.submenu&&(E||this.parentData.submenu!==this.mysubmenu)){try{this.parentData.submenu.dispose()}catch{}this.parentData.submenu=void 0,this.updateAriaExpanded("false"),this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0)}}calculateSubmenuMenuLayout(E,L,N,I){const R={top:0,left:0};return R.left=(0,u.layout)(E.width,L.width,{position:I===r.Right?0:1,offset:N.left,size:N.width}),R.left>=N.left&&R.left<N.left+N.width&&(N.left+10+L.width<=E.width&&(R.left=N.left+10),N.top+=10,N.height=0),R.top=(0,u.layout)(E.height,L.height,{position:0,offset:N.top,size:0}),R.top+L.height===N.top&&R.top+N.height+L.height<=E.height&&(R.top+=N.height),R}createSubmenu(E=!0){if(this.element)if(this.parentData.submenu)this.parentData.submenu.focus(!1);else{this.updateAriaExpanded("true"),this.submenuContainer=(0,k.append)(this.element,(0,k.$)("div.monaco-submenu")),this.submenuContainer.classList.add("menubar-menu-items-holder","context-view");const L=getComputedStyle(this.parentData.parent.domNode),N=parseFloat(L.paddingTop||"0")||0;this.submenuContainer.style.zIndex="1",this.submenuContainer.style.position="fixed",this.submenuContainer.style.top="0",this.submenuContainer.style.left="0",this.parentData.submenu=new c(this.submenuContainer,this.submenuActions.length?this.submenuActions:[new i.EmptySubmenuAction],this.submenuOptions),this.menuStyle&&this.parentData.submenu.style(this.menuStyle);const I=this.element.getBoundingClientRect(),R={top:I.top-N,left:I.left,height:I.height+2*N,width:I.width},F=this.submenuContainer.getBoundingClientRect(),{top:O,left:x}=this.calculateSubmenuMenuLayout(new k.Dimension(window.innerWidth,window.innerHeight),k.Dimension.lift(F),R,this.expandDirection);this.submenuContainer.style.left=`${x-F.left}px`,this.submenuContainer.style.top=`${O-F.top}px`,this.submenuDisposables.add((0,k.addDisposableListener)(this.submenuContainer,k.EventType.KEY_UP,M=>{new D.StandardKeyboardEvent(M).equals(15)&&(k.EventHelper.stop(M,!0),this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0))})),this.submenuDisposables.add((0,k.addDisposableListener)(this.submenuContainer,k.EventType.KEY_DOWN,M=>{new D.StandardKeyboardEvent(M).equals(15)&&k.EventHelper.stop(M,!0)})),this.submenuDisposables.add(this.parentData.submenu.onDidCancel(()=>{this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0)})),this.parentData.submenu.focus(E),this.mysubmenu=this.parentData.submenu}}updateAriaExpanded(E){var L;this.item&&((L=this.item)===null||L===void 0||L.setAttribute("aria-expanded",E))}applyStyle(){var E;if(super.applyStyle(),!this.menuStyle)return;const L=this.element&&this.element.classList.contains("focused")&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=L?`${L}`:""),(E=this.parentData.submenu)===null||E===void 0||E.style(this.menuStyle)}dispose(){super.dispose(),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)}}class _ extends C.ActionViewItem{style(E){this.label&&(this.label.style.borderBottomColor=E.separatorColor?`${E.separatorColor}`:"")}}function p(S){const E=e.MENU_MNEMONIC_REGEX,L=E.exec(S);if(!L)return S;const N=!L[1];return S.replace(E,N?"$2$3":"").trim()}e.cleanMnemonic=p;function m(S,E){let L=` .monaco-menu { font-size: 13px; border-radius: 5px; min-width: 160px; } ${(0,h.formatRule)(o.Codicon.menuSelection)} ${(0,h.formatRule)(o.Codicon.menuSubmenu)} .monaco-menu .monaco-action-bar { text-align: right; overflow: hidden; white-space: nowrap; } .monaco-menu .monaco-action-bar .actions-container { display: flex; margin: 0 auto; padding: 0; width: 100%; justify-content: flex-end; } .monaco-menu .monaco-action-bar.vertical .actions-container { display: inline-block; } .monaco-menu .monaco-action-bar.reverse .actions-container { flex-direction: row-reverse; } .monaco-menu .monaco-action-bar .action-item { cursor: pointer; display: inline-block; transition: transform 50ms ease; position: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */ } .monaco-menu .monaco-action-bar .action-item.disabled { cursor: default; } .monaco-menu .monaco-action-bar.animated .action-item.active { transform: scale(1.272019649, 1.272019649); /* 1.272019649 = \u221A\u03C6 */ } .monaco-menu .monaco-action-bar .action-item .icon, .monaco-menu .monaco-action-bar .action-item .codicon { display: inline-block; } .monaco-menu .monaco-action-bar .action-item .codicon { display: flex; align-items: center; } .monaco-menu .monaco-action-bar .action-label { font-size: 11px; margin-right: 4px; } .monaco-menu .monaco-action-bar .action-item.disabled .action-label, .monaco-menu .monaco-action-bar .action-item.disabled .action-label:hover { color: var(--vscode-disabledForeground); } /* Vertical actions */ .monaco-menu .monaco-action-bar.vertical { text-align: left; } .monaco-menu .monaco-action-bar.vertical .action-item { display: block; } .monaco-menu .monaco-action-bar.vertical .action-label.separator { display: block; border-bottom: 1px solid var(--vscode-menu-separatorBackground); padding-top: 1px; padding: 30px; } .monaco-menu .secondary-actions .monaco-action-bar .action-label { margin-left: 6px; } /* Action Items */ .monaco-menu .monaco-action-bar .action-item.select-container { overflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */ flex: 1; max-width: 170px; min-width: 60px; display: flex; align-items: center; justify-content: center; margin-right: 10px; } .monaco-menu .monaco-action-bar.vertical { margin-left: 0; overflow: visible; } .monaco-menu .monaco-action-bar.vertical .actions-container { display: block; } .monaco-menu .monaco-action-bar.vertical .action-item { padding: 0; transform: none; display: flex; } .monaco-menu .monaco-action-bar.vertical .action-item.active { transform: none; } .monaco-menu .monaco-action-bar.vertical .action-menu-item { flex: 1 1 auto; display: flex; height: 2em; align-items: center; position: relative; } .monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .keybinding, .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .keybinding { opacity: unset; } .monaco-menu .monaco-action-bar.vertical .action-label { flex: 1 1 auto; text-decoration: none; padding: 0 1em; background: none; font-size: 12px; line-height: 1; } .monaco-menu .monaco-action-bar.vertical .keybinding, .monaco-menu .monaco-action-bar.vertical .submenu-indicator { display: inline-block; flex: 2 1 auto; padding: 0 1em; text-align: right; font-size: 12px; line-height: 1; } .monaco-menu .monaco-action-bar.vertical .submenu-indicator { height: 100%; } .monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon { font-size: 16px !important; display: flex; align-items: center; } .monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon::before { margin-left: auto; margin-right: -20px; } .monaco-menu .monaco-action-bar.vertical .action-item.disabled .keybinding, .monaco-menu .monaco-action-bar.vertical .action-item.disabled .submenu-indicator { opacity: 0.4; } .monaco-menu .monaco-action-bar.vertical .action-label:not(.separator) { display: inline-block; box-sizing: border-box; margin: 0; } .monaco-menu .monaco-action-bar.vertical .action-item { position: static; overflow: visible; } .monaco-menu .monaco-action-bar.vertical .action-item .monaco-submenu { position: absolute; } .monaco-menu .monaco-action-bar.vertical .action-label.separator { width: 100%; height: 0px !important; opacity: 1; } .monaco-menu .monaco-action-bar.vertical .action-label.separator.text { padding: 0.7em 1em 0.1em 1em; font-weight: bold; opacity: 1; } .monaco-menu .monaco-action-bar.vertical .action-label:hover { color: inherit; } .monaco-menu .monaco-action-bar.vertical .menu-item-check { position: absolute; visibility: hidden; width: 1em; height: 100%; } .monaco-menu .monaco-action-bar.vertical .action-menu-item.checked .menu-item-check { visibility: visible; display: flex; align-items: center; justify-content: center; } /* Context Menu */ .context-view.monaco-menu-container { outline: 0; border: none; animation: fadeIn 0.083s linear; -webkit-app-region: no-drag; } .context-view.monaco-menu-container :focus, .context-view.monaco-menu-container .monaco-action-bar.vertical:focus, .context-view.monaco-menu-container .monaco-action-bar.vertical :focus { outline: 0; } .hc-black .context-view.monaco-menu-container, .hc-light .context-view.monaco-menu-container, :host-context(.hc-black) .context-view.monaco-menu-container, :host-context(.hc-light) .context-view.monaco-menu-container { box-shadow: none; } .hc-black .monaco-menu .monaco-action-bar.vertical .action-item.focused, .hc-light .monaco-menu .monaco-action-bar.vertical .action-item.focused, :host-context(.hc-black) .monaco-menu .monaco-action-bar.vertical .action-item.focused, :host-context(.hc-light) .monaco-menu .monaco-action-bar.vertical .action-item.focused { background: none; } /* Vertical Action Bar Styles */ .monaco-menu .monaco-action-bar.vertical { padding: .6em 0; } .monaco-menu .monaco-action-bar.vertical .action-menu-item { height: 2em; } .monaco-menu .monaco-action-bar.vertical .action-label:not(.separator), .monaco-menu .monaco-action-bar.vertical .keybinding { font-size: inherit; padding: 0 2em; } .monaco-menu .monaco-action-bar.vertical .menu-item-check { font-size: inherit; width: 2em; } .monaco-menu .monaco-action-bar.vertical .action-label.separator { font-size: inherit; margin: 5px 0 !important; padding: 0; border-radius: 0; } .linux .monaco-menu .monaco-action-bar.vertical .action-label.separator, :host-context(.linux) .monaco-menu .monaco-action-bar.vertical .action-label.separator { margin-left: 0; margin-right: 0; } .monaco-menu .monaco-action-bar.vertical .submenu-indicator { font-size: 60%; padding: 0 1.8em; } .linux .monaco-menu .monaco-action-bar.vertical .submenu-indicator { :host-context(.linux) .monaco-menu .monaco-action-bar.vertical .submenu-indicator { height: 100%; mask-size: 10px 10px; -webkit-mask-size: 10px 10px; } .monaco-menu .action-item { cursor: default; }`;if(E){L+=` /* Arrows */ .monaco-scrollable-element > .scrollbar > .scra { cursor: pointer; font-size: 11px !important; } .monaco-scrollable-element > .visible { opacity: 1; /* Background rule added for IE9 - to allow clicks on dom node */ background:rgba(0,0,0,0); transition: opacity 100ms linear; } .monaco-scrollable-element > .invisible { opacity: 0; pointer-events: none; } .monaco-scrollable-element > .invisible.fade { transition: opacity 800ms linear; } /* Scrollable Content Inset Shadow */ .monaco-scrollable-element > .shadow { position: absolute; display: none; } .monaco-scrollable-element > .shadow.top { display: block; top: 0; left: 3px; height: 3px; width: 100%; } .monaco-scrollable-element > .shadow.left { display: block; top: 3px; left: 0; height: 100%; width: 3px; } .monaco-scrollable-element > .shadow.top-left-corner { display: block; top: 0; left: 0; height: 3px; width: 3px; } `;const N=S.scrollbarShadow;N&&(L+=` .monaco-scrollable-element > .shadow.top { box-shadow: ${N} 0 6px 6px -6px inset; } .monaco-scrollable-element > .shadow.left { box-shadow: ${N} 6px 0 6px -6px inset; } .monaco-scrollable-element > .shadow.top.left { box-shadow: ${N} 6px 6px 6px -6px inset; } `);const I=S.scrollbarSliderBackground;I&&(L+=` .monaco-scrollable-element > .scrollbar > .slider { background: ${I}; } `);const R=S.scrollbarSliderHoverBackground;R&&(L+=` .monaco-scrollable-element > .scrollbar > .slider:hover { background: ${R}; } `);const F=S.scrollbarSliderActiveBackground;F&&(L+=` .monaco-scrollable-element > .scrollbar > .slider.active { background: ${F}; } `)}return L}}),define(oe[261],se([1,0,7,135,75,18,31,6,2,124,161,19,348]),function(q,e,y,v,k,D,w,b,C,h,u,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SplitView=e.Sizing=void 0;const i={separatorBorder:w.Color.transparent};class t{constructor(c,g,f,_){this.container=c,this.view=g,this.disposable=_,this._cachedVisibleSize=void 0,typeof f=="number"?(this._size=f,this._cachedVisibleSize=void 0,c.classList.add("visible")):(this._size=0,this._cachedVisibleSize=f.cachedVisibleSize)}set size(c){this._size=c}get size(){return this._size}get visible(){return typeof this._cachedVisibleSize>"u"}setVisible(c,g){var f,_;c!==this.visible&&(c?(this.size=(0,h.clamp)(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize=typeof g=="number"?g:this.size,this.size=0),this.container.classList.toggle("visible",c),(_=(f=this.view).setVisible)===null||_===void 0||_.call(f,c))}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}get priority(){return this.view.priority}get snap(){return!!this.view.snap}set enabled(c){this.container.style.pointerEvents=c?"":"none"}layout(c,g){this.layoutContainer(c),this.view.layout(this.size,c,g)}dispose(){return this.disposable.dispose(),this.view}}class o extends t{layoutContainer(c){this.container.style.top=`${c}px`,this.container.style.height=`${this.size}px`}}class s extends t{layoutContainer(c){this.container.style.left=`${c}px`,this.container.style.width=`${this.size}px`}}var d;(function(r){r[r.Idle=0]="Idle",r[r.Busy=1]="Busy"})(d||(d={}));var l;(function(r){r.Distribute={type:"distribute"};function c(f){return{type:"split",index:f}}r.Split=c;function g(f){return{type:"invisible",cachedVisibleSize:f}}r.Invisible=g})(l=e.Sizing||(e.Sizing={}));class a extends C.Disposable{constructor(c,g={}){var f,_,p,m,S;super(),this.size=0,this.contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.state=d.Idle,this._onDidSashChange=this._register(new b.Emitter),this._onDidSashReset=this._register(new b.Emitter),this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.onDidSashChange=this._onDidSashChange.event,this.onDidSashReset=this._onDidSashReset.event,this.orientation=(f=g.orientation)!==null&&f!==void 0?f:0,this.inverseAltBehavior=(_=g.inverseAltBehavior)!==null&&_!==void 0?_:!1,this.proportionalLayout=(p=g.proportionalLayout)!==null&&p!==void 0?p:!0,this.getSashOrthogonalSize=g.getSashOrthogonalSize,this.el=document.createElement("div"),this.el.classList.add("monaco-split-view2"),this.el.classList.add(this.orientation===0?"vertical":"horizontal"),c.appendChild(this.el),this.sashContainer=(0,y.append)(this.el,(0,y.$)(".sash-container")),this.viewContainer=(0,y.$)(".split-view-container"),this.scrollable=new u.Scrollable({forceIntegerValues:!0,smoothScrollDuration:125,scheduleAtNextAnimationFrame:y.scheduleAtNextAnimationFrame}),this.scrollableElement=this._register(new k.SmoothScrollableElement(this.viewContainer,{vertical:this.orientation===0?(m=g.scrollbarVisibility)!==null&&m!==void 0?m:1:2,horizontal:this.orientation===1?(S=g.scrollbarVisibility)!==null&&S!==void 0?S:1:2},this.scrollable)),this.onDidScroll=this.scrollableElement.onScroll,this._register(this.onDidScroll(E=>{this.viewContainer.scrollTop=E.scrollTop,this.viewContainer.scrollLeft=E.scrollLeft})),(0,y.append)(this.el,this.scrollableElement.getDomNode()),this.style(g.styles||i),g.descriptor&&(this.size=g.descriptor.size,g.descriptor.views.forEach((E,L)=>{const N=n.isUndefined(E.visible)||E.visible?E.size:{type:"invisible",cachedVisibleSize:E.size},I=E.view;this.doAddView(I,N,L,!0)}),this.contentSize=this.viewItems.reduce((E,L)=>E+L.size,0),this.saveProportions())}get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}get startSnappingEnabled(){return this._startSnappingEnabled}get endSnappingEnabled(){return this._endSnappingEnabled}set orthogonalStartSash(c){for(const g of this.sashItems)g.sash.orthogonalStartSash=c;this._orthogonalStartSash=c}set orthogonalEndSash(c){for(const g of this.sashItems)g.sash.orthogonalEndSash=c;this._orthogonalEndSash=c}set startSnappingEnabled(c){this._startSnappingEnabled!==c&&(this._startSnappingEnabled=c,this.updateSashEnablement())}set endSnappingEnabled(c){this._endSnappingEnabled!==c&&(this._endSnappingEnabled=c,this.updateSashEnablement())}style(c){c.separatorBorder.isTransparent()?(this.el.classList.remove("separator-border"),this.el.style.removeProperty("--separator-border")):(this.el.classList.add("separator-border"),this.el.style.setProperty("--separator-border",c.separatorBorder.toString()))}addView(c,g,f=this.viewItems.length,_){this.doAddView(c,g,f,_)}layout(c,g){const f=Math.max(this.size,this.contentSize);if(this.size=c,this.layoutContext=g,this.proportions)for(let _=0;_<this.viewItems.length;_++){const p=this.viewItems[_];p.size=(0,h.clamp)(Math.round(this.proportions[_]*c),p.minimumSize,p.maximumSize)}else{const _=(0,D.range)(this.viewItems.length),p=_.filter(S=>this.viewItems[S].priority===1),m=_.filter(S=>this.viewItems[S].priority===2);this.resize(this.viewItems.length-1,c-f,void 0,p,m)}this.distributeEmptySpace(),this.layoutViews()}saveProportions(){this.proportionalLayout&&this.contentSize>0&&(this.proportions=this.viewItems.map(c=>c.size/this.contentSize))}onSashStart({sash:c,start:g,alt:f}){for(const S of this.viewItems)S.enabled=!1;const _=this.sashItems.findIndex(S=>S.sash===c),p=(0,C.combinedDisposable)((0,y.addDisposableListener)(document.body,"keydown",S=>m(this.sashDragState.current,S.altKey)),(0,y.addDisposableListener)(document.body,"keyup",()=>m(this.sashDragState.current,!1))),m=(S,E)=>{const L=this.viewItems.map(O=>O.size);let N=Number.NEGATIVE_INFINITY,I=Number.POSITIVE_INFINITY;if(this.inverseAltBehavior&&(E=!E),E)if(_===this.sashItems.length-1){const O=this.viewItems[_];N=(O.minimumSize-O.size)/2,I=(O.maximumSize-O.size)/2}else{const O=this.viewItems[_+1];N=(O.size-O.maximumSize)/2,I=(O.size-O.minimumSize)/2}let R,F;if(!E){const O=(0,D.range)(_,-1),x=(0,D.range)(_+1,this.viewItems.length),M=O.reduce(($,j)=>$+(this.viewItems[j].minimumSize-L[j]),0),P=O.reduce(($,j)=>$+(this.viewItems[j].viewMaximumSize-L[j]),0),A=x.length===0?Number.POSITIVE_INFINITY:x.reduce(($,j)=>$+(L[j]-this.viewItems[j].minimumSize),0),B=x.length===0?Number.NEGATIVE_INFINITY:x.reduce(($,j)=>$+(L[j]-this.viewItems[j].viewMaximumSize),0),K=Math.max(M,B),T=Math.min(A,P),ee=this.findFirstSnapIndex(O),J=this.findFirstSnapIndex(x);if(typeof ee=="number"){const $=this.viewItems[ee],j=Math.floor($.viewMinimumSize/2);R={index:ee,limitDelta:$.visible?K-j:K+j,size:$.size}}if(typeof J=="number"){const $=this.viewItems[J],j=Math.floor($.viewMinimumSize/2);F={index:J,limitDelta:$.visible?T+j:T-j,size:$.size}}}this.sashDragState={start:S,current:S,index:_,sizes:L,minDelta:N,maxDelta:I,alt:E,snapBefore:R,snapAfter:F,disposable:p}};m(g,f)}onSashChange({current:c}){const{index:g,start:f,sizes:_,alt:p,minDelta:m,maxDelta:S,snapBefore:E,snapAfter:L}=this.sashDragState;this.sashDragState.current=c;const N=c-f,I=this.resize(g,N,_,void 0,void 0,m,S,E,L);if(p){const R=g===this.sashItems.length-1,F=this.viewItems.map(B=>B.size),O=R?g:g+1,x=this.viewItems[O],M=x.size-x.maximumSize,P=x.size-x.minimumSize,A=R?g-1:g+1;this.resize(A,-I,F,void 0,void 0,M,P)}this.distributeEmptySpace(),this.layoutViews()}onSashEnd(c){this._onDidSashChange.fire(c),this.sashDragState.disposable.dispose(),this.saveProportions();for(const g of this.viewItems)g.enabled=!0}onViewChange(c,g){const f=this.viewItems.indexOf(c);f<0||f>=this.viewItems.length||(g=typeof g=="number"?g:c.size,g=(0,h.clamp)(g,c.minimumSize,c.maximumSize),this.inverseAltBehavior&&f>0?(this.resize(f-1,Math.floor((c.size-g)/2)),this.distributeEmptySpace(),this.layoutViews()):(c.size=g,this.relayout([f],void 0)))}resizeView(c,g){if(this.state!==d.Idle)throw new Error("Cant modify splitview");if(this.state=d.Busy,c<0||c>=this.viewItems.length)return;const f=(0,D.range)(this.viewItems.length).filter(S=>S!==c),_=[...f.filter(S=>this.viewItems[S].priority===1),c],p=f.filter(S=>this.viewItems[S].priority===2),m=this.viewItems[c];g=Math.round(g),g=(0,h.clamp)(g,m.minimumSize,Math.min(m.maximumSize,this.size)),m.size=g,this.relayout(_,p),this.state=d.Idle}distributeViewSizes(){const c=[];let g=0;for(const S of this.viewItems)S.maximumSize-S.minimumSize>0&&(c.push(S),g+=S.size);const f=Math.floor(g/c.length);for(const S of c)S.size=(0,h.clamp)(f,S.minimumSize,S.maximumSize);const _=(0,D.range)(this.viewItems.length),p=_.filter(S=>this.viewItems[S].priority===1),m=_.filter(S=>this.viewItems[S].priority===2);this.relayout(p,m)}getViewSize(c){return c<0||c>=this.viewItems.length?-1:this.viewItems[c].size}doAddView(c,g,f=this.viewItems.length,_){if(this.state!==d.Idle)throw new Error("Cant modify splitview");this.state=d.Busy;const p=(0,y.$)(".split-view-view");f===this.viewItems.length?this.viewContainer.appendChild(p):this.viewContainer.insertBefore(p,this.viewContainer.children.item(f));const m=c.onDidChange(R=>this.onViewChange(N,R)),S=(0,C.toDisposable)(()=>this.viewContainer.removeChild(p)),E=(0,C.combinedDisposable)(m,S);let L;typeof g=="number"?L=g:g.type==="split"?L=this.getViewSize(g.index)/2:g.type==="invisible"?L={cachedVisibleSize:g.cachedVisibleSize}:L=c.minimumSize;const N=this.orientation===0?new o(p,c,L,E):new s(p,c,L,E);if(this.viewItems.splice(f,0,N),this.viewItems.length>1){const R={orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash},F=this.orientation===0?new v.Sash(this.sashContainer,{getHorizontalSashTop:T=>this.getSashPosition(T),getHorizontalSashWidth:this.getSashOrthogonalSize},Object.assign(Object.assign({},R),{orientation:1})):new v.Sash(this.sashContainer,{getVerticalSashLeft:T=>this.getSashPosition(T),getVerticalSashHeight:this.getSashOrthogonalSize},Object.assign(Object.assign({},R),{orientation:0})),O=this.orientation===0?T=>({sash:F,start:T.startY,current:T.currentY,alt:T.altKey}):T=>({sash:F,start:T.startX,current:T.currentX,alt:T.altKey}),x=b.Event.map(F.onDidStart,O)(this.onSashStart,this),M=b.Event.map(F.onDidChange,O)(this.onSashChange,this),P=b.Event.map(F.onDidEnd,()=>this.sashItems.findIndex(T=>T.sash===F))(this.onSashEnd,this),A=F.onDidReset(()=>{const T=this.sashItems.findIndex(G=>G.sash===F),ee=(0,D.range)(T,-1),J=(0,D.range)(T+1,this.viewItems.length),$=this.findFirstSnapIndex(ee),j=this.findFirstSnapIndex(J);typeof $=="number"&&!this.viewItems[$].visible||typeof j=="number"&&!this.viewItems[j].visible||this._onDidSashReset.fire(T)}),B=(0,C.combinedDisposable)(x,M,P,A,F),K={sash:F,disposable:B};this.sashItems.splice(f-1,0,K)}p.appendChild(c.element);let I;typeof g!="number"&&g.type==="split"&&(I=[g.index]),_||this.relayout([f],I),this.state=d.Idle,!_&&typeof g!="number"&&g.type==="distribute"&&this.distributeViewSizes()}relayout(c,g){const f=this.viewItems.reduce((_,p)=>_+p.size,0);this.resize(this.viewItems.length-1,this.size-f,void 0,c,g),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}resize(c,g,f=this.viewItems.map(N=>N.size),_,p,m=Number.NEGATIVE_INFINITY,S=Number.POSITIVE_INFINITY,E,L){if(c<0||c>=this.viewItems.length)return 0;const N=(0,D.range)(c,-1),I=(0,D.range)(c+1,this.viewItems.length);if(p)for(const J of p)(0,D.pushToStart)(N,J),(0,D.pushToStart)(I,J);if(_)for(const J of _)(0,D.pushToEnd)(N,J),(0,D.pushToEnd)(I,J);const R=N.map(J=>this.viewItems[J]),F=N.map(J=>f[J]),O=I.map(J=>this.viewItems[J]),x=I.map(J=>f[J]),M=N.reduce((J,$)=>J+(this.viewItems[$].minimumSize-f[$]),0),P=N.reduce((J,$)=>J+(this.viewItems[$].maximumSize-f[$]),0),A=I.length===0?Number.POSITIVE_INFINITY:I.reduce((J,$)=>J+(f[$]-this.viewItems[$].minimumSize),0),B=I.length===0?Number.NEGATIVE_INFINITY:I.reduce((J,$)=>J+(f[$]-this.viewItems[$].maximumSize),0),K=Math.max(M,B,m),T=Math.min(A,P,S);let ee=!1;if(E){const J=this.viewItems[E.index],$=g>=E.limitDelta;ee=$!==J.visible,J.setVisible($,E.size)}if(!ee&&L){const J=this.viewItems[L.index],$=g<L.limitDelta;ee=$!==J.visible,J.setVisible($,L.size)}if(ee)return this.resize(c,g,f,_,p,m,S);g=(0,h.clamp)(g,K,T);for(let J=0,$=g;J<R.length;J++){const j=R[J],G=(0,h.clamp)(F[J]+$,j.minimumSize,j.maximumSize);$-=G-F[J],j.size=G}for(let J=0,$=g;J<O.length;J++){const j=O[J],G=(0,h.clamp)(x[J]-$,j.minimumSize,j.maximumSize);$+=G-x[J],j.size=G}return g}distributeEmptySpace(c){const g=this.viewItems.reduce((S,E)=>S+E.size,0);let f=this.size-g;const _=(0,D.range)(this.viewItems.length-1,-1),p=_.filter(S=>this.viewItems[S].priority===1),m=_.filter(S=>this.viewItems[S].priority===2);for(const S of m)(0,D.pushToStart)(_,S);for(const S of p)(0,D.pushToEnd)(_,S);typeof c=="number"&&(0,D.pushToEnd)(_,c);for(let S=0;f!==0&&S<_.length;S++){const E=this.viewItems[_[S]],L=(0,h.clamp)(E.size+f,E.minimumSize,E.maximumSize);f-=L-E.size,E.size=L}}layoutViews(){this.contentSize=this.viewItems.reduce((g,f)=>g+f.size,0);let c=0;for(const g of this.viewItems)g.layout(c,this.layoutContext),c+=g.size;this.sashItems.forEach(g=>g.sash.layout()),this.updateSashEnablement(),this.updateScrollableElement()}updateScrollableElement(){this.orientation===0?this.scrollableElement.setScrollDimensions({height:this.size,scrollHeight:this.contentSize}):this.scrollableElement.setScrollDimensions({width:this.size,scrollWidth:this.contentSize})}updateSashEnablement(){let c=!1;const g=this.viewItems.map(E=>c=E.size-E.minimumSize>0||c);c=!1;const f=this.viewItems.map(E=>c=E.maximumSize-E.size>0||c),_=[...this.viewItems].reverse();c=!1;const p=_.map(E=>c=E.size-E.minimumSize>0||c).reverse();c=!1;const m=_.map(E=>c=E.maximumSize-E.size>0||c).reverse();let S=0;for(let E=0;E<this.sashItems.length;E++){const{sash:L}=this.sashItems[E];S+=this.viewItems[E].size;const N=!(g[E]&&m[E+1]),I=!(f[E]&&p[E+1]);if(N&&I){const R=(0,D.range)(E,-1),F=(0,D.range)(E+1,this.viewItems.length),O=this.findFirstSnapIndex(R),x=this.findFirstSnapIndex(F),M=typeof O=="number"&&!this.viewItems[O].visible,P=typeof x=="number"&&!this.viewItems[x].visible;M&&p[E]&&(S>0||this.startSnappingEnabled)?L.state=1:P&&g[E]&&(S<this.contentSize||this.endSnappingEnabled)?L.state=2:L.state=0}else N&&!I?L.state=1:!N&&I?L.state=2:L.state=3}}getSashPosition(c){let g=0;for(let f=0;f<this.sashItems.length;f++)if(g+=this.viewItems[f].size,this.sashItems[f].sash===c)return g;return 0}findFirstSnapIndex(c){for(const g of c){const f=this.viewItems[g];if(f.visible&&f.snap)return g}for(const g of c){const f=this.viewItems[g];if(f.visible&&f.maximumSize-f.minimumSize>0)return;if(!f.visible&&f.snap)return g}}dispose(){super.dispose(),(0,C.dispose)(this.viewItems),this.viewItems=[],this.sashItems.forEach(c=>c.disposable.dispose()),this.sashItems=[]}}e.SplitView=a}),define(oe[492],se([1,0,7,113,261,6,2,349]),function(q,e,y,v,k,D,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Table=void 0;class b{constructor(i,t,o){this.columns=i,this.getColumnSize=o,this.templateId=b.TemplateId,this.renderedTemplates=new Set;const s=new Map(t.map(d=>[d.templateId,d]));this.renderers=[];for(const d of i){const l=s.get(d.templateId);if(!l)throw new Error(`Table cell renderer for template id ${d.templateId} not found.`);this.renderers.push(l)}}renderTemplate(i){const t=(0,y.append)(i,(0,y.$)(".monaco-table-tr")),o=[],s=[];for(let l=0;l<this.columns.length;l++){const a=this.renderers[l],r=(0,y.append)(t,(0,y.$)(".monaco-table-td",{"data-col-index":l}));r.style.width=`${this.getColumnSize(l)}px`,o.push(r),s.push(a.renderTemplate(r))}const d={container:i,cellContainers:o,cellTemplateData:s};return this.renderedTemplates.add(d),d}renderElement(i,t,o,s){for(let d=0;d<this.columns.length;d++){const l=this.columns[d].project(i);this.renderers[d].renderElement(l,t,o.cellTemplateData[d],s)}}disposeElement(i,t,o,s){for(let d=0;d<this.columns.length;d++){const l=this.renderers[d];if(l.disposeElement){const a=this.columns[d].project(i);l.disposeElement(a,t,o.cellTemplateData[d],s)}}}disposeTemplate(i){for(let t=0;t<this.columns.length;t++)this.renderers[t].disposeTemplate(i.cellTemplateData[t]);(0,y.clearNode)(i.container),this.renderedTemplates.delete(i)}layoutColumn(i,t){for(const{cellContainers:o}of this.renderedTemplates)o[i].style.width=`${t}px`}}b.TemplateId="row";function C(n){return{getHeight(i){return n.getHeight(i)},getTemplateId(){return b.TemplateId}}}class h{constructor(i,t){this.column=i,this.index=t,this._onDidLayout=new D.Emitter,this.onDidLayout=this._onDidLayout.event,this.element=(0,y.$)(".monaco-table-th",{"data-col-index":t,title:i.tooltip},i.label)}get minimumSize(){var i;return(i=this.column.minimumWidth)!==null&&i!==void 0?i:120}get maximumSize(){var i;return(i=this.column.maximumWidth)!==null&&i!==void 0?i:Number.POSITIVE_INFINITY}get onDidChange(){var i;return(i=this.column.onDidChangeWidthConstraints)!==null&&i!==void 0?i:D.Event.None}layout(i){this._onDidLayout.fire([this.index,i])}}class u{constructor(i,t,o,s,d,l){this.virtualDelegate=o,this.domId=`table_id_${++u.InstanceCount}`,this.disposables=new w.DisposableStore,this.cachedWidth=0,this.cachedHeight=0,this.domNode=(0,y.append)(t,(0,y.$)(`.monaco-table.${this.domId}`));const a=s.map((g,f)=>new h(g,f)),r={size:a.reduce((g,f)=>g+f.column.weight,0),views:a.map(g=>({size:g.column.weight,view:g}))};this.splitview=this.disposables.add(new k.SplitView(this.domNode,{orientation:1,scrollbarVisibility:2,getSashOrthogonalSize:()=>this.cachedHeight,descriptor:r})),this.splitview.el.style.height=`${o.headerRowHeight}px`,this.splitview.el.style.lineHeight=`${o.headerRowHeight}px`;const c=new b(s,d,g=>this.splitview.getViewSize(g));this.list=this.disposables.add(new v.List(i,this.domNode,C(o),[c],l)),D.Event.any(...a.map(g=>g.onDidLayout))(([g,f])=>c.layoutColumn(g,f),null,this.disposables),this.splitview.onDidSashReset(g=>{const f=s.reduce((p,m)=>p+m.weight,0),_=s[g].weight/f*this.cachedWidth;this.splitview.resizeView(g,_)},null,this.disposables),this.styleElement=(0,y.createStyleSheet)(this.domNode),this.style({})}get onDidChangeFocus(){return this.list.onDidChangeFocus}get onDidChangeSelection(){return this.list.onDidChangeSelection}get onMouseDblClick(){return this.list.onMouseDblClick}get onPointer(){return this.list.onPointer}get onDidFocus(){return this.list.onDidFocus}get onDidDispose(){return this.list.onDidDispose}updateOptions(i){this.list.updateOptions(i)}splice(i,t,o=[]){this.list.splice(i,t,o)}getHTMLElement(){return this.domNode}style(i){const t=[];t.push(`.monaco-table.${this.domId} > .monaco-split-view2 .monaco-sash.vertical::before { top: ${this.virtualDelegate.headerRowHeight+1}px; height: calc(100% - ${this.virtualDelegate.headerRowHeight}px); }`),this.styleElement.textContent=t.join(` `),this.list.style(i)}getSelectedElements(){return this.list.getSelectedElements()}getSelection(){return this.list.getSelection()}getFocus(){return this.list.getFocus()}dispose(){this.disposables.dispose()}}e.Table=u,u.InstanceCount=0}),define(oe[162],se([1,0,68,27,31,6,350]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Toggle=void 0;const w={inputActiveOptionBorder:k.Color.fromHex("#007ACC00"),inputActiveOptionForeground:k.Color.fromHex("#FFFFFF"),inputActiveOptionBackground:k.Color.fromHex("#0E639C50")};class b extends y.Widget{constructor(h){super(),this._onChange=this._register(new D.Emitter),this.onChange=this._onChange.event,this._onKeyDown=this._register(new D.Emitter),this.onKeyDown=this._onKeyDown.event,this._opts=Object.assign(Object.assign({},w),h),this._checked=this._opts.isChecked;const u=["monaco-custom-toggle"];this._opts.icon&&(this._icon=this._opts.icon,u.push(...v.CSSIcon.asClassNameArray(this._icon))),this._opts.actionClassName&&u.push(...this._opts.actionClassName.split(" ")),this._checked&&u.push("checked"),this.domNode=document.createElement("div"),this.domNode.title=this._opts.title,this.domNode.classList.add(...u),this._opts.notFocusable||(this.domNode.tabIndex=0),this.domNode.setAttribute("role","checkbox"),this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.setAttribute("aria-label",this._opts.title),this.applyStyles(),this.onclick(this.domNode,n=>{this.enabled&&(this.checked=!this._checked,this._onChange.fire(!1),n.preventDefault())}),this.ignoreGesture(this.domNode),this.onkeydown(this.domNode,n=>{if(n.keyCode===10||n.keyCode===3){this.checked=!this._checked,this._onChange.fire(!0),n.preventDefault(),n.stopPropagation();return}this._onKeyDown.fire(n)})}get enabled(){return this.domNode.getAttribute("aria-disabled")!=="true"}focus(){this.domNode.focus()}get checked(){return this._checked}set checked(h){this._checked=h,this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.classList.toggle("checked",this._checked),this.applyStyles()}width(){return 2+2+2+16}style(h){h.inputActiveOptionBorder&&(this._opts.inputActiveOptionBorder=h.inputActiveOptionBorder),h.inputActiveOptionForeground&&(this._opts.inputActiveOptionForeground=h.inputActiveOptionForeground),h.inputActiveOptionBackground&&(this._opts.inputActiveOptionBackground=h.inputActiveOptionBackground),this.applyStyles()}applyStyles(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder?this._opts.inputActiveOptionBorder.toString():"",this.domNode.style.color=this._checked&&this._opts.inputActiveOptionForeground?this._opts.inputActiveOptionForeground.toString():"inherit",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground?this._opts.inputActiveOptionBackground.toString():"")}enable(){this.domNode.setAttribute("aria-disabled",String(!1))}disable(){this.domNode.setAttribute("aria-disabled",String(!0))}}e.Toggle=b}),define(oe[262],se([1,0,162,27,464]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RegexToggle=e.WholeWordsToggle=e.CaseSensitiveToggle=void 0;const D=k.localize(0,null),w=k.localize(1,null),b=k.localize(2,null);class C extends y.Toggle{constructor(i){super({icon:v.Codicon.caseSensitive,title:D+i.appendTitle,isChecked:i.isChecked,inputActiveOptionBorder:i.inputActiveOptionBorder,inputActiveOptionForeground:i.inputActiveOptionForeground,inputActiveOptionBackground:i.inputActiveOptionBackground})}}e.CaseSensitiveToggle=C;class h extends y.Toggle{constructor(i){super({icon:v.Codicon.wholeWord,title:w+i.appendTitle,isChecked:i.isChecked,inputActiveOptionBorder:i.inputActiveOptionBorder,inputActiveOptionForeground:i.inputActiveOptionForeground,inputActiveOptionBackground:i.inputActiveOptionBackground})}}e.WholeWordsToggle=h;class u extends y.Toggle{constructor(i){super({icon:v.Codicon.regex,title:b+i.appendTitle,isChecked:i.isChecked,inputActiveOptionBorder:i.inputActiveOptionBorder,inputActiveOptionForeground:i.inputActiveOptionForeground,inputActiveOptionBackground:i.inputActiveOptionBackground})}}e.RegexToggle=u}),define(oe[263],se([1,0,7,262,199,68,6,463,227]),function(q,e,y,v,k,D,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FindInput=void 0;const C=b.localize(0,null);class h extends D.Widget{constructor(n,i,t,o){var s;super(),this._showOptionButtons=t,this.fixFocusOnOptionClickEnabled=!0,this.imeSessionInProgress=!1,this.additionalToggles=[],this._onDidOptionChange=this._register(new w.Emitter),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new w.Emitter),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new w.Emitter),this.onMouseDown=this._onMouseDown.event,this._onInput=this._register(new w.Emitter),this._onKeyUp=this._register(new w.Emitter),this._onCaseSensitiveKeyDown=this._register(new w.Emitter),this.onCaseSensitiveKeyDown=this._onCaseSensitiveKeyDown.event,this._onRegexKeyDown=this._register(new w.Emitter),this.onRegexKeyDown=this._onRegexKeyDown.event,this._lastHighlightFindOptions=0,this.contextViewProvider=i,this.placeholder=o.placeholder||"",this.validation=o.validation,this.label=o.label||C,this.inputActiveOptionBorder=o.inputActiveOptionBorder,this.inputActiveOptionForeground=o.inputActiveOptionForeground,this.inputActiveOptionBackground=o.inputActiveOptionBackground,this.inputBackground=o.inputBackground,this.inputForeground=o.inputForeground,this.inputBorder=o.inputBorder,this.inputValidationInfoBorder=o.inputValidationInfoBorder,this.inputValidationInfoBackground=o.inputValidationInfoBackground,this.inputValidationInfoForeground=o.inputValidationInfoForeground,this.inputValidationWarningBorder=o.inputValidationWarningBorder,this.inputValidationWarningBackground=o.inputValidationWarningBackground,this.inputValidationWarningForeground=o.inputValidationWarningForeground,this.inputValidationErrorBorder=o.inputValidationErrorBorder,this.inputValidationErrorBackground=o.inputValidationErrorBackground,this.inputValidationErrorForeground=o.inputValidationErrorForeground;const d=o.appendCaseSensitiveLabel||"",l=o.appendWholeWordsLabel||"",a=o.appendRegexLabel||"",r=o.history||[],c=!!o.flexibleHeight,g=!!o.flexibleWidth,f=o.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new k.HistoryInputBox(this.domNode,this.contextViewProvider,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation},inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder,history:r,showHistoryHint:o.showHistoryHint,flexibleHeight:c,flexibleWidth:g,flexibleMaxHeight:f})),this.regex=this._register(new v.RegexToggle({appendTitle:a,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.regex.onChange(p=>{this._onDidOptionChange.fire(p),!p&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.regex.onKeyDown(p=>{this._onRegexKeyDown.fire(p)})),this.wholeWords=this._register(new v.WholeWordsToggle({appendTitle:l,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.wholeWords.onChange(p=>{this._onDidOptionChange.fire(p),!p&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this.caseSensitive=this._register(new v.CaseSensitiveToggle({appendTitle:d,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.caseSensitive.onChange(p=>{this._onDidOptionChange.fire(p),!p&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.caseSensitive.onKeyDown(p=>{this._onCaseSensitiveKeyDown.fire(p)}));const _=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];this.onkeydown(this.domNode,p=>{if(p.equals(15)||p.equals(17)||p.equals(9)){const m=_.indexOf(document.activeElement);if(m>=0){let S=-1;p.equals(17)?S=(m+1)%_.length:p.equals(15)&&(m===0?S=_.length-1:S=m-1),p.equals(9)?(_[m].blur(),this.inputBox.focus()):S>=0&&_[S].focus(),y.EventHelper.stop(p,!0)}}}),this.controls=document.createElement("div"),this.controls.className="controls",this.controls.style.display=this._showOptionButtons?"block":"none",this.controls.appendChild(this.caseSensitive.domNode),this.controls.appendChild(this.wholeWords.domNode),this.controls.appendChild(this.regex.domNode),this._showOptionButtons||(this.caseSensitive.domNode.style.display="none",this.wholeWords.domNode.style.display="none",this.regex.domNode.style.display="none");for(const p of(s=o?.additionalToggles)!==null&&s!==void 0?s:[])this._register(p),this.controls.appendChild(p.domNode),this._register(p.onChange(m=>{this._onDidOptionChange.fire(m),!m&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus()})),this.additionalToggles.push(p);this.additionalToggles.length>0&&(this.controls.style.display="block"),this.inputBox.paddingRight=(this._showOptionButtons?this.caseSensitive.width()+this.wholeWords.width()+this.regex.width():0)+this.additionalToggles.reduce((p,m)=>p+m.width(),0),this.domNode.appendChild(this.controls),n?.appendChild(this.domNode),this._register(y.addDisposableListener(this.inputBox.inputElement,"compositionstart",p=>{this.imeSessionInProgress=!0})),this._register(y.addDisposableListener(this.inputBox.inputElement,"compositionend",p=>{this.imeSessionInProgress=!1,this._onInput.fire()})),this.onkeydown(this.inputBox.inputElement,p=>this._onKeyDown.fire(p)),this.onkeyup(this.inputBox.inputElement,p=>this._onKeyUp.fire(p)),this.oninput(this.inputBox.inputElement,p=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,p=>this._onMouseDown.fire(p))}get onDidChange(){return this.inputBox.onDidChange}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable();for(const n of this.additionalToggles)n.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.regex.disable(),this.wholeWords.disable(),this.caseSensitive.disable();for(const n of this.additionalToggles)n.disable()}setFocusInputOnOptionClick(n){this.fixFocusOnOptionClickEnabled=n}setEnabled(n){n?this.enable():this.disable()}getValue(){return this.inputBox.value}setValue(n){this.inputBox.value!==n&&(this.inputBox.value=n)}style(n){this.inputActiveOptionBorder=n.inputActiveOptionBorder,this.inputActiveOptionForeground=n.inputActiveOptionForeground,this.inputActiveOptionBackground=n.inputActiveOptionBackground,this.inputBackground=n.inputBackground,this.inputForeground=n.inputForeground,this.inputBorder=n.inputBorder,this.inputValidationInfoBackground=n.inputValidationInfoBackground,this.inputValidationInfoForeground=n.inputValidationInfoForeground,this.inputValidationInfoBorder=n.inputValidationInfoBorder,this.inputValidationWarningBackground=n.inputValidationWarningBackground,this.inputValidationWarningForeground=n.inputValidationWarningForeground,this.inputValidationWarningBorder=n.inputValidationWarningBorder,this.inputValidationErrorBackground=n.inputValidationErrorBackground,this.inputValidationErrorForeground=n.inputValidationErrorForeground,this.inputValidationErrorBorder=n.inputValidationErrorBorder,this.applyStyles()}applyStyles(){if(this.domNode){const n={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground};this.regex.style(n),this.wholeWords.style(n),this.caseSensitive.style(n);for(const t of this.additionalToggles)t.style(n);const i={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(i)}}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getCaseSensitive(){return this.caseSensitive.checked}setCaseSensitive(n){this.caseSensitive.checked=n}getWholeWords(){return this.wholeWords.checked}setWholeWords(n){this.wholeWords.checked=n}getRegex(){return this.regex.checked}setRegex(n){this.regex.checked=n,this.validate()}focusOnCaseSensitive(){this.caseSensitive.focus()}highlightFindOptions(){this.domNode.classList.remove("highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,this.domNode.classList.add("highlight-"+this._lastHighlightFindOptions)}validate(){this.inputBox.validate()}showMessage(n){this.inputBox.showMessage(n)}clearMessage(){this.inputBox.hideMessage()}}e.FindInput=h}),define(oe[493],se([1,0,7,162,199,68,27,6,465,227]),function(q,e,y,v,k,D,w,b,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ReplaceInput=e.PreserveCaseToggle=void 0;const h=C.localize(0,null),u=C.localize(1,null);class n extends v.Toggle{constructor(o){super({icon:w.Codicon.preserveCase,title:u+o.appendTitle,isChecked:o.isChecked,inputActiveOptionBorder:o.inputActiveOptionBorder,inputActiveOptionForeground:o.inputActiveOptionForeground,inputActiveOptionBackground:o.inputActiveOptionBackground})}}e.PreserveCaseToggle=n;class i extends D.Widget{constructor(o,s,d,l){super(),this._showOptionButtons=d,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new b.Emitter),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new b.Emitter),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new b.Emitter),this._onInput=this._register(new b.Emitter),this._onKeyUp=this._register(new b.Emitter),this._onPreserveCaseKeyDown=this._register(new b.Emitter),this.onPreserveCaseKeyDown=this._onPreserveCaseKeyDown.event,this.contextViewProvider=s,this.placeholder=l.placeholder||"",this.validation=l.validation,this.label=l.label||h,this.inputActiveOptionBorder=l.inputActiveOptionBorder,this.inputActiveOptionForeground=l.inputActiveOptionForeground,this.inputActiveOptionBackground=l.inputActiveOptionBackground,this.inputBackground=l.inputBackground,this.inputForeground=l.inputForeground,this.inputBorder=l.inputBorder,this.inputValidationInfoBorder=l.inputValidationInfoBorder,this.inputValidationInfoBackground=l.inputValidationInfoBackground,this.inputValidationInfoForeground=l.inputValidationInfoForeground,this.inputValidationWarningBorder=l.inputValidationWarningBorder,this.inputValidationWarningBackground=l.inputValidationWarningBackground,this.inputValidationWarningForeground=l.inputValidationWarningForeground,this.inputValidationErrorBorder=l.inputValidationErrorBorder,this.inputValidationErrorBackground=l.inputValidationErrorBackground,this.inputValidationErrorForeground=l.inputValidationErrorForeground;const a=l.appendPreserveCaseLabel||"",r=l.history||[],c=!!l.flexibleHeight,g=!!l.flexibleWidth,f=l.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new k.HistoryInputBox(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder,history:r,showHistoryHint:l.showHistoryHint,flexibleHeight:c,flexibleWidth:g,flexibleMaxHeight:f})),this.preserveCase=this._register(new n({appendTitle:a,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.preserveCase.onChange(m=>{this._onDidOptionChange.fire(m),!m&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.preserveCase.onKeyDown(m=>{this._onPreserveCaseKeyDown.fire(m)})),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;const _=[this.preserveCase.domNode];this.onkeydown(this.domNode,m=>{if(m.equals(15)||m.equals(17)||m.equals(9)){const S=_.indexOf(document.activeElement);if(S>=0){let E=-1;m.equals(17)?E=(S+1)%_.length:m.equals(15)&&(S===0?E=_.length-1:E=S-1),m.equals(9)?(_[S].blur(),this.inputBox.focus()):E>=0&&_[E].focus(),y.EventHelper.stop(m,!0)}}});const p=document.createElement("div");p.className="controls",p.style.display=this._showOptionButtons?"block":"none",p.appendChild(this.preserveCase.domNode),this.domNode.appendChild(p),o?.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,m=>this._onKeyDown.fire(m)),this.onkeyup(this.inputBox.inputElement,m=>this._onKeyUp.fire(m)),this.oninput(this.inputBox.inputElement,m=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,m=>this._onMouseDown.fire(m))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.preserveCase.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.preserveCase.disable()}setEnabled(o){o?this.enable():this.disable()}style(o){this.inputActiveOptionBorder=o.inputActiveOptionBorder,this.inputActiveOptionForeground=o.inputActiveOptionForeground,this.inputActiveOptionBackground=o.inputActiveOptionBackground,this.inputBackground=o.inputBackground,this.inputForeground=o.inputForeground,this.inputBorder=o.inputBorder,this.inputValidationInfoBackground=o.inputValidationInfoBackground,this.inputValidationInfoForeground=o.inputValidationInfoForeground,this.inputValidationInfoBorder=o.inputValidationInfoBorder,this.inputValidationWarningBackground=o.inputValidationWarningBackground,this.inputValidationWarningForeground=o.inputValidationWarningForeground,this.inputValidationWarningBorder=o.inputValidationWarningBorder,this.inputValidationErrorBackground=o.inputValidationErrorBackground,this.inputValidationErrorForeground=o.inputValidationErrorForeground,this.inputValidationErrorBorder=o.inputValidationErrorBorder,this.applyStyles()}applyStyles(){if(this.domNode){const o={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground};this.preserveCase.style(o);const s={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(s)}}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getPreserveCase(){return this.preserveCase.checked}setPreserveCase(o){this.preserveCase.checked=o}focusOnPreserve(){this.preserveCase.focus()}validate(){this.inputBox&&this.inputBox.validate()}set width(o){this.inputBox.paddingRight=this.cachedOptionsWidth,this.inputBox.width=o,this.domNode.style.width=o+"px"}dispose(){super.dispose()}}e.ReplaceInput=i}),define(oe[163],se([1,0,7,100,48,83,263,200,113,162,193,121,42,18,10,27,327,6,63,2,124,19,469,351]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r,c,g,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractTree=e.TreeFindMode=e.ModeToggle=e.RenderIndentGuides=e.ComposedTreeDelegate=void 0;class _ extends b.ElementsDragAndDropData{constructor($){super($.elements.map(j=>j.element)),this.data=$}}function p(J){return J instanceof b.ElementsDragAndDropData?new _(J):J}class m{constructor($,j){this.modelProvider=$,this.dnd=j,this.autoExpandDisposable=r.Disposable.None}getDragURI($){return this.dnd.getDragURI($.element)}getDragLabel($,j){if(this.dnd.getDragLabel)return this.dnd.getDragLabel($.map(G=>G.element),j)}onDragStart($,j){var G,te;(te=(G=this.dnd).onDragStart)===null||te===void 0||te.call(G,p($),j)}onDragOver($,j,G,te,Z=!0){const X=this.dnd.onDragOver(p($),j&&j.element,G,te),ie=this.autoExpandNode!==j;if(ie&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=j),typeof j>"u")return X;if(ie&&typeof X!="boolean"&&X.autoExpand&&(this.autoExpandDisposable=(0,o.disposableTimeout)(()=>{const le=this.modelProvider(),z=le.getNodeLocation(j);le.isCollapsed(z)&&le.setCollapsed(z,!1),this.autoExpandNode=void 0},500)),typeof X=="boolean"||!X.accept||typeof X.bubble>"u"||X.feedback){if(!Z){const le=typeof X=="boolean"?X:X.accept,z=typeof X=="boolean"?void 0:X.effect;return{accept:le,effect:z,feedback:[G]}}return X}if(X.bubble===1){const le=this.modelProvider(),z=le.getNodeLocation(j),Q=le.getParentNodeLocation(z),W=le.getNode(Q),V=Q&&le.getListIndex(Q);return this.onDragOver($,W,V,te,!1)}const H=this.modelProvider(),ae=H.getNodeLocation(j),Y=H.getListIndex(ae),U=H.getListRenderCount(ae);return Object.assign(Object.assign({},X),{feedback:(0,t.range)(Y,Y+U)})}drop($,j,G,te){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(p($),j&&j.element,G,te)}onDragEnd($){var j,G;(G=(j=this.dnd).onDragEnd)===null||G===void 0||G.call(j,$)}}function S(J,$){return $&&Object.assign(Object.assign({},$),{identityProvider:$.identityProvider&&{getId(j){return $.identityProvider.getId(j.element)}},dnd:$.dnd&&new m(J,$.dnd),multipleSelectionController:$.multipleSelectionController&&{isSelectionSingleChangeEvent(j){return $.multipleSelectionController.isSelectionSingleChangeEvent(Object.assign(Object.assign({},j),{element:j.element}))},isSelectionRangeChangeEvent(j){return $.multipleSelectionController.isSelectionRangeChangeEvent(Object.assign(Object.assign({},j),{element:j.element}))}},accessibilityProvider:$.accessibilityProvider&&Object.assign(Object.assign({},$.accessibilityProvider),{getSetSize(j){const G=J(),te=G.getNodeLocation(j),Z=G.getParentNodeLocation(te);return G.getNode(Z).visibleChildrenCount},getPosInSet(j){return j.visibleChildIndex+1},isChecked:$.accessibilityProvider&&$.accessibilityProvider.isChecked?j=>$.accessibilityProvider.isChecked(j.element):void 0,getRole:$.accessibilityProvider&&$.accessibilityProvider.getRole?j=>$.accessibilityProvider.getRole(j.element):()=>"treeitem",getAriaLabel(j){return $.accessibilityProvider.getAriaLabel(j.element)},getWidgetAriaLabel(){return $.accessibilityProvider.getWidgetAriaLabel()},getWidgetRole:$.accessibilityProvider&&$.accessibilityProvider.getWidgetRole?()=>$.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:$.accessibilityProvider&&$.accessibilityProvider.getAriaLevel?j=>$.accessibilityProvider.getAriaLevel(j.element):j=>j.depth,getActiveDescendantId:$.accessibilityProvider.getActiveDescendantId&&(j=>$.accessibilityProvider.getActiveDescendantId(j.element))}),keyboardNavigationLabelProvider:$.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},$.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel(j){return $.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(j.element)}})})}class E{constructor($){this.delegate=$}getHeight($){return this.delegate.getHeight($.element)}getTemplateId($){return this.delegate.getTemplateId($.element)}hasDynamicHeight($){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight($.element)}setDynamicHeight($,j){var G,te;(te=(G=this.delegate).setDynamicHeight)===null||te===void 0||te.call(G,$.element,j)}}e.ComposedTreeDelegate=E;var L;(function(J){J.None="none",J.OnHover="onHover",J.Always="always"})(L=e.RenderIndentGuides||(e.RenderIndentGuides={}));class N{constructor($,j=[]){this._elements=j,this.disposables=new r.DisposableStore,this.onDidChange=l.Event.forEach($,G=>this._elements=G,this.disposables)}get elements(){return this._elements}dispose(){this.disposables.dispose()}}class I{constructor($,j,G,te,Z={}){var X;this.renderer=$,this.modelProvider=j,this.activeNodes=te,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=I.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.renderedIndentGuides=new d.SetMap,this.activeIndentNodes=new Set,this.indentGuidesDisposable=r.Disposable.None,this.disposables=new r.DisposableStore,this.templateId=$.templateId,this.updateOptions(Z),l.Event.map(G,ie=>ie.node)(this.onDidChangeNodeTwistieState,this,this.disposables),(X=$.onDidChangeTwistieState)===null||X===void 0||X.call($,this.onDidChangeTwistieState,this,this.disposables)}updateOptions($={}){if(typeof $.indent<"u"&&(this.indent=(0,c.clamp)($.indent,0,40)),typeof $.renderIndentGuides<"u"){const j=$.renderIndentGuides!==L.None;if(j!==this.shouldRenderIndentGuides&&(this.shouldRenderIndentGuides=j,this.indentGuidesDisposable.dispose(),j)){const G=new r.DisposableStore;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,G),this.indentGuidesDisposable=G,this._onDidChangeActiveNodes(this.activeNodes.elements)}}typeof $.hideTwistiesOfChildlessElements<"u"&&(this.hideTwistiesOfChildlessElements=$.hideTwistiesOfChildlessElements)}renderTemplate($){const j=(0,y.append)($,(0,y.$)(".monaco-tl-row")),G=(0,y.append)(j,(0,y.$)(".monaco-tl-indent")),te=(0,y.append)(j,(0,y.$)(".monaco-tl-twistie")),Z=(0,y.append)(j,(0,y.$)(".monaco-tl-contents")),X=this.renderer.renderTemplate(Z);return{container:$,indent:G,twistie:te,indentGuidesDisposable:r.Disposable.None,templateData:X}}renderElement($,j,G,te){typeof te=="number"&&(this.renderedNodes.set($,{templateData:G,height:te}),this.renderedElements.set($.element,$));const Z=I.DefaultIndent+($.depth-1)*this.indent;G.twistie.style.paddingLeft=`${Z}px`,G.indent.style.width=`${Z+this.indent-16}px`,this.renderTwistie($,G),typeof te=="number"&&this.renderIndentGuides($,G),this.renderer.renderElement($,j,G.templateData,te)}disposeElement($,j,G,te){var Z,X;G.indentGuidesDisposable.dispose(),(X=(Z=this.renderer).disposeElement)===null||X===void 0||X.call(Z,$,j,G.templateData,te),typeof te=="number"&&(this.renderedNodes.delete($),this.renderedElements.delete($.element))}disposeTemplate($){this.renderer.disposeTemplate($.templateData)}onDidChangeTwistieState($){const j=this.renderedElements.get($);!j||this.onDidChangeNodeTwistieState(j)}onDidChangeNodeTwistieState($){const j=this.renderedNodes.get($);!j||(this.renderTwistie($,j.templateData),this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderIndentGuides($,j.templateData))}renderTwistie($,j){j.twistie.classList.remove(...s.Codicon.treeItemExpanded.classNamesArray);let G=!1;this.renderer.renderTwistie&&(G=this.renderer.renderTwistie($.element,j.twistie)),$.collapsible&&(!this.hideTwistiesOfChildlessElements||$.visibleChildrenCount>0)?(G||j.twistie.classList.add(...s.Codicon.treeItemExpanded.classNamesArray),j.twistie.classList.add("collapsible"),j.twistie.classList.toggle("collapsed",$.collapsed)):j.twistie.classList.remove("collapsible","collapsed"),$.collapsible?j.container.setAttribute("aria-expanded",String(!$.collapsed)):j.container.removeAttribute("aria-expanded")}renderIndentGuides($,j){if((0,y.clearNode)(j.indent),j.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;const G=new r.DisposableStore,te=this.modelProvider();let Z=$;for(;;){const X=te.getNodeLocation(Z),ie=te.getParentNodeLocation(X);if(!ie)break;const H=te.getNode(ie),ae=(0,y.$)(".indent-guide",{style:`width: ${this.indent}px`});this.activeIndentNodes.has(H)&&ae.classList.add("active"),j.indent.childElementCount===0?j.indent.appendChild(ae):j.indent.insertBefore(ae,j.indent.firstElementChild),this.renderedIndentGuides.add(H,ae),G.add((0,r.toDisposable)(()=>this.renderedIndentGuides.delete(H,ae))),Z=H}j.indentGuidesDisposable=G}_onDidChangeActiveNodes($){if(!this.shouldRenderIndentGuides)return;const j=new Set,G=this.modelProvider();$.forEach(te=>{const Z=G.getNodeLocation(te);try{const X=G.getParentNodeLocation(Z);te.collapsible&&te.children.length>0&&!te.collapsed?j.add(te):X&&j.add(G.getNode(X))}catch{}}),this.activeIndentNodes.forEach(te=>{j.has(te)||this.renderedIndentGuides.forEach(te,Z=>Z.classList.remove("active"))}),j.forEach(te=>{this.activeIndentNodes.has(te)||this.renderedIndentGuides.forEach(te,Z=>Z.classList.add("active"))}),this.activeIndentNodes=j}dispose(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),(0,r.dispose)(this.disposables)}}I.DefaultIndent=8;class R{constructor($,j,G){this.tree=$,this.keyboardNavigationLabelProvider=j,this._filter=G,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new r.DisposableStore,$.onWillRefilter(this.reset,this,this.disposables)}get totalCount(){return this._totalCount}get matchCount(){return this._matchCount}filter($,j){let G=1;if(this._filter){const X=this._filter.filter($,j);if(typeof X=="boolean"?G=X?1:0:(0,u.isFilterResult)(X)?G=(0,u.getVisibleState)(X.visibility):G=X,G===0)return!1}if(this._totalCount++,!this._pattern)return this._matchCount++,{data:a.FuzzyScore.Default,visibility:G};const te=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel($),Z=Array.isArray(te)?te:[te];for(const X of Z){const ie=X&&X.toString();if(typeof ie>"u")return{data:a.FuzzyScore.Default,visibility:G};const H=(0,a.fuzzyScore)(this._pattern,this._lowercasePattern,0,ie,ie.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});if(H)return this._matchCount++,Z.length===1?{data:H,visibility:G}:{data:{label:ie,score:H},visibility:G}}return this.tree.findMode===O.Filter?2:{data:a.FuzzyScore.Default,visibility:G}}reset(){this._totalCount=0,this._matchCount=0}dispose(){(0,r.dispose)(this.disposables)}}class F extends h.Toggle{constructor($){var j;super({icon:s.Codicon.filter,title:(0,f.localize)(0,null),isChecked:(j=$?.isChecked)!==null&&j!==void 0?j:!1,inputActiveOptionBorder:$?.inputActiveOptionBorder,inputActiveOptionForeground:$?.inputActiveOptionForeground,inputActiveOptionBackground:$?.inputActiveOptionBackground})}}e.ModeToggle=F;var O;(function(J){J[J.Highlight=0]="Highlight",J[J.Filter=1]="Filter"})(O=e.TreeFindMode||(e.TreeFindMode={}));class x extends r.Disposable{constructor($,j,G,te,Z){super(),this.tree=j,this.elements=(0,y.h)(".monaco-tree-type-filter",[(0,y.h)(".monaco-tree-type-filter-grab.codicon.codicon-debug-gripper@grab",{tabIndex:0}),(0,y.h)(".monaco-tree-type-filter-input@findInput"),(0,y.h)(".monaco-tree-type-filter-actionbar@actionbar")]),this.width=0,this.right=0,this._onDidDisable=new l.Emitter,$.appendChild(this.elements.root),this._register((0,r.toDisposable)(()=>$.removeChild(this.elements.root))),this.modeToggle=this._register(new F(Object.assign(Object.assign({},Z),{isChecked:te===O.Filter}))),this.onDidChangeMode=l.Event.map(this.modeToggle.onChange,()=>this.modeToggle.checked?O.Filter:O.Highlight,this._store),this.findInput=this._register(new w.FindInput(this.elements.findInput,G,!1,{label:(0,f.localize)(3,null),additionalToggles:[this.modeToggle]})),this.actionbar=this._register(new D.ActionBar(this.elements.actionbar)),this.mode=te;const X=this._register(new v.DomEmitter(this.findInput.inputBox.inputElement,"keydown")),ie=this._register(l.Event.chain(X.event)).map(U=>new k.StandardKeyboardEvent(U)).event;this._register(ie(U=>{switch(U.keyCode){case 18:U.preventDefault(),U.stopPropagation(),this.tree.domFocus();return}}));const H=this._register(new i.Action("close",(0,f.localize)(4,null),"codicon codicon-close",!0,()=>this.dispose()));this.actionbar.push(H,{icon:!0,label:!1});const ae=this._register(new v.DomEmitter(this.elements.grab,"mousedown"));this._register(ae.event(U=>{const le=new r.DisposableStore,z=le.add(new v.DomEmitter(window,"mousemove")),Q=le.add(new v.DomEmitter(window,"mouseup")),W=this.right,V=U.pageX;this.elements.grab.classList.add("grabbing");const ne=de=>{const ce=de.pageX-V;this.right=W-ce,this.layout()};le.add(z.event(ne)),le.add(Q.event(de=>{ne(de),this.elements.grab.classList.remove("grabbing"),le.dispose()}))}));const Y=this._register(l.Event.chain(this._register(new v.DomEmitter(this.elements.grab,"keydown")).event)).map(U=>new k.StandardKeyboardEvent(U)).event;this._register(Y(U=>{let le;U.keyCode===15?le=Number.POSITIVE_INFINITY:U.keyCode===17?le=0:U.keyCode===10&&(le=this.right===0?Number.POSITIVE_INFINITY:0),le!==void 0&&(U.preventDefault(),U.stopPropagation(),this.right=le,this.layout())})),this.onDidChangeValue=this.findInput.onDidChange,this.style(Z??{})}set mode($){this.modeToggle.checked=$===O.Filter,this.findInput.inputBox.setPlaceHolder($===O.Filter?(0,f.localize)(1,null):(0,f.localize)(2,null))}style($){this.findInput.style($),$.listFilterWidgetBackground&&(this.elements.root.style.backgroundColor=$.listFilterWidgetBackground.toString()),$.listFilterWidgetShadow&&(this.elements.root.style.boxShadow=`0 0 8px 2px ${$.listFilterWidgetShadow}`)}layout($=this.width){this.width=$,this.right=(0,c.clamp)(this.right,0,Math.max(0,$-212)),this.elements.root.style.right=`${this.right}px`}showMessage($){this.findInput.showMessage($)}clearMessage(){this.findInput.clearMessage()}dispose(){const $=Object.create(null,{dispose:{get:()=>super.dispose}});return be(this,void 0,void 0,function*(){this._onDidDisable.fire(),this.elements.root.classList.add("disabled"),yield(0,o.timeout)(300),$.dispose.call(this)})}}class M{constructor($,j,G,te,Z){var X;this.tree=$,this.view=G,this.filter=te,this.contextViewProvider=Z,this._pattern="",this.width=0,this._onDidChangeMode=new l.Emitter,this.onDidChangeMode=this._onDidChangeMode.event,this._onDidChangePattern=new l.Emitter,this._onDidChangeOpenState=new l.Emitter,this.onDidChangeOpenState=this._onDidChangeOpenState.event,this.enabledDisposables=new r.DisposableStore,this.disposables=new r.DisposableStore,this._mode=(X=$.options.defaultFindMode)!==null&&X!==void 0?X:O.Highlight,j.onDidSplice(this.onDidSpliceModel,this,this.disposables)}get pattern(){return this._pattern}get mode(){return this._mode}set mode($){$!==this._mode&&(this._mode=$,this.widget&&(this.widget.mode=this._mode),this.tree.refilter(),this.render(),this._onDidChangeMode.fire($))}onDidSpliceModel(){!this.widget||this.pattern.length===0||(this.tree.refilter(),this.render())}render(){var $,j;const G=this.filter.totalCount>0&&this.filter.matchCount===0;this.pattern&&G?($=this.widget)===null||$===void 0||$.showMessage({type:2,content:(0,f.localize)(5,null)}):(j=this.widget)===null||j===void 0||j.clearMessage()}shouldAllowFocus($){return!this.widget||!this.pattern||this._mode===O.Filter||this.filter.totalCount>0&&this.filter.matchCount<=1?!0:!a.FuzzyScore.isDefault($.filterData)}style($){var j;this.styles=$,(j=this.widget)===null||j===void 0||j.style($)}layout($){var j;this.width=$,(j=this.widget)===null||j===void 0||j.layout($)}dispose(){this._onDidChangePattern.dispose(),this.enabledDisposables.dispose(),this.disposables.dispose()}}function P(J){let $=n.TreeMouseEventTarget.Unknown;return(0,y.hasParentWithClass)(J.browserEvent.target,"monaco-tl-twistie","monaco-tl-row")?$=n.TreeMouseEventTarget.Twistie:(0,y.hasParentWithClass)(J.browserEvent.target,"monaco-tl-contents","monaco-tl-row")?$=n.TreeMouseEventTarget.Element:(0,y.hasParentWithClass)(J.browserEvent.target,"monaco-tree-type-filter","monaco-list")&&($=n.TreeMouseEventTarget.Filter),{browserEvent:J.browserEvent,element:J.element?J.element.element:null,target:$}}function A(J,$){$(J),J.children.forEach(j=>A(j,$))}class B{constructor($,j){this.getFirstViewElementWithTrait=$,this.identityProvider=j,this.nodes=[],this._onDidChange=new l.Emitter,this.onDidChange=this._onDidChange.event}get nodeSet(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet}set($,j){!j?.__forceEvent&&(0,t.equals)(this.nodes,$)||this._set($,!1,j)}_set($,j,G){if(this.nodes=[...$],this.elements=void 0,this._nodeSet=void 0,!j){const te=this;this._onDidChange.fire({get elements(){return te.get()},browserEvent:G})}}get(){return this.elements||(this.elements=this.nodes.map($=>$.element)),[...this.elements]}getNodes(){return this.nodes}has($){return this.nodeSet.has($)}onDidModelSplice({insertedNodes:$,deletedNodes:j}){if(!this.identityProvider){const H=this.createNodeSet(),ae=Y=>H.delete(Y);j.forEach(Y=>A(Y,ae)),this.set([...H.values()]);return}const G=new Set,te=H=>G.add(this.identityProvider.getId(H.element).toString());j.forEach(H=>A(H,te));const Z=new Map,X=H=>Z.set(this.identityProvider.getId(H.element).toString(),H);$.forEach(H=>A(H,X));const ie=[];for(const H of this.nodes){const ae=this.identityProvider.getId(H.element).toString();if(!G.has(ae))ie.push(H);else{const Y=Z.get(ae);Y&&ie.push(Y)}}if(this.nodes.length>0&&ie.length===0){const H=this.getFirstViewElementWithTrait();H&&ie.push(H)}this._set(ie,!0)}createNodeSet(){const $=new Set;for(const j of this.nodes)$.add(j);return $}}class K extends C.MouseController{constructor($,j){super($),this.tree=j}onViewPointer($){if((0,C.isButton)($.browserEvent.target)||(0,C.isInputElement)($.browserEvent.target)||(0,C.isMonacoEditor)($.browserEvent.target))return;const j=$.element;if(!j)return super.onViewPointer($);if(this.isSelectionRangeChangeEvent($)||this.isSelectionSingleChangeEvent($))return super.onViewPointer($);const G=$.browserEvent.target,te=G.classList.contains("monaco-tl-twistie")||G.classList.contains("monaco-icon-label")&&G.classList.contains("folder-icon")&&$.browserEvent.offsetX<16;let Z=!1;if(typeof this.tree.expandOnlyOnTwistieClick=="function"?Z=this.tree.expandOnlyOnTwistieClick(j.element):Z=!!this.tree.expandOnlyOnTwistieClick,Z&&!te&&$.browserEvent.detail!==2)return super.onViewPointer($);if(!this.tree.expandOnDoubleClick&&$.browserEvent.detail===2)return super.onViewPointer($);if(j.collapsible){const X=this.tree.model,ie=X.getNodeLocation(j),H=$.browserEvent.altKey;if(this.tree.setFocus([ie]),X.setCollapsed(ie,void 0,H),Z&&te)return}super.onViewPointer($)}onDoubleClick($){$.browserEvent.target.classList.contains("monaco-tl-twistie")||!this.tree.expandOnDoubleClick||super.onDoubleClick($)}}class T extends C.List{constructor($,j,G,te,Z,X,ie,H){super($,j,G,te,H),this.focusTrait=Z,this.selectionTrait=X,this.anchorTrait=ie}createMouseController($){return new K(this,$.tree)}splice($,j,G=[]){if(super.splice($,j,G),G.length===0)return;const te=[],Z=[];let X;G.forEach((ie,H)=>{this.focusTrait.has(ie)&&te.push($+H),this.selectionTrait.has(ie)&&Z.push($+H),this.anchorTrait.has(ie)&&(X=$+H)}),te.length>0&&super.setFocus((0,t.distinct)([...super.getFocus(),...te])),Z.length>0&&super.setSelection((0,t.distinct)([...super.getSelection(),...Z])),typeof X=="number"&&super.setAnchor(X)}setFocus($,j,G=!1){super.setFocus($,j),G||this.focusTrait.set($.map(te=>this.element(te)),j)}setSelection($,j,G=!1){super.setSelection($,j),G||this.selectionTrait.set($.map(te=>this.element(te)),j)}setAnchor($,j=!1){super.setAnchor($),j||(typeof $>"u"?this.anchorTrait.set([]):this.anchorTrait.set([this.element($)]))}}class ee{constructor($,j,G,te,Z={}){var X;this._user=$,this._options=Z,this.eventBufferer=new l.EventBufferer,this.onDidChangeFindOpenState=l.Event.None,this.disposables=new r.DisposableStore,this._onWillRefilter=new l.Emitter,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new l.Emitter;const ie=new E(G),H=new l.Relay,ae=new l.Relay,Y=this.disposables.add(new N(ae.event));this.renderers=te.map(z=>new I(z,()=>this.model,H.event,Y,Z));for(const z of this.renderers)this.disposables.add(z);let U;Z.keyboardNavigationLabelProvider&&(U=new R(this,Z.keyboardNavigationLabelProvider,Z.filter),Z=Object.assign(Object.assign({},Z),{filter:U}),this.disposables.add(U)),this.focus=new B(()=>this.view.getFocusedElements()[0],Z.identityProvider),this.selection=new B(()=>this.view.getSelectedElements()[0],Z.identityProvider),this.anchor=new B(()=>this.view.getAnchorElement(),Z.identityProvider),this.view=new T($,j,ie,this.renderers,this.focus,this.selection,this.anchor,Object.assign(Object.assign({},S(()=>this.model,Z)),{tree:this})),this.model=this.createModel($,this.view,Z),H.input=this.model.onDidChangeCollapseState;const le=l.Event.forEach(this.model.onDidSplice,z=>{this.eventBufferer.bufferEvents(()=>{this.focus.onDidModelSplice(z),this.selection.onDidModelSplice(z)})},this.disposables);if(le(()=>null,null,this.disposables),ae.input=l.Event.chain(l.Event.any(le,this.focus.onDidChange,this.selection.onDidChange)).debounce(()=>null,0).map(()=>{const z=new Set;for(const Q of this.focus.getNodes())z.add(Q);for(const Q of this.selection.getNodes())z.add(Q);return[...z.values()]}).event,Z.keyboardSupport!==!1){const z=l.Event.chain(this.view.onKeyDown).filter(Q=>!(0,C.isInputElement)(Q.target)).map(Q=>new k.StandardKeyboardEvent(Q));z.filter(Q=>Q.keyCode===15).on(this.onLeftArrow,this,this.disposables),z.filter(Q=>Q.keyCode===17).on(this.onRightArrow,this,this.disposables),z.filter(Q=>Q.keyCode===10).on(this.onSpace,this,this.disposables)}(!((X=Z.findWidgetEnabled)!==null&&X!==void 0)||X)&&Z.keyboardNavigationLabelProvider&&Z.contextViewProvider?(this.findController=new M(this,this.model,this.view,U,Z.contextViewProvider),this.focusNavigationFilter=z=>this.findController.shouldAllowFocus(z),this.onDidChangeFindOpenState=this.findController.onDidChangeOpenState,this.disposables.add(this.findController),this.onDidChangeFindMode=this.findController.onDidChangeMode):this.onDidChangeFindMode=l.Event.None,this.styleElement=(0,y.createStyleSheet)(this.view.getHTMLElement()),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===L.Always)}get onDidChangeFocus(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)}get onDidChangeSelection(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)}get onMouseDblClick(){return l.Event.filter(l.Event.map(this.view.onMouseDblClick,P),$=>$.target!==n.TreeMouseEventTarget.Filter)}get onPointer(){return l.Event.map(this.view.onPointer,P)}get onDidFocus(){return this.view.onDidFocus}get onDidChangeModel(){return l.Event.signal(this.model.onDidSplice)}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get findMode(){var $,j;return(j=($=this.findController)===null||$===void 0?void 0:$.mode)!==null&&j!==void 0?j:O.Highlight}set findMode($){this.findController&&(this.findController.mode=$)}get expandOnDoubleClick(){return typeof this._options.expandOnDoubleClick>"u"?!0:this._options.expandOnDoubleClick}get expandOnlyOnTwistieClick(){return typeof this._options.expandOnlyOnTwistieClick>"u"?!0:this._options.expandOnlyOnTwistieClick}get onDidDispose(){return this.view.onDidDispose}updateOptions($={}){this._options=Object.assign(Object.assign({},this._options),$);for(const j of this.renderers)j.updateOptions($);this.view.updateOptions(this._options),this._onDidUpdateOptions.fire(this._options),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===L.Always)}get options(){return this._options}getHTMLElement(){return this.view.getHTMLElement()}get scrollTop(){return this.view.scrollTop}set scrollTop($){this.view.scrollTop=$}domFocus(){this.view.domFocus()}layout($,j){var G;this.view.layout($,j),(0,g.isNumber)(j)&&((G=this.findController)===null||G===void 0||G.layout(j))}style($){var j;const G=`.${this.view.domId}`,te=[];$.treeIndentGuidesStroke&&(te.push(`.monaco-list${G}:hover .monaco-tl-indent > .indent-guide, .monaco-list${G}.always .monaco-tl-indent > .indent-guide { border-color: ${$.treeIndentGuidesStroke.transparent(.4)}; }`),te.push(`.monaco-list${G} .monaco-tl-indent > .indent-guide.active { border-color: ${$.treeIndentGuidesStroke}; }`)),this.styleElement.textContent=te.join(` `),(j=this.findController)===null||j===void 0||j.style($),this.view.style($)}getParentElement($){const j=this.model.getParentNodeLocation($);return this.model.getNode(j).element}getFirstElementChild($){return this.model.getFirstElementChild($)}getNode($){return this.model.getNode($)}collapse($,j=!1){return this.model.setCollapsed($,!0,j)}expand($,j=!1){return this.model.setCollapsed($,!1,j)}isCollapsible($){return this.model.isCollapsible($)}setCollapsible($,j){return this.model.setCollapsible($,j)}isCollapsed($){return this.model.isCollapsed($)}refilter(){this._onWillRefilter.fire(void 0),this.model.refilter()}setSelection($,j){const G=$.map(Z=>this.model.getNode(Z));this.selection.set(G,j);const te=$.map(Z=>this.model.getListIndex(Z)).filter(Z=>Z>-1);this.view.setSelection(te,j,!0)}getSelection(){return this.selection.get()}setFocus($,j){const G=$.map(Z=>this.model.getNode(Z));this.focus.set(G,j);const te=$.map(Z=>this.model.getListIndex(Z)).filter(Z=>Z>-1);this.view.setFocus(te,j,!0)}getFocus(){return this.focus.get()}reveal($,j){this.model.expandTo($);const G=this.model.getListIndex($);G!==-1&&this.view.reveal(G,j)}onLeftArrow($){$.preventDefault(),$.stopPropagation();const j=this.view.getFocusedElements();if(j.length===0)return;const G=j[0],te=this.model.getNodeLocation(G);if(!this.model.setCollapsed(te,!0)){const Z=this.model.getParentNodeLocation(te);if(!Z)return;const X=this.model.getListIndex(Z);this.view.reveal(X),this.view.setFocus([X])}}onRightArrow($){$.preventDefault(),$.stopPropagation();const j=this.view.getFocusedElements();if(j.length===0)return;const G=j[0],te=this.model.getNodeLocation(G);if(!this.model.setCollapsed(te,!1)){if(!G.children.some(ie=>ie.visible))return;const[Z]=this.view.getFocus(),X=Z+1;this.view.reveal(X),this.view.setFocus([X])}}onSpace($){$.preventDefault(),$.stopPropagation();const j=this.view.getFocusedElements();if(j.length===0)return;const G=j[0],te=this.model.getNodeLocation(G),Z=$.browserEvent.altKey;this.model.setCollapsed(te,void 0,Z)}dispose(){(0,r.dispose)(this.disposables),this.view.dispose()}}e.AbstractTree=ee}),define(oe[494],se([1,0,163,194]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DataTree=void 0;class k extends y.AbstractTree{constructor(w,b,C,h,u,n={}){super(w,b,C,h,n),this.user=w,this.dataSource=u,this.identityProvider=n.identityProvider}createModel(w,b,C){return new v.ObjectTreeModel(w,b,C)}}e.DataTree=k}),define(oe[264],se([1,0,163,479,194,103,55]),function(q,e,y,v,k,D,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CompressibleObjectTree=e.ObjectTree=void 0;class b extends y.AbstractTree{constructor(i,t,o,s,d={}){super(i,t,o,s,d),this.user=i}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}setChildren(i,t=w.Iterable.empty(),o){this.model.setChildren(i,t,o)}rerender(i){if(i===void 0){this.view.rerender();return}this.model.rerender(i)}hasElement(i){return this.model.has(i)}createModel(i,t,o){return new k.ObjectTreeModel(i,t,o)}}e.ObjectTree=b;class C{constructor(i,t){this._compressedTreeNodeProvider=i,this.renderer=t,this.templateId=t.templateId,t.onDidChangeTwistieState&&(this.onDidChangeTwistieState=t.onDidChangeTwistieState)}get compressedTreeNodeProvider(){return this._compressedTreeNodeProvider()}renderTemplate(i){return{compressedTreeNode:void 0,data:this.renderer.renderTemplate(i)}}renderElement(i,t,o,s){const d=this.compressedTreeNodeProvider.getCompressedTreeNode(i.element);d.element.elements.length===1?(o.compressedTreeNode=void 0,this.renderer.renderElement(i,t,o.data,s)):(o.compressedTreeNode=d,this.renderer.renderCompressedElements(d,t,o.data,s))}disposeElement(i,t,o,s){var d,l,a,r;o.compressedTreeNode?(l=(d=this.renderer).disposeCompressedElements)===null||l===void 0||l.call(d,o.compressedTreeNode,t,o.data,s):(r=(a=this.renderer).disposeElement)===null||r===void 0||r.call(a,i,t,o.data,s)}disposeTemplate(i){this.renderer.disposeTemplate(i.data)}renderTwistie(i,t){return this.renderer.renderTwistie?this.renderer.renderTwistie(i,t):!1}}Ie([D.memoize],C.prototype,"compressedTreeNodeProvider",null);function h(n,i){return i&&Object.assign(Object.assign({},i),{keyboardNavigationLabelProvider:i.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel(t){let o;try{o=n().getCompressedTreeNode(t)}catch{return i.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t)}return o.element.elements.length===1?i.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t):i.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(o.element.elements)}}})}class u extends b{constructor(i,t,o,s,d={}){const l=()=>this,a=s.map(r=>new C(l,r));super(i,t,o,a,h(l,d))}setChildren(i,t=w.Iterable.empty(),o){this.model.setChildren(i,t,o)}createModel(i,t,o){return new v.CompressibleObjectTreeModel(i,t,o)}updateOptions(i={}){super.updateOptions(i),typeof i.compressionEnabled<"u"&&this.model.setCompressionEnabled(i.compressionEnabled)}getCompressedTreeNode(i=null){return this.model.getCompressedTreeNode(i)}}e.CompressibleObjectTree=u}),define(oe[495],se([1,0,200,163,193,264,121,10,27,14,6,55,2,19]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CompressibleAsyncDataTree=e.AsyncDataTree=void 0;function o(F){return Object.assign(Object.assign({},F),{children:[],refreshPromise:void 0,stale:!0,slow:!1,collapsedByDefault:void 0})}function s(F,O){return O.parent?O.parent===F?!0:s(F,O.parent):!1}function d(F,O){return F===O||s(F,O)||s(O,F)}class l{constructor(O){this.node=O}get element(){return this.node.element.element}get children(){return this.node.children.map(O=>new l(O))}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}}class a{constructor(O,x,M){this.renderer=O,this.nodeMapper=x,this.onDidChangeTwistieState=M,this.renderedNodes=new Map,this.templateId=O.templateId}renderTemplate(O){return{templateData:this.renderer.renderTemplate(O)}}renderElement(O,x,M,P){this.renderer.renderElement(this.nodeMapper.map(O),x,M.templateData,P)}renderTwistie(O,x){return O.slow?(x.classList.add(...C.Codicon.treeItemLoading.classNamesArray),!0):(x.classList.remove(...C.Codicon.treeItemLoading.classNamesArray),!1)}disposeElement(O,x,M,P){var A,B;(B=(A=this.renderer).disposeElement)===null||B===void 0||B.call(A,this.nodeMapper.map(O),x,M.templateData,P)}disposeTemplate(O){this.renderer.disposeTemplate(O.templateData)}dispose(){this.renderedNodes.clear()}}function r(F){return{browserEvent:F.browserEvent,elements:F.elements.map(O=>O.element)}}function c(F){return{browserEvent:F.browserEvent,element:F.element&&F.element.element,target:F.target}}class g extends y.ElementsDragAndDropData{constructor(O){super(O.elements.map(x=>x.element)),this.data=O}}function f(F){return F instanceof y.ElementsDragAndDropData?new g(F):F}class _{constructor(O){this.dnd=O}getDragURI(O){return this.dnd.getDragURI(O.element)}getDragLabel(O,x){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(O.map(M=>M.element),x)}onDragStart(O,x){var M,P;(P=(M=this.dnd).onDragStart)===null||P===void 0||P.call(M,f(O),x)}onDragOver(O,x,M,P,A=!0){return this.dnd.onDragOver(f(O),x&&x.element,M,P)}drop(O,x,M,P){this.dnd.drop(f(O),x&&x.element,M,P)}onDragEnd(O){var x,M;(M=(x=this.dnd).onDragEnd)===null||M===void 0||M.call(x,O)}}function p(F){return F&&Object.assign(Object.assign({},F),{collapseByDefault:!0,identityProvider:F.identityProvider&&{getId(O){return F.identityProvider.getId(O.element)}},dnd:F.dnd&&new _(F.dnd),multipleSelectionController:F.multipleSelectionController&&{isSelectionSingleChangeEvent(O){return F.multipleSelectionController.isSelectionSingleChangeEvent(Object.assign(Object.assign({},O),{element:O.element}))},isSelectionRangeChangeEvent(O){return F.multipleSelectionController.isSelectionRangeChangeEvent(Object.assign(Object.assign({},O),{element:O.element}))}},accessibilityProvider:F.accessibilityProvider&&Object.assign(Object.assign({},F.accessibilityProvider),{getPosInSet:void 0,getSetSize:void 0,getRole:F.accessibilityProvider.getRole?O=>F.accessibilityProvider.getRole(O.element):()=>"treeitem",isChecked:F.accessibilityProvider.isChecked?O=>{var x;return!!(!((x=F.accessibilityProvider)===null||x===void 0)&&x.isChecked(O.element))}:void 0,getAriaLabel(O){return F.accessibilityProvider.getAriaLabel(O.element)},getWidgetAriaLabel(){return F.accessibilityProvider.getWidgetAriaLabel()},getWidgetRole:F.accessibilityProvider.getWidgetRole?()=>F.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:F.accessibilityProvider.getAriaLevel&&(O=>F.accessibilityProvider.getAriaLevel(O.element)),getActiveDescendantId:F.accessibilityProvider.getActiveDescendantId&&(O=>F.accessibilityProvider.getActiveDescendantId(O.element))}),filter:F.filter&&{filter(O,x){return F.filter.filter(O.element,x)}},keyboardNavigationLabelProvider:F.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},F.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel(O){return F.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(O.element)}}),sorter:void 0,expandOnlyOnTwistieClick:typeof F.expandOnlyOnTwistieClick>"u"?void 0:typeof F.expandOnlyOnTwistieClick!="function"?F.expandOnlyOnTwistieClick:O=>F.expandOnlyOnTwistieClick(O.element),additionalScrollHeight:F.additionalScrollHeight})}function m(F,O){O(F),F.children.forEach(x=>m(x,O))}class S{constructor(O,x,M,P,A,B={}){this.user=O,this.dataSource=A,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new u.Emitter,this._onDidChangeNodeSlowState=new u.Emitter,this.nodeMapper=new w.WeakMapper(K=>new l(K)),this.disposables=new i.DisposableStore,this.identityProvider=B.identityProvider,this.autoExpandSingleChildren=typeof B.autoExpandSingleChildren>"u"?!1:B.autoExpandSingleChildren,this.sorter=B.sorter,this.collapseByDefault=B.collapseByDefault,this.tree=this.createTree(O,x,M,P,B),this.onDidChangeFindMode=this.tree.onDidChangeFindMode,this.root=o({element:void 0,parent:null,hasChildren:!0}),this.identityProvider&&(this.root=Object.assign(Object.assign({},this.root),{id:null})),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}get onDidChangeFocus(){return u.Event.map(this.tree.onDidChangeFocus,r)}get onDidChangeSelection(){return u.Event.map(this.tree.onDidChangeSelection,r)}get onMouseDblClick(){return u.Event.map(this.tree.onMouseDblClick,c)}get onPointer(){return u.Event.map(this.tree.onPointer,c)}get onDidFocus(){return this.tree.onDidFocus}get onDidChangeModel(){return this.tree.onDidChangeModel}get onDidChangeCollapseState(){return this.tree.onDidChangeCollapseState}get onDidChangeFindOpenState(){return this.tree.onDidChangeFindOpenState}get onDidDispose(){return this.tree.onDidDispose}createTree(O,x,M,P,A){const B=new v.ComposedTreeDelegate(M),K=P.map(ee=>new a(ee,this.nodeMapper,this._onDidChangeNodeSlowState.event)),T=p(A)||{};return new D.ObjectTree(O,x,B,K,T)}updateOptions(O={}){this.tree.updateOptions(O)}getHTMLElement(){return this.tree.getHTMLElement()}get scrollTop(){return this.tree.scrollTop}set scrollTop(O){this.tree.scrollTop=O}domFocus(){this.tree.domFocus()}layout(O,x){this.tree.layout(O,x)}style(O){this.tree.style(O)}getInput(){return this.root.element}setInput(O,x){return be(this,void 0,void 0,function*(){this.refreshPromises.forEach(P=>P.cancel()),this.refreshPromises.clear(),this.root.element=O;const M=x&&{viewState:x,focus:[],selection:[]};yield this._updateChildren(O,!0,!1,M),M&&(this.tree.setFocus(M.focus),this.tree.setSelection(M.selection)),x&&typeof x.scrollTop=="number"&&(this.scrollTop=x.scrollTop)})}_updateChildren(O=this.root.element,x=!0,M=!1,P,A){return be(this,void 0,void 0,function*(){if(typeof this.root.element>"u")throw new w.TreeError(this.user,"Tree input not set");this.root.refreshPromise&&(yield this.root.refreshPromise,yield u.Event.toPromise(this._onDidRender.event));const B=this.getDataNode(O);if(yield this.refreshAndRenderNode(B,x,P,A),M)try{this.tree.rerender(B)}catch{}})}rerender(O){if(O===void 0||O===this.root.element){this.tree.rerender();return}const x=this.getDataNode(O);this.tree.rerender(x)}getNode(O=this.root.element){const x=this.getDataNode(O),M=this.tree.getNode(x===this.root?null:x);return this.nodeMapper.map(M)}collapse(O,x=!1){const M=this.getDataNode(O);return this.tree.collapse(M===this.root?null:M,x)}expand(O,x=!1){return be(this,void 0,void 0,function*(){if(typeof this.root.element>"u")throw new w.TreeError(this.user,"Tree input not set");this.root.refreshPromise&&(yield this.root.refreshPromise,yield u.Event.toPromise(this._onDidRender.event));const M=this.getDataNode(O);if(this.tree.hasElement(M)&&!this.tree.isCollapsible(M)||(M.refreshPromise&&(yield this.root.refreshPromise,yield u.Event.toPromise(this._onDidRender.event)),M!==this.root&&!M.refreshPromise&&!this.tree.isCollapsed(M)))return!1;const P=this.tree.expand(M===this.root?null:M,x);return M.refreshPromise&&(yield this.root.refreshPromise,yield u.Event.toPromise(this._onDidRender.event)),P})}setSelection(O,x){const M=O.map(P=>this.getDataNode(P));this.tree.setSelection(M,x)}getSelection(){return this.tree.getSelection().map(O=>O.element)}setFocus(O,x){const M=O.map(P=>this.getDataNode(P));this.tree.setFocus(M,x)}getFocus(){return this.tree.getFocus().map(O=>O.element)}reveal(O,x){this.tree.reveal(this.getDataNode(O),x)}getParentElement(O){const x=this.tree.getParentElement(this.getDataNode(O));return x&&x.element}getFirstElementChild(O=this.root.element){const x=this.getDataNode(O),M=this.tree.getFirstElementChild(x===this.root?null:x);return M&&M.element}getDataNode(O){const x=this.nodes.get(O===this.root.element?null:O);if(!x)throw new w.TreeError(this.user,`Data tree node not found: ${O}`);return x}refreshAndRenderNode(O,x,M,P){return be(this,void 0,void 0,function*(){yield this.refreshNode(O,x,M),this.render(O,M,P)})}refreshNode(O,x,M){return be(this,void 0,void 0,function*(){let P;if(this.subTreeRefreshPromises.forEach((A,B)=>{!P&&d(B,O)&&(P=A.then(()=>this.refreshNode(O,x,M)))}),P)return P;if(O!==this.root&&this.tree.getNode(O).collapsed){O.hasChildren=!!this.dataSource.hasChildren(O.element),O.stale=!0;return}return this.doRefreshSubTree(O,x,M)})}doRefreshSubTree(O,x,M){return be(this,void 0,void 0,function*(){let P;O.refreshPromise=new Promise(A=>P=A),this.subTreeRefreshPromises.set(O,O.refreshPromise),O.refreshPromise.finally(()=>{O.refreshPromise=void 0,this.subTreeRefreshPromises.delete(O)});try{const A=yield this.doRefreshNode(O,x,M);O.stale=!1,yield b.Promises.settled(A.map(B=>this.doRefreshSubTree(B,x,M)))}finally{P()}})}doRefreshNode(O,x,M){return be(this,void 0,void 0,function*(){O.hasChildren=!!this.dataSource.hasChildren(O.element);let P;if(!O.hasChildren)P=Promise.resolve(n.Iterable.empty());else{const A=this.doGetChildren(O);if((0,t.isIterable)(A))P=Promise.resolve(A);else{const B=(0,b.timeout)(800);B.then(()=>{O.slow=!0,this._onDidChangeNodeSlowState.fire(O)},K=>null),P=A.finally(()=>B.cancel())}}try{const A=yield P;return this.setChildren(O,A,x,M)}catch(A){if(O!==this.root&&this.tree.hasElement(O)&&this.tree.collapse(O),(0,h.isCancellationError)(A))return[];throw A}finally{O.slow&&(O.slow=!1,this._onDidChangeNodeSlowState.fire(O))}})}doGetChildren(O){let x=this.refreshPromises.get(O);if(x)return x;const M=this.dataSource.getChildren(O.element);return(0,t.isIterable)(M)?this.processChildren(M):(x=(0,b.createCancelablePromise)(()=>be(this,void 0,void 0,function*(){return this.processChildren(yield M)})),this.refreshPromises.set(O,x),x.finally(()=>{this.refreshPromises.delete(O)}))}_onDidChangeCollapseState({node:O,deep:x}){O.element!==null&&!O.collapsed&&O.element.stale&&(x?this.collapse(O.element.element):this.refreshAndRenderNode(O.element,!1).catch(h.onUnexpectedError))}setChildren(O,x,M,P){const A=[...x];if(O.children.length===0&&A.length===0)return[];const B=new Map,K=new Map;for(const J of O.children)if(B.set(J.element,J),this.identityProvider){const $=this.tree.isCollapsed(J);K.set(J.id,{node:J,collapsed:$})}const T=[],ee=A.map(J=>{const $=!!this.dataSource.hasChildren(J);if(!this.identityProvider){const Z=o({element:J,parent:O,hasChildren:$});return $&&this.collapseByDefault&&!this.collapseByDefault(J)&&(Z.collapsedByDefault=!1,T.push(Z)),Z}const j=this.identityProvider.getId(J).toString(),G=K.get(j);if(G){const Z=G.node;return B.delete(Z.element),this.nodes.delete(Z.element),this.nodes.set(J,Z),Z.element=J,Z.hasChildren=$,M?G.collapsed?(Z.children.forEach(X=>m(X,ie=>this.nodes.delete(ie.element))),Z.children.splice(0,Z.children.length),Z.stale=!0):T.push(Z):$&&this.collapseByDefault&&!this.collapseByDefault(J)&&(Z.collapsedByDefault=!1,T.push(Z)),Z}const te=o({element:J,parent:O,id:j,hasChildren:$});return P&&P.viewState.focus&&P.viewState.focus.indexOf(j)>-1&&P.focus.push(te),P&&P.viewState.selection&&P.viewState.selection.indexOf(j)>-1&&P.selection.push(te),P&&P.viewState.expanded&&P.viewState.expanded.indexOf(j)>-1?T.push(te):$&&this.collapseByDefault&&!this.collapseByDefault(J)&&(te.collapsedByDefault=!1,T.push(te)),te});for(const J of B.values())m(J,$=>this.nodes.delete($.element));for(const J of ee)this.nodes.set(J.element,J);return O.children.splice(0,O.children.length,...ee),O!==this.root&&this.autoExpandSingleChildren&&ee.length===1&&T.length===0&&(ee[0].collapsedByDefault=!1,T.push(ee[0])),T}render(O,x,M){const P=O.children.map(B=>this.asTreeElement(B,x)),A=M&&Object.assign(Object.assign({},M),{diffIdentityProvider:M.diffIdentityProvider&&{getId(B){return M.diffIdentityProvider.getId(B.element)}}});this.tree.setChildren(O===this.root?null:O,P,A),O!==this.root&&this.tree.setCollapsible(O,O.hasChildren),this._onDidRender.fire()}asTreeElement(O,x){if(O.stale)return{element:O,collapsible:O.hasChildren,collapsed:!0};let M;return x&&x.viewState.expanded&&O.id&&x.viewState.expanded.indexOf(O.id)>-1?M=!1:M=O.collapsedByDefault,O.collapsedByDefault=void 0,{element:O,children:O.hasChildren?n.Iterable.map(O.children,P=>this.asTreeElement(P,x)):[],collapsible:O.hasChildren,collapsed:M}}processChildren(O){return this.sorter&&(O=[...O].sort(this.sorter.compare.bind(this.sorter))),O}dispose(){this.disposables.dispose()}}e.AsyncDataTree=S;class E{constructor(O){this.node=O}get element(){return{elements:this.node.element.elements.map(O=>O.element),incompressible:this.node.element.incompressible}}get children(){return this.node.children.map(O=>new E(O))}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}}class L{constructor(O,x,M,P){this.renderer=O,this.nodeMapper=x,this.compressibleNodeMapperProvider=M,this.onDidChangeTwistieState=P,this.renderedNodes=new Map,this.disposables=[],this.templateId=O.templateId}renderTemplate(O){return{templateData:this.renderer.renderTemplate(O)}}renderElement(O,x,M,P){this.renderer.renderElement(this.nodeMapper.map(O),x,M.templateData,P)}renderCompressedElements(O,x,M,P){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(O),x,M.templateData,P)}renderTwistie(O,x){return O.slow?(x.classList.add(...C.Codicon.treeItemLoading.classNamesArray),!0):(x.classList.remove(...C.Codicon.treeItemLoading.classNamesArray),!1)}disposeElement(O,x,M,P){var A,B;(B=(A=this.renderer).disposeElement)===null||B===void 0||B.call(A,this.nodeMapper.map(O),x,M.templateData,P)}disposeCompressedElements(O,x,M,P){var A,B;(B=(A=this.renderer).disposeCompressedElements)===null||B===void 0||B.call(A,this.compressibleNodeMapperProvider().map(O),x,M.templateData,P)}disposeTemplate(O){this.renderer.disposeTemplate(O.templateData)}dispose(){this.renderedNodes.clear(),this.disposables=(0,i.dispose)(this.disposables)}}function N(F){const O=F&&p(F);return O&&Object.assign(Object.assign({},O),{keyboardNavigationLabelProvider:O.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},O.keyboardNavigationLabelProvider),{getCompressedNodeKeyboardNavigationLabel(x){return F.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(x.map(M=>M.element))}})})}class I extends S{constructor(O,x,M,P,A,B,K={}){super(O,x,M,A,B,K),this.compressionDelegate=P,this.compressibleNodeMapper=new w.WeakMapper(T=>new E(T)),this.filter=K.filter}createTree(O,x,M,P,A){const B=new v.ComposedTreeDelegate(M),K=P.map(ee=>new L(ee,this.nodeMapper,()=>this.compressibleNodeMapper,this._onDidChangeNodeSlowState.event)),T=N(A)||{};return new D.CompressibleObjectTree(O,x,B,K,T)}asTreeElement(O,x){return Object.assign({incompressible:this.compressionDelegate.isIncompressible(O.element)},super.asTreeElement(O,x))}updateOptions(O={}){this.tree.updateOptions(O)}render(O,x){if(!this.identityProvider)return super.render(O,x);const M=j=>this.identityProvider.getId(j).toString(),P=j=>{const G=new Set;for(const te of j){const Z=this.tree.getCompressedTreeNode(te===this.root?null:te);if(Z.element)for(const X of Z.element.elements)G.add(M(X.element))}return G},A=P(this.tree.getSelection()),B=P(this.tree.getFocus());super.render(O,x);const K=this.getSelection();let T=!1;const ee=this.getFocus();let J=!1;const $=j=>{const G=j.element;if(G)for(let te=0;te<G.elements.length;te++){const Z=M(G.elements[te].element),X=G.elements[G.elements.length-1].element;A.has(Z)&&K.indexOf(X)===-1&&(K.push(X),T=!0),B.has(Z)&&ee.indexOf(X)===-1&&(ee.push(X),J=!0)}j.children.forEach($)};$(this.tree.getCompressedTreeNode(O===this.root?null:O)),T&&this.setSelection(K),J&&this.setFocus(ee)}processChildren(O){return this.filter&&(O=n.Iterable.filter(O,x=>{const M=this.filter.filter(x,1),P=R(M);if(P===2)throw new Error("Recursive tree visibility not supported in async data compressed trees");return P===1})),super.processChildren(O)}}e.CompressibleAsyncDataTree=I;function R(F){return typeof F=="boolean"?F?1:0:(0,k.isFilterResult)(F)?(0,k.getVisibleState)(F.visibility):(0,k.getVisibleState)(F)}}),define(oe[43],se([1,0,191,52,90,17,8,22]),function(q,e,y,v,k,D,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DataUri=e.addTrailingPathSeparator=e.removeTrailingPathSeparator=e.hasTrailingPathSeparator=e.isEqualAuthority=e.isAbsolutePath=e.resolvePath=e.relativePath=e.normalizePath=e.joinPath=e.dirname=e.extname=e.basename=e.basenameOrAuthority=e.getComparisonKey=e.isEqualOrParent=e.isEqual=e.extUriIgnorePathCase=e.extUriBiasedIgnorePathCase=e.extUri=e.ExtUri=e.originalFSPath=void 0;function C(n){return(0,b.uriToFsPath)(n,!0)}e.originalFSPath=C;class h{constructor(i){this._ignorePathCasing=i}compare(i,t,o=!1){return i===t?0:(0,w.compare)(this.getComparisonKey(i,o),this.getComparisonKey(t,o))}isEqual(i,t,o=!1){return i===t?!0:!i||!t?!1:this.getComparisonKey(i,o)===this.getComparisonKey(t,o)}getComparisonKey(i,t=!1){return i.with({path:this._ignorePathCasing(i)?i.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}isEqualOrParent(i,t,o=!1){if(i.scheme===t.scheme){if(i.scheme===v.Schemas.file)return y.isEqualOrParent(C(i),C(t),this._ignorePathCasing(i))&&i.query===t.query&&(o||i.fragment===t.fragment);if((0,e.isEqualAuthority)(i.authority,t.authority))return y.isEqualOrParent(i.path,t.path,this._ignorePathCasing(i),"/")&&i.query===t.query&&(o||i.fragment===t.fragment)}return!1}joinPath(i,...t){return b.URI.joinPath(i,...t)}basenameOrAuthority(i){return(0,e.basename)(i)||i.authority}basename(i){return k.posix.basename(i.path)}extname(i){return k.posix.extname(i.path)}dirname(i){if(i.path.length===0)return i;let t;return i.scheme===v.Schemas.file?t=b.URI.file(k.dirname(C(i))).path:(t=k.posix.dirname(i.path),i.authority&&t.length&&t.charCodeAt(0)!==47&&(console.error(`dirname("${i.toString})) resulted in a relative path`),t="/")),i.with({path:t})}normalizePath(i){if(!i.path.length)return i;let t;return i.scheme===v.Schemas.file?t=b.URI.file(k.normalize(C(i))).path:t=k.posix.normalize(i.path),i.with({path:t})}relativePath(i,t){if(i.scheme!==t.scheme||!(0,e.isEqualAuthority)(i.authority,t.authority))return;if(i.scheme===v.Schemas.file){const d=k.relative(C(i),C(t));return D.isWindows?y.toSlashes(d):d}let o=i.path||"/";const s=t.path||"/";if(this._ignorePathCasing(i)){let d=0;for(const l=Math.min(o.length,s.length);d<l&&!(o.charCodeAt(d)!==s.charCodeAt(d)&&o.charAt(d).toLowerCase()!==s.charAt(d).toLowerCase());d++);o=s.substr(0,d)+o.substr(d)}return k.posix.relative(o,s)}resolvePath(i,t){if(i.scheme===v.Schemas.file){const o=b.URI.file(k.resolve(C(i),t));return i.with({authority:o.authority,path:o.path})}return t=y.toPosixPath(t),i.with({path:k.posix.resolve(i.path,t)})}isAbsolutePath(i){return!!i.path&&i.path[0]==="/"}isEqualAuthority(i,t){return i===t||i!==void 0&&t!==void 0&&(0,w.equalsIgnoreCase)(i,t)}hasTrailingPathSeparator(i,t=k.sep){if(i.scheme===v.Schemas.file){const o=C(i);return o.length>y.getRoot(o).length&&o[o.length-1]===t}else{const o=i.path;return o.length>1&&o.charCodeAt(o.length-1)===47&&!/^[a-zA-Z]:(\/$|\\$)/.test(i.fsPath)}}removeTrailingPathSeparator(i,t=k.sep){return(0,e.hasTrailingPathSeparator)(i,t)?i.with({path:i.path.substr(0,i.path.length-1)}):i}addTrailingPathSeparator(i,t=k.sep){let o=!1;if(i.scheme===v.Schemas.file){const s=C(i);o=s!==void 0&&s.length===y.getRoot(s).length&&s[s.length-1]===t}else{t="/";const s=i.path;o=s.length===1&&s.charCodeAt(s.length-1)===47}return!o&&!(0,e.hasTrailingPathSeparator)(i,t)?i.with({path:i.path+"/"}):i}}e.ExtUri=h,e.extUri=new h(()=>!1),e.extUriBiasedIgnorePathCase=new h(n=>n.scheme===v.Schemas.file?!D.isLinux:!0),e.extUriIgnorePathCase=new h(n=>!0),e.isEqual=e.extUri.isEqual.bind(e.extUri),e.isEqualOrParent=e.extUri.isEqualOrParent.bind(e.extUri),e.getComparisonKey=e.extUri.getComparisonKey.bind(e.extUri),e.basenameOrAuthority=e.extUri.basenameOrAuthority.bind(e.extUri),e.basename=e.extUri.basename.bind(e.extUri),e.extname=e.extUri.extname.bind(e.extUri),e.dirname=e.extUri.dirname.bind(e.extUri),e.joinPath=e.extUri.joinPath.bind(e.extUri),e.normalizePath=e.extUri.normalizePath.bind(e.extUri),e.relativePath=e.extUri.relativePath.bind(e.extUri),e.resolvePath=e.extUri.resolvePath.bind(e.extUri),e.isAbsolutePath=e.extUri.isAbsolutePath.bind(e.extUri),e.isEqualAuthority=e.extUri.isEqualAuthority.bind(e.extUri),e.hasTrailingPathSeparator=e.extUri.hasTrailingPathSeparator.bind(e.extUri),e.removeTrailingPathSeparator=e.extUri.removeTrailingPathSeparator.bind(e.extUri),e.addTrailingPathSeparator=e.extUri.addTrailingPathSeparator.bind(e.extUri);var u;(function(n){n.META_DATA_LABEL="label",n.META_DATA_DESCRIPTION="description",n.META_DATA_SIZE="size",n.META_DATA_MIME="mime";function i(t){const o=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach(d=>{const[l,a]=d.split(":");l&&a&&o.set(l,a)});const s=t.path.substring(0,t.path.indexOf(";"));return s&&o.set(n.META_DATA_MIME,s),o}n.parseMetaData=i})(u=e.DataUri||(e.DataUri={}))}),define(oe[496],se([1,0,7,481,100,196,67,134,14,6,64,106,144,2,329,195,52,40,43,8,22]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.renderMarkdown=void 0;function g(m,S={},E={}){var L;const N=new t.DisposableStore;let I=!1;const R=(0,D.createElement)(S),F=function(K){let T;try{T=(0,s.parse)(decodeURIComponent(K))}catch{}return T?(T=(0,l.cloneAndChange)(T,ee=>{if(m.uris&&m.uris[ee])return c.URI.revive(m.uris[ee])}),encodeURIComponent(JSON.stringify(T))):K},O=function(K,T){const ee=m.uris&&m.uris[K];let J=c.URI.revive(ee);return T?K.startsWith(d.Schemas.data+":")?K:(J||(J=c.URI.parse(K)),d.FileAccess.asBrowserUri(J).toString(!0)):!J||c.URI.parse(K).toString()===J.toString()?K:(J.query&&(J=J.with({query:F(J.query)})),J.toString())},x=new o.marked.Renderer;x.image=(K,T,ee)=>{let J=[],$=[];return K&&({href:K,dimensions:J}=(0,u.parseHrefAndDimensions)(K),$.push(`src="${(0,u.escapeDoubleQuotes)(K)}"`)),ee&&$.push(`alt="${(0,u.escapeDoubleQuotes)(ee)}"`),T&&$.push(`title="${(0,u.escapeDoubleQuotes)(T)}"`),J.length&&($=$.concat(J)),"<img "+$.join(" ")+">"},x.link=(K,T,ee)=>typeof K!="string"?"":(K===ee&&(ee=(0,u.removeMarkdownEscapes)(ee)),T=typeof T=="string"?(0,u.escapeDoubleQuotes)((0,u.removeMarkdownEscapes)(T)):"",K=(0,u.removeMarkdownEscapes)(K),K=K.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),`<a href="${K}" title="${T||K}">${ee}</a>`),x.paragraph=K=>`<p>${K}</p>`;const M=[];if(S.codeBlockRenderer&&(x.code=(K,T)=>{const ee=i.defaultGenerator.nextId(),J=S.codeBlockRenderer(T??"",K);return M.push(J.then($=>[ee,$])),`<div class="code" data-code="${ee}">${(0,r.escape)(K)}</div>`}),S.actionHandler){const K=S.actionHandler.disposables.add(new k.DomEmitter(R,"click")),T=S.actionHandler.disposables.add(new k.DomEmitter(R,"auxclick"));S.actionHandler.disposables.add(h.Event.any(K.event,T.event)(ee=>{const J=new w.StandardMouseEvent(ee);if(!J.leftButton&&!J.middleButton)return;let $=J.target;if(!($.tagName!=="A"&&($=$.parentElement,!$||$.tagName!=="A")))try{let j=$.dataset.href;j&&(m.baseUri&&(j=f(c.URI.from(m.baseUri),j)),S.actionHandler.callback(j,J))}catch(j){(0,C.onUnexpectedError)(j)}finally{J.preventDefault()}}))}m.supportHtml||(E.sanitizer=K=>m.isTrusted&&K.match(/^(<span[^>]+>)|(<\/\s*span>)$/)?K:"",E.sanitize=!0,E.silent=!0),E.renderer=x;let P=(L=m.value)!==null&&L!==void 0?L:"";P.length>1e5&&(P=`${P.substr(0,1e5)}\u2026`),m.supportThemeIcons&&(P=(0,n.markdownEscapeEscapedIcons)(P));let A=o.marked.parse(P,E);m.supportThemeIcons&&(A=(0,b.renderLabelWithIcons)(A).map(K=>typeof K=="string"?K:K.outerHTML).join(""));const B=new DOMParser().parseFromString(_(m,A),"text/html");if(B.body.querySelectorAll("img").forEach(K=>{const T=K.getAttribute("src");if(T){let ee=T;try{m.baseUri&&(ee=f(c.URI.from(m.baseUri),ee))}catch{}K.src=O(ee,!0)}}),B.body.querySelectorAll("a").forEach(K=>{const T=K.getAttribute("href");if(K.setAttribute("href",""),!T||/^data:|javascript:/i.test(T)||/^command:/i.test(T)&&!m.isTrusted||/^command:(\/\/\/)?_workbench\.downloadResource/i.test(T))K.replaceWith(...K.childNodes);else{let ee=O(T,!1);m.baseUri&&(ee=f(c.URI.from(m.baseUri),T)),K.dataset.href=ee}}),R.innerHTML=_(m,B.body.innerHTML),M.length>0&&Promise.all(M).then(K=>{var T,ee;if(I)return;const J=new Map(K),$=R.querySelectorAll("div[data-code]");for(const j of $){const G=J.get((T=j.dataset.code)!==null&&T!==void 0?T:"");G&&y.reset(j,G)}(ee=S.asyncRenderCallback)===null||ee===void 0||ee.call(S)}),S.asyncRenderCallback)for(const K of R.getElementsByTagName("img")){const T=N.add(y.addDisposableListener(K,"load",()=>{T.dispose(),S.asyncRenderCallback()}))}return{element:R,dispose:()=>{I=!0,N.dispose()}}}e.renderMarkdown=g;function f(m,S){return/^\w[\w\d+.-]*:/.test(S)?S:m.path.endsWith("/")?(0,a.resolvePath)(m,S).toString():(0,a.resolvePath)((0,a.dirname)(m),S).toString()}function _(m,S){const{config:E,allowedSchemes:L}=p(m);v.addHook("uponSanitizeAttribute",(I,R)=>{if(R.attrName==="style"||R.attrName==="class"){if(I.tagName==="SPAN"){if(R.attrName==="style"){R.keepAttr=/^(color\:#[0-9a-fA-F]+;)?(background-color\:#[0-9a-fA-F]+;)?$/.test(R.attrValue);return}else if(R.attrName==="class"){R.keepAttr=/^codicon codicon-[a-z\-]+( codicon-modifier-[a-z\-]+)?$/.test(R.attrValue);return}}R.keepAttr=!1;return}});const N=y.hookDomPurifyHrefAndSrcSanitizer(L);try{return v.sanitize(S,Object.assign(Object.assign({},E),{RETURN_TRUSTED_TYPE:!0}))}finally{v.removeHook("uponSanitizeAttribute"),N.dispose()}}function p(m){const S=[d.Schemas.http,d.Schemas.https,d.Schemas.mailto,d.Schemas.data,d.Schemas.file,d.Schemas.vscodeFileResource,d.Schemas.vscodeRemote,d.Schemas.vscodeRemoteResource];return m.isTrusted&&S.push(d.Schemas.command),{config:{ALLOWED_TAGS:["ul","li","p","b","i","code","blockquote","ol","h1","h2","h3","h4","h5","h6","hr","em","pre","table","thead","tbody","tr","th","td","div","del","a","strong","br","img","span"],ALLOWED_ATTR:["href","data-href","target","title","src","alt","class","style","data-code","width","height","align"],ALLOW_UNKNOWN_PROTOCOLS:!0},allowedSchemes:S}}}),define(oe[265],se([1,0,14,6,2,17,19,8]),function(q,e,y,v,k,D,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.create=e.SimpleWorkerServer=e.SimpleWorkerClient=e.logOnceWebWorkerWarning=void 0;const C="$initialize";let h=!1;function u(_){!D.isWeb||(h||(h=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(_.message))}e.logOnceWebWorkerWarning=u;class n{constructor(p,m,S,E){this.vsWorker=p,this.req=m,this.method=S,this.args=E,this.type=0}}class i{constructor(p,m,S,E){this.vsWorker=p,this.seq=m,this.res=S,this.err=E,this.type=1}}class t{constructor(p,m,S,E){this.vsWorker=p,this.req=m,this.eventName=S,this.arg=E,this.type=2}}class o{constructor(p,m,S){this.vsWorker=p,this.req=m,this.event=S,this.type=3}}class s{constructor(p,m){this.vsWorker=p,this.req=m,this.type=4}}class d{constructor(p){this._workerId=-1,this._handler=p,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(p){this._workerId=p}sendMessage(p,m){const S=String(++this._lastSentReq);return new Promise((E,L)=>{this._pendingReplies[S]={resolve:E,reject:L},this._send(new n(this._workerId,S,p,m))})}listen(p,m){let S=null;const E=new v.Emitter({onFirstListenerAdd:()=>{S=String(++this._lastSentReq),this._pendingEmitters.set(S,E),this._send(new t(this._workerId,S,p,m))},onLastListenerRemove:()=>{this._pendingEmitters.delete(S),this._send(new s(this._workerId,S)),S=null}});return E.event}handleMessage(p){!p||!p.vsWorker||this._workerId!==-1&&p.vsWorker!==this._workerId||this._handleMessage(p)}_handleMessage(p){switch(p.type){case 1:return this._handleReplyMessage(p);case 0:return this._handleRequestMessage(p);case 2:return this._handleSubscribeEventMessage(p);case 3:return this._handleEventMessage(p);case 4:return this._handleUnsubscribeEventMessage(p)}}_handleReplyMessage(p){if(!this._pendingReplies[p.seq]){console.warn("Got reply to unknown seq");return}const m=this._pendingReplies[p.seq];if(delete this._pendingReplies[p.seq],p.err){let S=p.err;p.err.$isError&&(S=new Error,S.name=p.err.name,S.message=p.err.message,S.stack=p.err.stack),m.reject(S);return}m.resolve(p.res)}_handleRequestMessage(p){const m=p.req;this._handler.handleMessage(p.method,p.args).then(S=>{this._send(new i(this._workerId,m,S,void 0))},S=>{S.detail instanceof Error&&(S.detail=(0,y.transformErrorForSerialization)(S.detail)),this._send(new i(this._workerId,m,void 0,(0,y.transformErrorForSerialization)(S)))})}_handleSubscribeEventMessage(p){const m=p.req,S=this._handler.handleEvent(p.eventName,p.arg)(E=>{this._send(new o(this._workerId,m,E))});this._pendingEvents.set(m,S)}_handleEventMessage(p){if(!this._pendingEmitters.has(p.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(p.req).fire(p.event)}_handleUnsubscribeEventMessage(p){if(!this._pendingEvents.has(p.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(p.req).dispose(),this._pendingEvents.delete(p.req)}_send(p){const m=[];if(p.type===0)for(let S=0;S<p.args.length;S++)p.args[S]instanceof ArrayBuffer&&m.push(p.args[S]);else p.type===1&&p.res instanceof ArrayBuffer&&m.push(p.res);this._handler.sendMessage(p,m)}}class l extends k.Disposable{constructor(p,m,S){super();let E=null;this._worker=this._register(p.create("vs/base/common/worker/simpleWorker",F=>{this._protocol.handleMessage(F)},F=>{E?.(F)})),this._protocol=new d({sendMessage:(F,O)=>{this._worker.postMessage(F,O)},handleMessage:(F,O)=>{if(typeof S[F]!="function")return Promise.reject(new Error("Missing method "+F+" on main thread host."));try{return Promise.resolve(S[F].apply(S,O))}catch(x){return Promise.reject(x)}},handleEvent:(F,O)=>{if(r(F)){const x=S[F].call(S,O);if(typeof x!="function")throw new Error(`Missing dynamic event ${F} on main thread host.`);return x}if(a(F)){const x=S[F];if(typeof x!="function")throw new Error(`Missing event ${F} on main thread host.`);return x}throw new Error(`Malformed event name ${F}`)}}),this._protocol.setWorkerId(this._worker.getId());let L=null;typeof D.globals.require<"u"&&typeof D.globals.require.getConfig=="function"?L=D.globals.require.getConfig():typeof D.globals.requirejs<"u"&&(L=D.globals.requirejs.s.contexts._.config);const N=w.getAllMethodNames(S);this._onModuleLoaded=this._protocol.sendMessage(C,[this._worker.getId(),JSON.parse(JSON.stringify(L)),m,N]);const I=(F,O)=>this._request(F,O),R=(F,O)=>this._protocol.listen(F,O);this._lazyProxy=new Promise((F,O)=>{E=O,this._onModuleLoaded.then(x=>{F(c(x,I,R))},x=>{O(x),this._onError("Worker failed to load "+m,x)})})}getProxyObject(){return this._lazyProxy}_request(p,m){return new Promise((S,E)=>{this._onModuleLoaded.then(()=>{this._protocol.sendMessage(p,m).then(S,E)},E)})}_onError(p,m){console.error(p),console.info(m)}}e.SimpleWorkerClient=l;function a(_){return _[0]==="o"&&_[1]==="n"&&b.isUpperAsciiLetter(_.charCodeAt(2))}function r(_){return/^onDynamic/.test(_)&&b.isUpperAsciiLetter(_.charCodeAt(9))}function c(_,p,m){const S=N=>function(){const I=Array.prototype.slice.call(arguments,0);return p(N,I)},E=N=>function(I){return m(N,I)},L={};for(const N of _){if(r(N)){L[N]=E(N);continue}if(a(N)){L[N]=m(N,void 0);continue}L[N]=S(N)}return L}class g{constructor(p,m){this._requestHandlerFactory=m,this._requestHandler=null,this._protocol=new d({sendMessage:(S,E)=>{p(S,E)},handleMessage:(S,E)=>this._handleMessage(S,E),handleEvent:(S,E)=>this._handleEvent(S,E)})}onmessage(p){this._protocol.handleMessage(p)}_handleMessage(p,m){if(p===C)return this.initialize(m[0],m[1],m[2],m[3]);if(!this._requestHandler||typeof this._requestHandler[p]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+p));try{return Promise.resolve(this._requestHandler[p].apply(this._requestHandler,m))}catch(S){return Promise.reject(S)}}_handleEvent(p,m){if(!this._requestHandler)throw new Error("Missing requestHandler");if(r(p)){const S=this._requestHandler[p].call(this._requestHandler,m);if(typeof S!="function")throw new Error(`Missing dynamic event ${p} on request handler.`);return S}if(a(p)){const S=this._requestHandler[p];if(typeof S!="function")throw new Error(`Missing event ${p} on request handler.`);return S}throw new Error(`Malformed event name ${p}`)}initialize(p,m,S,E){this._protocol.setWorkerId(p);const L=c(E,(N,I)=>this._protocol.sendMessage(N,I),(N,I)=>this._protocol.listen(N,I));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(L),Promise.resolve(w.getAllMethodNames(this._requestHandler))):(m&&(typeof m.baseUrl<"u"&&delete m.baseUrl,typeof m.paths<"u"&&typeof m.paths.vs<"u"&&delete m.paths.vs,typeof m.trustedTypesPolicy!==void 0&&delete m.trustedTypesPolicy,m.catchError=!0,D.globals.require.config(m)),new Promise((N,I)=>{(D.globals.require||q)([S],R=>{if(this._requestHandler=R.create(L),!this._requestHandler){I(new Error("No RequestHandler!"));return}N(w.getAllMethodNames(this._requestHandler))},I)}))}}e.SimpleWorkerServer=g;function f(_){return new g(_,null)}e.create=f}),define(oe[497],se([1,0,17,265]),function(q,e,y,v){"use strict";var k;Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultWorkerFactory=e.getWorkerBootstrapUrl=void 0;const D=(k=window.trustedTypes)===null||k===void 0?void 0:k.createPolicy("defaultWorkerFactory",{createScriptURL:n=>n});function w(n){if(y.globals.MonacoEnvironment){if(typeof y.globals.MonacoEnvironment.getWorker=="function")return y.globals.MonacoEnvironment.getWorker("workerMain.js",n);if(typeof y.globals.MonacoEnvironment.getWorkerUrl=="function"){const i=y.globals.MonacoEnvironment.getWorkerUrl("workerMain.js",n);return new Worker(D?D.createScriptURL(i):i,{name:n})}}if(typeof q=="function"){const i=q.toUrl("vs/base/worker/workerMain.js"),t=b(i,n);return new Worker(D?D.createScriptURL(t):t,{name:n})}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function b(n,i){if(/^((http:)|(https:)|(file:))/.test(n)&&n.substring(0,self.origin.length)!==self.origin){const t="vs/base/worker/defaultWorkerFactory.js",o=q.toUrl(t).slice(0,-t.length),s=`/*${i}*/self.MonacoEnvironment={baseUrl: '${o}'};const ttPolicy = self.trustedTypes?.createPolicy('defaultWorkerFactory', { createScriptURL: value => value });importScripts(ttPolicy?.createScriptURL('${n}') ?? '${n}');/*${i}*/`,d=new Blob([s],{type:"application/javascript"});return URL.createObjectURL(d)}return n+"#"+i}e.getWorkerBootstrapUrl=b;function C(n){return typeof n.then=="function"}class h{constructor(i,t,o,s,d){this.id=t;const l=w(o);C(l)?this.worker=l:this.worker=Promise.resolve(l),this.postMessage(i,[]),this.worker.then(a=>{a.onmessage=function(r){s(r.data)},a.onmessageerror=d,typeof a.addEventListener=="function"&&a.addEventListener("error",d)})}getId(){return this.id}postMessage(i,t){var o;(o=this.worker)===null||o===void 0||o.then(s=>s.postMessage(i,t))}dispose(){var i;(i=this.worker)===null||i===void 0||i.then(t=>t.terminate()),this.worker=null}}class u{constructor(i){this._label=i,this._webWorkerFailedBeforeError=!1}create(i,t,o){const s=++u.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new h(i,s,this._label||"anonymous"+s,t,d=>{(0,v.logOnceWebWorkerWarning)(d),this._webWorkerFailedBeforeError=d,o(d)})}}e.DefaultWorkerFactory=u,u.LAST_WORKER_ID=0}),define(oe[498],se([1,0,7,48,67,199,2,81,151]),function(q,e,y,v,k,D,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.QuickInputBox=void 0;const C=y.$;class h extends w.Disposable{constructor(n){super(),this.parent=n,this.onKeyDown=i=>y.addDisposableListener(this.inputBox.inputElement,y.EventType.KEY_DOWN,t=>{i(new v.StandardKeyboardEvent(t))}),this.onMouseDown=i=>y.addDisposableListener(this.inputBox.inputElement,y.EventType.MOUSE_DOWN,t=>{i(new k.StandardMouseEvent(t))}),this.onDidChange=i=>this.inputBox.onDidChange(i),this.container=y.append(this.parent,C(".quick-input-box")),this.inputBox=this._register(new D.InputBox(this.container,void 0))}get value(){return this.inputBox.value}set value(n){this.inputBox.value=n}select(n=null){this.inputBox.select(n)}isSelectionAtEnd(){return this.inputBox.isSelectionAtEnd()}get placeholder(){return this.inputBox.inputElement.getAttribute("placeholder")||""}set placeholder(n){this.inputBox.setPlaceHolder(n)}get ariaLabel(){return this.inputBox.getAriaLabel()}set ariaLabel(n){this.inputBox.setAriaLabel(n)}get password(){return this.inputBox.inputElement.type==="password"}set password(n){this.inputBox.inputElement.type=n?"password":"text"}setAttribute(n,i){this.inputBox.inputElement.setAttribute(n,i)}removeAttribute(n){this.inputBox.inputElement.removeAttribute(n)}showDecoration(n){n===b.default.Ignore?this.inputBox.hideMessage():this.inputBox.showMessage({type:n===b.default.Info?1:n===b.default.Warning?2:3,content:""})}stylesForType(n){return this.inputBox.stylesForType(n===b.default.Info?1:n===b.default.Warning?2:3)}setFocus(){this.inputBox.focus()}layout(){this.inputBox.layout()}style(n){this.inputBox.style(n)}}e.QuickInputBox=h}),define(oe[266],se([1,0,7,144,151]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getIconClass=void 0;const k={},D=new v.IdGenerator("quick-input-button-icon-");function w(b){if(!b)return;let C;const h=b.dark.toString();return k[h]?C=k[h]:(C=D.nextId(),y.createCSSRule(`.${C}, .hc-light .${C}`,`background-image: ${y.asCSSUrl(b.light||b.dark)}`),y.createCSSRule(`.vs-dark .${C}, .hc-black .${C}`,`background-image: ${y.asCSSUrl(b.dark)}`),k[h]=C),C}e.getIconClass=w}),define(oe[499],se([1,0,10,6,2,19]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InMemoryStorageDatabase=e.Storage=e.StorageState=void 0;var w;(function(h){h[h.None=0]="None",h[h.Initialized=1]="Initialized",h[h.Closed=2]="Closed"})(w=e.StorageState||(e.StorageState={}));class b extends k.Disposable{constructor(u,n=Object.create(null)){super(),this.database=u,this.options=n,this._onDidChangeStorage=this._register(new v.Emitter),this.onDidChangeStorage=this._onDidChangeStorage.event,this.state=w.None,this.cache=new Map,this.flushDelayer=new y.ThrottledDelayer(b.DEFAULT_FLUSH_DELAY),this.pendingDeletes=new Set,this.pendingInserts=new Map,this.whenFlushedCallbacks=[],this.registerListeners()}registerListeners(){this._register(this.database.onDidChangeItemsExternal(u=>this.onDidChangeItemsExternal(u)))}onDidChangeItemsExternal(u){var n,i;(n=u.changed)===null||n===void 0||n.forEach((t,o)=>this.accept(o,t)),(i=u.deleted)===null||i===void 0||i.forEach(t=>this.accept(t,void 0))}accept(u,n){if(this.state===w.Closed)return;let i=!1;(0,D.isUndefinedOrNull)(n)?i=this.cache.delete(u):this.cache.get(u)!==n&&(this.cache.set(u,n),i=!0),i&&this._onDidChangeStorage.fire(u)}get(u,n){const i=this.cache.get(u);return(0,D.isUndefinedOrNull)(i)?n:i}getBoolean(u,n){const i=this.get(u);return(0,D.isUndefinedOrNull)(i)?n:i==="true"}getNumber(u,n){const i=this.get(u);return(0,D.isUndefinedOrNull)(i)?n:parseInt(i,10)}set(u,n){return be(this,void 0,void 0,function*(){if(this.state===w.Closed)return;if((0,D.isUndefinedOrNull)(n))return this.delete(u);const i=String(n);if(this.cache.get(u)!==i)return this.cache.set(u,i),this.pendingInserts.set(u,i),this.pendingDeletes.delete(u),this._onDidChangeStorage.fire(u),this.doFlush()})}delete(u){return be(this,void 0,void 0,function*(){if(!(this.state===w.Closed||!this.cache.delete(u)))return this.pendingDeletes.has(u)||this.pendingDeletes.add(u),this.pendingInserts.delete(u),this._onDidChangeStorage.fire(u),this.doFlush()})}get hasPending(){return this.pendingInserts.size>0||this.pendingDeletes.size>0}flushPending(){return be(this,void 0,void 0,function*(){if(!this.hasPending)return;const u={insert:this.pendingInserts,delete:this.pendingDeletes};return this.pendingDeletes=new Set,this.pendingInserts=new Map,this.database.updateItems(u).finally(()=>{var n;if(!this.hasPending)for(;this.whenFlushedCallbacks.length;)(n=this.whenFlushedCallbacks.pop())===null||n===void 0||n()})})}doFlush(u){return be(this,void 0,void 0,function*(){return this.flushDelayer.trigger(()=>this.flushPending(),u)})}dispose(){this.flushDelayer.dispose(),super.dispose()}}e.Storage=b,b.DEFAULT_FLUSH_DELAY=100;class C{constructor(){this.onDidChangeItemsExternal=v.Event.None,this.items=new Map}updateItems(u){var n,i;return be(this,void 0,void 0,function*(){(n=u.insert)===null||n===void 0||n.forEach((t,o)=>this.items.set(o,t)),(i=u.delete)===null||i===void 0||i.forEach(t=>this.items.delete(t))})}}e.InMemoryStorageDatabase=C}),define(oe[267],se([1,0,2,6]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ElementSizeObserver=void 0;class k extends y.Disposable{constructor(w,b){super(),this._onDidChange=this._register(new v.Emitter),this.onDidChange=this._onDidChange.event,this._referenceDomElement=w,this._width=-1,this._height=-1,this._resizeObserver=null,this.measureReferenceDomElement(!1,b)}dispose(){this.stopObserving(),super.dispose()}getWidth(){return this._width}getHeight(){return this._height}startObserving(){!this._resizeObserver&&this._referenceDomElement&&(this._resizeObserver=new ResizeObserver(w=>{w&&w[0]&&w[0].contentRect?this.observe({width:w[0].contentRect.width,height:w[0].contentRect.height}):this.observe()}),this._resizeObserver.observe(this._referenceDomElement))}stopObserving(){this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)}observe(w){this.measureReferenceDomElement(!0,w)}measureReferenceDomElement(w,b){let C=0,h=0;b?(C=b.width,h=b.height):this._referenceDomElement&&(C=this._referenceDomElement.clientWidth,h=this._referenceDomElement.clientHeight),C=Math.max(5,C),h=Math.max(5,h),(this._width!==C||this._height!==h)&&(this._width=C,this._height=h,w&&this._onDidChange.fire())}}e.ElementSizeObserver=k}),define(oe[268],se([1,0,6]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TabFocus=void 0;class v{constructor(){this._tabFocus=!1,this._onDidChangeTabFocus=new y.Emitter,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}getTabFocusMode(){return this._tabFocus}setTabFocusMode(D){this._tabFocus!==D&&(this._tabFocus=D,this._onDidChangeTabFocus.fire(this._tabFocus))}}e.TabFocus=new v}),define(oe[201],se([1,0,41,7,48,10,6,2,97,8,231,23]),function(q,e,y,v,k,D,w,b,C,h,u,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextAreaWrapper=e.TextAreaInput=e.InMemoryClipboardMetadataManager=e.CopyOptions=e.TextAreaSyntethicEvents=void 0;var i;(function(a){a.Tap="-monaco-textarea-synthetic-tap"})(i=e.TextAreaSyntethicEvents||(e.TextAreaSyntethicEvents={})),e.CopyOptions={forceCopyWithSyntaxHighlighting:!1};class t{constructor(){this._lastState=null}set(r,c){this._lastState={lastCopiedValue:r,data:c}}get(r){return this._lastState&&this._lastState.lastCopiedValue===r?this._lastState.data:(this._lastState=null,null)}}e.InMemoryClipboardMetadataManager=t,t.INSTANCE=new t;class o{constructor(){this._lastTypeTextLength=0}handleCompositionUpdate(r){r=r||"";const c={text:r,replacePrevCharCnt:this._lastTypeTextLength,replaceNextCharCnt:0,positionDelta:0};return this._lastTypeTextLength=r.length,c}}class s extends b.Disposable{constructor(r,c,g,f){super(),this._host=r,this._textArea=c,this._OS=g,this._browser=f,this._onFocus=this._register(new w.Emitter),this.onFocus=this._onFocus.event,this._onBlur=this._register(new w.Emitter),this.onBlur=this._onBlur.event,this._onKeyDown=this._register(new w.Emitter),this.onKeyDown=this._onKeyDown.event,this._onKeyUp=this._register(new w.Emitter),this.onKeyUp=this._onKeyUp.event,this._onCut=this._register(new w.Emitter),this.onCut=this._onCut.event,this._onPaste=this._register(new w.Emitter),this.onPaste=this._onPaste.event,this._onType=this._register(new w.Emitter),this.onType=this._onType.event,this._onCompositionStart=this._register(new w.Emitter),this.onCompositionStart=this._onCompositionStart.event,this._onCompositionUpdate=this._register(new w.Emitter),this.onCompositionUpdate=this._onCompositionUpdate.event,this._onCompositionEnd=this._register(new w.Emitter),this.onCompositionEnd=this._onCompositionEnd.event,this._onSelectionChangeRequest=this._register(new w.Emitter),this.onSelectionChangeRequest=this._onSelectionChangeRequest.event,this._asyncTriggerCut=this._register(new D.RunOnceScheduler(()=>this._onCut.fire(),0)),this._asyncFocusGainWriteScreenReaderContent=this._register(new D.RunOnceScheduler(()=>this.writeScreenReaderContent("asyncFocusGain"),0)),this._textAreaState=u.TextAreaState.EMPTY,this._selectionChangeListener=null,this.writeScreenReaderContent("ctor"),this._hasFocus=!1,this._currentComposition=null;let _=null;this._register(this._textArea.onKeyDown(p=>{const m=new k.StandardKeyboardEvent(p);(m.keyCode===109||this._currentComposition&&m.keyCode===1)&&m.stopPropagation(),m.equals(9)&&m.preventDefault(),_=m,this._onKeyDown.fire(m)})),this._register(this._textArea.onKeyUp(p=>{const m=new k.StandardKeyboardEvent(p);this._onKeyUp.fire(m)})),this._register(this._textArea.onCompositionStart(p=>{u._debugComposition&&console.log("[compositionstart]",p);const m=new o;if(this._currentComposition){this._currentComposition=m;return}if(this._currentComposition=m,this._OS===2&&_&&_.equals(109)&&this._textAreaState.selectionStart===this._textAreaState.selectionEnd&&this._textAreaState.selectionStart>0&&this._textAreaState.value.substr(this._textAreaState.selectionStart-1,1)===p.data&&(_.code==="ArrowRight"||_.code==="ArrowLeft")){u._debugComposition&&console.log("[compositionstart] Handling long press case on macOS + arrow key",p),m.handleCompositionUpdate("x"),this._onCompositionStart.fire({data:p.data});return}if(this._browser.isAndroid){this._onCompositionStart.fire({data:p.data});return}this._onCompositionStart.fire({data:p.data})})),this._register(this._textArea.onCompositionUpdate(p=>{u._debugComposition&&console.log("[compositionupdate]",p);const m=this._currentComposition;if(!m)return;if(this._browser.isAndroid){const E=u.TextAreaState.readFromTextArea(this._textArea),L=u.TextAreaState.deduceAndroidCompositionInput(this._textAreaState,E);this._textAreaState=E,this._onType.fire(L),this._onCompositionUpdate.fire(p);return}const S=m.handleCompositionUpdate(p.data);this._textAreaState=u.TextAreaState.readFromTextArea(this._textArea),this._onType.fire(S),this._onCompositionUpdate.fire(p)})),this._register(this._textArea.onCompositionEnd(p=>{u._debugComposition&&console.log("[compositionend]",p);const m=this._currentComposition;if(!m)return;if(this._currentComposition=null,this._browser.isAndroid){const E=u.TextAreaState.readFromTextArea(this._textArea),L=u.TextAreaState.deduceAndroidCompositionInput(this._textAreaState,E);this._textAreaState=E,this._onType.fire(L),this._onCompositionEnd.fire();return}const S=m.handleCompositionUpdate(p.data);this._textAreaState=u.TextAreaState.readFromTextArea(this._textArea),this._onType.fire(S),this._onCompositionEnd.fire()})),this._register(this._textArea.onInput(p=>{if(u._debugComposition&&console.log("[input]",p),this._textArea.setIgnoreSelectionChangeTime("received input event"),this._currentComposition)return;const m=u.TextAreaState.readFromTextArea(this._textArea),S=u.TextAreaState.deduceInput(this._textAreaState,m,this._OS===2);S.replacePrevCharCnt===0&&S.text.length===1&&h.isHighSurrogate(S.text.charCodeAt(0))||(this._textAreaState=m,(S.text!==""||S.replacePrevCharCnt!==0||S.replaceNextCharCnt!==0||S.positionDelta!==0)&&this._onType.fire(S))})),this._register(this._textArea.onCut(p=>{this._textArea.setIgnoreSelectionChangeTime("received cut event"),this._ensureClipboardGetsEditorSelection(p),this._asyncTriggerCut.schedule()})),this._register(this._textArea.onCopy(p=>{this._ensureClipboardGetsEditorSelection(p)})),this._register(this._textArea.onPaste(p=>{if(this._textArea.setIgnoreSelectionChangeTime("received paste event"),p.preventDefault(),!p.clipboardData)return;let[m,S]=d.getTextData(p.clipboardData);!m||(S=S||t.INSTANCE.get(m),this._onPaste.fire({text:m,metadata:S}))})),this._register(this._textArea.onFocus(()=>{const p=this._hasFocus;this._setHasFocus(!0),this._browser.isSafari&&!p&&this._hasFocus&&this._asyncFocusGainWriteScreenReaderContent.schedule()})),this._register(this._textArea.onBlur(()=>{this._currentComposition&&(this._currentComposition=null,this.writeScreenReaderContent("blurWithoutCompositionEnd"),this._onCompositionEnd.fire()),this._setHasFocus(!1)})),this._register(this._textArea.onSyntheticTap(()=>{this._browser.isAndroid&&this._currentComposition&&(this._currentComposition=null,this.writeScreenReaderContent("tapWithoutCompositionEnd"),this._onCompositionEnd.fire())}))}_installSelectionChangeListener(){let r=0;return v.addDisposableListener(document,"selectionchange",c=>{if(!this._hasFocus||this._currentComposition||!this._browser.isChrome)return;const g=Date.now(),f=g-r;if(r=g,f<5)return;const _=g-this._textArea.getIgnoreSelectionChangeTime();if(this._textArea.resetSelectionChangeTime(),_<100||!this._textAreaState.selectionStartPosition||!this._textAreaState.selectionEndPosition)return;const p=this._textArea.getValue();if(this._textAreaState.value!==p)return;const m=this._textArea.getSelectionStart(),S=this._textArea.getSelectionEnd();if(this._textAreaState.selectionStart===m&&this._textAreaState.selectionEnd===S)return;const E=this._textAreaState.deduceEditorPosition(m),L=this._host.deduceModelPosition(E[0],E[1],E[2]),N=this._textAreaState.deduceEditorPosition(S),I=this._host.deduceModelPosition(N[0],N[1],N[2]),R=new n.Selection(L.lineNumber,L.column,I.lineNumber,I.column);this._onSelectionChangeRequest.fire(R)})}dispose(){super.dispose(),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}focusTextArea(){this._setHasFocus(!0),this.refreshFocusState()}isFocused(){return this._hasFocus}refreshFocusState(){this._setHasFocus(this._textArea.hasFocus())}_setHasFocus(r){this._hasFocus!==r&&(this._hasFocus=r,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&this.writeScreenReaderContent("focusgain"),this._hasFocus?this._onFocus.fire():this._onBlur.fire())}_setAndWriteTextAreaState(r,c){this._hasFocus||(c=c.collapseSelection()),c.writeToTextArea(r,this._textArea,this._hasFocus),this._textAreaState=c}writeScreenReaderContent(r){this._currentComposition||this._setAndWriteTextAreaState(r,this._host.getScreenReaderContent(this._textAreaState))}_ensureClipboardGetsEditorSelection(r){const c=this._host.getDataToCopy(),g={version:1,isFromEmptySelection:c.isFromEmptySelection,multicursorText:c.multicursorText,mode:c.mode};t.INSTANCE.set(this._browser.isFirefox?c.text.replace(/\r\n/g,` `):c.text,g),r.preventDefault(),r.clipboardData&&d.setTextData(r.clipboardData,c.text,c.html,g)}}e.TextAreaInput=s;class d{static getTextData(r){const c=r.getData(C.Mimes.text);let g=null;const f=r.getData("vscode-editor-data");if(typeof f=="string")try{g=JSON.parse(f),g.version!==1&&(g=null)}catch{}return c.length===0&&g===null&&r.files.length>0?[Array.prototype.slice.call(r.files,0).map(_=>_.name).join(` `),null]:[c,g]}static setTextData(r,c,g,f){r.setData(C.Mimes.text,c),typeof g=="string"&&r.setData("text/html",g),r.setData("vscode-editor-data",JSON.stringify(f))}}class l extends b.Disposable{constructor(r){super(),this._actual=r,this.onKeyDown=this._register(v.createEventEmitter(this._actual,"keydown")).event,this.onKeyUp=this._register(v.createEventEmitter(this._actual,"keyup")).event,this.onCompositionStart=this._register(v.createEventEmitter(this._actual,"compositionstart")).event,this.onCompositionUpdate=this._register(v.createEventEmitter(this._actual,"compositionupdate")).event,this.onCompositionEnd=this._register(v.createEventEmitter(this._actual,"compositionend")).event,this.onInput=this._register(v.createEventEmitter(this._actual,"input")).event,this.onCut=this._register(v.createEventEmitter(this._actual,"cut")).event,this.onCopy=this._register(v.createEventEmitter(this._actual,"copy")).event,this.onPaste=this._register(v.createEventEmitter(this._actual,"paste")).event,this.onFocus=this._register(v.createEventEmitter(this._actual,"focus")).event,this.onBlur=this._register(v.createEventEmitter(this._actual,"blur")).event,this._onSyntheticTap=this._register(new w.Emitter),this.onSyntheticTap=this._onSyntheticTap.event,this._ignoreSelectionChangeTime=0,this._register(v.addDisposableListener(this._actual,i.Tap,()=>this._onSyntheticTap.fire()))}hasFocus(){const r=v.getShadowRoot(this._actual);return r?r.activeElement===this._actual:v.isInDOM(this._actual)?document.activeElement===this._actual:!1}setIgnoreSelectionChangeTime(r){this._ignoreSelectionChangeTime=Date.now()}getIgnoreSelectionChangeTime(){return this._ignoreSelectionChangeTime}resetSelectionChangeTime(){this._ignoreSelectionChangeTime=0}getValue(){return this._actual.value}setValue(r,c){const g=this._actual;g.value!==c&&(this.setIgnoreSelectionChangeTime("setValue"),g.value=c)}getSelectionStart(){return this._actual.selectionDirection==="backward"?this._actual.selectionEnd:this._actual.selectionStart}getSelectionEnd(){return this._actual.selectionDirection==="backward"?this._actual.selectionStart:this._actual.selectionEnd}setSelectionRange(r,c,g){const f=this._actual;let _=null;const p=v.getShadowRoot(f);p?_=p.activeElement:_=document.activeElement;const m=_===f,S=f.selectionStart,E=f.selectionEnd;if(m&&S===c&&E===g){y.isFirefox&&window.parent!==window&&f.focus();return}if(m){this.setIgnoreSelectionChangeTime("setSelectionRange"),f.setSelectionRange(c,g),y.isFirefox&&window.parent!==window&&f.focus();return}try{const L=v.saveParentsScrollTop(f);this.setIgnoreSelectionChangeTime("setSelectionRange"),f.focus(),f.setSelectionRange(c,g),v.restoreParentsScrollTop(f,L)}catch{}}}e.TextAreaWrapper=l}),define(oe[500],se([1,0,7,33,47]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewContentWidgets=void 0;class D{constructor(u,n){this._coordinateBrand=void 0,this.top=u,this.left=n}}class w extends k.ViewPart{constructor(u,n){super(u),this._viewDomNode=n,this._widgets={},this.domNode=(0,v.createFastDomNode)(document.createElement("div")),k.PartFingerprints.write(this.domNode,1),this.domNode.setClassName("contentWidgets"),this.domNode.setPosition("absolute"),this.domNode.setTop(0),this.overflowingContentWidgetsDomNode=(0,v.createFastDomNode)(document.createElement("div")),k.PartFingerprints.write(this.overflowingContentWidgetsDomNode,2),this.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets")}dispose(){super.dispose(),this._widgets={}}onConfigurationChanged(u){const n=Object.keys(this._widgets);for(const i of n)this._widgets[i].onConfigurationChanged(u);return!0}onDecorationsChanged(u){return!0}onFlushed(u){return!0}onLineMappingChanged(u){const n=Object.keys(this._widgets);for(const i of n)this._widgets[i].onLineMappingChanged(u);return!0}onLinesChanged(u){return!0}onLinesDeleted(u){return!0}onLinesInserted(u){return!0}onScrollChanged(u){return!0}onZonesChanged(u){return!0}addWidget(u){const n=new b(this._context,this._viewDomNode,u);this._widgets[n.id]=n,n.allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(n.domNode):this.domNode.appendChild(n.domNode),this.setShouldRender()}setWidgetPosition(u,n,i,t){this._widgets[u.getId()].setPosition(n,i,t),this.setShouldRender()}removeWidget(u){const n=u.getId();if(this._widgets.hasOwnProperty(n)){const i=this._widgets[n];delete this._widgets[n];const t=i.domNode.domNode;t.parentNode.removeChild(t),t.removeAttribute("monaco-visible-content-widget"),this.setShouldRender()}}shouldSuppressMouseDownOnWidget(u){return this._widgets.hasOwnProperty(u)?this._widgets[u].suppressMouseDown:!1}onBeforeRender(u){const n=Object.keys(this._widgets);for(const i of n)this._widgets[i].onBeforeRender(u)}prepareRender(u){const n=Object.keys(this._widgets);for(const i of n)this._widgets[i].prepareRender(u)}render(u){const n=Object.keys(this._widgets);for(const i of n)this._widgets[i].render(u)}}e.ViewContentWidgets=w;class b{constructor(u,n,i){this._context=u,this._viewDomNode=n,this._actual=i,this.domNode=(0,v.createFastDomNode)(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1;const t=this._context.configuration.options,o=t.get(133);this._fixedOverflowWidgets=t.get(38),this._contentWidth=o.contentWidth,this._contentLeft=o.contentLeft,this._lineHeight=t.get(61),this._range=null,this._viewRange=null,this._affinity=null,this._preference=[],this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1,this._maxWidth=this._getMaxWidth(),this._isVisible=!1,this._renderData=null,this.domNode.setPosition(this._fixedOverflowWidgets&&this.allowEditorOverflow?"fixed":"absolute"),this.domNode.setDisplay("none"),this.domNode.setVisibility("hidden"),this.domNode.setAttribute("widgetId",this.id),this.domNode.setMaxWidth(this._maxWidth)}onConfigurationChanged(u){const n=this._context.configuration.options;if(this._lineHeight=n.get(61),u.hasChanged(133)){const i=n.get(133);this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._maxWidth=this._getMaxWidth()}}onLineMappingChanged(u){this._setPosition(this._range,this._affinity)}_setPosition(u,n){var i;if(this._range=u,this._viewRange=null,this._affinity=n,this._range){const t=this._context.viewModel.model.validateRange(this._range);(this._context.viewModel.coordinatesConverter.modelPositionIsVisible(t.getStartPosition())||this._context.viewModel.coordinatesConverter.modelPositionIsVisible(t.getEndPosition()))&&(this._viewRange=this._context.viewModel.coordinatesConverter.convertModelRangeToViewRange(t,(i=this._affinity)!==null&&i!==void 0?i:void 0))}}_getMaxWidth(){return this.allowEditorOverflow?window.innerWidth||document.documentElement.offsetWidth||document.body.offsetWidth:this._contentWidth}setPosition(u,n,i){this._setPosition(u,i),this._preference=n,this._viewRange&&this._preference&&this._preference.length>0?this.domNode.setDisplay("block"):this.domNode.setDisplay("none"),this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1}_layoutBoxInViewport(u,n,i,t,o){const s=u.top,d=s,l=n.top+this._lineHeight,a=o.viewportHeight-l,r=s-t,c=d>=t,g=l,f=a>=t;let _=u.left,p=n.left;return _+i>o.scrollLeft+o.viewportWidth&&(_=o.scrollLeft+o.viewportWidth-i),p+i>o.scrollLeft+o.viewportWidth&&(p=o.scrollLeft+o.viewportWidth-i),_<o.scrollLeft&&(_=o.scrollLeft),p<o.scrollLeft&&(p=o.scrollLeft),{fitsAbove:c,aboveTop:r,aboveLeft:_,fitsBelow:f,belowTop:g,belowLeft:p}}_layoutHorizontalSegmentInPage(u,n,i,t){const o=Math.max(0,n.left-t),s=Math.min(n.left+n.width+t,u.width);let d=n.left+i-y.StandardWindow.scrollX;if(d+t>s){const l=d-(s-t);d-=l,i-=l}if(d<o){const l=d-o;d-=l,i-=l}return[i,d]}_layoutBoxInPage(u,n,i,t,o){const s=u.top-t,d=n.top+this._lineHeight,l=y.getDomNodePagePosition(this._viewDomNode.domNode),a=l.top+s-y.StandardWindow.scrollY,r=l.top+d-y.StandardWindow.scrollY,c=y.getClientArea(document.body),[g,f]=this._layoutHorizontalSegmentInPage(c,l,u.left-o.scrollLeft+this._contentLeft,i),[_,p]=this._layoutHorizontalSegmentInPage(c,l,n.left-o.scrollLeft+this._contentLeft,i),m=22,S=22,E=a>=m,L=r+t<=c.height-S;return this._fixedOverflowWidgets?{fitsAbove:E,aboveTop:Math.max(a,m),aboveLeft:f,fitsBelow:L,belowTop:r,belowLeft:p}:{fitsAbove:E,aboveTop:s,aboveLeft:g,fitsBelow:L,belowTop:d,belowLeft:_}}_prepareRenderWidgetAtExactPositionOverflowing(u){return new D(u.top,u.left+this._contentLeft)}_getTopAndBottomLeft(u){if(!this._viewRange)return[null,null];const n=u.linesVisibleRangesForRange(this._viewRange,!1);if(!n||n.length===0)return[null,null];let i=n[0],t=n[0];for(const c of n)c.lineNumber<i.lineNumber&&(i=c),c.lineNumber>t.lineNumber&&(t=c);let o=1073741824;for(const c of i.ranges)c.left<o&&(o=c.left);let s=1073741824;for(const c of t.ranges)c.left<s&&(s=c.left);const d=u.getVerticalOffsetForLineNumber(i.lineNumber)-u.scrollTop,l=new D(d,o),a=u.getVerticalOffsetForLineNumber(t.lineNumber)-u.scrollTop,r=new D(a,s);return[l,r]}_prepareRenderWidget(u){if(!this._preference||this._preference.length===0)return null;const[n,i]=this._getTopAndBottomLeft(u);if(!n||!i)return null;if(this._cachedDomNodeOffsetWidth===-1||this._cachedDomNodeOffsetHeight===-1){let o=null;if(typeof this._actual.beforeRender=="function"&&(o=C(this._actual.beforeRender,this._actual)),o)this._cachedDomNodeOffsetWidth=o.width,this._cachedDomNodeOffsetHeight=o.height;else{const s=this.domNode.domNode.getBoundingClientRect();this._cachedDomNodeOffsetWidth=Math.round(s.width),this._cachedDomNodeOffsetHeight=Math.round(s.height)}}let t;this.allowEditorOverflow?t=this._layoutBoxInPage(n,i,this._cachedDomNodeOffsetWidth,this._cachedDomNodeOffsetHeight,u):t=this._layoutBoxInViewport(n,i,this._cachedDomNodeOffsetWidth,this._cachedDomNodeOffsetHeight,u);for(let o=1;o<=2;o++)for(const s of this._preference)if(s===1){if(!t)return null;if(o===2||t.fitsAbove)return{coordinate:new D(t.aboveTop,t.aboveLeft),position:1}}else if(s===2){if(!t)return null;if(o===2||t.fitsBelow)return{coordinate:new D(t.belowTop,t.belowLeft),position:2}}else return this.allowEditorOverflow?{coordinate:this._prepareRenderWidgetAtExactPositionOverflowing(n),position:0}:{coordinate:n,position:0};return null}onBeforeRender(u){!this._viewRange||!this._preference||this._viewRange.endLineNumber<u.startLineNumber||this._viewRange.startLineNumber>u.endLineNumber||this.domNode.setMaxWidth(this._maxWidth)}prepareRender(u){this._renderData=this._prepareRenderWidget(u)}render(u){if(!this._renderData){this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden")),typeof this._actual.afterRender=="function"&&C(this._actual.afterRender,this._actual,null);return}this.allowEditorOverflow?(this.domNode.setTop(this._renderData.coordinate.top),this.domNode.setLeft(this._renderData.coordinate.left)):(this.domNode.setTop(this._renderData.coordinate.top+u.scrollTop-u.bigNumbersDelta),this.domNode.setLeft(this._renderData.coordinate.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0),typeof this._actual.afterRender=="function"&&C(this._actual.afterRender,this._actual,this._renderData.position)}}function C(h,u,...n){try{return h.call(u,...n)}catch{return null}}}),define(oe[269],se([1,0,177,6,2,40,3]),function(q,e,y,v,k,D,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DiffNavigator=void 0;const b={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0};class C extends k.Disposable{constructor(u,n={}){super(),this._onDidUpdate=this._register(new v.Emitter),this._editor=u,this._options=D.mixin(n,b,!1),this.disposed=!1,this.nextIdx=-1,this.ranges=[],this.ignoreSelectionChange=!1,this.revealFirst=!!this._options.alwaysRevealFirst,this._register(this._editor.onDidDispose(()=>this.dispose())),this._register(this._editor.onDidUpdateDiff(()=>this._onDiffUpdated())),this._options.followsCaret&&this._register(this._editor.getModifiedEditor().onDidChangeCursorPosition(i=>{this.ignoreSelectionChange||(this.nextIdx=-1)})),this._options.alwaysRevealFirst&&this._register(this._editor.getModifiedEditor().onDidChangeModel(i=>{this.revealFirst=!0})),this._init()}_init(){this._editor.getLineChanges()}_onDiffUpdated(){this._init(),this._compute(this._editor.getLineChanges()),this.revealFirst&&this._editor.getLineChanges()!==null&&(this.revealFirst=!1,this.nextIdx=-1,this.next(1))}_compute(u){this.ranges=[],u&&u.forEach(n=>{!this._options.ignoreCharChanges&&n.charChanges?n.charChanges.forEach(i=>{this.ranges.push({rhs:!0,range:new w.Range(i.modifiedStartLineNumber,i.modifiedStartColumn,i.modifiedEndLineNumber,i.modifiedEndColumn)})}):n.modifiedEndLineNumber===0?this.ranges.push({rhs:!0,range:new w.Range(n.modifiedStartLineNumber,1,n.modifiedStartLineNumber+1,1)}):this.ranges.push({rhs:!0,range:new w.Range(n.modifiedStartLineNumber,1,n.modifiedEndLineNumber+1,1)})}),this.ranges.sort((n,i)=>w.Range.compareRangesUsingStarts(n.range,i.range)),this._onDidUpdate.fire(this)}_initIdx(u){let n=!1;const i=this._editor.getPosition();if(!i){this.nextIdx=0;return}for(let t=0,o=this.ranges.length;t<o&&!n;t++){const s=this.ranges[t].range;i.isBeforeOrEqual(s.getStartPosition())&&(this.nextIdx=t+(u?0:-1),n=!0)}n||(this.nextIdx=u?0:this.ranges.length-1),this.nextIdx<0&&(this.nextIdx=this.ranges.length-1)}_move(u,n){if(y.ok(!this.disposed,"Illegal State - diff navigator has been disposed"),!this.canNavigate())return;this.nextIdx===-1?this._initIdx(u):u?(this.nextIdx+=1,this.nextIdx>=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));const i=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{const t=i.range.getStartPosition();this._editor.setPosition(t),this._editor.revealRangeInCenter(i.range,n)}finally{this.ignoreSelectionChange=!1}}canNavigate(){return this.ranges&&this.ranges.length>0}next(u=0){this._move(!0,u)}previous(u=0){this._move(!1,u)}dispose(){super.dispose(),this.ranges=[],this.disposed=!0}}e.DiffNavigator=C}),define(oe[164],se([1,0,6]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorZoom=void 0,e.EditorZoom=new class{constructor(){this._zoomLevel=0,this._onDidChangeZoomLevel=new y.Emitter,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}getZoomLevel(){return this._zoomLevel}setZoomLevel(v){v=Math.min(Math.max(-5,v),20),this._zoomLevel!==v&&(this._zoomLevel=v,this._onDidChangeZoomLevel.fire(this._zoomLevel))}}}),define(oe[91],se([1,0,8,17,122]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decodeUTF16LE=e.createStringBuilder=e.hasTextDecoder=e.getPlatformTextDecoder=void 0;let D;function w(){return D||(D=new TextDecoder("UTF-16LE")),D}let b;function C(){return b||(b=new TextDecoder("UTF-16BE")),b}let h;function u(){return h||(h=v.isLittleEndian()?w():C()),h}e.getPlatformTextDecoder=u,e.hasTextDecoder=typeof TextDecoder<"u",e.hasTextDecoder?(e.createStringBuilder=s=>new t(s),e.decodeUTF16LE=n):(e.createStringBuilder=s=>new o,e.decodeUTF16LE=i);function n(s,d,l){const a=new Uint16Array(s.buffer,d,l);return l>0&&(a[0]===65279||a[0]===65534)?i(s,d,l):w().decode(a)}function i(s,d,l){const a=[];let r=0;for(let c=0;c<l;c++){const g=k.readUInt16LE(s,d);d+=2,a[r++]=String.fromCharCode(g)}return a.join("")}class t{constructor(d){this._capacity=d|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 d=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return u().decode(d)}_flushBuffer(){const d=this._buildBuffer();this._bufferLength=0,this._completedStrings===null?this._completedStrings=[d]:this._completedStrings[this._completedStrings.length]=d}write1(d){const l=this._capacity-this._bufferLength;l<=1&&(l===0||y.isHighSurrogate(d))&&this._flushBuffer(),this._buffer[this._bufferLength++]=d}appendASCII(d){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=d}appendASCIIString(d){const l=d.length;if(this._bufferLength+l>=this._capacity){this._flushBuffer(),this._completedStrings[this._completedStrings.length]=d;return}for(let a=0;a<l;a++)this._buffer[this._bufferLength++]=d.charCodeAt(a)}}class o{constructor(){this._pieces=[],this._piecesLen=0}reset(){this._pieces=[],this._piecesLen=0}build(){return this._pieces.join("")}write1(d){this._pieces[this._piecesLen++]=String.fromCharCode(d)}appendASCII(d){this._pieces[this._piecesLen++]=String.fromCharCode(d)}appendASCIIString(d){this._pieces[this._piecesLen++]=d}}}),define(oe[501],se([1,0,91,8,65,99,241]),function(q,e,y,v,k,D,w){"use strict";var b;Object.defineProperty(e,"__esModule",{value:!0}),e.DOMLineBreaksComputerFactory=void 0;const C=(b=window.trustedTypes)===null||b===void 0?void 0:b.createPolicy("domLineBreaksComputer",{createHTML:s=>s});class h{static create(){return new h}constructor(){}createLineBreaksComputer(d,l,a,r){const c=[],g=[];return{addRequest:(f,_,p)=>{c.push(f),g.push(_)},finalize:()=>u(c,d,l,a,r,g)}}}e.DOMLineBreaksComputerFactory=h;function u(s,d,l,a,r,c){var g;function f(B){const K=c[B];if(K){const T=D.LineInjectedText.applyInjectedText(s[B],K),ee=K.map($=>$.options),J=K.map($=>$.column-1);return new w.ModelLineProjectionData(J,ee,[T.length],[],0)}else return null}if(a===-1){const B=[];for(let K=0,T=s.length;K<T;K++)B[K]=f(K);return B}const _=Math.round(a*d.typicalHalfwidthCharacterWidth),p=Math.round(l*(r===3?2:r===2?1:0)),m=Math.ceil(d.spaceWidth*p),S=document.createElement("div");(0,k.applyFontInfo)(S,d);const E=(0,y.createStringBuilder)(1e4),L=[],N=[],I=[],R=[],F=[];for(let B=0;B<s.length;B++){const K=D.LineInjectedText.applyInjectedText(s[B],c[B]);let T=0,ee=0,J=_;if(r!==0)if(T=v.firstNonWhitespaceIndex(K),T===-1)T=0;else{for(let te=0;te<T;te++)ee+=K.charCodeAt(te)===9?l-ee%l:1;const G=Math.ceil(d.spaceWidth*ee);G+d.typicalFullwidthCharacterWidth>_?(T=0,ee=0):J=_-G}const $=K.substr(T),j=n($,ee,l,J,E,m);L[B]=T,N[B]=ee,I[B]=$,R[B]=j[0],F[B]=j[1]}const O=E.build(),x=(g=C?.createHTML(O))!==null&&g!==void 0?g:O;S.innerHTML=x,S.style.position="absolute",S.style.top="10000",S.style.wordWrap="break-word",document.body.appendChild(S);const M=document.createRange(),P=Array.prototype.slice.call(S.children,0),A=[];for(let B=0;B<s.length;B++){const K=P[B],T=i(M,K,I[B],R[B]);if(T===null){A[B]=f(B);continue}const ee=L[B],J=N[B]+p,$=F[B],j=[];for(let X=0,ie=T.length;X<ie;X++)j[X]=$[T[X]];if(ee!==0)for(let X=0,ie=T.length;X<ie;X++)T[X]+=ee;let G,te;const Z=c[B];Z?(G=Z.map(X=>X.options),te=Z.map(X=>X.column-1)):(G=null,te=null),A[B]=new w.ModelLineProjectionData(te,G,T,j,J)}return document.body.removeChild(S),A}function n(s,d,l,a,r,c){if(c!==0){const E=String(c);r.appendASCIIString('<div style="text-indent: -'),r.appendASCIIString(E),r.appendASCIIString("px; padding-left: "),r.appendASCIIString(E),r.appendASCIIString("px; box-sizing: border-box; width:")}else r.appendASCIIString('<div style="width:');r.appendASCIIString(String(a)),r.appendASCIIString('px;">');const g=s.length;let f=d,_=0;const p=[],m=[];let S=0<g?s.charCodeAt(0):0;r.appendASCIIString("<span>");for(let E=0;E<g;E++){E!==0&&E%16384==0&&r.appendASCIIString("</span><span>"),p[E]=_,m[E]=f;const L=S;S=E+1<g?s.charCodeAt(E+1):0;let N=1,I=1;switch(L){case 9:N=l-f%l,I=N;for(let R=1;R<=N;R++)R<N?r.write1(160):r.appendASCII(32);break;case 32:S===32?r.write1(160):r.appendASCII(32);break;case 60:r.appendASCIIString("<");break;case 62:r.appendASCIIString(">");break;case 38:r.appendASCIIString("&");break;case 0:r.appendASCIIString("�");break;case 65279:case 8232:case 8233:case 133:r.write1(65533);break;default:v.isFullWidthCharacter(L)&&I++,L<32?r.write1(9216+L):r.write1(L)}_+=N,f+=I}return r.appendASCIIString("</span>"),p[s.length]=_,m[s.length]=f,r.appendASCIIString("</div>"),[p,m]}function i(s,d,l,a){if(l.length<=1)return null;const r=Array.prototype.slice.call(d.children,0),c=[];try{t(s,r,a,0,null,l.length-1,null,c)}catch(g){return console.log(g),null}return c.length===0?null:(c.push(l.length),c)}function t(s,d,l,a,r,c,g,f){if(a===c||(r=r||o(s,d,l[a],l[a+1]),g=g||o(s,d,l[c],l[c+1]),Math.abs(r[0].top-g[0].top)<=.1))return;if(a+1===c){f.push(c);return}const _=a+(c-a)/2|0,p=o(s,d,l[_],l[_+1]);t(s,d,l,a,r,_,p,f),t(s,d,l,_,p,c,g,f)}function o(s,d,l,a){return s.setStart(d[l/16384|0].firstChild,l%16384),s.setEnd(d[a/16384|0].firstChild,a%16384),s.getClientRects()}}),define(oe[202],se([1,0,33,91]),function(q,e,y,v){"use strict";var k;Object.defineProperty(e,"__esModule",{value:!0}),e.VisibleLinesCollection=e.RenderedLinesCollection=void 0;class D{constructor(h){this._createLine=h,this._set(1,[])}flush(){this._set(1,[])}_set(h,u){this._lines=u,this._rendLineNumberStart=h}_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(h){const u=h-this._rendLineNumberStart;if(u<0||u>=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[u]}onLinesDeleted(h,u){if(this.getCount()===0)return null;const n=this.getStartLineNumber(),i=this.getEndLineNumber();if(u<n){const s=u-h+1;return this._rendLineNumberStart-=s,null}if(h>i)return null;let t=0,o=0;for(let s=n;s<=i;s++){const d=s-this._rendLineNumberStart;h<=s&&s<=u&&(o===0?(t=d,o=1):o++)}if(h<n){let s=0;u<n?s=u-h+1:s=n-h,this._rendLineNumberStart-=s}return this._lines.splice(t,o)}onLinesChanged(h,u){const n=h+u-1;if(this.getCount()===0)return!1;const i=this.getStartLineNumber(),t=this.getEndLineNumber();let o=!1;for(let s=h;s<=n;s++)s>=i&&s<=t&&(this._lines[s-this._rendLineNumberStart].onContentChanged(),o=!0);return o}onLinesInserted(h,u){if(this.getCount()===0)return null;const n=u-h+1,i=this.getStartLineNumber(),t=this.getEndLineNumber();if(h<=i)return this._rendLineNumberStart+=n,null;if(h>t)return null;if(n+h>t)return this._lines.splice(h-this._rendLineNumberStart,t-h+1);const o=[];for(let r=0;r<n;r++)o[r]=this._createLine();const s=h-this._rendLineNumberStart,d=this._lines.slice(0,s),l=this._lines.slice(s,this._lines.length-n),a=this._lines.slice(this._lines.length-n,this._lines.length);return this._lines=d.concat(o).concat(l),a}onTokensChanged(h){if(this.getCount()===0)return!1;const u=this.getStartLineNumber(),n=this.getEndLineNumber();let i=!1;for(let t=0,o=h.length;t<o;t++){const s=h[t];if(s.toLineNumber<u||s.fromLineNumber>n)continue;const d=Math.max(u,s.fromLineNumber),l=Math.min(n,s.toLineNumber);for(let a=d;a<=l;a++){const r=a-this._rendLineNumberStart;this._lines[r].onTokensChanged(),i=!0}}return i}}e.RenderedLinesCollection=D;class w{constructor(h){this._host=h,this.domNode=this._createDomNode(),this._linesCollection=new D(()=>this._host.createVisibleLine())}_createDomNode(){const h=(0,y.createFastDomNode)(document.createElement("div"));return h.setClassName("view-layer"),h.setPosition("absolute"),h.domNode.setAttribute("role","presentation"),h.domNode.setAttribute("aria-hidden","true"),h}onConfigurationChanged(h){return!!h.hasChanged(133)}onFlushed(h){return this._linesCollection.flush(),!0}onLinesChanged(h){return this._linesCollection.onLinesChanged(h.fromLineNumber,h.count)}onLinesDeleted(h){const u=this._linesCollection.onLinesDeleted(h.fromLineNumber,h.toLineNumber);if(u)for(let n=0,i=u.length;n<i;n++){const t=u[n].getDomNode();t&&this.domNode.domNode.removeChild(t)}return!0}onLinesInserted(h){const u=this._linesCollection.onLinesInserted(h.fromLineNumber,h.toLineNumber);if(u)for(let n=0,i=u.length;n<i;n++){const t=u[n].getDomNode();t&&this.domNode.domNode.removeChild(t)}return!0}onScrollChanged(h){return h.scrollTopChanged}onTokensChanged(h){return this._linesCollection.onTokensChanged(h.ranges)}onZonesChanged(h){return!0}getStartLineNumber(){return this._linesCollection.getStartLineNumber()}getEndLineNumber(){return this._linesCollection.getEndLineNumber()}getVisibleLine(h){return this._linesCollection.getLine(h)}renderLines(h){const u=this._linesCollection._get(),n=new b(this.domNode.domNode,this._host,h),i={rendLineNumberStart:u.rendLineNumberStart,lines:u.lines,linesLength:u.lines.length},t=n.render(i,h.startLineNumber,h.endLineNumber,h.relativeVerticalOffset);this._linesCollection._set(t.rendLineNumberStart,t.lines)}}e.VisibleLinesCollection=w;class b{constructor(h,u,n){this.domNode=h,this.host=u,this.viewportData=n}render(h,u,n,i){const t={rendLineNumberStart:h.rendLineNumberStart,lines:h.lines.slice(0),linesLength:h.linesLength};if(t.rendLineNumberStart+t.linesLength-1<u||n<t.rendLineNumberStart){t.rendLineNumberStart=u,t.linesLength=n-u+1,t.lines=[];for(let o=u;o<=n;o++)t.lines[o-u]=this.host.createVisibleLine();return this._finishRendering(t,!0,i),t}if(this._renderUntouchedLines(t,Math.max(u-t.rendLineNumberStart,0),Math.min(n-t.rendLineNumberStart,t.linesLength-1),i,u),t.rendLineNumberStart>u){const o=u,s=Math.min(n,t.rendLineNumberStart-1);o<=s&&(this._insertLinesBefore(t,o,s,i,u),t.linesLength+=s-o+1)}else if(t.rendLineNumberStart<u){const o=Math.min(t.linesLength,u-t.rendLineNumberStart);o>0&&(this._removeLinesBefore(t,o),t.linesLength-=o)}if(t.rendLineNumberStart=u,t.rendLineNumberStart+t.linesLength-1<n){const o=t.rendLineNumberStart+t.linesLength,s=n;o<=s&&(this._insertLinesAfter(t,o,s,i,u),t.linesLength+=s-o+1)}else if(t.rendLineNumberStart+t.linesLength-1>n){const o=Math.max(0,n-t.rendLineNumberStart+1),s=t.linesLength-1-o+1;s>0&&(this._removeLinesAfter(t,s),t.linesLength-=s)}return this._finishRendering(t,!1,i),t}_renderUntouchedLines(h,u,n,i,t){const o=h.rendLineNumberStart,s=h.lines;for(let d=u;d<=n;d++){const l=o+d;s[d].layoutLine(l,i[l-t])}}_insertLinesBefore(h,u,n,i,t){const o=[];let s=0;for(let d=u;d<=n;d++)o[s++]=this.host.createVisibleLine();h.lines=o.concat(h.lines)}_removeLinesBefore(h,u){for(let n=0;n<u;n++){const i=h.lines[n].getDomNode();i&&this.domNode.removeChild(i)}h.lines.splice(0,u)}_insertLinesAfter(h,u,n,i,t){const o=[];let s=0;for(let d=u;d<=n;d++)o[s++]=this.host.createVisibleLine();h.lines=h.lines.concat(o)}_removeLinesAfter(h,u){const n=h.linesLength-u;for(let i=0;i<u;i++){const t=h.lines[n+i].getDomNode();t&&this.domNode.removeChild(t)}h.lines.splice(n,u)}_finishRenderingNewLines(h,u,n,i){b._ttPolicy&&(n=b._ttPolicy.createHTML(n));const t=this.domNode.lastChild;u||!t?this.domNode.innerHTML=n:t.insertAdjacentHTML("afterend",n);let o=this.domNode.lastChild;for(let s=h.linesLength-1;s>=0;s--){const d=h.lines[s];i[s]&&(d.setDomNode(o),o=o.previousSibling)}}_finishRenderingInvalidLines(h,u,n){const i=document.createElement("div");b._ttPolicy&&(u=b._ttPolicy.createHTML(u)),i.innerHTML=u;for(let t=0;t<h.linesLength;t++){const o=h.lines[t];if(n[t]){const s=i.firstChild,d=o.getDomNode();d.parentNode.replaceChild(s,d),o.setDomNode(s)}}}_finishRendering(h,u,n){const i=b._sb,t=h.linesLength,o=h.lines,s=h.rendLineNumberStart,d=[];{i.reset();let l=!1;for(let a=0;a<t;a++){const r=o[a];d[a]=!1,!(r.getDomNode()||!r.renderLine(a+s,n[a],this.viewportData,i))&&(d[a]=!0,l=!0)}l&&this._finishRenderingNewLines(h,u,i.build(),d)}{i.reset();let l=!1;const a=[];for(let r=0;r<t;r++){const c=o[r];a[r]=!1,!(d[r]||!c.renderLine(r+s,n[r],this.viewportData,i))&&(a[r]=!0,l=!0)}l&&this._finishRenderingInvalidLines(h,i.build(),a)}}}b._ttPolicy=(k=window.trustedTypes)===null||k===void 0?void 0:k.createPolicy("editorViewLayer",{createHTML:C=>C}),b._sb=(0,v.createStringBuilder)(1e5)}),define(oe[502],se([1,0,33,65,202,47]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MarginViewOverlays=e.ContentViewOverlays=e.ViewOverlayLine=e.ViewOverlays=void 0;class w extends D.ViewPart{constructor(n){super(n),this._visibleLines=new k.VisibleLinesCollection(this),this.domNode=this._visibleLines.domNode,this._dynamicOverlays=[],this._isFocused=!1,this.domNode.setClassName("view-overlays")}shouldRender(){if(super.shouldRender())return!0;for(let n=0,i=this._dynamicOverlays.length;n<i;n++)if(this._dynamicOverlays[n].shouldRender())return!0;return!1}dispose(){super.dispose();for(let n=0,i=this._dynamicOverlays.length;n<i;n++)this._dynamicOverlays[n].dispose();this._dynamicOverlays=[]}getDomNode(){return this.domNode}createVisibleLine(){return new b(this._context.configuration,this._dynamicOverlays)}addDynamicOverlay(n){this._dynamicOverlays.push(n)}onConfigurationChanged(n){this._visibleLines.onConfigurationChanged(n);const i=this._visibleLines.getStartLineNumber(),t=this._visibleLines.getEndLineNumber();for(let o=i;o<=t;o++)this._visibleLines.getVisibleLine(o).onConfigurationChanged(n);return!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 i=this._dynamicOverlays.filter(t=>t.shouldRender());for(let t=0,o=i.length;t<o;t++){const s=i[t];s.prepareRender(n),s.onDidRender()}}render(n){this._viewOverlaysRender(n),this.domNode.toggleClassName("focused",this._isFocused)}_viewOverlaysRender(n){this._visibleLines.renderLines(n.viewportData)}}e.ViewOverlays=w;class b{constructor(n,i){this._configuration=n,this._lineHeight=this._configuration.options.get(61),this._dynamicOverlays=i,this._domNode=null,this._renderedContent=null}getDomNode(){return this._domNode?this._domNode.domNode:null}setDomNode(n){this._domNode=(0,y.createFastDomNode)(n)}onContentChanged(){}onTokensChanged(){}onConfigurationChanged(n){this._lineHeight=this._configuration.options.get(61)}renderLine(n,i,t,o){let s="";for(let d=0,l=this._dynamicOverlays.length;d<l;d++)s+=this._dynamicOverlays[d].render(t.startLineNumber,n);return this._renderedContent===s?!1:(this._renderedContent=s,o.appendASCIIString('<div style="position:absolute;top:'),o.appendASCIIString(String(i)),o.appendASCIIString("px;width:100%;height:"),o.appendASCIIString(String(this._lineHeight)),o.appendASCIIString('px;">'),o.appendASCIIString(s),o.appendASCIIString("</div>"),!0)}layoutLine(n,i){this._domNode&&(this._domNode.setTop(i),this._domNode.setHeight(this._lineHeight))}}e.ViewOverlayLine=b;class C extends w{constructor(n){super(n);const i=this._context.configuration.options.get(133);this._contentWidth=i.contentWidth,this.domNode.setHeight(0)}onConfigurationChanged(n){const i=this._context.configuration.options.get(133);return this._contentWidth=i.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=C;class h extends w{constructor(n){super(n);const i=this._context.configuration.options,t=i.get(133);this._contentLeft=t.contentLeft,this.domNode.setClassName("margin-view-overlays"),this.domNode.setWidth(1),(0,v.applyFontInfo)(this.domNode,i.get(46))}onConfigurationChanged(n){const i=this._context.configuration.options;(0,v.applyFontInfo)(this.domNode,i.get(46));const t=i.get(133);return this._contentLeft=t.contentLeft,super.onConfigurationChanged(n)||!0}onScrollChanged(n){return super.onScrollChanged(n)||n.scrollHeightChanged}_viewOverlaysRender(n){super._viewOverlaysRender(n);const i=Math.min(n.scrollHeight,1e6);this.domNode.setHeight(i),this.domNode.setWidth(this._contentLeft)}}e.MarginViewOverlays=h}),define(oe[270],se([1,0,122,91]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.compressConsecutiveTextChanges=e.TextChange=void 0;function k(C){return C.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class D{constructor(h,u,n,i){this.oldPosition=h,this.oldText=u,this.newPosition=n,this.newText=i}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}toString(){return this.oldText.length===0?`(insert@${this.oldPosition} "${k(this.newText)}")`:this.newText.length===0?`(delete@${this.oldPosition} "${k(this.oldText)}")`:`(replace@${this.oldPosition} "${k(this.oldText)}" with "${k(this.newText)}")`}static _writeStringSize(h){return 4+2*h.length}static _writeString(h,u,n){const i=u.length;y.writeUInt32BE(h,i,n),n+=4;for(let t=0;t<i;t++)y.writeUInt16LE(h,u.charCodeAt(t),n),n+=2;return n}static _readString(h,u){const n=y.readUInt32BE(h,u);return u+=4,(0,v.decodeUTF16LE)(h,u,n)}writeSize(){return 4+4+D._writeStringSize(this.oldText)+D._writeStringSize(this.newText)}write(h,u){return y.writeUInt32BE(h,this.oldPosition,u),u+=4,y.writeUInt32BE(h,this.newPosition,u),u+=4,u=D._writeString(h,this.oldText,u),u=D._writeString(h,this.newText,u),u}static read(h,u,n){const i=y.readUInt32BE(h,u);u+=4;const t=y.readUInt32BE(h,u);u+=4;const o=D._readString(h,u);u+=D._writeStringSize(o);const s=D._readString(h,u);return u+=D._writeStringSize(s),n.push(new D(i,o,t,s)),u}}e.TextChange=D;function w(C,h){return C===null||C.length===0?h:new b(C,h).compress()}e.compressConsecutiveTextChanges=w;class b{constructor(h,u){this._prevEdits=h,this._currEdits=u,this._result=[],this._resultLen=0,this._prevLen=this._prevEdits.length,this._prevDeltaOffset=0,this._currLen=this._currEdits.length,this._currDeltaOffset=0}compress(){let h=0,u=0,n=this._getPrev(h),i=this._getCurr(u);for(;h<this._prevLen||u<this._currLen;){if(n===null){this._acceptCurr(i),i=this._getCurr(++u);continue}if(i===null){this._acceptPrev(n),n=this._getPrev(++h);continue}if(i.oldEnd<=n.newPosition){this._acceptCurr(i),i=this._getCurr(++u);continue}if(n.newEnd<=i.oldPosition){this._acceptPrev(n),n=this._getPrev(++h);continue}if(i.oldPosition<n.newPosition){const[d,l]=b._splitCurr(i,n.newPosition-i.oldPosition);this._acceptCurr(d),i=l;continue}if(n.newPosition<i.oldPosition){const[d,l]=b._splitPrev(n,i.oldPosition-n.newPosition);this._acceptPrev(d),n=l;continue}let o,s;if(i.oldEnd===n.newEnd)o=n,s=i,n=this._getPrev(++h),i=this._getCurr(++u);else if(i.oldEnd<n.newEnd){const[d,l]=b._splitPrev(n,i.oldLength);o=d,s=i,n=l,i=this._getCurr(++u)}else{const[d,l]=b._splitCurr(i,n.newLength);o=n,s=d,n=this._getPrev(++h),i=l}this._result[this._resultLen++]=new D(o.oldPosition,o.oldText,s.newPosition,s.newText),this._prevDeltaOffset+=o.newLength-o.oldLength,this._currDeltaOffset+=s.newLength-s.oldLength}const t=b._merge(this._result);return b._removeNoOps(t)}_acceptCurr(h){this._result[this._resultLen++]=b._rebaseCurr(this._prevDeltaOffset,h),this._currDeltaOffset+=h.newLength-h.oldLength}_getCurr(h){return h<this._currLen?this._currEdits[h]:null}_acceptPrev(h){this._result[this._resultLen++]=b._rebasePrev(this._currDeltaOffset,h),this._prevDeltaOffset+=h.newLength-h.oldLength}_getPrev(h){return h<this._prevLen?this._prevEdits[h]:null}static _rebaseCurr(h,u){return new D(u.oldPosition-h,u.oldText,u.newPosition,u.newText)}static _rebasePrev(h,u){return new D(u.oldPosition,u.oldText,u.newPosition+h,u.newText)}static _splitPrev(h,u){const n=h.newText.substr(0,u),i=h.newText.substr(u);return[new D(h.oldPosition,h.oldText,h.newPosition,n),new D(h.oldEnd,"",h.newPosition+u,i)]}static _splitCurr(h,u){const n=h.oldText.substr(0,u),i=h.oldText.substr(u);return[new D(h.oldPosition,n,h.newPosition,h.newText),new D(h.oldPosition+u,i,h.newEnd,"")]}static _merge(h){if(h.length===0)return h;const u=[];let n=0,i=h[0];for(let t=1;t<h.length;t++){const o=h[t];i.oldEnd===o.oldPosition?i=new D(i.oldPosition,i.oldText+o.oldText,i.newPosition,i.newText+o.newText):(u[n++]=i,i=o)}return u[n++]=i,u}static _removeNoOps(h){if(h.length===0)return h;const u=[];let n=0;for(let i=0;i<h.length;i++){const t=h[i];t.oldText!==t.newText&&(u[n++]=t)}return u}}}),define(oe[503],se([1,0,253,90]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.score=void 0;function k(D,w,b,C,h,u){if(Array.isArray(D)){let n=0;for(const i of D){const t=k(i,w,b,C,h,u);if(t===10)return t;t>n&&(n=t)}return n}else{if(typeof D=="string")return C?D==="*"?5:D===b?10:0:0;if(D){const{language:n,pattern:i,scheme:t,hasAccessToAllModels:o,notebookType:s}=D;if(!C&&!o)return 0;s&&h&&(w=h);let d=0;if(t)if(t===w.scheme)d=10;else if(t==="*")d=5;else return 0;if(n)if(n===b)d=10;else if(n==="*")d=Math.max(d,5);else return 0;if(s)if(s===u)d=10;else if(s==="*"&&u!==void 0)d=Math.max(d,5);else return 0;if(i){let l;if(typeof i=="string"?l=i:l=Object.assign(Object.assign({},i),{base:(0,v.normalize)(i.base)}),l===w.fsPath||(0,y.match)(l,w.fsPath))d=10;else return 0}return d}else return 0}}e.score=k}),define(oe[504],se([1,0,6,2,46,503]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LanguageFeatureRegistry=void 0;function w(h){return typeof h=="string"?!1:Array.isArray(h)?h.every(w):!!h.exclusive}class b{constructor(u,n,i,t){this.uri=u,this.languageId=n,this.notebookUri=i,this.notebookType=t}equals(u){var n,i;return this.notebookType===u.notebookType&&this.languageId===u.languageId&&this.uri.toString()===u.uri.toString()&&((n=this.notebookUri)===null||n===void 0?void 0:n.toString())===((i=u.notebookUri)===null||i===void 0?void 0:i.toString())}}class C{constructor(u){this._notebookInfoResolver=u,this._clock=0,this._entries=[],this._onDidChange=new y.Emitter,this.onDidChange=this._onDidChange.event}register(u,n){let i={selector:u,provider:n,_score:-1,_time:this._clock++};return this._entries.push(i),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),(0,v.toDisposable)(()=>{if(i){const t=this._entries.indexOf(i);t>=0&&(this._entries.splice(t,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),i=void 0)}})}has(u){return this.all(u).length>0}all(u){if(!u)return[];this._updateScores(u);const n=[];for(const i of this._entries)i._score>0&&n.push(i.provider);return n}ordered(u){const n=[];return this._orderedForEach(u,i=>n.push(i.provider)),n}orderedGroups(u){const n=[];let i,t;return this._orderedForEach(u,o=>{i&&t===o._score?i.push(o.provider):(t=o._score,i=[o.provider],n.push(i))}),n}_orderedForEach(u,n){this._updateScores(u);for(const i of this._entries)i._score>0&&n(i)}_updateScores(u){var n,i;const t=(n=this._notebookInfoResolver)===null||n===void 0?void 0:n.call(this,u.uri),o=t?new b(u.uri,u.getLanguageId(),t.uri,t.type):new b(u.uri,u.getLanguageId(),void 0,void 0);if(!(!((i=this._lastCandidate)===null||i===void 0)&&i.equals(o))){this._lastCandidate=o;for(const s of this._entries)if(s._score=(0,D.score)(s.selector,o.uri,o.languageId,(0,k.shouldSynchronizeModel)(u),o.notebookUri,o.notebookType),w(s.selector)&&s._score>0){for(const d of this._entries)d._score=0;s._score=1e3;break}this._entries.sort(C._compareByScoreAndTime)}}static _compareByScoreAndTime(u,n){return u._score<n._score?1:u._score>n._score?-1:u._time<n._time?1:u._time>n._time?-1:0}}e.LanguageFeatureRegistry=C}),define(oe[203],se([1,0,8,91,3]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BracketsUtils=e.RichEditBrackets=e.RichEditBracket=void 0;class D{constructor(c,g,f,_,p,m){this._richEditBracketBrand=void 0,this.languageId=c,this.index=g,this.open=f,this.close=_,this.forwardRegex=p,this.reversedRegex=m,this._openSet=D._toSet(this.open),this._closeSet=D._toSet(this.close)}isOpen(c){return this._openSet.has(c)}isClose(c){return this._closeSet.has(c)}static _toSet(c){const g=new Set;for(const f of c)g.add(f);return g}}e.RichEditBracket=D;function w(r){const c=r.length;r=r.map(m=>[m[0].toLowerCase(),m[1].toLowerCase()]);const g=[];for(let m=0;m<c;m++)g[m]=m;const f=(m,S)=>{const[E,L]=m,[N,I]=S;return E===N||E===I||L===N||L===I},_=(m,S)=>{const E=Math.min(m,S),L=Math.max(m,S);for(let N=0;N<c;N++)g[N]===L&&(g[N]=E)};for(let m=0;m<c;m++){const S=r[m];for(let E=m+1;E<c;E++){const L=r[E];f(S,L)&&_(g[m],g[E])}}const p=[];for(let m=0;m<c;m++){const S=[],E=[];for(let L=0;L<c;L++)if(g[L]===m){const[N,I]=r[L];S.push(N),E.push(I)}S.length>0&&p.push({open:S,close:E})}return p}class b{constructor(c,g){this._richEditBracketsBrand=void 0;const f=w(g);this.brackets=f.map((_,p)=>new D(c,p,_.open,_.close,n(_.open,_.close,f,p),i(_.open,_.close,f,p))),this.forwardRegex=t(this.brackets),this.reversedRegex=o(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const _ of this.brackets){for(const p of _.open)this.textIsBracket[p]=_,this.textIsOpenBracket[p]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,p.length);for(const p of _.close)this.textIsBracket[p]=_,this.textIsOpenBracket[p]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,p.length)}}}e.RichEditBrackets=b;function C(r,c,g,f){for(let _=0,p=c.length;_<p;_++){if(_===g)continue;const m=c[_];for(const S of m.open)S.indexOf(r)>=0&&f.push(S);for(const S of m.close)S.indexOf(r)>=0&&f.push(S)}}function h(r,c){return r.length-c.length}function u(r){if(r.length<=1)return r;const c=[],g=new Set;for(const f of r)g.has(f)||(c.push(f),g.add(f));return c}function n(r,c,g,f){let _=[];_=_.concat(r),_=_.concat(c);for(let p=0,m=_.length;p<m;p++)C(_[p],g,f,_);return _=u(_),_.sort(h),_.reverse(),d(_)}function i(r,c,g,f){let _=[];_=_.concat(r),_=_.concat(c);for(let p=0,m=_.length;p<m;p++)C(_[p],g,f,_);return _=u(_),_.sort(h),_.reverse(),d(_.map(l))}function t(r){let c=[];for(const g of r){for(const f of g.open)c.push(f);for(const f of g.close)c.push(f)}return c=u(c),d(c)}function o(r){let c=[];for(const g of r){for(const f of g.open)c.push(f);for(const f of g.close)c.push(f)}return c=u(c),d(c.map(l))}function s(r){const c=/^[\w ]+$/.test(r);return r=y.escapeRegExpCharacters(r),c?`\\b${r}\\b`:r}function d(r){const c=`(${r.map(s).join(")|(")})`;return y.createRegExp(c,!0)}const l=function(){function r(f){if(v.hasTextDecoder){const _=new Uint16Array(f.length);let p=0;for(let m=f.length-1;m>=0;m--)_[p++]=f.charCodeAt(m);return v.getPlatformTextDecoder().decode(_)}else{const _=[];let p=0;for(let m=f.length-1;m>=0;m--)_[p++]=f.charAt(m);return _.join("")}}let c=null,g=null;return function(f){return c!==f&&(c=f,g=r(c)),g}}();class a{static _findPrevBracketInText(c,g,f,_){const p=f.match(c);if(!p)return null;const m=f.length-(p.index||0),S=p[0].length,E=_+m;return new k.Range(g,E-S+1,g,E+1)}static findPrevBracketInRange(c,g,f,_,p){const m=l(f).substring(f.length-p,f.length-_);return this._findPrevBracketInText(c,g,m,_)}static findNextBracketInText(c,g,f,_){const p=f.match(c);if(!p)return null;const m=p.index||0,S=p[0].length;if(S===0)return null;const E=_+m;return new k.Range(g,E+1,g,E+1+S)}static findNextBracketInRange(c,g,f,_,p){const m=f.substring(_,p);return this.findNextBracketInText(c,g,m,_)}}e.BracketsUtils=a}),define(oe[505],se([1,0,18,110,203]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BracketElectricCharacterSupport=void 0;class D{constructor(b){this._richEditBrackets=b}getElectricCharacters(){const b=[];if(this._richEditBrackets)for(const C of this._richEditBrackets.brackets)for(const h of C.close){const u=h.charAt(h.length-1);b.push(u)}return(0,y.distinct)(b)}onElectricCharacter(b,C,h){if(!this._richEditBrackets||this._richEditBrackets.brackets.length===0)return null;const u=C.findTokenIndexAtOffset(h-1);if((0,v.ignoreBracketsInToken)(C.getStandardTokenType(u)))return null;const n=this._richEditBrackets.reversedRegex,i=C.getLineContent().substring(0,h-1)+b,t=k.BracketsUtils.findPrevBracketInRange(n,1,i,0,i.length);if(!t)return null;const o=i.substring(t.startColumn-1,t.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[o])return null;const s=C.getActualLineContentBefore(t.startColumn-1);return/^\s*$/.test(s)?{matchOpenBracket:o}:null}}e.BracketElectricCharacterSupport=D}),define(oe[506],se([1,0,6,2,3,428,235,237,87,236,111,183]),function(q,e,y,v,k,D,w,b,C,h,u,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BracketPairsTree=void 0;class i extends v.Disposable{constructor(r,c){if(super(),this.textModel=r,this.getLanguageConfiguration=c,this.didChangeEmitter=new y.Emitter,this.denseKeyProvider=new u.DenseKeyProvider,this.brackets=new b.LanguageAgnosticBracketTokens(this.denseKeyProvider,this.getLanguageConfiguration),this.onDidChange=this.didChangeEmitter.event,r.tokenization.backgroundTokenizationState===0){const g=this.brackets.getSingleLanguageBracketTokens(this.textModel.getLanguageId()),f=new n.FastTokenizer(this.textModel.getValue(),g);this.initialAstWithoutTokens=(0,h.parseDocument)(f,[],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens}else r.tokenization.backgroundTokenizationState===2?(this.initialAstWithoutTokens=void 0,this.astWithTokens=this.parseDocumentFromTextBuffer([],void 0,!1)):r.tokenization.backgroundTokenizationState===1&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer([],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens)}didLanguageChange(r){return this.brackets.didLanguageChange(r)}handleDidChangeBackgroundTokenizationState(){if(this.textModel.tokenization.backgroundTokenizationState===2){const r=this.initialAstWithoutTokens===void 0;this.initialAstWithoutTokens=void 0,r||this.didChangeEmitter.fire()}}handleDidChangeTokens({ranges:r}){const c=r.map(g=>new w.TextEditInfo((0,C.toLength)(g.fromLineNumber-1,0),(0,C.toLength)(g.toLineNumber,0),(0,C.toLength)(g.toLineNumber-g.fromLineNumber+1,0)));this.astWithTokens=this.parseDocumentFromTextBuffer(c,this.astWithTokens,!1),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}handleContentChanged(r){const c=r.changes.map(g=>{const f=k.Range.lift(g.range);return new w.TextEditInfo((0,C.positionToLength)(f.getStartPosition()),(0,C.positionToLength)(f.getEndPosition()),(0,C.lengthOfString)(g.text))}).reverse();this.astWithTokens=this.parseDocumentFromTextBuffer(c,this.astWithTokens,!1),this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(c,this.initialAstWithoutTokens,!1))}parseDocumentFromTextBuffer(r,c,g){const f=c,_=new n.TextBufferTokenizer(this.textModel,this.brackets);return(0,h.parseDocument)(_,r,f,g)}getBracketsInRange(r){const c=(0,C.toLength)(r.startLineNumber-1,r.startColumn-1),g=(0,C.toLength)(r.endLineNumber-1,r.endColumn-1),f=new Array,_=this.initialAstWithoutTokens||this.astWithTokens;return s(_,C.lengthZero,_.length,c,g,f,0,new Map),f}getBracketPairsInRange(r,c){const g=new Array,f=(0,C.positionToLength)(r.getStartPosition()),_=(0,C.positionToLength)(r.getEndPosition()),p=this.initialAstWithoutTokens||this.astWithTokens,m=new d(g,c,this.textModel);return l(p,C.lengthZero,p.length,f,_,m,0,new Map),g}getFirstBracketAfter(r){const c=this.initialAstWithoutTokens||this.astWithTokens;return o(c,C.lengthZero,c.length,(0,C.positionToLength)(r))}getFirstBracketBefore(r){const c=this.initialAstWithoutTokens||this.astWithTokens;return t(c,C.lengthZero,c.length,(0,C.positionToLength)(r))}}e.BracketPairsTree=i;function t(a,r,c,g){if(a.kind===4||a.kind===2){const f=[];for(const _ of a.children)c=(0,C.lengthAdd)(r,_.length),f.push({nodeOffsetStart:r,nodeOffsetEnd:c}),r=c;for(let _=f.length-1;_>=0;_--){const{nodeOffsetStart:p,nodeOffsetEnd:m}=f[_];if((0,C.lengthLessThan)(p,g)){const S=t(a.children[_],p,m,g);if(S)return S}}return null}else{if(a.kind===3)return null;if(a.kind===1){const f=(0,C.lengthsToRange)(r,c);return{bracketInfo:a.bracketInfo,range:f}}}return null}function o(a,r,c,g){if(a.kind===4||a.kind===2){for(const f of a.children){if(c=(0,C.lengthAdd)(r,f.length),(0,C.lengthLessThan)(g,c)){const _=o(f,r,c,g);if(_)return _}r=c}return null}else{if(a.kind===3)return null;if(a.kind===1){const f=(0,C.lengthsToRange)(r,c);return{bracketInfo:a.bracketInfo,range:f}}}return null}function s(a,r,c,g,f,_,p,m){if(!(p>200)){if(a.kind===4)for(const S of a.children)c=(0,C.lengthAdd)(r,S.length),(0,C.lengthLessThanEqual)(r,f)&&(0,C.lengthGreaterThanEqual)(c,g)&&s(S,r,c,g,f,_,p,m),r=c;else if(a.kind===2){let S=0;if(m){let E=m.get(a.openingBracket.text);E===void 0&&(E=0),S=E,E++,m.set(a.openingBracket.text,E)}{const E=a.openingBracket;if(c=(0,C.lengthAdd)(r,E.length),(0,C.lengthLessThanEqual)(r,f)&&(0,C.lengthGreaterThanEqual)(c,g)){const L=(0,C.lengthsToRange)(r,c);_.push(new D.BracketInfo(L,p,S,!a.closingBracket))}r=c}if(a.child){const E=a.child;c=(0,C.lengthAdd)(r,E.length),(0,C.lengthLessThanEqual)(r,f)&&(0,C.lengthGreaterThanEqual)(c,g)&&s(E,r,c,g,f,_,p+1,m),r=c}if(a.closingBracket){const E=a.closingBracket;if(c=(0,C.lengthAdd)(r,E.length),(0,C.lengthLessThanEqual)(r,f)&&(0,C.lengthGreaterThanEqual)(c,g)){const L=(0,C.lengthsToRange)(r,c);_.push(new D.BracketInfo(L,p,S,!1))}r=c}m?.set(a.openingBracket.text,S)}else if(a.kind===3){const S=(0,C.lengthsToRange)(r,c);_.push(new D.BracketInfo(S,p-1,0,!0))}else if(a.kind===1){const S=(0,C.lengthsToRange)(r,c);_.push(new D.BracketInfo(S,p-1,0,!1))}}}class d{constructor(r,c,g){this.result=r,this.includeMinIndentation=c,this.textModel=g}}function l(a,r,c,g,f,_,p,m){var S;if(!(p>200))if(a.kind===2){let E=0;if(m){let I=m.get(a.openingBracket.text);I===void 0&&(I=0),E=I,I++,m.set(a.openingBracket.text,I)}const L=(0,C.lengthAdd)(r,a.openingBracket.length);let N=-1;if(_.includeMinIndentation&&(N=a.computeMinIndentation(r,_.textModel)),_.result.push(new D.BracketPairWithMinIndentationInfo((0,C.lengthsToRange)(r,c),(0,C.lengthsToRange)(r,L),a.closingBracket?(0,C.lengthsToRange)((0,C.lengthAdd)(L,((S=a.child)===null||S===void 0?void 0:S.length)||C.lengthZero),c):void 0,p,E,a,N)),r=L,a.child){const I=a.child;c=(0,C.lengthAdd)(r,I.length),(0,C.lengthLessThanEqual)(r,f)&&(0,C.lengthGreaterThanEqual)(c,g)&&l(I,r,c,g,f,_,p+1,m)}m?.set(a.openingBracket.text,E)}else{let E=r;for(const L of a.children){const N=E;E=(0,C.lengthAdd)(E,L.length),(0,C.lengthLessThanEqual)(N,f)&&(0,C.lengthLessThanEqual)(g,E)&&l(L,N,E,g,f,_,p,m)}}}}),define(oe[507],se([1,0,6,2,3,506,110,203,18]),function(q,e,y,v,k,D,w,b,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BracketPairsTextModelPart=void 0;class h extends v.Disposable{constructor(s,d){super(),this.textModel=s,this.languageConfigurationService=d,this.bracketPairsTree=this._register(new v.MutableDisposable),this.onDidChangeEmitter=new y.Emitter,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1,this._register(this.languageConfigurationService.onDidChange(l=>{var a;(!l.languageId||!((a=this.bracketPairsTree.value)===null||a===void 0)&&a.object.didLanguageChange(l.languageId))&&(this.bracketPairsTree.clear(),this.updateBracketPairsTree())}))}get canBuildAST(){return this.textModel.getValueLength()<=5e6}handleDidChangeOptions(s){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeLanguage(s){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeContent(s){var d;(d=this.bracketPairsTree.value)===null||d===void 0||d.object.handleContentChanged(s)}handleDidChangeBackgroundTokenizationState(){var s;(s=this.bracketPairsTree.value)===null||s===void 0||s.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(s){var d;(d=this.bracketPairsTree.value)===null||d===void 0||d.object.handleDidChangeTokens(s)}updateBracketPairsTree(){if(this.bracketsRequested&&this.canBuildAST){if(!this.bracketPairsTree.value){const s=new v.DisposableStore;this.bracketPairsTree.value=u(s.add(new D.BracketPairsTree(this.textModel,d=>this.languageConfigurationService.getLanguageConfiguration(d))),s),s.add(this.bracketPairsTree.value.object.onDidChange(d=>this.onDidChangeEmitter.fire(d))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire())}getBracketPairsInRange(s){var d;return this.bracketsRequested=!0,this.updateBracketPairsTree(),((d=this.bracketPairsTree.value)===null||d===void 0?void 0:d.object.getBracketPairsInRange(s,!1))||[]}getBracketPairsInRangeWithMinIndentation(s){var d;return this.bracketsRequested=!0,this.updateBracketPairsTree(),((d=this.bracketPairsTree.value)===null||d===void 0?void 0:d.object.getBracketPairsInRange(s,!0))||[]}getBracketsInRange(s){var d;return this.bracketsRequested=!0,this.updateBracketPairsTree(),((d=this.bracketPairsTree.value)===null||d===void 0?void 0:d.object.getBracketsInRange(s))||[]}findMatchingBracketUp(s,d,l){const a=this.textModel.validatePosition(d),r=this.textModel.getLanguageIdAtPosition(a.lineNumber,a.column);if(this.canBuildAST){const c=this.languageConfigurationService.getLanguageConfiguration(r).bracketsNew.getClosingBracketInfo(s);if(!c)return null;const g=(0,C.findLast)(this.getBracketPairsInRange(k.Range.fromPositions(d,d))||[],f=>c.closes(f.openingBracketInfo));return g?g.openingBracketRange:null}else{const c=s.toLowerCase(),g=this.languageConfigurationService.getLanguageConfiguration(r).brackets;if(!g)return null;const f=g.textIsBracket[c];return f?t(this._findMatchingBracketUp(f,a,n(l))):null}}matchBracket(s,d){if(this.canBuildAST){const l=(0,C.findLastMaxBy)(this.getBracketPairsInRange(k.Range.fromPositions(s,s)).filter(a=>a.closingBracketRange!==void 0&&(a.openingBracketRange.containsPosition(s)||a.closingBracketRange.containsPosition(s))),(0,C.compareBy)(a=>a.openingBracketRange.containsPosition(s)?a.openingBracketRange:a.closingBracketRange,k.Range.compareRangesUsingStarts));return l?[l.openingBracketRange,l.closingBracketRange]:null}else{const l=n(d);return this._matchBracket(this.textModel.validatePosition(s),l)}}_establishBracketSearchOffsets(s,d,l,a){const r=d.getCount(),c=d.getLanguageId(a);let g=Math.max(0,s.column-1-l.maxBracketLength);for(let _=a-1;_>=0;_--){const p=d.getEndOffset(_);if(p<=g)break;if((0,w.ignoreBracketsInToken)(d.getStandardTokenType(_))||d.getLanguageId(_)!==c){g=p;break}}let f=Math.min(d.getLineContent().length,s.column-1+l.maxBracketLength);for(let _=a+1;_<r;_++){const p=d.getStartOffset(_);if(p>=f)break;if((0,w.ignoreBracketsInToken)(d.getStandardTokenType(_))||d.getLanguageId(_)!==c){f=p;break}}return{searchStartOffset:g,searchEndOffset:f}}_matchBracket(s,d){const l=s.lineNumber,a=this.textModel.tokenization.getLineTokens(l),r=this.textModel.getLineContent(l),c=a.findTokenIndexAtOffset(s.column-1);if(c<0)return null;const g=this.languageConfigurationService.getLanguageConfiguration(a.getLanguageId(c)).brackets;if(g&&!(0,w.ignoreBracketsInToken)(a.getStandardTokenType(c))){let{searchStartOffset:f,searchEndOffset:_}=this._establishBracketSearchOffsets(s,a,g,c),p=null;for(;;){const m=b.BracketsUtils.findNextBracketInRange(g.forwardRegex,l,r,f,_);if(!m)break;if(m.startColumn<=s.column&&s.column<=m.endColumn){const S=r.substring(m.startColumn-1,m.endColumn-1).toLowerCase(),E=this._matchFoundBracket(m,g.textIsBracket[S],g.textIsOpenBracket[S],d);if(E){if(E instanceof i)return null;p=E}}f=m.endColumn-1}if(p)return p}if(c>0&&a.getStartOffset(c)===s.column-1){const f=c-1,_=this.languageConfigurationService.getLanguageConfiguration(a.getLanguageId(f)).brackets;if(_&&!(0,w.ignoreBracketsInToken)(a.getStandardTokenType(f))){const{searchStartOffset:p,searchEndOffset:m}=this._establishBracketSearchOffsets(s,a,_,f),S=b.BracketsUtils.findPrevBracketInRange(_.reversedRegex,l,r,p,m);if(S&&S.startColumn<=s.column&&s.column<=S.endColumn){const E=r.substring(S.startColumn-1,S.endColumn-1).toLowerCase(),L=this._matchFoundBracket(S,_.textIsBracket[E],_.textIsOpenBracket[E],d);if(L)return L instanceof i?null:L}}}return null}_matchFoundBracket(s,d,l,a){if(!d)return null;const r=l?this._findMatchingBracketDown(d,s.getEndPosition(),a):this._findMatchingBracketUp(d,s.getStartPosition(),a);return r?r instanceof i?r:[s,r]:null}_findMatchingBracketUp(s,d,l){const a=s.languageId,r=s.reversedRegex;let c=-1,g=0;const f=(_,p,m,S)=>{for(;;){if(l&&++g%100==0&&!l())return i.INSTANCE;const E=b.BracketsUtils.findPrevBracketInRange(r,_,p,m,S);if(!E)break;const L=p.substring(E.startColumn-1,E.endColumn-1).toLowerCase();if(s.isOpen(L)?c++:s.isClose(L)&&c--,c===0)return E;S=E.startColumn-1}return null};for(let _=d.lineNumber;_>=1;_--){const p=this.textModel.tokenization.getLineTokens(_),m=p.getCount(),S=this.textModel.getLineContent(_);let E=m-1,L=S.length,N=S.length;_===d.lineNumber&&(E=p.findTokenIndexAtOffset(d.column-1),L=d.column-1,N=d.column-1);let I=!0;for(;E>=0;E--){const R=p.getLanguageId(E)===a&&!(0,w.ignoreBracketsInToken)(p.getStandardTokenType(E));if(R)I?L=p.getStartOffset(E):(L=p.getStartOffset(E),N=p.getEndOffset(E));else if(I&&L!==N){const F=f(_,S,L,N);if(F)return F}I=R}if(I&&L!==N){const R=f(_,S,L,N);if(R)return R}}return null}_findMatchingBracketDown(s,d,l){const a=s.languageId,r=s.forwardRegex;let c=1,g=0;const f=(p,m,S,E)=>{for(;;){if(l&&++g%100==0&&!l())return i.INSTANCE;const L=b.BracketsUtils.findNextBracketInRange(r,p,m,S,E);if(!L)break;const N=m.substring(L.startColumn-1,L.endColumn-1).toLowerCase();if(s.isOpen(N)?c++:s.isClose(N)&&c--,c===0)return L;S=L.endColumn-1}return null},_=this.textModel.getLineCount();for(let p=d.lineNumber;p<=_;p++){const m=this.textModel.tokenization.getLineTokens(p),S=m.getCount(),E=this.textModel.getLineContent(p);let L=0,N=0,I=0;p===d.lineNumber&&(L=m.findTokenIndexAtOffset(d.column-1),N=d.column-1,I=d.column-1);let R=!0;for(;L<S;L++){const F=m.getLanguageId(L)===a&&!(0,w.ignoreBracketsInToken)(m.getStandardTokenType(L));if(F)R||(N=m.getStartOffset(L)),I=m.getEndOffset(L);else if(R&&N!==I){const O=f(p,E,N,I);if(O)return O}R=F}if(R&&N!==I){const F=f(p,E,N,I);if(F)return F}}return null}findPrevBracket(s){var d;const l=this.textModel.validatePosition(s);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),((d=this.bracketPairsTree.value)===null||d===void 0?void 0:d.object.getFirstBracketBefore(l))||null;let a=null,r=null,c=null;for(let g=l.lineNumber;g>=1;g--){const f=this.textModel.tokenization.getLineTokens(g),_=f.getCount(),p=this.textModel.getLineContent(g);let m=_-1,S=p.length,E=p.length;if(g===l.lineNumber){m=f.findTokenIndexAtOffset(l.column-1),S=l.column-1,E=l.column-1;const N=f.getLanguageId(m);a!==N&&(a=N,r=this.languageConfigurationService.getLanguageConfiguration(a).brackets,c=this.languageConfigurationService.getLanguageConfiguration(a).bracketsNew)}let L=!0;for(;m>=0;m--){const N=f.getLanguageId(m);if(a!==N){if(r&&c&&L&&S!==E){const R=b.BracketsUtils.findPrevBracketInRange(r.reversedRegex,g,p,S,E);if(R)return this._toFoundBracket(c,R);L=!1}a=N,r=this.languageConfigurationService.getLanguageConfiguration(a).brackets,c=this.languageConfigurationService.getLanguageConfiguration(a).bracketsNew}const I=!!r&&!(0,w.ignoreBracketsInToken)(f.getStandardTokenType(m));if(I)L?S=f.getStartOffset(m):(S=f.getStartOffset(m),E=f.getEndOffset(m));else if(c&&r&&L&&S!==E){const R=b.BracketsUtils.findPrevBracketInRange(r.reversedRegex,g,p,S,E);if(R)return this._toFoundBracket(c,R)}L=I}if(c&&r&&L&&S!==E){const N=b.BracketsUtils.findPrevBracketInRange(r.reversedRegex,g,p,S,E);if(N)return this._toFoundBracket(c,N)}}return null}findNextBracket(s){var d;const l=this.textModel.validatePosition(s);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),((d=this.bracketPairsTree.value)===null||d===void 0?void 0:d.object.getFirstBracketAfter(l))||null;const a=this.textModel.getLineCount();let r=null,c=null,g=null;for(let f=l.lineNumber;f<=a;f++){const _=this.textModel.tokenization.getLineTokens(f),p=_.getCount(),m=this.textModel.getLineContent(f);let S=0,E=0,L=0;if(f===l.lineNumber){S=_.findTokenIndexAtOffset(l.column-1),E=l.column-1,L=l.column-1;const I=_.getLanguageId(S);r!==I&&(r=I,c=this.languageConfigurationService.getLanguageConfiguration(r).brackets,g=this.languageConfigurationService.getLanguageConfiguration(r).bracketsNew)}let N=!0;for(;S<p;S++){const I=_.getLanguageId(S);if(r!==I){if(g&&c&&N&&E!==L){const F=b.BracketsUtils.findNextBracketInRange(c.forwardRegex,f,m,E,L);if(F)return this._toFoundBracket(g,F);N=!1}r=I,c=this.languageConfigurationService.getLanguageConfiguration(r).brackets,g=this.languageConfigurationService.getLanguageConfiguration(r).bracketsNew}const R=!!c&&!(0,w.ignoreBracketsInToken)(_.getStandardTokenType(S));if(R)N||(E=_.getStartOffset(S)),L=_.getEndOffset(S);else if(g&&c&&N&&E!==L){const F=b.BracketsUtils.findNextBracketInRange(c.forwardRegex,f,m,E,L);if(F)return this._toFoundBracket(g,F)}N=R}if(g&&c&&N&&E!==L){const I=b.BracketsUtils.findNextBracketInRange(c.forwardRegex,f,m,E,L);if(I)return this._toFoundBracket(g,I)}}return null}findEnclosingBrackets(s,d){const l=this.textModel.validatePosition(s);if(this.canBuildAST){const E=k.Range.fromPositions(l),L=(0,C.findLast)(this.getBracketPairsInRange(k.Range.fromPositions(l,l)),N=>N.closingBracketRange!==void 0&&N.range.strictContainsRange(E));return L?[L.openingBracketRange,L.closingBracketRange]:null}const a=n(d),r=this.textModel.getLineCount(),c=new Map;let g=[];const f=(E,L)=>{if(!c.has(E)){const N=[];for(let I=0,R=L?L.brackets.length:0;I<R;I++)N[I]=0;c.set(E,N)}g=c.get(E)};let _=0;const p=(E,L,N,I,R)=>{for(;;){if(a&&++_%100==0&&!a())return i.INSTANCE;const F=b.BracketsUtils.findNextBracketInRange(E.forwardRegex,L,N,I,R);if(!F)break;const O=N.substring(F.startColumn-1,F.endColumn-1).toLowerCase(),x=E.textIsBracket[O];if(x&&(x.isOpen(O)?g[x.index]++:x.isClose(O)&&g[x.index]--,g[x.index]===-1))return this._matchFoundBracket(F,x,!1,a);I=F.endColumn-1}return null};let m=null,S=null;for(let E=l.lineNumber;E<=r;E++){const L=this.textModel.tokenization.getLineTokens(E),N=L.getCount(),I=this.textModel.getLineContent(E);let R=0,F=0,O=0;if(E===l.lineNumber){R=L.findTokenIndexAtOffset(l.column-1),F=l.column-1,O=l.column-1;const M=L.getLanguageId(R);m!==M&&(m=M,S=this.languageConfigurationService.getLanguageConfiguration(m).brackets,f(m,S))}let x=!0;for(;R<N;R++){const M=L.getLanguageId(R);if(m!==M){if(S&&x&&F!==O){const A=p(S,E,I,F,O);if(A)return t(A);x=!1}m=M,S=this.languageConfigurationService.getLanguageConfiguration(m).brackets,f(m,S)}const P=!!S&&!(0,w.ignoreBracketsInToken)(L.getStandardTokenType(R));if(P)x||(F=L.getStartOffset(R)),O=L.getEndOffset(R);else if(S&&x&&F!==O){const A=p(S,E,I,F,O);if(A)return t(A)}x=P}if(S&&x&&F!==O){const M=p(S,E,I,F,O);if(M)return t(M)}}return null}_toFoundBracket(s,d){if(!d)return null;let l=this.textModel.getValueInRange(d);l=l.toLowerCase();const a=s.getBracketInfo(l);return a?{range:d,bracketInfo:a}:null}}e.BracketPairsTextModelPart=h;function u(o,s){return{object:o,dispose:()=>s?.dispose()}}function n(o){if(typeof o>"u")return()=>!0;{const s=Date.now();return()=>Date.now()-s<=o}}class i{constructor(){this._searchCanceledBrand=void 0}}i.INSTANCE=new i;function t(o){return o instanceof i?null:o}}),define(oe[271],se([1,0,6,8,3,46,240,126,270,2]),function(q,e,y,v,k,D,w,b,C,h){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PieceTreeTextBuffer=void 0;class u extends h.Disposable{constructor(i,t,o,s,d,l,a){super(),this._onDidChangeContent=this._register(new y.Emitter),this._BOM=t,this._mightContainNonBasicASCII=!l,this._mightContainRTL=s,this._mightContainUnusualLineTerminators=d,this._pieceTree=new w.PieceTreeBase(i,o,a)}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(i){return this._pieceTree.createSnapshot(i?this._BOM:"")}getOffsetAt(i,t){return this._pieceTree.getOffsetAt(i,t)}getPositionAt(i){return this._pieceTree.getPositionAt(i)}getRangeAt(i,t){const o=i+t,s=this.getPositionAt(i),d=this.getPositionAt(o);return new k.Range(s.lineNumber,s.column,d.lineNumber,d.column)}getValueInRange(i,t=0){if(i.isEmpty())return"";const o=this._getEndOfLine(t);return this._pieceTree.getValueInRange(i,o)}getValueLengthInRange(i,t=0){if(i.isEmpty())return 0;if(i.startLineNumber===i.endLineNumber)return i.endColumn-i.startColumn;const o=this.getOffsetAt(i.startLineNumber,i.startColumn);return this.getOffsetAt(i.endLineNumber,i.endColumn)-o}getCharacterCountInRange(i,t=0){if(this._mightContainNonBasicASCII){let o=0;const s=i.startLineNumber,d=i.endLineNumber;for(let l=s;l<=d;l++){const a=this.getLineContent(l),r=l===s?i.startColumn-1:0,c=l===d?i.endColumn-1:a.length;for(let g=r;g<c;g++)v.isHighSurrogate(a.charCodeAt(g))?(o=o+1,g=g+1):o=o+1}return o+=this._getEndOfLine(t).length*(d-s),o}return this.getValueLengthInRange(i,t)}getLength(){return this._pieceTree.getLength()}getLineCount(){return this._pieceTree.getLineCount()}getLinesContent(){return this._pieceTree.getLinesContent()}getLineContent(i){return this._pieceTree.getLineContent(i)}getLineCharCode(i,t){return this._pieceTree.getLineCharCode(i,t)}getLineLength(i){return this._pieceTree.getLineLength(i)}getLineFirstNonWhitespaceColumn(i){const t=v.firstNonWhitespaceIndex(this.getLineContent(i));return t===-1?0:t+1}getLineLastNonWhitespaceColumn(i){const t=v.lastNonWhitespaceIndex(this.getLineContent(i));return t===-1?0:t+2}_getEndOfLine(i){switch(i){case 1:return` `;case 2:return`\r `;case 0:return this.getEOL();default:throw new Error("Unknown EOL preference")}}setEOL(i){this._pieceTree.setEOL(i)}applyEdits(i,t,o){let s=this._mightContainRTL,d=this._mightContainUnusualLineTerminators,l=this._mightContainNonBasicASCII,a=!0,r=[];for(let S=0;S<i.length;S++){const E=i[S];a&&E._isTracked&&(a=!1);const L=E.range;if(E.text){let O=!0;l||(O=!v.isBasicASCII(E.text),l=O),!s&&O&&(s=v.containsRTL(E.text)),!d&&O&&(d=v.containsUnusualLineTerminators(E.text))}let N="",I=0,R=0,F=0;if(E.text){let O;[I,R,F,O]=(0,b.countEOL)(E.text);const x=this.getEOL();O===0||O===(x===`\r `?2:1)?N=E.text:N=E.text.replace(/\r\n|\r|\n/g,x)}r[S]={sortIndex:S,identifier:E.identifier||null,range:L,rangeOffset:this.getOffsetAt(L.startLineNumber,L.startColumn),rangeLength:this.getValueLengthInRange(L),text:N,eolCount:I,firstLineLength:R,lastLineLength:F,forceMoveMarkers:!!E.forceMoveMarkers,isAutoWhitespaceEdit:E.isAutoWhitespaceEdit||!1}}r.sort(u._sortOpsAscending);let c=!1;for(let S=0,E=r.length-1;S<E;S++){const L=r[S].range.getEndPosition(),N=r[S+1].range.getStartPosition();if(N.isBeforeOrEqual(L)){if(N.isBefore(L))throw new Error("Overlapping ranges are not allowed!");c=!0}}a&&(r=this._reduceOperations(r));const g=o||t?u._getInverseEditRanges(r):[],f=[];if(t)for(let S=0;S<r.length;S++){const E=r[S],L=g[S];if(E.isAutoWhitespaceEdit&&E.range.isEmpty())for(let N=L.startLineNumber;N<=L.endLineNumber;N++){let I="";N===L.startLineNumber&&(I=this.getLineContent(E.range.startLineNumber),v.firstNonWhitespaceIndex(I)!==-1)||f.push({lineNumber:N,oldContent:I})}}let _=null;if(o){let S=0;_=[];for(let E=0;E<r.length;E++){const L=r[E],N=g[E],I=this.getValueInRange(L.range),R=L.rangeOffset+S;S+=L.text.length-I.length,_[E]={sortIndex:L.sortIndex,identifier:L.identifier,range:N,text:I,textChange:new C.TextChange(L.rangeOffset,I,R,L.text)}}c||_.sort((E,L)=>E.sortIndex-L.sortIndex)}this._mightContainRTL=s,this._mightContainUnusualLineTerminators=d,this._mightContainNonBasicASCII=l;const p=this._doApplyEdits(r);let m=null;if(t&&f.length>0){f.sort((S,E)=>E.lineNumber-S.lineNumber),m=[];for(let S=0,E=f.length;S<E;S++){const L=f[S].lineNumber;if(S>0&&f[S-1].lineNumber===L)continue;const N=f[S].oldContent,I=this.getLineContent(L);I.length===0||I===N||v.firstNonWhitespaceIndex(I)!==-1||m.push(L)}}return this._onDidChangeContent.fire(),new D.ApplyEditsResult(_,p,m)}_reduceOperations(i){return i.length<1e3?i:[this._toSingleEditOperation(i)]}_toSingleEditOperation(i){let t=!1;const o=i[0].range,s=i[i.length-1].range,d=new k.Range(o.startLineNumber,o.startColumn,s.endLineNumber,s.endColumn);let l=o.startLineNumber,a=o.startColumn;const r=[];for(let p=0,m=i.length;p<m;p++){const S=i[p],E=S.range;t=t||S.forceMoveMarkers,r.push(this.getValueInRange(new k.Range(l,a,E.startLineNumber,E.startColumn))),S.text.length>0&&r.push(S.text),l=E.endLineNumber,a=E.endColumn}const c=r.join(""),[g,f,_]=(0,b.countEOL)(c);return{sortIndex:0,identifier:i[0].identifier,range:d,rangeOffset:this.getOffsetAt(d.startLineNumber,d.startColumn),rangeLength:this.getValueLengthInRange(d,0),text:c,eolCount:g,firstLineLength:f,lastLineLength:_,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}_doApplyEdits(i){i.sort(u._sortOpsDescending);const t=[];for(let o=0;o<i.length;o++){const s=i[o],d=s.range.startLineNumber,l=s.range.startColumn,a=s.range.endLineNumber,r=s.range.endColumn;if(d===a&&l===r&&s.text.length===0)continue;s.text?(this._pieceTree.delete(s.rangeOffset,s.rangeLength),this._pieceTree.insert(s.rangeOffset,s.text,!0)):this._pieceTree.delete(s.rangeOffset,s.rangeLength);const c=new k.Range(d,l,a,r);t.push({range:c,rangeLength:s.rangeLength,text:s.text,rangeOffset:s.rangeOffset,forceMoveMarkers:s.forceMoveMarkers})}return t}findMatchesLineByLine(i,t,o,s){return this._pieceTree.findMatchesLineByLine(i,t,o,s)}static _getInverseEditRanges(i){const t=[];let o=0,s=0,d=null;for(let l=0,a=i.length;l<a;l++){const r=i[l];let c,g;d?d.range.endLineNumber===r.range.startLineNumber?(c=o,g=s+(r.range.startColumn-d.range.endColumn)):(c=o+(r.range.startLineNumber-d.range.endLineNumber),g=r.range.startColumn):(c=r.range.startLineNumber,g=r.range.startColumn);let f;if(r.text.length>0){const _=r.eolCount+1;_===1?f=new k.Range(c,g,c,g+r.firstLineLength):f=new k.Range(c,g,c+_-1,r.lastLineLength+1)}else f=new k.Range(c,g,c,g);o=f.endLineNumber,s=f.endColumn,t.push(f),d=r}return t}static _sortOpsAscending(i,t){const o=k.Range.compareRangesUsingEnds(i.range,t.range);return o===0?i.sortIndex-t.sortIndex:o}static _sortOpsDescending(i,t){const o=k.Range.compareRangesUsingEnds(i.range,t.range);return o===0?t.sortIndex-i.sortIndex:-o}}e.PieceTreeTextBuffer=u}),define(oe[508],se([1,0,8,240,271]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PieceTreeTextBufferBuilder=e.PieceTreeTextBufferFactory=void 0;class D{constructor(C,h,u,n,i,t,o,s,d){this._chunks=C,this._bom=h,this._cr=u,this._lf=n,this._crlf=i,this._containsRTL=t,this._containsUnusualLineTerminators=o,this._isBasicASCII=s,this._normalizeEOL=d}_getEOL(C){const h=this._cr+this._lf+this._crlf,u=this._cr+this._crlf;return h===0?C===1?` `:`\r `:u>h/2?`\r `:` `}create(C){const h=this._getEOL(C),u=this._chunks;if(this._normalizeEOL&&(h===`\r `&&(this._cr>0||this._lf>0)||h===` `&&(this._cr>0||this._crlf>0)))for(let i=0,t=u.length;i<t;i++){const o=u[i].buffer.replace(/\r\n|\r|\n/g,h),s=(0,v.createLineStartsFast)(o);u[i]=new v.StringBuffer(o,s)}const n=new k.PieceTreeTextBuffer(u,this._bom,h,this._containsRTL,this._containsUnusualLineTerminators,this._isBasicASCII,this._normalizeEOL);return{textBuffer:n,disposable:n}}}e.PieceTreeTextBufferFactory=D;class w{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(C){if(C.length===0)return;this.chunks.length===0&&y.startsWithUTF8BOM(C)&&(this.BOM=y.UTF8_BOM_CHARACTER,C=C.substr(1));const h=C.charCodeAt(C.length-1);h===13||h>=55296&&h<=56319?(this._acceptChunk1(C.substr(0,C.length-1),!1),this._hasPreviousChar=!0,this._previousChar=h):(this._acceptChunk1(C,!1),this._hasPreviousChar=!1,this._previousChar=h)}_acceptChunk1(C,h){!h&&C.length===0||(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+C):this._acceptChunk2(C))}_acceptChunk2(C){const h=(0,v.createLineStarts)(this._tmpLineStarts,C);this.chunks.push(new v.StringBuffer(C,h.lineStarts)),this.cr+=h.cr,this.lf+=h.lf,this.crlf+=h.crlf,this.isBasicASCII&&(this.isBasicASCII=h.isBasicASCII),!this.isBasicASCII&&!this.containsRTL&&(this.containsRTL=y.containsRTL(C)),!this.isBasicASCII&&!this.containsUnusualLineTerminators&&(this.containsUnusualLineTerminators=y.containsUnusualLineTerminators(C))}finish(C=!0){return this._finish(),new D(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,C)}_finish(){if(this.chunks.length===0&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const C=this.chunks[this.chunks.length-1];C.buffer+=String.fromCharCode(this._previousChar);const h=(0,v.createLineStartsFast)(C.buffer);C.lineStarts=h,this._previousChar===13&&this.cr++}}}e.PieceTreeTextBufferBuilder=w}),define(oe[509],se([1,0,122,17]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encodeSemanticTokensDto=void 0;function k(C){for(let h=0,u=C.length;h<u;h+=4){const n=C[h+0],i=C[h+1],t=C[h+2],o=C[h+3];C[h+0]=o,C[h+1]=t,C[h+2]=i,C[h+3]=n}}function D(C){const h=new Uint8Array(C.buffer,C.byteOffset,C.length*4);return v.isLittleEndian()||k(h),y.VSBuffer.wrap(h)}function w(C){const h=new Uint32Array(b(C));let u=0;if(h[u++]=C.id,C.type==="full")h[u++]=1,h[u++]=C.data.length,h.set(C.data,u),u+=C.data.length;else{h[u++]=2,h[u++]=C.deltas.length;for(const n of C.deltas)h[u++]=n.start,h[u++]=n.deleteCount,n.data?(h[u++]=n.data.length,h.set(n.data,u),u+=n.data.length):h[u++]=0}return D(h)}e.encodeSemanticTokensDto=w;function b(C){let h=0;if(h+=1+1,C.type==="full")h+=1+C.data.length;else{h+=1,h+=(1+1+1)*C.deltas.length;for(const u of C.deltas)u.data&&(h+=u.data.length)}return h}}),define(oe[510],se([1,0,6,2]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenizationRegistry=void 0;class k{constructor(){this._map=new Map,this._factories=new Map,this._onDidChange=new y.Emitter,this.onDidChange=this._onDidChange.event,this._colorMap=null}fire(b){this._onDidChange.fire({changedLanguages:b,changedColorMap:!1})}register(b,C){return this._map.set(b,C),this.fire([b]),(0,v.toDisposable)(()=>{this._map.get(b)===C&&(this._map.delete(b),this.fire([b]))})}registerFactory(b,C){var h;(h=this._factories.get(b))===null||h===void 0||h.dispose();const u=new D(this,b,C);return this._factories.set(b,u),(0,v.toDisposable)(()=>{const n=this._factories.get(b);!n||n!==u||(this._factories.delete(b),n.dispose())})}getOrCreate(b){return be(this,void 0,void 0,function*(){const C=this.get(b);if(C)return C;const h=this._factories.get(b);return!h||h.isResolved?null:(yield h.resolve(),this.get(b))})}get(b){return this._map.get(b)||null}isResolved(b){if(this.get(b))return!0;const C=this._factories.get(b);return!!(!C||C.isResolved)}setColorMap(b){this._colorMap=b,this._onDidChange.fire({changedLanguages:Array.from(this._map.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}e.TokenizationRegistry=k;class D extends v.Disposable{constructor(b,C,h){super(),this._registry=b,this._languageId=C,this._factory=h,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}get isResolved(){return this._isResolved}dispose(){this._isDisposed=!0,super.dispose()}resolve(){return be(this,void 0,void 0,function*(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise})}_create(){return be(this,void 0,void 0,function*(){const b=yield Promise.resolve(this._factory.createTokenizationSupport());this._isResolved=!0,b&&!this._isDisposed&&this._register(this._registry.register(this._languageId,b))})}}}),define(oe[28],se([1,0,27,22,3,510]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenizationRegistry=e.InlayHintKind=e.Command=e.FoldingRangeKind=e.SymbolKinds=e.isLocationLink=e.DocumentHighlightKind=e.SignatureHelpTriggerKind=e.InlineCompletionTriggerKind=e.CompletionItemKinds=e.EncodedTokenizationResult=e.TokenizationResult=e.Token=void 0;class w{constructor(r,c,g){this._tokenBrand=void 0,this.offset=r,this.type=c,this.language=g}toString(){return"("+this.offset+", "+this.type+")"}}e.Token=w;class b{constructor(r,c){this._tokenizationResultBrand=void 0,this.tokens=r,this.endState=c}}e.TokenizationResult=b;class C{constructor(r,c){this._encodedTokenizationResultBrand=void 0,this.tokens=r,this.endState=c}}e.EncodedTokenizationResult=C;var h;(function(a){const r=new Map;r.set(0,y.Codicon.symbolMethod),r.set(1,y.Codicon.symbolFunction),r.set(2,y.Codicon.symbolConstructor),r.set(3,y.Codicon.symbolField),r.set(4,y.Codicon.symbolVariable),r.set(5,y.Codicon.symbolClass),r.set(6,y.Codicon.symbolStruct),r.set(7,y.Codicon.symbolInterface),r.set(8,y.Codicon.symbolModule),r.set(9,y.Codicon.symbolProperty),r.set(10,y.Codicon.symbolEvent),r.set(11,y.Codicon.symbolOperator),r.set(12,y.Codicon.symbolUnit),r.set(13,y.Codicon.symbolValue),r.set(15,y.Codicon.symbolEnum),r.set(14,y.Codicon.symbolConstant),r.set(15,y.Codicon.symbolEnum),r.set(16,y.Codicon.symbolEnumMember),r.set(17,y.Codicon.symbolKeyword),r.set(27,y.Codicon.symbolSnippet),r.set(18,y.Codicon.symbolText),r.set(19,y.Codicon.symbolColor),r.set(20,y.Codicon.symbolFile),r.set(21,y.Codicon.symbolReference),r.set(22,y.Codicon.symbolCustomColor),r.set(23,y.Codicon.symbolFolder),r.set(24,y.Codicon.symbolTypeParameter),r.set(25,y.Codicon.account),r.set(26,y.Codicon.issues);function c(_){let p=r.get(_);return p||(console.info("No codicon found for CompletionItemKind "+_),p=y.Codicon.symbolProperty),p}a.toIcon=c;const g=new Map;g.set("method",0),g.set("function",1),g.set("constructor",2),g.set("field",3),g.set("variable",4),g.set("class",5),g.set("struct",6),g.set("interface",7),g.set("module",8),g.set("property",9),g.set("event",10),g.set("operator",11),g.set("unit",12),g.set("value",13),g.set("constant",14),g.set("enum",15),g.set("enum-member",16),g.set("enumMember",16),g.set("keyword",17),g.set("snippet",27),g.set("text",18),g.set("color",19),g.set("file",20),g.set("reference",21),g.set("customcolor",22),g.set("folder",23),g.set("type-parameter",24),g.set("typeParameter",24),g.set("account",25),g.set("issue",26);function f(_,p){let m=g.get(_);return typeof m>"u"&&!p&&(m=9),m}a.fromString=f})(h=e.CompletionItemKinds||(e.CompletionItemKinds={}));var u;(function(a){a[a.Automatic=0]="Automatic",a[a.Explicit=1]="Explicit"})(u=e.InlineCompletionTriggerKind||(e.InlineCompletionTriggerKind={}));var n;(function(a){a[a.Invoke=1]="Invoke",a[a.TriggerCharacter=2]="TriggerCharacter",a[a.ContentChange=3]="ContentChange"})(n=e.SignatureHelpTriggerKind||(e.SignatureHelpTriggerKind={}));var i;(function(a){a[a.Text=0]="Text",a[a.Read=1]="Read",a[a.Write=2]="Write"})(i=e.DocumentHighlightKind||(e.DocumentHighlightKind={}));function t(a){return a&&v.URI.isUri(a.uri)&&k.Range.isIRange(a.range)&&(k.Range.isIRange(a.originSelectionRange)||k.Range.isIRange(a.targetSelectionRange))}e.isLocationLink=t;var o;(function(a){const r=new Map;r.set(0,y.Codicon.symbolFile),r.set(1,y.Codicon.symbolModule),r.set(2,y.Codicon.symbolNamespace),r.set(3,y.Codicon.symbolPackage),r.set(4,y.Codicon.symbolClass),r.set(5,y.Codicon.symbolMethod),r.set(6,y.Codicon.symbolProperty),r.set(7,y.Codicon.symbolField),r.set(8,y.Codicon.symbolConstructor),r.set(9,y.Codicon.symbolEnum),r.set(10,y.Codicon.symbolInterface),r.set(11,y.Codicon.symbolFunction),r.set(12,y.Codicon.symbolVariable),r.set(13,y.Codicon.symbolConstant),r.set(14,y.Codicon.symbolString),r.set(15,y.Codicon.symbolNumber),r.set(16,y.Codicon.symbolBoolean),r.set(17,y.Codicon.symbolArray),r.set(18,y.Codicon.symbolObject),r.set(19,y.Codicon.symbolKey),r.set(20,y.Codicon.symbolNull),r.set(21,y.Codicon.symbolEnumMember),r.set(22,y.Codicon.symbolStruct),r.set(23,y.Codicon.symbolEvent),r.set(24,y.Codicon.symbolOperator),r.set(25,y.Codicon.symbolTypeParameter);function c(g){let f=r.get(g);return f||(console.info("No codicon found for SymbolKind "+g),f=y.Codicon.symbolProperty),f}a.toIcon=c})(o=e.SymbolKinds||(e.SymbolKinds={}));class s{constructor(r){this.value=r}}e.FoldingRangeKind=s,s.Comment=new s("comment"),s.Imports=new s("imports"),s.Region=new s("region");var d;(function(a){function r(c){return!c||typeof c!="object"?!1:typeof c.id=="string"&&typeof c.title=="string"}a.is=r})(d=e.Command||(e.Command={}));var l;(function(a){a[a.Type=1]="Type",a[a.Parameter=2]="Parameter"})(l=e.InlayHintKind||(e.InlayHintKind={})),e.TokenizationRegistry=new D.TokenizationRegistry}),define(oe[136],se([1,0,28]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.nullTokenizeEncoded=e.nullTokenize=e.NullState=void 0,e.NullState=new class{clone(){return this}equals(D){return this===D}};function v(D,w){return new y.TokenizationResult([new y.Token(0,"",D)],w)}e.nullTokenize=v;function k(D,w){const b=new Uint32Array(2);return b[0]=0,b[1]=(D<<0|0|0|32768|2<<24)>>>0,new y.EncodedTokenizationResult(b,w===null?e.NullState:w)}e.nullTokenizeEncoded=k}),define(oe[272],se([1,0,8,82,28,136]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._tokenizeToString=e.tokenizeLineToHTML=e.tokenizeToString=void 0;const w={getInitialState:()=>D.NullState,tokenizeEncoded:(u,n,i)=>(0,D.nullTokenizeEncoded)(0,i)};function b(u,n,i){return be(this,void 0,void 0,function*(){if(!i)return h(n,u.languageIdCodec,w);const t=yield k.TokenizationRegistry.getOrCreate(i);return h(n,u.languageIdCodec,t||w)})}e.tokenizeToString=b;function C(u,n,i,t,o,s,d){let l="<div>",a=t,r=0,c=!0;for(let g=0,f=n.getCount();g<f;g++){const _=n.getEndOffset(g);if(_<=t)continue;let p="";for(;a<_&&a<o;a++){const m=u.charCodeAt(a);switch(m){case 9:{let S=s-(a+r)%s;for(r+=S-1;S>0;)d&&c?(p+=" ",c=!1):(p+=" ",c=!0),S--;break}case 60:p+="<",c=!1;break;case 62:p+=">",c=!1;break;case 38:p+="&",c=!1;break;case 0:p+="�",c=!1;break;case 65279:case 8232:case 8233:case 133:p+="\uFFFD",c=!1;break;case 13:p+="​",c=!1;break;case 32:d&&c?(p+=" ",c=!1):(p+=" ",c=!0);break;default:p+=String.fromCharCode(m),c=!1}}if(l+=`<span style="${n.getInlineStyle(g,i)}">${p}</span>`,_>o||a>=o)break}return l+="</div>",l}e.tokenizeLineToHTML=C;function h(u,n,i){let t='<div class="monaco-tokenized-source">';const o=y.splitLines(u);let s=i.getInitialState();for(let d=0,l=o.length;d<l;d++){const a=o[d];d>0&&(t+="<br/>");const r=i.tokenizeEncoded(a,!0,s);v.LineTokens.convertToEndOffset(r.tokens,a.length);const c=new v.LineTokens(r.tokens,a,n).inflate();let g=0;for(let f=0,_=c.getCount();f<_;f++){const p=c.getClassName(f),m=c.getEndOffset(f);t+=`<span class="${p}">${y.escape(a.substring(g,m))}</span>`,g=m}s=r.endState}return t+="</div>",t}e._tokenizeToString=h}),define(oe[511],se([1,0,18,14,82,28,136,2,57,126,430,10,17]),function(q,e,y,v,k,D,w,b,C,h,u,n,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextModelTokenization=e.TokenizationStateStore=void 0;class t{constructor(r){this._default=r,this._store=[]}get(r){return r<this._store.length?this._store[r]:this._default}set(r,c){for(;r>=this._store.length;)this._store[this._store.length]=this._default;this._store[r]=c}delete(r,c){c===0||r>=this._store.length||this._store.splice(r,c)}insert(r,c){if(c===0||r>=this._store.length)return;const g=[];for(let f=0;f<c;f++)g[f]=this._default;this._store=y.arrayInsert(this._store,r,g)}}class o{constructor(r,c){this.tokenizationSupport=r,this.initialState=c,this._lineBeginState=new t(null),this._lineNeedsTokenization=new t(!0),this._firstLineNeedsTokenization=0,this._lineBeginState.set(0,this.initialState)}get invalidLineStartIndex(){return this._firstLineNeedsTokenization}markMustBeTokenized(r){this._lineNeedsTokenization.set(r,!0),this._firstLineNeedsTokenization=Math.min(this._firstLineNeedsTokenization,r)}getBeginState(r){return this._lineBeginState.get(r)}setEndState(r,c,g){if(this._lineNeedsTokenization.set(c,!1),this._firstLineNeedsTokenization=c+1,c===r-1)return;const f=this._lineBeginState.get(c+1);if(f===null||!g.equals(f)){this._lineBeginState.set(c+1,g),this.markMustBeTokenized(c+1);return}let _=c+1;for(;_<r&&!this._lineNeedsTokenization.get(_);)_++;this._firstLineNeedsTokenization=_}applyEdits(r,c){this.markMustBeTokenized(r.startLineNumber-1),this._lineBeginState.delete(r.startLineNumber,r.endLineNumber-r.startLineNumber),this._lineNeedsTokenization.delete(r.startLineNumber,r.endLineNumber-r.startLineNumber),this._lineBeginState.insert(r.startLineNumber,c),this._lineNeedsTokenization.insert(r.startLineNumber,c)}}e.TokenizationStateStore=o;class s extends b.Disposable{constructor(r,c,g){super(),this._textModel=r,this._tokenizationPart=c,this._languageIdCodec=g,this._isScheduled=!1,this._isDisposed=!1,this._tokenizationStateStore=null,this._register(D.TokenizationRegistry.onDidChange(f=>{const _=this._textModel.getLanguageId();f.changedLanguages.indexOf(_)!==-1&&(this._resetTokenizationState(),this._tokenizationPart.clearTokens())})),this._resetTokenizationState()}dispose(){this._isDisposed=!0,super.dispose()}handleDidChangeContent(r){if(r.isFlush){this._resetTokenizationState();return}if(this._tokenizationStateStore)for(let c=0,g=r.changes.length;c<g;c++){const f=r.changes[c],[_]=(0,h.countEOL)(f.text);this._tokenizationStateStore.applyEdits(f.range,_)}this._beginBackgroundTokenization()}handleDidChangeAttached(){this._beginBackgroundTokenization()}handleDidChangeLanguage(r){this._resetTokenizationState(),this._tokenizationPart.clearTokens()}_resetTokenizationState(){const[r,c]=d(this._textModel,this._tokenizationPart);r&&c?this._tokenizationStateStore=new o(r,c):this._tokenizationStateStore=null,this._beginBackgroundTokenization()}_beginBackgroundTokenization(){this._isScheduled||!this._textModel.isAttachedToEditor()||!this._hasLinesToTokenize()||(this._isScheduled=!0,(0,n.runWhenIdle)(r=>{this._isScheduled=!1,this._backgroundTokenizeWithDeadline(r)}))}_backgroundTokenizeWithDeadline(r){const c=Date.now()+r.timeRemaining(),g=()=>{this._isDisposed||!this._textModel.isAttachedToEditor()||!this._hasLinesToTokenize()||(this._backgroundTokenizeForAtLeast1ms(),Date.now()<c?(0,i.setTimeout0)(g):this._beginBackgroundTokenization())};g()}_backgroundTokenizeForAtLeast1ms(){const r=this._textModel.getLineCount(),c=new u.ContiguousMultilineTokensBuilder,g=C.StopWatch.create(!1);do if(g.elapsed()>1||this._tokenizeOneInvalidLine(c)>=r)break;while(this._hasLinesToTokenize());this._tokenizationPart.setTokens(c.finalize(),this._isTokenizationComplete())}tokenizeViewport(r,c){const g=new u.ContiguousMultilineTokensBuilder;this._tokenizeViewport(g,r,c),this._tokenizationPart.setTokens(g.finalize(),this._isTokenizationComplete())}reset(){this._resetTokenizationState(),this._tokenizationPart.clearTokens()}forceTokenization(r){const c=new u.ContiguousMultilineTokensBuilder;this._updateTokensUntilLine(c,r),this._tokenizationPart.setTokens(c.finalize(),this._isTokenizationComplete())}getTokenTypeIfInsertingCharacter(r,c){if(!this._tokenizationStateStore)return 0;this.forceTokenization(r.lineNumber);const g=this._tokenizationStateStore.getBeginState(r.lineNumber-1);if(!g)return 0;const f=this._textModel.getLanguageId(),_=this._textModel.getLineContent(r.lineNumber),p=_.substring(0,r.column-1)+c+_.substring(r.column-1),m=l(this._languageIdCodec,f,this._tokenizationStateStore.tokenizationSupport,p,!0,g),S=new k.LineTokens(m.tokens,p,this._languageIdCodec);if(S.getCount()===0)return 0;const E=S.findTokenIndexAtOffset(r.column-1);return S.getStandardTokenType(E)}tokenizeLineWithEdit(r,c,g){const f=r.lineNumber,_=r.column;if(!this._tokenizationStateStore)return null;this.forceTokenization(f);const p=this._tokenizationStateStore.getBeginState(f-1);if(!p)return null;const m=this._textModel.getLineContent(f),S=m.substring(0,_-1)+g+m.substring(_-1+c),E=this._textModel.getLanguageIdAtPosition(f,0),L=l(this._languageIdCodec,E,this._tokenizationStateStore.tokenizationSupport,S,!0,p);return new k.LineTokens(L.tokens,S,this._languageIdCodec)}isCheapToTokenize(r){if(!this._tokenizationStateStore)return!0;const c=this._tokenizationStateStore.invalidLineStartIndex+1;return r>c?!1:r<c||this._textModel.getLineLength(r)<2048}_hasLinesToTokenize(){return this._tokenizationStateStore?this._tokenizationStateStore.invalidLineStartIndex<this._textModel.getLineCount():!1}_isTokenizationComplete(){return this._tokenizationStateStore?this._tokenizationStateStore.invalidLineStartIndex>=this._textModel.getLineCount():!1}_tokenizeOneInvalidLine(r){if(!this._tokenizationStateStore||!this._hasLinesToTokenize())return this._textModel.getLineCount()+1;const c=this._tokenizationStateStore.invalidLineStartIndex+1;return this._updateTokensUntilLine(r,c),c}_updateTokensUntilLine(r,c){if(!this._tokenizationStateStore)return;const g=this._textModel.getLanguageId(),f=this._textModel.getLineCount(),_=c-1;for(let p=this._tokenizationStateStore.invalidLineStartIndex;p<=_;p++){const m=this._textModel.getLineContent(p+1),S=this._tokenizationStateStore.getBeginState(p),E=l(this._languageIdCodec,g,this._tokenizationStateStore.tokenizationSupport,m,!0,S);r.add(p+1,E.tokens),this._tokenizationStateStore.setEndState(f,p,E.endState),p=this._tokenizationStateStore.invalidLineStartIndex-1}}_tokenizeViewport(r,c,g){if(!this._tokenizationStateStore||g<=this._tokenizationStateStore.invalidLineStartIndex)return;if(c<=this._tokenizationStateStore.invalidLineStartIndex){this._updateTokensUntilLine(r,g);return}let f=this._textModel.getLineFirstNonWhitespaceColumn(c);const _=[];let p=null;for(let E=c-1;f>1&&E>=1;E--){const L=this._textModel.getLineFirstNonWhitespaceColumn(E);if(L!==0&&L<f&&(_.push(this._textModel.getLineContent(E)),f=L,p=this._tokenizationStateStore.getBeginState(E-1),p))break}p||(p=this._tokenizationStateStore.initialState);const m=this._textModel.getLanguageId();let S=p;for(let E=_.length-1;E>=0;E--)S=l(this._languageIdCodec,m,this._tokenizationStateStore.tokenizationSupport,_[E],!1,S).endState;for(let E=c;E<=g;E++){const L=this._textModel.getLineContent(E),N=l(this._languageIdCodec,m,this._tokenizationStateStore.tokenizationSupport,L,!0,S);r.add(E,N.tokens),this._tokenizationStateStore.markMustBeTokenized(E-1),S=N.endState}}}e.TextModelTokenization=s;function d(a,r){if(a.isTooLargeForTokenization())return[null,null];const c=D.TokenizationRegistry.get(r.getLanguageId());if(!c)return[null,null];let g;try{g=c.getInitialState()}catch(f){return(0,v.onUnexpectedError)(f),[null,null]}return[c,g]}function l(a,r,c,g,f,_){let p=null;if(c)try{p=c.tokenizeEncoded(g,f,_.clone())}catch(m){(0,v.onUnexpectedError)(m)}return p||(p=(0,w.nullTokenizeEncoded)(a.encodeLanguageId(r),_)),k.LineTokens.convertToEndOffset(p.tokens,g.length),p}}),define(oe[512],se([1,0,6,11,128,239,511,432,434]),function(q,e,y,v,k,D,w,b,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenizationTextModelPart=void 0;class h extends D.TextModelPart{constructor(n,i,t,o,s){super(),this._languageService=n,this._languageConfigurationService=i,this._textModel=t,this.bracketPairsTextModelPart=o,this._languageId=s,this._onDidChangeLanguage=this._register(new y.Emitter),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new y.Emitter),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new y.Emitter),this.onDidChangeTokens=this._onDidChangeTokens.event,this._backgroundTokenizationState=0,this._onBackgroundTokenizationStateChanged=this._register(new y.Emitter),this._tokens=new b.ContiguousTokensStore(this._languageService.languageIdCodec),this._semanticTokens=new C.SparseTokensStore(this._languageService.languageIdCodec),this._tokenization=new w.TextModelTokenization(t,this,this._languageService.languageIdCodec),this._languageRegistryListener=this._languageConfigurationService.onDidChange(d=>{d.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})})}acceptEdit(n,i,t,o,s){this._tokens.acceptEdit(n,t,o),this._semanticTokens.acceptEdit(n,t,o,s,i.length>0?i.charCodeAt(0):0)}handleDidChangeAttached(){this._tokenization.handleDidChangeAttached()}flush(){this._tokens.flush(),this._semanticTokens.flush()}handleDidChangeContent(n){this._tokenization.handleDidChangeContent(n)}dispose(){this._languageRegistryListener.dispose(),this._tokenization.dispose(),super.dispose()}get backgroundTokenizationState(){return this._backgroundTokenizationState}handleTokenizationProgress(n){if(this._backgroundTokenizationState===2)return;const i=n?2:1;this._backgroundTokenizationState!==i&&(this._backgroundTokenizationState=i,this.bracketPairsTextModelPart.handleDidChangeBackgroundTokenizationState(),this._onBackgroundTokenizationStateChanged.fire())}setTokens(n,i=!1){if(n.length!==0){const t=[];for(let o=0,s=n.length;o<s;o++){const d=n[o];let l=0,a=0,r=!1;for(let c=d.startLineNumber;c<=d.endLineNumber;c++)r?(this._tokens.setTokens(this._languageId,c-1,this._textModel.getLineLength(c),d.getLineTokens(c),!1),a=c):this._tokens.setTokens(this._languageId,c-1,this._textModel.getLineLength(c),d.getLineTokens(c),!0)&&(r=!0,l=c,a=c);r&&t.push({fromLineNumber:l,toLineNumber:a})}t.length>0&&this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:!1,ranges:t})}this.handleTokenizationProgress(i)}setSemanticTokens(n,i){this._semanticTokens.set(n,i),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:n!==null,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}hasCompleteSemanticTokens(){return this._semanticTokens.isComplete()}hasSomeSemanticTokens(){return!this._semanticTokens.isEmpty()}setPartialSemanticTokens(n,i){if(this.hasCompleteSemanticTokens())return;const t=this._textModel.validateRange(this._semanticTokens.setPartial(n,i));this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:!0,ranges:[{fromLineNumber:t.startLineNumber,toLineNumber:t.endLineNumber}]})}tokenizeViewport(n,i){n=Math.max(1,n),i=Math.min(this._textModel.getLineCount(),i),this._tokenization.tokenizeViewport(n,i)}clearTokens(){this._tokens.flush(),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!0,semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}_emitModelTokensChangedEvent(n){this._textModel._isDisposing()||(this.bracketPairsTextModelPart.handleDidChangeTokens(n),this._onDidChangeTokens.fire(n))}resetTokenization(){this._tokenization.reset()}forceTokenization(n){if(n<1||n>this._textModel.getLineCount())throw new Error("Illegal value for lineNumber");this._tokenization.forceTokenization(n)}isCheapToTokenize(n){return this._tokenization.isCheapToTokenize(n)}tokenizeIfCheap(n){this.isCheapToTokenize(n)&&this.forceTokenization(n)}getLineTokens(n){if(n<1||n>this._textModel.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(n)}_getLineTokens(n){const i=this._textModel.getLineContent(n),t=this._tokens.getTokens(this._languageId,n-1,i);return this._semanticTokens.addSparseTokens(n,t)}getTokenTypeIfInsertingCharacter(n,i,t){const o=this._textModel.validatePosition(new v.Position(n,i));return this._tokenization.getTokenTypeIfInsertingCharacter(o,t)}tokenizeLineWithEdit(n,i,t){const o=this._textModel.validatePosition(n);return this._tokenization.tokenizeLineWithEdit(o,i,t)}getLanguageConfiguration(n){return this._languageConfigurationService.getLanguageConfiguration(n)}getWordAtPosition(n){this.assertNotDisposed();const i=this._textModel.validatePosition(n),t=this._textModel.getLineContent(i.lineNumber),o=this._getLineTokens(i.lineNumber),s=o.findTokenIndexAtOffset(i.column-1),[d,l]=h._findLanguageBoundaries(o,s),a=(0,k.getWordAtText)(i.column,this.getLanguageConfiguration(o.getLanguageId(s)).getWordDefinition(),t.substring(d,l),d);if(a&&a.startColumn<=n.column&&n.column<=a.endColumn)return a;if(s>0&&d===i.column-1){const[r,c]=h._findLanguageBoundaries(o,s-1),g=(0,k.getWordAtText)(i.column,this.getLanguageConfiguration(o.getLanguageId(s-1)).getWordDefinition(),t.substring(r,c),r);if(g&&g.startColumn<=n.column&&n.column<=g.endColumn)return g}return null}static _findLanguageBoundaries(n,i){const t=n.getLanguageId(i);let o=0;for(let d=i;d>=0&&n.getLanguageId(d)===t;d--)o=n.getStartOffset(d);let s=n.getLineContent().length;for(let d=i,l=n.getCount();d<l&&n.getLanguageId(d)===t;d++)s=n.getEndOffset(d);return[o,s]}getWordUntilPosition(n){const i=this.getWordAtPosition(n);return i?{word:i.word.substr(0,n.column-i.startColumn),startColumn:i.startColumn,endColumn:n.column}:{word:"",startColumn:n.column,endColumn:n.column}}getLanguageId(){return this._languageId}getLanguageIdAtPosition(n,i){const t=this._textModel.validatePosition(new v.Position(n,i)),o=this.getLineTokens(t.lineNumber);return o.getLanguageId(o.findTokenIndexAtOffset(t.column-1))}setLanguageId(n){if(this._languageId===n)return;const i={oldLanguage:this._languageId,newLanguage:n};this._languageId=n,this.bracketPairsTextModelPart.handleDidChangeLanguage(i),this._tokenization.handleDidChangeLanguage(i),this._onDidChangeLanguage.fire(i),this._onDidChangeLanguageConfiguration.fire({})}}e.TokenizationTextModelPart=h}),define(oe[273],se([1,0,21,6,59,22,11,3,23,28,159]),function(q,e,y,v,k,D,w,b,C,h,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createMonacoBaseAPI=e.KeyMod=void 0;class n{static chord(o,s){return(0,k.KeyChord)(o,s)}}e.KeyMod=n,n.CtrlCmd=2048,n.Shift=1024,n.Alt=512,n.WinCtrl=256;function i(){return{editor:void 0,languages:void 0,CancellationTokenSource:y.CancellationTokenSource,Emitter:v.Emitter,KeyCode:u.KeyCode,KeyMod:n,Position:w.Position,Range:b.Range,Selection:C.Selection,SelectionDirection:u.SelectionDirection,MarkerSeverity:u.MarkerSeverity,MarkerTag:u.MarkerTag,Uri:D.URI,Token:h.Token}}e.createMonacoBaseAPI=i}),define(oe[513],se([1,0,147,17,22,11,3,409,427,128,411,417,273,19,57,242]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.create=e.EditorSimpleWorker=e.MirrorModel=void 0;class d extends C.MirrorTextModel{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(c){return this._lines[c-1]}getWordAtPosition(c,g){const f=(0,h.getWordAtText)(c.column,(0,h.ensureValidWordDefinition)(g),this._lines[c.lineNumber-1],0);return f?new w.Range(c.lineNumber,f.startColumn,c.lineNumber,f.endColumn):null}words(c){const g=this._lines,f=this._wordenize.bind(this);let _=0,p="",m=0,S=[];return{*[Symbol.iterator](){for(;;)if(m<S.length){const E=p.substring(S[m].start,S[m].end);m+=1,yield E}else if(_<g.length)p=g[_],S=f(p,c),m=0,_+=1;else break}}}getLineWords(c,g){const f=this._lines[c-1],_=this._wordenize(f,g),p=[];for(const m of _)p.push({word:f.substring(m.start,m.end),startColumn:m.start+1,endColumn:m.end+1});return p}_wordenize(c,g){const f=[];let _;for(g.lastIndex=0;(_=g.exec(c))&&_[0].length!==0;)f.push({start:_.index,end:_.index+_[0].length});return f}getValueInRange(c){if(c=this._validateRange(c),c.startLineNumber===c.endLineNumber)return this._lines[c.startLineNumber-1].substring(c.startColumn-1,c.endColumn-1);const g=this._eol,f=c.startLineNumber-1,_=c.endLineNumber-1,p=[];p.push(this._lines[f].substring(c.startColumn-1));for(let m=f+1;m<_;m++)p.push(this._lines[m]);return p.push(this._lines[_].substring(0,c.endColumn-1)),p.join(g)}offsetAt(c){return c=this._validatePosition(c),this._ensureLineStarts(),this._lineStarts.getPrefixSum(c.lineNumber-2)+(c.column-1)}positionAt(c){c=Math.floor(c),c=Math.max(0,c),this._ensureLineStarts();const g=this._lineStarts.getIndexOf(c),f=this._lines[g.index].length;return{lineNumber:1+g.index,column:1+Math.min(g.remainder,f)}}_validateRange(c){const g=this._validatePosition({lineNumber:c.startLineNumber,column:c.startColumn}),f=this._validatePosition({lineNumber:c.endLineNumber,column:c.endColumn});return g.lineNumber!==c.startLineNumber||g.column!==c.startColumn||f.lineNumber!==c.endLineNumber||f.column!==c.endColumn?{startLineNumber:g.lineNumber,startColumn:g.column,endLineNumber:f.lineNumber,endColumn:f.column}:c}_validatePosition(c){if(!D.Position.isIPosition(c))throw new Error("bad position");let{lineNumber:g,column:f}=c,_=!1;if(g<1)g=1,f=1,_=!0;else if(g>this._lines.length)g=this._lines.length,f=this._lines[g-1].length+1,_=!0;else{const p=this._lines[g-1].length+1;f<1?(f=1,_=!0):f>p&&(f=p,_=!0)}return _?{lineNumber:g,column:f}:c}}e.MirrorModel=d;class l{constructor(c,g){this._host=c,this._models=Object.create(null),this._foreignModuleFactory=g,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(c){return this._models[c]}_getModels(){const c=[];return Object.keys(this._models).forEach(g=>c.push(this._models[g])),c}acceptNewModel(c){this._models[c.url]=new d(k.URI.parse(c.url),c.lines,c.EOL,c.versionId)}acceptModelChanged(c,g){this._models[c]&&this._models[c].onEvents(g)}acceptRemovedModel(c){!this._models[c]||delete this._models[c]}computeUnicodeHighlights(c,g,f){return be(this,void 0,void 0,function*(){const _=this._getModel(c);return _?s.UnicodeTextModelHighlighter.computeUnicodeHighlights(_,g,f):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}})}computeDiff(c,g,f,_){return be(this,void 0,void 0,function*(){const p=this._getModel(c),m=this._getModel(g);return!p||!m?null:l.computeDiff(p,m,f,_)})}static computeDiff(c,g,f,_){const p=c.getLinesContent(),m=g.getLinesContent(),S=new b.DiffComputer(p,m,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:f,shouldMakePrettyDiff:!0,maxComputationTime:_}).computeDiff(),E=S.changes.length>0?!1:this._modelsAreIdentical(c,g);return{quitEarly:S.quitEarly,identical:E,changes:S.changes}}static _modelsAreIdentical(c,g){const f=c.getLineCount(),_=g.getLineCount();if(f!==_)return!1;for(let p=1;p<=f;p++){const m=c.getLineContent(p),S=g.getLineContent(p);if(m!==S)return!1}return!0}computeMoreMinimalEdits(c,g){return be(this,void 0,void 0,function*(){const f=this._getModel(c);if(!f)return g;const _=[];let p;g=g.slice(0).sort((m,S)=>{if(m.range&&S.range)return w.Range.compareRangesUsingStarts(m.range,S.range);const E=m.range?0:1,L=S.range?0:1;return E-L});for(let{range:m,text:S,eol:E}of g){if(typeof E=="number"&&(p=E),w.Range.isEmpty(m)&&!S)continue;const L=f.getValueInRange(m);if(S=S.replace(/\r\n|\n|\r/g,f.eol),L===S)continue;if(Math.max(S.length,L.length)>l._diffLimit){_.push({range:m,text:S});continue}const N=(0,y.stringDiff)(L,S,!1),I=f.offsetAt(w.Range.lift(m).getStartPosition());for(const R of N){const F=f.positionAt(I+R.originalStart),O=f.positionAt(I+R.originalStart+R.originalLength),x={text:S.substr(R.modifiedStart,R.modifiedLength),range:{startLineNumber:F.lineNumber,startColumn:F.column,endLineNumber:O.lineNumber,endColumn:O.column}};f.getValueInRange(x.range)!==x.text&&_.push(x)}}return typeof p=="number"&&_.push({eol:p,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),_})}computeLinks(c){return be(this,void 0,void 0,function*(){const g=this._getModel(c);return g?(0,u.computeLinks)(g):null})}textualSuggest(c,g,f,_){return be(this,void 0,void 0,function*(){const p=new o.StopWatch(!0),m=new RegExp(f,_),S=new Set;e:for(const E of c){const L=this._getModel(E);if(L){for(const N of L.words(m))if(!(N===g||!isNaN(Number(N)))&&(S.add(N),S.size>l._suggestionsLimit))break e}}return{words:Array.from(S),duration:p.elapsed()}})}computeWordRanges(c,g,f,_){return be(this,void 0,void 0,function*(){const p=this._getModel(c);if(!p)return Object.create(null);const m=new RegExp(f,_),S=Object.create(null);for(let E=g.startLineNumber;E<g.endLineNumber;E++){const L=p.getLineWords(E,m);for(const N of L){if(!isNaN(Number(N.word)))continue;let I=S[N.word];I||(I=[],S[N.word]=I),I.push({startLineNumber:E,startColumn:N.startColumn,endLineNumber:E,endColumn:N.endColumn})}}return S})}navigateValueSet(c,g,f,_,p){return be(this,void 0,void 0,function*(){const m=this._getModel(c);if(!m)return null;const S=new RegExp(_,p);g.startColumn===g.endColumn&&(g={startLineNumber:g.startLineNumber,startColumn:g.startColumn,endLineNumber:g.endLineNumber,endColumn:g.endColumn+1});const E=m.getValueInRange(g),L=m.getWordAtPosition({lineNumber:g.startLineNumber,column:g.startColumn},S);if(!L)return null;const N=m.getValueInRange(L);return n.BasicInplaceReplace.INSTANCE.navigateValueSet(g,E,L,N,f)})}loadForeignModule(c,g,f){const _=(m,S)=>this._host.fhr(m,S),p={host:t.createProxyObject(f,_),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(p,g),Promise.resolve(t.getAllMethodNames(this._foreignModule))):new Promise((m,S)=>{q([c],E=>{this._foreignModule=E.create(p,g),m(t.getAllMethodNames(this._foreignModule))},S)})}fmr(c,g){if(!this._foreignModule||typeof this._foreignModule[c]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+c));try{return Promise.resolve(this._foreignModule[c].apply(this._foreignModule,g))}catch(f){return Promise.reject(f)}}}e.EditorSimpleWorker=l,l._diffLimit=1e5,l._suggestionsLimit=1e4;function a(r){return new l(r,null)}e.create=a,typeof importScripts=="function"&&(v.globals.monaco=(0,i.createMonacoBaseAPI)())}),define(oe[114],se([1,0,8,91,130,441]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.renderViewLine2=e.RenderLineOutput2=e.renderViewLine=e.RenderLineOutput=e.CharacterMapping=e.DomPosition=e.RenderLineInput=e.LineRange=void 0;class w{constructor(m,S){this.startOffset=m,this.endOffset=S}equals(m){return this.startOffset===m.startOffset&&this.endOffset===m.endOffset}}e.LineRange=w;class b{constructor(m,S,E,L,N,I,R,F,O,x,M,P,A,B,K,T,ee,J,$){this.useMonospaceOptimizations=m,this.canUseHalfwidthRightwardsArrow=S,this.lineContent=E,this.continuesWithWrappedLine=L,this.isBasicASCII=N,this.containsRTL=I,this.fauxIndentLength=R,this.lineTokens=F,this.lineDecorations=O.sort(k.LineDecoration.compare),this.tabSize=x,this.startVisibleColumn=M,this.spaceWidth=P,this.stopRenderingLineAfter=K,this.renderWhitespace=T==="all"?4:T==="boundary"?1:T==="selection"?2:T==="trailing"?3:0,this.renderControlCharacters=ee,this.fontLigatures=J,this.selectionsOnLine=$&&$.sort((te,Z)=>te.startOffset<Z.startOffset?-1:1);const j=Math.abs(B-P),G=Math.abs(A-P);j<G?(this.renderSpaceWidth=B,this.renderSpaceCharCode=11825):(this.renderSpaceWidth=A,this.renderSpaceCharCode=183)}sameSelection(m){if(this.selectionsOnLine===null)return m===null;if(m===null||m.length!==this.selectionsOnLine.length)return!1;for(let S=0;S<this.selectionsOnLine.length;S++)if(!this.selectionsOnLine[S].equals(m[S]))return!1;return!0}equals(m){return this.useMonospaceOptimizations===m.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===m.canUseHalfwidthRightwardsArrow&&this.lineContent===m.lineContent&&this.continuesWithWrappedLine===m.continuesWithWrappedLine&&this.isBasicASCII===m.isBasicASCII&&this.containsRTL===m.containsRTL&&this.fauxIndentLength===m.fauxIndentLength&&this.tabSize===m.tabSize&&this.startVisibleColumn===m.startVisibleColumn&&this.spaceWidth===m.spaceWidth&&this.renderSpaceWidth===m.renderSpaceWidth&&this.renderSpaceCharCode===m.renderSpaceCharCode&&this.stopRenderingLineAfter===m.stopRenderingLineAfter&&this.renderWhitespace===m.renderWhitespace&&this.renderControlCharacters===m.renderControlCharacters&&this.fontLigatures===m.fontLigatures&&k.LineDecoration.equalsArr(this.lineDecorations,m.lineDecorations)&&this.lineTokens.equals(m.lineTokens)&&this.sameSelection(m.selectionsOnLine)}}e.RenderLineInput=b;class C{constructor(m,S){this.partIndex=m,this.charIndex=S}}e.DomPosition=C;class h{constructor(m,S){this.length=m,this._data=new Uint32Array(this.length),this._horizontalOffset=new Uint32Array(this.length)}static getPartIndex(m){return(m&4294901760)>>>16}static getCharIndex(m){return(m&65535)>>>0}setColumnInfo(m,S,E,L){const N=(S<<16|E<<0)>>>0;this._data[m-1]=N,this._horizontalOffset[m-1]=L}getHorizontalOffset(m){return this._horizontalOffset.length===0?0:this._horizontalOffset[m-1]}charOffsetToPartData(m){return this.length===0?0:m<0?this._data[0]:m>=this.length?this._data[this.length-1]:this._data[m]}getDomPosition(m){const S=this.charOffsetToPartData(m-1),E=h.getPartIndex(S),L=h.getCharIndex(S);return new C(E,L)}getColumn(m,S){return this.partDataToCharOffset(m.partIndex,S,m.charIndex)+1}partDataToCharOffset(m,S,E){if(this.length===0)return 0;const L=(m<<16|E<<0)>>>0;let N=0,I=this.length-1;for(;N+1<I;){const K=N+I>>>1,T=this._data[K];if(T===L)return K;T>L?I=K:N=K}if(N===I)return N;const R=this._data[N],F=this._data[I];if(R===L)return N;if(F===L)return I;const O=h.getPartIndex(R),x=h.getCharIndex(R),M=h.getPartIndex(F);let P;O!==M?P=S:P=h.getCharIndex(F);const A=E-x,B=P-E;return A<=B?N:I}}e.CharacterMapping=h;class u{constructor(m,S,E){this._renderLineOutputBrand=void 0,this.characterMapping=m,this.containsRTL=S,this.containsForeignElements=E}}e.RenderLineOutput=u;function n(p,m){if(p.lineContent.length===0){if(p.lineDecorations.length>0){m.appendASCIIString("<span>");let S=0,E=0,L=0;for(const I of p.lineDecorations)(I.type===1||I.type===2)&&(m.appendASCIIString('<span class="'),m.appendASCIIString(I.className),m.appendASCIIString('"></span>'),I.type===1&&(L|=1,S++),I.type===2&&(L|=2,E++));m.appendASCIIString("</span>");const N=new h(1,S+E);return N.setColumnInfo(1,S,0,0),new u(N,!1,L)}return m.appendASCIIString("<span><span></span></span>"),new u(new h(0,0),!1,0)}return f(s(p),m)}e.renderViewLine=n;class i{constructor(m,S,E,L){this.characterMapping=m,this.html=S,this.containsRTL=E,this.containsForeignElements=L}}e.RenderLineOutput2=i;function t(p){const m=(0,v.createStringBuilder)(1e4),S=n(p,m);return new i(S.characterMapping,m.build(),S.containsRTL,S.containsForeignElements)}e.renderViewLine2=t;class o{constructor(m,S,E,L,N,I,R,F,O,x,M,P,A,B,K){this.fontIsMonospace=m,this.canUseHalfwidthRightwardsArrow=S,this.lineContent=E,this.len=L,this.isOverflowing=N,this.parts=I,this.containsForeignElements=R,this.fauxIndentLength=F,this.tabSize=O,this.startVisibleColumn=x,this.containsRTL=M,this.spaceWidth=P,this.renderSpaceCharCode=A,this.renderWhitespace=B,this.renderControlCharacters=K}}function s(p){const m=p.lineContent;let S,E;p.stopRenderingLineAfter!==-1&&p.stopRenderingLineAfter<m.length?(S=!0,E=p.stopRenderingLineAfter):(S=!1,E=m.length);let L=d(m,p.containsRTL,p.lineTokens,p.fauxIndentLength,E);p.renderControlCharacters&&!p.isBasicASCII&&(L=r(m,L)),(p.renderWhitespace===4||p.renderWhitespace===1||p.renderWhitespace===2&&p.selectionsOnLine||p.renderWhitespace===3)&&(L=c(p,m,E,L));let N=0;if(p.lineDecorations.length>0){for(let I=0,R=p.lineDecorations.length;I<R;I++){const F=p.lineDecorations[I];F.type===3||F.type===1?N|=1:F.type===2&&(N|=2)}L=g(m,E,L,p.lineDecorations)}return p.containsRTL||(L=l(m,L,!p.isBasicASCII||p.fontLigatures)),new o(p.useMonospaceOptimizations,p.canUseHalfwidthRightwardsArrow,m,E,S,L,N,p.fauxIndentLength,p.tabSize,p.startVisibleColumn,p.containsRTL,p.spaceWidth,p.renderSpaceCharCode,p.renderWhitespace,p.renderControlCharacters)}function d(p,m,S,E,L){const N=[];let I=0;E>0&&(N[I++]=new D.LinePart(E,"",0,!1));let R=E;for(let F=0,O=S.getCount();F<O;F++){const x=S.getEndOffset(F);if(x<=E)continue;const M=S.getClassName(F);if(x>=L){const A=m?y.containsRTL(p.substring(R,L)):!1;N[I++]=new D.LinePart(L,M,0,A);break}const P=m?y.containsRTL(p.substring(R,x)):!1;N[I++]=new D.LinePart(x,M,0,P),R=x}return N}function l(p,m,S){let E=0;const L=[];let N=0;if(S)for(let I=0,R=m.length;I<R;I++){const F=m[I],O=F.endIndex;if(E+50<O){const x=F.type,M=F.metadata,P=F.containsRTL;let A=-1,B=E;for(let K=E;K<O;K++)p.charCodeAt(K)===32&&(A=K),A!==-1&&K-B>=50&&(L[N++]=new D.LinePart(A+1,x,M,P),B=A+1,A=-1);B!==O&&(L[N++]=new D.LinePart(O,x,M,P))}else L[N++]=F;E=O}else for(let I=0,R=m.length;I<R;I++){const F=m[I],O=F.endIndex,x=O-E;if(x>50){const M=F.type,P=F.metadata,A=F.containsRTL,B=Math.ceil(x/50);for(let K=1;K<B;K++){const T=E+K*50;L[N++]=new D.LinePart(T,M,P,A)}L[N++]=new D.LinePart(O,M,P,A)}else L[N++]=F;E=O}return L}function a(p){return p<32?p!==9:p===127||p>=8234&&p<=8238||p>=8294&&p<=8297||p>=8206&&p<=8207||p===1564}function r(p,m){const S=[];let E=new D.LinePart(0,"",0,!1),L=0;for(const N of m){const I=N.endIndex;for(;L<I;L++){const R=p.charCodeAt(L);a(R)&&(L>E.endIndex&&(E=new D.LinePart(L,N.type,N.metadata,N.containsRTL),S.push(E)),E=new D.LinePart(L+1,"mtkcontrol",N.metadata,!1),S.push(E))}L>E.endIndex&&(E=new D.LinePart(I,N.type,N.metadata,N.containsRTL),S.push(E))}return S}function c(p,m,S,E){const L=p.continuesWithWrappedLine,N=p.fauxIndentLength,I=p.tabSize,R=p.startVisibleColumn,F=p.useMonospaceOptimizations,O=p.selectionsOnLine,x=p.renderWhitespace===1,M=p.renderWhitespace===3,P=p.renderSpaceWidth!==p.spaceWidth,A=[];let B=0,K=0,T=E[K].type,ee=E[K].containsRTL,J=E[K].endIndex;const $=E.length;let j=!1,G=y.firstNonWhitespaceIndex(m),te;G===-1?(j=!0,G=S,te=S):te=y.lastNonWhitespaceIndex(m);let Z=!1,X=0,ie=O&&O[X],H=R%I;for(let Y=N;Y<S;Y++){const U=m.charCodeAt(Y);ie&&Y>=ie.endOffset&&(X++,ie=O&&O[X]);let le;if(Y<G||Y>te)le=!0;else if(U===9)le=!0;else if(U===32)if(x)if(Z)le=!0;else{const z=Y+1<S?m.charCodeAt(Y+1):0;le=z===32||z===9}else le=!0;else le=!1;if(le&&O&&(le=!!ie&&ie.startOffset<=Y&&ie.endOffset>Y),le&&M&&(le=j||Y>te),le&&ee&&Y>=G&&Y<=te&&(le=!1),Z){if(!le||!F&&H>=I){if(P){const z=B>0?A[B-1].endIndex:N;for(let Q=z+1;Q<=Y;Q++)A[B++]=new D.LinePart(Q,"mtkw",1,!1)}else A[B++]=new D.LinePart(Y,"mtkw",1,!1);H=H%I}}else(Y===J||le&&Y>N)&&(A[B++]=new D.LinePart(Y,T,0,ee),H=H%I);for(U===9?H=I:y.isFullWidthCharacter(U)?H+=2:H++,Z=le;Y===J&&(K++,K<$);)T=E[K].type,ee=E[K].containsRTL,J=E[K].endIndex}let ae=!1;if(Z)if(L&&x){const Y=S>0?m.charCodeAt(S-1):0,U=S>1?m.charCodeAt(S-2):0;Y===32&&U!==32&&U!==9||(ae=!0)}else ae=!0;if(ae)if(P){const Y=B>0?A[B-1].endIndex:N;for(let U=Y+1;U<=S;U++)A[B++]=new D.LinePart(U,"mtkw",1,!1)}else A[B++]=new D.LinePart(S,"mtkw",1,!1);else A[B++]=new D.LinePart(S,T,0,ee);return A}function g(p,m,S,E){E.sort(k.LineDecoration.compare);const L=k.LineDecorationsNormalizer.normalize(p,E),N=L.length;let I=0;const R=[];let F=0,O=0;for(let M=0,P=S.length;M<P;M++){const A=S[M],B=A.endIndex,K=A.type,T=A.metadata,ee=A.containsRTL;for(;I<N&&L[I].startOffset<B;){const J=L[I];if(J.startOffset>O&&(O=J.startOffset,R[F++]=new D.LinePart(O,K,T,ee)),J.endOffset+1<=B)O=J.endOffset+1,R[F++]=new D.LinePart(O,K+" "+J.className,T|J.metadata,ee),I++;else{O=B,R[F++]=new D.LinePart(O,K+" "+J.className,T|J.metadata,ee);break}}B>O&&(O=B,R[F++]=new D.LinePart(O,K,T,ee))}const x=S[S.length-1].endIndex;if(I<N&&L[I].startOffset===x)for(;I<N&&L[I].startOffset===x;){const M=L[I];R[F++]=new D.LinePart(O,M.className,M.metadata,!1),I++}return R}function f(p,m){const S=p.fontIsMonospace,E=p.canUseHalfwidthRightwardsArrow,L=p.containsForeignElements,N=p.lineContent,I=p.len,R=p.isOverflowing,F=p.parts,O=p.fauxIndentLength,x=p.tabSize,M=p.startVisibleColumn,P=p.containsRTL,A=p.spaceWidth,B=p.renderSpaceCharCode,K=p.renderWhitespace,T=p.renderControlCharacters,ee=new h(I+1,F.length);let J=!1,$=0,j=M,G=0,te=0,Z=0;P?m.appendASCIIString('<span dir="ltr">'):m.appendASCIIString("<span>");for(let X=0,ie=F.length;X<ie;X++){const H=F[X],ae=H.endIndex,Y=H.type,U=H.containsRTL,le=K!==0&&H.isWhitespace(),z=le&&!S&&(Y==="mtkw"||!L),Q=$===ae&&H.isPseudoAfter();if(G=0,m.appendASCIIString("<span "),U&&m.appendASCIIString('style="unicode-bidi:isolate" '),m.appendASCIIString('class="'),m.appendASCIIString(z?"mtkz":Y),m.appendASCII(34),le){let W=0;{let V=$,ne=j;for(;V<ae;V++){const de=(N.charCodeAt(V)===9?x-ne%x:1)|0;W+=de,V>=O&&(ne+=de)}}for(z&&(m.appendASCIIString(' style="width:'),m.appendASCIIString(String(A*W)),m.appendASCIIString('px"')),m.appendASCII(62);$<ae;$++){ee.setColumnInfo($+1,X-Z,G,te),Z=0;const V=N.charCodeAt($);let ne,de;if(V===9){ne=x-j%x|0,de=ne,!E||de>1?m.write1(8594):m.write1(65515);for(let ce=2;ce<=de;ce++)m.write1(160)}else ne=2,de=1,m.write1(B),m.write1(8204);G+=ne,te+=de,$>=O&&(j+=de)}}else for(m.appendASCII(62);$<ae;$++){ee.setColumnInfo($+1,X-Z,G,te),Z=0;const W=N.charCodeAt($);let V=1,ne=1;switch(W){case 9:V=x-j%x,ne=V;for(let de=1;de<=V;de++)m.write1(160);break;case 32:m.write1(160);break;case 60:m.appendASCIIString("<");break;case 62:m.appendASCIIString(">");break;case 38:m.appendASCIIString("&");break;case 0:T?m.write1(9216):m.appendASCIIString("�");break;case 65279:case 8232:case 8233:case 133:m.write1(65533);break;default:y.isFullWidthCharacter(W)&&ne++,T&&W<32?m.write1(9216+W):T&&W===127?m.write1(9249):T&&a(W)?(m.appendASCIIString("[U+"),m.appendASCIIString(_(W)),m.appendASCIIString("]"),V=8,ne=V):m.write1(W)}G+=V,te+=ne,$>=O&&(j+=ne)}Q?Z++:Z=0,$>=I&&!J&&H.isPseudoAfter()&&(J=!0,ee.setColumnInfo($+1,X,G,te)),m.appendASCIIString("</span>")}return J||ee.setColumnInfo(I+1,F.length-1,G,te),R&&m.appendASCIIString("<span>…</span>"),m.appendASCIIString("</span>"),new u(ee,P,L)}function _(p){return p.toString(16).toUpperCase().padStart(4,"0")}}),define(oe[274],se([1,0,6,2,232,28]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MinimapTokensColorTracker=void 0;class w extends v.Disposable{constructor(){super(),this._onDidChange=new y.Emitter,this.onDidChange=this._onDidChange.event,this._updateColorMap(),this._register(D.TokenizationRegistry.onDidChange(C=>{C.changedColorMap&&this._updateColorMap()}))}static getInstance(){return this._INSTANCE||(this._INSTANCE=(0,v.markAsSingleton)(new w)),this._INSTANCE}_updateColorMap(){const C=D.TokenizationRegistry.getColorMap();if(!C){this._colors=[k.RGBA8.Empty],this._backgroundIsLight=!0;return}this._colors=[k.RGBA8.Empty];for(let u=1;u<C.length;u++){const n=C[u].rgba;this._colors[u]=new k.RGBA8(n.r,n.g,n.b,Math.round(n.a*255))}const h=C[2].getRelativeLuminance();this._backgroundIsLight=h>=.5,this._onDidChange.fire(void 0)}getColor(C){return(C<1||C>=this._colors.length)&&(C=2),this._colors[C]}backgroundIsLight(){return this._backgroundIsLight}}e.MinimapTokensColorTracker=w,w._INSTANCE=null}),define(oe[204],se([1,0,6,2]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ModelTokensChangedEvent=e.ModelOptionsChangedEvent=e.ModelContentChangedEvent=e.ModelLanguageConfigurationChangedEvent=e.ModelLanguageChangedEvent=e.ModelDecorationsChangedEvent=e.ReadOnlyEditAttemptEvent=e.CursorStateChangedEvent=e.HiddenAreasChangedEvent=e.ViewZonesChangedEvent=e.ScrollChangedEvent=e.FocusChangedEvent=e.ContentSizeChangedEvent=e.ViewModelEventsCollector=e.ViewModelEventDispatcher=void 0;class k extends v.Disposable{constructor(){super(),this._onEvent=this._register(new y.Emitter),this.onEvent=this._onEvent.event,this._eventHandlers=[],this._viewEventQueue=null,this._isConsumingViewEventQueue=!1,this._collector=null,this._collectorCnt=0,this._outgoingEvents=[]}emitOutgoingEvent(c){this._addOutgoingEvent(c),this._emitOutgoingEvents()}_addOutgoingEvent(c){for(let g=0,f=this._outgoingEvents.length;g<f;g++){const _=this._outgoingEvents[g].kind===c.kind?this._outgoingEvents[g].attemptToMerge(c):null;if(_){this._outgoingEvents[g]=_;return}}this._outgoingEvents.push(c)}_emitOutgoingEvents(){for(;this._outgoingEvents.length>0;){if(this._collector||this._isConsumingViewEventQueue)return;const c=this._outgoingEvents.shift();c.isNoOp()||this._onEvent.fire(c)}}addViewEventHandler(c){for(let g=0,f=this._eventHandlers.length;g<f;g++)this._eventHandlers[g]===c&&console.warn("Detected duplicate listener in ViewEventDispatcher",c);this._eventHandlers.push(c)}removeViewEventHandler(c){for(let g=0;g<this._eventHandlers.length;g++)if(this._eventHandlers[g]===c){this._eventHandlers.splice(g,1);break}}beginEmitViewEvents(){return this._collectorCnt++,this._collectorCnt===1&&(this._collector=new D),this._collector}endEmitViewEvents(){if(this._collectorCnt--,this._collectorCnt===0){const c=this._collector.outgoingEvents,g=this._collector.viewEvents;this._collector=null;for(const f of c)this._addOutgoingEvent(f);g.length>0&&this._emitMany(g)}this._emitOutgoingEvents()}emitSingleViewEvent(c){try{this.beginEmitViewEvents().emitViewEvent(c)}finally{this.endEmitViewEvents()}}_emitMany(c){this._viewEventQueue?this._viewEventQueue=this._viewEventQueue.concat(c):this._viewEventQueue=c,this._isConsumingViewEventQueue||this._consumeViewEventQueue()}_consumeViewEventQueue(){try{this._isConsumingViewEventQueue=!0,this._doConsumeQueue()}finally{this._isConsumingViewEventQueue=!1}}_doConsumeQueue(){for(;this._viewEventQueue;){const c=this._viewEventQueue;this._viewEventQueue=null;const g=this._eventHandlers.slice(0);for(const f of g)f.handleEvents(c)}}}e.ViewModelEventDispatcher=k;class D{constructor(){this.viewEvents=[],this.outgoingEvents=[]}emitViewEvent(c){this.viewEvents.push(c)}emitOutgoingEvent(c){this.outgoingEvents.push(c)}}e.ViewModelEventsCollector=D;class w{constructor(c,g,f,_){this.kind=0,this._oldContentWidth=c,this._oldContentHeight=g,this.contentWidth=f,this.contentHeight=_,this.contentWidthChanged=this._oldContentWidth!==this.contentWidth,this.contentHeightChanged=this._oldContentHeight!==this.contentHeight}isNoOp(){return!this.contentWidthChanged&&!this.contentHeightChanged}attemptToMerge(c){return c.kind!==this.kind?null:new w(this._oldContentWidth,this._oldContentHeight,c.contentWidth,c.contentHeight)}}e.ContentSizeChangedEvent=w;class b{constructor(c,g){this.kind=1,this.oldHasFocus=c,this.hasFocus=g}isNoOp(){return this.oldHasFocus===this.hasFocus}attemptToMerge(c){return c.kind!==this.kind?null:new b(this.oldHasFocus,c.hasFocus)}}e.FocusChangedEvent=b;class C{constructor(c,g,f,_,p,m,S,E){this.kind=2,this._oldScrollWidth=c,this._oldScrollLeft=g,this._oldScrollHeight=f,this._oldScrollTop=_,this.scrollWidth=p,this.scrollLeft=m,this.scrollHeight=S,this.scrollTop=E,this.scrollWidthChanged=this._oldScrollWidth!==this.scrollWidth,this.scrollLeftChanged=this._oldScrollLeft!==this.scrollLeft,this.scrollHeightChanged=this._oldScrollHeight!==this.scrollHeight,this.scrollTopChanged=this._oldScrollTop!==this.scrollTop}isNoOp(){return!this.scrollWidthChanged&&!this.scrollLeftChanged&&!this.scrollHeightChanged&&!this.scrollTopChanged}attemptToMerge(c){return c.kind!==this.kind?null:new C(this._oldScrollWidth,this._oldScrollLeft,this._oldScrollHeight,this._oldScrollTop,c.scrollWidth,c.scrollLeft,c.scrollHeight,c.scrollTop)}}e.ScrollChangedEvent=C;class h{constructor(){this.kind=3}isNoOp(){return!1}attemptToMerge(c){return c.kind!==this.kind?null:this}}e.ViewZonesChangedEvent=h;class u{constructor(){this.kind=4}isNoOp(){return!1}attemptToMerge(c){return c.kind!==this.kind?null:this}}e.HiddenAreasChangedEvent=u;class n{constructor(c,g,f,_,p,m,S){this.kind=6,this.oldSelections=c,this.selections=g,this.oldModelVersionId=f,this.modelVersionId=_,this.source=p,this.reason=m,this.reachedMaxCursorCount=S}static _selectionsAreEqual(c,g){if(!c&&!g)return!0;if(!c||!g)return!1;const f=c.length,_=g.length;if(f!==_)return!1;for(let p=0;p<f;p++)if(!c[p].equalsSelection(g[p]))return!1;return!0}isNoOp(){return n._selectionsAreEqual(this.oldSelections,this.selections)&&this.oldModelVersionId===this.modelVersionId}attemptToMerge(c){return c.kind!==this.kind?null:new n(this.oldSelections,c.selections,this.oldModelVersionId,c.modelVersionId,c.source,c.reason,this.reachedMaxCursorCount||c.reachedMaxCursorCount)}}e.CursorStateChangedEvent=n;class i{constructor(){this.kind=5}isNoOp(){return!1}attemptToMerge(c){return c.kind!==this.kind?null:this}}e.ReadOnlyEditAttemptEvent=i;class t{constructor(c){this.event=c,this.kind=7}isNoOp(){return!1}attemptToMerge(c){return null}}e.ModelDecorationsChangedEvent=t;class o{constructor(c){this.event=c,this.kind=8}isNoOp(){return!1}attemptToMerge(c){return null}}e.ModelLanguageChangedEvent=o;class s{constructor(c){this.event=c,this.kind=9}isNoOp(){return!1}attemptToMerge(c){return null}}e.ModelLanguageConfigurationChangedEvent=s;class d{constructor(c){this.event=c,this.kind=10}isNoOp(){return!1}attemptToMerge(c){return null}}e.ModelContentChangedEvent=d;class l{constructor(c){this.event=c,this.kind=11}isNoOp(){return!1}attemptToMerge(c){return null}}e.ModelOptionsChangedEvent=l;class a{constructor(c){this.event=c,this.kind=12}isNoOp(){return!1}attemptToMerge(c){return null}}e.ModelTokensChangedEvent=a}),define(oe[514],se([1,0,6,2,161,442,74,204]),function(q,e,y,v,k,D,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewLayout=void 0;const C=125;class h{constructor(t,o,s,d){t=t|0,o=o|0,s=s|0,d=d|0,t<0&&(t=0),o<0&&(o=0),s<0&&(s=0),d<0&&(d=0),this.width=t,this.contentWidth=o,this.scrollWidth=Math.max(t,o),this.height=s,this.contentHeight=d,this.scrollHeight=Math.max(s,d)}equals(t){return this.width===t.width&&this.contentWidth===t.contentWidth&&this.height===t.height&&this.contentHeight===t.contentHeight}}class u extends v.Disposable{constructor(t,o){super(),this._onDidContentSizeChange=this._register(new y.Emitter),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._dimensions=new h(0,0,0,0),this._scrollable=this._register(new k.Scrollable({forceIntegerValues:!0,smoothScrollDuration:t,scheduleAtNextAnimationFrame:o})),this.onDidScroll=this._scrollable.onScroll}getScrollable(){return this._scrollable}setSmoothScrollDuration(t){this._scrollable.setSmoothScrollDuration(t)}validateScrollPosition(t){return this._scrollable.validateScrollPosition(t)}getScrollDimensions(){return this._dimensions}setScrollDimensions(t){if(this._dimensions.equals(t))return;const o=this._dimensions;this._dimensions=t,this._scrollable.setScrollDimensions({width:t.width,scrollWidth:t.scrollWidth,height:t.height,scrollHeight:t.scrollHeight},!0);const s=o.contentWidth!==t.contentWidth,d=o.contentHeight!==t.contentHeight;(s||d)&&this._onDidContentSizeChange.fire(new b.ContentSizeChangedEvent(o.contentWidth,o.contentHeight,t.contentWidth,t.contentHeight))}getFutureScrollPosition(){return this._scrollable.getFutureScrollPosition()}getCurrentScrollPosition(){return this._scrollable.getCurrentScrollPosition()}setScrollPositionNow(t){this._scrollable.setScrollPositionNow(t)}setScrollPositionSmooth(t){this._scrollable.setScrollPositionSmooth(t)}}class n extends v.Disposable{constructor(t,o,s){super(),this._configuration=t;const d=this._configuration.options,l=d.get(133),a=d.get(77);this._linesLayout=new D.LinesLayout(o,d.get(61),a.top,a.bottom),this._scrollable=this._register(new u(0,s)),this._configureSmoothScrollDuration(),this._scrollable.setScrollDimensions(new h(l.contentWidth,0,l.height,0)),this.onDidScroll=this._scrollable.onDidScroll,this.onDidContentSizeChange=this._scrollable.onDidContentSizeChange,this._updateHeight()}dispose(){super.dispose()}getScrollable(){return this._scrollable.getScrollable()}onHeightMaybeChanged(){this._updateHeight()}_configureSmoothScrollDuration(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(105)?C:0)}onConfigurationChanged(t){const o=this._configuration.options;if(t.hasChanged(61)&&this._linesLayout.setLineHeight(o.get(61)),t.hasChanged(77)){const s=o.get(77);this._linesLayout.setPadding(s.top,s.bottom)}if(t.hasChanged(133)){const s=o.get(133),d=s.contentWidth,l=s.height,a=this._scrollable.getScrollDimensions(),r=a.contentWidth;this._scrollable.setScrollDimensions(new h(d,a.contentWidth,l,this._getContentHeight(d,l,r)))}else this._updateHeight();t.hasChanged(105)&&this._configureSmoothScrollDuration()}onFlushed(t){this._linesLayout.onFlushed(t)}onLinesDeleted(t,o){this._linesLayout.onLinesDeleted(t,o)}onLinesInserted(t,o){this._linesLayout.onLinesInserted(t,o)}_getHorizontalScrollbarHeight(t,o){const s=this._configuration.options.get(94);return s.horizontal===2||t>=o?0:s.horizontalScrollbarSize}_getContentHeight(t,o,s){const d=this._configuration.options;let l=this._linesLayout.getLinesTotalHeight();return d.get(96)?l+=Math.max(0,o-d.get(61)-d.get(77).bottom):l+=this._getHorizontalScrollbarHeight(t,s),l}_updateHeight(){const t=this._scrollable.getScrollDimensions(),o=t.width,s=t.height,d=t.contentWidth;this._scrollable.setScrollDimensions(new h(o,t.contentWidth,s,this._getContentHeight(o,s,d)))}getCurrentViewport(){const t=this._scrollable.getScrollDimensions(),o=this._scrollable.getCurrentScrollPosition();return new w.Viewport(o.scrollTop,o.scrollLeft,t.width,t.height)}getFutureViewport(){const t=this._scrollable.getScrollDimensions(),o=this._scrollable.getFutureScrollPosition();return new w.Viewport(o.scrollTop,o.scrollLeft,t.width,t.height)}_computeContentWidth(t){const o=this._configuration.options,s=o.get(134),d=o.get(46),l=o.get(133);if(s.isViewportWrapping){const a=o.get(67);return t>l.contentWidth+d.typicalHalfwidthCharacterWidth&&a.enabled&&a.side==="right"?t+l.verticalScrollbarWidth:t}else{const a=o.get(95)*d.typicalHalfwidthCharacterWidth,r=this._linesLayout.getWhitespaceMinWidth();return Math.max(t+a+l.verticalScrollbarWidth,r)}}setMaxLineWidth(t){const o=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new h(o.width,this._computeContentWidth(t),o.height,o.contentHeight)),this._updateHeight()}saveState(){const t=this._scrollable.getFutureScrollPosition(),o=t.scrollTop,s=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(o),d=this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(s);return{scrollTop:o,scrollTopWithoutViewZones:o-d,scrollLeft:t.scrollLeft}}changeWhitespace(t){const o=this._linesLayout.changeWhitespace(t);return o&&this.onHeightMaybeChanged(),o}getVerticalOffsetForLineNumber(t,o=!1){return this._linesLayout.getVerticalOffsetForLineNumber(t,o)}getVerticalOffsetAfterLineNumber(t,o=!1){return this._linesLayout.getVerticalOffsetAfterLineNumber(t,o)}isAfterLines(t){return this._linesLayout.isAfterLines(t)}isInTopPadding(t){return this._linesLayout.isInTopPadding(t)}isInBottomPadding(t){return this._linesLayout.isInBottomPadding(t)}getLineNumberAtVerticalOffset(t){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t)}getWhitespaceAtVerticalOffset(t){return this._linesLayout.getWhitespaceAtVerticalOffset(t)}getLinesViewportData(){const t=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(t.top,t.top+t.height)}getLinesViewportDataAtScrollTop(t){const o=this._scrollable.getScrollDimensions();return t+o.height>o.scrollHeight&&(t=o.scrollHeight-o.height),t<0&&(t=0),this._linesLayout.getLinesViewportData(t,t+o.height)}getWhitespaceViewportData(){const t=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(t.top,t.top+t.height)}getWhitespaces(){return this._linesLayout.getWhitespaces()}getContentWidth(){return this._scrollable.getScrollDimensions().contentWidth}getScrollWidth(){return this._scrollable.getScrollDimensions().scrollWidth}getContentHeight(){return this._scrollable.getScrollDimensions().contentHeight}getScrollHeight(){return this._scrollable.getScrollDimensions().scrollHeight}getCurrentScrollLeft(){return this._scrollable.getCurrentScrollPosition().scrollLeft}getCurrentScrollTop(){return this._scrollable.getCurrentScrollPosition().scrollTop}validateScrollPosition(t){return this._scrollable.validateScrollPosition(t)}setScrollPosition(t,o){o===1?this._scrollable.setScrollPositionNow(t):this._scrollable.setScrollPositionSmooth(t)}deltaScrollNow(t,o){const s=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:s.scrollLeft+t,scrollTop:s.scrollTop+o})}}e.ViewLayout=n}),define(oe[515],se([1,0,6]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColorPickerModel=void 0;class v{constructor(D,w,b){this.presentationIndex=b,this._onColorFlushed=new y.Emitter,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new y.Emitter,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new y.Emitter,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=D,this._color=D,this._colorPresentations=w}get color(){return this._color}set color(D){this._color.equals(D)||(this._color=D,this._onDidChangeColor.fire(D))}get presentation(){return this.colorPresentations[this.presentationIndex]}get colorPresentations(){return this._colorPresentations}set colorPresentations(D){this._colorPresentations=D,this.presentationIndex>D.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(D,w){for(let b=0;b<this.colorPresentations.length;b++)if(w.toLowerCase()===this.colorPresentations[b].label){this.presentationIndex=b,this._onDidChangePresentation.fire(this.presentation);break}}flushColor(){this._onColorFlushed.fire(this._color)}}e.ColorPickerModel=v}),define(oe[516],se([1,0,6,160,105]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getNextFoldLine=e.getPreviousFoldLine=e.getParentFoldLine=e.setCollapseStateForType=e.setCollapseStateForMatchingLines=e.setCollapseStateForRest=e.setCollapseStateAtLevel=e.setCollapseStateUp=e.setCollapseStateLevelsUp=e.setCollapseStateLevelsDown=e.toggleCollapseState=e.FoldingModel=void 0;class D{constructor(a,r){this._updateEventEmitter=new y.Emitter,this.onDidChange=this._updateEventEmitter.event,this._textModel=a,this._decorationProvider=r,this._regions=new v.FoldingRegions(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[]}get regions(){return this._regions}get textModel(){return this._textModel}toggleCollapseState(a){if(!a.length)return;a=a.sort((c,g)=>c.regionIndex-g.regionIndex);const r={};this._decorationProvider.changeDecorations(c=>{let g=0,f=-1,_=-1;const p=m=>{for(;g<m;){const S=this._regions.getEndLineNumber(g),E=this._regions.isCollapsed(g);if(S<=f){const L=this.regions.getSource(g)!==0;c.changeDecorationOptions(this._editorDecorationIds[g],this._decorationProvider.getDecorationOption(E,S<=_,L))}E&&S>_&&(_=S),g++}};for(const m of a){const S=m.regionIndex,E=this._editorDecorationIds[S];if(E&&!r[E]){r[E]=!0,p(S);const L=!this._regions.isCollapsed(S);this._regions.setCollapsed(S,L),f=Math.max(f,this._regions.getEndLineNumber(S))}}p(this._regions.length)}),this._updateEventEmitter.fire({model:this,collapseStateChanged:a})}removeManualRanges(a){const r=new Array,c=g=>{for(const f of a)if(!(f.startLineNumber>g.endLineNumber||g.startLineNumber>f.endLineNumber))return!0;return!1};for(let g=0;g<this._regions.length;g++){const f=this._regions.toFoldRange(g);(f.source===0||!c(f))&&r.push(f)}this.updatePost(v.FoldingRegions.fromFoldRanges(r))}update(a,r=[]){const c=this._currentFoldedOrManualRanges(r),g=v.FoldingRegions.sanitizeAndMerge(a,c,this._textModel.getLineCount());this.updatePost(v.FoldingRegions.fromFoldRanges(g))}updatePost(a){const r=[];let c=-1;for(let g=0,f=a.length;g<f;g++){const _=a.getStartLineNumber(g),p=a.getEndLineNumber(g),m=a.isCollapsed(g),S=a.getSource(g)!==0,E={startLineNumber:_,startColumn:this._textModel.getLineMaxColumn(_),endLineNumber:p,endColumn:this._textModel.getLineMaxColumn(p)+1};r.push({range:E,options:this._decorationProvider.getDecorationOption(m,p<=c,S)}),m&&p>c&&(c=p)}this._decorationProvider.changeDecorations(g=>this._editorDecorationIds=g.deltaDecorations(this._editorDecorationIds,r)),this._regions=a,this._updateEventEmitter.fire({model:this})}_currentFoldedOrManualRanges(a=[]){const r=(g,f)=>{for(const _ of a)if(g<_&&_<=f)return!0;return!1},c=[];for(let g=0,f=this._regions.length;g<f;g++){let _=this.regions.isCollapsed(g);const p=this.regions.getSource(g);if(_||p!==0){const m=this._regions.toFoldRange(g),S=this._textModel.getDecorationRange(this._editorDecorationIds[g]);S&&(_&&(r(S.startLineNumber,S.endLineNumber)||S.endLineNumber-S.startLineNumber!=m.endLineNumber-m.startLineNumber)&&(_=!1),c.push({startLineNumber:S.startLineNumber,endLineNumber:S.endLineNumber,type:m.type,isCollapsed:_,source:p}))}}return c}getMemento(){const a=this._currentFoldedOrManualRanges(),r=[];for(let c=0,g=a.length;c<g;c++){const f=a[c],_=this._getLinesChecksum(f.startLineNumber+1,f.endLineNumber);r.push({startLineNumber:f.startLineNumber,endLineNumber:f.endLineNumber,isCollapsed:f.isCollapsed,source:f.source,checksum:_})}return r.length>0?r:void 0}applyMemento(a){var r,c;if(!Array.isArray(a))return;const g=[],f=this._textModel.getLineCount();for(const p of a){if(p.startLineNumber>=p.endLineNumber||p.startLineNumber<1||p.endLineNumber>f)continue;const m=this._getLinesChecksum(p.startLineNumber+1,p.endLineNumber);(!p.checksum||m===p.checksum)&&g.push({startLineNumber:p.startLineNumber,endLineNumber:p.endLineNumber,type:void 0,isCollapsed:(r=p.isCollapsed)!==null&&r!==void 0?r:!0,source:(c=p.source)!==null&&c!==void 0?c:0})}const _=v.FoldingRegions.sanitizeAndMerge(this._regions,g,f);this.updatePost(v.FoldingRegions.fromFoldRanges(_))}_getLinesChecksum(a,r){return(0,k.hash)(this._textModel.getLineContent(a)+this._textModel.getLineContent(r))%1e6}dispose(){this._decorationProvider.removeDecorations(this._editorDecorationIds)}getAllRegionsAtLine(a,r){const c=[];if(this._regions){let g=this._regions.findRange(a),f=1;for(;g>=0;){const _=this._regions.toRegion(g);(!r||r(_,f))&&c.push(_),f++,g=_.parentIndex}}return c}getRegionAtLine(a){if(this._regions){const r=this._regions.findRange(a);if(r>=0)return this._regions.toRegion(r)}return null}getRegionsInside(a,r){const c=[],g=a?a.regionIndex+1:0,f=a?a.endLineNumber:Number.MAX_VALUE;if(r&&r.length===2){const _=[];for(let p=g,m=this._regions.length;p<m;p++){const S=this._regions.toRegion(p);if(this._regions.getStartLineNumber(p)<f){for(;_.length>0&&!S.containedBy(_[_.length-1]);)_.pop();_.push(S),r(S,_.length)&&c.push(S)}else break}}else for(let _=g,p=this._regions.length;_<p;_++){const m=this._regions.toRegion(_);if(this._regions.getStartLineNumber(_)<f)(!r||r(m))&&c.push(m);else break}return c}}e.FoldingModel=D;function w(l,a,r){const c=[];for(const g of r){const f=l.getRegionAtLine(g);if(f){const _=!f.isCollapsed;if(c.push(f),a>1){const p=l.getRegionsInside(f,(m,S)=>m.isCollapsed!==_&&S<a);c.push(...p)}}}l.toggleCollapseState(c)}e.toggleCollapseState=w;function b(l,a,r=Number.MAX_VALUE,c){const g=[];if(c&&c.length>0)for(const f of c){const _=l.getRegionAtLine(f);if(_&&(_.isCollapsed!==a&&g.push(_),r>1)){const p=l.getRegionsInside(_,(m,S)=>m.isCollapsed!==a&&S<r);g.push(...p)}}else{const f=l.getRegionsInside(null,(_,p)=>_.isCollapsed!==a&&p<r);g.push(...f)}l.toggleCollapseState(g)}e.setCollapseStateLevelsDown=b;function C(l,a,r,c){const g=[];for(const f of c){const _=l.getAllRegionsAtLine(f,(p,m)=>p.isCollapsed!==a&&m<=r);g.push(..._)}l.toggleCollapseState(g)}e.setCollapseStateLevelsUp=C;function h(l,a,r){const c=[];for(const g of r){const f=l.getAllRegionsAtLine(g,_=>_.isCollapsed!==a);f.length>0&&c.push(f[0])}l.toggleCollapseState(c)}e.setCollapseStateUp=h;function u(l,a,r,c){const g=(_,p)=>p===a&&_.isCollapsed!==r&&!c.some(m=>_.containsLine(m)),f=l.getRegionsInside(null,g);l.toggleCollapseState(f)}e.setCollapseStateAtLevel=u;function n(l,a,r){const c=[];for(const _ of r){const p=l.getAllRegionsAtLine(_,void 0);p.length>0&&c.push(p[0])}const g=_=>c.every(p=>!p.containedBy(_)&&!_.containedBy(p))&&_.isCollapsed!==a,f=l.getRegionsInside(null,g);l.toggleCollapseState(f)}e.setCollapseStateForRest=n;function i(l,a,r){const c=l.textModel,g=l.regions,f=[];for(let _=g.length-1;_>=0;_--)if(r!==g.isCollapsed(_)){const p=g.getStartLineNumber(_);a.test(c.getLineContent(p))&&f.push(g.toRegion(_))}l.toggleCollapseState(f)}e.setCollapseStateForMatchingLines=i;function t(l,a,r){const c=l.regions,g=[];for(let f=c.length-1;f>=0;f--)r!==c.isCollapsed(f)&&a===c.getType(f)&&g.push(c.toRegion(f));l.toggleCollapseState(g)}e.setCollapseStateForType=t;function o(l,a){let r=null;const c=a.getRegionAtLine(l);if(c!==null&&(r=c.startLineNumber,l===r)){const g=c.parentIndex;g!==-1?r=a.regions.getStartLineNumber(g):r=null}return r}e.getParentFoldLine=o;function s(l,a){let r=a.getRegionAtLine(l);if(r!==null&&r.startLineNumber===l){if(l!==r.startLineNumber)return r.startLineNumber;{const c=r.parentIndex;let g=0;for(c!==-1&&(g=a.regions.getStartLineNumber(r.parentIndex));r!==null;)if(r.regionIndex>0){if(r=a.regions.toRegion(r.regionIndex-1),r.startLineNumber<=g)return null;if(r.parentIndex===c)return r.startLineNumber}else return null}}else if(a.regions.length>0)for(r=a.regions.toRegion(a.regions.length-1);r!==null;){if(r.startLineNumber<l)return r.startLineNumber;r.regionIndex>0?r=a.regions.toRegion(r.regionIndex-1):r=null}return null}e.getPreviousFoldLine=s;function d(l,a){let r=a.getRegionAtLine(l);if(r!==null&&r.startLineNumber===l){const c=r.parentIndex;let g=0;if(c!==-1)g=a.regions.getEndLineNumber(r.parentIndex);else{if(a.regions.length===0)return null;g=a.regions.getEndLineNumber(a.regions.length-1)}for(;r!==null;)if(r.regionIndex<a.regions.length){if(r=a.regions.toRegion(r.regionIndex+1),r.startLineNumber>=g)return null;if(r.parentIndex===c)return r.startLineNumber}else return null}else if(a.regions.length>0)for(r=a.regions.toRegion(0);r!==null;){if(r.startLineNumber>l)return r.startLineNumber;r.regionIndex<a.regions.length?r=a.regions.toRegion(r.regionIndex+1):r=null}return null}e.getNextFoldLine=d}),define(oe[517],se([1,0,18,6,3,126]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HiddenRangeModel=void 0;class w{constructor(u){this._updateEventEmitter=new v.Emitter,this._hasLineChanges=!1,this._foldingModel=u,this._foldingModelListener=u.onDidChange(n=>this.updateHiddenRanges()),this._hiddenRanges=[],u.regions.length&&this.updateHiddenRanges()}get onDidChange(){return this._updateEventEmitter.event}get hiddenRanges(){return this._hiddenRanges}notifyChangeModelContent(u){this._hiddenRanges.length&&!this._hasLineChanges&&(this._hasLineChanges=u.changes.some(n=>n.range.endLineNumber!==n.range.startLineNumber||(0,D.countEOL)(n.text)[0]!==0))}updateHiddenRanges(){let u=!1;const n=[];let i=0,t=0,o=Number.MAX_VALUE,s=-1;const d=this._foldingModel.regions;for(;i<d.length;i++){if(!d.isCollapsed(i))continue;const l=d.getStartLineNumber(i)+1,a=d.getEndLineNumber(i);o<=l&&a<=s||(!u&&t<this._hiddenRanges.length&&this._hiddenRanges[t].startLineNumber===l&&this._hiddenRanges[t].endLineNumber===a?(n.push(this._hiddenRanges[t]),t++):(u=!0,n.push(new k.Range(l,1,a,1))),o=l,s=a)}(this._hasLineChanges||u||t<this._hiddenRanges.length)&&this.applyHiddenRanges(n)}applyHiddenRanges(u){this._hiddenRanges=u,this._hasLineChanges=!1,this._updateEventEmitter.fire(u)}hasRanges(){return this._hiddenRanges.length>0}isHidden(u){return C(this._hiddenRanges,u)!==null}adjustSelections(u){let n=!1;const i=this._foldingModel.textModel;let t=null;const o=s=>((!t||!b(s,t))&&(t=C(this._hiddenRanges,s)),t?t.startLineNumber-1:null);for(let s=0,d=u.length;s<d;s++){let l=u[s];const a=o(l.startLineNumber);a&&(l=l.setStartPosition(a,i.getLineMaxColumn(a)),n=!0);const r=o(l.endLineNumber);r&&(l=l.setEndPosition(r,i.getLineMaxColumn(r)),n=!0),u[s]=l}return n}dispose(){this.hiddenRanges.length>0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)}}e.HiddenRangeModel=w;function b(h,u){return h>=u.startLineNumber&&h<=u.endLineNumber}function C(h,u){const n=(0,y.findFirstInSorted)(h,i=>u<i.startLineNumber)-1;return n>=0&&h[n].endLineNumber>=u?h[n]:null}}),define(oe[205],se([1,0,6,2,17]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ClickLinkGesture=e.ClickLinkOptions=e.ClickLinkKeyboardEvent=e.ClickLinkMouseEvent=void 0;function D(n,i){return!!n[i]}class w{constructor(i,t){this.target=i.target,this.hasTriggerModifier=D(i.event,t.triggerModifier),this.hasSideBySideModifier=D(i.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=i.event.detail<=1}}e.ClickLinkMouseEvent=w;class b{constructor(i,t){this.keyCodeIsTriggerKey=i.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=i.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=D(i,t.triggerModifier)}}e.ClickLinkKeyboardEvent=b;class C{constructor(i,t,o,s){this.triggerKey=i,this.triggerModifier=t,this.triggerSideBySideKey=o,this.triggerSideBySideModifier=s}equals(i){return this.triggerKey===i.triggerKey&&this.triggerModifier===i.triggerModifier&&this.triggerSideBySideKey===i.triggerSideBySideKey&&this.triggerSideBySideModifier===i.triggerSideBySideModifier}}e.ClickLinkOptions=C;function h(n){return n==="altKey"?k.isMacintosh?new C(57,"metaKey",6,"altKey"):new C(5,"ctrlKey",6,"altKey"):k.isMacintosh?new C(6,"altKey",57,"metaKey"):new C(6,"altKey",5,"ctrlKey")}class u extends v.Disposable{constructor(i){super(),this._onMouseMoveOrRelevantKeyDown=this._register(new y.Emitter),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new y.Emitter),this.onExecute=this._onExecute.event,this._onCancel=this._register(new y.Emitter),this.onCancel=this._onCancel.event,this._editor=i,this._opts=h(this._editor.getOption(72)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration(t=>{if(t.hasChanged(72)){const o=h(this._editor.getOption(72));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(t=>this._onEditorMouseMove(new w(t,this._opts)))),this._register(this._editor.onMouseDown(t=>this._onEditorMouseDown(new w(t,this._opts)))),this._register(this._editor.onMouseUp(t=>this._onEditorMouseUp(new w(t,this._opts)))),this._register(this._editor.onKeyDown(t=>this._onEditorKeyDown(new b(t,this._opts)))),this._register(this._editor.onKeyUp(t=>this._onEditorKeyUp(new b(t,this._opts)))),this._register(this._editor.onMouseDrag(()=>this._resetHandler())),this._register(this._editor.onDidChangeCursorSelection(t=>this._onDidChangeCursorSelection(t))),this._register(this._editor.onDidChangeModel(t=>this._resetHandler())),this._register(this._editor.onDidChangeModelContent(()=>this._resetHandler())),this._register(this._editor.onDidScrollChange(t=>{(t.scrollTopChanged||t.scrollLeftChanged)&&this._resetHandler()}))}_onDidChangeCursorSelection(i){i.selection&&i.selection.startColumn!==i.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(i){this._lastMouseMoveEvent=i,this._onMouseMoveOrRelevantKeyDown.fire([i,null])}_onEditorMouseDown(i){this._hasTriggerKeyOnMouseDown=i.hasTriggerModifier,this._lineNumberOnMouseDown=i.target.position?i.target.position.lineNumber:0}_onEditorMouseUp(i){const t=i.target.position?i.target.position.lineNumber:0;this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===t&&this._onExecute.fire(i)}_onEditorKeyDown(i){this._lastMouseMoveEvent&&(i.keyCodeIsTriggerKey||i.keyCodeIsSideBySideKey&&i.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,i]):i.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(i){i.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}e.ClickLinkGesture=u});var Gt=this&&this.__asyncValues||function(q){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=q[Symbol.asyncIterator],y;return e?e.call(q):(q=typeof __values=="function"?__values(q):q[Symbol.iterator](),y={},v("next"),v("throw"),v("return"),y[Symbol.asyncIterator]=function(){return this},y);function v(D){y[D]=q[D]&&function(w){return new Promise(function(b,C){w=q[D](w),k(b,C,w.done,w.value)})}}function k(D,w,b,C){Promise.resolve(C).then(function(h){D({value:h,done:b})},w)}};define(oe[275],se([1,0,10,14,6,2]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HoverOperation=e.HoverResult=void 0;class w{constructor(h,u,n){this.value=h,this.isComplete=u,this.hasLoadingMessage=n}}e.HoverResult=w;class b extends D.Disposable{constructor(h,u){super(),this._editor=h,this._computer=u,this._onResult=this._register(new k.Emitter),this.onResult=this._onResult.event,this._firstWaitScheduler=this._register(new y.RunOnceScheduler(()=>this._triggerAsyncComputation(),0)),this._secondWaitScheduler=this._register(new y.RunOnceScheduler(()=>this._triggerSyncComputation(),0)),this._loadingMessageScheduler=this._register(new y.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(55).delay}get _firstWaitTime(){return this._hoverTime/2}get _secondWaitTime(){return this._hoverTime-this._firstWaitTime}get _loadingMessageTime(){return 3*this._hoverTime}_setState(h,u=!0){this._state=h,u&&this._fireResult()}_triggerAsyncComputation(){this._setState(2),this._secondWaitScheduler.schedule(this._secondWaitTime),this._computer.computeAsync?(this._asyncIterableDone=!1,this._asyncIterable=(0,y.createCancelableAsyncIterable)(h=>this._computer.computeAsync(h)),be(this,void 0,void 0,function*(){var h,u;try{try{for(var n=Gt(this._asyncIterable),i;i=yield n.next(),!i.done;){const t=i.value;t&&(this._result.push(t),this._fireResult())}}catch(t){h={error:t}}finally{try{i&&!i.done&&(u=n.return)&&(yield u.call(n))}finally{if(h)throw h.error}}this._asyncIterableDone=!0,(this._state===3||this._state===4)&&this._setState(0)}catch(t){(0,v.onUnexpectedError)(t)}})):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 h=this._state===0,u=this._state===4;this._onResult.fire(new w(this._result.slice(0),h,u))}start(h){if(h===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=b}),define(oe[276],se([1,0,14,2,11,3,52,22]),function(q,e,y,v,k,D,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.asCommandLink=e.InlayHintsFragments=e.InlayHintItem=e.InlayHintAnchor=void 0;class C{constructor(t,o){this.range=t,this.direction=o}}e.InlayHintAnchor=C;class h{constructor(t,o,s){this.hint=t,this.anchor=o,this.provider=s,this._isResolved=!1}with(t){const o=new h(this.hint,t.anchor,this.provider);return o._isResolved=this._isResolved,o._currentResolve=this._currentResolve,o}resolve(t){return be(this,void 0,void 0,function*(){if(typeof this.provider.resolveInlayHint=="function"){if(this._currentResolve)return yield this._currentResolve,t.isCancellationRequested?void 0:this.resolve(t);this._isResolved||(this._currentResolve=this._doResolve(t).finally(()=>this._currentResolve=void 0)),yield this._currentResolve}})}_doResolve(t){var o,s;return be(this,void 0,void 0,function*(){try{const d=yield Promise.resolve(this.provider.resolveInlayHint(this.hint,t));this.hint.tooltip=(o=d?.tooltip)!==null&&o!==void 0?o:this.hint.tooltip,this.hint.label=(s=d?.label)!==null&&s!==void 0?s:this.hint.label,this._isResolved=!0}catch(d){(0,y.onUnexpectedExternalError)(d),this._isResolved=!1}})}}e.InlayHintItem=h;class u{constructor(t,o,s){this._disposables=new v.DisposableStore,this.ranges=t,this.provider=new Set;const d=[];for(const[l,a]of o){this._disposables.add(l),this.provider.add(a);for(const r of l.hints){const c=s.validatePosition(r.position);let g="before";const f=u._getRangeAtPosition(s,c);let _;f.getStartPosition().isBefore(c)?(_=D.Range.fromPositions(f.getStartPosition(),c),g="after"):(_=D.Range.fromPositions(c,f.getEndPosition()),g="before"),d.push(new h(r,new C(_,g),a))}}this.items=d.sort((l,a)=>k.Position.compare(l.hint.position,a.hint.position))}static create(t,o,s,d){return be(this,void 0,void 0,function*(){const l=[],a=t.ordered(o).reverse().map(r=>s.map(c=>be(this,void 0,void 0,function*(){try{const g=yield r.provideInlayHints(o,c,d);g?.hints.length&&l.push([g,r])}catch(g){(0,y.onUnexpectedExternalError)(g)}})));if(yield Promise.all(a.flat()),d.isCancellationRequested||o.isDisposed())throw new y.CancellationError;return new u(s,l,o)})}dispose(){this._disposables.dispose()}static _getRangeAtPosition(t,o){const s=o.lineNumber,d=t.getWordAtPosition(o);if(d)return new D.Range(s,d.startColumn,s,d.endColumn);t.tokenization.tokenizeIfCheap(s);const l=t.tokenization.getLineTokens(s),a=o.column-1,r=l.findTokenIndexAtOffset(a);let c=l.getStartOffset(r),g=l.getEndOffset(r);return g-c==1&&(c===a&&r>1?(c=l.getStartOffset(r-1),g=l.getEndOffset(r-1)):g===a&&r<l.getCount()-1&&(c=l.getStartOffset(r+1),g=l.getEndOffset(r+1))),new D.Range(s,c+1,s,g+1)}}e.InlayHintsFragments=u;function n(i){return b.URI.from({scheme:w.Schemas.command,path:i.id,query:i.arguments&&encodeURIComponent(JSON.stringify(i.arguments))}).toString()}e.asCommandLink=n}),define(oe[165],se([1,0,6,2,189]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BaseGhostTextWidgetModel=e.GhostTextReplacement=e.GhostTextPart=e.GhostText=void 0;class D{constructor(u,n,i=0){this.lineNumber=u,this.parts=n,this.additionalReservedLineCount=i}renderForScreenReader(u){if(this.parts.length===0)return"";const n=this.parts[this.parts.length-1],i=u.substr(0,n.column-1);return(0,k.applyEdits)(i,this.parts.map(t=>({range:{startLineNumber:1,endLineNumber:1,startColumn:t.column,endColumn:t.column},text:t.lines.join(` `)}))).substring(this.parts[0].column-1)}isEmpty(){return this.parts.every(u=>u.lines.length===0)}}e.GhostText=D;class w{constructor(u,n,i){this.column=u,this.lines=n,this.preview=i}}e.GhostTextPart=w;class b{constructor(u,n,i,t,o=0){this.lineNumber=u,this.columnStart=n,this.length=i,this.newLines=t,this.additionalReservedLineCount=o,this.parts=[new w(this.columnStart+this.length,this.newLines,!1)]}renderForScreenReader(u){return this.newLines.join(` `)}}e.GhostTextReplacement=b;class C extends v.Disposable{constructor(u){super(),this.editor=u,this._expanded=void 0,this.onDidChangeEmitter=new y.Emitter,this.onDidChange=this.onDidChangeEmitter.event,this._register(u.onDidChangeConfiguration(n=>{n.hasChanged(108)&&this._expanded===void 0&&this.onDidChangeEmitter.fire()}))}setExpanded(u){this._expanded=!0,this.onDidChangeEmitter.fire()}}e.BaseGhostTextWidgetModel=C}),define(oe[206],se([1,0,147,8,3,165]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.inlineCompletionToGhostText=e.normalizedInlineCompletionsEquals=e.minimizeInlineCompletion=void 0;function w(t,o){if(!o)return o;const s=t.getValueInRange(o.range),d=v.commonPrefixLength(s,o.insertText),l=t.getOffsetAt(o.range.getStartPosition())+d,a=t.getPositionAt(l),r=s.substr(d),c=v.commonSuffixLength(r,o.insertText),g=t.getPositionAt(Math.max(l,t.getOffsetAt(o.range.getEndPosition())-c));return{range:k.Range.fromPositions(a,g),insertText:o.insertText.substr(d,o.insertText.length-d-c),snippetInfo:o.snippetInfo,filterText:o.filterText,additionalTextEdits:o.additionalTextEdits}}e.minimizeInlineCompletion=w;function b(t,o){return t===o?!0:!t||!o?!1:t.range.equalsRange(o.range)&&t.insertText===o.insertText&&t.command===o.command}e.normalizedInlineCompletionsEquals=b;function C(t,o,s,d,l=0){if(t.range.startLineNumber!==t.range.endLineNumber)return;const a=o.getLineContent(t.range.startLineNumber),r=v.getLeadingWhitespace(a).length;if(t.range.startColumn-1<=r){const m=v.getLeadingWhitespace(t.insertText).length,S=a.substring(t.range.startColumn-1,r),E=k.Range.fromPositions(t.range.getStartPosition().delta(0,S.length),t.range.getEndPosition()),L=t.insertText.startsWith(S)?t.insertText.substring(S.length):t.insertText.substring(m);t={range:E,insertText:L,command:t.command,snippetInfo:void 0,filterText:t.filterText,additionalTextEdits:t.additionalTextEdits}}const c=o.getValueInRange(t.range),g=u(c,t.insertText);if(!g)return;const f=t.range.startLineNumber,_=new Array;if(s==="prefix"){const m=g.filter(S=>S.originalLength===0);if(m.length>1||m.length===1&&m[0].originalStart!==c.length)return}const p=t.insertText.length-l;for(const m of g){const S=t.range.startColumn+m.originalStart+m.originalLength;if(s==="subwordSmart"&&d&&d.lineNumber===t.range.startLineNumber&&S<d.column||m.originalLength>0)return;if(m.modifiedLength===0)continue;const E=m.modifiedStart+m.modifiedLength,L=Math.max(m.modifiedStart,Math.min(E,p)),N=t.insertText.substring(m.modifiedStart,L),I=t.insertText.substring(L,Math.max(m.modifiedStart,E));if(N.length>0){const R=v.splitLines(N);_.push(new D.GhostTextPart(S,R,!1))}if(I.length>0){const R=v.splitLines(I);_.push(new D.GhostTextPart(S,R,!0))}}return new D.GhostText(f,_,0)}e.inlineCompletionToGhostText=C;let h;function u(t,o){if(h?.originalValue===t&&h?.newValue===o)return h?.changes;{let s=i(t,o,!0);if(s){const d=n(s);if(d>0){const l=i(t,o,!1);l&&n(l)<d&&(s=l)}}return h={originalValue:t,newValue:o,changes:s},s}}function n(t){let o=0;for(const s of t)o+=Math.max(s.originalLength-s.modifiedLength,0);return o}function i(t,o,s){if(t.length>5e3||o.length>5e3)return;function d(f){let _=0;for(let p=0,m=f.length;p<m;p++){const S=f.charCodeAt(p);S>_&&(_=S)}return _}const l=Math.max(d(t),d(o));function a(f){if(f<0)throw new Error("unexpected");return l+f+1}function r(f){let _=0,p=0;const m=new Int32Array(f.length);for(let S=0,E=f.length;S<E;S++)if(s&&f[S]==="("){const L=p*100+_;m[S]=a(2*L),_++}else if(s&&f[S]===")"){_=Math.max(_-1,0);const L=p*100+_;m[S]=a(2*L+1),_===0&&p++}else m[S]=f.charCodeAt(S);return m}const c=r(t),g=r(o);return new y.LcsDiff({getElements:()=>c},{getElements:()=>g}).ComputeDiff(!1).changes}}),define(oe[518],se([4,5]),function(q,e){return q.create("vs/base/parts/quickinput/browser/quickInput",e)}),define(oe[519],se([4,5]),function(q,e){return q.create("vs/base/parts/quickinput/browser/quickInputList",e)}),define(oe[520],se([1,0,7,48,83,197,485,42,18,27,480,103,6,106,2,17,8,19,266,519,151]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.matchesContiguousIconAware=e.QuickInputList=e.QuickInputListFocus=void 0;const c=y.$;class g{constructor(R){this.hidden=!1,this._onChecked=new i.Emitter,this.onChecked=this._onChecked.event,Object.assign(this,R)}get checked(){return!!this._checked}set checked(R){R!==this._checked&&(this._checked=R,this._onChecked.fire(R))}dispose(){this._onChecked.dispose()}}class f{get templateId(){return f.ID}renderTemplate(R){const F=Object.create(null);F.toDisposeElement=[],F.toDisposeTemplate=[],F.entry=y.append(R,c(".quick-input-list-entry"));const O=y.append(F.entry,c("label.quick-input-list-label"));F.toDisposeTemplate.push(y.addStandardDisposableListener(O,y.EventType.CLICK,K=>{F.checkbox.offsetParent||K.preventDefault()})),F.checkbox=y.append(O,c("input.quick-input-list-checkbox")),F.checkbox.type="checkbox",F.toDisposeTemplate.push(y.addStandardDisposableListener(F.checkbox,y.EventType.CHANGE,K=>{F.element.checked=F.checkbox.checked}));const x=y.append(O,c(".quick-input-list-rows")),M=y.append(x,c(".quick-input-list-row")),P=y.append(x,c(".quick-input-list-row"));F.label=new D.IconLabel(M,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0});const A=y.append(M,c(".quick-input-list-entry-keybinding"));F.keybinding=new w.KeybindingLabel(A,s.OS);const B=y.append(P,c(".quick-input-list-label-meta"));return F.detail=new D.IconLabel(B,{supportHighlights:!0,supportIcons:!0}),F.separator=y.append(F.entry,c(".quick-input-list-separator")),F.actionBar=new k.ActionBar(F.entry),F.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),F.toDisposeTemplate.push(F.actionBar),F}renderElement(R,F,O){O.toDisposeElement=(0,o.dispose)(O.toDisposeElement),O.element=R,O.checkbox.checked=R.checked,O.toDisposeElement.push(R.onChecked(K=>O.checkbox.checked=K));const{labelHighlights:x,descriptionHighlights:M,detailHighlights:P}=R,A=Object.create(null);A.matches=x||[],A.descriptionTitle=R.saneDescription,A.descriptionMatches=M||[],A.extraClasses=R.item.iconClasses,A.italic=R.item.italic,A.strikethrough=R.item.strikethrough,O.label.setLabel(R.saneLabel,R.saneDescription,A),O.keybinding.set(R.item.keybinding),R.saneDetail&&O.detail.setLabel(R.saneDetail,void 0,{matches:P,title:R.saneDetail}),R.separator&&R.separator.label?(O.separator.textContent=R.separator.label,O.separator.style.display=""):O.separator.style.display="none",O.entry.classList.toggle("quick-input-list-separator-border",!!R.separator),O.actionBar.clear();const B=R.item.buttons;B&&B.length?(O.actionBar.push(B.map((K,T)=>{let ee=K.iconClass||(K.iconPath?(0,a.getIconClass)(K.iconPath):void 0);K.alwaysVisible&&(ee=ee?`${ee} always-visible`:"always-visible");const J=new b.Action(`id-${T}`,"",ee,!0,()=>be(this,void 0,void 0,function*(){R.fireButtonTriggered({button:K,item:R.item})}));return J.tooltip=K.tooltip||"",J}),{icon:!0,label:!1}),O.entry.classList.add("has-actions")):O.entry.classList.remove("has-actions")}disposeElement(R,F,O){O.toDisposeElement=(0,o.dispose)(O.toDisposeElement)}disposeTemplate(R){R.toDisposeElement=(0,o.dispose)(R.toDisposeElement),R.toDisposeTemplate=(0,o.dispose)(R.toDisposeTemplate)}}f.ID="listelement";class _{getHeight(R){return R.saneDetail?44:22}getTemplateId(R){return f.ID}}var p;(function(I){I[I.First=1]="First",I[I.Second=2]="Second",I[I.Last=3]="Last",I[I.Next=4]="Next",I[I.Previous=5]="Previous",I[I.NextPage=6]="NextPage",I[I.PreviousPage=7]="PreviousPage"})(p=e.QuickInputListFocus||(e.QuickInputListFocus={}));class m{constructor(R,F,O){this.parent=R,this.inputElements=[],this.elements=[],this.elementsToIndexes=new Map,this.matchOnDescription=!1,this.matchOnDetail=!1,this.matchOnLabel=!0,this.matchOnLabelMode="fuzzy",this.matchOnMeta=!0,this.sortByLabel=!0,this._onChangedAllVisibleChecked=new i.Emitter,this.onChangedAllVisibleChecked=this._onChangedAllVisibleChecked.event,this._onChangedCheckedCount=new i.Emitter,this.onChangedCheckedCount=this._onChangedCheckedCount.event,this._onChangedVisibleCount=new i.Emitter,this.onChangedVisibleCount=this._onChangedVisibleCount.event,this._onChangedCheckedElements=new i.Emitter,this.onChangedCheckedElements=this._onChangedCheckedElements.event,this._onButtonTriggered=new i.Emitter,this.onButtonTriggered=this._onButtonTriggered.event,this._onKeyDown=new i.Emitter,this.onKeyDown=this._onKeyDown.event,this._onLeave=new i.Emitter,this.onLeave=this._onLeave.event,this._fireCheckedEvents=!0,this.elementDisposables=[],this.disposables=[],this.id=F,this.container=y.append(this.parent,c(".quick-input-list"));const x=new _,M=new N;this.list=O.createList("QuickInput",this.container,x,[new f],{identityProvider:{getId:P=>P.saneLabel},setRowLineHeight:!1,multipleSelectionSupport:!1,horizontalScrolling:!1,accessibilityProvider:M}),this.list.getHTMLElement().id=F,this.disposables.push(this.list),this.disposables.push(this.list.onKeyDown(P=>{const A=new v.StandardKeyboardEvent(P);switch(A.keyCode){case 10:this.toggleCheckbox();break;case 31:(s.isMacintosh?P.metaKey:P.ctrlKey)&&this.list.setFocus((0,C.range)(this.list.length));break;case 16:{const B=this.list.getFocus();B.length===1&&B[0]===0&&this._onLeave.fire();break}case 18:{const B=this.list.getFocus();B.length===1&&B[0]===this.list.length-1&&this._onLeave.fire();break}}this._onKeyDown.fire(A)})),this.disposables.push(this.list.onMouseDown(P=>{P.browserEvent.button!==2&&P.browserEvent.preventDefault()})),this.disposables.push(y.addDisposableListener(this.container,y.EventType.CLICK,P=>{(P.x||P.y)&&this._onLeave.fire()})),this.disposables.push(this.list.onMouseMiddleClick(P=>{this._onLeave.fire()})),this.disposables.push(this.list.onContextMenu(P=>{typeof P.index=="number"&&(P.browserEvent.preventDefault(),this.list.setSelection([P.index]))})),this.disposables.push(this._onChangedAllVisibleChecked,this._onChangedCheckedCount,this._onChangedVisibleCount,this._onChangedCheckedElements,this._onButtonTriggered,this._onLeave,this._onKeyDown)}get onDidChangeFocus(){return i.Event.map(this.list.onDidChangeFocus,R=>R.elements.map(F=>F.item))}get onDidChangeSelection(){return i.Event.map(this.list.onDidChangeSelection,R=>({items:R.elements.map(F=>F.item),event:R.browserEvent}))}get scrollTop(){return this.list.scrollTop}set scrollTop(R){this.list.scrollTop=R}getAllVisibleChecked(){return this.allVisibleChecked(this.elements,!1)}allVisibleChecked(R,F=!0){for(let O=0,x=R.length;O<x;O++){const M=R[O];if(!M.hidden)if(M.checked)F=!0;else return!1}return F}getCheckedCount(){let R=0;const F=this.elements;for(let O=0,x=F.length;O<x;O++)F[O].checked&&R++;return R}getVisibleCount(){let R=0;const F=this.elements;for(let O=0,x=F.length;O<x;O++)F[O].hidden||R++;return R}setAllVisibleChecked(R){try{this._fireCheckedEvents=!1,this.elements.forEach(F=>{F.hidden||(F.checked=R)})}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}setElements(R){this.elementDisposables=(0,o.dispose)(this.elementDisposables);const F=O=>this.fireButtonTriggered(O);this.inputElements=R,this.elements=R.reduce((O,x,M)=>{var P,A,B;if(x.type!=="separator"){const K=M&&R[M-1],T=x.label&&x.label.replace(/\r?\n/g," "),ee=(0,t.parseLabelWithIcons)(T).text.trim(),J=x.meta&&x.meta.replace(/\r?\n/g," "),$=x.description&&x.description.replace(/\r?\n/g," "),j=x.detail&&x.detail.replace(/\r?\n/g," "),G=x.ariaLabel||[T,$,j].map(Z=>(0,h.getCodiconAriaLabel)(Z)).filter(Z=>!!Z).join(", "),te=this.parent.classList.contains("show-checkboxes");O.push(new g({hasCheckbox:te,index:M,item:x,saneLabel:T,saneSortLabel:ee,saneMeta:J,saneAriaLabel:G,saneDescription:$,saneDetail:j,labelHighlights:(P=x.highlights)===null||P===void 0?void 0:P.label,descriptionHighlights:(A=x.highlights)===null||A===void 0?void 0:A.description,detailHighlights:(B=x.highlights)===null||B===void 0?void 0:B.detail,checked:!1,separator:K&&K.type==="separator"?K:void 0,fireButtonTriggered:F}))}return O},[]),this.elementDisposables.push(...this.elements),this.elementDisposables.push(...this.elements.map(O=>O.onChecked(()=>this.fireCheckedEvents()))),this.elementsToIndexes=this.elements.reduce((O,x,M)=>(O.set(x.item,M),O),new Map),this.list.splice(0,this.list.length),this.list.splice(0,this.list.length,this.elements),this._onChangedVisibleCount.fire(this.elements.length)}getFocusedElements(){return this.list.getFocusedElements().map(R=>R.item)}setFocusedElements(R){if(this.list.setFocus(R.filter(F=>this.elementsToIndexes.has(F)).map(F=>this.elementsToIndexes.get(F))),R.length>0){const F=this.list.getFocus()[0];typeof F=="number"&&this.list.reveal(F)}}getActiveDescendant(){return this.list.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(R){this.list.setSelection(R.filter(F=>this.elementsToIndexes.has(F)).map(F=>this.elementsToIndexes.get(F)))}getCheckedElements(){return this.elements.filter(R=>R.checked).map(R=>R.item)}setCheckedElements(R){try{this._fireCheckedEvents=!1;const F=new Set;for(const O of R)F.add(O);for(const O of this.elements)O.checked=F.has(O.item)}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}set enabled(R){this.list.getHTMLElement().style.pointerEvents=R?"":"none"}focus(R){if(!this.list.length)return;switch(R===p.Next&&this.list.getFocus()[0]===this.list.length-1&&(R=p.First),R===p.Previous&&this.list.getFocus()[0]===0&&(R=p.Last),R===p.Second&&this.list.length<2&&(R=p.First),R){case p.First:this.list.focusFirst();break;case p.Second:this.list.focusNth(1);break;case p.Last:this.list.focusLast();break;case p.Next:this.list.focusNext();break;case p.Previous:this.list.focusPrevious();break;case p.NextPage:this.list.focusNextPage();break;case p.PreviousPage:this.list.focusPreviousPage();break}const F=this.list.getFocus()[0];typeof F=="number"&&this.list.reveal(F)}clearFocus(){this.list.setFocus([])}domFocus(){this.list.domFocus()}layout(R){this.list.getHTMLElement().style.maxHeight=R?`calc(${Math.floor(R/44)*44}px)`:"",this.list.layout()}filter(R){if(!(this.sortByLabel||this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))return this.list.layout(),!1;const F=R;if(R=R.trim(),!R||!(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))this.elements.forEach(x=>{x.labelHighlights=void 0,x.descriptionHighlights=void 0,x.detailHighlights=void 0,x.hidden=!1;const M=x.index&&this.inputElements[x.index-1];x.separator=M&&M.type==="separator"?M:void 0});else{let x;this.elements.forEach(M=>{let P;this.matchOnLabelMode==="fuzzy"?P=this.matchOnLabel?(0,l.withNullAsUndefined)((0,t.matchesFuzzyIconAware)(R,(0,t.parseLabelWithIcons)(M.saneLabel))):void 0:P=this.matchOnLabel?(0,l.withNullAsUndefined)(S(F,(0,t.parseLabelWithIcons)(M.saneLabel))):void 0;const A=this.matchOnDescription?(0,l.withNullAsUndefined)((0,t.matchesFuzzyIconAware)(R,(0,t.parseLabelWithIcons)(M.saneDescription||""))):void 0,B=this.matchOnDetail?(0,l.withNullAsUndefined)((0,t.matchesFuzzyIconAware)(R,(0,t.parseLabelWithIcons)(M.saneDetail||""))):void 0,K=this.matchOnMeta?(0,l.withNullAsUndefined)((0,t.matchesFuzzyIconAware)(R,(0,t.parseLabelWithIcons)(M.saneMeta||""))):void 0;if(P||A||B||K?(M.labelHighlights=P,M.descriptionHighlights=A,M.detailHighlights=B,M.hidden=!1):(M.labelHighlights=void 0,M.descriptionHighlights=void 0,M.detailHighlights=void 0,M.hidden=!M.item.alwaysShow),M.separator=void 0,!this.sortByLabel){const T=M.index&&this.inputElements[M.index-1];x=T&&T.type==="separator"?T:x,x&&!M.hidden&&(M.separator=x,x=void 0)}})}const O=this.elements.filter(x=>!x.hidden);if(this.sortByLabel&&R){const x=R.toLowerCase();O.sort((M,P)=>L(M,P,x))}return this.elementsToIndexes=O.reduce((x,M,P)=>(x.set(M.item,P),x),new Map),this.list.splice(0,this.list.length,O),this.list.setFocus([]),this.list.layout(),this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedVisibleCount.fire(O.length),!0}toggleCheckbox(){try{this._fireCheckedEvents=!1;const R=this.list.getFocusedElements(),F=this.allVisibleChecked(R);for(const O of R)O.checked=!F}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}display(R){this.container.style.display=R?"":"none"}isDisplayed(){return this.container.style.display!=="none"}dispose(){this.elementDisposables=(0,o.dispose)(this.elementDisposables),this.disposables=(0,o.dispose)(this.disposables)}fireCheckedEvents(){this._fireCheckedEvents&&(this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedCheckedCount.fire(this.getCheckedCount()),this._onChangedCheckedElements.fire(this.getCheckedElements()))}fireButtonTriggered(R){this._onButtonTriggered.fire(R)}style(R){this.list.style(R)}}Ie([n.memoize],m.prototype,"onDidChangeFocus",null),Ie([n.memoize],m.prototype,"onDidChangeSelection",null),e.QuickInputList=m;function S(I,R){const{text:F,iconOffsets:O}=R;if(!O||O.length===0)return E(I,F);const x=(0,d.ltrim)(F," "),M=F.length-x.length,P=E(I,x);if(P)for(const A of P){const B=O[A.start+M]+M;A.start+=B,A.end+=B}return P}e.matchesContiguousIconAware=S;function E(I,R){const F=R.toLowerCase().indexOf(I.toLowerCase());return F!==-1?[{start:F,end:F+I.length}]:null}function L(I,R,F){const O=I.labelHighlights||[],x=R.labelHighlights||[];return O.length&&!x.length?-1:!O.length&&x.length?1:O.length===0&&x.length===0?0:(0,u.compareAnything)(I.saneSortLabel,R.saneSortLabel,F)}class N{getWidgetAriaLabel(){return(0,r.localize)(0,null)}getAriaLabel(R){var F;return!((F=R.separator)===null||F===void 0)&&F.label?`${R.saneAriaLabel}, ${R.separator.label}`:R.saneAriaLabel}getWidgetRole(){return"listbox"}getRole(R){return R.hasCheckbox?"checkbox":"option"}isChecked(R){if(R.hasCheckbox)return{value:R.checked,onDidChange:R.onChecked}}}}),define(oe[521],se([1,0,7,48,83,484,255,134,487,42,18,10,21,27,6,2,17,81,19,266,224,518,498,520,151]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r,c,g,f,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.QuickInputController=void 0;const p=y.$,m={iconClass:t.Codicon.quickInputBack.classNames,tooltip:(0,g.localize)(0,null),handle:-1};class S extends s.Disposable{constructor(I){super(),this.ui=I,this.visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._buttons=[],this.noValidationMessage=S.noPromptMessage,this._severity=l.default.Ignore,this.buttonsUpdated=!1,this.onDidTriggerButtonEmitter=this._register(new o.Emitter),this.onDidHideEmitter=this._register(new o.Emitter),this.onDisposeEmitter=this._register(new o.Emitter),this.visibleDisposables=this._register(new s.DisposableStore),this.onDidHide=this.onDidHideEmitter.event}get title(){return this._title}set title(I){this._title=I,this.update()}get description(){return this._description}set description(I){this._description=I,this.update()}get step(){return this._steps}set step(I){this._steps=I,this.update()}get totalSteps(){return this._totalSteps}set totalSteps(I){this._totalSteps=I,this.update()}get enabled(){return this._enabled}set enabled(I){this._enabled=I,this.update()}get contextKey(){return this._contextKey}set contextKey(I){this._contextKey=I,this.update()}get busy(){return this._busy}set busy(I){this._busy=I,this.update()}get ignoreFocusOut(){return this._ignoreFocusOut}set ignoreFocusOut(I){const R=this._ignoreFocusOut!==I&&!d.isIOS;this._ignoreFocusOut=I&&!d.isIOS,R&&this.update()}get buttons(){return this._buttons}set buttons(I){this._buttons=I,this.buttonsUpdated=!0,this.update()}get validationMessage(){return this._validationMessage}set validationMessage(I){this._validationMessage=I,this.update()}get severity(){return this._severity}set severity(I){this._severity=I,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.onDidTriggerButton(I=>{this.buttons.indexOf(I)!==-1&&this.onDidTriggerButtonEmitter.fire(I)})),this.ui.show(this),this.visible=!0,this._lastValidationMessage=void 0,this._lastSeverity=void 0,this.buttons.length&&(this.buttonsUpdated=!0),this.update())}hide(){!this.visible||this.ui.hide()}didHide(I=c.QuickInputHideReason.Other){this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire({reason:I})}update(){if(!this.visible)return;const I=this.getTitle();I&&this.ui.title.textContent!==I?this.ui.title.textContent=I:!I&&this.ui.title.innerHTML!==" "&&(this.ui.title.innerText="\xA0");const R=this.getDescription();if(this.ui.description1.textContent!==R&&(this.ui.description1.textContent=R),this.ui.description2.textContent!==R&&(this.ui.description2.textContent=R),this.busy&&!this.busyDelay&&(this.busyDelay=new n.TimeoutTimer,this.busyDelay.setIfNotSet(()=>{this.visible&&this.ui.progressBar.infinite()},800)),!this.busy&&this.busyDelay&&(this.ui.progressBar.stop(),this.busyDelay.cancel(),this.busyDelay=void 0),this.buttonsUpdated){this.buttonsUpdated=!1,this.ui.leftActionBar.clear();const O=this.buttons.filter(M=>M===m);this.ui.leftActionBar.push(O.map((M,P)=>{const A=new h.Action(`id-${P}`,"",M.iconClass||(0,r.getIconClass)(M.iconPath),!0,()=>be(this,void 0,void 0,function*(){this.onDidTriggerButtonEmitter.fire(M)}));return A.tooltip=M.tooltip||"",A}),{icon:!0,label:!1}),this.ui.rightActionBar.clear();const x=this.buttons.filter(M=>M!==m);this.ui.rightActionBar.push(x.map((M,P)=>{const A=new h.Action(`id-${P}`,"",M.iconClass||(0,r.getIconClass)(M.iconPath),!0,()=>be(this,void 0,void 0,function*(){this.onDidTriggerButtonEmitter.fire(M)}));return A.tooltip=M.tooltip||"",A}),{icon:!0,label:!1})}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey);const F=this.validationMessage||this.noValidationMessage;this._lastValidationMessage!==F&&(this._lastValidationMessage=F,y.reset(this.ui.message,...(0,b.renderLabelWithIcons)(F))),this._lastSeverity!==this.severity&&(this._lastSeverity=this.severity,this.showMessageDecoration(this.severity))}getTitle(){return this.title&&this.step?`${this.title} (${this.getSteps()})`:this.title?this.title:this.step?this.getSteps():""}getDescription(){return this.description||""}getSteps(){return this.step&&this.totalSteps?(0,g.localize)(2,null,this.step,this.totalSteps):this.step?String(this.step):""}showMessageDecoration(I){if(this.ui.inputBox.showDecoration(I),I!==l.default.Ignore){const R=this.ui.inputBox.stylesForType(I);this.ui.message.style.color=R.foreground?`${R.foreground}`:"",this.ui.message.style.backgroundColor=R.background?`${R.background}`:"",this.ui.message.style.border=R.border?`1px solid ${R.border}`:"",this.ui.message.style.marginBottom="-2px"}else this.ui.message.style.color="",this.ui.message.style.backgroundColor="",this.ui.message.style.border="",this.ui.message.style.marginBottom=""}dispose(){this.hide(),this.onDisposeEmitter.fire(),super.dispose()}}S.noPromptMessage=(0,g.localize)(1,null);class E extends S{constructor(){super(...arguments),this._value="",this.onDidChangeValueEmitter=this._register(new o.Emitter),this.onWillAcceptEmitter=this._register(new o.Emitter),this.onDidAcceptEmitter=this._register(new o.Emitter),this.onDidCustomEmitter=this._register(new o.Emitter),this._items=[],this.itemsUpdated=!1,this._canSelectMany=!1,this._canAcceptInBackground=!1,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._matchOnLabelMode="fuzzy",this._sortByLabel=!0,this._autoFocusOnList=!0,this._keepScrollPosition=!1,this._itemActivation=this.ui.isScreenReaderOptimized()?c.ItemActivation.NONE:c.ItemActivation.FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new o.Emitter),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new o.Emitter),this.onDidTriggerItemButtonEmitter=this._register(new o.Emitter),this.valueSelectionUpdated=!0,this._ok="default",this._customButton=!1,this.filterValue=I=>I,this.onDidChangeValue=this.onDidChangeValueEmitter.event,this.onWillAccept=this.onWillAcceptEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event,this.onDidChangeActive=this.onDidChangeActiveEmitter.event,this.onDidChangeSelection=this.onDidChangeSelectionEmitter.event,this.onDidTriggerItemButton=this.onDidTriggerItemButtonEmitter.event}get quickNavigate(){return this._quickNavigate}set quickNavigate(I){this._quickNavigate=I,this.update()}get value(){return this._value}set value(I){this.doSetValue(I)}doSetValue(I,R){this._value!==I&&(this._value=I,R||this.update(),this.visible&&this.ui.list.filter(this.filterValue(this._value))&&this.trySelectFirst(),this.onDidChangeValueEmitter.fire(this._value))}set ariaLabel(I){this._ariaLabel=I,this.update()}get ariaLabel(){return this._ariaLabel}get placeholder(){return this._placeholder}set placeholder(I){this._placeholder=I,this.update()}get items(){return this._items}get scrollTop(){return this.ui.list.scrollTop}set scrollTop(I){this.ui.list.scrollTop=I}set items(I){this._items=I,this.itemsUpdated=!0,this.update()}get canSelectMany(){return this._canSelectMany}set canSelectMany(I){this._canSelectMany=I,this.update()}get canAcceptInBackground(){return this._canAcceptInBackground}set canAcceptInBackground(I){this._canAcceptInBackground=I}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(I){this._matchOnDescription=I,this.update()}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(I){this._matchOnDetail=I,this.update()}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(I){this._matchOnLabel=I,this.update()}get matchOnLabelMode(){return this._matchOnLabelMode}set matchOnLabelMode(I){this._matchOnLabelMode=I,this.update()}get sortByLabel(){return this._sortByLabel}set sortByLabel(I){this._sortByLabel=I,this.update()}get autoFocusOnList(){return this._autoFocusOnList}set autoFocusOnList(I){this._autoFocusOnList=I,this.update()}get keepScrollPosition(){return this._keepScrollPosition}set keepScrollPosition(I){this._keepScrollPosition=I}get itemActivation(){return this._itemActivation}set itemActivation(I){this._itemActivation=I}get activeItems(){return this._activeItems}set activeItems(I){this._activeItems=I,this.activeItemsUpdated=!0,this.update()}get selectedItems(){return this._selectedItems}set selectedItems(I){this._selectedItems=I,this.selectedItemsUpdated=!0,this.update()}get keyMods(){return this._quickNavigate?c.NO_KEY_MODS:this.ui.keyMods}set valueSelection(I){this._valueSelection=I,this.valueSelectionUpdated=!0,this.update()}get customButton(){return this._customButton}set customButton(I){this._customButton=I,this.update()}get customLabel(){return this._customButtonLabel}set customLabel(I){this._customButtonLabel=I,this.update()}get customHover(){return this._customButtonHover}set customHover(I){this._customButtonHover=I,this.update()}get ok(){return this._ok}set ok(I){this._ok=I,this.update()}get hideInput(){return!!this._hideInput}set hideInput(I){this._hideInput=I,this.update()}trySelectFirst(){this.autoFocusOnList&&(this.canSelectMany||this.ui.list.focus(_.QuickInputListFocus.First))}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange(I=>{this.doSetValue(I,!0)})),this.visibleDisposables.add(this.ui.inputBox.onMouseDown(I=>{this.autoFocusOnList||this.ui.list.clearFocus()})),this.visibleDisposables.add((this._hideInput?this.ui.list:this.ui.inputBox).onKeyDown(I=>{switch(I.keyCode){case 18:this.ui.list.focus(_.QuickInputListFocus.Next),this.canSelectMany&&this.ui.list.domFocus(),y.EventHelper.stop(I,!0);break;case 16:this.ui.list.getFocusedElements().length?this.ui.list.focus(_.QuickInputListFocus.Previous):this.ui.list.focus(_.QuickInputListFocus.Last),this.canSelectMany&&this.ui.list.domFocus(),y.EventHelper.stop(I,!0);break;case 12:this.ui.list.focus(_.QuickInputListFocus.NextPage),this.canSelectMany&&this.ui.list.domFocus(),y.EventHelper.stop(I,!0);break;case 11:this.ui.list.focus(_.QuickInputListFocus.PreviousPage),this.canSelectMany&&this.ui.list.domFocus(),y.EventHelper.stop(I,!0);break;case 17:if(!this._canAcceptInBackground||!this.ui.inputBox.isSelectionAtEnd())return;this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!0));break;case 14:(I.ctrlKey||I.metaKey)&&!I.shiftKey&&!I.altKey&&(this.ui.list.focus(_.QuickInputListFocus.First),y.EventHelper.stop(I,!0));break;case 13:(I.ctrlKey||I.metaKey)&&!I.shiftKey&&!I.altKey&&(this.ui.list.focus(_.QuickInputListFocus.Last),y.EventHelper.stop(I,!0));break}})),this.visibleDisposables.add(this.ui.onDidAccept(()=>{this.canSelectMany?this.ui.list.getCheckedElements().length||(this._selectedItems=[],this.onDidChangeSelectionEmitter.fire(this.selectedItems)):this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems)),this.handleAccept(!1)})),this.visibleDisposables.add(this.ui.onDidCustom(()=>{this.onDidCustomEmitter.fire()})),this.visibleDisposables.add(this.ui.list.onDidChangeFocus(I=>{this.activeItemsUpdated||this.activeItemsToConfirm!==this._activeItems&&(0,u.equals)(I,this._activeItems,(R,F)=>R===F)||(this._activeItems=I,this.onDidChangeActiveEmitter.fire(I))})),this.visibleDisposables.add(this.ui.list.onDidChangeSelection(({items:I,event:R})=>{if(this.canSelectMany){I.length&&this.ui.list.setSelectedElements([]);return}this.selectedItemsToConfirm!==this._selectedItems&&(0,u.equals)(I,this._selectedItems,(F,O)=>F===O)||(this._selectedItems=I,this.onDidChangeSelectionEmitter.fire(I),I.length&&this.handleAccept(R instanceof MouseEvent&&R.button===1))})),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements(I=>{!this.canSelectMany||this.selectedItemsToConfirm!==this._selectedItems&&(0,u.equals)(I,this._selectedItems,(R,F)=>R===F)||(this._selectedItems=I,this.onDidChangeSelectionEmitter.fire(I))})),this.visibleDisposables.add(this.ui.list.onButtonTriggered(I=>this.onDidTriggerItemButtonEmitter.fire(I))),this.visibleDisposables.add(this.registerQuickNavigation()),this.valueSelectionUpdated=!0),super.show()}handleAccept(I){let R=!1;this.onWillAcceptEmitter.fire({veto:()=>R=!0}),R||this.onDidAcceptEmitter.fire({inBackground:I})}registerQuickNavigation(){return y.addDisposableListener(this.ui.container,y.EventType.KEY_UP,I=>{if(this.canSelectMany||!this._quickNavigate)return;const R=new v.StandardKeyboardEvent(I),F=R.keyCode;this._quickNavigate.keybindings.some(O=>{const[x,M]=O.getParts();return M?!1:x.shiftKey&&F===4?!(R.ctrlKey||R.altKey||R.metaKey):!!(x.altKey&&F===6||x.ctrlKey&&F===5||x.metaKey&&F===57)})&&(this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!1)),this._quickNavigate=void 0)})}update(){if(!this.visible)return;const I=this.keepScrollPosition?this.scrollTop:0,R=!!this._hideInput&&this._items.length>0;this.ui.container.classList.toggle("hidden-input",R&&!this.description);const F={title:!!this.title||!!this.step||!!this.buttons.length,description:!!this.description,checkAll:this.canSelectMany&&!this._hideCheckAll,checkBox:this.canSelectMany,inputBox:!R,progressBar:!R,visibleCount:!0,count:this.canSelectMany,ok:this.ok==="default"?this.canSelectMany:this.ok,list:!0,message:!!this.validationMessage,customButton:this.customButton};this.ui.setVisibilities(F),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||"");let O=this.ariaLabel;if(O||(O=this.placeholder||E.DEFAULT_ARIA_LABEL,this.title&&(O+=` - ${this.title}`)),this.ui.inputBox.ariaLabel!==O&&(this.ui.inputBox.ariaLabel=O),this.ui.list.matchOnDescription=this.matchOnDescription,this.ui.list.matchOnDetail=this.matchOnDetail,this.ui.list.matchOnLabel=this.matchOnLabel,this.ui.list.matchOnLabelMode=this.matchOnLabelMode,this.ui.list.sortByLabel=this.sortByLabel,this.itemsUpdated)switch(this.itemsUpdated=!1,this.ui.list.setElements(this.items),this.ui.list.filter(this.filterValue(this.ui.inputBox.value)),this.ui.checkAll.checked=this.ui.list.getAllVisibleChecked(),this.ui.visibleCount.setCount(this.ui.list.getVisibleCount()),this.ui.count.setCount(this.ui.list.getCheckedCount()),this._itemActivation){case c.ItemActivation.NONE:this._itemActivation=c.ItemActivation.FIRST;break;case c.ItemActivation.SECOND:this.ui.list.focus(_.QuickInputListFocus.Second),this._itemActivation=c.ItemActivation.FIRST;break;case c.ItemActivation.LAST:this.ui.list.focus(_.QuickInputListFocus.Last),this._itemActivation=c.ItemActivation.FIRST;break;default:this.trySelectFirst();break}this.ui.container.classList.contains("show-checkboxes")!==!!this.canSelectMany&&(this.canSelectMany?this.ui.list.clearFocus():this.trySelectFirst()),this.activeItemsUpdated&&(this.activeItemsUpdated=!1,this.activeItemsToConfirm=this._activeItems,this.ui.list.setFocusedElements(this.activeItems),this.activeItemsToConfirm===this._activeItems&&(this.activeItemsToConfirm=null)),this.selectedItemsUpdated&&(this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=this._selectedItems,this.canSelectMany?this.ui.list.setCheckedElements(this.selectedItems):this.ui.list.setSelectedElements(this.selectedItems),this.selectedItemsToConfirm===this._selectedItems&&(this.selectedItemsToConfirm=null)),this.ui.customButton.label=this.customLabel||"",this.ui.customButton.element.title=this.customHover||"",this.ui.setComboboxAccessibility(!0),F.inputBox||(this.ui.list.domFocus(),this.canSelectMany&&this.ui.list.focus(_.QuickInputListFocus.First)),this.keepScrollPosition&&(this.scrollTop=I)}}E.DEFAULT_ARIA_LABEL=(0,g.localize)(3,null);class L extends s.Disposable{constructor(I){super(),this.options=I,this.comboboxAccessibility=!1,this.enabled=!0,this.onDidAcceptEmitter=this._register(new o.Emitter),this.onDidCustomEmitter=this._register(new o.Emitter),this.onDidTriggerButtonEmitter=this._register(new o.Emitter),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new o.Emitter),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new o.Emitter),this.onHide=this.onHideEmitter.event,this.idPrefix=I.idPrefix,this.parentElement=I.container,this.styles=I.styles,this.registerKeyModsListeners()}registerKeyModsListeners(){const I=R=>{this.keyMods.ctrlCmd=R.ctrlKey||R.metaKey,this.keyMods.alt=R.altKey};this._register(y.addDisposableListener(window,y.EventType.KEY_DOWN,I,!0)),this._register(y.addDisposableListener(window,y.EventType.KEY_UP,I,!0)),this._register(y.addDisposableListener(window,y.EventType.MOUSE_DOWN,I,!0))}getUI(){if(this.ui)return this.ui;const I=y.append(this.parentElement,p(".quick-input-widget.show-file-icons"));I.tabIndex=-1,I.style.display="none";const R=y.createStyleSheet(I),F=y.append(I,p(".quick-input-titlebar")),O=this._register(new k.ActionBar(F));O.domNode.classList.add("quick-input-left-action-bar");const x=y.append(F,p(".quick-input-title")),M=this._register(new k.ActionBar(F));M.domNode.classList.add("quick-input-right-action-bar");const P=y.append(I,p(".quick-input-description")),A=y.append(I,p(".quick-input-header")),B=y.append(A,p("input.quick-input-check-all"));B.type="checkbox",B.setAttribute("aria-label",(0,g.localize)(4,null)),this._register(y.addStandardDisposableListener(B,y.EventType.CHANGE,z=>{const Q=B.checked;Y.setAllVisibleChecked(Q)})),this._register(y.addDisposableListener(B,y.EventType.CLICK,z=>{(z.x||z.y)&&J.setFocus()}));const K=y.append(A,p(".quick-input-description")),T=y.append(A,p(".quick-input-and-message")),ee=y.append(T,p(".quick-input-filter")),J=this._register(new f.QuickInputBox(ee));J.setAttribute("aria-describedby",`${this.idPrefix}message`);const $=y.append(ee,p(".quick-input-visible-count"));$.setAttribute("aria-live","polite"),$.setAttribute("aria-atomic","true");const j=new w.CountBadge($,{countFormat:(0,g.localize)(5,null)}),G=y.append(ee,p(".quick-input-count"));G.setAttribute("aria-live","polite");const te=new w.CountBadge(G,{countFormat:(0,g.localize)(6,null)}),Z=y.append(A,p(".quick-input-action")),X=new D.Button(Z);X.label=(0,g.localize)(7,null),this._register(X.onDidClick(z=>{this.onDidAcceptEmitter.fire()}));const ie=y.append(A,p(".quick-input-action")),H=new D.Button(ie);H.label=(0,g.localize)(8,null),this._register(H.onDidClick(z=>{this.onDidCustomEmitter.fire()}));const ae=y.append(T,p(`#${this.idPrefix}message.quick-input-message`)),Y=this._register(new _.QuickInputList(I,this.idPrefix+"list",this.options));this._register(Y.onChangedAllVisibleChecked(z=>{B.checked=z})),this._register(Y.onChangedVisibleCount(z=>{j.setCount(z)})),this._register(Y.onChangedCheckedCount(z=>{te.setCount(z)})),this._register(Y.onLeave(()=>{setTimeout(()=>{J.setFocus(),this.controller instanceof E&&this.controller.canSelectMany&&Y.clearFocus()},0)})),this._register(Y.onDidChangeFocus(()=>{this.comboboxAccessibility&&this.getUI().inputBox.setAttribute("aria-activedescendant",this.getUI().list.getActiveDescendant()||"")}));const U=new C.ProgressBar(I);U.getContainer().classList.add("quick-input-progress");const le=y.trackFocus(I);return this._register(le),this._register(y.addDisposableListener(I,y.EventType.FOCUS,z=>{this.previousFocusElement=z.relatedTarget instanceof HTMLElement?z.relatedTarget:void 0},!0)),this._register(le.onDidBlur(()=>{!this.getUI().ignoreFocusOut&&!this.options.ignoreFocusOut()&&this.hide(c.QuickInputHideReason.Blur),this.previousFocusElement=void 0})),this._register(y.addDisposableListener(I,y.EventType.FOCUS,z=>{J.setFocus()})),this._register(y.addDisposableListener(I,y.EventType.KEY_DOWN,z=>{const Q=new v.StandardKeyboardEvent(z);switch(Q.keyCode){case 3:y.EventHelper.stop(z,!0),this.onDidAcceptEmitter.fire();break;case 9:y.EventHelper.stop(z,!0),this.hide(c.QuickInputHideReason.Gesture);break;case 2:if(!Q.altKey&&!Q.ctrlKey&&!Q.metaKey){const W=[".action-label.codicon"];I.classList.contains("show-checkboxes")?W.push("input"):W.push("input[type=text]"),this.getUI().list.isDisplayed()&&W.push(".monaco-list");const V=I.querySelectorAll(W.join(", "));Q.shiftKey&&Q.target===V[0]?(y.EventHelper.stop(z,!0),V[V.length-1].focus()):!Q.shiftKey&&Q.target===V[V.length-1]&&(y.EventHelper.stop(z,!0),V[0].focus())}break}})),this.ui={container:I,styleSheet:R,leftActionBar:O,titleBar:F,title:x,description1:P,description2:K,rightActionBar:M,checkAll:B,filterContainer:ee,inputBox:J,visibleCountContainer:$,visibleCount:j,countContainer:G,count:te,okContainer:Z,ok:X,message:ae,customButtonContainer:ie,customButton:H,list:Y,progressBar:U,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,isScreenReaderOptimized:()=>this.options.isScreenReaderOptimized(),show:z=>this.show(z),hide:()=>this.hide(),setVisibilities:z=>this.setVisibilities(z),setComboboxAccessibility:z=>this.setComboboxAccessibility(z),setEnabled:z=>this.setEnabled(z),setContextKey:z=>this.options.setContextKey(z)},this.updateStyles(),this.ui}pick(I,R={},F=i.CancellationToken.None){return new Promise((O,x)=>{let M=K=>{var T;M=O,(T=R.onKeyMods)===null||T===void 0||T.call(R,P.keyMods),O(K)};if(F.isCancellationRequested){M(void 0);return}const P=this.createQuickPick();let A;const B=[P,P.onDidAccept(()=>{if(P.canSelectMany)M(P.selectedItems.slice()),P.hide();else{const K=P.activeItems[0];K&&(M(K),P.hide())}}),P.onDidChangeActive(K=>{const T=K[0];T&&R.onDidFocus&&R.onDidFocus(T)}),P.onDidChangeSelection(K=>{if(!P.canSelectMany){const T=K[0];T&&(M(T),P.hide())}}),P.onDidTriggerItemButton(K=>R.onDidTriggerItemButton&&R.onDidTriggerItemButton(Object.assign(Object.assign({},K),{removeItem:()=>{const T=P.items.indexOf(K.item);if(T!==-1){const ee=P.items.slice(),J=ee.splice(T,1),$=P.activeItems.filter(G=>G!==J[0]),j=P.keepScrollPosition;P.keepScrollPosition=!0,P.items=ee,$&&(P.activeItems=$),P.keepScrollPosition=j}}}))),P.onDidChangeValue(K=>{A&&!K&&(P.activeItems.length!==1||P.activeItems[0]!==A)&&(P.activeItems=[A])}),F.onCancellationRequested(()=>{P.hide()}),P.onDidHide(()=>{(0,s.dispose)(B),M(void 0)})];P.title=R.title,P.canSelectMany=!!R.canPickMany,P.placeholder=R.placeHolder,P.ignoreFocusOut=!!R.ignoreFocusLost,P.matchOnDescription=!!R.matchOnDescription,P.matchOnDetail=!!R.matchOnDetail,P.matchOnLabel=R.matchOnLabel===void 0||R.matchOnLabel,P.autoFocusOnList=R.autoFocusOnList===void 0||R.autoFocusOnList,P.quickNavigate=R.quickNavigate,P.hideInput=!!R.hideInput,P.contextKey=R.contextKey,P.busy=!0,Promise.all([I,R.activeItem]).then(([K,T])=>{A=T,P.busy=!1,P.items=K,P.canSelectMany&&(P.selectedItems=K.filter(ee=>ee.type!=="separator"&&ee.picked)),A&&(P.activeItems=[A])}),P.show(),Promise.resolve(I).then(void 0,K=>{x(K),P.hide()})})}createQuickPick(){const I=this.getUI();return new E(I)}show(I){const R=this.getUI();this.onShowEmitter.fire();const F=this.controller;this.controller=I,F&&F.didHide(),this.setEnabled(!0),R.leftActionBar.clear(),R.title.textContent="",R.description1.textContent="",R.description2.textContent="",R.rightActionBar.clear(),R.checkAll.checked=!1,R.inputBox.placeholder="",R.inputBox.password=!1,R.inputBox.showDecoration(l.default.Ignore),R.visibleCount.setCount(0),R.count.setCount(0),y.reset(R.message),R.progressBar.stop(),R.list.setElements([]),R.list.matchOnDescription=!1,R.list.matchOnDetail=!1,R.list.matchOnLabel=!0,R.list.sortByLabel=!0,R.ignoreFocusOut=!1,this.setComboboxAccessibility(!1),R.inputBox.ariaLabel="";const O=this.options.backKeybindingLabel();m.tooltip=O?(0,g.localize)(9,null,O):(0,g.localize)(10,null),R.container.style.display="",this.updateLayout(),R.inputBox.setFocus()}setVisibilities(I){const R=this.getUI();R.title.style.display=I.title?"":"none",R.description1.style.display=I.description&&(I.inputBox||I.checkAll)?"":"none",R.description2.style.display=I.description&&!(I.inputBox||I.checkAll)?"":"none",R.checkAll.style.display=I.checkAll?"":"none",R.filterContainer.style.display=I.inputBox?"":"none",R.visibleCountContainer.style.display=I.visibleCount?"":"none",R.countContainer.style.display=I.count?"":"none",R.okContainer.style.display=I.ok?"":"none",R.customButtonContainer.style.display=I.customButton?"":"none",R.message.style.display=I.message?"":"none",R.progressBar.getContainer().style.display=I.progressBar?"":"none",R.list.display(!!I.list),R.container.classList[I.checkBox?"add":"remove"]("show-checkboxes"),this.updateLayout()}setComboboxAccessibility(I){if(I!==this.comboboxAccessibility){const R=this.getUI();this.comboboxAccessibility=I,this.comboboxAccessibility?(R.inputBox.setAttribute("role","combobox"),R.inputBox.setAttribute("aria-haspopup","true"),R.inputBox.setAttribute("aria-autocomplete","list"),R.inputBox.setAttribute("aria-activedescendant",R.list.getActiveDescendant()||"")):(R.inputBox.removeAttribute("role"),R.inputBox.removeAttribute("aria-haspopup"),R.inputBox.removeAttribute("aria-autocomplete"),R.inputBox.removeAttribute("aria-activedescendant"))}}setEnabled(I){if(I!==this.enabled){this.enabled=I;for(const R of this.getUI().leftActionBar.viewItems)R.getAction().enabled=I;for(const R of this.getUI().rightActionBar.viewItems)R.getAction().enabled=I;this.getUI().checkAll.disabled=!I,this.getUI().ok.enabled=I,this.getUI().list.enabled=I}}hide(I){var R;const F=this.controller;if(F){const O=!(!((R=this.ui)===null||R===void 0)&&R.container.contains(document.activeElement));if(this.controller=null,this.onHideEmitter.fire(),this.getUI().container.style.display="none",!O){let x=this.previousFocusElement;for(;x&&!x.offsetParent;)x=(0,a.withNullAsUndefined)(x.parentElement);x?.offsetParent?(x.focus(),this.previousFocusElement=void 0):this.options.returnFocus()}F.didHide(I)}}layout(I,R){this.dimension=I,this.titleBarOffset=R,this.updateLayout()}updateLayout(){if(this.ui){this.ui.container.style.top=`${this.titleBarOffset}px`;const I=this.ui.container.style,R=Math.min(this.dimension.width*.62,L.MAX_WIDTH);I.width=R+"px",I.marginLeft="-"+R/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&this.dimension.height*.4)}}applyStyles(I){this.styles=I,this.updateStyles()}updateStyles(){if(this.ui){const{quickInputTitleBackground:I,quickInputBackground:R,quickInputForeground:F,contrastBorder:O,widgetShadow:x}=this.styles.widget;this.ui.titleBar.style.backgroundColor=I?I.toString():"",this.ui.container.style.backgroundColor=R?R.toString():"",this.ui.container.style.color=F?F.toString():"",this.ui.container.style.border=O?`1px solid ${O}`:"",this.ui.container.style.boxShadow=x?`0 0 8px 2px ${x}`:"",this.ui.inputBox.style(this.styles.inputBox),this.ui.count.style(this.styles.countBadge),this.ui.ok.style(this.styles.button),this.ui.customButton.style(this.styles.button),this.ui.progressBar.style(this.styles.progressBar),this.ui.list.style(this.styles.list);const M=[];this.styles.list.pickerGroupBorder&&M.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.list.pickerGroupBorder}; }`),this.styles.list.pickerGroupForeground&&M.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.list.pickerGroupForeground}; }`),(this.styles.keybindingLabel.keybindingLabelBackground||this.styles.keybindingLabel.keybindingLabelBorder||this.styles.keybindingLabel.keybindingLabelBottomBorder||this.styles.keybindingLabel.keybindingLabelShadow||this.styles.keybindingLabel.keybindingLabelForeground)&&(M.push(".quick-input-list .monaco-keybinding > .monaco-keybinding-key {"),this.styles.keybindingLabel.keybindingLabelBackground&&M.push(`background-color: ${this.styles.keybindingLabel.keybindingLabelBackground};`),this.styles.keybindingLabel.keybindingLabelBorder&&M.push(`border-color: ${this.styles.keybindingLabel.keybindingLabelBorder};`),this.styles.keybindingLabel.keybindingLabelBottomBorder&&M.push(`border-bottom-color: ${this.styles.keybindingLabel.keybindingLabelBottomBorder};`),this.styles.keybindingLabel.keybindingLabelShadow&&M.push(`box-shadow: inset 0 -1px 0 ${this.styles.keybindingLabel.keybindingLabelShadow};`),this.styles.keybindingLabel.keybindingLabelForeground&&M.push(`color: ${this.styles.keybindingLabel.keybindingLabelForeground};`),M.push("}"));const P=M.join(` `);P!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=P)}}}e.QuickInputController=L,L.MAX_WIDTH=600}),define(oe[522],se([4,5]),function(q,e){return q.create("vs/editor/browser/controller/textAreaHandler",e)}),define(oe[523],se([4,5]),function(q,e){return q.create("vs/editor/browser/coreCommands",e)}),define(oe[524],se([4,5]),function(q,e){return q.create("vs/editor/browser/editorExtensions",e)}),define(oe[525],se([4,5]),function(q,e){return q.create("vs/editor/browser/widget/codeEditorWidget",e)}),define(oe[526],se([4,5]),function(q,e){return q.create("vs/editor/browser/widget/diffEditorWidget",e)}),define(oe[527],se([4,5]),function(q,e){return q.create("vs/editor/browser/widget/diffReview",e)}),define(oe[528],se([4,5]),function(q,e){return q.create("vs/editor/browser/widget/inlineDiffMargin",e)}),define(oe[529],se([1,0,528,7,42,2,3,27]),function(q,e,y,v,k,D,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InlineDiffMargin=void 0;class C extends D.Disposable{constructor(u,n,i,t,o,s){super(),this._viewZoneId=u,this._marginDomNode=n,this.editor=i,this.diff=t,this._contextMenuService=o,this._clipboardService=s,this._visibility=!1,this._marginDomNode.style.zIndex="10",this._diffActions=document.createElement("div"),this._diffActions.className=b.Codicon.lightBulb.classNames+" lightbulb-glyph",this._diffActions.style.position="absolute";const d=i.getOption(61),l=i.getModel().getEOL();this._diffActions.style.right="0px",this._diffActions.style.visibility="hidden",this._diffActions.style.height=`${d}px`,this._diffActions.style.lineHeight=`${d}px`,this._marginDomNode.appendChild(this._diffActions);const a=[],r=t.modifiedEndLineNumber===0;a.push(new k.Action("diff.clipboard.copyDeletedContent",r?t.originalEndLineNumber>t.modifiedStartLineNumber?y.localize(0,null):y.localize(1,null):t.originalEndLineNumber>t.modifiedStartLineNumber?y.localize(2,null):y.localize(3,null),void 0,!0,()=>be(this,void 0,void 0,function*(){const _=new w.Range(t.originalStartLineNumber,1,t.originalEndLineNumber+1,1),p=t.originalModel.getValueInRange(_);yield this._clipboardService.writeText(p)})));let c=0,g;t.originalEndLineNumber>t.modifiedStartLineNumber&&(g=new k.Action("diff.clipboard.copyDeletedLineContent",r?y.localize(4,null,t.originalStartLineNumber):y.localize(5,null,t.originalStartLineNumber),void 0,!0,()=>be(this,void 0,void 0,function*(){const _=t.originalModel.getLineContent(t.originalStartLineNumber+c);if(_===""){const p=t.originalModel.getEndOfLineSequence();yield this._clipboardService.writeText(p===0?` `:`\r `)}else yield this._clipboardService.writeText(_)})),a.push(g)),i.getOption(83)||a.push(new k.Action("diff.inline.revertChange",y.localize(6,null),void 0,!0,()=>be(this,void 0,void 0,function*(){const _=new w.Range(t.originalStartLineNumber,1,t.originalEndLineNumber,t.originalModel.getLineMaxColumn(t.originalEndLineNumber)),p=t.originalModel.getValueInRange(_);if(t.modifiedEndLineNumber===0){const m=i.getModel().getLineMaxColumn(t.modifiedStartLineNumber);i.executeEdits("diffEditor",[{range:new w.Range(t.modifiedStartLineNumber,m,t.modifiedStartLineNumber,m),text:l+p}])}else{const m=i.getModel().getLineMaxColumn(t.modifiedEndLineNumber);i.executeEdits("diffEditor",[{range:new w.Range(t.modifiedStartLineNumber,1,t.modifiedEndLineNumber,m),text:p}])}})));const f=(_,p)=>{this._contextMenuService.showContextMenu({getAnchor:()=>({x:_,y:p}),getActions:()=>(g&&(g.label=r?y.localize(7,null,t.originalStartLineNumber+c):y.localize(8,null,t.originalStartLineNumber+c)),a),autoSelectFirstItem:!0})};this._register(v.addStandardDisposableListener(this._diffActions,"mousedown",_=>{const{top:p,height:m}=v.getDomNodePagePosition(this._diffActions),S=Math.floor(d/3);_.preventDefault(),f(_.posx,p+m+S)})),this._register(i.onMouseMove(_=>{_.target.type===8||_.target.type===5?_.target.detail.viewZoneId===this._viewZoneId?(this.visibility=!0,c=this._updateLightBulbPosition(this._marginDomNode,_.event.browserEvent.y,d)):this.visibility=!1:this.visibility=!1})),this._register(i.onMouseDown(_=>{!_.event.rightButton||(_.target.type===8||_.target.type===5)&&_.target.detail.viewZoneId===this._viewZoneId&&(_.event.preventDefault(),c=this._updateLightBulbPosition(this._marginDomNode,_.event.browserEvent.y,d),f(_.event.posx,_.event.posy+d))}))}get visibility(){return this._visibility}set visibility(u){this._visibility!==u&&(this._visibility=u,u?this._diffActions.style.visibility="visible":this._diffActions.style.visibility="hidden")}_updateLightBulbPosition(u,n,i){const{top:t}=v.getDomNodePagePosition(u),o=n-t,s=Math.floor(o/i),d=s*i;if(this._diffActions.style.top=`${d}px`,this.diff.viewLineCounts){let l=0;for(let a=0;a<this.diff.viewLineCounts.length;a++)if(l+=this.diff.viewLineCounts[a],s<l)return a}return s}}e.InlineDiffMargin=C}),define(oe[530],se([4,5]),function(q,e){return q.create("vs/editor/common/config/editorConfigurationSchema",e)}),define(oe[531],se([4,5]),function(q,e){return q.create("vs/editor/common/config/editorOptions",e)}),define(oe[36],se([1,0,531,17,128,18,40,153]),function(q,e,y,v,k,D,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorOptions=e.editorOptionsRegistry=e.EDITOR_FONT_DEFAULTS=e.unicodeHighlightConfigKeys=e.inUntrustedWorkspace=e.filterValidationDecorations=e.EditorLayoutInfoComputer=e.EditorFontLigatures=e.TextEditorCursorStyle=e.stringSet=e.clampedInt=e.boolean=e.ApplyUpdateResult=e.ComputeOptionsMemory=e.ConfigurationChangedEvent=e.MINIMAP_GUTTER_WIDTH=void 0,e.MINIMAP_GUTTER_WIDTH=8;class C{constructor(re){this._values=re}hasChanged(re){return this._values[re]}}e.ConfigurationChangedEvent=C;class h{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}e.ComputeOptionsMemory=h;class u{constructor(re,ge,Se,Le){this.id=re,this.name=ge,this.defaultValue=Se,this.schema=Le}applyUpdate(re,ge){return i(re,ge)}compute(re,ge,Se){return Se}}class n{constructor(re,ge){this.newValue=re,this.didChange=ge}}e.ApplyUpdateResult=n;function i(he,re){if(typeof he!="object"||typeof re!="object"||!he||!re)return new n(re,he!==re);if(Array.isArray(he)||Array.isArray(re)){const Se=Array.isArray(he)&&Array.isArray(re)&&D.equals(he,re);return new n(re,!Se)}let ge=!1;for(const Se in re)if(re.hasOwnProperty(Se)){const Le=i(he[Se],re[Se]);Le.didChange&&(he[Se]=Le.newValue,ge=!0)}return new n(he,ge)}class t{constructor(re){this.schema=void 0,this.id=re,this.name="_never_",this.defaultValue=void 0}applyUpdate(re,ge){return i(re,ge)}validate(re){return this.defaultValue}}class o{constructor(re,ge,Se,Le){this.id=re,this.name=ge,this.defaultValue=Se,this.schema=Le}applyUpdate(re,ge){return i(re,ge)}validate(re){return typeof re>"u"?this.defaultValue:re}compute(re,ge,Se){return Se}}function s(he,re){return typeof he>"u"?re:he==="false"?!1:!!he}e.boolean=s;class d extends o{constructor(re,ge,Se,Le=void 0){typeof Le<"u"&&(Le.type="boolean",Le.default=Se),super(re,ge,Se,Le)}validate(re){return s(re,this.defaultValue)}}function l(he,re,ge,Se){if(typeof he>"u")return re;let Le=parseInt(he,10);return isNaN(Le)?re:(Le=Math.max(ge,Le),Le=Math.min(Se,Le),Le|0)}e.clampedInt=l;class a extends o{constructor(re,ge,Se,Le,Ne,Ae=void 0){typeof Ae<"u"&&(Ae.type="integer",Ae.default=Se,Ae.minimum=Le,Ae.maximum=Ne),super(re,ge,Se,Ae),this.minimum=Le,this.maximum=Ne}static clampedInt(re,ge,Se,Le){return l(re,ge,Se,Le)}validate(re){return a.clampedInt(re,this.defaultValue,this.minimum,this.maximum)}}class r extends o{constructor(re,ge,Se,Le,Ne){typeof Ne<"u"&&(Ne.type="number",Ne.default=Se),super(re,ge,Se,Ne),this.validationFn=Le}static clamp(re,ge,Se){return re<ge?ge:re>Se?Se:re}static float(re,ge){if(typeof re=="number")return re;if(typeof re>"u")return ge;const Se=parseFloat(re);return isNaN(Se)?ge:Se}validate(re){return this.validationFn(r.float(re,this.defaultValue))}}class c extends o{static string(re,ge){return typeof re!="string"?ge:re}constructor(re,ge,Se,Le=void 0){typeof Le<"u"&&(Le.type="string",Le.default=Se),super(re,ge,Se,Le)}validate(re){return c.string(re,this.defaultValue)}}function g(he,re,ge){return typeof he!="string"||ge.indexOf(he)===-1?re:he}e.stringSet=g;class f extends o{constructor(re,ge,Se,Le,Ne=void 0){typeof Ne<"u"&&(Ne.type="string",Ne.enum=Le,Ne.default=Se),super(re,ge,Se,Ne),this._allowedValues=Le}validate(re){return g(re,this.defaultValue,this._allowedValues)}}class _ extends u{constructor(re,ge,Se,Le,Ne,Ae,Pe=void 0){typeof Pe<"u"&&(Pe.type="string",Pe.enum=Ne,Pe.default=Le),super(re,ge,Se,Pe),this._allowedValues=Ne,this._convert=Ae}validate(re){return typeof re!="string"?this.defaultValue:this._allowedValues.indexOf(re)===-1?this.defaultValue:this._convert(re)}}function p(he){switch(he){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class m extends u{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[y.localize(0,null),y.localize(1,null),y.localize(2,null)],default:"auto",description:y.localize(3,null)})}validate(re){switch(re){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(re,ge,Se){return Se===0?re.accessibilitySupport:Se}}class S extends u{constructor(){const re={insertSpace:!0,ignoreEmptyLines:!0};super(19,"comments",re,{"editor.comments.insertSpace":{type:"boolean",default:re.insertSpace,description:y.localize(4,null)},"editor.comments.ignoreEmptyLines":{type:"boolean",default:re.ignoreEmptyLines,description:y.localize(5,null)}})}validate(re){if(!re||typeof re!="object")return this.defaultValue;const ge=re;return{insertSpace:s(ge.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:s(ge.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function E(he){switch(he){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var L;(function(he){he[he.Line=1]="Line",he[he.Block=2]="Block",he[he.Underline=3]="Underline",he[he.LineThin=4]="LineThin",he[he.BlockOutline=5]="BlockOutline",he[he.UnderlineThin=6]="UnderlineThin"})(L=e.TextEditorCursorStyle||(e.TextEditorCursorStyle={}));function N(he){switch(he){case"line":return L.Line;case"block":return L.Block;case"underline":return L.Underline;case"line-thin":return L.LineThin;case"block-outline":return L.BlockOutline;case"underline-thin":return L.UnderlineThin}}class I extends t{constructor(){super(130)}compute(re,ge,Se){const Le=["monaco-editor"];return ge.get(35)&&Le.push(ge.get(35)),re.extraEditorClassName&&Le.push(re.extraEditorClassName),ge.get(68)==="default"?Le.push("mouse-default"):ge.get(68)==="copy"&&Le.push("mouse-copy"),ge.get(102)&&Le.push("showUnused"),ge.get(128)&&Le.push("showDeprecated"),Le.join(" ")}}class R extends d{constructor(){super(33,"emptySelectionClipboard",!0,{description:y.localize(6,null)})}compute(re,ge,Se){return Se&&re.emptySelectionClipboard}}class F extends u{constructor(){const re={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(37,"find",re,{"editor.find.cursorMoveOnType":{type:"boolean",default:re.cursorMoveOnType,description:y.localize(7,null)},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:re.seedSearchStringFromSelection,enumDescriptions:[y.localize(8,null),y.localize(9,null),y.localize(10,null)],description:y.localize(11,null)},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:re.autoFindInSelection,enumDescriptions:[y.localize(12,null),y.localize(13,null),y.localize(14,null)],description:y.localize(15,null)},"editor.find.globalFindClipboard":{type:"boolean",default:re.globalFindClipboard,description:y.localize(16,null),included:v.isMacintosh},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:re.addExtraSpaceOnTop,description:y.localize(17,null)},"editor.find.loop":{type:"boolean",default:re.loop,description:y.localize(18,null)}})}validate(re){if(!re||typeof re!="object")return this.defaultValue;const ge=re;return{cursorMoveOnType:s(ge.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof re.seedSearchStringFromSelection=="boolean"?re.seedSearchStringFromSelection?"always":"never":g(ge.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof re.autoFindInSelection=="boolean"?re.autoFindInSelection?"always":"never":g(ge.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:s(ge.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:s(ge.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:s(ge.loop,this.defaultValue.loop)}}}class O extends u{constructor(){super(47,"fontLigatures",O.OFF,{anyOf:[{type:"boolean",description:y.localize(19,null)},{type:"string",description:y.localize(20,null)}],description:y.localize(21,null),default:!1})}validate(re){return typeof re>"u"?this.defaultValue:typeof re=="string"?re==="false"?O.OFF:re==="true"?O.ON:re:re?O.ON:O.OFF}}e.EditorFontLigatures=O,O.OFF='"liga" off, "calt" off',O.ON='"liga" on, "calt" on';class x extends t{constructor(){super(46)}compute(re,ge,Se){return re.fontInfo}}class M extends o{constructor(){super(48,"fontSize",e.EDITOR_FONT_DEFAULTS.fontSize,{type:"number",minimum:6,maximum:100,default:e.EDITOR_FONT_DEFAULTS.fontSize,description:y.localize(22,null)})}validate(re){const ge=r.float(re,this.defaultValue);return ge===0?e.EDITOR_FONT_DEFAULTS.fontSize:r.clamp(ge,6,100)}compute(re,ge,Se){return re.fontInfo.fontSize}}class P extends u{constructor(){super(49,"fontWeight",e.EDITOR_FONT_DEFAULTS.fontWeight,{anyOf:[{type:"number",minimum:P.MINIMUM_VALUE,maximum:P.MAXIMUM_VALUE,errorMessage:y.localize(23,null)},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:P.SUGGESTION_VALUES}],default:e.EDITOR_FONT_DEFAULTS.fontWeight,description:y.localize(24,null)})}validate(re){return re==="normal"||re==="bold"?re:String(a.clampedInt(re,e.EDITOR_FONT_DEFAULTS.fontWeight,P.MINIMUM_VALUE,P.MAXIMUM_VALUE))}}P.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],P.MINIMUM_VALUE=1,P.MAXIMUM_VALUE=1e3;class A extends u{constructor(){const re={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},ge={type:"string",enum:["peek","gotoAndPeek","goto"],default:re.multiple,enumDescriptions:[y.localize(25,null),y.localize(26,null),y.localize(27,null)]},Se=["","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(53,"gotoLocation",re,{"editor.gotoLocation.multiple":{deprecationMessage:y.localize(28,null)},"editor.gotoLocation.multipleDefinitions":Object.assign({description:y.localize(29,null)},ge),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:y.localize(30,null)},ge),"editor.gotoLocation.multipleDeclarations":Object.assign({description:y.localize(31,null)},ge),"editor.gotoLocation.multipleImplementations":Object.assign({description:y.localize(32,null)},ge),"editor.gotoLocation.multipleReferences":Object.assign({description:y.localize(33,null)},ge),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:re.alternativeDefinitionCommand,enum:Se,description:y.localize(34,null)},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:re.alternativeTypeDefinitionCommand,enum:Se,description:y.localize(35,null)},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:re.alternativeDeclarationCommand,enum:Se,description:y.localize(36,null)},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:re.alternativeImplementationCommand,enum:Se,description:y.localize(37,null)},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:re.alternativeReferenceCommand,enum:Se,description:y.localize(38,null)}})}validate(re){var ge,Se,Le,Ne,Ae;if(!re||typeof re!="object")return this.defaultValue;const Pe=re;return{multiple:g(Pe.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(ge=Pe.multipleDefinitions)!==null&&ge!==void 0?ge:g(Pe.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(Se=Pe.multipleTypeDefinitions)!==null&&Se!==void 0?Se:g(Pe.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(Le=Pe.multipleDeclarations)!==null&&Le!==void 0?Le:g(Pe.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(Ne=Pe.multipleImplementations)!==null&&Ne!==void 0?Ne:g(Pe.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(Ae=Pe.multipleReferences)!==null&&Ae!==void 0?Ae:g(Pe.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:c.string(Pe.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:c.string(Pe.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:c.string(Pe.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:c.string(Pe.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:c.string(Pe.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class B extends u{constructor(){const re={enabled:!0,delay:300,sticky:!0,above:!0};super(55,"hover",re,{"editor.hover.enabled":{type:"boolean",default:re.enabled,description:y.localize(39,null)},"editor.hover.delay":{type:"number",default:re.delay,minimum:0,maximum:1e4,description:y.localize(40,null)},"editor.hover.sticky":{type:"boolean",default:re.sticky,description:y.localize(41,null)},"editor.hover.above":{type:"boolean",default:re.above,description:y.localize(42,null)}})}validate(re){if(!re||typeof re!="object")return this.defaultValue;const ge=re;return{enabled:s(ge.enabled,this.defaultValue.enabled),delay:a.clampedInt(ge.delay,this.defaultValue.delay,0,1e4),sticky:s(ge.sticky,this.defaultValue.sticky),above:s(ge.above,this.defaultValue.above)}}}class K extends t{constructor(){super(133)}compute(re,ge,Se){return K.computeLayout(ge,{memory:re.memory,outerWidth:re.outerWidth,outerHeight:re.outerHeight,isDominatedByLongLines:re.isDominatedByLongLines,lineHeight:re.fontInfo.lineHeight,viewLineCount:re.viewLineCount,lineNumbersDigitCount:re.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:re.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:re.fontInfo.maxDigitWidth,pixelRatio:re.pixelRatio})}static computeContainedMinimapLineCount(re){const ge=re.height/re.lineHeight,Se=re.scrollBeyondLastLine?ge-1:0,Le=(re.viewLineCount+Se)/(re.pixelRatio*re.height),Ne=Math.floor(re.viewLineCount/Le);return{typicalViewportLineCount:ge,extraLinesBeyondLastLine:Se,desiredRatio:Le,minimapLineCount:Ne}}static _computeMinimapLayout(re,ge){const Se=re.outerWidth,Le=re.outerHeight,Ne=re.pixelRatio;if(!re.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(Ne*Le),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:Le};const Ae=ge.stableMinimapLayoutInput,Pe=Ae&&re.outerHeight===Ae.outerHeight&&re.lineHeight===Ae.lineHeight&&re.typicalHalfwidthCharacterWidth===Ae.typicalHalfwidthCharacterWidth&&re.pixelRatio===Ae.pixelRatio&&re.scrollBeyondLastLine===Ae.scrollBeyondLastLine&&re.minimap.enabled===Ae.minimap.enabled&&re.minimap.side===Ae.minimap.side&&re.minimap.size===Ae.minimap.size&&re.minimap.showSlider===Ae.minimap.showSlider&&re.minimap.renderCharacters===Ae.minimap.renderCharacters&&re.minimap.maxColumn===Ae.minimap.maxColumn&&re.minimap.scale===Ae.minimap.scale&&re.verticalScrollbarWidth===Ae.verticalScrollbarWidth&&re.isViewportWrapping===Ae.isViewportWrapping,Ce=re.lineHeight,ve=re.typicalHalfwidthCharacterWidth,De=re.scrollBeyondLastLine,Be=re.minimap.renderCharacters;let Re=Ne>=2?Math.round(re.minimap.scale*2):re.minimap.scale;const Ve=re.minimap.maxColumn,Ue=re.minimap.size,Je=re.minimap.side,rt=re.verticalScrollbarWidth,gt=re.viewLineCount,ft=re.remainingWidth,xe=re.isViewportWrapping,$e=Be?2:3;let He=Math.floor(Ne*Le);const et=He/Ne;let je=!1,pt=!1,it=$e*Re,Ct=Re/Ne,nt=1;if(Ue==="fill"||Ue==="fit"){const{typicalViewportLineCount:at,extraLinesBeyondLastLine:lt,desiredRatio:_t,minimapLineCount:xt}=K.computeContainedMinimapLineCount({viewLineCount:gt,scrollBeyondLastLine:De,height:Le,lineHeight:Ce,pixelRatio:Ne});if(gt/xt>1)je=!0,pt=!0,Re=1,it=1,Ct=Re/Ne;else{let Ft=!1,Ot=Re+1;if(Ue==="fit"){const Pt=Math.ceil((gt+lt)*it);xe&&Pe&&ft<=ge.stableFitRemainingWidth?(Ft=!0,Ot=ge.stableFitMaxMinimapScale):Ft=Pt>He}if(Ue==="fill"||Ft){je=!0;const Pt=Re;it=Math.min(Ce*Ne,Math.max(1,Math.floor(1/_t))),xe&&Pe&&ft<=ge.stableFitRemainingWidth&&(Ot=ge.stableFitMaxMinimapScale),Re=Math.min(Ot,Math.max(1,Math.floor(it/$e))),Re>Pt&&(nt=Math.min(2,Re/Pt)),Ct=Re/Ne/nt,He=Math.ceil(Math.max(at,gt+lt)*it),xe?(ge.stableMinimapLayoutInput=re,ge.stableFitRemainingWidth=ft,ge.stableFitMaxMinimapScale=Re):(ge.stableMinimapLayoutInput=null,ge.stableFitRemainingWidth=0)}}}const ht=Math.floor(Ve*Ct),Ke=Math.min(ht,Math.max(0,Math.floor((ft-rt-2)*Ct/(ve+Ct)))+e.MINIMAP_GUTTER_WIDTH);let Oe=Math.floor(Ne*Ke);const qe=Oe/Ne;Oe=Math.floor(Oe*nt);const Ye=Be?1:2,tt=Je==="left"?0:Se-Ke-rt;return{renderMinimap:Ye,minimapLeft:tt,minimapWidth:Ke,minimapHeightIsEditorHeight:je,minimapIsSampling:pt,minimapScale:Re,minimapLineHeight:it,minimapCanvasInnerWidth:Oe,minimapCanvasInnerHeight:He,minimapCanvasOuterWidth:qe,minimapCanvasOuterHeight:et}}static computeLayout(re,ge){const Se=ge.outerWidth|0,Le=ge.outerHeight|0,Ne=ge.lineHeight|0,Ae=ge.lineNumbersDigitCount|0,Pe=ge.typicalHalfwidthCharacterWidth,Ce=ge.maxDigitWidth,ve=ge.pixelRatio,De=ge.viewLineCount,Be=re.get(125),Re=Be==="inherit"?re.get(124):Be,Ve=Re==="inherit"?re.get(120):Re,Ue=re.get(123),Je=re.get(2),rt=ge.isDominatedByLongLines,gt=re.get(52),ft=re.get(62).renderType!==0,xe=re.get(63),$e=re.get(96),He=re.get(67),et=re.get(94),je=et.verticalScrollbarSize,pt=et.verticalHasArrows,it=et.arrowSize,Ct=et.horizontalScrollbarSize,nt=re.get(60),ht=re.get(39),Ke=re.get(101)!=="never";let Oe;if(typeof nt=="string"&&/^\d+(\.\d+)?ch$/.test(nt)){const wi=parseFloat(nt.substr(0,nt.length-2));Oe=a.clampedInt(wi*Pe,0,0,1e3)}else Oe=a.clampedInt(nt,0,0,1e3);ht&&Ke&&(Oe+=16);let qe=0;if(ft){const wi=Math.max(Ae,xe);qe=Math.round(wi*Ce)}let Ye=0;gt&&(Ye=Ne);let tt=0,at=tt+Ye,lt=at+qe,_t=lt+Oe;const xt=Se-Ye-qe-Oe;let Ft=!1,Ot=!1,Pt=-1;Je!==2&&(Re==="inherit"&&rt?(Ft=!0,Ot=!0):Ve==="on"||Ve==="bounded"?Ot=!0:Ve==="wordWrapColumn"&&(Pt=Ue));const yt=K._computeMinimapLayout({outerWidth:Se,outerHeight:Le,lineHeight:Ne,typicalHalfwidthCharacterWidth:Pe,pixelRatio:ve,scrollBeyondLastLine:$e,minimap:He,verticalScrollbarWidth:je,viewLineCount:De,remainingWidth:xt,isViewportWrapping:Ot},ge.memory||new h);yt.renderMinimap!==0&&yt.minimapLeft===0&&(tt+=yt.minimapWidth,at+=yt.minimapWidth,lt+=yt.minimapWidth,_t+=yt.minimapWidth);const Ut=xt-yt.minimapWidth,Qt=Math.max(1,Math.floor((Ut-je-2)/Pe)),$t=pt?it:0;return Ot&&(Pt=Math.max(1,Qt),Ve==="bounded"&&(Pt=Math.min(Pt,Ue))),{width:Se,height:Le,glyphMarginLeft:tt,glyphMarginWidth:Ye,lineNumbersLeft:at,lineNumbersWidth:qe,decorationsLeft:lt,decorationsWidth:Oe,contentLeft:_t,contentWidth:Ut,minimap:yt,viewportColumn:Qt,isWordWrapMinified:Ft,isViewportWrapping:Ot,wrappingColumn:Pt,verticalScrollbarWidth:je,horizontalScrollbarHeight:Ct,overviewRuler:{top:$t,width:je,height:Le-2*$t,right:0}}}}e.EditorLayoutInfoComputer=K;class T extends u{constructor(){const re={enabled:!0};super(59,"lightbulb",re,{"editor.lightbulb.enabled":{type:"boolean",default:re.enabled,description:y.localize(43,null)}})}validate(re){return!re||typeof re!="object"?this.defaultValue:{enabled:s(re.enabled,this.defaultValue.enabled)}}}class ee extends u{constructor(){const re={stickyScroll:{enabled:!1}};super(34,"experimental",re,{"editor.experimental.stickyScroll.enabled":{type:"boolean",default:re.stickyScroll.enabled,description:y.localize(44,null)}})}validate(re){var ge;return!re||typeof re!="object"?this.defaultValue:{stickyScroll:{enabled:s((ge=re.stickyScroll)===null||ge===void 0?void 0:ge.enabled,this.defaultValue.stickyScroll.enabled)}}}}class J extends u{constructor(){const re={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(129,"inlayHints",re,{"editor.inlayHints.enabled":{type:"string",default:re.enabled,description:y.localize(45,null),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[y.localize(46,null),y.localize(47,null),y.localize(48,null),y.localize(49,null)]},"editor.inlayHints.fontSize":{type:"number",default:re.fontSize,markdownDescription:y.localize(50,null,"`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:re.fontFamily,markdownDescription:y.localize(51,null,"`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:re.padding,description:y.localize(52,null)}})}validate(re){if(!re||typeof re!="object")return this.defaultValue;const ge=re;return typeof ge.enabled=="boolean"&&(ge.enabled=ge.enabled?"on":"off"),{enabled:g(ge.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:a.clampedInt(ge.fontSize,this.defaultValue.fontSize,0,100),fontFamily:c.string(ge.fontFamily,this.defaultValue.fontFamily),padding:s(ge.padding,this.defaultValue.padding)}}}class $ extends r{constructor(){super(61,"lineHeight",e.EDITOR_FONT_DEFAULTS.lineHeight,re=>r.clamp(re,0,150),{markdownDescription:y.localize(53,null)})}compute(re,ge,Se){return re.fontInfo.lineHeight}}class j extends u{constructor(){const re={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1};super(67,"minimap",re,{"editor.minimap.enabled":{type:"boolean",default:re.enabled,description:y.localize(54,null)},"editor.minimap.autohide":{type:"boolean",default:re.autohide,description:y.localize(55,null)},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[y.localize(56,null),y.localize(57,null),y.localize(58,null)],default:re.size,description:y.localize(59,null)},"editor.minimap.side":{type:"string",enum:["left","right"],default:re.side,description:y.localize(60,null)},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:re.showSlider,description:y.localize(61,null)},"editor.minimap.scale":{type:"number",default:re.scale,minimum:1,maximum:3,enum:[1,2,3],description:y.localize(62,null)},"editor.minimap.renderCharacters":{type:"boolean",default:re.renderCharacters,description:y.localize(63,null)},"editor.minimap.maxColumn":{type:"number",default:re.maxColumn,description:y.localize(64,null)}})}validate(re){if(!re||typeof re!="object")return this.defaultValue;const ge=re;return{enabled:s(ge.enabled,this.defaultValue.enabled),autohide:s(ge.autohide,this.defaultValue.autohide),size:g(ge.size,this.defaultValue.size,["proportional","fill","fit"]),side:g(ge.side,this.defaultValue.side,["right","left"]),showSlider:g(ge.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:s(ge.renderCharacters,this.defaultValue.renderCharacters),scale:a.clampedInt(ge.scale,1,1,3),maxColumn:a.clampedInt(ge.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}function G(he){return he==="ctrlCmd"?v.isMacintosh?"metaKey":"ctrlKey":"altKey"}class te extends u{constructor(){super(77,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:y.localize(65,null)},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:y.localize(66,null)}})}validate(re){if(!re||typeof re!="object")return this.defaultValue;const ge=re;return{top:a.clampedInt(ge.top,0,0,1e3),bottom:a.clampedInt(ge.bottom,0,0,1e3)}}}class Z extends u{constructor(){const re={enabled:!0,cycle:!1};super(78,"parameterHints",re,{"editor.parameterHints.enabled":{type:"boolean",default:re.enabled,description:y.localize(67,null)},"editor.parameterHints.cycle":{type:"boolean",default:re.cycle,description:y.localize(68,null)}})}validate(re){if(!re||typeof re!="object")return this.defaultValue;const ge=re;return{enabled:s(ge.enabled,this.defaultValue.enabled),cycle:s(ge.cycle,this.defaultValue.cycle)}}}class X extends t{constructor(){super(131)}compute(re,ge,Se){return re.pixelRatio}}class ie extends u{constructor(){const re={other:"on",comments:"off",strings:"off"},ge=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[y.localize(69,null),y.localize(70,null),y.localize(71,null)]}];super(81,"quickSuggestions",re,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:ge,default:re.strings,description:y.localize(72,null)},comments:{anyOf:ge,default:re.comments,description:y.localize(73,null)},other:{anyOf:ge,default:re.other,description:y.localize(74,null)}},default:re,markdownDescription:y.localize(75,null,"#editor.suggestOnTriggerCharacters#")}),this.defaultValue=re}validate(re){if(typeof re=="boolean"){const ve=re?"on":"off";return{comments:ve,strings:ve,other:ve}}if(!re||typeof re!="object")return this.defaultValue;const{other:ge,comments:Se,strings:Le}=re,Ne=["on","inline","off"];let Ae,Pe,Ce;return typeof ge=="boolean"?Ae=ge?"on":"off":Ae=g(ge,this.defaultValue.other,Ne),typeof Se=="boolean"?Pe=Se?"on":"off":Pe=g(Se,this.defaultValue.comments,Ne),typeof Le=="boolean"?Ce=Le?"on":"off":Ce=g(Le,this.defaultValue.strings,Ne),{other:Ae,comments:Pe,strings:Ce}}}class H extends u{constructor(){super(62,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[y.localize(76,null),y.localize(77,null),y.localize(78,null),y.localize(79,null)],default:"on",description:y.localize(80,null)})}validate(re){let ge=this.defaultValue.renderType,Se=this.defaultValue.renderFn;return typeof re<"u"&&(typeof re=="function"?(ge=4,Se=re):re==="interval"?ge=3:re==="relative"?ge=2:re==="on"?ge=1:ge=0),{renderType:ge,renderFn:Se}}}function ae(he){const re=he.get(89);return re==="editable"?he.get(83):re!=="on"}e.filterValidationDecorations=ae;class Y extends u{constructor(){const re=[],ge={type:"number",description:y.localize(81,null)};super(93,"rulers",re,{type:"array",items:{anyOf:[ge,{type:["object"],properties:{column:ge,color:{type:"string",description:y.localize(82,null),format:"color-hex"}}}]},default:re,description:y.localize(83,null)})}validate(re){if(Array.isArray(re)){const ge=[];for(const Se of re)if(typeof Se=="number")ge.push({column:a.clampedInt(Se,0,0,1e4),color:null});else if(Se&&typeof Se=="object"){const Le=Se;ge.push({column:a.clampedInt(Le.column,0,0,1e4),color:Le.color})}return ge.sort((Se,Le)=>Se.column-Le.column),ge}return this.defaultValue}}function U(he,re){if(typeof he!="string")return re;switch(he){case"hidden":return 2;case"visible":return 3;default:return 1}}class le extends u{constructor(){const re={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};super(94,"scrollbar",re,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[y.localize(84,null),y.localize(85,null),y.localize(86,null)],default:"auto",description:y.localize(87,null)},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[y.localize(88,null),y.localize(89,null),y.localize(90,null)],default:"auto",description:y.localize(91,null)},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:re.verticalScrollbarSize,description:y.localize(92,null)},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:re.horizontalScrollbarSize,description:y.localize(93,null)},"editor.scrollbar.scrollByPage":{type:"boolean",default:re.scrollByPage,description:y.localize(94,null)}})}validate(re){if(!re||typeof re!="object")return this.defaultValue;const ge=re,Se=a.clampedInt(ge.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),Le=a.clampedInt(ge.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:a.clampedInt(ge.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:U(ge.vertical,this.defaultValue.vertical),horizontal:U(ge.horizontal,this.defaultValue.horizontal),useShadows:s(ge.useShadows,this.defaultValue.useShadows),verticalHasArrows:s(ge.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:s(ge.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:s(ge.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:s(ge.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:Se,horizontalSliderSize:a.clampedInt(ge.horizontalSliderSize,Se,0,1e3),verticalScrollbarSize:Le,verticalSliderSize:a.clampedInt(ge.verticalSliderSize,Le,0,1e3),scrollByPage:s(ge.scrollByPage,this.defaultValue.scrollByPage)}}}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 u{constructor(){const re={nonBasicASCII:e.inUntrustedWorkspace,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:e.inUntrustedWorkspace,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(115,"unicodeHighlight",re,{[e.unicodeHighlightConfigKeys.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,e.inUntrustedWorkspace],default:re.nonBasicASCII,description:y.localize(95,null)},[e.unicodeHighlightConfigKeys.invisibleCharacters]:{restricted:!0,type:"boolean",default:re.invisibleCharacters,description:y.localize(96,null)},[e.unicodeHighlightConfigKeys.ambiguousCharacters]:{restricted:!0,type:"boolean",default:re.ambiguousCharacters,description:y.localize(97,null)},[e.unicodeHighlightConfigKeys.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,e.inUntrustedWorkspace],default:re.includeComments,description:y.localize(98,null)},[e.unicodeHighlightConfigKeys.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,e.inUntrustedWorkspace],default:re.includeStrings,description:y.localize(99,null)},[e.unicodeHighlightConfigKeys.allowedCharacters]:{restricted:!0,type:"object",default:re.allowedCharacters,description:y.localize(100,null),additionalProperties:{type:"boolean"}},[e.unicodeHighlightConfigKeys.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:re.allowedLocales,description:y.localize(101,null)}})}applyUpdate(re,ge){let Se=!1;ge.allowedCharacters&&re&&(w.equals(re.allowedCharacters,ge.allowedCharacters)||(re=Object.assign(Object.assign({},re),{allowedCharacters:ge.allowedCharacters}),Se=!0)),ge.allowedLocales&&re&&(w.equals(re.allowedLocales,ge.allowedLocales)||(re=Object.assign(Object.assign({},re),{allowedLocales:ge.allowedLocales}),Se=!0));const Le=super.applyUpdate(re,ge);return Se?new n(Le.newValue,!0):Le}validate(re){if(!re||typeof re!="object")return this.defaultValue;const ge=re;return{nonBasicASCII:ne(ge.nonBasicASCII,e.inUntrustedWorkspace,[!0,!1,e.inUntrustedWorkspace]),invisibleCharacters:s(ge.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:s(ge.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:ne(ge.includeComments,e.inUntrustedWorkspace,[!0,!1,e.inUntrustedWorkspace]),includeStrings:ne(ge.includeStrings,e.inUntrustedWorkspace,[!0,!1,e.inUntrustedWorkspace]),allowedCharacters:this.validateBooleanMap(re.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(re.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(re,ge){if(typeof re!="object"||!re)return ge;const Se={};for(const[Le,Ne]of Object.entries(re))Ne===!0&&(Se[Le]=!0);return Se}}class Q extends u{constructor(){const re={enabled:!0,mode:"subwordSmart"};super(57,"inlineSuggest",re,{"editor.inlineSuggest.enabled":{type:"boolean",default:re.enabled,description:y.localize(102,null)}})}validate(re){if(!re||typeof re!="object")return this.defaultValue;const ge=re;return{enabled:s(ge.enabled,this.defaultValue.enabled),mode:g(ge.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"])}}}class W extends u{constructor(){const re={enabled:b.EDITOR_MODEL_DEFAULTS.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:b.EDITOR_MODEL_DEFAULTS.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(12,"bracketPairColorization",re,{"editor.bracketPairColorization.enabled":{type:"boolean",default:re.enabled,markdownDescription:y.localize(103,null,"`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:re.independentColorPoolPerBracketType,description:y.localize(104,null)}})}validate(re){if(!re||typeof re!="object")return this.defaultValue;const ge=re;return{enabled:s(ge.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:s(ge.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}class V extends u{constructor(){const re={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(13,"guides",re,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[y.localize(105,null),y.localize(106,null),y.localize(107,null)],default:re.bracketPairs,description:y.localize(108,null)},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[y.localize(109,null),y.localize(110,null),y.localize(111,null)],default:re.bracketPairsHorizontal,description:y.localize(112,null)},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:re.highlightActiveBracketPair,description:y.localize(113,null)},"editor.guides.indentation":{type:"boolean",default:re.indentation,description:y.localize(114,null)},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[y.localize(115,null),y.localize(116,null),y.localize(117,null)],default:re.highlightActiveIndentation,description:y.localize(118,null)}})}validate(re){if(!re||typeof re!="object")return this.defaultValue;const ge=re;return{bracketPairs:ne(ge.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:ne(ge.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:s(ge.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:s(ge.indentation,this.defaultValue.indentation),highlightActiveIndentation:ne(ge.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}function ne(he,re,ge){const Se=ge.indexOf(he);return Se===-1?re:ge[Se]}class de extends u{constructor(){const re={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!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(108,"suggest",re,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[y.localize(119,null),y.localize(120,null)],default:re.insertMode,description:y.localize(121,null)},"editor.suggest.filterGraceful":{type:"boolean",default:re.filterGraceful,description:y.localize(122,null)},"editor.suggest.localityBonus":{type:"boolean",default:re.localityBonus,description:y.localize(123,null)},"editor.suggest.shareSuggestSelections":{type:"boolean",default:re.shareSuggestSelections,markdownDescription:y.localize(124,null)},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:re.snippetsPreventQuickSuggestions,description:y.localize(125,null)},"editor.suggest.showIcons":{type:"boolean",default:re.showIcons,description:y.localize(126,null)},"editor.suggest.showStatusBar":{type:"boolean",default:re.showStatusBar,description:y.localize(127,null)},"editor.suggest.preview":{type:"boolean",default:re.preview,description:y.localize(128,null)},"editor.suggest.showInlineDetails":{type:"boolean",default:re.showInlineDetails,description:y.localize(129,null)},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:y.localize(130,null)},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:y.localize(131,null)},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:y.localize(132,null)},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:y.localize(133,null)},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:y.localize(134,null)},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:y.localize(135,null)},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:y.localize(136,null)},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:y.localize(137,null)},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:y.localize(138,null)},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:y.localize(139,null)},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:y.localize(140,null)},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:y.localize(141,null)},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:y.localize(142,null)},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:y.localize(143,null)},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:y.localize(144,null)},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:y.localize(145,null)},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:y.localize(146,null)},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:y.localize(147,null)},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:y.localize(148,null)},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:y.localize(149,null)},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:y.localize(150,null)},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:y.localize(151,null)},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:y.localize(152,null)},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:y.localize(153,null)},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:y.localize(154,null)},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:y.localize(155,null)},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:y.localize(156,null)},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:y.localize(157,null)},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:y.localize(158,null)},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:y.localize(159,null)},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:y.localize(160,null)}})}validate(re){if(!re||typeof re!="object")return this.defaultValue;const ge=re;return{insertMode:g(ge.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:s(ge.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:s(ge.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:s(ge.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:s(ge.shareSuggestSelections,this.defaultValue.shareSuggestSelections),showIcons:s(ge.showIcons,this.defaultValue.showIcons),showStatusBar:s(ge.showStatusBar,this.defaultValue.showStatusBar),preview:s(ge.preview,this.defaultValue.preview),previewMode:g(ge.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:s(ge.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:s(ge.showMethods,this.defaultValue.showMethods),showFunctions:s(ge.showFunctions,this.defaultValue.showFunctions),showConstructors:s(ge.showConstructors,this.defaultValue.showConstructors),showDeprecated:s(ge.showDeprecated,this.defaultValue.showDeprecated),showFields:s(ge.showFields,this.defaultValue.showFields),showVariables:s(ge.showVariables,this.defaultValue.showVariables),showClasses:s(ge.showClasses,this.defaultValue.showClasses),showStructs:s(ge.showStructs,this.defaultValue.showStructs),showInterfaces:s(ge.showInterfaces,this.defaultValue.showInterfaces),showModules:s(ge.showModules,this.defaultValue.showModules),showProperties:s(ge.showProperties,this.defaultValue.showProperties),showEvents:s(ge.showEvents,this.defaultValue.showEvents),showOperators:s(ge.showOperators,this.defaultValue.showOperators),showUnits:s(ge.showUnits,this.defaultValue.showUnits),showValues:s(ge.showValues,this.defaultValue.showValues),showConstants:s(ge.showConstants,this.defaultValue.showConstants),showEnums:s(ge.showEnums,this.defaultValue.showEnums),showEnumMembers:s(ge.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:s(ge.showKeywords,this.defaultValue.showKeywords),showWords:s(ge.showWords,this.defaultValue.showWords),showColors:s(ge.showColors,this.defaultValue.showColors),showFiles:s(ge.showFiles,this.defaultValue.showFiles),showReferences:s(ge.showReferences,this.defaultValue.showReferences),showFolders:s(ge.showFolders,this.defaultValue.showFolders),showTypeParameters:s(ge.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:s(ge.showSnippets,this.defaultValue.showSnippets),showUsers:s(ge.showUsers,this.defaultValue.showUsers),showIssues:s(ge.showIssues,this.defaultValue.showIssues)}}}class ce extends u{constructor(){super(104,"smartSelect",{selectLeadingAndTrailingWhitespace:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:y.localize(161,null),default:!0,type:"boolean"}})}validate(re){return!re||typeof re!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:s(re.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace)}}}class ue extends t{constructor(){super(132)}compute(re,ge,Se){return ge.get(83)?!0:re.tabFocusMode}}function me(he){switch(he){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}}class _e extends t{constructor(){super(134)}compute(re,ge,Se){const Le=ge.get(133);return{isDominatedByLongLines:re.isDominatedByLongLines,isWordWrapMinified:Le.isWordWrapMinified,isViewportWrapping:Le.isViewportWrapping,wrappingColumn:Le.wrappingColumn}}}class ye extends u{constructor(){const re={enabled:!0};super(32,"dropIntoEditor",re,{"editor.dropIntoEditor.enabled":{type:"boolean",default:re.enabled,markdownDescription:y.localize(162,null)}})}validate(re){return!re||typeof re!="object"?this.defaultValue:{enabled:s(re.enabled,this.defaultValue.enabled)}}}const ke="Consolas, 'Courier New', monospace",Te="Menlo, Monaco, 'Courier New', monospace",Me="'Droid Sans Mono', 'monospace', monospace";e.EDITOR_FONT_DEFAULTS={fontFamily:v.isMacintosh?Te:v.isLinux?Me:ke,fontWeight:"normal",fontSize:v.isMacintosh?12:14,lineHeight:0,letterSpacing:0},e.editorOptionsRegistry=[];function fe(he){return e.editorOptionsRegistry[he.id]=he,he}e.EditorOptions={acceptSuggestionOnCommitCharacter:fe(new d(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:y.localize(163,null)})),acceptSuggestionOnEnter:fe(new f(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",y.localize(164,null),""],markdownDescription:y.localize(165,null)})),accessibilitySupport:fe(new m),accessibilityPageSize:fe(new a(3,"accessibilityPageSize",10,1,1073741824,{description:y.localize(166,null)})),ariaLabel:fe(new c(4,"ariaLabel",y.localize(167,null))),autoClosingBrackets:fe(new f(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",y.localize(168,null),y.localize(169,null),""],description:y.localize(170,null)})),autoClosingDelete:fe(new f(6,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",y.localize(171,null),""],description:y.localize(172,null)})),autoClosingOvertype:fe(new f(7,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",y.localize(173,null),""],description:y.localize(174,null)})),autoClosingQuotes:fe(new f(8,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",y.localize(175,null),y.localize(176,null),""],description:y.localize(177,null)})),autoIndent:fe(new _(9,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],p,{enumDescriptions:[y.localize(178,null),y.localize(179,null),y.localize(180,null),y.localize(181,null),y.localize(182,null)],description:y.localize(183,null)})),automaticLayout:fe(new d(10,"automaticLayout",!1)),autoSurround:fe(new f(11,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[y.localize(184,null),y.localize(185,null),y.localize(186,null),""],description:y.localize(187,null)})),bracketPairColorization:fe(new W),bracketPairGuides:fe(new V),stickyTabStops:fe(new d(106,"stickyTabStops",!1,{description:y.localize(188,null)})),codeLens:fe(new d(14,"codeLens",!0,{description:y.localize(189,null)})),codeLensFontFamily:fe(new c(15,"codeLensFontFamily","",{description:y.localize(190,null)})),codeLensFontSize:fe(new a(16,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:y.localize(191,null)})),colorDecorators:fe(new d(17,"colorDecorators",!0,{description:y.localize(192,null)})),columnSelection:fe(new d(18,"columnSelection",!1,{description:y.localize(193,null)})),comments:fe(new S),contextmenu:fe(new d(20,"contextmenu",!0)),copyWithSyntaxHighlighting:fe(new d(21,"copyWithSyntaxHighlighting",!0,{description:y.localize(194,null)})),cursorBlinking:fe(new _(22,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],E,{description:y.localize(195,null)})),cursorSmoothCaretAnimation:fe(new d(23,"cursorSmoothCaretAnimation",!1,{description:y.localize(196,null)})),cursorStyle:fe(new _(24,"cursorStyle",L.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],N,{description:y.localize(197,null)})),cursorSurroundingLines:fe(new a(25,"cursorSurroundingLines",0,0,1073741824,{description:y.localize(198,null)})),cursorSurroundingLinesStyle:fe(new f(26,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[y.localize(199,null),y.localize(200,null)],description:y.localize(201,null)})),cursorWidth:fe(new a(27,"cursorWidth",0,0,1073741824,{markdownDescription:y.localize(202,null)})),disableLayerHinting:fe(new d(28,"disableLayerHinting",!1)),disableMonospaceOptimizations:fe(new d(29,"disableMonospaceOptimizations",!1)),domReadOnly:fe(new d(30,"domReadOnly",!1)),dragAndDrop:fe(new d(31,"dragAndDrop",!0,{description:y.localize(203,null)})),emptySelectionClipboard:fe(new R),dropIntoEditor:fe(new ye),experimental:fe(new ee),extraEditorClassName:fe(new c(35,"extraEditorClassName","")),fastScrollSensitivity:fe(new r(36,"fastScrollSensitivity",5,he=>he<=0?5:he,{markdownDescription:y.localize(204,null)})),find:fe(new F),fixedOverflowWidgets:fe(new d(38,"fixedOverflowWidgets",!1)),folding:fe(new d(39,"folding",!0,{description:y.localize(205,null)})),foldingStrategy:fe(new f(40,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[y.localize(206,null),y.localize(207,null)],description:y.localize(208,null)})),foldingHighlight:fe(new d(41,"foldingHighlight",!0,{description:y.localize(209,null)})),foldingImportsByDefault:fe(new d(42,"foldingImportsByDefault",!1,{description:y.localize(210,null)})),foldingMaximumRegions:fe(new a(43,"foldingMaximumRegions",5e3,10,65e3,{description:y.localize(211,null)})),unfoldOnClickAfterEndOfLine:fe(new d(44,"unfoldOnClickAfterEndOfLine",!1,{description:y.localize(212,null)})),fontFamily:fe(new c(45,"fontFamily",e.EDITOR_FONT_DEFAULTS.fontFamily,{description:y.localize(213,null)})),fontInfo:fe(new x),fontLigatures2:fe(new O),fontSize:fe(new M),fontWeight:fe(new P),formatOnPaste:fe(new d(50,"formatOnPaste",!1,{description:y.localize(214,null)})),formatOnType:fe(new d(51,"formatOnType",!1,{description:y.localize(215,null)})),glyphMargin:fe(new d(52,"glyphMargin",!0,{description:y.localize(216,null)})),gotoLocation:fe(new A),hideCursorInOverviewRuler:fe(new d(54,"hideCursorInOverviewRuler",!1,{description:y.localize(217,null)})),hover:fe(new B),inDiffEditor:fe(new d(56,"inDiffEditor",!1)),letterSpacing:fe(new r(58,"letterSpacing",e.EDITOR_FONT_DEFAULTS.letterSpacing,he=>r.clamp(he,-5,20),{description:y.localize(218,null)})),lightbulb:fe(new T),lineDecorationsWidth:fe(new o(60,"lineDecorationsWidth",10)),lineHeight:fe(new $),lineNumbers:fe(new H),lineNumbersMinChars:fe(new a(63,"lineNumbersMinChars",5,1,300)),linkedEditing:fe(new d(64,"linkedEditing",!1,{description:y.localize(219,null)})),links:fe(new d(65,"links",!0,{description:y.localize(220,null)})),matchBrackets:fe(new f(66,"matchBrackets","always",["always","near","never"],{description:y.localize(221,null)})),minimap:fe(new j),mouseStyle:fe(new f(68,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:fe(new r(69,"mouseWheelScrollSensitivity",1,he=>he===0?1:he,{markdownDescription:y.localize(222,null)})),mouseWheelZoom:fe(new d(70,"mouseWheelZoom",!1,{markdownDescription:y.localize(223,null)})),multiCursorMergeOverlapping:fe(new d(71,"multiCursorMergeOverlapping",!0,{description:y.localize(224,null)})),multiCursorModifier:fe(new _(72,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],G,{markdownEnumDescriptions:[y.localize(225,null),y.localize(226,null)],markdownDescription:y.localize(227,null)})),multiCursorPaste:fe(new f(73,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[y.localize(228,null),y.localize(229,null)],markdownDescription:y.localize(230,null)})),occurrencesHighlight:fe(new d(74,"occurrencesHighlight",!0,{description:y.localize(231,null)})),overviewRulerBorder:fe(new d(75,"overviewRulerBorder",!0,{description:y.localize(232,null)})),overviewRulerLanes:fe(new a(76,"overviewRulerLanes",3,0,3)),padding:fe(new te),parameterHints:fe(new Z),peekWidgetDefaultFocus:fe(new f(79,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[y.localize(233,null),y.localize(234,null)],description:y.localize(235,null)})),definitionLinkOpensInPeek:fe(new d(80,"definitionLinkOpensInPeek",!1,{description:y.localize(236,null)})),quickSuggestions:fe(new ie),quickSuggestionsDelay:fe(new a(82,"quickSuggestionsDelay",10,0,1073741824,{description:y.localize(237,null)})),readOnly:fe(new d(83,"readOnly",!1)),renameOnType:fe(new d(84,"renameOnType",!1,{description:y.localize(238,null),markdownDeprecationMessage:y.localize(239,null)})),renderControlCharacters:fe(new d(85,"renderControlCharacters",!0,{description:y.localize(240,null),restricted:!0})),renderFinalNewline:fe(new d(86,"renderFinalNewline",!0,{description:y.localize(241,null)})),renderLineHighlight:fe(new f(87,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",y.localize(242,null)],description:y.localize(243,null)})),renderLineHighlightOnlyWhenFocus:fe(new d(88,"renderLineHighlightOnlyWhenFocus",!1,{description:y.localize(244,null)})),renderValidationDecorations:fe(new f(89,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:fe(new f(90,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",y.localize(245,null),y.localize(246,null),y.localize(247,null),""],description:y.localize(248,null)})),revealHorizontalRightPadding:fe(new a(91,"revealHorizontalRightPadding",30,0,1e3)),roundedSelection:fe(new d(92,"roundedSelection",!0,{description:y.localize(249,null)})),rulers:fe(new Y),scrollbar:fe(new le),scrollBeyondLastColumn:fe(new a(95,"scrollBeyondLastColumn",4,0,1073741824,{description:y.localize(250,null)})),scrollBeyondLastLine:fe(new d(96,"scrollBeyondLastLine",!0,{description:y.localize(251,null)})),scrollPredominantAxis:fe(new d(97,"scrollPredominantAxis",!0,{description:y.localize(252,null)})),selectionClipboard:fe(new d(98,"selectionClipboard",!0,{description:y.localize(253,null),included:v.isLinux})),selectionHighlight:fe(new d(99,"selectionHighlight",!0,{description:y.localize(254,null)})),selectOnLineNumbers:fe(new d(100,"selectOnLineNumbers",!0)),showFoldingControls:fe(new f(101,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[y.localize(255,null),y.localize(256,null),y.localize(257,null)],description:y.localize(258,null)})),showUnused:fe(new d(102,"showUnused",!0,{description:y.localize(259,null)})),showDeprecated:fe(new d(128,"showDeprecated",!0,{description:y.localize(260,null)})),inlayHints:fe(new J),snippetSuggestions:fe(new f(103,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[y.localize(261,null),y.localize(262,null),y.localize(263,null),y.localize(264,null)],description:y.localize(265,null)})),smartSelect:fe(new ce),smoothScrolling:fe(new d(105,"smoothScrolling",!1,{description:y.localize(266,null)})),stopRenderingLineAfter:fe(new a(107,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:fe(new de),inlineSuggest:fe(new Q),suggestFontSize:fe(new a(109,"suggestFontSize",0,0,1e3,{markdownDescription:y.localize(267,null,"`0`","`#editor.fontSize#`")})),suggestLineHeight:fe(new a(110,"suggestLineHeight",0,0,1e3,{markdownDescription:y.localize(268,null,"`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:fe(new d(111,"suggestOnTriggerCharacters",!0,{description:y.localize(269,null)})),suggestSelection:fe(new f(112,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[y.localize(270,null),y.localize(271,null),y.localize(272,null)],description:y.localize(273,null)})),tabCompletion:fe(new f(113,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[y.localize(274,null),y.localize(275,null),y.localize(276,null)],description:y.localize(277,null)})),tabIndex:fe(new a(114,"tabIndex",0,-1,1073741824)),unicodeHighlight:fe(new z),unusualLineTerminators:fe(new f(116,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[y.localize(278,null),y.localize(279,null),y.localize(280,null)],description:y.localize(281,null)})),useShadowDOM:fe(new d(117,"useShadowDOM",!0)),useTabStops:fe(new d(118,"useTabStops",!0,{description:y.localize(282,null)})),wordSeparators:fe(new c(119,"wordSeparators",k.USUAL_WORD_SEPARATORS,{description:y.localize(283,null)})),wordWrap:fe(new f(120,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[y.localize(284,null),y.localize(285,null),y.localize(286,null),y.localize(287,null)],description:y.localize(288,null)})),wordWrapBreakAfterCharacters:fe(new c(121,"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:fe(new c(122,"wordWrapBreakBeforeCharacters","([{\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\xA3\xA5\uFF04\uFFE1\uFFE5+\uFF0B")),wordWrapColumn:fe(new a(123,"wordWrapColumn",80,1,1073741824,{markdownDescription:y.localize(289,null)})),wordWrapOverride1:fe(new f(124,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:fe(new f(125,"wordWrapOverride2","inherit",["off","on","inherit"])),wrappingIndent:fe(new _(126,"wrappingIndent",1,"same",["none","same","indent","deepIndent"],me,{enumDescriptions:[y.localize(290,null),y.localize(291,null),y.localize(292,null),y.localize(293,null)],description:y.localize(294,null)})),wrappingStrategy:fe(new f(127,"wrappingStrategy","simple",["simple","advanced"],{enumDescriptions:[y.localize(295,null),y.localize(296,null)],description:y.localize(297,null)})),editorClassName:fe(new I),pixelRatio:fe(new X),tabFocusMode:fe(new ue),layoutInfo:fe(new K),wrappingInfo:fe(new _e)}}),define(oe[532],se([1,0,7,33,8,65,36,11,3,150]),function(q,e,y,v,k,D,w,b,C,h){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewCursor=void 0;class u{constructor(t,o,s,d,l,a){this.top=t,this.left=o,this.width=s,this.height=d,this.textContent=l,this.textContentClassName=a}}class n{constructor(t){this._context=t;const o=this._context.configuration.options,s=o.get(46);this._cursorStyle=o.get(24),this._lineHeight=o.get(61),this._typicalHalfwidthCharacterWidth=s.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(o.get(27),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=(0,v.createFastDomNode)(document.createElement("div")),this._domNode.setClassName(`cursor ${h.MOUSE_CURSOR_TEXT_CSS_CLASS_NAME}`),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),(0,D.applyFontInfo)(this._domNode,s),this._domNode.setDisplay("none"),this._position=new b.Position(1,1),this._lastRenderedContent="",this._renderData=null}getDomNode(){return this._domNode}getPosition(){return this._position}show(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)}hide(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)}onConfigurationChanged(t){const o=this._context.configuration.options,s=o.get(46);return this._cursorStyle=o.get(24),this._lineHeight=o.get(61),this._typicalHalfwidthCharacterWidth=s.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(o.get(27),this._typicalHalfwidthCharacterWidth),(0,D.applyFontInfo)(this._domNode,s),!0}onCursorPositionChanged(t){return this._position=t,!0}_getGraphemeAwarePosition(){const{lineNumber:t,column:o}=this._position,s=this._context.viewModel.getLineContent(t),[d,l]=k.getCharContainingOffset(s,o-1);return[new b.Position(t,d+1),s.substring(d,l)]}_prepareRender(t){let o="";const[s,d]=this._getGraphemeAwarePosition();if(this._cursorStyle===w.TextEditorCursorStyle.Line||this._cursorStyle===w.TextEditorCursorStyle.LineThin){const p=t.visibleRangeForPosition(s);if(!p||p.outsideRenderedLine)return null;let m;this._cursorStyle===w.TextEditorCursorStyle.Line?(m=y.computeScreenAwareSize(this._lineCursorWidth>0?this._lineCursorWidth:2),m>2&&(o=d)):m=y.computeScreenAwareSize(1);let S=p.left;m>=2&&S>=1&&(S-=1);const E=t.getVerticalOffsetForLineNumber(s.lineNumber)-t.bigNumbersDelta;return new u(E,S,m,this._lineHeight,o,"")}const l=t.linesVisibleRangesForRange(new C.Range(s.lineNumber,s.column,s.lineNumber,s.column+d.length),!1);if(!l||l.length===0)return null;const a=l[0];if(a.outsideRenderedLine||a.ranges.length===0)return null;const r=a.ranges[0],c=d===" "?this._typicalHalfwidthCharacterWidth:r.width<1?this._typicalHalfwidthCharacterWidth:r.width;let g="";if(this._cursorStyle===w.TextEditorCursorStyle.Block){const p=this._context.viewModel.getViewLineData(s.lineNumber);o=d;const m=p.tokens.findTokenIndexAtOffset(s.column-1);g=p.tokens.getClassName(m)}let f=t.getVerticalOffsetForLineNumber(s.lineNumber)-t.bigNumbersDelta,_=this._lineHeight;return(this._cursorStyle===w.TextEditorCursorStyle.Underline||this._cursorStyle===w.TextEditorCursorStyle.UnderlineThin)&&(f+=this._lineHeight-2,_=2),new u(f,r.left,c,_,o,g)}prepareRender(t){this._renderData=this._prepareRender(t)}render(t){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName(`cursor ${h.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.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=n}),define(oe[207],se([1,0,17,36,164]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FontInfo=e.SERIALIZED_FONT_INFO_VERSION=e.BareFontInfo=void 0;const D=y.isMacintosh?1.5:1.35,w=8;class b{constructor(u){this._bareFontInfoBrand=void 0,this.pixelRatio=u.pixelRatio,this.fontFamily=String(u.fontFamily),this.fontWeight=String(u.fontWeight),this.fontSize=u.fontSize,this.fontFeatureSettings=u.fontFeatureSettings,this.lineHeight=u.lineHeight|0,this.letterSpacing=u.letterSpacing}static createFromValidatedSettings(u,n,i){const t=u.get(45),o=u.get(49),s=u.get(48),d=u.get(47),l=u.get(61),a=u.get(58);return b._create(t,o,s,d,l,a,n,i)}static _create(u,n,i,t,o,s,d,l){o===0?o=D*i:o<w&&(o=o*i),o=Math.round(o),o<w&&(o=w);const a=1+(l?0:k.EditorZoom.getZoomLevel()*.1);return i*=a,o*=a,new b({pixelRatio:d,fontFamily:u,fontWeight:n,fontSize:i,fontFeatureSettings:t,lineHeight:o,letterSpacing:s})}getId(){return`${this.pixelRatio}-${this.fontFamily}-${this.fontWeight}-${this.fontSize}-${this.fontFeatureSettings}-${this.lineHeight}-${this.letterSpacing}`}getMassagedFontFamily(){const u=v.EDITOR_FONT_DEFAULTS.fontFamily,n=b._wrapInQuotes(this.fontFamily);return u&&this.fontFamily!==u?`${n}, ${u}`:n}static _wrapInQuotes(u){return/[,"']/.test(u)?u:/[+ ]/.test(u)?`"${u}"`:u}}e.BareFontInfo=b,e.SERIALIZED_FONT_INFO_VERSION=1;class C extends b{constructor(u,n){super(u),this._editorStylingBrand=void 0,this.version=e.SERIALIZED_FONT_INFO_VERSION,this.isTrusted=n,this.isMonospace=u.isMonospace,this.typicalHalfwidthCharacterWidth=u.typicalHalfwidthCharacterWidth,this.typicalFullwidthCharacterWidth=u.typicalFullwidthCharacterWidth,this.canUseHalfwidthRightwardsArrow=u.canUseHalfwidthRightwardsArrow,this.spaceWidth=u.spaceWidth,this.middotWidth=u.middotWidth,this.wsmiddotWidth=u.wsmiddotWidth,this.maxDigitWidth=u.maxDigitWidth}equals(u){return this.fontFamily===u.fontFamily&&this.fontWeight===u.fontWeight&&this.fontSize===u.fontSize&&this.fontFeatureSettings===u.fontFeatureSettings&&this.lineHeight===u.lineHeight&&this.letterSpacing===u.letterSpacing&&this.typicalHalfwidthCharacterWidth===u.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===u.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===u.canUseHalfwidthRightwardsArrow&&this.spaceWidth===u.spaceWidth&&this.middotWidth===u.middotWidth&&this.wsmiddotWidth===u.wsmiddotWidth&&this.maxDigitWidth===u.maxDigitWidth}}e.FontInfo=C}),define(oe[277],se([1,0,41,6,2,400,36,207]),function(q,e,y,v,k,D,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FontMeasurements=void 0;class C extends k.Disposable{constructor(){super(),this._onDidChange=this._register(new v.Emitter),this.onDidChange=this._onDidChange.event,this._cache=new h,this._evictUntrustedReadingsTimeout=-1}dispose(){this._evictUntrustedReadingsTimeout!==-1&&(window.clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),super.dispose()}clearAllFontInfos(){this._cache=new h,this._onDidChange.fire()}_writeToCache(n,i){this._cache.put(n,i),!i.isTrusted&&this._evictUntrustedReadingsTimeout===-1&&(this._evictUntrustedReadingsTimeout=window.setTimeout(()=>{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings()},5e3))}_evictUntrustedReadings(){const n=this._cache.getValues();let i=!1;for(const t of n)t.isTrusted||(i=!0,this._cache.remove(t));i&&this._onDidChange.fire()}readFontInfo(n){if(!this._cache.has(n)){let i=this._actualReadFontInfo(n);(i.typicalHalfwidthCharacterWidth<=2||i.typicalFullwidthCharacterWidth<=2||i.spaceWidth<=2||i.maxDigitWidth<=2)&&(i=new b.FontInfo({pixelRatio:y.PixelRatio.value,fontFamily:i.fontFamily,fontWeight:i.fontWeight,fontSize:i.fontSize,fontFeatureSettings:i.fontFeatureSettings,lineHeight:i.lineHeight,letterSpacing:i.letterSpacing,isMonospace:i.isMonospace,typicalHalfwidthCharacterWidth:Math.max(i.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(i.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:i.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(i.spaceWidth,5),middotWidth:Math.max(i.middotWidth,5),wsmiddotWidth:Math.max(i.wsmiddotWidth,5),maxDigitWidth:Math.max(i.maxDigitWidth,5)},!1)),this._writeToCache(n,i)}return this._cache.get(n)}_createRequest(n,i,t,o){const s=new D.CharWidthRequest(n,i);return t.push(s),o?.push(s),s}_actualReadFontInfo(n){const i=[],t=[],o=this._createRequest("n",0,i,t),s=this._createRequest("\uFF4D",0,i,null),d=this._createRequest(" ",0,i,t),l=this._createRequest("0",0,i,t),a=this._createRequest("1",0,i,t),r=this._createRequest("2",0,i,t),c=this._createRequest("3",0,i,t),g=this._createRequest("4",0,i,t),f=this._createRequest("5",0,i,t),_=this._createRequest("6",0,i,t),p=this._createRequest("7",0,i,t),m=this._createRequest("8",0,i,t),S=this._createRequest("9",0,i,t),E=this._createRequest("\u2192",0,i,t),L=this._createRequest("\uFFEB",0,i,null),N=this._createRequest("\xB7",0,i,t),I=this._createRequest(String.fromCharCode(11825),0,i,null),R="|/-_ilm%";for(let P=0,A=R.length;P<A;P++)this._createRequest(R.charAt(P),0,i,t),this._createRequest(R.charAt(P),1,i,t),this._createRequest(R.charAt(P),2,i,t);(0,D.readCharWidths)(n,i);const F=Math.max(l.width,a.width,r.width,c.width,g.width,f.width,_.width,p.width,m.width,S.width);let O=n.fontFeatureSettings===w.EditorFontLigatures.OFF;const x=t[0].width;for(let P=1,A=t.length;O&&P<A;P++){const B=x-t[P].width;if(B<-.001||B>.001){O=!1;break}}let M=!0;return O&&L.width!==x&&(M=!1),L.width>E.width&&(M=!1),new b.FontInfo({pixelRatio:y.PixelRatio.value,fontFamily:n.fontFamily,fontWeight:n.fontWeight,fontSize:n.fontSize,fontFeatureSettings:n.fontFeatureSettings,lineHeight:n.lineHeight,letterSpacing:n.letterSpacing,isMonospace:O,typicalHalfwidthCharacterWidth:o.width,typicalFullwidthCharacterWidth:s.width,canUseHalfwidthRightwardsArrow:M,spaceWidth:d.width,middotWidth:N.width,wsmiddotWidth:I.width,maxDigitWidth:F},!0)}}class h{constructor(){this._keys=Object.create(null),this._values=Object.create(null)}has(n){const i=n.getId();return!!this._values[i]}get(n){const i=n.getId();return this._values[i]}put(n,i){const t=n.getId();this._keys[t]=n,this._values[t]=i}remove(n){const i=n.getId();delete this._keys[i],delete this._values[i]}getValues(){return Object.keys(this._keys).map(n=>this._values[n])}}e.FontMeasurements=new C}),define(oe[278],se([1,0,11,3,74,36]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isModelDecorationInString=e.isModelDecorationInComment=e.isModelDecorationVisible=e.ViewModelDecorations=void 0;class w{constructor(i,t,o,s,d){this.editorId=i,this.model=t,this.configuration=o,this._linesCollection=s,this._coordinatesConverter=d,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(i){const t=i.id;let o=this._decorationsCache[t];if(!o){const s=i.range,d=i.options;let l;if(d.isWholeLine){const a=this._coordinatesConverter.convertModelPositionToViewPosition(new y.Position(s.startLineNumber,1),0),r=this._coordinatesConverter.convertModelPositionToViewPosition(new y.Position(s.endLineNumber,this.model.getLineMaxColumn(s.endLineNumber)),1);l=new v.Range(a.lineNumber,a.column,r.lineNumber,r.column)}else l=this._coordinatesConverter.convertModelRangeToViewRange(s,1);o=new k.ViewModelDecoration(l,d),this._decorationsCache[t]=o}return o}getDecorationsViewportData(i){let t=this._cachedModelDecorationsResolver!==null;return t=t&&i.equalsRange(this._cachedModelDecorationsResolverViewRange),t||(this._cachedModelDecorationsResolver=this._getDecorationsInRange(i),this._cachedModelDecorationsResolverViewRange=i),this._cachedModelDecorationsResolver}getInlineDecorationsOnLine(i){const t=new v.Range(i,this._linesCollection.getViewLineMinColumn(i),i,this._linesCollection.getViewLineMaxColumn(i));return this._getDecorationsInRange(t).inlineDecorations[0]}_getDecorationsInRange(i){const t=this._linesCollection.getDecorationsInRange(i,this.editorId,(0,D.filterValidationDecorations)(this.configuration.options)),o=i.startLineNumber,s=i.endLineNumber,d=[];let l=0;const a=[];for(let r=o;r<=s;r++)a[r-o]=[];for(let r=0,c=t.length;r<c;r++){const g=t[r],f=g.options;if(!b(this.model,g))continue;const _=this._getOrCreateViewModelDecoration(g),p=_.range;if(d[l++]=_,f.inlineClassName){const m=new k.InlineDecoration(p,f.inlineClassName,f.inlineClassNameAffectsLetterSpacing?3:0),S=Math.max(o,p.startLineNumber),E=Math.min(s,p.endLineNumber);for(let L=S;L<=E;L++)a[L-o].push(m)}if(f.beforeContentClassName&&o<=p.startLineNumber&&p.startLineNumber<=s){const m=new k.InlineDecoration(new v.Range(p.startLineNumber,p.startColumn,p.startLineNumber,p.startColumn),f.beforeContentClassName,1);a[p.startLineNumber-o].push(m)}if(f.afterContentClassName&&o<=p.endLineNumber&&p.endLineNumber<=s){const m=new k.InlineDecoration(new v.Range(p.endLineNumber,p.endColumn,p.endLineNumber,p.endColumn),f.afterContentClassName,2);a[p.endLineNumber-o].push(m)}}return{decorations:d,inlineDecorations:a}}}e.ViewModelDecorations=w;function b(n,i){return!(i.options.hideInCommentTokens&&C(n,i)||i.options.hideInStringTokens&&h(n,i))}e.isModelDecorationVisible=b;function C(n,i){return u(n,i.range,t=>t===1)}e.isModelDecorationInComment=C;function h(n,i){return u(n,i.range,t=>t===2)}e.isModelDecorationInString=h;function u(n,i,t){for(let o=i.startLineNumber;o<=i.endLineNumber;o++){const s=n.tokenization.getLineTokens(o),d=o===i.startLineNumber,l=o===i.endLineNumber;let a=d?s.findTokenIndexAtOffset(i.startColumn-1):0;for(;a<s.getCount()&&!(l&&s.getStartOffset(a)>i.endColumn-1);){if(!t(s.getStandardTokenType(a)))return!1;a++}}return!0}}),define(oe[533],se([4,5]),function(q,e){return q.create("vs/editor/common/core/editorColorRegistry",e)}),define(oe[534],se([4,5]),function(q,e){return q.create("vs/editor/common/editorContextKeys",e)}),define(oe[535],se([4,5]),function(q,e){return q.create("vs/editor/common/languages/modesRegistry",e)}),define(oe[536],se([4,5]),function(q,e){return q.create("vs/editor/common/model/editStack",e)}),define(oe[279],se([1,0,536,14,23,22,270,122,43]),function(q,e,y,v,k,D,w,b,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditStack=e.isEditStackElement=e.MultiModelEditStackElement=e.SingleModelEditStackElement=e.SingleModelEditStackData=void 0;function h(d){return d.toString()}class u{constructor(l,a,r,c,g,f,_){this.beforeVersionId=l,this.afterVersionId=a,this.beforeEOL=r,this.afterEOL=c,this.beforeCursorState=g,this.afterCursorState=f,this.changes=_}static create(l,a){const r=l.getAlternativeVersionId(),c=t(l);return new u(r,r,c,c,a,a,[])}append(l,a,r,c,g){a.length>0&&(this.changes=(0,w.compressConsecutiveTextChanges)(this.changes,a)),this.afterEOL=r,this.afterVersionId=c,this.afterCursorState=g}static _writeSelectionsSize(l){return 4+4*4*(l?l.length:0)}static _writeSelections(l,a,r){if(b.writeUInt32BE(l,a?a.length:0,r),r+=4,a)for(const c of a)b.writeUInt32BE(l,c.selectionStartLineNumber,r),r+=4,b.writeUInt32BE(l,c.selectionStartColumn,r),r+=4,b.writeUInt32BE(l,c.positionLineNumber,r),r+=4,b.writeUInt32BE(l,c.positionColumn,r),r+=4;return r}static _readSelections(l,a,r){const c=b.readUInt32BE(l,a);a+=4;for(let g=0;g<c;g++){const f=b.readUInt32BE(l,a);a+=4;const _=b.readUInt32BE(l,a);a+=4;const p=b.readUInt32BE(l,a);a+=4;const m=b.readUInt32BE(l,a);a+=4,r.push(new k.Selection(f,_,p,m))}return a}serialize(){let l=10+u._writeSelectionsSize(this.beforeCursorState)+u._writeSelectionsSize(this.afterCursorState)+4;for(const c of this.changes)l+=c.writeSize();const a=new Uint8Array(l);let r=0;b.writeUInt32BE(a,this.beforeVersionId,r),r+=4,b.writeUInt32BE(a,this.afterVersionId,r),r+=4,b.writeUInt8(a,this.beforeEOL,r),r+=1,b.writeUInt8(a,this.afterEOL,r),r+=1,r=u._writeSelections(a,this.beforeCursorState,r),r=u._writeSelections(a,this.afterCursorState,r),b.writeUInt32BE(a,this.changes.length,r),r+=4;for(const c of this.changes)r=c.write(a,r);return a.buffer}static deserialize(l){const a=new Uint8Array(l);let r=0;const c=b.readUInt32BE(a,r);r+=4;const g=b.readUInt32BE(a,r);r+=4;const f=b.readUInt8(a,r);r+=1;const _=b.readUInt8(a,r);r+=1;const p=[];r=u._readSelections(a,r,p);const m=[];r=u._readSelections(a,r,m);const S=b.readUInt32BE(a,r);r+=4;const E=[];for(let L=0;L<S;L++)r=w.TextChange.read(a,r,E);return new u(c,g,f,_,p,m,E)}}e.SingleModelEditStackData=u;class n{constructor(l,a,r,c){this.label=l,this.code=a,this.model=r,this._data=u.create(r,c)}get type(){return 0}get resource(){return D.URI.isUri(this.model)?this.model:this.model.uri}toString(){return(this._data instanceof u?this._data:u.deserialize(this._data)).changes.map(l=>l.toString()).join(", ")}matchesResource(l){return(D.URI.isUri(this.model)?this.model:this.model.uri).toString()===l.toString()}setModel(l){this.model=l}canAppend(l){return this.model===l&&this._data instanceof u}append(l,a,r,c,g){this._data instanceof u&&this._data.append(l,a,r,c,g)}close(){this._data instanceof u&&(this._data=this._data.serialize())}open(){this._data instanceof u||(this._data=u.deserialize(this._data))}undo(){if(D.URI.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof u&&(this._data=this._data.serialize());const l=u.deserialize(this._data);this.model._applyUndo(l.changes,l.beforeEOL,l.beforeVersionId,l.beforeCursorState)}redo(){if(D.URI.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof u&&(this._data=this._data.serialize());const l=u.deserialize(this._data);this.model._applyRedo(l.changes,l.afterEOL,l.afterVersionId,l.afterCursorState)}heapSize(){return this._data instanceof u&&(this._data=this._data.serialize()),this._data.byteLength+168}}e.SingleModelEditStackElement=n;class i{constructor(l,a,r){this.label=l,this.code=a,this.type=1,this._isOpen=!0,this._editStackElementsArr=r.slice(0),this._editStackElementsMap=new Map;for(const c of this._editStackElementsArr){const g=h(c.resource);this._editStackElementsMap.set(g,c)}this._delegate=null}get resources(){return this._editStackElementsArr.map(l=>l.resource)}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(l){const a=h(l);return this._editStackElementsMap.has(a)}setModel(l){const a=h(D.URI.isUri(l)?l:l.uri);this._editStackElementsMap.has(a)&&this._editStackElementsMap.get(a).setModel(l)}canAppend(l){if(!this._isOpen)return!1;const a=h(l.uri);return this._editStackElementsMap.has(a)?this._editStackElementsMap.get(a).canAppend(l):!1}append(l,a,r,c,g){const f=h(l.uri);this._editStackElementsMap.get(f).append(l,a,r,c,g)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const l of this._editStackElementsArr)l.undo()}redo(){for(const l of this._editStackElementsArr)l.redo()}heapSize(l){const a=h(l);return this._editStackElementsMap.has(a)?this._editStackElementsMap.get(a).heapSize():0}split(){return this._editStackElementsArr}toString(){const l=[];for(const a of this._editStackElementsArr)l.push(`${(0,C.basename)(a.resource)}: ${a}`);return`{${l.join(", ")}}`}}e.MultiModelEditStackElement=i;function t(d){return d.getEOL()===` `?0:1}function o(d){return d?d instanceof n||d instanceof i:!1}e.isEditStackElement=o;class s{constructor(l,a){this._model=l,this._undoRedoService=a}pushStackElement(){const l=this._undoRedoService.getLastElement(this._model.uri);o(l)&&l.close()}popStackElement(){const l=this._undoRedoService.getLastElement(this._model.uri);o(l)&&l.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(l){const a=this._undoRedoService.getLastElement(this._model.uri);if(o(a)&&a.canAppend(this._model))return a;const r=new n(y.localize(0,null),"undoredo.textBufferEdit",this._model,l);return this._undoRedoService.pushElement(r),r}pushEOL(l){const a=this._getOrCreateEditStackElement(null);this._model.setEOL(l),a.append(this._model,[],t(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(l,a,r){const c=this._getOrCreateEditStackElement(l),g=this._model.applyEdits(a,!0),f=s._computeCursorState(r,g),_=g.map((p,m)=>({index:m,textChange:p.textChange}));return _.sort((p,m)=>p.textChange.oldPosition===m.textChange.oldPosition?p.index-m.index:p.textChange.oldPosition-m.textChange.oldPosition),c.append(this._model,_.map(p=>p.textChange),t(this._model),this._model.getAlternativeVersionId(),f),f}static _computeCursorState(l,a){try{return l?l(a):null}catch(r){return(0,v.onUnexpectedError)(r),null}}}e.EditStack=s}),define(oe[537],se([4,5]),function(q,e){return q.create("vs/editor/common/standaloneStrings",e)}),define(oe[76],se([1,0,537]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StandaloneServicesNLS=e.ToggleHighContrastNLS=e.StandaloneCodeEditorNLS=e.QuickOutlineNLS=e.QuickCommandNLS=e.QuickHelpNLS=e.GoToLineNLS=e.InspectTokensNLS=e.AccessibilityHelpNLS=void 0;var v;(function(i){i.noSelection=y.localize(0,null),i.singleSelectionRange=y.localize(1,null),i.singleSelection=y.localize(2,null),i.multiSelectionRange=y.localize(3,null),i.multiSelection=y.localize(4,null),i.emergencyConfOn=y.localize(5,null),i.openingDocs=y.localize(6,null),i.readonlyDiffEditor=y.localize(7,null),i.editableDiffEditor=y.localize(8,null),i.readonlyEditor=y.localize(9,null),i.editableEditor=y.localize(10,null),i.changeConfigToOnMac=y.localize(11,null),i.changeConfigToOnWinLinux=y.localize(12,null),i.auto_on=y.localize(13,null),i.auto_off=y.localize(14,null),i.tabFocusModeOnMsg=y.localize(15,null),i.tabFocusModeOnMsgNoKb=y.localize(16,null),i.tabFocusModeOffMsg=y.localize(17,null),i.tabFocusModeOffMsgNoKb=y.localize(18,null),i.openDocMac=y.localize(19,null),i.openDocWinLinux=y.localize(20,null),i.outroMsg=y.localize(21,null),i.showAccessibilityHelpAction=y.localize(22,null)})(v=e.AccessibilityHelpNLS||(e.AccessibilityHelpNLS={}));var k;(function(i){i.inspectTokensAction=y.localize(23,null)})(k=e.InspectTokensNLS||(e.InspectTokensNLS={}));var D;(function(i){i.gotoLineActionLabel=y.localize(24,null)})(D=e.GoToLineNLS||(e.GoToLineNLS={}));var w;(function(i){i.helpQuickAccessActionLabel=y.localize(25,null)})(w=e.QuickHelpNLS||(e.QuickHelpNLS={}));var b;(function(i){i.quickCommandActionLabel=y.localize(26,null),i.quickCommandHelp=y.localize(27,null)})(b=e.QuickCommandNLS||(e.QuickCommandNLS={}));var C;(function(i){i.quickOutlineActionLabel=y.localize(28,null),i.quickOutlineByCategoryActionLabel=y.localize(29,null)})(C=e.QuickOutlineNLS||(e.QuickOutlineNLS={}));var h;(function(i){i.editorViewAccessibleLabel=y.localize(30,null),i.accessibilityHelpMessage=y.localize(31,null)})(h=e.StandaloneCodeEditorNLS||(e.StandaloneCodeEditorNLS={}));var u;(function(i){i.toggleHighContrast=y.localize(32,null)})(u=e.ToggleHighContrastNLS||(e.ToggleHighContrastNLS={}));var n;(function(i){i.bulkEditServiceSummary=y.localize(33,null)})(n=e.StandaloneServicesNLS||(e.StandaloneServicesNLS={}))}),define(oe[538],se([4,5]),function(q,e){return q.create("vs/editor/contrib/anchorSelect/browser/anchorSelect",e)}),define(oe[539],se([4,5]),function(q,e){return q.create("vs/editor/contrib/bracketMatching/browser/bracketMatching",e)}),define(oe[540],se([4,5]),function(q,e){return q.create("vs/editor/contrib/caretOperations/browser/caretOperations",e)}),define(oe[541],se([4,5]),function(q,e){return q.create("vs/editor/contrib/caretOperations/browser/transpose",e)}),define(oe[542],se([4,5]),function(q,e){return q.create("vs/editor/contrib/clipboard/browser/clipboard",e)}),define(oe[543],se([4,5]),function(q,e){return q.create("vs/editor/contrib/codeAction/browser/codeActionCommands",e)}),define(oe[544],se([4,5]),function(q,e){return q.create("vs/editor/contrib/codeAction/browser/codeActionMenu",e)}),define(oe[545],se([4,5]),function(q,e){return q.create("vs/editor/contrib/codeAction/browser/codeActionWidgetContribution",e)}),define(oe[546],se([4,5]),function(q,e){return q.create("vs/editor/contrib/codeAction/browser/lightBulbWidget",e)}),define(oe[547],se([4,5]),function(q,e){return q.create("vs/editor/contrib/codelens/browser/codelensController",e)}),define(oe[548],se([4,5]),function(q,e){return q.create("vs/editor/contrib/colorPicker/browser/colorPickerWidget",e)}),define(oe[549],se([4,5]),function(q,e){return q.create("vs/editor/contrib/comment/browser/comment",e)}),define(oe[550],se([4,5]),function(q,e){return q.create("vs/editor/contrib/contextmenu/browser/contextmenu",e)}),define(oe[551],se([4,5]),function(q,e){return q.create("vs/editor/contrib/copyPaste/browser/copyPasteContribution",e)}),define(oe[552],se([4,5]),function(q,e){return q.create("vs/editor/contrib/cursorUndo/browser/cursorUndo",e)}),define(oe[553],se([4,5]),function(q,e){return q.create("vs/editor/contrib/dropIntoEditor/browser/dropIntoEditorContribution",e)}),define(oe[554],se([4,5]),function(q,e){return q.create("vs/editor/contrib/editorState/browser/keybindingCancellation",e)}),define(oe[555],se([4,5]),function(q,e){return q.create("vs/editor/contrib/find/browser/findController",e)}),define(oe[556],se([4,5]),function(q,e){return q.create("vs/editor/contrib/find/browser/findWidget",e)}),define(oe[557],se([4,5]),function(q,e){return q.create("vs/editor/contrib/folding/browser/folding",e)}),define(oe[558],se([4,5]),function(q,e){return q.create("vs/editor/contrib/folding/browser/foldingDecorations",e)}),define(oe[559],se([4,5]),function(q,e){return q.create("vs/editor/contrib/fontZoom/browser/fontZoom",e)}),define(oe[560],se([4,5]),function(q,e){return q.create("vs/editor/contrib/format/browser/format",e)}),define(oe[561],se([4,5]),function(q,e){return q.create("vs/editor/contrib/format/browser/formatActions",e)}),define(oe[562],se([4,5]),function(q,e){return q.create("vs/editor/contrib/gotoError/browser/gotoError",e)}),define(oe[563],se([4,5]),function(q,e){return q.create("vs/editor/contrib/gotoError/browser/gotoErrorWidget",e)}),define(oe[564],se([4,5]),function(q,e){return q.create("vs/editor/contrib/gotoSymbol/browser/goToCommands",e)}),define(oe[565],se([4,5]),function(q,e){return q.create("vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition",e)}),define(oe[566],se([4,5]),function(q,e){return q.create("vs/editor/contrib/gotoSymbol/browser/peek/referencesController",e)}),define(oe[567],se([4,5]),function(q,e){return q.create("vs/editor/contrib/gotoSymbol/browser/peek/referencesTree",e)}),define(oe[568],se([4,5]),function(q,e){return q.create("vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget",e)}),define(oe[569],se([4,5]),function(q,e){return q.create("vs/editor/contrib/gotoSymbol/browser/referencesModel",e)}),define(oe[137],se([1,0,14,6,144,2,51,43,8,3,569]),function(q,e,y,v,k,D,w,b,C,h,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ReferencesModel=e.FileReferences=e.FilePreview=e.OneReference=void 0;class n{constructor(d,l,a,r){this.isProviderFirst=d,this.parent=l,this.link=a,this._rangeCallback=r,this.id=k.defaultGenerator.nextId()}get uri(){return this.link.uri}get range(){var d,l;return(l=(d=this._range)!==null&&d!==void 0?d:this.link.targetSelectionRange)!==null&&l!==void 0?l:this.link.range}set range(d){this._range=d,this._rangeCallback(this)}get ariaMessage(){var d;const l=(d=this.parent.getPreview(this))===null||d===void 0?void 0:d.preview(this.range);return l?(0,u.localize)(1,null,(0,b.basename)(this.uri),this.range.startLineNumber,this.range.startColumn,l.value):(0,u.localize)(0,null,(0,b.basename)(this.uri),this.range.startLineNumber,this.range.startColumn)}}e.OneReference=n;class i{constructor(d){this._modelReference=d}dispose(){this._modelReference.dispose()}preview(d,l=8){const a=this._modelReference.object.textEditorModel;if(!a)return;const{startLineNumber:r,startColumn:c,endLineNumber:g,endColumn:f}=d,_=a.getWordUntilPosition({lineNumber:r,column:c-l}),p=new h.Range(r,_.startColumn,r,c),m=new h.Range(g,f,g,1073741824),S=a.getValueInRange(p).replace(/^\s+/,""),E=a.getValueInRange(d),L=a.getValueInRange(m).replace(/\s+$/,"");return{value:S+E+L,highlight:{start:S.length,end:S.length+E.length}}}}e.FilePreview=i;class t{constructor(d,l){this.parent=d,this.uri=l,this.children=[],this._previews=new w.ResourceMap}dispose(){(0,D.dispose)(this._previews.values()),this._previews.clear()}getPreview(d){return this._previews.get(d.uri)}get ariaMessage(){const d=this.children.length;return d===1?(0,u.localize)(2,null,(0,b.basename)(this.uri),this.uri.fsPath):(0,u.localize)(3,null,d,(0,b.basename)(this.uri),this.uri.fsPath)}resolve(d){return be(this,void 0,void 0,function*(){if(this._previews.size!==0)return this;for(const l of this.children)if(!this._previews.has(l.uri))try{const a=yield d.createModelReference(l.uri);this._previews.set(l.uri,new i(a))}catch(a){(0,y.onUnexpectedError)(a)}return this})}}e.FileReferences=t;class o{constructor(d,l){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new v.Emitter,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=d,this._title=l;const[a]=d;d.sort(o._compareReferences);let r;for(const c of d)if((!r||!b.extUri.isEqual(r.uri,c.uri,!0))&&(r=new t(this,c.uri),this.groups.push(r)),r.children.length===0||o._compareReferences(c,r.children[r.children.length-1])!==0){const g=new n(a===c,r,c,f=>this._onDidChangeReferenceRange.fire(f));this.references.push(g),r.children.push(g)}}dispose(){(0,D.dispose)(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new o(this._links,this._title)}get title(){return this._title}get isEmpty(){return this.groups.length===0}get ariaMessage(){return this.isEmpty?(0,u.localize)(4,null):this.references.length===1?(0,u.localize)(5,null,this.references[0].uri.fsPath):this.groups.length===1?(0,u.localize)(6,null,this.references.length,this.groups[0].uri.fsPath):(0,u.localize)(7,null,this.references.length,this.groups.length)}nextOrPreviousReference(d,l){const{parent:a}=d;let r=a.children.indexOf(d);const c=a.children.length,g=a.parent.groups.length;return g===1||l&&r+1<c||!l&&r>0?(l?r=(r+1)%c:r=(r+c-1)%c,a.children[r]):(r=a.parent.groups.indexOf(a),l?(r=(r+1)%g,a.parent.groups[r].children[0]):(r=(r+g-1)%g,a.parent.groups[r].children[a.parent.groups[r].children.length-1]))}nearestReference(d,l){const a=this.references.map((r,c)=>({idx:c,prefixLen:C.commonPrefixLength(r.uri.toString(),d.toString()),offsetDist:Math.abs(r.range.startLineNumber-l.lineNumber)*100+Math.abs(r.range.startColumn-l.column)})).sort((r,c)=>r.prefixLen>c.prefixLen?-1:r.prefixLen<c.prefixLen?1:r.offsetDist<c.offsetDist?-1:r.offsetDist>c.offsetDist?1:0)[0];if(a)return this.references[a.idx]}referenceAt(d,l){for(const a of this.references)if(a.uri.toString()===d.toString()&&h.Range.containsPosition(a.range,l))return a}firstReference(){for(const d of this.references)if(d.isProviderFirst)return d;return this.references[0]}static _compareReferences(d,l){return b.extUri.compare(d.uri,l.uri)||h.Range.compareRangesUsingStarts(d.range,l.range)}}e.ReferencesModel=o}),define(oe[570],se([4,5]),function(q,e){return q.create("vs/editor/contrib/gotoSymbol/browser/symbolNavigation",e)}),define(oe[571],se([4,5]),function(q,e){return q.create("vs/editor/contrib/hover/browser/hover",e)}),define(oe[572],se([4,5]),function(q,e){return q.create("vs/editor/contrib/hover/browser/markdownHoverParticipant",e)}),define(oe[573],se([4,5]),function(q,e){return q.create("vs/editor/contrib/hover/browser/markerHoverParticipant",e)}),define(oe[574],se([4,5]),function(q,e){return q.create("vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace",e)}),define(oe[575],se([4,5]),function(q,e){return q.create("vs/editor/contrib/indentation/browser/indentation",e)}),define(oe[576],se([4,5]),function(q,e){return q.create("vs/editor/contrib/inlayHints/browser/inlayHintsHover",e)}),define(oe[577],se([4,5]),function(q,e){return q.create("vs/editor/contrib/inlineCompletions/browser/ghostTextController",e)}),define(oe[578],se([4,5]),function(q,e){return q.create("vs/editor/contrib/inlineCompletions/browser/ghostTextHoverParticipant",e)}),define(oe[579],se([4,5]),function(q,e){return q.create("vs/editor/contrib/lineSelection/browser/lineSelection",e)}),define(oe[580],se([4,5]),function(q,e){return q.create("vs/editor/contrib/linesOperations/browser/linesOperations",e)}),define(oe[581],se([4,5]),function(q,e){return q.create("vs/editor/contrib/linkedEditing/browser/linkedEditing",e)}),define(oe[582],se([4,5]),function(q,e){return q.create("vs/editor/contrib/links/browser/links",e)}),define(oe[583],se([4,5]),function(q,e){return q.create("vs/editor/contrib/message/browser/messageController",e)}),define(oe[584],se([4,5]),function(q,e){return q.create("vs/editor/contrib/multicursor/browser/multicursor",e)}),define(oe[585],se([4,5]),function(q,e){return q.create("vs/editor/contrib/parameterHints/browser/parameterHints",e)}),define(oe[586],se([4,5]),function(q,e){return q.create("vs/editor/contrib/parameterHints/browser/parameterHintsWidget",e)}),define(oe[587],se([4,5]),function(q,e){return q.create("vs/editor/contrib/peekView/browser/peekView",e)}),define(oe[588],se([4,5]),function(q,e){return q.create("vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess",e)}),define(oe[589],se([4,5]),function(q,e){return q.create("vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess",e)}),define(oe[590],se([4,5]),function(q,e){return q.create("vs/editor/contrib/readOnlyMessage/browser/contribution",e)}),define(oe[591],se([4,5]),function(q,e){return q.create("vs/editor/contrib/rename/browser/rename",e)}),define(oe[592],se([4,5]),function(q,e){return q.create("vs/editor/contrib/rename/browser/renameInputField",e)}),define(oe[593],se([4,5]),function(q,e){return q.create("vs/editor/contrib/smartSelect/browser/smartSelect",e)}),define(oe[594],se([4,5]),function(q,e){return q.create("vs/editor/contrib/snippet/browser/snippetController2",e)}),define(oe[595],se([4,5]),function(q,e){return q.create("vs/editor/contrib/snippet/browser/snippetVariables",e)}),define(oe[596],se([4,5]),function(q,e){return q.create("vs/editor/contrib/suggest/browser/suggest",e)}),define(oe[597],se([4,5]),function(q,e){return q.create("vs/editor/contrib/suggest/browser/suggestController",e)}),define(oe[598],se([4,5]),function(q,e){return q.create("vs/editor/contrib/suggest/browser/suggestWidget",e)}),define(oe[599],se([4,5]),function(q,e){return q.create("vs/editor/contrib/suggest/browser/suggestWidgetDetails",e)}),define(oe[600],se([4,5]),function(q,e){return q.create("vs/editor/contrib/suggest/browser/suggestWidgetRenderer",e)}),define(oe[601],se([4,5]),function(q,e){return q.create("vs/editor/contrib/suggest/browser/suggestWidgetStatus",e)}),define(oe[602],se([4,5]),function(q,e){return q.create("vs/editor/contrib/symbolIcons/browser/symbolIcons",e)}),define(oe[603],se([4,5]),function(q,e){return q.create("vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode",e)}),define(oe[604],se([4,5]),function(q,e){return q.create("vs/editor/contrib/tokenization/browser/tokenization",e)}),define(oe[605],se([4,5]),function(q,e){return q.create("vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter",e)}),define(oe[606],se([4,5]),function(q,e){return q.create("vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators",e)}),define(oe[607],se([4,5]),function(q,e){return q.create("vs/editor/contrib/wordHighlighter/browser/wordHighlighter",e)}),define(oe[608],se([4,5]),function(q,e){return q.create("vs/editor/contrib/wordOperations/browser/wordOperations",e)}),define(oe[609],se([4,5]),function(q,e){return q.create("vs/platform/actions/browser/menuEntryActionViewItem",e)}),define(oe[610],se([4,5]),function(q,e){return q.create("vs/platform/actions/common/menuService",e)}),define(oe[611],se([4,5]),function(q,e){return q.create("vs/platform/configuration/common/configurationRegistry",e)}),define(oe[612],se([4,5]),function(q,e){return q.create("vs/platform/contextkey/browser/contextKeyService",e)}),define(oe[613],se([4,5]),function(q,e){return q.create("vs/platform/contextkey/common/contextkeys",e)}),define(oe[614],se([4,5]),function(q,e){return q.create("vs/platform/history/browser/contextScopedHistoryWidget",e)}),define(oe[615],se([4,5]),function(q,e){return q.create("vs/platform/keybinding/common/abstractKeybindingService",e)}),define(oe[616],se([4,5]),function(q,e){return q.create("vs/platform/list/browser/listService",e)}),define(oe[617],se([4,5]),function(q,e){return q.create("vs/platform/markers/common/markers",e)}),define(oe[618],se([4,5]),function(q,e){return q.create("vs/platform/quickinput/browser/commandsQuickAccess",e)}),define(oe[619],se([4,5]),function(q,e){return q.create("vs/platform/quickinput/browser/helpQuickAccess",e)}),define(oe[620],se([4,5]),function(q,e){return q.create("vs/platform/theme/common/colorRegistry",e)}),define(oe[621],se([4,5]),function(q,e){return q.create("vs/platform/theme/common/iconRegistry",e)}),define(oe[622],se([4,5]),function(q,e){return q.create("vs/platform/undoRedo/common/undoRedoService",e)}),define(oe[623],se([4,5]),function(q,e){return q.create("vs/platform/workspace/common/workspace",e)}),define(oe[624],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorOpenSource=void 0;var y;(function(v){v[v.API=0]="API",v[v.USER=1]="USER"})(y=e.EditorOpenSource||(e.EditorOpenSource={}))}),define(oe[625],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionIdentifier=void 0;class y{constructor(k){this.value=k,this._lower=k.toLowerCase()}static toKey(k){return typeof k=="string"?k.toLowerCase():k._lower}}e.ExtensionIdentifier=y}),define(oe[280],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FileKind=void 0;var y;(function(v){v[v.FILE=0]="FILE",v[v.FOLDER=1]="FOLDER",v[v.ROOT_FOLDER=2]="ROOT_FOLDER"})(y=e.FileKind||(e.FileKind={}))}),define(oe[626],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.showHistoryKeybindingHint=void 0;function y(v){var k,D;return((k=v.lookupKeybinding("history.showPrevious"))===null||k===void 0?void 0:k.getElectronAccelerator())==="Up"&&((D=v.lookupKeybinding("history.showNext"))===null||D===void 0?void 0:D.getElectronAccelerator())==="Down"}e.showHistoryKeybindingHint=y}),define(oe[208],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SyncDescriptor=void 0;class y{constructor(k,D=[],w=!1){this.ctor=k,this.staticArguments=D,this.supportsDelayedInstantiation=w}}e.SyncDescriptor=y}),define(oe[53],se([1,0,208]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSingletonServiceDescriptors=e.registerSingleton=void 0;const v=[];function k(w,b,C){b instanceof y.SyncDescriptor||(b=new y.SyncDescriptor(b,[],C)),v.push([w,b])}e.registerSingleton=k;function D(){return v}e.getSingletonServiceDescriptors=D}),define(oe[627],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Graph=e.Node=void 0;class y{constructor(D){this.incoming=new Map,this.outgoing=new Map,this.data=D}}e.Node=y;class v{constructor(D){this._hashFn=D,this._nodes=new Map}roots(){const D=[];for(const w of this._nodes.values())w.outgoing.size===0&&D.push(w);return D}insertEdge(D,w){const b=this.lookupOrInsertNode(D),C=this.lookupOrInsertNode(w);b.outgoing.set(this._hashFn(w),C),C.incoming.set(this._hashFn(D),b)}removeNode(D){const w=this._hashFn(D);this._nodes.delete(w);for(const b of this._nodes.values())b.outgoing.delete(w),b.incoming.delete(w)}lookupOrInsertNode(D){const w=this._hashFn(D);let b=this._nodes.get(w);return b||(b=new y(D),this._nodes.set(w,b)),b}isEmpty(){return this._nodes.size===0}toString(){const D=[];for(const[w,b]of this._nodes)D.push(`${w}, (incoming)[${[...b.incoming.keys()].join(", ")}], (outgoing)[${[...b.outgoing.keys()].join(",")}]`);return D.join(` `)}findCycleSlow(){for(const[D,w]of this._nodes){const b=new Set([D]),C=this._findCycle(w,b);if(C)return C}}_findCycle(D,w){for(const[b,C]of D.outgoing){if(w.has(b))return[...w,b].join(" -> ");w.add(b);const h=this._findCycle(C,w);if(h)return h;w.delete(b)}}}e.Graph=v}),define(oe[9],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createDecorator=e.IInstantiationService=e._util=void 0;var y;(function(D){D.serviceIds=new Map,D.DI_TARGET="$di$target",D.DI_DEPENDENCIES="$di$dependencies";function w(b){return b[D.DI_DEPENDENCIES]||[]}D.getServiceDependencies=w})(y=e._util||(e._util={})),e.IInstantiationService=k("instantiationService");function v(D,w,b){w[y.DI_TARGET]===w?w[y.DI_DEPENDENCIES].push({id:D,index:b}):(w[y.DI_DEPENDENCIES]=[{id:D,index:b}],w[y.DI_TARGET]=w)}function k(D){if(y.serviceIds.has(D))return y.serviceIds.get(D);const w=function(b,C,h){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");v(w,b,h)};return w.toString=()=>D,y.serviceIds.set(D,w),w}e.createDecorator=k}),define(oe[138],se([1,0,9,22,19]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ResourceFileEdit=e.ResourceTextEdit=e.ResourceEdit=e.IBulkEditService=void 0,e.IBulkEditService=(0,y.createDecorator)("IWorkspaceEditService");class D{constructor(h){this.metadata=h}static convert(h){return h.edits.map(u=>{if(w.is(u))return w.lift(u);if(b.is(u))return b.lift(u);throw new Error("Unsupported edit")})}}e.ResourceEdit=D;class w extends D{constructor(h,u,n=void 0,i){super(i),this.resource=h,this.textEdit=u,this.versionId=n}static is(h){return h instanceof w?!0:(0,k.isObject)(h)&&v.URI.isUri(h.resource)&&(0,k.isObject)(h.textEdit)}static lift(h){return h instanceof w?h:new w(h.resource,h.textEdit,h.versionId,h.metadata)}}e.ResourceTextEdit=w;class b extends D{constructor(h,u,n={},i){super(i),this.oldResource=h,this.newResource=u,this.options=n}static is(h){return h instanceof b?!0:(0,k.isObject)(h)&&(!!h.newResource||!!h.oldResource)}static lift(h){return h instanceof b?h:new b(h.oldResource,h.newResource,h.options,h.metadata)}}e.ResourceFileEdit=b}),define(oe[29],se([1,0,9]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ICodeEditorService=void 0,e.ICodeEditorService=(0,y.createDecorator)("codeEditorService")}),define(oe[37],se([1,0,9]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ILanguageService=void 0,e.ILanguageService=(0,y.createDecorator)("languageService")}),define(oe[92],se([1,0,9]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IEditorWorkerService=e.ID_EDITOR_WORKER_SERVICE=void 0,e.ID_EDITOR_WORKER_SERVICE="editorWorkerService",e.IEditorWorkerService=(0,y.createDecorator)(e.ID_EDITOR_WORKER_SERVICE)}),define(oe[20],se([1,0,9]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ILanguageFeaturesService=void 0,e.ILanguageFeaturesService=(0,y.createDecorator)("ILanguageFeaturesService")}),define(oe[628],se([1,0,504,20,53]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LanguageFeaturesService=void 0;class D{constructor(){this.referenceProvider=new y.LanguageFeatureRegistry(this._score.bind(this)),this.renameProvider=new y.LanguageFeatureRegistry(this._score.bind(this)),this.codeActionProvider=new y.LanguageFeatureRegistry(this._score.bind(this)),this.definitionProvider=new y.LanguageFeatureRegistry(this._score.bind(this)),this.typeDefinitionProvider=new y.LanguageFeatureRegistry(this._score.bind(this)),this.declarationProvider=new y.LanguageFeatureRegistry(this._score.bind(this)),this.implementationProvider=new y.LanguageFeatureRegistry(this._score.bind(this)),this.documentSymbolProvider=new y.LanguageFeatureRegistry(this._score.bind(this)),this.inlayHintsProvider=new y.LanguageFeatureRegistry(this._score.bind(this)),this.colorProvider=new y.LanguageFeatureRegistry(this._score.bind(this)),this.codeLensProvider=new y.LanguageFeatureRegistry(this._score.bind(this)),this.documentFormattingEditProvider=new y.LanguageFeatureRegistry(this._score.bind(this)),this.documentRangeFormattingEditProvider=new y.LanguageFeatureRegistry(this._score.bind(this)),this.onTypeFormattingEditProvider=new y.LanguageFeatureRegistry(this._score.bind(this)),this.signatureHelpProvider=new y.LanguageFeatureRegistry(this._score.bind(this)),this.hoverProvider=new y.LanguageFeatureRegistry(this._score.bind(this)),this.documentHighlightProvider=new y.LanguageFeatureRegistry(this._score.bind(this)),this.selectionRangeProvider=new y.LanguageFeatureRegistry(this._score.bind(this)),this.foldingRangeProvider=new y.LanguageFeatureRegistry(this._score.bind(this)),this.linkProvider=new y.LanguageFeatureRegistry(this._score.bind(this)),this.inlineCompletionsProvider=new y.LanguageFeatureRegistry(this._score.bind(this)),this.completionProvider=new y.LanguageFeatureRegistry(this._score.bind(this)),this.linkedEditingRangeProvider=new y.LanguageFeatureRegistry(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new y.LanguageFeatureRegistry(this._score.bind(this)),this.documentSemanticTokensProvider=new y.LanguageFeatureRegistry(this._score.bind(this)),this.documentOnDropEditProvider=new y.LanguageFeatureRegistry(this._score.bind(this)),this.documentPasteEditProvider=new y.LanguageFeatureRegistry(this._score.bind(this))}_score(b){var C;return(C=this._notebookTypeResolver)===null||C===void 0?void 0:C.call(this,b)}}e.LanguageFeaturesService=D,(0,k.registerSingleton)(v.ILanguageFeaturesService,D,!0)}),define(oe[209],se([1,0,9]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IMarkerDecorationsService=void 0,e.IMarkerDecorationsService=(0,y.createDecorator)("markerDecorationsService")}),define(oe[50],se([1,0,9]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IModelService=void 0,e.IModelService=(0,y.createDecorator)("modelService")}),define(oe[58],se([1,0,9]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ITextModelService=void 0,e.ITextModelService=(0,y.createDecorator)("textModelService")}),define(oe[166],se([1,0,9]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ITextResourcePropertiesService=e.ITextResourceConfigurationService=void 0,e.ITextResourceConfigurationService=(0,y.createDecorator)("textResourceConfigurationService"),e.ITextResourcePropertiesService=(0,y.createDecorator)("textResourcePropertiesService")}),define(oe[115],se([1,0,9]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IStandaloneThemeService=void 0,e.IStandaloneThemeService=(0,y.createDecorator)("themeService")}),define(oe[93],se([1,0,9]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IClipboardService=void 0,e.IClipboardService=(0,y.createDecorator)("clipboardService")}),define(oe[26],se([1,0,6,55,2,73,19,9]),function(q,e,y,v,k,D,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NullCommandService=e.CommandsRegistry=e.ICommandService=void 0,e.ICommandService=(0,b.createDecorator)("commandService"),e.CommandsRegistry=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new y.Emitter,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(C,h){if(!C)throw new Error("invalid command");if(typeof C=="string"){if(!h)throw new Error("invalid command");return this.registerCommand({id:C,handler:h})}if(C.description){const o=[];for(const d of C.description.args)o.push(d.constraint);const s=C.handler;C.handler=function(d,...l){return(0,w.validateConstraints)(l,o),s(d,...l)}}const{id:u}=C;let n=this._commands.get(u);n||(n=new D.LinkedList,this._commands.set(u,n));const i=n.unshift(C),t=(0,k.toDisposable)(()=>{i();const o=this._commands.get(u);o?.isEmpty()&&this._commands.delete(u)});return this._onDidRegisterCommand.fire(u),t}registerCommandAlias(C,h){return e.CommandsRegistry.registerCommand(C,(u,...n)=>u.get(e.ICommandService).executeCommand(h,...n))}getCommand(C){const h=this._commands.get(C);if(!(!h||h.isEmpty()))return v.Iterable.first(h)}getCommands(){const C=new Map;for(const h of this._commands.keys()){const u=this.getCommand(h);u&&C.set(h,u)}return C}},e.NullCommandService={_serviceBrand:void 0,onWillExecuteCommand:()=>k.Disposable.None,onDidExecuteCommand:()=>k.Disposable.None,executeCommand(){return Promise.resolve(void 0)}},e.CommandsRegistry.registerCommand("noop",()=>{})}),define(oe[281],se([1,0,21,14,22,50,26,19,509,3,20]),function(q,e,y,v,k,D,w,b,C,h,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getDocumentRangeSemanticTokens=e.hasDocumentRangeSemanticTokensProvider=e.getDocumentSemanticTokens=e.hasDocumentSemanticTokensProvider=e.DocumentSemanticTokensResult=e.isSemanticTokensEdits=e.isSemanticTokens=void 0;function n(f){return f&&!!f.data}e.isSemanticTokens=n;function i(f){return f&&Array.isArray(f.edits)}e.isSemanticTokensEdits=i;class t{constructor(_,p,m){this.provider=_,this.tokens=p,this.error=m}}e.DocumentSemanticTokensResult=t;function o(f,_){return f.has(_)}e.hasDocumentSemanticTokensProvider=o;function s(f,_){const p=f.orderedGroups(_);return p.length>0?p[0]:[]}function d(f,_,p,m,S){return be(this,void 0,void 0,function*(){const E=s(f,_),L=yield Promise.all(E.map(N=>be(this,void 0,void 0,function*(){let I,R=null;try{I=yield N.provideDocumentSemanticTokens(_,N===p?m:null,S)}catch(F){R=F,I=null}return(!I||!n(I)&&!i(I))&&(I=null),new t(N,I,R)})));for(const N of L){if(N.error)throw N.error;if(N.tokens)return N}return L.length>0?L[0]:null})}e.getDocumentSemanticTokens=d;function l(f,_){const p=f.orderedGroups(_);return p.length>0?p[0]:null}class a{constructor(_,p){this.provider=_,this.tokens=p}}function r(f,_){return f.has(_)}e.hasDocumentRangeSemanticTokensProvider=r;function c(f,_){const p=f.orderedGroups(_);return p.length>0?p[0]:[]}function g(f,_,p,m){return be(this,void 0,void 0,function*(){const S=c(f,_),E=yield Promise.all(S.map(L=>be(this,void 0,void 0,function*(){let N;try{N=yield L.provideDocumentRangeSemanticTokens(_,p,m)}catch(I){(0,v.onUnexpectedExternalError)(I),N=null}return(!N||!n(N))&&(N=null),new a(L,N)})));for(const L of E)if(L.tokens)return L;return E.length>0?E[0]:null})}e.getDocumentRangeSemanticTokens=g,w.CommandsRegistry.registerCommand("_provideDocumentSemanticTokensLegend",(f,..._)=>be(void 0,void 0,void 0,function*(){const[p]=_;(0,b.assertType)(p instanceof k.URI);const m=f.get(D.IModelService).getModel(p);if(!m)return;const{documentSemanticTokensProvider:S}=f.get(u.ILanguageFeaturesService),E=l(S,m);return E?E[0].getLegend():f.get(w.ICommandService).executeCommand("_provideDocumentRangeSemanticTokensLegend",p)})),w.CommandsRegistry.registerCommand("_provideDocumentSemanticTokens",(f,..._)=>be(void 0,void 0,void 0,function*(){const[p]=_;(0,b.assertType)(p instanceof k.URI);const m=f.get(D.IModelService).getModel(p);if(!m)return;const{documentSemanticTokensProvider:S}=f.get(u.ILanguageFeaturesService);if(!o(S,m))return f.get(w.ICommandService).executeCommand("_provideDocumentRangeSemanticTokens",p,m.getFullModelRange());const E=yield d(S,m,null,null,y.CancellationToken.None);if(!E)return;const{provider:L,tokens:N}=E;if(!N||!n(N))return;const I=(0,C.encodeSemanticTokensDto)({id:0,type:"full",data:N.data});return N.resultId&&L.releaseDocumentSemanticTokens(N.resultId),I})),w.CommandsRegistry.registerCommand("_provideDocumentRangeSemanticTokensLegend",(f,..._)=>be(void 0,void 0,void 0,function*(){const[p,m]=_;(0,b.assertType)(p instanceof k.URI);const S=f.get(D.IModelService).getModel(p);if(!S)return;const{documentRangeSemanticTokensProvider:E}=f.get(u.ILanguageFeaturesService),L=c(E,S);if(L.length===0)return;if(L.length===1)return L[0].getLegend();if(!m||!h.Range.isIRange(m))return console.warn("provideDocumentRangeSemanticTokensLegend might be out-of-sync with provideDocumentRangeSemanticTokens unless a range argument is passed in"),L[0].getLegend();const N=yield g(E,S,h.Range.lift(m),y.CancellationToken.None);if(N)return N.provider.getLegend()})),w.CommandsRegistry.registerCommand("_provideDocumentRangeSemanticTokens",(f,..._)=>be(void 0,void 0,void 0,function*(){const[p,m]=_;(0,b.assertType)(p instanceof k.URI),(0,b.assertType)(h.Range.isIRange(m));const S=f.get(D.IModelService).getModel(p);if(!S)return;const{documentRangeSemanticTokensProvider:E}=f.get(u.ILanguageFeaturesService),L=yield g(E,S,h.Range.lift(m),y.CancellationToken.None);if(!(!L||!L.tokens))return(0,C.encodeSemanticTokensDto)({id:0,type:"full",data:L.tokens.data})}))}),define(oe[282],se([1,0,21,14,2,19,22,50,26,20]),function(q,e,y,v,k,D,w,b,C,h){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCodeLensModel=e.CodeLensModel=void 0;class u{constructor(){this.lenses=[],this._disposables=new k.DisposableStore}dispose(){this._disposables.dispose()}get isDisposed(){return this._disposables.isDisposed}add(t,o){this._disposables.add(t);for(const s of t.lenses)this.lenses.push({symbol:s,provider:o})}}e.CodeLensModel=u;function n(i,t,o){return be(this,void 0,void 0,function*(){const s=i.ordered(t),d=new Map,l=new u,a=s.map((r,c)=>be(this,void 0,void 0,function*(){d.set(r,c);try{const g=yield Promise.resolve(r.provideCodeLenses(t,o));g&&l.add(g,r)}catch(g){(0,v.onUnexpectedExternalError)(g)}}));return yield Promise.all(a),l.lenses=l.lenses.sort((r,c)=>r.symbol.range.startLineNumber<c.symbol.range.startLineNumber?-1:r.symbol.range.startLineNumber>c.symbol.range.startLineNumber?1:d.get(r.provider)<d.get(c.provider)?-1:d.get(r.provider)>d.get(c.provider)?1:r.symbol.range.startColumn<c.symbol.range.startColumn?-1:r.symbol.range.startColumn>c.symbol.range.startColumn?1:0),l})}e.getCodeLensModel=n,C.CommandsRegistry.registerCommand("_executeCodeLensProvider",function(i,...t){let[o,s]=t;(0,D.assertType)(w.URI.isUri(o)),(0,D.assertType)(typeof s=="number"||!s);const{codeLensProvider:d}=i.get(h.ILanguageFeaturesService),l=i.get(b.IModelService).getModel(o);if(!l)throw(0,v.illegalArgument)();const a=[],r=new k.DisposableStore;return n(d,l,y.CancellationToken.None).then(c=>{r.add(c);const g=[];for(const f of c.lenses)s==null||f.symbol.command?a.push(f.symbol):s-- >0&&f.provider.resolveCodeLens&&g.push(Promise.resolve(f.provider.resolveCodeLens(l,f.symbol,y.CancellationToken.None)).then(_=>a.push(_||f.symbol)));return Promise.all(g)}).then(()=>a).finally(()=>{setTimeout(()=>r.dispose(),100)})})}),define(oe[283],se([1,0,21,14,22,3,50,26,20]),function(q,e,y,v,k,D,w,b,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getColorPresentations=e.getColors=void 0;function h(n,i,t){const o=[],s=n.ordered(i).reverse().map(d=>Promise.resolve(d.provideDocumentColors(i,t)).then(l=>{if(Array.isArray(l))for(const a of l)o.push({colorInfo:a,provider:d})}));return Promise.all(s).then(()=>o)}e.getColors=h;function u(n,i,t,o){return Promise.resolve(t.provideColorPresentations(n,i,o))}e.getColorPresentations=u,b.CommandsRegistry.registerCommand("_executeDocumentColorProvider",function(n,...i){const[t]=i;if(!(t instanceof k.URI))throw(0,v.illegalArgument)();const{colorProvider:o}=n.get(C.ILanguageFeaturesService),s=n.get(w.IModelService).getModel(t);if(!s)throw(0,v.illegalArgument)();const d=[],l=o.ordered(s).reverse().map(a=>Promise.resolve(a.provideDocumentColors(s,y.CancellationToken.None)).then(r=>{if(Array.isArray(r))for(const c of r)d.push({range:c.range,color:[c.color.red,c.color.green,c.color.blue,c.color.alpha]})}));return Promise.all(l).then(()=>d)}),b.CommandsRegistry.registerCommand("_executeColorPresentationProvider",function(n,...i){const[t,o]=i,{uri:s,range:d}=o;if(!(s instanceof k.URI)||!Array.isArray(t)||t.length!==4||!D.Range.isIRange(d))throw(0,v.illegalArgument)();const[l,a,r,c]=t,{colorProvider:g}=n.get(C.ILanguageFeaturesService),f=n.get(w.IModelService).getModel(s);if(!f)throw(0,v.illegalArgument)();const _={range:d,color:{red:l,green:a,blue:r,alpha:c}},p=[],m=g.ordered(f).reverse().map(S=>Promise.resolve(S.provideColorPresentations(f,_,y.CancellationToken.None)).then(E=>{Array.isArray(E)&&p.push(...E)}));return Promise.all(m).then(()=>p)})}),define(oe[629],se([1,0,18,21,14,2,19,22,3,50,26,20]),function(q,e,y,v,k,D,w,b,C,h,u,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLinks=e.LinksList=e.Link=void 0;class i{constructor(d,l){this._link=d,this._provider=l}toJSON(){return{range:this.range,url:this.url,tooltip:this.tooltip}}get range(){return this._link.range}get url(){return this._link.url}get tooltip(){return this._link.tooltip}resolve(d){return be(this,void 0,void 0,function*(){return this._link.url?this._link.url:typeof this._provider.resolveLink=="function"?Promise.resolve(this._provider.resolveLink(this._link,d)).then(l=>(this._link=l||this._link,this._link.url?this.resolve(d):Promise.reject(new Error("missing")))):Promise.reject(new Error("missing"))})}}e.Link=i;class t{constructor(d){this._disposables=new D.DisposableStore;let l=[];for(const[a,r]of d){const c=a.links.map(g=>new i(g,r));l=t._union(l,c),(0,D.isDisposable)(a)&&this._disposables.add(a)}this.links=l}dispose(){this._disposables.dispose(),this.links.length=0}static _union(d,l){const a=[];let r,c,g,f;for(r=0,g=0,c=d.length,f=l.length;r<c&&g<f;){const _=d[r],p=l[g];if(C.Range.areIntersectingOrTouching(_.range,p.range)){r++;continue}C.Range.compareRangesUsingStarts(_.range,p.range)<0?(a.push(_),r++):(a.push(p),g++)}for(;r<c;r++)a.push(d[r]);for(;g<f;g++)a.push(l[g]);return a}}e.LinksList=t;function o(s,d,l){const a=[],r=s.ordered(d).reverse().map((c,g)=>Promise.resolve(c.provideLinks(d,l)).then(f=>{f&&(a[g]=[f,c])},k.onUnexpectedExternalError));return Promise.all(r).then(()=>{const c=new t((0,y.coalesce)(a));return l.isCancellationRequested?(c.dispose(),new t([])):c})}e.getLinks=o,u.CommandsRegistry.registerCommand("_executeLinkProvider",(s,...d)=>be(void 0,void 0,void 0,function*(){let[l,a]=d;(0,w.assertType)(l instanceof b.URI),typeof a!="number"&&(a=0);const{linkProvider:r}=s.get(n.ILanguageFeaturesService),c=s.get(h.IModelService).getModel(l);if(!c)return[];const g=yield o(r,c,v.CancellationToken.None);if(!g)return[];for(let _=0;_<Math.min(a,g.links.length);_++)yield g.links[_].resolve(v.CancellationToken.None);const f=g.links.slice(0);return g.dispose(),f}))}),define(oe[30],se([1,0,9]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLanguageTagSettingPlainKey=e.getConfigurationValue=e.removeFromValueTree=e.addToValueTree=e.toValuesTree=e.IConfigurationService=void 0,e.IConfigurationService=(0,y.createDecorator)("configurationService");function v(h,u){const n=Object.create(null);for(const i in h)k(n,i,h[i],u);return n}e.toValuesTree=v;function k(h,u,n,i){const t=u.split("."),o=t.pop();let s=h;for(let d=0;d<t.length;d++){const l=t[d];let a=s[l];switch(typeof a){case"undefined":a=s[l]=Object.create(null);break;case"object":break;default:i(`Ignoring ${u} as ${t.slice(0,d+1).join(".")} is ${JSON.stringify(a)}`);return}s=a}if(typeof s=="object"&&s!==null)try{s[o]=n}catch{i(`Ignoring ${u} as ${t.join(".")} is ${JSON.stringify(s)}`)}else i(`Ignoring ${u} as ${t.join(".")} is ${JSON.stringify(s)}`)}e.addToValueTree=k;function D(h,u){const n=u.split(".");w(h,n)}e.removeFromValueTree=D;function w(h,u){const n=u.shift();if(u.length===0){delete h[n];return}if(Object.keys(h).indexOf(n)!==-1){const i=h[n];typeof i=="object"&&!Array.isArray(i)&&(w(i,u),Object.keys(i).length===0&&delete h[n])}}function b(h,u,n){function i(s,d){let l=s;for(const a of d){if(typeof l!="object"||l===null)return;l=l[a]}return l}const t=u.split("."),o=i(h,t);return typeof o>"u"?n:o}e.getConfigurationValue=b;function C(h){return h.replace(/[\[\]]/g,"")}e.getLanguageTagSettingPlainKey=C});var pe=this&&this.__param||function(q,e){return function(y,v){e(y,v,q)}};define(oe[284],se([1,0,28,136,252,30]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MonarchTokenizer=void 0;const w=5;class b{constructor(l){this._maxCacheDepth=l,this._entries=Object.create(null)}static create(l,a){return this._INSTANCE.create(l,a)}create(l,a){if(l!==null&&l.depth>=this._maxCacheDepth)return new C(l,a);let r=C.getStackElementId(l);r.length>0&&(r+="|"),r+=a;let c=this._entries[r];return c||(c=new C(l,a),this._entries[r]=c,c)}}b._INSTANCE=new b(w);class C{constructor(l,a){this.parent=l,this.state=a,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(l){let a="";for(;l!==null;)a.length>0&&(a+="|"),a+=l.state,l=l.parent;return a}static _equals(l,a){for(;l!==null&&a!==null;){if(l===a)return!0;if(l.state!==a.state)return!1;l=l.parent,a=a.parent}return l===null&&a===null}equals(l){return C._equals(this,l)}push(l){return b.create(this,l)}pop(){return this.parent}popall(){let l=this;for(;l.parent;)l=l.parent;return l}switchTo(l){return b.create(this.parent,l)}}class h{constructor(l,a){this.languageId=l,this.state=a}equals(l){return this.languageId===l.languageId&&this.state.equals(l.state)}clone(){return this.state.clone()===this.state?this:new h(this.languageId,this.state)}}class u{constructor(l){this._maxCacheDepth=l,this._entries=Object.create(null)}static create(l,a){return this._INSTANCE.create(l,a)}create(l,a){if(a!==null)return new n(l,a);if(l!==null&&l.depth>=this._maxCacheDepth)return new n(l,a);const r=C.getStackElementId(l);let c=this._entries[r];return c||(c=new n(l,null),this._entries[r]=c,c)}}u._INSTANCE=new u(w);class n{constructor(l,a){this.stack=l,this.embeddedLanguageData=a}clone(){return(this.embeddedLanguageData?this.embeddedLanguageData.clone():null)===this.embeddedLanguageData?this:u.create(this.stack,this.embeddedLanguageData)}equals(l){return!(l instanceof n)||!this.stack.equals(l.stack)?!1:this.embeddedLanguageData===null&&l.embeddedLanguageData===null?!0:this.embeddedLanguageData===null||l.embeddedLanguageData===null?!1:this.embeddedLanguageData.equals(l.embeddedLanguageData)}}class i{constructor(){this._tokens=[],this._languageId=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterLanguage(l){this._languageId=l}emit(l,a){this._lastTokenType===a&&this._lastTokenLanguage===this._languageId||(this._lastTokenType=a,this._lastTokenLanguage=this._languageId,this._tokens.push(new y.Token(l,a,this._languageId)))}nestedLanguageTokenize(l,a,r,c){const g=r.languageId,f=r.state,_=y.TokenizationRegistry.get(g);if(!_)return this.enterLanguage(g),this.emit(c,""),f;const p=_.tokenize(l,a,f);if(c!==0)for(const m of p.tokens)this._tokens.push(new y.Token(m.offset+c,m.type,m.language));else this._tokens=this._tokens.concat(p.tokens);return this._lastTokenType=null,this._lastTokenLanguage=null,this._languageId=null,p.endState}finalize(l){return new y.TokenizationResult(this._tokens,l)}}class t{constructor(l,a){this._languageService=l,this._theme=a,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterLanguage(l){this._currentLanguageId=this._languageService.languageIdCodec.encodeLanguageId(l)}emit(l,a){const r=this._theme.match(this._currentLanguageId,a);this._lastTokenMetadata!==r&&(this._lastTokenMetadata=r,this._tokens.push(l),this._tokens.push(r))}static _merge(l,a,r){const c=l!==null?l.length:0,g=a.length,f=r!==null?r.length:0;if(c===0&&g===0&&f===0)return new Uint32Array(0);if(c===0&&g===0)return r;if(g===0&&f===0)return l;const _=new Uint32Array(c+g+f);l!==null&&_.set(l);for(let p=0;p<g;p++)_[c+p]=a[p];return r!==null&&_.set(r,c+g),_}nestedLanguageTokenize(l,a,r,c){const g=r.languageId,f=r.state,_=y.TokenizationRegistry.get(g);if(!_)return this.enterLanguage(g),this.emit(c,""),f;const p=_.tokenizeEncoded(l,a,f);if(c!==0)for(let m=0,S=p.tokens.length;m<S;m+=2)p.tokens[m]+=c;return this._prependTokens=t._merge(this._prependTokens,this._tokens,p.tokens),this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0,p.endState}finalize(l){return new y.EncodedTokenizationResult(t._merge(this._prependTokens,this._tokens,null),l)}}let o=class Wi{constructor(l,a,r,c,g){this._configurationService=g,this._languageService=l,this._standaloneThemeService=a,this._languageId=r,this._lexer=c,this._embeddedLanguages=Object.create(null),this.embeddedLoaded=Promise.resolve(void 0);let f=!1;this._tokenizationRegistryListener=y.TokenizationRegistry.onDidChange(_=>{if(f)return;let p=!1;for(let m=0,S=_.changedLanguages.length;m<S;m++){const E=_.changedLanguages[m];if(this._embeddedLanguages[E]){p=!0;break}}p&&(f=!0,y.TokenizationRegistry.fire([this._languageId]),f=!1)}),this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}),this._configurationService.onDidChangeConfiguration(_=>{_.affectsConfiguration("editor.maxTokenizationLineLength")&&(this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}))})}dispose(){this._tokenizationRegistryListener.dispose()}getLoadStatus(){const l=[];for(const a in this._embeddedLanguages){const r=y.TokenizationRegistry.get(a);if(r){if(r instanceof Wi){const c=r.getLoadStatus();c.loaded===!1&&l.push(c.promise)}continue}y.TokenizationRegistry.isResolved(a)||l.push(y.TokenizationRegistry.getOrCreate(a))}return l.length===0?{loaded:!0}:{loaded:!1,promise:Promise.all(l).then(a=>{})}}getInitialState(){const l=b.create(null,this._lexer.start);return u.create(l,null)}tokenize(l,a,r){if(l.length>=this._maxTokenizationLineLength)return(0,v.nullTokenize)(this._languageId,r);const c=new i,g=this._tokenize(l,a,r,c);return c.finalize(g)}tokenizeEncoded(l,a,r){if(l.length>=this._maxTokenizationLineLength)return(0,v.nullTokenizeEncoded)(this._languageService.languageIdCodec.encodeLanguageId(this._languageId),r);const c=new t(this._languageService,this._standaloneThemeService.getColorTheme().tokenTheme),g=this._tokenize(l,a,r,c);return c.finalize(g)}_tokenize(l,a,r,c){return r.embeddedLanguageData?this._nestedTokenize(l,a,r,0,c):this._myTokenize(l,a,r,0,c)}_findLeavingNestedLanguageOffset(l,a){let r=this._lexer.tokenizer[a.stack.state];if(!r&&(r=k.findRules(this._lexer,a.stack.state),!r))throw k.createError(this._lexer,"tokenizer state is not defined: "+a.stack.state);let c=-1,g=!1;for(const f of r){if(!k.isIAction(f.action)||f.action.nextEmbedded!=="@pop")continue;g=!0;let _=f.regex;const p=f.regex.source;if(p.substr(0,4)==="^(?:"&&p.substr(p.length-1,1)===")"){const S=(_.ignoreCase?"i":"")+(_.unicode?"u":"");_=new RegExp(p.substr(4,p.length-5),S)}const m=l.search(_);m===-1||m!==0&&f.matchOnlyAtLineStart||(c===-1||m<c)&&(c=m)}if(!g)throw k.createError(this._lexer,'no rule containing nextEmbedded: "@pop" in tokenizer embedded state: '+a.stack.state);return c}_nestedTokenize(l,a,r,c,g){const f=this._findLeavingNestedLanguageOffset(l,r);if(f===-1){const m=g.nestedLanguageTokenize(l,a,r.embeddedLanguageData,c);return u.create(r.stack,new h(r.embeddedLanguageData.languageId,m))}const _=l.substring(0,f);_.length>0&&g.nestedLanguageTokenize(_,!1,r.embeddedLanguageData,c);const p=l.substring(f);return this._myTokenize(p,a,r,c+f,g)}_safeRuleName(l){return l?l.name:"(unknown)"}_myTokenize(l,a,r,c,g){g.enterLanguage(this._languageId);const f=l.length,_=a&&this._lexer.includeLF?l+` `:l,p=_.length;let m=r.embeddedLanguageData,S=r.stack,E=0,L=null,N=!0;for(;N||E<p;){const I=E,R=S.depth,F=L?L.groups.length:0,O=S.state;let x=null,M=null,P=null,A=null,B=null;if(L){x=L.matches;const ee=L.groups.shift();M=ee.matched,P=ee.action,A=L.rule,L.groups.length===0&&(L=null)}else{if(!N&&E>=p)break;N=!1;let ee=this._lexer.tokenizer[O];if(!ee&&(ee=k.findRules(this._lexer,O),!ee))throw k.createError(this._lexer,"tokenizer state is not defined: "+O);const J=_.substr(E);for(const $ of ee)if((E===0||!$.matchOnlyAtLineStart)&&(x=J.match($.regex),x)){M=x[0],P=$.action;break}}if(x||(x=[""],M=""),P||(E<p&&(x=[_.charAt(E)],M=x[0]),P=this._lexer.defaultToken),M===null)break;for(E+=M.length;k.isFuzzyAction(P)&&k.isIAction(P)&&P.test;)P=P.test(M,x,O,E===p);let K=null;if(typeof P=="string"||Array.isArray(P))K=P;else if(P.group)K=P.group;else if(P.token!==null&&P.token!==void 0){if(P.tokenSubst?K=k.substituteMatches(this._lexer,P.token,M,x,O):K=P.token,P.nextEmbedded)if(P.nextEmbedded==="@pop"){if(!m)throw k.createError(this._lexer,"cannot pop embedded language if not inside one");m=null}else{if(m)throw k.createError(this._lexer,"cannot enter embedded language from within an embedded language");B=k.substituteMatches(this._lexer,P.nextEmbedded,M,x,O)}if(P.goBack&&(E=Math.max(0,E-P.goBack)),P.switchTo&&typeof P.switchTo=="string"){let ee=k.substituteMatches(this._lexer,P.switchTo,M,x,O);if(ee[0]==="@"&&(ee=ee.substr(1)),k.findRules(this._lexer,ee))S=S.switchTo(ee);else throw k.createError(this._lexer,"trying to switch to a state '"+ee+"' that is undefined in rule: "+this._safeRuleName(A))}else{if(P.transform&&typeof P.transform=="function")throw k.createError(this._lexer,"action.transform not supported");if(P.next)if(P.next==="@push"){if(S.depth>=this._lexer.maxStack)throw k.createError(this._lexer,"maximum tokenizer stack size reached: ["+S.state+","+S.parent.state+",...]");S=S.push(O)}else if(P.next==="@pop"){if(S.depth<=1)throw k.createError(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(A));S=S.pop()}else if(P.next==="@popall")S=S.popall();else{let ee=k.substituteMatches(this._lexer,P.next,M,x,O);if(ee[0]==="@"&&(ee=ee.substr(1)),k.findRules(this._lexer,ee))S=S.push(ee);else throw k.createError(this._lexer,"trying to set a next state '"+ee+"' that is undefined in rule: "+this._safeRuleName(A))}}P.log&&typeof P.log=="string"&&k.log(this._lexer,this._lexer.languageId+": "+k.substituteMatches(this._lexer,P.log,M,x,O))}if(K===null)throw k.createError(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(A));const T=ee=>{const J=this._languageService.getLanguageIdByLanguageName(ee)||this._languageService.getLanguageIdByMimeType(ee)||ee,$=this._getNestedEmbeddedLanguageData(J);if(E<p){const j=l.substr(E);return this._nestedTokenize(j,a,u.create(S,$),c+E,g)}else return u.create(S,$)};if(Array.isArray(K)){if(L&&L.groups.length>0)throw k.createError(this._lexer,"groups cannot be nested: "+this._safeRuleName(A));if(x.length!==K.length+1)throw k.createError(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(A));let ee=0;for(let J=1;J<x.length;J++)ee+=x[J].length;if(ee!==M.length)throw k.createError(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(A));L={rule:A,matches:x,groups:[]};for(let J=0;J<K.length;J++)L.groups[J]={action:K[J],matched:x[J+1]};E-=M.length;continue}else{if(K==="@rematch"&&(E-=M.length,M="",x=null,K="",B!==null))return T(B);if(M.length===0){if(p===0||R!==S.depth||O!==S.state||(L?L.groups.length:0)!==F)continue;throw k.createError(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(A))}let ee=null;if(k.isString(K)&&K.indexOf("@brackets")===0){const J=K.substr(9),$=s(this._lexer,M);if(!$)throw k.createError(this._lexer,"@brackets token returned but no bracket defined as: "+M);ee=k.sanitize($.token+J)}else{const J=K===""?"":K+this._lexer.tokenPostfix;ee=k.sanitize(J)}I<f&&g.emit(I+c,ee)}if(B!==null)return T(B)}return u.create(S,m)}_getNestedEmbeddedLanguageData(l){if(!this._languageService.isRegisteredLanguageId(l))return new h(l,v.NullState);l!==this._languageId&&(y.TokenizationRegistry.getOrCreate(l),this._embeddedLanguages[l]=!0);const a=y.TokenizationRegistry.get(l);return a?new h(l,a.getInitialState()):new h(l,v.NullState)}};o=Ie([pe(4,D.IConfigurationService)],o),e.MonarchTokenizer=o;function s(d,l){if(!l)return null;l=k.fixCase(d,l);const a=d.brackets;for(const r of a){if(r.open===l)return{token:r.token,bracketType:1};if(r.close===l)return{token:r.token,bracketType:-1}}return null}}),define(oe[630],se([1,0,8,82,28,114,74,284]),function(q,e,y,v,k,D,w,b){"use strict";var C;Object.defineProperty(e,"__esModule",{value:!0}),e.Colorizer=void 0;const h=(C=window.trustedTypes)===null||C===void 0?void 0:C.createPolicy("standaloneColorizer",{createHTML:o=>o});class u{static colorizeElement(s,d,l,a){a=a||{};const r=a.theme||"vs",c=a.mimeType||l.getAttribute("lang")||l.getAttribute("data-lang");if(!c)return console.error("Mode not detected"),Promise.resolve();const g=d.getLanguageIdByMimeType(c)||c;s.setTheme(r);const f=l.firstChild?l.firstChild.nodeValue:"";l.className+=" "+r;const _=p=>{var m;const S=(m=h?.createHTML(p))!==null&&m!==void 0?m:p;l.innerHTML=S};return this.colorize(d,f||"",g,a).then(_,p=>console.error(p))}static colorize(s,d,l,a){return be(this,void 0,void 0,function*(){const r=s.languageIdCodec;let c=4;a&&typeof a.tabSize=="number"&&(c=a.tabSize),y.startsWithUTF8BOM(d)&&(d=d.substr(1));const g=y.splitLines(d);if(!s.isRegisteredLanguageId(l))return i(g,c,r);const f=yield k.TokenizationRegistry.getOrCreate(l);return f?n(g,c,f,r):i(g,c,r)})}static colorizeLine(s,d,l,a,r=4){const c=w.ViewLineRenderingData.isBasicASCII(s,d),g=w.ViewLineRenderingData.containsRTL(s,c,l);return(0,D.renderViewLine2)(new D.RenderLineInput(!1,!0,s,!1,c,g,0,a,[],r,0,0,0,0,-1,"none",!1,!1,null)).html}static colorizeModelLine(s,d,l=4){const a=s.getLineContent(d);s.tokenization.forceTokenization(d);const r=s.tokenization.getLineTokens(d).inflate();return this.colorizeLine(a,s.mightContainNonBasicASCII(),s.mightContainRTL(),r,l)}}e.Colorizer=u;function n(o,s,d,l){return new Promise((a,r)=>{const c=()=>{const g=t(o,s,d,l);if(d instanceof b.MonarchTokenizer){const f=d.getLoadStatus();if(f.loaded===!1){f.promise.then(c,r);return}}a(g)};c()})}function i(o,s,d){let l=[];const r=new Uint32Array(2);r[0]=0,r[1]=33587200;for(let c=0,g=o.length;c<g;c++){const f=o[c];r[0]=f.length;const _=new v.LineTokens(r,f,d),p=w.ViewLineRenderingData.isBasicASCII(f,!0),m=w.ViewLineRenderingData.containsRTL(f,p,!0),S=(0,D.renderViewLine2)(new D.RenderLineInput(!1,!0,f,!1,p,m,0,_,[],s,0,0,0,0,-1,"none",!1,!1,null));l=l.concat(S.html),l.push("<br/>")}return l.join("")}function t(o,s,d,l){let a=[],r=d.getInitialState();for(let c=0,g=o.length;c<g;c++){const f=o[c],_=d.tokenizeEncoded(f,!0,r);v.LineTokens.convertToEndOffset(_.tokens,f.length);const p=new v.LineTokens(_.tokens,f,l),m=w.ViewLineRenderingData.isBasicASCII(f,!0),S=w.ViewLineRenderingData.containsRTL(f,m,!0),E=(0,D.renderViewLine2)(new D.RenderLineInput(!1,!0,f,!1,m,S,0,p.inflate(),[],s,0,0,0,0,-1,"none",!1,!1,null));a=a.concat(E.html),a.push("<br/>"),r=_.endState}return a.join("")}}),define(oe[285],se([1,0,18,51,40,19,22,30]),function(q,e,y,v,k,D,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConfigurationChangeEvent=e.Configuration=e.ConfigurationModel=void 0;class C{constructor(i={},t=[],o=[]){this._contents=i,this._keys=t,this._overrides=o,this.frozen=!1,this.overrideConfigurations=new Map}get contents(){return this.checkAndFreeze(this._contents)}get overrides(){return this.checkAndFreeze(this._overrides)}get keys(){return this.checkAndFreeze(this._keys)}isEmpty(){return this._keys.length===0&&Object.keys(this._contents).length===0&&this._overrides.length===0}getValue(i){return i?(0,b.getConfigurationValue)(this.contents,i):this.contents}getOverrideValue(i,t){const o=this.getContentsForOverrideIdentifer(t);return o?i?(0,b.getConfigurationValue)(o,i):o:void 0}override(i){let t=this.overrideConfigurations.get(i);return t||(t=this.createOverrideConfigurationModel(i),this.overrideConfigurations.set(i,t)),t}merge(...i){const t=k.deepClone(this.contents),o=k.deepClone(this.overrides),s=[...this.keys];for(const d of i)if(!d.isEmpty()){this.mergeContents(t,d.contents);for(const l of d.overrides){const[a]=o.filter(r=>y.equals(r.identifiers,l.identifiers));a?(this.mergeContents(a.contents,l.contents),a.keys.push(...l.keys),a.keys=y.distinct(a.keys)):o.push(k.deepClone(l))}for(const l of d.keys)s.indexOf(l)===-1&&s.push(l)}return new C(t,s,o)}freeze(){return this.frozen=!0,this}createOverrideConfigurationModel(i){const t=this.getContentsForOverrideIdentifer(i);if(!t||typeof t!="object"||!Object.keys(t).length)return this;const o={};for(const s of y.distinct([...Object.keys(this.contents),...Object.keys(t)])){let d=this.contents[s];const l=t[s];l&&(typeof d=="object"&&typeof l=="object"?(d=k.deepClone(d),this.mergeContents(d,l)):d=l),o[s]=d}return new C(o,this.keys,this.overrides)}mergeContents(i,t){for(const o of Object.keys(t)){if(o in i&&D.isObject(i[o])&&D.isObject(t[o])){this.mergeContents(i[o],t[o]);continue}i[o]=k.deepClone(t[o])}}checkAndFreeze(i){return this.frozen&&!Object.isFrozen(i)?k.deepFreeze(i):i}getContentsForOverrideIdentifer(i){let t=null,o=null;const s=d=>{d&&(o?this.mergeContents(o,d):o=k.deepClone(d))};for(const d of this.overrides)y.equals(d.identifiers,[i])?t=d.contents:d.identifiers.includes(i)&&s(d.contents);return s(t),o}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}setValue(i,t){this.addKey(i),(0,b.addToValueTree)(this.contents,i,t,o=>{throw new Error(o)})}removeValue(i){this.removeKey(i)&&(0,b.removeFromValueTree)(this.contents,i)}addKey(i){let t=this.keys.length;for(let o=0;o<t;o++)i.indexOf(this.keys[o])===0&&(t=o);this.keys.splice(t,1,i)}removeKey(i){const t=this.keys.indexOf(i);return t!==-1?(this.keys.splice(t,1),!0):!1}}e.ConfigurationModel=C;class h{constructor(i,t,o,s,d=new C,l=new C,a=new v.ResourceMap,r=new C,c=new v.ResourceMap,g=!0){this._defaultConfiguration=i,this._policyConfiguration=t,this._applicationConfiguration=o,this._localUserConfiguration=s,this._remoteUserConfiguration=d,this._workspaceConfiguration=l,this._folderConfigurations=a,this._memoryConfiguration=r,this._memoryConfigurationByResource=c,this._freeze=g,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new v.ResourceMap,this._userConfiguration=null}getValue(i,t,o){return this.getConsolidatedConfigurationModel(i,t,o).getValue(i)}updateValue(i,t,o={}){let s;o.resource?(s=this._memoryConfigurationByResource.get(o.resource),s||(s=new C,this._memoryConfigurationByResource.set(o.resource,s))):s=this._memoryConfiguration,t===void 0?s.removeValue(i):s.setValue(i,t),o.resource||(this._workspaceConsolidatedConfiguration=null)}inspect(i,t,o){const s=this.getConsolidatedConfigurationModel(i,t,o),d=this.getFolderConfigurationModelForResource(t.resource,o),l=t.resource?this._memoryConfigurationByResource.get(t.resource)||this._memoryConfiguration:this._memoryConfiguration,a=t.overrideIdentifier?this._defaultConfiguration.freeze().override(t.overrideIdentifier).getValue(i):this._defaultConfiguration.freeze().getValue(i),r=this._policyConfiguration.isEmpty()?void 0:this._policyConfiguration.freeze().getValue(i),c=this.applicationConfiguration.isEmpty()?void 0:this.applicationConfiguration.freeze().getValue(i),g=t.overrideIdentifier?this.userConfiguration.freeze().override(t.overrideIdentifier).getValue(i):this.userConfiguration.freeze().getValue(i),f=t.overrideIdentifier?this.localUserConfiguration.freeze().override(t.overrideIdentifier).getValue(i):this.localUserConfiguration.freeze().getValue(i),_=t.overrideIdentifier?this.remoteUserConfiguration.freeze().override(t.overrideIdentifier).getValue(i):this.remoteUserConfiguration.freeze().getValue(i),p=o?t.overrideIdentifier?this._workspaceConfiguration.freeze().override(t.overrideIdentifier).getValue(i):this._workspaceConfiguration.freeze().getValue(i):void 0,m=d?t.overrideIdentifier?d.freeze().override(t.overrideIdentifier).getValue(i):d.freeze().getValue(i):void 0,S=t.overrideIdentifier?l.override(t.overrideIdentifier).getValue(i):l.getValue(i),E=s.getValue(i),L=y.distinct(s.overrides.map(N=>N.identifiers).flat()).filter(N=>s.getOverrideValue(i,N)!==void 0);return{defaultValue:a,policyValue:r,applicationValue:c,userValue:g,userLocalValue:f,userRemoteValue:_,workspaceValue:p,workspaceFolderValue:m,memoryValue:S,value:E,default:a!==void 0?{value:this._defaultConfiguration.freeze().getValue(i),override:t.overrideIdentifier?this._defaultConfiguration.freeze().getOverrideValue(i,t.overrideIdentifier):void 0}:void 0,policy:r!==void 0?{value:r}:void 0,application:c!==void 0?{value:c,override:t.overrideIdentifier?this.applicationConfiguration.freeze().getOverrideValue(i,t.overrideIdentifier):void 0}:void 0,user:g!==void 0?{value:this.userConfiguration.freeze().getValue(i),override:t.overrideIdentifier?this.userConfiguration.freeze().getOverrideValue(i,t.overrideIdentifier):void 0}:void 0,userLocal:f!==void 0?{value:this.localUserConfiguration.freeze().getValue(i),override:t.overrideIdentifier?this.localUserConfiguration.freeze().getOverrideValue(i,t.overrideIdentifier):void 0}:void 0,userRemote:_!==void 0?{value:this.remoteUserConfiguration.freeze().getValue(i),override:t.overrideIdentifier?this.remoteUserConfiguration.freeze().getOverrideValue(i,t.overrideIdentifier):void 0}:void 0,workspace:p!==void 0?{value:this._workspaceConfiguration.freeze().getValue(i),override:t.overrideIdentifier?this._workspaceConfiguration.freeze().getOverrideValue(i,t.overrideIdentifier):void 0}:void 0,workspaceFolder:m!==void 0?{value:d?.freeze().getValue(i),override:t.overrideIdentifier?d?.freeze().getOverrideValue(i,t.overrideIdentifier):void 0}:void 0,memory:S!==void 0?{value:l.getValue(i),override:t.overrideIdentifier?l.getOverrideValue(i,t.overrideIdentifier):void 0}:void 0,overrideIdentifiers:L.length?L:void 0}}get applicationConfiguration(){return this._applicationConfiguration}get userConfiguration(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration),this._freeze&&this._userConfiguration.freeze()),this._userConfiguration}get localUserConfiguration(){return this._localUserConfiguration}get remoteUserConfiguration(){return this._remoteUserConfiguration}getConsolidatedConfigurationModel(i,t,o){let s=this.getConsolidatedConfigurationModelForResource(t,o);return t.overrideIdentifier&&(s=s.override(t.overrideIdentifier)),!this._policyConfiguration.isEmpty()&&this._policyConfiguration.getValue(i)!==void 0&&(s=s.merge(this._policyConfiguration)),s}getConsolidatedConfigurationModelForResource({resource:i},t){let o=this.getWorkspaceConsolidatedConfiguration();if(t&&i){const s=t.getFolder(i);s&&(o=this.getFolderConsolidatedConfiguration(s.uri)||o);const d=this._memoryConfigurationByResource.get(i);d&&(o=o.merge(d))}return o}getWorkspaceConsolidatedConfiguration(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.applicationConfiguration,this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration),this._freeze&&(this._workspaceConfiguration=this._workspaceConfiguration.freeze())),this._workspaceConsolidatedConfiguration}getFolderConsolidatedConfiguration(i){let t=this._foldersConsolidatedConfigurations.get(i);if(!t){const o=this.getWorkspaceConsolidatedConfiguration(),s=this._folderConfigurations.get(i);s?(t=o.merge(s),this._freeze&&(t=t.freeze()),this._foldersConsolidatedConfigurations.set(i,t)):t=o}return t}getFolderConfigurationModelForResource(i,t){if(t&&i){const o=t.getFolder(i);if(o)return this._folderConfigurations.get(o.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((i,t)=>{const{contents:o,overrides:s,keys:d}=this._folderConfigurations.get(t);return i.push([t,{contents:o,overrides:s,keys:d}]),i},[])}}static parse(i){const t=this.parseConfigurationModel(i.defaults),o=this.parseConfigurationModel(i.policy),s=this.parseConfigurationModel(i.application),d=this.parseConfigurationModel(i.user),l=this.parseConfigurationModel(i.workspace),a=i.folders.reduce((r,c)=>(r.set(w.URI.revive(c[0]),this.parseConfigurationModel(c[1])),r),new v.ResourceMap);return new h(t,o,s,d,new C,l,a,new C,new v.ResourceMap,!1)}static parseConfigurationModel(i){return new C(i.contents,i.keys,i.overrides).freeze()}}e.Configuration=h;class u{constructor(i,t,o,s){this.change=i,this.previous=t,this.currentConfiguraiton=o,this.currentWorkspace=s,this._previousConfiguration=void 0;const d=new Set;i.keys.forEach(a=>d.add(a)),i.overrides.forEach(([,a])=>a.forEach(r=>d.add(r))),this.affectedKeys=[...d.values()];const l=new C;this.affectedKeys.forEach(a=>l.setValue(a,{})),this.affectedKeysTree=l.contents}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=h.parse(this.previous.data)),this._previousConfiguration}affectsConfiguration(i,t){var o;if(this.doesAffectedKeysTreeContains(this.affectedKeysTree,i)){if(t){const s=this.previousConfiguration?this.previousConfiguration.getValue(i,t,(o=this.previous)===null||o===void 0?void 0:o.workspace):void 0,d=this.currentConfiguraiton.getValue(i,t,this.currentWorkspace);return!k.equals(s,d)}return!0}return!1}doesAffectedKeysTreeContains(i,t){let o=(0,b.toValuesTree)({[t]:!0},()=>{}),s;for(;typeof o=="object"&&(s=Object.keys(o)[0]);){if(i=i[s],!i)return!1;o=o[s]}return!0}}e.ConfigurationChangeEvent=u}),define(oe[16],se([1,0,17,8,9]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.implies=e.SET_CONTEXT_COMMAND_ID=e.IContextKeyService=e.RawContextKey=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.expressionsAreEqualWithConstantSubstitution=e.ContextKeyExpr=void 0;const D=new Map;D.set("false",!1),D.set("true",!0),D.set("isMac",y.isMacintosh),D.set("isLinux",y.isLinux),D.set("isWindows",y.isWindows),D.set("isWeb",y.isWeb),D.set("isMacNative",y.isMacintosh&&!y.isWeb),D.set("isEdge",y.isEdge),D.set("isFirefox",y.isFirefox),D.set("isChrome",y.isChrome),D.set("isSafari",y.isSafari);const w=Object.prototype.hasOwnProperty;class b{static has(x){return i.create(x)}static equals(x,M){return t.create(x,M)}static regex(x,M){return _.create(x,M)}static not(x){return l.create(x)}static and(...x){return S.create(x,null)}static or(...x){return E.create(x,null,!0)}static deserialize(x,M=!1){if(x)return this._deserializeOrExpression(x,M)}static _deserializeOrExpression(x,M){const P=x.split("||");return E.create(P.map(A=>this._deserializeAndExpression(A,M)),null,!0)}static _deserializeAndExpression(x,M){const P=x.split("&&");return S.create(P.map(A=>this._deserializeOne(A,M)),null)}static _deserializeOne(x,M){if(x=x.trim(),x.indexOf("!=")>=0){const P=x.split("!=");return d.create(P[0].trim(),this._deserializeValue(P[1],M))}if(x.indexOf("==")>=0){const P=x.split("==");return t.create(P[0].trim(),this._deserializeValue(P[1],M))}if(x.indexOf("=~")>=0){const P=x.split("=~");return _.create(P[0].trim(),this._deserializeRegexValue(P[1],M))}if(x.indexOf(" not in ")>=0){const P=x.split(" not in ");return s.create(P[0].trim(),P[1].trim())}if(x.indexOf(" in ")>=0){const P=x.split(" in ");return o.create(P[0].trim(),P[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(x)){const P=x.split(">=");return c.create(P[0].trim(),P[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(x)){const P=x.split(">");return r.create(P[0].trim(),P[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(x)){const P=x.split("<=");return f.create(P[0].trim(),P[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(x)){const P=x.split("<");return g.create(P[0].trim(),P[1].trim())}return/^\!\s*/.test(x)?l.create(x.substr(1).trim()):i.create(x)}static _deserializeValue(x,M){if(x=x.trim(),x==="true")return!0;if(x==="false")return!1;const P=/^'([^']*)'$/.exec(x);return P?P[1].trim():x}static _deserializeRegexValue(x,M){if((0,v.isFalsyOrWhitespace)(x)){if(M)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}const P=x.indexOf("/"),A=x.lastIndexOf("/");if(P===A||P<0){if(M)throw new Error(`bad regexp-value '${x}', missing /-enclosure`);return console.warn(`bad regexp-value '${x}', missing /-enclosure`),null}const B=x.slice(P+1,A),K=x[A+1]==="i"?"i":"";try{return new RegExp(B,K)}catch(T){if(M)throw new Error(`bad regexp-value '${x}', parse error: ${T}`);return console.warn(`bad regexp-value '${x}', parse error: ${T}`),null}}}e.ContextKeyExpr=b;function C(O,x){const M=O?O.substituteConstants():void 0,P=x?x.substituteConstants():void 0;return!M&&!P?!0:!M||!P?!1:M.equals(P)}e.expressionsAreEqualWithConstantSubstitution=C;function h(O,x){return O.cmp(x)}class u{constructor(){this.type=0}cmp(x){return this.type-x.type}equals(x){return x.type===this.type}substituteConstants(){return this}evaluate(x){return!1}serialize(){return"false"}keys(){return[]}negate(){return n.INSTANCE}}e.ContextKeyFalseExpr=u,u.INSTANCE=new u;class n{constructor(){this.type=1}cmp(x){return this.type-x.type}equals(x){return x.type===this.type}substituteConstants(){return this}evaluate(x){return!0}serialize(){return"true"}keys(){return[]}negate(){return u.INSTANCE}}e.ContextKeyTrueExpr=n,n.INSTANCE=new n;class i{constructor(x,M){this.key=x,this.negated=M,this.type=2}static create(x,M=null){const P=D.get(x);return typeof P=="boolean"?P?n.INSTANCE:u.INSTANCE:new i(x,M)}cmp(x){return x.type!==this.type?this.type-x.type:N(this.key,x.key)}equals(x){return x.type===this.type?this.key===x.key:!1}substituteConstants(){const x=D.get(this.key);return typeof x=="boolean"?x?n.INSTANCE:u.INSTANCE:this}evaluate(x){return!!x.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=l.create(this.key,this)),this.negated}}e.ContextKeyDefinedExpr=i;class t{constructor(x,M,P){this.key=x,this.value=M,this.negated=P,this.type=4}static create(x,M,P=null){if(typeof M=="boolean")return M?i.create(x,P):l.create(x,P);const A=D.get(x);return typeof A=="boolean"?M===(A?"true":"false")?n.INSTANCE:u.INSTANCE:new t(x,M,P)}cmp(x){return x.type!==this.type?this.type-x.type:I(this.key,this.value,x.key,x.value)}equals(x){return x.type===this.type?this.key===x.key&&this.value===x.value:!1}substituteConstants(){const x=D.get(this.key);if(typeof x=="boolean"){const M=x?"true":"false";return this.value===M?n.INSTANCE:u.INSTANCE}return this}evaluate(x){return x.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=t;class o{constructor(x,M){this.key=x,this.valueKey=M,this.type=10,this.negated=null}static create(x,M){return new o(x,M)}cmp(x){return x.type!==this.type?this.type-x.type:I(this.key,this.valueKey,x.key,x.valueKey)}equals(x){return x.type===this.type?this.key===x.key&&this.valueKey===x.valueKey:!1}substituteConstants(){return this}evaluate(x){const M=x.getValue(this.valueKey),P=x.getValue(this.key);return Array.isArray(M)?M.includes(P):typeof P=="string"&&typeof M=="object"&&M!==null?w.call(M,P):!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=o;class s{constructor(x,M){this.key=x,this.valueKey=M,this.type=11,this._negated=o.create(x,M)}static create(x,M){return new s(x,M)}cmp(x){return x.type!==this.type?this.type-x.type:this._negated.cmp(x._negated)}equals(x){return x.type===this.type?this._negated.equals(x._negated):!1}substituteConstants(){return this}evaluate(x){return!this._negated.evaluate(x)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}e.ContextKeyNotInExpr=s;class d{constructor(x,M,P){this.key=x,this.value=M,this.negated=P,this.type=5}static create(x,M,P=null){if(typeof M=="boolean")return M?l.create(x,P):i.create(x,P);const A=D.get(x);return typeof A=="boolean"?M===(A?"true":"false")?u.INSTANCE:n.INSTANCE:new d(x,M,P)}cmp(x){return x.type!==this.type?this.type-x.type:I(this.key,this.value,x.key,x.value)}equals(x){return x.type===this.type?this.key===x.key&&this.value===x.value:!1}substituteConstants(){const x=D.get(this.key);if(typeof x=="boolean"){const M=x?"true":"false";return this.value===M?u.INSTANCE:n.INSTANCE}return this}evaluate(x){return x.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=t.create(this.key,this.value,this)),this.negated}}e.ContextKeyNotEqualsExpr=d;class l{constructor(x,M){this.key=x,this.negated=M,this.type=3}static create(x,M=null){const P=D.get(x);return typeof P=="boolean"?P?u.INSTANCE:n.INSTANCE:new l(x,M)}cmp(x){return x.type!==this.type?this.type-x.type:N(this.key,x.key)}equals(x){return x.type===this.type?this.key===x.key:!1}substituteConstants(){const x=D.get(this.key);return typeof x=="boolean"?x?u.INSTANCE:n.INSTANCE:this}evaluate(x){return!x.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.ContextKeyNotExpr=l;function a(O,x){if(typeof O=="string"){const M=parseFloat(O);isNaN(M)||(O=M)}return typeof O=="string"||typeof O=="number"?x(O):u.INSTANCE}class r{constructor(x,M,P){this.key=x,this.value=M,this.negated=P,this.type=12}static create(x,M,P=null){return a(M,A=>new r(x,A,P))}cmp(x){return x.type!==this.type?this.type-x.type:I(this.key,this.value,x.key,x.value)}equals(x){return x.type===this.type?this.key===x.key&&this.value===x.value:!1}substituteConstants(){return this}evaluate(x){return typeof this.value=="string"?!1:parseFloat(x.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=f.create(this.key,this.value,this)),this.negated}}e.ContextKeyGreaterExpr=r;class c{constructor(x,M,P){this.key=x,this.value=M,this.negated=P,this.type=13}static create(x,M,P=null){return a(M,A=>new c(x,A,P))}cmp(x){return x.type!==this.type?this.type-x.type:I(this.key,this.value,x.key,x.value)}equals(x){return x.type===this.type?this.key===x.key&&this.value===x.value:!1}substituteConstants(){return this}evaluate(x){return typeof this.value=="string"?!1:parseFloat(x.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=g.create(this.key,this.value,this)),this.negated}}e.ContextKeyGreaterEqualsExpr=c;class g{constructor(x,M,P){this.key=x,this.value=M,this.negated=P,this.type=14}static create(x,M,P=null){return a(M,A=>new g(x,A,P))}cmp(x){return x.type!==this.type?this.type-x.type:I(this.key,this.value,x.key,x.value)}equals(x){return x.type===this.type?this.key===x.key&&this.value===x.value:!1}substituteConstants(){return this}evaluate(x){return typeof this.value=="string"?!1:parseFloat(x.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=c.create(this.key,this.value,this)),this.negated}}e.ContextKeySmallerExpr=g;class f{constructor(x,M,P){this.key=x,this.value=M,this.negated=P,this.type=15}static create(x,M,P=null){return a(M,A=>new f(x,A,P))}cmp(x){return x.type!==this.type?this.type-x.type:I(this.key,this.value,x.key,x.value)}equals(x){return x.type===this.type?this.key===x.key&&this.value===x.value:!1}substituteConstants(){return this}evaluate(x){return typeof this.value=="string"?!1:parseFloat(x.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.ContextKeySmallerEqualsExpr=f;class _{constructor(x,M){this.key=x,this.regexp=M,this.type=7,this.negated=null}static create(x,M){return new _(x,M)}cmp(x){if(x.type!==this.type)return this.type-x.type;if(this.key<x.key)return-1;if(this.key>x.key)return 1;const M=this.regexp?this.regexp.source:"",P=x.regexp?x.regexp.source:"";return M<P?-1:M>P?1:0}equals(x){if(x.type===this.type){const M=this.regexp?this.regexp.source:"",P=x.regexp?x.regexp.source:"";return this.key===x.key&&M===P}return!1}substituteConstants(){return this}evaluate(x){const M=x.getValue(this.key);return this.regexp?this.regexp.test(M):!1}serialize(){const x=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${x}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=p.create(this)),this.negated}}e.ContextKeyRegexExpr=_;class p{constructor(x){this._actual=x,this.type=8}static create(x){return new p(x)}cmp(x){return x.type!==this.type?this.type-x.type:this._actual.cmp(x._actual)}equals(x){return x.type===this.type?this._actual.equals(x._actual):!1}substituteConstants(){return this}evaluate(x){return!this._actual.evaluate(x)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}e.ContextKeyNotRegexExpr=p;function m(O){let x=null;for(let M=0,P=O.length;M<P;M++){const A=O[M].substituteConstants();if(O[M]!==A&&x===null){x=[];for(let B=0;B<M;B++)x[B]=O[B]}x!==null&&(x[M]=A)}return x===null?O:x}class S{constructor(x,M){this.expr=x,this.negated=M,this.type=6}static create(x,M){return S._normalizeArr(x,M)}cmp(x){if(x.type!==this.type)return this.type-x.type;if(this.expr.length<x.expr.length)return-1;if(this.expr.length>x.expr.length)return 1;for(let M=0,P=this.expr.length;M<P;M++){const A=h(this.expr[M],x.expr[M]);if(A!==0)return A}return 0}equals(x){if(x.type===this.type){if(this.expr.length!==x.expr.length)return!1;for(let M=0,P=this.expr.length;M<P;M++)if(!this.expr[M].equals(x.expr[M]))return!1;return!0}return!1}substituteConstants(){const x=m(this.expr);return x===this.expr?this:S.create(x,this.negated)}evaluate(x){for(let M=0,P=this.expr.length;M<P;M++)if(!this.expr[M].evaluate(x))return!1;return!0}static _normalizeArr(x,M){const P=[];let A=!1;for(const B of x)if(B){if(B.type===1){A=!0;continue}if(B.type===0)return u.INSTANCE;if(B.type===6){P.push(...B.expr);continue}P.push(B)}if(P.length===0&&A)return n.INSTANCE;if(P.length!==0){if(P.length===1)return P[0];P.sort(h);for(let B=1;B<P.length;B++)P[B-1].equals(P[B])&&(P.splice(B,1),B--);if(P.length===1)return P[0];for(;P.length>1;){const B=P[P.length-1];if(B.type!==9)break;P.pop();const K=P.pop(),T=P.length===0,ee=E.create(B.expr.map(J=>S.create([J,K],null)),null,T);ee&&(P.push(ee),P.sort(h))}return P.length===1?P[0]:new S(P,M)}}serialize(){return this.expr.map(x=>x.serialize()).join(" && ")}keys(){const x=[];for(const M of this.expr)x.push(...M.keys());return x}negate(){if(!this.negated){const x=[];for(const M of this.expr)x.push(M.negate());this.negated=E.create(x,this,!0)}return this.negated}}class E{constructor(x,M){this.expr=x,this.negated=M,this.type=9}static create(x,M,P){return E._normalizeArr(x,M,P)}cmp(x){if(x.type!==this.type)return this.type-x.type;if(this.expr.length<x.expr.length)return-1;if(this.expr.length>x.expr.length)return 1;for(let M=0,P=this.expr.length;M<P;M++){const A=h(this.expr[M],x.expr[M]);if(A!==0)return A}return 0}equals(x){if(x.type===this.type){if(this.expr.length!==x.expr.length)return!1;for(let M=0,P=this.expr.length;M<P;M++)if(!this.expr[M].equals(x.expr[M]))return!1;return!0}return!1}substituteConstants(){const x=m(this.expr);return x===this.expr?this:E.create(x,this.negated,!1)}evaluate(x){for(let M=0,P=this.expr.length;M<P;M++)if(this.expr[M].evaluate(x))return!0;return!1}static _normalizeArr(x,M,P){let A=[],B=!1;if(x){for(let K=0,T=x.length;K<T;K++){const ee=x[K];if(ee){if(ee.type===0){B=!0;continue}if(ee.type===1)return n.INSTANCE;if(ee.type===9){A=A.concat(ee.expr);continue}A.push(ee)}}if(A.length===0&&B)return u.INSTANCE;A.sort(h)}if(A.length!==0){if(A.length===1)return A[0];for(let K=1;K<A.length;K++)A[K-1].equals(A[K])&&(A.splice(K,1),K--);if(A.length===1)return A[0];if(P){for(let K=0;K<A.length;K++)for(let T=K+1;T<A.length;T++)R(A[K],A[T])&&(A.splice(T,1),T--);if(A.length===1)return A[0]}return new E(A,M)}}serialize(){return this.expr.map(x=>x.serialize()).join(" || ")}keys(){const x=[];for(const M of this.expr)x.push(...M.keys());return x}negate(){if(!this.negated){const x=[];for(const M of this.expr)x.push(M.negate());for(;x.length>1;){const M=x.shift(),P=x.shift(),A=[];for(const K of F(M))for(const T of F(P))A.push(S.create([K,T],null));const B=x.length===0;x.unshift(E.create(A,null,B))}this.negated=x[0]}return this.negated}}class L extends i{constructor(x,M,P){super(x,null),this._defaultValue=M,typeof P=="object"?L._info.push(Object.assign(Object.assign({},P),{key:x})):P!==!0&&L._info.push({key:x,description:P,type:M!=null?typeof M:void 0})}static all(){return L._info.values()}bindTo(x){return x.createKey(this.key,this._defaultValue)}getValue(x){return x.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(x){return t.create(this.key,x)}}e.RawContextKey=L,L._info=[],e.IContextKeyService=(0,k.createDecorator)("contextKeyService"),e.SET_CONTEXT_COMMAND_ID="setContext";function N(O,x){return O<x?-1:O>x?1:0}function I(O,x,M,P){return O<M?-1:O>M?1:x<P?-1:x>P?1:0}function R(O,x){if(x.type===6&&O.type!==9&&O.type!==6){for(const A of x.expr)if(O.equals(A))return!0}const M=O.negate(),P=F(M).concat(F(x));P.sort(h);for(let A=0;A<P.length;A++){const B=P[A].negate();for(let K=A+1;K<P.length;K++){const T=P[K];if(B.equals(T))return!0}}return!1}e.implies=R;function F(O){return O.type===9?O.expr:[O]}}),define(oe[24],se([1,0,534,16]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorContextKeys=void 0;var k;(function(D){D.editorSimpleInput=new v.RawContextKey("editorSimpleInput",!1,!0),D.editorTextFocus=new v.RawContextKey("editorTextFocus",!1,y.localize(0,null)),D.focus=new v.RawContextKey("editorFocus",!1,y.localize(1,null)),D.textInputFocus=new v.RawContextKey("textInputFocus",!1,y.localize(2,null)),D.readOnly=new v.RawContextKey("editorReadonly",!1,y.localize(3,null)),D.inDiffEditor=new v.RawContextKey("inDiffEditor",!1,y.localize(4,null)),D.columnSelection=new v.RawContextKey("editorColumnSelection",!1,y.localize(5,null)),D.writable=D.readOnly.toNegated(),D.hasNonEmptySelection=new v.RawContextKey("editorHasSelection",!1,y.localize(6,null)),D.hasOnlyEmptySelection=D.hasNonEmptySelection.toNegated(),D.hasMultipleSelections=new v.RawContextKey("editorHasMultipleSelections",!1,y.localize(7,null)),D.hasSingleSelection=D.hasMultipleSelections.toNegated(),D.tabMovesFocus=new v.RawContextKey("editorTabMovesFocus",!1,y.localize(8,null)),D.tabDoesNotMoveFocus=D.tabMovesFocus.toNegated(),D.isInWalkThroughSnippet=new v.RawContextKey("isInEmbeddedEditor",!1,!0),D.canUndo=new v.RawContextKey("canUndo",!1,!0),D.canRedo=new v.RawContextKey("canRedo",!1,!0),D.hoverVisible=new v.RawContextKey("editorHoverVisible",!1,y.localize(9,null)),D.inCompositeEditor=new v.RawContextKey("inCompositeEditor",void 0,y.localize(10,null)),D.notInCompositeEditor=D.inCompositeEditor.toNegated(),D.languageId=new v.RawContextKey("editorLangId","",y.localize(11,null)),D.hasCompletionItemProvider=new v.RawContextKey("editorHasCompletionItemProvider",!1,y.localize(12,null)),D.hasCodeActionsProvider=new v.RawContextKey("editorHasCodeActionsProvider",!1,y.localize(13,null)),D.hasCodeLensProvider=new v.RawContextKey("editorHasCodeLensProvider",!1,y.localize(14,null)),D.hasDefinitionProvider=new v.RawContextKey("editorHasDefinitionProvider",!1,y.localize(15,null)),D.hasDeclarationProvider=new v.RawContextKey("editorHasDeclarationProvider",!1,y.localize(16,null)),D.hasImplementationProvider=new v.RawContextKey("editorHasImplementationProvider",!1,y.localize(17,null)),D.hasTypeDefinitionProvider=new v.RawContextKey("editorHasTypeDefinitionProvider",!1,y.localize(18,null)),D.hasHoverProvider=new v.RawContextKey("editorHasHoverProvider",!1,y.localize(19,null)),D.hasDocumentHighlightProvider=new v.RawContextKey("editorHasDocumentHighlightProvider",!1,y.localize(20,null)),D.hasDocumentSymbolProvider=new v.RawContextKey("editorHasDocumentSymbolProvider",!1,y.localize(21,null)),D.hasReferenceProvider=new v.RawContextKey("editorHasReferenceProvider",!1,y.localize(22,null)),D.hasRenameProvider=new v.RawContextKey("editorHasRenameProvider",!1,y.localize(23,null)),D.hasSignatureHelpProvider=new v.RawContextKey("editorHasSignatureHelpProvider",!1,y.localize(24,null)),D.hasInlayHintsProvider=new v.RawContextKey("editorHasInlayHintsProvider",!1,y.localize(25,null)),D.hasDocumentFormattingProvider=new v.RawContextKey("editorHasDocumentFormattingProvider",!1,y.localize(26,null)),D.hasDocumentSelectionFormattingProvider=new v.RawContextKey("editorHasDocumentSelectionFormattingProvider",!1,y.localize(27,null)),D.hasMultipleDocumentFormattingProvider=new v.RawContextKey("editorHasMultipleDocumentFormattingProvider",!1,y.localize(28,null)),D.hasMultipleDocumentSelectionFormattingProvider=new v.RawContextKey("editorHasMultipleDocumentSelectionFormattingProvider",!1,y.localize(29,null))})(k=e.EditorContextKeys||(e.EditorContextKeys={}))}),define(oe[210],se([1,0,21,14,19,22,11,28,20,58,26,16]),function(q,e,y,v,k,D,w,b,C,h,u,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.provideSignatureHelp=e.Context=void 0,e.Context={Visible:new n.RawContextKey("parameterHintsVisible",!1),MultipleSignatures:new n.RawContextKey("parameterHintsMultipleSignatures",!1)};function i(t,o,s,d,l){return be(this,void 0,void 0,function*(){const a=t.ordered(o);for(const r of a)try{const c=yield r.provideSignatureHelp(o,s,l,d);if(c)return c}catch(c){(0,v.onUnexpectedExternalError)(c)}})}e.provideSignatureHelp=i,u.CommandsRegistry.registerCommand("_executeSignatureHelpProvider",(t,...o)=>be(void 0,void 0,void 0,function*(){const[s,d,l]=o;(0,k.assertType)(D.URI.isUri(s)),(0,k.assertType)(w.Position.isIPosition(d)),(0,k.assertType)(typeof l=="string"||!l);const a=t.get(C.ILanguageFeaturesService),r=yield t.get(h.ITextModelService).createModelReference(s);try{const c=yield i(a.signatureHelpProvider,r.object.textEditorModel,w.Position.lift(d),{triggerKind:b.SignatureHelpTriggerKind.Invoke,isRetrigger:!1,triggerCharacter:l},y.CancellationToken.None);return c?(setTimeout(()=>c.dispose(),0),c.value):void 0}finally{r.dispose()}}))}),define(oe[631],se([1,0,10,14,6,2,107,28,210]),function(q,e,y,v,k,D,w,b,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ParameterHintsModel=void 0;var h;(function(i){i.Default={type:0};class t{constructor(d,l){this.request=d,this.previouslyActiveHints=l,this.type=2}}i.Pending=t;class o{constructor(d){this.hints=d,this.type=1}}i.Active=o})(h||(h={}));class u extends D.Disposable{constructor(t,o,s=u.DEFAULT_DELAY){super(),this._onChangedHints=this._register(new k.Emitter),this.onChangedHints=this._onChangedHints.event,this.triggerOnType=!1,this._state=h.Default,this._pendingTriggers=[],this._lastSignatureHelpResult=this._register(new D.MutableDisposable),this.triggerChars=new w.CharacterSet,this.retriggerChars=new w.CharacterSet,this.triggerId=0,this.editor=t,this.providers=o,this.throttledDelayer=new y.Delayer(s),this._register(this.editor.onDidBlurEditorWidget(()=>this.cancel())),this._register(this.editor.onDidChangeConfiguration(()=>this.onEditorConfigurationChange())),this._register(this.editor.onDidChangeModel(d=>this.onModelChanged())),this._register(this.editor.onDidChangeModelLanguage(d=>this.onModelChanged())),this._register(this.editor.onDidChangeCursorSelection(d=>this.onCursorChange(d))),this._register(this.editor.onDidChangeModelContent(d=>this.onModelContentChange())),this._register(this.providers.onDidChange(this.onModelChanged,this)),this._register(this.editor.onDidType(d=>this.onDidType(d))),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=h.Default,this.throttledDelayer.cancel(),t||this._onChangedHints.fire(void 0)}trigger(t,o){const s=this.editor.getModel();if(!s||!this.providers.has(s))return;const d=++this.triggerId;this._pendingTriggers.push(t),this.throttledDelayer.trigger(()=>this.doTrigger(d),o).catch(v.onUnexpectedError)}next(){if(this.state.type!==1)return;const t=this.state.hints.signatures.length,o=this.state.hints.activeSignature,s=o%t==t-1,d=this.editor.getOption(78).cycle;if((t<2||s)&&!d){this.cancel();return}this.updateActiveSignature(s&&d?0:o+1)}previous(){if(this.state.type!==1)return;const t=this.state.hints.signatures.length,o=this.state.hints.activeSignature,s=o===0,d=this.editor.getOption(78).cycle;if((t<2||s)&&!d){this.cancel();return}this.updateActiveSignature(s&&d?t-1:o-1)}updateActiveSignature(t){this.state.type===1&&(this.state=new h.Active(Object.assign(Object.assign({},this.state.hints),{activeSignature:t})),this._onChangedHints.fire(this.state.hints))}doTrigger(t){return be(this,void 0,void 0,function*(){const o=this.state.type===1||this.state.type===2,s=this.getLastActiveHints();if(this.cancel(!0),this._pendingTriggers.length===0)return!1;const d=this._pendingTriggers.reduce(n);this._pendingTriggers=[];const l={triggerKind:d.triggerKind,triggerCharacter:d.triggerCharacter,isRetrigger:o,activeSignatureHelp:s};if(!this.editor.hasModel())return!1;const a=this.editor.getModel(),r=this.editor.getPosition();this.state=new h.Pending((0,y.createCancelablePromise)(c=>(0,C.provideSignatureHelp)(this.providers,a,r,l,c)),s);try{const c=yield this.state.request;return t!==this.triggerId?(c?.dispose(),!1):!c||!c.value.signatures||c.value.signatures.length===0?(c?.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),!1):(this.state=new h.Active(c.value),this._lastSignatureHelpResult.value=c,this._onChangedHints.fire(this.state.hints),!0)}catch(c){return t===this.triggerId&&(this.state=h.Default),(0,v.onUnexpectedError)(c),!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=new w.CharacterSet,this.retriggerChars=new w.CharacterSet;const t=this.editor.getModel();if(t)for(const o of this.providers.ordered(t)){for(const s of o.signatureHelpTriggerCharacters||[])this.triggerChars.add(s.charCodeAt(0)),this.retriggerChars.add(s.charCodeAt(0));for(const s of o.signatureHelpRetriggerCharacters||[])this.retriggerChars.add(s.charCodeAt(0))}}onDidType(t){if(!this.triggerOnType)return;const o=t.length-1,s=t.charCodeAt(o);(this.triggerChars.has(s)||this.isTriggered&&this.retriggerChars.has(s))&&this.trigger({triggerKind:b.SignatureHelpTriggerKind.TriggerCharacter,triggerCharacter:t.charAt(o)})}onCursorChange(t){t.source==="mouse"?this.cancel():this.isTriggered&&this.trigger({triggerKind:b.SignatureHelpTriggerKind.ContentChange})}onModelContentChange(){this.isTriggered&&this.trigger({triggerKind:b.SignatureHelpTriggerKind.ContentChange})}onEditorConfigurationChange(){this.triggerOnType=this.editor.getOption(78).enabled,this.triggerOnType||this.cancel()}dispose(){this.cancel(!0),super.dispose()}}e.ParameterHintsModel=u,u.DEFAULT_DELAY=120;function n(i,t){switch(t.triggerKind){case b.SignatureHelpTriggerKind.Invoke:return t;case b.SignatureHelpTriggerKind.ContentChange:return i;case b.SignatureHelpTriggerKind.TriggerCharacter:default:return t}}}),define(oe[632],se([1,0,16]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SuggestAlternatives=void 0;let v=class hi{constructor(D,w){this._editor=D,this._index=0,this._ckOtherSuggestions=hi.OtherSuggestions.bindTo(w)}dispose(){this.reset()}reset(){var D;this._ckOtherSuggestions.reset(),(D=this._listener)===null||D===void 0||D.dispose(),this._model=void 0,this._acceptNext=void 0,this._ignore=!1}set({model:D,index:w},b){if(D.items.length===0){this.reset();return}if(hi._moveIndex(!0,D,w)===w){this.reset();return}this._acceptNext=b,this._model=D,this._index=w,this._listener=this._editor.onDidChangeCursorPosition(()=>{this._ignore||this.reset()}),this._ckOtherSuggestions.set(!0)}static _moveIndex(D,w,b){let C=b;for(;C=(C+w.items.length+(D?1:-1))%w.items.length,!(C===b||!w.items[C].completion.additionalTextEdits););return C}next(){this._move(!0)}prev(){this._move(!1)}_move(D){if(this._model)try{this._ignore=!0,this._index=hi._moveIndex(D,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}}};v.OtherSuggestions=new y.RawContextKey("hasOtherSuggestions",!1),v=Ie([pe(1,y.IContextKeyService)],v),e.SuggestAlternatives=v}),define(oe[633],se([1,0,16]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WordContextKey=void 0;let v=class zi{constructor(D,w){this._editor=D,this._enabled=!1,this._ckAtEnd=zi.AtEnd.bindTo(w),this._configListener=this._editor.onDidChangeConfiguration(b=>b.hasChanged(113)&&this._update()),this._update()}dispose(){var D;this._configListener.dispose(),(D=this._selectionListener)===null||D===void 0||D.dispose(),this._ckAtEnd.reset()}_update(){const D=this._editor.getOption(113)==="on";if(this._enabled!==D)if(this._enabled=D,this._enabled){const w=()=>{if(!this._editor.hasModel()){this._ckAtEnd.set(!1);return}const b=this._editor.getModel(),C=this._editor.getSelection(),h=b.getWordAtPosition(C.getStartPosition());if(!h){this._ckAtEnd.set(!1);return}this._ckAtEnd.set(h.endColumn===C.getStartPosition().column)};this._selectionListener=this._editor.onDidChangeCursorSelection(w),w()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)}};v.AtEnd=new y.RawContextKey("atEndOfWord",!1),v=Ie([pe(1,y.IContextKeyService)],v),e.WordContextKey=v}),define(oe[77],se([1,0,16,9]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CONTEXT_ACCESSIBILITY_MODE_ENABLED=e.IAccessibilityService=void 0,e.IAccessibilityService=(0,v.createDecorator)("accessibilityService"),e.CONTEXT_ACCESSIBILITY_MODE_ENABLED=new y.RawContextKey("accessibilityModeEnabled",!1)}),define(oe[634],se([1,0,41,18,6,2,40,17,267,277,401,268,36,164,207,77]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ComputedEditorOptions=e.EditorConfiguration=void 0;let d=class extends D.Disposable{constructor(_,p,m,S){super(),this._accessibilityService=S,this._onDidChange=this._register(new k.Emitter),this.onDidChange=this._onDidChange.event,this._onDidChangeFast=this._register(new k.Emitter),this.onDidChangeFast=this._onDidChangeFast.event,this._isDominatedByLongLines=!1,this._viewLineCount=1,this._lineNumbersDigitCount=1,this._reservedHeight=0,this._computeOptionsMemory=new i.ComputeOptionsMemory,this.isSimpleWidget=_,this._containerObserver=this._register(new C.ElementSizeObserver(m,p.dimension)),this._rawOptions=f(p),this._validatedOptions=g.validateOptions(this._rawOptions),this.options=this._computeOptions(),this.options.get(10)&&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(h.FontMeasurements.onDidChange(()=>this._recomputeOptions())),this._register(y.PixelRatio.onDidChange(()=>this._recomputeOptions())),this._register(this._accessibilityService.onDidChangeScreenReaderOptimized(()=>this._recomputeOptions()))}_recomputeOptions(){const _=this._computeOptions(),p=g.checkEquals(this.options,_);p!==null&&(this.options=_,this._onDidChangeFast.fire(p),this._onDidChange.fire(p))}_computeOptions(){const _=this._readEnvConfiguration(),p=o.BareFontInfo.createFromValidatedSettings(this._validatedOptions,_.pixelRatio,this.isSimpleWidget),m=this._readFontInfo(p),S={memory:this._computeOptionsMemory,outerWidth:_.outerWidth,outerHeight:_.outerHeight-this._reservedHeight,fontInfo:m,extraEditorClassName:_.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,viewLineCount:this._viewLineCount,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:_.emptySelectionClipboard,pixelRatio:_.pixelRatio,tabFocusMode:n.TabFocus.getTabFocusMode(),accessibilitySupport:_.accessibilitySupport};return g.computeOptions(this._validatedOptions,S)}_readEnvConfiguration(){return{extraEditorClassName:a(),outerWidth:this._containerObserver.getWidth(),outerHeight:this._containerObserver.getHeight(),emptySelectionClipboard:y.isWebKit||y.isFirefox,pixelRatio:y.PixelRatio.value,accessibilitySupport:this._accessibilityService.isScreenReaderOptimized()?2:this._accessibilityService.getAccessibilitySupport()}}_readFontInfo(_){return h.FontMeasurements.readFontInfo(_)}getRawOptions(){return this._rawOptions}updateOptions(_){const p=f(_);!g.applyUpdate(this._rawOptions,p)||(this._validatedOptions=g.validateOptions(this._rawOptions),this._recomputeOptions())}observeContainer(_){this._containerObserver.observe(_)}setIsDominatedByLongLines(_){this._isDominatedByLongLines!==_&&(this._isDominatedByLongLines=_,this._recomputeOptions())}setModelLineCount(_){const p=l(_);this._lineNumbersDigitCount!==p&&(this._lineNumbersDigitCount=p,this._recomputeOptions())}setViewLineCount(_){this._viewLineCount!==_&&(this._viewLineCount=_,this._recomputeOptions())}setReservedHeight(_){this._reservedHeight!==_&&(this._reservedHeight=_,this._recomputeOptions())}};d=Ie([pe(3,s.IAccessibilityService)],d),e.EditorConfiguration=d;function l(_){let p=0;for(;_;)_=Math.floor(_/10),p++;return p||1}function a(){let _="";return!y.isSafari&&!y.isWebkitWebView&&(_+="no-user-select "),y.isSafari&&(_+="no-minimap-shadow ",_+="enable-user-select "),b.isMacintosh&&(_+="mac "),_}class r{constructor(){this._values=[]}_read(p){return this._values[p]}get(p){return this._values[p]}_write(p,m){this._values[p]=m}}class c{constructor(){this._values=[]}_read(p){if(p>=this._values.length)throw new Error("Cannot read uninitialized value");return this._values[p]}get(p){return this._read(p)}_write(p,m){this._values[p]=m}}e.ComputedEditorOptions=c;class g{static validateOptions(p){const m=new r;for(const S of i.editorOptionsRegistry){const E=S.name==="_never_"?void 0:p[S.name];m._write(S.id,S.validate(E))}return m}static computeOptions(p,m){const S=new c;for(const E of i.editorOptionsRegistry)S._write(E.id,E.compute(m,S,p._read(E.id)));return S}static _deepEquals(p,m){if(typeof p!="object"||typeof m!="object"||!p||!m)return p===m;if(Array.isArray(p)||Array.isArray(m))return Array.isArray(p)&&Array.isArray(m)?v.equals(p,m):!1;if(Object.keys(p).length!==Object.keys(m).length)return!1;for(const S in p)if(!g._deepEquals(p[S],m[S]))return!1;return!0}static checkEquals(p,m){const S=[];let E=!1;for(const L of i.editorOptionsRegistry){const N=!g._deepEquals(p._read(L.id),m._read(L.id));S[L.id]=N,N&&(E=!0)}return E?new i.ConfigurationChangedEvent(S):null}static applyUpdate(p,m){let S=!1;for(const E of i.editorOptionsRegistry)if(m.hasOwnProperty(E.name)){const L=E.applyUpdate(p[E.name],m[E.name]);p[E.name]=L.newValue,S=S||L.didChange}return S}}function f(_){const p=w.deepClone(_);return(0,u.migrateOptions)(p),p}}),define(oe[635],se([1,0,6,55,2,51,40,22,612,26,30,16]),function(q,e,y,v,k,D,w,b,C,h,u,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setContext=e.ContextKeyService=e.AbstractContextKeyService=e.Context=void 0;const i="data-keybinding-context";class t{constructor(L,N){this._id=L,this._parent=N,this._value=Object.create(null),this._value._contextId=L}get value(){return Object.assign({},this._value)}setValue(L,N){return this._value[L]!==N?(this._value[L]=N,!0):!1}removeValue(L){return L in this._value?(delete this._value[L],!0):!1}getValue(L){const N=this._value[L];return typeof N>"u"&&this._parent?this._parent.getValue(L):N}}e.Context=t;class o extends t{constructor(){super(-1,null)}setValue(L,N){return!1}removeValue(L){return!1}getValue(L){}}o.INSTANCE=new o;class s extends t{constructor(L,N,I){super(L,null),this._configurationService=N,this._values=D.TernarySearchTree.forConfigKeys(),this._listener=this._configurationService.onDidChangeConfiguration(R=>{if(R.source===7){const F=Array.from(v.Iterable.map(this._values,([O])=>O));this._values.clear(),I.fire(new a(F))}else{const F=[];for(const O of R.affectedKeys){const x=`config.${O}`,M=this._values.findSuperstr(x);M!==void 0&&(F.push(...v.Iterable.map(M,([P])=>P)),this._values.deleteSuperstr(x)),this._values.has(x)&&(F.push(x),this._values.delete(x))}I.fire(new a(F))}})}dispose(){this._listener.dispose()}getValue(L){if(L.indexOf(s._keyPrefix)!==0)return super.getValue(L);if(this._values.has(L))return this._values.get(L);const N=L.substr(s._keyPrefix.length),I=this._configurationService.getValue(N);let R;switch(typeof I){case"number":case"boolean":case"string":R=I;break;default:Array.isArray(I)?R=JSON.stringify(I):R=I}return this._values.set(L,R),R}setValue(L,N){return super.setValue(L,N)}removeValue(L){return super.removeValue(L)}}s._keyPrefix="config.";class d{constructor(L,N,I){this._service=L,this._key=N,this._defaultValue=I,this.reset()}set(L){this._service.setContext(this._key,L)}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 l{constructor(L){this.key=L}affectsSome(L){return L.has(this.key)}allKeysContainedIn(L){return this.affectsSome(L)}}class a{constructor(L){this.keys=L}affectsSome(L){for(const N of this.keys)if(L.has(N))return!0;return!1}allKeysContainedIn(L){return this.keys.every(N=>L.has(N))}}class r{constructor(L){this.events=L}affectsSome(L){for(const N of this.events)if(N.affectsSome(L))return!0;return!1}allKeysContainedIn(L){return this.events.every(N=>N.allKeysContainedIn(L))}}function c(E,L){return E.allKeysContainedIn(new Set(Object.keys(L)))}class g{constructor(L){this._onDidChangeContext=new y.PauseableEmitter({merge:N=>new r(N)}),this.onDidChangeContext=this._onDidChangeContext.event,this._isDisposed=!1,this._myContextId=L}createKey(L,N){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new d(this,L,N)}bufferChangeEvents(L){this._onDidChangeContext.pause();try{L()}finally{this._onDidChangeContext.resume()}}createScoped(L){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new _(this,L)}contextMatchesRules(L){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");const N=this.getContextValuesContainer(this._myContextId);return L?L.evaluate(N):!0}getContextKeyValue(L){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(L)}setContext(L,N){if(this._isDisposed)return;const I=this.getContextValuesContainer(this._myContextId);!I||I.setValue(L,N)&&this._onDidChangeContext.fire(new l(L))}removeContext(L){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(L)&&this._onDidChangeContext.fire(new l(L))}getContext(L){return this._isDisposed?o.INSTANCE:this.getContextValuesContainer(p(L))}}e.AbstractContextKeyService=g;let f=class extends g{constructor(E){super(0),this._contexts=new Map,this._toDispose=new k.DisposableStore,this._lastContextId=0;const L=new s(this._myContextId,E,this._onDidChangeContext);this._contexts.set(this._myContextId,L),this._toDispose.add(L)}dispose(){this._onDidChangeContext.dispose(),this._isDisposed=!0,this._toDispose.dispose()}getContextValuesContainer(E){return this._isDisposed?o.INSTANCE:this._contexts.get(E)||o.INSTANCE}createChildContext(E=this._myContextId){if(this._isDisposed)throw new Error("ContextKeyService has been disposed");const L=++this._lastContextId;return this._contexts.set(L,new t(L,this.getContextValuesContainer(E))),L}disposeContext(E){this._isDisposed||this._contexts.delete(E)}};f=Ie([pe(0,u.IConfigurationService)],f),e.ContextKeyService=f;class _ extends g{constructor(L,N){if(super(L.createChildContext()),this._parentChangeListener=new k.MutableDisposable,this._parent=L,this._updateParentChangeListener(),this._domNode=N,this._domNode.hasAttribute(i)){let I="";this._domNode.classList&&(I=Array.from(this._domNode.classList.values()).join(", ")),console.error(`Element already has context attribute${I?": "+I:""}`)}this._domNode.setAttribute(i,String(this._myContextId))}_updateParentChangeListener(){this._parentChangeListener.value=this._parent.onDidChangeContext(L=>{const N=this._parent.getContextValuesContainer(this._myContextId).value;c(L,N)||this._onDidChangeContext.fire(L)})}dispose(){this._isDisposed||(this._onDidChangeContext.dispose(),this._parent.disposeContext(this._myContextId),this._parentChangeListener.dispose(),this._domNode.removeAttribute(i),this._isDisposed=!0)}getContextValuesContainer(L){return this._isDisposed?o.INSTANCE:this._parent.getContextValuesContainer(L)}createChildContext(L=this._myContextId){if(this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(L)}disposeContext(L){this._isDisposed||this._parent.disposeContext(L)}}function p(E){for(;E;){if(E.hasAttribute(i)){const L=E.getAttribute(i);return L?parseInt(L,10):NaN}E=E.parentElement}return 0}function m(E,L,N){E.get(n.IContextKeyService).createKey(String(L),S(N))}e.setContext=m;function S(E){return(0,w.cloneAndChange)(E,L=>{if(typeof L=="object"&&L.$mid===1)return b.URI.revive(L).toString();if(L instanceof b.URI)return L.toString()})}h.CommandsRegistry.registerCommand(n.SET_CONTEXT_COMMAND_ID,m),h.CommandsRegistry.registerCommand({id:"getContextKeyInfo",handler(){return[...n.RawContextKey.all()].sort((E,L)=>E.key.localeCompare(L.key))},description:{description:(0,C.localize)(0,null),args:[]}}),h.CommandsRegistry.registerCommand("_generateContextKeyInfo",function(){const E=[],L=new Set;for(const N of n.RawContextKey.all())L.has(N.key)||(L.add(N.key),E.push(N));E.sort((N,I)=>N.key.localeCompare(I.key)),console.log(JSON.stringify(E,void 0,2))})}),define(oe[286],se([1,0,17,613,16]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InputFocusedContext=e.InputFocusedContextKey=e.ProductQualityContext=e.IsDevelopmentContext=e.IsIOSContext=e.IsMacNativeContext=e.IsWebContext=e.IsWindowsContext=e.IsLinuxContext=e.IsMacContext=void 0,e.IsMacContext=new k.RawContextKey("isMac",y.isMacintosh,(0,v.localize)(0,null)),e.IsLinuxContext=new k.RawContextKey("isLinux",y.isLinux,(0,v.localize)(1,null)),e.IsWindowsContext=new k.RawContextKey("isWindows",y.isWindows,(0,v.localize)(2,null)),e.IsWebContext=new k.RawContextKey("isWeb",y.isWeb,(0,v.localize)(3,null)),e.IsMacNativeContext=new k.RawContextKey("isMacNative",y.isMacintosh&&!y.isWeb,(0,v.localize)(4,null)),e.IsIOSContext=new k.RawContextKey("isIOS",y.isIOS,(0,v.localize)(5,null)),e.IsDevelopmentContext=new k.RawContextKey("isDevelopment",!1,!0),e.ProductQualityContext=new k.RawContextKey("productQualityType","",(0,v.localize)(6,null)),e.InputFocusedContextKey="inputFocus",e.InputFocusedContext=new k.RawContextKey(e.InputFocusedContextKey,!1,(0,v.localize)(7,null))}),define(oe[78],se([1,0,9]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IContextMenuService=e.IContextViewService=void 0,e.IContextViewService=(0,y.createDecorator)("contextViewService"),e.IContextMenuService=(0,y.createDecorator)("contextMenuService")}),define(oe[139],se([1,0,9]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IDialogService=void 0,e.IDialogService=(0,y.createDecorator)("dialogService")}),define(oe[167],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ServiceCollection=void 0;class y{constructor(...k){this._entries=new Map;for(const[D,w]of k)this.set(D,w)}set(k,D){const w=this._entries.get(k);return this._entries.set(k,D),w}get(k){return this._entries.get(k)}}e.ServiceCollection=y}),define(oe[636],se([1,0,10,14,208,627,9,167]),function(q,e,y,v,k,D,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Trace=e.InstantiationService=void 0;const C=!1;class h extends Error{constructor(t){var o;super("cyclic dependency between services"),this.message=(o=t.findCycleSlow())!==null&&o!==void 0?o:`UNABLE to detect cycle, dumping graph: ${t.toString()}`}}class u{constructor(t=new b.ServiceCollection,o=!1,s){this._activeInstantiations=new Set,this._services=t,this._strict=o,this._parent=s,this._services.set(w.IInstantiationService,this)}createChild(t){return new u(t,this._strict,this)}invokeFunction(t,...o){const s=n.traceInvocation(t);let d=!1;try{return t({get:l=>{if(d)throw(0,v.illegalState)("service accessor is only valid during the invocation of its target method");const a=this._getOrCreateServiceInstance(l,s);if(!a)throw new Error(`[invokeFunction] unknown service '${l}'`);return a}},...o)}finally{d=!0,s.stop()}}createInstance(t,...o){let s,d;return t instanceof k.SyncDescriptor?(s=n.traceCreation(t.ctor),d=this._createInstance(t.ctor,t.staticArguments.concat(o),s)):(s=n.traceCreation(t),d=this._createInstance(t,o,s)),s.stop(),d}_createInstance(t,o=[],s){const d=w._util.getServiceDependencies(t).sort((r,c)=>r.index-c.index),l=[];for(const r of d){const c=this._getOrCreateServiceInstance(r.id,s);c||this._throwIfStrict(`[createInstance] ${t.name} depends on UNKNOWN service ${r.id}.`,!1),l.push(c)}const a=d.length>0?d[0].index:o.length;if(o.length!==a){console.trace(`[createInstance] First service dependency of ${t.name} at position ${a+1} conflicts with ${o.length} static arguments`);const r=a-o.length;r>0?o=o.concat(new Array(r)):o=o.slice(0,a)}return new t(...o,...l)}_setServiceInstance(t,o){if(this._services.get(t)instanceof k.SyncDescriptor)this._services.set(t,o);else if(this._parent)this._parent._setServiceInstance(t,o);else throw new Error("illegalState - setting UNKNOWN service instance")}_getServiceInstanceOrDescriptor(t){const o=this._services.get(t);return!o&&this._parent?this._parent._getServiceInstanceOrDescriptor(t):o}_getOrCreateServiceInstance(t,o){const s=this._getServiceInstanceOrDescriptor(t);return s instanceof k.SyncDescriptor?this._safeCreateAndCacheServiceInstance(t,s,o.branch(t,!0)):(o.branch(t,!1),s)}_safeCreateAndCacheServiceInstance(t,o,s){if(this._activeInstantiations.has(t))throw new Error(`illegal state - RECURSIVELY instantiating service '${t}'`);this._activeInstantiations.add(t);try{return this._createAndCacheServiceInstance(t,o,s)}finally{this._activeInstantiations.delete(t)}}_createAndCacheServiceInstance(t,o,s){const d=new D.Graph(r=>r.id.toString());let l=0;const a=[{id:t,desc:o,_trace:s}];for(;a.length;){const r=a.pop();if(d.lookupOrInsertNode(r),l++>1e3)throw new h(d);for(const c of w._util.getServiceDependencies(r.desc.ctor)){const g=this._getServiceInstanceOrDescriptor(c.id);if(g||this._throwIfStrict(`[createInstance] ${t} depends on ${c.id} which is NOT registered.`,!0),g instanceof k.SyncDescriptor){const f={id:c.id,desc:g,_trace:r._trace.branch(c.id,!0)};d.insertEdge(r,f),a.push(f)}}}for(;;){const r=d.roots();if(r.length===0){if(!d.isEmpty())throw new h(d);break}for(const{data:c}of r){if(this._getServiceInstanceOrDescriptor(c.id)instanceof k.SyncDescriptor){const g=this._createServiceInstanceWithOwner(c.id,c.desc.ctor,c.desc.staticArguments,c.desc.supportsDelayedInstantiation,c._trace);this._setServiceInstance(c.id,g)}d.removeNode(c)}}return this._getServiceInstanceOrDescriptor(t)}_createServiceInstanceWithOwner(t,o,s=[],d,l){if(this._services.get(t)instanceof k.SyncDescriptor)return this._createServiceInstance(o,s,d,l);if(this._parent)return this._parent._createServiceInstanceWithOwner(t,o,s,d,l);throw new Error(`illegalState - creating UNKNOWN service instance ${o.name}`)}_createServiceInstance(t,o=[],s,d){if(s){const l=new y.IdleValue(()=>this._createInstance(t,o,d));return new Proxy(Object.create(null),{get(a,r){if(r in a)return a[r];const c=l.value;let g=c[r];return typeof g!="function"||(g=g.bind(c),a[r]=g),g},set(a,r,c){return l.value[r]=c,!0}})}else return this._createInstance(t,o,d)}_throwIfStrict(t,o){if(o&&console.warn(t),this._strict)throw new Error(t)}}e.InstantiationService=u;class n{constructor(t,o){this.type=t,this.name=o,this._start=Date.now(),this._dep=[]}static traceInvocation(t){return C?new n(1,t.name||t.toString().substring(0,42).replace(/\n/g,"")):n._None}static traceCreation(t){return C?new n(0,t.name):n._None}branch(t,o){const s=new n(2,t.toString());return this._dep.push([t,o,s]),s}stop(){const t=Date.now()-this._start;n._totals+=t;let o=!1;function s(l,a){const r=[],c=new Array(l+1).join(" ");for(const[g,f,_]of a._dep)if(f&&_){o=!0,r.push(`${c}CREATES -> ${g}`);const p=s(l+1,_);p&&r.push(p)}else r.push(`${c}uses -> ${g}`);return r.join(` `)}const d=[`${this.type===0?"CREATE":"CALL"} ${this.name}`,`${s(1,this)}`,`DONE, took ${t.toFixed(2)}ms (grand total ${n._totals.toFixed(2)}ms)`];(t>2||o)&&console.log(d.join(` `))}}e.Trace=n,n._None=new class extends n{constructor(){super(-1,null)}stop(){}branch(){return this}},n._totals=0}),define(oe[637],se([1,0,10,6,2,615]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractKeybindingService=void 0;const w=/^(cursor|delete)/;class b extends k.Disposable{constructor(u,n,i,t,o){super(),this._contextKeyService=u,this._commandService=n,this._telemetryService=i,this._notificationService=t,this._logService=o,this._onDidUpdateKeybindings=this._register(new v.Emitter),this._currentChord=null,this._currentChordChecker=new y.IntervalTimer,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=C.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new y.TimeoutTimer,this._logging=!1}get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:v.Event.None}dispose(){super.dispose()}_log(u){this._logging&&this._logService.info(`[KeybindingService]: ${u}`)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybinding(u,n){const i=this._getResolver().lookupPrimaryKeybinding(u,n||this._contextKeyService);if(i)return i.resolvedKeybinding}dispatchEvent(u,n){return this._dispatch(u,n)}softDispatch(u,n){this._log("/ Soft dispatching keyboard event");const i=this.resolveKeyboardEvent(u);if(i.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),null;const[t]=i.getDispatchParts();if(t===null)return this._log("\\ Keyboard event cannot be dispatched"),null;const o=this._contextKeyService.getContext(n),s=this._currentChord?this._currentChord.keypress:null;return this._getResolver().resolve(o,s,t)}_enterChordMode(u,n){this._currentChord={keypress:u,label:n},this._currentChordStatusMessage=this._notificationService.status(D.localize(0,null,n));const i=Date.now();this._currentChordChecker.cancelAndSet(()=>{if(!this._documentHasFocus()){this._leaveChordMode();return}Date.now()-i>5e3&&this._leaveChordMode()},500)}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null}_dispatch(u,n){return this._doDispatch(this.resolveKeyboardEvent(u),n,!1)}_singleModifierDispatch(u,n){const i=this.resolveKeyboardEvent(u),[t]=i.getSingleModifierDispatchParts();if(t)return this._ignoreSingleModifiers.has(t)?(this._log(`+ Ignoring single modifier ${t} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=C.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=C.EMPTY,this._currentSingleModifier===null?(this._log(`+ Storing single modifier for possible chord ${t}.`),this._currentSingleModifier=t,this._currentSingleModifierClearTimeout.cancelAndSet(()=>{this._log("+ Clearing single modifier due to 300ms elapsed."),this._currentSingleModifier=null},300),!1):t===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${t} ${t}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(i,n,!0)):(this._log(`+ Clearing single modifier due to modifier mismatch: ${this._currentSingleModifier} ${t}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1));const[o]=i.getParts();return this._ignoreSingleModifiers=new C(o),this._currentSingleModifier!==null&&this._log("+ Clearing single modifier due to other key up."),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1}_doDispatch(u,n,i=!1){let t=!1;if(u.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),!1;let o=null,s=null;if(i){const[r]=u.getSingleModifierDispatchParts();o=r,s=r}else[o]=u.getDispatchParts(),s=this._currentChord?this._currentChord.keypress:null;if(o===null)return this._log("\\ Keyboard event cannot be dispatched in keydown phase."),t;const d=this._contextKeyService.getContext(n),l=u.getLabel(),a=this._getResolver().resolve(d,s,o);return this._logService.trace("KeybindingService#dispatch",l,a?.commandId),a&&a.enterChord?(t=!0,this._enterChordMode(o,l),this._log("+ Entering chord mode..."),t):(this._currentChord&&(!a||!a.commandId)&&(this._log(`+ Leaving chord mode: Nothing bound to "${this._currentChord.label} ${l}".`),this._notificationService.status(D.localize(1,null,this._currentChord.label,l),{hideAfter:10*1e3}),t=!0),this._leaveChordMode(),a&&a.commandId&&(a.bubble||(t=!0),this._log(`+ Invoking command ${a.commandId}.`),typeof a.commandArgs>"u"?this._commandService.executeCommand(a.commandId).then(void 0,r=>this._notificationService.warn(r)):this._commandService.executeCommand(a.commandId,a.commandArgs).then(void 0,r=>this._notificationService.warn(r)),w.test(a.commandId)||this._telemetryService.publicLog2("workbenchActionExecuted",{id:a.commandId,from:"keybinding"})),t)}mightProducePrintableCharacter(u){return u.ctrlKey||u.metaKey?!1:u.keyCode>=31&&u.keyCode<=56||u.keyCode>=21&&u.keyCode<=30}}e.AbstractKeybindingService=b;class C{constructor(u){this._ctrlKey=u?u.ctrlKey:!1,this._shiftKey=u?u.shiftKey:!1,this._altKey=u?u.altKey:!1,this._metaKey=u?u.metaKey:!1}has(u){switch(u){case"ctrl":return this._ctrlKey;case"shift":return this._shiftKey;case"alt":return this._altKey;case"meta":return this._metaKey}}}C.EMPTY=new C(null)}),define(oe[638],se([1,0,14,190,104]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BaseResolvedKeybinding=void 0;class D extends k.ResolvedKeybinding{constructor(b,C){if(super(),C.length===0)throw(0,y.illegalArgument)("parts");this._os=b,this._parts=C}getLabel(){return v.UILabelProvider.toLabel(this._os,this._parts,b=>this._getLabel(b))}getAriaLabel(){return v.AriaLabelProvider.toLabel(this._os,this._parts,b=>this._getAriaLabel(b))}getElectronAccelerator(){return this._parts.length>1||this._parts[0].isDuplicateModifierCase()?null:v.ElectronAcceleratorLabelProvider.toLabel(this._os,this._parts,b=>this._getElectronAccelerator(b))}isChord(){return this._parts.length>1}getParts(){return this._parts.map(b=>this._getPart(b))}_getPart(b){return new k.ResolvedKeybindingPart(b.ctrlKey,b.shiftKey,b.altKey,b.metaKey,this._getLabel(b),this._getAriaLabel(b))}getDispatchParts(){return this._parts.map(b=>this._getDispatchPart(b))}getSingleModifierDispatchParts(){return this._parts.map(b=>this._getSingleModifierDispatchPart(b))}}e.BaseResolvedKeybinding=D}),define(oe[44],se([1,0,9]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IKeybindingService=void 0,e.IKeybindingService=(0,y.createDecorator)("keybindingService")}),define(oe[639],se([1,0,16]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KeybindingResolver=void 0;class v{constructor(b,C,h){this._log=h,this._defaultKeybindings=b,this._defaultBoundCommands=new Map;for(const u of b){const n=u.command;n&&n.charAt(0)!=="-"&&this._defaultBoundCommands.set(n,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=v.handleRemovals([].concat(b).concat(C));for(let u=0,n=this._keybindings.length;u<n;u++){const i=this._keybindings[u];i.keypressParts.length!==0&&(i.when&&i.when.type===0||this._addKeyPress(i.keypressParts[0],i))}}static _isTargetedForRemoval(b,C,h,u){return!(C&&b.keypressParts[0]!==C||h&&b.keypressParts[1]!==h||u&&(!b.when||!(0,y.expressionsAreEqualWithConstantSubstitution)(u,b.when)))}static handleRemovals(b){const C=new Map;for(let u=0,n=b.length;u<n;u++){const i=b[u];if(i.command&&i.command.charAt(0)==="-"){const t=i.command.substring(1);C.has(t)?C.get(t).push(i):C.set(t,[i])}}if(C.size===0)return b;const h=[];for(let u=0,n=b.length;u<n;u++){const i=b[u];if(!i.command||i.command.length===0){h.push(i);continue}if(i.command.charAt(0)==="-")continue;const t=C.get(i.command);if(!t||!i.isDefault){h.push(i);continue}let o=!1;for(const s of t){const d=s.keypressParts[0],l=s.keypressParts[1],a=s.when;if(this._isTargetedForRemoval(i,d,l,a)){o=!0;break}}if(!o){h.push(i);continue}}return h}_addKeyPress(b,C){const h=this._map.get(b);if(typeof h>"u"){this._map.set(b,[C]),this._addToLookupMap(C);return}for(let u=h.length-1;u>=0;u--){const n=h[u];if(n.command===C.command)continue;const i=n.keypressParts.length>1,t=C.keypressParts.length>1;i&&t&&n.keypressParts[1]!==C.keypressParts[1]||v.whenIsEntirelyIncluded(n.when,C.when)&&this._removeFromLookupMap(n)}h.push(C),this._addToLookupMap(C)}_addToLookupMap(b){if(!b.command)return;let C=this._lookupMap.get(b.command);typeof C>"u"?(C=[b],this._lookupMap.set(b.command,C)):C.push(b)}_removeFromLookupMap(b){if(!b.command)return;const C=this._lookupMap.get(b.command);if(typeof C<"u"){for(let h=0,u=C.length;h<u;h++)if(C[h]===b){C.splice(h,1);return}}}static whenIsEntirelyIncluded(b,C){return!C||C.type===1?!0:!b||b.type===1?!1:(0,y.implies)(b,C)}getKeybindings(){return this._keybindings}lookupPrimaryKeybinding(b,C){const h=this._lookupMap.get(b);if(typeof h>"u"||h.length===0)return null;if(h.length===1)return h[0];for(let u=h.length-1;u>=0;u--){const n=h[u];if(C.contextMatchesRules(n.when))return n}return h[h.length-1]}resolve(b,C,h){this._log(`| Resolving ${h}${C?` chorded from ${C}`:""}`);let u=null;if(C!==null){const i=this._map.get(C);if(typeof i>"u")return this._log("\\ No keybinding entries."),null;u=[];for(let t=0,o=i.length;t<o;t++){const s=i[t];s.keypressParts[1]===h&&u.push(s)}}else{const i=this._map.get(h);if(typeof i>"u")return this._log("\\ No keybinding entries."),null;u=i}const n=this._findCommand(b,u);return n?C===null&&n.keypressParts.length>1&&n.keypressParts[1]!==null?(this._log(`\\ From ${u.length} keybinding entries, matched chord, when: ${k(n.when)}, source: ${D(n)}.`),{enterChord:!0,leaveChord:!1,commandId:null,commandArgs:null,bubble:!1}):(this._log(`\\ From ${u.length} keybinding entries, matched ${n.command}, when: ${k(n.when)}, source: ${D(n)}.`),{enterChord:!1,leaveChord:n.keypressParts.length>1,commandId:n.command,commandArgs:n.commandArgs,bubble:n.bubble}):(this._log(`\\ From ${u.length} keybinding entries, no when clauses matched the context.`),null)}_findCommand(b,C){for(let h=C.length-1;h>=0;h--){const u=C[h];if(v._contextMatchesRules(b,u.when))return u}return null}static _contextMatchesRules(b,C){return C?C.evaluate(b):!0}}e.KeybindingResolver=v;function k(w){return w?`${w.serialize()}`:"no when condition"}function D(w){return w.extensionId?w.isBuiltinExtension?`built-in extension ${w.extensionId}`:`user extension ${w.extensionId}`:w.isDefault?"built-in":"user"}}),define(oe[287],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeElementsAfterNulls=e.ResolvedKeybindingItem=void 0;class y{constructor(D,w,b,C,h,u,n){this._resolvedKeybindingItemBrand=void 0,this.resolvedKeybinding=D,this.keypressParts=D?v(D.getDispatchParts()):[],D&&this.keypressParts.length===0&&(this.keypressParts=v(D.getSingleModifierDispatchParts())),this.bubble=w?w.charCodeAt(0)===94:!1,this.command=this.bubble?w.substr(1):w,this.commandArgs=b,this.when=C,this.isDefault=h,this.extensionId=u,this.isBuiltinExtension=n}}e.ResolvedKeybindingItem=y;function v(k){const D=[];for(let w=0,b=k.length;w<b;w++){const C=k[w];if(!C)return D;D.push(C)}return D}e.removeElementsAfterNulls=v}),define(oe[640],se([1,0,59,104,638,287]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.USLayoutResolvedKeybinding=void 0;class w extends k.BaseResolvedKeybinding{constructor(C,h){super(h,C.parts)}_keyCodeToUILabel(C){if(this._os===2)switch(C){case 15:return"\u2190";case 16:return"\u2191";case 17:return"\u2192";case 18:return"\u2193"}return y.KeyCodeUtils.toString(C)}_getLabel(C){return C.isDuplicateModifierCase()?"":this._keyCodeToUILabel(C.keyCode)}_getAriaLabel(C){return C.isDuplicateModifierCase()?"":y.KeyCodeUtils.toString(C.keyCode)}_getElectronAccelerator(C){return y.KeyCodeUtils.toElectronAccelerator(C.keyCode)}_getDispatchPart(C){return w.getDispatchStr(C)}static getDispatchStr(C){if(C.isModifierKey())return null;let h="";return C.ctrlKey&&(h+="ctrl+"),C.shiftKey&&(h+="shift+"),C.altKey&&(h+="alt+"),C.metaKey&&(h+="meta+"),h+=y.KeyCodeUtils.toString(C.keyCode),h}_getSingleModifierDispatchPart(C){return C.keyCode===5&&!C.shiftKey&&!C.altKey&&!C.metaKey?"ctrl":C.keyCode===4&&!C.ctrlKey&&!C.altKey&&!C.metaKey?"shift":C.keyCode===6&&!C.ctrlKey&&!C.shiftKey&&!C.metaKey?"alt":C.keyCode===57&&!C.ctrlKey&&!C.shiftKey&&!C.altKey?"meta":null}static _scanCodeToKeyCode(C){const h=y.IMMUTABLE_CODE_TO_KEY_CODE[C];if(h!==-1)return h;switch(C){case 10:return 31;case 11:return 32;case 12:return 33;case 13:return 34;case 14:return 35;case 15:return 36;case 16:return 37;case 17:return 38;case 18:return 39;case 19:return 40;case 20:return 41;case 21:return 42;case 22:return 43;case 23:return 44;case 24:return 45;case 25:return 46;case 26:return 47;case 27:return 48;case 28:return 49;case 29:return 50;case 30:return 51;case 31:return 52;case 32:return 53;case 33:return 54;case 34:return 55;case 35:return 56;case 36:return 22;case 37:return 23;case 38:return 24;case 39:return 25;case 40:return 26;case 41:return 27;case 42:return 28;case 43:return 29;case 44:return 30;case 45:return 21;case 51:return 83;case 52:return 81;case 53:return 87;case 54:return 89;case 55:return 88;case 56:return 0;case 57:return 80;case 58:return 90;case 59:return 86;case 60:return 82;case 61:return 84;case 62:return 85;case 106:return 92}return 0}static _resolveSimpleUserBinding(C){if(!C)return null;if(C instanceof v.SimpleKeybinding)return C;const h=this._scanCodeToKeyCode(C.scanCode);return h===0?null:new v.SimpleKeybinding(C.ctrlKey,C.shiftKey,C.altKey,C.metaKey,h)}static resolveUserBinding(C,h){const u=(0,D.removeElementsAfterNulls)(C.map(n=>this._resolveSimpleUserBinding(n)));return u.length>0?[new w(new v.ChordKeybinding(u),h)]:[]}}e.USLayoutResolvedKeybinding=w}),define(oe[140],se([1,0,9]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ILabelService=void 0,e.ILabelService=(0,y.createDecorator)("labelService")}),define(oe[116],se([1,0,9]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ILayoutService=void 0,e.ILayoutService=(0,y.createDecorator)("layoutService")}),define(oe[288],se([1,0,7,6,116,29,53]),function(q,e,y,v,k,D,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorScopedLayoutService=void 0;let b=class{constructor(h){this._codeEditorService=h,this.onDidLayout=v.Event.None,this.offset={top:0,quickPickTop:0}}get dimension(){return this._dimension||(this._dimension=y.getClientArea(window.document.body)),this._dimension}get hasContainer(){return!1}get container(){throw new Error("ILayoutService.container is not available in the standalone editor!")}focus(){var h;(h=this._codeEditorService.getFocusedCodeEditor())===null||h===void 0||h.focus()}};b=Ie([pe(0,D.ICodeEditorService)],b);let C=class extends b{constructor(h,u){super(u),this._container=h}get hasContainer(){return!1}get container(){return this._container}};C=Ie([pe(1,D.ICodeEditorService)],C),e.EditorScopedLayoutService=C,(0,w.registerSingleton)(k.ILayoutService,b)}),define(oe[641],se([1,0,7,6,2,77,30,16,116]),function(q,e,y,v,k,D,w,b,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AccessibilityService=void 0;let h=class extends k.Disposable{constructor(u,n,i){super(),this._contextKeyService=u,this._layoutService=n,this._configurationService=i,this._accessibilitySupport=0,this._onDidChangeScreenReaderOptimized=new v.Emitter,this._onDidChangeReducedMotion=new v.Emitter,this._accessibilityModeEnabledContext=D.CONTEXT_ACCESSIBILITY_MODE_ENABLED.bindTo(this._contextKeyService);const t=()=>this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized());this._register(this._configurationService.onDidChangeConfiguration(s=>{s.affectsConfiguration("editor.accessibilitySupport")&&(t(),this._onDidChangeScreenReaderOptimized.fire()),s.affectsConfiguration("workbench.reduceMotion")&&(this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion"),this._onDidChangeReducedMotion.fire())})),t(),this._register(this.onDidChangeScreenReaderOptimized(()=>t()));const o=window.matchMedia("(prefers-reduced-motion: reduce)");this._systemMotionReduced=o.matches,this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion"),this.initReducedMotionListeners(o)}initReducedMotionListeners(u){if(!this._layoutService.hasContainer)return;this._register((0,y.addDisposableListener)(u,"change",()=>{this._systemMotionReduced=u.matches,this._configMotionReduced==="auto"&&this._onDidChangeReducedMotion.fire()}));const n=()=>{const i=this.isMotionReduced();this._layoutService.container.classList.toggle("reduce-motion",i),this._layoutService.container.classList.toggle("enable-motion",!i)};n(),this._register(this.onDidChangeReducedMotion(()=>n()))}get onDidChangeScreenReaderOptimized(){return this._onDidChangeScreenReaderOptimized.event}isScreenReaderOptimized(){const u=this._configurationService.getValue("editor.accessibilitySupport");return u==="on"||u==="auto"&&this._accessibilitySupport===2}get onDidChangeReducedMotion(){return this._onDidChangeReducedMotion.event}isMotionReduced(){const u=this._configMotionReduced;return u==="on"||u==="auto"&&this._systemMotionReduced}getAccessibilitySupport(){return this._accessibilitySupport}};h=Ie([pe(0,b.IContextKeyService),pe(1,C.ILayoutService),pe(2,w.IConfigurationService)],h),e.AccessibilityService=h}),define(oe[642],se([1,0,254,2,116]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContextViewService=void 0;let D=class extends v.Disposable{constructor(w){super(),this.layoutService=w,this.currentViewDisposable=v.Disposable.None,this.container=w.hasContainer?w.container:null,this.contextView=this._register(new y.ContextView(this.container,1)),this.layout(),this._register(w.onDidLayout(()=>this.layout()))}setContainer(w,b){this.contextView.setContainer(w,b||1)}showContextView(w,b,C){b?(b!==this.container||this.shadowRoot!==C)&&(this.container=b,this.setContainer(b,C?3:2)):this.layoutService.hasContainer&&this.container!==this.layoutService.container&&(this.container=this.layoutService.container,this.setContainer(this.container,1)),this.shadowRoot=C,this.contextView.show(w);const h=(0,v.toDisposable)(()=>{this.currentViewDisposable===h&&this.hideContextView()});return this.currentViewDisposable=h,h}getContextViewElement(){return this.contextView.getViewElement()}layout(){this.contextView.layout()}hideContextView(w){this.contextView.hide(w)}};D=Ie([pe(0,k.ILayoutService)],D),e.ContextViewService=D}),define(oe[69],se([1,0,6,2,9]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LogService=e.ConsoleLogger=e.AbstractLogger=e.DEFAULT_LOG_LEVEL=e.LogLevel=e.ILogService=void 0,e.ILogService=(0,k.createDecorator)("logService");var D;(function(h){h[h.Trace=0]="Trace",h[h.Debug=1]="Debug",h[h.Info=2]="Info",h[h.Warning=3]="Warning",h[h.Error=4]="Error",h[h.Critical=5]="Critical",h[h.Off=6]="Off"})(D=e.LogLevel||(e.LogLevel={})),e.DEFAULT_LOG_LEVEL=D.Info;class w extends v.Disposable{constructor(){super(...arguments),this.level=e.DEFAULT_LOG_LEVEL,this._onDidChangeLogLevel=this._register(new y.Emitter)}setLevel(u){this.level!==u&&(this.level=u,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}}e.AbstractLogger=w;class b extends w{constructor(u=e.DEFAULT_LOG_LEVEL){super(),this.setLevel(u)}trace(u,...n){this.getLevel()<=D.Trace&&console.log("%cTRACE","color: #888",u,...n)}debug(u,...n){this.getLevel()<=D.Debug&&console.log("%cDEBUG","background: #eee; color: #888",u,...n)}info(u,...n){this.getLevel()<=D.Info&&console.log("%c INFO","color: #33f",u,...n)}error(u,...n){this.getLevel()<=D.Error&&console.log("%c ERR","color: #f33",u,...n)}dispose(){}}e.ConsoleLogger=b;class C extends v.Disposable{constructor(u){super(),this.logger=u,this._register(u)}getLevel(){return this.logger.getLevel()}trace(u,...n){this.logger.trace(u,...n)}debug(u,...n){this.logger.debug(u,...n)}info(u,...n){this.logger.info(u,...n)}error(u,...n){this.logger.error(u,...n)}}e.LogService=C}),define(oe[643],se([1,0,41,7,10,2,116,69]),function(q,e,y,v,k,D,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BrowserClipboardService=void 0;let C=class extends D.Disposable{constructor(h,u){super(),this.layoutService=h,this.logService=u,this.mapTextToType=new Map,this.findText="",this.resources=[],(y.isSafari||y.isWebkitWebView)&&this.installWebKitWriteTextWorkaround()}installWebKitWriteTextWorkaround(){const h=()=>{const u=new k.DeferredPromise;this.webKitPendingClipboardWritePromise&&!this.webKitPendingClipboardWritePromise.isSettled&&this.webKitPendingClipboardWritePromise.cancel(),this.webKitPendingClipboardWritePromise=u,navigator.clipboard.write([new ClipboardItem({"text/plain":u.p})]).catch(n=>be(this,void 0,void 0,function*(){(!(n instanceof Error)||n.name!=="NotAllowedError"||!u.isRejected)&&this.logService.error(n)}))};this.layoutService.hasContainer&&(this._register((0,v.addDisposableListener)(this.layoutService.container,"click",h)),this._register((0,v.addDisposableListener)(this.layoutService.container,"keydown",h)))}writeText(h,u){return be(this,void 0,void 0,function*(){if(u){this.mapTextToType.set(u,h);return}if(this.webKitPendingClipboardWritePromise)return this.webKitPendingClipboardWritePromise.complete(h);try{return yield navigator.clipboard.writeText(h)}catch(t){console.error(t)}const n=document.activeElement,i=document.body.appendChild((0,v.$)("textarea",{"aria-hidden":!0}));i.style.height="1px",i.style.width="1px",i.style.position="absolute",i.value=h,i.focus(),i.select(),document.execCommand("copy"),n instanceof HTMLElement&&n.focus(),document.body.removeChild(i)})}readText(h){return be(this,void 0,void 0,function*(){if(h)return this.mapTextToType.get(h)||"";try{return yield navigator.clipboard.readText()}catch(u){return console.error(u),""}})}readFindText(){return be(this,void 0,void 0,function*(){return this.findText})}writeFindText(h){return be(this,void 0,void 0,function*(){this.findText=h})}readResources(){return be(this,void 0,void 0,function*(){return this.resources})}};C=Ie([pe(0,w.ILayoutService),pe(1,b.ILogService)],C),e.BrowserClipboardService=C}),define(oe[84],se([1,0,81,617,9]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IMarkerService=e.IMarkerData=e.MarkerSeverity=void 0;var D;(function(b){b[b.Hint=1]="Hint",b[b.Info=2]="Info",b[b.Warning=4]="Warning",b[b.Error=8]="Error"})(D=e.MarkerSeverity||(e.MarkerSeverity={})),function(b){function C(t,o){return o-t}b.compare=C;const h=Object.create(null);h[b.Error]=(0,v.localize)(0,null),h[b.Warning]=(0,v.localize)(1,null),h[b.Info]=(0,v.localize)(2,null);function u(t){return h[t]||""}b.toString=u;function n(t){switch(t){case y.default.Error:return b.Error;case y.default.Warning:return b.Warning;case y.default.Info:return b.Info;case y.default.Ignore:return b.Hint}}b.fromSeverity=n;function i(t){switch(t){case b.Error:return y.default.Error;case b.Warning:return y.default.Warning;case b.Info:return y.default.Info;case b.Hint:return y.default.Ignore}}b.toSeverity=i}(D=e.MarkerSeverity||(e.MarkerSeverity={}));var w;(function(b){const C="";function h(n){return u(n,!0)}b.makeKey=h;function u(n,i){const t=[C];return n.source?t.push(n.source.replace("\xA6","\\\xA6")):t.push(C),n.code?typeof n.code=="string"?t.push(n.code.replace("\xA6","\\\xA6")):t.push(n.code.value.replace("\xA6","\\\xA6")):t.push(C),n.severity!==void 0&&n.severity!==null?t.push(D.toString(n.severity)):t.push(C),n.message&&i?t.push(n.message.replace("\xA6","\\\xA6")):t.push(C),n.startLineNumber!==void 0&&n.startLineNumber!==null?t.push(n.startLineNumber.toString()):t.push(C),n.startColumn!==void 0&&n.startColumn!==null?t.push(n.startColumn.toString()):t.push(C),n.endLineNumber!==void 0&&n.endLineNumber!==null?t.push(n.endLineNumber.toString()):t.push(C),n.endColumn!==void 0&&n.endColumn!==null?t.push(n.endColumn.toString()):t.push(C),t.push(C),t.join("\xA6")}b.makeKeyOptionalMessage=u})(w=e.IMarkerData||(e.IMarkerData={})),e.IMarkerService=(0,k.createDecorator)("markerService")}),define(oe[644],se([1,0,18,6,2,73,8,22,3,53,9,84,30]),function(q,e,y,v,k,D,w,b,C,h,u,n,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IMarkerNavigationService=e.MarkerList=e.MarkerCoordinate=void 0;class t{constructor(l,a,r){this.marker=l,this.index=a,this.total=r}}e.MarkerCoordinate=t;let o=class{constructor(d,l,a){this._markerService=l,this._configService=a,this._onDidChange=new v.Emitter,this.onDidChange=this._onDidChange.event,this._dispoables=new k.DisposableStore,this._markers=[],this._nextIdx=-1,b.URI.isUri(d)?this._resourceFilter=f=>f.toString()===d.toString():d&&(this._resourceFilter=d);const r=this._configService.getValue("problems.sortOrder"),c=(f,_)=>{let p=(0,w.compare)(f.resource.toString(),_.resource.toString());return p===0&&(r==="position"?p=C.Range.compareRangesUsingStarts(f,_)||n.MarkerSeverity.compare(f.severity,_.severity):p=n.MarkerSeverity.compare(f.severity,_.severity)||C.Range.compareRangesUsingStarts(f,_)),p},g=()=>{this._markers=this._markerService.read({resource:b.URI.isUri(d)?d:void 0,severities:n.MarkerSeverity.Error|n.MarkerSeverity.Warning|n.MarkerSeverity.Info}),typeof d=="function"&&(this._markers=this._markers.filter(f=>this._resourceFilter(f.resource))),this._markers.sort(c)};g(),this._dispoables.add(l.onMarkerChanged(f=>{(!this._resourceFilter||f.some(_=>this._resourceFilter(_)))&&(g(),this._nextIdx=-1,this._onDidChange.fire())}))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(d){return!this._resourceFilter&&!d?!0:!this._resourceFilter||!d?!1:this._resourceFilter(d)}get selected(){const d=this._markers[this._nextIdx];return d&&new t(d,this._nextIdx+1,this._markers.length)}_initIdx(d,l,a){let r=!1,c=this._markers.findIndex(g=>g.resource.toString()===d.uri.toString());c<0&&(c=(0,y.binarySearch)(this._markers,{resource:d.uri},(g,f)=>(0,w.compare)(g.resource.toString(),f.resource.toString())),c<0&&(c=~c));for(let g=c;g<this._markers.length;g++){let f=C.Range.lift(this._markers[g]);if(f.isEmpty()){const _=d.getWordAtPosition(f.getStartPosition());_&&(f=new C.Range(f.startLineNumber,_.startColumn,f.startLineNumber,_.endColumn))}if(l&&(f.containsPosition(l)||l.isBeforeOrEqual(f.getStartPosition()))){this._nextIdx=g,r=!0;break}if(this._markers[g].resource.toString()!==d.uri.toString())break}r||(this._nextIdx=a?0:this._markers.length-1),this._nextIdx<0&&(this._nextIdx=this._markers.length-1)}resetIndex(){this._nextIdx=-1}move(d,l,a){if(this._markers.length===0)return!1;const r=this._nextIdx;return this._nextIdx===-1?this._initIdx(l,a,d):d?this._nextIdx=(this._nextIdx+1)%this._markers.length:d||(this._nextIdx=(this._nextIdx-1+this._markers.length)%this._markers.length),r!==this._nextIdx}find(d,l){let a=this._markers.findIndex(r=>r.resource.toString()===d.toString());if(!(a<0)){for(;a<this._markers.length;a++)if(C.Range.containsPosition(this._markers[a],l))return new t(this._markers[a],a+1,this._markers.length)}}};o=Ie([pe(1,n.IMarkerService),pe(2,i.IConfigurationService)],o),e.MarkerList=o,e.IMarkerNavigationService=(0,u.createDecorator)("IMarkerNavigationService");let s=class{constructor(d,l){this._markerService=d,this._configService=l,this._provider=new D.LinkedList}getMarkerList(d){for(const l of this._provider){const a=l.getMarkerList(d);if(a)return a}return new o(d,this._markerService,this._configService)}};s=Ie([pe(0,n.IMarkerService),pe(1,i.IConfigurationService)],s),(0,h.registerSingleton)(e.IMarkerNavigationService,s,!0)}),define(oe[645],se([1,0,18,6,55,51,52,22,84]),function(q,e,y,v,k,D,w,b,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MarkerService=void 0;class h{constructor(){this._byResource=new D.ResourceMap,this._byOwner=new Map}set(t,o,s){let d=this._byResource.get(t);d||(d=new Map,this._byResource.set(t,d)),d.set(o,s);let l=this._byOwner.get(o);l||(l=new D.ResourceMap,this._byOwner.set(o,l)),l.set(t,s)}get(t,o){const s=this._byResource.get(t);return s?.get(o)}delete(t,o){let s=!1,d=!1;const l=this._byResource.get(t);l&&(s=l.delete(o));const a=this._byOwner.get(o);if(a&&(d=a.delete(t)),s!==d)throw new Error("illegal state");return s&&d}values(t){var o,s,d,l;return typeof t=="string"?(s=(o=this._byOwner.get(t))===null||o===void 0?void 0:o.values())!==null&&s!==void 0?s:k.Iterable.empty():b.URI.isUri(t)?(l=(d=this._byResource.get(t))===null||d===void 0?void 0:d.values())!==null&&l!==void 0?l:k.Iterable.empty():k.Iterable.map(k.Iterable.concat(...this._byOwner.values()),a=>a[1])}}class u{constructor(t){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=new D.ResourceMap,this._service=t,this._subscription=t.onMarkerChanged(this._update,this)}dispose(){this._subscription.dispose()}_update(t){for(const o of t){const s=this._data.get(o);s&&this._substract(s);const d=this._resourceStats(o);this._add(d),this._data.set(o,d)}}_resourceStats(t){const o={errors:0,warnings:0,infos:0,unknowns:0};if(t.scheme===w.Schemas.inMemory||t.scheme===w.Schemas.walkThrough||t.scheme===w.Schemas.walkThroughSnippet||t.scheme===w.Schemas.vscodeSourceControl)return o;for(const{severity:s}of this._service.read({resource:t}))s===C.MarkerSeverity.Error?o.errors+=1:s===C.MarkerSeverity.Warning?o.warnings+=1:s===C.MarkerSeverity.Info?o.infos+=1:o.unknowns+=1;return o}_substract(t){this.errors-=t.errors,this.warnings-=t.warnings,this.infos-=t.infos,this.unknowns-=t.unknowns}_add(t){this.errors+=t.errors,this.warnings+=t.warnings,this.infos+=t.infos,this.unknowns+=t.unknowns}}class n{constructor(){this._onMarkerChanged=new v.DebounceEmitter({delay:0,merge:n._merge}),this.onMarkerChanged=this._onMarkerChanged.event,this._data=new h,this._stats=new u(this)}dispose(){this._stats.dispose(),this._onMarkerChanged.dispose()}remove(t,o){for(const s of o||[])this.changeOne(t,s,[])}changeOne(t,o,s){if((0,y.isFalsyOrEmpty)(s))this._data.delete(o,t)&&this._onMarkerChanged.fire([o]);else{const d=[];for(const l of s){const a=n._toMarker(t,o,l);a&&d.push(a)}this._data.set(o,t,d),this._onMarkerChanged.fire([o])}}static _toMarker(t,o,s){let{code:d,severity:l,message:a,source:r,startLineNumber:c,startColumn:g,endLineNumber:f,endColumn:_,relatedInformation:p,tags:m}=s;if(a)return c=c>0?c:1,g=g>0?g:1,f=f>=c?f:c,_=_>0?_:g,{resource:o,owner:t,code:d,severity:l,message:a,source:r,startLineNumber:c,startColumn:g,endLineNumber:f,endColumn:_,relatedInformation:p,tags:m}}changeAll(t,o){const s=[],d=this._data.values(t);if(d)for(const l of d){const a=k.Iterable.first(l);a&&(s.push(a.resource),this._data.delete(a.resource,t))}if((0,y.isNonEmptyArray)(o)){const l=new D.ResourceMap;for(const{resource:a,marker:r}of o){const c=n._toMarker(t,a,r);if(!c)continue;const g=l.get(a);g?g.push(c):(l.set(a,[c]),s.push(a))}for(const[a,r]of l)this._data.set(a,t,r)}s.length>0&&this._onMarkerChanged.fire(s)}read(t=Object.create(null)){let{owner:o,resource:s,severities:d,take:l}=t;if((!l||l<0)&&(l=-1),o&&s){const a=this._data.get(s,o);if(a){const r=[];for(const c of a)if(n._accept(c,d)){const g=r.push(c);if(l>0&&g===l)break}return r}else return[]}else if(!o&&!s){const a=[];for(const r of this._data.values())for(const c of r)if(n._accept(c,d)){const g=a.push(c);if(l>0&&g===l)return a}return a}else{const a=this._data.values(s??o),r=[];for(const c of a)for(const g of c)if(n._accept(g,d)){const f=r.push(g);if(l>0&&f===l)return r}return r}}static _accept(t,o){return o===void 0||(o&t.severity)===t.severity}static _merge(t){const o=new D.ResourceMap;for(const s of t)for(const d of s)o.set(d,!0);return Array.from(o.keys())}}e.MarkerService=n}),define(oe[38],se([1,0,81,9]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NoOpNotification=e.INotificationService=e.Severity=void 0,e.Severity=y.default,e.INotificationService=(0,v.createDecorator)("notificationService");class k{}e.NoOpNotification=k}),define(oe[45],se([1,0,2,8,22,9]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.extractSelection=e.matchesSomeScheme=e.matchesScheme=e.NullOpenerService=e.IOpenerService=void 0,e.IOpenerService=(0,D.createDecorator)("openerService"),e.NullOpenerService=Object.freeze({_serviceBrand:void 0,registerOpener(){return y.Disposable.None},registerValidator(){return y.Disposable.None},registerExternalUriResolver(){return y.Disposable.None},setDefaultExternalOpener(){},registerExternalOpener(){return y.Disposable.None},open(){return be(this,void 0,void 0,function*(){return!1})},resolveExternalUri(h){return be(this,void 0,void 0,function*(){return{resolved:h,dispose(){}}})}});function w(h,u){return k.URI.isUri(h)?(0,v.equalsIgnoreCase)(h.scheme,u):(0,v.startsWithIgnoreCase)(h,u+":")}e.matchesScheme=w;function b(h,...u){return u.some(n=>w(h,n))}e.matchesSomeScheme=b;function C(h){let u;const n=/^L?(\d+)(?:,(\d+))?(-L?(\d+)(?:,(\d+))?)?/.exec(h.fragment);return n&&(u={startLineNumber:parseInt(n[1]),startColumn:n[2]?parseInt(n[2]):1,endLineNumber:n[4]?parseInt(n[4]):void 0,endColumn:n[4]?n[5]?parseInt(n[5]):1:void 0},h=h.with({fragment:""})),{selection:u,uri:h}}e.extractSelection=C}),define(oe[646],se([1,0,7,21,73,51,195,52,43,22,29,26,624,45]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OpenerService=void 0;let o=class{constructor(l){this._commandService=l}open(l,a){return be(this,void 0,void 0,function*(){if(!(0,t.matchesScheme)(l,b.Schemas.command))return!1;if(!a?.allowCommands)return!0;typeof l=="string"&&(l=h.URI.parse(l));let r=[];try{r=(0,w.parse)(decodeURIComponent(l.query))}catch{try{r=(0,w.parse)(l.query)}catch{}}return Array.isArray(r)||(r=[r]),yield this._commandService.executeCommand(l.path,...r),!0})}};o=Ie([pe(0,n.ICommandService)],o);let s=class{constructor(l){this._editorService=l}open(l,a){return be(this,void 0,void 0,function*(){typeof l=="string"&&(l=h.URI.parse(l));const{selection:r,uri:c}=(0,t.extractSelection)(l);return l=c,l.scheme===b.Schemas.file&&(l=(0,C.normalizePath)(l)),yield this._editorService.openCodeEditor({resource:l,options:Object.assign({selection:r,source:a?.fromUserGesture?i.EditorOpenSource.USER:i.EditorOpenSource.API},a?.editorOptions)},this._editorService.getFocusedCodeEditor(),a?.openToSide),!0})}};s=Ie([pe(0,u.ICodeEditorService)],s);let d=class{constructor(l,a){this._openers=new k.LinkedList,this._validators=new k.LinkedList,this._resolvers=new k.LinkedList,this._resolvedUriTargets=new D.ResourceMap(r=>r.with({path:null,fragment:null,query:null}).toString()),this._externalOpeners=new k.LinkedList,this._defaultExternalOpener={openExternal:r=>be(this,void 0,void 0,function*(){return(0,t.matchesSomeScheme)(r,b.Schemas.http,b.Schemas.https)?y.windowOpenNoOpener(r):window.location.href=r,!0})},this._openers.push({open:(r,c)=>be(this,void 0,void 0,function*(){return c?.openExternal||(0,t.matchesSomeScheme)(r,b.Schemas.mailto,b.Schemas.http,b.Schemas.https,b.Schemas.vsls)?(yield this._doOpenExternal(r,c),!0):!1})}),this._openers.push(new o(a)),this._openers.push(new s(l))}registerOpener(l){return{dispose:this._openers.unshift(l)}}registerValidator(l){return{dispose:this._validators.push(l)}}registerExternalUriResolver(l){return{dispose:this._resolvers.push(l)}}setDefaultExternalOpener(l){this._defaultExternalOpener=l}registerExternalOpener(l){return{dispose:this._externalOpeners.push(l)}}open(l,a){var r;return be(this,void 0,void 0,function*(){const c=typeof l=="string"?h.URI.parse(l):l,g=(r=this._resolvedUriTargets.get(c))!==null&&r!==void 0?r:l;for(const f of this._validators)if(!(yield f.shouldOpen(g,a)))return!1;for(const f of this._openers)if(yield f.open(l,a))return!0;return!1})}resolveExternalUri(l,a){return be(this,void 0,void 0,function*(){for(const r of this._resolvers)try{const c=yield r.resolveExternalUri(l,a);if(c)return this._resolvedUriTargets.has(c.resolved)||this._resolvedUriTargets.set(c.resolved,l),c}catch{}throw new Error("Could not resolve external URI: "+l.toString())})}_doOpenExternal(l,a){return be(this,void 0,void 0,function*(){const r=typeof l=="string"?h.URI.parse(l):l;let c;try{c=(yield this.resolveExternalUri(r,a)).resolved}catch{c=r}let g;if(typeof l=="string"&&r.toString()===c.toString()?g=l:g=encodeURI(c.toString(!0)),a?.allowContributedOpeners){const f=typeof a?.allowContributedOpeners=="string"?a?.allowContributedOpeners:void 0;for(const _ of this._externalOpeners)if(yield _.openExternal(g,{sourceUri:r,preferredOpenerId:f},v.CancellationToken.None))return!0}return this._defaultExternalOpener.openExternal(g,{sourceUri:r},v.CancellationToken.None)})}dispose(){this._validators.clear()}};d=Ie([pe(0,u.ICodeEditorService),pe(1,n.ICommandService)],d),e.OpenerService=d}),define(oe[70],se([1,0,105,51,124,53,9,69,45]),function(q,e,y,v,k,D,w,b,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LanguageFeatureDebounceService=e.ILanguageFeatureDebounceService=void 0,e.ILanguageFeatureDebounceService=(0,w.createDecorator)("ILanguageFeatureDebounceService");var h;(function(i){const t=new WeakMap;let o=0;function s(d){let l=t.get(d);return l===void 0&&(l=++o,t.set(d,l)),l}i.of=s})(h||(h={}));class u{constructor(t,o,s,d,l,a){this._logService=t,this._name=o,this._registry=s,this._default=d,this._min=l,this._max=a,this._cache=new v.LRUCache(50,.7)}_key(t){return t.id+this._registry.all(t).reduce((o,s)=>(0,y.doHash)(h.of(s),o),0)}get(t){const o=this._key(t),s=this._cache.get(o);return s?(0,k.clamp)(s.value,this._min,this._max):this.default()}update(t,o){const s=this._key(t);let d=this._cache.get(s);d||(d=new k.SlidingWindowAverage(6),this._cache.set(s,d));const l=(0,k.clamp)(d.update(o),this._min,this._max);return(0,C.matchesScheme)(t.uri,"output")||this._logService.trace(`[DEBOUNCE: ${this._name}] for ${t.uri.toString()} is ${l}ms`),l}_overall(){const t=new k.MovingAverage;for(const[,o]of this._cache)t.update(o.value);return t.value}default(){const t=this._overall()|0||this._default;return(0,k.clamp)(t,this._min,this._max)}}let n=class{constructor(i){this._logService=i,this._data=new Map}for(i,t,o){var s,d,l;const a=(s=o?.min)!==null&&s!==void 0?s:50,r=(d=o?.max)!==null&&d!==void 0?d:Math.pow(a,2),c=(l=o?.key)!==null&&l!==void 0?l:void 0,g=`${h.of(i)},${a}${c?","+c:""}`;let f=this._data.get(g);return f||(f=new u(this._logService,t,i,this._overallAverage()|0||a*1.5,a,r),this._data.set(g,f)),f}_overallAverage(){const i=new k.MovingAverage;for(const t of this._data.values())i.update(t.default());return i.value}};n=Ie([pe(0,b.ILogService)],n),e.LanguageFeatureDebounceService=n,(0,D.registerSingleton)(e.ILanguageFeatureDebounceService,n,!0)}),define(oe[168],se([1,0,18,21,14,55,51,11,3,70,9,53,50,2,20]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OutlineModelService=e.IOutlineModelService=e.OutlineModel=e.OutlineGroup=e.OutlineElement=e.TreeElement=void 0;class s{remove(){var g;(g=this.parent)===null||g===void 0||g.children.delete(this.id)}static findId(g,f){let _;typeof g=="string"?_=`${f.id}/${g}`:(_=`${f.id}/${g.name}`,f.children.get(_)!==void 0&&(_=`${f.id}/${g.name}_${g.range.startLineNumber}_${g.range.startColumn}`));let p=_;for(let m=0;f.children.get(p)!==void 0;m++)p=`${_}_${m}`;return p}static empty(g){return g.children.size===0}}e.TreeElement=s;class d extends s{constructor(g,f,_){super(),this.id=g,this.parent=f,this.symbol=_,this.children=new Map}}e.OutlineElement=d;class l extends s{constructor(g,f,_,p){super(),this.id=g,this.parent=f,this.label=_,this.order=p,this.children=new Map}}e.OutlineGroup=l;class a extends s{constructor(g){super(),this.uri=g,this.id="root",this.parent=void 0,this._groups=new Map,this.children=new Map,this.id="root",this.parent=void 0}static create(g,f,_){const p=new v.CancellationTokenSource(_),m=new a(f.uri),S=g.ordered(f),E=S.map((N,I)=>{var R;const F=s.findId(`provider_${I}`,m),O=new l(F,m,(R=N.displayName)!==null&&R!==void 0?R:"Unknown Outline Provider",I);return Promise.resolve(N.provideDocumentSymbols(f,p.token)).then(x=>{for(const M of x||[])a._makeOutlineElement(M,O);return O},x=>((0,k.onUnexpectedExternalError)(x),O)).then(x=>{s.empty(x)?x.remove():m._groups.set(F,x)})}),L=g.onDidChange(()=>{const N=g.ordered(f);(0,y.equals)(N,S)||p.cancel()});return Promise.all(E).then(()=>p.token.isCancellationRequested&&!_.isCancellationRequested?a.create(g,f,_):m._compact()).finally(()=>{L.dispose()})}static _makeOutlineElement(g,f){const _=s.findId(g,f),p=new d(_,f,g);if(g.children)for(const m of g.children)a._makeOutlineElement(m,p);f.children.set(p.id,p)}_compact(){let g=0;for(const[f,_]of this._groups)_.children.size===0?this._groups.delete(f):g+=1;if(g!==1)this.children=this._groups;else{const f=D.Iterable.first(this._groups.values());for(const[,_]of f.children)_.parent=this,this.children.set(_.id,_)}return this}getTopLevelSymbols(){const g=[];for(const f of this.children.values())f instanceof d?g.push(f.symbol):g.push(...D.Iterable.map(f.children.values(),_=>_.symbol));return g.sort((f,_)=>C.Range.compareRangesUsingStarts(f.range,_.range))}asListOfDocumentSymbols(){const g=this.getTopLevelSymbols(),f=[];return a._flattenDocumentSymbols(f,g,""),f.sort((_,p)=>b.Position.compare(C.Range.getStartPosition(_.range),C.Range.getStartPosition(p.range))||b.Position.compare(C.Range.getEndPosition(p.range),C.Range.getEndPosition(_.range)))}static _flattenDocumentSymbols(g,f,_){for(const p of f)g.push({kind:p.kind,tags:p.tags,name:p.name,detail:p.detail,containerName:p.containerName||_,range:p.range,selectionRange:p.selectionRange,children:void 0}),p.children&&a._flattenDocumentSymbols(g,p.children,p.name)}}e.OutlineModel=a,e.IOutlineModelService=(0,u.createDecorator)("IOutlineModelService");let r=class{constructor(c,g,f){this._languageFeaturesService=c,this._disposables=new t.DisposableStore,this._cache=new w.LRUCache(10,.7),this._debounceInformation=g.for(c.documentSymbolProvider,"DocumentSymbols",{min:350}),this._disposables.add(f.onModelRemoved(_=>{this._cache.delete(_.id)}))}dispose(){this._disposables.dispose()}getOrCreate(c,g){return be(this,void 0,void 0,function*(){const f=this._languageFeaturesService.documentSymbolProvider,_=f.ordered(c);let p=this._cache.get(c.id);if(!p||p.versionId!==c.getVersionId()||!(0,y.equals)(p.provider,_)){const S=new v.CancellationTokenSource;p={versionId:c.getVersionId(),provider:_,promiseCnt:0,source:S,promise:a.create(f,c,S.token),model:void 0},this._cache.set(c.id,p);const E=Date.now();p.promise.then(L=>{p.model=L,this._debounceInformation.update(c,Date.now()-E)}).catch(L=>{this._cache.delete(c.id)})}if(p.model)return p.model;p.promiseCnt+=1;const m=g.onCancellationRequested(()=>{--p.promiseCnt==0&&(p.source.cancel(),this._cache.delete(c.id))});try{return yield p.promise}finally{m.dispose()}})}};r=Ie([pe(0,o.ILanguageFeaturesService),pe(1,h.ILanguageFeatureDebounceService),pe(2,i.IModelService)],r),e.OutlineModelService=r,(0,n.registerSingleton)(e.IOutlineModelService,r,!0)}),define(oe[647],se([1,0,21,19,22,58,168,26]),function(q,e,y,v,k,D,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),b.CommandsRegistry.registerCommand("_executeDocumentSymbolProvider",function(C,...h){return be(this,void 0,void 0,function*(){const[u]=h;(0,v.assertType)(k.URI.isUri(u));const n=C.get(w.IOutlineModelService),i=yield C.get(D.ITextModelService).createModelReference(u);try{return(yield n.getOrCreate(i.object.textEditorModel,y.CancellationToken.None)).getTopLevelSymbols()}finally{i.dispose()}})})}),define(oe[71],se([1,0,9]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IEditorProgressService=e.Progress=e.emptyProgressRunner=e.IProgressService=void 0,e.IProgressService=(0,y.createDecorator)("progressService"),e.emptyProgressRunner=Object.freeze({total(){},worked(){},done(){}});class v{constructor(D){this.callback=D}report(D){this._value=D,this.callback(this._value)}}e.Progress=v,v.None=Object.freeze({report(){}}),e.IEditorProgressService=(0,y.createDecorator)("editorProgressService")}),define(oe[648],se([1,0,10,21,2]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PickerQuickAccessProvider=e.TriggerAction=void 0;var D;(function(h){h[h.NO_ACTION=0]="NO_ACTION",h[h.CLOSE_PICKER=1]="CLOSE_PICKER",h[h.REFRESH_PICKER=2]="REFRESH_PICKER",h[h.REMOVE_ITEM=3]="REMOVE_ITEM"})(D=e.TriggerAction||(e.TriggerAction={}));function w(h){const u=h;return Array.isArray(u.items)}function b(h){const u=h;return!!u.picks&&u.additionalPicks instanceof Promise}class C extends k.Disposable{constructor(u,n){super(),this.prefix=u,this.options=n}provide(u,n){var i;const t=new k.DisposableStore;u.canAcceptInBackground=!!(!((i=this.options)===null||i===void 0)&&i.canAcceptInBackground),u.matchOnLabel=u.matchOnDescription=u.matchOnDetail=u.sortByLabel=!1;let o;const s=t.add(new k.MutableDisposable),d=()=>be(this,void 0,void 0,function*(){const l=s.value=new k.DisposableStore;o?.dispose(!0),u.busy=!1,o=new v.CancellationTokenSource(n);const a=o.token,r=u.value.substr(this.prefix.length).trim(),c=this._getPicks(r,l,a),g=(f,_)=>{var p;let m,S;if(w(f)?(m=f.items,S=f.active):m=f,m.length===0){if(_)return!1;r.length>0&&(!((p=this.options)===null||p===void 0)&&p.noResultsPick)&&(m=[this.options.noResultsPick])}return u.items=m,S&&(u.activeItems=[S]),!0};if(c!==null)if(b(c)){let f=!1,_=!1;yield Promise.all([(()=>be(this,void 0,void 0,function*(){yield(0,y.timeout)(C.FAST_PICKS_RACE_DELAY),!a.isCancellationRequested&&(_||(f=g(c.picks,!0)))}))(),(()=>be(this,void 0,void 0,function*(){u.busy=!0;try{const p=yield c.additionalPicks;if(a.isCancellationRequested)return;let m,S;w(c.picks)?(m=c.picks.items,S=c.picks.active):m=c.picks;let E,L;if(w(p)?(E=p.items,L=p.active):E=p,E.length>0||!f){let N;if(!S&&!L){const I=u.activeItems[0];I&&m.indexOf(I)!==-1&&(N=I)}g({items:[...m,...E],active:S||L||N})}}finally{a.isCancellationRequested||(u.busy=!1),_=!0}}))()])}else if(!(c instanceof Promise))g(c);else{u.busy=!0;try{const f=yield c;if(a.isCancellationRequested)return;g(f)}finally{a.isCancellationRequested||(u.busy=!1)}}});return t.add(u.onDidChangeValue(()=>d())),d(),t.add(u.onDidAccept(l=>{const[a]=u.selectedItems;typeof a?.accept=="function"&&(l.inBackground||u.hide(),a.accept(u.keyMods,l))})),t.add(u.onDidTriggerItemButton(({button:l,item:a})=>be(this,void 0,void 0,function*(){var r,c;if(typeof a.trigger=="function"){const g=(c=(r=a.buttons)===null||r===void 0?void 0:r.indexOf(l))!==null&&c!==void 0?c:-1;if(g>=0){const f=a.trigger(g,u.keyMods),_=typeof f=="number"?f:yield f;if(n.isCancellationRequested)return;switch(_){case D.NO_ACTION:break;case D.CLOSE_PICKER:u.hide();break;case D.REFRESH_PICKER:d();break;case D.REMOVE_ITEM:{const p=u.items.indexOf(a);if(p!==-1){const m=u.items.slice(),S=m.splice(p,1),E=u.activeItems.filter(N=>N!==S[0]),L=u.keepScrollPosition;u.keepScrollPosition=!0,u.items=m,E&&(u.activeItems=E),u.keepScrollPosition=L}break}}}}}))),t}}e.PickerQuickAccessProvider=C,C.FAST_PICKS_RACE_DELAY=200});var Si=this&&this.__createBinding||(Object.create?function(q,e,y,v){v===void 0&&(v=y);var k=Object.getOwnPropertyDescriptor(e,y);(!k||("get"in k?!e.__esModule:k.writable||k.configurable))&&(k={enumerable:!0,get:function(){return e[y]}}),Object.defineProperty(q,v,k)}:function(q,e,y,v){v===void 0&&(v=y),q[v]=e[y]}),yi=this&&this.__exportStar||function(q,e){for(var y in q)y!=="default"&&!Object.prototype.hasOwnProperty.call(e,y)&&Si(e,q,y)};define(oe[85],se([1,0,9,224]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IQuickInputService=void 0,yi(v,e),e.IQuickInputService=(0,y.createDecorator)("quickInputService")}),define(oe[34],se([1,0,177,19]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Registry=void 0;class k{constructor(){this.data=new Map}add(w,b){y.ok(v.isString(w)),y.ok(v.isObject(b)),y.ok(!this.data.has(w),"There is already an extension with this id"),this.data.set(w,b)}as(w){return this.data.get(w)||null}}e.Registry=new k}),define(oe[649],se([1,0,123,195,22,45,34]),function(q,e,y,v,k,D,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Extensions=e.createDraggedEditorInputFromRawResourcesData=e.extractEditorsDropData=e.CodeDataTransfers=void 0,e.CodeDataTransfers={EDITORS:"CodeEditors",FILES:"CodeFiles"};function b(u){var n;const i=[];if(u.dataTransfer&&u.dataTransfer.types.length>0){const t=u.dataTransfer.getData(e.CodeDataTransfers.EDITORS);if(t)try{i.push(...(0,v.parse)(t))}catch{}else try{const d=u.dataTransfer.getData(y.DataTransfers.RESOURCES);i.push(...C(d))}catch{}if(!((n=u.dataTransfer)===null||n===void 0)&&n.files)for(let d=0;d<u.dataTransfer.files.length;d++){const l=u.dataTransfer.files[d];if(l&&l.path)try{i.push({resource:k.URI.file(l.path),isExternal:!0,allowWorkspaceOpen:!0})}catch{}}const o=u.dataTransfer.getData(e.CodeDataTransfers.FILES);if(o)try{const d=JSON.parse(o);for(const l of d)i.push({resource:k.URI.file(l),isExternal:!0,allowWorkspaceOpen:!0})}catch{}const s=w.Registry.as(e.Extensions.DragAndDropContribution).getAll();for(const d of s){const l=u.dataTransfer.getData(d.dataFormatKey);if(l)try{i.push(...d.getEditorInputs(l))}catch{}}}return i}e.extractEditorsDropData=b;function C(u){const n=[];if(u){const i=JSON.parse(u);for(const t of i)if(t.indexOf(":")>0){const{selection:o,uri:s}=(0,D.extractSelection)(k.URI.parse(t));n.push({resource:s,options:{selection:o}})}}return n}e.createDraggedEditorInputFromRawResourcesData=C;class h{constructor(){this._contributions=new Map}getAll(){return this._contributions.values()}}e.Extensions={DragAndDropContribution:"workbench.contributions.dragAndDrop"},w.Registry.add(e.Extensions.DragAndDropContribution,new h)}),define(oe[289],se([1,0,123,18,178,97,22,649]),function(q,e,y,v,k,D,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UriList=e.addExternalEditorsDropData=e.createFileDataTransferItemFromFile=e.toVSDataTransfer=void 0;function C(i){const t=new k.VSDataTransfer;for(const o of i.items){const s=o.type;if(o.kind==="string"){const d=new Promise(l=>o.getAsString(l));t.append(s,(0,k.createStringDataTransferItem)(d))}else if(o.kind==="file"){const d=o.getAsFile();d&&t.append(s,h(d))}}return t}e.toVSDataTransfer=C;function h(i){const t=i.path?w.URI.parse(i.path):void 0;return(0,k.createFileDataTransferItem)(i.name,t,()=>be(this,void 0,void 0,function*(){return new Uint8Array(yield i.arrayBuffer())}))}e.createFileDataTransferItemFromFile=h;const u=Object.freeze([b.CodeDataTransfers.EDITORS,b.CodeDataTransfers.FILES,y.DataTransfers.RESOURCES]);function n(i,t,o=!1){var s;if(t.dataTransfer&&(o||!i.has(D.Mimes.uriList))){const d=(0,b.extractEditorsDropData)(t).filter(l=>l.resource).map(l=>l.resource.toString());for(const l of(s=t.dataTransfer)===null||s===void 0?void 0:s.items){const a=l.getAsFile();a&&d.push(a.path?w.URI.file(a.path).toString():a.name)}d.length&&i.replace(D.Mimes.uriList,(0,k.createStringDataTransferItem)(e.UriList.create(d)))}for(const d of u)i.delete(d)}e.addExternalEditorsDropData=n,e.UriList=Object.freeze({create:i=>(0,v.distinct)(i.map(t=>t.toString())).join(`\r `),parse:i=>i.split(`\r `).filter(t=>!t.startsWith("#"))})}),define(oe[211],se([1,0,6,34]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Extensions=void 0,e.Extensions={JSONContribution:"base.contributions.json"};function k(b){return b.length>0&&b.charAt(b.length-1)==="#"?b.substring(0,b.length-1):b}class D{constructor(){this._onDidChangeSchema=new y.Emitter,this.schemasById={}}registerSchema(C,h){this.schemasById[k(C)]=h,this._onDidChangeSchema.fire(C)}notifySchemaChanged(C){this._onDidChangeSchema.fire(C)}}const w=new D;v.Registry.add(e.Extensions.JSONContribution,w)}),define(oe[94],se([1,0,18,6,19,611,30,211,34]),function(q,e,y,v,k,D,w,b,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateProperty=e.getDefaultValue=e.overrideIdentifiersFromKey=e.OVERRIDE_PROPERTY_REGEX=e.OVERRIDE_PROPERTY_PATTERN=e.resourceLanguageSettingsSchemaId=e.resourceSettings=e.windowSettings=e.machineOverridableSettings=e.machineSettings=e.applicationSettings=e.allSettings=e.Extensions=void 0,e.Extensions={Configuration:"base.contributions.configuration"},e.allSettings={properties:{},patternProperties:{}},e.applicationSettings={properties:{},patternProperties:{}},e.machineSettings={properties:{},patternProperties:{}},e.machineOverridableSettings={properties:{},patternProperties:{}},e.windowSettings={properties:{},patternProperties:{}},e.resourceSettings={properties:{},patternProperties:{}},e.resourceLanguageSettingsSchemaId="vscode://schemas/settings/resourceLanguage";const h=C.Registry.as(b.Extensions.JSONContribution);class u{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new v.Emitter,this._onDidUpdateConfiguration=new v.Emitter,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:D.localize(0,null),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting",allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},h.registerSchema(e.resourceLanguageSettingsSchemaId,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(a,r=!0){this.registerConfigurations([a],r)}registerConfigurations(a,r=!0){const c=this.doRegisterConfigurations(a,r);h.registerSchema(e.resourceLanguageSettingsSchemaId,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:c})}registerDefaultConfigurations(a){var r;const c=[],g=[];for(const{overrides:f,source:_}of a)for(const p in f)if(c.push(p),e.OVERRIDE_PROPERTY_REGEX.test(p)){const m=this.configurationDefaultsOverrides.get(p),S=(r=m?.valuesSources)!==null&&r!==void 0?r:new Map;if(_)for(const I of Object.keys(f[p]))S.set(I,_);const E=Object.assign(Object.assign({},m?.value||{}),f[p]);this.configurationDefaultsOverrides.set(p,{source:_,value:E,valuesSources:S});const L=(0,w.getLanguageTagSettingPlainKey)(p),N={type:"object",default:E,description:D.localize(1,null,L),$ref:e.resourceLanguageSettingsSchemaId,defaultDefaultValue:E,source:k.isString(_)?void 0:_,defaultValueSource:_};g.push(...t(p)),this.configurationProperties[p]=N,this.defaultLanguageConfigurationOverridesNode.properties[p]=N}else{this.configurationDefaultsOverrides.set(p,{value:f[p],source:_});const m=this.configurationProperties[p];m&&(this.updatePropertyDefaultValue(p,m),this.updateSchema(p,m))}this.registerOverrideIdentifiers(g),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:c,defaultsOverrides:!0})}registerOverrideIdentifiers(a){for(const r of a)this.overrideIdentifiers.add(r);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(a,r){const c=[];return a.forEach(g=>{c.push(...this.validateAndRegisterProperties(g,r,g.extensionInfo,g.restrictedProperties)),this.configurationContributors.push(g),this.registerJSONConfiguration(g)}),c}validateAndRegisterProperties(a,r=!0,c,g,f=3){var _;f=k.isUndefinedOrNull(a.scope)?f:a.scope;const p=[],m=a.properties;if(m)for(const E in m){const L=m[E];if(r&&d(E,L)){delete m[E];continue}if(L.source=c,L.defaultDefaultValue=m[E].default,this.updatePropertyDefaultValue(E,L),e.OVERRIDE_PROPERTY_REGEX.test(E)?L.scope=void 0:(L.scope=k.isUndefinedOrNull(L.scope)?f:L.scope,L.restricted=k.isUndefinedOrNull(L.restricted)?!!g?.includes(E):L.restricted),m[E].hasOwnProperty("included")&&!m[E].included){this.excludedConfigurationProperties[E]=m[E],delete m[E];continue}else this.configurationProperties[E]=m[E],!((_=m[E].policy)===null||_===void 0)&&_.name&&this.policyConfigurations.set(m[E].policy.name,E);!m[E].deprecationMessage&&m[E].markdownDeprecationMessage&&(m[E].deprecationMessage=m[E].markdownDeprecationMessage),p.push(E)}const S=a.allOf;if(S)for(const E of S)p.push(...this.validateAndRegisterProperties(E,r,c,g,f));return p}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(a){const r=c=>{const g=c.properties;if(g)for(const _ in g)this.updateSchema(_,g[_]);const f=c.allOf;f?.forEach(r)};r(a)}updateSchema(a,r){switch(e.allSettings.properties[a]=r,r.scope){case 1:e.applicationSettings.properties[a]=r;break;case 2:e.machineSettings.properties[a]=r;break;case 6:e.machineOverridableSettings.properties[a]=r;break;case 3:e.windowSettings.properties[a]=r;break;case 4:e.resourceSettings.properties[a]=r;break;case 5:e.resourceSettings.properties[a]=r,this.resourceLanguageSettingsSchema.properties[a]=r;break}}updateOverridePropertyPatternKey(){for(const a of this.overrideIdentifiers.values()){const r=`[${a}]`,c={type:"object",description:D.localize(2,null),errorMessage:D.localize(3,null),$ref:e.resourceLanguageSettingsSchemaId};this.updatePropertyDefaultValue(r,c),e.allSettings.properties[r]=c,e.applicationSettings.properties[r]=c,e.machineSettings.properties[r]=c,e.machineOverridableSettings.properties[r]=c,e.windowSettings.properties[r]=c,e.resourceSettings.properties[r]=c}this._onDidSchemaChange.fire()}registerOverridePropertyPatternKey(){const a={type:"object",description:D.localize(4,null),errorMessage:D.localize(5,null),$ref:e.resourceLanguageSettingsSchemaId};e.allSettings.patternProperties[e.OVERRIDE_PROPERTY_PATTERN]=a,e.applicationSettings.patternProperties[e.OVERRIDE_PROPERTY_PATTERN]=a,e.machineSettings.patternProperties[e.OVERRIDE_PROPERTY_PATTERN]=a,e.machineOverridableSettings.patternProperties[e.OVERRIDE_PROPERTY_PATTERN]=a,e.windowSettings.patternProperties[e.OVERRIDE_PROPERTY_PATTERN]=a,e.resourceSettings.patternProperties[e.OVERRIDE_PROPERTY_PATTERN]=a,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(a,r){const c=this.configurationDefaultsOverrides.get(a);let g=c?.value,f=c?.source;k.isUndefined(g)&&(g=r.defaultDefaultValue,f=void 0),k.isUndefined(g)&&(g=o(r.type)),r.default=g,r.defaultValueSource=f}}const n="\\[([^\\]]+)\\]",i=new RegExp(n,"g");e.OVERRIDE_PROPERTY_PATTERN=`^(${n})+$`,e.OVERRIDE_PROPERTY_REGEX=new RegExp(e.OVERRIDE_PROPERTY_PATTERN);function t(l){const a=[];if(e.OVERRIDE_PROPERTY_REGEX.test(l)){let r=i.exec(l);for(;r?.length;){const c=r[1].trim();c&&a.push(c),r=i.exec(l)}}return(0,y.distinct)(a)}e.overrideIdentifiersFromKey=t;function o(l){switch(Array.isArray(l)?l[0]:l){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}e.getDefaultValue=o;const s=new u;C.Registry.add(e.Extensions.Configuration,s);function d(l,a){var r,c,g,f;return l.trim()?e.OVERRIDE_PROPERTY_REGEX.test(l)?D.localize(7,null,l):s.getConfigurationProperties()[l]!==void 0?D.localize(8,null,l):!((r=a.policy)===null||r===void 0)&&r.name&&s.getPolicyConfigurations().get((c=a.policy)===null||c===void 0?void 0:c.name)!==void 0?D.localize(9,null,l,(g=a.policy)===null||g===void 0?void 0:g.name,s.getPolicyConfigurations().get((f=a.policy)===null||f===void 0?void 0:f.name)):null:D.localize(6,null)}e.validateProperty=d}),define(oe[212],se([1,0,36,153,530,94,34]),function(q,e,y,v,k,D,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isDiffEditorConfigurationKey=e.isEditorConfigurationKey=e.editorConfigurationBaseNode=void 0,e.editorConfigurationBaseNode=Object.freeze({id:"editor",order:5,type:"object",title:k.localize(0,null),scope:5});const b=Object.assign(Object.assign({},e.editorConfigurationBaseNode),{properties:{"editor.tabSize":{type:"number",default:v.EDITOR_MODEL_DEFAULTS.tabSize,minimum:1,markdownDescription:k.localize(1,null)},"editor.insertSpaces":{type:"boolean",default:v.EDITOR_MODEL_DEFAULTS.insertSpaces,markdownDescription:k.localize(2,null)},"editor.detectIndentation":{type:"boolean",default:v.EDITOR_MODEL_DEFAULTS.detectIndentation,markdownDescription:k.localize(3,null)},"editor.trimAutoWhitespace":{type:"boolean",default:v.EDITOR_MODEL_DEFAULTS.trimAutoWhitespace,description:k.localize(4,null)},"editor.largeFileOptimizations":{type:"boolean",default:v.EDITOR_MODEL_DEFAULTS.largeFileOptimizations,description:k.localize(5,null)},"editor.wordBasedSuggestions":{type:"boolean",default:!0,description:k.localize(6,null)},"editor.wordBasedSuggestionsMode":{enum:["currentDocument","matchingDocuments","allDocuments"],default:"matchingDocuments",enumDescriptions:[k.localize(7,null),k.localize(8,null),k.localize(9,null)],description:k.localize(10,null)},"editor.semanticHighlighting.enabled":{enum:[!0,!1,"configuredByTheme"],enumDescriptions:[k.localize(11,null),k.localize(12,null),k.localize(13,null)],default:"configuredByTheme",description:k.localize(14,null)},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:k.localize(15,null)},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:k.localize(16,null)},"editor.language.brackets":{type:["array","null"],default:null,description:k.localize(17,null),items:{type:"array",items:[{type:"string",description:k.localize(18,null)},{type:"string",description:k.localize(19,null)}]}},"editor.language.colorizedBracketPairs":{type:["array","null"],default:null,description:k.localize(20,null),items:{type:"array",items:[{type:"string",description:k.localize(21,null)},{type:"string",description:k.localize(22,null)}]}},"diffEditor.maxComputationTime":{type:"number",default:5e3,description:k.localize(23,null)},"diffEditor.maxFileSize":{type:"number",default:50,description:k.localize(24,null)},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:k.localize(25,null)},"diffEditor.renderMarginRevertIcon":{type:"boolean",default:!0,description:k.localize(26,null)},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:k.localize(27,null)},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:k.localize(28,null)},"diffEditor.codeLens":{type:"boolean",default:!1,description:k.localize(29,null)},"diffEditor.wordWrap":{type:"string",enum:["off","on","inherit"],default:"inherit",markdownEnumDescriptions:[k.localize(30,null),k.localize(31,null),k.localize(32,null)]}}});function C(t){return typeof t.type<"u"||typeof t.anyOf<"u"}for(const t of y.editorOptionsRegistry){const o=t.schema;if(typeof o<"u")if(C(o))b.properties[`editor.${t.name}`]=o;else for(const s in o)Object.hasOwnProperty.call(o,s)&&(b.properties[s]=o[s])}let h=null;function u(){return h===null&&(h=Object.create(null),Object.keys(b.properties).forEach(t=>{h[t]=!0})),h}function n(t){return u()[`editor.${t}`]||!1}e.isEditorConfigurationKey=n;function i(t){return u()[`diffEditor.${t}`]||!1}e.isDiffEditorConfigurationKey=i,w.Registry.as(D.Extensions.Configuration).registerConfiguration(b)}),define(oe[72],se([1,0,535,6,34,97,94]),function(q,e,y,v,k,D,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PLAINTEXT_EXTENSION=e.PLAINTEXT_LANGUAGE_ID=e.ModesRegistry=e.EditorModesRegistry=e.Extensions=void 0,e.Extensions={ModesRegistry:"editor.modesRegistry"};class b{constructor(){this._onDidChangeLanguages=new v.Emitter,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(h){return this._languages.push(h),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let u=0,n=this._languages.length;u<n;u++)if(this._languages[u]===h){this._languages.splice(u,1);return}}}}getLanguages(){return this._languages}}e.EditorModesRegistry=b,e.ModesRegistry=new b,k.Registry.add(e.Extensions.ModesRegistry,e.ModesRegistry),e.PLAINTEXT_LANGUAGE_ID="plaintext",e.PLAINTEXT_EXTENSION=".txt",e.ModesRegistry.registerLanguage({id:e.PLAINTEXT_LANGUAGE_ID,extensions:[e.PLAINTEXT_EXTENSION],aliases:[y.localize(0,null),"text"],mimetypes:[D.Mimes.text]}),k.Registry.as(w.Extensions.Configuration).registerDefaultConfigurations([{overrides:{"[plaintext]":{"editor.unicodeHighlight.ambiguousCharacters":!1,"editor.unicodeHighlight.invisibleCharacters":!1}}}])}),define(oe[32],se([1,0,6,2,8,128,98,110,415,505,416,419,203,9,30,37,53,72,418]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ResolvedLanguageConfiguration=e.LanguageConfigurationRegistry=e.LanguageConfigurationChangeEvent=e.getScopedLineTokens=e.getIndentationAtPosition=e.LanguageConfigurationService=e.ILanguageConfigurationService=e.LanguageConfigurationServiceChangeEvent=void 0;class r{constructor(x){this.languageId=x}affects(x){return this.languageId?this.languageId===x:!0}}e.LanguageConfigurationServiceChangeEvent=r,e.ILanguageConfigurationService=(0,t.createDecorator)("languageConfigurationService");let c=class extends v.Disposable{constructor(O,x){super(),this.configurationService=O,this.languageService=x,this._registry=this._register(new R),this.onDidChangeEmitter=this._register(new y.Emitter),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const M=new Set(Object.values(f));this._register(this.configurationService.onDidChangeConfiguration(P=>{const A=P.change.keys.some(K=>M.has(K)),B=P.change.overrides.filter(([K,T])=>T.some(ee=>M.has(ee))).map(([K])=>K);if(A)this.configurations.clear(),this.onDidChangeEmitter.fire(new r(void 0));else for(const K of B)this.languageService.isRegisteredLanguageId(K)&&(this.configurations.delete(K),this.onDidChangeEmitter.fire(new r(K)))})),this._register(this._registry.onDidChange(P=>{this.configurations.delete(P.languageId),this.onDidChangeEmitter.fire(new r(P.languageId))}))}register(O,x,M){return this._registry.register(O,x,M)}getLanguageConfiguration(O){let x=this.configurations.get(O);return x||(x=g(O,this._registry,this.configurationService,this.languageService),this.configurations.set(O,x)),x}};c=Ie([pe(0,o.IConfigurationService),pe(1,s.ILanguageService)],c),e.LanguageConfigurationService=c;function g(O,x,M,P){let A=x.getLanguageConfiguration(O);if(!A){if(!P.isRegisteredLanguageId(O))throw new Error(`Language id "${O}" is not configured nor known`);A=new F(O,{})}const B=_(A.languageId,M),K=L([A.underlyingConfig,B]);return new F(A.languageId,K)}const f={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function _(O,x){const M=x.getValue(f.brackets,{overrideIdentifier:O}),P=x.getValue(f.colorizedBracketPairs,{overrideIdentifier:O});return{brackets:p(M),colorizedBracketPairs:p(P)}}function p(O){if(Array.isArray(O))return O.map(x=>{if(!(!Array.isArray(x)||x.length!==2))return[x[0],x[1]]}).filter(x=>!!x)}function m(O,x,M){const P=O.getLineContent(x);let A=k.getLeadingWhitespace(P);return A.length>M-1&&(A=A.substring(0,M-1)),A}e.getIndentationAtPosition=m;function S(O,x,M){O.tokenization.forceTokenization(x);const P=O.tokenization.getLineTokens(x),A=typeof M>"u"?O.getLineMaxColumn(x)-1:M-1;return(0,b.createScopedLineTokens)(P,A)}e.getScopedLineTokens=S;class E{constructor(x){this.languageId=x,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(x,M){const P=new N(x,M,++this._order);return this._entries.push(P),this._resolved=null,(0,v.toDisposable)(()=>{for(let A=0;A<this._entries.length;A++)if(this._entries[A]===P){this._entries.splice(A,1),this._resolved=null;break}})}getResolvedConfiguration(){if(!this._resolved){const x=this._resolve();x&&(this._resolved=new F(this.languageId,x))}return this._resolved}_resolve(){return this._entries.length===0?null:(this._entries.sort(N.cmp),L(this._entries.map(x=>x.configuration)))}}function L(O){let x={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(const M of O)x={comments:M.comments||x.comments,brackets:M.brackets||x.brackets,wordPattern:M.wordPattern||x.wordPattern,indentationRules:M.indentationRules||x.indentationRules,onEnterRules:M.onEnterRules||x.onEnterRules,autoClosingPairs:M.autoClosingPairs||x.autoClosingPairs,surroundingPairs:M.surroundingPairs||x.surroundingPairs,autoCloseBefore:M.autoCloseBefore||x.autoCloseBefore,folding:M.folding||x.folding,colorizedBracketPairs:M.colorizedBracketPairs||x.colorizedBracketPairs,__electricCharacterSupport:M.__electricCharacterSupport||x.__electricCharacterSupport};return x}class N{constructor(x,M,P){this.configuration=x,this.priority=M,this.order=P}static cmp(x,M){return x.priority===M.priority?x.order-M.order:x.priority-M.priority}}class I{constructor(x){this.languageId=x}}e.LanguageConfigurationChangeEvent=I;class R extends v.Disposable{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new y.Emitter),this.onDidChange=this._onDidChange.event,this._register(this.register(l.PLAINTEXT_LANGUAGE_ID,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(x,M,P=0){let A=this._entries.get(x);A||(A=new E(x),this._entries.set(x,A));const B=A.register(M,P);return this._onDidChange.fire(new I(x)),(0,v.toDisposable)(()=>{B.dispose(),this._onDidChange.fire(new I(x))})}getLanguageConfiguration(x){const M=this._entries.get(x);return M?.getResolvedConfiguration()||null}}e.LanguageConfigurationRegistry=R;class F{constructor(x,M){this.languageId=x,this.underlyingConfig=M,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new n.OnEnterSupport(this.underlyingConfig):null,this.comments=F._handleComments(this.underlyingConfig),this.characterPair=new C.CharacterPairSupport(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||D.DEFAULT_WORD_REGEXP,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new u.IndentRulesSupport(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new a.LanguageBracketsConfiguration(x,this.underlyingConfig)}getWordDefinition(){return(0,D.ensureValidWordDefinition)(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new i.RichEditBrackets(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new h.BracketElectricCharacterSupport(this.brackets)),this._electricCharacter}onEnter(x,M,P,A){return this._onEnterSupport?this._onEnterSupport.onEnter(x,M,P,A):null}getAutoClosingPairs(){return new w.AutoClosingPairs(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(){return this.characterPair.getAutoCloseBeforeSet()}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(x){const M=x.comments;if(!M)return null;const P={};if(M.lineComment&&(P.lineCommentToken=M.lineComment),M.blockComment){const[A,B]=M.blockComment;P.blockCommentStartToken=A,P.blockCommentEndToken=B}return P}}e.ResolvedLanguageConfiguration=F,(0,d.registerSingleton)(e.ILanguageConfigurationService,c)}),define(oe[290],se([1,0,10,2,265,497,3,32,513,50,166,8,18,69,57,14,20]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorWorkerClient=e.EditorWorkerHost=e.EditorWorkerService=void 0;const l=60*1e3,a=5*60*1e3;function r(E,L){const N=E.getModel(L);return!(!N||N.isTooLargeForSyncing())}let c=class extends v.Disposable{constructor(E,L,N,I,R){super(),this._modelService=E,this._workerManager=this._register(new f(this._modelService,I)),this._logService=N,this._register(R.linkProvider.register({language:"*",hasAccessToAllModels:!0},{provideLinks:(F,O)=>r(this._modelService,F.uri)?this._workerManager.withWorker().then(x=>x.computeLinks(F.uri)).then(x=>x&&{links:x}):Promise.resolve({links:[]})})),this._register(R.completionProvider.register("*",new g(this._workerManager,L,this._modelService,I)))}dispose(){super.dispose()}canComputeUnicodeHighlights(E){return r(this._modelService,E)}computedUnicodeHighlights(E,L,N){return this._workerManager.withWorker().then(I=>I.computedUnicodeHighlights(E,L,N))}computeDiff(E,L,N,I){return this._workerManager.withWorker().then(R=>R.computeDiff(E,L,N,I))}computeMoreMinimalEdits(E,L){if((0,i.isNonEmptyArray)(L)){if(!r(this._modelService,E))return Promise.resolve(L);const N=o.StopWatch.create(!0),I=this._workerManager.withWorker().then(R=>R.computeMoreMinimalEdits(E,L));return I.finally(()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",E.toString(!0),N.elapsed())),Promise.race([I,(0,y.timeout)(1e3).then(()=>L)])}else return Promise.resolve(void 0)}canNavigateValueSet(E){return r(this._modelService,E)}navigateValueSet(E,L,N){return this._workerManager.withWorker().then(I=>I.navigateValueSet(E,L,N))}canComputeWordRanges(E){return r(this._modelService,E)}computeWordRanges(E,L){return this._workerManager.withWorker().then(N=>N.computeWordRanges(E,L))}};c=Ie([pe(0,h.IModelService),pe(1,u.ITextResourceConfigurationService),pe(2,t.ILogService),pe(3,b.ILanguageConfigurationService),pe(4,d.ILanguageFeaturesService)],c),e.EditorWorkerService=c;class g{constructor(L,N,I,R){this.languageConfigurationService=R,this._debugDisplayName="wordbasedCompletions",this._workerManager=L,this._configurationService=N,this._modelService=I}provideCompletionItems(L,N){return be(this,void 0,void 0,function*(){const I=this._configurationService.getValue(L.uri,N,"editor");if(!I.wordBasedSuggestions)return;const R=[];if(I.wordBasedSuggestionsMode==="currentDocument")r(this._modelService,L.uri)&&R.push(L.uri);else for(const A of this._modelService.getModels())!r(this._modelService,A.uri)||(A===L?R.unshift(A.uri):(I.wordBasedSuggestionsMode==="allDocuments"||A.getLanguageId()===L.getLanguageId())&&R.push(A.uri));if(R.length===0)return;const F=this.languageConfigurationService.getLanguageConfiguration(L.getLanguageId()).getWordDefinition(),O=L.getWordAtPosition(N),x=O?new w.Range(N.lineNumber,O.startColumn,N.lineNumber,O.endColumn):w.Range.fromPositions(N),M=x.setEndPosition(N.lineNumber,N.column),P=yield(yield this._workerManager.withWorker()).textualSuggest(R,O?.word,F);if(P)return{duration:P.duration,suggestions:P.words.map(A=>({kind:18,label:A,insertText:A,range:{insert:M,replace:x}}))}})}}class f extends v.Disposable{constructor(L,N){super(),this.languageConfigurationService=N,this._modelService=L,this._editorWorkerClient=null,this._lastWorkerUsedTime=new Date().getTime(),this._register(new y.IntervalTimer).cancelAndSet(()=>this._checkStopIdleWorker(),Math.round(a/2)),this._register(this._modelService.onModelRemoved(I=>this._checkStopEmptyWorker()))}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose()}_checkStopEmptyWorker(){this._editorWorkerClient&&this._modelService.getModels().length===0&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}_checkStopIdleWorker(){this._editorWorkerClient&&new Date().getTime()-this._lastWorkerUsedTime>a&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=new Date().getTime(),this._editorWorkerClient||(this._editorWorkerClient=new S(this._modelService,!1,"editorWorkerService",this.languageConfigurationService)),Promise.resolve(this._editorWorkerClient)}}class _ extends v.Disposable{constructor(L,N,I){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=L,this._modelService=N,!I){const R=new y.IntervalTimer;R.cancelAndSet(()=>this._checkStopModelSync(),Math.round(l/2)),this._register(R)}}dispose(){for(const L in this._syncedModels)(0,v.dispose)(this._syncedModels[L]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(L,N){for(const I of L){const R=I.toString();this._syncedModels[R]||this._beginModelSync(I,N),this._syncedModels[R]&&(this._syncedModelsLastUsedTime[R]=new Date().getTime())}}_checkStopModelSync(){const L=new Date().getTime(),N=[];for(const I in this._syncedModelsLastUsedTime)L-this._syncedModelsLastUsedTime[I]>l&&N.push(I);for(const I of N)this._stopModelSync(I)}_beginModelSync(L,N){const I=this._modelService.getModel(L);if(!I||!N&&I.isTooLargeForSyncing())return;const R=L.toString();this._proxy.acceptNewModel({url:I.uri.toString(),lines:I.getLinesContent(),EOL:I.getEOL(),versionId:I.getVersionId()});const F=new v.DisposableStore;F.add(I.onDidChangeContent(O=>{this._proxy.acceptModelChanged(R.toString(),O)})),F.add(I.onWillDispose(()=>{this._stopModelSync(R)})),F.add((0,v.toDisposable)(()=>{this._proxy.acceptRemovedModel(R)})),this._syncedModels[R]=F}_stopModelSync(L){const N=this._syncedModels[L];delete this._syncedModels[L],delete this._syncedModelsLastUsedTime[L],(0,v.dispose)(N)}}class p{constructor(L){this._instance=L,this._proxyObj=Promise.resolve(this._instance)}dispose(){this._instance.dispose()}getProxyObject(){return this._proxyObj}}class m{constructor(L){this._workerClient=L}fhr(L,N){return this._workerClient.fhr(L,N)}}e.EditorWorkerHost=m;class S extends v.Disposable{constructor(L,N,I,R){super(),this.languageConfigurationService=R,this._disposed=!1,this._modelService=L,this._keepIdleModels=N,this._workerFactory=new D.DefaultWorkerFactory(I),this._worker=null,this._modelManager=null}fhr(L,N){throw new Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(new k.SimpleWorkerClient(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new m(this)))}catch(L){(0,k.logOnceWebWorkerWarning)(L),this._worker=new p(new C.EditorSimpleWorker(new m(this),null))}return this._worker}_getProxy(){return this._getOrCreateWorker().getProxyObject().then(void 0,L=>((0,k.logOnceWebWorkerWarning)(L),this._worker=new p(new C.EditorSimpleWorker(new m(this),null)),this._getOrCreateWorker().getProxyObject()))}_getOrCreateModelManager(L){return this._modelManager||(this._modelManager=this._register(new _(L,this._modelService,this._keepIdleModels))),this._modelManager}_withSyncedResources(L,N=!1){return be(this,void 0,void 0,function*(){return this._disposed?Promise.reject((0,s.canceled)()):this._getProxy().then(I=>(this._getOrCreateModelManager(I).ensureSyncedResources(L,N),I))})}computedUnicodeHighlights(L,N,I){return this._withSyncedResources([L]).then(R=>R.computeUnicodeHighlights(L.toString(),N,I))}computeDiff(L,N,I,R){return this._withSyncedResources([L,N],!0).then(F=>F.computeDiff(L.toString(),N.toString(),I,R))}computeMoreMinimalEdits(L,N){return this._withSyncedResources([L]).then(I=>I.computeMoreMinimalEdits(L.toString(),N))}computeLinks(L){return this._withSyncedResources([L]).then(N=>N.computeLinks(L.toString()))}textualSuggest(L,N,I){return be(this,void 0,void 0,function*(){const R=yield this._withSyncedResources(L),F=I.source,O=(0,n.regExpFlags)(I);return R.textualSuggest(L.map(x=>x.toString()),N,F,O)})}computeWordRanges(L,N){return this._withSyncedResources([L]).then(I=>{const R=this._modelService.getModel(L);if(!R)return Promise.resolve(null);const F=this.languageConfigurationService.getLanguageConfiguration(R.getLanguageId()).getWordDefinition(),O=F.source,x=(0,n.regExpFlags)(F);return I.computeWordRanges(L.toString(),N,O,x)})}navigateValueSet(L,N,I){return this._withSyncedResources([L]).then(R=>{const F=this._modelService.getModel(L);if(!F)return null;const O=this.languageConfigurationService.getLanguageConfiguration(F.getLanguageId()).getWordDefinition(),x=O.source,M=(0,n.regExpFlags)(O);return R.navigateValueSet(L.toString(),N,I,x,M)})}dispose(){super.dispose(),this._disposed=!0}}e.EditorWorkerClient=S}),define(oe[650],se([1,0,290,19]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createWebWorker=void 0;function k(w,b,C){return new D(w,b,C)}e.createWebWorker=k;class D extends y.EditorWorkerClient{constructor(b,C,h){super(b,h.keepIdleModels||!1,h.label,C),this._foreignModuleId=h.moduleId,this._foreignModuleCreateData=h.createData||null,this._foreignModuleHost=h.host||null,this._foreignProxy=null}fhr(b,C){if(!this._foreignModuleHost||typeof this._foreignModuleHost[b]!="function")return Promise.reject(new Error("Missing method "+b+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[b].apply(this._foreignModuleHost,C))}catch(h){return Promise.reject(h)}}_getForeignProxy(){return this._foreignProxy||(this._foreignProxy=this._getProxy().then(b=>{const C=this._foreignModuleHost?v.getAllMethodNames(this._foreignModuleHost):[];return b.loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,C).then(h=>{this._foreignModuleCreateData=null;const u=(t,o)=>b.fmr(t,o),n=(t,o)=>function(){const s=Array.prototype.slice.call(arguments,0);return o(t,s)},i={};for(const t of h)i[t]=n(t,u);return i})})),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(b){return this._withSyncedResources(b).then(C=>this.getProxy())}}}),define(oe[213],se([1,0,8,98,110,32]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getIndentMetadata=e.getIndentActionForType=e.getIndentForEnter=e.getGoodIndentForLine=e.getInheritIndentForLine=void 0;function w(i,t,o){const s=i.tokenization.getLanguageIdAtPosition(t,0);if(t>1){let d,l=-1;for(d=t-1;d>=1;d--){if(i.tokenization.getLanguageIdAtPosition(d,0)!==s)return l;const a=i.getLineContent(d);if(o.shouldIgnore(a)||/^\s+$/.test(a)||a===""){l=d;continue}return d}}return-1}function b(i,t,o,s=!0,d){if(i<4)return null;const l=d.getLanguageConfiguration(t.tokenization.getLanguageId()).indentRulesSupport;if(!l)return null;if(o<=1)return{indentation:"",action:null};const a=w(t,o,l);if(a<0)return null;if(a<1)return{indentation:"",action:null};const r=t.getLineContent(a);if(l.shouldIncrease(r)||l.shouldIndentNextLine(r))return{indentation:y.getLeadingWhitespace(r),action:v.IndentAction.Indent,line:a};if(l.shouldDecrease(r))return{indentation:y.getLeadingWhitespace(r),action:null,line:a};{if(a===1)return{indentation:y.getLeadingWhitespace(t.getLineContent(a)),action:null,line:a};const c=a-1,g=l.getIndentMetadata(t.getLineContent(c));if(!(g&3)&&g&4){let f=0;for(let _=c-1;_>0;_--)if(!l.shouldIndentNextLine(t.getLineContent(_))){f=_;break}return{indentation:y.getLeadingWhitespace(t.getLineContent(f+1)),action:null,line:f+1}}if(s)return{indentation:y.getLeadingWhitespace(t.getLineContent(a)),action:null,line:a};for(let f=a;f>0;f--){const _=t.getLineContent(f);if(l.shouldIncrease(_))return{indentation:y.getLeadingWhitespace(_),action:v.IndentAction.Indent,line:f};if(l.shouldIndentNextLine(_)){let p=0;for(let m=f-1;m>0;m--)if(!l.shouldIndentNextLine(t.getLineContent(f))){p=m;break}return{indentation:y.getLeadingWhitespace(t.getLineContent(p+1)),action:null,line:p+1}}else if(l.shouldDecrease(_))return{indentation:y.getLeadingWhitespace(_),action:null,line:f}}return{indentation:y.getLeadingWhitespace(t.getLineContent(1)),action:null,line:1}}}e.getInheritIndentForLine=b;function C(i,t,o,s,d,l){if(i<4)return null;const a=l.getLanguageConfiguration(o);if(!a)return null;const r=l.getLanguageConfiguration(o).indentRulesSupport;if(!r)return null;const c=b(i,t,s,void 0,l),g=t.getLineContent(s);if(c){const f=c.line;if(f!==void 0){const _=a.onEnter(i,"",t.getLineContent(f),"");if(_){let p=y.getLeadingWhitespace(t.getLineContent(f));return _.removeText&&(p=p.substring(0,p.length-_.removeText)),_.indentAction===v.IndentAction.Indent||_.indentAction===v.IndentAction.IndentOutdent?p=d.shiftIndent(p):_.indentAction===v.IndentAction.Outdent&&(p=d.unshiftIndent(p)),r.shouldDecrease(g)&&(p=d.unshiftIndent(p)),_.appendText&&(p+=_.appendText),y.getLeadingWhitespace(p)}}return r.shouldDecrease(g)?c.action===v.IndentAction.Indent?c.indentation:d.unshiftIndent(c.indentation):c.action===v.IndentAction.Indent?d.shiftIndent(c.indentation):c.indentation}return null}e.getGoodIndentForLine=C;function h(i,t,o,s,d){if(i<4)return null;t.tokenization.forceTokenization(o.startLineNumber);const l=t.tokenization.getLineTokens(o.startLineNumber),a=(0,k.createScopedLineTokens)(l,o.startColumn-1),r=a.getLineContent();let c=!1,g;a.firstCharOffset>0&&l.getLanguageId(0)!==a.languageId?(c=!0,g=r.substr(0,o.startColumn-1-a.firstCharOffset)):g=l.getLineContent().substring(0,o.startColumn-1);let f;o.isEmpty()?f=r.substr(o.startColumn-1-a.firstCharOffset):f=(0,D.getScopedLineTokens)(t,o.endLineNumber,o.endColumn).getLineContent().substr(o.endColumn-1-a.firstCharOffset);const _=d.getLanguageConfiguration(a.languageId).indentRulesSupport;if(!_)return null;const p=g,m=y.getLeadingWhitespace(g),S={tokenization:{getLineTokens:I=>t.tokenization.getLineTokens(I),getLanguageId:()=>t.getLanguageId(),getLanguageIdAtPosition:(I,R)=>t.getLanguageIdAtPosition(I,R)},getLineContent:I=>I===o.startLineNumber?p:t.getLineContent(I)},E=y.getLeadingWhitespace(l.getLineContent()),L=b(i,S,o.startLineNumber+1,void 0,d);if(!L){const I=c?E:m;return{beforeEnter:I,afterEnter:I}}let N=c?E:L.indentation;return L.action===v.IndentAction.Indent&&(N=s.shiftIndent(N)),_.shouldDecrease(f)&&(N=s.unshiftIndent(N)),{beforeEnter:c?E:m,afterEnter:N}}e.getIndentForEnter=h;function u(i,t,o,s,d,l){if(i<4)return null;const a=(0,D.getScopedLineTokens)(t,o.startLineNumber,o.startColumn);if(a.firstCharOffset)return null;const r=l.getLanguageConfiguration(a.languageId).indentRulesSupport;if(!r)return null;const c=a.getLineContent(),g=c.substr(0,o.startColumn-1-a.firstCharOffset);let f;if(o.isEmpty()?f=c.substr(o.startColumn-1-a.firstCharOffset):f=(0,D.getScopedLineTokens)(t,o.endLineNumber,o.endColumn).getLineContent().substr(o.endColumn-1-a.firstCharOffset),!r.shouldDecrease(g+f)&&r.shouldDecrease(g+s+f)){const _=b(i,t,o.startLineNumber,!1,l);if(!_)return null;let p=_.indentation;return _.action!==v.IndentAction.Indent&&(p=d.unshiftIndent(p)),p}return null}e.getIndentActionForType=u;function n(i,t,o){const s=o.getLanguageConfiguration(i.getLanguageId()).indentRulesSupport;return!s||t<1||t>i.getLineCount()?null:s.getIndentMetadata(i.getLineContent(t))}e.getIndentMetadata=n}),define(oe[214],se([1,0,98,32]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getEnterAction=void 0;function k(D,w,b,C){const h=(0,v.getScopedLineTokens)(w,b.startLineNumber,b.startColumn),u=C.getLanguageConfiguration(h.languageId);if(!u)return null;const n=h.getLineContent(),i=n.substr(0,b.startColumn-1-h.firstCharOffset);let t;b.isEmpty()?t=n.substr(b.startColumn-1-h.firstCharOffset):t=(0,v.getScopedLineTokens)(w,b.endLineNumber,b.endColumn).getLineContent().substr(b.endColumn-1-h.firstCharOffset);let o="";if(b.startLineNumber>1&&h.firstCharOffset===0){const c=(0,v.getScopedLineTokens)(w,b.startLineNumber-1);c.languageId===h.languageId&&(o=c.getLineContent())}const s=u.onEnter(D,o,i,t);if(!s)return null;const d=s.indentAction;let l=s.appendText;const a=s.removeText||0;l?d===y.IndentAction.Indent&&(l=" "+l):d===y.IndentAction.Indent||d===y.IndentAction.IndentOutdent?l=" ":l="";let r=(0,v.getIndentationAtPosition)(w,b.startLineNumber,b.startColumn);return a&&(r=r.substring(0,r.length-a)),{indentAction:d,appendText:l,removeText:a,indentation:r}}e.getEnterAction=k}),define(oe[215],se([1,0,8,66,3,23,214,32]),function(q,e,y,v,k,D,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ShiftCommand=e.cachedStringRepeat=void 0;const C=Object.create(null);function h(n,i){if(i<=0)return"";C[n]||(C[n]=["",n]);const t=C[n];for(let o=t.length;o<=i;o++)t[o]=t[o-1]+n;return t[i]}e.cachedStringRepeat=h;let u=class Ei{constructor(i,t,o){this._languageConfigurationService=o,this._opts=t,this._selection=i,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}static unshiftIndent(i,t,o,s,d){const l=v.CursorColumns.visibleColumnFromColumn(i,t,o);if(d){const a=h(" ",s),r=v.CursorColumns.prevIndentTabStop(l,s)/s;return h(a,r)}else{const a=" ",r=v.CursorColumns.prevRenderTabStop(l,o)/o;return h(a,r)}}static shiftIndent(i,t,o,s,d){const l=v.CursorColumns.visibleColumnFromColumn(i,t,o);if(d){const a=h(" ",s),r=v.CursorColumns.nextIndentTabStop(l,s)/s;return h(a,r)}else{const a=" ",r=v.CursorColumns.nextRenderTabStop(l,o)/o;return h(a,r)}}_addEditOperation(i,t,o){this._useLastEditRangeForCursorEndPosition?i.addTrackedEditOperation(t,o):i.addEditOperation(t,o)}getEditOperations(i,t){const o=this._selection.startLineNumber;let s=this._selection.endLineNumber;this._selection.endColumn===1&&o!==s&&(s=s-1);const{tabSize:d,indentSize:l,insertSpaces:a}=this._opts,r=o===s;if(this._opts.useTabStops){this._selection.isEmpty()&&/^\s*$/.test(i.getLineContent(o))&&(this._useLastEditRangeForCursorEndPosition=!0);let c=0,g=0;for(let f=o;f<=s;f++,c=g){g=0;const _=i.getLineContent(f);let p=y.firstNonWhitespaceIndex(_);if(this._opts.isUnshift&&(_.length===0||p===0)||!r&&!this._opts.isUnshift&&_.length===0)continue;if(p===-1&&(p=_.length),f>1&&v.CursorColumns.visibleColumnFromColumn(_,p+1,d)%l!=0&&i.tokenization.isCheapToTokenize(f-1)){const S=(0,w.getEnterAction)(this._opts.autoIndent,i,new k.Range(f-1,i.getLineMaxColumn(f-1),f-1,i.getLineMaxColumn(f-1)),this._languageConfigurationService);if(S){if(g=c,S.appendText)for(let E=0,L=S.appendText.length;E<L&&g<l&&S.appendText.charCodeAt(E)===32;E++)g++;S.removeText&&(g=Math.max(0,g-S.removeText));for(let E=0;E<g&&!(p===0||_.charCodeAt(p-1)!==32);E++)p--}}if(this._opts.isUnshift&&p===0)continue;let m;this._opts.isUnshift?m=Ei.unshiftIndent(_,p+1,d,l,a):m=Ei.shiftIndent(_,p+1,d,l,a),this._addEditOperation(t,new k.Range(f,1,f,p+1),m),f===o&&!this._selection.isEmpty()&&(this._selectionStartColumnStaysPut=this._selection.startColumn<=p+1)}}else{!this._opts.isUnshift&&this._selection.isEmpty()&&i.getLineLength(o)===0&&(this._useLastEditRangeForCursorEndPosition=!0);const c=a?h(" ",l):" ";for(let g=o;g<=s;g++){const f=i.getLineContent(g);let _=y.firstNonWhitespaceIndex(f);if(!(this._opts.isUnshift&&(f.length===0||_===0))&&!(!r&&!this._opts.isUnshift&&f.length===0)&&(_===-1&&(_=f.length),!(this._opts.isUnshift&&_===0)))if(this._opts.isUnshift){_=Math.min(_,l);for(let p=0;p<_;p++)if(f.charCodeAt(p)===9){_=p+1;break}this._addEditOperation(t,new k.Range(g,1,g,_+1),"")}else this._addEditOperation(t,new k.Range(g,1,g,1),c),g===o&&!this._selection.isEmpty()&&(this._selectionStartColumnStaysPut=this._selection.startColumn===1)}}this._selectionId=t.trackSelection(this._selection)}computeCursorState(i,t){if(this._useLastEditRangeForCursorEndPosition){const s=t.getInverseEditOperations()[0];return new D.Selection(s.range.endLineNumber,s.range.endColumn,s.range.endLineNumber,s.range.endColumn)}const o=t.getTrackedSelection(this._selectionId);if(this._selectionStartColumnStaysPut){const s=this._selection.startColumn;return o.startColumn<=s?o:o.getDirection()===0?new D.Selection(o.startLineNumber,s,o.endLineNumber,o.endColumn):new D.Selection(o.endLineNumber,o.endColumn,o.startLineNumber,s)}return o}};u=Ie([pe(2,b.ILanguageConfigurationService)],u),e.ShiftCommand=u}),define(oe[216],se([1,0,14,8,108,215,407,61,127,3,11,98,32,110,213,214]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CompositionOutcome=e.TypeWithAutoClosingCommand=e.TypeOperations=void 0;class d{static indent(p,m,S){if(m===null||S===null)return[];const E=[];for(let L=0,N=S.length;L<N;L++)E[L]=new D.ShiftCommand(S[L],{isUnshift:!1,tabSize:p.tabSize,indentSize:p.indentSize,insertSpaces:p.insertSpaces,useTabStops:p.useTabStops,autoIndent:p.autoIndent},p.languageConfigurationService);return E}static outdent(p,m,S){const E=[];for(let L=0,N=S.length;L<N;L++)E[L]=new D.ShiftCommand(S[L],{isUnshift:!0,tabSize:p.tabSize,indentSize:p.indentSize,insertSpaces:p.insertSpaces,useTabStops:p.useTabStops,autoIndent:p.autoIndent},p.languageConfigurationService);return E}static shiftIndent(p,m,S){return S=S||1,D.ShiftCommand.shiftIndent(m,m.length+S,p.tabSize,p.indentSize,p.insertSpaces)}static unshiftIndent(p,m,S){return S=S||1,D.ShiftCommand.unshiftIndent(m,m.length+S,p.tabSize,p.indentSize,p.insertSpaces)}static _distributedPaste(p,m,S,E){const L=[];for(let N=0,I=S.length;N<I;N++)L[N]=new k.ReplaceCommand(S[N],E[N]);return new b.EditOperationResult(0,L,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _simplePaste(p,m,S,E,L){const N=[];for(let I=0,R=S.length;I<R;I++){const F=S[I],O=F.getPosition();if(L&&!F.isEmpty()&&(L=!1),L&&E.indexOf(` `)!==E.length-1&&(L=!1),L){const x=new h.Range(O.lineNumber,1,O.lineNumber,1);N[I]=new k.ReplaceCommandThatPreservesSelection(x,E,F,!0)}else N[I]=new k.ReplaceCommand(F,E)}return new b.EditOperationResult(0,N,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _distributePasteToCursors(p,m,S,E,L){if(E||m.length===1)return null;if(L&&L.length===m.length)return L;if(p.multiCursorPaste==="spread"){S.charCodeAt(S.length-1)===10&&(S=S.substr(0,S.length-1)),S.charCodeAt(S.length-1)===13&&(S=S.substr(0,S.length-1));const N=v.splitLines(S);if(N.length===m.length)return N}return null}static paste(p,m,S,E,L,N){const I=this._distributePasteToCursors(p,S,E,L,N);return I?(S=S.sort(h.Range.compareRangesUsingStarts),this._distributedPaste(p,m,S,I)):this._simplePaste(p,m,S,E,L)}static _goodIndentForLine(p,m,S){let E=null,L="";const N=(0,o.getInheritIndentForLine)(p.autoIndent,m,S,!1,p.languageConfigurationService);if(N)E=N.action,L=N.indentation;else if(S>1){let I;for(I=S-1;I>=1;I--){const O=m.getLineContent(I);if(v.lastNonWhitespaceIndex(O)>=0)break}if(I<1)return null;const R=m.getLineMaxColumn(I),F=(0,s.getEnterAction)(p.autoIndent,m,new h.Range(I,R,I,R),p.languageConfigurationService);F&&(L=F.indentation+F.appendText)}return E&&(E===n.IndentAction.Indent&&(L=d.shiftIndent(p,L)),E===n.IndentAction.Outdent&&(L=d.unshiftIndent(p,L)),L=p.normalizeIndentation(L)),L||null}static _replaceJumpToNextIndent(p,m,S,E){let L="";const N=S.getStartPosition();if(p.insertSpaces){const I=p.visibleColumnFromColumn(m,N),R=p.indentSize,F=R-I%R;for(let O=0;O<F;O++)L+=" "}else L=" ";return new k.ReplaceCommand(S,L,E)}static tab(p,m,S){const E=[];for(let L=0,N=S.length;L<N;L++){const I=S[L];if(I.isEmpty()){const R=m.getLineContent(I.startLineNumber);if(/^\s*$/.test(R)&&m.tokenization.isCheapToTokenize(I.startLineNumber)){let F=this._goodIndentForLine(p,m,I.startLineNumber);F=F||" ";const O=p.normalizeIndentation(F);if(!R.startsWith(O)){E[L]=new k.ReplaceCommand(new h.Range(I.startLineNumber,1,I.startLineNumber,R.length+1),O,!0);continue}}E[L]=this._replaceJumpToNextIndent(p,m,I,!0)}else{if(I.startLineNumber===I.endLineNumber){const R=m.getLineMaxColumn(I.startLineNumber);if(I.startColumn!==1||I.endColumn!==R){E[L]=this._replaceJumpToNextIndent(p,m,I,!1);continue}}E[L]=new D.ShiftCommand(I,{isUnshift:!1,tabSize:p.tabSize,indentSize:p.indentSize,insertSpaces:p.insertSpaces,useTabStops:p.useTabStops,autoIndent:p.autoIndent},p.languageConfigurationService)}}return E}static compositionType(p,m,S,E,L,N,I,R){const F=E.map(O=>this._compositionType(S,O,L,N,I,R));return new b.EditOperationResult(4,F,{shouldPushStackElementBefore:c(p,4),shouldPushStackElementAfter:!1})}static _compositionType(p,m,S,E,L,N){if(!m.isEmpty())return null;const I=m.getPosition(),R=Math.max(1,I.column-E),F=Math.min(p.getLineMaxColumn(I.lineNumber),I.column+L),O=new h.Range(I.lineNumber,R,I.lineNumber,F);return p.getValueInRange(O)===S&&N===0?null:new k.ReplaceCommandWithOffsetCursorState(O,S,0,N)}static _typeCommand(p,m,S){return S?new k.ReplaceCommandWithoutChangingPosition(p,m,!0):new k.ReplaceCommand(p,m,!0)}static _enter(p,m,S,E){if(p.autoIndent===0)return d._typeCommand(E,` `,S);if(!m.tokenization.isCheapToTokenize(E.getStartPosition().lineNumber)||p.autoIndent===1){const R=m.getLineContent(E.startLineNumber),F=v.getLeadingWhitespace(R).substring(0,E.startColumn-1);return d._typeCommand(E,` `+p.normalizeIndentation(F),S)}const L=(0,s.getEnterAction)(p.autoIndent,m,E,p.languageConfigurationService);if(L){if(L.indentAction===n.IndentAction.None||L.indentAction===n.IndentAction.Indent)return d._typeCommand(E,` `+p.normalizeIndentation(L.indentation+L.appendText),S);if(L.indentAction===n.IndentAction.IndentOutdent){const R=p.normalizeIndentation(L.indentation),F=p.normalizeIndentation(L.indentation+L.appendText),O=` `+F+` `+R;return S?new k.ReplaceCommandWithoutChangingPosition(E,O,!0):new k.ReplaceCommandWithOffsetCursorState(E,O,-1,F.length-R.length,!0)}else if(L.indentAction===n.IndentAction.Outdent){const R=d.unshiftIndent(p,L.indentation);return d._typeCommand(E,` `+p.normalizeIndentation(R+L.appendText),S)}}const N=m.getLineContent(E.startLineNumber),I=v.getLeadingWhitespace(N).substring(0,E.startColumn-1);if(p.autoIndent>=4){const R=(0,o.getIndentForEnter)(p.autoIndent,m,E,{unshiftIndent:F=>d.unshiftIndent(p,F),shiftIndent:F=>d.shiftIndent(p,F),normalizeIndentation:F=>p.normalizeIndentation(F)},p.languageConfigurationService);if(R){let F=p.visibleColumnFromColumn(m,E.getEndPosition());const O=E.endColumn,x=m.getLineContent(E.endLineNumber),M=v.firstNonWhitespaceIndex(x);if(M>=0?E=E.setEndPosition(E.endLineNumber,Math.max(E.endColumn,M+1)):E=E.setEndPosition(E.endLineNumber,m.getLineMaxColumn(E.endLineNumber)),S)return new k.ReplaceCommandWithoutChangingPosition(E,` `+p.normalizeIndentation(R.afterEnter),!0);{let P=0;return O<=M+1&&(p.insertSpaces||(F=Math.ceil(F/p.indentSize)),P=Math.min(F+1-p.normalizeIndentation(R.afterEnter).length-1,0)),new k.ReplaceCommandWithOffsetCursorState(E,` `+p.normalizeIndentation(R.afterEnter),0,P,!0)}}}return d._typeCommand(E,` `+p.normalizeIndentation(I),S)}static _isAutoIndentType(p,m,S){if(p.autoIndent<4)return!1;for(let E=0,L=S.length;E<L;E++)if(!m.tokenization.isCheapToTokenize(S[E].getEndPosition().lineNumber))return!1;return!0}static _runAutoIndentType(p,m,S,E){const L=(0,i.getIndentationAtPosition)(m,S.startLineNumber,S.startColumn),N=(0,o.getIndentActionForType)(p.autoIndent,m,S,E,{shiftIndent:I=>d.shiftIndent(p,I),unshiftIndent:I=>d.unshiftIndent(p,I)},p.languageConfigurationService);if(N===null)return null;if(N!==p.normalizeIndentation(L)){const I=m.getLineFirstNonWhitespaceColumn(S.startLineNumber);return I===0?d._typeCommand(new h.Range(S.startLineNumber,1,S.endLineNumber,S.endColumn),p.normalizeIndentation(N)+E,!1):d._typeCommand(new h.Range(S.startLineNumber,1,S.endLineNumber,S.endColumn),p.normalizeIndentation(N)+m.getLineContent(S.startLineNumber).substring(I-1,S.startColumn-1)+E,!1)}return null}static _isAutoClosingOvertype(p,m,S,E,L){if(p.autoClosingOvertype==="never"||!p.autoClosingPairs.autoClosingPairsCloseSingleChar.has(L))return!1;for(let N=0,I=S.length;N<I;N++){const R=S[N];if(!R.isEmpty())return!1;const F=R.getPosition(),O=m.getLineContent(F.lineNumber);if(O.charAt(F.column-1)!==L)return!1;const x=(0,b.isQuote)(L);if((F.column>2?O.charCodeAt(F.column-2):0)===92&&x)return!1;if(p.autoClosingOvertype==="auto"){let M=!1;for(let P=0,A=E.length;P<A;P++){const B=E[P];if(F.lineNumber===B.startLineNumber&&F.column===B.startColumn){M=!0;break}}if(!M)return!1}}return!0}static _runAutoClosingOvertype(p,m,S,E,L){const N=[];for(let I=0,R=E.length;I<R;I++){const F=E[I].getPosition(),O=new h.Range(F.lineNumber,F.column,F.lineNumber,F.column+1);N[I]=new k.ReplaceCommand(O,L)}return new b.EditOperationResult(4,N,{shouldPushStackElementBefore:c(p,4),shouldPushStackElementAfter:!1})}static _isBeforeClosingBrace(p,m){const S=m.charAt(0),E=p.autoClosingPairs.autoClosingPairsOpenByStart.get(S)||[],L=p.autoClosingPairs.autoClosingPairsCloseByStart.get(S)||[],N=E.some(R=>m.startsWith(R.open)),I=L.some(R=>m.startsWith(R.close));return!N&&I}static _findAutoClosingPairOpen(p,m,S,E){const L=p.autoClosingPairs.autoClosingPairsOpenByEnd.get(E);if(!L)return null;let N=null;for(const I of L)if(N===null||I.open.length>N.open.length){let R=!0;for(const F of S)if(m.getValueInRange(new h.Range(F.lineNumber,F.column-I.open.length+1,F.lineNumber,F.column))+E!==I.open){R=!1;break}R&&(N=I)}return N}static _findContainedAutoClosingPair(p,m){if(m.open.length<=1)return null;const S=m.close.charAt(m.close.length-1),E=p.autoClosingPairs.autoClosingPairsCloseByEnd.get(S)||[];let L=null;for(const N of E)N.open!==m.open&&m.open.includes(N.open)&&m.close.endsWith(N.close)&&(!L||N.open.length>L.open.length)&&(L=N);return L}static _getAutoClosingPairClose(p,m,S,E,L){const N=(0,b.isQuote)(E),I=N?p.autoClosingQuotes:p.autoClosingBrackets,R=N?p.shouldAutoCloseBefore.quote:p.shouldAutoCloseBefore.bracket;if(I==="never")return null;for(const A of S)if(!A.isEmpty())return null;const F=S.map(A=>{const B=A.getPosition();return L?{lineNumber:B.lineNumber,beforeColumn:B.column-E.length,afterColumn:B.column}:{lineNumber:B.lineNumber,beforeColumn:B.column,afterColumn:B.column}}),O=this._findAutoClosingPairOpen(p,m,F.map(A=>new u.Position(A.lineNumber,A.beforeColumn)),E);if(!O)return null;const x=this._findContainedAutoClosingPair(p,O),M=x?x.close:"";let P=!0;for(const A of F){const{lineNumber:B,beforeColumn:K,afterColumn:T}=A,ee=m.getLineContent(B),J=ee.substring(0,K-1),$=ee.substring(T-1);if($.startsWith(M)||(P=!1),$.length>0){const Z=$.charAt(0);if(!d._isBeforeClosingBrace(p,$)&&!R(Z))return null}if(O.open.length===1&&(E==="'"||E==='"')&&I!=="always"){const Z=(0,C.getMapForWordSeparators)(p.wordSeparators);if(J.length>0){const X=J.charCodeAt(J.length-1);if(Z.get(X)===0)return null}}if(!m.tokenization.isCheapToTokenize(B))return null;m.tokenization.forceTokenization(B);const j=m.tokenization.getLineTokens(B),G=(0,t.createScopedLineTokens)(j,K-1);if(!O.shouldAutoClose(G,K-G.firstCharOffset))return null;const te=O.findNeutralCharacter();if(te){const Z=m.tokenization.getTokenTypeIfInsertingCharacter(B,K,te);if(!O.isOK(Z))return null}}return P?O.close.substring(0,O.close.length-M.length):O.close}static _runAutoClosingOpenCharType(p,m,S,E,L,N,I){const R=[];for(let F=0,O=E.length;F<O;F++){const x=E[F];R[F]=new l(x,L,!N,I)}return new b.EditOperationResult(4,R,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}static _shouldSurroundChar(p,m){return(0,b.isQuote)(m)?p.autoSurround==="quotes"||p.autoSurround==="languageDefined":p.autoSurround==="brackets"||p.autoSurround==="languageDefined"}static _isSurroundSelectionType(p,m,S,E){if(!d._shouldSurroundChar(p,E)||!p.surroundingPairs.hasOwnProperty(E))return!1;const L=(0,b.isQuote)(E);for(const N of S){if(N.isEmpty())return!1;let I=!0;for(let R=N.startLineNumber;R<=N.endLineNumber;R++){const F=m.getLineContent(R),O=R===N.startLineNumber?N.startColumn-1:0,x=R===N.endLineNumber?N.endColumn-1:F.length,M=F.substring(O,x);if(/[^ \t]/.test(M)){I=!1;break}}if(I)return!1;if(L&&N.startLineNumber===N.endLineNumber&&N.startColumn+1===N.endColumn){const R=m.getValueInRange(N);if((0,b.isQuote)(R))return!1}}return!0}static _runSurroundSelectionType(p,m,S,E,L){const N=[];for(let I=0,R=E.length;I<R;I++){const F=E[I],O=m.surroundingPairs[L];N[I]=new w.SurroundSelectionCommand(F,L,O)}return new b.EditOperationResult(0,N,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _isTypeInterceptorElectricChar(p,m,S){return!!(S.length===1&&m.tokenization.isCheapToTokenize(S[0].getEndPosition().lineNumber))}static _typeInterceptorElectricChar(p,m,S,E,L){if(!m.electricChars.hasOwnProperty(L)||!E.isEmpty())return null;const N=E.getPosition();S.tokenization.forceTokenization(N.lineNumber);const I=S.tokenization.getLineTokens(N.lineNumber);let R;try{R=m.onElectricCharacter(L,I,N.column)}catch(F){return(0,y.onUnexpectedError)(F),null}if(!R)return null;if(R.matchOpenBracket){const F=(I.getLineContent()+L).lastIndexOf(R.matchOpenBracket)+1,O=S.bracketPairs.findMatchingBracketUp(R.matchOpenBracket,{lineNumber:N.lineNumber,column:F},500);if(O){if(O.startLineNumber===N.lineNumber)return null;const x=S.getLineContent(O.startLineNumber),M=v.getLeadingWhitespace(x),P=m.normalizeIndentation(M),A=S.getLineContent(N.lineNumber),B=S.getLineFirstNonWhitespaceColumn(N.lineNumber)||N.column,K=A.substring(B-1,N.column-1),T=P+K+L,ee=new h.Range(N.lineNumber,1,N.lineNumber,N.column),J=new k.ReplaceCommand(ee,T);return new b.EditOperationResult(r(T,p),[J],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!0})}}return null}static compositionEndWithInterceptors(p,m,S,E,L,N){if(!E)return null;let I=null;for(const x of E)if(I===null)I=x.insertedText;else if(I!==x.insertedText)return null;if(!I||I.length!==1)return null;const R=I;let F=!1;for(const x of E)if(x.deletedText.length!==0){F=!0;break}if(F){if(!d._shouldSurroundChar(m,R)||!m.surroundingPairs.hasOwnProperty(R))return null;const x=(0,b.isQuote)(R);for(const A of E)if(A.deletedSelectionStart!==0||A.deletedSelectionEnd!==A.deletedText.length||/^[ \t]+$/.test(A.deletedText)||x&&(0,b.isQuote)(A.deletedText))return null;const M=[];for(const A of L){if(!A.isEmpty())return null;M.push(A.getPosition())}if(M.length!==E.length)return null;const P=[];for(let A=0,B=M.length;A<B;A++)P.push(new w.CompositionSurroundSelectionCommand(M[A],E[A].deletedText,R));return new b.EditOperationResult(4,P,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoClosingOvertype(m,S,L,N,R)){const x=L.map(M=>new k.ReplaceCommand(new h.Range(M.positionLineNumber,M.positionColumn,M.positionLineNumber,M.positionColumn+1),"",!1));return new b.EditOperationResult(4,x,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}const O=this._getAutoClosingPairClose(m,S,L,R,!0);return O!==null?this._runAutoClosingOpenCharType(p,m,S,L,R,!0,O):null}static typeWithInterceptors(p,m,S,E,L,N,I){if(!p&&I===` `){const O=[];for(let x=0,M=L.length;x<M;x++)O[x]=d._enter(S,E,!1,L[x]);return new b.EditOperationResult(4,O,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(!p&&this._isAutoIndentType(S,E,L)){const O=[];let x=!1;for(let M=0,P=L.length;M<P;M++)if(O[M]=this._runAutoIndentType(S,E,L[M],I),!O[M]){x=!0;break}if(!x)return new b.EditOperationResult(4,O,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoClosingOvertype(S,E,L,N,I))return this._runAutoClosingOvertype(m,S,E,L,I);if(!p){const O=this._getAutoClosingPairClose(S,E,L,I,!1);if(O)return this._runAutoClosingOpenCharType(m,S,E,L,I,!1,O)}if(!p&&this._isSurroundSelectionType(S,E,L,I))return this._runSurroundSelectionType(m,S,E,L,I);if(!p&&this._isTypeInterceptorElectricChar(S,E,L)){const O=this._typeInterceptorElectricChar(m,S,E,L[0],I);if(O)return O}const R=[];for(let O=0,x=L.length;O<x;O++)R[O]=new k.ReplaceCommand(L[O],I);const F=r(I,m);return new b.EditOperationResult(F,R,{shouldPushStackElementBefore:c(m,F),shouldPushStackElementAfter:!1})}static typeWithoutInterceptors(p,m,S,E,L){const N=[];for(let R=0,F=E.length;R<F;R++)N[R]=new k.ReplaceCommand(E[R],L);const I=r(L,p);return new b.EditOperationResult(I,N,{shouldPushStackElementBefore:c(p,I),shouldPushStackElementAfter:!1})}static lineInsertBefore(p,m,S){if(m===null||S===null)return[];const E=[];for(let L=0,N=S.length;L<N;L++){let I=S[L].positionLineNumber;if(I===1)E[L]=new k.ReplaceCommandWithoutChangingPosition(new h.Range(1,1,1,1),` `);else{I--;const R=m.getLineMaxColumn(I);E[L]=this._enter(p,m,!1,new h.Range(I,R,I,R))}}return E}static lineInsertAfter(p,m,S){if(m===null||S===null)return[];const E=[];for(let L=0,N=S.length;L<N;L++){const I=S[L].positionLineNumber,R=m.getLineMaxColumn(I);E[L]=this._enter(p,m,!1,new h.Range(I,R,I,R))}return E}static lineBreakInsert(p,m,S){const E=[];for(let L=0,N=S.length;L<N;L++)E[L]=this._enter(p,m,!0,S[L]);return E}}e.TypeOperations=d;class l extends k.ReplaceCommandWithOffsetCursorState{constructor(p,m,S,E){super(p,(S?m:"")+E,0,-E.length),this._openCharacter=m,this._closeCharacter=E,this.closeCharacterRange=null,this.enclosingRange=null}computeCursorState(p,m){const S=m.getInverseEditOperations()[0].range;return this.closeCharacterRange=new h.Range(S.startLineNumber,S.endColumn-this._closeCharacter.length,S.endLineNumber,S.endColumn),this.enclosingRange=new h.Range(S.startLineNumber,S.endColumn-this._openCharacter.length-this._closeCharacter.length,S.endLineNumber,S.endColumn),super.computeCursorState(p,m)}}e.TypeWithAutoClosingCommand=l;class a{constructor(p,m,S,E,L,N){this.deletedText=p,this.deletedSelectionStart=m,this.deletedSelectionEnd=S,this.insertedText=E,this.insertedSelectionStart=L,this.insertedSelectionEnd=N}}e.CompositionOutcome=a;function r(_,p){return _===" "?p===5||p===6?6:5:4}function c(_,p){return f(_)&&!f(p)?!0:_===5?!1:g(_)!==g(p)}function g(_){return _===6||_===5?"space":_}function f(_){return _===4||_===5||_===6}}),define(oe[291],se([1,0,14,8,414,61,408,181,216,3,23,99,187,2,204]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CursorsController=void 0;class s extends t.Disposable{constructor(f,_,p,m){super(),this._model=f,this._knownModelVersionId=this._model.getVersionId(),this._viewModel=_,this._coordinatesConverter=p,this.context=new w.CursorContext(this._model,this._viewModel,this._coordinatesConverter,m),this._cursors=new k.CursorCollection(this.context),this._hasFocus=!1,this._isHandling=!1,this._compositionState=null,this._columnSelectData=null,this._autoClosedActions=[],this._prevEditOperationType=0}dispose(){this._cursors.dispose(),this._autoClosedActions=(0,t.dispose)(this._autoClosedActions),super.dispose()}updateConfiguration(f){this.context=new w.CursorContext(this._model,this._viewModel,this._coordinatesConverter,f),this._cursors.updateContext(this.context)}onLineMappingChanged(f){this._knownModelVersionId===this._model.getVersionId()&&this.setStates(f,"viewModel",0,this.getCursorStates())}setHasFocus(f){this._hasFocus=f}_validateAutoClosedActions(){if(this._autoClosedActions.length>0){const f=this._cursors.getSelections();for(let _=0;_<this._autoClosedActions.length;_++){const p=this._autoClosedActions[_];p.isValid(f)||(p.dispose(),this._autoClosedActions.splice(_,1),_--)}}}getPrimaryCursorState(){return this._cursors.getPrimaryCursor()}getLastAddedCursorIndex(){return this._cursors.getLastAddedCursorIndex()}getCursorStates(){return this._cursors.getAll()}setStates(f,_,p,m){let S=!1;m!==null&&m.length>s.MAX_CURSOR_COUNT&&(m=m.slice(0,s.MAX_CURSOR_COUNT),S=!0);const E=d.from(this._model,this);return this._cursors.setStates(m),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(f,_,p,E,S)}setCursorColumnSelectData(f){this._columnSelectData=f}revealPrimary(f,_,p,m,S,E){const L=this._cursors.getViewPositions();let N=null,I=null;L.length>1?I=this._cursors.getViewSelections():N=h.Range.fromPositions(L[0],L[0]),f.emitViewEvent(new i.ViewRevealRangeRequestEvent(_,p,N,I,m,S,E))}saveState(){const f=[],_=this._cursors.getSelections();for(let p=0,m=_.length;p<m;p++){const S=_[p];f.push({inSelectionMode:!S.isEmpty(),selectionStart:{lineNumber:S.selectionStartLineNumber,column:S.selectionStartColumn},position:{lineNumber:S.positionLineNumber,column:S.positionColumn}})}return f}restoreState(f,_){const p=[];for(let m=0,S=_.length;m<S;m++){const E=_[m];let L=1,N=1;E.position&&E.position.lineNumber&&(L=E.position.lineNumber),E.position&&E.position.column&&(N=E.position.column);let I=L,R=N;E.selectionStart&&E.selectionStart.lineNumber&&(I=E.selectionStart.lineNumber),E.selectionStart&&E.selectionStart.column&&(R=E.selectionStart.column),p.push({selectionStartLineNumber:I,selectionStartColumn:R,positionLineNumber:L,positionColumn:N})}this.setStates(f,"restoreState",0,D.CursorState.fromModelSelections(p)),this.revealPrimary(f,"restoreState",!1,0,!0,1)}onModelContentChanged(f,_){if(_ instanceof n.ModelInjectedTextChangedEvent){if(this._isHandling)return;this._isHandling=!0;try{this.setStates(f,"modelChange",0,this.getCursorStates())}finally{this._isHandling=!1}}else{const p=_.rawContentChangedEvent;if(this._knownModelVersionId=p.versionId,this._isHandling)return;const m=p.containsEvent(1);if(this._prevEditOperationType=0,m)this._cursors.dispose(),this._cursors=new k.CursorCollection(this.context),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(f,"model",1,null,!1);else if(this._hasFocus&&p.resultingSelection&&p.resultingSelection.length>0){const S=D.CursorState.fromModelSelections(p.resultingSelection);this.setStates(f,"modelChange",p.isUndoing?5:p.isRedoing?6:2,S)&&this.revealPrimary(f,"modelChange",!1,0,!0,0)}else{const S=this._cursors.readSelectionFromMarkers();this.setStates(f,"modelChange",2,D.CursorState.fromModelSelections(S))}}}getSelection(){return this._cursors.getPrimaryCursor().modelState.selection}getTopMostViewPosition(){return this._cursors.getTopMostViewPosition()}getBottomMostViewPosition(){return this._cursors.getBottomMostViewPosition()}getCursorColumnSelectData(){if(this._columnSelectData)return this._columnSelectData;const f=this._cursors.getPrimaryCursor(),_=f.viewState.selectionStart.getStartPosition(),p=f.viewState.position;return{isReal:!1,fromViewLineNumber:_.lineNumber,fromViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,_),toViewLineNumber:p.lineNumber,toViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,p)}}getSelections(){return this._cursors.getSelections()}setSelections(f,_,p,m){this.setStates(f,_,m,D.CursorState.fromModelSelections(p))}getPrevEditOperationType(){return this._prevEditOperationType}setPrevEditOperationType(f){this._prevEditOperationType=f}_pushAutoClosedAction(f,_){const p=[],m=[];for(let L=0,N=f.length;L<N;L++)p.push({range:f[L],options:{description:"auto-closed-character",inlineClassName:"auto-closed-character",stickiness:1}}),m.push({range:_[L],options:{description:"auto-closed-enclosing",stickiness:1}});const S=this._model.deltaDecorations([],p),E=this._model.deltaDecorations([],m);this._autoClosedActions.push(new l(this._model,S,E))}_executeEditOperation(f){if(!f)return;f.shouldPushStackElementBefore&&this._model.pushStackElement();const _=a.executeCommands(this._model,this._cursors.getSelections(),f.commands);if(_){this._interpretCommandResult(_);const p=[],m=[];for(let S=0;S<f.commands.length;S++){const E=f.commands[S];E instanceof C.TypeWithAutoClosingCommand&&E.enclosingRange&&E.closeCharacterRange&&(p.push(E.closeCharacterRange),m.push(E.enclosingRange))}p.length>0&&this._pushAutoClosedAction(p,m),this._prevEditOperationType=f.type}f.shouldPushStackElementAfter&&this._model.pushStackElement()}_interpretCommandResult(f){(!f||f.length===0)&&(f=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(f),this._cursors.normalize()}_emitStateChangedIfNecessary(f,_,p,m,S){const E=d.from(this._model,this);if(E.equals(m))return!1;const L=this._cursors.getSelections(),N=this._cursors.getViewSelections();if(f.emitViewEvent(new i.ViewCursorStateChangedEvent(N,L)),!m||m.cursorState.length!==E.cursorState.length||E.cursorState.some((I,R)=>!I.modelState.equals(m.cursorState[R].modelState))){const I=m?m.cursorState.map(F=>F.modelState.selection):null,R=m?m.modelVersionId:0;f.emitOutgoingEvent(new o.CursorStateChangedEvent(I,L,R,E.modelVersionId,_||"keyboard",p,S))}return!0}_findAutoClosingPairs(f){if(!f.length)return null;const _=[];for(let p=0,m=f.length;p<m;p++){const S=f[p];if(!S.text||S.text.indexOf(` `)>=0)return null;const E=S.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!E)return null;const L=E[1],N=this.context.cursorConfig.autoClosingPairs.autoClosingPairsCloseSingleChar.get(L);if(!N||N.length!==1)return null;const I=N[0].open,R=S.text.length-E[2].length-1,F=S.text.lastIndexOf(I,R-1);if(F===-1)return null;_.push([F,R])}return _}executeEdits(f,_,p,m){let S=null;_==="snippet"&&(S=this._findAutoClosingPairs(p)),S&&(p[0]._isTracked=!0);const E=[],L=[],N=this._model.pushEditOperations(this.getSelections(),p,I=>{if(S)for(let F=0,O=S.length;F<O;F++){const[x,M]=S[F],P=I[F],A=P.range.startLineNumber,B=P.range.startColumn-1+x,K=P.range.startColumn-1+M;E.push(new h.Range(A,K+1,A,K+2)),L.push(new h.Range(A,B+1,A,K+2))}const R=m(I);return R&&(this._isHandling=!0),R});N&&(this._isHandling=!1,this.setSelections(f,_,N,0)),E.length>0&&this._pushAutoClosedAction(E,L)}_executeEdit(f,_,p,m=0){if(this.context.cursorConfig.readOnly)return;const S=d.from(this._model,this);this._cursors.stopTrackingSelections(),this._isHandling=!0;try{this._cursors.ensureValidState(),f()}catch(E){(0,y.onUnexpectedError)(E)}this._isHandling=!1,this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(_,p,m,S,!1)&&this.revealPrimary(_,p,!1,0,!0,0)}getAutoClosedCharacters(){return l.getAllAutoClosedCharacters(this._autoClosedActions)}startComposition(f){this._compositionState=new c(this._model,this.getSelections())}endComposition(f,_){const p=this._compositionState?this._compositionState.deduceOutcome(this._model,this.getSelections()):null;this._compositionState=null,this._executeEdit(()=>{_==="keyboard"&&this._executeEditOperation(C.TypeOperations.compositionEndWithInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,p,this.getSelections(),this.getAutoClosedCharacters()))},f,_)}type(f,_,p){this._executeEdit(()=>{if(p==="keyboard"){const m=_.length;let S=0;for(;S<m;){const E=v.nextCharLength(_,S),L=_.substr(S,E);this._executeEditOperation(C.TypeOperations.typeWithInterceptors(!!this._compositionState,this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),this.getAutoClosedCharacters(),L)),S+=E}}else this._executeEditOperation(C.TypeOperations.typeWithoutInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),_))},f,p)}compositionType(f,_,p,m,S,E){if(_.length===0&&p===0&&m===0){if(S!==0){const L=this.getSelections().map(N=>{const I=N.getPosition();return new u.Selection(I.lineNumber,I.column+S,I.lineNumber,I.column+S)});this.setSelections(f,E,L,0)}return}this._executeEdit(()=>{this._executeEditOperation(C.TypeOperations.compositionType(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),_,p,m,S))},f,E)}paste(f,_,p,m,S){this._executeEdit(()=>{this._executeEditOperation(C.TypeOperations.paste(this.context.cursorConfig,this._model,this.getSelections(),_,p,m||[]))},f,S,4)}cut(f,_){this._executeEdit(()=>{this._executeEditOperation(b.DeleteOperations.cut(this.context.cursorConfig,this._model,this.getSelections()))},f,_)}executeCommand(f,_,p){this._executeEdit(()=>{this._cursors.killSecondaryCursors(),this._executeEditOperation(new D.EditOperationResult(0,[_],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},f,p)}executeCommands(f,_,p){this._executeEdit(()=>{this._executeEditOperation(new D.EditOperationResult(0,_,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},f,p)}}e.CursorsController=s,s.MAX_CURSOR_COUNT=1e4;class d{constructor(f,_){this.modelVersionId=f,this.cursorState=_}static from(f,_){return new d(f.getVersionId(),_.getCursorStates())}equals(f){if(!f||this.modelVersionId!==f.modelVersionId||this.cursorState.length!==f.cursorState.length)return!1;for(let _=0,p=this.cursorState.length;_<p;_++)if(!this.cursorState[_].equals(f.cursorState[_]))return!1;return!0}}class l{constructor(f,_,p){this._model=f,this._autoClosedCharactersDecorations=_,this._autoClosedEnclosingDecorations=p}static getAllAutoClosedCharacters(f){let _=[];for(const p of f)_=_.concat(p.getAutoClosedCharactersRanges());return _}dispose(){this._autoClosedCharactersDecorations=this._model.deltaDecorations(this._autoClosedCharactersDecorations,[]),this._autoClosedEnclosingDecorations=this._model.deltaDecorations(this._autoClosedEnclosingDecorations,[])}getAutoClosedCharactersRanges(){const f=[];for(let _=0;_<this._autoClosedCharactersDecorations.length;_++){const p=this._model.getDecorationRange(this._autoClosedCharactersDecorations[_]);p&&f.push(p)}return f}isValid(f){const _=[];for(let p=0;p<this._autoClosedEnclosingDecorations.length;p++){const m=this._model.getDecorationRange(this._autoClosedEnclosingDecorations[p]);if(m&&(_.push(m),m.startLineNumber!==m.endLineNumber))return!1}_.sort(h.Range.compareRangesUsingStarts),f.sort(h.Range.compareRangesUsingStarts);for(let p=0;p<f.length;p++)if(p>=_.length||!_[p].strictContainsRange(f[p]))return!1;return!0}}class a{static executeCommands(f,_,p){const m={model:f,selectionsBefore:_,trackedRanges:[],trackedRangesDirection:[]},S=this._innerExecuteCommands(m,p);for(let E=0,L=m.trackedRanges.length;E<L;E++)m.model._setTrackedRange(m.trackedRanges[E],null,0);return S}static _innerExecuteCommands(f,_){if(this._arrayIsEmpty(_))return null;const p=this._getEditOperations(f,_);if(p.operations.length===0)return null;const m=p.operations,S=this._getLoserCursorMap(m);if(S.hasOwnProperty("0"))return console.warn("Ignoring commands"),null;const E=[];for(let I=0,R=m.length;I<R;I++)S.hasOwnProperty(m[I].identifier.major.toString())||E.push(m[I]);p.hadTrackedEditOperation&&E.length>0&&(E[0]._isTracked=!0);let L=f.model.pushEditOperations(f.selectionsBefore,E,I=>{const R=[];for(let x=0;x<f.selectionsBefore.length;x++)R[x]=[];for(const x of I)!x.identifier||R[x.identifier.major].push(x);const F=(x,M)=>x.identifier.minor-M.identifier.minor,O=[];for(let x=0;x<f.selectionsBefore.length;x++)R[x].length>0?(R[x].sort(F),O[x]=_[x].computeCursorState(f.model,{getInverseEditOperations:()=>R[x],getTrackedSelection:M=>{const P=parseInt(M,10),A=f.model._getTrackedRange(f.trackedRanges[P]);return f.trackedRangesDirection[P]===0?new u.Selection(A.startLineNumber,A.startColumn,A.endLineNumber,A.endColumn):new u.Selection(A.endLineNumber,A.endColumn,A.startLineNumber,A.startColumn)}})):O[x]=f.selectionsBefore[x];return O});L||(L=f.selectionsBefore);const N=[];for(const I in S)S.hasOwnProperty(I)&&N.push(parseInt(I,10));N.sort((I,R)=>R-I);for(const I of N)L.splice(I,1);return L}static _arrayIsEmpty(f){for(let _=0,p=f.length;_<p;_++)if(f[_])return!1;return!0}static _getEditOperations(f,_){let p=[],m=!1;for(let S=0,E=_.length;S<E;S++){const L=_[S];if(L){const N=this._getEditOperationsFromCommand(f,S,L);p=p.concat(N.operations),m=m||N.hadTrackedEditOperation}}return{operations:p,hadTrackedEditOperation:m}}static _getEditOperationsFromCommand(f,_,p){const m=[];let S=0;const E=(I,R,F=!1)=>{h.Range.isEmpty(I)&&R===""||m.push({identifier:{major:_,minor:S++},range:I,text:R,forceMoveMarkers:F,isAutoWhitespaceEdit:p.insertsAutoWhitespace})};let L=!1;const N={addEditOperation:E,addTrackedEditOperation:(I,R,F)=>{L=!0,E(I,R,F)},trackSelection:(I,R)=>{const F=u.Selection.liftSelection(I);let O;if(F.isEmpty())if(typeof R=="boolean")R?O=2:O=3;else{const P=f.model.getLineMaxColumn(F.startLineNumber);F.startColumn===P?O=2:O=3}else O=1;const x=f.trackedRanges.length,M=f.model._setTrackedRange(null,F,O);return f.trackedRanges[x]=M,f.trackedRangesDirection[x]=F.getDirection(),x.toString()}};try{p.getEditOperations(f.model,N)}catch(I){return(0,y.onUnexpectedError)(I),{operations:[],hadTrackedEditOperation:!1}}return{operations:m,hadTrackedEditOperation:L}}static _getLoserCursorMap(f){f=f.slice(0),f.sort((p,m)=>-h.Range.compareRangesUsingEnds(p.range,m.range));const _={};for(let p=1;p<f.length;p++){const m=f[p-1],S=f[p];if(h.Range.getStartPosition(m.range).isBefore(h.Range.getEndPosition(S.range))){let E;m.identifier.major>S.identifier.major?E=m.identifier.major:E=S.identifier.major,_[E.toString()]=!0;for(let L=0;L<f.length;L++)f[L].identifier.major===E&&(f.splice(L,1),L<p&&p--,L--);p>0&&p--}}return _}}class r{constructor(f,_,p){this.text=f,this.startSelection=_,this.endSelection=p}}class c{constructor(f,_){this._original=c._capture(f,_)}static _capture(f,_){const p=[];for(const m of _){if(m.startLineNumber!==m.endLineNumber)return null;p.push(new r(f.getLineContent(m.startLineNumber),m.startColumn-1,m.endColumn-1))}return p}deduceOutcome(f,_){if(!this._original)return null;const p=c._capture(f,_);if(!p||this._original.length!==p.length)return null;const m=[];for(let S=0,E=this._original.length;S<E;S++)m.push(c._deduceOutcome(this._original[S],p[S]));return m}static _deduceOutcome(f,_){const p=Math.min(f.startSelection,_.startSelection,v.commonPrefixLength(f.text,_.text)),m=Math.min(f.text.length-f.endSelection,_.text.length-_.endSelection,v.commonSuffixLength(f.text,_.text)),S=f.text.substring(p,f.text.length-m),E=_.text.substring(p,_.text.length-m);return new C.CompositionOutcome(S,f.startSelection-p,f.endSelection-p,E,_.startSelection-p,_.endSelection-p)}}}),define(oe[651],se([1,0,52,43,72,280]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.cssEscape=e.getIconClasses=void 0;const w=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function b(u,n,i,t){const o=t===D.FileKind.ROOT_FOLDER?["rootfolder-icon"]:t===D.FileKind.FOLDER?["folder-icon"]:["file-icon"];if(i){let s;if(i.scheme===y.Schemas.data)s=v.DataUri.parseMetaData(i).get(v.DataUri.META_DATA_LABEL);else{const d=i.path.match(w);d?(s=h(d[2].toLowerCase()),d[1]&&o.push(`${h(d[1].toLowerCase())}-name-dir-icon`)):s=h(i.authority.toLowerCase())}if(t===D.FileKind.FOLDER)o.push(`${s}-name-folder-icon`);else{if(s){if(o.push(`${s}-name-file-icon`),o.push("name-file-icon"),s.length<=255){const l=s.split(".");for(let a=1;a<l.length;a++)o.push(`${l.slice(a).join(".")}-ext-file-icon`)}o.push("ext-file-icon")}const d=C(u,n,i);d&&o.push(`${h(d)}-lang-file-icon`)}}return o}e.getIconClasses=b;function C(u,n,i){if(!i)return null;let t=null;if(i.scheme===y.Schemas.data){const o=v.DataUri.parseMetaData(i).get(v.DataUri.META_DATA_MIME);o&&(t=n.getLanguageIdByMimeType(o))}else{const o=u.getModel(i);o&&(t=o.getLanguageId())}return t&&t!==k.PLAINTEXT_LANGUAGE_ID?t:n.guessLanguageIdByFilepathOrFirstLine(i)}function h(u){return u.replace(/[\11\12\14\15\40]/g,"/")}e.cssEscape=h}),define(oe[652],se([1,0,253,97,52,90,43,8,72]),function(q,e,y,v,k,D,w,b,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLanguageIds=e.clearPlatformLanguageAssociations=e.registerPlatformLanguageAssociation=void 0;let h=[],u=[],n=[];function i(c,g=!1){t(c,!1,g)}e.registerPlatformLanguageAssociation=i;function t(c,g,f){const _=o(c,g);h.push(_),_.userConfigured?n.push(_):u.push(_),f&&!_.userConfigured&&h.forEach(p=>{p.mime===_.mime||p.userConfigured||(_.extension&&p.extension===_.extension&&console.warn(`Overwriting extension <<${_.extension}>> to now point to mime <<${_.mime}>>`),_.filename&&p.filename===_.filename&&console.warn(`Overwriting filename <<${_.filename}>> to now point to mime <<${_.mime}>>`),_.filepattern&&p.filepattern===_.filepattern&&console.warn(`Overwriting filepattern <<${_.filepattern}>> to now point to mime <<${_.mime}>>`),_.firstline&&p.firstline===_.firstline&&console.warn(`Overwriting firstline <<${_.firstline}>> to now point to mime <<${_.mime}>>`))})}function o(c,g){return{id:c.id,mime:c.mime,filename:c.filename,extension:c.extension,filepattern:c.filepattern,firstline:c.firstline,userConfigured:g,filenameLowercase:c.filename?c.filename.toLowerCase():void 0,extensionLowercase:c.extension?c.extension.toLowerCase():void 0,filepatternLowercase:c.filepattern?(0,y.parse)(c.filepattern.toLowerCase()):void 0,filepatternOnPath:c.filepattern?c.filepattern.indexOf(D.posix.sep)>=0:!1}}function s(){h=h.filter(c=>c.userConfigured),u=[]}e.clearPlatformLanguageAssociations=s;function d(c,g){return l(c,g).map(f=>f.id)}e.getLanguageIds=d;function l(c,g){let f;if(c)switch(c.scheme){case k.Schemas.file:f=c.fsPath;break;case k.Schemas.data:{f=w.DataUri.parseMetaData(c).get(w.DataUri.META_DATA_LABEL);break}case k.Schemas.vscodeNotebookCell:f=void 0;break;default:f=c.path}if(!f)return[{id:"unknown",mime:v.Mimes.unknown}];f=f.toLowerCase();const _=(0,D.basename)(f),p=a(f,_,n);if(p)return[p,{id:C.PLAINTEXT_LANGUAGE_ID,mime:v.Mimes.text}];const m=a(f,_,u);if(m)return[m,{id:C.PLAINTEXT_LANGUAGE_ID,mime:v.Mimes.text}];if(g){const S=r(g);if(S)return[S,{id:C.PLAINTEXT_LANGUAGE_ID,mime:v.Mimes.text}]}return[{id:"unknown",mime:v.Mimes.unknown}]}function a(c,g,f){var _;let p,m,S;for(let E=f.length-1;E>=0;E--){const L=f[E];if(g===L.filenameLowercase){p=L;break}if(L.filepattern&&(!m||L.filepattern.length>m.filepattern.length)){const N=L.filepatternOnPath?c:g;!((_=L.filepatternLowercase)===null||_===void 0)&&_.call(L,N)&&(m=L)}L.extension&&(!S||L.extension.length>S.extension.length)&&g.endsWith(L.extensionLowercase)&&(S=L)}if(p)return p;if(m)return m;if(S)return S}function r(c){if((0,b.startsWithUTF8BOM)(c)&&(c=c.substr(1)),c.length>0)for(let g=h.length-1;g>=0;g--){const f=h[g];if(!f.firstline)continue;const _=c.match(f.firstline);if(_&&_.length>0)return f}}}),define(oe[653],se([1,0,14,6,2,8,652,72,94,34]),function(q,e,y,v,k,D,w,b,C,h){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LanguagesRegistry=e.LanguageIdCodec=void 0;const u=Object.prototype.hasOwnProperty,n="vs.editor.nullLanguage";class i{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(n,0),this._register(b.PLAINTEXT_LANGUAGE_ID,1),this._nextLanguageId=2}_register(s,d){this._languageIdToLanguage[d]=s,this._languageToLanguageId.set(s,d)}register(s){if(this._languageToLanguageId.has(s))return;const d=this._nextLanguageId++;this._register(s,d)}encodeLanguageId(s){return this._languageToLanguageId.get(s)||0}decodeLanguageId(s){return this._languageIdToLanguage[s]||n}}e.LanguageIdCodec=i;class t extends k.Disposable{constructor(s=!0,d=!1){super(),this._onDidChange=this._register(new v.Emitter),this.onDidChange=this._onDidChange.event,t.instanceCount++,this._warnOnOverwrite=d,this.languageIdCodec=new i,this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},s&&(this._initializeFromRegistry(),this._register(b.ModesRegistry.onDidChangeLanguages(l=>{this._initializeFromRegistry()})))}dispose(){t.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},(0,w.clearPlatformLanguageAssociations)();const s=[].concat(b.ModesRegistry.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(s)}_registerLanguages(s){for(const d of s)this._registerLanguage(d);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach(d=>{const l=this._languages[d];l.name&&(this._nameMap[l.name]=l.identifier),l.aliases.forEach(a=>{this._lowercaseNameMap[a.toLowerCase()]=l.identifier}),l.mimetypes.forEach(a=>{this._mimeTypesMap[a]=l.identifier})}),h.Registry.as(C.Extensions.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}_registerLanguage(s){const d=s.id;let l;u.call(this._languages,d)?l=this._languages[d]:(this.languageIdCodec.register(d),l={identifier:d,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[d]=l),this._mergeLanguage(l,s)}_mergeLanguage(s,d){const l=d.id;let a=null;if(Array.isArray(d.mimetypes)&&d.mimetypes.length>0&&(s.mimetypes.push(...d.mimetypes),a=d.mimetypes[0]),a||(a=`text/x-${l}`,s.mimetypes.push(a)),Array.isArray(d.extensions)){d.configuration?s.extensions=d.extensions.concat(s.extensions):s.extensions=s.extensions.concat(d.extensions);for(const g of d.extensions)(0,w.registerPlatformLanguageAssociation)({id:l,mime:a,extension:g},this._warnOnOverwrite)}if(Array.isArray(d.filenames))for(const g of d.filenames)(0,w.registerPlatformLanguageAssociation)({id:l,mime:a,filename:g},this._warnOnOverwrite),s.filenames.push(g);if(Array.isArray(d.filenamePatterns))for(const g of d.filenamePatterns)(0,w.registerPlatformLanguageAssociation)({id:l,mime:a,filepattern:g},this._warnOnOverwrite);if(typeof d.firstLine=="string"&&d.firstLine.length>0){let g=d.firstLine;g.charAt(0)!=="^"&&(g="^"+g);try{const f=new RegExp(g);(0,D.regExpLeadsToEndlessLoop)(f)||(0,w.registerPlatformLanguageAssociation)({id:l,mime:a,firstline:f},this._warnOnOverwrite)}catch(f){(0,y.onUnexpectedError)(f)}}s.aliases.push(l);let r=null;if(typeof d.aliases<"u"&&Array.isArray(d.aliases)&&(d.aliases.length===0?r=[null]:r=d.aliases),r!==null)for(const g of r)!g||g.length===0||s.aliases.push(g);const c=r!==null&&r.length>0;if(!(c&&r[0]===null)){const g=(c?r[0]:null)||l;(c||!s.name)&&(s.name=g)}d.configuration&&s.configurationFiles.push(d.configuration),d.icon&&s.icons.push(d.icon)}isRegisteredLanguageId(s){return s?u.call(this._languages,s):!1}getRegisteredLanguageIds(){return Object.keys(this._languages)}getLanguageIdByLanguageName(s){const d=s.toLowerCase();return u.call(this._lowercaseNameMap,d)?this._lowercaseNameMap[d]:null}getLanguageIdByMimeType(s){return s&&u.call(this._mimeTypesMap,s)?this._mimeTypesMap[s]:null}guessLanguageIdByFilepathOrFirstLine(s,d){return!s&&!d?[]:(0,w.getLanguageIds)(s,d)}}e.LanguagesRegistry=t,t.instanceCount=0}),define(oe[654],se([1,0,6,2,653,18,28,72]),function(q,e,y,v,k,D,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LanguageService=void 0;class C extends v.Disposable{constructor(n=!1){super(),this._onDidEncounterLanguage=this._register(new y.Emitter),this.onDidEncounterLanguage=this._onDidEncounterLanguage.event,this._onDidChange=this._register(new y.Emitter({leakWarningThreshold:200})),this.onDidChange=this._onDidChange.event,C.instanceCount++,this._encounteredLanguages=new Set,this._registry=this._register(new k.LanguagesRegistry(!0,n)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange(()=>this._onDidChange.fire()))}dispose(){C.instanceCount--,super.dispose()}isRegisteredLanguageId(n){return this._registry.isRegisteredLanguageId(n)}getLanguageIdByLanguageName(n){return this._registry.getLanguageIdByLanguageName(n)}getLanguageIdByMimeType(n){return this._registry.getLanguageIdByMimeType(n)}guessLanguageIdByFilepathOrFirstLine(n,i){const t=this._registry.guessLanguageIdByFilepathOrFirstLine(n,i);return(0,D.firstOrDefault)(t,null)}createById(n){return new h(this.onDidChange,()=>this._createAndGetLanguageIdentifier(n))}createByFilepathOrFirstLine(n,i){return new h(this.onDidChange,()=>{const t=this.guessLanguageIdByFilepathOrFirstLine(n,i);return this._createAndGetLanguageIdentifier(t)})}_createAndGetLanguageIdentifier(n){return(!n||!this.isRegisteredLanguageId(n))&&(n=b.PLAINTEXT_LANGUAGE_ID),this._encounteredLanguages.has(n)||(this._encounteredLanguages.add(n),w.TokenizationRegistry.getOrCreate(n),this._onDidEncounterLanguage.fire(n)),n}}e.LanguageService=C,C.instanceCount=0;class h{constructor(n,i){this._onDidChangeLanguages=n,this._selector=i,this._listener=null,this._emitter=null,this.languageId=this._selector()}_dispose(){this._listener&&(this._listener.dispose(),this._listener=null),this._emitter&&(this._emitter.dispose(),this._emitter=null)}get onDidChange(){return this._listener||(this._listener=this._onDidChangeLanguages(()=>this._evaluate())),this._emitter||(this._emitter=new y.Emitter({onLastListenerRemove:()=>{this._dispose()}})),this._emitter.event}_evaluate(){var n;const i=this._selector();i!==this.languageId&&(this.languageId=i,(n=this._emitter)===null||n===void 0||n.fire(this.languageId))}}}),define(oe[655],se([1,0,212,545,94,34]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),D.Registry.as(k.Extensions.Configuration).registerConfiguration(Object.assign(Object.assign({},y.editorConfigurationBaseNode),{properties:{"editor.experimental.useCustomCodeActionMenu":{type:"boolean",tags:["experimental"],scope:5,description:v.localize(0,null),default:!1}}}))}),define(oe[656],se([1,0,8,215,3,23,98,32,248,213,214]),function(q,e,y,v,k,D,w,b,C,h,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MoveLinesCommand=void 0;let n=class{constructor(i,t,o,s){this._languageConfigurationService=s,this._selection=i,this._isMovingDown=t,this._autoIndent=o,this._selectionId=null,this._moveEndLineSelectionShrink=!1}getEditOperations(i,t){const o=i.getLineCount();if(this._isMovingDown&&this._selection.endLineNumber===o){this._selectionId=t.trackSelection(this._selection);return}if(!this._isMovingDown&&this._selection.startLineNumber===1){this._selectionId=t.trackSelection(this._selection);return}this._moveEndPositionDown=!1;let s=this._selection;s.startLineNumber<s.endLineNumber&&s.endColumn===1&&(this._moveEndPositionDown=!0,s=s.setEndPosition(s.endLineNumber-1,i.getLineMaxColumn(s.endLineNumber-1)));const{tabSize:d,indentSize:l,insertSpaces:a}=i.getOptions(),r=this.buildIndentConverter(d,l,a),c={tokenization:{getLineTokens:g=>i.tokenization.getLineTokens(g),getLanguageId:()=>i.getLanguageId(),getLanguageIdAtPosition:(g,f)=>i.getLanguageIdAtPosition(g,f)},getLineContent:null};if(s.startLineNumber===s.endLineNumber&&i.getLineMaxColumn(s.startLineNumber)===1){const g=s.startLineNumber,f=this._isMovingDown?g+1:g-1;i.getLineMaxColumn(f)===1?t.addEditOperation(new k.Range(1,1,1,1),null):(t.addEditOperation(new k.Range(g,1,g,1),i.getLineContent(f)),t.addEditOperation(new k.Range(f,1,f,i.getLineMaxColumn(f)),null)),s=new D.Selection(f,1,f,1)}else{let g,f;if(this._isMovingDown){g=s.endLineNumber+1,f=i.getLineContent(g),t.addEditOperation(new k.Range(g-1,i.getLineMaxColumn(g-1),g,i.getLineMaxColumn(g)),null);let _=f;if(this.shouldAutoIndent(i,s)){const p=this.matchEnterRule(i,r,d,g,s.startLineNumber-1);if(p!==null){const S=y.getLeadingWhitespace(i.getLineContent(g)),E=p+C.getSpaceCnt(S,d);_=C.generateIndent(E,d,a)+this.trimLeft(f)}else{c.getLineContent=E=>E===s.startLineNumber?i.getLineContent(g):i.getLineContent(E);const S=(0,h.getGoodIndentForLine)(this._autoIndent,c,i.getLanguageIdAtPosition(g,1),s.startLineNumber,r,this._languageConfigurationService);if(S!==null){const E=y.getLeadingWhitespace(i.getLineContent(g)),L=C.getSpaceCnt(S,d),N=C.getSpaceCnt(E,d);L!==N&&(_=C.generateIndent(L,d,a)+this.trimLeft(f))}}t.addEditOperation(new k.Range(s.startLineNumber,1,s.startLineNumber,1),_+` `);const m=this.matchEnterRuleMovingDown(i,r,d,s.startLineNumber,g,_);if(m!==null)m!==0&&this.getIndentEditsOfMovingBlock(i,t,s,d,a,m);else{c.getLineContent=E=>E===s.startLineNumber?_:E>=s.startLineNumber+1&&E<=s.endLineNumber+1?i.getLineContent(E-1):i.getLineContent(E);const S=(0,h.getGoodIndentForLine)(this._autoIndent,c,i.getLanguageIdAtPosition(g,1),s.startLineNumber+1,r,this._languageConfigurationService);if(S!==null){const E=y.getLeadingWhitespace(i.getLineContent(s.startLineNumber)),L=C.getSpaceCnt(S,d),N=C.getSpaceCnt(E,d);if(L!==N){const I=L-N;this.getIndentEditsOfMovingBlock(i,t,s,d,a,I)}}}}else t.addEditOperation(new k.Range(s.startLineNumber,1,s.startLineNumber,1),_+` `)}else if(g=s.startLineNumber-1,f=i.getLineContent(g),t.addEditOperation(new k.Range(g,1,g+1,1),null),t.addEditOperation(new k.Range(s.endLineNumber,i.getLineMaxColumn(s.endLineNumber),s.endLineNumber,i.getLineMaxColumn(s.endLineNumber)),` `+f),this.shouldAutoIndent(i,s)){c.getLineContent=p=>p===g?i.getLineContent(s.startLineNumber):i.getLineContent(p);const _=this.matchEnterRule(i,r,d,s.startLineNumber,s.startLineNumber-2);if(_!==null)_!==0&&this.getIndentEditsOfMovingBlock(i,t,s,d,a,_);else{const p=(0,h.getGoodIndentForLine)(this._autoIndent,c,i.getLanguageIdAtPosition(s.startLineNumber,1),g,r,this._languageConfigurationService);if(p!==null){const m=y.getLeadingWhitespace(i.getLineContent(s.startLineNumber)),S=C.getSpaceCnt(p,d),E=C.getSpaceCnt(m,d);if(S!==E){const L=S-E;this.getIndentEditsOfMovingBlock(i,t,s,d,a,L)}}}}}this._selectionId=t.trackSelection(s)}buildIndentConverter(i,t,o){return{shiftIndent:s=>v.ShiftCommand.shiftIndent(s,s.length+1,i,t,o),unshiftIndent:s=>v.ShiftCommand.unshiftIndent(s,s.length+1,i,t,o)}}parseEnterResult(i,t,o,s,d){if(d){let l=d.indentation;d.indentAction===w.IndentAction.None||d.indentAction===w.IndentAction.Indent?l=d.indentation+d.appendText:d.indentAction===w.IndentAction.IndentOutdent?l=d.indentation:d.indentAction===w.IndentAction.Outdent&&(l=t.unshiftIndent(d.indentation)+d.appendText);const a=i.getLineContent(s);if(this.trimLeft(a).indexOf(this.trimLeft(l))>=0){const r=y.getLeadingWhitespace(i.getLineContent(s));let c=y.getLeadingWhitespace(l);const g=(0,h.getIndentMetadata)(i,s,this._languageConfigurationService);g!==null&&g&2&&(c=t.unshiftIndent(c));const f=C.getSpaceCnt(c,o),_=C.getSpaceCnt(r,o);return f-_}}return null}matchEnterRuleMovingDown(i,t,o,s,d,l){if(y.lastNonWhitespaceIndex(l)>=0){const a=i.getLineMaxColumn(d),r=(0,u.getEnterAction)(this._autoIndent,i,new k.Range(d,a,d,a),this._languageConfigurationService);return this.parseEnterResult(i,t,o,s,r)}else{let a=s-1;for(;a>=1;){const g=i.getLineContent(a);if(y.lastNonWhitespaceIndex(g)>=0)break;a--}if(a<1||s>i.getLineCount())return null;const r=i.getLineMaxColumn(a),c=(0,u.getEnterAction)(this._autoIndent,i,new k.Range(a,r,a,r),this._languageConfigurationService);return this.parseEnterResult(i,t,o,s,c)}}matchEnterRule(i,t,o,s,d,l){let a=d;for(;a>=1;){let g;if(a===d&&l!==void 0?g=l:g=i.getLineContent(a),y.lastNonWhitespaceIndex(g)>=0)break;a--}if(a<1||s>i.getLineCount())return null;const r=i.getLineMaxColumn(a),c=(0,u.getEnterAction)(this._autoIndent,i,new k.Range(a,r,a,r),this._languageConfigurationService);return this.parseEnterResult(i,t,o,s,c)}trimLeft(i){return i.replace(/^\s+/,"")}shouldAutoIndent(i,t){if(this._autoIndent<4||!i.tokenization.isCheapToTokenize(t.startLineNumber))return!1;const o=i.getLanguageIdAtPosition(t.startLineNumber,1),s=i.getLanguageIdAtPosition(t.endLineNumber,1);return!(o!==s||this._languageConfigurationService.getLanguageConfiguration(o).indentRulesSupport===null)}getIndentEditsOfMovingBlock(i,t,o,s,d,l){for(let a=o.startLineNumber;a<=o.endLineNumber;a++){const r=i.getLineContent(a),c=y.getLeadingWhitespace(r),g=C.getSpaceCnt(c,s)+l,f=C.generateIndent(g,s,d);f!==c&&(t.addEditOperation(new k.Range(a,1,a,c.length+1),f),a===o.endLineNumber&&o.endColumn<=c.length+1&&f===""&&(this._moveEndLineSelectionShrink=!0))}}computeCursorState(i,t){let o=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(o=o.setEndPosition(o.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&o.startLineNumber<o.endLineNumber&&(o=o.setEndPosition(o.endLineNumber,2)),o}};n=Ie([pe(3,b.ILanguageConfigurationService)],n),e.MoveLinesCommand=n}),define(oe[117],se([1,0,496,45,37,14,272,6,2,65,72]),function(q,e,y,v,k,D,w,b,C,h,u){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.MarkdownRenderer=void 0;let i=class Vi{constructor(o,s,d){this._options=o,this._languageService=s,this._openerService=d,this._onDidRenderAsync=new b.Emitter,this.onDidRenderAsync=this._onDidRenderAsync.event}dispose(){this._onDidRenderAsync.dispose()}render(o,s,d){if(!o)return{element:document.createElement("span"),dispose:()=>{}};const l=new C.DisposableStore;return{element:l.add((0,y.renderMarkdown)(o,Object.assign(Object.assign({},this._getRenderOptions(o,l)),s),d)).element,dispose:()=>l.dispose()}}_getRenderOptions(o,s){return{codeBlockRenderer:(d,l)=>be(this,void 0,void 0,function*(){var a,r,c;let g;d?g=this._languageService.getLanguageIdByLanguageName(d):this._options.editor&&(g=(a=this._options.editor.getModel())===null||a===void 0?void 0:a.getLanguageId()),g||(g=u.PLAINTEXT_LANGUAGE_ID);const f=yield(0,w.tokenizeToString)(this._languageService,l,g),_=document.createElement("span");if(_.innerHTML=(c=(r=Vi._ttpTokenizer)===null||r===void 0?void 0:r.createHTML(f))!==null&&c!==void 0?c:f,this._options.editor){const p=this._options.editor.getOption(46);(0,h.applyFontInfo)(_,p)}else this._options.codeBlockFontFamily&&(_.style.fontFamily=this._options.codeBlockFontFamily);return this._options.codeBlockFontSize!==void 0&&(_.style.fontSize=this._options.codeBlockFontSize),_}),asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:d=>this._openerService.open(d,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:o.isTrusted}).catch(D.onUnexpectedError),disposables:s}}}};i._ttpTokenizer=(n=window.trustedTypes)===null||n===void 0?void 0:n.createPolicy("tokenizeToString",{createHTML(t){return t}}),i=Ie([pe(1,k.ILanguageService),pe(2,v.IOpenerService)],i),e.MarkdownRenderer=i}),define(oe[657],se([1,0,7,18,64,2,117,275,45,260]),function(q,e,y,v,k,D,w,b,C,h){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MarginHoverWidget=void 0;const u=y.$;class n extends D.Disposable{constructor(o,s,d=C.NullOpenerService){super(),this._renderDisposeables=this._register(new D.DisposableStore),this._editor=o,this._isVisible=!1,this._messages=[],this._hover=this._register(new h.HoverWidget),this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._markdownRenderer=this._register(new w.MarkdownRenderer({editor:this._editor},s,d)),this._computer=new i(this._editor),this._hoverOperation=this._register(new b.HoverOperation(this._editor,this._computer)),this._register(this._hoverOperation.onResult(l=>{this._withResult(l.value)})),this._register(this._editor.onDidChangeModelDecorations(()=>this._onModelDecorationsChanged())),this._register(this._editor.onDidChangeConfiguration(l=>{l.hasChanged(46)&&this._updateFont()})),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return n.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){return null}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(o=>this._editor.applyFontInfo(o))}_onModelDecorationsChanged(){this._isVisible&&(this._hoverOperation.cancel(),this._hoverOperation.start(0))}startShowingAt(o){this._computer.lineNumber!==o&&(this._hoverOperation.cancel(),this.hide(),this._computer.lineNumber=o,this._hoverOperation.start(0))}hide(){this._computer.lineNumber=-1,this._hoverOperation.cancel(),this._isVisible&&(this._isVisible=!1,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible))}_withResult(o){this._messages=o,this._messages.length>0?this._renderMessages(this._computer.lineNumber,this._messages):this.hide()}_renderMessages(o,s){this._renderDisposeables.clear();const d=document.createDocumentFragment();for(const l of s){const a=u("div.hover-row.markdown-hover"),r=y.append(a,u("div.hover-contents")),c=this._renderDisposeables.add(this._markdownRenderer.render(l.value));r.appendChild(c.element),d.appendChild(a)}this._updateContents(d),this._showAt(o)}_updateContents(o){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(o),this._updateFont()}_showAt(o){this._isVisible||(this._isVisible=!0,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible));const s=this._editor.getLayoutInfo(),d=this._editor.getTopForLineNumber(o),l=this._editor.getScrollTop(),a=this._editor.getOption(61),r=this._hover.containerDomNode.clientHeight,c=d-l-(r-a)/2;this._hover.containerDomNode.style.left=`${s.glyphMarginLeft+s.glyphMarginWidth}px`,this._hover.containerDomNode.style.top=`${Math.max(Math.round(c),0)}px`}}e.MarginHoverWidget=n,n.ID="editor.contrib.modesGlyphHoverWidget";class i{constructor(o){this._editor=o,this._lineNumber=-1}get lineNumber(){return this._lineNumber}set lineNumber(o){this._lineNumber=o}computeSync(){const o=l=>({value:l}),s=this._editor.getLineDecorations(this._lineNumber),d=[];if(!s)return d;for(const l of s){if(!l.options.glyphMarginClassName)continue;const a=l.options.glyphMarginHoverMessage;!a||(0,k.isEmptyMarkdownString)(a)||d.push(...(0,v.asArray)(a).map(o))}return d}}}),define(oe[292],se([1,0,7,75,27,6,64,2,117,258,599,9]),function(q,e,y,v,k,D,w,b,C,h,u,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SuggestDetailsOverlay=e.SuggestDetailsWidget=e.canExpandCompletionItem=void 0;function i(s){return!!s&&!!(s.completion.documentation||s.completion.detail&&s.completion.detail!==s.completion.label)}e.canExpandCompletionItem=i;let t=class{constructor(s,d){this._editor=s,this._onDidClose=new D.Emitter,this.onDidClose=this._onDidClose.event,this._onDidChangeContents=new D.Emitter,this.onDidChangeContents=this._onDidChangeContents.event,this._disposables=new b.DisposableStore,this._renderDisposeable=new b.DisposableStore,this._borderWidth=1,this._size=new y.Dimension(330,0),this.domNode=y.$(".suggest-details"),this.domNode.classList.add("no-docs"),this._markdownRenderer=d.createInstance(C.MarkdownRenderer,{editor:s}),this._body=y.$(".body"),this._scrollbar=new v.DomScrollableElement(this._body,{alwaysConsumeMouseWheel:!0}),y.append(this.domNode,this._scrollbar.getDomNode()),this._disposables.add(this._scrollbar),this._header=y.append(this._body,y.$(".header")),this._close=y.append(this._header,y.$("span"+k.Codicon.close.cssSelector)),this._close.title=u.localize(0,null),this._type=y.append(this._header,y.$("p.type")),this._docs=y.append(this._body,y.$("p.docs")),this._configureFont(),this._disposables.add(this._editor.onDidChangeConfiguration(l=>{l.hasChanged(46)&&this._configureFont()}))}dispose(){this._disposables.dispose(),this._renderDisposeable.dispose()}_configureFont(){const s=this._editor.getOptions(),d=s.get(46),l=d.getMassagedFontFamily(),a=s.get(109)||d.fontSize,r=s.get(110)||d.lineHeight,c=d.fontWeight,g=`${a}px`,f=`${r}px`;this.domNode.style.fontSize=g,this.domNode.style.lineHeight=`${r/a}`,this.domNode.style.fontWeight=c,this.domNode.style.fontFeatureSettings=d.fontFeatureSettings,this._type.style.fontFamily=l,this._close.style.height=f,this._close.style.width=f}getLayoutInfo(){const s=this._editor.getOption(110)||this._editor.getOption(46).lineHeight,d=this._borderWidth,l=d*2;return{lineHeight:s,borderWidth:d,borderHeight:l,verticalPadding:22,horizontalPadding:14}}renderLoading(){this._type.textContent=u.localize(1,null),this._docs.textContent="",this.domNode.classList.remove("no-docs","no-type"),this.layout(this.size.width,this.getLayoutInfo().lineHeight*2),this._onDidChangeContents.fire(this)}renderItem(s,d){var l,a;this._renderDisposeable.clear();let{detail:r,documentation:c}=s.completion;if(d){let g="";g+=`score: ${s.score[0]} `,g+=`prefix: ${(l=s.word)!==null&&l!==void 0?l:"(no prefix)"} `,g+=`word: ${s.completion.filterText?s.completion.filterText+" (filterText)":s.textLabel} `,g+=`distance: ${s.distance} (localityBonus-setting) `,g+=`index: ${s.idx}, based on ${s.completion.sortText&&`sortText: "${s.completion.sortText}"`||"label"} `,g+=`commit_chars: ${(a=s.completion.commitCharacters)===null||a===void 0?void 0:a.join("")} `,c=new w.MarkdownString().appendCodeblock("empty",g),r=`Provider: ${s.provider._debugDisplayName}`}if(!d&&!i(s)){this.clearContents();return}if(this.domNode.classList.remove("no-docs","no-type"),r){const g=r.length>1e5?`${r.substr(0,1e5)}\u2026`:r;this._type.textContent=g,this._type.title=g,y.show(this._type),this._type.classList.toggle("auto-wrap",!/\r?\n^\s+/gmi.test(g))}else y.clearNode(this._type),this._type.title="",y.hide(this._type),this.domNode.classList.add("no-type");if(y.clearNode(this._docs),typeof c=="string")this._docs.classList.remove("markdown-docs"),this._docs.textContent=c;else if(c){this._docs.classList.add("markdown-docs"),y.clearNode(this._docs);const g=this._markdownRenderer.render(c);this._docs.appendChild(g.element),this._renderDisposeable.add(g),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=g=>{g.preventDefault(),g.stopPropagation()},this._close.onclick=g=>{g.preventDefault(),g.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 size(){return this._size}layout(s,d){const l=new y.Dimension(s,d);y.Dimension.equals(l,this._size)||(this._size=l,y.size(this.domNode,s,d)),this._scrollbar.scanDomNode()}scrollDown(s=8){this._body.scrollTop+=s}scrollUp(s=8){this._body.scrollTop-=s}scrollTop(){this._body.scrollTop=0}scrollBottom(){this._body.scrollTop=this._body.scrollHeight}pageDown(){this.scrollDown(80)}pageUp(){this.scrollUp(80)}set borderWidth(s){this._borderWidth=s}get borderWidth(){return this._borderWidth}};t=Ie([pe(1,n.IInstantiationService)],t),e.SuggestDetailsWidget=t;class o{constructor(d,l){this.widget=d,this._editor=l,this._disposables=new b.DisposableStore,this._added=!1,this._preferAlignAtTop=!0,this._resizable=new h.ResizableHTMLElement,this._resizable.domNode.classList.add("suggest-details-container"),this._resizable.domNode.appendChild(d.domNode),this._resizable.enableSashes(!1,!0,!0,!1);let a,r,c=0,g=0;this._disposables.add(this._resizable.onDidWillResize(()=>{a=this._topLeft,r=this._resizable.size})),this._disposables.add(this._resizable.onDidResize(f=>{if(a&&r){this.widget.layout(f.dimension.width,f.dimension.height);let _=!1;f.west&&(g=r.width-f.dimension.width,_=!0),f.north&&(c=r.height-f.dimension.height,_=!0),_&&this._applyTopLeft({top:a.top+c,left:a.left+g})}f.done&&(a=void 0,r=void 0,c=0,g=0,this._userSize=f.dimension)})),this._disposables.add(this.widget.onDidChangeContents(()=>{var f;this._anchorBox&&this._placeAtAnchor(this._anchorBox,(f=this._userSize)!==null&&f!==void 0?f: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 null}show(){this._added||(this._editor.addOverlayWidget(this),this.getDomNode().style.position="fixed",this._added=!0)}hide(d=!1){this._resizable.clearSashHoverState(),this._added&&(this._editor.removeOverlayWidget(this),this._added=!1,this._anchorBox=void 0,this._topLeft=void 0),d&&(this._userSize=void 0,this.widget.clearContents())}placeAtAnchor(d,l){var a;const r=d.getBoundingClientRect();this._anchorBox=r,this._preferAlignAtTop=l,this._placeAtAnchor(this._anchorBox,(a=this._userSize)!==null&&a!==void 0?a:this.widget.size,l)}_placeAtAnchor(d,l,a){var r;const c=y.getClientArea(document.body),g=this.widget.getLayoutInfo(),f=new y.Dimension(220,2*g.lineHeight),_=d.top,p=function(){const x=c.width-(d.left+d.width+g.borderWidth+g.horizontalPadding),M=-g.borderWidth+d.left+d.width,P=new y.Dimension(x,c.height-d.top-g.borderHeight-g.verticalPadding),A=P.with(void 0,d.top+d.height-g.borderHeight-g.verticalPadding);return{top:_,left:M,fit:x-l.width,maxSizeTop:P,maxSizeBottom:A,minSize:f.with(Math.min(x,f.width))}}(),m=function(){const x=d.left-g.borderWidth-g.horizontalPadding,M=Math.max(g.horizontalPadding,d.left-l.width-g.borderWidth),P=new y.Dimension(x,c.height-d.top-g.borderHeight-g.verticalPadding),A=P.with(void 0,d.top+d.height-g.borderHeight-g.verticalPadding);return{top:_,left:M,fit:x-l.width,maxSizeTop:P,maxSizeBottom:A,minSize:f.with(Math.min(x,f.width))}}(),S=function(){const x=d.left,M=-g.borderWidth+d.top+d.height,P=new y.Dimension(d.width-g.borderHeight,c.height-d.top-d.height-g.verticalPadding);return{top:M,left:x,fit:P.height-l.height,maxSizeBottom:P,maxSizeTop:P,minSize:f.with(P.width)}}(),E=[p,m,S],L=(r=E.find(x=>x.fit>=0))!==null&&r!==void 0?r:E.sort((x,M)=>M.fit-x.fit)[0],N=d.top+d.height-g.borderHeight;let I,R=l.height;const F=Math.max(L.maxSizeTop.height,L.maxSizeBottom.height);R>F&&(R=F);let O;a?R<=L.maxSizeTop.height?(I=!0,O=L.maxSizeTop):(I=!1,O=L.maxSizeBottom):R<=L.maxSizeBottom.height?(I=!1,O=L.maxSizeBottom):(I=!0,O=L.maxSizeTop),this._applyTopLeft({left:L.left,top:I?L.top:N-R}),this.getDomNode().style.position="fixed",this._resizable.enableSashes(!I,L===p,I,L!==p),this._resizable.minSize=L.minSize,this._resizable.maxSize=O,this._resizable.layout(R,Math.min(O.width,l.width)),this.widget.layout(this._resizable.size.width,this._resizable.size.height)}_applyTopLeft(d){this._topLeft=d,this.getDomNode().style.left=`${this._topLeft.left}px`,this.getDomNode().style.top=`${this._topLeft.top}px`}}e.SuggestDetailsOverlay=o}),define(oe[658],se([1,0,30,285,94,34]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultConfigurationModel=void 0;class w extends v.ConfigurationModel{constructor(C={}){const h=D.Registry.as(k.Extensions.Configuration).getConfigurationProperties(),u=Object.keys(h),n=Object.create(null),i=[];for(const t in h){const o=C[t],s=o!==void 0?o:h[t].default;(0,y.addToValueTree)(n,t,s,d=>console.error(`Conflict in default settings: ${d}`))}for(const t of Object.keys(n))k.OVERRIDE_PROPERTY_REGEX.test(t)&&i.push({identifiers:(0,k.overrideIdentifiersFromKey)(t),keys:Object.keys(n[t]),contents:(0,y.toValuesTree)(n[t],o=>console.error(`Conflict in default settings file: ${o}`))});super(n,u,i)}}e.DefaultConfigurationModel=w}),define(oe[101],se([1,0,104,17,26,34]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Extensions=e.KeybindingsRegistry=void 0;class w{constructor(){this._coreKeybindings=[],this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToCurrentPlatform(h){if(v.OS===1){if(h&&h.win)return h.win}else if(v.OS===2){if(h&&h.mac)return h.mac}else if(h&&h.linux)return h.linux;return h}registerKeybindingRule(h){const u=w.bindToCurrentPlatform(h);if(u&&u.primary){const n=(0,y.createKeybinding)(u.primary,v.OS);n&&this._registerDefaultKeybinding(n,h.id,h.args,h.weight,0,h.when)}if(u&&Array.isArray(u.secondary))for(let n=0,i=u.secondary.length;n<i;n++){const t=u.secondary[n],o=(0,y.createKeybinding)(t,v.OS);o&&this._registerDefaultKeybinding(o,h.id,h.args,h.weight,-n-1,h.when)}}registerCommandAndKeybindingRule(h){this.registerKeybindingRule(h),k.CommandsRegistry.registerCommand(h)}static _mightProduceChar(h){return h>=21&&h<=30||h>=31&&h<=56?!0:h===80||h===81||h===82||h===83||h===84||h===85||h===86||h===110||h===111||h===87||h===88||h===89||h===90||h===91||h===92}_assertNoCtrlAlt(h,u){h.ctrlKey&&h.altKey&&!h.metaKey&&w._mightProduceChar(h.keyCode)&&console.warn("Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: ",h," for ",u)}_registerDefaultKeybinding(h,u,n,i,t,o){v.OS===1&&this._assertNoCtrlAlt(h.parts[0],u),this._coreKeybindings.push({keybinding:h.parts,command:u,commandArgs:n,when:o,weight1:i,weight2:t,extensionId:null,isBuiltinExtension:!1}),this._cachedMergedKeybindings=null}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=[].concat(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(b)),this._cachedMergedKeybindings.slice(0)}}e.KeybindingsRegistry=new w,e.Extensions={EditorModes:"platform.keybindingsRegistry"},D.Registry.add(e.Extensions.EditorModes,e.KeybindingsRegistry);function b(C,h){return C.weight1!==h.weight1?C.weight1-h.weight1:C.command<h.command?-1:C.command>h.command?1:C.weight2-h.weight2}}),define(oe[293],se([1,0,263,493,16,101,614,2]),function(q,e,y,v,k,D,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContextScopedReplaceInput=e.ContextScopedFindInput=e.registerAndCreateHistoryNavigationContext=e.historyNavigationVisible=void 0,e.historyNavigationVisible=new k.RawContextKey("suggestWidgetVisible",!1,(0,w.localize)(0,null));const C="historyNavigationWidgetFocus",h="historyNavigationForwardsEnabled",u="historyNavigationBackwardsEnabled";let n;const i=[];function t(d,l){if(i.includes(l))throw new Error("Cannot register the same widget multiple times");i.push(l);const a=new b.DisposableStore,r=a.add(d.createScoped(l.element)),c=new k.RawContextKey(C,!1).bindTo(r),g=new k.RawContextKey(h,!0).bindTo(r),f=new k.RawContextKey(u,!0).bindTo(r),_=()=>{c.set(!0),n=l},p=()=>{c.set(!1),n===l&&(n=void 0)};return l.element===document.activeElement&&_(),a.add(l.onDidFocus(()=>_())),a.add(l.onDidBlur(()=>p())),a.add((0,b.toDisposable)(()=>{i.splice(i.indexOf(l),1),p()})),{scopedContextKeyService:r,historyNavigationForwardsEnablement:g,historyNavigationBackwardsEnablement:f,dispose(){a.dispose()}}}e.registerAndCreateHistoryNavigationContext=t;let o=class extends y.FindInput{constructor(d,l,a,r,c=!1){super(d,l,c,a),this._register(t(r,this.inputBox))}};o=Ie([pe(3,k.IContextKeyService)],o),e.ContextScopedFindInput=o;let s=class extends v.ReplaceInput{constructor(d,l,a,r,c=!1){super(d,l,c,a),this._register(t(r,this.inputBox))}};s=Ie([pe(3,k.IContextKeyService)],s),e.ContextScopedReplaceInput=s,D.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:k.ContextKeyExpr.and(k.ContextKeyExpr.has(C),k.ContextKeyExpr.equals(u,!0),e.historyNavigationVisible.isEqualTo(!1)),primary:16,secondary:[528],handler:d=>{n&&n.showPreviousValue()}}),D.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:k.ContextKeyExpr.and(k.ContextKeyExpr.has(C),k.ContextKeyExpr.equals(h,!0),e.historyNavigationVisible.isEqualTo(!1)),primary:18,secondary:[530],handler:d=>{n&&n.showNextValue()}})}),define(oe[118],se([1,0,18,2,34]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.QuickAccessRegistry=e.Extensions=e.DefaultQuickAccessFilterValue=void 0;var D;(function(b){b[b.PRESERVE=0]="PRESERVE",b[b.LAST=1]="LAST"})(D=e.DefaultQuickAccessFilterValue||(e.DefaultQuickAccessFilterValue={})),e.Extensions={Quickaccess:"workbench.contributions.quickaccess"};class w{constructor(){this.providers=[],this.defaultProvider=void 0}registerQuickAccessProvider(C){return C.prefix.length===0?this.defaultProvider=C:this.providers.push(C),this.providers.sort((h,u)=>u.prefix.length-h.prefix.length),(0,v.toDisposable)(()=>{this.providers.splice(this.providers.indexOf(C),1),this.defaultProvider===C&&(this.defaultProvider=void 0)})}getQuickAccessProviders(){return(0,y.coalesce)([this.defaultProvider,...this.providers])}getQuickAccessProvider(C){return C&&this.providers.find(h=>C.startsWith(h.prefix))||void 0||this.defaultProvider}}e.QuickAccessRegistry=w,k.Registry.add(e.Extensions.Quickaccess,new w)}),define(oe[659],se([1,0,619,34,2,44,118,85]),function(q,e,y,v,k,D,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HelpQuickAccessProvider=void 0;let C=class ui{constructor(u,n){this.quickInputService=u,this.keybindingService=n,this.registry=v.Registry.as(w.Extensions.Quickaccess)}provide(u){const n=new k.DisposableStore;return n.add(u.onDidAccept(()=>{const[i]=u.selectedItems;i&&this.quickInputService.quickAccess.show(i.prefix,{preserveValue:!0})})),n.add(u.onDidChangeValue(i=>{const t=this.registry.getQuickAccessProvider(i.substr(ui.PREFIX.length));t&&t.prefix&&t.prefix!==ui.PREFIX&&this.quickInputService.quickAccess.show(t.prefix,{preserveValue:!0})})),u.items=this.getQuickAccessProviders(),n}getQuickAccessProviders(){const u=[];for(const n of this.registry.getQuickAccessProviders().sort((i,t)=>i.prefix.localeCompare(t.prefix)))if(n.prefix!==ui.PREFIX)for(const i of n.helpEntries){const t=i.prefix||n.prefix,o=t||"\u2026";u.push({prefix:t,label:o,keybinding:i.commandId?this.keybindingService.lookupKeybinding(i.commandId):void 0,ariaLabel:(0,y.localize)(0,null,o,i.description),description:i.description})}return u}};C.PREFIX="?",C=Ie([pe(0,b.IQuickInputService),pe(1,D.IKeybindingService)],C),e.HelpQuickAccessProvider=C}),define(oe[660],se([1,0,34,118,76,659]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),y.Registry.as(v.Extensions.Quickaccess).registerQuickAccessProvider({ctor:D.HelpQuickAccessProvider,prefix:"",helpEntries:[{description:k.QuickHelpNLS.helpQuickAccessActionLabel}]})}),define(oe[661],se([1,0,10,21,96,2,9,118,85,34]),function(q,e,y,v,k,D,w,b,C,h){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.QuickAccessController=void 0;let u=class extends D.Disposable{constructor(n,i){super(),this.quickInputService=n,this.instantiationService=i,this.registry=h.Registry.as(b.Extensions.Quickaccess),this.mapProviderToDescriptor=new Map,this.lastAcceptedPickerValues=new Map,this.visibleQuickAccess=void 0}show(n="",i){this.doShowOrPick(n,!1,i)}doShowOrPick(n,i,t){var o;const[s,d]=this.getOrInstantiateProvider(n),l=this.visibleQuickAccess,a=l?.descriptor;if(l&&d&&a===d){n!==d.prefix&&!t?.preserveValue&&(l.picker.value=n),this.adjustValueSelection(l.picker,d,t);return}if(d&&!t?.preserveValue){let _;if(l&&a&&a!==d){const p=l.value.substr(a.prefix.length);p&&(_=`${d.prefix}${p}`)}if(!_){const p=s?.defaultFilterValue;p===b.DefaultQuickAccessFilterValue.LAST?_=this.lastAcceptedPickerValues.get(d):typeof p=="string"&&(_=`${d.prefix}${p}`)}typeof _=="string"&&(n=_)}const r=new D.DisposableStore,c=r.add(this.quickInputService.createQuickPick());c.value=n,this.adjustValueSelection(c,d,t),c.placeholder=d?.placeholder,c.quickNavigate=t?.quickNavigateConfiguration,c.hideInput=!!c.quickNavigate&&!l,(typeof t?.itemActivation=="number"||t?.quickNavigateConfiguration)&&(c.itemActivation=(o=t?.itemActivation)!==null&&o!==void 0?o:C.ItemActivation.SECOND),c.contextKey=d?.contextKey,c.filterValue=_=>_.substring(d?d.prefix.length:0),d?.placeholder&&(c.ariaLabel=d?.placeholder);let g;i&&(g=new y.DeferredPromise,r.add((0,k.once)(c.onWillAccept)(_=>{_.veto(),c.hide()}))),r.add(this.registerPickerListeners(c,s,d,n));const f=r.add(new v.CancellationTokenSource);if(s&&r.add(s.provide(c,f.token)),(0,k.once)(c.onDidHide)(()=>{c.selectedItems.length===0&&f.cancel(),r.dispose(),g?.complete(c.selectedItems.slice(0))}),c.show(),i)return g?.p}adjustValueSelection(n,i,t){var o;let s;t?.preserveValue?s=[n.value.length,n.value.length]:s=[(o=i?.prefix.length)!==null&&o!==void 0?o:0,n.value.length],n.valueSelection=s}registerPickerListeners(n,i,t,o){const s=new D.DisposableStore,d=this.visibleQuickAccess={picker:n,descriptor:t,value:o};return s.add((0,D.toDisposable)(()=>{d===this.visibleQuickAccess&&(this.visibleQuickAccess=void 0)})),s.add(n.onDidChangeValue(l=>{const[a]=this.getOrInstantiateProvider(l);a!==i?this.show(l,{preserveValue:!0}):d.value=l})),t&&s.add(n.onDidAccept(()=>{this.lastAcceptedPickerValues.set(t,n.value)})),s}getOrInstantiateProvider(n){const i=this.registry.getQuickAccessProvider(n);if(!i)return[void 0,void 0];let t=this.mapProviderToDescriptor.get(i);return t||(t=this.instantiationService.createInstance(i.ctor),this.mapProviderToDescriptor.set(i,t)),[t,i]}};u=Ie([pe(0,C.IQuickInputService),pe(1,w.IInstantiationService)],u),e.QuickAccessController=u}),define(oe[79],se([1,0,6,2,19,499,9]),function(q,e,y,v,k,D,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InMemoryStorageService=e.AbstractStorageService=e.WillSaveStateReason=e.IStorageService=void 0;const b="__$__targetStorageMarker";e.IStorageService=(0,w.createDecorator)("storageService");var C;(function(n){n[n.NONE=0]="NONE",n[n.SHUTDOWN=1]="SHUTDOWN"})(C=e.WillSaveStateReason||(e.WillSaveStateReason={}));class h extends v.Disposable{constructor(i={flushInterval:h.DEFAULT_FLUSH_INTERVAL}){super(),this.options=i,this._onDidChangeValue=this._register(new y.PauseableEmitter),this.onDidChangeValue=this._onDidChangeValue.event,this._onDidChangeTarget=this._register(new y.PauseableEmitter),this._onWillSaveState=this._register(new y.Emitter),this.onWillSaveState=this._onWillSaveState.event,this._workspaceKeyTargets=void 0,this._profileKeyTargets=void 0,this._applicationKeyTargets=void 0}emitDidChangeValue(i,t){if(t===b){switch(i){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:i})}else this._onDidChangeValue.fire({scope:i,key:t,target:this.getKeyTargets(i)[t]})}get(i,t,o){var s;return(s=this.getStorage(t))===null||s===void 0?void 0:s.get(i,o)}getBoolean(i,t,o){var s;return(s=this.getStorage(t))===null||s===void 0?void 0:s.getBoolean(i,o)}getNumber(i,t,o){var s;return(s=this.getStorage(t))===null||s===void 0?void 0:s.getNumber(i,o)}store(i,t,o,s){if((0,k.isUndefinedOrNull)(t)){this.remove(i,o);return}this.withPausedEmitters(()=>{var d;this.updateKeyTarget(i,o,s),(d=this.getStorage(o))===null||d===void 0||d.set(i,t)})}remove(i,t){this.withPausedEmitters(()=>{var o;this.updateKeyTarget(i,t,void 0),(o=this.getStorage(t))===null||o===void 0||o.delete(i)})}withPausedEmitters(i){this._onDidChangeValue.pause(),this._onDidChangeTarget.pause();try{i()}finally{this._onDidChangeValue.resume(),this._onDidChangeTarget.resume()}}updateKeyTarget(i,t,o){var s,d;const l=this.getKeyTargets(t);typeof o=="number"?l[i]!==o&&(l[i]=o,(s=this.getStorage(t))===null||s===void 0||s.set(b,JSON.stringify(l))):typeof l[i]=="number"&&(delete l[i],(d=this.getStorage(t))===null||d===void 0||d.set(b,JSON.stringify(l)))}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(i){switch(i){case-1:return this.applicationKeyTargets;case 0:return this.profileKeyTargets;default:return this.workspaceKeyTargets}}loadKeyTargets(i){const t=this.get(b,i);if(t)try{return JSON.parse(t)}catch{}return Object.create(null)}}e.AbstractStorageService=h,h.DEFAULT_FLUSH_INTERVAL=60*1e3;class u extends h{constructor(){super(),this.applicationStorage=this._register(new D.Storage(new D.InMemoryStorageDatabase)),this.profileStorage=this._register(new D.Storage(new D.InMemoryStorageDatabase)),this.workspaceStorage=this._register(new D.Storage(new D.InMemoryStorageDatabase)),this._register(this.workspaceStorage.onDidChangeStorage(i=>this.emitDidChangeValue(1,i))),this._register(this.profileStorage.onDidChangeStorage(i=>this.emitDidChangeValue(0,i))),this._register(this.applicationStorage.onDidChangeStorage(i=>this.emitDidChangeValue(-1,i)))}getStorage(i){switch(i){case-1:return this.applicationStorage;case 0:return this.profileStorage;default:return this.workspaceStorage}}}e.InMemoryStorageService=u}),define(oe[662],se([1,0,10,96,51,3,282,53,9,79]),function(q,e,y,v,k,D,w,b,C,h){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CodeLensCache=e.ICodeLensCache=void 0,e.ICodeLensCache=(0,C.createDecorator)("ICodeLensCache");class u{constructor(t,o){this.lineCount=t,this.data=o}}let n=class{constructor(i){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new k.LRUCache(20,.75);const t="codelens/cache";(0,y.runWhenIdle)(()=>i.remove(t,1));const o="codelens/cache2",s=i.get(o,1,"{}");this._deserialize(s),(0,v.once)(i.onWillSaveState)(d=>{d.reason===h.WillSaveStateReason.SHUTDOWN&&i.store(o,this._serialize(),1,1)})}put(i,t){const o=t.lenses.map(l=>{var a;return{range:l.symbol.range,command:l.symbol.command&&{id:"",title:(a=l.symbol.command)===null||a===void 0?void 0:a.title}}}),s=new w.CodeLensModel;s.add({lenses:o,dispose:()=>{}},this._fakeProvider);const d=new u(i.getLineCount(),s);this._cache.set(i.uri.toString(),d)}get(i){const t=this._cache.get(i.uri.toString());return t&&t.lineCount===i.getLineCount()?t.data:void 0}delete(i){this._cache.delete(i.uri.toString())}_serialize(){const i=Object.create(null);for(const[t,o]of this._cache){const s=new Set;for(const d of o.data.lenses)s.add(d.symbol.range.startLineNumber);i[t]={lineCount:o.lineCount,lines:[...s.values()]}}return JSON.stringify(i)}_deserialize(i){try{const t=JSON.parse(i);for(const o in t){const s=t[o],d=[];for(const a of s.lines)d.push({range:new D.Range(a,1,a,11)});const l=new w.CodeLensModel;l.add({lenses:d,dispose(){}},this._fakeProvider),this._cache.set(o,new u(s.lineCount,l))}}catch{}}};n=Ie([pe(0,h.IStorageService)],n),e.CodeLensCache=n,(0,b.registerSingleton)(e.ICodeLensCache,n)}),define(oe[294],se([1,0,10,2,51,28,30,53,9,79]),function(q,e,y,v,k,D,w,b,C,h){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ISuggestMemoryService=e.SuggestMemoryService=e.PrefixMemory=e.LRUMemory=e.NoMemory=e.Memory=void 0;class u{constructor(d){this.name=d}select(d,l,a){if(a.length===0)return 0;const r=a[0].score[0];for(let c=0;c<a.length;c++){const{score:g,completion:f}=a[c];if(g[0]!==r)break;if(f.preselect)return c}return 0}}e.Memory=u;class n extends u{constructor(){super("first")}memorize(d,l,a){}toJSON(){}fromJSON(){}}e.NoMemory=n;class i extends u{constructor(){super("recentlyUsed"),this._cache=new k.LRUCache(300,.66),this._seq=0}memorize(d,l,a){const r=`${d.getLanguageId()}/${a.textLabel}`;this._cache.set(r,{touch:this._seq++,type:a.completion.kind,insertText:a.completion.insertText})}select(d,l,a){if(a.length===0)return 0;const r=d.getLineContent(l.lineNumber).substr(l.column-10,l.column-1);if(/\s$/.test(r))return super.select(d,l,a);const c=a[0].score[0];let g=-1,f=-1,_=-1;for(let p=0;p<a.length&&a[p].score[0]===c;p++){const m=`${d.getLanguageId()}/${a[p].textLabel}`,S=this._cache.peek(m);if(S&&S.touch>_&&S.type===a[p].completion.kind&&S.insertText===a[p].completion.insertText&&(_=S.touch,f=p),a[p].completion.preselect&&g===-1)return g=p}return f!==-1?f:g!==-1?g:0}toJSON(){return this._cache.toJSON()}fromJSON(d){this._cache.clear();const l=0;for(const[a,r]of d)r.touch=l,r.type=typeof r.type=="number"?r.type:D.CompletionItemKinds.fromString(r.type),this._cache.set(a,r);this._seq=this._cache.size}}e.LRUMemory=i;class t extends u{constructor(){super("recentlyUsedByPrefix"),this._trie=k.TernarySearchTree.forStrings(),this._seq=0}memorize(d,l,a){const{word:r}=d.getWordUntilPosition(l),c=`${d.getLanguageId()}/${r}`;this._trie.set(c,{type:a.completion.kind,insertText:a.completion.insertText,touch:this._seq++})}select(d,l,a){const{word:r}=d.getWordUntilPosition(l);if(!r)return super.select(d,l,a);const c=`${d.getLanguageId()}/${r}`;let g=this._trie.get(c);if(g||(g=this._trie.findSubstr(c)),g)for(let f=0;f<a.length;f++){const{kind:_,insertText:p}=a[f].completion;if(_===g.type&&p===g.insertText)return f}return super.select(d,l,a)}toJSON(){const d=[];return this._trie.forEach((l,a)=>d.push([a,l])),d.sort((l,a)=>-(l[1].touch-a[1].touch)).forEach((l,a)=>l[1].touch=a),d.slice(0,200)}fromJSON(d){if(this._trie.clear(),d.length>0){this._seq=d[0][1].touch+1;for(const[l,a]of d)a.type=typeof a.type=="number"?a.type:D.CompletionItemKinds.fromString(a.type),this._trie.set(l,a)}}}e.PrefixMemory=t;let o=class gi{constructor(d,l){this._storageService=d,this._configService=l,this._disposables=new v.DisposableStore,this._persistSoon=new y.RunOnceScheduler(()=>this._saveState(),500),this._disposables.add(d.onWillSaveState(a=>{a.reason===h.WillSaveStateReason.SHUTDOWN&&this._saveState()}))}dispose(){this._disposables.dispose(),this._persistSoon.dispose()}memorize(d,l,a){this._withStrategy(d,l).memorize(d,l,a),this._persistSoon.schedule()}select(d,l,a){return this._withStrategy(d,l).select(d,l,a)}_withStrategy(d,l){var a;const r=this._configService.getValue("editor.suggestSelection",{overrideIdentifier:d.getLanguageIdAtPosition(l.lineNumber,l.column),resource:d.uri});if(((a=this._strategy)===null||a===void 0?void 0:a.name)!==r){this._saveState();const c=gi._strategyCtors.get(r)||n;this._strategy=new c;try{const g=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,f=this._storageService.get(`${gi._storagePrefix}/${r}`,g);f&&this._strategy.fromJSON(JSON.parse(f))}catch{}}return this._strategy}_saveState(){if(this._strategy){const d=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,l=JSON.stringify(this._strategy);this._storageService.store(`${gi._storagePrefix}/${this._strategy.name}`,l,d,1)}}};o._strategyCtors=new Map([["recentlyUsedByPrefix",t],["recentlyUsed",i],["first",n]]),o._storagePrefix="suggest/memories",o=Ie([pe(0,h.IStorageService),pe(1,w.IConfigurationService)],o),e.SuggestMemoryService=o,e.ISuggestMemoryService=(0,C.createDecorator)("ISuggestMemories"),(0,b.registerSingleton)(e.ISuggestMemoryService,o,!0)}),define(oe[86],se([1,0,9]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ITelemetryService=void 0,e.ITelemetryService=(0,y.createDecorator)("telemetryService")}),define(oe[663],se([1,0,472,14,63,2,51,81,19,618,26,30,139,9,44,648,79,86]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CommandsHistory=e.AbstractCommandsQuickAccessProvider=void 0;let a=class pi extends s.PickerQuickAccessProvider{constructor(g,f,_,p,m,S){super(pi.PREFIX,g),this.instantiationService=f,this.keybindingService=_,this.commandService=p,this.telemetryService=m,this.dialogService=S,this.commandsHistory=this._register(this.instantiationService.createInstance(r)),this.options=g}_getPicks(g,f,_){return be(this,void 0,void 0,function*(){const p=yield this.getCommandPicks(f,_);if(_.isCancellationRequested)return[];const m=[];for(const N of p){const I=(0,C.withNullAsUndefined)(pi.WORD_FILTER(g,N.label)),R=N.commandAlias?(0,C.withNullAsUndefined)(pi.WORD_FILTER(g,N.commandAlias)):void 0;I||R?(N.highlights={label:I,detail:this.options.showAlias?R:void 0},m.push(N)):g===N.commandId&&m.push(N)}const S=new Map;for(const N of m){const I=S.get(N.label);I?(N.description=N.commandId,I.description=I.commandId):S.set(N.label,N)}m.sort((N,I)=>{const R=this.commandsHistory.peek(N.commandId),F=this.commandsHistory.peek(I.commandId);return R&&F?R>F?-1:1:R?-1:F?1:N.label.localeCompare(I.label)});const E=[];let L=!1;for(let N=0;N<m.length;N++){const I=m[N],R=this.keybindingService.lookupKeybinding(I.commandId),F=R?(0,h.localize)(0,null,I.label,R.getAriaLabel()):I.label;N===0&&this.commandsHistory.peek(I.commandId)&&(E.push({type:"separator",label:(0,h.localize)(1,null)}),L=!0),N!==0&&L&&!this.commandsHistory.peek(I.commandId)&&(E.push({type:"separator",label:(0,h.localize)(2,null)}),L=!1),E.push(Object.assign(Object.assign({},I),{ariaLabel:F,detail:this.options.showAlias&&I.commandAlias!==I.label?I.commandAlias:void 0,keybinding:R,accept:()=>be(this,void 0,void 0,function*(){this.commandsHistory.push(I.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:I.commandId,from:"quick open"});try{yield this.commandService.executeCommand(I.commandId)}catch(O){(0,v.isCancellationError)(O)||this.dialogService.show(b.default.Error,(0,h.localize)(3,null,I.label,(0,y.toErrorMessage)(O)))}})}))}return E})}};a.PREFIX=">",a.WORD_FILTER=(0,k.or)(k.matchesPrefix,k.matchesWords,k.matchesContiguousSubString),a=Ie([pe(1,t.IInstantiationService),pe(2,o.IKeybindingService),pe(3,u.ICommandService),pe(4,l.ITelemetryService),pe(5,i.IDialogService)],a),e.AbstractCommandsQuickAccessProvider=a;let r=class Lt extends D.Disposable{constructor(g,f){super(),this.storageService=g,this.configurationService=f,this.configuredCommandsHistoryLength=0,this.updateConfiguration(),this.load(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(()=>this.updateConfiguration()))}updateConfiguration(){this.configuredCommandsHistoryLength=Lt.getConfiguredCommandHistoryLength(this.configurationService),Lt.cache&&Lt.cache.limit!==this.configuredCommandsHistoryLength&&(Lt.cache.limit=this.configuredCommandsHistoryLength,Lt.saveState(this.storageService))}load(){const g=this.storageService.get(Lt.PREF_KEY_CACHE,0);let f;if(g)try{f=JSON.parse(g)}catch{}const _=Lt.cache=new w.LRUCache(this.configuredCommandsHistoryLength,1);if(f){let p;f.usesLRU?p=f.entries:p=f.entries.sort((m,S)=>m.value-S.value),p.forEach(m=>_.set(m.key,m.value))}Lt.counter=this.storageService.getNumber(Lt.PREF_KEY_COUNTER,0,Lt.counter)}push(g){!Lt.cache||(Lt.cache.set(g,Lt.counter++),Lt.saveState(this.storageService))}peek(g){var f;return(f=Lt.cache)===null||f===void 0?void 0:f.peek(g)}static saveState(g){if(!Lt.cache)return;const f={usesLRU:!0,entries:[]};Lt.cache.forEach((_,p)=>f.entries.push({key:p,value:_})),g.store(Lt.PREF_KEY_CACHE,JSON.stringify(f),0,0),g.store(Lt.PREF_KEY_COUNTER,Lt.counter,0,0)}static getConfiguredCommandHistoryLength(g){var f,_;const p=(_=(f=g.getValue().workbench)===null||f===void 0?void 0:f.commandPalette)===null||_===void 0?void 0:_.history;return typeof p=="number"?p:Lt.DEFAULT_COMMANDS_HISTORY_LENGTH}};r.DEFAULT_COMMANDS_HISTORY_LENGTH=50,r.PREF_KEY_CACHE="commandPalette.mru.cache",r.PREF_KEY_COUNTER="commandPalette.mru.counter",r.counter=1,r=Ie([pe(0,d.IStorageService),pe(1,n.IConfigurationService)],r),e.CommandsHistory=r}),define(oe[664],se([1,0,106,663]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractEditorCommandsQuickAccessProvider=void 0;class k extends v.AbstractCommandsQuickAccessProvider{constructor(w,b,C,h,u,n){super(w,b,C,h,u,n)}getCodeEditorCommandPicks(){const w=this.activeTextEditorControl;if(!w)return[];const b=[];for(const C of w.getSupportedActions())b.push({commandId:C.id,commandAlias:C.alias,label:(0,y.stripIcons)(C.label)||C.id});return b}}e.AbstractEditorCommandsQuickAccessProvider=k}),define(oe[25],se([1,0,10,31,6,19,620,211,34]),function(q,e,y,v,k,D,w,b,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.workbenchColorsSchemaId=e.resolveColorValue=e.ifDefinedThenElse=e.oneOf=e.transparent=e.lighten=e.darken=e.executeTransform=e.chartsPurple=e.chartsGreen=e.chartsOrange=e.chartsYellow=e.chartsBlue=e.chartsRed=e.chartsLines=e.chartsForeground=e.problemsInfoIconForeground=e.problemsWarningIconForeground=e.problemsErrorIconForeground=e.minimapSliderActiveBackground=e.minimapSliderHoverBackground=e.minimapSliderBackground=e.minimapForegroundOpacity=e.minimapBackground=e.minimapWarning=e.minimapError=e.minimapSelection=e.minimapSelectionOccurrenceHighlight=e.minimapFindMatch=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.snippetFinalTabstopHighlightBorder=e.snippetFinalTabstopHighlightBackground=e.snippetTabstopHighlightBorder=e.snippetTabstopHighlightBackground=e.toolbarActiveBackground=e.toolbarHoverOutline=e.toolbarHoverBackground=e.menuSeparatorBackground=e.menuSelectionBorder=e.menuSelectionBackground=e.menuSelectionForeground=e.menuBackground=e.menuForeground=e.menuBorder=e.quickInputListFocusBackground=e.quickInputListFocusIconForeground=e.quickInputListFocusForeground=e._deprecatedQuickInputListFocusBackground=e.listDeemphasizedForeground=e.tableOddRowsBackgroundColor=e.tableColumnsBorder=e.treeIndentGuidesStroke=e.listFilterMatchHighlightBorder=e.listFilterMatchHighlight=e.listFilterWidgetShadow=e.listFilterWidgetNoMatchesOutline=e.listFilterWidgetOutline=e.listFilterWidgetBackground=e.listWarningForeground=e.listErrorForeground=e.listInvalidItemForeground=e.listFocusHighlightForeground=e.listHighlightForeground=e.listDropBackground=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=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.editorLightBulbAutoFixForeground=e.editorLightBulbForeground=e.editorInlayHintParameterBackground=e.editorInlayHintParameterForeground=e.editorInlayHintTypeBackground=e.editorInlayHintTypeForeground=e.editorInlayHintBackground=e.editorInlayHintForeground=e.editorActiveLinkForeground=e.editorHoverStatusBarBackground=e.editorHoverBorder=e.editorHoverForeground=e.editorHoverBackground=e.editorHoverHighlight=e.searchEditorFindMatchBorder=e.searchEditorFindMatch=e.editorFindRangeHighlightBorder=e.editorFindMatchHighlightBorder=e.editorFindMatchBorder=e.editorFindRangeHighlight=e.editorFindMatchHighlight=e.editorFindMatch=e.editorSelectionHighlightBorder=e.editorSelectionHighlight=e.editorInactiveSelection=e.editorSelectionForeground=e.editorSelectionBackground=e.keybindingLabelBottomBorder=e.keybindingLabelBorder=e.keybindingLabelForeground=e.keybindingLabelBackground=e.pickerGroupBorder=e.pickerGroupForeground=e.quickInputTitleBackground=e.quickInputForeground=e.quickInputBackground=e.editorWidgetResizeBorder=e.editorWidgetBorder=e.editorWidgetForeground=e.editorWidgetBackground=e.editorStickyScrollHoverBackground=e.editorStickyScrollBackground=e.editorForeground=e.editorBackground=e.sashHoverBorder=e.editorHintBorder=e.editorHintForeground=e.editorInfoBorder=e.editorInfoForeground=e.editorInfoBackground=e.editorWarningBorder=e.editorWarningForeground=e.editorWarningBackground=e.editorErrorBorder=e.editorErrorForeground=e.editorErrorBackground=e.progressBarBackground=e.scrollbarSliderActiveBackground=e.scrollbarSliderHoverBackground=e.scrollbarSliderBackground=e.scrollbarShadow=e.badgeForeground=e.badgeBackground=e.buttonSecondaryHoverBackground=e.buttonSecondaryBackground=e.buttonSecondaryForeground=e.buttonBorder=e.buttonHoverBackground=e.buttonBackground=e.buttonSeparator=e.buttonForeground=e.checkboxBorder=e.checkboxForeground=e.checkboxBackground=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=e.widgetShadow=e.textCodeBlockBackground=e.textBlockQuoteBorder=e.textBlockQuoteBackground=e.textPreformatForeground=e.textLinkActiveForeground=e.textLinkForeground=e.textSeparatorForeground=e.selectionBackground=e.activeContrastBorder=e.contrastBorder=e.focusBorder=e.iconForeground=e.descriptionForeground=e.errorForeground=e.disabledForeground=e.foreground=e.registerColor=e.Extensions=e.asCssVariableName=void 0;function h(I){return`--vscode-${I.replace(/\./g,"-")}`}e.asCssVariableName=h,e.Extensions={ColorContribution:"base.contributions.colors"};class u{constructor(){this._onDidChangeSchema=new k.Emitter,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(R,F,O,x=!1,M){const P={id:R,description:O,defaults:F,needsTransparency:x,deprecationMessage:M};this.colorsById[R]=P;const A={type:"string",description:O,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return M&&(A.deprecationMessage=M),this.colorSchema.properties[R]=A,this.colorReferenceSchema.enum.push(R),this.colorReferenceSchema.enumDescriptions.push(O),this._onDidChangeSchema.fire(),R}getColors(){return Object.keys(this.colorsById).map(R=>this.colorsById[R])}resolveDefaultColor(R,F){const O=this.colorsById[R];if(O&&O.defaults){const x=O.defaults[F.type];return E(x,F)}}getColorSchema(){return this.colorSchema}toString(){const R=(F,O)=>{const x=F.indexOf(".")===-1?0:1,M=O.indexOf(".")===-1?0:1;return x!==M?x-M:F.localeCompare(O)};return Object.keys(this.colorsById).sort(R).map(F=>`- \`${F}\`: ${this.colorsById[F].description}`).join(` `)}}const n=new u;C.Registry.add(e.Extensions.ColorContribution,n);function i(I){return I===null||typeof I.hcLight>"u"&&(I.hcDark===null||typeof I.hcDark=="string"?I.hcLight=I.hcDark:I.hcLight=I.light),I}function t(I,R,F,O,x){return n.registerColor(I,i(R),F,O,x)}e.registerColor=t,e.foreground=t("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},w.localize(0,null)),e.disabledForeground=t("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},w.localize(1,null)),e.errorForeground=t("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},w.localize(2,null)),e.descriptionForeground=t("descriptionForeground",{light:"#717171",dark:_(e.foreground,.7),hcDark:_(e.foreground,.7),hcLight:_(e.foreground,.7)},w.localize(3,null)),e.iconForeground=t("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},w.localize(4,null)),e.focusBorder=t("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#0F4A85"},w.localize(5,null)),e.contrastBorder=t("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},w.localize(6,null)),e.activeContrastBorder=t("contrastActiveBorder",{light:null,dark:null,hcDark:e.focusBorder,hcLight:e.focusBorder},w.localize(7,null)),e.selectionBackground=t("selection.background",{light:null,dark:null,hcDark:null,hcLight:null},w.localize(8,null)),e.textSeparatorForeground=t("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:v.Color.black,hcLight:"#292929"},w.localize(9,null)),e.textLinkForeground=t("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#3794FF",hcLight:"#0F4A85"},w.localize(10,null)),e.textLinkActiveForeground=t("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#3794FF",hcLight:"#0F4A85"},w.localize(11,null)),e.textPreformatForeground=t("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#D7BA7D",hcLight:"#292929"},w.localize(12,null)),e.textBlockQuoteBackground=t("textBlockQuote.background",{light:"#7f7f7f1a",dark:"#7f7f7f1a",hcDark:null,hcLight:"#F2F2F2"},w.localize(13,null)),e.textBlockQuoteBorder=t("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:v.Color.white,hcLight:"#292929"},w.localize(14,null)),e.textCodeBlockBackground=t("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:v.Color.black,hcLight:"#F2F2F2"},w.localize(15,null)),e.widgetShadow=t("widget.shadow",{dark:_(v.Color.black,.36),light:_(v.Color.black,.16),hcDark:null,hcLight:null},w.localize(16,null)),e.inputBackground=t("input.background",{dark:"#3C3C3C",light:v.Color.white,hcDark:v.Color.black,hcLight:v.Color.white},w.localize(17,null)),e.inputForeground=t("input.foreground",{dark:e.foreground,light:e.foreground,hcDark:e.foreground,hcLight:e.foreground},w.localize(18,null)),e.inputBorder=t("input.border",{dark:null,light:null,hcDark:e.contrastBorder,hcLight:e.contrastBorder},w.localize(19,null)),e.inputActiveOptionBorder=t("inputOption.activeBorder",{dark:"#007ACC00",light:"#007ACC00",hcDark:e.contrastBorder,hcLight:e.contrastBorder},w.localize(20,null)),e.inputActiveOptionHoverBackground=t("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},w.localize(21,null)),e.inputActiveOptionBackground=t("inputOption.activeBackground",{dark:_(e.focusBorder,.4),light:_(e.focusBorder,.2),hcDark:v.Color.transparent,hcLight:v.Color.transparent},w.localize(22,null)),e.inputActiveOptionForeground=t("inputOption.activeForeground",{dark:v.Color.white,light:v.Color.black,hcDark:null,hcLight:e.foreground},w.localize(23,null)),e.inputPlaceholderForeground=t("input.placeholderForeground",{light:_(e.foreground,.5),dark:_(e.foreground,.5),hcDark:_(e.foreground,.7),hcLight:_(e.foreground,.7)},w.localize(24,null)),e.inputValidationInfoBackground=t("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:v.Color.black,hcLight:v.Color.white},w.localize(25,null)),e.inputValidationInfoForeground=t("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:e.foreground},w.localize(26,null)),e.inputValidationInfoBorder=t("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:e.contrastBorder,hcLight:e.contrastBorder},w.localize(27,null)),e.inputValidationWarningBackground=t("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:v.Color.black,hcLight:v.Color.white},w.localize(28,null)),e.inputValidationWarningForeground=t("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:e.foreground},w.localize(29,null)),e.inputValidationWarningBorder=t("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:e.contrastBorder,hcLight:e.contrastBorder},w.localize(30,null)),e.inputValidationErrorBackground=t("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:v.Color.black,hcLight:v.Color.white},w.localize(31,null)),e.inputValidationErrorForeground=t("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:e.foreground},w.localize(32,null)),e.inputValidationErrorBorder=t("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:e.contrastBorder,hcLight:e.contrastBorder},w.localize(33,null)),e.selectBackground=t("dropdown.background",{dark:"#3C3C3C",light:v.Color.white,hcDark:v.Color.black,hcLight:v.Color.white},w.localize(34,null)),e.selectListBackground=t("dropdown.listBackground",{dark:null,light:null,hcDark:v.Color.black,hcLight:v.Color.white},w.localize(35,null)),e.selectForeground=t("dropdown.foreground",{dark:"#F0F0F0",light:null,hcDark:v.Color.white,hcLight:e.foreground},w.localize(36,null)),e.selectBorder=t("dropdown.border",{dark:e.selectBackground,light:"#CECECE",hcDark:e.contrastBorder,hcLight:e.contrastBorder},w.localize(37,null)),e.checkboxBackground=t("checkbox.background",{dark:e.selectBackground,light:e.selectBackground,hcDark:e.selectBackground,hcLight:e.selectBackground},w.localize(38,null)),e.checkboxForeground=t("checkbox.foreground",{dark:e.selectForeground,light:e.selectForeground,hcDark:e.selectForeground,hcLight:e.selectForeground},w.localize(39,null)),e.checkboxBorder=t("checkbox.border",{dark:e.selectBorder,light:e.selectBorder,hcDark:e.selectBorder,hcLight:e.selectBorder},w.localize(40,null)),e.buttonForeground=t("button.foreground",{dark:v.Color.white,light:v.Color.white,hcDark:v.Color.white,hcLight:v.Color.white},w.localize(41,null)),e.buttonSeparator=t("button.separator",{dark:_(e.buttonForeground,.4),light:_(e.buttonForeground,.4),hcDark:_(e.buttonForeground,.4),hcLight:_(e.buttonForeground,.4)},w.localize(42,null)),e.buttonBackground=t("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},w.localize(43,null)),e.buttonHoverBackground=t("button.hoverBackground",{dark:f(e.buttonBackground,.2),light:g(e.buttonBackground,.2),hcDark:null,hcLight:null},w.localize(44,null)),e.buttonBorder=t("button.border",{dark:e.contrastBorder,light:e.contrastBorder,hcDark:e.contrastBorder,hcLight:e.contrastBorder},w.localize(45,null)),e.buttonSecondaryForeground=t("button.secondaryForeground",{dark:v.Color.white,light:v.Color.white,hcDark:v.Color.white,hcLight:e.foreground},w.localize(46,null)),e.buttonSecondaryBackground=t("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:v.Color.white},w.localize(47,null)),e.buttonSecondaryHoverBackground=t("button.secondaryHoverBackground",{dark:f(e.buttonSecondaryBackground,.2),light:g(e.buttonSecondaryBackground,.2),hcDark:null,hcLight:null},w.localize(48,null)),e.badgeBackground=t("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:v.Color.black,hcLight:"#0F4A85"},w.localize(49,null)),e.badgeForeground=t("badge.foreground",{dark:v.Color.white,light:"#333",hcDark:v.Color.white,hcLight:v.Color.white},w.localize(50,null)),e.scrollbarShadow=t("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},w.localize(51,null)),e.scrollbarSliderBackground=t("scrollbarSlider.background",{dark:v.Color.fromHex("#797979").transparent(.4),light:v.Color.fromHex("#646464").transparent(.4),hcDark:_(e.contrastBorder,.6),hcLight:_(e.contrastBorder,.4)},w.localize(52,null)),e.scrollbarSliderHoverBackground=t("scrollbarSlider.hoverBackground",{dark:v.Color.fromHex("#646464").transparent(.7),light:v.Color.fromHex("#646464").transparent(.7),hcDark:_(e.contrastBorder,.8),hcLight:_(e.contrastBorder,.8)},w.localize(53,null)),e.scrollbarSliderActiveBackground=t("scrollbarSlider.activeBackground",{dark:v.Color.fromHex("#BFBFBF").transparent(.4),light:v.Color.fromHex("#000000").transparent(.6),hcDark:e.contrastBorder,hcLight:e.contrastBorder},w.localize(54,null)),e.progressBarBackground=t("progressBar.background",{dark:v.Color.fromHex("#0E70C0"),light:v.Color.fromHex("#0E70C0"),hcDark:e.contrastBorder,hcLight:e.contrastBorder},w.localize(55,null)),e.editorErrorBackground=t("editorError.background",{dark:null,light:null,hcDark:null,hcLight:null},w.localize(56,null),!0),e.editorErrorForeground=t("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},w.localize(57,null)),e.editorErrorBorder=t("editorError.border",{dark:null,light:null,hcDark:v.Color.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},w.localize(58,null)),e.editorWarningBackground=t("editorWarning.background",{dark:null,light:null,hcDark:null,hcLight:null},w.localize(59,null),!0),e.editorWarningForeground=t("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD37",hcLight:"#895503"},w.localize(60,null)),e.editorWarningBorder=t("editorWarning.border",{dark:null,light:null,hcDark:v.Color.fromHex("#FFCC00").transparent(.8),hcLight:"#"},w.localize(61,null)),e.editorInfoBackground=t("editorInfo.background",{dark:null,light:null,hcDark:null,hcLight:null},w.localize(62,null),!0),e.editorInfoForeground=t("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},w.localize(63,null)),e.editorInfoBorder=t("editorInfo.border",{dark:null,light:null,hcDark:v.Color.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},w.localize(64,null)),e.editorHintForeground=t("editorHint.foreground",{dark:v.Color.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},w.localize(65,null)),e.editorHintBorder=t("editorHint.border",{dark:null,light:null,hcDark:v.Color.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},w.localize(66,null)),e.sashHoverBorder=t("sash.hoverBorder",{dark:e.focusBorder,light:e.focusBorder,hcDark:e.focusBorder,hcLight:e.focusBorder},w.localize(67,null)),e.editorBackground=t("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:v.Color.black,hcLight:v.Color.white},w.localize(68,null)),e.editorForeground=t("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:v.Color.white,hcLight:e.foreground},w.localize(69,null)),e.editorStickyScrollBackground=t("editorStickyScroll.background",{light:e.editorBackground,dark:e.editorBackground,hcDark:e.editorBackground,hcLight:e.editorBackground},w.localize(70,null)),e.editorStickyScrollHoverBackground=t("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:v.Color.fromHex("#0F4A85").transparent(.1)},w.localize(71,null)),e.editorWidgetBackground=t("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:v.Color.white},w.localize(72,null)),e.editorWidgetForeground=t("editorWidget.foreground",{dark:e.foreground,light:e.foreground,hcDark:e.foreground,hcLight:e.foreground},w.localize(73,null)),e.editorWidgetBorder=t("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:e.contrastBorder,hcLight:e.contrastBorder},w.localize(74,null)),e.editorWidgetResizeBorder=t("editorWidget.resizeBorder",{light:null,dark:null,hcDark:null,hcLight:null},w.localize(75,null)),e.quickInputBackground=t("quickInput.background",{dark:e.editorWidgetBackground,light:e.editorWidgetBackground,hcDark:e.editorWidgetBackground,hcLight:e.editorWidgetBackground},w.localize(76,null)),e.quickInputForeground=t("quickInput.foreground",{dark:e.editorWidgetForeground,light:e.editorWidgetForeground,hcDark:e.editorWidgetForeground,hcLight:e.editorWidgetForeground},w.localize(77,null)),e.quickInputTitleBackground=t("quickInputTitle.background",{dark:new v.Color(new v.RGBA(255,255,255,.105)),light:new v.Color(new v.RGBA(0,0,0,.06)),hcDark:"#000000",hcLight:v.Color.white},w.localize(78,null)),e.pickerGroupForeground=t("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:v.Color.white,hcLight:"#0F4A85"},w.localize(79,null)),e.pickerGroupBorder=t("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:v.Color.white,hcLight:"#0F4A85"},w.localize(80,null)),e.keybindingLabelBackground=t("keybindingLabel.background",{dark:new v.Color(new v.RGBA(128,128,128,.17)),light:new v.Color(new v.RGBA(221,221,221,.4)),hcDark:v.Color.transparent,hcLight:v.Color.transparent},w.localize(81,null)),e.keybindingLabelForeground=t("keybindingLabel.foreground",{dark:v.Color.fromHex("#CCCCCC"),light:v.Color.fromHex("#555555"),hcDark:v.Color.white,hcLight:e.foreground},w.localize(82,null)),e.keybindingLabelBorder=t("keybindingLabel.border",{dark:new v.Color(new v.RGBA(51,51,51,.6)),light:new v.Color(new v.RGBA(204,204,204,.4)),hcDark:new v.Color(new v.RGBA(111,195,223)),hcLight:e.contrastBorder},w.localize(83,null)),e.keybindingLabelBottomBorder=t("keybindingLabel.bottomBorder",{dark:new v.Color(new v.RGBA(68,68,68,.6)),light:new v.Color(new v.RGBA(187,187,187,.4)),hcDark:new v.Color(new v.RGBA(111,195,223)),hcLight:e.foreground},w.localize(84,null)),e.editorSelectionBackground=t("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},w.localize(85,null)),e.editorSelectionForeground=t("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:v.Color.white},w.localize(86,null)),e.editorInactiveSelection=t("editor.inactiveSelectionBackground",{light:_(e.editorSelectionBackground,.5),dark:_(e.editorSelectionBackground,.5),hcDark:_(e.editorSelectionBackground,.7),hcLight:_(e.editorSelectionBackground,.5)},w.localize(87,null),!0),e.editorSelectionHighlight=t("editor.selectionHighlightBackground",{light:S(e.editorSelectionBackground,e.editorBackground,.3,.6),dark:S(e.editorSelectionBackground,e.editorBackground,.3,.6),hcDark:null,hcLight:null},w.localize(88,null),!0),e.editorSelectionHighlightBorder=t("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:e.activeContrastBorder,hcLight:e.activeContrastBorder},w.localize(89,null)),e.editorFindMatch=t("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},w.localize(90,null)),e.editorFindMatchHighlight=t("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},w.localize(91,null),!0),e.editorFindRangeHighlight=t("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},w.localize(92,null),!0),e.editorFindMatchBorder=t("editor.findMatchBorder",{light:null,dark:null,hcDark:e.activeContrastBorder,hcLight:e.activeContrastBorder},w.localize(93,null)),e.editorFindMatchHighlightBorder=t("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:e.activeContrastBorder,hcLight:e.activeContrastBorder},w.localize(94,null)),e.editorFindRangeHighlightBorder=t("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:_(e.activeContrastBorder,.4),hcLight:_(e.activeContrastBorder,.4)},w.localize(95,null),!0),e.searchEditorFindMatch=t("searchEditor.findMatchBackground",{light:_(e.editorFindMatchHighlight,.66),dark:_(e.editorFindMatchHighlight,.66),hcDark:e.editorFindMatchHighlight,hcLight:e.editorFindMatchHighlight},w.localize(96,null)),e.searchEditorFindMatchBorder=t("searchEditor.findMatchBorder",{light:_(e.editorFindMatchHighlightBorder,.66),dark:_(e.editorFindMatchHighlightBorder,.66),hcDark:e.editorFindMatchHighlightBorder,hcLight:e.editorFindMatchHighlightBorder},w.localize(97,null)),e.editorHoverHighlight=t("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},w.localize(98,null),!0),e.editorHoverBackground=t("editorHoverWidget.background",{light:e.editorWidgetBackground,dark:e.editorWidgetBackground,hcDark:e.editorWidgetBackground,hcLight:e.editorWidgetBackground},w.localize(99,null)),e.editorHoverForeground=t("editorHoverWidget.foreground",{light:e.editorWidgetForeground,dark:e.editorWidgetForeground,hcDark:e.editorWidgetForeground,hcLight:e.editorWidgetForeground},w.localize(100,null)),e.editorHoverBorder=t("editorHoverWidget.border",{light:e.editorWidgetBorder,dark:e.editorWidgetBorder,hcDark:e.editorWidgetBorder,hcLight:e.editorWidgetBorder},w.localize(101,null)),e.editorHoverStatusBarBackground=t("editorHoverWidget.statusBarBackground",{dark:f(e.editorHoverBackground,.2),light:g(e.editorHoverBackground,.05),hcDark:e.editorWidgetBackground,hcLight:e.editorWidgetBackground},w.localize(102,null)),e.editorActiveLinkForeground=t("editorLink.activeForeground",{dark:"#4E94CE",light:v.Color.blue,hcDark:v.Color.cyan,hcLight:"#292929"},w.localize(103,null)),e.editorInlayHintForeground=t("editorInlayHint.foreground",{dark:_(e.badgeForeground,.8),light:_(e.badgeForeground,.8),hcDark:e.badgeForeground,hcLight:e.badgeForeground},w.localize(104,null)),e.editorInlayHintBackground=t("editorInlayHint.background",{dark:_(e.badgeBackground,.6),light:_(e.badgeBackground,.3),hcDark:e.badgeBackground,hcLight:e.badgeBackground},w.localize(105,null)),e.editorInlayHintTypeForeground=t("editorInlayHint.typeForeground",{dark:e.editorInlayHintForeground,light:e.editorInlayHintForeground,hcDark:e.editorInlayHintForeground,hcLight:e.editorInlayHintForeground},w.localize(106,null)),e.editorInlayHintTypeBackground=t("editorInlayHint.typeBackground",{dark:e.editorInlayHintBackground,light:e.editorInlayHintBackground,hcDark:e.editorInlayHintBackground,hcLight:e.editorInlayHintBackground},w.localize(107,null)),e.editorInlayHintParameterForeground=t("editorInlayHint.parameterForeground",{dark:e.editorInlayHintForeground,light:e.editorInlayHintForeground,hcDark:e.editorInlayHintForeground,hcLight:e.editorInlayHintForeground},w.localize(108,null)),e.editorInlayHintParameterBackground=t("editorInlayHint.parameterBackground",{dark:e.editorInlayHintBackground,light:e.editorInlayHintBackground,hcDark:e.editorInlayHintBackground,hcLight:e.editorInlayHintBackground},w.localize(109,null)),e.editorLightBulbForeground=t("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},w.localize(110,null)),e.editorLightBulbAutoFixForeground=t("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},w.localize(111,null)),e.defaultInsertColor=new v.Color(new v.RGBA(155,185,85,.2)),e.defaultRemoveColor=new v.Color(new v.RGBA(255,0,0,.2)),e.diffInserted=t("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c66",hcDark:null,hcLight:null},w.localize(112,null),!0),e.diffRemoved=t("diffEditor.removedTextBackground",{dark:"#ff000066",light:"#ff00004d",hcDark:null,hcLight:null},w.localize(113,null),!0),e.diffInsertedLine=t("diffEditor.insertedLineBackground",{dark:e.defaultInsertColor,light:e.defaultInsertColor,hcDark:null,hcLight:null},w.localize(114,null),!0),e.diffRemovedLine=t("diffEditor.removedLineBackground",{dark:e.defaultRemoveColor,light:e.defaultRemoveColor,hcDark:null,hcLight:null},w.localize(115,null),!0),e.diffInsertedLineGutter=t("diffEditorGutter.insertedLineBackground",{dark:null,light:null,hcDark:null,hcLight:null},w.localize(116,null)),e.diffRemovedLineGutter=t("diffEditorGutter.removedLineBackground",{dark:null,light:null,hcDark:null,hcLight:null},w.localize(117,null)),e.diffOverviewRulerInserted=t("diffEditorOverview.insertedForeground",{dark:null,light:null,hcDark:null,hcLight:null},w.localize(118,null)),e.diffOverviewRulerRemoved=t("diffEditorOverview.removedForeground",{dark:null,light:null,hcDark:null,hcLight:null},w.localize(119,null)),e.diffInsertedOutline=t("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},w.localize(120,null)),e.diffRemovedOutline=t("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},w.localize(121,null)),e.diffBorder=t("diffEditor.border",{dark:null,light:null,hcDark:e.contrastBorder,hcLight:e.contrastBorder},w.localize(122,null)),e.diffDiagonalFill=t("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},w.localize(123,null)),e.listFocusBackground=t("list.focusBackground",{dark:null,light:null,hcDark:null,hcLight:null},w.localize(124,null)),e.listFocusForeground=t("list.focusForeground",{dark:null,light:null,hcDark:null,hcLight:null},w.localize(125,null)),e.listFocusOutline=t("list.focusOutline",{dark:e.focusBorder,light:e.focusBorder,hcDark:e.activeContrastBorder,hcLight:e.activeContrastBorder},w.localize(126,null)),e.listFocusAndSelectionOutline=t("list.focusAndSelectionOutline",{dark:null,light:null,hcDark:null,hcLight:null},w.localize(127,null)),e.listActiveSelectionBackground=t("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:v.Color.fromHex("#0F4A85").transparent(.1)},w.localize(128,null)),e.listActiveSelectionForeground=t("list.activeSelectionForeground",{dark:v.Color.white,light:v.Color.white,hcDark:null,hcLight:null},w.localize(129,null)),e.listActiveSelectionIconForeground=t("list.activeSelectionIconForeground",{dark:null,light:null,hcDark:null,hcLight:null},w.localize(130,null)),e.listInactiveSelectionBackground=t("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:v.Color.fromHex("#0F4A85").transparent(.1)},w.localize(131,null)),e.listInactiveSelectionForeground=t("list.inactiveSelectionForeground",{dark:null,light:null,hcDark:null,hcLight:null},w.localize(132,null)),e.listInactiveSelectionIconForeground=t("list.inactiveSelectionIconForeground",{dark:null,light:null,hcDark:null,hcLight:null},w.localize(133,null)),e.listInactiveFocusBackground=t("list.inactiveFocusBackground",{dark:null,light:null,hcDark:null,hcLight:null},w.localize(134,null)),e.listInactiveFocusOutline=t("list.inactiveFocusOutline",{dark:null,light:null,hcDark:null,hcLight:null},w.localize(135,null)),e.listHoverBackground=t("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:v.Color.fromHex("#0F4A85").transparent(.1)},w.localize(136,null)),e.listHoverForeground=t("list.hoverForeground",{dark:null,light:null,hcDark:null,hcLight:null},w.localize(137,null)),e.listDropBackground=t("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},w.localize(138,null)),e.listHighlightForeground=t("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:e.focusBorder,hcLight:e.focusBorder},w.localize(139,null)),e.listFocusHighlightForeground=t("list.focusHighlightForeground",{dark:e.listHighlightForeground,light:m(e.listActiveSelectionBackground,e.listHighlightForeground,"#BBE7FF"),hcDark:e.listHighlightForeground,hcLight:e.listHighlightForeground},w.localize(140,null)),e.listInvalidItemForeground=t("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},w.localize(141,null)),e.listErrorForeground=t("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},w.localize(142,null)),e.listWarningForeground=t("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},w.localize(143,null)),e.listFilterWidgetBackground=t("listFilterWidget.background",{light:g(e.editorWidgetBackground,0),dark:f(e.editorWidgetBackground,0),hcDark:e.editorWidgetBackground,hcLight:e.editorWidgetBackground},w.localize(144,null)),e.listFilterWidgetOutline=t("listFilterWidget.outline",{dark:v.Color.transparent,light:v.Color.transparent,hcDark:"#f38518",hcLight:"#007ACC"},w.localize(145,null)),e.listFilterWidgetNoMatchesOutline=t("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:e.contrastBorder,hcLight:e.contrastBorder},w.localize(146,null)),e.listFilterWidgetShadow=t("listFilterWidget.shadow",{dark:e.widgetShadow,light:e.widgetShadow,hcDark:e.widgetShadow,hcLight:e.widgetShadow},w.localize(147,null)),e.listFilterMatchHighlight=t("list.filterMatchBackground",{dark:e.editorFindMatchHighlight,light:e.editorFindMatchHighlight,hcDark:null,hcLight:null},w.localize(148,null)),e.listFilterMatchHighlightBorder=t("list.filterMatchBorder",{dark:e.editorFindMatchHighlightBorder,light:e.editorFindMatchHighlightBorder,hcDark:e.contrastBorder,hcLight:e.activeContrastBorder},w.localize(149,null)),e.treeIndentGuidesStroke=t("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},w.localize(150,null)),e.tableColumnsBorder=t("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},w.localize(151,null)),e.tableOddRowsBackgroundColor=t("tree.tableOddRowsBackground",{dark:_(e.foreground,.04),light:_(e.foreground,.04),hcDark:null,hcLight:null},w.localize(152,null)),e.listDeemphasizedForeground=t("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},w.localize(153,null)),e._deprecatedQuickInputListFocusBackground=t("quickInput.list.focusBackground",{dark:null,light:null,hcDark:null,hcLight:null},"",void 0,w.localize(154,null)),e.quickInputListFocusForeground=t("quickInputList.focusForeground",{dark:e.listActiveSelectionForeground,light:e.listActiveSelectionForeground,hcDark:e.listActiveSelectionForeground,hcLight:e.listActiveSelectionForeground},w.localize(155,null)),e.quickInputListFocusIconForeground=t("quickInputList.focusIconForeground",{dark:e.listActiveSelectionIconForeground,light:e.listActiveSelectionIconForeground,hcDark:e.listActiveSelectionIconForeground,hcLight:e.listActiveSelectionIconForeground},w.localize(156,null)),e.quickInputListFocusBackground=t("quickInputList.focusBackground",{dark:p(e._deprecatedQuickInputListFocusBackground,e.listActiveSelectionBackground),light:p(e._deprecatedQuickInputListFocusBackground,e.listActiveSelectionBackground),hcDark:null,hcLight:null},w.localize(157,null)),e.menuBorder=t("menu.border",{dark:null,light:null,hcDark:e.contrastBorder,hcLight:e.contrastBorder},w.localize(158,null)),e.menuForeground=t("menu.foreground",{dark:e.selectForeground,light:e.foreground,hcDark:e.selectForeground,hcLight:e.selectForeground},w.localize(159,null)),e.menuBackground=t("menu.background",{dark:e.selectBackground,light:e.selectBackground,hcDark:e.selectBackground,hcLight:e.selectBackground},w.localize(160,null)),e.menuSelectionForeground=t("menu.selectionForeground",{dark:e.listActiveSelectionForeground,light:e.listActiveSelectionForeground,hcDark:e.listActiveSelectionForeground,hcLight:e.listActiveSelectionForeground},w.localize(161,null)),e.menuSelectionBackground=t("menu.selectionBackground",{dark:e.listActiveSelectionBackground,light:e.listActiveSelectionBackground,hcDark:e.listActiveSelectionBackground,hcLight:e.listActiveSelectionBackground},w.localize(162,null)),e.menuSelectionBorder=t("menu.selectionBorder",{dark:null,light:null,hcDark:e.activeContrastBorder,hcLight:e.activeContrastBorder},w.localize(163,null)),e.menuSeparatorBackground=t("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:e.contrastBorder,hcLight:e.contrastBorder},w.localize(164,null)),e.toolbarHoverBackground=t("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},w.localize(165,null)),e.toolbarHoverOutline=t("toolbar.hoverOutline",{dark:null,light:null,hcDark:e.activeContrastBorder,hcLight:e.activeContrastBorder},w.localize(166,null)),e.toolbarActiveBackground=t("toolbar.activeBackground",{dark:f(e.toolbarHoverBackground,.1),light:g(e.toolbarHoverBackground,.1),hcDark:null,hcLight:null},w.localize(167,null)),e.snippetTabstopHighlightBackground=t("editor.snippetTabstopHighlightBackground",{dark:new v.Color(new v.RGBA(124,124,124,.3)),light:new v.Color(new v.RGBA(10,50,100,.2)),hcDark:new v.Color(new v.RGBA(124,124,124,.3)),hcLight:new v.Color(new v.RGBA(10,50,100,.2))},w.localize(168,null)),e.snippetTabstopHighlightBorder=t("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hcDark:null,hcLight:null},w.localize(169,null)),e.snippetFinalTabstopHighlightBackground=t("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hcDark:null,hcLight:null},w.localize(170,null)),e.snippetFinalTabstopHighlightBorder=t("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new v.Color(new v.RGBA(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},w.localize(171,null)),e.breadcrumbsForeground=t("breadcrumb.foreground",{light:_(e.foreground,.8),dark:_(e.foreground,.8),hcDark:_(e.foreground,.8),hcLight:_(e.foreground,.8)},w.localize(172,null)),e.breadcrumbsBackground=t("breadcrumb.background",{light:e.editorBackground,dark:e.editorBackground,hcDark:e.editorBackground,hcLight:e.editorBackground},w.localize(173,null)),e.breadcrumbsFocusForeground=t("breadcrumb.focusForeground",{light:g(e.foreground,.2),dark:f(e.foreground,.1),hcDark:f(e.foreground,.1),hcLight:f(e.foreground,.1)},w.localize(174,null)),e.breadcrumbsActiveSelectionForeground=t("breadcrumb.activeSelectionForeground",{light:g(e.foreground,.2),dark:f(e.foreground,.1),hcDark:f(e.foreground,.1),hcLight:f(e.foreground,.1)},w.localize(175,null)),e.breadcrumbsPickerBackground=t("breadcrumbPicker.background",{light:e.editorWidgetBackground,dark:e.editorWidgetBackground,hcDark:e.editorWidgetBackground,hcLight:e.editorWidgetBackground},w.localize(176,null));const o=.5,s=v.Color.fromHex("#40C8AE").transparent(o),d=v.Color.fromHex("#40A6FF").transparent(o),l=v.Color.fromHex("#606060").transparent(.4),a=.4,r=1;e.mergeCurrentHeaderBackground=t("merge.currentHeaderBackground",{dark:s,light:s,hcDark:null,hcLight:null},w.localize(177,null),!0),e.mergeCurrentContentBackground=t("merge.currentContentBackground",{dark:_(e.mergeCurrentHeaderBackground,a),light:_(e.mergeCurrentHeaderBackground,a),hcDark:_(e.mergeCurrentHeaderBackground,a),hcLight:_(e.mergeCurrentHeaderBackground,a)},w.localize(178,null),!0),e.mergeIncomingHeaderBackground=t("merge.incomingHeaderBackground",{dark:d,light:d,hcDark:null,hcLight:null},w.localize(179,null),!0),e.mergeIncomingContentBackground=t("merge.incomingContentBackground",{dark:_(e.mergeIncomingHeaderBackground,a),light:_(e.mergeIncomingHeaderBackground,a),hcDark:_(e.mergeIncomingHeaderBackground,a),hcLight:_(e.mergeIncomingHeaderBackground,a)},w.localize(180,null),!0),e.mergeCommonHeaderBackground=t("merge.commonHeaderBackground",{dark:l,light:l,hcDark:null,hcLight:null},w.localize(181,null),!0),e.mergeCommonContentBackground=t("merge.commonContentBackground",{dark:_(e.mergeCommonHeaderBackground,a),light:_(e.mergeCommonHeaderBackground,a),hcDark:_(e.mergeCommonHeaderBackground,a),hcLight:_(e.mergeCommonHeaderBackground,a)},w.localize(182,null),!0),e.mergeBorder=t("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},w.localize(183,null)),e.overviewRulerCurrentContentForeground=t("editorOverviewRuler.currentContentForeground",{dark:_(e.mergeCurrentHeaderBackground,r),light:_(e.mergeCurrentHeaderBackground,r),hcDark:e.mergeBorder,hcLight:e.mergeBorder},w.localize(184,null)),e.overviewRulerIncomingContentForeground=t("editorOverviewRuler.incomingContentForeground",{dark:_(e.mergeIncomingHeaderBackground,r),light:_(e.mergeIncomingHeaderBackground,r),hcDark:e.mergeBorder,hcLight:e.mergeBorder},w.localize(185,null)),e.overviewRulerCommonContentForeground=t("editorOverviewRuler.commonContentForeground",{dark:_(e.mergeCommonHeaderBackground,r),light:_(e.mergeCommonHeaderBackground,r),hcDark:e.mergeBorder,hcLight:e.mergeBorder},w.localize(186,null)),e.overviewRulerFindMatchForeground=t("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:""},w.localize(187,null),!0),e.overviewRulerSelectionHighlightForeground=t("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hcDark:"#A0A0A0CC",hcLight:"#A0A0A0CC"},w.localize(188,null),!0),e.minimapFindMatch=t("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},w.localize(189,null),!0),e.minimapSelectionOccurrenceHighlight=t("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},w.localize(190,null),!0),e.minimapSelection=t("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},w.localize(191,null),!0),e.minimapError=t("minimap.errorHighlight",{dark:new v.Color(new v.RGBA(255,18,18,.7)),light:new v.Color(new v.RGBA(255,18,18,.7)),hcDark:new v.Color(new v.RGBA(255,50,50,1)),hcLight:"#B5200D"},w.localize(192,null)),e.minimapWarning=t("minimap.warningHighlight",{dark:e.editorWarningForeground,light:e.editorWarningForeground,hcDark:e.editorWarningBorder,hcLight:e.editorWarningBorder},w.localize(193,null)),e.minimapBackground=t("minimap.background",{dark:null,light:null,hcDark:null,hcLight:null},w.localize(194,null)),e.minimapForegroundOpacity=t("minimap.foregroundOpacity",{dark:v.Color.fromHex("#000f"),light:v.Color.fromHex("#000f"),hcDark:v.Color.fromHex("#000f"),hcLight:v.Color.fromHex("#000f")},w.localize(195,null)),e.minimapSliderBackground=t("minimapSlider.background",{light:_(e.scrollbarSliderBackground,.5),dark:_(e.scrollbarSliderBackground,.5),hcDark:_(e.scrollbarSliderBackground,.5),hcLight:_(e.scrollbarSliderBackground,.5)},w.localize(196,null)),e.minimapSliderHoverBackground=t("minimapSlider.hoverBackground",{light:_(e.scrollbarSliderHoverBackground,.5),dark:_(e.scrollbarSliderHoverBackground,.5),hcDark:_(e.scrollbarSliderHoverBackground,.5),hcLight:_(e.scrollbarSliderHoverBackground,.5)},w.localize(197,null)),e.minimapSliderActiveBackground=t("minimapSlider.activeBackground",{light:_(e.scrollbarSliderActiveBackground,.5),dark:_(e.scrollbarSliderActiveBackground,.5),hcDark:_(e.scrollbarSliderActiveBackground,.5),hcLight:_(e.scrollbarSliderActiveBackground,.5)},w.localize(198,null)),e.problemsErrorIconForeground=t("problemsErrorIcon.foreground",{dark:e.editorErrorForeground,light:e.editorErrorForeground,hcDark:e.editorErrorForeground,hcLight:e.editorErrorForeground},w.localize(199,null)),e.problemsWarningIconForeground=t("problemsWarningIcon.foreground",{dark:e.editorWarningForeground,light:e.editorWarningForeground,hcDark:e.editorWarningForeground,hcLight:e.editorWarningForeground},w.localize(200,null)),e.problemsInfoIconForeground=t("problemsInfoIcon.foreground",{dark:e.editorInfoForeground,light:e.editorInfoForeground,hcDark:e.editorInfoForeground,hcLight:e.editorInfoForeground},w.localize(201,null)),e.chartsForeground=t("charts.foreground",{dark:e.foreground,light:e.foreground,hcDark:e.foreground,hcLight:e.foreground},w.localize(202,null)),e.chartsLines=t("charts.lines",{dark:_(e.foreground,.5),light:_(e.foreground,.5),hcDark:_(e.foreground,.5),hcLight:_(e.foreground,.5)},w.localize(203,null)),e.chartsRed=t("charts.red",{dark:e.editorErrorForeground,light:e.editorErrorForeground,hcDark:e.editorErrorForeground,hcLight:e.editorErrorForeground},w.localize(204,null)),e.chartsBlue=t("charts.blue",{dark:e.editorInfoForeground,light:e.editorInfoForeground,hcDark:e.editorInfoForeground,hcLight:e.editorInfoForeground},w.localize(205,null)),e.chartsYellow=t("charts.yellow",{dark:e.editorWarningForeground,light:e.editorWarningForeground,hcDark:e.editorWarningForeground,hcLight:e.editorWarningForeground},w.localize(206,null)),e.chartsOrange=t("charts.orange",{dark:e.minimapFindMatch,light:e.minimapFindMatch,hcDark:e.minimapFindMatch,hcLight:e.minimapFindMatch},w.localize(207,null)),e.chartsGreen=t("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},w.localize(208,null)),e.chartsPurple=t("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},w.localize(209,null));function c(I,R){var F,O,x;switch(I.op){case 0:return(F=E(I.value,R))===null||F===void 0?void 0:F.darken(I.factor);case 1:return(O=E(I.value,R))===null||O===void 0?void 0:O.lighten(I.factor);case 2:return(x=E(I.value,R))===null||x===void 0?void 0:x.transparent(I.factor);case 3:for(const M of I.values){const P=E(M,R);if(P)return P}return;case 5:return E(R.defines(I.if)?I.then:I.else,R);case 4:{const M=E(I.value,R);if(!M)return;const P=E(I.background,R);return P?M.isDarkerThan(P)?v.Color.getLighterColor(M,P,I.factor).transparent(I.transparency):v.Color.getDarkerColor(M,P,I.factor).transparent(I.transparency):M.transparent(I.factor*I.transparency)}default:throw(0,D.assertNever)(I)}}e.executeTransform=c;function g(I,R){return{op:0,value:I,factor:R}}e.darken=g;function f(I,R){return{op:1,value:I,factor:R}}e.lighten=f;function _(I,R){return{op:2,value:I,factor:R}}e.transparent=_;function p(...I){return{op:3,values:I}}e.oneOf=p;function m(I,R,F){return{op:5,if:I,then:R,else:F}}e.ifDefinedThenElse=m;function S(I,R,F,O){return{op:4,value:I,background:R,factor:F,transparency:O}}function E(I,R){if(I!==null){if(typeof I=="string")return I[0]==="#"?v.Color.fromHex(I):R.getColor(I);if(I instanceof v.Color)return I;if(typeof I=="object")return c(I,R)}}e.resolveColorValue=E,e.workbenchColorsSchemaId="vscode://schemas/workbench-colors";const L=C.Registry.as(b.Extensions.JSONContribution);L.registerSchema(e.workbenchColorsSchemaId,n.getColorSchema());const N=new y.RunOnceScheduler(()=>L.notifySchemaChanged(e.workbenchColorsSchemaId),200);n.onDidChangeSchema(()=>{N.isScheduled()||N.schedule()})}),define(oe[141],se([1,0,7,132,67,10,2,25]),function(q,e,y,v,k,D,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DynamicCssRules=e.GlobalEditorPointerMoveMonitor=e.EditorPointerEventFactory=e.EditorMouseEventFactory=e.EditorMouseEvent=e.createCoordinatesRelativeToEditor=e.createEditorPagePosition=e.CoordinatesRelativeToEditor=e.EditorPagePosition=e.ClientCoordinates=e.PageCoordinates=void 0;class C{constructor(f,_){this.x=f,this.y=_,this._pageCoordinatesBrand=void 0}toClientCoordinates(){return new h(this.x-y.StandardWindow.scrollX,this.y-y.StandardWindow.scrollY)}}e.PageCoordinates=C;class h{constructor(f,_){this.clientX=f,this.clientY=_,this._clientCoordinatesBrand=void 0}toPageCoordinates(){return new C(this.clientX+y.StandardWindow.scrollX,this.clientY+y.StandardWindow.scrollY)}}e.ClientCoordinates=h;class u{constructor(f,_,p,m){this.x=f,this.y=_,this.width=p,this.height=m,this._editorPagePositionBrand=void 0}}e.EditorPagePosition=u;class n{constructor(f,_){this.x=f,this.y=_,this._positionRelativeToEditorBrand=void 0}}e.CoordinatesRelativeToEditor=n;function i(g){const f=y.getDomNodePagePosition(g);return new u(f.left,f.top,f.width,f.height)}e.createEditorPagePosition=i;function t(g,f,_){const p=f.width/g.offsetWidth,m=f.height/g.offsetHeight,S=(_.x-f.x)/p,E=(_.y-f.y)/m;return new n(S,E)}e.createCoordinatesRelativeToEditor=t;class o extends k.StandardMouseEvent{constructor(f,_,p){super(f),this._editorMouseEventBrand=void 0,this.isFromPointerCapture=_,this.pos=new C(this.posx,this.posy),this.editorPos=i(p),this.relativePos=t(p,this.editorPos,this.pos)}}e.EditorMouseEvent=o;class s{constructor(f){this._editorViewDomNode=f}_create(f){return new o(f,!1,this._editorViewDomNode)}onContextMenu(f,_){return y.addDisposableListener(f,"contextmenu",p=>{_(this._create(p))})}onMouseUp(f,_){return y.addDisposableListener(f,"mouseup",p=>{_(this._create(p))})}onMouseDown(f,_){return y.addDisposableListener(f,y.EventType.MOUSE_DOWN,p=>{_(this._create(p))})}onPointerDown(f,_){return y.addDisposableListener(f,y.EventType.POINTER_DOWN,p=>{_(this._create(p),p.pointerId)})}onMouseLeave(f,_){return y.addDisposableListener(f,y.EventType.MOUSE_LEAVE,p=>{_(this._create(p))})}onMouseMove(f,_){return y.addDisposableListener(f,"mousemove",p=>_(this._create(p)))}}e.EditorMouseEventFactory=s;class d{constructor(f){this._editorViewDomNode=f}_create(f){return new o(f,!1,this._editorViewDomNode)}onPointerUp(f,_){return y.addDisposableListener(f,"pointerup",p=>{_(this._create(p))})}onPointerDown(f,_){return y.addDisposableListener(f,y.EventType.POINTER_DOWN,p=>{_(this._create(p),p.pointerId)})}onPointerLeave(f,_){return y.addDisposableListener(f,y.EventType.POINTER_LEAVE,p=>{_(this._create(p))})}onPointerMove(f,_){return y.addDisposableListener(f,"pointermove",p=>_(this._create(p)))}}e.EditorPointerEventFactory=d;class l extends w.Disposable{constructor(f){super(),this._editorViewDomNode=f,this._globalPointerMoveMonitor=this._register(new v.GlobalPointerMoveMonitor),this._keydownListener=null}startMonitoring(f,_,p,m,S){this._keydownListener=y.addStandardDisposableListener(document,"keydown",E=>{E.toKeybinding().isModifierKey()||this._globalPointerMoveMonitor.stopMonitoring(!0,E.browserEvent)},!0),this._globalPointerMoveMonitor.startMonitoring(f,_,p,E=>{m(new o(E,!0,this._editorViewDomNode))},E=>{this._keydownListener.dispose(),S(E)})}stopMonitoring(){this._globalPointerMoveMonitor.stopMonitoring(!0)}}e.GlobalEditorPointerMoveMonitor=l;class a{constructor(f){this._editor=f,this._instanceId=++a._idPool,this._counter=0,this._rules=new Map,this._garbageCollectionScheduler=new D.RunOnceScheduler(()=>this.garbageCollect(),1e3)}createClassNameRef(f){const _=this.getOrCreateRule(f);return _.increaseRefCount(),{className:_.className,dispose:()=>{_.decreaseRefCount(),this._garbageCollectionScheduler.schedule()}}}getOrCreateRule(f){const _=this.computeUniqueKey(f);let p=this._rules.get(_);if(!p){const m=this._counter++;p=new r(_,`dyn-rule-${this._instanceId}-${m}`,y.isInShadowDOM(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0,f),this._rules.set(_,p)}return p}computeUniqueKey(f){return JSON.stringify(f)}garbageCollect(){for(const f of this._rules.values())f.hasReferences()||(this._rules.delete(f.key),f.dispose())}}e.DynamicCssRules=a,a._idPool=0;class r{constructor(f,_,p,m){this.key=f,this.className=_,this.properties=m,this._referenceCount=0,this._styleElement=y.createStyleSheet(p),this._styleElement.textContent=this.getCssText(this.className,this.properties)}getCssText(f,_){let p=`.${f} {`;for(const m in _){const S=_[m];let E;typeof S=="object"?E=`var(${(0,b.asCssVariableName)(S.id)})`:E=S,p+=` ${c(m)}: ${E};`}return p+=` }`,p}dispose(){this._styleElement.remove()}increaseRefCount(){this._referenceCount++}decreaseRefCount(){this._referenceCount--}hasReferences(){return this._referenceCount>0}}function c(g){return g.replace(/(^[A-Z])/,([f])=>f.toLowerCase()).replace(/([A-Z])/g,([f])=>`-${f.toLowerCase()}`)}}),define(oe[142],se([1,0,25]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.attachMenuStyler=e.defaultMenuStyles=e.defaultListStyles=e.attachListStyler=e.attachBadgeStyler=e.attachStyler=e.computeStyles=void 0;function v(C,h){const u=Object.create(null);for(const n in h){const i=h[n];i&&(u[n]=(0,y.resolveColorValue)(i,C))}return u}e.computeStyles=v;function k(C,h,u){function n(){const i=v(C.getColorTheme(),h);typeof u=="function"?u(i):u.style(i)}return n(),C.onDidColorThemeChange(n)}e.attachStyler=k;function D(C,h,u){return k(h,{badgeBackground:u?.badgeBackground||y.badgeBackground,badgeForeground:u?.badgeForeground||y.badgeForeground,badgeBorder:y.contrastBorder},C)}e.attachBadgeStyler=D;function w(C,h,u){return k(h,Object.assign(Object.assign({},e.defaultListStyles),u||{}),C)}e.attachListStyler=w,e.defaultListStyles={listFocusBackground:y.listFocusBackground,listFocusForeground:y.listFocusForeground,listFocusOutline:y.listFocusOutline,listActiveSelectionBackground:y.listActiveSelectionBackground,listActiveSelectionForeground:y.listActiveSelectionForeground,listActiveSelectionIconForeground:y.listActiveSelectionIconForeground,listFocusAndSelectionOutline:y.listFocusAndSelectionOutline,listFocusAndSelectionBackground:y.listActiveSelectionBackground,listFocusAndSelectionForeground:y.listActiveSelectionForeground,listInactiveSelectionBackground:y.listInactiveSelectionBackground,listInactiveSelectionIconForeground:y.listInactiveSelectionIconForeground,listInactiveSelectionForeground:y.listInactiveSelectionForeground,listInactiveFocusBackground:y.listInactiveFocusBackground,listInactiveFocusOutline:y.listInactiveFocusOutline,listHoverBackground:y.listHoverBackground,listHoverForeground:y.listHoverForeground,listDropBackground:y.listDropBackground,listSelectionOutline:y.activeContrastBorder,listHoverOutline:y.activeContrastBorder,listFilterWidgetBackground:y.listFilterWidgetBackground,listFilterWidgetOutline:y.listFilterWidgetOutline,listFilterWidgetNoMatchesOutline:y.listFilterWidgetNoMatchesOutline,listFilterWidgetShadow:y.listFilterWidgetShadow,treeIndentGuidesStroke:y.treeIndentGuidesStroke,tableColumnsBorder:y.tableColumnsBorder,tableOddRowsBackgroundColor:y.tableOddRowsBackgroundColor,inputActiveOptionBorder:y.inputActiveOptionBorder,inputActiveOptionForeground:y.inputActiveOptionForeground,inputActiveOptionBackground:y.inputActiveOptionBackground,inputBackground:y.inputBackground,inputForeground:y.inputForeground,inputBorder:y.inputBorder,inputValidationInfoBackground:y.inputValidationInfoBackground,inputValidationInfoForeground:y.inputValidationInfoForeground,inputValidationInfoBorder:y.inputValidationInfoBorder,inputValidationWarningBackground:y.inputValidationWarningBackground,inputValidationWarningForeground:y.inputValidationWarningForeground,inputValidationWarningBorder:y.inputValidationWarningBorder,inputValidationErrorBackground:y.inputValidationErrorBackground,inputValidationErrorForeground:y.inputValidationErrorForeground,inputValidationErrorBorder:y.inputValidationErrorBorder},e.defaultMenuStyles={shadowColor:y.widgetShadow,borderColor:y.menuBorder,foregroundColor:y.menuForeground,backgroundColor:y.menuBackground,selectionForegroundColor:y.menuSelectionForeground,selectionBackgroundColor:y.menuSelectionBackground,selectionBorderColor:y.menuSelectionBorder,separatorColor:y.menuSeparatorBackground,scrollbarShadow:y.scrollbarShadow,scrollbarSliderBackground:y.scrollbarSliderBackground,scrollbarSliderHoverBackground:y.scrollbarSliderHoverBackground,scrollbarSliderActiveBackground:y.scrollbarSliderActiveBackground};function b(C,h,u){return k(h,Object.assign(Object.assign({},e.defaultMenuStyles),u),C)}e.attachMenuStyler=b}),define(oe[665],se([1,0,7,67,491,42,14,2,142]),function(q,e,y,v,k,D,w,b,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContextMenuHandler=void 0;class h{constructor(n,i,t,o,s){this.contextViewService=n,this.telemetryService=i,this.notificationService=t,this.keybindingService=o,this.themeService=s,this.focusToReturn=null,this.block=null,this.options={blockMouse:!0}}configure(n){this.options=n}showContextMenu(n){const i=n.getActions();if(!i.length)return;this.focusToReturn=document.activeElement;let t;const o=(0,y.isHTMLElement)(n.domForShadowRoot)?n.domForShadowRoot:void 0;this.contextViewService.showContextView({getAnchor:()=>n.getAnchor(),canRelayout:!1,anchorAlignment:n.anchorAlignment,anchorAxisAlignment:n.anchorAxisAlignment,render:s=>{const d=n.getMenuClassName?n.getMenuClassName():"";d&&(s.className+=" "+d),this.options.blockMouse&&(this.block=s.appendChild((0,y.$)(".context-view-block")),this.block.style.position="fixed",this.block.style.cursor="initial",this.block.style.left="0",this.block.style.top="0",this.block.style.width="100%",this.block.style.height="100%",this.block.style.zIndex="-1",(0,y.addDisposableListener)(this.block,y.EventType.MOUSE_DOWN,r=>r.stopPropagation()));const l=new b.DisposableStore,a=n.actionRunner||new D.ActionRunner;return a.onBeforeRun(this.onActionRun,this,l),a.onDidRun(this.onDidActionRun,this,l),t=new k.Menu(s,i,{actionViewItemProvider:n.getActionViewItem,context:n.getActionsContext?n.getActionsContext():null,actionRunner:a,getKeyBinding:n.getKeyBinding?n.getKeyBinding:r=>this.keybindingService.lookupKeybinding(r.id)}),l.add((0,C.attachMenuStyler)(t,this.themeService)),t.onDidCancel(()=>this.contextViewService.hideContextView(!0),null,l),t.onDidBlur(()=>this.contextViewService.hideContextView(!0),null,l),l.add((0,y.addDisposableListener)(window,y.EventType.BLUR,()=>this.contextViewService.hideContextView(!0))),l.add((0,y.addDisposableListener)(window,y.EventType.MOUSE_DOWN,r=>{if(r.defaultPrevented)return;const c=new v.StandardMouseEvent(r);let g=c.target;if(!c.rightButton){for(;g;){if(g===s)return;g=g.parentElement}this.contextViewService.hideContextView(!0)}})),(0,b.combinedDisposable)(l,t)},focus:()=>{t?.focus(!!n.autoSelectFirstItem)},onHide:s=>{var d;(d=n.onHide)===null||d===void 0||d.call(n,!!s),this.block&&(this.block.remove(),this.block=null),this.focusToReturn&&this.focusToReturn.focus()}},o,!!o)}onActionRun(n){this.telemetryService.publicLog2("workbenchActionExecuted",{id:n.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1),this.focusToReturn&&this.focusToReturn.focus()}onDidActionRun(n){n.error&&!(0,w.isCancellationError)(n.error)&&this.notificationService.error(n.error)}}e.ContextMenuHandler=h}),define(oe[56],se([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isDark=e.isHighContrast=e.ColorScheme=void 0;var y;(function(D){D.DARK="dark",D.LIGHT="light",D.HIGH_CONTRAST_DARK="hcDark",D.HIGH_CONTRAST_LIGHT="hcLight"})(y=e.ColorScheme||(e.ColorScheme={}));function v(D){return D===y.HIGH_CONTRAST_DARK||D===y.HIGH_CONTRAST_LIGHT}e.isHighContrast=v;function k(D){return D===y.DARK||D===y.HIGH_CONTRAST_DARK}e.isDark=k}),define(oe[295],se([1,0,41,33,17,402,125,130,114,56,36]),function(q,e,y,v,k,D,w,b,C,h,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewLine=e.ViewLineOptions=e.DomReadingContext=void 0;const n=function(){return k.isNative?!0:!(k.isLinux||y.isFirefox||y.isSafari)}();let i=!0;class t{constructor(_,p){this._domNode=_,this._clientRectDeltaLeft=0,this._clientRectScale=1,this._clientRectRead=!1,this.endNode=p}readClientRect(){if(!this._clientRectRead){this._clientRectRead=!0;const _=this._domNode.getBoundingClientRect();this._clientRectDeltaLeft=_.left,this._clientRectScale=_.width/this._domNode.offsetWidth}}get clientRectDeltaLeft(){return this._clientRectRead||this.readClientRect(),this._clientRectDeltaLeft}get clientRectScale(){return this._clientRectRead||this.readClientRect(),this._clientRectScale}}e.DomReadingContext=t;class o{constructor(_,p){this.themeType=p;const m=_.options,S=m.get(46);this.renderWhitespace=m.get(90),this.renderControlCharacters=m.get(85),this.spaceWidth=S.spaceWidth,this.middotWidth=S.middotWidth,this.wsmiddotWidth=S.wsmiddotWidth,this.useMonospaceOptimizations=S.isMonospace&&!m.get(29),this.canUseHalfwidthRightwardsArrow=S.canUseHalfwidthRightwardsArrow,this.lineHeight=m.get(61),this.stopRenderingLineAfter=m.get(107),this.fontLigatures=m.get(47)}equals(_){return this.themeType===_.themeType&&this.renderWhitespace===_.renderWhitespace&&this.renderControlCharacters===_.renderControlCharacters&&this.spaceWidth===_.spaceWidth&&this.middotWidth===_.middotWidth&&this.wsmiddotWidth===_.wsmiddotWidth&&this.useMonospaceOptimizations===_.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===_.canUseHalfwidthRightwardsArrow&&this.lineHeight===_.lineHeight&&this.stopRenderingLineAfter===_.stopRenderingLineAfter&&this.fontLigatures===_.fontLigatures}}e.ViewLineOptions=o;class s{constructor(_){this._options=_,this._isMaybeInvalid=!0,this._renderedViewLine=null}getDomNode(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null}setDomNode(_){if(this._renderedViewLine)this._renderedViewLine.domNode=(0,v.createFastDomNode)(_);else throw new Error("I have no rendered view line to set the dom node to...")}onContentChanged(){this._isMaybeInvalid=!0}onTokensChanged(){this._isMaybeInvalid=!0}onDecorationsChanged(){this._isMaybeInvalid=!0}onOptionsChanged(_){this._isMaybeInvalid=!0,this._options=_}onSelectionChanged(){return(0,h.isHighContrast)(this._options.themeType)||this._options.renderWhitespace==="selection"?(this._isMaybeInvalid=!0,!0):!1}renderLine(_,p,m,S){if(this._isMaybeInvalid===!1)return!1;this._isMaybeInvalid=!1;const E=m.getViewLineRenderingData(_),L=this._options,N=b.LineDecoration.filter(E.inlineDecorations,_,E.minColumn,E.maxColumn);let I=null;if((0,h.isHighContrast)(L.themeType)||this._options.renderWhitespace==="selection"){const x=m.selections;for(const M of x){if(M.endLineNumber<_||M.startLineNumber>_)continue;const P=M.startLineNumber===_?M.startColumn:E.minColumn,A=M.endLineNumber===_?M.endColumn:E.maxColumn;P<A&&((0,h.isHighContrast)(L.themeType)||this._options.renderWhitespace!=="selection"?N.push(new b.LineDecoration(P,A,"inline-selected-text",0)):(I||(I=[]),I.push(new C.LineRange(P-1,A-1))))}}const R=new C.RenderLineInput(L.useMonospaceOptimizations,L.canUseHalfwidthRightwardsArrow,E.content,E.continuesWithWrappedLine,E.isBasicASCII,E.containsRTL,E.minColumn-1,E.tokens,N,E.tabSize,E.startVisibleColumn,L.spaceWidth,L.middotWidth,L.wsmiddotWidth,L.stopRenderingLineAfter,L.renderWhitespace,L.renderControlCharacters,L.fontLigatures!==u.EditorFontLigatures.OFF,I);if(this._renderedViewLine&&this._renderedViewLine.input.equals(R))return!1;S.appendASCIIString('<div style="top:'),S.appendASCIIString(String(p)),S.appendASCIIString("px;height:"),S.appendASCIIString(String(this._options.lineHeight)),S.appendASCIIString('px;" class="'),S.appendASCIIString(s.CLASS_NAME),S.appendASCIIString('">');const F=(0,C.renderViewLine)(R,S);S.appendASCIIString("</div>");let O=null;return i&&n&&E.isBasicASCII&&L.useMonospaceOptimizations&&F.containsForeignElements===0&&E.content.length<300&&R.lineTokens.getCount()<100&&(O=new d(this._renderedViewLine?this._renderedViewLine.domNode:null,R,F.characterMapping)),O||(O=r(this._renderedViewLine?this._renderedViewLine.domNode:null,R,F.characterMapping,F.containsRTL,F.containsForeignElements)),this._renderedViewLine=O,!0}layoutLine(_,p){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(p),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))}getWidth(){return this._renderedViewLine?this._renderedViewLine.getWidth():0}getWidthIsFast(){return this._renderedViewLine?this._renderedViewLine.getWidthIsFast():!0}needsMonospaceFontCheck(){return this._renderedViewLine?this._renderedViewLine instanceof d:!1}monospaceAssumptionsAreValid(){return this._renderedViewLine&&this._renderedViewLine instanceof d?this._renderedViewLine.monospaceAssumptionsAreValid():i}onMonospaceAssumptionsInvalidated(){this._renderedViewLine&&this._renderedViewLine instanceof d&&(this._renderedViewLine=this._renderedViewLine.toSlowRenderedLine())}getVisibleRangesForRange(_,p,m,S){if(!this._renderedViewLine)return null;p=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,p)),m=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,m));const E=this._renderedViewLine.input.stopRenderingLineAfter;let L=!1;E!==-1&&p>E+1&&m>E+1&&(L=!0),E!==-1&&p>E+1&&(p=E+1),E!==-1&&m>E+1&&(m=E+1);const N=this._renderedViewLine.getVisibleRangesForRange(_,p,m,S);return N&&N.length>0?new w.VisibleRanges(L,N):null}getColumnOfNodeOffset(_,p,m){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(_,p,m):1}}e.ViewLine=s,s.CLASS_NAME="view-line";class d{constructor(_,p,m){this.domNode=_,this.input=p,this._characterMapping=m,this._charWidth=p.spaceWidth}getWidth(){return Math.round(this._getCharPosition(this._characterMapping.length))}getWidthIsFast(){return!0}monospaceAssumptionsAreValid(){if(!this.domNode)return i;const _=this.getWidth(),p=this.domNode.domNode.firstChild.offsetWidth;return Math.abs(_-p)>=2&&(console.warn("monospace assumptions have been violated, therefore disabling monospace optimizations!"),i=!1),i}toSlowRenderedLine(){return r(this.domNode,this.input,this._characterMapping,!1,0)}getVisibleRangesForRange(_,p,m,S){const E=this._getCharPosition(p),L=this._getCharPosition(m);return[new w.FloatHorizontalRange(E,L-E)]}_getCharPosition(_){const p=this._characterMapping.getHorizontalOffset(_);return this._charWidth*p}getColumnOfNodeOffset(_,p,m){const S=p.textContent.length;let E=-1;for(;p;)p=p.previousSibling,E++;return this._characterMapping.getColumn(new C.DomPosition(E,m),S)}}class l{constructor(_,p,m,S,E){if(this.domNode=_,this.input=p,this._characterMapping=m,this._isWhitespaceOnly=/^\s*$/.test(p.lineContent),this._containsForeignElements=E,this._cachedWidth=-1,this._pixelOffsetCache=null,!S||this._characterMapping.length===0){this._pixelOffsetCache=new Float32Array(Math.max(2,this._characterMapping.length+1));for(let L=0,N=this._characterMapping.length;L<=N;L++)this._pixelOffsetCache[L]=-1}}_getReadingTarget(_){return _.domNode.firstChild}getWidth(){return this.domNode?(this._cachedWidth===-1&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth),this._cachedWidth):0}getWidthIsFast(){return this._cachedWidth!==-1}getVisibleRangesForRange(_,p,m,S){if(!this.domNode)return null;if(this._pixelOffsetCache!==null){const E=this._readPixelOffset(this.domNode,_,p,S);if(E===-1)return null;const L=this._readPixelOffset(this.domNode,_,m,S);return L===-1?null:[new w.FloatHorizontalRange(E,L-E)]}return this._readVisibleRangesForRange(this.domNode,_,p,m,S)}_readVisibleRangesForRange(_,p,m,S,E){if(m===S){const L=this._readPixelOffset(_,p,m,E);return L===-1?null:[new w.FloatHorizontalRange(L,0)]}else return this._readRawVisibleRangesForRange(_,m,S,E)}_readPixelOffset(_,p,m,S){if(this._characterMapping.length===0){if(this._containsForeignElements===0||this._containsForeignElements===2)return 0;if(this._containsForeignElements===1)return this.getWidth();const E=this._getReadingTarget(_);return E.firstChild?E.firstChild.offsetWidth:0}if(this._pixelOffsetCache!==null){const E=this._pixelOffsetCache[m];if(E!==-1)return E;const L=this._actualReadPixelOffset(_,p,m,S);return this._pixelOffsetCache[m]=L,L}return this._actualReadPixelOffset(_,p,m,S)}_actualReadPixelOffset(_,p,m,S){if(this._characterMapping.length===0){const I=D.RangeUtil.readHorizontalRanges(this._getReadingTarget(_),0,0,0,0,S.clientRectDeltaLeft,S.clientRectScale,S.endNode);return!I||I.length===0?-1:I[0].left}if(m===this._characterMapping.length&&this._isWhitespaceOnly&&this._containsForeignElements===0)return this.getWidth();const E=this._characterMapping.getDomPosition(m),L=D.RangeUtil.readHorizontalRanges(this._getReadingTarget(_),E.partIndex,E.charIndex,E.partIndex,E.charIndex,S.clientRectDeltaLeft,S.clientRectScale,S.endNode);if(!L||L.length===0)return-1;const N=L[0].left;if(this.input.isBasicASCII){const I=this._characterMapping.getHorizontalOffset(m),R=Math.round(this.input.spaceWidth*I);if(Math.abs(R-N)<=1)return R}return N}_readRawVisibleRangesForRange(_,p,m,S){if(p===1&&m===this._characterMapping.length)return[new w.FloatHorizontalRange(0,this.getWidth())];const E=this._characterMapping.getDomPosition(p),L=this._characterMapping.getDomPosition(m);return D.RangeUtil.readHorizontalRanges(this._getReadingTarget(_),E.partIndex,E.charIndex,L.partIndex,L.charIndex,S.clientRectDeltaLeft,S.clientRectScale,S.endNode)}getColumnOfNodeOffset(_,p,m){const S=p.textContent.length;let E=-1;for(;p;)p=p.previousSibling,E++;return this._characterMapping.getColumn(new C.DomPosition(E,m),S)}}class a extends l{_readVisibleRangesForRange(_,p,m,S,E){const L=super._readVisibleRangesForRange(_,p,m,S,E);if(!L||L.length===0||m===S||m===1&&S===this._characterMapping.length)return L;if(!this.input.containsRTL){const N=this._readPixelOffset(_,p,S,E);if(N!==-1){const I=L[L.length-1];I.left<N&&(I.width=N-I.left)}}return L}}const r=function(){return y.isWebKit?c:g}();function c(f,_,p,m,S){return new a(f,_,p,m,S)}function g(f,_,p,m,S){return new l(f,_,p,m,S)}}),define(oe[296],se([1,0,141,47,295,11,3,66,7,233]),function(q,e,y,v,k,D,w,b,C,h){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.shadowCaretRangeFromPoint=e.MouseTargetFactory=e.HitTestContext=e.MouseTarget=e.PointerHandlerLastRenderData=void 0;class u{constructor(m=null){this.hitTarget=m,this.type=0}}class n{constructor(m,S,E){this.position=m,this.spanNode=S,this.injectedText=E,this.type=1}}var i;(function(p){function m(S,E,L){const N=S.getPositionFromDOMInfo(E,L);return N?new n(N,E,null):new u(E)}p.createFromDOMInfo=m})(i||(i={}));class t{constructor(m,S){this.lastViewCursorsRenderData=m,this.lastTextareaPosition=S}}e.PointerHandlerLastRenderData=t;class o{static _deduceRage(m,S=null){return!S&&m?new w.Range(m.lineNumber,m.column,m.lineNumber,m.column):S??null}static createUnknown(m,S,E){return{type:0,element:m,mouseColumn:S,position:E,range:this._deduceRage(E)}}static createTextarea(m,S){return{type:1,element:m,mouseColumn:S,position:null,range:null}}static createMargin(m,S,E,L,N,I){return{type:m,element:S,mouseColumn:E,position:L,range:N,detail:I}}static createViewZone(m,S,E,L,N){return{type:m,element:S,mouseColumn:E,position:L,range:this._deduceRage(L),detail:N}}static createContentText(m,S,E,L,N){return{type:6,element:m,mouseColumn:S,position:E,range:this._deduceRage(E,L),detail:N}}static createContentEmpty(m,S,E,L){return{type:7,element:m,mouseColumn:S,position:E,range:this._deduceRage(E),detail:L}}static createContentWidget(m,S,E){return{type:9,element:m,mouseColumn:S,position:null,range:null,detail:E}}static createScrollbar(m,S,E){return{type:11,element:m,mouseColumn:S,position:E,range:this._deduceRage(E)}}static createOverlayWidget(m,S,E){return{type:12,element:m,mouseColumn:S,position:null,range:null,detail:E}}static createOutsideEditor(m,S){return{type:13,element:null,mouseColumn:m,position:S,range:this._deduceRage(S)}}static _typeToString(m){return m===1?"TEXTAREA":m===2?"GUTTER_GLYPH_MARGIN":m===3?"GUTTER_LINE_NUMBERS":m===4?"GUTTER_LINE_DECORATIONS":m===5?"GUTTER_VIEW_ZONE":m===6?"CONTENT_TEXT":m===7?"CONTENT_EMPTY":m===8?"CONTENT_VIEW_ZONE":m===9?"CONTENT_WIDGET":m===10?"OVERVIEW_RULER":m===11?"SCROLLBAR":m===12?"OVERLAY_WIDGET":"UNKNOWN"}static toString(m){return this._typeToString(m.type)+": "+m.position+" - "+m.range+" - "+JSON.stringify(m.detail)}}e.MouseTarget=o;class s{static isTextArea(m){return m.length===2&&m[0]===3&&m[1]===6}static isChildOfViewLines(m){return m.length>=4&&m[0]===3&&m[3]===7}static isStrictChildOfViewLines(m){return m.length>4&&m[0]===3&&m[3]===7}static isChildOfScrollableElement(m){return m.length>=2&&m[0]===3&&m[1]===5}static isChildOfMinimap(m){return m.length>=2&&m[0]===3&&m[1]===8}static isChildOfContentWidgets(m){return m.length>=4&&m[0]===3&&m[3]===1}static isChildOfOverflowingContentWidgets(m){return m.length>=1&&m[0]===2}static isChildOfOverlayWidgets(m){return m.length>=2&&m[0]===3&&m[1]===4}}class d{constructor(m,S,E){this.viewModel=m.viewModel;const L=m.configuration.options;this.layoutInfo=L.get(133),this.viewDomNode=S.viewDomNode,this.lineHeight=L.get(61),this.stickyTabStops=L.get(106),this.typicalHalfwidthCharacterWidth=L.get(46).typicalHalfwidthCharacterWidth,this.lastRenderData=E,this._context=m,this._viewHelper=S}getZoneAtCoord(m){return d.getZoneAtCoord(this._context,m)}static getZoneAtCoord(m,S){const E=m.viewLayout.getWhitespaceAtVerticalOffset(S);if(E){const L=E.verticalOffset+E.height/2,N=m.viewModel.getLineCount();let I=null,R,F=null;return E.afterLineNumber!==N&&(F=new D.Position(E.afterLineNumber+1,1)),E.afterLineNumber>0&&(I=new D.Position(E.afterLineNumber,m.viewModel.getLineMaxColumn(E.afterLineNumber))),F===null?R=I:I===null?R=F:S<L?R=I:R=F,{viewZoneId:E.id,afterLineNumber:E.afterLineNumber,positionBefore:I,positionAfter:F,position:R}}return null}getFullLineRangeAtCoord(m){if(this._context.viewLayout.isAfterLines(m)){const L=this._context.viewModel.getLineCount(),N=this._context.viewModel.getLineMaxColumn(L);return{range:new w.Range(L,N,L,N),isAfterLines:!0}}const S=this._context.viewLayout.getLineNumberAtVerticalOffset(m),E=this._context.viewModel.getLineMaxColumn(S);return{range:new w.Range(S,1,S,E),isAfterLines:!1}}getLineNumberAtVerticalOffset(m){return this._context.viewLayout.getLineNumberAtVerticalOffset(m)}isAfterLines(m){return this._context.viewLayout.isAfterLines(m)}isInTopPadding(m){return this._context.viewLayout.isInTopPadding(m)}isInBottomPadding(m){return this._context.viewLayout.isInBottomPadding(m)}getVerticalOffsetForLineNumber(m){return this._context.viewLayout.getVerticalOffsetForLineNumber(m)}findAttribute(m,S){return d._findAttribute(m,S,this._viewHelper.viewDomNode)}static _findAttribute(m,S,E){for(;m&&m!==document.body;){if(m.hasAttribute&&m.hasAttribute(S))return m.getAttribute(S);if(m===E)return null;m=m.parentNode}return null}getLineWidth(m){return this._viewHelper.getLineWidth(m)}visibleRangeForPosition(m,S){return this._viewHelper.visibleRangeForPosition(m,S)}getPositionFromDOMInfo(m,S){return this._viewHelper.getPositionFromDOMInfo(m,S)}getCurrentScrollTop(){return this._context.viewLayout.getCurrentScrollTop()}getCurrentScrollLeft(){return this._context.viewLayout.getCurrentScrollLeft()}}e.HitTestContext=d;class l{constructor(m,S,E,L){this.editorPos=S,this.pos=E,this.relativePos=L,this.mouseVerticalOffset=Math.max(0,m.getCurrentScrollTop()+this.relativePos.y),this.mouseContentHorizontalOffset=m.getCurrentScrollLeft()+this.relativePos.x-m.layoutInfo.contentLeft,this.isInMarginArea=this.relativePos.x<m.layoutInfo.contentLeft&&this.relativePos.x>=m.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,g._getMouseColumn(this.mouseContentHorizontalOffset,m.typicalHalfwidthCharacterWidth))}}class a extends l{constructor(m,S,E,L,N){super(m,S,E,L),this._ctx=m,N?(this.target=N,this.targetPath=v.PartFingerprints.collect(N,m.viewDomNode)):(this.target=null,this.targetPath=new Uint8Array(0))}toString(){return`pos(${this.pos.x},${this.pos.y}), editorPos(${this.editorPos.x},${this.editorPos.y}), relativePos(${this.relativePos.x},${this.relativePos.y}), mouseVerticalOffset: ${this.mouseVerticalOffset}, mouseContentHorizontalOffset: ${this.mouseContentHorizontalOffset} target: ${this.target?this.target.outerHTML:null}`}_getMouseColumn(m=null){return m&&m.column<this._ctx.viewModel.getLineMaxColumn(m.lineNumber)?b.CursorColumns.visibleColumnFromColumn(this._ctx.viewModel.getLineContent(m.lineNumber),m.column,this._ctx.viewModel.model.getOptions().tabSize)+1:this.mouseColumn}fulfillUnknown(m=null){return o.createUnknown(this.target,this._getMouseColumn(m),m)}fulfillTextarea(){return o.createTextarea(this.target,this._getMouseColumn())}fulfillMargin(m,S,E,L){return o.createMargin(m,this.target,this._getMouseColumn(S),S,E,L)}fulfillViewZone(m,S,E){return o.createViewZone(m,this.target,this._getMouseColumn(S),S,E)}fulfillContentText(m,S,E){return o.createContentText(this.target,this._getMouseColumn(m),m,S,E)}fulfillContentEmpty(m,S){return o.createContentEmpty(this.target,this._getMouseColumn(m),m,S)}fulfillContentWidget(m){return o.createContentWidget(this.target,this._getMouseColumn(),m)}fulfillScrollbar(m){return o.createScrollbar(this.target,this._getMouseColumn(m),m)}fulfillOverlayWidget(m){return o.createOverlayWidget(this.target,this._getMouseColumn(),m)}withTarget(m){return new a(this._ctx,this.editorPos,this.pos,this.relativePos,m)}}const r={isAfterLines:!0};function c(p){return{isAfterLines:!1,horizontalDistanceToText:p}}class g{constructor(m,S){this._context=m,this._viewHelper=S}mouseTargetIsWidget(m){const S=m.target,E=v.PartFingerprints.collect(S,this._viewHelper.viewDomNode);return!!(s.isChildOfContentWidgets(E)||s.isChildOfOverflowingContentWidgets(E)||s.isChildOfOverlayWidgets(E))}createMouseTarget(m,S,E,L,N){const I=new d(this._context,this._viewHelper,m),R=new a(I,S,E,L,N);try{return g._createMouseTarget(I,R,!1)}catch{return R.fulfillUnknown()}}static _createMouseTarget(m,S,E){if(S.target===null){if(E)return S.fulfillUnknown();const I=g._doHitTest(m,S);return I.type===1?g.createMouseTargetFromHitTestPosition(m,S,I.spanNode,I.position,I.injectedText):this._createMouseTarget(m,S.withTarget(I.hitTarget),!0)}const L=S;let N=null;return N=N||g._hitTestContentWidget(m,L),N=N||g._hitTestOverlayWidget(m,L),N=N||g._hitTestMinimap(m,L),N=N||g._hitTestScrollbarSlider(m,L),N=N||g._hitTestViewZone(m,L),N=N||g._hitTestMargin(m,L),N=N||g._hitTestViewCursor(m,L),N=N||g._hitTestTextArea(m,L),N=N||g._hitTestViewLines(m,L,E),N=N||g._hitTestScrollbar(m,L),N||S.fulfillUnknown()}static _hitTestContentWidget(m,S){if(s.isChildOfContentWidgets(S.targetPath)||s.isChildOfOverflowingContentWidgets(S.targetPath)){const E=m.findAttribute(S.target,"widgetId");return E?S.fulfillContentWidget(E):S.fulfillUnknown()}return null}static _hitTestOverlayWidget(m,S){if(s.isChildOfOverlayWidgets(S.targetPath)){const E=m.findAttribute(S.target,"widgetId");return E?S.fulfillOverlayWidget(E):S.fulfillUnknown()}return null}static _hitTestViewCursor(m,S){if(S.target){const E=m.lastRenderData.lastViewCursorsRenderData;for(const L of E)if(S.target===L.domNode)return S.fulfillContentText(L.position,null,{mightBeForeignElement:!1,injectedText:null})}if(S.isInContentArea){const E=m.lastRenderData.lastViewCursorsRenderData,L=S.mouseContentHorizontalOffset,N=S.mouseVerticalOffset;for(const I of E){if(L<I.contentLeft||L>I.contentLeft+I.width)continue;const R=m.getVerticalOffsetForLineNumber(I.position.lineNumber);if(R<=N&&N<=R+I.height)return S.fulfillContentText(I.position,null,{mightBeForeignElement:!1,injectedText:null})}}return null}static _hitTestViewZone(m,S){const E=m.getZoneAtCoord(S.mouseVerticalOffset);if(E){const L=S.isInContentArea?8:5;return S.fulfillViewZone(L,E.position,E)}return null}static _hitTestTextArea(m,S){return s.isTextArea(S.targetPath)?m.lastRenderData.lastTextareaPosition?S.fulfillContentText(m.lastRenderData.lastTextareaPosition,null,{mightBeForeignElement:!1,injectedText:null}):S.fulfillTextarea():null}static _hitTestMargin(m,S){if(S.isInMarginArea){const E=m.getFullLineRangeAtCoord(S.mouseVerticalOffset),L=E.range.getStartPosition();let N=Math.abs(S.relativePos.x);const I={isAfterLines:E.isAfterLines,glyphMarginLeft:m.layoutInfo.glyphMarginLeft,glyphMarginWidth:m.layoutInfo.glyphMarginWidth,lineNumbersWidth:m.layoutInfo.lineNumbersWidth,offsetX:N};return N-=m.layoutInfo.glyphMarginLeft,N<=m.layoutInfo.glyphMarginWidth?S.fulfillMargin(2,L,E.range,I):(N-=m.layoutInfo.glyphMarginWidth,N<=m.layoutInfo.lineNumbersWidth?S.fulfillMargin(3,L,E.range,I):(N-=m.layoutInfo.lineNumbersWidth,S.fulfillMargin(4,L,E.range,I)))}return null}static _hitTestViewLines(m,S,E){if(!s.isChildOfViewLines(S.targetPath))return null;if(m.isInTopPadding(S.mouseVerticalOffset))return S.fulfillContentEmpty(new D.Position(1,1),r);if(m.isAfterLines(S.mouseVerticalOffset)||m.isInBottomPadding(S.mouseVerticalOffset)){const N=m.viewModel.getLineCount(),I=m.viewModel.getLineMaxColumn(N);return S.fulfillContentEmpty(new D.Position(N,I),r)}if(E){if(s.isStrictChildOfViewLines(S.targetPath)){const N=m.getLineNumberAtVerticalOffset(S.mouseVerticalOffset);if(m.viewModel.getLineLength(N)===0){const R=m.getLineWidth(N),F=c(S.mouseContentHorizontalOffset-R);return S.fulfillContentEmpty(new D.Position(N,1),F)}const I=m.getLineWidth(N);if(S.mouseContentHorizontalOffset>=I){const R=c(S.mouseContentHorizontalOffset-I),F=new D.Position(N,m.viewModel.getLineMaxColumn(N));return S.fulfillContentEmpty(F,R)}}return S.fulfillUnknown()}const L=g._doHitTest(m,S);return L.type===1?g.createMouseTargetFromHitTestPosition(m,S,L.spanNode,L.position,L.injectedText):this._createMouseTarget(m,S.withTarget(L.hitTarget),!0)}static _hitTestMinimap(m,S){if(s.isChildOfMinimap(S.targetPath)){const E=m.getLineNumberAtVerticalOffset(S.mouseVerticalOffset),L=m.viewModel.getLineMaxColumn(E);return S.fulfillScrollbar(new D.Position(E,L))}return null}static _hitTestScrollbarSlider(m,S){if(s.isChildOfScrollableElement(S.targetPath)&&S.target&&S.target.nodeType===1){const E=S.target.className;if(E&&/\b(slider|scrollbar)\b/.test(E)){const L=m.getLineNumberAtVerticalOffset(S.mouseVerticalOffset),N=m.viewModel.getLineMaxColumn(L);return S.fulfillScrollbar(new D.Position(L,N))}}return null}static _hitTestScrollbar(m,S){if(s.isChildOfScrollableElement(S.targetPath)){const E=m.getLineNumberAtVerticalOffset(S.mouseVerticalOffset),L=m.viewModel.getLineMaxColumn(E);return S.fulfillScrollbar(new D.Position(E,L))}return null}getMouseColumn(m){const S=this._context.configuration.options,E=S.get(133),L=this._context.viewLayout.getCurrentScrollLeft()+m.x-E.contentLeft;return g._getMouseColumn(L,S.get(46).typicalHalfwidthCharacterWidth)}static _getMouseColumn(m,S){return m<0?1:Math.round(m/S)+1}static createMouseTargetFromHitTestPosition(m,S,E,L,N){const I=L.lineNumber,R=L.column,F=m.getLineWidth(I);if(S.mouseContentHorizontalOffset>F){const T=c(S.mouseContentHorizontalOffset-F);return S.fulfillContentEmpty(L,T)}const O=m.visibleRangeForPosition(I,R);if(!O)return S.fulfillUnknown(L);const x=O.left;if(S.mouseContentHorizontalOffset===x)return S.fulfillContentText(L,null,{mightBeForeignElement:!!N,injectedText:N});const M=[];if(M.push({offset:O.left,column:R}),R>1){const T=m.visibleRangeForPosition(I,R-1);T&&M.push({offset:T.left,column:R-1})}const P=m.viewModel.getLineMaxColumn(I);if(R<P){const T=m.visibleRangeForPosition(I,R+1);T&&M.push({offset:T.left,column:R+1})}M.sort((T,ee)=>T.offset-ee.offset);const A=S.pos.toClientCoordinates(),B=E.getBoundingClientRect(),K=B.left<=A.clientX&&A.clientX<=B.right;for(let T=1;T<M.length;T++){const ee=M[T-1],J=M[T];if(ee.offset<=S.mouseContentHorizontalOffset&&S.mouseContentHorizontalOffset<=J.offset){const $=new w.Range(I,ee.column,I,J.column),j=Math.abs(ee.offset-S.mouseContentHorizontalOffset),G=Math.abs(J.offset-S.mouseContentHorizontalOffset),te=j<G?new D.Position(I,ee.column):new D.Position(I,J.column);return S.fulfillContentText(te,$,{mightBeForeignElement:!K||!!N,injectedText:N})}}return S.fulfillContentText(L,null,{mightBeForeignElement:!K||!!N,injectedText:N})}static _doHitTestWithCaretRangeFromPoint(m,S){const E=m.getLineNumberAtVerticalOffset(S.mouseVerticalOffset),L=m.getVerticalOffsetForLineNumber(E)+Math.floor(m.lineHeight/2);let N=S.pos.y+(L-S.mouseVerticalOffset);N<=S.editorPos.y&&(N=S.editorPos.y+1),N>=S.editorPos.y+S.editorPos.height&&(N=S.editorPos.y+S.editorPos.height-1);const I=new y.PageCoordinates(S.pos.x,N),R=this._actualDoHitTestWithCaretRangeFromPoint(m,I.toClientCoordinates());return R.type===1?R:this._actualDoHitTestWithCaretRangeFromPoint(m,S.pos.toClientCoordinates())}static _actualDoHitTestWithCaretRangeFromPoint(m,S){const E=C.getShadowRoot(m.viewDomNode);let L;if(E?typeof E.caretRangeFromPoint>"u"?L=f(E,S.clientX,S.clientY):L=E.caretRangeFromPoint(S.clientX,S.clientY):L=document.caretRangeFromPoint(S.clientX,S.clientY),!L||!L.startContainer)return new u;const N=L.startContainer;if(N.nodeType===N.TEXT_NODE){const I=N.parentNode,R=I?I.parentNode:null,F=R?R.parentNode:null;return(F&&F.nodeType===F.ELEMENT_NODE?F.className:null)===k.ViewLine.CLASS_NAME?i.createFromDOMInfo(m,I,L.startOffset):new u(N.parentNode)}else if(N.nodeType===N.ELEMENT_NODE){const I=N.parentNode,R=I?I.parentNode:null;return(R&&R.nodeType===R.ELEMENT_NODE?R.className:null)===k.ViewLine.CLASS_NAME?i.createFromDOMInfo(m,N,N.textContent.length):new u(N)}return new u}static _doHitTestWithCaretPositionFromPoint(m,S){const E=document.caretPositionFromPoint(S.clientX,S.clientY);if(E.offsetNode.nodeType===E.offsetNode.TEXT_NODE){const L=E.offsetNode.parentNode,N=L?L.parentNode:null,I=N?N.parentNode:null;return(I&&I.nodeType===I.ELEMENT_NODE?I.className:null)===k.ViewLine.CLASS_NAME?i.createFromDOMInfo(m,E.offsetNode.parentNode,E.offset):new u(E.offsetNode.parentNode)}if(E.offsetNode.nodeType===E.offsetNode.ELEMENT_NODE){const L=E.offsetNode.parentNode,N=L&&L.nodeType===L.ELEMENT_NODE?L.className:null,I=L?L.parentNode:null,R=I&&I.nodeType===I.ELEMENT_NODE?I.className:null;if(N===k.ViewLine.CLASS_NAME){const F=E.offsetNode.childNodes[Math.min(E.offset,E.offsetNode.childNodes.length-1)];if(F)return i.createFromDOMInfo(m,F,0)}else if(R===k.ViewLine.CLASS_NAME)return i.createFromDOMInfo(m,E.offsetNode,0)}return new u(E.offsetNode)}static _snapToSoftTabBoundary(m,S){const E=S.getLineContent(m.lineNumber),{tabSize:L}=S.model.getOptions(),N=h.AtomicTabMoveOperations.atomicPosition(E,m.column-1,L,2);return N!==-1?new D.Position(m.lineNumber,N+1):m}static _doHitTest(m,S){let E=new u;if(typeof document.caretRangeFromPoint=="function"?E=this._doHitTestWithCaretRangeFromPoint(m,S):document.caretPositionFromPoint&&(E=this._doHitTestWithCaretPositionFromPoint(m,S.pos.toClientCoordinates())),E.type===1){const L=m.viewModel.getInjectedTextAt(E.position),N=m.viewModel.normalizePosition(E.position,2);(L||!N.equals(E.position))&&(E=new n(N,E.spanNode,L))}return E.type===1&&m.stickyTabStops&&(E=new n(this._snapToSoftTabBoundary(E.position,m.viewModel),E.spanNode,E.injectedText)),E}}e.MouseTargetFactory=g;function f(p,m,S){const E=document.createRange();let L=p.elementFromPoint(m,S);if(L!==null){for(;L&&L.firstChild&&L.firstChild.nodeType!==L.firstChild.TEXT_NODE&&L.lastChild&&L.lastChild.firstChild;)L=L.lastChild;const N=L.getBoundingClientRect(),I=window.getComputedStyle(L,null).getPropertyValue("font"),R=L.innerText;let F=N.left,O=0,x;if(m>N.left+N.width)O=R.length;else{const M=_.getInstance();for(let P=0;P<R.length+1;P++){if(x=M.getCharWidth(R.charAt(P),I)/2,F+=x,m<F){O=P;break}F+=x}}E.setStart(L.firstChild,O),E.setEnd(L.firstChild,O)}return E}e.shadowCaretRangeFromPoint=f;class _{constructor(){this._cache={},this._canvas=document.createElement("canvas")}static getInstance(){return _._INSTANCE||(_._INSTANCE=new _),_._INSTANCE}getCharWidth(m,S){const E=m+S;if(this._cache[E])return this._cache[E];const L=this._canvas.getContext("2d");L.font=S;const N=L.measureText(m).width;return this._cache[E]=N,N}}_._INSTANCE=null}),define(oe[666],se([1,0,7,67,10,2,17,296,141,164,11,23,129]),function(q,e,y,v,k,D,w,b,C,h,u,n,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MouseHandler=void 0;class t extends i.ViewEventHandler{constructor(l,a,r){super(),this._mouseLeaveMonitor=null,this._context=l,this.viewController=a,this.viewHelper=r,this.mouseTargetFactory=new b.MouseTargetFactory(this._context,r),this._mouseDownOperation=this._register(new o(this._context,this.viewController,this.viewHelper,(_,p)=>this._createMouseTarget(_,p),_=>this._getMouseColumn(_))),this.lastMouseLeaveTime=-1,this._height=this._context.configuration.options.get(133).height;const c=new C.EditorMouseEventFactory(this.viewHelper.viewDomNode);this._register(c.onContextMenu(this.viewHelper.viewDomNode,_=>this._onContextMenu(_,!0))),this._register(c.onMouseMove(this.viewHelper.viewDomNode,_=>{this._onMouseMove(_),this._mouseLeaveMonitor||(this._mouseLeaveMonitor=y.addDisposableListener(document,"mousemove",p=>{this.viewHelper.viewDomNode.contains(p.target)||this._onMouseLeave(new C.EditorMouseEvent(p,!1,this.viewHelper.viewDomNode))}))})),this._register(c.onMouseUp(this.viewHelper.viewDomNode,_=>this._onMouseUp(_))),this._register(c.onMouseLeave(this.viewHelper.viewDomNode,_=>this._onMouseLeave(_)));let g=0;this._register(c.onPointerDown(this.viewHelper.viewDomNode,(_,p)=>{g=p})),this._register(y.addDisposableListener(this.viewHelper.viewDomNode,y.EventType.POINTER_UP,_=>{this._mouseDownOperation.onPointerUp()})),this._register(c.onMouseDown(this.viewHelper.viewDomNode,_=>this._onMouseDown(_,g)));const f=_=>{if(this.viewController.emitMouseWheel(_),!this._context.configuration.options.get(70))return;const p=new v.StandardWheelEvent(_);if(w.isMacintosh?(_.metaKey||_.ctrlKey)&&!_.shiftKey&&!_.altKey:_.ctrlKey&&!_.metaKey&&!_.shiftKey&&!_.altKey){const m=h.EditorZoom.getZoomLevel(),S=p.deltaY>0?1:-1;h.EditorZoom.setZoomLevel(m+S),p.preventDefault(),p.stopPropagation()}};this._register(y.addDisposableListener(this.viewHelper.viewDomNode,y.EventType.MOUSE_WHEEL,f,{capture:!0,passive:!1})),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._mouseLeaveMonitor&&(this._mouseLeaveMonitor.dispose(),this._mouseLeaveMonitor=null),super.dispose()}onConfigurationChanged(l){if(l.hasChanged(133)){const a=this._context.configuration.options.get(133).height;this._height!==a&&(this._height=a,this._mouseDownOperation.onHeightChanged())}return!1}onCursorStateChanged(l){return this._mouseDownOperation.onCursorStateChanged(l),!1}onFocusChanged(l){return!1}onScrollChanged(l){return this._mouseDownOperation.onScrollChanged(),!1}getTargetAtClientPoint(l,a){const r=new C.ClientCoordinates(l,a).toPageCoordinates(),c=(0,C.createEditorPagePosition)(this.viewHelper.viewDomNode);if(r.y<c.y||r.y>c.y+c.height||r.x<c.x||r.x>c.x+c.width)return null;const g=(0,C.createCoordinatesRelativeToEditor)(this.viewHelper.viewDomNode,c,r);return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),c,r,g,null)}_createMouseTarget(l,a){let r=l.target;if(!this.viewHelper.viewDomNode.contains(r)){const c=y.getShadowRoot(this.viewHelper.viewDomNode);c&&(r=c.elementsFromPoint(l.posx,l.posy).find(g=>this.viewHelper.viewDomNode.contains(g)))}return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),l.editorPos,l.pos,l.relativePos,a?r:null)}_getMouseColumn(l){return this.mouseTargetFactory.getMouseColumn(l.relativePos)}_onContextMenu(l,a){this.viewController.emitContextMenu({event:l,target:this._createMouseTarget(l,a)})}_onMouseMove(l){this.mouseTargetFactory.mouseTargetIsWidget(l)||l.preventDefault(),!(this._mouseDownOperation.isActive()||l.timestamp<this.lastMouseLeaveTime)&&this.viewController.emitMouseMove({event:l,target:this._createMouseTarget(l,!0)})}_onMouseLeave(l){this._mouseLeaveMonitor&&(this._mouseLeaveMonitor.dispose(),this._mouseLeaveMonitor=null),this.lastMouseLeaveTime=new Date().getTime(),this.viewController.emitMouseLeave({event:l,target:null})}_onMouseUp(l){this.viewController.emitMouseUp({event:l,target:this._createMouseTarget(l,!0)})}_onMouseDown(l,a){const r=this._createMouseTarget(l,!0),c=r.type===6||r.type===7,g=r.type===2||r.type===3||r.type===4,f=r.type===3,_=this._context.configuration.options.get(100),p=r.type===8||r.type===5,m=r.type===9;let S=l.leftButton||l.middleButton;w.isMacintosh&&l.leftButton&&l.ctrlKey&&(S=!1);const E=()=>{l.preventDefault(),this.viewHelper.focusTextArea()};if(S&&(c||f&&_))E(),this._mouseDownOperation.start(r.type,l,a);else if(g)l.preventDefault();else if(p){const L=r.detail;S&&this.viewHelper.shouldSuppressMouseDownOnViewZone(L.viewZoneId)&&(E(),this._mouseDownOperation.start(r.type,l,a),l.preventDefault())}else m&&this.viewHelper.shouldSuppressMouseDownOnWidget(r.detail)&&(E(),l.preventDefault());this.viewController.emitMouseDown({event:l,target:r})}}e.MouseHandler=t;class o extends D.Disposable{constructor(l,a,r,c,g){super(),this._context=l,this._viewController=a,this._viewHelper=r,this._createMouseTarget=c,this._getMouseColumn=g,this._mouseMoveMonitor=this._register(new C.GlobalEditorPointerMoveMonitor(this._viewHelper.viewDomNode)),this._onScrollTimeout=this._register(new k.TimeoutTimer),this._mouseState=new s,this._currentSelection=new n.Selection(1,1,1,1),this._isActive=!1,this._lastMouseEvent=null}dispose(){super.dispose()}isActive(){return this._isActive}_onMouseDownThenMove(l){this._lastMouseEvent=l,this._mouseState.setModifiers(l);const a=this._findMousePosition(l,!1);!a||(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:l,target:a}):this._dispatchMouse(a,!0))}start(l,a,r){this._lastMouseEvent=a,this._mouseState.setStartedOnLineNumbers(l===3),this._mouseState.setStartButtons(a),this._mouseState.setModifiers(a);const c=this._findMousePosition(a,!0);if(!c||!c.position)return;this._mouseState.trySetCount(a.detail,c.position),a.detail=this._mouseState.count;const g=this._context.configuration.options;if(!g.get(83)&&g.get(31)&&!g.get(18)&&!this._mouseState.altKey&&a.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&c.type===6&&c.position&&this._currentSelection.containsPosition(c.position)){this._mouseState.isDragAndDrop=!0,this._isActive=!0,this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,r,a.buttons,f=>this._onMouseDownThenMove(f),f=>{const _=this._findMousePosition(this._lastMouseEvent,!1);f&&f instanceof KeyboardEvent?this._viewController.emitMouseDropCanceled():this._viewController.emitMouseDrop({event:this._lastMouseEvent,target:_?this._createMouseTarget(this._lastMouseEvent,!0):null}),this._stop()});return}this._mouseState.isDragAndDrop=!1,this._dispatchMouse(c,a.shiftKey),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,r,a.buttons,f=>this._onMouseDownThenMove(f),()=>this._stop()))}_stop(){this._isActive=!1,this._onScrollTimeout.cancel()}onHeightChanged(){this._mouseMoveMonitor.stopMonitoring()}onPointerUp(){this._mouseMoveMonitor.stopMonitoring()}onScrollChanged(){!this._isActive||this._onScrollTimeout.setIfNotSet(()=>{if(!this._lastMouseEvent)return;const l=this._findMousePosition(this._lastMouseEvent,!1);!l||this._mouseState.isDragAndDrop||this._dispatchMouse(l,!0)},10)}onCursorStateChanged(l){this._currentSelection=l.selections[0]}_getPositionOutsideEditor(l){const a=l.editorPos,r=this._context.viewModel,c=this._context.viewLayout,g=this._getMouseColumn(l);if(l.posy<a.y){const _=Math.max(c.getCurrentScrollTop()-(a.y-l.posy),0),p=b.HitTestContext.getZoneAtCoord(this._context,_);if(p){const S=this._helpPositionJumpOverViewZone(p);if(S)return b.MouseTarget.createOutsideEditor(g,S)}const m=c.getLineNumberAtVerticalOffset(_);return b.MouseTarget.createOutsideEditor(g,new u.Position(m,1))}if(l.posy>a.y+a.height){const _=c.getCurrentScrollTop()+l.relativePos.y,p=b.HitTestContext.getZoneAtCoord(this._context,_);if(p){const S=this._helpPositionJumpOverViewZone(p);if(S)return b.MouseTarget.createOutsideEditor(g,S)}const m=c.getLineNumberAtVerticalOffset(_);return b.MouseTarget.createOutsideEditor(g,new u.Position(m,r.getLineMaxColumn(m)))}const f=c.getLineNumberAtVerticalOffset(c.getCurrentScrollTop()+l.relativePos.y);return l.posx<a.x?b.MouseTarget.createOutsideEditor(g,new u.Position(f,1)):l.posx>a.x+a.width?b.MouseTarget.createOutsideEditor(g,new u.Position(f,r.getLineMaxColumn(f))):null}_findMousePosition(l,a){const r=this._getPositionOutsideEditor(l);if(r)return r;const c=this._createMouseTarget(l,a);if(!c.position)return null;if(c.type===8||c.type===5){const g=this._helpPositionJumpOverViewZone(c.detail);if(g)return b.MouseTarget.createViewZone(c.type,c.element,c.mouseColumn,g,c.detail)}return c}_helpPositionJumpOverViewZone(l){const a=new u.Position(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),r=l.positionBefore,c=l.positionAfter;return r&&c?r.isBefore(a)?r:c:null}_dispatchMouse(l,a){!l.position||this._viewController.dispatchMouse({position:l.position,mouseColumn:l.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,inSelectionMode:a,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton,onInjectedText:l.type===6&&l.detail.injectedText!==null})}}class s{constructor(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}get altKey(){return this._altKey}get ctrlKey(){return this._ctrlKey}get metaKey(){return this._metaKey}get shiftKey(){return this._shiftKey}get leftButton(){return this._leftButton}get middleButton(){return this._middleButton}get startedOnLineNumbers(){return this._startedOnLineNumbers}get count(){return this._lastMouseDownCount}setModifiers(l){this._altKey=l.altKey,this._ctrlKey=l.ctrlKey,this._metaKey=l.metaKey,this._shiftKey=l.shiftKey}setStartButtons(l){this._leftButton=l.leftButton,this._middleButton=l.middleButton}setStartedOnLineNumbers(l){this._startedOnLineNumbers=l}trySetCount(l,a){const r=new Date().getTime();r-this._lastSetMouseDownCountTime>s.CLEAR_MOUSE_DOWN_COUNT_TIME&&(l=1),this._lastSetMouseDownCountTime=r,l>this._lastMouseDownCount+1&&(l=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(a)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=a,this._lastMouseDownCount=Math.min(l,this._lastMouseDownPositionEqualCount)}}s.CLEAR_MOUSE_DOWN_COUNT_TIME=400}),define(oe[667],se([1,0,7,17,62,2,666,141,192,201]),function(q,e,y,v,k,D,w,b,C,h){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PointerHandler=e.PointerEventHandler=void 0;class u extends w.MouseHandler{constructor(o,s,d){super(o,s,d),this._register(k.Gesture.addTarget(this.viewHelper.linesContentDomNode)),this._register(y.addDisposableListener(this.viewHelper.linesContentDomNode,k.EventType.Tap,a=>this.onTap(a))),this._register(y.addDisposableListener(this.viewHelper.linesContentDomNode,k.EventType.Change,a=>this.onChange(a))),this._register(y.addDisposableListener(this.viewHelper.linesContentDomNode,k.EventType.Contextmenu,a=>this._onContextMenu(new b.EditorMouseEvent(a,!1,this.viewHelper.viewDomNode),!1))),this._lastPointerType="mouse",this._register(y.addDisposableListener(this.viewHelper.linesContentDomNode,"pointerdown",a=>{const r=a.pointerType;if(r==="mouse"){this._lastPointerType="mouse";return}else r==="touch"?this._lastPointerType="touch":this._lastPointerType="pen"}));const l=new b.EditorPointerEventFactory(this.viewHelper.viewDomNode);this._register(l.onPointerMove(this.viewHelper.viewDomNode,a=>this._onMouseMove(a))),this._register(l.onPointerUp(this.viewHelper.viewDomNode,a=>this._onMouseUp(a))),this._register(l.onPointerLeave(this.viewHelper.viewDomNode,a=>this._onMouseLeave(a))),this._register(l.onPointerDown(this.viewHelper.viewDomNode,(a,r)=>this._onMouseDown(a,r)))}onTap(o){if(!o.initialTarget||!this.viewHelper.linesContentDomNode.contains(o.initialTarget))return;o.preventDefault(),this.viewHelper.focusTextArea();const s=this._createMouseTarget(new b.EditorMouseEvent(o,!1,this.viewHelper.viewDomNode),!1);s.position&&this.viewController.dispatchMouse({position:s.position,mouseColumn:s.position.column,startedOnLineNumbers:!1,mouseDownCount:o.tapCount,inSelectionMode:!1,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1,onInjectedText:s.type===6&&s.detail.injectedText!==null})}onChange(o){this._lastPointerType==="touch"&&this._context.viewModel.viewLayout.deltaScrollNow(-o.translationX,-o.translationY)}_onMouseDown(o,s){o.browserEvent.pointerType!=="touch"&&super._onMouseDown(o,s)}}e.PointerEventHandler=u;class n extends w.MouseHandler{constructor(o,s,d){super(o,s,d),this._register(k.Gesture.addTarget(this.viewHelper.linesContentDomNode)),this._register(y.addDisposableListener(this.viewHelper.linesContentDomNode,k.EventType.Tap,l=>this.onTap(l))),this._register(y.addDisposableListener(this.viewHelper.linesContentDomNode,k.EventType.Change,l=>this.onChange(l))),this._register(y.addDisposableListener(this.viewHelper.linesContentDomNode,k.EventType.Contextmenu,l=>this._onContextMenu(new b.EditorMouseEvent(l,!1,this.viewHelper.viewDomNode),!1)))}onTap(o){o.preventDefault(),this.viewHelper.focusTextArea();const s=this._createMouseTarget(new b.EditorMouseEvent(o,!1,this.viewHelper.viewDomNode),!1);if(s.position){const d=document.createEvent("CustomEvent");d.initEvent(h.TextAreaSyntethicEvents.Tap,!1,!0),this.viewHelper.dispatchTextAreaEvent(d),this.viewController.moveTo(s.position)}}onChange(o){this._context.viewModel.viewLayout.deltaScrollNow(-o.translationX,-o.translationY)}}class i extends D.Disposable{constructor(o,s,d){super(),v.isIOS&&C.BrowserFeatures.pointerEvents?this.handler=this._register(new u(o,s,d)):window.TouchEvent?this.handler=this._register(new n(o,s,d)):this.handler=this._register(new w.MouseHandler(o,s,d))}getTargetAtClientPoint(o,s){return this.handler.getTargetAtClientPoint(o,s)}}e.PointerHandler=i}),define(oe[668],se([1,0,17,10,65,202,47,295,11,3,125,150,359]),function(q,e,y,v,k,D,w,b,C,h,u,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewLines=void 0;class i{constructor(){this._currentVisibleRange=new h.Range(1,1,1,1)}getCurrentVisibleRange(){return this._currentVisibleRange}setCurrentVisibleRange(l){this._currentVisibleRange=l}}class t{constructor(l,a,r,c,g,f,_){this.minimalReveal=l,this.lineNumber=a,this.startColumn=r,this.endColumn=c,this.startScrollTop=g,this.stopScrollTop=f,this.scrollType=_,this.type="range",this.minLineNumber=a,this.maxLineNumber=a}}class o{constructor(l,a,r,c,g){this.minimalReveal=l,this.selections=a,this.startScrollTop=r,this.stopScrollTop=c,this.scrollType=g,this.type="selections";let f=a[0].startLineNumber,_=a[0].endLineNumber;for(let p=1,m=a.length;p<m;p++){const S=a[p];f=Math.min(f,S.startLineNumber),_=Math.max(_,S.endLineNumber)}this.minLineNumber=f,this.maxLineNumber=_}}class s extends w.ViewPart{constructor(l,a){super(l),this._linesContent=a,this._textRangeRestingSpot=document.createElement("div"),this._visibleLines=new D.VisibleLinesCollection(this),this.domNode=this._visibleLines.domNode;const r=this._context.configuration,c=this._context.configuration.options,g=c.get(46),f=c.get(134),_=c.get(133);this._lineHeight=c.get(61),this._typicalHalfwidthCharacterWidth=g.typicalHalfwidthCharacterWidth,this._isViewportWrapping=f.isViewportWrapping,this._revealHorizontalRightPadding=c.get(91),this._horizontalScrollbarHeight=_.horizontalScrollbarHeight,this._cursorSurroundingLines=c.get(25),this._cursorSurroundingLinesStyle=c.get(26),this._canUseLayerHinting=!c.get(28),this._viewLineOptions=new b.ViewLineOptions(r,this._context.theme.type),w.PartFingerprints.write(this.domNode,7),this.domNode.setClassName(`view-lines ${n.MOUSE_CURSOR_TEXT_CSS_CLASS_NAME}`),(0,k.applyFontInfo)(this.domNode,g),this._maxLineWidth=0,this._asyncUpdateLineWidths=new v.RunOnceScheduler(()=>{this._updateLineWidthsSlow()},200),this._asyncCheckMonospaceFontAssumptions=new v.RunOnceScheduler(()=>{this._checkMonospaceFontAssumptions()},2e3),this._lastRenderedData=new i,this._horizontalRevealRequest=null}dispose(){this._asyncUpdateLineWidths.dispose(),this._asyncCheckMonospaceFontAssumptions.dispose(),super.dispose()}getDomNode(){return this.domNode}createVisibleLine(){return new b.ViewLine(this._viewLineOptions)}onConfigurationChanged(l){this._visibleLines.onConfigurationChanged(l),l.hasChanged(134)&&(this._maxLineWidth=0);const a=this._context.configuration.options,r=a.get(46),c=a.get(134),g=a.get(133);return this._lineHeight=a.get(61),this._typicalHalfwidthCharacterWidth=r.typicalHalfwidthCharacterWidth,this._isViewportWrapping=c.isViewportWrapping,this._revealHorizontalRightPadding=a.get(91),this._horizontalScrollbarHeight=g.horizontalScrollbarHeight,this._cursorSurroundingLines=a.get(25),this._cursorSurroundingLinesStyle=a.get(26),this._canUseLayerHinting=!a.get(28),(0,k.applyFontInfo)(this.domNode,r),this._onOptionsMaybeChanged(),l.hasChanged(133)&&(this._maxLineWidth=0),!0}_onOptionsMaybeChanged(){const l=this._context.configuration,a=new b.ViewLineOptions(l,this._context.theme.type);if(!this._viewLineOptions.equals(a)){this._viewLineOptions=a;const r=this._visibleLines.getStartLineNumber(),c=this._visibleLines.getEndLineNumber();for(let g=r;g<=c;g++)this._visibleLines.getVisibleLine(g).onOptionsChanged(this._viewLineOptions);return!0}return!1}onCursorStateChanged(l){const a=this._visibleLines.getStartLineNumber(),r=this._visibleLines.getEndLineNumber();let c=!1;for(let g=a;g<=r;g++)c=this._visibleLines.getVisibleLine(g).onSelectionChanged()||c;return c}onDecorationsChanged(l){{const a=this._visibleLines.getStartLineNumber(),r=this._visibleLines.getEndLineNumber();for(let c=a;c<=r;c++)this._visibleLines.getVisibleLine(c).onDecorationsChanged()}return!0}onFlushed(l){const a=this._visibleLines.onFlushed(l);return this._maxLineWidth=0,a}onLinesChanged(l){return this._visibleLines.onLinesChanged(l)}onLinesDeleted(l){return this._visibleLines.onLinesDeleted(l)}onLinesInserted(l){return this._visibleLines.onLinesInserted(l)}onRevealRangeRequest(l){const a=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),l.source,l.minimalReveal,l.range,l.selections,l.verticalType);if(a===-1)return!1;let r=this._context.viewLayout.validateScrollPosition({scrollTop:a});l.revealHorizontal?l.range&&l.range.startLineNumber!==l.range.endLineNumber?r={scrollTop:r.scrollTop,scrollLeft:0}:l.range?this._horizontalRevealRequest=new t(l.minimalReveal,l.range.startLineNumber,l.range.startColumn,l.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),r.scrollTop,l.scrollType):l.selections&&l.selections.length>0&&(this._horizontalRevealRequest=new o(l.minimalReveal,l.selections,this._context.viewLayout.getCurrentScrollTop(),r.scrollTop,l.scrollType)):this._horizontalRevealRequest=null;const c=Math.abs(this._context.viewLayout.getCurrentScrollTop()-r.scrollTop)<=this._lineHeight?1:l.scrollType;return this._context.viewModel.viewLayout.setScrollPosition(r,c),!0}onScrollChanged(l){if(this._horizontalRevealRequest&&l.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&l.scrollTopChanged){const a=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),r=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(l.scrollTop<a||l.scrollTop>r)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(l.scrollWidth),this._visibleLines.onScrollChanged(l)||!0}onTokensChanged(l){return this._visibleLines.onTokensChanged(l)}onZonesChanged(l){return this._context.viewModel.viewLayout.setMaxLineWidth(this._maxLineWidth),this._visibleLines.onZonesChanged(l)}onThemeChanged(l){return this._onOptionsMaybeChanged()}getPositionFromDOMInfo(l,a){const r=this._getViewLineDomNode(l);if(r===null)return null;const c=this._getLineNumberFor(r);if(c===-1||c<1||c>this._context.viewModel.getLineCount())return null;if(this._context.viewModel.getLineMaxColumn(c)===1)return new C.Position(c,1);const g=this._visibleLines.getStartLineNumber(),f=this._visibleLines.getEndLineNumber();if(c<g||c>f)return null;let _=this._visibleLines.getVisibleLine(c).getColumnOfNodeOffset(c,l,a);const p=this._context.viewModel.getLineMinColumn(c);return _<p&&(_=p),new C.Position(c,_)}_getViewLineDomNode(l){for(;l&&l.nodeType===1;){if(l.className===b.ViewLine.CLASS_NAME)return l;l=l.parentElement}return null}_getLineNumberFor(l){const a=this._visibleLines.getStartLineNumber(),r=this._visibleLines.getEndLineNumber();for(let c=a;c<=r;c++){const g=this._visibleLines.getVisibleLine(c);if(l===g.getDomNode())return c}return-1}getLineWidth(l){const a=this._visibleLines.getStartLineNumber(),r=this._visibleLines.getEndLineNumber();return l<a||l>r?-1:this._visibleLines.getVisibleLine(l).getWidth()}linesVisibleRangesForRange(l,a){if(this.shouldRender())return null;const r=l.endLineNumber,c=h.Range.intersectRanges(l,this._lastRenderedData.getCurrentVisibleRange());if(!c)return null;const g=[];let f=0;const _=new b.DomReadingContext(this.domNode.domNode,this._textRangeRestingSpot);let p=0;a&&(p=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new C.Position(c.startLineNumber,1)).lineNumber);const m=this._visibleLines.getStartLineNumber(),S=this._visibleLines.getEndLineNumber();for(let E=c.startLineNumber;E<=c.endLineNumber;E++){if(E<m||E>S)continue;const L=E===c.startLineNumber?c.startColumn:1,N=E===c.endLineNumber?c.endColumn:this._context.viewModel.getLineMaxColumn(E),I=this._visibleLines.getVisibleLine(E).getVisibleRangesForRange(E,L,N,_);if(I){if(a&&E<r){const R=p;p=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new C.Position(E+1,1)).lineNumber,R!==p&&(I.ranges[I.ranges.length-1].width+=this._typicalHalfwidthCharacterWidth)}g[f++]=new u.LineVisibleRanges(I.outsideRenderedLine,E,u.HorizontalRange.from(I.ranges))}}return f===0?null:g}_visibleRangesForLineRange(l,a,r){return this.shouldRender()||l<this._visibleLines.getStartLineNumber()||l>this._visibleLines.getEndLineNumber()?null:this._visibleLines.getVisibleLine(l).getVisibleRangesForRange(l,a,r,new b.DomReadingContext(this.domNode.domNode,this._textRangeRestingSpot))}visibleRangeForPosition(l){const a=this._visibleRangesForLineRange(l.lineNumber,l.column,l.column);return a?new u.HorizontalPosition(a.outsideRenderedLine,a.ranges[0].left):null}updateLineWidths(){this._updateLineWidths(!1)}_updateLineWidthsFast(){return this._updateLineWidths(!0)}_updateLineWidthsSlow(){this._updateLineWidths(!1)}_updateLineWidths(l){const a=this._visibleLines.getStartLineNumber(),r=this._visibleLines.getEndLineNumber();let c=1,g=!0;for(let f=a;f<=r;f++){const _=this._visibleLines.getVisibleLine(f);if(l&&!_.getWidthIsFast()){g=!1;continue}c=Math.max(c,_.getWidth())}return g&&a===1&&r===this._context.viewModel.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(c),g}_checkMonospaceFontAssumptions(){let l=-1,a=-1;const r=this._visibleLines.getStartLineNumber(),c=this._visibleLines.getEndLineNumber();for(let g=r;g<=c;g++){const f=this._visibleLines.getVisibleLine(g);if(f.needsMonospaceFontCheck()){const _=f.getWidth();_>a&&(a=_,l=g)}}if(l!==-1&&!this._visibleLines.getVisibleLine(l).monospaceAssumptionsAreValid())for(let g=r;g<=c;g++)this._visibleLines.getVisibleLine(g).onMonospaceAssumptionsInvalidated()}prepareRender(){throw new Error("Not supported")}render(){throw new Error("Not supported")}renderText(l){if(this._visibleLines.renderLines(l),this._lastRenderedData.setCurrentVisibleRange(l.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){const r=this._horizontalRevealRequest;if(l.startLineNumber<=r.minLineNumber&&r.maxLineNumber<=l.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();const c=this._computeScrollLeftToReveal(r);c&&(this._isViewportWrapping||this._ensureMaxLineWidth(c.maxHorizontalOffset),this._context.viewModel.viewLayout.setScrollPosition({scrollLeft:c.scrollLeft},r.scrollType))}}if(this._updateLineWidthsFast()||this._asyncUpdateLineWidths.schedule(),y.isLinux&&!this._asyncCheckMonospaceFontAssumptions.isScheduled()){const r=this._visibleLines.getStartLineNumber(),c=this._visibleLines.getEndLineNumber();for(let g=r;g<=c;g++)if(this._visibleLines.getVisibleLine(g).needsMonospaceFontCheck()){this._asyncCheckMonospaceFontAssumptions.schedule();break}}this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");const a=this._context.viewLayout.getCurrentScrollTop()-l.bigNumbersDelta;this._linesContent.setTop(-a),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())}_ensureMaxLineWidth(l){const a=Math.ceil(l);this._maxLineWidth<a&&(this._maxLineWidth=a,this._context.viewModel.viewLayout.setMaxLineWidth(this._maxLineWidth))}_computeScrollTopToRevealRange(l,a,r,c,g,f){const _=l.top,p=l.height,m=_+p;let S,E,L;if(g&&g.length>0){let I=g[0].startLineNumber,R=g[0].endLineNumber;for(let F=1,O=g.length;F<O;F++){const x=g[F];I=Math.min(I,x.startLineNumber),R=Math.max(R,x.endLineNumber)}S=!1,E=this._context.viewLayout.getVerticalOffsetForLineNumber(I),L=this._context.viewLayout.getVerticalOffsetForLineNumber(R)+this._lineHeight}else if(c)S=!0,E=this._context.viewLayout.getVerticalOffsetForLineNumber(c.startLineNumber),L=this._context.viewLayout.getVerticalOffsetForLineNumber(c.endLineNumber)+this._lineHeight;else return-1;if((a==="mouse"||r)&&this._cursorSurroundingLinesStyle==="default")r||(E-=this._lineHeight);else{const I=Math.min(p/this._lineHeight/2,this._cursorSurroundingLines);E-=I*this._lineHeight,L+=Math.max(0,I-1)*this._lineHeight}(f===0||f===4)&&(L+=r?this._horizontalScrollbarHeight:this._lineHeight);let N;if(L-E>p){if(!S)return-1;N=E}else if(f===5||f===6)if(f===6&&_<=E&&L<=m)N=_;else{const I=Math.max(5*this._lineHeight,p*.2),R=E-I,F=L-p;N=Math.max(F,R)}else if(f===1||f===2)if(f===2&&_<=E&&L<=m)N=_;else{const I=(E+L)/2;N=Math.max(0,I-p/2)}else N=this._computeMinimumScrolling(_,m,E,L,f===3,f===4);return N}_computeScrollLeftToReveal(l){const a=this._context.viewLayout.getCurrentViewport(),r=a.left,c=r+a.width;let g=1073741824,f=0;if(l.type==="range"){const _=this._visibleRangesForLineRange(l.lineNumber,l.startColumn,l.endColumn);if(!_)return null;for(const p of _.ranges)g=Math.min(g,Math.round(p.left)),f=Math.max(f,Math.round(p.left+p.width))}else for(const _ of l.selections){if(_.startLineNumber!==_.endLineNumber)return null;const p=this._visibleRangesForLineRange(_.startLineNumber,_.startColumn,_.endColumn);if(!p)return null;for(const m of p.ranges)g=Math.min(g,Math.round(m.left)),f=Math.max(f,Math.round(m.left+m.width))}return l.minimalReveal||(g=Math.max(0,g-s.HORIZONTAL_EXTRA_PX),f+=this._revealHorizontalRightPadding),l.type==="selections"&&f-g>a.width?null:{scrollLeft:this._computeMinimumScrolling(r,c,g,f),maxHorizontalOffset:f}}_computeMinimumScrolling(l,a,r,c,g,f){l=l|0,a=a|0,r=r|0,c=c|0,g=!!g,f=!!f;const _=a-l;if(c-r<_){if(g)return r;if(f)return Math.max(0,c-_);if(r<l)return r;if(c>a)return Math.max(0,c-_)}else return r;return l}}e.ViewLines=s,s.HORIZONTAL_EXTRA_PX=30}),define(oe[15],se([1,0,27,6,2,9,34,56]),function(q,e,y,v,k,D,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Themable=e.registerThemingParticipant=e.Extensions=e.getThemeTypeSelector=e.ThemeIcon=e.themeColorFromId=e.ThemeColor=e.IThemeService=void 0,e.IThemeService=(0,D.createDecorator)("themeService");var C;(function(d){function l(a){return a&&typeof a=="object"&&typeof a.id=="string"}d.isThemeColor=l})(C=e.ThemeColor||(e.ThemeColor={}));function h(d){return{id:d}}e.themeColorFromId=h;var u;(function(d){function l(m){return m&&typeof m=="object"&&typeof m.id=="string"&&(typeof m.color>"u"||C.isThemeColor(m.color))}d.isThemeIcon=l;const a=new RegExp(`^\\$\\((${y.CSSIcon.iconNameExpression}(?:${y.CSSIcon.iconModifierExpression})?)\\)$`);function r(m){const S=a.exec(m);if(!S)return;const[,E]=S;return{id:E}}d.fromString=r;function c(m){return{id:m}}d.fromId=c;function g(m,S){let E=m.id;const L=E.lastIndexOf("~");return L!==-1&&(E=E.substring(0,L)),S&&(E=`${E}~${S}`),{id:E}}d.modify=g;function f(m){const S=m.id.lastIndexOf("~");if(S!==-1)return m.id.substring(S+1)}d.getModifier=f;function _(m,S){var E,L;return m.id===S.id&&((E=m.color)===null||E===void 0?void 0:E.id)===((L=S.color)===null||L===void 0?void 0:L.id)}d.isEqual=_;function p(m,S){return{id:m.id,color:S?h(S):void 0}}d.asThemeIcon=p,d.asClassNameArray=y.CSSIcon.asClassNameArray,d.asClassName=y.CSSIcon.asClassName,d.asCSSSelector=y.CSSIcon.asCSSSelector})(u=e.ThemeIcon||(e.ThemeIcon={}));function n(d){switch(d){case b.ColorScheme.DARK:return"vs-dark";case b.ColorScheme.HIGH_CONTRAST_DARK:return"hc-black";case b.ColorScheme.HIGH_CONTRAST_LIGHT:return"hc-light";default:return"vs"}}e.getThemeTypeSelector=n,e.Extensions={ThemingContribution:"base.contributions.theming"};class i{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new v.Emitter}onColorThemeChange(l){return this.themingParticipants.push(l),this.onThemingParticipantAddedEmitter.fire(l),(0,k.toDisposable)(()=>{const a=this.themingParticipants.indexOf(l);this.themingParticipants.splice(a,1)})}getThemingParticipants(){return this.themingParticipants}}const t=new i;w.Registry.add(e.Extensions.ThemingContribution,t);function o(d){return t.onColorThemeChange(d)}e.registerThemingParticipant=o;class s extends k.Disposable{constructor(l){super(),this.themeService=l,this.theme=l.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(a=>this.onThemeChange(a)))}onThemeChange(l){this.theme=l,this.updateStyles()}updateStyles(){}}e.Themable=s}),define(oe[669],se([1,0,6,2,73,15]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GlobalStyleSheet=e.AbstractCodeEditorService=void 0;let w=class extends v.Disposable{constructor(C){super(),this._themeService=C,this._onCodeEditorAdd=this._register(new y.Emitter),this.onCodeEditorAdd=this._onCodeEditorAdd.event,this._onCodeEditorRemove=this._register(new y.Emitter),this.onCodeEditorRemove=this._onCodeEditorRemove.event,this._onDiffEditorAdd=this._register(new y.Emitter),this.onDiffEditorAdd=this._onDiffEditorAdd.event,this._onDiffEditorRemove=this._register(new y.Emitter),this.onDiffEditorRemove=this._onDiffEditorRemove.event,this._decorationOptionProviders=new Map,this._codeEditorOpenHandlers=new k.LinkedList,this._modelProperties=new Map,this._codeEditors=Object.create(null),this._diffEditors=Object.create(null),this._globalStyleSheet=null}addCodeEditor(C){this._codeEditors[C.getId()]=C,this._onCodeEditorAdd.fire(C)}removeCodeEditor(C){delete this._codeEditors[C.getId()]&&this._onCodeEditorRemove.fire(C)}listCodeEditors(){return Object.keys(this._codeEditors).map(C=>this._codeEditors[C])}addDiffEditor(C){this._diffEditors[C.getId()]=C,this._onDiffEditorAdd.fire(C)}removeDiffEditor(C){delete this._diffEditors[C.getId()]&&this._onDiffEditorRemove.fire(C)}listDiffEditors(){return Object.keys(this._diffEditors).map(C=>this._diffEditors[C])}getFocusedCodeEditor(){let C=null;const h=this.listCodeEditors();for(const u of h){if(u.hasTextFocus())return u;u.hasWidgetFocus()&&(C=u)}return C}removeDecorationType(C){const h=this._decorationOptionProviders.get(C);h&&(h.refCount--,h.refCount<=0&&(this._decorationOptionProviders.delete(C),h.dispose(),this.listCodeEditors().forEach(u=>u.removeDecorationsByType(C))))}setModelProperty(C,h,u){const n=C.toString();let i;this._modelProperties.has(n)?i=this._modelProperties.get(n):(i=new Map,this._modelProperties.set(n,i)),i.set(h,u)}getModelProperty(C,h){const u=C.toString();if(this._modelProperties.has(u))return this._modelProperties.get(u).get(h)}openCodeEditor(C,h,u){return be(this,void 0,void 0,function*(){for(const n of this._codeEditorOpenHandlers){const i=yield n(C,h,u);if(i!==null)return i}return null})}registerCodeEditorOpenHandler(C){const h=this._codeEditorOpenHandlers.unshift(C);return(0,v.toDisposable)(h)}};w=Ie([pe(0,D.IThemeService)],w),e.AbstractCodeEditorService=w;class b{constructor(h){this._styleSheet=h}}e.GlobalStyleSheet=b}),define(oe[670],se([1,0,7,33,75,47,15,25]),function(q,e,y,v,k,D,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorScrollbar=void 0;class C extends D.ViewPart{constructor(u,n,i,t){super(u);const o=this._context.configuration.options,s=o.get(94),d=o.get(69),l=o.get(36),a=o.get(97),r={listenOnDomNode:i.domNode,className:"editor-scrollable "+(0,w.getThemeTypeSelector)(u.theme.type),useShadows:!1,lazyRender:!0,vertical:s.vertical,horizontal:s.horizontal,verticalHasArrows:s.verticalHasArrows,horizontalHasArrows:s.horizontalHasArrows,verticalScrollbarSize:s.verticalScrollbarSize,verticalSliderSize:s.verticalSliderSize,horizontalScrollbarSize:s.horizontalScrollbarSize,horizontalSliderSize:s.horizontalSliderSize,handleMouseWheel:s.handleMouseWheel,alwaysConsumeMouseWheel:s.alwaysConsumeMouseWheel,arrowSize:s.arrowSize,mouseWheelScrollSensitivity:d,fastScrollSensitivity:l,scrollPredominantAxis:a,scrollByPage:s.scrollByPage};this.scrollbar=this._register(new k.SmoothScrollableElement(n.domNode,r,this._context.viewLayout.getScrollable())),D.PartFingerprints.write(this.scrollbar.getDomNode(),5),this.scrollbarDomNode=(0,v.createFastDomNode)(this.scrollbar.getDomNode()),this.scrollbarDomNode.setPosition("absolute"),this._setLayout();const c=(g,f,_)=>{const p={};if(f){const m=g.scrollTop;m&&(p.scrollTop=this._context.viewLayout.getCurrentScrollTop()+m,g.scrollTop=0)}if(_){const m=g.scrollLeft;m&&(p.scrollLeft=this._context.viewLayout.getCurrentScrollLeft()+m,g.scrollLeft=0)}this._context.viewModel.viewLayout.setScrollPosition(p,1)};this._register(y.addDisposableListener(i.domNode,"scroll",g=>c(i.domNode,!0,!0))),this._register(y.addDisposableListener(n.domNode,"scroll",g=>c(n.domNode,!0,!1))),this._register(y.addDisposableListener(t.domNode,"scroll",g=>c(t.domNode,!0,!1))),this._register(y.addDisposableListener(this.scrollbarDomNode.domNode,"scroll",g=>c(this.scrollbarDomNode.domNode,!0,!1)))}dispose(){super.dispose()}_setLayout(){const u=this._context.configuration.options,n=u.get(133);this.scrollbarDomNode.setLeft(n.contentLeft),u.get(67).side==="right"?this.scrollbarDomNode.setWidth(n.contentWidth+n.minimap.minimapWidth):this.scrollbarDomNode.setWidth(n.contentWidth),this.scrollbarDomNode.setHeight(n.height)}getOverviewRulerLayoutInfo(){return this.scrollbar.getOverviewRulerLayoutInfo()}getDomNode(){return this.scrollbarDomNode}delegateVerticalScrollbarPointerDown(u){this.scrollbar.delegateVerticalScrollbarPointerDown(u)}onConfigurationChanged(u){if(u.hasChanged(94)||u.hasChanged(69)||u.hasChanged(36)){const n=this._context.configuration.options,i=n.get(94),t=n.get(69),o=n.get(36),s=n.get(97),d={vertical:i.vertical,horizontal:i.horizontal,verticalScrollbarSize:i.verticalScrollbarSize,horizontalScrollbarSize:i.horizontalScrollbarSize,scrollByPage:i.scrollByPage,handleMouseWheel:i.handleMouseWheel,mouseWheelScrollSensitivity:t,fastScrollSensitivity:o,scrollPredominantAxis:s};this.scrollbar.updateOptions(d)}return u.hasChanged(133)&&this._setLayout(),!0}onScrollChanged(u){return!0}onThemeChanged(u){return this.scrollbar.updateClassName("editor-scrollable "+(0,w.getThemeTypeSelector)(this._context.theme.type)),!0}prepareRender(u){}render(u){this.scrollbar.renderNow()}}e.EditorScrollbar=C,(0,w.registerThemingParticipant)((h,u)=>{const n=h.getColor(b.scrollbarShadow);n&&u.addRule(` .monaco-scrollable-element > .shadow.top { box-shadow: ${n} 0 6px 6px -6px inset; } .monaco-scrollable-element > .shadow.left { box-shadow: ${n} 6px 0 6px -6px inset; } .monaco-scrollable-element > .shadow.top.left { box-shadow: ${n} 6px 6px 6px -6px inset; } `);const i=h.getColor(b.scrollbarSliderBackground);i&&u.addRule(` .monaco-scrollable-element > .scrollbar > .slider { background: ${i}; } `);const t=h.getColor(b.scrollbarSliderHoverBackground);t&&u.addRule(` .monaco-scrollable-element > .scrollbar > .slider:hover { background: ${t}; } `);const o=h.getColor(b.scrollbarSliderActiveBackground);o&&u.addRule(` .monaco-scrollable-element > .scrollbar > .slider.active { background: ${o}; } `)})}),define(oe[671],se([1,0,7,33,132,2,17,8,202,47,36,3,232,274,74,25,15,23,62,405,46,96,362]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r,c,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Minimap=void 0;const f=140,_=2;class p{constructor(x,M,P){const A=x.options,B=A.get(131),K=A.get(133),T=K.minimap,ee=A.get(46),J=A.get(67);this.renderMinimap=T.renderMinimap,this.size=J.size,this.minimapHeightIsEditorHeight=T.minimapHeightIsEditorHeight,this.scrollBeyondLastLine=A.get(96),this.showSlider=J.showSlider,this.autohide=J.autohide,this.pixelRatio=B,this.typicalHalfwidthCharacterWidth=ee.typicalHalfwidthCharacterWidth,this.lineHeight=A.get(61),this.minimapLeft=T.minimapLeft,this.minimapWidth=T.minimapWidth,this.minimapHeight=K.height,this.canvasInnerWidth=T.minimapCanvasInnerWidth,this.canvasInnerHeight=T.minimapCanvasInnerHeight,this.canvasOuterWidth=T.minimapCanvasOuterWidth,this.canvasOuterHeight=T.minimapCanvasOuterHeight,this.isSampling=T.minimapIsSampling,this.editorHeight=K.height,this.fontScale=T.minimapScale,this.minimapLineHeight=T.minimapLineHeight,this.minimapCharWidth=1*this.fontScale,this.charRenderer=(0,g.once)(()=>r.MinimapCharRendererFactory.create(this.fontScale,ee.fontFamily)),this.defaultBackgroundColor=P.getColor(2),this.backgroundColor=p._getMinimapBackground(M,this.defaultBackgroundColor),this.foregroundAlpha=p._getMinimapForegroundOpacity(M)}static _getMinimapBackground(x,M){const P=x.getColor(s.minimapBackground);return P?new i.RGBA8(P.rgba.r,P.rgba.g,P.rgba.b,Math.round(255*P.rgba.a)):M}static _getMinimapForegroundOpacity(x){const M=x.getColor(s.minimapForegroundOpacity);return M?i.RGBA8._clamp(Math.round(255*M.rgba.a)):255}equals(x){return this.renderMinimap===x.renderMinimap&&this.size===x.size&&this.minimapHeightIsEditorHeight===x.minimapHeightIsEditorHeight&&this.scrollBeyondLastLine===x.scrollBeyondLastLine&&this.showSlider===x.showSlider&&this.autohide===x.autohide&&this.pixelRatio===x.pixelRatio&&this.typicalHalfwidthCharacterWidth===x.typicalHalfwidthCharacterWidth&&this.lineHeight===x.lineHeight&&this.minimapLeft===x.minimapLeft&&this.minimapWidth===x.minimapWidth&&this.minimapHeight===x.minimapHeight&&this.canvasInnerWidth===x.canvasInnerWidth&&this.canvasInnerHeight===x.canvasInnerHeight&&this.canvasOuterWidth===x.canvasOuterWidth&&this.canvasOuterHeight===x.canvasOuterHeight&&this.isSampling===x.isSampling&&this.editorHeight===x.editorHeight&&this.fontScale===x.fontScale&&this.minimapLineHeight===x.minimapLineHeight&&this.minimapCharWidth===x.minimapCharWidth&&this.defaultBackgroundColor&&this.defaultBackgroundColor.equals(x.defaultBackgroundColor)&&this.backgroundColor&&this.backgroundColor.equals(x.backgroundColor)&&this.foregroundAlpha===x.foregroundAlpha}}class m{constructor(x,M,P,A,B,K,T,ee){this.scrollTop=x,this.scrollHeight=M,this.sliderNeeded=P,this._computedSliderRatio=A,this.sliderTop=B,this.sliderHeight=K,this.startLineNumber=T,this.endLineNumber=ee}getDesiredScrollTopFromDelta(x){return Math.round(this.scrollTop+x/this._computedSliderRatio)}getDesiredScrollTopFromTouchLocation(x){return Math.round((x-this.sliderHeight/2)/this._computedSliderRatio)}static create(x,M,P,A,B,K,T,ee,J,$,j){const G=x.pixelRatio,te=x.minimapLineHeight,Z=Math.floor(x.canvasInnerHeight/te),X=x.lineHeight;if(x.minimapHeightIsEditorHeight){const le=ee*x.lineHeight+(x.scrollBeyondLastLine?B-x.lineHeight:0),z=Math.max(1,Math.floor(B*B/le)),Q=Math.max(0,x.minimapHeight-z),W=Q/($-B),V=J*W,ne=Q>0,de=Math.floor(x.canvasInnerHeight/x.minimapLineHeight);return new m(J,$,ne,W,V,z,1,Math.min(T,de))}let ie;if(K&&P!==T){const le=P-M+1;ie=Math.floor(le*te/G)}else{const le=B/X;ie=Math.floor(le*te/G)}let H;x.scrollBeyondLastLine?H=(T-1)*te/G:H=Math.max(0,T*te/G-ie),H=Math.min(x.minimapHeight-ie,H);const ae=H/($-B),Y=J*ae;let U=0;if(x.scrollBeyondLastLine&&(U=B/X-1),Z>=T+U){const z=T,Q=H>0;return new m(J,$,Q,ae,Y,ie,1,z)}else{let le=Math.max(1,Math.floor(M-Y*G/te));j&&j.scrollHeight===$&&(j.scrollTop>J&&(le=Math.min(le,j.startLineNumber)),j.scrollTop<J&&(le=Math.max(le,j.startLineNumber)));const z=Math.min(T,le+Z-1),Q=(J-A)/X,W=(M-le+Q)*te/G;return new m(J,$,!0,ae,W,ie,le,z)}}}class S{constructor(x){this.dy=x}onContentChanged(){this.dy=-1}onTokensChanged(){this.dy=-1}}S.INVALID=new S(-1);class E{constructor(x,M,P){this.renderedLayout=x,this._imageData=M,this._renderedLines=new C.RenderedLinesCollection(()=>S.INVALID),this._renderedLines._set(x.startLineNumber,P)}linesEquals(x){if(!this.scrollEquals(x))return!1;const M=this._renderedLines._get().lines;for(let P=0,A=M.length;P<A;P++)if(M[P].dy===-1)return!1;return!0}scrollEquals(x){return this.renderedLayout.startLineNumber===x.startLineNumber&&this.renderedLayout.endLineNumber===x.endLineNumber}_get(){const x=this._renderedLines._get();return{imageData:this._imageData,rendLineNumberStart:x.rendLineNumberStart,lines:x.lines}}onLinesChanged(x,M){return this._renderedLines.onLinesChanged(x,M)}onLinesDeleted(x,M){this._renderedLines.onLinesDeleted(x,M)}onLinesInserted(x,M){this._renderedLines.onLinesInserted(x,M)}onTokensChanged(x){return this._renderedLines.onTokensChanged(x)}}class L{constructor(x,M,P,A){this._backgroundFillData=L._createBackgroundFillData(M,P,A),this._buffers=[x.createImageData(M,P),x.createImageData(M,P)],this._lastUsedBuffer=0}getBuffer(){this._lastUsedBuffer=1-this._lastUsedBuffer;const x=this._buffers[this._lastUsedBuffer];return x.data.set(this._backgroundFillData),x}static _createBackgroundFillData(x,M,P){const A=P.r,B=P.g,K=P.b,T=P.a,ee=new Uint8ClampedArray(x*M*4);let J=0;for(let $=0;$<M;$++)for(let j=0;j<x;j++)ee[J]=A,ee[J+1]=B,ee[J+2]=K,ee[J+3]=T,J+=4;return ee}}class N{constructor(x,M){this.samplingRatio=x,this.minimapLines=M}static compute(x,M,P){if(x.renderMinimap===0||!x.isSampling)return[null,[]];const A=x.pixelRatio,B=x.lineHeight,K=x.scrollBeyondLastLine,{minimapLineCount:T}=u.EditorLayoutInfoComputer.computeContainedMinimapLineCount({viewLineCount:M,scrollBeyondLastLine:K,height:x.editorHeight,lineHeight:B,pixelRatio:A}),ee=M/T,J=ee/2;if(!P||P.minimapLines.length===0){const Y=[];if(Y[0]=1,T>1){for(let U=0,le=T-1;U<le;U++)Y[U]=Math.round(U*ee+J);Y[T-1]=M}return[new N(ee,Y),[]]}const $=P.minimapLines,j=$.length,G=[];let te=0,Z=0,X=1;const ie=10;let H=[],ae=null;for(let Y=0;Y<T;Y++){const U=Math.max(X,Math.round(Y*ee)),le=Math.max(U,Math.round((Y+1)*ee));for(;te<j&&$[te]<U;){if(H.length<ie){const Q=te+1+Z;ae&&ae.type==="deleted"&&ae._oldIndex===te-1?ae.deleteToLineNumber++:(ae={type:"deleted",_oldIndex:te,deleteFromLineNumber:Q,deleteToLineNumber:Q},H.push(ae)),Z--}te++}let z;if(te<j&&$[te]<=le)z=$[te],te++;else if(Y===0?z=1:Y+1===T?z=M:z=Math.round(Y*ee+J),H.length<ie){const Q=te+1+Z;ae&&ae.type==="inserted"&&ae._i===Y-1?ae.insertToLineNumber++:(ae={type:"inserted",_i:Y,insertFromLineNumber:Q,insertToLineNumber:Q},H.push(ae)),Z++}G[Y]=z,X=z}if(H.length<ie)for(;te<j;){const Y=te+1+Z;ae&&ae.type==="deleted"&&ae._oldIndex===te-1?ae.deleteToLineNumber++:(ae={type:"deleted",_oldIndex:te,deleteFromLineNumber:Y,deleteToLineNumber:Y},H.push(ae)),Z--,te++}else H=[{type:"flush"}];return[new N(ee,G),H]}modelLineToMinimapLine(x){return Math.min(this.minimapLines.length,Math.max(1,Math.round(x/this.samplingRatio)))}modelLineRangeToMinimapLineRange(x,M){let P=this.modelLineToMinimapLine(x)-1;for(;P>0&&this.minimapLines[P-1]>=x;)P--;let A=this.modelLineToMinimapLine(M)-1;for(;A+1<this.minimapLines.length&&this.minimapLines[A+1]<=M;)A++;if(P===A){const B=this.minimapLines[P];if(B<x||B>M)return null}return[P+1,A+1]}decorationLineRangeToMinimapLineRange(x,M){let P=this.modelLineToMinimapLine(x),A=this.modelLineToMinimapLine(M);return x!==M&&A===P&&(A===this.minimapLines.length?P>1&&P--:A++),[P,A]}onLinesDeleted(x){const M=x.toLineNumber-x.fromLineNumber+1;let P=this.minimapLines.length,A=0;for(let B=this.minimapLines.length-1;B>=0&&!(this.minimapLines[B]<x.fromLineNumber);B--)this.minimapLines[B]<=x.toLineNumber?(this.minimapLines[B]=Math.max(1,x.fromLineNumber-1),P=Math.min(P,B),A=Math.max(A,B)):this.minimapLines[B]-=M;return[P,A]}onLinesInserted(x){const M=x.toLineNumber-x.fromLineNumber+1;for(let P=this.minimapLines.length-1;P>=0&&!(this.minimapLines[P]<x.fromLineNumber);P--)this.minimapLines[P]+=M}}class I extends h.ViewPart{constructor(x){super(x),this.tokensColorTracker=t.MinimapTokensColorTracker.getInstance(),this._selections=[],this._minimapSelections=null,this.options=new p(this._context.configuration,this._context.theme,this.tokensColorTracker);const[M]=N.compute(this.options,this._context.viewModel.getLineCount(),null);this._samplingState=M,this._shouldCheckSampling=!1,this._actual=new R(x.theme,this)}dispose(){this._actual.dispose(),super.dispose()}getDomNode(){return this._actual.getDomNode()}_onOptionsMaybeChanged(){const x=new p(this._context.configuration,this._context.theme,this.tokensColorTracker);return this.options.equals(x)?!1:(this.options=x,this._recreateLineSampling(),this._actual.onDidChangeOptions(),!0)}onConfigurationChanged(x){return this._onOptionsMaybeChanged()}onCursorStateChanged(x){return this._selections=x.selections,this._minimapSelections=null,this._actual.onSelectionChanged()}onDecorationsChanged(x){return x.affectsMinimap?this._actual.onDecorationsChanged():!1}onFlushed(x){return this._samplingState&&(this._shouldCheckSampling=!0),this._actual.onFlushed()}onLinesChanged(x){if(this._samplingState){const M=this._samplingState.modelLineRangeToMinimapLineRange(x.fromLineNumber,x.fromLineNumber+x.count-1);return M?this._actual.onLinesChanged(M[0],M[1]-M[0]+1):!1}else return this._actual.onLinesChanged(x.fromLineNumber,x.count)}onLinesDeleted(x){if(this._samplingState){const[M,P]=this._samplingState.onLinesDeleted(x);return M<=P&&this._actual.onLinesChanged(M+1,P-M+1),this._shouldCheckSampling=!0,!0}else return this._actual.onLinesDeleted(x.fromLineNumber,x.toLineNumber)}onLinesInserted(x){return this._samplingState?(this._samplingState.onLinesInserted(x),this._shouldCheckSampling=!0,!0):this._actual.onLinesInserted(x.fromLineNumber,x.toLineNumber)}onScrollChanged(x){return this._actual.onScrollChanged()}onThemeChanged(x){return this._actual.onThemeChanged(),this._onOptionsMaybeChanged(),!0}onTokensChanged(x){if(this._samplingState){const M=[];for(const P of x.ranges){const A=this._samplingState.modelLineRangeToMinimapLineRange(P.fromLineNumber,P.toLineNumber);A&&M.push({fromLineNumber:A[0],toLineNumber:A[1]})}return M.length?this._actual.onTokensChanged(M):!1}else return this._actual.onTokensChanged(x.ranges)}onTokensColorsChanged(x){return this._onOptionsMaybeChanged(),this._actual.onTokensColorsChanged()}onZonesChanged(x){return this._actual.onZonesChanged()}prepareRender(x){this._shouldCheckSampling&&(this._shouldCheckSampling=!1,this._recreateLineSampling())}render(x){let M=x.visibleRange.startLineNumber,P=x.visibleRange.endLineNumber;this._samplingState&&(M=this._samplingState.modelLineToMinimapLine(M),P=this._samplingState.modelLineToMinimapLine(P));const A={viewportContainsWhitespaceGaps:x.viewportData.whitespaceViewportData.length>0,scrollWidth:x.scrollWidth,scrollHeight:x.scrollHeight,viewportStartLineNumber:M,viewportEndLineNumber:P,viewportStartLineNumberVerticalOffset:x.getVerticalOffsetForLineNumber(M),scrollTop:x.scrollTop,scrollLeft:x.scrollLeft,viewportWidth:x.viewportWidth,viewportHeight:x.viewportHeight};this._actual.render(A)}_recreateLineSampling(){this._minimapSelections=null;const x=!!this._samplingState,[M,P]=N.compute(this.options,this._context.viewModel.getLineCount(),this._samplingState);if(this._samplingState=M,x&&this._samplingState)for(const A of P)switch(A.type){case"deleted":this._actual.onLinesDeleted(A.deleteFromLineNumber,A.deleteToLineNumber);break;case"inserted":this._actual.onLinesInserted(A.insertFromLineNumber,A.insertToLineNumber);break;case"flush":this._actual.onFlushed();break}}getLineCount(){return this._samplingState?this._samplingState.minimapLines.length:this._context.viewModel.getLineCount()}getRealLineCount(){return this._context.viewModel.getLineCount()}getLineContent(x){return this._samplingState?this._context.viewModel.getLineContent(this._samplingState.minimapLines[x-1]):this._context.viewModel.getLineContent(x)}getLineMaxColumn(x){return this._samplingState?this._context.viewModel.getLineMaxColumn(this._samplingState.minimapLines[x-1]):this._context.viewModel.getLineMaxColumn(x)}getMinimapLinesRenderingData(x,M,P){if(this._samplingState){const A=[];for(let B=0,K=M-x+1;B<K;B++)P[B]?A[B]=this._context.viewModel.getViewLineData(this._samplingState.minimapLines[x+B-1]):A[B]=null;return A}return this._context.viewModel.getMinimapLinesRenderingData(x,M,P).data}getSelections(){if(this._minimapSelections===null)if(this._samplingState){this._minimapSelections=[];for(const x of this._selections){const[M,P]=this._samplingState.decorationLineRangeToMinimapLineRange(x.startLineNumber,x.endLineNumber);this._minimapSelections.push(new l.Selection(M,x.startColumn,P,x.endColumn))}}else this._minimapSelections=this._selections;return this._minimapSelections}getMinimapDecorationsInViewport(x,M){let P;if(this._samplingState){const B=this._samplingState.minimapLines[x-1],K=this._samplingState.minimapLines[M-1];P=new n.Range(B,1,K,this._context.viewModel.getLineMaxColumn(K))}else P=new n.Range(x,1,M,this._context.viewModel.getLineMaxColumn(M));const A=this._context.viewModel.getDecorationsInViewport(P);if(this._samplingState){const B=[];for(const K of A){if(!K.options.minimap)continue;const T=K.range,ee=this._samplingState.modelLineToMinimapLine(T.startLineNumber),J=this._samplingState.modelLineToMinimapLine(T.endLineNumber);B.push(new o.ViewModelDecoration(new n.Range(ee,T.startColumn,J,T.endColumn),K.options))}return B}return A}getOptions(){return this._context.viewModel.model.getOptions()}revealLineNumber(x){this._samplingState&&(x=this._samplingState.minimapLines[x-1]),this._context.viewModel.revealRange("mouse",!1,new n.Range(x,1,x,1),1,0)}setScrollTop(x){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:x},1)}}e.Minimap=I;class R extends D.Disposable{constructor(x,M){super(),this._renderDecorations=!1,this._gestureInProgress=!1,this._theme=x,this._model=M,this._lastRenderData=null,this._buffers=null,this._selectionColor=this._theme.getColor(s.minimapSelection),this._domNode=(0,v.createFastDomNode)(document.createElement("div")),h.PartFingerprints.write(this._domNode,8),this._domNode.setClassName(this._getMinimapDomNodeClassName()),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._shadow=(0,v.createFastDomNode)(document.createElement("div")),this._shadow.setClassName("minimap-shadow-hidden"),this._domNode.appendChild(this._shadow),this._canvas=(0,v.createFastDomNode)(document.createElement("canvas")),this._canvas.setPosition("absolute"),this._canvas.setLeft(0),this._domNode.appendChild(this._canvas),this._decorationsCanvas=(0,v.createFastDomNode)(document.createElement("canvas")),this._decorationsCanvas.setPosition("absolute"),this._decorationsCanvas.setClassName("minimap-decorations-layer"),this._decorationsCanvas.setLeft(0),this._domNode.appendChild(this._decorationsCanvas),this._slider=(0,v.createFastDomNode)(document.createElement("div")),this._slider.setPosition("absolute"),this._slider.setClassName("minimap-slider"),this._slider.setLayerHinting(!0),this._slider.setContain("strict"),this._domNode.appendChild(this._slider),this._sliderHorizontal=(0,v.createFastDomNode)(document.createElement("div")),this._sliderHorizontal.setPosition("absolute"),this._sliderHorizontal.setClassName("minimap-slider-horizontal"),this._slider.appendChild(this._sliderHorizontal),this._applyLayout(),this._pointerDownListener=y.addStandardDisposableListener(this._domNode.domNode,y.EventType.POINTER_DOWN,P=>{if(P.preventDefault(),this._model.options.renderMinimap===0||!this._lastRenderData)return;if(this._model.options.size!=="proportional"){if(P.button===0&&this._lastRenderData){const T=y.getDomNodePagePosition(this._slider.domNode),ee=T.top+T.height/2;this._startSliderDragging(P,ee,this._lastRenderData.renderedLayout)}return}const A=this._model.options.minimapLineHeight,B=this._model.options.canvasInnerHeight/this._model.options.canvasOuterHeight*P.offsetY;let K=Math.floor(B/A)+this._lastRenderData.renderedLayout.startLineNumber;K=Math.min(K,this._model.getLineCount()),this._model.revealLineNumber(K)}),this._sliderPointerMoveMonitor=new k.GlobalPointerMoveMonitor,this._sliderPointerDownListener=y.addStandardDisposableListener(this._slider.domNode,y.EventType.POINTER_DOWN,P=>{P.preventDefault(),P.stopPropagation(),P.button===0&&this._lastRenderData&&this._startSliderDragging(P,P.pageY,this._lastRenderData.renderedLayout)}),this._gestureDisposable=a.Gesture.addTarget(this._domNode.domNode),this._sliderTouchStartListener=y.addDisposableListener(this._domNode.domNode,a.EventType.Start,P=>{P.preventDefault(),P.stopPropagation(),this._lastRenderData&&(this._slider.toggleClassName("active",!0),this._gestureInProgress=!0,this.scrollDueToTouchEvent(P))},{passive:!1}),this._sliderTouchMoveListener=y.addDisposableListener(this._domNode.domNode,a.EventType.Change,P=>{P.preventDefault(),P.stopPropagation(),this._lastRenderData&&this._gestureInProgress&&this.scrollDueToTouchEvent(P)},{passive:!1}),this._sliderTouchEndListener=y.addStandardDisposableListener(this._domNode.domNode,a.EventType.End,P=>{P.preventDefault(),P.stopPropagation(),this._gestureInProgress=!1,this._slider.toggleClassName("active",!1)})}_startSliderDragging(x,M,P){if(!x.target||!(x.target instanceof Element))return;const A=x.pageX;this._slider.toggleClassName("active",!0);const B=(K,T)=>{const ee=Math.abs(T-A);if(w.isWindows&&ee>f){this._model.setScrollTop(P.scrollTop);return}const J=K-M;this._model.setScrollTop(P.getDesiredScrollTopFromDelta(J))};x.pageY!==M&&B(x.pageY,A),this._sliderPointerMoveMonitor.startMonitoring(x.target,x.pointerId,x.buttons,K=>B(K.pageY,K.pageX),()=>{this._slider.toggleClassName("active",!1)})}scrollDueToTouchEvent(x){const M=this._domNode.domNode.getBoundingClientRect().top,P=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(x.pageY-M);this._model.setScrollTop(P)}dispose(){this._pointerDownListener.dispose(),this._sliderPointerMoveMonitor.dispose(),this._sliderPointerDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),super.dispose()}_getMinimapDomNodeClassName(){const x=["minimap"];return this._model.options.showSlider==="always"?x.push("slider-always"):x.push("slider-mouseover"),this._model.options.autohide&&x.push("autohide"),x.join(" ")}getDomNode(){return this._domNode}_applyLayout(){this._domNode.setLeft(this._model.options.minimapLeft),this._domNode.setWidth(this._model.options.minimapWidth),this._domNode.setHeight(this._model.options.minimapHeight),this._shadow.setHeight(this._model.options.minimapHeight),this._canvas.setWidth(this._model.options.canvasOuterWidth),this._canvas.setHeight(this._model.options.canvasOuterHeight),this._canvas.domNode.width=this._model.options.canvasInnerWidth,this._canvas.domNode.height=this._model.options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._model.options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._model.options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._model.options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._model.options.canvasInnerHeight,this._slider.setWidth(this._model.options.minimapWidth)}_getBuffer(){return this._buffers||this._model.options.canvasInnerWidth>0&&this._model.options.canvasInnerHeight>0&&(this._buffers=new L(this._canvas.domNode.getContext("2d"),this._model.options.canvasInnerWidth,this._model.options.canvasInnerHeight,this._model.options.backgroundColor)),this._buffers?this._buffers.getBuffer():null}onDidChangeOptions(){this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName())}onSelectionChanged(){return this._renderDecorations=!0,!0}onDecorationsChanged(){return this._renderDecorations=!0,!0}onFlushed(){return this._lastRenderData=null,!0}onLinesChanged(x,M){return this._lastRenderData?this._lastRenderData.onLinesChanged(x,M):!1}onLinesDeleted(x,M){var P;return(P=this._lastRenderData)===null||P===void 0||P.onLinesDeleted(x,M),!0}onLinesInserted(x,M){var P;return(P=this._lastRenderData)===null||P===void 0||P.onLinesInserted(x,M),!0}onScrollChanged(){return this._renderDecorations=!0,!0}onThemeChanged(){return this._selectionColor=this._theme.getColor(s.minimapSelection),this._renderDecorations=!0,!0}onTokensChanged(x){return this._lastRenderData?this._lastRenderData.onTokensChanged(x):!1}onTokensColorsChanged(){return this._lastRenderData=null,this._buffers=null,!0}onZonesChanged(){return this._lastRenderData=null,!0}render(x){if(this._model.options.renderMinimap===0){this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),this._sliderHorizontal.setHeight(0);return}x.scrollLeft+x.viewportWidth>=x.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");const M=m.create(this._model.options,x.viewportStartLineNumber,x.viewportEndLineNumber,x.viewportStartLineNumberVerticalOffset,x.viewportHeight,x.viewportContainsWhitespaceGaps,this._model.getLineCount(),this._model.getRealLineCount(),x.scrollTop,x.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setDisplay(M.sliderNeeded?"block":"none"),this._slider.setTop(M.sliderTop),this._slider.setHeight(M.sliderHeight),this._sliderHorizontal.setLeft(0),this._sliderHorizontal.setWidth(this._model.options.minimapWidth),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(M.sliderHeight),this.renderDecorations(M),this._lastRenderData=this.renderLines(M)}renderDecorations(x){if(this._renderDecorations){this._renderDecorations=!1;const M=this._model.getSelections();M.sort(n.Range.compareRangesUsingStarts);const P=this._model.getMinimapDecorationsInViewport(x.startLineNumber,x.endLineNumber);P.sort((G,te)=>(G.options.zIndex||0)-(te.options.zIndex||0));const{canvasInnerWidth:A,canvasInnerHeight:B}=this._model.options,K=this._model.options.minimapLineHeight,T=this._model.options.minimapCharWidth,ee=this._model.getOptions().tabSize,J=this._decorationsCanvas.domNode.getContext("2d");J.clearRect(0,0,A,B);const $=new F(x.startLineNumber,x.endLineNumber,!1);this._renderSelectionLineHighlights(J,M,$,x,K),this._renderDecorationsLineHighlights(J,P,$,x,K);const j=new F(x.startLineNumber,x.endLineNumber,null);this._renderSelectionsHighlights(J,M,j,x,K,ee,T,A),this._renderDecorationsHighlights(J,P,j,x,K,ee,T,A)}}_renderSelectionLineHighlights(x,M,P,A,B){if(!this._selectionColor||this._selectionColor.isTransparent())return;x.fillStyle=this._selectionColor.transparent(.5).toString();let K=0,T=0;for(const ee of M){const J=Math.max(A.startLineNumber,ee.startLineNumber),$=Math.min(A.endLineNumber,ee.endLineNumber);if(J>$)continue;for(let te=J;te<=$;te++)P.set(te,!0);const j=(J-A.startLineNumber)*B,G=($-A.startLineNumber)*B+B;T>=j||(T>K&&x.fillRect(u.MINIMAP_GUTTER_WIDTH,K,x.canvas.width,T-K),K=j),T=G}T>K&&x.fillRect(u.MINIMAP_GUTTER_WIDTH,K,x.canvas.width,T-K)}_renderDecorationsLineHighlights(x,M,P,A,B){const K=new Map;for(let T=M.length-1;T>=0;T--){const ee=M[T],J=ee.options.minimap;if(!J||J.position!==c.MinimapPosition.Inline)continue;const $=Math.max(A.startLineNumber,ee.range.startLineNumber),j=Math.min(A.endLineNumber,ee.range.endLineNumber);if($>j)continue;const G=J.getColor(this._theme.value);if(!G||G.isTransparent())continue;let te=K.get(G.toString());te||(te=G.transparent(.5).toString(),K.set(G.toString(),te)),x.fillStyle=te;for(let Z=$;Z<=j;Z++){if(P.has(Z))continue;P.set(Z,!0);const X=($-A.startLineNumber)*B;x.fillRect(u.MINIMAP_GUTTER_WIDTH,X,x.canvas.width,B)}}}_renderSelectionsHighlights(x,M,P,A,B,K,T,ee){if(!(!this._selectionColor||this._selectionColor.isTransparent()))for(const J of M){const $=Math.max(A.startLineNumber,J.startLineNumber),j=Math.min(A.endLineNumber,J.endLineNumber);if(!($>j))for(let G=$;G<=j;G++)this.renderDecorationOnLine(x,P,J,this._selectionColor,A,G,B,B,K,T,ee)}}_renderDecorationsHighlights(x,M,P,A,B,K,T,ee){for(const J of M){const $=J.options.minimap;if(!$)continue;const j=Math.max(A.startLineNumber,J.range.startLineNumber),G=Math.min(A.endLineNumber,J.range.endLineNumber);if(j>G)continue;const te=$.getColor(this._theme.value);if(!(!te||te.isTransparent()))for(let Z=j;Z<=G;Z++)switch($.position){case c.MinimapPosition.Inline:this.renderDecorationOnLine(x,P,J.range,te,A,Z,B,B,K,T,ee);continue;case c.MinimapPosition.Gutter:{const X=(Z-A.startLineNumber)*B,ie=2;this.renderDecoration(x,te,ie,X,_,B);continue}}}}renderDecorationOnLine(x,M,P,A,B,K,T,ee,J,$,j){const G=(K-B.startLineNumber)*ee;if(G+T<0||G>this._model.options.canvasInnerHeight)return;const{startLineNumber:te,endLineNumber:Z}=P,X=te===K?P.startColumn:1,ie=Z===K?P.endColumn:this._model.getLineMaxColumn(K),H=this.getXOffsetForPosition(M,K,X,J,$,j),ae=this.getXOffsetForPosition(M,K,ie,J,$,j);this.renderDecoration(x,A,H,G,ae-H,T)}getXOffsetForPosition(x,M,P,A,B,K){if(P===1)return u.MINIMAP_GUTTER_WIDTH;if((P-1)*B>=K)return K;let T=x.get(M);if(!T){const ee=this._model.getLineContent(M);T=[u.MINIMAP_GUTTER_WIDTH];let J=u.MINIMAP_GUTTER_WIDTH;for(let $=1;$<ee.length+1;$++){const j=ee.charCodeAt($-1),G=j===9?A*B:b.isFullWidthCharacter(j)?2*B:B,te=J+G;if(te>=K){T[$]=K;break}T[$]=te,J=te}x.set(M,T)}return P-1<T.length?T[P-1]:K}renderDecoration(x,M,P,A,B,K){x.fillStyle=M&&M.toString()||"",x.fillRect(P,A,B,K)}renderLines(x){const M=x.startLineNumber,P=x.endLineNumber,A=this._model.options.minimapLineHeight;if(this._lastRenderData&&this._lastRenderData.linesEquals(x)){const ce=this._lastRenderData._get();return new E(x,ce.imageData,ce.lines)}const B=this._getBuffer();if(!B)return null;const[K,T,ee]=R._renderUntouchedLines(B,M,P,A,this._lastRenderData),J=this._model.getMinimapLinesRenderingData(M,P,ee),$=this._model.getOptions().tabSize,j=this._model.options.defaultBackgroundColor,G=this._model.options.backgroundColor,te=this._model.options.foregroundAlpha,Z=this._model.tokensColorTracker,X=Z.backgroundIsLight(),ie=this._model.options.renderMinimap,H=this._model.options.charRenderer(),ae=this._model.options.fontScale,Y=this._model.options.minimapCharWidth,U=(ie===1?2:2+1)*ae,le=A>U?Math.floor((A-U)/2):0,z=G.a/255,Q=new i.RGBA8(Math.round((G.r-j.r)*z+j.r),Math.round((G.g-j.g)*z+j.g),Math.round((G.b-j.b)*z+j.b),255);let W=0;const V=[];for(let ce=0,ue=P-M+1;ce<ue;ce++)ee[ce]&&R._renderLine(B,Q,G.a,X,ie,Y,Z,te,H,W,le,$,J[ce],ae,A),V[ce]=new S(W),W+=A;const ne=K===-1?0:K,de=(T===-1?B.height:T)-ne;return this._canvas.domNode.getContext("2d").putImageData(B,0,0,0,ne,B.width,de),new E(x,B,V)}static _renderUntouchedLines(x,M,P,A,B){const K=[];if(!B){for(let W=0,V=P-M+1;W<V;W++)K[W]=!0;return[-1,-1,K]}const T=B._get(),ee=T.imageData.data,J=T.rendLineNumberStart,$=T.lines,j=$.length,G=x.width,te=x.data,Z=(P-M+1)*A*G*4;let X=-1,ie=-1,H=-1,ae=-1,Y=-1,U=-1,le=0;for(let W=M;W<=P;W++){const V=W-M,ne=W-J,de=ne>=0&&ne<j?$[ne].dy:-1;if(de===-1){K[V]=!0,le+=A;continue}const ce=de*G*4,ue=(de+A)*G*4,me=le*G*4,_e=(le+A)*G*4;ae===ce&&U===me?(ae=ue,U=_e):(H!==-1&&(te.set(ee.subarray(H,ae),Y),X===-1&&H===0&&H===Y&&(X=ae),ie===-1&&ae===Z&&H===Y&&(ie=H)),H=ce,ae=ue,Y=me,U=_e),K[V]=!1,le+=A}H!==-1&&(te.set(ee.subarray(H,ae),Y),X===-1&&H===0&&H===Y&&(X=ae),ie===-1&&ae===Z&&H===Y&&(ie=H));const z=X===-1?-1:X/(G*4),Q=ie===-1?-1:ie/(G*4);return[z,Q,K]}static _renderLine(x,M,P,A,B,K,T,ee,J,$,j,G,te,Z,X){const ie=te.content,H=te.tokens,ae=x.width-K,Y=X===1;let U=u.MINIMAP_GUTTER_WIDTH,le=0,z=0;for(let Q=0,W=H.getCount();Q<W;Q++){const V=H.getEndOffset(Q),ne=H.getForeground(Q),de=T.getColor(ne);for(;le<V;le++){if(U>ae)return;const ce=ie.charCodeAt(le);if(ce===9){const ue=G-(le+z)%G;z+=ue-1,U+=ue*K}else if(ce===32)U+=K;else{const ue=b.isFullWidthCharacter(ce)?2:1;for(let me=0;me<ue;me++)if(B===2?J.blockRenderChar(x,U,$+j,de,ee,M,P,Y):J.renderChar(x,U,$+j,ce,de,ee,M,P,Z,A,Y),U+=K,U>ae)return}}}}}class F{constructor(x,M,P){this._startLineNumber=x,this._endLineNumber=M,this._defaultValue=P,this._values=[];for(let A=0,B=this._endLineNumber-this._startLineNumber+1;A<B;A++)this._values[A]=P}has(x){return this.get(x)!==this._defaultValue}set(x,M){x<this._startLineNumber||x>this._endLineNumber||(this._values[x-this._startLineNumber]=M)}get(x){return x<this._startLineNumber||x>this._endLineNumber?this._defaultValue:this._values[x-this._startLineNumber]}}(0,d.registerThemingParticipant)((O,x)=>{const M=O.getColor(s.minimapSliderBackground);M&&x.addRule(`.monaco-editor .minimap-slider .minimap-slider-horizontal { background: ${M}; }`);const P=O.getColor(s.minimapSliderHoverBackground);P&&x.addRule(`.monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: ${P}; }`);const A=O.getColor(s.minimapSliderActiveBackground);A&&x.addRule(`.monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: ${A}; }`);const B=O.getColor(s.scrollbarShadow);B&&x.addRule(`.monaco-editor .minimap-shadow-visible { box-shadow: ${B} -6px 0 6px -6px inset; }`)})}),define(oe[672],se([1,0,33,47,25,15,365]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ScrollDecorationViewPart=void 0;class w extends v.ViewPart{constructor(C){super(C),this._scrollTop=0,this._width=0,this._updateWidth(),this._shouldShow=!1;const h=this._context.configuration.options.get(94);this._useShadows=h.useShadows,this._domNode=(0,y.createFastDomNode)(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true")}dispose(){super.dispose()}_updateShouldShow(){const C=this._useShadows&&this._scrollTop>0;return this._shouldShow!==C?(this._shouldShow=C,!0):!1}getDomNode(){return this._domNode}_updateWidth(){const C=this._context.configuration.options.get(133);C.minimap.renderMinimap===0||C.minimap.minimapWidth>0&&C.minimap.minimapLeft===0?this._width=C.width:this._width=C.width-C.verticalScrollbarWidth}onConfigurationChanged(C){const h=this._context.configuration.options.get(94);return this._useShadows=h.useShadows,this._updateWidth(),this._updateShouldShow(),!0}onScrollChanged(C){return this._scrollTop=C.scrollTop,this._updateShouldShow()}prepareRender(C){}render(C){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")}}e.ScrollDecorationViewPart=w,(0,D.registerThemingParticipant)((b,C)=>{const h=b.getColor(k.scrollbarShadow);h&&C.addRule(`.monaco-editor .scroll-decoration { box-shadow: ${h} 0 6px 6px -6px inset; }`)})}),define(oe[673],se([1,0,112,25,15,366]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SelectionsOverlay=void 0;class D{constructor(i){this.left=i.left,this.width=i.width,this.startStyle=null,this.endStyle=null}}class w{constructor(i,t){this.lineNumber=i,this.ranges=t}}function b(n){return new D(n)}function C(n){return new w(n.lineNumber,n.ranges.map(b))}class h extends y.DynamicViewOverlay{constructor(i){super(),this._previousFrameVisibleRangesWithStyle=[],this._context=i;const t=this._context.configuration.options;this._lineHeight=t.get(61),this._roundedSelection=t.get(92),this._typicalHalfwidthCharacterWidth=t.get(46).typicalHalfwidthCharacterWidth,this._selections=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(i){const t=this._context.configuration.options;return this._lineHeight=t.get(61),this._roundedSelection=t.get(92),this._typicalHalfwidthCharacterWidth=t.get(46).typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(i){return this._selections=i.selections.slice(0),!0}onDecorationsChanged(i){return!0}onFlushed(i){return!0}onLinesChanged(i){return!0}onLinesDeleted(i){return!0}onLinesInserted(i){return!0}onScrollChanged(i){return i.scrollTopChanged}onZonesChanged(i){return!0}_visibleRangesHaveGaps(i){for(let t=0,o=i.length;t<o;t++)if(i[t].ranges.length>1)return!0;return!1}_enrichVisibleRangesWithStyle(i,t,o){const s=this._typicalHalfwidthCharacterWidth/4;let d=null,l=null;if(o&&o.length>0&&t.length>0){const a=t[0].lineNumber;if(a===i.startLineNumber)for(let c=0;!d&&c<o.length;c++)o[c].lineNumber===a&&(d=o[c].ranges[0]);const r=t[t.length-1].lineNumber;if(r===i.endLineNumber)for(let c=o.length-1;!l&&c>=0;c--)o[c].lineNumber===r&&(l=o[c].ranges[0]);d&&!d.startStyle&&(d=null),l&&!l.startStyle&&(l=null)}for(let a=0,r=t.length;a<r;a++){const c=t[a].ranges[0],g=c.left,f=c.left+c.width,_={top:0,bottom:0},p={top:0,bottom:0};if(a>0){const m=t[a-1].ranges[0].left,S=t[a-1].ranges[0].left+t[a-1].ranges[0].width;u(g-m)<s?_.top=2:g>m&&(_.top=1),u(f-S)<s?p.top=2:m<f&&f<S&&(p.top=1)}else d&&(_.top=d.startStyle.top,p.top=d.endStyle.top);if(a+1<r){const m=t[a+1].ranges[0].left,S=t[a+1].ranges[0].left+t[a+1].ranges[0].width;u(g-m)<s?_.bottom=2:m<g&&g<S&&(_.bottom=1),u(f-S)<s?p.bottom=2:f<S&&(p.bottom=1)}else l&&(_.bottom=l.startStyle.bottom,p.bottom=l.endStyle.bottom);c.startStyle=_,c.endStyle=p}}_getVisibleRangesWithStyle(i,t,o){const s=(t.linesVisibleRangesForRange(i,!0)||[]).map(C);return!this._visibleRangesHaveGaps(s)&&this._roundedSelection&&this._enrichVisibleRangesWithStyle(t.visibleRange,s,o),s}_createSelectionPiece(i,t,o,s,d){return'<div class="cslr '+o+'" style="top:'+i.toString()+"px;left:"+s.toString()+"px;width:"+d.toString()+"px;height:"+t+'px;"></div>'}_actualRenderOneSelection(i,t,o,s){if(s.length===0)return;const d=!!s[0].ranges[0].startStyle,l=this._lineHeight.toString(),a=(this._lineHeight-1).toString(),r=s[0].lineNumber,c=s[s.length-1].lineNumber;for(let g=0,f=s.length;g<f;g++){const _=s[g],p=_.lineNumber,m=p-t,S=o&&(p===c||p===r)?a:l,E=o&&p===r?1:0;let L="",N="";for(let I=0,R=_.ranges.length;I<R;I++){const F=_.ranges[I];if(d){const x=F.startStyle,M=F.endStyle;if(x.top===1||x.bottom===1){L+=this._createSelectionPiece(E,S,h.SELECTION_CLASS_NAME,F.left-h.ROUNDED_PIECE_WIDTH,h.ROUNDED_PIECE_WIDTH);let P=h.EDITOR_BACKGROUND_CLASS_NAME;x.top===1&&(P+=" "+h.SELECTION_TOP_RIGHT),x.bottom===1&&(P+=" "+h.SELECTION_BOTTOM_RIGHT),L+=this._createSelectionPiece(E,S,P,F.left-h.ROUNDED_PIECE_WIDTH,h.ROUNDED_PIECE_WIDTH)}if(M.top===1||M.bottom===1){L+=this._createSelectionPiece(E,S,h.SELECTION_CLASS_NAME,F.left+F.width,h.ROUNDED_PIECE_WIDTH);let P=h.EDITOR_BACKGROUND_CLASS_NAME;M.top===1&&(P+=" "+h.SELECTION_TOP_LEFT),M.bottom===1&&(P+=" "+h.SELECTION_BOTTOM_LEFT),L+=this._createSelectionPiece(E,S,P,F.left+F.width,h.ROUNDED_PIECE_WIDTH)}}let O=h.SELECTION_CLASS_NAME;if(d){const x=F.startStyle,M=F.endStyle;x.top===0&&(O+=" "+h.SELECTION_TOP_LEFT),x.bottom===0&&(O+=" "+h.SELECTION_BOTTOM_LEFT),M.top===0&&(O+=" "+h.SELECTION_TOP_RIGHT),M.bottom===0&&(O+=" "+h.SELECTION_BOTTOM_RIGHT)}N+=this._createSelectionPiece(E,S,O,F.left,F.width)}i[m][0]+=L,i[m][1]+=N}}prepareRender(i){const t=[],o=i.visibleRange.startLineNumber,s=i.visibleRange.endLineNumber;for(let l=o;l<=s;l++){const a=l-o;t[a]=["",""]}const d=[];for(let l=0,a=this._selections.length;l<a;l++){const r=this._selections[l];if(r.isEmpty()){d[l]=null;continue}const c=this._getVisibleRangesWithStyle(r,i,this._previousFrameVisibleRangesWithStyle[l]);d[l]=c,this._actualRenderOneSelection(t,o,this._selections.length>1,c)}this._previousFrameVisibleRangesWithStyle=d,this._renderResult=t.map(([l,a])=>l+a)}render(i,t){if(!this._renderResult)return"";const o=t-i;return o<0||o>=this._renderResult.length?"":this._renderResult[o]}}e.SelectionsOverlay=h,h.SELECTION_CLASS_NAME="selected-text",h.SELECTION_TOP_LEFT="top-left-radius",h.SELECTION_BOTTOM_LEFT="bottom-left-radius",h.SELECTION_TOP_RIGHT="top-right-radius",h.SELECTION_BOTTOM_RIGHT="bottom-right-radius",h.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",h.ROUNDED_PIECE_WIDTH=10,(0,k.registerThemingParticipant)((n,i)=>{const t=n.getColor(v.editorSelectionBackground);t&&i.addRule(`.monaco-editor .focused .selected-text { background-color: ${t}; }`);const o=n.getColor(v.editorInactiveSelection);o&&i.addRule(`.monaco-editor .selected-text { background-color: ${o}; }`);const s=n.getColor(v.editorSelectionForeground);s&&!s.isTransparent()&&i.addRule(`.monaco-editor .view-line span.inline-selected-text { color: ${s}; }`)});function u(n){return n<0?-n:n}}),define(oe[54],se([1,0,533,31,25,15,56]),function(q,e,y,v,k,D,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.editorUnicodeHighlightBackground=e.editorUnicodeHighlightBorder=e.editorBracketPairGuideActiveBackground6=e.editorBracketPairGuideActiveBackground5=e.editorBracketPairGuideActiveBackground4=e.editorBracketPairGuideActiveBackground3=e.editorBracketPairGuideActiveBackground2=e.editorBracketPairGuideActiveBackground1=e.editorBracketPairGuideBackground6=e.editorBracketPairGuideBackground5=e.editorBracketPairGuideBackground4=e.editorBracketPairGuideBackground3=e.editorBracketPairGuideBackground2=e.editorBracketPairGuideBackground1=e.editorBracketHighlightingUnexpectedBracketForeground=e.editorBracketHighlightingForeground6=e.editorBracketHighlightingForeground5=e.editorBracketHighlightingForeground4=e.editorBracketHighlightingForeground3=e.editorBracketHighlightingForeground2=e.editorBracketHighlightingForeground1=e.overviewRulerInfo=e.overviewRulerWarning=e.overviewRulerError=e.overviewRulerRangeHighlight=e.ghostTextBackground=e.ghostTextForeground=e.ghostTextBorder=e.editorUnnecessaryCodeOpacity=e.editorUnnecessaryCodeBorder=e.editorGutter=e.editorOverviewRulerBackground=e.editorOverviewRulerBorder=e.editorBracketMatchBorder=e.editorBracketMatchBackground=e.editorCodeLensForeground=e.editorRuler=e.editorActiveLineNumber=e.editorLineNumbers=e.editorActiveIndentGuides=e.editorIndentGuides=e.editorWhitespaces=e.editorCursorBackground=e.editorCursorForeground=e.editorSymbolHighlightBorder=e.editorSymbolHighlight=e.editorRangeHighlightBorder=e.editorRangeHighlight=e.editorLineHighlightBorder=e.editorLineHighlight=void 0,e.editorLineHighlight=(0,k.registerColor)("editor.lineHighlightBackground",{dark:null,light:null,hcDark:null,hcLight:null},y.localize(0,null)),e.editorLineHighlightBorder=(0,k.registerColor)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hcDark:"#f38518",hcLight:k.contrastBorder},y.localize(1,null)),e.editorRangeHighlight=(0,k.registerColor)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hcDark:null,hcLight:null},y.localize(2,null),!0),e.editorRangeHighlightBorder=(0,k.registerColor)("editor.rangeHighlightBorder",{dark:null,light:null,hcDark:k.activeContrastBorder,hcLight:k.activeContrastBorder},y.localize(3,null),!0),e.editorSymbolHighlight=(0,k.registerColor)("editor.symbolHighlightBackground",{dark:k.editorFindMatchHighlight,light:k.editorFindMatchHighlight,hcDark:null,hcLight:null},y.localize(4,null),!0),e.editorSymbolHighlightBorder=(0,k.registerColor)("editor.symbolHighlightBorder",{dark:null,light:null,hcDark:k.activeContrastBorder,hcLight:k.activeContrastBorder},y.localize(5,null),!0),e.editorCursorForeground=(0,k.registerColor)("editorCursor.foreground",{dark:"#AEAFAD",light:v.Color.black,hcDark:v.Color.white,hcLight:"#0F4A85"},y.localize(6,null)),e.editorCursorBackground=(0,k.registerColor)("editorCursor.background",null,y.localize(7,null)),e.editorWhitespaces=(0,k.registerColor)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hcDark:"#e3e4e229",hcLight:"#CCCCCC"},y.localize(8,null)),e.editorIndentGuides=(0,k.registerColor)("editorIndentGuide.background",{dark:e.editorWhitespaces,light:e.editorWhitespaces,hcDark:e.editorWhitespaces,hcLight:e.editorWhitespaces},y.localize(9,null)),e.editorActiveIndentGuides=(0,k.registerColor)("editorIndentGuide.activeBackground",{dark:e.editorWhitespaces,light:e.editorWhitespaces,hcDark:e.editorWhitespaces,hcLight:e.editorWhitespaces},y.localize(10,null)),e.editorLineNumbers=(0,k.registerColor)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hcDark:v.Color.white,hcLight:"#292929"},y.localize(11,null));const b=(0,k.registerColor)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hcDark:k.activeContrastBorder,hcLight:k.activeContrastBorder},y.localize(12,null),!1,y.localize(13,null));e.editorActiveLineNumber=(0,k.registerColor)("editorLineNumber.activeForeground",{dark:b,light:b,hcDark:b,hcLight:b},y.localize(14,null)),e.editorRuler=(0,k.registerColor)("editorRuler.foreground",{dark:"#5A5A5A",light:v.Color.lightgrey,hcDark:v.Color.white,hcLight:"#292929"},y.localize(15,null)),e.editorCodeLensForeground=(0,k.registerColor)("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hcDark:"#999999",hcLight:"#292929"},y.localize(16,null)),e.editorBracketMatchBackground=(0,k.registerColor)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hcDark:"#0064001a",hcLight:"#0000"},y.localize(17,null)),e.editorBracketMatchBorder=(0,k.registerColor)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hcDark:k.contrastBorder,hcLight:k.contrastBorder},y.localize(18,null)),e.editorOverviewRulerBorder=(0,k.registerColor)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hcDark:"#7f7f7f4d",hcLight:"#666666"},y.localize(19,null)),e.editorOverviewRulerBackground=(0,k.registerColor)("editorOverviewRuler.background",null,y.localize(20,null)),e.editorGutter=(0,k.registerColor)("editorGutter.background",{dark:k.editorBackground,light:k.editorBackground,hcDark:k.editorBackground,hcLight:k.editorBackground},y.localize(21,null)),e.editorUnnecessaryCodeBorder=(0,k.registerColor)("editorUnnecessaryCode.border",{dark:null,light:null,hcDark:v.Color.fromHex("#fff").transparent(.8),hcLight:k.contrastBorder},y.localize(22,null)),e.editorUnnecessaryCodeOpacity=(0,k.registerColor)("editorUnnecessaryCode.opacity",{dark:v.Color.fromHex("#000a"),light:v.Color.fromHex("#0007"),hcDark:null,hcLight:null},y.localize(23,null)),e.ghostTextBorder=(0,k.registerColor)("editorGhostText.border",{dark:null,light:null,hcDark:v.Color.fromHex("#fff").transparent(.8),hcLight:v.Color.fromHex("#292929").transparent(.8)},y.localize(24,null)),e.ghostTextForeground=(0,k.registerColor)("editorGhostText.foreground",{dark:v.Color.fromHex("#ffffff56"),light:v.Color.fromHex("#0007"),hcDark:null,hcLight:null},y.localize(25,null)),e.ghostTextBackground=(0,k.registerColor)("editorGhostText.background",{dark:null,light:null,hcDark:null,hcLight:null},y.localize(26,null));const C=new v.Color(new v.RGBA(0,122,204,.6));e.overviewRulerRangeHighlight=(0,k.registerColor)("editorOverviewRuler.rangeHighlightForeground",{dark:C,light:C,hcDark:C,hcLight:C},y.localize(27,null),!0),e.overviewRulerError=(0,k.registerColor)("editorOverviewRuler.errorForeground",{dark:new v.Color(new v.RGBA(255,18,18,.7)),light:new v.Color(new v.RGBA(255,18,18,.7)),hcDark:new v.Color(new v.RGBA(255,50,50,1)),hcLight:"#B5200D"},y.localize(28,null)),e.overviewRulerWarning=(0,k.registerColor)("editorOverviewRuler.warningForeground",{dark:k.editorWarningForeground,light:k.editorWarningForeground,hcDark:k.editorWarningBorder,hcLight:k.editorWarningBorder},y.localize(29,null)),e.overviewRulerInfo=(0,k.registerColor)("editorOverviewRuler.infoForeground",{dark:k.editorInfoForeground,light:k.editorInfoForeground,hcDark:k.editorInfoBorder,hcLight:k.editorInfoBorder},y.localize(30,null)),e.editorBracketHighlightingForeground1=(0,k.registerColor)("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hcDark:"#FFD700",hcLight:"#0431FAFF"},y.localize(31,null)),e.editorBracketHighlightingForeground2=(0,k.registerColor)("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hcDark:"#DA70D6",hcLight:"#319331FF"},y.localize(32,null)),e.editorBracketHighlightingForeground3=(0,k.registerColor)("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hcDark:"#87CEFA",hcLight:"#7B3814FF"},y.localize(33,null)),e.editorBracketHighlightingForeground4=(0,k.registerColor)("editorBracketHighlight.foreground4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},y.localize(34,null)),e.editorBracketHighlightingForeground5=(0,k.registerColor)("editorBracketHighlight.foreground5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},y.localize(35,null)),e.editorBracketHighlightingForeground6=(0,k.registerColor)("editorBracketHighlight.foreground6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},y.localize(36,null)),e.editorBracketHighlightingUnexpectedBracketForeground=(0,k.registerColor)("editorBracketHighlight.unexpectedBracket.foreground",{dark:new v.Color(new v.RGBA(255,18,18,.8)),light:new v.Color(new v.RGBA(255,18,18,.8)),hcDark:new v.Color(new v.RGBA(255,50,50,1)),hcLight:""},y.localize(37,null)),e.editorBracketPairGuideBackground1=(0,k.registerColor)("editorBracketPairGuide.background1",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},y.localize(38,null)),e.editorBracketPairGuideBackground2=(0,k.registerColor)("editorBracketPairGuide.background2",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},y.localize(39,null)),e.editorBracketPairGuideBackground3=(0,k.registerColor)("editorBracketPairGuide.background3",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},y.localize(40,null)),e.editorBracketPairGuideBackground4=(0,k.registerColor)("editorBracketPairGuide.background4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},y.localize(41,null)),e.editorBracketPairGuideBackground5=(0,k.registerColor)("editorBracketPairGuide.background5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},y.localize(42,null)),e.editorBracketPairGuideBackground6=(0,k.registerColor)("editorBracketPairGuide.background6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},y.localize(43,null)),e.editorBracketPairGuideActiveBackground1=(0,k.registerColor)("editorBracketPairGuide.activeBackground1",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},y.localize(44,null)),e.editorBracketPairGuideActiveBackground2=(0,k.registerColor)("editorBracketPairGuide.activeBackground2",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},y.localize(45,null)),e.editorBracketPairGuideActiveBackground3=(0,k.registerColor)("editorBracketPairGuide.activeBackground3",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},y.localize(46,null)),e.editorBracketPairGuideActiveBackground4=(0,k.registerColor)("editorBracketPairGuide.activeBackground4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},y.localize(47,null)),e.editorBracketPairGuideActiveBackground5=(0,k.registerColor)("editorBracketPairGuide.activeBackground5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},y.localize(48,null)),e.editorBracketPairGuideActiveBackground6=(0,k.registerColor)("editorBracketPairGuide.activeBackground6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},y.localize(49,null)),e.editorUnicodeHighlightBorder=(0,k.registerColor)("editorUnicodeHighlight.border",{dark:"#BD9B03",light:"#CEA33D",hcDark:"#ff0000",hcLight:""},y.localize(50,null)),e.editorUnicodeHighlightBackground=(0,k.registerColor)("editorUnicodeHighlight.background",{dark:"#bd9b0326",light:"#cea33d14",hcDark:"#00000000",hcLight:""},y.localize(51,null)),(0,D.registerThemingParticipant)((h,u)=>{const n=h.getColor(k.editorBackground);n&&u.addRule(`.monaco-editor, .monaco-editor-background { background-color: ${n}; }`);const i=h.getColor(e.editorLineHighlight),t=i&&!i.isTransparent()?i:n;t&&u.addRule(`.monaco-editor .inputarea.ime-input { background-color: ${t}; }`);const o=h.getColor(k.editorForeground);o&&u.addRule(`.monaco-editor, .monaco-editor .inputarea.ime-input { color: ${o}; }`);const s=h.getColor(e.editorGutter);s&&u.addRule(`.monaco-editor .margin { background-color: ${s}; }`);const d=h.getColor(e.editorRangeHighlight);d&&u.addRule(`.monaco-editor .rangeHighlight { background-color: ${d}; }`);const l=h.getColor(e.editorRangeHighlightBorder);l&&u.addRule(`.monaco-editor .rangeHighlight { border: 1px ${(0,w.isHighContrast)(h.type)?"dotted":"solid"} ${l}; }`);const a=h.getColor(e.editorSymbolHighlight);a&&u.addRule(`.monaco-editor .symbolHighlight { background-color: ${a}; }`);const r=h.getColor(e.editorSymbolHighlightBorder);r&&u.addRule(`.monaco-editor .symbolHighlight { border: 1px ${(0,w.isHighContrast)(h.type)?"dotted":"solid"} ${r}; }`);const c=h.getColor(e.editorWhitespaces);c&&(u.addRule(`.monaco-editor .mtkw { color: ${c} !important; }`),u.addRule(`.monaco-editor .mtkz { color: ${c} !important; }`))})}),define(oe[674],se([1,0,112,54,18,15,23,56,354]),function(q,e,y,v,k,D,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CurrentLineMarginHighlightOverlay=e.CurrentLineHighlightOverlay=e.AbstractLineHighlightOverlay=void 0;class C extends y.DynamicViewOverlay{constructor(i){super(),this._context=i;const t=this._context.configuration.options,o=t.get(133);this._lineHeight=t.get(61),this._renderLineHighlight=t.get(87),this._renderLineHighlightOnlyWhenFocus=t.get(88),this._contentLeft=o.contentLeft,this._contentWidth=o.contentWidth,this._selectionIsEmpty=!0,this._focused=!1,this._cursorLineNumbers=[1],this._selections=[new w.Selection(1,1,1,1)],this._renderData=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}_readFromSelections(){let i=!1;const t=this._selections.map(s=>s.positionLineNumber);t.sort((s,d)=>s-d),k.equals(this._cursorLineNumbers,t)||(this._cursorLineNumbers=t,i=!0);const o=this._selections.every(s=>s.isEmpty());return this._selectionIsEmpty!==o&&(this._selectionIsEmpty=o,i=!0),i}onThemeChanged(i){return this._readFromSelections()}onConfigurationChanged(i){const t=this._context.configuration.options,o=t.get(133);return this._lineHeight=t.get(61),this._renderLineHighlight=t.get(87),this._renderLineHighlightOnlyWhenFocus=t.get(88),this._contentLeft=o.contentLeft,this._contentWidth=o.contentWidth,!0}onCursorStateChanged(i){return this._selections=i.selections,this._readFromSelections()}onFlushed(i){return!0}onLinesDeleted(i){return!0}onLinesInserted(i){return!0}onScrollChanged(i){return i.scrollWidthChanged||i.scrollTopChanged}onZonesChanged(i){return!0}onFocusChanged(i){return this._renderLineHighlightOnlyWhenFocus?(this._focused=i.isFocused,!0):!1}prepareRender(i){if(!this._shouldRenderThis()){this._renderData=null;return}const t=this._renderOne(i),o=i.visibleRange.startLineNumber,s=i.visibleRange.endLineNumber,d=this._cursorLineNumbers.length;let l=0;const a=[];for(let r=o;r<=s;r++){const c=r-o;for(;l<d&&this._cursorLineNumbers[l]<r;)l++;l<d&&this._cursorLineNumbers[l]===r?a[c]=t:a[c]=""}this._renderData=a}render(i,t){if(!this._renderData)return"";const o=t-i;return o>=this._renderData.length?"":this._renderData[o]}_shouldRenderInMargin(){return(this._renderLineHighlight==="gutter"||this._renderLineHighlight==="all")&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}_shouldRenderInContent(){return(this._renderLineHighlight==="line"||this._renderLineHighlight==="all")&&this._selectionIsEmpty&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}}e.AbstractLineHighlightOverlay=C;class h extends C{_renderOne(i){return`<div class="${"current-line"+(this._shouldRenderOther()?" current-line-both":"")}" style="width:${Math.max(i.scrollWidth,this._contentWidth)}px; height:${this._lineHeight}px;"></div>`}_shouldRenderThis(){return this._shouldRenderInContent()}_shouldRenderOther(){return this._shouldRenderInMargin()}}e.CurrentLineHighlightOverlay=h;class u extends C{_renderOne(i){return`<div class="${"current-line"+(this._shouldRenderInMargin()?" current-line-margin":"")+(this._shouldRenderOther()?" current-line-margin-both":"")}" style="width:${this._contentLeft}px; height:${this._lineHeight}px;"></div>`}_shouldRenderThis(){return!0}_shouldRenderOther(){return this._shouldRenderInContent()}}e.CurrentLineMarginHighlightOverlay=u,(0,D.registerThemingParticipant)((n,i)=>{const t=n.getColor(v.editorLineHighlight);if(t&&(i.addRule(`.monaco-editor .view-overlays .current-line { background-color: ${t}; }`),i.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { background-color: ${t}; border: none; }`)),!t||t.isTransparent()||n.defines(v.editorLineHighlightBorder)){const o=n.getColor(v.editorLineHighlightBorder);o&&(i.addRule(`.monaco-editor .view-overlays .current-line { border: 2px solid ${o}; }`),i.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid ${o}; }`),(0,b.isHighContrast)(n.type)&&(i.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"),i.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")))}})}),define(oe[675],se([1,0,112,54,15,11,18,19,243,185,357]),function(q,e,y,v,k,D,w,b,C,h){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndentGuidesOverlay=void 0;class u extends y.DynamicViewOverlay{constructor(t){super(),this._context=t,this._primaryPosition=null;const o=this._context.configuration.options,s=o.get(134),d=o.get(46);this._lineHeight=o.get(61),this._spaceWidth=d.spaceWidth,this._maxIndentLeft=s.wrappingColumn===-1?-1:s.wrappingColumn*d.typicalHalfwidthCharacterWidth,this._bracketPairGuideOptions=o.get(13),this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(t){const o=this._context.configuration.options,s=o.get(134),d=o.get(46);return this._lineHeight=o.get(61),this._spaceWidth=d.spaceWidth,this._maxIndentLeft=s.wrappingColumn===-1?-1:s.wrappingColumn*d.typicalHalfwidthCharacterWidth,this._bracketPairGuideOptions=o.get(13),!0}onCursorStateChanged(t){var o;const s=t.selections[0].getPosition();return!((o=this._primaryPosition)===null||o===void 0)&&o.equals(s)?!1:(this._primaryPosition=s,!0)}onDecorationsChanged(t){return!0}onFlushed(t){return!0}onLinesChanged(t){return!0}onLinesDeleted(t){return!0}onLinesInserted(t){return!0}onScrollChanged(t){return t.scrollTopChanged}onZonesChanged(t){return!0}onLanguageConfigurationChanged(t){return!0}prepareRender(t){var o,s,d,l;if(!this._bracketPairGuideOptions.indentation&&this._bracketPairGuideOptions.bracketPairs===!1){this._renderResult=null;return}const a=t.visibleRange.startLineNumber,r=t.visibleRange.endLineNumber,c=t.scrollWidth,g=this._lineHeight,f=this._primaryPosition,_=this.getGuidesByLine(a,r,f),p=[];for(let m=a;m<=r;m++){const S=m-a,E=_[S];let L="";const N=(s=(o=t.visibleRangeForPosition(new D.Position(m,1)))===null||o===void 0?void 0:o.left)!==null&&s!==void 0?s:0;for(const I of E){const R=I.column===-1?N+(I.visibleColumn-1)*this._spaceWidth:t.visibleRangeForPosition(new D.Position(m,I.column)).left;if(R>c||this._maxIndentLeft>0&&R>this._maxIndentLeft)break;const F=I.horizontalLine?I.horizontalLine.top?"horizontal-top":"horizontal-bottom":"vertical",O=I.horizontalLine?((l=(d=t.visibleRangeForPosition(new D.Position(m,I.horizontalLine.endColumn)))===null||d===void 0?void 0:d.left)!==null&&l!==void 0?l:R+this._spaceWidth)-R:this._spaceWidth;L+=`<div class="core-guide ${I.className} ${F}" style="left:${R}px;height:${g}px;width:${O}px"></div>`}p[S]=L}this._renderResult=p}getGuidesByLine(t,o,s){const d=this._bracketPairGuideOptions.bracketPairs!==!1?this._context.viewModel.getBracketGuidesInRangeByLine(t,o,s,{highlightActive:this._bracketPairGuideOptions.highlightActiveBracketPair,horizontalGuides:this._bracketPairGuideOptions.bracketPairsHorizontal===!0?h.HorizontalGuidesState.Enabled:this._bracketPairGuideOptions.bracketPairsHorizontal==="active"?h.HorizontalGuidesState.EnabledForActive:h.HorizontalGuidesState.Disabled,includeInactive:this._bracketPairGuideOptions.bracketPairs===!0}):null,l=this._bracketPairGuideOptions.indentation?this._context.viewModel.getLinesIndentGuides(t,o):null;let a=0,r=0,c=0;if(this._bracketPairGuideOptions.highlightActiveIndentation!==!1&&s){const _=this._context.viewModel.getActiveIndentGuide(s.lineNumber,t,o);a=_.startLineNumber,r=_.endLineNumber,c=_.indent}const{indentSize:g}=this._context.viewModel.model.getOptions(),f=[];for(let _=t;_<=o;_++){const p=new Array;f.push(p);const m=d?d[_-t]:[],S=new w.ArrayQueue(m),E=l?l[_-t]:[];for(let L=1;L<=E;L++){const N=(L-1)*g+1,I=(this._bracketPairGuideOptions.highlightActiveIndentation==="always"||m.length===0)&&a<=_&&_<=r&&L===c;p.push(...S.takeWhile(F=>F.visibleColumn<N)||[]);const R=S.peek();(!R||R.visibleColumn!==N||R.horizontalLine)&&p.push(new h.IndentGuide(N,-1,I?"core-guide-indent-active":"core-guide-indent",null,-1,-1))}p.push(...S.takeWhile(L=>!0)||[])}return f}render(t,o){if(!this._renderResult)return"";const s=o-t;return s<0||s>=this._renderResult.length?"":this._renderResult[s]}}e.IndentGuidesOverlay=u;function n(i){if(!(i&&i.isTransparent()))return i}(0,k.registerThemingParticipant)((i,t)=>{const o=i.getColor(v.editorIndentGuides);o&&t.addRule(`.monaco-editor .lines-content .core-guide-indent { box-shadow: 1px 0 0 0 ${o} inset; }`);const s=i.getColor(v.editorActiveIndentGuides)||o;s&&t.addRule(`.monaco-editor .lines-content .core-guide-indent-active { box-shadow: 1px 0 0 0 ${s} inset; }`);const d=[{bracketColor:v.editorBracketHighlightingForeground1,guideColor:v.editorBracketPairGuideBackground1,guideColorActive:v.editorBracketPairGuideActiveBackground1},{bracketColor:v.editorBracketHighlightingForeground2,guideColor:v.editorBracketPairGuideBackground2,guideColorActive:v.editorBracketPairGuideActiveBackground2},{bracketColor:v.editorBracketHighlightingForeground3,guideColor:v.editorBracketPairGuideBackground3,guideColorActive:v.editorBracketPairGuideActiveBackground3},{bracketColor:v.editorBracketHighlightingForeground4,guideColor:v.editorBracketPairGuideBackground4,guideColorActive:v.editorBracketPairGuideActiveBackground4},{bracketColor:v.editorBracketHighlightingForeground5,guideColor:v.editorBracketPairGuideBackground5,guideColorActive:v.editorBracketPairGuideActiveBackground5},{bracketColor:v.editorBracketHighlightingForeground6,guideColor:v.editorBracketPairGuideBackground6,guideColorActive:v.editorBracketPairGuideActiveBackground6}],l=new C.BracketPairGuidesClassNames,a=d.map(r=>{var c,g;const f=i.getColor(r.bracketColor),_=i.getColor(r.guideColor),p=i.getColor(r.guideColorActive),m=n((c=n(_))!==null&&c!==void 0?c:f?.transparent(.3)),S=n((g=n(p))!==null&&g!==void 0?g:f);if(!(!m||!S))return{guideColor:m,guideColorActive:S}}).filter(b.isDefined);if(a.length>0){for(let r=0;r<30;r++){const c=a[r%a.length];t.addRule(`.monaco-editor .${l.getInlineClassNameOfLevel(r).replace(/ /g,".")} { --guide-color: ${c.guideColor}; --guide-color-active: ${c.guideColorActive}; }`)}t.addRule(".monaco-editor .vertical { box-shadow: 1px 0 0 0 var(--guide-color) inset; }"),t.addRule(".monaco-editor .horizontal-top { border-top: 1px solid var(--guide-color); }"),t.addRule(".monaco-editor .horizontal-bottom { border-bottom: 1px solid var(--guide-color); }"),t.addRule(`.monaco-editor .vertical.${l.activeClassName} { box-shadow: 1px 0 0 0 var(--guide-color-active) inset; }`),t.addRule(`.monaco-editor .horizontal-top.${l.activeClassName} { border-top: 1px solid var(--guide-color-active); }`),t.addRule(`.monaco-editor .horizontal-bottom.${l.activeClassName} { border-bottom: 1px solid var(--guide-color-active); }`)}})}),define(oe[297],se([1,0,17,112,11,54,15,358]),function(q,e,y,v,k,D,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LineNumbersOverlay=void 0;class b extends v.DynamicViewOverlay{constructor(h){super(),this._context=h,this._readConfig(),this._lastCursorModelPosition=new k.Position(1,1),this._lastCursorViewPosition=new k.Position(1,1),this._renderResult=null,this._activeLineNumber=1,this._context.addEventHandler(this)}_readConfig(){const h=this._context.configuration.options;this._lineHeight=h.get(61);const u=h.get(62);this._renderLineNumbers=u.renderType,this._renderCustomLineNumbers=u.renderFn,this._renderFinalNewline=h.get(86);const n=h.get(133);this._lineNumbersLeft=n.lineNumbersLeft,this._lineNumbersWidth=n.lineNumbersWidth}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(h){return this._readConfig(),!0}onCursorStateChanged(h){const u=h.selections[0].getPosition();this._lastCursorViewPosition=u,this._lastCursorModelPosition=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(u);let n=!1;return this._activeLineNumber!==u.lineNumber&&(this._activeLineNumber=u.lineNumber,n=!0),(this._renderLineNumbers===2||this._renderLineNumbers===3)&&(n=!0),n}onFlushed(h){return!0}onLinesChanged(h){return!0}onLinesDeleted(h){return!0}onLinesInserted(h){return!0}onScrollChanged(h){return h.scrollTopChanged}onZonesChanged(h){return!0}_getLineRenderLineNumber(h){const u=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new k.Position(h,1));if(u.column!==1)return"";const n=u.lineNumber;return this._renderCustomLineNumbers?this._renderCustomLineNumbers(n):this._renderLineNumbers===3?this._lastCursorModelPosition.lineNumber===n||n%10==0?String(n):"":String(n)}prepareRender(h){if(this._renderLineNumbers===0){this._renderResult=null;return}const u=y.isLinux?this._lineHeight%2==0?" lh-even":" lh-odd":"",n=h.visibleRange.startLineNumber,i=h.visibleRange.endLineNumber,t='<div class="'+b.CLASS_NAME+u+'" style="left:'+this._lineNumbersLeft+"px;width:"+this._lineNumbersWidth+'px;">';let o=null;if(this._renderLineNumbers===2){o=new Array(i-n+1),this._lastCursorViewPosition.lineNumber>=n&&this._lastCursorViewPosition.lineNumber<=i&&(o[this._lastCursorViewPosition.lineNumber-n]=this._lastCursorModelPosition.lineNumber);{let l=0;for(let a=this._lastCursorViewPosition.lineNumber+1;a<=i;a++){const r=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new k.Position(a,1)).column!==1;r||l++,a>=n&&(o[a-n]=r?0:l)}}{let l=0;for(let a=this._lastCursorViewPosition.lineNumber-1;a>=n;a--){const r=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new k.Position(a,1)).column!==1;r||l++,a<=i&&(o[a-n]=r?0:l)}}}const s=this._context.viewModel.getLineCount(),d=[];for(let l=n;l<=i;l++){const a=l-n;if(!this._renderFinalNewline&&l===s&&this._context.viewModel.getLineLength(l)===0){d[a]="";continue}let r;if(o){const c=o[a];this._lastCursorViewPosition.lineNumber===l?r=`<span class="relative-current-line-number">${c}</span>`:c?r=String(c):r=""}else r=this._getLineRenderLineNumber(l);r?l===this._activeLineNumber?d[a]='<div class="active-line-number '+b.CLASS_NAME+u+'" style="left:'+this._lineNumbersLeft+"px;width:"+this._lineNumbersWidth+'px;">'+r+"</div>":d[a]=t+r+"</div>":d[a]=""}this._renderResult=d}render(h,u){if(!this._renderResult)return"";const n=u-h;return n<0||n>=this._renderResult.length?"":this._renderResult[n]}}e.LineNumbersOverlay=b,b.CLASS_NAME="line-numbers",(0,w.registerThemingParticipant)((C,h)=>{const u=C.getColor(D.editorLineNumbers);u&&h.addRule(`.monaco-editor .line-numbers { color: ${u}; }`);const n=C.getColor(D.editorActiveLineNumber);n&&h.addRule(`.monaco-editor .line-numbers.active-line-number { color: ${n}; }`)})}),define(oe[676],se([1,0,522,41,33,17,8,65,201,231,47,297,244,36,127,11,3,23,150,28,31,352]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextAreaHandler=void 0;class g{constructor(S,E,L,N,I){this._context=S,this.modelLineNumber=E,this.distanceToModelLineStart=L,this.widthOfHiddenLineTextBefore=N,this.distanceToModelLineEnd=I,this._visibleTextAreaBrand=void 0,this.startPosition=null,this.endPosition=null,this.visibleTextareaStart=null,this.visibleTextareaEnd=null,this._previousPresentation=null}prepareRender(S){const E=new s.Position(this.modelLineNumber,this.distanceToModelLineStart+1),L=new s.Position(this.modelLineNumber,this._context.viewModel.model.getLineMaxColumn(this.modelLineNumber)-this.distanceToModelLineEnd);this.startPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(E),this.endPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(L),this.startPosition.lineNumber===this.endPosition.lineNumber?(this.visibleTextareaStart=S.visibleRangeForPosition(this.startPosition),this.visibleTextareaEnd=S.visibleRangeForPosition(this.endPosition)):(this.visibleTextareaStart=null,this.visibleTextareaEnd=null)}definePresentation(S){return this._previousPresentation||(S?this._previousPresentation=S:this._previousPresentation={foreground:1,italic:!1,bold:!1,underline:!1,strikethrough:!1}),this._previousPresentation}}const f=v.isFirefox;class _ extends u.ViewPart{constructor(S,E,L){super(S),this._primaryCursorPosition=new s.Position(1,1),this._primaryCursorVisibleRange=null,this._viewController=E,this._visibleRangeProvider=L,this._scrollLeft=0,this._scrollTop=0;const N=this._context.configuration.options,I=N.get(133);this._setAccessibilityOptions(N),this._contentLeft=I.contentLeft,this._contentWidth=I.contentWidth,this._contentHeight=I.height,this._fontInfo=N.get(46),this._lineHeight=N.get(61),this._emptySelectionClipboard=N.get(33),this._copyWithSyntaxHighlighting=N.get(21),this._visibleTextArea=null,this._selections=[new l.Selection(1,1,1,1)],this._modelSelections=[new l.Selection(1,1,1,1)],this._lastRenderPosition=null,this.textArea=(0,k.createFastDomNode)(document.createElement("textarea")),u.PartFingerprints.write(this.textArea,6),this.textArea.setClassName(`inputarea ${a.MOUSE_CURSOR_TEXT_CSS_CLASS_NAME}`),this.textArea.setAttribute("wrap","off"),this.textArea.setAttribute("autocorrect","off"),this.textArea.setAttribute("autocapitalize","off"),this.textArea.setAttribute("autocomplete","off"),this.textArea.setAttribute("spellcheck","false"),this.textArea.setAttribute("aria-label",this._getAriaLabel(N)),this.textArea.setAttribute("tabindex",String(N.get(114))),this.textArea.setAttribute("role","textbox"),this.textArea.setAttribute("aria-roledescription",y.localize(0,null)),this.textArea.setAttribute("aria-multiline","true"),this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),N.get(30)&&N.get(83)&&this.textArea.setAttribute("readonly","true"),this.textAreaCover=(0,k.createFastDomNode)(document.createElement("div")),this.textAreaCover.setPosition("absolute");const R={getLineCount:()=>this._context.viewModel.getLineCount(),getLineMaxColumn:x=>this._context.viewModel.getLineMaxColumn(x),getValueInRange:(x,M)=>this._context.viewModel.getValueInRange(x,M)},F={getDataToCopy:()=>{const x=this._context.viewModel.getPlainTextToCopy(this._modelSelections,this._emptySelectionClipboard,D.isWindows),M=this._context.viewModel.model.getEOL(),P=this._emptySelectionClipboard&&this._modelSelections.length===1&&this._modelSelections[0].isEmpty(),A=Array.isArray(x)?x:null,B=Array.isArray(x)?x.join(M):x;let K,T=null;if(C.CopyOptions.forceCopyWithSyntaxHighlighting||this._copyWithSyntaxHighlighting&&B.length<65536){const ee=this._context.viewModel.getRichTextToCopy(this._modelSelections,this._emptySelectionClipboard);ee&&(K=ee.html,T=ee.mode)}return{isFromEmptySelection:P,multicursorText:A,text:B,html:K,mode:T}},getScreenReaderContent:x=>{if(this._accessibilitySupport===1){const M=this._selections[0];if(D.isMacintosh&&M.isEmpty()){const P=M.getStartPosition();let A=this._getWordBeforePosition(P);if(A.length===0&&(A=this._getCharacterBeforePosition(P)),A.length>0)return new h.TextAreaState(A,A.length,A.length,P,P)}if(v.isSafari&&!M.isEmpty()){const P="vscode-placeholder";return new h.TextAreaState(P,0,P.length,null,null)}return h.TextAreaState.EMPTY}if(v.isAndroid){const M=this._selections[0];if(M.isEmpty()){const P=M.getStartPosition(),[A,B]=this._getAndroidWordAtPosition(P);if(A.length>0)return new h.TextAreaState(A,B,B,P,P)}return h.TextAreaState.EMPTY}return h.PagedScreenReaderStrategy.fromEditorSelection(x,R,this._selections[0],this._accessibilityPageSize,this._accessibilitySupport===0)},deduceModelPosition:(x,M,P)=>this._context.viewModel.deduceModelPositionRelativeToViewPosition(x,M,P)},O=this._register(new C.TextAreaWrapper(this.textArea.domNode));this._textAreaInput=this._register(new C.TextAreaInput(F,O,D.OS,v)),this._register(this._textAreaInput.onKeyDown(x=>{this._viewController.emitKeyDown(x)})),this._register(this._textAreaInput.onKeyUp(x=>{this._viewController.emitKeyUp(x)})),this._register(this._textAreaInput.onPaste(x=>{let M=!1,P=null,A=null;x.metadata&&(M=this._emptySelectionClipboard&&!!x.metadata.isFromEmptySelection,P=typeof x.metadata.multicursorText<"u"?x.metadata.multicursorText:null,A=x.metadata.mode),this._viewController.paste(x.text,M,P,A)})),this._register(this._textAreaInput.onCut(()=>{this._viewController.cut()})),this._register(this._textAreaInput.onType(x=>{x.replacePrevCharCnt||x.replaceNextCharCnt||x.positionDelta?(h._debugComposition&&console.log(` => compositionType: <<${x.text}>>, ${x.replacePrevCharCnt}, ${x.replaceNextCharCnt}, ${x.positionDelta}`),this._viewController.compositionType(x.text,x.replacePrevCharCnt,x.replaceNextCharCnt,x.positionDelta)):(h._debugComposition&&console.log(` => type: <<${x.text}>>`),this._viewController.type(x.text))})),this._register(this._textAreaInput.onSelectionChangeRequest(x=>{this._viewController.setSelection(x)})),this._register(this._textAreaInput.onCompositionStart(x=>{const M=this.textArea.domNode,P=this._modelSelections[0],{distanceToModelLineStart:A,widthOfHiddenTextBefore:B}=(()=>{const T=M.value.substring(0,Math.min(M.selectionStart,M.selectionEnd)),ee=T.lastIndexOf(` `),J=T.substring(ee+1),$=J.lastIndexOf(" "),j=J.length-$-1,G=P.getStartPosition(),te=Math.min(G.column-1,j),Z=G.column-1-te,X=J.substring(0,J.length-te),ie=p(X,this._fontInfo);return{distanceToModelLineStart:Z,widthOfHiddenTextBefore:ie}})(),{distanceToModelLineEnd:K}=(()=>{const T=M.value.substring(Math.max(M.selectionStart,M.selectionEnd)),ee=T.indexOf(` `),J=ee===-1?T:T.substring(0,ee),$=J.indexOf(" "),j=$===-1?J.length:J.length-$-1,G=P.getEndPosition(),te=Math.min(this._context.viewModel.model.getLineMaxColumn(G.lineNumber)-G.column,j);return{distanceToModelLineEnd:this._context.viewModel.model.getLineMaxColumn(G.lineNumber)-G.column-te}})();this._context.viewModel.revealRange("keyboard",!0,d.Range.fromPositions(this._selections[0].getStartPosition()),0,1),this._visibleTextArea=new g(this._context,P.startLineNumber,A,B,K),this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render(),this.textArea.setClassName(`inputarea ${a.MOUSE_CURSOR_TEXT_CSS_CLASS_NAME} ime-input`),this._viewController.compositionStart(),this._context.viewModel.onCompositionStart()})),this._register(this._textAreaInput.onCompositionUpdate(x=>{!this._visibleTextArea||(this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render())})),this._register(this._textAreaInput.onCompositionEnd(()=>{this._visibleTextArea=null,this._render(),this.textArea.setClassName(`inputarea ${a.MOUSE_CURSOR_TEXT_CSS_CLASS_NAME}`),this._viewController.compositionEnd(),this._context.viewModel.onCompositionEnd()})),this._register(this._textAreaInput.onFocus(()=>{this._context.viewModel.setHasFocus(!0)})),this._register(this._textAreaInput.onBlur(()=>{this._context.viewModel.setHasFocus(!1)}))}dispose(){super.dispose()}_getAndroidWordAtPosition(S){const E='`~!@#$%^&*()-=+[{]}\\|;:",.<>/?',L=this._context.viewModel.getLineContent(S.lineNumber),N=(0,o.getMapForWordSeparators)(E);let I=!0,R=S.column,F=!0,O=S.column,x=0;for(;x<50&&(I||F);){if(I&&R<=1&&(I=!1),I){const M=L.charCodeAt(R-2);N.get(M)!==0?I=!1:R--}if(F&&O>L.length&&(F=!1),F){const M=L.charCodeAt(O-1);N.get(M)!==0?F=!1:O++}x++}return[L.substring(R-1,O-1),S.column-R]}_getWordBeforePosition(S){const E=this._context.viewModel.getLineContent(S.lineNumber),L=(0,o.getMapForWordSeparators)(this._context.configuration.options.get(119));let N=S.column,I=0;for(;N>1;){const R=E.charCodeAt(N-2);if(L.get(R)!==0||I>50)return E.substring(N-1,S.column-1);I++,N--}return E.substring(0,S.column-1)}_getCharacterBeforePosition(S){if(S.column>1){const E=this._context.viewModel.getLineContent(S.lineNumber).charAt(S.column-2);if(!w.isHighSurrogate(E.charCodeAt(0)))return E}return""}_getAriaLabel(S){return S.get(2)===1?y.localize(1,null,D.isLinux?"Shift+Alt+F1":"Alt+F1"):S.get(4)}_setAccessibilityOptions(S){this._accessibilitySupport=S.get(2);const E=S.get(3);this._accessibilitySupport===2&&E===t.EditorOptions.accessibilityPageSize.defaultValue?this._accessibilityPageSize=500:this._accessibilityPageSize=E}onConfigurationChanged(S){const E=this._context.configuration.options,L=E.get(133);return this._setAccessibilityOptions(E),this._contentLeft=L.contentLeft,this._contentWidth=L.contentWidth,this._contentHeight=L.height,this._fontInfo=E.get(46),this._lineHeight=E.get(61),this._emptySelectionClipboard=E.get(33),this._copyWithSyntaxHighlighting=E.get(21),this.textArea.setAttribute("aria-label",this._getAriaLabel(E)),this.textArea.setAttribute("tabindex",String(E.get(114))),(S.hasChanged(30)||S.hasChanged(83))&&(E.get(30)&&E.get(83)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")),S.hasChanged(2)&&this._textAreaInput.writeScreenReaderContent("strategy changed"),!0}onCursorStateChanged(S){return this._selections=S.selections.slice(0),this._modelSelections=S.modelSelections.slice(0),this._textAreaInput.writeScreenReaderContent("selection changed"),!0}onDecorationsChanged(S){return!0}onFlushed(S){return!0}onLinesChanged(S){return!0}onLinesDeleted(S){return!0}onLinesInserted(S){return!0}onScrollChanged(S){return this._scrollLeft=S.scrollLeft,this._scrollTop=S.scrollTop,!0}onZonesChanged(S){return!0}isFocused(){return this._textAreaInput.isFocused()}focusTextArea(){this._textAreaInput.focusTextArea()}getLastRenderData(){return this._lastRenderPosition}setAriaOptions(S){S.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-activedescendant",S.activeDescendant)):(this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.textArea.removeAttribute("aria-activedescendant")),S.role&&this.textArea.setAttribute("role",S.role)}prepareRender(S){var E;this._primaryCursorPosition=new s.Position(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=S.visibleRangeForPosition(this._primaryCursorPosition),(E=this._visibleTextArea)===null||E===void 0||E.prepareRender(S)}render(S){this._textAreaInput.writeScreenReaderContent("render"),this._render()}_render(){if(this._visibleTextArea){const L=this._visibleTextArea.visibleTextareaStart,N=this._visibleTextArea.visibleTextareaEnd,I=this._visibleTextArea.startPosition,R=this._visibleTextArea.endPosition;if(I&&R&&L&&N&&N.left>=this._scrollLeft&&L.left<=this._scrollLeft+this._contentWidth){const F=this._context.viewLayout.getVerticalOffsetForLineNumber(this._primaryCursorPosition.lineNumber)-this._scrollTop,O=this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));let x=this._visibleTextArea.widthOfHiddenLineTextBefore,M=this._contentLeft+L.left-this._scrollLeft,P=N.left-L.left+1;if(M<this._contentLeft){const J=this._contentLeft-M;M+=J,x+=J,P-=J}P>this._contentWidth&&(P=this._contentWidth);const A=this._context.viewModel.getViewLineData(I.lineNumber),B=A.tokens.findTokenIndexAtOffset(I.column-1),K=A.tokens.findTokenIndexAtOffset(R.column-1),T=B===K,ee=this._visibleTextArea.definePresentation(T?A.tokens.getPresentation(B):null);this.textArea.domNode.scrollTop=O*this._lineHeight,this.textArea.domNode.scrollLeft=x,this._doRender({lastRenderPosition:null,top:F,left:M,width:P,height:this._lineHeight,useCover:!1,color:(r.TokenizationRegistry.getColorMap()||[])[ee.foreground],italic:ee.italic,bold:ee.bold,underline:ee.underline,strikethrough:ee.strikethrough})}return}if(!this._primaryCursorVisibleRange){this._renderAtTopLeft();return}const S=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(S<this._contentLeft||S>this._contentLeft+this._contentWidth){this._renderAtTopLeft();return}const E=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;if(E<0||E>this._contentHeight){this._renderAtTopLeft();return}if(D.isMacintosh){this._doRender({lastRenderPosition:this._primaryCursorPosition,top:E,left:S,width:f?0:1,height:this._lineHeight,useCover:!1}),this.textArea.domNode.scrollLeft=this._primaryCursorVisibleRange.left;const L=this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));this.textArea.domNode.scrollTop=L*this._lineHeight;return}this._doRender({lastRenderPosition:this._primaryCursorPosition,top:E,left:S,width:f?0:1,height:f?0:1,useCover:!1})}_newlinecount(S){let E=0,L=-1;do{if(L=S.indexOf(` `,L+1),L===-1)break;E++}while(!0);return E}_renderAtTopLeft(){this._doRender({lastRenderPosition:null,top:0,left:0,width:f?0:1,height:f?0:1,useCover:!0})}_doRender(S){this._lastRenderPosition=S.lastRenderPosition;const E=this.textArea,L=this.textAreaCover;(0,b.applyFontInfo)(E,this._fontInfo),E.setTop(S.top),E.setLeft(S.left),E.setWidth(S.width),E.setHeight(S.height),E.setColor(S.color?c.Color.Format.CSS.formatHex(S.color):""),E.setFontStyle(S.italic?"italic":""),S.bold&&E.setFontWeight("bold"),E.setTextDecoration(`${S.underline?" underline":""}${S.strikethrough?" line-through":""}`),L.setTop(S.useCover?S.top:0),L.setLeft(S.useCover?S.left:0),L.setWidth(S.useCover?S.width:0),L.setHeight(S.useCover?S.height:0);const N=this._context.configuration.options;N.get(52)?L.setClassName("monaco-editor-background textAreaCover "+i.Margin.OUTER_CLASS_NAME):N.get(62).renderType!==0?L.setClassName("monaco-editor-background textAreaCover "+n.LineNumbersOverlay.CLASS_NAME):L.setClassName("monaco-editor-background textAreaCover")}}e.TextAreaHandler=_;function p(m,S){if(m.length===0)return 0;const E=document.createElement("div");E.style.position="absolute",E.style.top="-50000px",E.style.width="50000px";const L=document.createElement("span");(0,b.applyFontInfo)(L,S),L.style.whiteSpace="pre",L.append(m),E.appendChild(L),document.body.appendChild(E);const N=L.offsetWidth;return document.body.removeChild(E),N}}),define(oe[677],se([1,0,33,31,47,11,28,54,74]),function(q,e,y,v,k,D,w,b,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DecorationsOverviewRuler=void 0;class h{constructor(i,t){const o=i.options;this.lineHeight=o.get(61),this.pixelRatio=o.get(131),this.overviewRulerLanes=o.get(76),this.renderBorder=o.get(75);const s=t.getColor(b.editorOverviewRulerBorder);this.borderColor=s?s.toString():null,this.hideCursor=o.get(54);const d=t.getColor(b.editorCursorForeground);this.cursorColor=d?d.transparent(.7).toString():null,this.themeType=t.type;const l=o.get(67),a=l.enabled,r=l.side,c=t.getColor(b.editorOverviewRulerBackground),g=w.TokenizationRegistry.getDefaultBackground();let f=null;c!==void 0?f=c:a&&(f=g),f===null||r==="left"?this.backgroundColor=null:this.backgroundColor=v.Color.Format.CSS.formatHex(f);const _=o.get(133).overviewRuler;this.top=_.top,this.right=_.right,this.domWidth=_.width,this.domHeight=_.height,this.overviewRulerLanes===0?(this.canvasWidth=0,this.canvasHeight=0):(this.canvasWidth=this.domWidth*this.pixelRatio|0,this.canvasHeight=this.domHeight*this.pixelRatio|0);const[p,m]=this._initLanes(1,this.canvasWidth,this.overviewRulerLanes);this.x=p,this.w=m}_initLanes(i,t,o){const s=t-i;if(o>=3){const d=Math.floor(s/3),l=Math.floor(s/3),a=s-d-l,r=i,c=r+d,g=r+d+a;return[[0,r,c,r,g,r,c,r],[0,d,a,d+a,l,d+a+l,a+l,d+a+l]]}else if(o===2){const d=Math.floor(s/2),l=s-d,a=i,r=a+d;return[[0,a,a,a,r,a,a,a],[0,d,d,d,l,d+l,d+l,d+l]]}else{const d=i,l=s;return[[0,d,d,d,d,d,d,d],[0,l,l,l,l,l,l,l]]}}equals(i){return this.lineHeight===i.lineHeight&&this.pixelRatio===i.pixelRatio&&this.overviewRulerLanes===i.overviewRulerLanes&&this.renderBorder===i.renderBorder&&this.borderColor===i.borderColor&&this.hideCursor===i.hideCursor&&this.cursorColor===i.cursorColor&&this.themeType===i.themeType&&this.backgroundColor===i.backgroundColor&&this.top===i.top&&this.right===i.right&&this.domWidth===i.domWidth&&this.domHeight===i.domHeight&&this.canvasWidth===i.canvasWidth&&this.canvasHeight===i.canvasHeight}}class u extends k.ViewPart{constructor(i){super(i),this._domNode=(0,y.createFastDomNode)(document.createElement("canvas")),this._domNode.setClassName("decorationsOverviewRuler"),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._domNode.setAttribute("aria-hidden","true"),this._updateSettings(!1),this._tokensColorTrackerListener=w.TokenizationRegistry.onDidChange(t=>{t.changedColorMap&&this._updateSettings(!0)}),this._cursorPositions=[]}dispose(){super.dispose(),this._tokensColorTrackerListener.dispose()}_updateSettings(i){const t=new h(this._context.configuration,this._context.theme);return this._settings&&this._settings.equals(t)?!1:(this._settings=t,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,i&&this._render(),!0)}onConfigurationChanged(i){return this._updateSettings(!1)}onCursorStateChanged(i){this._cursorPositions=[];for(let t=0,o=i.selections.length;t<o;t++)this._cursorPositions[t]=i.selections[t].getPosition();return this._cursorPositions.sort(D.Position.compare),!0}onDecorationsChanged(i){return!!i.affectsOverviewRuler}onFlushed(i){return!0}onScrollChanged(i){return i.scrollHeightChanged}onZonesChanged(i){return!0}onThemeChanged(i){return this._updateSettings(!1)}getDomNode(){return this._domNode.domNode}prepareRender(i){}render(i){this._render()}_render(){if(this._settings.overviewRulerLanes===0){this._domNode.setBackgroundColor(this._settings.backgroundColor?this._settings.backgroundColor:""),this._domNode.setDisplay("none");return}this._domNode.setDisplay("block");const i=this._settings.canvasWidth,t=this._settings.canvasHeight,o=this._settings.lineHeight,s=this._context.viewLayout,d=this._context.viewLayout.getScrollHeight(),l=t/d,a=this._context.viewModel.getAllOverviewRulerDecorations(this._context.theme),r=6*this._settings.pixelRatio|0,c=r/2|0,g=this._domNode.domNode.getContext("2d");this._settings.backgroundColor===null?g.clearRect(0,0,i,t):(g.fillStyle=this._settings.backgroundColor,g.fillRect(0,0,i,t));const f=this._settings.x,_=this._settings.w;a.sort(C.OverviewRulerDecorationsGroup.cmp);for(const p of a){const m=p.color,S=p.data;g.fillStyle=m;let E=0,L=0,N=0;for(let I=0,R=S.length/3;I<R;I++){const F=S[3*I],O=S[3*I+1],x=S[3*I+2];let M=s.getVerticalOffsetForLineNumber(O)*l|0,P=(s.getVerticalOffsetForLineNumber(x)+o)*l|0;if(P-M<r){let A=(M+P)/2|0;A<c?A=c:A+c>t&&(A=t-c),M=A-c,P=A+c}M>N+1||F!==E?(I!==0&&g.fillRect(f[E],L,_[E],N-L),E=F,L=M,N=P):P>N&&(N=P)}g.fillRect(f[E],L,_[E],N-L)}if(!this._settings.hideCursor&&this._settings.cursorColor){const p=2*this._settings.pixelRatio|0,m=p/2|0,S=this._settings.x[7],E=this._settings.w[7];g.fillStyle=this._settings.cursorColor;let L=-100,N=-100;for(let I=0,R=this._cursorPositions.length;I<R;I++){const F=this._cursorPositions[I];let O=s.getVerticalOffsetForLineNumber(F.lineNumber)*l|0;O<m?O=m:O+m>t&&(O=t-m);const x=O-m,M=x+p;x>N+1?(I!==0&&g.fillRect(S,L,E,N-L),L=x,N=M):M>N&&(N=M)}g.fillRect(S,L,E,N-L)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(g.beginPath(),g.lineWidth=1,g.strokeStyle=this._settings.borderColor,g.moveTo(0,0),g.lineTo(0,t),g.stroke(),g.moveTo(0,0),g.lineTo(i,0),g.stroke())}}e.DecorationsOverviewRuler=u}),define(oe[678],se([1,0,33,47,54,15,364]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Rulers=void 0;class w extends v.ViewPart{constructor(C){super(C),this.domNode=(0,y.createFastDomNode)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("view-rulers"),this._renderedRulers=[];const h=this._context.configuration.options;this._rulers=h.get(93),this._typicalHalfwidthCharacterWidth=h.get(46).typicalHalfwidthCharacterWidth}dispose(){super.dispose()}onConfigurationChanged(C){const h=this._context.configuration.options;return this._rulers=h.get(93),this._typicalHalfwidthCharacterWidth=h.get(46).typicalHalfwidthCharacterWidth,!0}onScrollChanged(C){return C.scrollHeightChanged}prepareRender(C){}_ensureRulersCount(){const C=this._renderedRulers.length,h=this._rulers.length;if(C===h)return;if(C<h){const{tabSize:n}=this._context.viewModel.model.getOptions(),i=n;let t=h-C;for(;t>0;){const o=(0,y.createFastDomNode)(document.createElement("div"));o.setClassName("view-ruler"),o.setWidth(i),this.domNode.appendChild(o),this._renderedRulers.push(o),t--}return}let u=C-h;for(;u>0;){const n=this._renderedRulers.pop();this.domNode.removeChild(n),u--}}render(C){this._ensureRulersCount();for(let h=0,u=this._rulers.length;h<u;h++){const n=this._renderedRulers[h],i=this._rulers[h];n.setBoxShadow(i.color?`1px 0 0 0 ${i.color} inset`:""),n.setHeight(Math.min(C.scrollHeight,1e6)),n.setLeft(i.column*this._typicalHalfwidthCharacterWidth)}}}e.Rulers=w,(0,D.registerThemingParticipant)((b,C)=>{const h=b.getColor(k.editorRuler);h&&C.addRule(`.monaco-editor .view-ruler { box-shadow: 1px 0 0 0 ${h} inset; }`)})}),define(oe[679],se([1,0,33,10,47,532,36,54,15,56,367]),function(q,e,y,v,k,D,w,b,C,h){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewCursors=void 0;class u extends k.ViewPart{constructor(i){super(i);const t=this._context.configuration.options;this._readOnly=t.get(83),this._cursorBlinking=t.get(22),this._cursorStyle=t.get(24),this._cursorSmoothCaretAnimation=t.get(23),this._selectionIsEmpty=!0,this._isComposingInput=!1,this._isVisible=!1,this._primaryCursor=new D.ViewCursor(this._context),this._secondaryCursors=[],this._renderData=[],this._domNode=(0,y.createFastDomNode)(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._updateDomClassName(),this._domNode.appendChild(this._primaryCursor.getDomNode()),this._startCursorBlinkAnimation=new v.TimeoutTimer,this._cursorFlatBlinkInterval=new v.IntervalTimer,this._blinkingEnabled=!1,this._editorHasFocus=!1,this._updateBlinking()}dispose(){super.dispose(),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()}getDomNode(){return this._domNode}onCompositionStart(i){return this._isComposingInput=!0,this._updateBlinking(),!0}onCompositionEnd(i){return this._isComposingInput=!1,this._updateBlinking(),!0}onConfigurationChanged(i){const t=this._context.configuration.options;this._readOnly=t.get(83),this._cursorBlinking=t.get(22),this._cursorStyle=t.get(24),this._cursorSmoothCaretAnimation=t.get(23),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(i);for(let o=0,s=this._secondaryCursors.length;o<s;o++)this._secondaryCursors[o].onConfigurationChanged(i);return!0}_onCursorPositionChanged(i,t){if(this._primaryCursor.onCursorPositionChanged(i),this._updateBlinking(),this._secondaryCursors.length<t.length){const o=t.length-this._secondaryCursors.length;for(let s=0;s<o;s++){const d=new D.ViewCursor(this._context);this._domNode.domNode.insertBefore(d.getDomNode().domNode,this._primaryCursor.getDomNode().domNode.nextSibling),this._secondaryCursors.push(d)}}else if(this._secondaryCursors.length>t.length){const o=this._secondaryCursors.length-t.length;for(let s=0;s<o;s++)this._domNode.removeChild(this._secondaryCursors[0].getDomNode()),this._secondaryCursors.splice(0,1)}for(let o=0;o<t.length;o++)this._secondaryCursors[o].onCursorPositionChanged(t[o])}onCursorStateChanged(i){const t=[];for(let s=0,d=i.selections.length;s<d;s++)t[s]=i.selections[s].getPosition();this._onCursorPositionChanged(t[0],t.slice(1));const o=i.selections[0].isEmpty();return this._selectionIsEmpty!==o&&(this._selectionIsEmpty=o,this._updateDomClassName()),!0}onDecorationsChanged(i){return!0}onFlushed(i){return!0}onFocusChanged(i){return this._editorHasFocus=i.isFocused,this._updateBlinking(),!1}onLinesChanged(i){return!0}onLinesDeleted(i){return!0}onLinesInserted(i){return!0}onScrollChanged(i){return!0}onTokensChanged(i){const t=o=>{for(let s=0,d=i.ranges.length;s<d;s++)if(i.ranges[s].fromLineNumber<=o.lineNumber&&o.lineNumber<=i.ranges[s].toLineNumber)return!0;return!1};if(t(this._primaryCursor.getPosition()))return!0;for(const o of this._secondaryCursors)if(t(o.getPosition()))return!0;return!1}onZonesChanged(i){return!0}_getCursorBlinking(){return this._isComposingInput||!this._editorHasFocus?0:this._readOnly?5:this._cursorBlinking}_updateBlinking(){this._startCursorBlinkAnimation.cancel(),this._cursorFlatBlinkInterval.cancel();const i=this._getCursorBlinking(),t=i===0,o=i===5;t?this._hide():this._show(),this._blinkingEnabled=!1,this._updateDomClassName(),!t&&!o&&(i===1?this._cursorFlatBlinkInterval.cancelAndSet(()=>{this._isVisible?this._hide():this._show()},u.BLINK_INTERVAL):this._startCursorBlinkAnimation.setIfNotSet(()=>{this._blinkingEnabled=!0,this._updateDomClassName()},u.BLINK_INTERVAL))}_updateDomClassName(){this._domNode.setClassName(this._getClassName())}_getClassName(){let i="cursors-layer";switch(this._selectionIsEmpty||(i+=" has-selection"),this._cursorStyle){case w.TextEditorCursorStyle.Line:i+=" cursor-line-style";break;case w.TextEditorCursorStyle.Block:i+=" cursor-block-style";break;case w.TextEditorCursorStyle.Underline:i+=" cursor-underline-style";break;case w.TextEditorCursorStyle.LineThin:i+=" cursor-line-thin-style";break;case w.TextEditorCursorStyle.BlockOutline:i+=" cursor-block-outline-style";break;case w.TextEditorCursorStyle.UnderlineThin:i+=" cursor-underline-thin-style";break;default:i+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:i+=" cursor-blink";break;case 2:i+=" cursor-smooth";break;case 3:i+=" cursor-phase";break;case 4:i+=" cursor-expand";break;case 5:i+=" cursor-solid";break;default:i+=" cursor-solid"}else i+=" cursor-solid";return this._cursorSmoothCaretAnimation&&(i+=" cursor-smooth-caret-animation"),i}_show(){this._primaryCursor.show();for(let i=0,t=this._secondaryCursors.length;i<t;i++)this._secondaryCursors[i].show();this._isVisible=!0}_hide(){this._primaryCursor.hide();for(let i=0,t=this._secondaryCursors.length;i<t;i++)this._secondaryCursors[i].hide();this._isVisible=!1}prepareRender(i){this._primaryCursor.prepareRender(i);for(let t=0,o=this._secondaryCursors.length;t<o;t++)this._secondaryCursors[t].prepareRender(i)}render(i){const t=[];let o=0;const s=this._primaryCursor.render(i);s&&(t[o++]=s);for(let d=0,l=this._secondaryCursors.length;d<l;d++){const a=this._secondaryCursors[d].render(i);a&&(t[o++]=a)}this._renderData=t}getLastRenderData(){return this._renderData}}e.ViewCursors=u,u.BLINK_INTERVAL=500,(0,C.registerThemingParticipant)((n,i)=>{const t=n.getColor(b.editorCursorForeground);if(t){let o=n.getColor(b.editorCursorBackground);o||(o=t.opposite()),i.addRule(`.monaco-editor .inputarea.ime-input { caret-color: ${t}; }`),i.addRule(`.monaco-editor .cursors-layer .cursor { background-color: ${t}; border-color: ${t}; color: ${o}; }`),(0,h.isHighContrast)(n.type)&&i.addRule(`.monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid ${o}; border-right: 1px solid ${o}; }`)}})}),define(oe[680],se([1,0,6,2,3,54,15]),function(q,e,y,v,k,D,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColorizedBracketPairsDecorationProvider=void 0;class b extends v.Disposable{constructor(u){super(),this.textModel=u,this.colorProvider=new C,this.onDidChangeEmitter=new y.Emitter,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=u.getOptions().bracketPairColorizationOptions,this._register(u.bracketPairs.onDidChange(n=>{this.onDidChangeEmitter.fire()}))}handleDidChangeOptions(u){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(u,n,i){if(n===void 0)return[];if(!this.colorizationOptions.enabled)return[];const t=new Array,o=this.textModel.bracketPairs.getBracketsInRange(u);for(const s of o)t.push({id:`bracket${s.range.toString()}-${s.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(s,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:s.range});return t}getAllDecorations(u,n){return u===void 0?[]:this.colorizationOptions.enabled?this.getDecorationsInRange(new k.Range(1,1,this.textModel.getLineCount(),1),u,n):[]}}e.ColorizedBracketPairsDecorationProvider=b;class C{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(u,n){return u.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(n?u.nestingLevelOfEqualBracketType:u.nestingLevel)}getInlineClassNameOfLevel(u){return`bracket-highlighting-${u%30}`}}(0,w.registerThemingParticipant)((h,u)=>{const n=[D.editorBracketHighlightingForeground1,D.editorBracketHighlightingForeground2,D.editorBracketHighlightingForeground3,D.editorBracketHighlightingForeground4,D.editorBracketHighlightingForeground5,D.editorBracketHighlightingForeground6],i=new C;u.addRule(`.monaco-editor .${i.unexpectedClosingBracketClassName} { color: ${h.getColor(D.editorBracketHighlightingUnexpectedBracketForeground)}; }`);const t=n.map(o=>h.getColor(o)).filter(o=>!!o).filter(o=>!o.isTransparent());for(let o=0;o<30;o++){const s=t[o%t.length];u.addRule(`.monaco-editor .${i.getInlineClassNameOfLevel(o)} { color: ${s}; }`)}})}),define(oe[681],se([1,0,84,2,46,15,54,50,3,52,6,25,51]),function(q,e,y,v,k,D,w,b,C,h,u,n,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MarkerDecorationsService=void 0;class t extends v.Disposable{constructor(d){super(),this.model=d,this._markersData=new Map,this._register((0,v.toDisposable)(()=>{this.model.deltaDecorations([...this._markersData.keys()],[]),this._markersData.clear()}))}update(d,l){const a=[...this._markersData.keys()];this._markersData.clear();const r=this.model.deltaDecorations(a,l);for(let c=0;c<r.length;c++)this._markersData.set(r[c],d[c]);return a.length!==0||r.length!==0}getMarker(d){return this._markersData.get(d.id)}}let o=class extends v.Disposable{constructor(s,d){super(),this._markerService=d,this._onDidChangeMarker=this._register(new u.Emitter),this._markerDecorations=new i.ResourceMap,s.getModels().forEach(l=>this._onModelAdded(l)),this._register(s.onModelAdded(this._onModelAdded,this)),this._register(s.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach(s=>s.dispose()),this._markerDecorations.clear()}getMarker(s,d){const l=this._markerDecorations.get(s);return l&&l.getMarker(d)||null}_handleMarkerChange(s){s.forEach(d=>{const l=this._markerDecorations.get(d);l&&this._updateDecorations(l)})}_onModelAdded(s){const d=new t(s);this._markerDecorations.set(s.uri,d),this._updateDecorations(d)}_onModelRemoved(s){var d;const l=this._markerDecorations.get(s.uri);l&&(l.dispose(),this._markerDecorations.delete(s.uri)),(s.uri.scheme===h.Schemas.inMemory||s.uri.scheme===h.Schemas.internal||s.uri.scheme===h.Schemas.vscode)&&((d=this._markerService)===null||d===void 0||d.read({resource:s.uri}).map(a=>a.owner).forEach(a=>this._markerService.remove(a,[s.uri])))}_updateDecorations(s){const d=this._markerService.read({resource:s.model.uri,take:500}),l=d.map(a=>({range:this._createDecorationRange(s.model,a),options:this._createDecorationOption(a)}));s.update(d,l)&&this._onDidChangeMarker.fire(s.model)}_createDecorationRange(s,d){let l=C.Range.lift(d);if(d.severity===y.MarkerSeverity.Hint&&!this._hasMarkerTag(d,1)&&!this._hasMarkerTag(d,2)&&(l=l.setEndPosition(l.startLineNumber,l.startColumn+2)),l=s.validateRange(l),l.isEmpty()){const a=s.getLineLastNonWhitespaceColumn(l.startLineNumber)||s.getLineMaxColumn(l.startLineNumber);if(a===1||l.endColumn>=a)return l;const r=s.getWordAtPosition(l.getStartPosition());r&&(l=new C.Range(l.startLineNumber,r.startColumn,l.endLineNumber,r.endColumn))}else if(d.endColumn===Number.MAX_VALUE&&d.startColumn===1&&l.startLineNumber===l.endLineNumber){const a=s.getLineFirstNonWhitespaceColumn(d.startLineNumber);a<l.endColumn&&(l=new C.Range(l.startLineNumber,a,l.endLineNumber,l.endColumn),d.startColumn=a)}return l}_createDecorationOption(s){let d,l,a,r,c;switch(s.severity){case y.MarkerSeverity.Hint:this._hasMarkerTag(s,2)?d=void 0:this._hasMarkerTag(s,1)?d="squiggly-unnecessary":d="squiggly-hint",a=0;break;case y.MarkerSeverity.Warning:d="squiggly-warning",l=(0,D.themeColorFromId)(w.overviewRulerWarning),a=20,c={color:(0,D.themeColorFromId)(n.minimapWarning),position:k.MinimapPosition.Inline};break;case y.MarkerSeverity.Info:d="squiggly-info",l=(0,D.themeColorFromId)(w.overviewRulerInfo),a=10;break;case y.MarkerSeverity.Error:default:d="squiggly-error",l=(0,D.themeColorFromId)(w.overviewRulerError),a=30,c={color:(0,D.themeColorFromId)(n.minimapError),position:k.MinimapPosition.Inline};break}return s.tags&&(s.tags.indexOf(1)!==-1&&(r="squiggly-inline-unnecessary"),s.tags.indexOf(2)!==-1&&(r="squiggly-inline-deprecated")),{description:"marker-decoration",stickiness:1,className:d,showIfCollapsed:!0,overviewRuler:{color:l,position:k.OverviewRulerLane.Right},minimap:c,zIndex:a,inlineClassName:r}}_hasMarkerTag(s,d){return s.tags?s.tags.indexOf(d)>=0:!1}};o=Ie([pe(0,b.IModelService),pe(1,y.IMarkerService)],o),e.MarkerDecorationsService=o}),define(oe[298],se([1,0,109,15,69,433,37]),function(q,e,y,v,k,D,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toMultilineTokens2=e.SemanticTokensProviderStyling=void 0;let b=class{constructor(n,i,t,o){this._legend=n,this._themeService=i,this._languageService=t,this._logService=o,this._hasWarnedOverlappingTokens=!1,this._hasWarnedInvalidLengthTokens=!1,this._hasWarnedInvalidEditStart=!1,this._hashTable=new u}getMetadata(n,i,t){const o=this._languageService.languageIdCodec.encodeLanguageId(t),s=this._hashTable.get(n,i,o);let d;if(s)d=s.metadata,this._logService.getLevel()===k.LogLevel.Trace&&this._logService.trace(`SemanticTokensProviderStyling [CACHED] ${n} / ${i}: foreground ${y.TokenMetadata.getForeground(d)}, fontStyle ${y.TokenMetadata.getFontStyle(d).toString(2)}`);else{let l=this._legend.tokenTypes[n];const a=[];if(l){let r=i;for(let g=0;r>0&&g<this._legend.tokenModifiers.length;g++)r&1&&a.push(this._legend.tokenModifiers[g]),r=r>>1;r>0&&this._logService.getLevel()===k.LogLevel.Trace&&(this._logService.trace(`SemanticTokensProviderStyling: unknown token modifier index: ${i.toString(2)} for legend: ${JSON.stringify(this._legend.tokenModifiers)}`),a.push("not-in-legend"));const c=this._themeService.getColorTheme().getTokenStyleMetadata(l,a,t);typeof c>"u"?d=2147483647:(d=0,typeof c.italic<"u"&&(d|=(c.italic?1:0)<<11|1),typeof c.bold<"u"&&(d|=(c.bold?2:0)<<11|2),typeof c.underline<"u"&&(d|=(c.underline?4:0)<<11|4),typeof c.strikethrough<"u"&&(d|=(c.strikethrough?8:0)<<11|8),c.foreground&&(d|=c.foreground<<15|16),d===0&&(d=2147483647))}else this._logService.getLevel()===k.LogLevel.Trace&&this._logService.trace(`SemanticTokensProviderStyling: unknown token type index: ${n} for legend: ${JSON.stringify(this._legend.tokenTypes)}`),d=2147483647,l="not-in-legend";this._hashTable.add(n,i,o,d),this._logService.getLevel()===k.LogLevel.Trace&&this._logService.trace(`SemanticTokensProviderStyling ${n} (${l}) / ${i} (${a.join(" ")}): foreground ${y.TokenMetadata.getForeground(d)}, fontStyle ${y.TokenMetadata.getFontStyle(d).toString(2)}`)}return d}warnOverlappingSemanticTokens(n,i){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,console.warn(`Overlapping semantic tokens detected at lineNumber ${n}, column ${i}`))}warnInvalidLengthSemanticTokens(n,i){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,console.warn(`Semantic token with invalid length detected at lineNumber ${n}, column ${i}`))}warnInvalidEditStart(n,i,t,o,s){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,console.warn(`Invalid semantic tokens edit detected (previousResultId: ${n}, resultId: ${i}) at edit #${t}: The provided start offset ${o} is outside the previous data (length ${s}).`))}};b=Ie([pe(1,v.IThemeService),pe(2,w.ILanguageService),pe(3,k.ILogService)],b),e.SemanticTokensProviderStyling=b;function C(n,i,t){const o=n.data,s=n.data.length/5|0,d=Math.max(Math.ceil(s/1024),400),l=[];let a=0,r=1,c=0;for(;a<s;){const g=a;let f=Math.min(g+d,s);if(f<s){let N=f;for(;N-1>g&&o[5*N]===0;)N--;if(N-1===g){let I=f;for(;I+1<s&&o[5*I]===0;)I++;f=I}else f=N}let _=new Uint32Array((f-g)*4),p=0,m=0,S=0,E=0;for(;a<f;){const N=5*a,I=o[N],R=o[N+1],F=r+I|0,O=I===0?c+R|0:R,x=o[N+2],M=O+x|0,P=o[N+3],A=o[N+4];if(M<=O)i.warnInvalidLengthSemanticTokens(F,O+1);else if(S===F&&E>O)i.warnOverlappingSemanticTokens(F,O+1);else{const B=i.getMetadata(P,A,t);B!==2147483647&&(m===0&&(m=F),_[p]=F-m,_[p+1]=O,_[p+2]=M,_[p+3]=B,p+=4,S=F,E=M)}r=F,c=O,a++}p!==_.length&&(_=_.subarray(0,p));const L=D.SparseMultilineTokens.create(m,_);l.push(L)}return l}e.toMultilineTokens2=C;class h{constructor(i,t,o,s){this.tokenTypeIndex=i,this.tokenModifierSet=t,this.languageId=o,this.metadata=s,this.next=null}}class u{constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=u._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<u._SIZES.length?2/3*this._currentLength:0),this._elements=[],u._nullOutEntries(this._elements,this._currentLength)}static _nullOutEntries(i,t){for(let o=0;o<t;o++)i[o]=null}_hash2(i,t){return(i<<5)-i+t|0}_hashFunc(i,t,o){return this._hash2(this._hash2(i,t),o)%this._currentLength}get(i,t,o){const s=this._hashFunc(i,t,o);let d=this._elements[s];for(;d;){if(d.tokenTypeIndex===i&&d.tokenModifierSet===t&&d.languageId===o)return d;d=d.next}return null}add(i,t,o,s){if(this._elementsCount++,this._growCount!==0&&this._elementsCount>=this._growCount){const d=this._elements;this._currentLengthIndex++,this._currentLength=u._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<u._SIZES.length?2/3*this._currentLength:0),this._elements=[],u._nullOutEntries(this._elements,this._currentLength);for(const l of d){let a=l;for(;a;){const r=a.next;a.next=null,this._add(a),a=r}}}this._add(new h(i,t,o,s))}_add(i){const t=this._hashFunc(i.tokenTypeIndex,i.tokenModifierSet,i.languageId);i.next=this._elements[t],this._elements[t]=i}}u._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143]}),define(oe[682],se([1,0,7,62,27,6,2,184,546,44,25,15,373]),function(q,e,y,v,k,D,w,b,C,h,u,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LightBulbWidget=void 0;var i;(function(o){o.Hidden={type:0};class s{constructor(l,a,r,c){this.actions=l,this.trigger=a,this.editorPosition=r,this.widgetPosition=c,this.type=1}}o.Showing=s})(i||(i={}));let t=class Hi extends w.Disposable{constructor(s,d,l,a){super(),this._editor=s,this._quickFixActionId=d,this._preferredFixActionId=l,this._keybindingService=a,this._onClick=this._register(new D.Emitter),this.onClick=this._onClick.event,this._state=i.Hidden,this._domNode=document.createElement("div"),this._domNode.className=k.Codicon.lightBulb.classNames,this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(r=>{const c=this._editor.getModel();(this.state.type!==1||!c||this.state.editorPosition.lineNumber>=c.getLineCount())&&this.hide()})),v.Gesture.ignoreTarget(this._domNode),this._register(y.addStandardDisposableGenericMouseDownListener(this._domNode,r=>{if(this.state.type!==1)return;this._editor.focus(),r.preventDefault();const{top:c,height:g}=y.getDomNodePagePosition(this._domNode),f=this._editor.getOption(61);let _=Math.floor(f/3);this.state.widgetPosition.position!==null&&this.state.widgetPosition.position.lineNumber<this.state.editorPosition.lineNumber&&(_+=f),this._onClick.fire({x:r.posx,y:c+g+_,actions:this.state.actions,trigger:this.state.trigger})})),this._register(y.addDisposableListener(this._domNode,"mouseenter",r=>{(r.buttons&1)==1&&this.hide()})),this._register(this._editor.onDidChangeConfiguration(r=>{r.hasChanged(59)&&!this._editor.getOption(59).enabled&&this.hide()})),this._updateLightBulbTitleAndIcon(),this._register(this._keybindingService.onDidUpdateKeybindings(this._updateLightBulbTitleAndIcon,this))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return this._state.type===1?this._state.widgetPosition:null}update(s,d,l){if(s.validActions.length<=0)return this.hide();const a=this._editor.getOptions();if(!a.get(59).enabled)return this.hide();const r=this._editor.getModel();if(!r)return this.hide();const{lineNumber:c,column:g}=r.validatePosition(l),f=r.getOptions().tabSize,_=a.get(46),p=r.getLineContent(c),m=(0,b.computeIndentLevel)(p,f),S=_.spaceWidth*m>22,E=N=>N>2&&this._editor.getTopForLineNumber(N)===this._editor.getTopForLineNumber(N-1);let L=c;if(!S){if(c>1&&!E(c-1))L-=1;else if(!E(c+1))L+=1;else if(g*_.spaceWidth<22)return this.hide()}this.state=new i.Showing(s,d,l,{position:{lineNumber:L,column:1},preference:Hi._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state=i.Hidden,this._editor.layoutContentWidget(this)}get state(){return this._state}set state(s){this._state=s,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this.state.type===1&&this.state.actions.hasAutoFix){this._domNode.classList.remove(...k.Codicon.lightBulb.classNamesArray),this._domNode.classList.add(...k.Codicon.lightbulbAutofix.classNamesArray);const d=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(d){this.title=C.localize(0,null,d.getLabel());return}}this._domNode.classList.remove(...k.Codicon.lightbulbAutofix.classNamesArray),this._domNode.classList.add(...k.Codicon.lightBulb.classNamesArray);const s=this._keybindingService.lookupKeybinding(this._quickFixActionId);s?this.title=C.localize(1,null,s.getLabel()):this.title=C.localize(2,null)}set title(s){this._domNode.title=s}};t._posPref=[0],t=Ie([pe(3,h.IKeybindingService)],t),e.LightBulbWidget=t,(0,n.registerThemingParticipant)((o,s)=>{var d;const l=(d=o.getColor(u.editorBackground))===null||d===void 0?void 0:d.transparent(.7),a=o.getColor(u.editorLightBulbForeground);a&&s.addRule(` .monaco-editor .contentWidgets ${k.Codicon.lightBulb.cssSelector} { color: ${a}; background-color: ${l}; }`);const r=o.getColor(u.editorLightBulbAutoFixForeground);r&&s.addRule(` .monaco-editor .contentWidgets ${k.Codicon.lightbulbAutofix.cssSelector} { color: ${r}; background-color: ${l}; }`)})}),define(oe[683],se([1,0,41,7,132,68,31,6,2,548,25,15,376]),function(q,e,y,v,k,D,w,b,C,h,u,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColorPickerWidget=e.ColorPickerBody=e.ColorPickerHeader=void 0;const i=v.$;class t extends C.Disposable{constructor(g,f,_){super(),this.model=f,this.domNode=i(".colorpicker-header"),v.append(g,this.domNode),this.pickedColorNode=v.append(this.domNode,i(".picked-color"));const p=(0,h.localize)(0,null);this.pickedColorNode.setAttribute("title",p);const m=v.append(this.domNode,i(".original-color"));m.style.backgroundColor=w.Color.Format.CSS.format(this.model.originalColor)||"",this.backgroundColor=_.getColorTheme().getColor(u.editorHoverBackground)||w.Color.white,this._register((0,n.registerThemingParticipant)((S,E)=>{this.backgroundColor=S.getColor(u.editorHoverBackground)||w.Color.white})),this._register(v.addDisposableListener(this.pickedColorNode,v.EventType.CLICK,()=>this.model.selectNextColorPresentation())),this._register(v.addDisposableListener(m,v.EventType.CLICK,()=>{this.model.color=this.model.originalColor,this.model.flushColor()})),this._register(f.onDidChangeColor(this.onDidChangeColor,this)),this._register(f.onDidChangePresentation(this.onDidChangePresentation,this)),this.pickedColorNode.style.backgroundColor=w.Color.Format.CSS.format(f.color)||"",this.pickedColorNode.classList.toggle("light",f.color.rgba.a<.5?this.backgroundColor.isLighter():f.color.isLighter()),this.onDidChangeColor(this.model.color)}onDidChangeColor(g){this.pickedColorNode.style.backgroundColor=w.Color.Format.CSS.format(g)||"",this.pickedColorNode.classList.toggle("light",g.rgba.a<.5?this.backgroundColor.isLighter():g.isLighter()),this.onDidChangePresentation()}onDidChangePresentation(){this.pickedColorNode.textContent=this.model.presentation?this.model.presentation.label:"",this.pickedColorNode.prepend(i(".codicon.codicon-color-mode"))}}e.ColorPickerHeader=t;class o extends C.Disposable{constructor(g,f,_){super(),this.model=f,this.pixelRatio=_,this.domNode=i(".colorpicker-body"),v.append(g,this.domNode),this.saturationBox=new s(this.domNode,this.model,this.pixelRatio),this._register(this.saturationBox),this._register(this.saturationBox.onDidChange(this.onDidSaturationValueChange,this)),this._register(this.saturationBox.onColorFlushed(this.flushColor,this)),this.opacityStrip=new l(this.domNode,this.model),this._register(this.opacityStrip),this._register(this.opacityStrip.onDidChange(this.onDidOpacityChange,this)),this._register(this.opacityStrip.onColorFlushed(this.flushColor,this)),this.hueStrip=new a(this.domNode,this.model),this._register(this.hueStrip),this._register(this.hueStrip.onDidChange(this.onDidHueChange,this)),this._register(this.hueStrip.onColorFlushed(this.flushColor,this))}flushColor(){this.model.flushColor()}onDidSaturationValueChange({s:g,v:f}){const _=this.model.color.hsva;this.model.color=new w.Color(new w.HSVA(_.h,g,f,_.a))}onDidOpacityChange(g){const f=this.model.color.hsva;this.model.color=new w.Color(new w.HSVA(f.h,f.s,f.v,g))}onDidHueChange(g){const f=this.model.color.hsva,_=(1-g)*360;this.model.color=new w.Color(new w.HSVA(_===360?0:_,f.s,f.v,f.a))}layout(){this.saturationBox.layout(),this.opacityStrip.layout(),this.hueStrip.layout()}}e.ColorPickerBody=o;class s extends C.Disposable{constructor(g,f,_){super(),this.model=f,this.pixelRatio=_,this._onDidChange=new b.Emitter,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new b.Emitter,this.onColorFlushed=this._onColorFlushed.event,this.domNode=i(".saturation-wrap"),v.append(g,this.domNode),this.canvas=document.createElement("canvas"),this.canvas.className="saturation-box",v.append(this.domNode,this.canvas),this.selection=i(".saturation-selection"),v.append(this.domNode,this.selection),this.layout(),this._register(v.addDisposableListener(this.domNode,v.EventType.POINTER_DOWN,p=>this.onPointerDown(p))),this._register(this.model.onDidChangeColor(this.onDidChangeColor,this)),this.monitor=null}onPointerDown(g){if(!g.target||!(g.target instanceof Element))return;this.monitor=this._register(new k.GlobalPointerMoveMonitor);const f=v.getDomNodePagePosition(this.domNode);g.target!==this.selection&&this.onDidChangePosition(g.offsetX,g.offsetY),this.monitor.startMonitoring(g.target,g.pointerId,g.buttons,p=>this.onDidChangePosition(p.pageX-f.left,p.pageY-f.top),()=>null);const _=v.addDisposableListener(document,v.EventType.POINTER_UP,()=>{this._onColorFlushed.fire(),_.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)},!0)}onDidChangePosition(g,f){const _=Math.max(0,Math.min(1,g/this.width)),p=Math.max(0,Math.min(1,1-f/this.height));this.paintSelection(_,p),this._onDidChange.fire({s:_,v:p})}layout(){this.width=this.domNode.offsetWidth,this.height=this.domNode.offsetHeight,this.canvas.width=this.width*this.pixelRatio,this.canvas.height=this.height*this.pixelRatio,this.paint();const g=this.model.color.hsva;this.paintSelection(g.s,g.v)}paint(){const g=this.model.color.hsva,f=new w.Color(new w.HSVA(g.h,1,1,1)),_=this.canvas.getContext("2d"),p=_.createLinearGradient(0,0,this.canvas.width,0);p.addColorStop(0,"rgba(255, 255, 255, 1)"),p.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),p.addColorStop(1,"rgba(255, 255, 255, 0)");const m=_.createLinearGradient(0,0,0,this.canvas.height);m.addColorStop(0,"rgba(0, 0, 0, 0)"),m.addColorStop(1,"rgba(0, 0, 0, 1)"),_.rect(0,0,this.canvas.width,this.canvas.height),_.fillStyle=w.Color.Format.CSS.format(f),_.fill(),_.fillStyle=p,_.fill(),_.fillStyle=m,_.fill()}paintSelection(g,f){this.selection.style.left=`${g*this.width}px`,this.selection.style.top=`${this.height-f*this.height}px`}onDidChangeColor(){this.monitor&&this.monitor.isMonitoring()||this.paint()}}class d extends C.Disposable{constructor(g,f){super(),this.model=f,this._onDidChange=new b.Emitter,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new b.Emitter,this.onColorFlushed=this._onColorFlushed.event,this.domNode=v.append(g,i(".strip")),this.overlay=v.append(this.domNode,i(".overlay")),this.slider=v.append(this.domNode,i(".slider")),this.slider.style.top="0px",this._register(v.addDisposableListener(this.domNode,v.EventType.POINTER_DOWN,_=>this.onPointerDown(_))),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;const g=this.getValue(this.model.color);this.updateSliderPosition(g)}onPointerDown(g){if(!g.target||!(g.target instanceof Element))return;const f=this._register(new k.GlobalPointerMoveMonitor),_=v.getDomNodePagePosition(this.domNode);this.domNode.classList.add("grabbing"),g.target!==this.slider&&this.onDidChangeTop(g.offsetY),f.startMonitoring(g.target,g.pointerId,g.buttons,m=>this.onDidChangeTop(m.pageY-_.top),()=>null);const p=v.addDisposableListener(document,v.EventType.POINTER_UP,()=>{this._onColorFlushed.fire(),p.dispose(),f.stopMonitoring(!0),this.domNode.classList.remove("grabbing")},!0)}onDidChangeTop(g){const f=Math.max(0,Math.min(1,1-g/this.height));this.updateSliderPosition(f),this._onDidChange.fire(f)}updateSliderPosition(g){this.slider.style.top=`${(1-g)*this.height}px`}}class l extends d{constructor(g,f){super(g,f),this.domNode.classList.add("opacity-strip"),this._register(f.onDidChangeColor(this.onDidChangeColor,this)),this.onDidChangeColor(this.model.color)}onDidChangeColor(g){const{r:f,g:_,b:p}=g.rgba,m=new w.Color(new w.RGBA(f,_,p,1)),S=new w.Color(new w.RGBA(f,_,p,0));this.overlay.style.background=`linear-gradient(to bottom, ${m} 0%, ${S} 100%)`}getValue(g){return g.hsva.a}}class a extends d{constructor(g,f){super(g,f),this.domNode.classList.add("hue-strip")}getValue(g){return 1-g.hsva.h/360}}class r extends D.Widget{constructor(g,f,_,p){super(),this.model=f,this.pixelRatio=_,this._register(y.PixelRatio.onDidChange(()=>this.layout()));const m=i(".colorpicker-widget");g.appendChild(m);const S=new t(m,this.model,p);this.body=new o(m,this.model,this.pixelRatio),this._register(S),this._register(this.body)}layout(){this.body.layout()}}e.ColorPickerWidget=r}),define(oe[684],se([1,0,7,255,257,197,63,2,43,58,567,9,44,140,142,15,137]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AccessibilityProvider=e.OneReferenceRenderer=e.FileReferencesRenderer=e.IdentityProvider=e.StringRepresentationProvider=e.Delegate=e.DataSource=void 0;let l=class{constructor(S){this._resolverService=S}hasChildren(S){return S instanceof d.ReferencesModel||S instanceof d.FileReferences}getChildren(S){if(S instanceof d.ReferencesModel)return S.groups;if(S instanceof d.FileReferences)return S.resolve(this._resolverService).then(E=>E.children);throw new Error("bad tree")}};l=Ie([pe(0,h.ITextModelService)],l),e.DataSource=l;class a{getHeight(){return 23}getTemplateId(E){return E instanceof d.FileReferences?f.id:p.id}}e.Delegate=a;let r=class{constructor(S){this._keybindingService=S}getKeyboardNavigationLabel(S){var E;if(S instanceof d.OneReference){const L=(E=S.parent.getPreview(S))===null||E===void 0?void 0:E.preview(S.range);if(L)return L.value}return(0,C.basename)(S.uri)}};r=Ie([pe(0,i.IKeybindingService)],r),e.StringRepresentationProvider=r;class c{getId(E){return E instanceof d.OneReference?E.id:E.uri}}e.IdentityProvider=c;let g=class extends b.Disposable{constructor(S,E,L){super(),this._labelService=E;const N=document.createElement("div");N.classList.add("reference-file"),this.file=this._register(new D.IconLabel(N,{supportHighlights:!0})),this.badge=new v.CountBadge(y.append(N,y.$(".count"))),this._register((0,o.attachBadgeStyler)(this.badge,L)),S.appendChild(N)}set(S,E){const L=(0,C.dirname)(S.uri);this.file.setLabel(this._labelService.getUriBasenameLabel(S.uri),this._labelService.getUriLabel(L,{relative:!0}),{title:this._labelService.getUriLabel(S.uri),matches:E});const N=S.children.length;this.badge.setCount(N),N>1?this.badge.setTitleFormat((0,u.localize)(0,null,N)):this.badge.setTitleFormat((0,u.localize)(1,null,N))}};g=Ie([pe(1,t.ILabelService),pe(2,s.IThemeService)],g);let f=class Ki{constructor(E){this._instantiationService=E,this.templateId=Ki.id}renderTemplate(E){return this._instantiationService.createInstance(g,E)}renderElement(E,L,N){N.set(E.element,(0,w.createMatches)(E.filterData))}disposeTemplate(E){E.dispose()}};f.id="FileReferencesRenderer",f=Ie([pe(0,n.IInstantiationService)],f),e.FileReferencesRenderer=f;class _{constructor(E){this.label=new k.HighlightedLabel(E)}set(E,L){var N;const I=(N=E.parent.getPreview(E))===null||N===void 0?void 0:N.preview(E.range);if(!I||!I.value)this.label.set(`${(0,C.basename)(E.uri)}:${E.range.startLineNumber+1}:${E.range.startColumn+1}`);else{const{value:R,highlight:F}=I;L&&!w.FuzzyScore.isDefault(L)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(R,(0,w.createMatches)(L))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(R,[F]))}}}class p{constructor(){this.templateId=p.id}renderTemplate(E){return new _(E)}renderElement(E,L,N){N.set(E.element,E.filterData)}disposeTemplate(){}}e.OneReferenceRenderer=p,p.id="OneReferenceRenderer";class m{getWidgetAriaLabel(){return(0,u.localize)(2,null)}getAriaLabel(E){return E.ariaMessage}}e.AccessibilityProvider=m}),define(oe[685],se([1,0,7,2,8,65,36,82,11,3,91,46,37,54,130,114,165,9,15,383]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.GhostTextWidget=void 0;const c=(r=window.trustedTypes)===null||r===void 0?void 0:r.createPolicy("editorGhostText",{createHTML:E=>E});let g=class extends v.Disposable{constructor(E,L,N,I){super(),this.editor=E,this.model=L,this.instantiationService=N,this.languageService=I,this.disposed=!1,this.partsWidget=this._register(this.instantiationService.createInstance(_,this.editor)),this.additionalLinesWidget=this._register(new p(this.editor,this.languageService.languageIdCodec)),this.viewMoreContentWidget=void 0,this.replacementDecoration=this._register(new f(this.editor)),this._register(this.editor.onDidChangeConfiguration(R=>{(R.hasChanged(29)||R.hasChanged(107)||R.hasChanged(90)||R.hasChanged(85)||R.hasChanged(47)||R.hasChanged(46)||R.hasChanged(61))&&this.update()})),this._register((0,v.toDisposable)(()=>{var R;this.disposed=!0,this.update(),(R=this.viewMoreContentWidget)===null||R===void 0||R.dispose(),this.viewMoreContentWidget=void 0})),this._register(L.onDidChange(()=>{this.update()})),this.update()}shouldShowHoverAtViewZone(E){return this.additionalLinesWidget.viewZoneId===E}update(){var E;const L=this.model.ghostText;if(!this.editor.hasModel()||!L||this.disposed){this.partsWidget.clear(),this.additionalLinesWidget.clear(),this.replacementDecoration.clear();return}const N=new Array,I=new Array;function R(M,P){if(I.length>0){const A=I[I.length-1];P&&A.decorations.push(new o.LineDecoration(A.content.length+1,A.content.length+1+M[0].length,P,0)),A.content+=M[0],M=M.slice(1)}for(const A of M)I.push({content:A,decorations:P?[new o.LineDecoration(1,A.length+1,P,0)]:[]})}L instanceof d.GhostTextReplacement?this.replacementDecoration.setDecorations([{range:new h.Range(L.lineNumber,L.columnStart,L.lineNumber,L.columnStart+L.length),options:{inlineClassName:"inline-completion-text-to-replace",description:"GhostTextReplacement"}}]):this.replacementDecoration.setDecorations([]);const F=this.editor.getModel().getLineContent(L.lineNumber);let O,x=0;for(const M of L.parts){let P=M.lines;O===void 0?(N.push({column:M.column,text:P[0],preview:M.preview}),P=P.slice(1)):R([F.substring(x,M.column-1)],void 0),P.length>0&&(R(P,"ghost-text"),O===void 0&&M.column<=F.length&&(O=M.column)),x=M.column-1}O!==void 0&&R([F.substring(x)],void 0),this.partsWidget.setParts(L.lineNumber,N,O!==void 0?{column:O,length:F.length+1-O}:void 0),this.additionalLinesWidget.updateLines(L.lineNumber,I,L.additionalReservedLineCount),0<0?this.viewMoreContentWidget=this.renderViewMoreLines(new C.Position(L.lineNumber,this.editor.getModel().getLineMaxColumn(L.lineNumber)),"",0):((E=this.viewMoreContentWidget)===null||E===void 0||E.dispose(),this.viewMoreContentWidget=void 0)}renderViewMoreLines(E,L,N){const I=this.editor.getOption(46),R=document.createElement("div");R.className="suggest-preview-additional-widget",(0,D.applyFontInfo)(R,I);const F=document.createElement("span");F.className="content-spacer",F.append(L),R.append(F);const O=document.createElement("span");O.className="content-newline suggest-preview-text",O.append("\u23CE "),R.append(O);const x=new v.DisposableStore,M=document.createElement("div");return M.className="button suggest-preview-text",M.append(`+${N} lines\u2026`),x.add(y.addStandardDisposableListener(M,"mousedown",P=>{var A;(A=this.model)===null||A===void 0||A.setExpanded(!0),P.preventDefault(),this.editor.focus()})),R.append(M),new S(this.editor,E,R,x)}};g=Ie([pe(2,l.IInstantiationService),pe(3,i.ILanguageService)],g),e.GhostTextWidget=g;class f{constructor(L){this.editor=L,this.decorationIds=[]}setDecorations(L){this.editor.changeDecorations(N=>{this.decorationIds=N.deltaDecorations(this.decorationIds,L)})}clear(){this.setDecorations([])}dispose(){this.clear()}}class _{constructor(L){this.editor=L,this.decorationIds=[]}dispose(){this.clear()}clear(){this.editor.changeDecorations(L=>{this.decorationIds=L.deltaDecorations(this.decorationIds,[])})}setParts(L,N,I){if(!this.editor.getModel())return;const R=new Array;I&&R.push({range:h.Range.fromPositions(new C.Position(L,I.column),new C.Position(L,I.column+I.length)),options:{inlineClassName:"ghost-text-hidden",description:"ghost-text-hidden"}}),this.editor.changeDecorations(F=>{this.decorationIds=F.deltaDecorations(this.decorationIds,N.map(O=>({range:h.Range.fromPositions(new C.Position(L,O.column)),options:{description:"ghost-text",after:{content:O.text,inlineClassName:O.preview?"ghost-text-decoration-preview":"ghost-text-decoration",cursorStops:n.InjectedTextCursorStops.Left},showIfCollapsed:!0}})).concat(R))})}}class p{constructor(L,N){this.editor=L,this.languageIdCodec=N,this._viewZoneId=void 0}get viewZoneId(){return this._viewZoneId}dispose(){this.clear()}clear(){this.editor.changeViewZones(L=>{this._viewZoneId&&(L.removeZone(this._viewZoneId),this._viewZoneId=void 0)})}updateLines(L,N,I){const R=this.editor.getModel();if(!R)return;const{tabSize:F}=R.getOptions();this.editor.changeViewZones(O=>{this._viewZoneId&&(O.removeZone(this._viewZoneId),this._viewZoneId=void 0);const x=Math.max(N.length,I);if(x>0){const M=document.createElement("div");m(M,F,N,this.editor.getOptions(),this.languageIdCodec),this._viewZoneId=O.addZone({afterLineNumber:L,heightInLines:x,domNode:M,afterColumnAffinity:1})}})}}function m(E,L,N,I,R){const F=I.get(29),O=I.get(107),x="none",M=I.get(85),P=I.get(47),A=I.get(46),B=I.get(61),K=(0,u.createStringBuilder)(1e4);K.appendASCIIString('<div class="suggest-preview-text">');for(let J=0,$=N.length;J<$;J++){const j=N[J],G=j.content;K.appendASCIIString('<div class="view-line'),K.appendASCIIString('" style="top:'),K.appendASCIIString(String(J*B)),K.appendASCIIString('px;width:1000000px;">');const te=k.isBasicASCII(G),Z=k.containsRTL(G),X=b.LineTokens.createEmpty(G,R);(0,s.renderViewLine)(new s.RenderLineInput(A.isMonospace&&!F,A.canUseHalfwidthRightwardsArrow,G,!1,te,Z,0,X,j.decorations,L,0,A.spaceWidth,A.middotWidth,A.wsmiddotWidth,O,x,M,P!==w.EditorFontLigatures.OFF,null),K),K.appendASCIIString("</div>")}K.appendASCIIString("</div>"),(0,D.applyFontInfo)(E,A);const T=K.build(),ee=c?c.createHTML(T):T;E.innerHTML=ee}class S extends v.Disposable{constructor(L,N,I,R){super(),this.editor=L,this.position=N,this.domNode=I,this.allowEditorOverflow=!1,this.suppressMouseDown=!1,this._register(R),this._register((0,v.toDisposable)(()=>{this.editor.removeContentWidget(this)})),this.editor.addContentWidget(this)}getId(){return"editor.widget.viewMoreLinesWidget"}getDomNode(){return this.domNode}getPosition(){return{position:this.position,preference:[0]}}}(0,a.registerThemingParticipant)((E,L)=>{const N=E.getColor(t.ghostTextForeground);N&&(L.addRule(`.monaco-editor .ghost-text-decoration { color: ${N.toString()} !important; }`),L.addRule(`.monaco-editor .ghost-text-decoration-preview { color: ${N.toString()} !important; }`),L.addRule(`.monaco-editor .suggest-preview-text .ghost-text { color: ${N.toString()} !important; }`));const I=E.getColor(t.ghostTextBackground);I&&(L.addRule(`.monaco-editor .ghost-text-decoration { background-color: ${I.toString()}; }`),L.addRule(`.monaco-editor .ghost-text-decoration-preview { background-color: ${I.toString()}; }`),L.addRule(`.monaco-editor .suggest-preview-text .ghost-text { background-color: ${I.toString()}; }`));const R=E.getColor(t.ghostTextBorder);R&&(L.addRule(`.monaco-editor .suggest-preview-text .ghost-text { border: 1px solid ${R}; }`),L.addRule(`.monaco-editor .ghost-text-decoration { border: 1px solid ${R}; }`),L.addRule(`.monaco-editor .ghost-text-decoration-preview { border: 1px solid ${R}; }`))})}),define(oe[299],se([1,0,96,2,19,155,46,54,15]),function(q,e,y,v,k,D,w,b,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractEditorNavigationQuickAccessProvider=void 0;class h{constructor(n){this.options=n,this.rangeHighlightDecorationId=void 0}provide(n,i){var t;const o=new v.DisposableStore;n.canAcceptInBackground=!!(!((t=this.options)===null||t===void 0)&&t.canAcceptInBackground),n.matchOnLabel=n.matchOnDescription=n.matchOnDetail=n.sortByLabel=!1;const s=o.add(new v.MutableDisposable);return s.value=this.doProvide(n,i),o.add(this.onDidActiveTextEditorControlChange(()=>{s.value=void 0,s.value=this.doProvide(n,i)})),o}doProvide(n,i){const t=new v.DisposableStore,o=this.activeTextEditorControl;if(o&&this.canProvideWithTextEditor(o)){const s={editor:o},d=(0,D.getCodeEditor)(o);if(d){let l=(0,k.withNullAsUndefined)(o.saveViewState());t.add(d.onDidChangeCursorPosition(()=>{l=(0,k.withNullAsUndefined)(o.saveViewState())})),s.restoreViewState=()=>{l&&o===this.activeTextEditorControl&&o.restoreViewState(l)},t.add((0,y.once)(i.onCancellationRequested)(()=>{var a;return(a=s.restoreViewState)===null||a===void 0?void 0:a.call(s)}))}t.add((0,v.toDisposable)(()=>this.clearDecorations(o))),t.add(this.provideWithTextEditor(s,n,i))}else t.add(this.provideWithoutTextEditor(n,i));return t}canProvideWithTextEditor(n){return!0}gotoLocation({editor:n},i){n.setSelection(i.range),n.revealRangeInCenter(i.range,0),i.preserveFocus||n.focus()}getModel(n){var i;return(0,D.isDiffEditor)(n)?(i=n.getModel())===null||i===void 0?void 0:i.modified:n.getModel()}addDecorations(n,i){n.changeDecorations(t=>{const o=[];this.rangeHighlightDecorationId&&(o.push(this.rangeHighlightDecorationId.overviewRulerDecorationId),o.push(this.rangeHighlightDecorationId.rangeHighlightId),this.rangeHighlightDecorationId=void 0);const s=[{range:i,options:{description:"quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:i,options:{description:"quick-access-range-highlight-overview",overviewRuler:{color:(0,C.themeColorFromId)(b.overviewRulerRangeHighlight),position:w.OverviewRulerLane.Full}}}],[d,l]=t.deltaDecorations(o,s);this.rangeHighlightDecorationId={rangeHighlightId:d,overviewRulerDecorationId:l}})}clearDecorations(n){const i=this.rangeHighlightDecorationId;i&&(n.changeDecorations(t=>{t.deltaDecorations([i.overviewRulerDecorationId,i.rangeHighlightId],[])}),this.rangeHighlightDecorationId=void 0)}}e.AbstractEditorNavigationQuickAccessProvider=h}),define(oe[686],se([1,0,2,155,299,588]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractGotoLineQuickAccessProvider=void 0;class w extends k.AbstractEditorNavigationQuickAccessProvider{constructor(){super({canAcceptInBackground:!0})}provideWithoutTextEditor(C){const h=(0,D.localize)(0,null);return C.items=[{label:h}],C.ariaLabel=h,y.Disposable.None}provideWithTextEditor(C,h,u){const n=C.editor,i=new y.DisposableStore;i.add(h.onDidAccept(s=>{const[d]=h.selectedItems;if(d){if(!this.isValidLineNumber(n,d.lineNumber))return;this.gotoLocation(C,{range:this.toRange(d.lineNumber,d.column),keyMods:h.keyMods,preserveFocus:s.inBackground}),s.inBackground||h.hide()}}));const t=()=>{const s=this.parsePosition(n,h.value.trim().substr(w.PREFIX.length)),d=this.getPickLabel(n,s.lineNumber,s.column);if(h.items=[{lineNumber:s.lineNumber,column:s.column,label:d}],h.ariaLabel=d,!this.isValidLineNumber(n,s.lineNumber)){this.clearDecorations(n);return}const l=this.toRange(s.lineNumber,s.column);n.revealRangeInCenter(l,0),this.addDecorations(n,l)};t(),i.add(h.onDidChangeValue(()=>t()));const o=(0,v.getCodeEditor)(n);return o&&o.getOptions().get(62).renderType===2&&(o.updateOptions({lineNumbers:"on"}),i.add((0,y.toDisposable)(()=>o.updateOptions({lineNumbers:"relative"})))),i}toRange(C=1,h=1){return{startLineNumber:C,startColumn:h,endLineNumber:C,endColumn:h}}parsePosition(C,h){const u=h.split(/,|:|#/).map(i=>parseInt(i,10)).filter(i=>!isNaN(i)),n=this.lineCount(C)+1;return{lineNumber:u[0]>0?u[0]:n+u[0],column:u[1]}}getPickLabel(C,h,u){if(this.isValidLineNumber(C,h))return this.isValidColumn(C,h,u)?(0,D.localize)(1,null,h,u):(0,D.localize)(2,null,h);const n=C.getPosition()||{lineNumber:1,column:1},i=this.lineCount(C);return i>1?(0,D.localize)(3,null,n.lineNumber,n.column,i):(0,D.localize)(4,null,n.lineNumber,n.column)}isValidLineNumber(C,h){return!h||typeof h!="number"?!1:h>0&&h<=this.lineCount(C)}isValidColumn(C,h,u){if(!u||typeof u!="number")return!1;const n=this.getModel(C);if(!n)return!1;const i={lineNumber:h,column:u};return n.validatePosition(i).equals(i)}lineCount(C){var h,u;return(u=(h=this.getModel(C))===null||h===void 0?void 0:h.getLineCount())!==null&&u!==void 0?u:0}}e.AbstractGotoLineQuickAccessProvider=w,w.PREFIX=":"}),define(oe[687],se([1,0,10,21,27,476,2,8,3,28,168,299,589,20,18]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractGotoSymbolQuickAccessProvider=void 0;let s=class Li extends n.AbstractEditorNavigationQuickAccessProvider{constructor(r,c,g=Object.create(null)){super(g),this._languageFeaturesService=r,this._outlineModelService=c,this.options=g,this.options.canAcceptInBackground=!0}provideWithoutTextEditor(r){return this.provideLabelPick(r,(0,i.localize)(0,null)),w.Disposable.None}provideWithTextEditor(r,c,g){const f=r.editor,_=this.getModel(f);return _?this._languageFeaturesService.documentSymbolProvider.has(_)?this.doProvideWithEditorSymbols(r,_,c,g):this.doProvideWithoutEditorSymbols(r,_,c,g):w.Disposable.None}doProvideWithoutEditorSymbols(r,c,g,f){const _=new w.DisposableStore;return this.provideLabelPick(g,(0,i.localize)(1,null)),be(this,void 0,void 0,function*(){!(yield this.waitForLanguageSymbolRegistry(c,_))||f.isCancellationRequested||_.add(this.doProvideWithEditorSymbols(r,c,g,f))}),_}provideLabelPick(r,c){r.items=[{label:c,index:0,kind:14}],r.ariaLabel=c}waitForLanguageSymbolRegistry(r,c){return be(this,void 0,void 0,function*(){if(this._languageFeaturesService.documentSymbolProvider.has(r))return!0;const g=new y.DeferredPromise,f=c.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>{this._languageFeaturesService.documentSymbolProvider.has(r)&&(f.dispose(),g.complete(!0))}));return c.add((0,w.toDisposable)(()=>g.complete(!1))),g.p})}doProvideWithEditorSymbols(r,c,g,f){var _;const p=r.editor,m=new w.DisposableStore;m.add(g.onDidAccept(I=>{const[R]=g.selectedItems;R&&R.range&&(this.gotoLocation(r,{range:R.range.selection,keyMods:g.keyMods,preserveFocus:I.inBackground}),I.inBackground||g.hide())})),m.add(g.onDidTriggerItemButton(({item:I})=>{I&&I.range&&(this.gotoLocation(r,{range:I.range.selection,keyMods:g.keyMods,forceSideBySide:!0}),g.hide())}));const S=this.getDocumentSymbols(c,f);let E;const L=I=>be(this,void 0,void 0,function*(){E?.dispose(!0),g.busy=!1,E=new v.CancellationTokenSource(f),g.busy=!0;try{const R=(0,D.prepareQuery)(g.value.substr(Li.PREFIX.length).trim()),F=yield this.doGetSymbolPicks(S,R,void 0,E.token);if(f.isCancellationRequested)return;if(F.length>0){if(g.items=F,I&&R.original.length===0){const O=(0,o.findLast)(F,x=>!!(x.type!=="separator"&&x.range&&C.Range.containsPosition(x.range.decoration,I)));O&&(g.activeItems=[O])}}else R.original.length>0?this.provideLabelPick(g,(0,i.localize)(2,null)):this.provideLabelPick(g,(0,i.localize)(3,null))}finally{f.isCancellationRequested||(g.busy=!1)}});m.add(g.onDidChangeValue(()=>L(void 0))),L((_=p.getSelection())===null||_===void 0?void 0:_.getPosition());let N=2;return m.add(g.onDidChangeActive(()=>{const[I]=g.activeItems;if(I&&I.range){if(N-- >0)return;p.revealRangeInCenter(I.range.selection,0),this.addDecorations(p,I.range.decoration)}})),m}doGetSymbolPicks(r,c,g,f){return be(this,void 0,void 0,function*(){const _=yield r;if(f.isCancellationRequested)return[];const p=c.original.indexOf(Li.SCOPE_PREFIX)===0,m=p?1:0;let S,E;c.values&&c.values.length>1?(S=(0,D.pieceToQuery)(c.values[0]),E=(0,D.pieceToQuery)(c.values.slice(1))):S=c;const L=[];for(let R=0;R<_.length;R++){const F=_[R],O=(0,b.trim)(F.name),x=`$(${h.SymbolKinds.toIcon(F.kind).id}) ${O}`,M=x.length-O.length;let P=F.containerName;g?.extraContainerLabel&&(P?P=`${g.extraContainerLabel} \u2022 ${P}`:P=g.extraContainerLabel);let A,B,K,T;if(c.original.length>m){let J=!1;if(S!==c&&([A,B]=(0,D.scoreFuzzy2)(x,Object.assign(Object.assign({},c),{values:void 0}),m,M),typeof A=="number"&&(J=!0)),typeof A!="number"&&([A,B]=(0,D.scoreFuzzy2)(x,S,m,M),typeof A!="number"))continue;if(!J&&E){if(P&&E.original.length>0&&([K,T]=(0,D.scoreFuzzy2)(P,E)),typeof K!="number")continue;typeof A=="number"&&(A+=K)}}const ee=F.tags&&F.tags.indexOf(1)>=0;L.push({index:R,kind:F.kind,score:A,label:x,ariaLabel:O,description:P,highlights:ee?void 0:{label:B,description:T},range:{selection:C.Range.collapseToStart(F.selectionRange),decoration:F.range},strikethrough:ee,buttons:(()=>{var J,$;const j=!((J=this.options)===null||J===void 0)&&J.openSideBySideDirection?($=this.options)===null||$===void 0?void 0:$.openSideBySideDirection():void 0;if(j)return[{iconClass:j==="right"?k.Codicon.splitHorizontal.classNames:k.Codicon.splitVertical.classNames,tooltip:j==="right"?(0,i.localize)(4,null):(0,i.localize)(5,null)}]})()})}const N=L.sort((R,F)=>p?this.compareByKindAndScore(R,F):this.compareByScore(R,F));let I=[];if(p){let R=function(){O&&typeof F=="number"&&x>0&&(O.label=(0,b.format)(l[F]||d,x))},F,O,x=0;for(const M of N)F!==M.kind?(R(),F=M.kind,x=1,O={type:"separator"},I.push(O)):x++,I.push(M);R()}else N.length>0&&(I=[{label:(0,i.localize)(6,null,L.length),type:"separator"},...N]);return I})}compareByScore(r,c){if(typeof r.score!="number"&&typeof c.score=="number")return 1;if(typeof r.score=="number"&&typeof c.score!="number")return-1;if(typeof r.score=="number"&&typeof c.score=="number"){if(r.score>c.score)return-1;if(r.score<c.score)return 1}return r.index<c.index?-1:r.index>c.index?1:0}compareByKindAndScore(r,c){const g=l[r.kind]||d,f=l[c.kind]||d,_=g.localeCompare(f);return _===0?this.compareByScore(r,c):_}getDocumentSymbols(r,c){return be(this,void 0,void 0,function*(){const g=yield this._outlineModelService.getOrCreate(r,c);return c.isCancellationRequested?[]:g.asListOfDocumentSymbols()})}};s.PREFIX="@",s.SCOPE_PREFIX=":",s.PREFIX_BY_CATEGORY=`${s.PREFIX}${s.SCOPE_PREFIX}`,s=Ie([pe(0,t.ILanguageFeaturesService),pe(1,u.IOutlineModelService)],s),e.AbstractGotoSymbolQuickAccessProvider=s;const d=(0,i.localize)(7,null),l={[5]:(0,i.localize)(8,null),[11]:(0,i.localize)(9,null),[8]:(0,i.localize)(10,null),[12]:(0,i.localize)(11,null),[4]:(0,i.localize)(12,null),[22]:(0,i.localize)(13,null),[23]:(0,i.localize)(14,null),[24]:(0,i.localize)(15,null),[10]:(0,i.localize)(16,null),[2]:(0,i.localize)(17,null),[3]:(0,i.localize)(18,null),[25]:(0,i.localize)(19,null),[1]:(0,i.localize)(20,null),[6]:(0,i.localize)(21,null),[9]:(0,i.localize)(22,null),[21]:(0,i.localize)(23,null),[14]:(0,i.localize)(24,null),[0]:(0,i.localize)(25,null),[17]:(0,i.localize)(26,null),[15]:(0,i.localize)(27,null),[16]:(0,i.localize)(28,null),[18]:(0,i.localize)(29,null),[19]:(0,i.localize)(30,null),[7]:(0,i.localize)(31,null),[13]:(0,i.localize)(32,null)}}),define(oe[688],se([1,0,2,11,592,16,44,25,15,388]),function(q,e,y,v,k,D,w,b,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RenameInputField=e.CONTEXT_RENAME_INPUT_VISIBLE=void 0,e.CONTEXT_RENAME_INPUT_VISIBLE=new D.RawContextKey("renameInputVisible",!1,(0,k.localize)(0,null));let h=class{constructor(u,n,i,t,o){this._editor=u,this._acceptKeybindings=n,this._themeService=i,this._keybindingService=t,this._disposables=new y.DisposableStore,this.allowEditorOverflow=!0,this._visibleContextKey=e.CONTEXT_RENAME_INPUT_VISIBLE.bindTo(o),this._editor.addContentWidget(this),this._disposables.add(this._editor.onDidChangeConfiguration(s=>{s.hasChanged(46)&&this._updateFont()})),this._disposables.add(i.onDidColorThemeChange(this._updateStyles,this))}dispose(){this._disposables.dispose(),this._editor.removeContentWidget(this)}getId(){return"__renameInputWidget"}getDomNode(){if(!this._domNode){this._domNode=document.createElement("div"),this._domNode.className="monaco-editor rename-box",this._input=document.createElement("input"),this._input.className="rename-input",this._input.type="text",this._input.setAttribute("aria-label",(0,k.localize)(1,null)),this._domNode.appendChild(this._input),this._label=document.createElement("div"),this._label.className="rename-label",this._domNode.appendChild(this._label);const u=()=>{var n,i;const[t,o]=this._acceptKeybindings;this._keybindingService.lookupKeybinding(t),this._label.innerText=(0,k.localize)(2,null,(n=this._keybindingService.lookupKeybinding(t))===null||n===void 0?void 0:n.getLabel(),(i=this._keybindingService.lookupKeybinding(o))===null||i===void 0?void 0:i.getLabel())};u(),this._disposables.add(this._keybindingService.onDidUpdateKeybindings(u)),this._updateFont(),this._updateStyles(this._themeService.getColorTheme())}return this._domNode}_updateStyles(u){var n,i,t,o;if(!this._input||!this._domNode)return;const s=u.getColor(b.widgetShadow);this._domNode.style.backgroundColor=String((n=u.getColor(b.editorWidgetBackground))!==null&&n!==void 0?n:""),this._domNode.style.boxShadow=s?` 0 0 8px 2px ${s}`:"",this._domNode.style.color=String((i=u.getColor(b.inputForeground))!==null&&i!==void 0?i:""),this._input.style.backgroundColor=String((t=u.getColor(b.inputBackground))!==null&&t!==void 0?t:"");const d=u.getColor(b.inputBorder);this._input.style.borderWidth=d?"1px":"0px",this._input.style.borderStyle=d?"solid":"none",this._input.style.borderColor=(o=d?.toString())!==null&&o!==void 0?o:"none"}_updateFont(){if(!this._input||!this._label)return;const u=this._editor.getOption(46);this._input.style.fontFamily=u.fontFamily,this._input.style.fontWeight=u.fontWeight,this._input.style.fontSize=`${u.fontSize}px`,this._label.style.fontSize=`${u.fontSize*.8}px`}getPosition(){return this._visible?{position:this._position,preference:[2,1]}:null}afterRender(u){u||this.cancelInput(!0)}acceptInput(u){var n;(n=this._currentAcceptInput)===null||n===void 0||n.call(this,u)}cancelInput(u){var n;(n=this._currentCancelInput)===null||n===void 0||n.call(this,u)}getInput(u,n,i,t,o,s){this._domNode.classList.toggle("preview",o),this._position=new v.Position(u.startLineNumber,u.startColumn),this._input.value=n,this._input.setAttribute("selectionStart",i.toString()),this._input.setAttribute("selectionEnd",t.toString()),this._input.size=Math.max((u.endColumn-u.startColumn)*1.1,20);const d=new y.DisposableStore;return new Promise(l=>{this._currentCancelInput=a=>(this._currentAcceptInput=void 0,this._currentCancelInput=void 0,l(a),!0),this._currentAcceptInput=a=>{if(this._input.value.trim().length===0||this._input.value===n){this.cancelInput(!0);return}this._currentAcceptInput=void 0,this._currentCancelInput=void 0,l({newName:this._input.value,wantsPreview:o&&a})},d.add(s.onCancellationRequested(()=>this.cancelInput(!0))),d.add(this._editor.onDidBlurEditorWidget(()=>this.cancelInput(!1))),this._show()}).finally(()=>{d.dispose(),this._hide()})}_show(){this._editor.revealLineInCenterIfOutsideViewport(this._position.lineNumber,0),this._visible=!0,this._visibleContextKey.set(!0),this._editor.layoutContentWidget(this),setTimeout(()=>{this._input.focus(),this._input.setSelectionRange(parseInt(this._input.getAttribute("selectionStart")),parseInt(this._input.getAttribute("selectionEnd")))},100)}_hide(){this._visible=!1,this._visibleContextKey.reset(),this._editor.layoutContentWidget(this)}};h=Ie([pe(2,C.IThemeService),pe(3,w.IKeybindingService),pe(4,D.IContextKeyService)],h),e.RenameInputField=h}),define(oe[300],se([1,0,27,602,25,15]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SYMBOL_ICON_VARIABLE_FOREGROUND=e.SYMBOL_ICON_UNIT_FOREGROUND=e.SYMBOL_ICON_TYPEPARAMETER_FOREGROUND=e.SYMBOL_ICON_TEXT_FOREGROUND=e.SYMBOL_ICON_STRUCT_FOREGROUND=e.SYMBOL_ICON_STRING_FOREGROUND=e.SYMBOL_ICON_SNIPPET_FOREGROUND=e.SYMBOL_ICON_REFERENCE_FOREGROUND=e.SYMBOL_ICON_PROPERTY_FOREGROUND=e.SYMBOL_ICON_PACKAGE_FOREGROUND=e.SYMBOL_ICON_OPERATOR_FOREGROUND=e.SYMBOL_ICON_OBJECT_FOREGROUND=e.SYMBOL_ICON_NUMBER_FOREGROUND=e.SYMBOL_ICON_NULL_FOREGROUND=e.SYMBOL_ICON_NAMESPACE_FOREGROUND=e.SYMBOL_ICON_MODULE_FOREGROUND=e.SYMBOL_ICON_METHOD_FOREGROUND=e.SYMBOL_ICON_KEYWORD_FOREGROUND=e.SYMBOL_ICON_KEY_FOREGROUND=e.SYMBOL_ICON_INTERFACE_FOREGROUND=e.SYMBOL_ICON_FUNCTION_FOREGROUND=e.SYMBOL_ICON_FOLDER_FOREGROUND=e.SYMBOL_ICON_FILE_FOREGROUND=e.SYMBOL_ICON_FIELD_FOREGROUND=e.SYMBOL_ICON_EVENT_FOREGROUND=e.SYMBOL_ICON_ENUMERATOR_MEMBER_FOREGROUND=e.SYMBOL_ICON_ENUMERATOR_FOREGROUND=e.SYMBOL_ICON_CONSTRUCTOR_FOREGROUND=e.SYMBOL_ICON_CONSTANT_FOREGROUND=e.SYMBOL_ICON_COLOR_FOREGROUND=e.SYMBOL_ICON_CLASS_FOREGROUND=e.SYMBOL_ICON_BOOLEAN_FOREGROUND=e.SYMBOL_ICON_ARRAY_FOREGROUND=void 0,e.SYMBOL_ICON_ARRAY_FOREGROUND=(0,k.registerColor)("symbolIcon.arrayForeground",{dark:k.foreground,light:k.foreground,hcDark:k.foreground,hcLight:k.foreground},(0,v.localize)(0,null)),e.SYMBOL_ICON_BOOLEAN_FOREGROUND=(0,k.registerColor)("symbolIcon.booleanForeground",{dark:k.foreground,light:k.foreground,hcDark:k.foreground,hcLight:k.foreground},(0,v.localize)(1,null)),e.SYMBOL_ICON_CLASS_FOREGROUND=(0,k.registerColor)("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,v.localize)(2,null)),e.SYMBOL_ICON_COLOR_FOREGROUND=(0,k.registerColor)("symbolIcon.colorForeground",{dark:k.foreground,light:k.foreground,hcDark:k.foreground,hcLight:k.foreground},(0,v.localize)(3,null)),e.SYMBOL_ICON_CONSTANT_FOREGROUND=(0,k.registerColor)("symbolIcon.constantForeground",{dark:k.foreground,light:k.foreground,hcDark:k.foreground,hcLight:k.foreground},(0,v.localize)(4,null)),e.SYMBOL_ICON_CONSTRUCTOR_FOREGROUND=(0,k.registerColor)("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,v.localize)(5,null)),e.SYMBOL_ICON_ENUMERATOR_FOREGROUND=(0,k.registerColor)("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,v.localize)(6,null)),e.SYMBOL_ICON_ENUMERATOR_MEMBER_FOREGROUND=(0,k.registerColor)("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,v.localize)(7,null)),e.SYMBOL_ICON_EVENT_FOREGROUND=(0,k.registerColor)("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,v.localize)(8,null)),e.SYMBOL_ICON_FIELD_FOREGROUND=(0,k.registerColor)("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,v.localize)(9,null)),e.SYMBOL_ICON_FILE_FOREGROUND=(0,k.registerColor)("symbolIcon.fileForeground",{dark:k.foreground,light:k.foreground,hcDark:k.foreground,hcLight:k.foreground},(0,v.localize)(10,null)),e.SYMBOL_ICON_FOLDER_FOREGROUND=(0,k.registerColor)("symbolIcon.folderForeground",{dark:k.foreground,light:k.foreground,hcDark:k.foreground,hcLight:k.foreground},(0,v.localize)(11,null)),e.SYMBOL_ICON_FUNCTION_FOREGROUND=(0,k.registerColor)("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,v.localize)(12,null)),e.SYMBOL_ICON_INTERFACE_FOREGROUND=(0,k.registerColor)("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,v.localize)(13,null)),e.SYMBOL_ICON_KEY_FOREGROUND=(0,k.registerColor)("symbolIcon.keyForeground",{dark:k.foreground,light:k.foreground,hcDark:k.foreground,hcLight:k.foreground},(0,v.localize)(14,null)),e.SYMBOL_ICON_KEYWORD_FOREGROUND=(0,k.registerColor)("symbolIcon.keywordForeground",{dark:k.foreground,light:k.foreground,hcDark:k.foreground,hcLight:k.foreground},(0,v.localize)(15,null)),e.SYMBOL_ICON_METHOD_FOREGROUND=(0,k.registerColor)("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,v.localize)(16,null)),e.SYMBOL_ICON_MODULE_FOREGROUND=(0,k.registerColor)("symbolIcon.moduleForeground",{dark:k.foreground,light:k.foreground,hcDark:k.foreground,hcLight:k.foreground},(0,v.localize)(17,null)),e.SYMBOL_ICON_NAMESPACE_FOREGROUND=(0,k.registerColor)("symbolIcon.namespaceForeground",{dark:k.foreground,light:k.foreground,hcDark:k.foreground,hcLight:k.foreground},(0,v.localize)(18,null)),e.SYMBOL_ICON_NULL_FOREGROUND=(0,k.registerColor)("symbolIcon.nullForeground",{dark:k.foreground,light:k.foreground,hcDark:k.foreground,hcLight:k.foreground},(0,v.localize)(19,null)),e.SYMBOL_ICON_NUMBER_FOREGROUND=(0,k.registerColor)("symbolIcon.numberForeground",{dark:k.foreground,light:k.foreground,hcDark:k.foreground,hcLight:k.foreground},(0,v.localize)(20,null)),e.SYMBOL_ICON_OBJECT_FOREGROUND=(0,k.registerColor)("symbolIcon.objectForeground",{dark:k.foreground,light:k.foreground,hcDark:k.foreground,hcLight:k.foreground},(0,v.localize)(21,null)),e.SYMBOL_ICON_OPERATOR_FOREGROUND=(0,k.registerColor)("symbolIcon.operatorForeground",{dark:k.foreground,light:k.foreground,hcDark:k.foreground,hcLight:k.foreground},(0,v.localize)(22,null)),e.SYMBOL_ICON_PACKAGE_FOREGROUND=(0,k.registerColor)("symbolIcon.packageForeground",{dark:k.foreground,light:k.foreground,hcDark:k.foreground,hcLight:k.foreground},(0,v.localize)(23,null)),e.SYMBOL_ICON_PROPERTY_FOREGROUND=(0,k.registerColor)("symbolIcon.propertyForeground",{dark:k.foreground,light:k.foreground,hcDark:k.foreground,hcLight:k.foreground},(0,v.localize)(24,null)),e.SYMBOL_ICON_REFERENCE_FOREGROUND=(0,k.registerColor)("symbolIcon.referenceForeground",{dark:k.foreground,light:k.foreground,hcDark:k.foreground,hcLight:k.foreground},(0,v.localize)(25,null)),e.SYMBOL_ICON_SNIPPET_FOREGROUND=(0,k.registerColor)("symbolIcon.snippetForeground",{dark:k.foreground,light:k.foreground,hcDark:k.foreground,hcLight:k.foreground},(0,v.localize)(26,null)),e.SYMBOL_ICON_STRING_FOREGROUND=(0,k.registerColor)("symbolIcon.stringForeground",{dark:k.foreground,light:k.foreground,hcDark:k.foreground,hcLight:k.foreground},(0,v.localize)(27,null)),e.SYMBOL_ICON_STRUCT_FOREGROUND=(0,k.registerColor)("symbolIcon.structForeground",{dark:k.foreground,light:k.foreground,hcDark:k.foreground,hcLight:k.foreground},(0,v.localize)(28,null)),e.SYMBOL_ICON_TEXT_FOREGROUND=(0,k.registerColor)("symbolIcon.textForeground",{dark:k.foreground,light:k.foreground,hcDark:k.foreground,hcLight:k.foreground},(0,v.localize)(29,null)),e.SYMBOL_ICON_TYPEPARAMETER_FOREGROUND=(0,k.registerColor)("symbolIcon.typeParameterForeground",{dark:k.foreground,light:k.foreground,hcDark:k.foreground,hcLight:k.foreground},(0,v.localize)(30,null)),e.SYMBOL_ICON_UNIT_FOREGROUND=(0,k.registerColor)("symbolIcon.unitForeground",{dark:k.foreground,light:k.foreground,hcDark:k.foreground,hcLight:k.foreground},(0,v.localize)(31,null)),e.SYMBOL_ICON_VARIABLE_FOREGROUND=(0,k.registerColor)("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,v.localize)(32,null)),(0,D.registerThemingParticipant)((w,b)=>{const C=w.getColor(e.SYMBOL_ICON_ARRAY_FOREGROUND);C&&b.addRule(`${y.Codicon.symbolArray.cssSelector} { color: ${C}; }`);const h=w.getColor(e.SYMBOL_ICON_BOOLEAN_FOREGROUND);h&&b.addRule(`${y.Codicon.symbolBoolean.cssSelector} { color: ${h}; }`);const u=w.getColor(e.SYMBOL_ICON_CLASS_FOREGROUND);u&&b.addRule(`${y.Codicon.symbolClass.cssSelector} { color: ${u}; }`);const n=w.getColor(e.SYMBOL_ICON_METHOD_FOREGROUND);n&&b.addRule(`${y.Codicon.symbolMethod.cssSelector} { color: ${n}; }`);const i=w.getColor(e.SYMBOL_ICON_COLOR_FOREGROUND);i&&b.addRule(`${y.Codicon.symbolColor.cssSelector} { color: ${i}; }`);const t=w.getColor(e.SYMBOL_ICON_CONSTANT_FOREGROUND);t&&b.addRule(`${y.Codicon.symbolConstant.cssSelector} { color: ${t}; }`);const o=w.getColor(e.SYMBOL_ICON_CONSTRUCTOR_FOREGROUND);o&&b.addRule(`${y.Codicon.symbolConstructor.cssSelector} { color: ${o}; }`);const s=w.getColor(e.SYMBOL_ICON_ENUMERATOR_FOREGROUND);s&&b.addRule(` ${y.Codicon.symbolValue.cssSelector},${y.Codicon.symbolEnum.cssSelector} { color: ${s}; }`);const d=w.getColor(e.SYMBOL_ICON_ENUMERATOR_MEMBER_FOREGROUND);d&&b.addRule(`${y.Codicon.symbolEnumMember.cssSelector} { color: ${d}; }`);const l=w.getColor(e.SYMBOL_ICON_EVENT_FOREGROUND);l&&b.addRule(`${y.Codicon.symbolEvent.cssSelector} { color: ${l}; }`);const a=w.getColor(e.SYMBOL_ICON_FIELD_FOREGROUND);a&&b.addRule(`${y.Codicon.symbolField.cssSelector} { color: ${a}; }`);const r=w.getColor(e.SYMBOL_ICON_FILE_FOREGROUND);r&&b.addRule(`${y.Codicon.symbolFile.cssSelector} { color: ${r}; }`);const c=w.getColor(e.SYMBOL_ICON_FOLDER_FOREGROUND);c&&b.addRule(`${y.Codicon.symbolFolder.cssSelector} { color: ${c}; }`);const g=w.getColor(e.SYMBOL_ICON_FUNCTION_FOREGROUND);g&&b.addRule(`${y.Codicon.symbolFunction.cssSelector} { color: ${g}; }`);const f=w.getColor(e.SYMBOL_ICON_INTERFACE_FOREGROUND);f&&b.addRule(`${y.Codicon.symbolInterface.cssSelector} { color: ${f}; }`);const _=w.getColor(e.SYMBOL_ICON_KEY_FOREGROUND);_&&b.addRule(`${y.Codicon.symbolKey.cssSelector} { color: ${_}; }`);const p=w.getColor(e.SYMBOL_ICON_KEYWORD_FOREGROUND);p&&b.addRule(`${y.Codicon.symbolKeyword.cssSelector} { color: ${p}; }`);const m=w.getColor(e.SYMBOL_ICON_MODULE_FOREGROUND);m&&b.addRule(`${y.Codicon.symbolModule.cssSelector} { color: ${m}; }`);const S=w.getColor(e.SYMBOL_ICON_NAMESPACE_FOREGROUND);S&&b.addRule(`${y.Codicon.symbolNamespace.cssSelector} { color: ${S}; }`);const E=w.getColor(e.SYMBOL_ICON_NULL_FOREGROUND);E&&b.addRule(`${y.Codicon.symbolNull.cssSelector} { color: ${E}; }`);const L=w.getColor(e.SYMBOL_ICON_NUMBER_FOREGROUND);L&&b.addRule(`${y.Codicon.symbolNumber.cssSelector} { color: ${L}; }`);const N=w.getColor(e.SYMBOL_ICON_OBJECT_FOREGROUND);N&&b.addRule(`${y.Codicon.symbolObject.cssSelector} { color: ${N}; }`);const I=w.getColor(e.SYMBOL_ICON_OPERATOR_FOREGROUND);I&&b.addRule(`${y.Codicon.symbolOperator.cssSelector} { color: ${I}; }`);const R=w.getColor(e.SYMBOL_ICON_PACKAGE_FOREGROUND);R&&b.addRule(`${y.Codicon.symbolPackage.cssSelector} { color: ${R}; }`);const F=w.getColor(e.SYMBOL_ICON_PROPERTY_FOREGROUND);F&&b.addRule(`${y.Codicon.symbolProperty.cssSelector} { color: ${F}; }`);const O=w.getColor(e.SYMBOL_ICON_REFERENCE_FOREGROUND);O&&b.addRule(`${y.Codicon.symbolReference.cssSelector} { color: ${O}; }`);const x=w.getColor(e.SYMBOL_ICON_SNIPPET_FOREGROUND);x&&b.addRule(`${y.Codicon.symbolSnippet.cssSelector} { color: ${x}; }`);const M=w.getColor(e.SYMBOL_ICON_STRING_FOREGROUND);M&&b.addRule(`${y.Codicon.symbolString.cssSelector} { color: ${M}; }`);const P=w.getColor(e.SYMBOL_ICON_STRUCT_FOREGROUND);P&&b.addRule(`${y.Codicon.symbolStruct.cssSelector} { color: ${P}; }`);const A=w.getColor(e.SYMBOL_ICON_TEXT_FOREGROUND);A&&b.addRule(`${y.Codicon.symbolText.cssSelector} { color: ${A}; }`);const B=w.getColor(e.SYMBOL_ICON_TYPEPARAMETER_FOREGROUND);B&&b.addRule(`${y.Codicon.symbolTypeParameter.cssSelector} { color: ${B}; }`);const K=w.getColor(e.SYMBOL_ICON_UNIT_FOREGROUND);K&&b.addRule(`${y.Codicon.symbolUnit.cssSelector} { color: ${K}; }`);const T=w.getColor(e.SYMBOL_ICON_VARIABLE_FOREGROUND);T&&b.addRule(`${y.Codicon.symbolVariable.cssSelector} { color: ${T}; }`)})}),define(oe[301],se([1,0,7,52,669,29,16,53,15]),function(q,e,y,v,k,D,w,b,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StandaloneCodeEditorService=void 0;let h=class extends k.AbstractCodeEditorService{constructor(u,n){super(n),this.onCodeEditorAdd(()=>this._checkContextKey()),this.onCodeEditorRemove(()=>this._checkContextKey()),this._editorIsOpen=u.createKey("editorIsOpen",!1),this._activeCodeEditor=null,this.registerCodeEditorOpenHandler((i,t,o)=>be(this,void 0,void 0,function*(){return t?this.doOpenEditor(t,i):null}))}_checkContextKey(){let u=!1;for(const n of this.listCodeEditors())if(!n.isSimpleWidget){u=!0;break}this._editorIsOpen.set(u)}setActiveCodeEditor(u){this._activeCodeEditor=u}getActiveCodeEditor(){return this._activeCodeEditor}doOpenEditor(u,n){if(!this.findModel(u,n.resource)){if(n.resource){const t=n.resource.scheme;if(t===v.Schemas.http||t===v.Schemas.https)return(0,y.windowOpenNoOpener)(n.resource.toString()),u}return null}const i=n.options?n.options.selection:null;if(i)if(typeof i.endLineNumber=="number"&&typeof i.endColumn=="number")u.setSelection(i),u.revealRangeInCenter(i,1);else{const t={lineNumber:i.startLineNumber,column:i.startColumn};u.setPosition(t),u.revealPositionInCenter(t,1)}return u}findModel(u,n){const i=u.getModel();return i&&i.uri.toString()!==n.toString()?null:i}};h=Ie([pe(0,w.IContextKeyService),pe(1,C.IThemeService)],h),e.StandaloneCodeEditorService=h,(0,b.registerSingleton)(D.ICodeEditorService,h)}),define(oe[689],se([1,0,54,25]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hc_light=e.hc_black=e.vs_dark=e.vs=void 0,e.vs={base:"vs",inherit:!1,rules:[{token:"",foreground:"000000",background:"fffffe"},{token:"invalid",foreground:"cd3131"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"001188"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"delimiter.xml",foreground:"0000FF"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"FF0000"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"FF0000"},{token:"attribute.value",foreground:"0451A5"},{token:"attribute.value.number",foreground:"098658"},{token:"attribute.value.unit",foreground:"098658"},{token:"attribute.value.html",foreground:"0000FF"},{token:"attribute.value.xml",foreground:"0000FF"},{token:"string",foreground:"A31515"},{token:"string.html",foreground:"0000FF"},{token:"string.sql",foreground:"FF0000"},{token:"string.yaml",foreground:"0451A5"},{token:"keyword",foreground:"0000FF"},{token:"keyword.json",foreground:"0451A5"},{token:"keyword.flow",foreground:"AF00DB"},{token:"keyword.flow.scss",foreground:"0000FF"},{token:"operator.scss",foreground:"666666"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"C700C7"}],colors:{[v.editorBackground]:"#FFFFFE",[v.editorForeground]:"#000000",[v.editorInactiveSelection]:"#E5EBF1",[y.editorIndentGuides]:"#D3D3D3",[y.editorActiveIndentGuides]:"#939393",[v.editorSelectionHighlight]:"#ADD6FF4D"}},e.vs_dark={base:"vs-dark",inherit:!1,rules:[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"74B0DF"},{token:"variable.predefined",foreground:"4864AA"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"B5CEA8"},{token:"number.hex",foreground:"5BB498"},{token:"regexp",foreground:"B46695"},{token:"annotation",foreground:"cc6666"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"DCDCDC"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"A79873"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"DD6A6F"},{token:"metatag.content.html",foreground:"9CDCFE"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"},{token:"attribute.value.number.css",foreground:"B5CEA8"},{token:"attribute.value.unit.css",foreground:"B5CEA8"},{token:"attribute.value.hex.css",foreground:"D4D4D4"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.json",foreground:"CE9178"},{token:"keyword.flow.scss",foreground:"569CD6"},{token:"operator.scss",foreground:"909090"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[v.editorBackground]:"#1E1E1E",[v.editorForeground]:"#D4D4D4",[v.editorInactiveSelection]:"#3A3D41",[y.editorIndentGuides]:"#404040",[y.editorActiveIndentGuides]:"#707070",[v.editorSelectionHighlight]:"#ADD6FF26"}},e.hc_black={base:"hc-black",inherit:!1,rules:[{token:"",foreground:"FFFFFF",background:"000000"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"1AEBFF"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"FFFFFF"},{token:"regexp",foreground:"C0C0C0"},{token:"annotation",foreground:"569CD6"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"FFFF00"},{token:"delimiter.html",foreground:"FFFF00"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta",foreground:"D4D4D4"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"569CD6"},{token:"metatag.content.html",foreground:"1AEBFF"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key",foreground:"9CDCFE"},{token:"string.value",foreground:"CE9178"},{token:"attribute.name",foreground:"569CD6"},{token:"attribute.value",foreground:"3FF23F"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[v.editorBackground]:"#000000",[v.editorForeground]:"#FFFFFF",[y.editorIndentGuides]:"#FFFFFF",[y.editorActiveIndentGuides]:"#FFFFFF"}},e.hc_light={base:"hc-light",inherit:!1,rules:[{token:"",foreground:"292929",background:"FFFFFF"},{token:"invalid",foreground:"B5200D"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"264F70"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"B5200D"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"264F78"},{token:"attribute.value",foreground:"0451A5"},{token:"string",foreground:"A31515"},{token:"string.sql",foreground:"B5200D"},{token:"keyword",foreground:"0000FF"},{token:"keyword.flow",foreground:"AF00DB"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"C700C7"}],colors:{[v.editorBackground]:"#FFFFFF",[v.editorForeground]:"#292929",[y.editorIndentGuides]:"#292929",[y.editorActiveIndentGuides]:"#292929"}}}),define(oe[39],se([1,0,42,27,6,55,2,73,26,16,9,15]),function(q,e,y,v,k,D,w,b,C,h,u,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MenuItemAction=e.SubmenuItemAction=e.MenuRegistry=e.IMenuService=e.MenuId=e.isIMenuItem=void 0;function i(d){return d.command!==void 0}e.isIMenuItem=i;class t{constructor(l){if(t._instances.has(l))throw new TypeError(`MenuId with identifier '${l}' already exists. Use MenuId.for(ident) or a unique identifier`);t._instances.set(l,this),this.id=l}}e.MenuId=t,t._instances=new Map,t.CommandPalette=new t("CommandPalette"),t.DebugBreakpointsContext=new t("DebugBreakpointsContext"),t.DebugCallStackContext=new t("DebugCallStackContext"),t.DebugConsoleContext=new t("DebugConsoleContext"),t.DebugVariablesContext=new t("DebugVariablesContext"),t.DebugWatchContext=new t("DebugWatchContext"),t.DebugToolBar=new t("DebugToolBar"),t.DebugToolBarStop=new t("DebugToolBarStop"),t.EditorContext=new t("EditorContext"),t.SimpleEditorContext=new t("SimpleEditorContext"),t.EditorContextCopy=new t("EditorContextCopy"),t.EditorContextPeek=new t("EditorContextPeek"),t.EditorContextShare=new t("EditorContextShare"),t.EditorTitle=new t("EditorTitle"),t.EditorTitleRun=new t("EditorTitleRun"),t.EditorTitleContext=new t("EditorTitleContext"),t.EmptyEditorGroup=new t("EmptyEditorGroup"),t.EmptyEditorGroupContext=new t("EmptyEditorGroupContext"),t.ExplorerContext=new t("ExplorerContext"),t.ExtensionContext=new t("ExtensionContext"),t.GlobalActivity=new t("GlobalActivity"),t.CommandCenter=new t("CommandCenter"),t.LayoutControlMenuSubmenu=new t("LayoutControlMenuSubmenu"),t.LayoutControlMenu=new t("LayoutControlMenu"),t.MenubarMainMenu=new t("MenubarMainMenu"),t.MenubarAppearanceMenu=new t("MenubarAppearanceMenu"),t.MenubarDebugMenu=new t("MenubarDebugMenu"),t.MenubarEditMenu=new t("MenubarEditMenu"),t.MenubarCopy=new t("MenubarCopy"),t.MenubarFileMenu=new t("MenubarFileMenu"),t.MenubarGoMenu=new t("MenubarGoMenu"),t.MenubarHelpMenu=new t("MenubarHelpMenu"),t.MenubarLayoutMenu=new t("MenubarLayoutMenu"),t.MenubarNewBreakpointMenu=new t("MenubarNewBreakpointMenu"),t.MenubarPanelAlignmentMenu=new t("MenubarPanelAlignmentMenu"),t.MenubarPanelPositionMenu=new t("MenubarPanelPositionMenu"),t.MenubarPreferencesMenu=new t("MenubarPreferencesMenu"),t.MenubarRecentMenu=new t("MenubarRecentMenu"),t.MenubarSelectionMenu=new t("MenubarSelectionMenu"),t.MenubarShare=new t("MenubarShare"),t.MenubarSwitchEditorMenu=new t("MenubarSwitchEditorMenu"),t.MenubarSwitchGroupMenu=new t("MenubarSwitchGroupMenu"),t.MenubarTerminalMenu=new t("MenubarTerminalMenu"),t.MenubarViewMenu=new t("MenubarViewMenu"),t.MenubarHomeMenu=new t("MenubarHomeMenu"),t.OpenEditorsContext=new t("OpenEditorsContext"),t.ProblemsPanelContext=new t("ProblemsPanelContext"),t.SCMChangeContext=new t("SCMChangeContext"),t.SCMResourceContext=new t("SCMResourceContext"),t.SCMResourceFolderContext=new t("SCMResourceFolderContext"),t.SCMResourceGroupContext=new t("SCMResourceGroupContext"),t.SCMSourceControl=new t("SCMSourceControl"),t.SCMTitle=new t("SCMTitle"),t.SearchContext=new t("SearchContext"),t.StatusBarWindowIndicatorMenu=new t("StatusBarWindowIndicatorMenu"),t.StatusBarRemoteIndicatorMenu=new t("StatusBarRemoteIndicatorMenu"),t.TestItem=new t("TestItem"),t.TestItemGutter=new t("TestItemGutter"),t.TestPeekElement=new t("TestPeekElement"),t.TestPeekTitle=new t("TestPeekTitle"),t.TouchBarContext=new t("TouchBarContext"),t.TitleBarContext=new t("TitleBarContext"),t.TitleBarTitleContext=new t("TitleBarTitleContext"),t.TunnelContext=new t("TunnelContext"),t.TunnelPrivacy=new t("TunnelPrivacy"),t.TunnelProtocol=new t("TunnelProtocol"),t.TunnelPortInline=new t("TunnelInline"),t.TunnelTitle=new t("TunnelTitle"),t.TunnelLocalAddressInline=new t("TunnelLocalAddressInline"),t.TunnelOriginInline=new t("TunnelOriginInline"),t.ViewItemContext=new t("ViewItemContext"),t.ViewContainerTitle=new t("ViewContainerTitle"),t.ViewContainerTitleContext=new t("ViewContainerTitleContext"),t.ViewTitle=new t("ViewTitle"),t.ViewTitleContext=new t("ViewTitleContext"),t.CommentThreadTitle=new t("CommentThreadTitle"),t.CommentThreadActions=new t("CommentThreadActions"),t.CommentTitle=new t("CommentTitle"),t.CommentActions=new t("CommentActions"),t.InteractiveToolbar=new t("InteractiveToolbar"),t.InteractiveCellTitle=new t("InteractiveCellTitle"),t.InteractiveCellDelete=new t("InteractiveCellDelete"),t.InteractiveCellExecute=new t("InteractiveCellExecute"),t.InteractiveInputExecute=new t("InteractiveInputExecute"),t.NotebookToolbar=new t("NotebookToolbar"),t.NotebookCellTitle=new t("NotebookCellTitle"),t.NotebookCellDelete=new t("NotebookCellDelete"),t.NotebookCellInsert=new t("NotebookCellInsert"),t.NotebookCellBetween=new t("NotebookCellBetween"),t.NotebookCellListTop=new t("NotebookCellTop"),t.NotebookCellExecute=new t("NotebookCellExecute"),t.NotebookCellExecutePrimary=new t("NotebookCellExecutePrimary"),t.NotebookDiffCellInputTitle=new t("NotebookDiffCellInputTitle"),t.NotebookDiffCellMetadataTitle=new t("NotebookDiffCellMetadataTitle"),t.NotebookDiffCellOutputsTitle=new t("NotebookDiffCellOutputsTitle"),t.NotebookOutputToolbar=new t("NotebookOutputToolbar"),t.NotebookEditorLayoutConfigure=new t("NotebookEditorLayoutConfigure"),t.NotebookKernelSource=new t("NotebookKernelSource"),t.BulkEditTitle=new t("BulkEditTitle"),t.BulkEditContext=new t("BulkEditContext"),t.TimelineItemContext=new t("TimelineItemContext"),t.TimelineTitle=new t("TimelineTitle"),t.TimelineTitleContext=new t("TimelineTitleContext"),t.TimelineFilterSubMenu=new t("TimelineFilterSubMenu"),t.AccountsContext=new t("AccountsContext"),t.PanelTitle=new t("PanelTitle"),t.AuxiliaryBarTitle=new t("AuxiliaryBarTitle"),t.TerminalInstanceContext=new t("TerminalInstanceContext"),t.TerminalEditorInstanceContext=new t("TerminalEditorInstanceContext"),t.TerminalNewDropdownContext=new t("TerminalNewDropdownContext"),t.TerminalTabContext=new t("TerminalTabContext"),t.TerminalTabEmptyAreaContext=new t("TerminalTabEmptyAreaContext"),t.TerminalInlineTabContext=new t("TerminalInlineTabContext"),t.WebviewContext=new t("WebviewContext"),t.InlineCompletionsActions=new t("InlineCompletionsActions"),t.NewFile=new t("NewFile"),t.MergeToolbar=new t("MergeToolbar"),t.MergeInput1Toolbar=new t("MergeToolbar1Toolbar"),t.MergeInput2Toolbar=new t("MergeToolbar2Toolbar"),e.IMenuService=(0,u.createDecorator)("menuService"),e.MenuRegistry=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new k.Emitter,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:d=>d===t.CommandPalette}}addCommand(d){return this.addCommands(D.Iterable.single(d))}addCommands(d){for(const l of d)this._commands.set(l.id,l);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,w.toDisposable)(()=>{let l=!1;for(const a of d)l=this._commands.delete(a.id)||l;l&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(d){return this._commands.get(d)}getCommands(){const d=new Map;return this._commands.forEach((l,a)=>d.set(a,l)),d}appendMenuItem(d,l){return this.appendMenuItems(D.Iterable.single({id:d,item:l}))}appendMenuItems(d){const l=new Set,a=new b.LinkedList;for(const{id:r,item:c}of d){let g=this._menuItems.get(r);g||(g=new b.LinkedList,this._menuItems.set(r,g)),a.push(g.push(c)),l.add(r)}return this._onDidChangeMenu.fire(l),(0,w.toDisposable)(()=>{if(a.size>0){for(const r of a)r();this._onDidChangeMenu.fire(l),a.clear()}})}getMenuItems(d){let l;return this._menuItems.has(d)?l=[...this._menuItems.get(d)]:l=[],d===t.CommandPalette&&this._appendImplicitItems(l),l}_appendImplicitItems(d){const l=new Set;for(const a of d)i(a)&&(l.add(a.command.id),a.alt&&l.add(a.alt.id));this._commands.forEach((a,r)=>{l.has(r)||d.push({command:a})})}};class o extends y.SubmenuAction{constructor(l,a,r,c){super(`submenuitem.${l.submenu.id}`,typeof l.title=="string"?l.title:l.title.value,[],"submenu"),this.item=l,this._menuService=a,this._contextKeyService=r,this._options=c}get actions(){const l=[],a=this._menuService.createMenu(this.item.submenu,this._contextKeyService),r=a.getActions(this._options);a.dispose();for(const[,c]of r)c.length>0&&(l.push(...c),l.push(new y.Separator));return l.length&&l.pop(),l}}e.SubmenuItemAction=o;let s=class Ui{constructor(l,a,r,c,g,f){var _,p;if(this.hideActions=c,this._commandService=f,this.id=l.id,this.label=r?.renderShortTitle&&l.shortTitle?typeof l.shortTitle=="string"?l.shortTitle:l.shortTitle.value:typeof l.title=="string"?l.title:l.title.value,this.tooltip=(p=typeof l.tooltip=="string"?l.tooltip:(_=l.tooltip)===null||_===void 0?void 0:_.value)!==null&&p!==void 0?p:"",this.enabled=!l.precondition||g.contextMatchesRules(l.precondition),this.checked=void 0,l.toggled){const m=l.toggled.condition?l.toggled:{condition:l.toggled};this.checked=g.contextMatchesRules(m.condition),this.checked&&m.tooltip&&(this.tooltip=typeof m.tooltip=="string"?m.tooltip:m.tooltip.value),m.title&&(this.label=typeof m.title=="string"?m.title:m.title.value)}this.item=l,this.alt=a?new Ui(a,void 0,r,c,g,f):void 0,this._options=r,n.ThemeIcon.isThemeIcon(l.icon)&&(this.class=v.CSSIcon.asClassName(l.icon))}dispose(){}run(...l){var a,r;let c=[];return!((a=this._options)===null||a===void 0)&&a.arg&&(c=[...c,this._options.arg]),!((r=this._options)===null||r===void 0)&&r.shouldForwardArgs&&(c=[...c,...l]),this._commandService.executeCommand(this.id,...c)}};s=Ie([pe(4,h.IContextKeyService),pe(5,C.ICommandService)],s),e.MenuItemAction=s}),define(oe[12],se([1,0,524,22,29,11,50,58,39,26,16,9,101,34,86,19,69]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SelectAllCommand=e.RedoCommand=e.UndoCommand=e.EditorExtensionsRegistry=e.registerEditorContribution=e.registerInstantiatedEditorAction=e.registerMultiEditorAction=e.registerEditorAction=e.registerEditorCommand=e.registerModelAndPositionCommand=e.MultiEditorAction=e.EditorAction=e.EditorCommand=e.ProxyCommand=e.MultiCommand=e.Command=void 0;class l{constructor(x){this.id=x.id,this.precondition=x.precondition,this._kbOpts=x.kbOpts,this._menuOpts=x.menuOpts,this._description=x.description}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 M of x){let P=M.kbExpr;this.precondition&&(P?P=u.ContextKeyExpr.and(P,this.precondition):P=this.precondition);const A={id:this.id,weight:M.weight,args:M.args,when:P,primary:M.primary,secondary:M.secondary,win:M.win,linux:M.linux,mac:M.mac};i.KeybindingsRegistry.registerKeybindingRule(A)}}h.CommandsRegistry.registerCommand({id:this.id,handler:(x,M)=>this.runCommand(x,M),description:this._description})}_registerMenuItem(x){C.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 a extends l{constructor(){super(...arguments),this._implementations=[]}addImplementation(x,M,P){return this._implementations.push({priority:x,name:M,implementation:P}),this._implementations.sort((A,B)=>B.priority-A.priority),{dispose:()=>{for(let A=0;A<this._implementations.length;A++)if(this._implementations[A].implementation===P){this._implementations.splice(A,1);return}}}}runCommand(x,M){const P=x.get(d.ILogService);P.trace(`Executing Command '${this.id}' which has ${this._implementations.length} bound.`);for(const A of this._implementations){const B=A.implementation(x,M);if(B)return P.trace(`Command '${this.id}' was handled by '${A.name}'.`),typeof B=="boolean"?void 0:B}P.trace(`The Command '${this.id}' was not handled by any implementation.`)}}e.MultiCommand=a;class r extends l{constructor(x,M){super(M),this.command=x}runCommand(x,M){return this.command.runCommand(x,M)}}e.ProxyCommand=r;class c extends l{static bindToContribution(x){return class extends c{constructor(M){super(M),this._callback=M.handler}runEditorCommand(M,P,A){const B=x(P);B&&this._callback(B,A)}}}runCommand(x,M){const P=x.get(k.ICodeEditorService),A=P.getFocusedCodeEditor()||P.getActiveCodeEditor();if(A)return A.invokeWithinContext(B=>{if(B.get(u.IContextKeyService).contextMatchesRules((0,s.withNullAsUndefined)(this.precondition)))return this.runEditorCommand(B,A,M)})}}e.EditorCommand=c;class g extends c{constructor(x){super(g.convertOptions(x)),this.label=x.label,this.alias=x.alias}static convertOptions(x){let M;Array.isArray(x.menuOpts)?M=x.menuOpts:x.menuOpts?M=[x.menuOpts]:M=[];function P(A){return A.menuId||(A.menuId=C.MenuId.EditorContext),A.title||(A.title=x.label),A.when=u.ContextKeyExpr.and(x.precondition,A.when),A}return Array.isArray(x.contextMenuOpts)?M.push(...x.contextMenuOpts.map(P)):x.contextMenuOpts&&M.push(P(x.contextMenuOpts)),x.menuOpts=M,x}runEditorCommand(x,M,P){return this.reportTelemetry(x,M),this.run(x,M,P||{})}reportTelemetry(x,M){x.get(o.ITelemetryService).publicLog2("editorActionInvoked",{name:this.label,id:this.id})}}e.EditorAction=g;class f extends g{constructor(){super(...arguments),this._implementations=[]}addImplementation(x,M){return this._implementations.push([x,M]),this._implementations.sort((P,A)=>A[0]-P[0]),{dispose:()=>{for(let P=0;P<this._implementations.length;P++)if(this._implementations[P][1]===M){this._implementations.splice(P,1);return}}}}run(x,M,P){for(const A of this._implementations){const B=A[1](x,M,P);if(B)return typeof B=="boolean"?void 0:B}}}e.MultiEditorAction=f;function _(O,x){h.CommandsRegistry.registerCommand(O,function(M,...P){const A=M.get(n.IInstantiationService),[B,K]=P;(0,s.assertType)(v.URI.isUri(B)),(0,s.assertType)(D.Position.isIPosition(K));const T=M.get(w.IModelService).getModel(B);if(T){const ee=D.Position.lift(K);return A.invokeFunction(x,T,ee,...P.slice(2))}return M.get(b.ITextModelService).createModelReference(B).then(ee=>new Promise((J,$)=>{try{const j=A.invokeFunction(x,ee.object.textEditorModel,D.Position.lift(K),P.slice(2));J(j)}catch(j){$(j)}}).finally(()=>{ee.dispose()}))})}e.registerModelAndPositionCommand=_;function p(O){return R.INSTANCE.registerEditorCommand(O),O}e.registerEditorCommand=p;function m(O){const x=new O;return R.INSTANCE.registerEditorAction(x),x}e.registerEditorAction=m;function S(O){return R.INSTANCE.registerEditorAction(O),O}e.registerMultiEditorAction=S;function E(O){R.INSTANCE.registerEditorAction(O)}e.registerInstantiatedEditorAction=E;function L(O,x){R.INSTANCE.registerEditorContribution(O,x)}e.registerEditorContribution=L;var N;(function(O){function x(K){return R.INSTANCE.getEditorCommand(K)}O.getEditorCommand=x;function M(){return R.INSTANCE.getEditorActions()}O.getEditorActions=M;function P(){return R.INSTANCE.getEditorContributions()}O.getEditorContributions=P;function A(K){return R.INSTANCE.getEditorContributions().filter(T=>K.indexOf(T.id)>=0)}O.getSomeEditorContributions=A;function B(){return R.INSTANCE.getDiffEditorContributions()}O.getDiffEditorContributions=B})(N=e.EditorExtensionsRegistry||(e.EditorExtensionsRegistry={}));const I={EditorCommonContributions:"editor.contributions"};class R{constructor(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}registerEditorContribution(x,M){this.editorContributions.push({id:x,ctor:M})}getEditorContributions(){return this.editorContributions.slice(0)}getDiffEditorContributions(){return this.diffEditorContributions.slice(0)}registerEditorAction(x){x.register(),this.editorActions.push(x)}getEditorActions(){return this.editorActions.slice(0)}registerEditorCommand(x){x.register(),this.editorCommands[x.id]=x}getEditorCommand(x){return this.editorCommands[x]||null}}R.INSTANCE=new R,t.Registry.add(I.EditorCommonContributions,R.INSTANCE);function F(O){return O.register(),O}e.UndoCommand=F(new a({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:C.MenuId.MenubarEditMenu,group:"1_do",title:y.localize(0,null),order:1},{menuId:C.MenuId.CommandPalette,group:"",title:y.localize(1,null),order:1}]})),F(new r(e.UndoCommand,{id:"default:undo",precondition:void 0})),e.RedoCommand=F(new a({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:C.MenuId.MenubarEditMenu,group:"1_do",title:y.localize(2,null),order:2},{menuId:C.MenuId.CommandPalette,group:"",title:y.localize(3,null),order:1}]})),F(new r(e.RedoCommand,{id:"default:redo",precondition:void 0})),e.SelectAllCommand=F(new a({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:C.MenuId.MenubarSelectionMenu,group:"1_basic",title:y.localize(4,null),order:1},{menuId:C.MenuId.CommandPalette,group:"",title:y.localize(5,null),order:1}]}))}),define(oe[169],se([1,0,523,41,19,49,12,29,412,61,181,182,216,11,3,24,16,101]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CoreEditingCommands=e.CoreNavigationCommands=e.RevealLine_=e.EditorScroll_=e.CoreEditorCommand=void 0;const a=0;class r extends w.EditorCommand{runEditorCommand(R,F,O){const x=F._getViewModel();!x||this.runCoreEditorCommand(x,O||{})}}e.CoreEditorCommand=r;var c;(function(I){const R=function(O){if(!k.isObject(O))return!1;const x=O;return!(!k.isString(x.to)||!k.isUndefined(x.by)&&!k.isString(x.by)||!k.isUndefined(x.value)&&!k.isNumber(x.value)||!k.isUndefined(x.revealCursor)&&!k.isBoolean(x.revealCursor))};I.description={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"}}}}]},I.RawDirection={Up:"up",Down:"down"},I.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage",Editor:"editor"};function F(O){let x;switch(O.to){case I.RawDirection.Up:x=1;break;case I.RawDirection.Down:x=2;break;default:return null}let M;switch(O.by){case I.RawUnit.Line:M=1;break;case I.RawUnit.WrappedLine:M=2;break;case I.RawUnit.Page:M=3;break;case I.RawUnit.HalfPage:M=4;break;case I.RawUnit.Editor:M=5;break;default:M=2}const P=Math.floor(O.value||1),A=!!O.revealCursor;return{direction:x,unit:M,value:P,revealCursor:A,select:!!O.select}}I.parse=F})(c=e.EditorScroll_||(e.EditorScroll_={}));var g;(function(I){const R=function(F){if(!k.isObject(F))return!1;const O=F;return!(!k.isNumber(O.lineNumber)&&!k.isString(O.lineNumber)||!k.isUndefined(O.at)&&!k.isString(O.at))};I.description={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"]}}}}]},I.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"}})(g=e.RevealLine_||(e.RevealLine_={}));class f{constructor(R){R.addImplementation(1e4,"code-editor",(F,O)=>{const x=F.get(b.ICodeEditorService).getFocusedCodeEditor();return x&&x.hasTextFocus()?this._runEditorCommand(F,x,O):!1}),R.addImplementation(1e3,"generic-dom-input-textarea",(F,O)=>{const x=document.activeElement;return x&&["input","textarea"].indexOf(x.tagName.toLowerCase())>=0?(this.runDOMCommand(),!0):!1}),R.addImplementation(0,"generic-dom",(F,O)=>{const x=F.get(b.ICodeEditorService).getActiveCodeEditor();return x?(x.focus(),this._runEditorCommand(F,x,O)):!1})}_runEditorCommand(R,F,O){return this.runEditorCommand(R,F,O)||!0}}var _;(function(I){class R extends r{constructor(X){super(X),this._minimalReveal=X.minimalReveal,this._inSelectionMode=X.inSelectionMode}runCoreEditorCommand(X,ie){X.model.pushStackElement(),X.setCursorStates(ie.source,3,[n.CursorMoveCommands.moveTo(X,X.getPrimaryCursorState(),this._inSelectionMode,ie.position,ie.viewPosition)])&&X.revealPrimaryCursor(ie.source,!0,this._minimalReveal)}}I.MoveTo=(0,w.registerEditorCommand)(new R({id:"_moveTo",minimalReveal:!0,inSelectionMode:!1,precondition:void 0})),I.MoveToSelect=(0,w.registerEditorCommand)(new R({id:"_moveToSelect",minimalReveal:!1,inSelectionMode:!0,precondition:void 0}));class F extends r{runCoreEditorCommand(X,ie){X.model.pushStackElement();const H=this._getColumnSelectResult(X,X.getPrimaryCursorState(),X.getCursorColumnSelectData(),ie);X.setCursorStates(ie.source,3,H.viewStates.map(ae=>h.CursorState.fromViewState(ae))),X.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:H.fromLineNumber,fromViewVisualColumn:H.fromVisualColumn,toViewLineNumber:H.toLineNumber,toViewVisualColumn:H.toVisualColumn}),H.reversed?X.revealTopMostCursor(ie.source):X.revealBottomMostCursor(ie.source)}}I.ColumnSelect=(0,w.registerEditorCommand)(new class extends F{constructor(){super({id:"columnSelect",precondition:void 0})}_getColumnSelectResult(Z,X,ie,H){const ae=Z.model.validatePosition(H.position),Y=Z.coordinatesConverter.validateViewPosition(new t.Position(H.viewPosition.lineNumber,H.viewPosition.column),ae),U=H.doColumnSelect?ie.fromViewLineNumber:Y.lineNumber,le=H.doColumnSelect?ie.fromViewVisualColumn:H.mouseColumn-1;return C.ColumnSelection.columnSelect(Z.cursorConfig,Z,U,le,Y.lineNumber,H.mouseColumn-1)}}),I.CursorColumnSelectLeft=(0,w.registerEditorCommand)(new class extends F{constructor(){super({id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:a,kbExpr:s.EditorContextKeys.textInputFocus,primary:3599,linux:{primary:0}}})}_getColumnSelectResult(Z,X,ie,H){return C.ColumnSelection.columnSelectLeft(Z.cursorConfig,Z,ie)}}),I.CursorColumnSelectRight=(0,w.registerEditorCommand)(new class extends F{constructor(){super({id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:a,kbExpr:s.EditorContextKeys.textInputFocus,primary:3601,linux:{primary:0}}})}_getColumnSelectResult(Z,X,ie,H){return C.ColumnSelection.columnSelectRight(Z.cursorConfig,Z,ie)}});class O extends F{constructor(X){super(X),this._isPaged=X.isPaged}_getColumnSelectResult(X,ie,H,ae){return C.ColumnSelection.columnSelectUp(X.cursorConfig,X,H,this._isPaged)}}I.CursorColumnSelectUp=(0,w.registerEditorCommand)(new O({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:a,kbExpr:s.EditorContextKeys.textInputFocus,primary:3600,linux:{primary:0}}})),I.CursorColumnSelectPageUp=(0,w.registerEditorCommand)(new O({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:a,kbExpr:s.EditorContextKeys.textInputFocus,primary:3595,linux:{primary:0}}}));class x extends F{constructor(X){super(X),this._isPaged=X.isPaged}_getColumnSelectResult(X,ie,H,ae){return C.ColumnSelection.columnSelectDown(X.cursorConfig,X,H,this._isPaged)}}I.CursorColumnSelectDown=(0,w.registerEditorCommand)(new x({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:a,kbExpr:s.EditorContextKeys.textInputFocus,primary:3602,linux:{primary:0}}})),I.CursorColumnSelectPageDown=(0,w.registerEditorCommand)(new x({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:a,kbExpr:s.EditorContextKeys.textInputFocus,primary:3596,linux:{primary:0}}}));class M extends r{constructor(){super({id:"cursorMove",precondition:void 0,description:n.CursorMove.description})}runCoreEditorCommand(X,ie){const H=n.CursorMove.parse(ie);!H||this._runCursorMove(X,ie.source,H)}_runCursorMove(X,ie,H){X.model.pushStackElement(),X.setCursorStates(ie,3,M._move(X,X.getCursorStates(),H)),X.revealPrimaryCursor(ie,!0)}static _move(X,ie,H){const ae=H.select,Y=H.value;switch(H.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(X,ie,H.direction,ae,Y,H.unit);case 11:case 13:case 12:case 14:return n.CursorMoveCommands.viewportMove(X,ie,H.direction,ae,Y);default:return null}}}I.CursorMoveImpl=M,I.CursorMove=(0,w.registerEditorCommand)(new M);class P extends r{constructor(X){super(X),this._staticArgs=X.args}runCoreEditorCommand(X,ie){let H=this._staticArgs;this._staticArgs.value===-1&&(H={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:ie.pageSize||X.cursorConfig.pageSize}),X.model.pushStackElement(),X.setCursorStates(ie.source,3,n.CursorMoveCommands.simpleMove(X,X.getCursorStates(),H.direction,H.select,H.value,H.unit)),X.revealPrimaryCursor(ie.source,!0)}}I.CursorLeft=(0,w.registerEditorCommand)(new P({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:a,kbExpr:s.EditorContextKeys.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),I.CursorLeftSelect=(0,w.registerEditorCommand)(new P({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:a,kbExpr:s.EditorContextKeys.textInputFocus,primary:1039}})),I.CursorRight=(0,w.registerEditorCommand)(new P({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:a,kbExpr:s.EditorContextKeys.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),I.CursorRightSelect=(0,w.registerEditorCommand)(new P({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:a,kbExpr:s.EditorContextKeys.textInputFocus,primary:1041}})),I.CursorUp=(0,w.registerEditorCommand)(new P({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:a,kbExpr:s.EditorContextKeys.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),I.CursorUpSelect=(0,w.registerEditorCommand)(new P({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:a,kbExpr:s.EditorContextKeys.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),I.CursorPageUp=(0,w.registerEditorCommand)(new P({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:a,kbExpr:s.EditorContextKeys.textInputFocus,primary:11}})),I.CursorPageUpSelect=(0,w.registerEditorCommand)(new P({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:a,kbExpr:s.EditorContextKeys.textInputFocus,primary:1035}})),I.CursorDown=(0,w.registerEditorCommand)(new P({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:a,kbExpr:s.EditorContextKeys.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),I.CursorDownSelect=(0,w.registerEditorCommand)(new P({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:a,kbExpr:s.EditorContextKeys.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),I.CursorPageDown=(0,w.registerEditorCommand)(new P({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:a,kbExpr:s.EditorContextKeys.textInputFocus,primary:12}})),I.CursorPageDownSelect=(0,w.registerEditorCommand)(new P({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:a,kbExpr:s.EditorContextKeys.textInputFocus,primary:1036}})),I.CreateCursor=(0,w.registerEditorCommand)(new class extends r{constructor(){super({id:"createCursor",precondition:void 0})}runCoreEditorCommand(Z,X){let ie;X.wholeLine?ie=n.CursorMoveCommands.line(Z,Z.getPrimaryCursorState(),!1,X.position,X.viewPosition):ie=n.CursorMoveCommands.moveTo(Z,Z.getPrimaryCursorState(),!1,X.position,X.viewPosition);const H=Z.getCursorStates();if(H.length>1){const ae=ie.modelState?ie.modelState.position:null,Y=ie.viewState?ie.viewState.position:null;for(let U=0,le=H.length;U<le;U++){const z=H[U];if(!(ae&&!z.modelState.selection.containsPosition(ae))&&!(Y&&!z.viewState.selection.containsPosition(Y))){H.splice(U,1),Z.model.pushStackElement(),Z.setCursorStates(X.source,3,H);return}}}H.push(ie),Z.model.pushStackElement(),Z.setCursorStates(X.source,3,H)}}),I.LastCursorMoveToSelect=(0,w.registerEditorCommand)(new class extends r{constructor(){super({id:"_lastCursorMoveToSelect",precondition:void 0})}runCoreEditorCommand(Z,X){const ie=Z.getLastAddedCursorIndex(),H=Z.getCursorStates(),ae=H.slice(0);ae[ie]=n.CursorMoveCommands.moveTo(Z,H[ie],!0,X.position,X.viewPosition),Z.model.pushStackElement(),Z.setCursorStates(X.source,3,ae)}});class A extends r{constructor(X){super(X),this._inSelectionMode=X.inSelectionMode}runCoreEditorCommand(X,ie){X.model.pushStackElement(),X.setCursorStates(ie.source,3,n.CursorMoveCommands.moveToBeginningOfLine(X,X.getCursorStates(),this._inSelectionMode)),X.revealPrimaryCursor(ie.source,!0)}}I.CursorHome=(0,w.registerEditorCommand)(new A({inSelectionMode:!1,id:"cursorHome",precondition:void 0,kbOpts:{weight:a,kbExpr:s.EditorContextKeys.textInputFocus,primary:14,mac:{primary:14,secondary:[2063]}}})),I.CursorHomeSelect=(0,w.registerEditorCommand)(new A({inSelectionMode:!0,id:"cursorHomeSelect",precondition:void 0,kbOpts:{weight:a,kbExpr:s.EditorContextKeys.textInputFocus,primary:1038,mac:{primary:1038,secondary:[3087]}}}));class B extends r{constructor(X){super(X),this._inSelectionMode=X.inSelectionMode}runCoreEditorCommand(X,ie){X.model.pushStackElement(),X.setCursorStates(ie.source,3,this._exec(X.getCursorStates())),X.revealPrimaryCursor(ie.source,!0)}_exec(X){const ie=[];for(let H=0,ae=X.length;H<ae;H++){const Y=X[H],U=Y.modelState.position.lineNumber;ie[H]=h.CursorState.fromModelState(Y.modelState.move(this._inSelectionMode,U,1,0))}return ie}}I.CursorLineStart=(0,w.registerEditorCommand)(new B({inSelectionMode:!1,id:"cursorLineStart",precondition:void 0,kbOpts:{weight:a,kbExpr:s.EditorContextKeys.textInputFocus,primary:0,mac:{primary:287}}})),I.CursorLineStartSelect=(0,w.registerEditorCommand)(new B({inSelectionMode:!0,id:"cursorLineStartSelect",precondition:void 0,kbOpts:{weight:a,kbExpr:s.EditorContextKeys.textInputFocus,primary:0,mac:{primary:1311}}}));class K extends r{constructor(X){super(X),this._inSelectionMode=X.inSelectionMode}runCoreEditorCommand(X,ie){X.model.pushStackElement(),X.setCursorStates(ie.source,3,n.CursorMoveCommands.moveToEndOfLine(X,X.getCursorStates(),this._inSelectionMode,ie.sticky||!1)),X.revealPrimaryCursor(ie.source,!0)}}I.CursorEnd=(0,w.registerEditorCommand)(new K({inSelectionMode:!1,id:"cursorEnd",precondition:void 0,kbOpts:{args:{sticky:!1},weight:a,kbExpr:s.EditorContextKeys.textInputFocus,primary:13,mac:{primary:13,secondary:[2065]}},description:{description:"Go to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:y.localize(0,null),type:"boolean",default:!1}}}}]}})),I.CursorEndSelect=(0,w.registerEditorCommand)(new K({inSelectionMode:!0,id:"cursorEndSelect",precondition:void 0,kbOpts:{args:{sticky:!1},weight:a,kbExpr:s.EditorContextKeys.textInputFocus,primary:1037,mac:{primary:1037,secondary:[3089]}},description:{description:"Select to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:y.localize(1,null),type:"boolean",default:!1}}}}]}}));class T extends r{constructor(X){super(X),this._inSelectionMode=X.inSelectionMode}runCoreEditorCommand(X,ie){X.model.pushStackElement(),X.setCursorStates(ie.source,3,this._exec(X,X.getCursorStates())),X.revealPrimaryCursor(ie.source,!0)}_exec(X,ie){const H=[];for(let ae=0,Y=ie.length;ae<Y;ae++){const U=ie[ae],le=U.modelState.position.lineNumber,z=X.model.getLineMaxColumn(le);H[ae]=h.CursorState.fromModelState(U.modelState.move(this._inSelectionMode,le,z,0))}return H}}I.CursorLineEnd=(0,w.registerEditorCommand)(new T({inSelectionMode:!1,id:"cursorLineEnd",precondition:void 0,kbOpts:{weight:a,kbExpr:s.EditorContextKeys.textInputFocus,primary:0,mac:{primary:291}}})),I.CursorLineEndSelect=(0,w.registerEditorCommand)(new T({inSelectionMode:!0,id:"cursorLineEndSelect",precondition:void 0,kbOpts:{weight:a,kbExpr:s.EditorContextKeys.textInputFocus,primary:0,mac:{primary:1315}}}));class ee extends r{constructor(X){super(X),this._inSelectionMode=X.inSelectionMode}runCoreEditorCommand(X,ie){X.model.pushStackElement(),X.setCursorStates(ie.source,3,n.CursorMoveCommands.moveToBeginningOfBuffer(X,X.getCursorStates(),this._inSelectionMode)),X.revealPrimaryCursor(ie.source,!0)}}I.CursorTop=(0,w.registerEditorCommand)(new ee({inSelectionMode:!1,id:"cursorTop",precondition:void 0,kbOpts:{weight:a,kbExpr:s.EditorContextKeys.textInputFocus,primary:2062,mac:{primary:2064}}})),I.CursorTopSelect=(0,w.registerEditorCommand)(new ee({inSelectionMode:!0,id:"cursorTopSelect",precondition:void 0,kbOpts:{weight:a,kbExpr:s.EditorContextKeys.textInputFocus,primary:3086,mac:{primary:3088}}}));class J extends r{constructor(X){super(X),this._inSelectionMode=X.inSelectionMode}runCoreEditorCommand(X,ie){X.model.pushStackElement(),X.setCursorStates(ie.source,3,n.CursorMoveCommands.moveToEndOfBuffer(X,X.getCursorStates(),this._inSelectionMode)),X.revealPrimaryCursor(ie.source,!0)}}I.CursorBottom=(0,w.registerEditorCommand)(new J({inSelectionMode:!1,id:"cursorBottom",precondition:void 0,kbOpts:{weight:a,kbExpr:s.EditorContextKeys.textInputFocus,primary:2061,mac:{primary:2066}}})),I.CursorBottomSelect=(0,w.registerEditorCommand)(new J({inSelectionMode:!0,id:"cursorBottomSelect",precondition:void 0,kbOpts:{weight:a,kbExpr:s.EditorContextKeys.textInputFocus,primary:3085,mac:{primary:3090}}}));class $ extends r{constructor(){super({id:"editorScroll",precondition:void 0,description:c.description})}runCoreEditorCommand(X,ie){const H=c.parse(ie);!H||this._runEditorScroll(X,ie.source,H)}_runEditorScroll(X,ie,H){const ae=this._computeDesiredScrollTop(X,H);if(H.revealCursor){const Y=X.getCompletelyVisibleViewRangeAtScrollTop(ae);X.setCursorStates(ie,3,[n.CursorMoveCommands.findPositionInViewportIfOutside(X,X.getPrimaryCursorState(),Y,H.select)])}X.viewLayout.setScrollPosition({scrollTop:ae},0)}_computeDesiredScrollTop(X,ie){if(ie.unit===1){const Y=X.getCompletelyVisibleViewRange(),U=X.coordinatesConverter.convertViewRangeToModelRange(Y);let le;ie.direction===1?le=Math.max(1,U.startLineNumber-ie.value):le=Math.min(X.model.getLineCount(),U.startLineNumber+ie.value);const z=X.coordinatesConverter.convertModelPositionToViewPosition(new t.Position(le,1));return X.viewLayout.getVerticalOffsetForLineNumber(z.lineNumber)}if(ie.unit===5){let Y=0;return ie.direction===2&&(Y=X.model.getLineCount()-X.cursorConfig.pageSize),X.viewLayout.getVerticalOffsetForLineNumber(Y)}let H;ie.unit===3?H=X.cursorConfig.pageSize*ie.value:ie.unit===4?H=Math.round(X.cursorConfig.pageSize/2)*ie.value:H=ie.value;const ae=(ie.direction===1?-1:1)*H;return X.viewLayout.getCurrentScrollTop()+ae*X.cursorConfig.lineHeight}}I.EditorScrollImpl=$,I.EditorScroll=(0,w.registerEditorCommand)(new $),I.ScrollLineUp=(0,w.registerEditorCommand)(new class extends r{constructor(){super({id:"scrollLineUp",precondition:void 0,kbOpts:{weight:a,kbExpr:s.EditorContextKeys.textInputFocus,primary:2064,mac:{primary:267}}})}runCoreEditorCommand(Z,X){I.EditorScroll._runEditorScroll(Z,X.source,{direction:1,unit:2,value:1,revealCursor:!1,select:!1})}}),I.ScrollPageUp=(0,w.registerEditorCommand)(new class extends r{constructor(){super({id:"scrollPageUp",precondition:void 0,kbOpts:{weight:a,kbExpr:s.EditorContextKeys.textInputFocus,primary:2059,win:{primary:523},linux:{primary:523}}})}runCoreEditorCommand(Z,X){I.EditorScroll._runEditorScroll(Z,X.source,{direction:1,unit:3,value:1,revealCursor:!1,select:!1})}}),I.ScrollEditorTop=(0,w.registerEditorCommand)(new class extends r{constructor(){super({id:"scrollEditorTop",precondition:void 0,kbOpts:{weight:a,kbExpr:s.EditorContextKeys.textInputFocus}})}runCoreEditorCommand(Z,X){I.EditorScroll._runEditorScroll(Z,X.source,{direction:1,unit:5,value:1,revealCursor:!1,select:!1})}}),I.ScrollLineDown=(0,w.registerEditorCommand)(new class extends r{constructor(){super({id:"scrollLineDown",precondition:void 0,kbOpts:{weight:a,kbExpr:s.EditorContextKeys.textInputFocus,primary:2066,mac:{primary:268}}})}runCoreEditorCommand(Z,X){I.EditorScroll._runEditorScroll(Z,X.source,{direction:2,unit:2,value:1,revealCursor:!1,select:!1})}}),I.ScrollPageDown=(0,w.registerEditorCommand)(new class extends r{constructor(){super({id:"scrollPageDown",precondition:void 0,kbOpts:{weight:a,kbExpr:s.EditorContextKeys.textInputFocus,primary:2060,win:{primary:524},linux:{primary:524}}})}runCoreEditorCommand(Z,X){I.EditorScroll._runEditorScroll(Z,X.source,{direction:2,unit:3,value:1,revealCursor:!1,select:!1})}}),I.ScrollEditorBottom=(0,w.registerEditorCommand)(new class extends r{constructor(){super({id:"scrollEditorBottom",precondition:void 0,kbOpts:{weight:a,kbExpr:s.EditorContextKeys.textInputFocus}})}runCoreEditorCommand(Z,X){I.EditorScroll._runEditorScroll(Z,X.source,{direction:2,unit:5,value:1,revealCursor:!1,select:!1})}});class j extends r{constructor(X){super(X),this._inSelectionMode=X.inSelectionMode}runCoreEditorCommand(X,ie){X.model.pushStackElement(),X.setCursorStates(ie.source,3,[n.CursorMoveCommands.word(X,X.getPrimaryCursorState(),this._inSelectionMode,ie.position)]),X.revealPrimaryCursor(ie.source,!0)}}I.WordSelect=(0,w.registerEditorCommand)(new j({inSelectionMode:!1,id:"_wordSelect",precondition:void 0})),I.WordSelectDrag=(0,w.registerEditorCommand)(new j({inSelectionMode:!0,id:"_wordSelectDrag",precondition:void 0})),I.LastCursorWordSelect=(0,w.registerEditorCommand)(new class extends r{constructor(){super({id:"lastCursorWordSelect",precondition:void 0})}runCoreEditorCommand(Z,X){const ie=Z.getLastAddedCursorIndex(),H=Z.getCursorStates(),ae=H.slice(0),Y=H[ie];ae[ie]=n.CursorMoveCommands.word(Z,Y,Y.modelState.hasSelection(),X.position),Z.model.pushStackElement(),Z.setCursorStates(X.source,3,ae)}});class G extends r{constructor(X){super(X),this._inSelectionMode=X.inSelectionMode}runCoreEditorCommand(X,ie){X.model.pushStackElement(),X.setCursorStates(ie.source,3,[n.CursorMoveCommands.line(X,X.getPrimaryCursorState(),this._inSelectionMode,ie.position,ie.viewPosition)]),X.revealPrimaryCursor(ie.source,!1)}}I.LineSelect=(0,w.registerEditorCommand)(new G({inSelectionMode:!1,id:"_lineSelect",precondition:void 0})),I.LineSelectDrag=(0,w.registerEditorCommand)(new G({inSelectionMode:!0,id:"_lineSelectDrag",precondition:void 0}));class te extends r{constructor(X){super(X),this._inSelectionMode=X.inSelectionMode}runCoreEditorCommand(X,ie){const H=X.getLastAddedCursorIndex(),ae=X.getCursorStates(),Y=ae.slice(0);Y[H]=n.CursorMoveCommands.line(X,ae[H],this._inSelectionMode,ie.position,ie.viewPosition),X.model.pushStackElement(),X.setCursorStates(ie.source,3,Y)}}I.LastCursorLineSelect=(0,w.registerEditorCommand)(new te({inSelectionMode:!1,id:"lastCursorLineSelect",precondition:void 0})),I.LastCursorLineSelectDrag=(0,w.registerEditorCommand)(new te({inSelectionMode:!0,id:"lastCursorLineSelectDrag",precondition:void 0})),I.CancelSelection=(0,w.registerEditorCommand)(new class extends r{constructor(){super({id:"cancelSelection",precondition:s.EditorContextKeys.hasNonEmptySelection,kbOpts:{weight:a,kbExpr:s.EditorContextKeys.textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(Z,X){Z.model.pushStackElement(),Z.setCursorStates(X.source,3,[n.CursorMoveCommands.cancelSelection(Z,Z.getPrimaryCursorState())]),Z.revealPrimaryCursor(X.source,!0)}}),I.RemoveSecondaryCursors=(0,w.registerEditorCommand)(new class extends r{constructor(){super({id:"removeSecondaryCursors",precondition:s.EditorContextKeys.hasMultipleSelections,kbOpts:{weight:a+1,kbExpr:s.EditorContextKeys.textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(Z,X){Z.model.pushStackElement(),Z.setCursorStates(X.source,3,[Z.getPrimaryCursorState()]),Z.revealPrimaryCursor(X.source,!0),(0,D.status)(y.localize(2,null))}}),I.RevealLine=(0,w.registerEditorCommand)(new class extends r{constructor(){super({id:"revealLine",precondition:void 0,description:g.description})}runCoreEditorCommand(Z,X){const ie=X,H=ie.lineNumber||0;let ae=typeof H=="number"?H+1:parseInt(H)+1;ae<1&&(ae=1);const Y=Z.model.getLineCount();ae>Y&&(ae=Y);const U=new o.Range(ae,1,ae,Z.model.getLineMaxColumn(ae));let le=0;if(ie.at)switch(ie.at){case g.RawAtArgument.Top:le=3;break;case g.RawAtArgument.Center:le=1;break;case g.RawAtArgument.Bottom:le=4;break;default:break}const z=Z.coordinatesConverter.convertModelRangeToViewRange(U);Z.revealRange(X.source,!1,z,le,0)}}),I.SelectAll=new class extends f{constructor(){super(w.SelectAllCommand)}runDOMCommand(){v.isFirefox&&(document.activeElement.focus(),document.activeElement.select()),document.execCommand("selectAll")}runEditorCommand(Z,X,ie){const H=X._getViewModel();!H||this.runCoreEditorCommand(H,ie)}runCoreEditorCommand(Z,X){Z.model.pushStackElement(),Z.setCursorStates("keyboard",3,[n.CursorMoveCommands.selectAll(Z,Z.getPrimaryCursorState())])}},I.SetSelection=(0,w.registerEditorCommand)(new class extends r{constructor(){super({id:"setSelection",precondition:void 0})}runCoreEditorCommand(Z,X){Z.model.pushStackElement(),Z.setCursorStates(X.source,3,[h.CursorState.fromModelSelection(X.selection)])}})})(_=e.CoreNavigationCommands||(e.CoreNavigationCommands={}));const p=d.ContextKeyExpr.and(s.EditorContextKeys.textInputFocus,s.EditorContextKeys.columnSelection);function m(I,R){l.KeybindingsRegistry.registerKeybindingRule({id:I,primary:R,when:p,weight:a+1})}m(_.CursorColumnSelectLeft.id,1039),m(_.CursorColumnSelectRight.id,1041),m(_.CursorColumnSelectUp.id,1040),m(_.CursorColumnSelectPageUp.id,1035),m(_.CursorColumnSelectDown.id,1042),m(_.CursorColumnSelectPageDown.id,1036);function S(I){return I.register(),I}var E;(function(I){class R extends w.EditorCommand{runEditorCommand(O,x,M){const P=x._getViewModel();!P||this.runCoreEditingCommand(x,P,M||{})}}I.CoreEditingCommand=R,I.LineBreakInsert=(0,w.registerEditorCommand)(new class extends R{constructor(){super({id:"lineBreakInsert",precondition:s.EditorContextKeys.writable,kbOpts:{weight:a,kbExpr:s.EditorContextKeys.textInputFocus,primary:0,mac:{primary:301}}})}runCoreEditingCommand(F,O,x){F.pushUndoStop(),F.executeCommands(this.id,i.TypeOperations.lineBreakInsert(O.cursorConfig,O.model,O.getCursorStates().map(M=>M.modelState.selection)))}}),I.Outdent=(0,w.registerEditorCommand)(new class extends R{constructor(){super({id:"outdent",precondition:s.EditorContextKeys.writable,kbOpts:{weight:a,kbExpr:d.ContextKeyExpr.and(s.EditorContextKeys.editorTextFocus,s.EditorContextKeys.tabDoesNotMoveFocus),primary:1026}})}runCoreEditingCommand(F,O,x){F.pushUndoStop(),F.executeCommands(this.id,i.TypeOperations.outdent(O.cursorConfig,O.model,O.getCursorStates().map(M=>M.modelState.selection))),F.pushUndoStop()}}),I.Tab=(0,w.registerEditorCommand)(new class extends R{constructor(){super({id:"tab",precondition:s.EditorContextKeys.writable,kbOpts:{weight:a,kbExpr:d.ContextKeyExpr.and(s.EditorContextKeys.editorTextFocus,s.EditorContextKeys.tabDoesNotMoveFocus),primary:2}})}runCoreEditingCommand(F,O,x){F.pushUndoStop(),F.executeCommands(this.id,i.TypeOperations.tab(O.cursorConfig,O.model,O.getCursorStates().map(M=>M.modelState.selection))),F.pushUndoStop()}}),I.DeleteLeft=(0,w.registerEditorCommand)(new class extends R{constructor(){super({id:"deleteLeft",precondition:void 0,kbOpts:{weight:a,kbExpr:s.EditorContextKeys.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}runCoreEditingCommand(F,O,x){const[M,P]=u.DeleteOperations.deleteLeft(O.getPrevEditOperationType(),O.cursorConfig,O.model,O.getCursorStates().map(A=>A.modelState.selection),O.getCursorAutoClosedCharacters());M&&F.pushUndoStop(),F.executeCommands(this.id,P),O.setPrevEditOperationType(2)}}),I.DeleteRight=(0,w.registerEditorCommand)(new class extends R{constructor(){super({id:"deleteRight",precondition:void 0,kbOpts:{weight:a,kbExpr:s.EditorContextKeys.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}runCoreEditingCommand(F,O,x){const[M,P]=u.DeleteOperations.deleteRight(O.getPrevEditOperationType(),O.cursorConfig,O.model,O.getCursorStates().map(A=>A.modelState.selection));M&&F.pushUndoStop(),F.executeCommands(this.id,P),O.setPrevEditOperationType(3)}}),I.Undo=new class extends f{constructor(){super(w.UndoCommand)}runDOMCommand(){document.execCommand("undo")}runEditorCommand(F,O,x){if(!(!O.hasModel()||O.getOption(83)===!0))return O.getModel().undo()}},I.Redo=new class extends f{constructor(){super(w.RedoCommand)}runDOMCommand(){document.execCommand("redo")}runEditorCommand(F,O,x){if(!(!O.hasModel()||O.getOption(83)===!0))return O.getModel().redo()}}})(E=e.CoreEditingCommands||(e.CoreEditingCommands={}));class L extends w.Command{constructor(R,F,O){super({id:R,precondition:void 0,description:O}),this._handlerId=F}runCommand(R,F){const O=R.get(b.ICodeEditorService).getFocusedCodeEditor();!O||O.trigger("keyboard",this._handlerId,F)}}function N(I,R){S(new L("default:"+I,I)),S(new L(I,I,R))}N("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),N("replacePreviousChar"),N("compositionType"),N("compositionStart"),N("compositionEnd"),N("paste"),N("cut")}),define(oe[690],se([1,0,209,12]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MarkerDecorationsContribution=void 0;let k=class{constructor(D,w){}dispose(){}};k.ID="editor.contrib.markerDecorations",k=Ie([pe(1,y.IMarkerDecorationsService)],k),e.MarkerDecorationsContribution=k,(0,v.registerEditorContribution)(k.ID,k)}),define(oe[691],se([1,0,169,11,17]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewController=void 0;class D{constructor(b,C,h,u){this.configuration=b,this.viewModel=C,this.userInputEvents=h,this.commandDelegate=u}paste(b,C,h,u){this.commandDelegate.paste(b,C,h,u)}type(b){this.commandDelegate.type(b)}compositionType(b,C,h,u){this.commandDelegate.compositionType(b,C,h,u)}compositionStart(){this.commandDelegate.startComposition()}compositionEnd(){this.commandDelegate.endComposition()}cut(){this.commandDelegate.cut()}setSelection(b){y.CoreNavigationCommands.SetSelection.runCoreEditorCommand(this.viewModel,{source:"keyboard",selection:b})}_validateViewColumn(b){const C=this.viewModel.getLineMinColumn(b.lineNumber);return b.column<C?new v.Position(b.lineNumber,C):b}_hasMulticursorModifier(b){switch(this.configuration.options.get(72)){case"altKey":return b.altKey;case"ctrlKey":return b.ctrlKey;case"metaKey":return b.metaKey;default:return!1}}_hasNonMulticursorModifier(b){switch(this.configuration.options.get(72)){case"altKey":return b.ctrlKey||b.metaKey;case"ctrlKey":return b.altKey||b.metaKey;case"metaKey":return b.ctrlKey||b.altKey;default:return!1}}dispatchMouse(b){const C=this.configuration.options,h=k.isLinux&&C.get(98),u=C.get(18);b.middleButton&&!h?this._columnSelect(b.position,b.mouseColumn,b.inSelectionMode):b.startedOnLineNumbers?this._hasMulticursorModifier(b)?b.inSelectionMode?this._lastCursorLineSelect(b.position):this._createCursor(b.position,!0):b.inSelectionMode?this._lineSelectDrag(b.position):this._lineSelect(b.position):b.mouseDownCount>=4?this._selectAll():b.mouseDownCount===3?this._hasMulticursorModifier(b)?b.inSelectionMode?this._lastCursorLineSelectDrag(b.position):this._lastCursorLineSelect(b.position):b.inSelectionMode?this._lineSelectDrag(b.position):this._lineSelect(b.position):b.mouseDownCount===2?b.onInjectedText||(this._hasMulticursorModifier(b)?this._lastCursorWordSelect(b.position):b.inSelectionMode?this._wordSelectDrag(b.position):this._wordSelect(b.position)):this._hasMulticursorModifier(b)?this._hasNonMulticursorModifier(b)||(b.shiftKey?this._columnSelect(b.position,b.mouseColumn,!0):b.inSelectionMode?this._lastCursorMoveToSelect(b.position):this._createCursor(b.position,!1)):b.inSelectionMode?b.altKey?this._columnSelect(b.position,b.mouseColumn,!0):u?this._columnSelect(b.position,b.mouseColumn,!0):this._moveToSelect(b.position):this.moveTo(b.position)}_usualArgs(b){return b=this._validateViewColumn(b),{source:"mouse",position:this._convertViewToModelPosition(b),viewPosition:b}}moveTo(b){y.CoreNavigationCommands.MoveTo.runCoreEditorCommand(this.viewModel,this._usualArgs(b))}_moveToSelect(b){y.CoreNavigationCommands.MoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(b))}_columnSelect(b,C,h){b=this._validateViewColumn(b),y.CoreNavigationCommands.ColumnSelect.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(b),viewPosition:b,mouseColumn:C,doColumnSelect:h})}_createCursor(b,C){b=this._validateViewColumn(b),y.CoreNavigationCommands.CreateCursor.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(b),viewPosition:b,wholeLine:C})}_lastCursorMoveToSelect(b){y.CoreNavigationCommands.LastCursorMoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(b))}_wordSelect(b){y.CoreNavigationCommands.WordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(b))}_wordSelectDrag(b){y.CoreNavigationCommands.WordSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(b))}_lastCursorWordSelect(b){y.CoreNavigationCommands.LastCursorWordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(b))}_lineSelect(b){y.CoreNavigationCommands.LineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(b))}_lineSelectDrag(b){y.CoreNavigationCommands.LineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(b))}_lastCursorLineSelect(b){y.CoreNavigationCommands.LastCursorLineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(b))}_lastCursorLineSelectDrag(b){y.CoreNavigationCommands.LastCursorLineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(b))}_selectAll(){y.CoreNavigationCommands.SelectAll.runCoreEditorCommand(this.viewModel,{source:"mouse"})}_convertViewToModelPosition(b){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(b)}emitKeyDown(b){this.userInputEvents.emitKeyDown(b)}emitKeyUp(b){this.userInputEvents.emitKeyUp(b)}emitContextMenu(b){this.userInputEvents.emitContextMenu(b)}emitMouseMove(b){this.userInputEvents.emitMouseMove(b)}emitMouseLeave(b){this.userInputEvents.emitMouseLeave(b)}emitMouseUp(b){this.userInputEvents.emitMouseUp(b)}emitMouseDown(b){this.userInputEvents.emitMouseDown(b)}emitMouseDrag(b){this.userInputEvents.emitMouseDrag(b)}emitMouseDrop(b){this.userInputEvents.emitMouseDrop(b)}emitMouseDropCanceled(){this.userInputEvents.emitMouseDropCanceled()}emitMouseWheel(b){this.userInputEvents.emitMouseWheel(b)}}e.ViewController=D}),define(oe[692],se([1,0,7,23,33,14,667,676,691,229,502,47,500,674,436,670,186,675,297,668,437,244,438,671,439,677,446,678,672,673,679,440,11,3,125,447,443,129,15,296,435]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r,c,g,f,_,p,m,S,E,L,N,I,R,F,O,x,M,P,A,B,K,T){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.View=void 0;class ee extends A.ViewEventHandler{constructor(j,G,te,Z,X,ie){super(),this._selections=[new v.Selection(1,1,1,1)],this._renderAnimationFrame=null;const H=new C.ViewController(G,Z,X,j);this._context=new M.ViewContext(G,te,Z),this._context.addEventHandler(this),this._viewParts=[],this._textAreaHandler=new b.TextAreaHandler(this._context,H,this._createTextAreaHandlerHelper()),this._viewParts.push(this._textAreaHandler),this._linesContent=(0,k.createFastDomNode)(document.createElement("div")),this._linesContent.setClassName("lines-content monaco-editor-background"),this._linesContent.setPosition("absolute"),this.domNode=(0,k.createFastDomNode)(document.createElement("div")),this.domNode.setClassName(this._getEditorClassName()),this.domNode.setAttribute("role","code"),this._overflowGuardContainer=(0,k.createFastDomNode)(document.createElement("div")),n.PartFingerprints.write(this._overflowGuardContainer,3),this._overflowGuardContainer.setClassName("overflow-guard"),this._scrollbar=new s.EditorScrollbar(this._context,this._linesContent,this.domNode,this._overflowGuardContainer),this._viewParts.push(this._scrollbar),this._viewLines=new r.ViewLines(this._context,this._linesContent),this._viewZones=new R.ViewZones(this._context),this._viewParts.push(this._viewZones);const ae=new m.DecorationsOverviewRuler(this._context);this._viewParts.push(ae);const Y=new L.ScrollDecorationViewPart(this._context);this._viewParts.push(Y);const U=new u.ContentViewOverlays(this._context);this._viewParts.push(U),U.addDynamicOverlay(new t.CurrentLineHighlightOverlay(this._context)),U.addDynamicOverlay(new N.SelectionsOverlay(this._context)),U.addDynamicOverlay(new l.IndentGuidesOverlay(this._context)),U.addDynamicOverlay(new o.DecorationsOverlay(this._context));const le=new u.MarginViewOverlays(this._context);this._viewParts.push(le),le.addDynamicOverlay(new t.CurrentLineMarginHighlightOverlay(this._context)),le.addDynamicOverlay(new d.GlyphMarginOverlay(this._context)),le.addDynamicOverlay(new f.MarginViewLineDecorationsOverlay(this._context)),le.addDynamicOverlay(new c.LinesDecorationsOverlay(this._context)),le.addDynamicOverlay(new a.LineNumbersOverlay(this._context));const z=new g.Margin(this._context);z.getDomNode().appendChild(this._viewZones.marginDomNode),z.getDomNode().appendChild(le.getDomNode()),this._viewParts.push(z),this._contentWidgets=new i.ViewContentWidgets(this._context,this.domNode),this._viewParts.push(this._contentWidgets),this._viewCursors=new I.ViewCursors(this._context),this._viewParts.push(this._viewCursors),this._overlayWidgets=new p.ViewOverlayWidgets(this._context),this._viewParts.push(this._overlayWidgets);const Q=new E.Rulers(this._context);this._viewParts.push(Q);const W=new T.BlockDecorations(this._context);this._viewParts.push(W);const V=new _.Minimap(this._context);if(this._viewParts.push(V),ae){const ne=this._scrollbar.getOverviewRulerLayoutInfo();ne.parent.insertBefore(ae.getDomNode(),ne.insertBefore)}this._linesContent.appendChild(U.getDomNode()),this._linesContent.appendChild(Q.domNode),this._linesContent.appendChild(W.domNode),this._linesContent.appendChild(this._viewZones.domNode),this._linesContent.appendChild(this._viewLines.getDomNode()),this._linesContent.appendChild(this._contentWidgets.domNode),this._linesContent.appendChild(this._viewCursors.getDomNode()),this._overflowGuardContainer.appendChild(z.getDomNode()),this._overflowGuardContainer.appendChild(this._scrollbar.getDomNode()),this._overflowGuardContainer.appendChild(Y.getDomNode()),this._overflowGuardContainer.appendChild(this._textAreaHandler.textArea),this._overflowGuardContainer.appendChild(this._textAreaHandler.textAreaCover),this._overflowGuardContainer.appendChild(this._overlayWidgets.getDomNode()),this._overflowGuardContainer.appendChild(V.getDomNode()),this.domNode.appendChild(this._overflowGuardContainer),ie?ie.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode.domNode):this.domNode.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode),this._applyLayout(),this._pointerHandler=this._register(new w.PointerHandler(this._context,H,this._createPointerHandlerHelper()))}_flushAccumulatedAndRenderNow(){this._renderNow()}_createPointerHandlerHelper(){return{viewDomNode:this.domNode.domNode,linesContentDomNode:this._linesContent.domNode,viewLinesDomNode:this._viewLines.getDomNode().domNode,focusTextArea:()=>{this.focus()},dispatchTextAreaEvent:j=>{this._textAreaHandler.textArea.domNode.dispatchEvent(j)},getLastRenderData:()=>{const j=this._viewCursors.getLastRenderData()||[],G=this._textAreaHandler.getLastRenderData();return new K.PointerHandlerLastRenderData(j,G)},shouldSuppressMouseDownOnViewZone:j=>this._viewZones.shouldSuppressMouseDownOnViewZone(j),shouldSuppressMouseDownOnWidget:j=>this._contentWidgets.shouldSuppressMouseDownOnWidget(j),getPositionFromDOMInfo:(j,G)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getPositionFromDOMInfo(j,G)),visibleRangeForPosition:(j,G)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(new F.Position(j,G))),getLineWidth:j=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getLineWidth(j))}}_createTextAreaHandlerHelper(){return{visibleRangeForPosition:j=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(j))}}_applyLayout(){const j=this._context.configuration.options.get(133);this.domNode.setWidth(j.width),this.domNode.setHeight(j.height),this._overflowGuardContainer.setWidth(j.width),this._overflowGuardContainer.setHeight(j.height),this._linesContent.setWidth(1e6),this._linesContent.setHeight(1e6)}_getEditorClassName(){const j=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(130)+" "+(0,B.getThemeTypeSelector)(this._context.theme.type)+j}handleEvents(j){super.handleEvents(j),this._scheduleRender()}onConfigurationChanged(j){return this.domNode.setClassName(this._getEditorClassName()),this._applyLayout(),!1}onCursorStateChanged(j){return this._selections=j.selections,!1}onFocusChanged(j){return this.domNode.setClassName(this._getEditorClassName()),!1}onThemeChanged(j){return this._context.theme.update(j.theme),this.domNode.setClassName(this._getEditorClassName()),!1}dispose(){this._renderAnimationFrame!==null&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this._contentWidgets.overflowingContentWidgetsDomNode.domNode.remove(),this._context.removeEventHandler(this),this._viewLines.dispose();for(const j of this._viewParts)j.dispose();super.dispose()}_scheduleRender(){this._renderAnimationFrame===null&&(this._renderAnimationFrame=y.runAtThisOrScheduleAtNextAnimationFrame(this._onRenderScheduled.bind(this),100))}_onRenderScheduled(){this._renderAnimationFrame=null,this._flushAccumulatedAndRenderNow()}_renderNow(){J(()=>this._actualRender())}_getViewPartsToRender(){const j=[];let G=0;for(const te of this._viewParts)te.shouldRender()&&(j[G++]=te);return j}_actualRender(){if(!y.isInDOM(this.domNode.domNode))return;let j=this._getViewPartsToRender();if(!this._viewLines.shouldRender()&&j.length===0)return;const G=this._context.viewLayout.getLinesViewportData();this._context.viewModel.setViewport(G.startLineNumber,G.endLineNumber,G.centeredLineNumber);const te=new P.ViewportData(this._selections,G,this._context.viewLayout.getWhitespaceViewportData(),this._context.viewModel);this._contentWidgets.shouldRender()&&this._contentWidgets.onBeforeRender(te),this._viewLines.shouldRender()&&(this._viewLines.renderText(te),this._viewLines.onDidRender(),j=this._getViewPartsToRender());const Z=new x.RenderingContext(this._context.viewLayout,te,this._viewLines);for(const X of j)X.prepareRender(Z);for(const X of j)X.render(Z),X.onDidRender()}delegateVerticalScrollbarPointerDown(j){this._scrollbar.delegateVerticalScrollbarPointerDown(j)}restoreState(j){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:j.scrollTop},1),this._context.viewModel.tokenizeViewport(),this._renderNow(),this._viewLines.updateLineWidths(),this._context.viewModel.viewLayout.setScrollPosition({scrollLeft:j.scrollLeft},1)}getOffsetForColumn(j,G){const te=this._context.viewModel.model.validatePosition({lineNumber:j,column:G}),Z=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(te);this._flushAccumulatedAndRenderNow();const X=this._viewLines.visibleRangeForPosition(new F.Position(Z.lineNumber,Z.column));return X?X.left:-1}getTargetAtClientPoint(j,G){const te=this._pointerHandler.getTargetAtClientPoint(j,G);return te?h.ViewUserInputEvents.convertViewToModelMouseTarget(te,this._context.viewModel.coordinatesConverter):null}createOverviewRuler(j){return new S.OverviewRuler(this._context,j)}change(j){this._viewZones.changeViewZones(j),this._scheduleRender()}render(j,G){if(G){this._viewLines.forceShouldRender();for(const te of this._viewParts)te.forceShouldRender()}j?this._flushAccumulatedAndRenderNow():this._scheduleRender()}focus(){this._textAreaHandler.focusTextArea()}isFocused(){return this._textAreaHandler.isFocused()}setAriaOptions(j){this._textAreaHandler.setAriaOptions(j)}addContentWidget(j){this._contentWidgets.addWidget(j.widget),this.layoutContentWidget(j),this._scheduleRender()}layoutContentWidget(j){var G,te;let Z=j.position&&j.position.range||null;if(Z===null){const ie=j.position?j.position.position:null;ie!==null&&(Z=new O.Range(ie.lineNumber,ie.column,ie.lineNumber,ie.column))}const X=j.position?j.position.preference:null;this._contentWidgets.setWidgetPosition(j.widget,Z,X,(te=(G=j.position)===null||G===void 0?void 0:G.positionAffinity)!==null&&te!==void 0?te:null),this._scheduleRender()}removeContentWidget(j){this._contentWidgets.removeWidget(j.widget),this._scheduleRender()}addOverlayWidget(j){this._overlayWidgets.addWidget(j.widget),this.layoutOverlayWidget(j),this._scheduleRender()}layoutOverlayWidget(j){const G=j.position?j.position.preference:null;this._overlayWidgets.setWidgetPosition(j.widget,G)&&this._scheduleRender()}removeOverlayWidget(j){this._overlayWidgets.removeWidget(j.widget),this._scheduleRender()}}e.View=ee;function J($){try{return $()}catch(j){(0,D.onUnexpectedError)(j)}}}),define(oe[693],se([1,0,49,64,59,12,23,24,538,16,371]),function(q,e,y,v,k,D,w,b,C,h){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SelectionAnchorSet=void 0,e.SelectionAnchorSet=new h.RawContextKey("selectionAnchorSet",!1);let u=class $i{constructor(d,l){this.editor=d,this.selectionAnchorSetContextKey=e.SelectionAnchorSet.bindTo(l),this.modelChangeListener=d.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}static get(d){return d.getContribution($i.ID)}setSelectionAnchor(){if(this.editor.hasModel()){const d=this.editor.getPosition();this.editor.changeDecorations(l=>{this.decorationId&&l.removeDecoration(this.decorationId),this.decorationId=l.addDecoration(w.Selection.fromPositions(d,d),{description:"selection-anchor",stickiness:1,hoverMessage:new v.MarkdownString().appendText((0,C.localize)(0,null)),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),(0,y.alert)((0,C.localize)(1,null,d.lineNumber,d.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const d=this.editor.getModel().getDecorationRange(this.decorationId);d&&this.editor.setPosition(d.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const d=this.editor.getModel().getDecorationRange(this.decorationId);if(d){const l=this.editor.getPosition();this.editor.setSelection(w.Selection.fromPositions(d.getStartPosition(),l)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const d=this.decorationId;this.editor.changeDecorations(l=>{l.removeDecoration(d),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};u.ID="editor.contrib.selectionAnchorController",u=Ie([pe(1,h.IContextKeyService)],u);class n extends D.EditorAction{constructor(){super({id:"editor.action.setSelectionAnchor",label:(0,C.localize)(2,null),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:b.EditorContextKeys.editorTextFocus,primary:(0,k.KeyChord)(2089,2080),weight:100}})}run(d,l){var a;return be(this,void 0,void 0,function*(){(a=u.get(l))===null||a===void 0||a.setSelectionAnchor()})}}class i extends D.EditorAction{constructor(){super({id:"editor.action.goToSelectionAnchor",label:(0,C.localize)(3,null),alias:"Go to Selection Anchor",precondition:e.SelectionAnchorSet})}run(d,l){var a;return be(this,void 0,void 0,function*(){(a=u.get(l))===null||a===void 0||a.goToSelectionAnchor()})}}class t extends D.EditorAction{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:(0,C.localize)(4,null),alias:"Select from Anchor to Cursor",precondition:e.SelectionAnchorSet,kbOpts:{kbExpr:b.EditorContextKeys.editorTextFocus,primary:(0,k.KeyChord)(2089,2089),weight:100}})}run(d,l){var a;return be(this,void 0,void 0,function*(){(a=u.get(l))===null||a===void 0||a.selectFromAnchorToCursor()})}}class o extends D.EditorAction{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:(0,C.localize)(5,null),alias:"Cancel Selection Anchor",precondition:e.SelectionAnchorSet,kbOpts:{kbExpr:b.EditorContextKeys.editorTextFocus,primary:9,weight:100}})}run(d,l){var a;return be(this,void 0,void 0,function*(){(a=u.get(l))===null||a===void 0||a.cancelSelectionAnchor()})}}(0,D.registerEditorContribution)(u.ID,u),(0,D.registerEditorAction)(n),(0,D.registerEditorAction)(i),(0,D.registerEditorAction)(t),(0,D.registerEditorAction)(o)}),define(oe[694],se([1,0,12,24,448,540]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class w extends y.EditorAction{constructor(u,n){super(n),this.left=u}run(u,n){if(!n.hasModel())return;const i=[],t=n.getSelections();for(const o of t)i.push(new k.MoveCaretCommand(o,this.left));n.pushUndoStop(),n.executeCommands(this.id,i),n.pushUndoStop()}}class b extends w{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:D.localize(0,null),alias:"Move Selected Text Left",precondition:v.EditorContextKeys.writable})}}class C extends w{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:D.localize(1,null),alias:"Move Selected Text Right",precondition:v.EditorContextKeys.writable})}}(0,y.registerEditorAction)(b),(0,y.registerEditorAction)(C)}),define(oe[695],se([1,0,12,108,180,3,24,541]),function(q,e,y,v,k,D,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class C extends y.EditorAction{constructor(){super({id:"editor.action.transposeLetters",label:b.localize(0,null),alias:"Transpose Letters",precondition:w.EditorContextKeys.writable,kbOpts:{kbExpr:w.EditorContextKeys.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(u,n){if(!n.hasModel())return;const i=n.getModel(),t=[],o=n.getSelections();for(const s of o){if(!s.isEmpty())continue;const d=s.startLineNumber,l=s.startColumn,a=i.getLineMaxColumn(d);if(d===1&&(l===1||l===2&&a===2))continue;const r=l===a?s.getPosition():k.MoveOperations.rightPosition(i,s.getPosition().lineNumber,s.getPosition().column),c=k.MoveOperations.leftPosition(i,r),g=k.MoveOperations.leftPosition(i,c),f=i.getValueInRange(D.Range.fromPositions(g,c)),_=i.getValueInRange(D.Range.fromPositions(c,r)),p=D.Range.fromPositions(g,r);t.push(new v.ReplaceCommand(p,_+f))}t.length>0&&(n.pushUndoStop(),n.executeCommands(this.id,t),n.pushUndoStop())}}(0,y.registerEditorAction)(C)}),define(oe[696],se([1,0,41,17,201,12,29,24,542,39,93]),function(q,e,y,v,k,D,w,b,C,h,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PasteAction=e.CopyAction=e.CutAction=void 0;const n="9_cutcopypaste",i=v.isNative||document.queryCommandSupported("cut"),t=v.isNative||document.queryCommandSupported("copy"),o=typeof navigator.clipboard>"u"||y.isFirefox?document.queryCommandSupported("paste"):!0;function s(a){return a.register(),a}e.CutAction=i?s(new D.MultiCommand({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:v.isNative?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:h.MenuId.MenubarEditMenu,group:"2_ccp",title:C.localize(0,null),order:1},{menuId:h.MenuId.EditorContext,group:n,title:C.localize(1,null),when:b.EditorContextKeys.writable,order:1},{menuId:h.MenuId.CommandPalette,group:"",title:C.localize(2,null),order:1},{menuId:h.MenuId.SimpleEditorContext,group:n,title:C.localize(3,null),when:b.EditorContextKeys.writable,order:1}]})):void 0,e.CopyAction=t?s(new D.MultiCommand({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:v.isNative?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:h.MenuId.MenubarEditMenu,group:"2_ccp",title:C.localize(4,null),order:2},{menuId:h.MenuId.EditorContext,group:n,title:C.localize(5,null),order:2},{menuId:h.MenuId.CommandPalette,group:"",title:C.localize(6,null),order:1},{menuId:h.MenuId.SimpleEditorContext,group:n,title:C.localize(7,null),order:2}]})):void 0,h.MenuRegistry.appendMenuItem(h.MenuId.MenubarEditMenu,{submenu:h.MenuId.MenubarCopy,title:{value:C.localize(8,null),original:"Copy As"},group:"2_ccp",order:3}),h.MenuRegistry.appendMenuItem(h.MenuId.EditorContext,{submenu:h.MenuId.EditorContextCopy,title:{value:C.localize(9,null),original:"Copy As"},group:n,order:3}),h.MenuRegistry.appendMenuItem(h.MenuId.EditorContext,{submenu:h.MenuId.EditorContextShare,title:{value:C.localize(10,null),original:"Share"},group:"11_share",order:-1}),e.PasteAction=o?s(new D.MultiCommand({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:v.isNative?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:h.MenuId.MenubarEditMenu,group:"2_ccp",title:C.localize(11,null),order:4},{menuId:h.MenuId.EditorContext,group:n,title:C.localize(12,null),when:b.EditorContextKeys.writable,order:4},{menuId:h.MenuId.CommandPalette,group:"",title:C.localize(13,null),order:1},{menuId:h.MenuId.SimpleEditorContext,group:n,title:C.localize(14,null),when:b.EditorContextKeys.writable,order:4}]})):void 0;class d extends D.EditorAction{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:C.localize(15,null),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:b.EditorContextKeys.textInputFocus,primary:0,weight:100}})}run(r,c){!c.hasModel()||!c.getOption(33)&&c.getSelection().isEmpty()||(k.CopyOptions.forceCopyWithSyntaxHighlighting=!0,c.focus(),document.execCommand("copy"),k.CopyOptions.forceCopyWithSyntaxHighlighting=!1)}}function l(a,r){!a||(a.addImplementation(1e4,"code-editor",(c,g)=>{const f=c.get(w.ICodeEditorService).getFocusedCodeEditor();if(f&&f.hasTextFocus()){const _=f.getOption(33),p=f.getSelection();return p&&p.isEmpty()&&!_||document.execCommand(r),!0}return!1}),a.addImplementation(0,"generic-dom",(c,g)=>(document.execCommand(r),!0)))}l(e.CutAction,"cut"),l(e.CopyAction,"copy"),e.PasteAction&&(e.PasteAction.addImplementation(1e4,"code-editor",(a,r)=>{const c=a.get(w.ICodeEditorService),g=a.get(u.IClipboardService),f=c.getFocusedCodeEditor();return f&&f.hasTextFocus()?!document.execCommand("paste")&&v.isWeb?(()=>be(void 0,void 0,void 0,function*(){const _=yield g.readText();if(_!==""){const p=k.InMemoryClipboardMetadataManager.INSTANCE.get(_);let m=!1,S=null,E=null;p&&(m=f.getOption(33)&&!!p.isFromEmptySelection,S=typeof p.multicursorText<"u"?p.multicursorText:null,E=p.mode),f.trigger("keyboard","paste",{text:_,pasteOnNewLine:m,multicursorText:S,mode:E})}}))():!0:!1}),e.PasteAction.addImplementation(0,"generic-dom",(a,r)=>(document.execCommand("paste"),!0))),t&&(0,D.registerEditorAction)(d)}),define(oe[697],se([1,0,59,12,3,24,32,246,449,549,39]),function(q,e,y,v,k,D,w,b,C,h,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class n extends v.EditorAction{constructor(l,a){super(a),this._type=l}run(l,a){const r=l.get(w.ILanguageConfigurationService);if(!a.hasModel())return;const c=a.getModel(),g=[],f=c.getOptions(),_=a.getOption(19),p=a.getSelections().map((S,E)=>({selection:S,index:E,ignoreFirstLine:!1}));p.sort((S,E)=>k.Range.compareRangesUsingStarts(S.selection,E.selection));let m=p[0];for(let S=1;S<p.length;S++){const E=p[S];m.selection.endLineNumber===E.selection.startLineNumber&&(m.index<E.index?E.ignoreFirstLine=!0:(m.ignoreFirstLine=!0,m=E))}for(const S of p)g.push(new C.LineCommentCommand(r,S.selection,f.tabSize,this._type,_.insertSpace,_.ignoreEmptyLines,S.ignoreFirstLine));a.pushUndoStop(),a.executeCommands(this.id,g),a.pushUndoStop()}}class i extends n{constructor(){super(0,{id:"editor.action.commentLine",label:h.localize(0,null),alias:"Toggle Line Comment",precondition:D.EditorContextKeys.writable,kbOpts:{kbExpr:D.EditorContextKeys.editorTextFocus,primary:2133,weight:100},menuOpts:{menuId:u.MenuId.MenubarEditMenu,group:"5_insert",title:h.localize(1,null),order:1}})}}class t extends n{constructor(){super(1,{id:"editor.action.addCommentLine",label:h.localize(2,null),alias:"Add Line Comment",precondition:D.EditorContextKeys.writable,kbOpts:{kbExpr:D.EditorContextKeys.editorTextFocus,primary:(0,y.KeyChord)(2089,2081),weight:100}})}}class o extends n{constructor(){super(2,{id:"editor.action.removeCommentLine",label:h.localize(3,null),alias:"Remove Line Comment",precondition:D.EditorContextKeys.writable,kbOpts:{kbExpr:D.EditorContextKeys.editorTextFocus,primary:(0,y.KeyChord)(2089,2099),weight:100}})}}class s extends v.EditorAction{constructor(){super({id:"editor.action.blockComment",label:h.localize(4,null),alias:"Toggle Block Comment",precondition:D.EditorContextKeys.writable,kbOpts:{kbExpr:D.EditorContextKeys.editorTextFocus,primary:1567,linux:{primary:3103},weight:100},menuOpts:{menuId:u.MenuId.MenubarEditMenu,group:"5_insert",title:h.localize(5,null),order:2}})}run(l,a){const r=l.get(w.ILanguageConfigurationService);if(!a.hasModel())return;const c=a.getOption(19),g=[],f=a.getSelections();for(const _ of f)g.push(new b.BlockCommentCommand(_,c.insertSpace,r));a.pushUndoStop(),a.executeCommands(this.id,g),a.pushUndoStop()}}(0,v.registerEditorAction)(i),(0,v.registerEditorAction)(t),(0,v.registerEditorAction)(o),(0,v.registerEditorAction)(s)}),define(oe[698],se([1,0,7,133,42,2,17,12,24,550,39,16,78,44,30]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContextMenuController=void 0;let s=class ji{constructor(a,r,c,g,f,_,p){this._contextMenuService=r,this._contextViewService=c,this._contextKeyService=g,this._keybindingService=f,this._menuService=_,this._configurationService=p,this._toDispose=new D.DisposableStore,this._contextMenuIsBeingShownCount=0,this._editor=a,this._toDispose.add(this._editor.onContextMenu(m=>this._onContextMenu(m))),this._toDispose.add(this._editor.onMouseWheel(m=>{if(this._contextMenuIsBeingShownCount>0){const S=this._contextViewService.getContextViewElement(),E=m.srcElement;E.shadowRoot&&y.getShadowRoot(S)===E.shadowRoot||this._contextViewService.hideContextView()}})),this._toDispose.add(this._editor.onKeyDown(m=>{!this._editor.getOption(20)||m.keyCode===58&&(m.preventDefault(),m.stopPropagation(),this.showContextMenu())}))}static get(a){return a.getContribution(ji.ID)}_onContextMenu(a){if(!this._editor.hasModel())return;if(!this._editor.getOption(20)){this._editor.focus(),a.target.position&&!this._editor.getSelection().containsPosition(a.target.position)&&this._editor.setPosition(a.target.position);return}if(a.target.type===12||a.target.type===6&&a.target.detail.injectedText)return;if(a.event.preventDefault(),a.event.stopPropagation(),a.target.type===11)return this._showScrollbarContextMenu({x:a.event.posx-1,width:2,y:a.event.posy-1,height:2});if(a.target.type!==6&&a.target.type!==7&&a.target.type!==1)return;if(this._editor.focus(),a.target.position){let c=!1;for(const g of this._editor.getSelections())if(g.containsPosition(a.target.position)){c=!0;break}c||this._editor.setPosition(a.target.position)}let r=null;a.target.type!==1&&(r={x:a.event.posx-1,width:2,y:a.event.posy-1,height:2}),this.showContextMenu(r)}showContextMenu(a){if(!this._editor.getOption(20)||!this._editor.hasModel())return;const r=this._getMenuActions(this._editor.getModel(),this._editor.isSimpleWidget?u.MenuId.SimpleEditorContext:u.MenuId.EditorContext);r.length>0&&this._doShowContextMenu(r,a)}_getMenuActions(a,r){const c=[],g=this._menuService.createMenu(r,this._contextKeyService),f=g.getActions({arg:a.uri});g.dispose();for(const _ of f){const[,p]=_;let m=0;for(const S of p)if(S instanceof u.SubmenuItemAction){const E=this._getMenuActions(a,S.item.submenu);E.length>0&&(c.push(new k.SubmenuAction(S.id,S.label,E)),m++)}else c.push(S),m++;m&&c.push(new k.Separator)}return c.length&&c.pop(),c}_doShowContextMenu(a,r=null){if(!this._editor.hasModel())return;const c=this._editor.getOption(55);if(this._editor.updateOptions({hover:{enabled:!1}}),!r){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();const f=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),_=y.getDomNodePagePosition(this._editor.getDomNode()),p=_.left+f.left,m=_.top+f.top+f.height;r={x:p,y:m}}const g=this._editor.getOption(117)&&!w.isIOS;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:g?this._editor.getDomNode():void 0,getAnchor:()=>r,getActions:()=>a,getActionViewItem:f=>{const _=this._keybindingFor(f);if(_)return new v.ActionViewItem(f,f,{label:!0,keybinding:_.getLabel(),isMenu:!0});const p=f;return typeof p.getActionViewItem=="function"?p.getActionViewItem():new v.ActionViewItem(f,f,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:f=>this._keybindingFor(f),onHide:f=>{this._contextMenuIsBeingShownCount--,this._editor.focus(),this._editor.updateOptions({hover:c})}})}_showScrollbarContextMenu(a){if(!this._editor.hasModel())return;const r=this._editor.getOption(67);let c=0;const g=S=>({id:`menu-action-${++c}`,label:S.label,tooltip:"",class:void 0,enabled:typeof S.enabled>"u"?!0:S.enabled,checked:S.checked,run:S.run,dispose:()=>null}),f=(S,E)=>new k.SubmenuAction(`menu-action-${++c}`,S,E,void 0),_=(S,E,L,N,I)=>{if(!E)return g({label:S,enabled:E,run:()=>{}});const R=O=>()=>{this._configurationService.updateValue(L,O)},F=[];for(const O of I)F.push(g({label:O.label,checked:N===O.value,run:R(O.value)}));return f(S,F)},p=[];p.push(g({label:h.localize(0,null),checked:r.enabled,run:()=>{this._configurationService.updateValue("editor.minimap.enabled",!r.enabled)}})),p.push(new k.Separator),p.push(g({label:h.localize(1,null),enabled:r.enabled,checked:r.renderCharacters,run:()=>{this._configurationService.updateValue("editor.minimap.renderCharacters",!r.renderCharacters)}})),p.push(_(h.localize(2,null),r.enabled,"editor.minimap.size",r.size,[{label:h.localize(3,null),value:"proportional"},{label:h.localize(4,null),value:"fill"},{label:h.localize(5,null),value:"fit"}])),p.push(_(h.localize(6,null),r.enabled,"editor.minimap.showSlider",r.showSlider,[{label:h.localize(7,null),value:"mouseover"},{label:h.localize(8,null),value:"always"}]));const m=this._editor.getOption(117)&&!w.isIOS;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:m?this._editor.getDomNode():void 0,getAnchor:()=>a,getActions:()=>p,onHide:S=>{this._contextMenuIsBeingShownCount--,this._editor.focus()}})}_keybindingFor(a){return this._keybindingService.lookupKeybinding(a.id)}dispose(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()}};s.ID="editor.contrib.contextmenu",s=Ie([pe(1,i.IContextMenuService),pe(2,i.IContextViewService),pe(3,n.IContextKeyService),pe(4,t.IKeybindingService),pe(5,u.IMenuService),pe(6,o.IConfigurationService)],s),e.ContextMenuController=s;class d extends b.EditorAction{constructor(){super({id:"editor.action.showContextMenu",label:h.localize(9,null),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:C.EditorContextKeys.textInputFocus,primary:1092,weight:100}})}run(a,r){var c;(c=s.get(r))===null||c===void 0||c.showContextMenu()}}(0,b.registerEditorContribution)(s.ID,s),(0,b.registerEditorAction)(d)}),define(oe[699],se([1,0,2,12,24,552]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CursorRedo=e.CursorUndo=e.CursorUndoRedoController=void 0;class w{constructor(i){this.selections=i}equals(i){const t=this.selections.length,o=i.selections.length;if(t!==o)return!1;for(let s=0;s<t;s++)if(!this.selections[s].equalsSelection(i.selections[s]))return!1;return!0}}class b{constructor(i,t,o){this.cursorState=i,this.scrollTop=t,this.scrollLeft=o}}class C extends y.Disposable{constructor(i){super(),this._editor=i,this._isCursorUndoRedo=!1,this._undoStack=[],this._redoStack=[],this._register(i.onDidChangeModel(t=>{this._undoStack=[],this._redoStack=[]})),this._register(i.onDidChangeModelContent(t=>{this._undoStack=[],this._redoStack=[]})),this._register(i.onDidChangeCursorSelection(t=>{if(this._isCursorUndoRedo||!t.oldSelections||t.oldModelVersionId!==t.modelVersionId)return;const o=new w(t.oldSelections);this._undoStack.length>0&&this._undoStack[this._undoStack.length-1].cursorState.equals(o)||(this._undoStack.push(new b(o,i.getScrollTop(),i.getScrollLeft())),this._redoStack=[],this._undoStack.length>50&&this._undoStack.shift())}))}static get(i){return i.getContribution(C.ID)}cursorUndo(){!this._editor.hasModel()||this._undoStack.length===0||(this._redoStack.push(new b(new w(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 b(new w(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop()))}_applyState(i){this._isCursorUndoRedo=!0,this._editor.setSelections(i.cursorState.selections),this._editor.setScrollPosition({scrollTop:i.scrollTop,scrollLeft:i.scrollLeft}),this._isCursorUndoRedo=!1}}e.CursorUndoRedoController=C,C.ID="editor.contrib.cursorUndoRedoController";class h extends v.EditorAction{constructor(){super({id:"cursorUndo",label:D.localize(0,null),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:k.EditorContextKeys.textInputFocus,primary:2099,weight:100}})}run(i,t,o){var s;(s=C.get(t))===null||s===void 0||s.cursorUndo()}}e.CursorUndo=h;class u extends v.EditorAction{constructor(){super({id:"cursorRedo",label:D.localize(1,null),alias:"Cursor Redo",precondition:void 0})}run(i,t,o){var s;(s=C.get(t))===null||s===void 0||s.cursorRedo()}}e.CursorRedo=u,(0,v.registerEditorContribution)(C.ID,C),(0,v.registerEditorAction)(h),(0,v.registerEditorAction)(u)}),define(oe[700],se([1,0,12,16,21,73,9,53,554]),function(q,e,y,v,k,D,w,b,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorKeybindingCancellationTokenSource=void 0;const h=(0,w.createDecorator)("IEditorCancelService"),u=new v.RawContextKey("cancellableOperation",!1,(0,C.localize)(0,null));(0,b.registerSingleton)(h,class{constructor(){this._tokens=new WeakMap}add(i,t){let o=this._tokens.get(i);o||(o=i.invokeWithinContext(d=>{const l=u.bindTo(d.get(v.IContextKeyService)),a=new D.LinkedList;return{key:l,tokens:a}}),this._tokens.set(i,o));let s;return o.key.set(!0),s=o.tokens.push(t),()=>{s&&(s(),o.key.set(!o.tokens.isEmpty()),s=void 0)}}cancel(i){const t=this._tokens.get(i);if(!t)return;const o=t.tokens.pop();o&&(o.cancel(),t.key.set(!t.tokens.isEmpty()))}},!0);class n extends k.CancellationTokenSource{constructor(t,o){super(o),this.editor=t,this._unregister=t.invokeWithinContext(s=>s.get(h).add(t,this))}dispose(){this._unregister(),super.dispose()}}e.EditorKeybindingCancellationTokenSource=n,(0,y.registerEditorCommand)(new class extends y.EditorCommand{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:u})}runEditorCommand(i,t){i.get(h).cancel(t)}})}),define(oe[95],se([1,0,8,3,21,2,700]),function(q,e,y,v,k,D,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextModelCancellationTokenSource=e.EditorStateCancellationTokenSource=e.EditorState=void 0;class b{constructor(n,i){if(this.flags=i,(this.flags&1)!=0){const t=n.getModel();this.modelVersionId=t?y.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 b))return!1;const i=n;return!(this.modelVersionId!==i.modelVersionId||this.scrollLeft!==i.scrollLeft||this.scrollTop!==i.scrollTop||!this.position&&i.position||this.position&&!i.position||this.position&&i.position&&!this.position.equals(i.position)||!this.selection&&i.selection||this.selection&&!i.selection||this.selection&&i.selection&&!this.selection.equalsRange(i.selection))}validate(n){return this._equals(new b(n,this.flags))}}e.EditorState=b;class C extends w.EditorKeybindingCancellationTokenSource{constructor(n,i,t,o){super(n,o),this._listener=new D.DisposableStore,i&4&&this._listener.add(n.onDidChangeCursorPosition(s=>{(!t||!v.Range.containsPosition(t,s.position))&&this.cancel()})),i&2&&this._listener.add(n.onDidChangeCursorSelection(s=>{(!t||!v.Range.containsRange(t,s.selection))&&this.cancel()})),i&8&&this._listener.add(n.onDidScrollChange(s=>this.cancel())),i&1&&(this._listener.add(n.onDidChangeModel(s=>this.cancel())),this._listener.add(n.onDidChangeModelContent(s=>this.cancel())))}dispose(){this._listener.dispose(),super.dispose()}}e.EditorStateCancellationTokenSource=C;class h extends k.CancellationTokenSource{constructor(n,i){super(i),this._listener=n.onDidChangeContent(()=>this.cancel())}dispose(){this._listener.dispose(),super.dispose()}}e.TextModelCancellationTokenSource=h}),define(oe[170],se([1,0,18,21,14,2,22,95,3,23,50,26,71,131,20]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCodeActions=e.CodeActionItem=e.fixAllCommandId=e.organizeImportsCommandId=e.sourceActionCommandId=e.refactorPreviewCommandId=e.refactorCommandId=e.codeActionCommandId=void 0,e.codeActionCommandId="editor.action.codeAction",e.refactorCommandId="editor.action.refactor",e.refactorPreviewCommandId="editor.action.refactor.preview",e.sourceActionCommandId="editor.action.sourceAction",e.organizeImportsCommandId="editor.action.organizeImports",e.fixAllCommandId="editor.action.fixAll";class s{constructor(f,_){this.action=f,this.provider=_}resolve(f){var _;return be(this,void 0,void 0,function*(){if(!((_=this.provider)===null||_===void 0)&&_.resolveCodeAction&&!this.action.edit){let p;try{p=yield this.provider.resolveCodeAction(this.action,f)}catch(m){(0,k.onUnexpectedExternalError)(m)}p&&(this.action.edit=p.edit)}return this})}}e.CodeActionItem=s;class d extends D.Disposable{constructor(f,_,p){super(),this.documentation=_,this._register(p),this.allActions=[...f].sort(d.codeActionsComparator),this.validActions=this.allActions.filter(({action:m})=>!m.disabled)}static codeActionsComparator({action:f},{action:_}){return f.isPreferred&&!_.isPreferred?-1:!f.isPreferred&&_.isPreferred?1:(0,y.isNonEmptyArray)(f.diagnostics)?(0,y.isNonEmptyArray)(_.diagnostics)?f.diagnostics[0].message.localeCompare(_.diagnostics[0].message):-1:(0,y.isNonEmptyArray)(_.diagnostics)?1:0}get hasAutoFix(){return this.validActions.some(({action:f})=>!!f.kind&&t.CodeActionKind.QuickFix.contains(new t.CodeActionKind(f.kind))&&!!f.isPreferred)}}const l={actions:[],documentation:void 0};function a(g,f,_,p,m,S){var E;const L=p.filter||{},N={only:(E=L.include)===null||E===void 0?void 0:E.value,trigger:p.type},I=new b.TextModelCancellationTokenSource(f,S),R=r(g,f,L),F=new D.DisposableStore,O=R.map(M=>be(this,void 0,void 0,function*(){try{m.report(M);const P=yield M.provideCodeActions(f,_,N,I.token);if(P&&F.add(P),I.token.isCancellationRequested)return l;const A=(P?.actions||[]).filter(K=>K&&(0,t.filtersAction)(L,K)),B=c(M,A,L.include);return{actions:A.map(K=>new s(K,M)),documentation:B}}catch(P){if((0,k.isCancellationError)(P))throw P;return(0,k.onUnexpectedExternalError)(P),l}})),x=g.onDidChange(()=>{const M=g.all(f);(0,y.equals)(M,R)||I.cancel()});return Promise.all(O).then(M=>{const P=M.map(B=>B.actions).flat(),A=(0,y.coalesce)(M.map(B=>B.documentation));return new d(P,A,F)}).finally(()=>{x.dispose(),I.dispose()})}e.getCodeActions=a;function r(g,f,_){return g.all(f).filter(p=>p.providedCodeActionKinds?p.providedCodeActionKinds.some(m=>(0,t.mayIncludeActionsOfKind)(_,new t.CodeActionKind(m))):!0)}function c(g,f,_){if(!g.documentation)return;const p=g.documentation.map(m=>({kind:new t.CodeActionKind(m.kind),command:m.command}));if(_){let m;for(const S of p)S.kind.contains(_)&&(m?m.kind.contains(S.kind)&&(m=S):m=S);if(m)return m?.command}for(const m of f)if(m.kind){for(const S of p)if(S.kind.contains(new t.CodeActionKind(m.kind)))return S.command}}n.CommandsRegistry.registerCommand("_executeCodeActionProvider",function(g,f,_,p,m){return be(this,void 0,void 0,function*(){if(!(f instanceof w.URI))throw(0,k.illegalArgument)();const{codeActionProvider:S}=g.get(o.ILanguageFeaturesService),E=g.get(u.IModelService).getModel(f);if(!E)throw(0,k.illegalArgument)();const L=h.Selection.isISelection(_)?h.Selection.liftSelection(_):C.Range.isIRange(_)?E.validateRange(_):void 0;if(!L)throw(0,k.illegalArgument)();const N=typeof p=="string"?new t.CodeActionKind(p):void 0,I=yield a(S,E,L,{type:1,triggerAction:t.CodeActionTriggerSource.Default,filter:{includeSourceActions:!0,include:N}},i.Progress.None,v.CancellationToken.None),R=[],F=Math.min(I.validActions.length,typeof m=="number"?m:0);for(let O=0;O<F;O++)R.push(I.validActions[O].resolve(v.CancellationToken.None));try{return yield Promise.all(R),I.validActions.map(O=>O.action)}finally{setTimeout(()=>I.dispose(),100)}})})}),define(oe[302],se([1,0,7,113,42,14,145,2,11,20,170,131,544,30,16,78,44,86,15,374]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CodeActionKeybindingResolver=e.CodeActionMenu=e.Context=void 0,e.Context={Visible:new o.RawContextKey("CodeActionMenuVisible",!1,(0,i.localize)(0,null))};class r extends k.Action{constructor(E,L){super(E.command?E.command.id:E.title,c(E.title),void 0,!E.disabled,L),this.action=E}}function c(S){return S.replace(/\r\n|\r|\n/g," ")}const g="codeActionWidget",f=26;let _=class{constructor(S,E){this.acceptKeybindings=S,this.keybindingService=E}get templateId(){return g}renderTemplate(S){const E=Object.create(null);return E.disposables=[],E.root=S,E.text=document.createElement("span"),S.append(E.text),E}renderElement(S,E,L){const N=L,I=S.title,R=S.isEnabled,F=S.isSeparator,O=S.isDocumentation;N.text.textContent=I,R?N.root.classList.remove("option-disabled"):(N.root.classList.add("option-disabled"),N.root.style.backgroundColor="transparent !important"),F&&(N.root.classList.add("separator"),N.root.style.height="10px"),O||(()=>{var x,M;const[P,A]=this.acceptKeybindings;N.root.title=(0,i.localize)(1,null,(x=this.keybindingService.lookupKeybinding(P))===null||x===void 0?void 0:x.getLabel(),(M=this.keybindingService.lookupKeybinding(A))===null||M===void 0?void 0:M.getLabel())})()}disposeTemplate(S){S.disposables=(0,b.dispose)(S.disposables)}};_=Ie([pe(1,d.IKeybindingService)],_);let p=class Di extends b.Disposable{constructor(E,L,N,I,R,F,O,x,M,P){super(),this._editor=E,this._delegate=L,this._contextMenuService=N,this._languageFeaturesService=R,this._telemetryService=F,this._configurationService=x,this._contextViewService=M,this._contextKeyService=P,this._showingActions=this._register(new b.MutableDisposable),this.codeActionList=this._register(new b.MutableDisposable),this.options=[],this._visible=!1,this.viewItems=[],this.hasSeperator=!1,this._keybindingResolver=new m({getKeybindings:()=>I.getKeybindings()}),this._ctxMenuWidgetVisible=e.Context.Visible.bindTo(this._contextKeyService),this.listRenderer=new _(["onEnterSelectCodeAction","onEnterSelectCodeActionWithPreview"],I)}get isVisible(){return this._visible}isCodeActionWidgetEnabled(E){return this._configurationService.getValue("editor.experimental.useCustomCodeActionMenu",{resource:E.uri})}_onListSelection(E){E.elements.length&&E.elements.forEach(L=>{L.isEnabled&&(L.action.run(),this.hideCodeActionWidget())})}_onListHover(E){var L,N,I,R;E.element?!((N=E.element)===null||N===void 0)&&N.isEnabled?((I=this.codeActionList.value)===null||I===void 0||I.setFocus([E.element.index]),this.focusedEnabledItem=this.viewItems.indexOf(E.element),this.currSelectedItem=E.element.index):(this.currSelectedItem=void 0,(R=this.codeActionList.value)===null||R===void 0||R.setFocus([E.element.index])):(this.currSelectedItem=void 0,(L=this.codeActionList.value)===null||L===void 0||L.setFocus([]))}renderCodeActionMenuList(E,L){var N;const I=new b.DisposableStore,R=document.createElement("div"),F=document.createElement("div");this.block=E.appendChild(F),this.block.classList.add("context-view-block"),this.block.style.position="fixed",this.block.style.cursor="initial",this.block.style.left="0",this.block.style.top="0",this.block.style.width="100%",this.block.style.height="100%",this.block.style.zIndex="-1",I.add(y.addDisposableListener(this.block,y.EventType.MOUSE_DOWN,B=>B.stopPropagation())),R.id="codeActionMenuWidget",R.classList.add("codeActionMenuWidget"),E.appendChild(R),this.codeActionList.value=new v.List("codeActionWidget",R,{getHeight(B){return B.isSeparator?10:f},getTemplateId(B){return"codeActionWidget"}},[this.listRenderer],{keyboardSupport:!1}),I.add(this.codeActionList.value.onMouseOver(B=>this._onListHover(B))),I.add(this.codeActionList.value.onDidChangeFocus(B=>{var K;return(K=this.codeActionList.value)===null||K===void 0?void 0:K.domFocus()})),I.add(this.codeActionList.value.onDidChangeSelection(B=>this._onListSelection(B))),I.add(this._editor.onDidLayoutChange(B=>this.hideCodeActionWidget())),L.forEach((B,K)=>{const T=B.class==="separator";let ee=!1;B instanceof r&&(ee=B.action.kind===Di.documentationID),T&&(this.hasSeperator=!0);const J={title:B.label,detail:B.tooltip,action:L[K],isEnabled:B.enabled,isSeparator:T,index:K,isDocumentation:ee};B.enabled&&this.viewItems.push(J),this.options.push(J)}),this.codeActionList.value.splice(0,this.codeActionList.value.length,this.options);const O=this.hasSeperator?(L.length-1)*f+10:L.length*f;R.style.height=String(O)+"px",this.codeActionList.value.layout(O);const x=[];this.options.forEach((B,K)=>{var T,ee;if(!this.codeActionList.value)return;const J=(ee=document.getElementById((T=this.codeActionList.value)===null||T===void 0?void 0:T.getElementID(K)))===null||ee===void 0?void 0:ee.getElementsByTagName("span")[0].offsetWidth;x.push(Number(J))});const M=Math.max(...x);R.style.width=M+52+"px",(N=this.codeActionList.value)===null||N===void 0||N.layout(O,M),this.viewItems.length<1||this.viewItems.every(B=>B.isDocumentation)?this.currSelectedItem=void 0:(this.focusedEnabledItem=0,this.currSelectedItem=this.viewItems[0].index,this.codeActionList.value.setFocus([this.currSelectedItem])),this.codeActionList.value.domFocus();const P=y.trackFocus(E),A=P.onDidBlur(()=>{this.hideCodeActionWidget()});return I.add(A),I.add(P),this._ctxMenuWidgetVisible.set(!0),I}focusPrevious(){var E;if(typeof this.focusedEnabledItem>"u")this.focusedEnabledItem=this.viewItems[0].index;else if(this.viewItems.length<1)return!1;const L=this.focusedEnabledItem;let N;do this.focusedEnabledItem=this.focusedEnabledItem-1,this.focusedEnabledItem<0&&(this.focusedEnabledItem=this.viewItems.length-1),N=this.viewItems[this.focusedEnabledItem],(E=this.codeActionList.value)===null||E===void 0||E.setFocus([N.index]),this.currSelectedItem=N.index;while(this.focusedEnabledItem!==L&&(!N.isEnabled||N.action.id===k.Separator.ID));return!0}focusNext(){var E;if(typeof this.focusedEnabledItem>"u")this.focusedEnabledItem=this.viewItems.length-1;else if(this.viewItems.length<1)return!1;const L=this.focusedEnabledItem;let N;do this.focusedEnabledItem=(this.focusedEnabledItem+1)%this.viewItems.length,N=this.viewItems[this.focusedEnabledItem],(E=this.codeActionList.value)===null||E===void 0||E.setFocus([N.index]),this.currSelectedItem=N.index;while(this.focusedEnabledItem!==L&&(!N.isEnabled||N.action.id===k.Separator.ID));return!0}navigateListWithKeysUp(){this.focusPrevious()}navigateListWithKeysDown(){this.focusNext()}onEnterSet(){var E;typeof this.currSelectedItem=="number"&&((E=this.codeActionList.value)===null||E===void 0||E.setSelection([this.currSelectedItem]))}dispose(){super.dispose()}hideCodeActionWidget(){this._ctxMenuWidgetVisible.reset(),this.options=[],this.viewItems=[],this.focusedEnabledItem=0,this.currSelectedItem=void 0,this.hasSeperator=!1,this._contextViewService.hideContextView({source:this})}codeActionTelemetry(E,L,N){this._telemetryService.publicLog2("codeAction.applyCodeAction",{codeActionFrom:E,validCodeActions:N.validActions.length,cancelled:L})}show(E,L,N,I){return be(this,void 0,void 0,function*(){const R=this._editor.getModel();if(!R)return;const F=I.includeDisabledActions?L.allActions:L.validActions;if(!F.length){this._visible=!1;return}if(!this._editor.getDomNode())throw this._visible=!1,(0,D.canceled)();this._visible=!0,this._showingActions.value=L;const O=this.getMenuActions(E,F,L.documentation),x=C.Position.isIPosition(N)?this._toCoords(N):N||{x:0,y:0},M=this._keybindingResolver.getResolver(),P=this._editor.getOption(117);this.isCodeActionWidgetEnabled(R)?this._contextViewService.showContextView({getAnchor:()=>x,render:A=>this.renderCodeActionMenuList(A,O),onHide:A=>{const B=I.fromLightbulb?n.CodeActionTriggerSource.Lightbulb:E.triggerAction;this.codeActionTelemetry(B,A,L),this._visible=!1,this._editor.focus()}},this._editor.getDomNode(),!1):this._contextMenuService.showContextMenu({domForShadowRoot:P?this._editor.getDomNode():void 0,getAnchor:()=>x,getActions:()=>O,onHide:A=>{const B=I.fromLightbulb?n.CodeActionTriggerSource.Lightbulb:E.triggerAction;this.codeActionTelemetry(B,A,L),this._visible=!1,this._editor.focus()},autoSelectFirstItem:!0,getKeyBinding:A=>A instanceof r?M(A.action):void 0})})}getMenuActions(E,L,N){var I,R;const F=P=>new r(P.action,()=>this._delegate.onSelectCodeAction(P,E)),O=L.map(F),x=[...N],M=this._editor.getModel();if(M&&O.length)for(const P of this._languageFeaturesService.codeActionProvider.all(M))P._getAdditionalMenuItems&&x.push(...P._getAdditionalMenuItems({trigger:E.type,only:(R=(I=E.filter)===null||I===void 0?void 0:I.include)===null||R===void 0?void 0:R.value},L.map(A=>A.action)));return x.length&&O.push(new k.Separator,...x.map(P=>F(new u.CodeActionItem({title:P.title,command:P,kind:Di.documentationID},void 0)))),O}_toCoords(E){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(E,1),this._editor.render();const L=this._editor.getScrolledVisiblePosition(E),N=y.getDomNodePagePosition(this._editor.getDomNode()),I=N.left+L.left,R=N.top+L.top+L.height;return{x:I,y:R}}};p.documentationID="_documentation",p=Ie([pe(2,s.IContextMenuService),pe(3,d.IKeybindingService),pe(4,h.ILanguageFeaturesService),pe(5,l.ITelemetryService),pe(6,a.IThemeService),pe(7,t.IConfigurationService),pe(8,s.IContextViewService),pe(9,o.IContextKeyService)],p),e.CodeActionMenu=p;class m{constructor(E){this._keybindingProvider=E}getResolver(){const E=new w.Lazy(()=>this._keybindingProvider.getKeybindings().filter(L=>m.codeActionCommands.indexOf(L.command)>=0).filter(L=>L.resolvedKeybinding).map(L=>{let N=L.commandArgs;return L.command===u.organizeImportsCommandId?N={kind:n.CodeActionKind.SourceOrganizeImports.value}:L.command===u.fixAllCommandId&&(N={kind:n.CodeActionKind.SourceFixAll.value}),Object.assign({resolvedKeybinding:L.resolvedKeybinding},n.CodeActionCommandArgs.fromUser(N,{kind:n.CodeActionKind.None,apply:"never"}))}));return L=>{if(L.kind){const N=this.bestKeybindingForCodeAction(L,E.getValue());return N?.resolvedKeybinding}}}bestKeybindingForCodeAction(E,L){if(!E.kind)return;const N=new n.CodeActionKind(E.kind);return L.filter(I=>I.kind.contains(N)).filter(I=>I.preferred?E.isPreferred:!0).reduceRight((I,R)=>I?I.kind.contains(R.kind)?R:I:R,void 0)}}e.CodeActionKeybindingResolver=m,m.codeActionCommands=[u.refactorCommandId,u.codeActionCommandId,u.sourceActionCommandId,u.organizeImportsCommandId,u.fixAllCommandId]});var si=this&&this.__classPrivateFieldGet||function(q,e,y,v){if(y==="a"&&!v)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?q!==e||!v:!e.has(q))throw new TypeError("Cannot read private member from an object whose class did not declare it");return y==="m"?v:y==="a"?v.call(q):v?v.value:e.get(q)},bi=this&&this.__classPrivateFieldSet||function(q,e,y,v,k){if(v==="m")throw new TypeError("Private method is not writable");if(v==="a"&&!k)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?q!==e||!k:!e.has(q))throw new TypeError("Cannot write private member to an object whose class did not declare it");return v==="a"?k.call(q,y):k?k.value=y:e.set(q,y),y};define(oe[701],se([1,0,10,14,6,2,43,3,16,71,170,131]),function(q,e,y,v,k,D,w,b,C,h,u,n){"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),e.CodeActionModel=e.CodeActionsState=e.SUPPORTED_CODE_ACTIONS=void 0,e.SUPPORTED_CODE_ACTIONS=new C.RawContextKey("supportedCodeAction","");class t extends D.Disposable{constructor(a,r,c,g=250){super(),this._editor=a,this._markerService=r,this._signalChange=c,this._delay=g,this._autoTriggerTimer=this._register(new y.TimeoutTimer),this._register(this._markerService.onMarkerChanged(f=>this._onMarkerChanges(f))),this._register(this._editor.onDidChangeCursorPosition(()=>this._onCursorChange()))}trigger(a){const r=this._getRangeOfSelectionUnlessWhitespaceEnclosed(a);return this._createEventAndSignalChange(a,r)}_onMarkerChanges(a){const r=this._editor.getModel();!r||a.some(c=>(0,w.isEqual)(c,r.uri))&&this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2,triggerAction:n.CodeActionTriggerSource.Default})},this._delay)}_onCursorChange(){this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2,triggerAction:n.CodeActionTriggerSource.Default})},this._delay)}_getRangeOfMarker(a){const r=this._editor.getModel();if(r)for(const c of this._markerService.read({resource:r.uri})){const g=r.validateRange(c);if(b.Range.intersectRanges(g,a))return b.Range.lift(g)}}_getRangeOfSelectionUnlessWhitespaceEnclosed(a){if(!this._editor.hasModel())return;const r=this._editor.getModel(),c=this._editor.getSelection();if(c.isEmpty()&&a.type===2){const{lineNumber:g,column:f}=c.getPosition(),_=r.getLineContent(g);if(_.length===0)return;if(f===1){if(/\s/.test(_[0]))return}else if(f===r.getLineMaxColumn(g)){if(/\s/.test(_[_.length-1]))return}else if(/\s/.test(_[f-2])&&/\s/.test(_[f-1]))return}return c}_createEventAndSignalChange(a,r){const c=this._editor.getModel();if(!r||!c){this._signalChange(void 0);return}const g=this._getRangeOfMarker(r),f=g?g.getStartPosition():r.getStartPosition(),_={trigger:a,selection:r,position:f};return this._signalChange(_),_}}var o;(function(l){l.Empty={type:0};class a{constructor(c,g,f,_){this.trigger=c,this.rangeOrSelection=g,this.position=f,this._cancellablePromise=_,this.type=1,this.actions=_.catch(p=>{if((0,v.isCancellationError)(p))return s;throw p})}cancel(){this._cancellablePromise.cancel()}}l.Triggered=a})(o=e.CodeActionsState||(e.CodeActionsState={}));const s={allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1};class d extends D.Disposable{constructor(a,r,c,g,f){super(),this._editor=a,this._registry=r,this._markerService=c,this._progressService=f,this._codeActionOracle=this._register(new D.MutableDisposable),this._state=o.Empty,this._onDidChangeState=this._register(new k.Emitter),this.onDidChangeState=this._onDidChangeState.event,i.set(this,!1),this._supportedCodeActions=e.SUPPORTED_CODE_ACTIONS.bindTo(g),this._register(this._editor.onDidChangeModel(()=>this._update())),this._register(this._editor.onDidChangeModelLanguage(()=>this._update())),this._register(this._registry.onDidChange(()=>this._update())),this._update()}dispose(){si(this,i,"f")||(bi(this,i,!0,"f"),super.dispose(),this.setState(o.Empty,!0))}_update(){if(si(this,i,"f"))return;this._codeActionOracle.value=void 0,this.setState(o.Empty);const a=this._editor.getModel();if(a&&this._registry.has(a)&&!this._editor.getOption(83)){const r=[];for(const c of this._registry.all(a))Array.isArray(c.providedCodeActionKinds)&&r.push(...c.providedCodeActionKinds);this._supportedCodeActions.set(r.join(" ")),this._codeActionOracle.value=new t(this._editor,this._markerService,c=>{var g;if(!c){this.setState(o.Empty);return}const f=(0,y.createCancelablePromise)(_=>(0,u.getCodeActions)(this._registry,a,c.selection,c.trigger,h.Progress.None,_));c.trigger.type===1&&((g=this._progressService)===null||g===void 0||g.showWhile(f,250)),this.setState(new o.Triggered(c.trigger,c.selection,c.position,f))},void 0),this._codeActionOracle.value.trigger({type:2,triggerAction:n.CodeActionTriggerSource.Default})}else this._supportedCodeActions.reset()}trigger(a){var r;(r=this._codeActionOracle.value)===null||r===void 0||r.trigger(a)}setState(a,r){a!==this._state&&(this._state.type===1&&this._state.cancel(),this._state=a,!r&&!si(this,i,"f")&&this._onDidChangeState.fire(a))}}e.CodeActionModel=d,i=new WeakMap}),define(oe[702],se([1,0,12,164,559]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class D extends y.EditorAction{constructor(){super({id:"editor.action.fontZoomIn",label:k.localize(0,null),alias:"Editor Font Zoom In",precondition:void 0})}run(h,u){v.EditorZoom.setZoomLevel(v.EditorZoom.getZoomLevel()+1)}}class w extends y.EditorAction{constructor(){super({id:"editor.action.fontZoomOut",label:k.localize(1,null),alias:"Editor Font Zoom Out",precondition:void 0})}run(h,u){v.EditorZoom.setZoomLevel(v.EditorZoom.getZoomLevel()-1)}}class b extends y.EditorAction{constructor(){super({id:"editor.action.fontZoomReset",label:k.localize(2,null),alias:"Editor Font Zoom Reset",precondition:void 0})}run(h,u){v.EditorZoom.setZoomLevel(0)}}(0,y.registerEditorAction)(D),(0,y.registerEditorAction)(w),(0,y.registerEditorAction)(b)}),define(oe[303],se([1,0,49,18,21,14,55,73,19,22,95,155,11,3,23,92,58,247,560,26,625,9,20]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r,c,g,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getOnTypeFormattingEdits=e.getDocumentFormattingEditsUntilResult=e.getDocumentRangeFormattingEditsUntilResult=e.formatDocumentWithProvider=e.formatDocumentWithSelectedProvider=e.formatDocumentRangesWithProvider=e.formatDocumentRangesWithSelectedProvider=e.FormattingConflicts=e.getRealAndSyntheticDocumentFormattersOrdered=e.alertFormattingEdits=void 0;function _(O){if(O=O.filter(A=>A.range),!O.length)return;let{range:x}=O[0];for(let A=1;A<O.length;A++)x=t.Range.plusRange(x,O[A].range);const{startLineNumber:M,endLineNumber:P}=x;M===P?O.length===1?(0,y.alert)(a.localize(0,null,M)):(0,y.alert)(a.localize(1,null,O.length,M)):O.length===1?(0,y.alert)(a.localize(2,null,M,P)):(0,y.alert)(a.localize(3,null,O.length,M,P))}e.alertFormattingEdits=_;function p(O,x,M){const P=[],A=new Set,B=O.ordered(M);for(const T of B)P.push(T),T.extensionId&&A.add(c.ExtensionIdentifier.toKey(T.extensionId));const K=x.ordered(M);for(const T of K){if(T.extensionId){if(A.has(c.ExtensionIdentifier.toKey(T.extensionId)))continue;A.add(c.ExtensionIdentifier.toKey(T.extensionId))}P.push({displayName:T.displayName,extensionId:T.extensionId,provideDocumentFormattingEdits(ee,J,$){return T.provideDocumentRangeFormattingEdits(ee,ee.getFullModelRange(),J,$)}})}return P}e.getRealAndSyntheticDocumentFormattersOrdered=p;class m{static setFormatterSelector(x){return{dispose:m._selectors.unshift(x)}}static select(x,M,P){return be(this,void 0,void 0,function*(){if(x.length===0)return;const A=w.Iterable.first(m._selectors);if(A)return yield A(x,M,P)})}}e.FormattingConflicts=m,m._selectors=new b.LinkedList;function S(O,x,M,P,A,B){return be(this,void 0,void 0,function*(){const K=O.get(g.IInstantiationService),{documentRangeFormattingEditProvider:T}=O.get(f.ILanguageFeaturesService),ee=(0,n.isCodeEditor)(x)?x.getModel():x,J=T.ordered(ee),$=yield m.select(J,ee,P);$&&(A.report($),yield K.invokeFunction(E,$,x,M,B))})}e.formatDocumentRangesWithSelectedProvider=S;function E(O,x,M,P,A){return be(this,void 0,void 0,function*(){const B=O.get(s.IEditorWorkerService);let K,T;(0,n.isCodeEditor)(M)?(K=M.getModel(),T=new u.EditorStateCancellationTokenSource(M,5,void 0,A)):(K=M,T=new u.TextModelCancellationTokenSource(M,A));const ee=[];let J=0;for(const Z of(0,v.asArray)(P).sort(t.Range.compareRangesUsingStarts))J>0&&t.Range.areIntersectingOrTouching(ee[J-1],Z)?ee[J-1]=t.Range.fromPositions(ee[J-1].getStartPosition(),Z.getEndPosition()):J=ee.push(Z);const $=Z=>be(this,void 0,void 0,function*(){return(yield x.provideDocumentRangeFormattingEdits(K,Z,K.getFormattingOptions(),T.token))||[]}),j=(Z,X)=>{if(!Z.length||!X.length)return!1;const ie=Z.reduce((H,ae)=>t.Range.plusRange(H,ae.range),Z[0].range);if(!X.some(H=>t.Range.intersectRanges(ie,H.range)))return!1;for(const H of Z)for(const ae of X)if(t.Range.intersectRanges(H.range,ae.range))return!0;return!1},G=[],te=[];try{for(const Z of ee){if(T.token.isCancellationRequested)return!0;te.push(yield $(Z))}for(let Z=0;Z<ee.length;++Z)for(let X=Z+1;X<ee.length;++X){if(T.token.isCancellationRequested)return!0;if(j(te[Z],te[X])){const ie=t.Range.plusRange(ee[Z],ee[X]),H=yield $(ie);ee.splice(X,1),ee.splice(Z,1),ee.push(ie),te.splice(X,1),te.splice(Z,1),te.push(H),Z=0,X=0}}for(const Z of te){if(T.token.isCancellationRequested)return!0;const X=yield B.computeMoreMinimalEdits(K.uri,Z);X&&G.push(...X)}}finally{T.dispose()}if(G.length===0)return!1;if((0,n.isCodeEditor)(M))l.FormattingEdit.execute(M,G,!0),_(G),M.revealPositionInCenterIfOutsideViewport(M.getPosition(),1);else{const[{range:Z}]=G,X=new o.Selection(Z.startLineNumber,Z.startColumn,Z.endLineNumber,Z.endColumn);K.pushEditOperations([X],G.map(ie=>({text:ie.text,range:t.Range.lift(ie.range),forceMoveMarkers:!0})),ie=>{for(const{range:H}of ie)if(t.Range.areIntersectingOrTouching(H,X))return[new o.Selection(H.startLineNumber,H.startColumn,H.endLineNumber,H.endColumn)];return null})}return!0})}e.formatDocumentRangesWithProvider=E;function L(O,x,M,P,A){return be(this,void 0,void 0,function*(){const B=O.get(g.IInstantiationService),K=O.get(f.ILanguageFeaturesService),T=(0,n.isCodeEditor)(x)?x.getModel():x,ee=p(K.documentFormattingEditProvider,K.documentRangeFormattingEditProvider,T),J=yield m.select(ee,T,M);J&&(P.report(J),yield B.invokeFunction(N,J,x,M,A))})}e.formatDocumentWithSelectedProvider=L;function N(O,x,M,P,A){return be(this,void 0,void 0,function*(){const B=O.get(s.IEditorWorkerService);let K,T;(0,n.isCodeEditor)(M)?(K=M.getModel(),T=new u.EditorStateCancellationTokenSource(M,5,void 0,A)):(K=M,T=new u.TextModelCancellationTokenSource(M,A));let ee;try{const J=yield x.provideDocumentFormattingEdits(K,K.getFormattingOptions(),T.token);if(ee=yield B.computeMoreMinimalEdits(K.uri,J),T.token.isCancellationRequested)return!0}finally{T.dispose()}if(!ee||ee.length===0)return!1;if((0,n.isCodeEditor)(M))l.FormattingEdit.execute(M,ee,P!==2),P!==2&&(_(ee),M.revealPositionInCenterIfOutsideViewport(M.getPosition(),1));else{const[{range:J}]=ee,$=new o.Selection(J.startLineNumber,J.startColumn,J.endLineNumber,J.endColumn);K.pushEditOperations([$],ee.map(j=>({text:j.text,range:t.Range.lift(j.range),forceMoveMarkers:!0})),j=>{for(const{range:G}of j)if(t.Range.areIntersectingOrTouching(G,$))return[new o.Selection(G.startLineNumber,G.startColumn,G.endLineNumber,G.endColumn)];return null})}return!0})}e.formatDocumentWithProvider=N;function I(O,x,M,P,A,B){return be(this,void 0,void 0,function*(){const K=x.documentRangeFormattingEditProvider.ordered(M);for(const T of K){const ee=yield Promise.resolve(T.provideDocumentRangeFormattingEdits(M,P,A,B)).catch(D.onUnexpectedExternalError);if((0,v.isNonEmptyArray)(ee))return yield O.computeMoreMinimalEdits(M.uri,ee)}})}e.getDocumentRangeFormattingEditsUntilResult=I;function R(O,x,M,P,A){return be(this,void 0,void 0,function*(){const B=p(x.documentFormattingEditProvider,x.documentRangeFormattingEditProvider,M);for(const K of B){const T=yield Promise.resolve(K.provideDocumentFormattingEdits(M,P,A)).catch(D.onUnexpectedExternalError);if((0,v.isNonEmptyArray)(T))return yield O.computeMoreMinimalEdits(M.uri,T)}})}e.getDocumentFormattingEditsUntilResult=R;function F(O,x,M,P,A,B,K){const T=x.onTypeFormattingEditProvider.ordered(M);return T.length===0||T[0].autoFormatTriggerCharacters.indexOf(A)<0?Promise.resolve(void 0):Promise.resolve(T[0].provideOnTypeFormattingEdits(M,P,A,B,K)).catch(D.onUnexpectedExternalError).then(ee=>O.computeMoreMinimalEdits(M.uri,ee))}e.getOnTypeFormattingEdits=F,r.CommandsRegistry.registerCommand("_executeFormatRangeProvider",function(O,...x){return be(this,void 0,void 0,function*(){const[M,P,A]=x;(0,C.assertType)(h.URI.isUri(M)),(0,C.assertType)(t.Range.isIRange(P));const B=O.get(d.ITextModelService),K=O.get(s.IEditorWorkerService),T=O.get(f.ILanguageFeaturesService),ee=yield B.createModelReference(M);try{return I(K,T,ee.object.textEditorModel,t.Range.lift(P),A,k.CancellationToken.None)}finally{ee.dispose()}})}),r.CommandsRegistry.registerCommand("_executeFormatDocumentProvider",function(O,...x){return be(this,void 0,void 0,function*(){const[M,P]=x;(0,C.assertType)(h.URI.isUri(M));const A=O.get(d.ITextModelService),B=O.get(s.IEditorWorkerService),K=O.get(f.ILanguageFeaturesService),T=yield A.createModelReference(M);try{return R(B,K,T.object.textEditorModel,P,k.CancellationToken.None)}finally{T.dispose()}})}),r.CommandsRegistry.registerCommand("_executeFormatOnTypeProvider",function(O,...x){return be(this,void 0,void 0,function*(){const[M,P,A,B]=x;(0,C.assertType)(h.URI.isUri(M)),(0,C.assertType)(i.Position.isIPosition(P)),(0,C.assertType)(typeof A=="string");const K=O.get(d.ITextModelService),T=O.get(s.IEditorWorkerService),ee=O.get(f.ILanguageFeaturesService),J=yield K.createModelReference(M);try{return F(T,ee,J.object.textEditorModel,i.Position.lift(P),A,B,k.CancellationToken.None)}finally{J.dispose()}})})}),define(oe[703],se([1,0,18,21,14,59,2,12,29,107,3,24,92,20,303,247,561,26,16,9,71]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let g=class{constructor(m,S,E){this._editor=m,this._languageFeaturesService=S,this._workerService=E,this._disposables=new w.DisposableStore,this._sessionDisposables=new w.DisposableStore,this._disposables.add(S.onTypeFormattingEditProvider.onDidChange(this._update,this)),this._disposables.add(m.onDidChangeModel(()=>this._update())),this._disposables.add(m.onDidChangeModelLanguage(()=>this._update())),this._disposables.add(m.onDidChangeConfiguration(L=>{L.hasChanged(51)&&this._update()}))}dispose(){this._disposables.dispose(),this._sessionDisposables.dispose()}_update(){if(this._sessionDisposables.clear(),!this._editor.getOption(51)||!this._editor.hasModel())return;const m=this._editor.getModel(),[S]=this._languageFeaturesService.onTypeFormattingEditProvider.ordered(m);if(!S||!S.autoFormatTriggerCharacters)return;const E=new h.CharacterSet;for(const L of S.autoFormatTriggerCharacters)E.add(L.charCodeAt(0));this._sessionDisposables.add(this._editor.onDidType(L=>{const N=L.charCodeAt(L.length-1);E.has(N)&&this._trigger(String.fromCharCode(N))}))}_trigger(m){if(!this._editor.hasModel()||this._editor.getSelections().length>1||!this._editor.getSelection().isEmpty())return;const S=this._editor.getModel(),E=this._editor.getPosition(),L=new v.CancellationTokenSource,N=this._editor.onDidChangeModelContent(I=>{if(I.isFlush){L.cancel(),N.dispose();return}for(let R=0,F=I.changes.length;R<F;R++)if(I.changes[R].range.endLineNumber<=E.lineNumber){L.cancel(),N.dispose();return}});(0,o.getOnTypeFormattingEdits)(this._workerService,this._languageFeaturesService,S,E,m,S.getFormattingOptions(),L.token).then(I=>{L.token.isCancellationRequested||(0,y.isNonEmptyArray)(I)&&(s.FormattingEdit.execute(this._editor,I,!0),(0,o.alertFormattingEdits)(I))}).finally(()=>{N.dispose()})}};g.ID="editor.contrib.autoFormat",g=Ie([pe(1,t.ILanguageFeaturesService),pe(2,i.IEditorWorkerService)],g);let f=class{constructor(m,S,E){this.editor=m,this._languageFeaturesService=S,this._instantiationService=E,this._callOnDispose=new w.DisposableStore,this._callOnModel=new w.DisposableStore,this._callOnDispose.add(m.onDidChangeConfiguration(()=>this._update())),this._callOnDispose.add(m.onDidChangeModel(()=>this._update())),this._callOnDispose.add(m.onDidChangeModelLanguage(()=>this._update())),this._callOnDispose.add(S.documentRangeFormattingEditProvider.onDidChange(this._update,this))}dispose(){this._callOnDispose.dispose(),this._callOnModel.dispose()}_update(){this._callOnModel.clear(),this.editor.getOption(50)&&(!this.editor.hasModel()||!this._languageFeaturesService.documentRangeFormattingEditProvider.has(this.editor.getModel())||this._callOnModel.add(this.editor.onDidPaste(({range:m})=>this._trigger(m))))}_trigger(m){!this.editor.hasModel()||this.editor.getSelections().length>1||this._instantiationService.invokeFunction(o.formatDocumentRangesWithSelectedProvider,this.editor,m,2,c.Progress.None,v.CancellationToken.None).catch(k.onUnexpectedError)}};f.ID="editor.contrib.formatOnPaste",f=Ie([pe(1,t.ILanguageFeaturesService),pe(2,r.IInstantiationService)],f);class _ extends b.EditorAction{constructor(){super({id:"editor.action.formatDocument",label:d.localize(0,null),alias:"Format Document",precondition:a.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}})}run(S,E){return be(this,void 0,void 0,function*(){if(E.hasModel()){const L=S.get(r.IInstantiationService);yield S.get(c.IEditorProgressService).showWhile(L.invokeFunction(o.formatDocumentWithSelectedProvider,E,1,c.Progress.None,v.CancellationToken.None),250)}})}}class p extends b.EditorAction{constructor(){super({id:"editor.action.formatSelection",label:d.localize(1,null),alias:"Format Selection",precondition:a.ContextKeyExpr.and(n.EditorContextKeys.writable,n.EditorContextKeys.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:n.EditorContextKeys.editorTextFocus,primary:(0,D.KeyChord)(2089,2084),weight:100},contextMenuOpts:{when:n.EditorContextKeys.hasNonEmptySelection,group:"1_modification",order:1.31}})}run(S,E){return be(this,void 0,void 0,function*(){if(!E.hasModel())return;const L=S.get(r.IInstantiationService),N=E.getModel(),I=E.getSelections().map(R=>R.isEmpty()?new u.Range(R.startLineNumber,1,R.startLineNumber,N.getLineMaxColumn(R.startLineNumber)):R);yield S.get(c.IEditorProgressService).showWhile(L.invokeFunction(o.formatDocumentRangesWithSelectedProvider,E,I,1,c.Progress.None,v.CancellationToken.None),250)})}}(0,b.registerEditorContribution)(g.ID,g),(0,b.registerEditorContribution)(f.ID,f),(0,b.registerEditorAction)(_),(0,b.registerEditorAction)(p),l.CommandsRegistry.registerCommand("editor.action.format",m=>be(void 0,void 0,void 0,function*(){const S=m.get(C.ICodeEditorService).getFocusedCodeEditor();if(!S||!S.hasModel())return;const E=m.get(l.ICommandService);S.getSelection().isEmpty()?yield E.executeCommand("editor.action.formatDocument"):yield E.executeCommand("editor.action.formatSelection")}))}),define(oe[304],se([1,0,21,14,12,137,20]),function(q,e,y,v,k,D,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getReferencesAtPosition=e.getTypeDefinitionsAtPosition=e.getImplementationsAtPosition=e.getDeclarationsAtPosition=e.getDefinitionsAtPosition=void 0;function b(o,s,d,l){const a=d.ordered(o).map(r=>Promise.resolve(l(r,o,s)).then(void 0,c=>{(0,v.onUnexpectedExternalError)(c)}));return Promise.all(a).then(r=>{const c=[];for(const g of r)Array.isArray(g)?c.push(...g):g&&c.push(g);return c})}function C(o,s,d,l){return b(s,d,o,(a,r,c)=>a.provideDefinition(r,c,l))}e.getDefinitionsAtPosition=C;function h(o,s,d,l){return b(s,d,o,(a,r,c)=>a.provideDeclaration(r,c,l))}e.getDeclarationsAtPosition=h;function u(o,s,d,l){return b(s,d,o,(a,r,c)=>a.provideImplementation(r,c,l))}e.getImplementationsAtPosition=u;function n(o,s,d,l){return b(s,d,o,(a,r,c)=>a.provideTypeDefinition(r,c,l))}e.getTypeDefinitionsAtPosition=n;function i(o,s,d,l,a){return b(s,d,o,(r,c,g)=>be(this,void 0,void 0,function*(){const f=yield r.provideReferences(c,g,{includeDeclaration:!0},a);if(!l||!f||f.length!==2)return f;const _=yield r.provideReferences(c,g,{includeDeclaration:!1},a);return _&&_.length===1?_:f}))}e.getReferencesAtPosition=i;function t(o){return be(this,void 0,void 0,function*(){const s=yield o(),d=new D.ReferencesModel(s,""),l=d.references.map(a=>a.link);return d.dispose(),l})}(0,k.registerModelAndPositionCommand)("_executeDefinitionProvider",(o,s,d)=>{const l=o.get(w.ILanguageFeaturesService),a=C(l.definitionProvider,s,d,y.CancellationToken.None);return t(()=>a)}),(0,k.registerModelAndPositionCommand)("_executeTypeDefinitionProvider",(o,s,d)=>{const l=o.get(w.ILanguageFeaturesService),a=n(l.typeDefinitionProvider,s,d,y.CancellationToken.None);return t(()=>a)}),(0,k.registerModelAndPositionCommand)("_executeDeclarationProvider",(o,s,d)=>{const l=o.get(w.ILanguageFeaturesService),a=h(l.declarationProvider,s,d,y.CancellationToken.None);return t(()=>a)}),(0,k.registerModelAndPositionCommand)("_executeReferenceProvider",(o,s,d)=>{const l=o.get(w.ILanguageFeaturesService),a=i(l.referenceProvider,s,d,!1,y.CancellationToken.None);return t(()=>a)}),(0,k.registerModelAndPositionCommand)("_executeImplementationProvider",(o,s,d)=>{const l=o.get(w.ILanguageFeaturesService),a=u(l.implementationProvider,s,d,y.CancellationToken.None);return t(()=>a)})}),define(oe[704],se([1,0,6,2,43,12,29,3,570,16,53,9,44,101,38]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ISymbolNavigationService=e.ctxHasSymbols=void 0,e.ctxHasSymbols=new h.RawContextKey("hasSymbols",!1,(0,C.localize)(0,null)),e.ISymbolNavigationService=(0,n.createDecorator)("ISymbolNavigationService");let s=class{constructor(l,a,r,c){this._editorService=a,this._notificationService=r,this._keybindingService=c,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=e.ctxHasSymbols.bindTo(l)}reset(){var l,a;this._ctxHasSymbols.reset(),(l=this._currentState)===null||l===void 0||l.dispose(),(a=this._currentMessage)===null||a===void 0||a.dispose(),this._currentModel=void 0,this._currentIdx=-1}put(l){const a=l.parent.parent;if(a.references.length<=1){this.reset();return}this._currentModel=a,this._currentIdx=a.references.indexOf(l),this._ctxHasSymbols.set(!0),this._showMessage();const r=new d(this._editorService),c=r.onDidChange(g=>{if(this._ignoreEditorChange)return;const f=this._editorService.getActiveCodeEditor();if(!f)return;const _=f.getModel(),p=f.getPosition();if(!_||!p)return;let m=!1,S=!1;for(const E of a.references)if((0,k.isEqual)(E.uri,_.uri))m=!0,S=S||b.Range.containsPosition(E.range,p);else if(m)break;(!m||!S)&&this.reset()});this._currentState=(0,v.combinedDisposable)(r,c)}revealNext(l){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;const a=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:a.uri,options:{selection:b.Range.collapseToStart(a.range),selectionRevealType:3}},l).finally(()=>{this._ignoreEditorChange=!1})}_showMessage(){var l;(l=this._currentMessage)===null||l===void 0||l.dispose();const a=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),r=a?(0,C.localize)(1,null,this._currentIdx+1,this._currentModel.references.length,a.getLabel()):(0,C.localize)(2,null,this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(r)}};s=Ie([pe(0,h.IContextKeyService),pe(1,w.ICodeEditorService),pe(2,o.INotificationService),pe(3,i.IKeybindingService)],s),(0,u.registerSingleton)(e.ISymbolNavigationService,s,!0),(0,D.registerEditorCommand)(new class extends D.EditorCommand{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:e.ctxHasSymbols,kbOpts:{weight:100,primary:70}})}runEditorCommand(l,a){return l.get(e.ISymbolNavigationService).revealNext(a)}}),t.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:e.ctxHasSymbols,primary:9,handler(l){l.get(e.ISymbolNavigationService).reset()}});let d=class{constructor(l){this._listener=new Map,this._disposables=new v.DisposableStore,this._onDidChange=new y.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,v.dispose)(this._listener.values())}_onDidAddEditor(l){this._listener.set(l,(0,v.combinedDisposable)(l.onDidChangeCursorPosition(a=>this._onDidChange.fire({editor:l})),l.onDidChangeModelContent(a=>this._onDidChange.fire({editor:l}))))}_onDidRemoveEditor(l){var a;(a=this._listener.get(l))===null||a===void 0||a.dispose(),this._listener.delete(l)}};d=Ie([pe(0,w.ICodeEditorService)],d)}),define(oe[305],se([1,0,10,21,14,12,20]),function(q,e,y,v,k,D,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getHoverPromise=e.getHover=e.HoverProviderResult=void 0;class b{constructor(t,o,s){this.provider=t,this.hover=o,this.ordinal=s}}e.HoverProviderResult=b;function C(i,t,o,s,d){return be(this,void 0,void 0,function*(){try{const l=yield Promise.resolve(i.provideHover(o,s,d));if(l&&n(l))return new b(i,l,t)}catch(l){(0,k.onUnexpectedExternalError)(l)}})}function h(i,t,o,s){const d=i.ordered(t).map((l,a)=>C(l,a,t,o,s));return y.AsyncIterableObject.fromPromises(d).coalesce()}e.getHover=h;function u(i,t,o,s){return h(i,t,o,s).map(d=>d.hover).toPromise()}e.getHoverPromise=u,(0,D.registerModelAndPositionCommand)("_executeHoverProvider",(i,t,o)=>{const s=i.get(w.ILanguageFeaturesService);return u(s.hoverProvider,t,o,v.CancellationToken.None)});function n(i){const t=typeof i.range<"u",o=typeof i.contents<"u"&&i.contents&&i.contents.length>0;return t&&o}}),define(oe[217],se([1,0,7,18,10,64,2,117,11,3,37,305,572,30,45,20]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.renderMarkdownHovers=e.MarkdownHoverParticipant=e.MarkdownHover=void 0;const d=y.$;class l{constructor(g,f,_,p){this.owner=g,this.range=f,this.contents=_,this.ordinal=p}isValidForHoverAnchor(g){return g.type===1&&this.range.startColumn<=g.range.startColumn&&this.range.endColumn>=g.range.endColumn}}e.MarkdownHover=l;let a=class{constructor(c,g,f,_,p){this._editor=c,this._languageService=g,this._openerService=f,this._configurationService=_,this._languageFeaturesService=p,this.hoverOrdinal=2}createLoadingMessage(c){return new l(this,c.range,[new D.MarkdownString().appendText(i.localize(0,null))],2e3)}computeSync(c,g){if(!this._editor.hasModel()||c.type!==1)return[];const f=this._editor.getModel(),_=c.range.startLineNumber,p=f.getLineMaxColumn(_),m=[];let S=1e3;const E=f.getLineLength(_),L=f.getLanguageIdAtPosition(c.range.startLineNumber,c.range.startColumn),N=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:L});typeof N=="number"&&E>=N&&m.push(new l(this,c.range,[{value:i.localize(1,null)}],S++));for(const I of g){const R=I.range.startLineNumber===_?I.range.startColumn:1,F=I.range.endLineNumber===_?I.range.endColumn:p,O=I.options.hoverMessage;if(!O||(0,D.isEmptyMarkdownString)(O))continue;const x=new h.Range(c.range.startLineNumber,R,c.range.startLineNumber,F);m.push(new l(this,x,(0,v.asArray)(O),S++))}return m}computeAsync(c,g,f){if(!this._editor.hasModel()||c.type!==1)return k.AsyncIterableObject.EMPTY;const _=this._editor.getModel();if(!this._languageFeaturesService.hoverProvider.has(_))return k.AsyncIterableObject.EMPTY;const p=new C.Position(c.range.startLineNumber,c.range.startColumn);return(0,n.getHover)(this._languageFeaturesService.hoverProvider,_,p,f).filter(m=>!(0,D.isEmptyMarkdownString)(m.hover.contents)).map(m=>{const S=m.hover.range?h.Range.lift(m.hover.range):c.range;return new l(this,S,m.hover.contents,m.ordinal)})}renderHoverParts(c,g){return r(c,g,this._editor,this._languageService,this._openerService)}};a=Ie([pe(1,u.ILanguageService),pe(2,o.IOpenerService),pe(3,t.IConfigurationService),pe(4,s.ILanguageFeaturesService)],a),e.MarkdownHoverParticipant=a;function r(c,g,f,_,p){g.sort((S,E)=>S.ordinal-E.ordinal);const m=new w.DisposableStore;for(const S of g)for(const E of S.contents){if((0,D.isEmptyMarkdownString)(E))continue;const L=d("div.hover-row.markdown-hover"),N=y.append(L,d("div.hover-contents")),I=m.add(new b.MarkdownRenderer({editor:f},_,p));m.add(I.onDidRenderAsync(()=>{N.className="hover-contents code-hover-contents",c.onContentsChanged()}));const R=m.add(I.render(E));N.appendChild(R.element),c.fragment.appendChild(L)}return m}e.renderMarkdownHovers=r}),define(oe[705],se([1,0,2,8,12,215,60,3,23,24,32,50,248,575,85,179,213]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndentationToTabsCommand=e.IndentationToSpacesCommand=e.AutoIndentOnPaste=e.AutoIndentOnPasteCommand=e.ReindentSelectedLinesAction=e.ReindentLinesAction=e.DetectIndentation=e.IndentUsingSpaces=e.IndentUsingTabs=e.ChangeIndentationSizeAction=e.IndentationToTabsAction=e.IndentationToSpacesAction=e.getReindentEditOperations=void 0;function l(R,F,O,x,M){if(R.getLineCount()===1&&R.getLineMaxColumn(1)===1)return[];const P=F.getLanguageConfiguration(R.getLanguageId()).indentationRules;if(!P)return[];for(x=Math.min(x,R.getLineCount());O<=x&&P.unIndentedLinePattern;){const Z=R.getLineContent(O);if(!P.unIndentedLinePattern.test(Z))break;O++}if(O>x-1)return[];const{tabSize:A,indentSize:B,insertSpaces:K}=R.getOptions(),T=(Z,X)=>(X=X||1,D.ShiftCommand.shiftIndent(Z,Z.length+X,A,B,K)),ee=(Z,X)=>(X=X||1,D.ShiftCommand.unshiftIndent(Z,Z.length+X,A,B,K)),J=[];let $;const j=R.getLineContent(O);let G=j;if(M!=null){$=M;const Z=v.getLeadingWhitespace(j);G=$+j.substring(Z.length),P.decreaseIndentPattern&&P.decreaseIndentPattern.test(G)&&($=ee($),G=$+j.substring(Z.length)),j!==G&&J.push(w.EditOperation.replaceMove(new C.Selection(O,1,O,Z.length+1),(0,s.normalizeIndentation)($,B,K)))}else $=v.getLeadingWhitespace(j);let te=$;P.increaseIndentPattern&&P.increaseIndentPattern.test(G)?(te=T(te),$=T($)):P.indentNextLinePattern&&P.indentNextLinePattern.test(G)&&(te=T(te)),O++;for(let Z=O;Z<=x;Z++){const X=R.getLineContent(Z),ie=v.getLeadingWhitespace(X),H=te+X.substring(ie.length);P.decreaseIndentPattern&&P.decreaseIndentPattern.test(H)&&(te=ee(te),$=ee($)),ie!==te&&J.push(w.EditOperation.replaceMove(new C.Selection(Z,1,Z,ie.length+1),(0,s.normalizeIndentation)(te,B,K))),!(P.unIndentedLinePattern&&P.unIndentedLinePattern.test(X))&&(P.increaseIndentPattern&&P.increaseIndentPattern.test(H)?($=T($),te=$):P.indentNextLinePattern&&P.indentNextLinePattern.test(H)?te=T(te):te=$)}return J}e.getReindentEditOperations=l;class a extends k.EditorAction{constructor(){super({id:a.ID,label:t.localize(0,null),alias:"Convert Indentation to Spaces",precondition:h.EditorContextKeys.writable})}run(F,O){const x=O.getModel();if(!x)return;const M=x.getOptions(),P=O.getSelection();if(!P)return;const A=new N(P,M.tabSize);O.pushUndoStop(),O.executeCommands(this.id,[A]),O.pushUndoStop(),x.updateOptions({insertSpaces:!0})}}e.IndentationToSpacesAction=a,a.ID="editor.action.indentationToSpaces";class r extends k.EditorAction{constructor(){super({id:r.ID,label:t.localize(1,null),alias:"Convert Indentation to Tabs",precondition:h.EditorContextKeys.writable})}run(F,O){const x=O.getModel();if(!x)return;const M=x.getOptions(),P=O.getSelection();if(!P)return;const A=new I(P,M.tabSize);O.pushUndoStop(),O.executeCommands(this.id,[A]),O.pushUndoStop(),x.updateOptions({insertSpaces:!1})}}e.IndentationToTabsAction=r,r.ID="editor.action.indentationToTabs";class c extends k.EditorAction{constructor(F,O){super(O),this.insertSpaces=F}run(F,O){const x=F.get(o.IQuickInputService),M=F.get(n.IModelService),P=O.getModel();if(!P)return;const A=M.getCreationOptions(P.getLanguageId(),P.uri,P.isForSimpleWidget),B=[1,2,3,4,5,6,7,8].map(T=>({id:T.toString(),label:T.toString(),description:T===A.tabSize?t.localize(2,null):void 0})),K=Math.min(P.getOptions().tabSize-1,7);setTimeout(()=>{x.pick(B,{placeHolder:t.localize(3,null),activeItem:B[K]}).then(T=>{T&&P&&!P.isDisposed()&&P.updateOptions({tabSize:parseInt(T.label,10),insertSpaces:this.insertSpaces})})},50)}}e.ChangeIndentationSizeAction=c;class g extends c{constructor(){super(!1,{id:g.ID,label:t.localize(4,null),alias:"Indent Using Tabs",precondition:void 0})}}e.IndentUsingTabs=g,g.ID="editor.action.indentUsingTabs";class f extends c{constructor(){super(!0,{id:f.ID,label:t.localize(5,null),alias:"Indent Using Spaces",precondition:void 0})}}e.IndentUsingSpaces=f,f.ID="editor.action.indentUsingSpaces";class _ extends k.EditorAction{constructor(){super({id:_.ID,label:t.localize(6,null),alias:"Detect Indentation from Content",precondition:void 0})}run(F,O){const x=F.get(n.IModelService),M=O.getModel();if(!M)return;const P=x.getCreationOptions(M.getLanguageId(),M.uri,M.isForSimpleWidget);M.detectIndentation(P.insertSpaces,P.tabSize)}}e.DetectIndentation=_,_.ID="editor.action.detectIndentation";class p extends k.EditorAction{constructor(){super({id:"editor.action.reindentlines",label:t.localize(7,null),alias:"Reindent Lines",precondition:h.EditorContextKeys.writable})}run(F,O){const x=F.get(u.ILanguageConfigurationService),M=O.getModel();if(!M)return;const P=l(M,x,1,M.getLineCount());P.length>0&&(O.pushUndoStop(),O.executeEdits(this.id,P),O.pushUndoStop())}}e.ReindentLinesAction=p;class m extends k.EditorAction{constructor(){super({id:"editor.action.reindentselectedlines",label:t.localize(8,null),alias:"Reindent Selected Lines",precondition:h.EditorContextKeys.writable})}run(F,O){const x=F.get(u.ILanguageConfigurationService),M=O.getModel();if(!M)return;const P=O.getSelections();if(P===null)return;const A=[];for(const B of P){let K=B.startLineNumber,T=B.endLineNumber;if(K!==T&&B.endColumn===1&&T--,K===1){if(K===T)continue}else K--;const ee=l(M,x,K,T);A.push(...ee)}A.length>0&&(O.pushUndoStop(),O.executeEdits(this.id,A),O.pushUndoStop())}}e.ReindentSelectedLinesAction=m;class S{constructor(F,O){this._initialSelection=O,this._edits=[],this._selectionId=null;for(const x of F)x.range&&typeof x.text=="string"&&this._edits.push(x)}getEditOperations(F,O){for(const M of this._edits)O.addEditOperation(b.Range.lift(M.range),M.text);let x=!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?(x=!0,this._selectionId=O.trackSelection(this._initialSelection,!0)):this._edits[0].range.endColumn===this._initialSelection.startColumn&&this._edits[0].range.endLineNumber===this._initialSelection.startLineNumber&&(x=!0,this._selectionId=O.trackSelection(this._initialSelection,!1))),x||(this._selectionId=O.trackSelection(this._initialSelection))}computeCursorState(F,O){return O.getTrackedSelection(this._selectionId)}}e.AutoIndentOnPasteCommand=S;let E=class{constructor(R,F){this.editor=R,this._languageConfigurationService=F,this.callOnDispose=new y.DisposableStore,this.callOnModel=new y.DisposableStore,this.callOnDispose.add(R.onDidChangeConfiguration(()=>this.update())),this.callOnDispose.add(R.onDidChangeModel(()=>this.update())),this.callOnDispose.add(R.onDidChangeModelLanguage(()=>this.update()))}update(){this.callOnModel.clear(),!(this.editor.getOption(9)<4||this.editor.getOption(50))&&(!this.editor.hasModel()||this.callOnModel.add(this.editor.onDidPaste(({range:R})=>{this.trigger(R)})))}trigger(R){const F=this.editor.getSelections();if(F===null||F.length>1)return;const O=this.editor.getModel();if(!O||!O.tokenization.isCheapToTokenize(R.getStartPosition().lineNumber))return;const x=this.editor.getOption(9),{tabSize:M,indentSize:P,insertSpaces:A}=O.getOptions(),B=[],K={shiftIndent:$=>D.ShiftCommand.shiftIndent($,$.length+1,M,P,A),unshiftIndent:$=>D.ShiftCommand.unshiftIndent($,$.length+1,M,P,A)};let T=R.startLineNumber;for(;T<=R.endLineNumber;){if(this.shouldIgnoreLine(O,T)){T++;continue}break}if(T>R.endLineNumber)return;let ee=O.getLineContent(T);if(!/\S/.test(ee.substring(0,R.startColumn-1))){const $=(0,d.getGoodIndentForLine)(x,O,O.getLanguageId(),T,K,this._languageConfigurationService);if($!==null){const j=v.getLeadingWhitespace(ee),G=i.getSpaceCnt($,M),te=i.getSpaceCnt(j,M);if(G!==te){const Z=i.generateIndent(G,M,A);B.push({range:new b.Range(T,1,T,j.length+1),text:Z}),ee=Z+ee.substr(j.length)}else{const Z=(0,d.getIndentMetadata)(O,T,this._languageConfigurationService);if(Z===0||Z===8)return}}}const J=T;for(;T<R.endLineNumber;){if(!/\S/.test(O.getLineContent(T+1))){T++;continue}break}if(T!==R.endLineNumber){const $={tokenization:{getLineTokens:G=>O.tokenization.getLineTokens(G),getLanguageId:()=>O.getLanguageId(),getLanguageIdAtPosition:(G,te)=>O.getLanguageIdAtPosition(G,te)},getLineContent:G=>G===J?ee:O.getLineContent(G)},j=(0,d.getGoodIndentForLine)(x,$,O.getLanguageId(),T+1,K,this._languageConfigurationService);if(j!==null){const G=i.getSpaceCnt(j,M),te=i.getSpaceCnt(v.getLeadingWhitespace(O.getLineContent(T+1)),M);if(G!==te){const Z=G-te;for(let X=T+1;X<=R.endLineNumber;X++){const ie=O.getLineContent(X),H=v.getLeadingWhitespace(ie),ae=i.getSpaceCnt(H,M)+Z,Y=i.generateIndent(ae,M,A);Y!==H&&B.push({range:new b.Range(X,1,X,H.length+1),text:Y})}}}}if(B.length>0){this.editor.pushUndoStop();const $=new S(B,this.editor.getSelection());this.editor.executeCommand("autoIndentOnPaste",$),this.editor.pushUndoStop()}}shouldIgnoreLine(R,F){R.tokenization.forceTokenization(F);const O=R.getLineFirstNonWhitespaceColumn(F);if(O===0)return!0;const x=R.tokenization.getLineTokens(F);if(x.getCount()>0){const M=x.findTokenIndexAtOffset(O);if(M>=0&&x.getStandardTokenType(M)===1)return!0}return!1}dispose(){this.callOnDispose.dispose(),this.callOnModel.dispose()}};E.ID="editor.contrib.autoIndentOnPaste",E=Ie([pe(1,u.ILanguageConfigurationService)],E),e.AutoIndentOnPaste=E;function L(R,F,O,x){if(R.getLineCount()===1&&R.getLineMaxColumn(1)===1)return;let M="";for(let A=0;A<O;A++)M+=" ";const P=new RegExp(M,"gi");for(let A=1,B=R.getLineCount();A<=B;A++){let K=R.getLineFirstNonWhitespaceColumn(A);if(K===0&&(K=R.getLineMaxColumn(A)),K===1)continue;const T=new b.Range(A,1,A,K),ee=R.getValueInRange(T),J=x?ee.replace(/\t/ig,M):ee.replace(P," ");F.addEditOperation(T,J)}}class N{constructor(F,O){this.selection=F,this.tabSize=O,this.selectionId=null}getEditOperations(F,O){this.selectionId=O.trackSelection(this.selection),L(F,O,this.tabSize,!0)}computeCursorState(F,O){return O.getTrackedSelection(this.selectionId)}}e.IndentationToSpacesCommand=N;class I{constructor(F,O){this.selection=F,this.tabSize=O,this.selectionId=null}getEditOperations(F,O){this.selectionId=O.trackSelection(this.selection),L(F,O,this.tabSize,!1)}computeCursorState(F,O){return O.getTrackedSelection(this.selectionId)}}e.IndentationToTabsCommand=I,(0,k.registerEditorContribution)(E.ID,E),(0,k.registerEditorAction)(a),(0,k.registerEditorAction)(r),(0,k.registerEditorAction)(g),(0,k.registerEditorAction)(f),(0,k.registerEditorAction)(_),(0,k.registerEditorAction)(p),(0,k.registerEditorAction)(m)}),define(oe[706],se([1,0,12,182,24,579]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExpandLineSelectionAction=void 0;class w extends y.EditorAction{constructor(){super({id:"expandLineSelection",label:D.localize(0,null),alias:"Expand Line Selection",precondition:void 0,kbOpts:{weight:0,kbExpr:k.EditorContextKeys.textInputFocus,primary:2090}})}run(C,h,u){if(u=u||{},!h.hasModel())return;const n=h._getViewModel();n.model.pushStackElement(),n.setCursorStates(u.source,3,v.CursorMoveCommands.expandLineSelection(n,n.getCursorStates())),n.revealPrimaryCursor(u.source,!0)}}e.ExpandLineSelectionAction=w,(0,y.registerEditorAction)(w)}),define(oe[707],se([1,0,59,169,12,108,406,216,60,11,3,23,24,456,656,457,580,39,32]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KebabCaseAction=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 r extends k.EditorAction{constructor(ie,H){super(H),this.down=ie}run(ie,H){if(!H.hasModel())return;const ae=H.getSelections().map((le,z)=>({selection:le,index:z,ignore:!1}));ae.sort((le,z)=>u.Range.compareRangesUsingStarts(le.selection,z.selection));let Y=ae[0];for(let le=1;le<ae.length;le++){const z=ae[le];Y.selection.endLineNumber===z.selection.startLineNumber&&(Y.index<z.index?z.ignore=!0:(Y.ignore=!0,Y=z))}const U=[];for(const le of ae)U.push(new t.CopyLinesCommand(le.selection,this.down,le.ignore));H.pushUndoStop(),H.executeCommands(this.id,U),H.pushUndoStop()}}class c extends r{constructor(){super(!1,{id:"editor.action.copyLinesUpAction",label:d.localize(0,null),alias:"Copy Line Up",precondition:i.EditorContextKeys.writable,kbOpts:{kbExpr:i.EditorContextKeys.editorTextFocus,primary:1552,linux:{primary:3600},weight:100},menuOpts:{menuId:l.MenuId.MenubarSelectionMenu,group:"2_line",title:d.localize(1,null),order:1}})}}class g extends r{constructor(){super(!0,{id:"editor.action.copyLinesDownAction",label:d.localize(2,null),alias:"Copy Line Down",precondition:i.EditorContextKeys.writable,kbOpts:{kbExpr:i.EditorContextKeys.editorTextFocus,primary:1554,linux:{primary:3602},weight:100},menuOpts:{menuId:l.MenuId.MenubarSelectionMenu,group:"2_line",title:d.localize(3,null),order:2}})}}class f extends k.EditorAction{constructor(){super({id:"editor.action.duplicateSelection",label:d.localize(4,null),alias:"Duplicate Selection",precondition:i.EditorContextKeys.writable,menuOpts:{menuId:l.MenuId.MenubarSelectionMenu,group:"2_line",title:d.localize(5,null),order:5}})}run(ie,H,ae){if(!H.hasModel())return;const Y=[],U=H.getSelections(),le=H.getModel();for(const z of U)if(z.isEmpty())Y.push(new t.CopyLinesCommand(z,!0));else{const Q=new n.Selection(z.endLineNumber,z.endColumn,z.endLineNumber,z.endColumn);Y.push(new D.ReplaceCommandThatSelectsText(Q,le.getValueInRange(z)))}H.pushUndoStop(),H.executeCommands(this.id,Y),H.pushUndoStop()}}e.DuplicateSelectionAction=f;class _ extends k.EditorAction{constructor(ie,H){super(H),this.down=ie}run(ie,H){const ae=ie.get(a.ILanguageConfigurationService),Y=[],U=H.getSelections()||[],le=H.getOption(9);for(const z of U)Y.push(new o.MoveLinesCommand(z,this.down,le,ae));H.pushUndoStop(),H.executeCommands(this.id,Y),H.pushUndoStop()}}class p extends _{constructor(){super(!1,{id:"editor.action.moveLinesUpAction",label:d.localize(6,null),alias:"Move Line Up",precondition:i.EditorContextKeys.writable,kbOpts:{kbExpr:i.EditorContextKeys.editorTextFocus,primary:528,linux:{primary:528},weight:100},menuOpts:{menuId:l.MenuId.MenubarSelectionMenu,group:"2_line",title:d.localize(7,null),order:3}})}}class m extends _{constructor(){super(!0,{id:"editor.action.moveLinesDownAction",label:d.localize(8,null),alias:"Move Line Down",precondition:i.EditorContextKeys.writable,kbOpts:{kbExpr:i.EditorContextKeys.editorTextFocus,primary:530,linux:{primary:530},weight:100},menuOpts:{menuId:l.MenuId.MenubarSelectionMenu,group:"2_line",title:d.localize(9,null),order:4}})}}class S extends k.EditorAction{constructor(ie,H){super(H),this.descending=ie}run(ie,H){const ae=H.getSelections()||[];for(const U of ae)if(!s.SortLinesCommand.canRun(H.getModel(),U,this.descending))return;const Y=[];for(let U=0,le=ae.length;U<le;U++)Y[U]=new s.SortLinesCommand(ae[U],this.descending);H.pushUndoStop(),H.executeCommands(this.id,Y),H.pushUndoStop()}}e.AbstractSortLinesAction=S;class E extends S{constructor(){super(!1,{id:"editor.action.sortLinesAscending",label:d.localize(10,null),alias:"Sort Lines Ascending",precondition:i.EditorContextKeys.writable})}}e.SortLinesAscendingAction=E;class L extends S{constructor(){super(!0,{id:"editor.action.sortLinesDescending",label:d.localize(11,null),alias:"Sort Lines Descending",precondition:i.EditorContextKeys.writable})}}e.SortLinesDescendingAction=L;class N extends k.EditorAction{constructor(){super({id:"editor.action.removeDuplicateLines",label:d.localize(12,null),alias:"Delete Duplicate Lines",precondition:i.EditorContextKeys.writable})}run(ie,H){if(!H.hasModel())return;const ae=H.getModel();if(ae.getLineCount()===1&&ae.getLineMaxColumn(1)===1)return;const Y=[],U=[];let le=0;for(const z of H.getSelections()){const Q=new Set,W=[];for(let ce=z.startLineNumber;ce<=z.endLineNumber;ce++){const ue=ae.getLineContent(ce);Q.has(ue)||(W.push(ue),Q.add(ue))}const V=new n.Selection(z.startLineNumber,1,z.endLineNumber,ae.getLineMaxColumn(z.endLineNumber)),ne=z.startLineNumber-le,de=new n.Selection(ne,1,ne+W.length-1,W[W.length-1].length);Y.push(C.EditOperation.replace(V,W.join(` `))),U.push(de),le+=z.endLineNumber-z.startLineNumber+1-W.length}H.pushUndoStop(),H.executeEdits(this.id,Y,U),H.pushUndoStop()}}e.DeleteDuplicateLinesAction=N;class I extends k.EditorAction{constructor(){super({id:I.ID,label:d.localize(13,null),alias:"Trim Trailing Whitespace",precondition:i.EditorContextKeys.writable,kbOpts:{kbExpr:i.EditorContextKeys.editorTextFocus,primary:(0,y.KeyChord)(2089,2102),weight:100}})}run(ie,H,ae){let Y=[];ae.reason==="auto-save"&&(Y=(H.getSelections()||[]).map(z=>new h.Position(z.positionLineNumber,z.positionColumn)));const U=H.getSelection();if(U===null)return;const le=new w.TrimTrailingWhitespaceCommand(U,Y);H.pushUndoStop(),H.executeCommands(this.id,[le]),H.pushUndoStop()}}e.TrimTrailingWhitespaceAction=I,I.ID="editor.action.trimTrailingWhitespace";class R extends k.EditorAction{constructor(){super({id:"editor.action.deleteLines",label:d.localize(14,null),alias:"Delete Line",precondition:i.EditorContextKeys.writable,kbOpts:{kbExpr:i.EditorContextKeys.textInputFocus,primary:3113,weight:100}})}run(ie,H){if(!H.hasModel())return;const ae=this._getLinesToRemove(H),Y=H.getModel();if(Y.getLineCount()===1&&Y.getLineMaxColumn(1)===1)return;let U=0;const le=[],z=[];for(let Q=0,W=ae.length;Q<W;Q++){const V=ae[Q];let ne=V.startLineNumber,de=V.endLineNumber,ce=1,ue=Y.getLineMaxColumn(de);de<Y.getLineCount()?(de+=1,ue=1):ne>1&&(ne-=1,ce=Y.getLineMaxColumn(ne)),le.push(C.EditOperation.replace(new n.Selection(ne,ce,de,ue),"")),z.push(new n.Selection(ne-U,V.positionColumn,ne-U,V.positionColumn)),U+=V.endLineNumber-V.startLineNumber+1}H.pushUndoStop(),H.executeEdits(this.id,le,z),H.pushUndoStop()}_getLinesToRemove(ie){const H=ie.getSelections().map(U=>{let le=U.endLineNumber;return U.startLineNumber<U.endLineNumber&&U.endColumn===1&&(le-=1),{startLineNumber:U.startLineNumber,selectionStartColumn:U.selectionStartColumn,endLineNumber:le,positionColumn:U.positionColumn}});H.sort((U,le)=>U.startLineNumber===le.startLineNumber?U.endLineNumber-le.endLineNumber:U.startLineNumber-le.startLineNumber);const ae=[];let Y=H[0];for(let U=1;U<H.length;U++)Y.endLineNumber+1>=H[U].startLineNumber?Y.endLineNumber=H[U].endLineNumber:(ae.push(Y),Y=H[U]);return ae.push(Y),ae}}e.DeleteLinesAction=R;class F extends k.EditorAction{constructor(){super({id:"editor.action.indentLines",label:d.localize(15,null),alias:"Indent Line",precondition:i.EditorContextKeys.writable,kbOpts:{kbExpr:i.EditorContextKeys.editorTextFocus,primary:2137,weight:100}})}run(ie,H){const ae=H._getViewModel();!ae||(H.pushUndoStop(),H.executeCommands(this.id,b.TypeOperations.indent(ae.cursorConfig,H.getModel(),H.getSelections())),H.pushUndoStop())}}e.IndentLinesAction=F;class O extends k.EditorAction{constructor(){super({id:"editor.action.outdentLines",label:d.localize(16,null),alias:"Outdent Line",precondition:i.EditorContextKeys.writable,kbOpts:{kbExpr:i.EditorContextKeys.editorTextFocus,primary:2135,weight:100}})}run(ie,H){v.CoreEditingCommands.Outdent.runEditorCommand(ie,H,null)}}class x extends k.EditorAction{constructor(){super({id:"editor.action.insertLineBefore",label:d.localize(17,null),alias:"Insert Line Above",precondition:i.EditorContextKeys.writable,kbOpts:{kbExpr:i.EditorContextKeys.editorTextFocus,primary:3075,weight:100}})}run(ie,H){const ae=H._getViewModel();!ae||(H.pushUndoStop(),H.executeCommands(this.id,b.TypeOperations.lineInsertBefore(ae.cursorConfig,H.getModel(),H.getSelections())))}}e.InsertLineBeforeAction=x;class M extends k.EditorAction{constructor(){super({id:"editor.action.insertLineAfter",label:d.localize(18,null),alias:"Insert Line Below",precondition:i.EditorContextKeys.writable,kbOpts:{kbExpr:i.EditorContextKeys.editorTextFocus,primary:2051,weight:100}})}run(ie,H){const ae=H._getViewModel();!ae||(H.pushUndoStop(),H.executeCommands(this.id,b.TypeOperations.lineInsertAfter(ae.cursorConfig,H.getModel(),H.getSelections())))}}e.InsertLineAfterAction=M;class P extends k.EditorAction{run(ie,H){if(!H.hasModel())return;const ae=H.getSelection(),Y=this._getRangesToDelete(H),U=[];for(let Q=0,W=Y.length-1;Q<W;Q++){const V=Y[Q],ne=Y[Q+1];u.Range.intersectRanges(V,ne)===null?U.push(V):Y[Q+1]=u.Range.plusRange(V,ne)}U.push(Y[Y.length-1]);const le=this._getEndCursorState(ae,U),z=U.map(Q=>C.EditOperation.replace(Q,""));H.pushUndoStop(),H.executeEdits(this.id,z,le),H.pushUndoStop()}}e.AbstractDeleteAllToBoundaryAction=P;class A extends P{constructor(){super({id:"deleteAllLeft",label:d.localize(19,null),alias:"Delete All Left",precondition:i.EditorContextKeys.writable,kbOpts:{kbExpr:i.EditorContextKeys.textInputFocus,primary:0,mac:{primary:2049},weight:100}})}_getEndCursorState(ie,H){let ae=null;const Y=[];let U=0;return H.forEach(le=>{let z;if(le.endColumn===1&&U>0){const Q=le.startLineNumber-U;z=new n.Selection(Q,le.startColumn,Q,le.startColumn)}else z=new n.Selection(le.startLineNumber,le.startColumn,le.startLineNumber,le.startColumn);U+=le.endLineNumber-le.startLineNumber,le.intersectRanges(ie)?ae=z:Y.push(z)}),ae&&Y.unshift(ae),Y}_getRangesToDelete(ie){const H=ie.getSelections();if(H===null)return[];let ae=H;const Y=ie.getModel();return Y===null?[]:(ae.sort(u.Range.compareRangesUsingStarts),ae=ae.map(U=>{if(U.isEmpty())if(U.startColumn===1){const le=Math.max(1,U.startLineNumber-1),z=U.startLineNumber===1?1:Y.getLineContent(le).length+1;return new u.Range(le,z,U.startLineNumber,1)}else return new u.Range(U.startLineNumber,1,U.startLineNumber,U.startColumn);else return new u.Range(U.startLineNumber,1,U.endLineNumber,U.endColumn)}),ae)}}e.DeleteAllLeftAction=A;class B extends P{constructor(){super({id:"deleteAllRight",label:d.localize(20,null),alias:"Delete All Right",precondition:i.EditorContextKeys.writable,kbOpts:{kbExpr:i.EditorContextKeys.textInputFocus,primary:0,mac:{primary:297,secondary:[2068]},weight:100}})}_getEndCursorState(ie,H){let ae=null;const Y=[];for(let U=0,le=H.length,z=0;U<le;U++){const Q=H[U],W=new n.Selection(Q.startLineNumber-z,Q.startColumn,Q.startLineNumber-z,Q.startColumn);Q.intersectRanges(ie)?ae=W:Y.push(W)}return ae&&Y.unshift(ae),Y}_getRangesToDelete(ie){const H=ie.getModel();if(H===null)return[];const ae=ie.getSelections();if(ae===null)return[];const Y=ae.map(U=>{if(U.isEmpty()){const le=H.getLineMaxColumn(U.startLineNumber);return U.startColumn===le?new u.Range(U.startLineNumber,U.startColumn,U.startLineNumber+1,1):new u.Range(U.startLineNumber,U.startColumn,U.startLineNumber,le)}return U});return Y.sort(u.Range.compareRangesUsingStarts),Y}}e.DeleteAllRightAction=B;class K extends k.EditorAction{constructor(){super({id:"editor.action.joinLines",label:d.localize(21,null),alias:"Join Lines",precondition:i.EditorContextKeys.writable,kbOpts:{kbExpr:i.EditorContextKeys.editorTextFocus,primary:0,mac:{primary:296},weight:100}})}run(ie,H){const ae=H.getSelections();if(ae===null)return;let Y=H.getSelection();if(Y===null)return;ae.sort(u.Range.compareRangesUsingStarts);const U=[],le=ae.reduce((de,ce)=>de.isEmpty()?de.endLineNumber===ce.startLineNumber?(Y.equalsSelection(de)&&(Y=ce),ce):ce.startLineNumber>de.endLineNumber+1?(U.push(de),ce):new n.Selection(de.startLineNumber,de.startColumn,ce.endLineNumber,ce.endColumn):ce.startLineNumber>de.endLineNumber?(U.push(de),ce):new n.Selection(de.startLineNumber,de.startColumn,ce.endLineNumber,ce.endColumn));U.push(le);const z=H.getModel();if(z===null)return;const Q=[],W=[];let V=Y,ne=0;for(let de=0,ce=U.length;de<ce;de++){const ue=U[de],me=ue.startLineNumber,_e=1;let ye=0,ke,Te;const Me=z.getLineContent(ue.endLineNumber).length-ue.endColumn;if(ue.isEmpty()||ue.startLineNumber===ue.endLineNumber){const re=ue.getStartPosition();re.lineNumber<z.getLineCount()?(ke=me+1,Te=z.getLineMaxColumn(ke)):(ke=re.lineNumber,Te=z.getLineMaxColumn(re.lineNumber))}else ke=ue.endLineNumber,Te=z.getLineMaxColumn(ke);let fe=z.getLineContent(me);for(let re=me+1;re<=ke;re++){const ge=z.getLineContent(re),Se=z.getLineFirstNonWhitespaceColumn(re);if(Se>=1){let Le=!0;fe===""&&(Le=!1),Le&&(fe.charAt(fe.length-1)===" "||fe.charAt(fe.length-1)===" ")&&(Le=!1,fe=fe.replace(/[\s\uFEFF\xA0]+$/g," "));const Ne=ge.substr(Se-1);fe+=(Le?" ":"")+Ne,Le?ye=Ne.length+1:ye=Ne.length}else ye=0}const he=new u.Range(me,_e,ke,Te);if(!he.isEmpty()){let re;ue.isEmpty()?(Q.push(C.EditOperation.replace(he,fe)),re=new n.Selection(he.startLineNumber-ne,fe.length-ye+1,me-ne,fe.length-ye+1)):ue.startLineNumber===ue.endLineNumber?(Q.push(C.EditOperation.replace(he,fe)),re=new n.Selection(ue.startLineNumber-ne,ue.startColumn,ue.endLineNumber-ne,ue.endColumn)):(Q.push(C.EditOperation.replace(he,fe)),re=new n.Selection(ue.startLineNumber-ne,ue.startColumn,ue.startLineNumber-ne,fe.length-Me)),u.Range.intersectRanges(he,Y)!==null?V=re:W.push(re)}ne+=he.endLineNumber-he.startLineNumber}W.unshift(V),H.pushUndoStop(),H.executeEdits(this.id,Q,W),H.pushUndoStop()}}e.JoinLinesAction=K;class T extends k.EditorAction{constructor(){super({id:"editor.action.transpose",label:d.localize(22,null),alias:"Transpose characters around the cursor",precondition:i.EditorContextKeys.writable})}run(ie,H){const ae=H.getSelections();if(ae===null)return;const Y=H.getModel();if(Y===null)return;const U=[];for(let le=0,z=ae.length;le<z;le++){const Q=ae[le];if(!Q.isEmpty())continue;const W=Q.getStartPosition(),V=Y.getLineMaxColumn(W.lineNumber);if(W.column>=V){if(W.lineNumber===Y.getLineCount())continue;const ne=new u.Range(W.lineNumber,Math.max(1,W.column-1),W.lineNumber+1,1),de=Y.getValueInRange(ne).split("").reverse().join("");U.push(new D.ReplaceCommand(new n.Selection(W.lineNumber,Math.max(1,W.column-1),W.lineNumber+1,1),de))}else{const ne=new u.Range(W.lineNumber,Math.max(1,W.column-1),W.lineNumber,W.column+1),de=Y.getValueInRange(ne).split("").reverse().join("");U.push(new D.ReplaceCommandThatPreservesSelection(ne,de,new n.Selection(W.lineNumber,W.column+1,W.lineNumber,W.column+1)))}}H.pushUndoStop(),H.executeCommands(this.id,U),H.pushUndoStop()}}e.TransposeAction=T;class ee extends k.EditorAction{run(ie,H){const ae=H.getSelections();if(ae===null)return;const Y=H.getModel();if(Y===null)return;const U=H.getOption(119),le=[];for(const z of ae)if(z.isEmpty()){const Q=z.getStartPosition(),W=H.getConfiguredWordAtPosition(Q);if(!W)continue;const V=new u.Range(Q.lineNumber,W.startColumn,Q.lineNumber,W.endColumn),ne=Y.getValueInRange(V);le.push(C.EditOperation.replace(V,this._modifyText(ne,U)))}else{const Q=Y.getValueInRange(z);le.push(C.EditOperation.replace(z,this._modifyText(Q,U)))}H.pushUndoStop(),H.executeEdits(this.id,le),H.pushUndoStop()}}e.AbstractCaseAction=ee;class J extends ee{constructor(){super({id:"editor.action.transformToUppercase",label:d.localize(23,null),alias:"Transform to Uppercase",precondition:i.EditorContextKeys.writable})}_modifyText(ie,H){return ie.toLocaleUpperCase()}}e.UpperCaseAction=J;class $ extends ee{constructor(){super({id:"editor.action.transformToLowercase",label:d.localize(24,null),alias:"Transform to Lowercase",precondition:i.EditorContextKeys.writable})}_modifyText(ie,H){return ie.toLocaleLowerCase()}}e.LowerCaseAction=$;class j{constructor(ie,H){this._pattern=ie,this._flags=H,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 ee{constructor(){super({id:"editor.action.transformToTitlecase",label:d.localize(25,null),alias:"Transform to Title Case",precondition:i.EditorContextKeys.writable})}_modifyText(ie,H){const ae=G.titleBoundary.get();return ae?ie.toLocaleLowerCase().replace(ae,Y=>Y.toLocaleUpperCase()):ie}}e.TitleCaseAction=G,G.titleBoundary=new j("(^|[^\\p{L}\\p{N}']|((^|\\P{L})'))\\p{L}","gmu");class te extends ee{constructor(){super({id:"editor.action.transformToSnakecase",label:d.localize(26,null),alias:"Transform to Snake Case",precondition:i.EditorContextKeys.writable})}_modifyText(ie,H){const ae=te.caseBoundary.get(),Y=te.singleLetters.get();return!ae||!Y?ie:ie.replace(ae,"$1_$2").replace(Y,"$1_$2$3").toLocaleLowerCase()}}e.SnakeCaseAction=te,te.caseBoundary=new j("(\\p{Ll})(\\p{Lu})","gmu"),te.singleLetters=new j("(\\p{Lu}|\\p{N})(\\p{Lu})(\\p{Ll})","gmu");class Z extends ee{constructor(){super({id:"editor.action.transformToKebabcase",label:d.localize(27,null),alias:"Transform to Kebab Case",precondition:i.EditorContextKeys.writable})}static isSupported(){return[this.caseBoundary,this.singleLetters,this.underscoreBoundary].every(ie=>ie.isSupported())}_modifyText(ie,H){const ae=Z.caseBoundary.get(),Y=Z.singleLetters.get(),U=Z.underscoreBoundary.get();return!ae||!Y||!U?ie:ie.replace(U,"$1-$3").replace(ae,"$1-$2").replace(Y,"$1-$2").toLocaleLowerCase()}}e.KebabCaseAction=Z,Z.caseBoundary=new j("(\\p{Ll})(\\p{Lu})","gmu"),Z.singleLetters=new j("(\\p{Lu}|\\p{N})(\\p{Lu}\\p{Ll})","gmu"),Z.underscoreBoundary=new j("(\\S)(_)(\\S)","gm"),(0,k.registerEditorAction)(c),(0,k.registerEditorAction)(g),(0,k.registerEditorAction)(f),(0,k.registerEditorAction)(p),(0,k.registerEditorAction)(m),(0,k.registerEditorAction)(E),(0,k.registerEditorAction)(L),(0,k.registerEditorAction)(N),(0,k.registerEditorAction)(I),(0,k.registerEditorAction)(R),(0,k.registerEditorAction)(F),(0,k.registerEditorAction)(O),(0,k.registerEditorAction)(x),(0,k.registerEditorAction)(M),(0,k.registerEditorAction)(A),(0,k.registerEditorAction)(B),(0,k.registerEditorAction)(K),(0,k.registerEditorAction)(T),(0,k.registerEditorAction)(J),(0,k.registerEditorAction)($),te.caseBoundary.isSupported()&&te.singleLetters.isSupported()&&(0,k.registerEditorAction)(te),G.titleBoundary.isSupported()&&(0,k.registerEditorAction)(G),Z.isSupported()&&(0,k.registerEditorAction)(Z)}),define(oe[143],se([1,0,49,10,2,12,3,583,16,385]),function(q,e,y,v,k,D,w,b,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MessageController=void 0;let h=class xi{constructor(t,o){this._messageWidget=new k.MutableDisposable,this._messageListeners=new k.DisposableStore,this._editor=t,this._visible=xi.MESSAGE_VISIBLE.bindTo(o)}static get(t){return t.getContribution(xi.ID)}dispose(){this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(t,o){(0,y.alert)(t),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new n(this._editor,o,t),this._messageListeners.add(this._editor.onDidBlurEditorText(()=>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(new v.TimeoutTimer(()=>this.closeMessage(),3e3));let s;this._messageListeners.add(this._editor.onMouseMove(d=>{!d.target.position||(s?s.containsPosition(d.target.position)||this.closeMessage():s=new w.Range(o.lineNumber-3,1,d.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(n.fadeOut(this._messageWidget.value))}};h.ID="editor.contrib.messageController",h.MESSAGE_VISIBLE=new C.RawContextKey("messageVisible",!1,b.localize(0,null)),h=Ie([pe(1,C.IContextKeyService)],h),e.MessageController=h;const u=D.EditorCommand.bindToContribution(h.get);(0,D.registerEditorCommand)(new u({id:"leaveEditorMessage",precondition:h.MESSAGE_VISIBLE,handler:i=>i.closeMessage(),kbOpts:{weight:100+30,primary:9}}));class n{constructor(t,{lineNumber:o,column:s},d){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=t,this._editor.revealLinesInCenterIfOutsideViewport(o,o,0),this._position={lineNumber:o,column:s},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const l=document.createElement("div");l.classList.add("anchor","top"),this._domNode.appendChild(l);const a=document.createElement("div");a.classList.add("message"),a.textContent=d,this._domNode.appendChild(a);const r=document.createElement("div");r.classList.add("anchor","below"),this._domNode.appendChild(r),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}static fadeOut(t){const o=()=>{t.dispose(),clearTimeout(s),t.getDomNode().removeEventListener("animationend",o)},s=setTimeout(o,110);return t.getDomNode().addEventListener("animationend",o),t.getDomNode().classList.add("fadeOut"),{dispose:o}}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(t){this._domNode.classList.toggle("below",t===2)}}(0,D.registerEditorContribution)(h.ID,h)});var bi=this&&this.__classPrivateFieldSet||function(q,e,y,v,k){if(v==="m")throw new TypeError("Private method is not writable");if(v==="a"&&!k)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?q!==e||!k:!e.has(q))throw new TypeError("Cannot write private member to an object whose class did not declare it");return v==="a"?k.call(q,y):k?k.value=y:e.set(q,y),y},si=this&&this.__classPrivateFieldGet||function(q,e,y,v){if(y==="a"&&!v)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?q!==e||!v:!e.has(q))throw new TypeError("Cannot read private member from an object whose class did not declare it");return y==="m"?v:y==="a"?v.call(q):v?v.value:e.get(q)};define(oe[708],se([1,0,14,145,2,143,9,302,682]),function(q,e,y,v,k,D,w,b,C){"use strict";var h;Object.defineProperty(e,"__esModule",{value:!0}),e.CodeActionUi=void 0;let u=class extends k.Disposable{constructor(n,i,t,o,s){super(),this._editor=n,this.delegate=o,this._activeCodeActions=this._register(new k.MutableDisposable),this.previewOn=!1,h.set(this,!1),this._codeActionWidget=new v.Lazy(()=>this._register(s.createInstance(b.CodeActionMenu,this._editor,{onSelectCodeAction:(d,l)=>be(this,void 0,void 0,function*(){this.previewOn?this.delegate.applyCodeAction(d,!0,!!this.previewOn):this.delegate.applyCodeAction(d,!0,!!l.preview),this.previewOn=!1})}))),this._lightBulbWidget=new v.Lazy(()=>{const d=this._register(s.createInstance(C.LightBulbWidget,this._editor,i,t));return this._register(d.onClick(l=>this.showCodeActionList(l.trigger,l.actions,l,{includeDisabledActions:!1,fromLightbulb:!0}))),d})}dispose(){bi(this,h,!0,"f"),super.dispose()}hideCodeActionWidget(){this._codeActionWidget.hasValue()&&this._codeActionWidget.getValue().hideCodeActionWidget()}onEnter(){this._codeActionWidget.hasValue()&&this._codeActionWidget.getValue().onEnterSet()}onPreviewEnter(){this.previewOn=!0,this.onEnter()}navigateList(n){this._codeActionWidget.hasValue()&&(n?this._codeActionWidget.getValue().navigateListWithKeysUp():this._codeActionWidget.getValue().navigateListWithKeysDown())}update(n){var i,t,o,s,d;return be(this,void 0,void 0,function*(){if(n.type!==1){(i=this._lightBulbWidget.rawValue)===null||i===void 0||i.hide();return}let l;try{l=yield n.actions}catch(a){(0,y.onUnexpectedError)(a);return}if(!si(this,h,"f"))if(this._lightBulbWidget.getValue().update(l,n.trigger,n.position),n.trigger.type===1){if(!((t=n.trigger.filter)===null||t===void 0)&&t.include){const r=this.tryGetValidActionToApply(n.trigger,l);if(r){try{this._lightBulbWidget.getValue().hide(),yield this.delegate.applyCodeAction(r,!1,!1)}finally{l.dispose()}return}if(n.trigger.context){const c=this.getInvalidActionThatWouldHaveBeenApplied(n.trigger,l);if(c&&c.action.disabled){(o=D.MessageController.get(this._editor))===null||o===void 0||o.showMessage(c.action.disabled,n.trigger.context.position),l.dispose();return}}}const a=!!(!((s=n.trigger.filter)===null||s===void 0)&&s.include);if(n.trigger.context&&(!l.allActions.length||!a&&!l.validActions.length)){(d=D.MessageController.get(this._editor))===null||d===void 0||d.showMessage(n.trigger.context.notAvailableMessage,n.trigger.context.position),this._activeCodeActions.value=l,l.dispose();return}this._activeCodeActions.value=l,this._codeActionWidget.getValue().show(n.trigger,l,n.position,{includeDisabledActions:a,fromLightbulb:!1})}else this._codeActionWidget.getValue().isVisible?l.dispose():this._activeCodeActions.value=l})}getInvalidActionThatWouldHaveBeenApplied(n,i){if(i.allActions.length&&(n.autoApply==="first"&&i.validActions.length===0||n.autoApply==="ifSingle"&&i.allActions.length===1))return i.allActions.find(({action:t})=>t.disabled)}tryGetValidActionToApply(n,i){if(i.validActions.length&&(n.autoApply==="first"&&i.validActions.length>0||n.autoApply==="ifSingle"&&i.validActions.length===1))return i.validActions[0]}showCodeActionList(n,i,t,o){return be(this,void 0,void 0,function*(){this._codeActionWidget.getValue().show(n,i,t,o)})}};h=new WeakMap,u=Ie([pe(4,w.IInstantiationService)],u),e.CodeActionUi=u}),define(oe[306],se([1,0,21,145,2,8,12,138,24,20,170,708,143,543,26,16,9,84,71,38,86,701,131,302]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r,c,g,f,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AutoFixAction=e.FixAllAction=e.OrganizeImportsAction=e.SourceAction=e.RefactorPreview=e.RefactorAction=e.CodeActionCommand=e.QuickFixAction=e.applyCodeAction=e.ApplyCodeActionReason=e.QuickFixController=void 0;function p(J){return s.ContextKeyExpr.regex(g.SUPPORTED_CODE_ACTIONS.keys()[0],new RegExp("(\\s|^)"+(0,D.escapeRegExpCharacters)(J.value)+"\\b"))}function m(J,$,j,G){const te=f.CodeActionCommandArgs.fromUser($,{kind:f.CodeActionKind.Refactor,apply:"never"});return R(J,typeof $?.kind=="string"?te.preferred?t.localize(0,null,$.kind):t.localize(1,null,$.kind):te.preferred?t.localize(2,null):t.localize(3,null),{include:f.CodeActionKind.Refactor.contains(te.kind)?te.kind:f.CodeActionKind.None,onlyIncludePreferredActions:te.preferred},te.apply,j,G)}const S={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:t.localize(4,null)},apply:{type:"string",description:t.localize(5,null),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[t.localize(6,null),t.localize(7,null),t.localize(8,null)]},preferred:{type:"boolean",default:!1,description:t.localize(9,null)}}};let E=class qi extends k.Disposable{constructor($,j,G,te,Z,X){super(),this._instantiationService=Z,this._editor=$,this._model=this._register(new g.CodeActionModel(this._editor,X.codeActionProvider,j,G,te)),this._register(this._model.onDidChangeState(ie=>this.update(ie))),this._ui=new v.Lazy(()=>this._register(new n.CodeActionUi($,F.Id,K.Id,{applyCodeAction:(ie,H,ae)=>be(this,void 0,void 0,function*(){try{yield this._applyCodeAction(ie,ae)}finally{H&&this._trigger({type:2,triggerAction:f.CodeActionTriggerSource.QuickFix,filter:{}})}})},this._instantiationService)))}static get($){return $.getContribution(qi.ID)}update($){this._ui.getValue().update($)}hideCodeActionMenu(){this._ui.hasValue()&&this._ui.getValue().hideCodeActionWidget()}navigateCodeActionList($){this._ui.hasValue()&&this._ui.getValue().navigateList($)}selectedOption(){this._ui.hasValue()&&this._ui.getValue().onEnter()}selectedOptionWithPreview(){this._ui.hasValue()&&this._ui.getValue().onPreviewEnter()}showCodeActions($,j,G){return this._ui.getValue().showCodeActionList($,j,G,{includeDisabledActions:!1,fromLightbulb:!1})}manualTriggerAtCurrentPosition($,j,G,te,Z){var X;if(!this._editor.hasModel())return;(X=i.MessageController.get(this._editor))===null||X===void 0||X.closeMessage();const ie=this._editor.getPosition();this._trigger({type:1,triggerAction:j,filter:G,autoApply:te,context:{notAvailableMessage:$,position:ie},preview:Z})}_trigger($){return this._model.trigger($)}_applyCodeAction($,j){return this._instantiationService.invokeFunction(N,$,L.FromCodeActions,{preview:j,editor:this._editor})}};E.ID="editor.contrib.quickFixController",E=Ie([pe(1,l.IMarkerService),pe(2,s.IContextKeyService),pe(3,a.IEditorProgressService),pe(4,d.IInstantiationService),pe(5,h.ILanguageFeaturesService)],E),e.QuickFixController=E;var L;(function(J){J.OnSave="onSave",J.FromProblemsView="fromProblemsView",J.FromCodeActions="fromCodeActions"})(L=e.ApplyCodeActionReason||(e.ApplyCodeActionReason={}));function N(J,$,j,G){return be(this,void 0,void 0,function*(){const te=J.get(b.IBulkEditService),Z=J.get(o.ICommandService),X=J.get(c.ITelemetryService),ie=J.get(r.INotificationService);if(X.publicLog2("codeAction.applyCodeAction",{codeActionTitle:$.action.title,codeActionKind:$.action.kind,codeActionIsPreferred:!!$.action.isPreferred,reason:j}),yield $.resolve(y.CancellationToken.None),$.action.edit&&(yield te.apply(b.ResourceEdit.convert($.action.edit),{editor:G?.editor,label:$.action.title,quotableLabel:$.action.title,code:"undoredo.codeAction",respectAutoSaveConfig:!0,showPreview:G?.preview})),$.action.command)try{yield Z.executeCommand($.action.command.id,...$.action.command.arguments||[])}catch(H){const ae=I(H);ie.error(typeof ae=="string"?ae:t.localize(10,null))}})}e.applyCodeAction=N;function I(J){return typeof J=="string"?J:J instanceof Error&&typeof J.message=="string"?J.message:void 0}function R(J,$,j,G,te=!1,Z=f.CodeActionTriggerSource.Default){if(J.hasModel()){const X=E.get(J);X?.manualTriggerAtCurrentPosition($,Z,j,G,te)}}class F extends w.EditorAction{constructor(){super({id:F.Id,label:t.localize(11,null),alias:"Quick Fix...",precondition:s.ContextKeyExpr.and(C.EditorContextKeys.writable,C.EditorContextKeys.hasCodeActionsProvider),kbOpts:{kbExpr:C.EditorContextKeys.editorTextFocus,primary:2132,weight:100}})}run($,j){return R(j,t.localize(12,null),void 0,void 0,!1,f.CodeActionTriggerSource.QuickFix)}}e.QuickFixAction=F,F.Id="editor.action.quickFix";class O extends w.EditorCommand{constructor(){super({id:u.codeActionCommandId,precondition:s.ContextKeyExpr.and(C.EditorContextKeys.writable,C.EditorContextKeys.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:S}]}})}runEditorCommand($,j,G){const te=f.CodeActionCommandArgs.fromUser(G,{kind:f.CodeActionKind.Empty,apply:"ifSingle"});return R(j,typeof G?.kind=="string"?te.preferred?t.localize(13,null,G.kind):t.localize(14,null,G.kind):te.preferred?t.localize(15,null):t.localize(16,null),{include:te.kind,includeSourceActions:!0,onlyIncludePreferredActions:te.preferred},te.apply)}}e.CodeActionCommand=O;class x extends w.EditorAction{constructor(){super({id:u.refactorCommandId,label:t.localize(17,null),alias:"Refactor...",precondition:s.ContextKeyExpr.and(C.EditorContextKeys.writable,C.EditorContextKeys.hasCodeActionsProvider),kbOpts:{kbExpr:C.EditorContextKeys.editorTextFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:s.ContextKeyExpr.and(C.EditorContextKeys.writable,p(f.CodeActionKind.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:S}]}})}run($,j,G){return m(j,G,!1,f.CodeActionTriggerSource.Refactor)}}e.RefactorAction=x;class M extends w.EditorAction{constructor(){super({id:u.refactorPreviewCommandId,label:t.localize(18,null),alias:"Refactor Preview...",precondition:s.ContextKeyExpr.and(C.EditorContextKeys.writable,C.EditorContextKeys.hasCodeActionsProvider),description:{description:"Refactor Preview...",args:[{name:"args",schema:S}]}})}run($,j,G){return m(j,G,!0,f.CodeActionTriggerSource.RefactorPreview)}}e.RefactorPreview=M;class P extends w.EditorAction{constructor(){super({id:u.sourceActionCommandId,label:t.localize(19,null),alias:"Source Action...",precondition:s.ContextKeyExpr.and(C.EditorContextKeys.writable,C.EditorContextKeys.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:s.ContextKeyExpr.and(C.EditorContextKeys.writable,p(f.CodeActionKind.Source))},description:{description:"Source Action...",args:[{name:"args",schema:S}]}})}run($,j,G){const te=f.CodeActionCommandArgs.fromUser(G,{kind:f.CodeActionKind.Source,apply:"never"});return R(j,typeof G?.kind=="string"?te.preferred?t.localize(20,null,G.kind):t.localize(21,null,G.kind):te.preferred?t.localize(22,null):t.localize(23,null),{include:f.CodeActionKind.Source.contains(te.kind)?te.kind:f.CodeActionKind.None,includeSourceActions:!0,onlyIncludePreferredActions:te.preferred},te.apply,void 0,f.CodeActionTriggerSource.SourceAction)}}e.SourceAction=P;class A extends w.EditorAction{constructor(){super({id:u.organizeImportsCommandId,label:t.localize(24,null),alias:"Organize Imports",precondition:s.ContextKeyExpr.and(C.EditorContextKeys.writable,p(f.CodeActionKind.SourceOrganizeImports)),kbOpts:{kbExpr:C.EditorContextKeys.editorTextFocus,primary:1581,weight:100}})}run($,j){return R(j,t.localize(25,null),{include:f.CodeActionKind.SourceOrganizeImports,includeSourceActions:!0},"ifSingle",void 0,f.CodeActionTriggerSource.OrganizeImports)}}e.OrganizeImportsAction=A;class B extends w.EditorAction{constructor(){super({id:u.fixAllCommandId,label:t.localize(26,null),alias:"Fix All",precondition:s.ContextKeyExpr.and(C.EditorContextKeys.writable,p(f.CodeActionKind.SourceFixAll))})}run($,j){return R(j,t.localize(27,null),{include:f.CodeActionKind.SourceFixAll,includeSourceActions:!0},"ifSingle",void 0,f.CodeActionTriggerSource.FixAll)}}e.FixAllAction=B;class K extends w.EditorAction{constructor(){super({id:K.Id,label:t.localize(28,null),alias:"Auto Fix...",precondition:s.ContextKeyExpr.and(C.EditorContextKeys.writable,p(f.CodeActionKind.QuickFix)),kbOpts:{kbExpr:C.EditorContextKeys.editorTextFocus,primary:1620,mac:{primary:2644},weight:100}})}run($,j){return R(j,t.localize(29,null),{include:f.CodeActionKind.QuickFix,onlyIncludePreferredActions:!0},"ifSingle",void 0,f.CodeActionTriggerSource.AutoFix)}}e.AutoFixAction=K,K.Id="editor.action.autoFix";const T=w.EditorCommand.bindToContribution(E.get),ee=100+90;(0,w.registerEditorCommand)(new T({id:"hideCodeActionMenuWidget",precondition:_.Context.Visible,handler(J){J.hideCodeActionMenu()},kbOpts:{weight:ee,primary:9,secondary:[1033]}})),(0,w.registerEditorCommand)(new T({id:"focusPreviousCodeAction",precondition:_.Context.Visible,handler(J){J.navigateCodeActionList(!0)},kbOpts:{weight:ee+1e5,primary:16,secondary:[2064]}})),(0,w.registerEditorCommand)(new T({id:"focusNextCodeAction",precondition:_.Context.Visible,handler(J){J.navigateCodeActionList(!1)},kbOpts:{weight:ee+1e5,primary:18,secondary:[2066]}})),(0,w.registerEditorCommand)(new T({id:"onEnterSelectCodeAction",precondition:_.Context.Visible,handler(J){J.selectedOption()},kbOpts:{weight:ee+1e5,primary:3,secondary:[1026]}})),(0,w.registerEditorCommand)(new T({id:"onEnterSelectCodeActionWithPreview",precondition:_.Context.Visible,handler(J){J.selectedOptionWithPreview()},kbOpts:{weight:ee+1e5,primary:2051}}))}),define(oe[709],se([1,0,12,306,655]),function(q,e,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(0,y.registerEditorContribution)(v.QuickFixController.ID,v.QuickFixController),(0,y.registerEditorAction)(v.QuickFixAction),(0,y.registerEditorAction)(v.RefactorAction),(0,y.registerEditorAction)(v.RefactorPreview),(0,y.registerEditorAction)(v.SourceAction),(0,y.registerEditorAction)(v.OrganizeImportsAction),(0,y.registerEditorAction)(v.AutoFixAction),(0,y.registerEditorAction)(v.FixAllAction),(0,y.registerEditorCommand)(new v.CodeActionCommand)}),define(oe[710],se([1,0,2,12,143,590]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ReadOnlyMessageController=void 0;class w extends y.Disposable{constructor(C){super(),this.editor=C,this._register(this.editor.onDidAttemptReadOnlyEdit(()=>this._onDidAttemptReadOnlyEdit()))}_onDidAttemptReadOnlyEdit(){const C=k.MessageController.get(this.editor);C&&this.editor.hasModel()&&(this.editor.isSimpleWidget?C.showMessage(D.localize(0,null),this.editor.getPosition()):C.showMessage(D.localize(1,null),this.editor.getPosition()))}}e.ReadOnlyMessageController=w,w.ID="editor.contrib.readOnlyMessageController",(0,v.registerEditorContribution)(w.ID,w)}),define(oe[711],se([1,0,49,10,21,14,2,19,22,95,12,138,29,11,3,24,166,143,591,94,16,9,69,38,71,34,688,20]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r,c,g,f,_,p,m,S,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RenameAction=e.rename=void 0;class L{constructor(x,M,P){this.model=x,this.position=M,this._providerRenameIdx=0,this._providers=P.ordered(x)}hasProvider(){return this._providers.length>0}resolveRenameLocation(x){return be(this,void 0,void 0,function*(){const M=[];for(this._providerRenameIdx=0;this._providerRenameIdx<this._providers.length;this._providerRenameIdx++){const A=this._providers[this._providerRenameIdx];if(!A.resolveRenameLocation)break;const B=yield A.resolveRenameLocation(this.model,this.position,x);if(B){if(B.rejectReason){M.push(B.rejectReason);continue}return B}}const P=this.model.getWordAtPosition(this.position);return P?{range:new o.Range(this.position.lineNumber,P.startColumn,this.position.lineNumber,P.endColumn),text:P.word,rejectReason:M.length>0?M.join(` `):void 0}:{range:o.Range.fromPositions(this.position),text:"",rejectReason:M.length>0?M.join(` `):void 0}})}provideRenameEdits(x,M){return be(this,void 0,void 0,function*(){return this._provideRenameEdits(x,this._providerRenameIdx,[],M)})}_provideRenameEdits(x,M,P,A){return be(this,void 0,void 0,function*(){const B=this._providers[M];if(!B)return{edits:[],rejectReason:P.join(` `)};const K=yield B.provideRenameEdits(this.model,this.position,x,A);if(K){if(K.rejectReason)return this._provideRenameEdits(x,M+1,P.concat(K.rejectReason),A)}else return this._provideRenameEdits(x,M+1,P.concat(a.localize(0,null)),A);return K})}}function N(O,x,M,P){return be(this,void 0,void 0,function*(){const A=new L(x,M,O),B=yield A.resolveRenameLocation(k.CancellationToken.None);return B?.rejectReason?{edits:[],rejectReason:B.rejectReason}:A.provideRenameEdits(P,k.CancellationToken.None)})}e.rename=N;let I=class Gi{constructor(x,M,P,A,B,K,T,ee){this.editor=x,this._instaService=M,this._notificationService=P,this._bulkEditService=A,this._progressService=B,this._logService=K,this._configService=T,this._languageFeaturesService=ee,this._disposableStore=new w.DisposableStore,this._cts=new k.CancellationTokenSource,this._renameInputField=this._disposableStore.add(new v.IdleValue(()=>this._disposableStore.add(this._instaService.createInstance(S.RenameInputField,this.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))))}static get(x){return x.getContribution(Gi.ID)}dispose(){this._disposableStore.dispose(),this._cts.dispose(!0)}run(){var x,M;return be(this,void 0,void 0,function*(){if(this._cts.dispose(!0),!this.editor.hasModel())return;const P=this.editor.getPosition(),A=new L(this.editor.getModel(),P,this._languageFeaturesService.renameProvider);if(!A.hasProvider())return;this._cts=new h.EditorStateCancellationTokenSource(this.editor,5);let B;try{const G=A.resolveRenameLocation(this._cts.token);this._progressService.showWhile(G,250),B=yield G}catch(G){(x=l.MessageController.get(this.editor))===null||x===void 0||x.showMessage(G||a.localize(1,null),P);return}if(!B)return;if(B.rejectReason){(M=l.MessageController.get(this.editor))===null||M===void 0||M.showMessage(B.rejectReason,P);return}if(this._cts.token.isCancellationRequested)return;this._cts.dispose(),this._cts=new h.EditorStateCancellationTokenSource(this.editor,5,B.range);const K=this.editor.getSelection();let T=0,ee=B.text.length;!o.Range.isEmpty(K)&&!o.Range.spansMultipleLines(K)&&o.Range.containsRange(B.range,K)&&(T=Math.max(0,K.startColumn-B.range.startColumn),ee=Math.min(B.range.endColumn,K.endColumn)-B.range.startColumn);const J=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),$=yield this._renameInputField.value.getInput(B.range,B.text,T,ee,J,this._cts.token);if(typeof $=="boolean"){$&&this.editor.focus();return}this.editor.focus();const j=(0,v.raceCancellation)(A.provideRenameEdits($.newName,this._cts.token),this._cts.token).then(G=>be(this,void 0,void 0,function*(){if(!(!G||!this.editor.hasModel())){if(G.rejectReason){this._notificationService.info(G.rejectReason);return}this.editor.setSelection(o.Range.fromPositions(this.editor.getSelection().getPosition())),this._bulkEditService.apply(n.ResourceEdit.convert(G),{editor:this.editor,showPreview:$.wantsPreview,label:a.localize(2,null,B?.text,$.newName),code:"undoredo.rename",quotableLabel:a.localize(3,null,B?.text,$.newName),respectAutoSaveConfig:!0}).then(te=>{te.ariaSummary&&(0,y.alert)(a.localize(4,null,B.text,$.newName,te.ariaSummary))}).catch(te=>{this._notificationService.error(a.localize(5,null)),this._logService.error(te)})}}),G=>{this._notificationService.error(a.localize(6,null)),this._logService.error(G)});return this._progressService.showWhile(j,250),j})}acceptRenameInput(x){this._renameInputField.value.acceptInput(x)}cancelRenameInput(){this._renameInputField.value.cancelInput(!0)}};I.ID="editor.contrib.renameController",I=Ie([pe(1,g.IInstantiationService),pe(2,_.INotificationService),pe(3,n.IBulkEditService),pe(4,p.IEditorProgressService),pe(5,f.ILogService),pe(6,d.ITextResourceConfigurationService),pe(7,E.ILanguageFeaturesService)],I);class R extends u.EditorAction{constructor(){super({id:"editor.action.rename",label:a.localize(7,null),alias:"Rename Symbol",precondition:c.ContextKeyExpr.and(s.EditorContextKeys.writable,s.EditorContextKeys.hasRenameProvider),kbOpts:{kbExpr:s.EditorContextKeys.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})}runCommand(x,M){const P=x.get(i.ICodeEditorService),[A,B]=Array.isArray(M)&&M||[void 0,void 0];return C.URI.isUri(A)&&t.Position.isIPosition(B)?P.openCodeEditor({resource:A},P.getActiveCodeEditor()).then(K=>{!K||(K.setPosition(B),K.invokeWithinContext(T=>(this.reportTelemetry(T,K),this.run(T,K))))},D.onUnexpectedError):super.runCommand(x,M)}run(x,M){const P=I.get(M);return P?P.run():Promise.resolve()}}e.RenameAction=R,(0,u.registerEditorContribution)(I.ID,I),(0,u.registerEditorAction)(R);const F=u.EditorCommand.bindToContribution(I.get);(0,u.registerEditorCommand)(new F({id:"acceptRenameInput",precondition:S.CONTEXT_RENAME_INPUT_VISIBLE,handler:O=>O.acceptRenameInput(!1),kbOpts:{weight:100+99,kbExpr:s.EditorContextKeys.focus,primary:3}})),(0,u.registerEditorCommand)(new F({id:"acceptRenameInputWithPreview",precondition:c.ContextKeyExpr.and(S.CONTEXT_RENAME_INPUT_VISIBLE,c.ContextKeyExpr.has("config.editor.rename.enablePreview")),handler:O=>O.acceptRenameInput(!0),kbOpts:{weight:100+99,kbExpr:s.EditorContextKeys.focus,primary:1024+3}})),(0,u.registerEditorCommand)(new F({id:"cancelRenameInput",precondition:S.CONTEXT_RENAME_INPUT_VISIBLE,handler:O=>O.cancelRenameInput(),kbOpts:{weight:100+99,kbExpr:s.EditorContextKeys.focus,primary:9,secondary:[1033]}})),(0,u.registerModelAndPositionCommand)("_executeDocumentRenameProvider",function(O,x,M,...P){const[A]=P;(0,b.assertType)(typeof A=="string");const{renameProvider:B}=O.get(E.ILanguageFeaturesService);return N(B,x,M,A)}),(0,u.registerModelAndPositionCommand)("_executePrepareRename",function(O,x,M){return be(this,void 0,void 0,function*(){const{renameProvider:P}=O.get(E.ILanguageFeaturesService),A=yield new L(x,M,P).resolveRenameLocation(k.CancellationToken.None);if(A?.rejectReason)throw new Error(A.rejectReason);return A})}),m.Registry.as(r.Extensions.Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:a.localize(8,null),default:!0,type:"boolean"}}})}),define(oe[712],se([1,0,18,21,14,12,11,3,23,24,249,458,593,39,26,20,58,19,22]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.provideSelectionRanges=void 0;class r{constructor(S,E){this.index=S,this.ranges=E}mov(S){const E=this.index+(S?1:-1);if(E<0||E>=this.ranges.length)return this;const L=new r(E,this.ranges);return L.ranges[E].equalsRange(this.ranges[this.index])?L.mov(S):L}}let c=class Qi{constructor(S,E){this._editor=S,this._languageFeaturesService=E,this._ignoreSelection=!1}static get(S){return S.getContribution(Qi.ID)}dispose(){var S;(S=this._selectionListener)===null||S===void 0||S.dispose()}run(S){return be(this,void 0,void 0,function*(){if(!this._editor.hasModel())return;const E=this._editor.getSelections(),L=this._editor.getModel();if(this._state||(yield p(this._languageFeaturesService.selectionRangeProvider,L,E.map(I=>I.getPosition()),this._editor.getOption(104),v.CancellationToken.None).then(I=>{var R;if(!(!y.isNonEmptyArray(I)||I.length!==E.length)&&!(!this._editor.hasModel()||!y.equals(this._editor.getSelections(),E,(F,O)=>F.equalsSelection(O)))){for(let F=0;F<I.length;F++)I[F]=I[F].filter(O=>O.containsPosition(E[F].getStartPosition())&&O.containsPosition(E[F].getEndPosition())),I[F].unshift(E[F]);this._state=I.map(F=>new r(0,F)),(R=this._selectionListener)===null||R===void 0||R.dispose(),this._selectionListener=this._editor.onDidChangeCursorPosition(()=>{var F;this._ignoreSelection||((F=this._selectionListener)===null||F===void 0||F.dispose(),this._state=void 0)})}})),!this._state)return;this._state=this._state.map(I=>I.mov(S));const N=this._state.map(I=>C.Selection.fromPositions(I.ranges[I.index].getStartPosition(),I.ranges[I.index].getEndPosition()));this._ignoreSelection=!0;try{this._editor.setSelections(N)}finally{this._ignoreSelection=!1}})}};c.ID="editor.contrib.smartSelectController",c=Ie([pe(1,s.ILanguageFeaturesService)],c);class g extends D.EditorAction{constructor(S,E){super(E),this._forward=S}run(S,E){return be(this,void 0,void 0,function*(){const L=c.get(E);L&&(yield L.run(this._forward))})}}class f extends g{constructor(){super(!0,{id:"editor.action.smartSelect.expand",label:i.localize(0,null),alias:"Expand Selection",precondition:void 0,kbOpts:{kbExpr:h.EditorContextKeys.editorTextFocus,primary:1553,mac:{primary:3345,secondary:[1297]},weight:100},menuOpts:{menuId:t.MenuId.MenubarSelectionMenu,group:"1_basic",title:i.localize(1,null),order:2}})}}o.CommandsRegistry.registerCommandAlias("editor.action.smartSelect.grow","editor.action.smartSelect.expand");class _ extends g{constructor(){super(!1,{id:"editor.action.smartSelect.shrink",label:i.localize(2,null),alias:"Shrink Selection",precondition:void 0,kbOpts:{kbExpr:h.EditorContextKeys.editorTextFocus,primary:1551,mac:{primary:3343,secondary:[1295]},weight:100},menuOpts:{menuId:t.MenuId.MenubarSelectionMenu,group:"1_basic",title:i.localize(3,null),order:3}})}}(0,D.registerEditorContribution)(c.ID,c),(0,D.registerEditorAction)(f),(0,D.registerEditorAction)(_);function p(m,S,E,L,N){return be(this,void 0,void 0,function*(){const I=m.all(S).concat(new n.WordSelectionRangeProvider);I.length===1&&I.unshift(new u.BracketSelectionRangeProvider);const R=[],F=[];for(const O of I)R.push(Promise.resolve(O.provideSelectionRanges(S,E,N)).then(x=>{if(y.isNonEmptyArray(x)&&x.length===E.length)for(let M=0;M<E.length;M++){F[M]||(F[M]=[]);for(const P of x[M])b.Range.isIRange(P.range)&&b.Range.containsPosition(P.range,E[M])&&F[M].push(b.Range.lift(P.range))}},k.onUnexpectedExternalError));return yield Promise.all(R),F.map(O=>{if(O.length===0)return[];O.sort((A,B)=>w.Position.isBefore(A.getStartPosition(),B.getStartPosition())?1:w.Position.isBefore(B.getStartPosition(),A.getStartPosition())||w.Position.isBefore(A.getEndPosition(),B.getEndPosition())?-1:w.Position.isBefore(B.getEndPosition(),A.getEndPosition())?1:0);const x=[];let M;for(const A of O)(!M||b.Range.containsRange(A,M)&&!b.Range.equalsRange(A,M))&&(x.push(A),M=A);if(!L.selectLeadingAndTrailingWhitespace)return x;const P=[x[0]];for(let A=1;A<x.length;A++){const B=x[A-1],K=x[A];if(K.startLineNumber!==B.startLineNumber||K.endLineNumber!==B.endLineNumber){const T=new b.Range(B.startLineNumber,S.getLineFirstNonWhitespaceColumn(B.startLineNumber),B.endLineNumber,S.getLineLastNonWhitespaceColumn(B.endLineNumber));T.containsRange(B)&&!T.equalsRange(B)&&K.containsRange(T)&&!K.equalsRange(T)&&P.push(T);const ee=new b.Range(B.startLineNumber,1,B.endLineNumber,S.getLineMaxColumn(B.endLineNumber));ee.containsRange(B)&&!ee.equalsRange(T)&&K.containsRange(ee)&&!K.equalsRange(ee)&&P.push(ee)}P.push(K)}return P})})}e.provideSelectionRanges=p,o.CommandsRegistry.registerCommand("_executeSelectionRangeProvider",function(m,...S){return be(this,void 0,void 0,function*(){const[E,L]=S;(0,l.assertType)(a.URI.isUri(E));const N=m.get(s.ILanguageFeaturesService).selectionRangeProvider,I=yield m.get(d.ITextModelService).createModelReference(E);try{return p(N,I.object.textEditorModel,L,{selectLeadingAndTrailingWhitespace:!0},v.CancellationToken.None)}finally{I.dispose()}})})}),define(oe[713],se([1,0,2,12,20,168,21,7,91,114,130,10,11]),function(q,e,y,v,k,D,w,b,C,h,u,n,i){"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0});let o=class extends y.Disposable{constructor(a,r){super(),this._sessionStore=new y.DisposableStore,this._ranges=[],this._rangesVersionId=0,this._editor=a,this._languageFeaturesService=r,this.stickyScrollWidget=new l(this._editor),this._register(this._editor.onDidChangeConfiguration(c=>{c.hasChanged(34)&&this.onConfigurationChange()})),this._updateSoon=this._register(new n.RunOnceScheduler(()=>this._update(!0),50)),this.onConfigurationChange()}onConfigurationChange(){if(this._editor.getOption(34).stickyScroll.enabled===!1){this.stickyScrollWidget.emptyRootNode(),this._editor.removeOverlayWidget(this.stickyScrollWidget),this._sessionStore.clear();return}else this._editor.addOverlayWidget(this.stickyScrollWidget),this._sessionStore.add(this._editor.onDidChangeModel(()=>this._update(!0))),this._sessionStore.add(this._editor.onDidScrollChange(()=>this._update(!1))),this._sessionStore.add(this._editor.onDidChangeHiddenAreas(()=>this._update(!0))),this._sessionStore.add(this._editor.onDidChangeModelTokens(a=>this._onTokensChange(a))),this._sessionStore.add(this._editor.onDidChangeModelContent(()=>this._updateSoon.schedule())),this._sessionStore.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>this._update(!0))),this._update(!0)}_needsUpdate(a){const r=this.stickyScrollWidget.getCurrentLines();for(const c of r)for(const g of a.ranges)if(c>=g.fromLineNumber&&c<=g.toLineNumber)return!0;return!1}_onTokensChange(a){this._needsUpdate(a)&&this._update(!1)}_update(a=!1){var r,c;return be(this,void 0,void 0,function*(){a&&((r=this._cts)===null||r===void 0||r.dispose(!0),this._cts=new w.CancellationTokenSource,yield this._updateOutlineModel(this._cts.token));const g=(c=this._editor._getViewModel())===null||c===void 0?void 0:c.getHiddenAreas();if(g)for(const f of g)this._ranges=this._ranges.filter(_=>!(_[0]>=f.startLineNumber&&_[1]<=f.endLineNumber+1));this._renderStickyScroll()})}_findLineRanges(a,r){if(a?.children.size){let c=!1;for(const g of a?.children.values()){const f=g.symbol.kind;(f===4||f===8||f===11||f===10||f===5||f===1)&&(c=!0,this._findLineRanges(g,r+1))}c||this._addOutlineRanges(a,r)}else this._addOutlineRanges(a,r)}_addOutlineRanges(a,r){let c=0,g=0;for(;a;){const f=a.symbol.kind;if((f===4||f===8||f===11||f===10||f===5||f===1)&&(c=a?.symbol.range.startLineNumber,g=a?.symbol.range.endLineNumber,this._ranges.push([c,g,r]),r--),a.parent instanceof D.OutlineElement)a=a.parent;else break}}_updateOutlineModel(a){return be(this,void 0,void 0,function*(){if(this._editor.hasModel()){const r=this._editor.getModel(),c=r.getVersionId(),g=yield D.OutlineModel.create(this._languageFeaturesService.documentSymbolProvider,r,a);if(a.isCancellationRequested)return;this._ranges=[],this._rangesVersionId=c;for(const f of g.children.values()){if(f instanceof D.OutlineElement){const p=f.symbol.kind;p===4||p===8||p===11||p===10||p===5||p===1?this._findLineRanges(f,1):this._findLineRanges(f,0)}this._ranges=this._ranges.sort(function(p,m){return p[0]!==m[0]?p[0]-m[0]:p[1]!==m[1]?m[1]-p[1]:p[2]-m[2]});let _=[];for(const[p,m]of this._ranges.entries()){const[S,E,L]=m;_[0]===S&&_[1]===E?this._ranges.splice(p,1):_=m}}}})}_renderStickyScroll(){if(!this._editor.hasModel())return;const a=this._editor.getOption(61),r=this._editor.getModel();if(this._rangesVersionId!==r.getVersionId())return;const c=this._editor.getScrollTop();this.stickyScrollWidget.emptyRootNode();const g=new Set;for(const[f,_]of this._ranges.entries()){const[p,m,S]=_;if(m-p>0&&r.getLineContent(p)!==""){const E=(S-1)*a,L=S*a,N=this._editor.getBottomForLineNumber(p)-c,I=this._editor.getTopForLineNumber(m)-c,R=this._editor.getBottomForLineNumber(m)-c;if(g.has(p))this._ranges.splice(f,1);else if(E>=I-1&&E<R-2){g.add(p),this.stickyScrollWidget.pushCodeLine(new d(p,S,this._editor,-1,R-L));break}else L>N&&L<R-1&&(g.add(p),this.stickyScrollWidget.pushCodeLine(new d(p,S,this._editor,0,0)))}}this.stickyScrollWidget.updateRootNode()}dispose(){super.dispose(),this._sessionStore.dispose()}};o.ID="store.contrib.stickyScrollController",o=Ie([pe(1,k.ILanguageFeaturesService)],o);const s=(t=window.trustedTypes)===null||t===void 0?void 0:t.createPolicy("stickyScrollViewLayer",{createHTML:a=>a});class d{constructor(r,c,g,f,_){this._lineNumber=r,this._depth=c,this._editor=g,this._zIndex=f,this._relativePosition=_,this.effectiveLineHeight=0,this.effectiveLineHeight=this._editor.getOption(61)+this._relativePosition}get lineNumber(){return this._lineNumber}getDomNode(){const r=document.createElement("div"),c=this._editor._getViewModel(),g=c.coordinatesConverter.convertModelPositionToViewPosition(new i.Position(this._lineNumber,1)).lineNumber,f=c.getViewLineRenderingData(g);let _;try{_=u.LineDecoration.filter(f.inlineDecorations,g,f.minColumn,f.maxColumn)}catch{_=[]}const p=new h.RenderLineInput(!0,!0,f.content,f.continuesWithWrappedLine,f.isBasicASCII,f.containsRTL,0,f.tokens,_,f.tabSize,f.startVisibleColumn,1,1,1,100,"none",!0,!0,null),m=(0,C.createStringBuilder)(400);(0,h.renderViewLine)(p,m);let S;s?S=s.createHTML(m.build()):S=m.build();const E=document.createElement("span");E.style.backgroundColor="var(--vscode-editorStickyScroll-background)",E.style.overflow="hidden",E.style.whiteSpace="nowrap",E.style.display="inline-block",E.style.lineHeight=this._editor.getOption(61).toString()+"px",E.innerHTML=S;const L=document.createElement("span");L.style.width=this._editor.getLayoutInfo().contentLeft.toString()+"px",L.style.backgroundColor="var(--vscode-editorStickyScroll-background)",L.style.color="var(--vscode-editorLineNumber-foreground)",L.style.display="inline-block",L.style.lineHeight=this._editor.getOption(61).toString()+"px";const N=document.createElement("span");return N.innerText=this._lineNumber.toString(),N.style.paddingLeft=this._editor.getLayoutInfo().lineNumbersLeft.toString()+"px",N.style.width=this._editor.getLayoutInfo().lineNumbersWidth.toString()+"px",N.style.backgroundColor="var(--vscode-editorStickyScroll-background)",N.style.textAlign="right",N.style.float="left",N.style.lineHeight=this._editor.getOption(61).toString()+"px",L.appendChild(N),r.onclick=I=>{I.stopPropagation(),I.preventDefault(),this._editor.revealPosition({lineNumber:this._lineNumber-this._depth+1,column:1})},r.onmouseover=I=>{N.style.background="var(--vscode-editorStickyScrollHover-background)",E.style.backgroundColor="var(--vscode-editorStickyScrollHover-background)",L.style.backgroundColor="var(--vscode-editorStickyScrollHover-background)",r.style.backgroundColor="var(--vscode-editorStickyScrollHover-background)",N.style.cursor="pointer",E.style.cursor="pointer",r.style.cursor="pointer",L.style.cursor="pointer"},r.onmouseleave=I=>{N.style.background="var(--vscode-editorStickyScroll-background)",E.style.backgroundColor="var(--vscode-editorStickyScroll-background)",L.style.backgroundColor="var(--vscode-editorStickyScroll-background)",r.style.backgroundColor="var(--vscode-editorStickyScroll-background)"},this._editor.applyFontInfo(E),this._editor.applyFontInfo(N),r.appendChild(L),r.appendChild(E),r.style.zIndex=this._zIndex.toString(),r.style.backgroundColor="var(--vscode-editorStickyScroll-background)",r.style.overflow="hidden",r.style.whiteSpace="nowrap",r.style.width="100%",r.style.lineHeight=this._editor.getOption(61).toString()+"px",r.style.height=this._editor.getOption(61).toString()+"px",this._relativePosition&&(r.style.position="relative",r.style.top=this._relativePosition+"px",r.style.width="100%"),r}}class l{constructor(r){this._editor=r,this.arrayOfCodeLines=[],this.rootDomNode=document.createElement("div"),this.rootDomNode=document.createElement("div"),this.rootDomNode.style.width="100%",this.rootDomNode.style.boxShadow="var(--vscode-scrollbar-shadow) 0 6px 6px -6px"}getCurrentLines(){const r=[];for(const c of this.arrayOfCodeLines)r.push(c.lineNumber);return r}pushCodeLine(r){this.arrayOfCodeLines.push(r)}updateRootNode(){let r=0;for(const c of this.arrayOfCodeLines)r+=c.effectiveLineHeight,this.rootDomNode.appendChild(c.getDomNode());this.rootDomNode.style.height=r.toString()+"px"}emptyRootNode(){this.arrayOfCodeLines.length=0,b.clearNode(this.rootDomNode)}getId(){return"editor.contrib.stickyScrollWidget"}getDomNode(){return this.rootDomNode.style.zIndex="2",this.rootDomNode.style.backgroundColor="var(--vscode-editorStickyScroll-background)",this.rootDomNode}getPosition(){return{preference:null}}}(0,v.registerEditorContribution)(o.ID,o)}),define(oe[102],se([1,0,21,14,63,2,57,19,22,11,3,58,89,596,39,26,16,20,293]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.QuickSuggestionsOptions=e.showSimpleSuggestions=e.getSuggestionComparator=e.provideSuggestionItems=e.CompletionItemModel=e.getSnippetSuggestSupport=e.CompletionOptions=e.CompletionItem=e.suggestWidgetStatusbarMenu=e.Context=void 0,e.Context={Visible:a.historyNavigationVisible,HasFocusedSuggestion:new d.RawContextKey("suggestWidgetHasFocusedSuggestion",!1,(0,t.localize)(0,null)),DetailsVisible:new d.RawContextKey("suggestWidgetDetailsVisible",!1,(0,t.localize)(1,null)),MultipleSuggestions:new d.RawContextKey("suggestWidgetMultipleSuggestions",!1,(0,t.localize)(2,null)),MakesTextEdit:new d.RawContextKey("suggestionMakesTextEdit",!0,(0,t.localize)(3,null)),AcceptSuggestionsOnEnter:new d.RawContextKey("acceptSuggestionOnEnter",!0,(0,t.localize)(4,null)),HasInsertAndReplaceRange:new d.RawContextKey("suggestionHasInsertAndReplaceRange",!1,(0,t.localize)(5,null)),InsertMode:new d.RawContextKey("suggestionInsertMode",void 0,{type:"string",description:(0,t.localize)(6,null)}),CanResolve:new d.RawContextKey("suggestionCanResolve",!1,(0,t.localize)(7,null))},e.suggestWidgetStatusbarMenu=new o.MenuId("suggestWidgetStatusBar");class r{constructor(O,x,M,P){this.position=O,this.completion=x,this.container=M,this.provider=P,this.isInvalid=!1,this.score=k.FuzzyScore.Default,this.distance=0,this.textLabel=typeof x.label=="string"?x.label:x.label.label,this.labelLow=this.textLabel.toLowerCase(),this.isInvalid=!this.textLabel,this.sortTextLow=x.sortText&&x.sortText.toLowerCase(),this.filterTextLow=x.filterText&&x.filterText.toLowerCase(),this.extensionId=x.extensionId,u.Range.isIRange(x.range)?(this.editStart=new h.Position(x.range.startLineNumber,x.range.startColumn),this.editInsertEnd=new h.Position(x.range.endLineNumber,x.range.endColumn),this.editReplaceEnd=new h.Position(x.range.endLineNumber,x.range.endColumn),this.isInvalid=this.isInvalid||u.Range.spansMultipleLines(x.range)||x.range.startLineNumber!==O.lineNumber):(this.editStart=new h.Position(x.range.insert.startLineNumber,x.range.insert.startColumn),this.editInsertEnd=new h.Position(x.range.insert.endLineNumber,x.range.insert.endColumn),this.editReplaceEnd=new h.Position(x.range.replace.endLineNumber,x.range.replace.endColumn),this.isInvalid=this.isInvalid||u.Range.spansMultipleLines(x.range.insert)||u.Range.spansMultipleLines(x.range.replace)||x.range.insert.startLineNumber!==O.lineNumber||x.range.replace.startLineNumber!==O.lineNumber||x.range.insert.startColumn!==x.range.replace.startColumn),typeof P.resolveCompletionItem!="function"&&(this._resolveCache=Promise.resolve(),this._isResolved=!0)}get isResolved(){return!!this._isResolved}resolve(O){return be(this,void 0,void 0,function*(){if(!this._resolveCache){const x=O.onCancellationRequested(()=>{this._resolveCache=void 0,this._isResolved=!1});this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,O)).then(M=>{Object.assign(this.completion,M),this._isResolved=!0,x.dispose()},M=>{(0,v.isCancellationError)(M)&&(this._resolveCache=void 0,this._isResolved=!1)})}return this._resolveCache})}}e.CompletionItem=r;class c{constructor(O=2,x=new Set,M=new Set,P=!0){this.snippetSortOrder=O,this.kindFilter=x,this.providerFilter=M,this.showDeprecated=P}}e.CompletionOptions=c,c.default=new c;let g;function f(){return g}e.getSnippetSuggestSupport=f;class _{constructor(O,x,M,P){this.items=O,this.needsClipboard=x,this.durations=M,this.disposable=P}}e.CompletionItemModel=_;function p(F,O,x,M=c.default,P={triggerKind:0},A=y.CancellationToken.None){return be(this,void 0,void 0,function*(){const B=new w.StopWatch(!0);x=x.clone();const K=O.getWordAtPosition(x),T=K?new u.Range(x.lineNumber,K.startColumn,x.lineNumber,K.endColumn):u.Range.fromPositions(x),ee={replace:T,insert:T.setEndPosition(x.lineNumber,x.column)},J=[],$=new D.DisposableStore,j=[];let G=!1;const te=(X,ie,H)=>{var ae,Y,U;let le=!1;if(!ie)return le;for(const z of ie.suggestions)if(!M.kindFilter.has(z.kind)){if(!M.showDeprecated&&(!((ae=z?.tags)===null||ae===void 0)&&ae.includes(1)))continue;z.range||(z.range=ee),z.sortText||(z.sortText=typeof z.label=="string"?z.label:z.label.label),!G&&z.insertTextRules&&z.insertTextRules&4&&(G=i.SnippetParser.guessNeedsClipboard(z.insertText)),J.push(new r(x,z,ie,X)),le=!0}return(0,D.isDisposable)(ie)&&$.add(ie),j.push({providerName:(Y=X._debugDisplayName)!==null&&Y!==void 0?Y:"unknown_provider",elapsedProvider:(U=ie.duration)!==null&&U!==void 0?U:-1,elapsedOverall:H.elapsed()}),le},Z=(()=>be(this,void 0,void 0,function*(){if(!g||M.kindFilter.has(27)||M.providerFilter.size>0&&!M.providerFilter.has(g))return;const X=new w.StopWatch(!0),ie=yield g.provideCompletionItems(O,x,P,A);te(g,ie,X)}))();for(const X of F.orderedGroups(O)){let ie=!1;if(yield Promise.all(X.map(H=>be(this,void 0,void 0,function*(){if(!(M.providerFilter.size>0&&!M.providerFilter.has(H)))try{const ae=new w.StopWatch(!0),Y=yield H.provideCompletionItems(O,x,P,A);ie=te(H,Y,ae)||ie}catch(ae){(0,v.onUnexpectedExternalError)(ae)}}))),ie||A.isCancellationRequested)break}return yield Z,A.isCancellationRequested?($.dispose(),Promise.reject(new v.CancellationError)):new _(J.sort(N(M.snippetSortOrder)),G,{entries:j,elapsed:B.elapsed()},$)})}e.provideSuggestionItems=p;function m(F,O){if(F.sortTextLow&&O.sortTextLow){if(F.sortTextLow<O.sortTextLow)return-1;if(F.sortTextLow>O.sortTextLow)return 1}return F.textLabel<O.textLabel?-1:F.textLabel>O.textLabel?1:F.completion.kind-O.completion.kind}function S(F,O){if(F.completion.kind!==O.completion.kind){if(F.completion.kind===27)return-1;if(O.completion.kind===27)return 1}return m(F,O)}function E(F,O){if(F.completion.kind!==O.completion.kind){if(F.completion.kind===27)return 1;if(O.completion.kind===27)return-1}return m(F,O)}const L=new Map;L.set(0,S),L.set(2,E),L.set(1,m);function N(F){return L.get(F)}e.getSuggestionComparator=N,s.CommandsRegistry.registerCommand("_executeCompletionItemProvider",(F,...O)=>be(void 0,void 0,void 0,function*(){const[x,M,P,A]=O;(0,b.assertType)(C.URI.isUri(x)),(0,b.assertType)(h.Position.isIPosition(M)),(0,b.assertType)(typeof P=="string"||!P),(0,b.assertType)(typeof A=="number"||!A);const{completionProvider:B}=F.get(l.ILanguageFeaturesService),K=yield F.get(n.ITextModelService).createModelReference(x);try{const T={incomplete:!1,suggestions:[]},ee=[],J=yield p(B,K.object.textEditorModel,h.Position.lift(M),void 0,{triggerCharacter:P,triggerKind:P?1:0});for(const $ of J.items)ee.length<(A??0)&&ee.push($.resolve(y.CancellationToken.None)),T.incomplete=T.incomplete||$.container.incomplete,T.suggestions.push($.completion);try{return yield Promise.all(ee),T}finally{setTimeout(()=>J.disposable.dispose(),100)}}finally{K.dispose()}}));function I(F,O){var x;(x=F.getContribution("editor.contrib.suggestController"))===null||x===void 0||x.triggerSuggest(new Set().add(O),void 0,!0)}e.showSimpleSuggestions=I;class R{static isAllOff(O){return O.other==="off"&&O.comments==="off"&&O.strings==="off"}static isAllOn(O){return O.other==="on"&&O.comments==="on"&&O.strings==="on"}static valueFor(O,x){switch(x){case 1:return O.comments;case 2:return O.strings;default:return O.other}}}e.QuickSuggestionsOptions=R}),define(oe[714],se([1,0,21,63,55,2,12,29,3,20,159,250,102,294,251,93,9]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SuggestInlineCompletions=void 0;class l{constructor(f,_,p,m,S,E){this.range=f,this.insertText=_,this.filterText=p,this.additionalTextEdits=m,this.command=S,this.completion=E}}let a=class extends D.RefCountedDisposable{constructor(g,f,_,p,m,S){super(m.disposable),this.model=g,this.line=f,this.word=_,this.completionModel=p,this._suggestMemoryService=S}canBeReused(g,f,_){return this.model===g&&this.line===f&&this.word.word.length>0&&this.word.startColumn===_.startColumn&&this.word.endColumn<_.endColumn&&this.completionModel.incomplete.size===0}get items(){var g;const f=[],{items:_}=this.completionModel,p=this._suggestMemoryService.select(this.model,{lineNumber:this.line,column:this.word.endColumn+this.completionModel.lineContext.characterCountDelta},_),m=k.Iterable.slice(_,p),S=k.Iterable.slice(_,0,p);let E=5;for(const L of k.Iterable.concat(m,S)){if(L.score===v.FuzzyScore.Default)continue;const N=new C.Range(L.editStart.lineNumber,L.editStart.column,L.editInsertEnd.lineNumber,L.editInsertEnd.column+this.completionModel.lineContext.characterCountDelta),I=L.completion.insertTextRules&&L.completion.insertTextRules&u.CompletionItemInsertTextRule.InsertAsSnippet?{snippet:L.completion.insertText}:L.completion.insertText;f.push(new l(N,I,(g=L.filterTextLow)!==null&&g!==void 0?g:L.labelLow,L.completion.additionalTextEdits,L.completion.command,L)),E-->=0&&L.resolve(y.CancellationToken.None)}return f}};a=Ie([pe(5,t.ISuggestMemoryService)],a);let r=class{constructor(g,f,_,p){this._getEditorOption=g,this._languageFeatureService=f,this._clipboardService=_,this._suggestMemoryService=p}provideInlineCompletions(g,f,_,p){var m;return be(this,void 0,void 0,function*(){if(_.selectedSuggestionInfo)return;const S=this._getEditorOption(81,g);if(i.QuickSuggestionsOptions.isAllOff(S))return;g.tokenization.tokenizeIfCheap(f.lineNumber);const E=g.tokenization.getLineTokens(f.lineNumber),L=E.getStandardTokenType(E.findTokenIndexAtOffset(Math.max(f.column-1-1,0)));if(i.QuickSuggestionsOptions.valueFor(S,L)!=="inline")return;let N=g.getWordAtPosition(f),I;if(N?.word||(I=this._getTriggerCharacterInfo(g,f)),!N?.word&&!I||(N||(N=g.getWordUntilPosition(f)),N.endColumn!==f.column))return;let R;const F=g.getValueInRange(new C.Range(f.lineNumber,1,f.lineNumber,f.column));if(!I&&(!((m=this._lastResult)===null||m===void 0)&&m.canBeReused(g,f.lineNumber,N))){const O=new n.LineContext(F,f.column-this._lastResult.word.endColumn);this._lastResult.completionModel.lineContext=O,this._lastResult.acquire(),R=this._lastResult}else{const O=yield(0,i.provideSuggestionItems)(this._languageFeatureService.completionProvider,g,f,new i.CompletionOptions(void 0,void 0,I?.providers),I&&{triggerKind:1,triggerCharacter:I.ch},p);let x;O.needsClipboard&&(x=yield this._clipboardService.readText());const M=new n.CompletionModel(O.items,f.column,new n.LineContext(F,0),o.WordDistance.None,this._getEditorOption(108,g),this._getEditorOption(103,g),{boostFullMatch:!1,firstMatchCanBeWeak:!1},x);R=new a(g,f.lineNumber,N,M,O,this._suggestMemoryService)}return this._lastResult=R,R})}handleItemDidShow(g,f){f.completion.resolve(y.CancellationToken.None)}freeInlineCompletions(g){g.release()}_getTriggerCharacterInfo(g,f){var _;const p=g.getValueInRange(C.Range.fromPositions({lineNumber:f.lineNumber,column:f.column-1},f)),m=new Set;for(const S of this._languageFeatureService.completionProvider.all(g))!((_=S.triggerCharacters)===null||_===void 0)&&_.includes(p)&&m.add(S);if(m.size!==0)return{providers:m,ch:p}}};r=Ie([pe(1,h.ILanguageFeaturesService),pe(2,s.IClipboardService),pe(3,t.ISuggestMemoryService)],r),e.SuggestInlineCompletions=r;let c=class ei{constructor(f,_,p,m){if(++ei._counter==1){const S=m.createInstance(r,(E,L)=>{var N;return((N=p.listCodeEditors().find(I=>I.getModel()===L))!==null&&N!==void 0?N:f).getOption(E)});ei._disposable=_.inlineCompletionsProvider.register("*",S)}}dispose(){var f;--ei._counter==0&&((f=ei._disposable)===null||f===void 0||f.dispose(),ei._disposable=void 0)}};c._counter=0,c=Ie([pe(1,h.ILanguageFeaturesService),pe(2,b.ICodeEditorService),pe(3,d.IInstantiationService)],c),(0,w.registerEditorContribution)("suggest.inlineCompletionsProvider",c)}),define(oe[307],se([1,0,49,268,12,603]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ToggleTabFocusModeAction=void 0;class w extends k.EditorAction{constructor(){super({id:w.ID,label:D.localize(0,null),alias:"Toggle Tab Key Moves Focus",precondition:void 0,kbOpts:{kbExpr:null,primary:2091,mac:{primary:1323},weight:100}})}run(C,h){const u=!v.TabFocus.getTabFocusMode();v.TabFocus.setTabFocusMode(u),u?(0,y.alert)(D.localize(1,null)):(0,y.alert)(D.localize(2,null))}}e.ToggleTabFocusModeAction=w,w.ID="editor.action.toggleTabFocusMode",(0,k.registerEditorAction)(w)}),define(oe[715],se([1,0,57,12,604]),function(q,e,y,v,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class D extends v.EditorAction{constructor(){super({id:"editor.action.forceRetokenize",label:k.localize(0,null),alias:"Developer: Force Retokenize",precondition:void 0})}run(b,C){if(!C.hasModel())return;const h=C.getModel();h.tokenization.resetTokenization();const u=new y.StopWatch(!0);h.tokenization.forceTokenization(h.getLineCount()),u.stop(),console.log(`tokenization took ${u.elapsed()}`)}}(0,v.registerEditorAction)(D)}),define(oe[716],se([1,0,2,43,12,29,606,139]),function(q,e,y,v,k,D,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UnusualLineTerminatorsDetector=void 0;const C="ignoreUnusualLineTerminators";function h(i,t,o){i.setModelProperty(t.uri,C,o)}function u(i,t){return i.getModelProperty(t.uri,C)}let n=class extends y.Disposable{constructor(i,t,o){super(),this._editor=i,this._dialogService=t,this._codeEditorService=o,this._config=this._editor.getOption(116),this._register(this._editor.onDidChangeConfiguration(s=>{s.hasChanged(116)&&(this._config=this._editor.getOption(116),this._checkForUnusualLineTerminators())})),this._register(this._editor.onDidChangeModel(()=>{this._checkForUnusualLineTerminators()})),this._register(this._editor.onDidChangeModelContent(s=>{s.isUndoing||this._checkForUnusualLineTerminators()}))}_checkForUnusualLineTerminators(){return be(this,void 0,void 0,function*(){if(this._config==="off"||!this._editor.hasModel())return;const i=this._editor.getModel();if(!(!i.mightContainUnusualLineTerminators()||u(this._codeEditorService,i)===!0||this._editor.getOption(83))){if(this._config==="auto"){i.removeUnusualLineTerminators(this._editor.getSelections());return}if(!(yield this._dialogService.confirm({title:w.localize(0,null),message:w.localize(1,null),detail:w.localize(2,null,(0,v.basename)(i.uri)),primaryButton:w.localize(3,null),secondaryButton:w.localize(4,null)})).confirmed){h(this._codeEditorService,i,!0);return}i.removeUnusualLineTerminators(this._editor.getSelections())}})}};n.ID="editor.contrib.unusualLineTerminatorsDetector",n=Ie([pe(1,b.IDialogService),pe(2,D.ICodeEditorService)],n),e.UnusualLineTerminatorsDetector=n,(0,k.registerEditorContribution)(n.ID,n)}),define(oe[308],se([1,0,12,108,36,61,156,127,11,3,23,24,32,608,77,16,286]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d){"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 l extends y.EditorCommand{constructor(Z){super(Z),this._inSelectionMode=Z.inSelectionMode,this._wordNavigationType=Z.wordNavigationType}runEditorCommand(Z,X,ie){if(!X.hasModel())return;const H=(0,b.getMapForWordSeparators)(X.getOption(119)),ae=X.getModel(),Y=X.getSelections().map(U=>{const le=new C.Position(U.positionLineNumber,U.positionColumn),z=this._move(H,ae,le,this._wordNavigationType);return this._moveTo(U,z,this._inSelectionMode)});if(ae.pushStackElement(),X._getViewModel().setCursorStates("moveWordCommand",3,Y.map(U=>D.CursorState.fromModelSelection(U))),Y.length===1){const U=new C.Position(Y[0].positionLineNumber,Y[0].positionColumn);X.revealPosition(U,0)}}_moveTo(Z,X,ie){return ie?new u.Selection(Z.selectionStartLineNumber,Z.selectionStartColumn,X.lineNumber,X.column):new u.Selection(X.lineNumber,X.column,X.lineNumber,X.column)}}e.MoveWordCommand=l;class a extends l{_move(Z,X,ie,H){return w.WordOperations.moveWordLeft(Z,X,ie,H)}}e.WordLeftCommand=a;class r extends l{_move(Z,X,ie,H){return w.WordOperations.moveWordRight(Z,X,ie,H)}}e.WordRightCommand=r;class c extends a{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0})}}e.CursorWordStartLeft=c;class g extends a{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})}}e.CursorWordEndLeft=g;class f extends a{constructor(){var Z;super({inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0,kbOpts:{kbExpr:s.ContextKeyExpr.and(n.EditorContextKeys.textInputFocus,(Z=s.ContextKeyExpr.and(o.CONTEXT_ACCESSIBILITY_MODE_ENABLED,d.IsWindowsContext))===null||Z===void 0?void 0:Z.negate()),primary:2063,mac:{primary:527},weight:100}})}}e.CursorWordLeft=f;class _ extends a{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0})}}e.CursorWordStartLeftSelect=_;class p extends a{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})}}e.CursorWordEndLeftSelect=p;class m extends a{constructor(){var Z;super({inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0,kbOpts:{kbExpr:s.ContextKeyExpr.and(n.EditorContextKeys.textInputFocus,(Z=s.ContextKeyExpr.and(o.CONTEXT_ACCESSIBILITY_MODE_ENABLED,d.IsWindowsContext))===null||Z===void 0?void 0:Z.negate()),primary:3087,mac:{primary:1551},weight:100}})}}e.CursorWordLeftSelect=m;class S extends a{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0})}_move(Z,X,ie,H){return super._move((0,b.getMapForWordSeparators)(k.EditorOptions.wordSeparators.defaultValue),X,ie,H)}}e.CursorWordAccessibilityLeft=S;class E extends a{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0})}_move(Z,X,ie,H){return super._move((0,b.getMapForWordSeparators)(k.EditorOptions.wordSeparators.defaultValue),X,ie,H)}}e.CursorWordAccessibilityLeftSelect=E;class L extends r{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})}}e.CursorWordStartRight=L;class N extends r{constructor(){var Z;super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:s.ContextKeyExpr.and(n.EditorContextKeys.textInputFocus,(Z=s.ContextKeyExpr.and(o.CONTEXT_ACCESSIBILITY_MODE_ENABLED,d.IsWindowsContext))===null||Z===void 0?void 0:Z.negate()),primary:2065,mac:{primary:529},weight:100}})}}e.CursorWordEndRight=N;class I extends r{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})}}e.CursorWordRight=I;class R extends r{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})}}e.CursorWordStartRightSelect=R;class F extends r{constructor(){var Z;super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:s.ContextKeyExpr.and(n.EditorContextKeys.textInputFocus,(Z=s.ContextKeyExpr.and(o.CONTEXT_ACCESSIBILITY_MODE_ENABLED,d.IsWindowsContext))===null||Z===void 0?void 0:Z.negate()),primary:3089,mac:{primary:1553},weight:100}})}}e.CursorWordEndRightSelect=F;class O extends r{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})}}e.CursorWordRightSelect=O;class x extends r{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0})}_move(Z,X,ie,H){return super._move((0,b.getMapForWordSeparators)(k.EditorOptions.wordSeparators.defaultValue),X,ie,H)}}e.CursorWordAccessibilityRight=x;class M extends r{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0})}_move(Z,X,ie,H){return super._move((0,b.getMapForWordSeparators)(k.EditorOptions.wordSeparators.defaultValue),X,ie,H)}}e.CursorWordAccessibilityRightSelect=M;class P extends y.EditorCommand{constructor(Z){super(Z),this._whitespaceHeuristics=Z.whitespaceHeuristics,this._wordNavigationType=Z.wordNavigationType}runEditorCommand(Z,X,ie){const H=Z.get(i.ILanguageConfigurationService);if(!X.hasModel())return;const ae=(0,b.getMapForWordSeparators)(X.getOption(119)),Y=X.getModel(),U=X.getSelections(),le=X.getOption(5),z=X.getOption(8),Q=H.getLanguageConfiguration(Y.getLanguageId()).getAutoClosingPairs(),W=X._getViewModel(),V=U.map(ne=>{const de=this._delete({wordSeparators:ae,model:Y,selection:ne,whitespaceHeuristics:this._whitespaceHeuristics,autoClosingDelete:X.getOption(6),autoClosingBrackets:le,autoClosingQuotes:z,autoClosingPairs:Q,autoClosedCharacters:W.getCursorAutoClosedCharacters()},this._wordNavigationType);return new v.ReplaceCommand(de,"")});X.pushUndoStop(),X.executeCommands(this.id,V),X.pushUndoStop()}}e.DeleteWordCommand=P;class A extends P{_delete(Z,X){return w.WordOperations.deleteWordLeft(Z,X)||new h.Range(1,1,1,1)}}e.DeleteWordLeftCommand=A;class B extends P{_delete(Z,X){const ie=w.WordOperations.deleteWordRight(Z,X);if(ie)return ie;const H=Z.model.getLineCount(),ae=Z.model.getLineMaxColumn(H);return new h.Range(H,ae,H,ae)}}e.DeleteWordRightCommand=B;class K extends A{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:n.EditorContextKeys.writable})}}e.DeleteWordStartLeft=K;class T extends A{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:n.EditorContextKeys.writable})}}e.DeleteWordEndLeft=T;class ee extends A{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=ee;class J extends B{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:n.EditorContextKeys.writable})}}e.DeleteWordStartRight=J;class $ extends B{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:n.EditorContextKeys.writable})}}e.DeleteWordEndRight=$;class j extends B{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=j;class G extends y.EditorAction{constructor(){super({id:"deleteInsideWord",precondition:n.EditorContextKeys.writable,label:t.localize(0,null),alias:"Delete Word"})}run(Z,X,ie){if(!X.hasModel())return;const H=(0,b.getMapForWordSeparators)(X.getOption(119)),ae=X.getModel(),Y=X.getSelections().map(U=>{const le=w.WordOperations.deleteInsideWord(H,ae,U);return new v.ReplaceCommand(le,"")});X.pushUndoStop(),X.executeCommands(this.id,Y),X.pushUndoStop()}}e.DeleteInsideWord=G,(0,y.registerEditorCommand)(new c),(0,y.registerEditorCommand)(new g),(0,y.registerEditorCommand)(new f),(0,y.registerEditorCommand)(new _),(0,y.registerEditorCommand)(new p),(0,y.registerEditorCommand)(new m),(0,y.registerEditorCommand)(new L),(0,y.registerEditorCommand)(new N),(0,y.registerEditorCommand)(new I),(0,y.registerEditorCommand)(new R),(0,y.registerEditorCommand)(new F),(0,y.registerEditorCommand)(new O),(0,y.registerEditorCommand)(new S),(0,y.registerEditorCommand)(new E),(0,y.registerEditorCommand)(new x),(0,y.registerEditorCommand)(new M),(0,y.registerEditorCommand)(new K),(0,y.registerEditorCommand)(new T),(0,y.registerEditorCommand)(new ee),(0,y.registerEditorCommand)(new J),(0,y.registerEditorCommand)(new $),(0,y.registerEditorCommand)(new j),(0,y.registerEditorAction)(G)}),define(oe[717],se([1,0,12,156,3,24,308,26]),function(q,e,y,v,k,D,w,b){"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 C extends w.DeleteWordCommand{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:D.EditorContextKeys.writable,kbOpts:{kbExpr:D.EditorContextKeys.textInputFocus,primary:0,mac:{primary:769},weight:100}})}_delete(l,a){return v.WordPartOperations.deleteWordPartLeft(l)||new k.Range(1,1,1,1)}}e.DeleteWordPartLeft=C;class h extends w.DeleteWordCommand{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:D.EditorContextKeys.writable,kbOpts:{kbExpr:D.EditorContextKeys.textInputFocus,primary:0,mac:{primary:788},weight:100}})}_delete(l,a){const r=v.WordPartOperations.deleteWordPartRight(l);if(r)return r;const c=l.model.getLineCount(),g=l.model.getLineMaxColumn(c);return new k.Range(c,g,c,g)}}e.DeleteWordPartRight=h;class u extends w.MoveWordCommand{_move(l,a,r,c){return v.WordPartOperations.moveWordPartLeft(l,a,r)}}e.WordPartLeftCommand=u;class n extends u{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:D.EditorContextKeys.textInputFocus,primary:0,mac:{primary:783},weight:100}})}}e.CursorWordPartLeft=n,b.CommandsRegistry.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");class i extends u{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:D.EditorContextKeys.textInputFocus,primary:0,mac:{primary:1807},weight:100}})}}e.CursorWordPartLeftSelect=i,b.CommandsRegistry.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");class t extends w.MoveWordCommand{_move(l,a,r,c){return v.WordPartOperations.moveWordPartRight(l,a,r)}}e.WordPartRightCommand=t;class o extends t{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:D.EditorContextKeys.textInputFocus,primary:0,mac:{primary:785},weight:100}})}}e.CursorWordPartRight=o;class s extends t{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:D.EditorContextKeys.textInputFocus,primary:0,mac:{primary:1809},weight:100}})}}e.CursorWordPartRightSelect=s,(0,y.registerEditorCommand)(new C),(0,y.registerEditorCommand)(new h),(0,y.registerEditorCommand)(new n),(0,y.registerEditorCommand)(new i),(0,y.registerEditorCommand)(new o),(0,y.registerEditorCommand)(new s)}),define(oe[718],se([1,0,7,33,196,49,68,2,17,8,22,12,24,307,16,9,44,45,25,15,76,394]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const g=new o.RawContextKey("accessibilityHelpWidgetVisible",!1);let f=class Xi extends b.Disposable{constructor(L,N){super(),this._editor=L,this._widget=this._register(N.createInstance(p,this._editor))}static get(L){return L.getContribution(Xi.ID)}show(){this._widget.show()}hide(){this._widget.hide()}};f.ID="editor.contrib.accessibilityHelpController",f=Ie([pe(1,s.IInstantiationService)],f);function _(E,L){return!E||E.length===0?c.AccessibilityHelpNLS.noSelection:E.length===1?L?h.format(c.AccessibilityHelpNLS.singleSelectionRange,E[0].positionLineNumber,E[0].positionColumn,L):h.format(c.AccessibilityHelpNLS.singleSelection,E[0].positionLineNumber,E[0].positionColumn):L?h.format(c.AccessibilityHelpNLS.multiSelectionRange,E.length,L):E.length>0?h.format(c.AccessibilityHelpNLS.multiSelection,E.length):""}let p=class mi extends w.Widget{constructor(L,N,I,R){super(),this._contextKeyService=N,this._keybindingService=I,this._openerService=R,this._editor=L,this._isVisibleKey=g.bindTo(this._contextKeyService),this._domNode=(0,v.createFastDomNode)(document.createElement("div")),this._domNode.setClassName("accessibilityHelpWidget"),this._domNode.setDisplay("none"),this._domNode.setAttribute("role","dialog"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode=(0,v.createFastDomNode)(document.createElement("div")),this._contentDomNode.setAttribute("role","document"),this._domNode.appendChild(this._contentDomNode),this._isVisible=!1,this._register(this._editor.onDidLayoutChange(()=>{this._isVisible&&this._layout()})),this._register(y.addStandardDisposableListener(this._contentDomNode.domNode,"keydown",F=>{if(this._isVisible&&(F.equals(2083)&&((0,D.alert)(c.AccessibilityHelpNLS.emergencyConfOn),this._editor.updateOptions({accessibilitySupport:"on"}),y.clearNode(this._contentDomNode.domNode),this._buildContent(),this._contentDomNode.domNode.focus(),F.preventDefault(),F.stopPropagation()),F.equals(2086))){(0,D.alert)(c.AccessibilityHelpNLS.openingDocs);let O=this._editor.getRawOptions().accessibilityHelpUrl;typeof O>"u"&&(O="https://go.microsoft.com/fwlink/?linkid=852450"),this._openerService.open(u.URI.parse(O)),F.preventDefault(),F.stopPropagation()}})),this.onblur(this._contentDomNode.domNode,()=>{this.hide()}),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return mi.ID}getDomNode(){return this._domNode.domNode}getPosition(){return{preference:null}}show(){this._isVisible||(this._isVisible=!0,this._isVisibleKey.set(!0),this._layout(),this._domNode.setDisplay("block"),this._domNode.setAttribute("aria-hidden","false"),this._contentDomNode.domNode.tabIndex=0,this._buildContent(),this._contentDomNode.domNode.focus())}_descriptionForCommand(L,N,I){const R=this._keybindingService.lookupKeybinding(L);return R?h.format(N,R.getAriaLabel()):h.format(I,L)}_buildContent(){const L=this._editor.getOptions(),N=this._editor.getSelections();let I=0;if(N){const x=this._editor.getModel();x&&N.forEach(M=>{I+=x.getValueLengthInRange(M)})}let R=_(N,I);L.get(56)?L.get(83)?R+=c.AccessibilityHelpNLS.readonlyDiffEditor:R+=c.AccessibilityHelpNLS.editableDiffEditor:L.get(83)?R+=c.AccessibilityHelpNLS.readonlyEditor:R+=c.AccessibilityHelpNLS.editableEditor;const F=C.isMacintosh?c.AccessibilityHelpNLS.changeConfigToOnMac:c.AccessibilityHelpNLS.changeConfigToOnWinLinux;switch(L.get(2)){case 0:R+=` - `+F;break;case 2:R+=` - `+c.AccessibilityHelpNLS.auto_on;break;case 1:R+=` - `+c.AccessibilityHelpNLS.auto_off,R+=" "+F;break}L.get(132)?R+=` - `+this._descriptionForCommand(t.ToggleTabFocusModeAction.ID,c.AccessibilityHelpNLS.tabFocusModeOnMsg,c.AccessibilityHelpNLS.tabFocusModeOnMsgNoKb):R+=` - `+this._descriptionForCommand(t.ToggleTabFocusModeAction.ID,c.AccessibilityHelpNLS.tabFocusModeOffMsg,c.AccessibilityHelpNLS.tabFocusModeOffMsgNoKb);const O=C.isMacintosh?c.AccessibilityHelpNLS.openDocMac:c.AccessibilityHelpNLS.openDocWinLinux;R+=` - `+O,R+=` `+c.AccessibilityHelpNLS.outroMsg,this._contentDomNode.domNode.appendChild((0,k.renderFormattedText)(R)),this._contentDomNode.domNode.setAttribute("aria-label",R)}hide(){!this._isVisible||(this._isVisible=!1,this._isVisibleKey.reset(),this._domNode.setDisplay("none"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode.domNode.tabIndex=-1,y.clearNode(this._contentDomNode.domNode),this._editor.focus())}_layout(){const L=this._editor.getLayoutInfo(),N=Math.max(5,Math.min(mi.WIDTH,L.width-40)),I=Math.max(5,Math.min(mi.HEIGHT,L.height-40));this._domNode.setWidth(N),this._domNode.setHeight(I);const R=Math.round((L.height-I)/2);this._domNode.setTop(R);const F=Math.round((L.width-N)/2);this._domNode.setLeft(F)}};p.ID="editor.contrib.accessibilityHelpWidget",p.WIDTH=500,p.HEIGHT=300,p=Ie([pe(1,o.IContextKeyService),pe(2,d.IKeybindingService),pe(3,l.IOpenerService)],p);class m extends n.EditorAction{constructor(){super({id:"editor.action.showAccessibilityHelp",label:c.AccessibilityHelpNLS.showAccessibilityHelpAction,alias:"Show Accessibility Help",precondition:void 0,kbOpts:{primary:571,weight:100,linux:{primary:1595,secondary:[571]}}})}run(L,N){const I=f.get(N);I&&I.show()}}(0,n.registerEditorContribution)(f.ID,f),(0,n.registerEditorAction)(m);const S=n.EditorCommand.bindToContribution(f.get);(0,n.registerEditorCommand)(new S({id:"closeAccessibilityHelp",precondition:g,handler:E=>E.hide(),kbOpts:{weight:100+100,kbExpr:i.EditorContextKeys.focus,primary:9,secondary:[1033]}})),(0,r.registerThemingParticipant)((E,L)=>{const N=E.getColor(a.editorWidgetBackground);N&&L.addRule(`.monaco-editor .accessibilityHelpWidget { background-color: ${N}; }`);const I=E.getColor(a.editorWidgetForeground);I&&L.addRule(`.monaco-editor .accessibilityHelpWidget { color: ${I}; }`);const R=E.getColor(a.widgetShadow);R&&L.addRule(`.monaco-editor .accessibilityHelpWidget { box-shadow: 0 2px 8px ${R}; }`);const F=E.getColor(a.contrastBorder);F&&L.addRule(`.monaco-editor .accessibilityHelpWidget { border: 2px solid ${F}; }`)})}),define(oe[719],se([1,0,7,2,12,17,395]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IPadShowKeyboard=void 0;class w extends v.Disposable{constructor(h){super(),this.editor=h,this.widget=null,D.isIOS&&(this._register(h.onDidChangeConfiguration(()=>this.update())),this.update())}update(){const h=!this.editor.getOption(83);!this.widget&&h?this.widget=new b(this.editor):this.widget&&!h&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&(this.widget.dispose(),this.widget=null)}}e.IPadShowKeyboard=w,w.ID="editor.contrib.iPadShowKeyboard";class b extends v.Disposable{constructor(h){super(),this.editor=h,this._domNode=document.createElement("textarea"),this._domNode.className="iPadShowKeyboard",this._register(y.addDisposableListener(this._domNode,"touchstart",u=>{this.editor.focus()})),this._register(y.addDisposableListener(this._domNode,"focus",u=>{this.editor.focus()})),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}getId(){return b.ID}getDomNode(){return this._domNode}getPosition(){return{preference:1}}}b.ID="editor.contrib.ShowKeyboardWidget",(0,k.registerEditorContribution)(w.ID,w)}),define(oe[720],se([1,0,7,31,2,12,28,109,136,37,115,25,15,76,56,396]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let s=class Zi extends k.Disposable{constructor(g,f,_){super(),this._editor=g,this._languageService=_,this._widget=null,this._register(this._editor.onDidChangeModel(p=>this.stop())),this._register(this._editor.onDidChangeModelLanguage(p=>this.stop())),this._register(w.TokenizationRegistry.onDidChange(p=>this.stop())),this._register(this._editor.onKeyUp(p=>p.keyCode===9&&this.stop()))}static get(g){return g.getContribution(Zi.ID)}dispose(){this.stop(),super.dispose()}launch(){this._widget||!this._editor.hasModel()||(this._widget=new r(this._editor,this._languageService))}stop(){this._widget&&(this._widget.dispose(),this._widget=null)}};s.ID="editor.contrib.inspectTokens",s=Ie([pe(1,u.IStandaloneThemeService),pe(2,h.ILanguageService)],s);class d extends D.EditorAction{constructor(){super({id:"editor.action.inspectTokens",label:t.InspectTokensNLS.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})}run(g,f){const _=s.get(f);_&&_.launch()}}function l(c){let g="";for(let f=0,_=c.length;f<_;f++){const p=c.charCodeAt(f);switch(p){case 9:g+="\u2192";break;case 32:g+="\xB7";break;default:g+=String.fromCharCode(p)}}return g}function a(c,g){const f=w.TokenizationRegistry.get(g);if(f)return f;const _=c.encodeLanguageId(g);return{getInitialState:()=>C.NullState,tokenize:(p,m,S)=>(0,C.nullTokenize)(g,S),tokenizeEncoded:(p,m,S)=>(0,C.nullTokenizeEncoded)(_,S)}}class r extends k.Disposable{constructor(g,f){super(),this.allowEditorOverflow=!0,this._editor=g,this._languageService=f,this._model=this._editor.getModel(),this._domNode=document.createElement("div"),this._domNode.className="tokens-inspect-widget",this._tokenizationSupport=a(this._languageService.languageIdCodec,this._model.getLanguageId()),this._compute(this._editor.getPosition()),this._register(this._editor.onDidChangeCursorPosition(_=>this._compute(this._editor.getPosition()))),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),super.dispose()}getId(){return r._ID}_compute(g){const f=this._getTokensAtLine(g.lineNumber);let _=0;for(let L=f.tokens1.length-1;L>=0;L--){const N=f.tokens1[L];if(g.column-1>=N.offset){_=L;break}}let p=0;for(let L=f.tokens2.length>>>1;L>=0;L--)if(g.column-1>=f.tokens2[L<<1]){p=L;break}const m=this._model.getLineContent(g.lineNumber);let S="";if(_<f.tokens1.length){const L=f.tokens1[_].offset,N=_+1<f.tokens1.length?f.tokens1[_+1].offset:m.length;S=m.substring(L,N)}(0,y.reset)(this._domNode,(0,y.$)("h2.tm-token",void 0,l(S),(0,y.$)("span.tm-token-length",void 0,`${S.length} ${S.length===1?"char":"chars"}`))),(0,y.append)(this._domNode,(0,y.$)("hr.tokens-inspect-separator",{style:"clear:both"}));const E=(p<<1)+1<f.tokens2.length?this._decodeMetadata(f.tokens2[(p<<1)+1]):null;(0,y.append)(this._domNode,(0,y.$)("table.tm-metadata-table",void 0,(0,y.$)("tbody",void 0,(0,y.$)("tr",void 0,(0,y.$)("td.tm-metadata-key",void 0,"language"),(0,y.$)("td.tm-metadata-value",void 0,`${E?E.languageId:"-?-"}`)),(0,y.$)("tr",void 0,(0,y.$)("td.tm-metadata-key",void 0,"token type"),(0,y.$)("td.tm-metadata-value",void 0,`${E?this._tokenTypeToString(E.tokenType):"-?-"}`)),(0,y.$)("tr",void 0,(0,y.$)("td.tm-metadata-key",void 0,"font style"),(0,y.$)("td.tm-metadata-value",void 0,`${E?this._fontStyleToString(E.fontStyle):"-?-"}`)),(0,y.$)("tr",void 0,(0,y.$)("td.tm-metadata-key",void 0,"foreground"),(0,y.$)("td.tm-metadata-value",void 0,`${E?v.Color.Format.CSS.formatHex(E.foreground):"-?-"}`)),(0,y.$)("tr",void 0,(0,y.$)("td.tm-metadata-key",void 0,"background"),(0,y.$)("td.tm-metadata-value",void 0,`${E?v.Color.Format.CSS.formatHex(E.background):"-?-"}`))))),(0,y.append)(this._domNode,(0,y.$)("hr.tokens-inspect-separator")),_<f.tokens1.length&&(0,y.append)(this._domNode,(0,y.$)("span.tm-token-type",void 0,f.tokens1[_].type)),this._editor.layoutContentWidget(this)}_decodeMetadata(g){const f=w.TokenizationRegistry.getColorMap(),_=b.TokenMetadata.getLanguageId(g),p=b.TokenMetadata.getTokenType(g),m=b.TokenMetadata.getFontStyle(g),S=b.TokenMetadata.getForeground(g),E=b.TokenMetadata.getBackground(g);return{languageId:this._languageService.languageIdCodec.decodeLanguageId(_),tokenType:p,fontStyle:m,foreground:f[S],background:f[E]}}_tokenTypeToString(g){switch(g){case 0:return"Other";case 1:return"Comment";case 2:return"String";case 3:return"RegEx";default:return"??"}}_fontStyleToString(g){let f="";return g&1&&(f+="italic "),g&2&&(f+="bold "),g&4&&(f+="underline "),g&8&&(f+="strikethrough "),f.length===0&&(f="---"),f}_getTokensAtLine(g){const f=this._getStateBeforeLine(g),_=this._tokenizationSupport.tokenize(this._model.getLineContent(g),!0,f),p=this._tokenizationSupport.tokenizeEncoded(this._model.getLineContent(g),!0,f);return{startState:f,tokens1:_.tokens,tokens2:p.tokens,endState:_.endState}}_getStateBeforeLine(g){let f=this._tokenizationSupport.getInitialState();for(let _=1;_<g;_++)f=this._tokenizationSupport.tokenize(this._model.getLineContent(_),!0,f).endState;return f}getDomNode(){return this._domNode}getPosition(){return{position:this._editor.getPosition(),preference:[2,1]}}}r._ID="editor.contrib.inspectTokensWidget",(0,D.registerEditorContribution)(s.ID,s),(0,D.registerEditorAction)(d),(0,i.registerThemingParticipant)((c,g)=>{const f=c.getColor(n.editorHoverBorder);if(f){const m=(0,o.isHighContrast)(c.type)?2:1;g.addRule(`.monaco-editor .tokens-inspect-widget { border: ${m}px solid ${f}; }`),g.addRule(`.monaco-editor .tokens-inspect-widget .tokens-inspect-separator { background-color: ${f}; }`)}const _=c.getColor(n.editorHoverBackground);_&&g.addRule(`.monaco-editor .tokens-inspect-widget { background-color: ${_}; }`);const p=c.getColor(n.editorHoverForeground);p&&g.addRule(`.monaco-editor .tokens-inspect-widget { color: ${p}; }`)})}),define(oe[721],se([1,0,34,118,76,29,664,19,9,44,26,86,139,12,24,85]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GotoLineAction=e.StandaloneCommandsQuickAccessProvider=void 0;let d=class extends w.AbstractEditorCommandsQuickAccessProvider{constructor(a,r,c,g,f,_){super({showAlias:!1},a,c,g,f,_),this.codeEditorService=r}get activeTextEditorControl(){return(0,b.withNullAsUndefined)(this.codeEditorService.getFocusedCodeEditor())}getCommandPicks(){return be(this,void 0,void 0,function*(){return this.getCodeEditorCommandPicks()})}};d=Ie([pe(0,C.IInstantiationService),pe(1,D.ICodeEditorService),pe(2,h.IKeybindingService),pe(3,u.ICommandService),pe(4,n.ITelemetryService),pe(5,i.IDialogService)],d),e.StandaloneCommandsQuickAccessProvider=d;class l extends t.EditorAction{constructor(){super({id:l.ID,label:k.QuickCommandNLS.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:o.EditorContextKeys.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(r){r.get(s.IQuickInputService).quickAccess.show(d.PREFIX)}}e.GotoLineAction=l,l.ID="editor.action.quickCommand",(0,t.registerEditorAction)(l),y.Registry.as(v.Extensions.Quickaccess).registerQuickAccessProvider({ctor:d,prefix:d.PREFIX,helpEntries:[{description:k.QuickCommandNLS.quickCommandHelp,commandId:l.ID}]})}),define(oe[722],se([1,0,686,34,118,29,19,76,6,12,24,85]),function(q,e,y,v,k,D,w,b,C,h,u,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GotoLineAction=e.StandaloneGotoLineQuickAccessProvider=void 0;let i=class extends y.AbstractGotoLineQuickAccessProvider{constructor(o){super(),this.editorService=o,this.onDidActiveTextEditorControlChange=C.Event.None}get activeTextEditorControl(){return(0,w.withNullAsUndefined)(this.editorService.getFocusedCodeEditor())}};i=Ie([pe(0,D.ICodeEditorService)],i),e.StandaloneGotoLineQuickAccessProvider=i;class t extends h.EditorAction{constructor(){super({id:t.ID,label:b.GoToLineNLS.gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:u.EditorContextKeys.focus,primary:2085,mac:{primary:293},weight:100}})}run(s){s.get(n.IQuickInputService).quickAccess.show(i.PREFIX)}}e.GotoLineAction=t,t.ID="editor.action.gotoLine",(0,h.registerEditorAction)(t),v.Registry.as(k.Extensions.Quickaccess).registerQuickAccessProvider({ctor:i,prefix:i.PREFIX,helpEntries:[{description:b.GoToLineNLS.gotoLineActionLabel,commandId:t.ID}]})}),define(oe[723],se([1,0,687,34,118,29,19,76,6,12,24,85,168,20,149,300]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GotoSymbolAction=e.StandaloneGotoSymbolQuickAccessProvider=void 0;let o=class extends y.AbstractGotoSymbolQuickAccessProvider{constructor(d,l,a){super(l,a),this.editorService=d,this.onDidActiveTextEditorControlChange=C.Event.None}get activeTextEditorControl(){return(0,w.withNullAsUndefined)(this.editorService.getFocusedCodeEditor())}};o=Ie([pe(0,D.ICodeEditorService),pe(1,t.ILanguageFeaturesService),pe(2,i.IOutlineModelService)],o),e.StandaloneGotoSymbolQuickAccessProvider=o;class s extends h.EditorAction{constructor(){super({id:s.ID,label:b.QuickOutlineNLS.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:u.EditorContextKeys.hasDocumentSymbolProvider,kbOpts:{kbExpr:u.EditorContextKeys.focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})}run(l){l.get(n.IQuickInputService).quickAccess.show(y.AbstractGotoSymbolQuickAccessProvider.PREFIX)}}e.GotoSymbolAction=s,s.ID="editor.action.quickOutline",(0,h.registerEditorAction)(s),v.Registry.as(k.Extensions.Quickaccess).registerQuickAccessProvider({ctor:o,prefix:y.AbstractGotoSymbolQuickAccessProvider.PREFIX,helpEntries:[{description:b.QuickOutlineNLS.quickOutlineActionLabel,prefix:y.AbstractGotoSymbolQuickAccessProvider.PREFIX,commandId:s.ID},{description:b.QuickOutlineNLS.quickOutlineByCategoryActionLabel,prefix:y.AbstractGotoSymbolQuickAccessProvider.PREFIX_BY_CATEGORY}]})}),define(oe[218],se([1,0,7,48,133,483,42,190,2,17,609,39,16,78,9,44,38,79,15,56,19,399]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createActionViewItem=e.DropdownWithDefaultActionViewItem=e.SubmenuEntryActionViewItem=e.MenuEntryActionViewItem=e.createAndFillInActionBarActions=void 0;function g(L,N,I,R,F,O,x){const M=L.getActions(N);return _(M,I,!1,typeof R=="string"?P=>P===R:R,F,O,x),f(M)}e.createAndFillInActionBarActions=g;function f(L){const N=new C.DisposableStore;for(const[,I]of L)for(const R of I)N.add(R);return N}function _(L,N,I,R=M=>M==="navigation",F=Number.MAX_SAFE_INTEGER,O=()=>!1,x=!1){let M,P;Array.isArray(N)?(M=N,P=N):(M=N.primary,P=N.secondary);const A=new Set;for(const[B,K]of L){let T;R(B)?(T=M,T.length>0&&x&&T.push(new w.Separator)):(T=P,T.length>0&&T.push(new w.Separator));for(let ee of K){I&&(ee=ee instanceof n.MenuItemAction&&ee.alt?ee.alt:ee);const J=T.push(ee);ee instanceof w.SubmenuAction&&A.add({group:B,action:ee,index:J-1})}}for(const{group:B,action:K,index:T}of A){const ee=R(B)?M:P,J=K.actions;(J.length<=1||ee.length+J.length-2<=F)&&O(K,B,ee.length)&&ee.splice(T,1,...J)}if(M!==P&&M.length>F){const B=M.splice(F,M.length-F);P.unshift(...B,new w.Separator)}}let p=class extends k.ActionViewItem{constructor(L,N,I,R,F,O,x){super(void 0,L,{icon:!!(L.class||L.item.icon),label:!L.class&&!L.item.icon,draggable:N?.draggable,keybinding:N?.keybinding,hoverDelegate:N?.hoverDelegate}),this._keybindingService=I,this._notificationService=R,this._contextKeyService=F,this._themeService=O,this._contextMenuService=x,this._wantsAltCommand=!1,this._itemClassDispose=this._register(new C.MutableDisposable),this._altKey=y.ModifierKeyEmitter.getInstance()}get _menuItemAction(){return this._action}get _commandAction(){return this._wantsAltCommand&&this._menuItemAction.alt||this._menuItemAction}onClick(L){return be(this,void 0,void 0,function*(){L.preventDefault(),L.stopPropagation();try{yield this.actionRunner.run(this._commandAction,this._context)}catch(N){this._notificationService.error(N)}})}render(L){super.render(L),L.classList.add("menu-entry"),this._updateItemClass(this._menuItemAction.item);let N=!1,I=this._altKey.keyStatus.altKey||(h.isWindows||h.isLinux)&&this._altKey.keyStatus.shiftKey;const R=()=>{var F;const O=N&&I&&!!(!((F=this._commandAction.alt)===null||F===void 0)&&F.enabled);O!==this._wantsAltCommand&&(this._wantsAltCommand=O,this.updateLabel(),this.updateTooltip(),this.updateClass())};this._menuItemAction.alt&&this._register(this._altKey.event(F=>{I=F.altKey||(h.isWindows||h.isLinux)&&F.shiftKey,R()})),this._register((0,y.addDisposableListener)(L,"mouseleave",F=>{N=!1,R()})),this._register((0,y.addDisposableListener)(L,"mouseenter",F=>{N=!0,R()}))}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this._commandAction.label)}getTooltip(){var L;const N=this._keybindingService.lookupKeybinding(this._commandAction.id,this._contextKeyService),I=N&&N.getLabel(),R=this._commandAction.tooltip||this._commandAction.label;let F=I?(0,u.localize)(0,null,R,I):R;if(!this._wantsAltCommand&&(!((L=this._menuItemAction.alt)===null||L===void 0)&&L.enabled)){const O=this._menuItemAction.alt.tooltip||this._menuItemAction.alt.label,x=this._keybindingService.lookupKeybinding(this._menuItemAction.alt.id,this._contextKeyService),M=x&&x.getLabel(),P=M?(0,u.localize)(1,null,O,M):O;F=(0,u.localize)(2,null,F,b.UILabelProvider.modifierLabels[h.OS].altKey,P)}return F}updateClass(){this.options.icon&&(this._commandAction!==this._menuItemAction?this._menuItemAction.alt&&this._updateItemClass(this._menuItemAction.alt.item):this._updateItemClass(this._menuItemAction.item))}_updateItemClass(L){var N;this._itemClassDispose.value=void 0;const{element:I,label:R}=this;if(!I||!R)return;const F=this._commandAction.checked&&(!((N=L.toggled)===null||N===void 0)&&N.icon)?L.toggled.icon:L.icon;if(F)if(a.ThemeIcon.isThemeIcon(F)){const O=a.ThemeIcon.asClassNameArray(F);R.classList.add(...O),this._itemClassDispose.value=(0,C.toDisposable)(()=>{R.classList.remove(...O)})}else R.style.backgroundImage=(0,r.isDark)(this._themeService.getColorTheme().type)?(0,y.asCSSUrl)(F.dark):(0,y.asCSSUrl)(F.light),R.classList.add("icon"),this._itemClassDispose.value=(0,C.combinedDisposable)((0,C.toDisposable)(()=>{R.style.backgroundImage="",R.classList.remove("icon")}),this._themeService.onDidColorThemeChange(()=>{this.updateClass()}))}};p=Ie([pe(2,s.IKeybindingService),pe(3,d.INotificationService),pe(4,i.IContextKeyService),pe(5,a.IThemeService),pe(6,t.IContextMenuService)],p),e.MenuEntryActionViewItem=p;let m=class extends D.DropdownMenuActionViewItem{constructor(L,N,I,R){var F,O;const x=Object.assign({},N??Object.create(null),{menuAsChild:(F=N?.menuAsChild)!==null&&F!==void 0?F:!1,classNames:(O=N?.classNames)!==null&&O!==void 0?O:a.ThemeIcon.isThemeIcon(L.item.icon)?a.ThemeIcon.asClassName(L.item.icon):void 0});super(L,{getActions:()=>L.actions},I,x),this._contextMenuService=I,this._themeService=R}render(L){super.render(L),(0,c.assertType)(this.element),L.classList.add("menu-entry");const N=this._action,{icon:I}=N.item;if(I&&!a.ThemeIcon.isThemeIcon(I)){this.element.classList.add("icon");const R=()=>{this.element&&(this.element.style.backgroundImage=(0,r.isDark)(this._themeService.getColorTheme().type)?(0,y.asCSSUrl)(I.dark):(0,y.asCSSUrl)(I.light))};R(),this._register(this._themeService.onDidColorThemeChange(()=>{R()}))}}};m=Ie([pe(2,t.IContextMenuService),pe(3,a.IThemeService)],m),e.SubmenuEntryActionViewItem=m;let S=class extends k.BaseActionViewItem{constructor(L,N,I,R,F,O,x,M){var P,A,B;super(null,L),this._keybindingService=I,this._notificationService=R,this._contextMenuService=F,this._menuService=O,this._instaService=x,this._storageService=M,this._container=null,this._options=N,this._storageKey=`${L.item.submenu.id}_lastActionId`;let K;const T=M.get(this._storageKey,1);T&&(K=L.actions.find(J=>T===J.id)),K||(K=L.actions[0]),this._defaultAction=this._instaService.createInstance(p,K,{keybinding:this._getDefaultActionKeybindingLabel(K)});const ee=Object.assign({},N??Object.create(null),{menuAsChild:(P=N?.menuAsChild)!==null&&P!==void 0?P:!0,classNames:(A=N?.classNames)!==null&&A!==void 0?A:["codicon","codicon-chevron-down"],actionRunner:(B=N?.actionRunner)!==null&&B!==void 0?B:new w.ActionRunner});this._dropdown=new D.DropdownMenuActionViewItem(L,L.actions,this._contextMenuService,ee),this._dropdown.actionRunner.onDidRun(J=>{J.action instanceof n.MenuItemAction&&this.update(J.action)})}update(L){this._storageService.store(this._storageKey,L.id,1,0),this._defaultAction.dispose(),this._defaultAction=this._instaService.createInstance(p,L,{keybinding:this._getDefaultActionKeybindingLabel(L)}),this._defaultAction.actionRunner=new class extends w.ActionRunner{runAction(N,I){return be(this,void 0,void 0,function*(){yield N.run(void 0)})}},this._container&&this._defaultAction.render((0,y.prepend)(this._container,(0,y.$)(".action-container")))}_getDefaultActionKeybindingLabel(L){var N;let I;if(!((N=this._options)===null||N===void 0)&&N.renderKeybindingWithDefaultActionLabel){const R=this._keybindingService.lookupKeybinding(L.id);R&&(I=`(${R.getLabel()})`)}return I}setActionContext(L){super.setActionContext(L),this._defaultAction.setActionContext(L),this._dropdown.setActionContext(L)}render(L){this._container=L,super.render(this._container),this._container.classList.add("monaco-dropdown-with-default");const N=(0,y.$)(".action-container");this._defaultAction.render((0,y.append)(this._container,N)),this._register((0,y.addDisposableListener)(N,y.EventType.KEY_DOWN,R=>{const F=new v.StandardKeyboardEvent(R);F.equals(17)&&(this._defaultAction.element.tabIndex=-1,this._dropdown.focus(),F.stopPropagation())}));const I=(0,y.$)(".dropdown-action-container");this._dropdown.render((0,y.append)(this._container,I)),this._register((0,y.addDisposableListener)(I,y.EventType.KEY_DOWN,R=>{var F;const O=new v.StandardKeyboardEvent(R);O.equals(15)&&(this._defaultAction.element.tabIndex=0,this._dropdown.setFocusable(!1),(F=this._defaultAction.element)===null||F===void 0||F.focus(),O.stopPropagation())}))}focus(L){L?this._dropdown.focus():(this._defaultAction.element.tabIndex=0,this._defaultAction.element.focus())}blur(){this._defaultAction.element.tabIndex=-1,this._dropdown.blur(),this._container.blur()}setFocusable(L){L?this._defaultAction.element.tabIndex=0:(this._defaultAction.element.tabIndex=-1,this._dropdown.setFocusable(!1))}dispose(){this._defaultAction.dispose(),this._dropdown.dispose(),super.dispose()}};S=Ie([pe(2,s.IKeybindingService),pe(3,d.INotificationService),pe(4,t.IContextMenuService),pe(5,n.IMenuService),pe(6,o.IInstantiationService),pe(7,l.IStorageService)],S),e.DropdownWithDefaultActionViewItem=S;function E(L,N,I){return N instanceof n.MenuItemAction?L.createInstance(p,N,I):N instanceof n.SubmenuItemAction?N.item.rememberDefaultAction?L.createInstance(S,N,I):L.createInstance(m,N,I):void 0}e.createActionViewItem=E}),define(oe[724],se([1,0,7,83,2,102,601,218,39,16,9]),function(q,e,y,v,k,D,w,b,C,h,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SuggestWidgetStatus=void 0;class n extends b.MenuEntryActionViewItem{updateLabel(){const o=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!o)return super.updateLabel();this.label&&(this.label.textContent=(0,w.localize)(0,null,this._action.label,n.symbolPrintEnter(o)))}static symbolPrintEnter(o){var s;return(s=o.getLabel())===null||s===void 0?void 0:s.replace(/\benter\b/gi,"\u23CE")}}let i=class{constructor(t,o,s,d){this._menuService=s,this._contextKeyService=d,this._menuDisposables=new k.DisposableStore,this.element=y.append(t,y.$(".suggest-status-bar"));const l=a=>a instanceof C.MenuItemAction?o.createInstance(n,a,void 0):void 0;this._leftActions=new v.ActionBar(this.element,{actionViewItemProvider:l}),this._rightActions=new v.ActionBar(this.element,{actionViewItemProvider:l}),this._leftActions.domNode.classList.add("left"),this._rightActions.domNode.classList.add("right")}dispose(){this._menuDisposables.dispose(),this.element.remove()}show(){const t=this._menuService.createMenu(D.suggestWidgetStatusbarMenu,this._contextKeyService),o=()=>{const s=[],d=[];for(const[l,a]of t.getActions())l==="left"?s.push(...a):d.push(...a);this._leftActions.clear(),this._leftActions.push(s),this._rightActions.clear(),this._rightActions.push(d)};this._menuDisposables.add(t.onDidChange(()=>o())),this._menuDisposables.add(t)}hide(){this._menuDisposables.clear()}};i=Ie([pe(1,u.IInstantiationService),pe(2,C.IMenuService),pe(3,h.IContextKeyService)],i),e.SuggestWidgetStatus=i}),define(oe[725],se([1,0,10,6,2,39,26,16,42,79,18,610]),function(q,e,y,v,k,D,w,b,C,h,u,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MenuService=void 0;let i=class{constructor(d,l){this._commandService=d,this._hiddenStates=new t(l)}createMenu(d,l,a){return new o(d,this._hiddenStates,Object.assign({emitEventsForSubmenuChanges:!1,eventDebounceDelay:50},a),this._commandService,l,this)}};i=Ie([pe(0,w.ICommandService),pe(1,h.IStorageService)],i),e.MenuService=i;let t=class ri{constructor(l){this._storageService=l,this._disposables=new k.DisposableStore,this._onDidChange=new v.Emitter,this.onDidChange=this._onDidChange.event,this._ignoreChangeEvent=!1;try{const a=l.get(ri._key,0,"{}");this._data=JSON.parse(a)}catch{this._data=Object.create(null)}this._disposables.add(l.onDidChangeValue(a=>{if(a.key===ri._key){if(!this._ignoreChangeEvent)try{const r=l.get(ri._key,0,"{}");this._data=JSON.parse(r)}catch(r){console.log("FAILED to read storage after UPDATE",r)}this._onDidChange.fire()}}))}dispose(){this._onDidChange.dispose(),this._disposables.dispose()}isHidden(l,a){var r,c;return(c=(r=this._data[l.id])===null||r===void 0?void 0:r.includes(a))!==null&&c!==void 0?c:!1}updateHidden(l,a,r){const c=this._data[l.id];if(r)c?c.indexOf(a)<0&&c.push(a):this._data[l.id]=[a];else if(c){const g=c.indexOf(a);g>=0&&(0,u.removeFastWithoutKeepingOrder)(c,g),c.length===0&&delete this._data[l.id]}this._persist()}_persist(){try{this._ignoreChangeEvent=!0;const l=JSON.stringify(this._data);this._storageService.store(ri._key,l,0,0)}finally{this._ignoreChangeEvent=!1}}};t._key="menu.hiddenCommands",t=Ie([pe(0,h.IStorageService)],t);let o=class ti{constructor(l,a,r,c,g,f){this._id=l,this._hiddenStates=a,this._options=r,this._commandService=c,this._contextKeyService=g,this._menuService=f,this._disposables=new k.DisposableStore,this._menuGroups=[],this._contextKeys=new Set,this._build();const _=new y.RunOnceScheduler(()=>{this._build(),this._onDidChange.fire(this)},r.eventDebounceDelay);this._disposables.add(_),this._disposables.add(D.MenuRegistry.onDidChangeMenu(S=>{S.has(l)&&_.schedule()}));const p=this._disposables.add(new k.DisposableStore),m=()=>{const S=new y.RunOnceScheduler(()=>this._onDidChange.fire(this),r.eventDebounceDelay);p.add(S),p.add(g.onDidChangeContext(E=>{E.affectsSome(this._contextKeys)&&S.schedule()})),p.add(a.onDidChange(()=>{S.schedule()}))};this._onDidChange=new v.Emitter({onFirstListenerAdd:m,onLastListenerRemove:p.clear.bind(p)}),this.onDidChange=this._onDidChange.event}dispose(){this._disposables.dispose(),this._onDidChange.dispose()}_build(){this._menuGroups.length=0,this._contextKeys.clear();const l=D.MenuRegistry.getMenuItems(this._id);let a;l.sort(ti._compareMenuItems);for(const r of l){const c=r.group||"";(!a||a[0]!==c)&&(a=[c,[]],this._menuGroups.push(a)),a[1].push(r),this._collectContextKeys(r)}}_collectContextKeys(l){if(ti._fillInKbExprKeys(l.when,this._contextKeys),(0,D.isIMenuItem)(l)){if(l.command.precondition&&ti._fillInKbExprKeys(l.command.precondition,this._contextKeys),l.command.toggled){const a=l.command.toggled.condition||l.command.toggled;ti._fillInKbExprKeys(a,this._contextKeys)}}else this._options.emitEventsForSubmenuChanges&&D.MenuRegistry.getMenuItems(l.submenu).forEach(this._collectContextKeys,this)}getActions(l){const a=[],r=[];for(const c of this._menuGroups){const[g,f]=c,_=[],p=[];for(const m of f)if(this._contextKeyService.contextMatchesRules(m.when)){let S;if((0,D.isIMenuItem)(m)){const E=s(this._id,m.command,this._hiddenStates);S=new D.MenuItemAction(m.command,m.alt,l,E,this._contextKeyService,this._commandService)}else S=new D.SubmenuItemAction(m,this._menuService,this._contextKeyService,l),S.actions.length===0&&(S.dispose(),S=void 0);S&&p.push(S)}p.length>0&&a.push([g,p]),_.length>0&&r.push(_)}return a}static _fillInKbExprKeys(l,a){if(l)for(const r of l.keys())a.add(r)}static _compareMenuItems(l,a){const r=l.group,c=a.group;if(r!==c){if(r){if(!c)return-1}else return 1;if(r==="navigation")return-1;if(c==="navigation")return 1;const _=r.localeCompare(c);if(_!==0)return _}const g=l.order||0,f=a.order||0;return g<f?-1:g>f?1:ti._compareTitles((0,D.isIMenuItem)(l)?l.command.title:l.title,(0,D.isIMenuItem)(a)?a.command.title:a.title)}static _compareTitles(l,a){const r=typeof l=="string"?l:l.original,c=typeof a=="string"?a:a.original;return r.localeCompare(c)}};o=Ie([pe(3,w.ICommandService),pe(4,b.IContextKeyService),pe(5,D.IMenuService)],o);function s(d,l,a){const r=`${d.id}/${l.id}`,c=typeof l.title=="string"?l.title:l.title.value,g=(0,C.toAction)({id:r,label:(0,n.localize)(0,null,c),run(){a.updateHidden(d,l.id,!0)}}),f=(0,C.toAction)({id:r,label:c,get checked(){return!a.isHidden(d,l.id)},run(){const _=!a.isHidden(d,l.id);a.updateHidden(d,l.id,_)}});return{hide:g,toggle:f,get isHidden(){return!f.checked}}}}),define(oe[726],se([1,0,7,6,2,44,38,86,15,665,78]),function(q,e,y,v,k,D,w,b,C,h,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContextMenuService=void 0;let n=class extends k.Disposable{constructor(i,t,o,s,d){super(),this._onDidShowContextMenu=new v.Emitter,this._onDidHideContextMenu=new v.Emitter,this.contextMenuHandler=new h.ContextMenuHandler(o,i,t,s,d)}configure(i){this.contextMenuHandler.configure(i)}showContextMenu(i){this.contextMenuHandler.showContextMenu(Object.assign(Object.assign({},i),{onHide:t=>{var o;(o=i.onHide)===null||o===void 0||o.call(i,t),this._onDidHideContextMenu.fire()}})),y.ModifierKeyEmitter.getInstance().resetKeyStatus(),this._onDidShowContextMenu.fire()}};n=Ie([pe(0,b.ITelemetryService),pe(1,w.INotificationService),pe(2,u.IContextViewService),pe(3,D.IKeybindingService),pe(4,C.IThemeService)],n),e.ContextMenuService=n}),define(oe[171],se([1,0,7,490,113,492,163,495,494,264,6,2,616,30,94,16,286,78,9,44,34,142,15]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r,c,g,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WorkbenchCompressibleAsyncDataTree=e.WorkbenchAsyncDataTree=e.WorkbenchDataTree=e.WorkbenchCompressibleObjectTree=e.WorkbenchObjectTree=e.WorkbenchTable=e.WorkbenchPagedList=e.WorkbenchList=e.WorkbenchTreeFindOpen=e.WorkbenchTreeElementHasChild=e.WorkbenchTreeElementCanExpand=e.WorkbenchTreeElementHasParent=e.WorkbenchTreeElementCanCollapse=e.WorkbenchListSupportsFind=e.WorkbenchListSelectionNavigation=e.WorkbenchListMultiSelection=e.WorkbenchListDoubleSelection=e.WorkbenchListHasSelectionOrFocus=e.WorkbenchListFocusContextKey=e.WorkbenchListSupportsMultiSelectContextKey=e.RawWorkbenchListFocusContextKey=e.ListService=e.IListService=void 0,e.IListService=(0,a.createDecorator)("listService");let _=class{constructor(W){this._themeService=W,this.disposables=new n.DisposableStore,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}get lastFocusedList(){return this._lastFocusedWidget}setLastFocusedList(W){var V,ne;W!==this._lastFocusedWidget&&((V=this._lastFocusedWidget)===null||V===void 0||V.getHTMLElement().classList.remove("last-focused"),this._lastFocusedWidget=W,(ne=this._lastFocusedWidget)===null||ne===void 0||ne.getHTMLElement().classList.add("last-focused"))}register(W,V){if(!this._hasCreatedStyleController){this._hasCreatedStyleController=!0;const de=new k.DefaultStyleController((0,y.createStyleSheet)(),"");this.disposables.add((0,g.attachListStyler)(de,this._themeService))}if(this.lists.some(de=>de.widget===W))throw new Error("Cannot register the same widget multiple times");const ne={widget:W,extraContextKeys:V};return this.lists.push(ne),W.getHTMLElement()===document.activeElement&&this.setLastFocusedList(W),(0,n.combinedDisposable)(W.onDidFocus(()=>this.setLastFocusedList(W)),(0,n.toDisposable)(()=>this.lists.splice(this.lists.indexOf(ne),1)),W.onDidDispose(()=>{this.lists=this.lists.filter(de=>de!==ne),this._lastFocusedWidget===W&&this.setLastFocusedList(void 0)}))}dispose(){this.disposables.dispose()}};_=Ie([pe(0,f.IThemeService)],_),e.ListService=_,e.RawWorkbenchListFocusContextKey=new s.RawContextKey("listFocus",!0),e.WorkbenchListSupportsMultiSelectContextKey=new s.RawContextKey("listSupportsMultiselect",!0),e.WorkbenchListFocusContextKey=s.ContextKeyExpr.and(e.RawWorkbenchListFocusContextKey,s.ContextKeyExpr.not(d.InputFocusedContextKey)),e.WorkbenchListHasSelectionOrFocus=new s.RawContextKey("listHasSelectionOrFocus",!1),e.WorkbenchListDoubleSelection=new s.RawContextKey("listDoubleSelection",!1),e.WorkbenchListMultiSelection=new s.RawContextKey("listMultiSelection",!1),e.WorkbenchListSelectionNavigation=new s.RawContextKey("listSelectionNavigation",!1),e.WorkbenchListSupportsFind=new s.RawContextKey("listSupportsFind",!0),e.WorkbenchTreeElementCanCollapse=new s.RawContextKey("treeElementCanCollapse",!1),e.WorkbenchTreeElementHasParent=new s.RawContextKey("treeElementHasParent",!1),e.WorkbenchTreeElementCanExpand=new s.RawContextKey("treeElementCanExpand",!1),e.WorkbenchTreeElementHasChild=new s.RawContextKey("treeElementHasChild",!1),e.WorkbenchTreeFindOpen=new s.RawContextKey("treeFindOpen",!1);const p="listTypeNavigationMode",m="listAutomaticKeyboardNavigation";function S(W,V){const ne=W.createScoped(V.getHTMLElement());return e.RawWorkbenchListFocusContextKey.bindTo(ne),ne}const E="workbench.list.multiSelectModifier",L="workbench.list.openMode",N="workbench.list.horizontalScrolling",I="workbench.list.defaultFindMode",R="workbench.list.keyboardNavigation",F="workbench.tree.indent",O="workbench.tree.renderIndentGuides",x="workbench.list.smoothScrolling",M="workbench.list.mouseWheelScrollSensitivity",P="workbench.list.fastScrollSensitivity",A="workbench.tree.expandMode";function B(W){return W.getValue(E)==="alt"}class K extends n.Disposable{constructor(V){super(),this.configurationService=V,this.useAltAsMultipleSelectionModifier=B(V),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(V=>{V.affectsConfiguration(E)&&(this.useAltAsMultipleSelectionModifier=B(this.configurationService))}))}isSelectionSingleChangeEvent(V){return this.useAltAsMultipleSelectionModifier?V.browserEvent.altKey:(0,k.isSelectionSingleChangeEvent)(V)}isSelectionRangeChangeEvent(V){return(0,k.isSelectionRangeChangeEvent)(V)}}function T(W,V){var ne;const de=W.get(t.IConfigurationService),ce=W.get(r.IKeybindingService),ue=new n.DisposableStore;return[Object.assign(Object.assign({},V),{keyboardNavigationDelegate:{mightProducePrintableCharacter(me){return ce.mightProducePrintableCharacter(me)}},smoothScrolling:!!de.getValue(x),mouseWheelScrollSensitivity:de.getValue(M),fastScrollSensitivity:de.getValue(P),multipleSelectionController:(ne=V.multipleSelectionController)!==null&&ne!==void 0?ne:ue.add(new K(de)),keyboardNavigationEventFilter:X(ce)}),ue]}let ee=class extends k.List{constructor(W,V,ne,de,ce,ue,me,_e,ye,ke){const Te=typeof ce.horizontalScrolling<"u"?ce.horizontalScrolling:!!ye.getValue(N),[Me,fe]=ke.invokeFunction(T,ce);super(W,V,ne,de,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},(0,g.computeStyles)(_e.getColorTheme(),g.defaultListStyles)),Me),{horizontalScrolling:Te})),this.disposables.add(fe),this.contextKeyService=S(ue,this),this.themeService=_e,this.listSupportsMultiSelect=e.WorkbenchListSupportsMultiSelectContextKey.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(ce.multipleSelectionSupport!==!1),e.WorkbenchListSelectionNavigation.bindTo(this.contextKeyService).set(!!ce.selectionNavigation),this.listHasSelectionOrFocus=e.WorkbenchListHasSelectionOrFocus.bindTo(this.contextKeyService),this.listDoubleSelection=e.WorkbenchListDoubleSelection.bindTo(this.contextKeyService),this.listMultiSelection=e.WorkbenchListMultiSelection.bindTo(this.contextKeyService),this.horizontalScrolling=ce.horizontalScrolling,this._useAltAsMultipleSelectionModifier=B(ye),this.disposables.add(this.contextKeyService),this.disposables.add(me.register(this)),ce.overrideStyles&&this.updateStyles(ce.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{const he=this.getSelection(),re=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(he.length>0||re.length>0),this.listMultiSelection.set(he.length>1),this.listDoubleSelection.set(he.length===2)})})),this.disposables.add(this.onDidChangeFocus(()=>{const he=this.getSelection(),re=this.getFocus();this.listHasSelectionOrFocus.set(he.length>0||re.length>0)})),this.disposables.add(ye.onDidChangeConfiguration(he=>{he.affectsConfiguration(E)&&(this._useAltAsMultipleSelectionModifier=B(ye));let re={};if(he.affectsConfiguration(N)&&this.horizontalScrolling===void 0){const ge=!!ye.getValue(N);re=Object.assign(Object.assign({},re),{horizontalScrolling:ge})}if(he.affectsConfiguration(x)){const ge=!!ye.getValue(x);re=Object.assign(Object.assign({},re),{smoothScrolling:ge})}if(he.affectsConfiguration(M)){const ge=ye.getValue(M);re=Object.assign(Object.assign({},re),{mouseWheelScrollSensitivity:ge})}if(he.affectsConfiguration(P)){const ge=ye.getValue(P);re=Object.assign(Object.assign({},re),{fastScrollSensitivity:ge})}Object.keys(re).length>0&&this.updateOptions(re)})),this.navigator=new G(this,Object.assign({configurationService:ye},ce)),this.disposables.add(this.navigator)}updateOptions(W){super.updateOptions(W),W.overrideStyles&&this.updateStyles(W.overrideStyles),W.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!W.multipleSelectionSupport)}updateStyles(W){var V;(V=this._styler)===null||V===void 0||V.dispose(),this._styler=(0,g.attachListStyler)(this,this.themeService,W)}dispose(){var W;(W=this._styler)===null||W===void 0||W.dispose(),super.dispose()}};ee=Ie([pe(5,s.IContextKeyService),pe(6,e.IListService),pe(7,f.IThemeService),pe(8,t.IConfigurationService),pe(9,a.IInstantiationService)],ee),e.WorkbenchList=ee;let J=class extends v.PagedList{constructor(W,V,ne,de,ce,ue,me,_e,ye,ke){const Te=typeof ce.horizontalScrolling<"u"?ce.horizontalScrolling:!!ye.getValue(N),[Me,fe]=ke.invokeFunction(T,ce);super(W,V,ne,de,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},(0,g.computeStyles)(_e.getColorTheme(),g.defaultListStyles)),Me),{horizontalScrolling:Te})),this.disposables=new n.DisposableStore,this.disposables.add(fe),this.contextKeyService=S(ue,this),this.themeService=_e,this.horizontalScrolling=ce.horizontalScrolling,this.listSupportsMultiSelect=e.WorkbenchListSupportsMultiSelectContextKey.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(ce.multipleSelectionSupport!==!1),e.WorkbenchListSelectionNavigation.bindTo(this.contextKeyService).set(!!ce.selectionNavigation),this._useAltAsMultipleSelectionModifier=B(ye),this.disposables.add(this.contextKeyService),this.disposables.add(me.register(this)),ce.overrideStyles&&this.updateStyles(ce.overrideStyles),ce.overrideStyles&&this.disposables.add((0,g.attachListStyler)(this,_e,ce.overrideStyles)),this.disposables.add(ye.onDidChangeConfiguration(he=>{he.affectsConfiguration(E)&&(this._useAltAsMultipleSelectionModifier=B(ye));let re={};if(he.affectsConfiguration(N)&&this.horizontalScrolling===void 0){const ge=!!ye.getValue(N);re=Object.assign(Object.assign({},re),{horizontalScrolling:ge})}if(he.affectsConfiguration(x)){const ge=!!ye.getValue(x);re=Object.assign(Object.assign({},re),{smoothScrolling:ge})}if(he.affectsConfiguration(M)){const ge=ye.getValue(M);re=Object.assign(Object.assign({},re),{mouseWheelScrollSensitivity:ge})}if(he.affectsConfiguration(P)){const ge=ye.getValue(P);re=Object.assign(Object.assign({},re),{fastScrollSensitivity:ge})}Object.keys(re).length>0&&this.updateOptions(re)})),this.navigator=new G(this,Object.assign({configurationService:ye},ce)),this.disposables.add(this.navigator)}updateOptions(W){super.updateOptions(W),W.overrideStyles&&this.updateStyles(W.overrideStyles),W.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!W.multipleSelectionSupport)}updateStyles(W){var V;(V=this._styler)===null||V===void 0||V.dispose(),this._styler=(0,g.attachListStyler)(this,this.themeService,W)}dispose(){var W;(W=this._styler)===null||W===void 0||W.dispose(),this.disposables.dispose(),super.dispose()}};J=Ie([pe(5,s.IContextKeyService),pe(6,e.IListService),pe(7,f.IThemeService),pe(8,t.IConfigurationService),pe(9,a.IInstantiationService)],J),e.WorkbenchPagedList=J;let $=class extends D.Table{constructor(W,V,ne,de,ce,ue,me,_e,ye,ke,Te){const Me=typeof ue.horizontalScrolling<"u"?ue.horizontalScrolling:!!ke.getValue(N),[fe,he]=Te.invokeFunction(T,ue);super(W,V,ne,de,ce,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},(0,g.computeStyles)(ye.getColorTheme(),g.defaultListStyles)),fe),{horizontalScrolling:Me})),this.disposables.add(he),this.contextKeyService=S(me,this),this.themeService=ye,this.listSupportsMultiSelect=e.WorkbenchListSupportsMultiSelectContextKey.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(ue.multipleSelectionSupport!==!1),e.WorkbenchListSelectionNavigation.bindTo(this.contextKeyService).set(!!ue.selectionNavigation),this.listHasSelectionOrFocus=e.WorkbenchListHasSelectionOrFocus.bindTo(this.contextKeyService),this.listDoubleSelection=e.WorkbenchListDoubleSelection.bindTo(this.contextKeyService),this.listMultiSelection=e.WorkbenchListMultiSelection.bindTo(this.contextKeyService),this.horizontalScrolling=ue.horizontalScrolling,this._useAltAsMultipleSelectionModifier=B(ke),this.disposables.add(this.contextKeyService),this.disposables.add(_e.register(this)),ue.overrideStyles&&this.updateStyles(ue.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{const re=this.getSelection(),ge=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(re.length>0||ge.length>0),this.listMultiSelection.set(re.length>1),this.listDoubleSelection.set(re.length===2)})})),this.disposables.add(this.onDidChangeFocus(()=>{const re=this.getSelection(),ge=this.getFocus();this.listHasSelectionOrFocus.set(re.length>0||ge.length>0)})),this.disposables.add(ke.onDidChangeConfiguration(re=>{re.affectsConfiguration(E)&&(this._useAltAsMultipleSelectionModifier=B(ke));let ge={};if(re.affectsConfiguration(N)&&this.horizontalScrolling===void 0){const Se=!!ke.getValue(N);ge=Object.assign(Object.assign({},ge),{horizontalScrolling:Se})}if(re.affectsConfiguration(x)){const Se=!!ke.getValue(x);ge=Object.assign(Object.assign({},ge),{smoothScrolling:Se})}if(re.affectsConfiguration(M)){const Se=ke.getValue(M);ge=Object.assign(Object.assign({},ge),{mouseWheelScrollSensitivity:Se})}if(re.affectsConfiguration(P)){const Se=ke.getValue(P);ge=Object.assign(Object.assign({},ge),{fastScrollSensitivity:Se})}Object.keys(ge).length>0&&this.updateOptions(ge)})),this.navigator=new te(this,Object.assign({configurationService:ke},ue)),this.disposables.add(this.navigator)}updateOptions(W){super.updateOptions(W),W.overrideStyles&&this.updateStyles(W.overrideStyles),W.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!W.multipleSelectionSupport)}updateStyles(W){var V;(V=this._styler)===null||V===void 0||V.dispose(),this._styler=(0,g.attachListStyler)(this,this.themeService,W)}dispose(){var W;(W=this._styler)===null||W===void 0||W.dispose(),this.disposables.dispose(),super.dispose()}};$=Ie([pe(6,s.IContextKeyService),pe(7,e.IListService),pe(8,f.IThemeService),pe(9,t.IConfigurationService),pe(10,a.IInstantiationService)],$),e.WorkbenchTable=$;class j extends n.Disposable{constructor(V,ne){var de;super(),this.widget=V,this._onDidOpen=this._register(new u.Emitter),this.onDidOpen=this._onDidOpen.event,this._register(u.Event.filter(this.widget.onDidChangeSelection,ce=>ce.browserEvent instanceof KeyboardEvent)(ce=>this.onSelectionFromKeyboard(ce))),this._register(this.widget.onPointer(ce=>this.onPointer(ce.element,ce.browserEvent))),this._register(this.widget.onMouseDblClick(ce=>this.onMouseDblClick(ce.element,ce.browserEvent))),typeof ne?.openOnSingleClick!="boolean"&&ne?.configurationService?(this.openOnSingleClick=ne?.configurationService.getValue(L)!=="doubleClick",this._register(ne?.configurationService.onDidChangeConfiguration(()=>{this.openOnSingleClick=ne?.configurationService.getValue(L)!=="doubleClick"}))):this.openOnSingleClick=(de=ne?.openOnSingleClick)!==null&&de!==void 0?de:!0}onSelectionFromKeyboard(V){if(V.elements.length!==1)return;const ne=V.browserEvent,de=typeof ne.preserveFocus=="boolean"?ne.preserveFocus:!0,ce=typeof ne.pinned=="boolean"?ne.pinned:!de,ue=!1;this._open(this.getSelectedElement(),de,ce,ue,V.browserEvent)}onPointer(V,ne){if(!this.openOnSingleClick||ne.detail===2)return;const de=ne.button===1,ce=!0,ue=de,me=ne.ctrlKey||ne.metaKey||ne.altKey;this._open(V,ce,ue,me,ne)}onMouseDblClick(V,ne){if(!ne)return;const de=ne.target;if(de.classList.contains("monaco-tl-twistie")||de.classList.contains("monaco-icon-label")&&de.classList.contains("folder-icon")&&ne.offsetX<16)return;const ce=!1,ue=!0,me=ne.ctrlKey||ne.metaKey||ne.altKey;this._open(V,ce,ue,me,ne)}_open(V,ne,de,ce,ue){!V||this._onDidOpen.fire({editorOptions:{preserveFocus:ne,pinned:de,revealIfVisible:!0},sideBySide:ce,element:V,browserEvent:ue})}}class G extends j{constructor(V,ne){super(V,ne),this.widget=V}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class te extends j{constructor(V,ne){super(V,ne)}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class Z extends j{constructor(V,ne){super(V,ne)}getSelectedElement(){var V;return(V=this.widget.getSelection()[0])!==null&&V!==void 0?V:void 0}}function X(W){let V=!1;return ne=>{if(ne.toKeybinding().isModifierKey())return!1;if(V)return V=!1,!1;const de=W.softDispatch(ne,ne.target);return de?.enterChord?(V=!0,!1):(V=!1,!de)}}let ie=class extends h.ObjectTree{constructor(W,V,ne,de,ce,ue,me,_e,ye,ke){const{options:Te,getTypeNavigationMode:Me,disposable:fe}=ue.invokeFunction(z,ce);super(W,V,ne,de,Te),this.disposables.add(fe),this.internals=new Q(this,ce,Me,ce.overrideStyles,me,_e,ye,ke),this.disposables.add(this.internals)}updateOptions(W){super.updateOptions(W),this.internals.updateOptions(W)}};ie=Ie([pe(5,a.IInstantiationService),pe(6,s.IContextKeyService),pe(7,e.IListService),pe(8,f.IThemeService),pe(9,t.IConfigurationService)],ie),e.WorkbenchObjectTree=ie;let H=class extends h.CompressibleObjectTree{constructor(W,V,ne,de,ce,ue,me,_e,ye,ke){const{options:Te,getTypeNavigationMode:Me,disposable:fe}=ue.invokeFunction(z,ce);super(W,V,ne,de,Te),this.disposables.add(fe),this.internals=new Q(this,ce,Me,ce.overrideStyles,me,_e,ye,ke),this.disposables.add(this.internals)}updateOptions(W={}){super.updateOptions(W),W.overrideStyles&&this.internals.updateStyleOverrides(W.overrideStyles),this.internals.updateOptions(W)}};H=Ie([pe(5,a.IInstantiationService),pe(6,s.IContextKeyService),pe(7,e.IListService),pe(8,f.IThemeService),pe(9,t.IConfigurationService)],H),e.WorkbenchCompressibleObjectTree=H;let ae=class extends C.DataTree{constructor(W,V,ne,de,ce,ue,me,_e,ye,ke,Te){const{options:Me,getTypeNavigationMode:fe,disposable:he}=me.invokeFunction(z,ue);super(W,V,ne,de,ce,Me),this.disposables.add(he),this.internals=new Q(this,ue,fe,ue.overrideStyles,_e,ye,ke,Te),this.disposables.add(this.internals)}updateOptions(W={}){super.updateOptions(W),W.overrideStyles&&this.internals.updateStyleOverrides(W.overrideStyles),this.internals.updateOptions(W)}};ae=Ie([pe(6,a.IInstantiationService),pe(7,s.IContextKeyService),pe(8,e.IListService),pe(9,f.IThemeService),pe(10,t.IConfigurationService)],ae),e.WorkbenchDataTree=ae;let Y=class extends b.AsyncDataTree{constructor(W,V,ne,de,ce,ue,me,_e,ye,ke,Te){const{options:Me,getTypeNavigationMode:fe,disposable:he}=me.invokeFunction(z,ue);super(W,V,ne,de,ce,Me),this.disposables.add(he),this.internals=new Q(this,ue,fe,ue.overrideStyles,_e,ye,ke,Te),this.disposables.add(this.internals)}get onDidOpen(){return this.internals.onDidOpen}updateOptions(W={}){super.updateOptions(W),W.overrideStyles&&this.internals.updateStyleOverrides(W.overrideStyles),this.internals.updateOptions(W)}};Y=Ie([pe(6,a.IInstantiationService),pe(7,s.IContextKeyService),pe(8,e.IListService),pe(9,f.IThemeService),pe(10,t.IConfigurationService)],Y),e.WorkbenchAsyncDataTree=Y;let U=class extends b.CompressibleAsyncDataTree{constructor(W,V,ne,de,ce,ue,me,_e,ye,ke,Te,Me){const{options:fe,getTypeNavigationMode:he,disposable:re}=_e.invokeFunction(z,me);super(W,V,ne,de,ce,ue,fe),this.disposables.add(re),this.internals=new Q(this,me,he,me.overrideStyles,ye,ke,Te,Me),this.disposables.add(this.internals)}updateOptions(W){super.updateOptions(W),this.internals.updateOptions(W)}};U=Ie([pe(7,a.IInstantiationService),pe(8,s.IContextKeyService),pe(9,e.IListService),pe(10,f.IThemeService),pe(11,t.IConfigurationService)],U),e.WorkbenchCompressibleAsyncDataTree=U;function le(W){const V=W.getValue(I);if(V==="highlight")return w.TreeFindMode.Highlight;if(V==="filter")return w.TreeFindMode.Filter;const ne=W.getValue(R);if(ne==="simple"||ne==="highlight")return w.TreeFindMode.Highlight;if(ne==="filter")return w.TreeFindMode.Filter}function z(W,V){var ne;const de=W.get(t.IConfigurationService),ce=W.get(l.IContextViewService),ue=W.get(s.IContextKeyService),me=W.get(a.IInstantiationService),_e=()=>{const fe=ue.getContextKeyValue(p);if(fe==="automatic")return k.TypeNavigationMode.Automatic;if(fe==="trigger"||ue.getContextKeyValue(m)===!1)return k.TypeNavigationMode.Trigger},ye=V.horizontalScrolling!==void 0?V.horizontalScrolling:!!de.getValue(N),[ke,Te]=me.invokeFunction(T,V),Me=V.additionalScrollHeight;return{getTypeNavigationMode:_e,disposable:Te,options:Object.assign(Object.assign({keyboardSupport:!1},ke),{indent:typeof de.getValue(F)=="number"?de.getValue(F):void 0,renderIndentGuides:de.getValue(O),smoothScrolling:!!de.getValue(x),defaultFindMode:le(de),horizontalScrolling:ye,additionalScrollHeight:Me,hideTwistiesOfChildlessElements:V.hideTwistiesOfChildlessElements,expandOnlyOnTwistieClick:(ne=V.expandOnlyOnTwistieClick)!==null&&ne!==void 0?ne:de.getValue(A)==="doubleClick",contextViewProvider:ce})}}let Q=class{constructor(W,V,ne,de,ce,ue,me,_e){var ye;this.tree=W,this.themeService=me,this.disposables=[],this.contextKeyService=S(ce,W),this.listSupportsMultiSelect=e.WorkbenchListSupportsMultiSelectContextKey.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(V.multipleSelectionSupport!==!1),e.WorkbenchListSelectionNavigation.bindTo(this.contextKeyService).set(!!V.selectionNavigation),this.listSupportFindWidget=e.WorkbenchListSupportsFind.bindTo(this.contextKeyService),this.listSupportFindWidget.set((ye=V.findWidgetEnabled)!==null&&ye!==void 0?ye:!0),this.hasSelectionOrFocus=e.WorkbenchListHasSelectionOrFocus.bindTo(this.contextKeyService),this.hasDoubleSelection=e.WorkbenchListDoubleSelection.bindTo(this.contextKeyService),this.hasMultiSelection=e.WorkbenchListMultiSelection.bindTo(this.contextKeyService),this.treeElementCanCollapse=e.WorkbenchTreeElementCanCollapse.bindTo(this.contextKeyService),this.treeElementHasParent=e.WorkbenchTreeElementHasParent.bindTo(this.contextKeyService),this.treeElementCanExpand=e.WorkbenchTreeElementCanExpand.bindTo(this.contextKeyService),this.treeElementHasChild=e.WorkbenchTreeElementHasChild.bindTo(this.contextKeyService),this.treeFindOpen=e.WorkbenchTreeFindOpen.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=B(_e),this.updateStyleOverrides(de);const ke=()=>{const Me=W.getFocus()[0];if(!Me)return;const fe=W.getNode(Me);this.treeElementCanCollapse.set(fe.collapsible&&!fe.collapsed),this.treeElementHasParent.set(!!W.getParentElement(Me)),this.treeElementCanExpand.set(fe.collapsible&&fe.collapsed),this.treeElementHasChild.set(!!W.getFirstElementChild(Me))},Te=new Set;Te.add(p),Te.add(m),this.disposables.push(this.contextKeyService,ue.register(W),W.onDidChangeSelection(()=>{const Me=W.getSelection(),fe=W.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.hasSelectionOrFocus.set(Me.length>0||fe.length>0),this.hasMultiSelection.set(Me.length>1),this.hasDoubleSelection.set(Me.length===2)})}),W.onDidChangeFocus(()=>{const Me=W.getSelection(),fe=W.getFocus();this.hasSelectionOrFocus.set(Me.length>0||fe.length>0),ke()}),W.onDidChangeCollapseState(ke),W.onDidChangeModel(ke),W.onDidChangeFindOpenState(Me=>this.treeFindOpen.set(Me)),_e.onDidChangeConfiguration(Me=>{let fe={};if(Me.affectsConfiguration(E)&&(this._useAltAsMultipleSelectionModifier=B(_e)),Me.affectsConfiguration(F)){const he=_e.getValue(F);fe=Object.assign(Object.assign({},fe),{indent:he})}if(Me.affectsConfiguration(O)){const he=_e.getValue(O);fe=Object.assign(Object.assign({},fe),{renderIndentGuides:he})}if(Me.affectsConfiguration(x)){const he=!!_e.getValue(x);fe=Object.assign(Object.assign({},fe),{smoothScrolling:he})}if((Me.affectsConfiguration(I)||Me.affectsConfiguration(R))&&W.updateOptions({defaultFindMode:le(_e)}),Me.affectsConfiguration(N)&&V.horizontalScrolling===void 0){const he=!!_e.getValue(N);fe=Object.assign(Object.assign({},fe),{horizontalScrolling:he})}if(Me.affectsConfiguration(A)&&V.expandOnlyOnTwistieClick===void 0&&(fe=Object.assign(Object.assign({},fe),{expandOnlyOnTwistieClick:_e.getValue(A)==="doubleClick"})),Me.affectsConfiguration(M)){const he=_e.getValue(M);fe=Object.assign(Object.assign({},fe),{mouseWheelScrollSensitivity:he})}if(Me.affectsConfiguration(P)){const he=_e.getValue(P);fe=Object.assign(Object.assign({},fe),{fastScrollSensitivity:he})}Object.keys(fe).length>0&&W.updateOptions(fe)}),this.contextKeyService.onDidChangeContext(Me=>{Me.affectsSome(Te)&&W.updateOptions({typeNavigationMode:ne()})})),this.navigator=new Z(W,Object.assign({configurationService:_e},V)),this.disposables.push(this.navigator)}get onDidOpen(){return this.navigator.onDidOpen}updateOptions(W){W.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!W.multipleSelectionSupport)}updateStyleOverrides(W){(0,n.dispose)(this.styler),this.styler=W?(0,g.attachListStyler)(this.tree,this.themeService,W):n.Disposable.None}dispose(){this.disposables=(0,n.dispose)(this.disposables),(0,n.dispose)(this.styler),this.styler=void 0}};Q=Ie([pe(4,s.IContextKeyService),pe(5,e.IListService),pe(6,f.IThemeService),pe(7,t.IConfigurationService)],Q),c.Registry.as(o.Extensions.Configuration).registerConfiguration({id:"workbench",order:7,title:(0,i.localize)(0,null),type:"object",properties:{[E]:{type:"string",enum:["ctrlCmd","alt"],markdownEnumDescriptions:[(0,i.localize)(1,null),(0,i.localize)(2,null)],default:"ctrlCmd",description:(0,i.localize)(3,null)},[L]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:(0,i.localize)(4,null)},[N]:{type:"boolean",default:!1,description:(0,i.localize)(5,null)},[F]:{type:"number",default:8,minimum:4,maximum:40,description:(0,i.localize)(6,null)},[O]:{type:"string",enum:["none","onHover","always"],default:"onHover",description:(0,i.localize)(7,null)},[x]:{type:"boolean",default:!1,description:(0,i.localize)(8,null)},[M]:{type:"number",default:1,markdownDescription:(0,i.localize)(9,null)},[P]:{type:"number",default:5,description:(0,i.localize)(10,null)},[I]:{type:"string",enum:["highlight","filter"],enumDescriptions:[(0,i.localize)(11,null),(0,i.localize)(12,null)],default:"highlight",description:(0,i.localize)(13,null)},[R]:{type:"string",enum:["simple","highlight","filter"],enumDescriptions:[(0,i.localize)(14,null),(0,i.localize)(15,null),(0,i.localize)(16,null)],default:"highlight",description:(0,i.localize)(17,null),deprecated:!0,deprecationMessage:(0,i.localize)(18,null)},[A]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:(0,i.localize)(19,null)}}})}),define(oe[727],se([1,0,7,100,48,62,6,2,45,25,15]),function(q,e,y,v,k,D,w,b,C,h,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Link=void 0;let n=class extends b.Disposable{constructor(i,t,o={},s){var d;super(),this._link=t,this._enabled=!0,this.el=(0,y.append)(i,(0,y.$)("a.monaco-link",{tabIndex:(d=t.tabIndex)!==null&&d!==void 0?d:0,href:t.href,title:t.title},t.label)),this.el.setAttribute("role","button");const l=this._register(new v.DomEmitter(this.el,"click")),a=this._register(new v.DomEmitter(this.el,"keypress")),r=w.Event.chain(a.event).map(f=>new k.StandardKeyboardEvent(f)).filter(f=>f.keyCode===3).event,c=this._register(new v.DomEmitter(this.el,D.EventType.Tap)).event;this._register(D.Gesture.addTarget(this.el));const g=w.Event.any(l.event,r,c);this._register(g(f=>{!this.enabled||(y.EventHelper.stop(f,!0),o?.opener?o.opener(this._link.href):s.open(this._link.href,{allowCommands:!0}))})),this.enabled=!0}get enabled(){return this._enabled}set enabled(i){i?(this.el.setAttribute("aria-disabled","false"),this.el.tabIndex=0,this.el.style.pointerEvents="auto",this.el.style.opacity="1",this.el.style.cursor="pointer",this._enabled=!1):(this.el.setAttribute("aria-disabled","true"),this.el.tabIndex=-1,this.el.style.pointerEvents="none",this.el.style.opacity="0.4",this.el.style.cursor="default",this._enabled=!0),this._enabled=i}};n=Ie([pe(3,C.IOpenerService)],n),e.Link=n,(0,u.registerThemingParticipant)((i,t)=>{const o=i.getColor(h.textLinkForeground);o&&t.addRule(`.monaco-link { color: ${o}; }`);const s=i.getColor(h.textLinkActiveForeground);s&&t.addRule(`.monaco-link:hover { color: ${s}; }`)})}),define(oe[728],se([1,0,21,521,77,16,9,116,171,661,25,142,15]),function(q,e,y,v,k,D,w,b,C,h,u,n,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.QuickInputService=void 0;let t=class extends i.Themable{constructor(o,s,d,l,a){super(d),this.instantiationService=o,this.contextKeyService=s,this.accessibilityService=l,this.layoutService=a,this.contexts=new Map}get controller(){return this._controller||(this._controller=this._register(this.createController())),this._controller}get quickAccess(){return this._quickAccess||(this._quickAccess=this._register(this.instantiationService.createInstance(h.QuickAccessController))),this._quickAccess}createController(o=this.layoutService,s){const d={idPrefix:"quickInput_",container:o.container,ignoreFocusOut:()=>!1,isScreenReaderOptimized:()=>this.accessibilityService.isScreenReaderOptimized(),backKeybindingLabel:()=>{},setContextKey:a=>this.setContextKey(a),returnFocus:()=>o.focus(),createList:(a,r,c,g,f)=>this.instantiationService.createInstance(C.WorkbenchList,a,r,c,g,f),styles:this.computeStyles()},l=this._register(new v.QuickInputController(Object.assign(Object.assign({},d),s)));return l.layout(o.dimension,o.offset.quickPickTop),this._register(o.onDidLayout(a=>l.layout(a,o.offset.quickPickTop))),this._register(l.onShow(()=>this.resetContextKeys())),this._register(l.onHide(()=>this.resetContextKeys())),l}setContextKey(o){let s;o&&(s=this.contexts.get(o),s||(s=new D.RawContextKey(o,!1).bindTo(this.contextKeyService),this.contexts.set(o,s))),!(s&&s.get())&&(this.resetContextKeys(),s?.set(!0))}resetContextKeys(){this.contexts.forEach(o=>{o.get()&&o.reset()})}pick(o,s={},d=y.CancellationToken.None){return this.controller.pick(o,s,d)}createQuickPick(){return this.controller.createQuickPick()}updateStyles(){this.controller.applyStyles(this.computeStyles())}computeStyles(){return{widget:Object.assign({},(0,n.computeStyles)(this.theme,{quickInputBackground:u.quickInputBackground,quickInputForeground:u.quickInputForeground,quickInputTitleBackground:u.quickInputTitleBackground,contrastBorder:u.contrastBorder,widgetShadow:u.widgetShadow})),inputBox:(0,n.computeStyles)(this.theme,{inputForeground:u.inputForeground,inputBackground:u.inputBackground,inputBorder:u.inputBorder,inputValidationInfoBackground:u.inputValidationInfoBackground,inputValidationInfoForeground:u.inputValidationInfoForeground,inputValidationInfoBorder:u.inputValidationInfoBorder,inputValidationWarningBackground:u.inputValidationWarningBackground,inputValidationWarningForeground:u.inputValidationWarningForeground,inputValidationWarningBorder:u.inputValidationWarningBorder,inputValidationErrorBackground:u.inputValidationErrorBackground,inputValidationErrorForeground:u.inputValidationErrorForeground,inputValidationErrorBorder:u.inputValidationErrorBorder}),countBadge:(0,n.computeStyles)(this.theme,{badgeBackground:u.badgeBackground,badgeForeground:u.badgeForeground,badgeBorder:u.contrastBorder}),button:(0,n.computeStyles)(this.theme,{buttonForeground:u.buttonForeground,buttonBackground:u.buttonBackground,buttonHoverBackground:u.buttonHoverBackground,buttonBorder:u.contrastBorder}),progressBar:(0,n.computeStyles)(this.theme,{progressBarBackground:u.progressBarBackground}),keybindingLabel:(0,n.computeStyles)(this.theme,{keybindingLabelBackground:u.keybindingLabelBackground,keybindingLabelForeground:u.keybindingLabelForeground,keybindingLabelBorder:u.keybindingLabelBorder,keybindingLabelBottomBorder:u.keybindingLabelBottomBorder,keybindingLabelShadow:u.widgetShadow}),list:(0,n.computeStyles)(this.theme,{listBackground:u.quickInputBackground,listInactiveFocusForeground:u.quickInputListFocusForeground,listInactiveSelectionIconForeground:u.quickInputListFocusIconForeground,listInactiveFocusBackground:u.quickInputListFocusBackground,listFocusOutline:u.activeContrastBorder,listInactiveFocusOutline:u.activeContrastBorder,pickerGroupBorder:u.pickerGroupBorder,pickerGroupForeground:u.pickerGroupForeground})}}};t=Ie([pe(0,w.IInstantiationService),pe(1,D.IContextKeyService),pe(2,i.IThemeService),pe(3,k.IAccessibilityService),pe(4,b.ILayoutService)],t),e.QuickInputService=t}),define(oe[729],se([1,0,12,15,21,9,16,77,288,29,728,96,397]),function(q,e,y,v,k,D,w,b,C,h,u,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.QuickInputEditorWidget=e.QuickInputEditorContribution=e.StandaloneQuickInputService=e.EditorScopedQuickInputService=void 0;let i=class extends u.QuickInputService{constructor(d,l,a,r,c,g){super(l,a,r,c,new C.EditorScopedLayoutService(d.getContainerDomNode(),g)),this.host=void 0;const f=o.get(d);if(f){const _=f.widget;this.host={_serviceBrand:void 0,get hasContainer(){return!0},get container(){return _.getDomNode()},get dimension(){return d.getLayoutInfo()},get onDidLayout(){return d.onDidLayoutChange},focus:()=>d.focus(),offset:{top:0,quickPickTop:0}}}else this.host=void 0}createController(){return super.createController(this.host)}};i=Ie([pe(1,D.IInstantiationService),pe(2,w.IContextKeyService),pe(3,v.IThemeService),pe(4,b.IAccessibilityService),pe(5,h.ICodeEditorService)],i),e.EditorScopedQuickInputService=i;let t=class{constructor(d,l){this.instantiationService=d,this.codeEditorService=l,this.mapEditorToService=new Map}get activeService(){const d=this.codeEditorService.getFocusedCodeEditor();if(!d)throw new Error("Quick input service needs a focused editor to work.");let l=this.mapEditorToService.get(d);if(!l){const a=l=this.instantiationService.createInstance(i,d);this.mapEditorToService.set(d,l),(0,n.once)(d.onDidDispose)(()=>{a.dispose(),this.mapEditorToService.delete(d)})}return l}get quickAccess(){return this.activeService.quickAccess}pick(d,l={},a=k.CancellationToken.None){return this.activeService.pick(d,l,a)}createQuickPick(){return this.activeService.createQuickPick()}};t=Ie([pe(0,D.IInstantiationService),pe(1,h.ICodeEditorService)],t),e.StandaloneQuickInputService=t;class o{constructor(l){this.editor=l,this.widget=new s(this.editor)}static get(l){return l.getContribution(o.ID)}dispose(){this.widget.dispose()}}e.QuickInputEditorContribution=o,o.ID="editor.controller.quickInput";class s{constructor(l){this.codeEditor=l,this.domNode=document.createElement("div"),this.codeEditor.addOverlayWidget(this)}getId(){return s.ID}getDomNode(){return this.domNode}getPosition(){return{preference:2}}dispose(){this.codeEditor.removeOverlayWidget(this)}}e.QuickInputEditorWidget=s,s.ID="editor.contrib.quickInputWidget",(0,y.registerEditorContribution)(o.ID,o)}),define(oe[730],se([1,0,27,81,25,15]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SeverityIcon=void 0;var w;(function(b){function C(h){switch(h){case v.default.Ignore:return"severity-ignore "+y.Codicon.info.classNames;case v.default.Info:return y.Codicon.info.classNames;case v.default.Warning:return y.Codicon.warning.classNames;case v.default.Error:return y.Codicon.error.classNames;default:return""}}b.className=C})(w=e.SeverityIcon||(e.SeverityIcon={})),(0,D.registerThemingParticipant)((b,C)=>{const h=b.getColor(k.problemsErrorIconForeground);if(h){const i=y.Codicon.error.cssSelector;C.addRule(` .monaco-editor .zone-widget ${i}, .markers-panel .marker-icon${i}, .text-search-provider-messages .providerMessage ${i}, .extensions-viewlet > .extensions ${i} { color: ${h}; } `)}const u=b.getColor(k.problemsWarningIconForeground);if(u){const i=y.Codicon.warning.cssSelector;C.addRule(` .monaco-editor .zone-widget ${i}, .markers-panel .marker-icon${i}, .extensions-viewlet > .extensions ${i}, .extension-editor ${i}, .text-search-provider-messages .providerMessage ${i}, .preferences-editor ${i} { color: ${u}; } `)}const n=b.getColor(k.problemsInfoIconForeground);if(n){const i=y.Codicon.info.cssSelector;C.addRule(` .monaco-editor .zone-widget ${i}, .markers-panel .marker-icon${i}, .extensions-viewlet > .extensions ${i}, .text-search-provider-messages .providerMessage ${i}, .extension-editor ${i} { color: ${n}; } `)}})}),define(oe[80],se([1,0,10,27,6,19,22,621,211,34,15]),function(q,e,y,v,k,D,w,b,C,h,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.spinningLoading=e.syncing=e.gotoNextLocation=e.gotoPreviousLocation=e.widgetClose=e.iconsSchemaId=e.getIconRegistry=e.registerIcon=e.IconFontDefinition=e.IconContribution=e.Extensions=void 0,e.Extensions={IconContribution:"base.contributions.icons"};var n;(function(c){function g(f,_){let p=f.defaults;for(;u.ThemeIcon.isThemeIcon(p);){const m=o.getIcon(p.id);if(!m)return;p=m.defaults}return p}c.getDefinition=g})(n=e.IconContribution||(e.IconContribution={}));var i;(function(c){function g(_){return{weight:_.weight,style:_.style,src:_.src.map(p=>({format:p.format,location:p.location.toString()}))}}c.toJSONObject=g;function f(_){const p=m=>(0,D.isString)(m)?m:void 0;if(_&&Array.isArray(_.src)&&_.src.every(m=>(0,D.isString)(m.format)&&(0,D.isString)(m.location)))return{weight:p(_.weight),style:p(_.style),src:_.src.map(m=>({format:m.format,location:w.URI.parse(m.location)}))}}c.fromJSONObject=f})(i=e.IconFontDefinition||(e.IconFontDefinition={}));class t{constructor(){this._onDidChange=new k.Emitter,this.onDidChange=this._onDidChange.event,this.iconSchema={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:(0,b.localize)(0,null)},fontCharacter:{type:"string",description:(0,b.localize)(1,null)}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.iconReferenceSchema={type:"string",pattern:`^${v.CSSIcon.iconNameExpression}$`,enum:[],enumDescriptions:[]},this.iconsById={},this.iconFontsById={}}registerIcon(g,f,_,p){const m=this.iconsById[g];if(m){if(_&&!m.description){m.description=_,this.iconSchema.properties[g].markdownDescription=`${_} $(${g})`;const L=this.iconReferenceSchema.enum.indexOf(g);L!==-1&&(this.iconReferenceSchema.enumDescriptions[L]=_),this._onDidChange.fire()}return m}const S={id:g,description:_,defaults:f,deprecationMessage:p};this.iconsById[g]=S;const E={$ref:"#/definitions/icons"};return p&&(E.deprecationMessage=p),_&&(E.markdownDescription=`${_}: $(${g})`),this.iconSchema.properties[g]=E,this.iconReferenceSchema.enum.push(g),this.iconReferenceSchema.enumDescriptions.push(_||""),this._onDidChange.fire(),{id:g}}getIcons(){return Object.keys(this.iconsById).map(g=>this.iconsById[g])}getIcon(g){return this.iconsById[g]}getIconSchema(){return this.iconSchema}toString(){const g=(m,S)=>m.id.localeCompare(S.id),f=m=>{for(;u.ThemeIcon.isThemeIcon(m.defaults);)m=this.iconsById[m.defaults.id];return`codicon codicon-${m?m.id:""}`},_=[];_.push("| preview | identifier | default codicon ID | description"),_.push("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");const p=Object.keys(this.iconsById).map(m=>this.iconsById[m]);for(const m of p.filter(S=>!!S.description).sort(g))_.push(`|<i class="${f(m)}"></i>|${m.id}|${u.ThemeIcon.isThemeIcon(m.defaults)?m.defaults.id:m.id}|${m.description||""}|`);_.push("| preview | identifier "),_.push("| ----------- | --------------------------------- |");for(const m of p.filter(S=>!u.ThemeIcon.isThemeIcon(S.defaults)).sort(g))_.push(`|<i class="${f(m)}"></i>|${m.id}|`);return _.join(` `)}}const o=new t;h.Registry.add(e.Extensions.IconContribution,o);function s(c,g,f,_){return o.registerIcon(c,g,f,_)}e.registerIcon=s;function d(){return o}e.getIconRegistry=d;function l(){for(const c of v.Codicon.getAll())o.registerIcon(c.id,c.definition,c.description)}l(),e.iconsSchemaId="vscode://schemas/icons";const a=h.Registry.as(C.Extensions.JSONContribution);a.registerSchema(e.iconsSchemaId,o.getIconSchema());const r=new y.RunOnceScheduler(()=>a.notifySchemaChanged(e.iconsSchemaId),200);o.onDidChange(()=>{r.isScheduled()||r.schedule()}),e.widgetClose=s("widget-close",v.Codicon.close,(0,b.localize)(2,null)),e.gotoPreviousLocation=s("goto-previous-location",v.Codicon.arrowUp,(0,b.localize)(3,null)),e.gotoNextLocation=s("goto-next-location",v.Codicon.arrowDown,(0,b.localize)(4,null)),e.syncing=u.ThemeIcon.modify(v.Codicon.sync,"spin"),e.spinningLoading=u.ThemeIcon.modify(v.Codicon.loading,"spin")}),define(oe[731],se([1,0,527,7,33,83,75,42,2,65,12,29,36,82,11,54,114,74,16,25,15,27,80,37,369]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r,c,g,f,_){"use strict";var p;Object.defineProperty(e,"__esModule",{value:!0}),e.DiffReview=void 0;const m=3;class S{constructor(P,A,B,K){this.originalLineStart=P,this.originalLineEnd=A,this.modifiedLineStart=B,this.modifiedLineEnd=K}getType(){return this.originalLineStart===0?1:this.modifiedLineStart===0?2:0}}class E{constructor(P){this.entries=P}}const L=(0,f.registerIcon)("diff-review-insert",g.Codicon.add,y.localize(0,null)),N=(0,f.registerIcon)("diff-review-remove",g.Codicon.remove,y.localize(1,null)),I=(0,f.registerIcon)("diff-review-close",g.Codicon.close,y.localize(2,null));let R=class Yt extends C.Disposable{constructor(P,A){super(),this._languageService=A,this._width=0,this._diffEditor=P,this._isVisible=!1,this.shadow=(0,k.createFastDomNode)(document.createElement("div")),this.shadow.setClassName("diff-review-shadow"),this.actionBarContainer=(0,k.createFastDomNode)(document.createElement("div")),this.actionBarContainer.setClassName("diff-review-actions"),this._actionBar=this._register(new D.ActionBar(this.actionBarContainer.domNode)),this._actionBar.push(new b.Action("diffreview.close",y.localize(3,null),"close-diff-review "+c.ThemeIcon.asClassName(I),!0,()=>be(this,void 0,void 0,function*(){return this.hide()})),{label:!1,icon:!0}),this.domNode=(0,k.createFastDomNode)(document.createElement("div")),this.domNode.setClassName("diff-review monaco-editor-background"),this._content=(0,k.createFastDomNode)(document.createElement("div")),this._content.setClassName("diff-review-content"),this._content.setAttribute("role","code"),this.scrollbar=this._register(new w.DomScrollableElement(this._content.domNode,{})),this.domNode.domNode.appendChild(this.scrollbar.getDomNode()),this._register(P.onDidUpdateDiff(()=>{!this._isVisible||(this._diffs=this._compute(),this._render())})),this._register(P.getModifiedEditor().onDidChangeCursorPosition(()=>{!this._isVisible||this._render()})),this._register(v.addStandardDisposableListener(this.domNode.domNode,"click",B=>{B.preventDefault();const K=v.findParentWithClass(B.target,"diff-review-row");K&&this._goToRow(K)})),this._register(v.addStandardDisposableListener(this.domNode.domNode,"keydown",B=>{(B.equals(18)||B.equals(2066)||B.equals(530))&&(B.preventDefault(),this._goToRow(this._getNextRow())),(B.equals(16)||B.equals(2064)||B.equals(528))&&(B.preventDefault(),this._goToRow(this._getPrevRow())),(B.equals(9)||B.equals(2057)||B.equals(521)||B.equals(1033))&&(B.preventDefault(),this.hide()),(B.equals(10)||B.equals(3))&&(B.preventDefault(),this.accept())})),this._diffs=[],this._currentDiff=null}prev(){let P=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){let B=-1;for(let K=0,T=this._diffs.length;K<T;K++)if(this._diffs[K]===this._currentDiff){B=K;break}P=this._diffs.length+B-1}else P=this._findDiffIndex(this._diffEditor.getPosition());if(this._diffs.length===0)return;P=P%this._diffs.length;const A=this._diffs[P].entries;this._diffEditor.setPosition(new o.Position(A[0].modifiedLineStart,1)),this._diffEditor.setSelection({startColumn:1,startLineNumber:A[0].modifiedLineStart,endColumn:1073741824,endLineNumber:A[A.length-1].modifiedLineEnd}),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow())}next(){let P=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){let B=-1;for(let K=0,T=this._diffs.length;K<T;K++)if(this._diffs[K]===this._currentDiff){B=K;break}P=B+1}else P=this._findDiffIndex(this._diffEditor.getPosition());if(this._diffs.length===0)return;P=P%this._diffs.length;const A=this._diffs[P].entries;this._diffEditor.setPosition(new o.Position(A[0].modifiedLineStart,1)),this._diffEditor.setSelection({startColumn:1,startLineNumber:A[0].modifiedLineStart,endColumn:1073741824,endLineNumber:A[A.length-1].modifiedLineEnd}),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow())}accept(){let P=-1;const A=this._getCurrentFocusedRow();if(A){const B=parseInt(A.getAttribute("data-line"),10);isNaN(B)||(P=B)}this.hide(),P!==-1&&(this._diffEditor.setPosition(new o.Position(P,1)),this._diffEditor.revealPosition(new o.Position(P,1),1))}hide(){this._isVisible=!1,this._diffEditor.updateOptions({readOnly:!1}),this._diffEditor.focus(),this._diffEditor.doLayout(),this._render()}_getPrevRow(){const P=this._getCurrentFocusedRow();return P?P.previousElementSibling?P.previousElementSibling:P:this._getFirstRow()}_getNextRow(){const P=this._getCurrentFocusedRow();return P?P.nextElementSibling?P.nextElementSibling:P:this._getFirstRow()}_getFirstRow(){return this.domNode.domNode.querySelector(".diff-review-row")}_getCurrentFocusedRow(){const P=document.activeElement;return P&&/diff-review-row/.test(P.className)?P:null}_goToRow(P){const A=this._getCurrentFocusedRow();P.tabIndex=0,P.focus(),A&&A!==P&&(A.tabIndex=-1),this.scrollbar.scanDomNode()}isVisible(){return this._isVisible}layout(P,A,B){this._width=A,this.shadow.setTop(P-6),this.shadow.setWidth(A),this.shadow.setHeight(this._isVisible?6:0),this.domNode.setTop(P),this.domNode.setWidth(A),this.domNode.setHeight(B),this._content.setHeight(B),this._content.setWidth(A),this._isVisible?(this.actionBarContainer.setAttribute("aria-hidden","false"),this.actionBarContainer.setDisplay("block")):(this.actionBarContainer.setAttribute("aria-hidden","true"),this.actionBarContainer.setDisplay("none"))}_compute(){const P=this._diffEditor.getLineChanges();if(!P||P.length===0)return[];const A=this._diffEditor.getOriginalEditor().getModel(),B=this._diffEditor.getModifiedEditor().getModel();return!A||!B?[]:Yt._mergeAdjacent(P,A.getLineCount(),B.getLineCount())}static _mergeAdjacent(P,A,B){if(!P||P.length===0)return[];const K=[];let T=0;for(let j=0,G=P.length;j<G;j++){const te=P[j],Z=te.originalStartLineNumber,X=te.originalEndLineNumber,ie=te.modifiedStartLineNumber,H=te.modifiedEndLineNumber,ae=[];let Y=0;{const U=X===0?Z:Z-1,le=H===0?ie:ie-1;let z=1,Q=1;if(j>0){const ne=P[j-1];ne.originalEndLineNumber===0?z=ne.originalStartLineNumber+1:z=ne.originalEndLineNumber+1,ne.modifiedEndLineNumber===0?Q=ne.modifiedStartLineNumber+1:Q=ne.modifiedEndLineNumber+1}let W=U-m+1,V=le-m+1;if(W<z){const ne=z-W;W=W+ne,V=V+ne}if(V<Q){const ne=Q-V;W=W+ne,V=V+ne}ae[Y++]=new S(W,U,V,le)}X!==0&&(ae[Y++]=new S(Z,X,0,0)),H!==0&&(ae[Y++]=new S(0,0,ie,H));{const U=X===0?Z+1:X+1,le=H===0?ie+1:H+1;let z=A,Q=B;if(j+1<G){const ne=P[j+1];ne.originalEndLineNumber===0?z=ne.originalStartLineNumber:z=ne.originalStartLineNumber-1,ne.modifiedEndLineNumber===0?Q=ne.modifiedStartLineNumber:Q=ne.modifiedStartLineNumber-1}let W=U+m-1,V=le+m-1;if(W>z){const ne=z-W;W=W+ne,V=V+ne}if(V>Q){const ne=Q-V;W=W+ne,V=V+ne}ae[Y++]=new S(U,W,le,V)}K[T++]=new E(ae)}let ee=K[0].entries;const J=[];let $=0;for(let j=1,G=K.length;j<G;j++){const te=K[j].entries,Z=ee[ee.length-1],X=te[0];if(Z.getType()===0&&X.getType()===0&&X.originalLineStart<=Z.originalLineEnd){ee[ee.length-1]=new S(Z.originalLineStart,X.originalLineEnd,Z.modifiedLineStart,X.modifiedLineEnd),ee=ee.concat(te.slice(1));continue}J[$++]=new E(ee),ee=te}return J[$++]=new E(ee),J}_findDiffIndex(P){const A=P.lineNumber;for(let B=0,K=this._diffs.length;B<K;B++){const T=this._diffs[B].entries,ee=T[T.length-1].modifiedLineEnd;if(A<=ee)return B}return 0}_render(){const P=this._diffEditor.getOriginalEditor().getOptions(),A=this._diffEditor.getModifiedEditor().getOptions(),B=this._diffEditor.getOriginalEditor().getModel(),K=this._diffEditor.getModifiedEditor().getModel(),T=B.getOptions(),ee=K.getOptions();if(!this._isVisible||!B||!K){v.clearNode(this._content.domNode),this._currentDiff=null,this.scrollbar.scanDomNode();return}this._diffEditor.updateOptions({readOnly:!0});const J=this._findDiffIndex(this._diffEditor.getPosition());if(this._diffs[J]===this._currentDiff)return;this._currentDiff=this._diffs[J];const $=this._diffs[J].entries,j=document.createElement("div");j.className="diff-review-table",j.setAttribute("role","list"),j.setAttribute("aria-label",'Difference review. Use "Stage | Unstage | Revert Selected Ranges" commands'),(0,h.applyFontInfo)(j,A.get(46));let G=0,te=0,Z=0,X=0;for(let V=0,ne=$.length;V<ne;V++){const de=$[V],ce=de.originalLineStart,ue=de.originalLineEnd,me=de.modifiedLineStart,_e=de.modifiedLineEnd;ce!==0&&(G===0||ce<G)&&(G=ce),ue!==0&&(te===0||ue>te)&&(te=ue),me!==0&&(Z===0||me<Z)&&(Z=me),_e!==0&&(X===0||_e>X)&&(X=_e)}const ie=document.createElement("div");ie.className="diff-review-row";const H=document.createElement("div");H.className="diff-review-cell diff-review-summary";const ae=te-G+1,Y=X-Z+1;H.appendChild(document.createTextNode(`${J+1}/${this._diffs.length}: @@ -${G},${ae} +${Z},${Y} @@`)),ie.setAttribute("data-line",String(Z));const U=V=>V===0?y.localize(4,null):V===1?y.localize(5,null):y.localize(6,null,V),le=U(ae),z=U(Y);ie.setAttribute("aria-label",y.localize(7,null,J+1,this._diffs.length,G,le,Z,z)),ie.appendChild(H),ie.setAttribute("role","listitem"),j.appendChild(ie);const Q=A.get(61);let W=Z;for(let V=0,ne=$.length;V<ne;V++){const de=$[V];Yt._renderSection(j,de,W,Q,this._width,P,B,T,A,K,ee,this._languageService.languageIdCodec),de.modifiedLineStart!==0&&(W=de.modifiedLineEnd)}v.clearNode(this._content.domNode),this._content.domNode.appendChild(j),this.scrollbar.scanDomNode()}static _renderSection(P,A,B,K,T,ee,J,$,j,G,te,Z){const X=A.getType();let ie="diff-review-row",H="";const ae="diff-review-spacer";let Y=null;switch(X){case 1:ie="diff-review-row line-insert",H=" char-insert",Y=L;break;case 2:ie="diff-review-row line-delete",H=" char-delete",Y=N;break}const U=A.originalLineStart,le=A.originalLineEnd,z=A.modifiedLineStart,Q=A.modifiedLineEnd,W=Math.max(Q-z,le-U),V=ee.get(133),ne=V.glyphMarginWidth+V.lineNumbersWidth,de=j.get(133),ce=10+de.glyphMarginWidth+de.lineNumbersWidth;for(let ue=0;ue<=W;ue++){const me=U===0?0:U+ue,_e=z===0?0:z+ue,ye=document.createElement("div");ye.style.minWidth=T+"px",ye.className=ie,ye.setAttribute("role","listitem"),_e!==0&&(B=_e),ye.setAttribute("data-line",String(B));const ke=document.createElement("div");ke.className="diff-review-cell",ke.style.height=`${K}px`,ye.appendChild(ke);const Te=document.createElement("span");Te.style.width=ne+"px",Te.style.minWidth=ne+"px",Te.className="diff-review-line-number"+H,me!==0?Te.appendChild(document.createTextNode(String(me))):Te.innerText="\xA0",ke.appendChild(Te);const Me=document.createElement("span");Me.style.width=ce+"px",Me.style.minWidth=ce+"px",Me.style.paddingRight="10px",Me.className="diff-review-line-number"+H,_e!==0?Me.appendChild(document.createTextNode(String(_e))):Me.innerText="\xA0",ke.appendChild(Me);const fe=document.createElement("span");if(fe.className=ae,Y){const ge=document.createElement("span");ge.className=c.ThemeIcon.asClassName(Y),ge.innerText="\xA0\xA0",fe.appendChild(ge)}else fe.innerText="\xA0\xA0";ke.appendChild(fe);let he;if(_e!==0){let ge=this._renderLine(G,j,te.tabSize,_e,Z);Yt._ttPolicy&&(ge=Yt._ttPolicy.createHTML(ge)),ke.insertAdjacentHTML("beforeend",ge),he=G.getLineContent(_e)}else{let ge=this._renderLine(J,ee,$.tabSize,me,Z);Yt._ttPolicy&&(ge=Yt._ttPolicy.createHTML(ge)),ke.insertAdjacentHTML("beforeend",ge),he=J.getLineContent(me)}he.length===0&&(he=y.localize(8,null));let re="";switch(X){case 0:me===_e?re=y.localize(9,null,he,me):re=y.localize(10,null,he,me,_e);break;case 1:re=y.localize(11,null,he,_e);break;case 2:re=y.localize(12,null,he,me);break}ye.setAttribute("aria-label",re),P.appendChild(ye)}}static _renderLine(P,A,B,K,T){const ee=P.getLineContent(K),J=A.get(46),$=t.LineTokens.createEmpty(ee,T),j=l.ViewLineRenderingData.isBasicASCII(ee,P.mightContainNonBasicASCII()),G=l.ViewLineRenderingData.containsRTL(ee,j,P.mightContainRTL());return(0,d.renderViewLine2)(new d.RenderLineInput(J.isMonospace&&!A.get(29),J.canUseHalfwidthRightwardsArrow,ee,!1,j,G,0,$,[],B,0,J.spaceWidth,J.middotWidth,J.wsmiddotWidth,A.get(107),A.get(90),A.get(85),A.get(47)!==i.EditorFontLigatures.OFF,null)).html}};R._ttPolicy=(p=window.trustedTypes)===null||p===void 0?void 0:p.createPolicy("diffReview",{createHTML:M=>M}),R=Ie([pe(1,_.ILanguageService)],R),e.DiffReview=R,(0,c.registerThemingParticipant)((M,P)=>{const A=M.getColor(s.editorLineNumbers);A&&P.addRule(`.monaco-diff-editor .diff-review-line-number { color: ${A}; }`);const B=M.getColor(r.scrollbarShadow);B&&P.addRule(`.monaco-diff-editor .diff-review-shadow { box-shadow: ${B} 0 -6px 6px -6px inset; }`)});class F extends u.EditorAction{constructor(){super({id:"editor.action.diffReview.next",label:y.localize(13,null),alias:"Go to Next Difference",precondition:a.ContextKeyExpr.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})}run(P,A){const B=x(P);B&&B.diffReviewNext()}}class O extends u.EditorAction{constructor(){super({id:"editor.action.diffReview.prev",label:y.localize(14,null),alias:"Go to Previous Difference",precondition:a.ContextKeyExpr.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1089,weight:100}})}run(P,A){const B=x(P);B&&B.diffReviewPrev()}}function x(M){const P=M.get(n.ICodeEditorService),A=P.listDiffEditors(),B=P.getActiveCodeEditor();if(!B)return null;for(let K=0,T=A.length;K<T;K++){const ee=A[K];if(ee.getModifiedEditor().getId()===B.getId()||ee.getOriginalEditor().getId()===B.getId())return ee}return null}(0,u.registerEditorAction)(F),(0,u.registerEditorAction)(O)}),define(oe[732],se([1,0,7,49,75,27,6,2,8,19,37,20,117,631,210,586,16,45,25,80,56,15,386]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r,c,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.editorHoverWidgetHighlightForeground=e.ParameterHintsWidget=void 0;const f=y.$,_=(0,r.registerIcon)("parameter-hints-next",D.Codicon.chevronDown,s.localize(0,null)),p=(0,r.registerIcon)("parameter-hints-previous",D.Codicon.chevronUp,s.localize(1,null));let m=class Yi extends b.Disposable{constructor(E,L,N,I,R){super(),this.editor=E,this.renderDisposeables=this._register(new b.DisposableStore),this.visible=!1,this.announcedLabel=null,this.allowEditorOverflow=!0,this.markdownRenderer=this._register(new i.MarkdownRenderer({editor:E},I,N)),this.model=this._register(new t.ParameterHintsModel(E,R.signatureHelpProvider)),this.keyVisible=o.Context.Visible.bindTo(L),this.keyMultipleSignatures=o.Context.MultipleSignatures.bindTo(L),this._register(this.model.onChangedHints(F=>{F?(this.show(),this.render(F)):this.hide()}))}createParameterHintDOMNodes(){const E=f(".editor-widget.parameter-hints-widget"),L=y.append(E,f(".phwrapper"));L.tabIndex=-1;const N=y.append(L,f(".controls")),I=y.append(N,f(".button"+g.ThemeIcon.asCSSSelector(p))),R=y.append(N,f(".overloads")),F=y.append(N,f(".button"+g.ThemeIcon.asCSSSelector(_)));this._register(y.addDisposableListener(I,"click",B=>{y.EventHelper.stop(B),this.previous()})),this._register(y.addDisposableListener(F,"click",B=>{y.EventHelper.stop(B),this.next()}));const O=f(".body"),x=new k.DomScrollableElement(O,{alwaysConsumeMouseWheel:!0});this._register(x),L.appendChild(x.getDomNode());const M=y.append(O,f(".signature")),P=y.append(O,f(".docs"));E.style.userSelect="text",this.domNodes={element:E,signature:M,overloads:R,docs:P,scrollbar:x},this.editor.addContentWidget(this),this.hide(),this._register(this.editor.onDidChangeCursorSelection(B=>{this.visible&&this.editor.layoutContentWidget(this)}));const A=()=>{if(!this.domNodes)return;const B=this.editor.getOption(46);this.domNodes.element.style.fontSize=`${B.fontSize}px`,this.domNodes.element.style.lineHeight=`${B.lineHeight/B.fontSize}`};A(),this._register(w.Event.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(B=>B.hasChanged(46)).on(A,null)),this._register(this.editor.onDidLayoutChange(B=>this.updateMaxHeight())),this.updateMaxHeight()}show(){this.visible||(this.domNodes||this.createParameterHintDOMNodes(),this.keyVisible.set(!0),this.visible=!0,setTimeout(()=>{var E;(E=this.domNodes)===null||E===void 0||E.element.classList.add("visible")},100),this.editor.layoutContentWidget(this))}hide(){var E;this.renderDisposeables.clear(),this.visible&&(this.keyVisible.reset(),this.visible=!1,this.announcedLabel=null,(E=this.domNodes)===null||E===void 0||E.element.classList.remove("visible"),this.editor.layoutContentWidget(this))}getPosition(){return this.visible?{position:this.editor.getPosition(),preference:[1,2]}:null}render(E){var L;if(this.renderDisposeables.clear(),!this.domNodes)return;const N=E.signatures.length>1;this.domNodes.element.classList.toggle("multiple",N),this.keyMultipleSignatures.set(N),this.domNodes.signature.innerText="",this.domNodes.docs.innerText="";const I=E.signatures[E.activeSignature];if(!I)return;const R=y.append(this.domNodes.signature,f(".code")),F=this.editor.getOption(46);R.style.fontSize=`${F.fontSize}px`,R.style.fontFamily=F.fontFamily;const O=I.parameters.length>0,x=(L=I.activeParameter)!==null&&L!==void 0?L:E.activeParameter;if(O)this.renderParameters(R,I,x);else{const A=y.append(R,f("span"));A.textContent=I.label}const M=I.parameters[x];if(M?.documentation){const A=f("span.documentation");if(typeof M.documentation=="string")A.textContent=M.documentation;else{const B=this.renderMarkdownDocs(M.documentation);A.appendChild(B.element)}y.append(this.domNodes.docs,f("p",{},A))}if(I.documentation!==void 0)if(typeof I.documentation=="string")y.append(this.domNodes.docs,f("p",{},I.documentation));else{const A=this.renderMarkdownDocs(I.documentation);y.append(this.domNodes.docs,A.element)}const P=this.hasDocs(I,M);if(this.domNodes.signature.classList.toggle("has-docs",P),this.domNodes.docs.classList.toggle("empty",!P),this.domNodes.overloads.textContent=String(E.activeSignature+1).padStart(E.signatures.length.toString().length,"0")+"/"+E.signatures.length,M){let A="";const B=I.parameters[x];Array.isArray(B.label)?A=I.label.substring(B.label[0],B.label[1]):A=B.label,B.documentation&&(A+=typeof B.documentation=="string"?`, ${B.documentation}`:`, ${B.documentation.value}`),I.documentation&&(A+=typeof I.documentation=="string"?`, ${I.documentation}`:`, ${I.documentation.value}`),this.announcedLabel!==A&&(v.alert(s.localize(2,null,A)),this.announcedLabel=A)}this.editor.layoutContentWidget(this),this.domNodes.scrollbar.scanDomNode()}renderMarkdownDocs(E){const L=this.renderDisposeables.add(this.markdownRenderer.render(E,{asyncRenderCallback:()=>{var N;(N=this.domNodes)===null||N===void 0||N.scrollbar.scanDomNode()}}));return L.element.classList.add("markdown-docs"),L}hasDocs(E,L){return!!(L&&typeof L.documentation=="string"&&(0,h.assertIsDefined)(L.documentation).length>0||L&&typeof L.documentation=="object"&&(0,h.assertIsDefined)(L.documentation).value.length>0||E.documentation&&typeof E.documentation=="string"&&(0,h.assertIsDefined)(E.documentation).length>0||E.documentation&&typeof E.documentation=="object"&&(0,h.assertIsDefined)(E.documentation.value).length>0)}renderParameters(E,L,N){const[I,R]=this.getParameterLabelOffsets(L,N),F=document.createElement("span");F.textContent=L.label.substring(0,I);const O=document.createElement("span");O.textContent=L.label.substring(I,R),O.className="parameter active";const x=document.createElement("span");x.textContent=L.label.substring(R),y.append(E,F,O,x)}getParameterLabelOffsets(E,L){const N=E.parameters[L];if(N){if(Array.isArray(N.label))return N.label;if(N.label.length){const I=new RegExp(`(\\W|^)${(0,C.escapeRegExpCharacters)(N.label)}(?=\\W|$)`,"g");I.test(E.label);const R=I.lastIndex-N.label.length;return R>=0?[R,I.lastIndex]:[0,0]}else return[0,0]}else return[0,0]}next(){this.editor.focus(),this.model.next()}previous(){this.editor.focus(),this.model.previous()}cancel(){this.model.cancel()}getDomNode(){return this.domNodes||this.createParameterHintDOMNodes(),this.domNodes.element}getId(){return Yi.ID}trigger(E){this.model.trigger(E,0)}updateMaxHeight(){if(!this.domNodes)return;const E=`${Math.max(this.editor.getLayoutInfo().height/4,250)}px`;this.domNodes.element.style.maxHeight=E;const L=this.domNodes.element.getElementsByClassName("phwrapper");L.length&&(L[0].style.maxHeight=E)}};m.ID="editor.widget.parameterHintsWidget",m=Ie([pe(1,d.IContextKeyService),pe(2,l.IOpenerService),pe(3,u.ILanguageService),pe(4,n.ILanguageFeaturesService)],m),e.ParameterHintsWidget=m,e.editorHoverWidgetHighlightForeground=(0,a.registerColor)("editorHoverWidget.highlightForeground",{dark:a.listHighlightForeground,light:a.listHighlightForeground,hcDark:a.listHighlightForeground,hcLight:a.listHighlightForeground},s.localize(3,null)),(0,g.registerThemingParticipant)((S,E)=>{const L=S.getColor(a.editorHoverBorder);if(L){const M=(0,c.isHighContrast)(S.type)?2:1;E.addRule(`.monaco-editor .parameter-hints-widget { border: ${M}px solid ${L}; }`),E.addRule(`.monaco-editor .parameter-hints-widget.multiple .body { border-left: 1px solid ${L.transparent(.5)}; }`),E.addRule(`.monaco-editor .parameter-hints-widget .signature.has-docs { border-bottom: 1px solid ${L.transparent(.5)}; }`)}const N=S.getColor(a.editorHoverBackground);N&&E.addRule(`.monaco-editor .parameter-hints-widget { background-color: ${N}; }`);const I=S.getColor(a.textLinkForeground);I&&E.addRule(`.monaco-editor .parameter-hints-widget a { color: ${I}; }`);const R=S.getColor(a.textLinkActiveForeground);R&&E.addRule(`.monaco-editor .parameter-hints-widget a:hover { color: ${R}; }`);const F=S.getColor(a.editorHoverForeground);F&&E.addRule(`.monaco-editor .parameter-hints-widget { color: ${F}; }`);const O=S.getColor(a.textCodeBlockBackground);O&&E.addRule(`.monaco-editor .parameter-hints-widget code { background-color: ${O}; }`);const x=S.getColor(e.editorHoverWidgetHighlightForeground);x&&E.addRule(`.monaco-editor .parameter-hints-widget .parameter.active { color: ${x}}`)})}),define(oe[733],se([1,0,2,12,24,28,210,585,16,9,732]),function(q,e,y,v,k,D,w,b,C,h,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TriggerParameterHintsAction=void 0;let n=class Ji extends y.Disposable{constructor(d,l){super(),this.editor=d,this.widget=this._register(l.createInstance(u.ParameterHintsWidget,this.editor))}static get(d){return d.getContribution(Ji.ID)}cancel(){this.widget.cancel()}previous(){this.widget.previous()}next(){this.widget.next()}trigger(d){this.widget.trigger(d)}};n.ID="editor.controller.parameterHints",n=Ie([pe(1,h.IInstantiationService)],n);class i extends v.EditorAction{constructor(){super({id:"editor.action.triggerParameterHints",label:b.localize(0,null),alias:"Trigger Parameter Hints",precondition:k.EditorContextKeys.hasSignatureHelpProvider,kbOpts:{kbExpr:k.EditorContextKeys.editorTextFocus,primary:3082,weight:100}})}run(d,l){const a=n.get(l);a&&a.trigger({triggerKind:D.SignatureHelpTriggerKind.Invoke})}}e.TriggerParameterHintsAction=i,(0,v.registerEditorContribution)(n.ID,n),(0,v.registerEditorAction)(i);const t=100+75,o=v.EditorCommand.bindToContribution(n.get);(0,v.registerEditorCommand)(new o({id:"closeParameterHints",precondition:w.Context.Visible,handler:s=>s.cancel(),kbOpts:{weight:t,kbExpr:k.EditorContextKeys.focus,primary:9,secondary:[1033]}})),(0,v.registerEditorCommand)(new o({id:"showPrevParameterHint",precondition:C.ContextKeyExpr.and(w.Context.Visible,w.Context.MultipleSignatures),handler:s=>s.previous(),kbOpts:{weight:t,kbExpr:k.EditorContextKeys.focus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}})),(0,v.registerEditorCommand)(new o({id:"showNextParameterHint",precondition:C.ContextKeyExpr.and(w.Context.Visible,w.Context.MultipleSignatures),handler:s=>s.next(),kbOpts:{weight:t,kbExpr:k.EditorContextKeys.focus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}))}),define(oe[734],se([1,0,7,197,27,6,63,2,22,28,651,50,37,600,280,80,15,292]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l){"use strict";var a;Object.defineProperty(e,"__esModule",{value:!0}),e.ItemRenderer=e.suggestMoreInfoIcon=e.getAriaId=void 0;function r(_){return`suggest-aria-id:${_}`}e.getAriaId=r,e.suggestMoreInfoIcon=(0,s.registerIcon)("suggest-more-info",k.Codicon.chevronRight,t.localize(0,null));const c=new(a=class fi{extract(p,m){if(p.textLabel.match(fi._regexStrict))return m[0]=p.textLabel,!0;if(p.completion.detail&&p.completion.detail.match(fi._regexStrict))return m[0]=p.completion.detail,!0;if(typeof p.completion.documentation=="string"){const S=fi._regexRelaxed.exec(p.completion.documentation);if(S&&(S.index===0||S.index+S[0].length===p.completion.documentation.length))return m[0]=S[0],!0}return!1}},a._regexRelaxed=/(#([\da-fA-F]{3}){1,2}|(rgb|hsl)a\(\s*(\d{1,3}%?\s*,\s*){3}(1|0?\.\d+)\)|(rgb|hsl)\(\s*\d{1,3}%?(\s*,\s*\d{1,3}%?){2}\s*\))/,a._regexStrict=new RegExp(`^${a._regexRelaxed.source}$`,"i"),a);let g=class{constructor(_,p,m,S){this._editor=_,this._modelService=p,this._languageService=m,this._themeService=S,this._onDidToggleDetails=new D.Emitter,this.onDidToggleDetails=this._onDidToggleDetails.event,this.templateId="suggestion"}dispose(){this._onDidToggleDetails.dispose()}renderTemplate(_){const p=Object.create(null);p.disposables=new b.DisposableStore,p.root=_,p.root.classList.add("show-file-icons"),p.icon=(0,y.append)(_,(0,y.$)(".icon")),p.colorspan=(0,y.append)(p.icon,(0,y.$)("span.colorspan"));const m=(0,y.append)(_,(0,y.$)(".contents")),S=(0,y.append)(m,(0,y.$)(".main"));p.iconContainer=(0,y.append)(S,(0,y.$)(".icon-label.codicon")),p.left=(0,y.append)(S,(0,y.$)("span.left")),p.right=(0,y.append)(S,(0,y.$)("span.right")),p.iconLabel=new v.IconLabel(p.left,{supportHighlights:!0,supportIcons:!0}),p.disposables.add(p.iconLabel),p.parametersLabel=(0,y.append)(p.left,(0,y.$)("span.signature-label")),p.qualifierLabel=(0,y.append)(p.left,(0,y.$)("span.qualifier-label")),p.detailsLabel=(0,y.append)(p.right,(0,y.$)("span.details-label")),p.readMore=(0,y.append)(p.right,(0,y.$)("span.readMore"+d.ThemeIcon.asCSSSelector(e.suggestMoreInfoIcon))),p.readMore.title=t.localize(1,null);const E=()=>{const L=this._editor.getOptions(),N=L.get(46),I=N.getMassagedFontFamily(),R=N.fontFeatureSettings,F=L.get(109)||N.fontSize,O=L.get(110)||N.lineHeight,x=N.fontWeight,M=N.letterSpacing,P=`${F}px`,A=`${O}px`,B=`${M}px`;p.root.style.fontSize=P,p.root.style.fontWeight=x,p.root.style.letterSpacing=B,S.style.fontFamily=I,S.style.fontFeatureSettings=R,S.style.lineHeight=A,p.icon.style.height=A,p.icon.style.width=A,p.readMore.style.height=A,p.readMore.style.width=A};return E(),p.disposables.add(this._editor.onDidChangeConfiguration(L=>{(L.hasChanged(46)||L.hasChanged(109)||L.hasChanged(110))&&E()})),p}renderElement(_,p,m){const{completion:S}=_;m.root.id=r(p),m.colorspan.style.backgroundColor="";const E={labelEscapeNewLines:!0,matches:(0,w.createMatches)(_.score)},L=[];if(S.kind===19&&c.extract(_,L))m.icon.className="icon customcolor",m.iconContainer.className="icon hide",m.colorspan.style.backgroundColor=L[0];else if(S.kind===20&&this._themeService.getFileIconTheme().hasFileIcons){m.icon.className="icon hide",m.iconContainer.className="icon hide";const N=(0,u.getIconClasses)(this._modelService,this._languageService,C.URI.from({scheme:"fake",path:_.textLabel}),o.FileKind.FILE),I=(0,u.getIconClasses)(this._modelService,this._languageService,C.URI.from({scheme:"fake",path:S.detail}),o.FileKind.FILE);E.extraClasses=N.length>I.length?N:I}else S.kind===23&&this._themeService.getFileIconTheme().hasFolderIcons?(m.icon.className="icon hide",m.iconContainer.className="icon hide",E.extraClasses=[(0,u.getIconClasses)(this._modelService,this._languageService,C.URI.from({scheme:"fake",path:_.textLabel}),o.FileKind.FOLDER),(0,u.getIconClasses)(this._modelService,this._languageService,C.URI.from({scheme:"fake",path:S.detail}),o.FileKind.FOLDER)].flat()):(m.icon.className="icon hide",m.iconContainer.className="",m.iconContainer.classList.add("suggest-icon",...k.CSSIcon.asClassNameArray(h.CompletionItemKinds.toIcon(S.kind))));S.tags&&S.tags.indexOf(1)>=0&&(E.extraClasses=(E.extraClasses||[]).concat(["deprecated"]),E.matches=[]),m.iconLabel.setLabel(_.textLabel,void 0,E),typeof S.label=="string"?(m.parametersLabel.textContent="",m.detailsLabel.textContent=f(S.detail||""),m.root.classList.add("string-label")):(m.parametersLabel.textContent=f(S.label.detail||""),m.detailsLabel.textContent=f(S.label.description||""),m.root.classList.remove("string-label")),this._editor.getOption(108).showInlineDetails?(0,y.show)(m.detailsLabel):(0,y.hide)(m.detailsLabel),(0,l.canExpandCompletionItem)(_)?(m.right.classList.add("can-expand-details"),(0,y.show)(m.readMore),m.readMore.onmousedown=N=>{N.stopPropagation(),N.preventDefault()},m.readMore.onclick=N=>{N.stopPropagation(),N.preventDefault(),this._onDidToggleDetails.fire()}):(m.right.classList.remove("can-expand-details"),(0,y.hide)(m.readMore),m.readMore.onmousedown=null,m.readMore.onclick=null)}disposeTemplate(_){_.disposables.dispose()}};g=Ie([pe(1,n.IModelService),pe(2,i.ILanguageService),pe(3,d.IThemeService)],g),e.ItemRenderer=g;function f(_){return _.replace(/\r\n|\r|\n/g,"")}}),define(oe[735],se([1,0,7,83,42,2,117,9,727,80,15,391]),function(q,e,y,v,k,D,w,b,C,h,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BannerController=void 0;const n=26;let i=class extends D.Disposable{constructor(o,s){super(),this._editor=o,this.instantiationService=s,this.banner=this._register(this.instantiationService.createInstance(t))}hide(){this._editor.setBanner(null,0),this.banner.clear()}show(o){this.banner.show(Object.assign(Object.assign({},o),{onClose:()=>{var s;this.hide(),(s=o.onClose)===null||s===void 0||s.call(o)}})),this._editor.setBanner(this.banner.element,n)}};i=Ie([pe(1,b.IInstantiationService)],i),e.BannerController=i;let t=class extends D.Disposable{constructor(o){super(),this.instantiationService=o,this.markdownRenderer=this.instantiationService.createInstance(w.MarkdownRenderer,{}),this.element=(0,y.$)("div.editor-banner"),this.element.tabIndex=0}getAriaLabel(o){if(o.ariaLabel)return o.ariaLabel;if(typeof o.message=="string")return o.message}getBannerMessage(o){if(typeof o=="string"){const s=(0,y.$)("span");return s.innerText=o,s}return this.markdownRenderer.render(o).element}clear(){(0,y.clearNode)(this.element)}show(o){(0,y.clearNode)(this.element);const s=this.getAriaLabel(o);s&&this.element.setAttribute("aria-label",s);const d=(0,y.append)(this.element,(0,y.$)("div.icon-container"));d.setAttribute("aria-hidden","true"),o.icon&&d.appendChild((0,y.$)(`div${u.ThemeIcon.asCSSSelector(o.icon)}`));const l=(0,y.append)(this.element,(0,y.$)("div.message-container"));if(l.setAttribute("aria-hidden","true"),l.appendChild(this.getBannerMessage(o.message)),this.messageActionsContainer=(0,y.append)(this.element,(0,y.$)("div.message-actions-container")),o.actions)for(const r of o.actions)this._register(this.instantiationService.createInstance(C.Link,this.messageActionsContainer,Object.assign(Object.assign({},r),{tabIndex:-1}),{}));const a=(0,y.append)(this.element,(0,y.$)("div.action-container"));this.actionBar=this._register(new v.ActionBar(a)),this.actionBar.push(this._register(new k.Action("banner.close","Close Banner",u.ThemeIcon.asClassName(h.widgetClose),!0,()=>{typeof o.onClose=="function"&&o.onClose()})),{icon:!0,label:!1}),this.actionBar.setFocusable(!1)}};t=Ie([pe(0,b.IInstantiationService)],t)}),define(oe[736],se([1,0,7,6,80,15]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UnthemedProductIconTheme=e.getIconsStyleSheet=void 0;function w(C){const h=new v.Emitter,u=(0,k.getIconRegistry)();return u.onDidChange(()=>h.fire()),C?.onDidProductIconThemeChange(()=>h.fire()),{onDidChange:h.event,getCSS(){const n=C?C.getProductIconTheme():new b,i={},t=s=>{const d=n.getIcon(s);if(!d)return;const l=d.font;return l?(i[l.id]=l.definition,`.codicon-${s.id}:before { content: '${d.fontCharacter}'; font-family: ${(0,y.asCSSPropertyValue)(l.id)}; }`):`.codicon-${s.id}:before { content: '${d.fontCharacter}'; }`},o=[];for(const s of u.getIcons()){const d=t(s);d&&o.push(d)}for(const s in i){const d=i[s],l=d.weight?`font-weight: ${d.weight};`:"",a=d.style?`font-style: ${d.style};`:"",r=d.src.map(c=>`${(0,y.asCSSUrl)(c.location)} format('${c.format}')`).join(", ");o.push(`@font-face { src: ${r}; font-family: ${(0,y.asCSSPropertyValue)(s)};${l}${a} font-display: block; }`)}return o.join(` `)}}}e.getIconsStyleSheet=w;class b{getIcon(h){const u=(0,k.getIconRegistry)();let n=h.defaults;for(;D.ThemeIcon.isThemeIcon(n);){const i=u.getIcon(n.id);if(!i)return;n=i.defaults}return n}}e.UnthemedProductIconTheme=b}),define(oe[309],se([1,0,7,41,31,6,28,109,420,689,34,25,15,2,56,736]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StandaloneThemeService=e.HC_LIGHT_THEME_NAME=e.HC_BLACK_THEME_NAME=e.VS_DARK_THEME_NAME=e.VS_LIGHT_THEME_NAME=void 0,e.VS_LIGHT_THEME_NAME="vs",e.VS_DARK_THEME_NAME="vs-dark",e.HC_BLACK_THEME_NAME="hc-black",e.HC_LIGHT_THEME_NAME="hc-light";const d=u.Registry.as(n.Extensions.ColorContribution),l=u.Registry.as(i.Extensions.ThemingContribution);class a{constructor(p,m){this.semanticHighlighting=!1,this.themeData=m;const S=m.base;p.length>0?(r(p)?this.id=p:this.id=S+" "+p,this.themeName=p):(this.id=S,this.themeName=S),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}get base(){return this.themeData.base}notifyBaseUpdated(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)}getColors(){if(!this.colors){const p=new Map;for(const m in this.themeData.colors)p.set(m,k.Color.fromHex(this.themeData.colors[m]));if(this.themeData.inherit){const m=c(this.themeData.base);for(const S in m.colors)p.has(S)||p.set(S,k.Color.fromHex(m.colors[S]))}this.colors=p}return this.colors}getColor(p,m){const S=this.getColors().get(p);if(S)return S;if(m!==!1)return this.getDefault(p)}getDefault(p){let m=this.defaultColors[p];return m||(m=d.resolveDefaultColor(p,this),this.defaultColors[p]=m,m)}defines(p){return Object.prototype.hasOwnProperty.call(this.getColors(),p)}get type(){switch(this.base){case e.VS_LIGHT_THEME_NAME:return o.ColorScheme.LIGHT;case e.HC_BLACK_THEME_NAME:return o.ColorScheme.HIGH_CONTRAST_DARK;case e.HC_LIGHT_THEME_NAME:return o.ColorScheme.HIGH_CONTRAST_LIGHT;default:return o.ColorScheme.DARK}}get tokenTheme(){if(!this._tokenTheme){let p=[],m=[];if(this.themeData.inherit){const L=c(this.themeData.base);p=L.rules,L.encodedTokensColors&&(m=L.encodedTokensColors)}const S=this.themeData.colors["editor.foreground"],E=this.themeData.colors["editor.background"];if(S||E){const L={token:""};S&&(L.foreground=S),E&&(L.background=E),p.push(L)}p=p.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(m=this.themeData.encodedTokensColors),this._tokenTheme=C.TokenTheme.createFromRawTokenTheme(p,m)}return this._tokenTheme}getTokenStyleMetadata(p,m,S){const E=this.tokenTheme._match([p].concat(m).join(".")).metadata,L=b.TokenMetadata.getForeground(E),N=b.TokenMetadata.getFontStyle(E);return{foreground:L,italic:!!(N&1),bold:!!(N&2),underline:!!(N&4),strikethrough:!!(N&8)}}}function r(_){return _===e.VS_LIGHT_THEME_NAME||_===e.VS_DARK_THEME_NAME||_===e.HC_BLACK_THEME_NAME||_===e.HC_LIGHT_THEME_NAME}function c(_){switch(_){case e.VS_LIGHT_THEME_NAME:return h.vs;case e.VS_DARK_THEME_NAME:return h.vs_dark;case e.HC_BLACK_THEME_NAME:return h.hc_black;case e.HC_LIGHT_THEME_NAME:return h.hc_light}}function g(_){const p=c(_);return new a(_,p)}class f extends t.Disposable{constructor(){super(),this._onColorThemeChange=this._register(new D.Emitter),this.onDidColorThemeChange=this._onColorThemeChange.event,this._onProductIconThemeChange=this._register(new D.Emitter),this.onDidProductIconThemeChange=this._onProductIconThemeChange.event,this._environment=Object.create(null),this._builtInProductIconTheme=new s.UnthemedProductIconTheme,this._autoDetectHighContrast=!0,this._knownThemes=new Map,this._knownThemes.set(e.VS_LIGHT_THEME_NAME,g(e.VS_LIGHT_THEME_NAME)),this._knownThemes.set(e.VS_DARK_THEME_NAME,g(e.VS_DARK_THEME_NAME)),this._knownThemes.set(e.HC_BLACK_THEME_NAME,g(e.HC_BLACK_THEME_NAME)),this._knownThemes.set(e.HC_LIGHT_THEME_NAME,g(e.HC_LIGHT_THEME_NAME));const p=(0,s.getIconsStyleSheet)(this);this._codiconCSS=p.getCSS(),this._themeCSS="",this._allCSS=`${this._codiconCSS} ${this._themeCSS}`,this._globalStyleElement=null,this._styleElements=[],this._colorMapOverride=null,this.setTheme(e.VS_LIGHT_THEME_NAME),this._onOSSchemeChanged(),p.onDidChange(()=>{this._codiconCSS=p.getCSS(),this._updateCSS()}),(0,v.addMatchMediaChangeListener)("(forced-colors: active)",()=>{this._onOSSchemeChanged()})}registerEditorContainer(p){return y.isInShadowDOM(p)?this._registerShadowDomContainer(p):this._registerRegularEditorContainer()}_registerRegularEditorContainer(){return this._globalStyleElement||(this._globalStyleElement=y.createStyleSheet(),this._globalStyleElement.className="monaco-colors",this._globalStyleElement.textContent=this._allCSS,this._styleElements.push(this._globalStyleElement)),t.Disposable.None}_registerShadowDomContainer(p){const m=y.createStyleSheet(p);return m.className="monaco-colors",m.textContent=this._allCSS,this._styleElements.push(m),{dispose:()=>{for(let S=0;S<this._styleElements.length;S++)if(this._styleElements[S]===m){this._styleElements.splice(S,1);return}}}}defineTheme(p,m){if(!/^[a-z0-9\-]+$/i.test(p))throw new Error("Illegal theme name!");if(!r(m.base)&&!r(p))throw new Error("Illegal theme base!");this._knownThemes.set(p,new a(p,m)),r(p)&&this._knownThemes.forEach(S=>{S.base===p&&S.notifyBaseUpdated()}),this._theme.themeName===p&&this.setTheme(p)}getColorTheme(){return this._theme}setColorMapOverride(p){this._colorMapOverride=p,this._updateThemeOrColorMap()}setTheme(p){let m;this._knownThemes.has(p)?m=this._knownThemes.get(p):m=this._knownThemes.get(e.VS_LIGHT_THEME_NAME),this._updateActualTheme(m)}_updateActualTheme(p){!p||this._theme===p||(this._theme=p,this._updateThemeOrColorMap())}_onOSSchemeChanged(){if(this._autoDetectHighContrast){const p=window.matchMedia("(forced-colors: active)").matches;if(p!==(0,o.isHighContrast)(this._theme.type)){let m;(0,o.isDark)(this._theme.type)?m=p?e.HC_BLACK_THEME_NAME:e.VS_DARK_THEME_NAME:m=p?e.HC_LIGHT_THEME_NAME:e.VS_LIGHT_THEME_NAME,this._updateActualTheme(this._knownThemes.get(m))}}}setAutoDetectHighContrast(p){this._autoDetectHighContrast=p,this._onOSSchemeChanged()}_updateThemeOrColorMap(){const p=[],m={},S={addRule:N=>{m[N]||(p.push(N),m[N]=!0)}};l.getThemingParticipants().forEach(N=>N(this._theme,S,this._environment));const E=[];for(const N of d.getColors()){const I=this._theme.getColor(N.id,!0);I&&E.push(`${(0,n.asCssVariableName)(N.id)}: ${I.toString()};`)}S.addRule(`.monaco-editor { ${E.join(` `)} }`);const L=this._colorMapOverride||this._theme.tokenTheme.getColorMap();S.addRule((0,C.generateTokensCSSForColorMap)(L)),this._themeCSS=p.join(` `),this._updateCSS(),w.TokenizationRegistry.setColorMap(L),this._onColorThemeChange.fire(this._theme)}_updateCSS(){this._allCSS=`${this._codiconCSS} ${this._themeCSS}`,this._styleElements.forEach(p=>p.textContent=this._allCSS)}getFileIconTheme(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}}getProductIconTheme(){return this._builtInProductIconTheme}}e.StandaloneThemeService=f}),define(oe[737],se([1,0,12,115,76,56,309]),function(q,e,y,v,k,D,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class b extends y.EditorAction{constructor(){super({id:"editor.action.toggleHighContrast",label:k.ToggleHighContrastNLS.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}),this._originalThemeName=null}run(h,u){const n=h.get(v.IStandaloneThemeService),i=n.getColorTheme();(0,D.isHighContrast)(i.type)?(n.setTheme(this._originalThemeName||((0,D.isDark)(i.type)?w.VS_DARK_THEME_NAME:w.VS_LIGHT_THEME_NAME)),this._originalThemeName=null):(n.setTheme((0,D.isDark)(i.type)?w.HC_BLACK_THEME_NAME:w.HC_LIGHT_THEME_NAME),this._originalThemeName=i.themeName)}}(0,y.registerEditorAction)(b)}),define(oe[172],se([1,0,9]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UndoRedoSource=e.UndoRedoGroup=e.ResourceEditStackSnapshot=e.IUndoRedoService=void 0,e.IUndoRedoService=(0,y.createDecorator)("undoRedoService");class v{constructor(b,C){this.resource=b,this.elements=C}}e.ResourceEditStackSnapshot=v;class k{constructor(){this.id=k._ID++,this.order=1}nextOrder(){return this.id===0?0:this.order++}}e.UndoRedoGroup=k,k._ID=0,k.None=new k;class D{constructor(){this.id=D._ID++,this.order=1}nextOrder(){return this.id===0?0:this.order++}}e.UndoRedoSource=D,D._ID=0,D.None=new D}),define(oe[35],se([1,0,18,31,14,6,2,8,22,126,179,11,3,23,153,37,32,46,507,680,279,243,424,425,271,508,158,512,99,172]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r,c,g,f,_,p,m,S,E,L,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DidChangeContentEmitter=e.DidChangeDecorationsEmitter=e.ModelDecorationOptions=e.ModelDecorationInjectedTextOptions=e.ModelDecorationMinimapOptions=e.ModelDecorationOverviewRulerOptions=e.TextModel=e.LONG_LINE_BOUNDARY=e.createTextBuffer=e.createTextBufferFactoryFromSnapshot=e.createTextBufferFactory=void 0;function I(Y){const U=new m.PieceTreeTextBufferBuilder;return U.acceptChunk(Y),U.finish()}e.createTextBufferFactory=I;function R(Y){const U=new m.PieceTreeTextBufferBuilder;let le;for(;typeof(le=Y.read())=="string";)U.acceptChunk(le);return U.finish()}e.createTextBufferFactoryFromSnapshot=R;function F(Y,U){let le;return typeof Y=="string"?le=I(Y):l.isITextSnapshot(Y)?le=R(Y):le=Y,le.create(U)}e.createTextBuffer=F;let O=0;const x=999;e.LONG_LINE_BOUNDARY=1e4;class M{constructor(U){this._source=U,this._eos=!1}read(){if(this._eos)return null;const U=[];let le=0,z=0;do{const Q=this._source.read();if(Q===null)return this._eos=!0,le===0?null:U.join("");if(Q.length>0&&(U[le++]=Q,z+=Q.length),z>=64*1024)return U.join("")}while(!0)}}const P=()=>{throw new Error("Invalid change accessor")};let A=class ai extends w.Disposable{constructor(U,le,z,Q=null,W,V,ne){super(),this._undoRedoService=W,this._languageService=V,this._languageConfigurationService=ne,this._onWillDispose=this._register(new D.Emitter),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new H(_e=>this.handleBeforeFireDecorationsChangedEvent(_e))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeOptions=this._register(new D.Emitter),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new D.Emitter),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new D.Emitter),this._eventEmitter=this._register(new ae),this._deltaDecorationCallCnt=0,O++,this.id="$model"+O,this.isForSimpleWidget=z.isForSimpleWidget,typeof Q>"u"||Q===null?this._associatedResource=C.URI.parse("inmemory://model/"+O):this._associatedResource=Q,this._attachedEditorCount=0;const{textBuffer:de,disposable:ce}=F(U,z.defaultEOL);this._buffer=de,this._bufferDisposable=ce,this._options=ai.resolveOptions(this._buffer,z),this._bracketPairs=this._register(new a.BracketPairsTextModelPart(this,this._languageConfigurationService)),this._guidesTextModelPart=this._register(new g.GuidesTextModelPart(this,this._languageConfigurationService)),this._decorationProvider=this._register(new r.ColorizedBracketPairsDecorationProvider(this)),this._tokenizationTextModelPart=new E.TokenizationTextModelPart(this._languageService,this._languageConfigurationService,this,this._bracketPairs,le);const ue=this._buffer.getLineCount(),me=this._buffer.getValueLengthInRange(new i.Range(1,1,ue,this._buffer.getLineLength(ue)+1),0);z.largeFileOptimizations?this._isTooLargeForTokenization=me>ai.LARGE_FILE_SIZE_THRESHOLD||ue>ai.LARGE_FILE_LINE_COUNT_THRESHOLD:this._isTooLargeForTokenization=!1,this._isTooLargeForSyncing=me>ai.MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this.__isDisposing=!1,this._instanceId=b.singleLetterHash(O),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new ee,this._commandManager=new c.EditStack(this,this._undoRedoService),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._register(this._decorationProvider.onDidChange(()=>{this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._onDidChangeDecorations.endDeferredEmit()}))}static resolveOptions(U,le){if(le.detectIndentation){const z=(0,f.guessIndentation)(U,le.tabSize,le.insertSpaces);return new l.TextModelResolvedOptions({tabSize:z.tabSize,indentSize:z.tabSize,insertSpaces:z.insertSpaces,trimAutoWhitespace:le.trimAutoWhitespace,defaultEOL:le.defaultEOL,bracketPairColorizationOptions:le.bracketPairColorizationOptions})}return new l.TextModelResolvedOptions({tabSize:le.tabSize,indentSize:le.indentSize,insertSpaces:le.insertSpaces,trimAutoWhitespace:le.trimAutoWhitespace,defaultEOL:le.defaultEOL,bracketPairColorizationOptions:le.bracketPairColorizationOptions})}get onDidChangeLanguage(){return this._tokenizationTextModelPart.onDidChangeLanguage}get onDidChangeLanguageConfiguration(){return this._tokenizationTextModelPart.onDidChangeLanguageConfiguration}get onDidChangeTokens(){return this._tokenizationTextModelPart.onDidChangeTokens}onDidChangeContent(U){return this._eventEmitter.slowEvent(le=>U(le.contentChangedEvent))}onDidChangeContentOrInjectedText(U){return(0,w.combinedDisposable)(this._eventEmitter.fastEvent(le=>U(le)),this._onDidChangeInjectedText.event(le=>U(le)))}_isDisposing(){return this.__isDisposing}get tokenization(){return this._tokenizationTextModelPart}get bracketPairs(){return this._bracketPairs}get guides(){return this._guidesTextModelPart}dispose(){this.__isDisposing=!0,this._onWillDispose.fire(),this._tokenizationTextModelPart.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this.__isDisposing=!1;const U=new p.PieceTreeTextBuffer([],"",` `,!1,!1,!0,!0);U.dispose(),this._buffer=U,this._bufferDisposable=w.Disposable.None}_assertNotDisposed(){if(this._isDisposed)throw new Error("Model is disposed!")}_emitContentChangedEvent(U,le){this.__isDisposing||(this._tokenizationTextModelPart.handleDidChangeContent(le),this._bracketPairs.handleDidChangeContent(le),this._eventEmitter.fire(new L.InternalModelContentChangeEvent(U,le)))}setValue(U){if(this._assertNotDisposed(),U===null)return;const{textBuffer:le,disposable:z}=F(U,this._options.defaultEOL);this._setValueFromTextBuffer(le,z)}_createContentChanged2(U,le,z,Q,W,V,ne){return{changes:[{range:U,rangeOffset:le,rangeLength:z,text:Q}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:W,isRedoing:V,isFlush:ne}}_setValueFromTextBuffer(U,le){this._assertNotDisposed();const z=this.getFullModelRange(),Q=this.getValueLengthInRange(z),W=this.getLineCount(),V=this.getLineMaxColumn(W);this._buffer=U,this._bufferDisposable.dispose(),this._bufferDisposable=le,this._increaseVersionId(),this._tokenizationTextModelPart.flush(),this._decorations=Object.create(null),this._decorationsTree=new ee,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new L.ModelRawContentChangedEvent([new L.ModelRawFlush],this._versionId,!1,!1),this._createContentChanged2(new i.Range(1,1,W,V),0,Q,this.getValue(),!1,!1,!0))}setEOL(U){this._assertNotDisposed();const le=U===1?`\r `:` `;if(this._buffer.getEOL()===le)return;const z=this.getFullModelRange(),Q=this.getValueLengthInRange(z),W=this.getLineCount(),V=this.getLineMaxColumn(W);this._onBeforeEOLChange(),this._buffer.setEOL(le),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new L.ModelRawContentChangedEvent([new L.ModelRawEOLChanged],this._versionId,!1,!1),this._createContentChanged2(new i.Range(1,1,W,V),0,Q,this.getValue(),!1,!1,!1))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){const U=this.getVersionId(),le=this._decorationsTree.collectNodesPostOrder();for(let z=0,Q=le.length;z<Q;z++){const W=le[z],V=W.range,ne=W.cachedAbsoluteStart-W.start,de=this._buffer.getOffsetAt(V.startLineNumber,V.startColumn),ce=this._buffer.getOffsetAt(V.endLineNumber,V.endColumn);W.cachedAbsoluteStart=de,W.cachedAbsoluteEnd=ce,W.cachedVersionId=U,W.start=de-ne,W.end=ce-ne,(0,_.recomputeMaxEnd)(W)}}onBeforeAttached(){this._attachedEditorCount++,this._attachedEditorCount===1&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0))}onBeforeDetached(){this._attachedEditorCount--,this._attachedEditorCount===0&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0))}isAttachedToEditor(){return this._attachedEditorCount>0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let U=0,le=0;const z=this._buffer.getLineCount();for(let Q=1;Q<=z;Q++){const W=this._buffer.getLineLength(Q);W>=e.LONG_LINE_BOUNDARY?le+=W:U+=W}return le>U}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(U){this._assertNotDisposed();const le=typeof U.tabSize<"u"?U.tabSize:this._options.tabSize,z=typeof U.indentSize<"u"?U.indentSize:this._options.indentSize,Q=typeof U.insertSpaces<"u"?U.insertSpaces:this._options.insertSpaces,W=typeof U.trimAutoWhitespace<"u"?U.trimAutoWhitespace:this._options.trimAutoWhitespace,V=typeof U.bracketColorizationOptions<"u"?U.bracketColorizationOptions:this._options.bracketPairColorizationOptions,ne=new l.TextModelResolvedOptions({tabSize:le,indentSize:z,insertSpaces:Q,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:W,bracketPairColorizationOptions:V});if(this._options.equals(ne))return;const de=this._options.createChangeEvent(ne);this._options=ne,this._bracketPairs.handleDidChangeOptions(de),this._decorationProvider.handleDidChangeOptions(de),this._onDidChangeOptions.fire(de)}detectIndentation(U,le){this._assertNotDisposed();const z=(0,f.guessIndentation)(this._buffer,le,U);this.updateOptions({insertSpaces:z.insertSpaces,tabSize:z.tabSize,indentSize:z.tabSize})}normalizeIndentation(U){return this._assertNotDisposed(),(0,u.normalizeIndentation)(U,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(U=null){const le=this.findMatches(b.UNUSUAL_LINE_TERMINATORS.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(U,le.map(z=>({range:z.range,text:null})),()=>null)}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(U){this._assertNotDisposed();const le=this._validatePosition(U.lineNumber,U.column,0);return this._buffer.getOffsetAt(le.lineNumber,le.column)}getPositionAt(U){this._assertNotDisposed();const le=Math.min(this._buffer.getLength(),Math.max(0,U));return this._buffer.getPositionAt(le)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(U){this._versionId=U}_overwriteAlternativeVersionId(U){this._alternativeVersionId=U}_overwriteInitialUndoRedoSnapshot(U){this._initialUndoRedoSnapshot=U}getValue(U,le=!1){this._assertNotDisposed();const z=this.getFullModelRange(),Q=this.getValueInRange(z,U);return le?this._buffer.getBOM()+Q:Q}createSnapshot(U=!1){return new M(this._buffer.createSnapshot(U))}getValueLength(U,le=!1){this._assertNotDisposed();const z=this.getFullModelRange(),Q=this.getValueLengthInRange(z,U);return le?this._buffer.getBOM().length+Q:Q}getValueInRange(U,le=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(U),le)}getValueLengthInRange(U,le=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(U),le)}getCharacterCountInRange(U,le=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(U),le)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(U){if(this._assertNotDisposed(),U<1||U>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(U)}getLineLength(U){if(this._assertNotDisposed(),U<1||U>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(U)}getLinesContent(){return this._assertNotDisposed(),this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),this._buffer.getEOL()===` `?0:1}getLineMinColumn(U){return this._assertNotDisposed(),1}getLineMaxColumn(U){if(this._assertNotDisposed(),U<1||U>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(U)+1}getLineFirstNonWhitespaceColumn(U){if(this._assertNotDisposed(),U<1||U>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(U)}getLineLastNonWhitespaceColumn(U){if(this._assertNotDisposed(),U<1||U>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(U)}_validateRangeRelaxedNoAllocations(U){const le=this._buffer.getLineCount(),z=U.startLineNumber,Q=U.startColumn;let W=Math.floor(typeof z=="number"&&!isNaN(z)?z:1),V=Math.floor(typeof Q=="number"&&!isNaN(Q)?Q:1);if(W<1)W=1,V=1;else if(W>le)W=le,V=this.getLineMaxColumn(W);else if(V<=1)V=1;else{const me=this.getLineMaxColumn(W);V>=me&&(V=me)}const ne=U.endLineNumber,de=U.endColumn;let ce=Math.floor(typeof ne=="number"&&!isNaN(ne)?ne:1),ue=Math.floor(typeof de=="number"&&!isNaN(de)?de:1);if(ce<1)ce=1,ue=1;else if(ce>le)ce=le,ue=this.getLineMaxColumn(ce);else if(ue<=1)ue=1;else{const me=this.getLineMaxColumn(ce);ue>=me&&(ue=me)}return z===W&&Q===V&&ne===ce&&de===ue&&U instanceof i.Range&&!(U instanceof t.Selection)?U:new i.Range(W,V,ce,ue)}_isValidPosition(U,le,z){if(typeof U!="number"||typeof le!="number"||isNaN(U)||isNaN(le)||U<1||le<1||(U|0)!==U||(le|0)!==le)return!1;const Q=this._buffer.getLineCount();if(U>Q)return!1;if(le===1)return!0;const W=this.getLineMaxColumn(U);if(le>W)return!1;if(z===1){const V=this._buffer.getLineCharCode(U,le-2);if(b.isHighSurrogate(V))return!1}return!0}_validatePosition(U,le,z){const Q=Math.floor(typeof U=="number"&&!isNaN(U)?U:1),W=Math.floor(typeof le=="number"&&!isNaN(le)?le:1),V=this._buffer.getLineCount();if(Q<1)return new n.Position(1,1);if(Q>V)return new n.Position(V,this.getLineMaxColumn(V));if(W<=1)return new n.Position(Q,1);const ne=this.getLineMaxColumn(Q);if(W>=ne)return new n.Position(Q,ne);if(z===1){const de=this._buffer.getLineCharCode(Q,W-2);if(b.isHighSurrogate(de))return new n.Position(Q,W-1)}return new n.Position(Q,W)}validatePosition(U){return this._assertNotDisposed(),U instanceof n.Position&&this._isValidPosition(U.lineNumber,U.column,1)?U:this._validatePosition(U.lineNumber,U.column,1)}_isValidRange(U,le){const z=U.startLineNumber,Q=U.startColumn,W=U.endLineNumber,V=U.endColumn;if(!this._isValidPosition(z,Q,0)||!this._isValidPosition(W,V,0))return!1;if(le===1){const ne=Q>1?this._buffer.getLineCharCode(z,Q-2):0,de=V>1&&V<=this._buffer.getLineLength(W)?this._buffer.getLineCharCode(W,V-2):0,ce=b.isHighSurrogate(ne),ue=b.isHighSurrogate(de);return!ce&&!ue}return!0}validateRange(U){if(this._assertNotDisposed(),U instanceof i.Range&&!(U instanceof t.Selection)&&this._isValidRange(U,1))return U;const z=this._validatePosition(U.startLineNumber,U.startColumn,0),Q=this._validatePosition(U.endLineNumber,U.endColumn,0),W=z.lineNumber,V=z.column,ne=Q.lineNumber,de=Q.column;{const ce=V>1?this._buffer.getLineCharCode(W,V-2):0,ue=de>1&&de<=this._buffer.getLineLength(ne)?this._buffer.getLineCharCode(ne,de-2):0,me=b.isHighSurrogate(ce),_e=b.isHighSurrogate(ue);return!me&&!_e?new i.Range(W,V,ne,de):W===ne&&V===de?new i.Range(W,V-1,ne,de-1):me&&_e?new i.Range(W,V-1,ne,de+1):me?new i.Range(W,V-1,ne,de):new i.Range(W,V,ne,de+1)}return new i.Range(W,V,ne,de)}modifyPosition(U,le){this._assertNotDisposed();const z=this.getOffsetAt(U)+le;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,z)))}getFullModelRange(){this._assertNotDisposed();const U=this.getLineCount();return new i.Range(1,1,U,this.getLineMaxColumn(U))}findMatchesLineByLine(U,le,z,Q){return this._buffer.findMatchesLineByLine(U,le,z,Q)}findMatches(U,le,z,Q,W,V,ne=x){this._assertNotDisposed();let de=null;le!==null&&(Array.isArray(le)||(le=[le]),le.every(me=>i.Range.isIRange(me))&&(de=le.map(me=>this.validateRange(me)))),de===null&&(de=[this.getFullModelRange()]),de=de.sort((me,_e)=>me.startLineNumber-_e.startLineNumber||me.startColumn-_e.startColumn);const ce=[];ce.push(de.reduce((me,_e)=>i.Range.areIntersecting(me,_e)?me.plusRange(_e):(ce.push(me),_e)));let ue;if(!z&&U.indexOf(` `)<0){const me=new S.SearchParams(U,z,Q,W).parseSearchRequest();if(!me)return[];ue=_e=>this.findMatchesLineByLine(_e,me,V,ne)}else ue=me=>S.TextModelSearch.findMatches(this,new S.SearchParams(U,z,Q,W),me,V,ne);return ce.map(ue).reduce((me,_e)=>me.concat(_e),[])}findNextMatch(U,le,z,Q,W,V){this._assertNotDisposed();const ne=this.validatePosition(le);if(!z&&U.indexOf(` `)<0){const de=new S.SearchParams(U,z,Q,W).parseSearchRequest();if(!de)return null;const ce=this.getLineCount();let ue=new i.Range(ne.lineNumber,ne.column,ce,this.getLineMaxColumn(ce)),me=this.findMatchesLineByLine(ue,de,V,1);return S.TextModelSearch.findNextMatch(this,new S.SearchParams(U,z,Q,W),ne,V),me.length>0||(ue=new i.Range(1,1,ne.lineNumber,this.getLineMaxColumn(ne.lineNumber)),me=this.findMatchesLineByLine(ue,de,V,1),me.length>0)?me[0]:null}return S.TextModelSearch.findNextMatch(this,new S.SearchParams(U,z,Q,W),ne,V)}findPreviousMatch(U,le,z,Q,W,V){this._assertNotDisposed();const ne=this.validatePosition(le);return S.TextModelSearch.findPreviousMatch(this,new S.SearchParams(U,z,Q,W),ne,V)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(U){if((this.getEOL()===` `?0:1)!==U)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._initialUndoRedoSnapshot===null&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(U)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(U){return U instanceof l.ValidAnnotatedEditOperation?U:new l.ValidAnnotatedEditOperation(U.identifier||null,this.validateRange(U.range),U.text,U.forceMoveMarkers||!1,U.isAutoWhitespaceEdit||!1,U._isTracked||!1)}_validateEditOperations(U){const le=[];for(let z=0,Q=U.length;z<Q;z++)le[z]=this._validateEditOperation(U[z]);return le}pushEditOperations(U,le,z){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(U,this._validateEditOperations(le),z)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_pushEditOperations(U,le,z){if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){const Q=le.map(V=>({range:this.validateRange(V.range),text:V.text}));let W=!0;if(U)for(let V=0,ne=U.length;V<ne;V++){const de=U[V];let ce=!1;for(let ue=0,me=Q.length;ue<me;ue++){const _e=Q[ue].range,ye=_e.startLineNumber>de.endLineNumber,ke=de.startLineNumber>_e.endLineNumber;if(!ye&&!ke){ce=!0;break}}if(!ce){W=!1;break}}if(W)for(let V=0,ne=this._trimAutoWhitespaceLines.length;V<ne;V++){const de=this._trimAutoWhitespaceLines[V],ce=this.getLineMaxColumn(de);let ue=!0;for(let me=0,_e=Q.length;me<_e;me++){const ye=Q[me].range,ke=Q[me].text;if(!(de<ye.startLineNumber||de>ye.endLineNumber)&&!(de===ye.startLineNumber&&ye.startColumn===ce&&ye.isEmpty()&&ke&&ke.length>0&&ke.charAt(0)===` `)&&!(de===ye.startLineNumber&&ye.startColumn===1&&ye.isEmpty()&&ke&&ke.length>0&&ke.charAt(ke.length-1)===` `)){ue=!1;break}}if(ue){const me=new i.Range(de,1,de,ce);le.push(new l.ValidAnnotatedEditOperation(null,me,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return this._initialUndoRedoSnapshot===null&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(U,le,z)}_applyUndo(U,le,z,Q){const W=U.map(V=>{const ne=this.getPositionAt(V.newPosition),de=this.getPositionAt(V.newEnd);return{range:new i.Range(ne.lineNumber,ne.column,de.lineNumber,de.column),text:V.oldText}});this._applyUndoRedoEdits(W,le,!0,!1,z,Q)}_applyRedo(U,le,z,Q){const W=U.map(V=>{const ne=this.getPositionAt(V.oldPosition),de=this.getPositionAt(V.oldEnd);return{range:new i.Range(ne.lineNumber,ne.column,de.lineNumber,de.column),text:V.newText}});this._applyUndoRedoEdits(W,le,!1,!0,z,Q)}_applyUndoRedoEdits(U,le,z,Q,W,V){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=z,this._isRedoing=Q,this.applyEdits(U,!1),this.setEOL(le),this._overwriteAlternativeVersionId(W)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(V),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(U,le=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const z=this._validateEditOperations(U);return this._doApplyEdits(z,le)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(U,le){const z=this._buffer.getLineCount(),Q=this._buffer.applyEdits(U,this._options.trimAutoWhitespace,le),W=this._buffer.getLineCount(),V=Q.changes;if(this._trimAutoWhitespaceLines=Q.trimAutoWhitespaceLineNumbers,V.length!==0){for(let ce=0,ue=V.length;ce<ue;ce++){const me=V[ce],[_e,ye,ke]=(0,h.countEOL)(me.text);this._tokenizationTextModelPart.acceptEdit(me.range,me.text,_e,ye,ke),this._decorationsTree.acceptReplace(me.rangeOffset,me.rangeLength,me.text.length,me.forceMoveMarkers)}const ne=[];this._increaseVersionId();let de=z;for(let ce=0,ue=V.length;ce<ue;ce++){const me=V[ce],[_e]=(0,h.countEOL)(me.text);this._onDidChangeDecorations.fire();const ye=me.range.startLineNumber,ke=me.range.endLineNumber,Te=ke-ye,Me=_e,fe=Math.min(Te,Me),he=Me-Te,re=W-de-he+ye,ge=re,Se=re+Me,Le=this._decorationsTree.getInjectedTextInInterval(this,this.getOffsetAt(new n.Position(ge,1)),this.getOffsetAt(new n.Position(Se,this.getLineMaxColumn(Se))),0),Ne=L.LineInjectedText.fromDecorations(Le),Ae=new y.ArrayQueue(Ne);for(let Pe=fe;Pe>=0;Pe--){const Ce=ye+Pe,ve=re+Pe;Ae.takeFromEndWhile(Be=>Be.lineNumber>ve);const De=Ae.takeFromEndWhile(Be=>Be.lineNumber===ve);ne.push(new L.ModelRawLineChanged(Ce,this.getLineContent(ve),De))}if(fe<Te){const Pe=ye+fe;ne.push(new L.ModelRawLinesDeleted(Pe+1,ke))}if(fe<Me){const Pe=new y.ArrayQueue(Ne),Ce=ye+fe,ve=Me-fe,De=W-de-ve+Ce+1,Be=[],Re=[];for(let Ve=0;Ve<ve;Ve++){const Ue=De+Ve;Re[Ve]=this.getLineContent(Ue),Pe.takeWhile(Je=>Je.lineNumber<Ue),Be[Ve]=Pe.takeWhile(Je=>Je.lineNumber===Ue)}ne.push(new L.ModelRawLinesInserted(Ce+1,ye+Me,Re,Be))}de+=he}this._emitContentChangedEvent(new L.ModelRawContentChangedEvent(ne,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:V,eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return Q.reverseEdits===null?void 0:Q.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(U){if(U===null||U.size===0)return;const le=Array.from(U).map(z=>new L.ModelRawLineChanged(z,this.getLineContent(z),this._getInjectedTextInLine(z)));this._onDidChangeInjectedText.fire(new L.ModelInjectedTextChangedEvent(le))}changeDecorations(U,le=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(le,U)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(U,le){const z={addDecoration:(W,V)=>this._deltaDecorationsImpl(U,[],[{range:W,options:V}])[0],changeDecoration:(W,V)=>{this._changeDecorationImpl(W,V)},changeDecorationOptions:(W,V)=>{this._changeDecorationOptionsImpl(W,ie(V))},removeDecoration:W=>{this._deltaDecorationsImpl(U,[W],[])},deltaDecorations:(W,V)=>W.length===0&&V.length===0?[]:this._deltaDecorationsImpl(U,W,V)};let Q=null;try{Q=le(z)}catch(W){(0,k.onUnexpectedError)(W)}return z.addDecoration=P,z.changeDecoration=P,z.changeDecorationOptions=P,z.removeDecoration=P,z.deltaDecorations=P,Q}deltaDecorations(U,le,z=0){if(this._assertNotDisposed(),U||(U=[]),U.length===0&&le.length===0)return[];try{return this._deltaDecorationCallCnt++,this._deltaDecorationCallCnt>1&&(console.warn("Invoking deltaDecorations recursively could lead to leaking decorations."),(0,k.onUnexpectedError)(new Error("Invoking deltaDecorations recursively could lead to leaking decorations."))),this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(z,U,le)}finally{this._onDidChangeDecorations.endDeferredEmit(),this._deltaDecorationCallCnt--}}_getTrackedRange(U){return this.getDecorationRange(U)}_setTrackedRange(U,le,z){const Q=U?this._decorations[U]:null;if(!Q)return le?this._deltaDecorationsImpl(0,[],[{range:le,options:X[z]}])[0]:null;if(!le)return this._decorationsTree.delete(Q),delete this._decorations[Q.id],null;const W=this._validateRangeRelaxedNoAllocations(le),V=this._buffer.getOffsetAt(W.startLineNumber,W.startColumn),ne=this._buffer.getOffsetAt(W.endLineNumber,W.endColumn);return this._decorationsTree.delete(Q),Q.reset(this.getVersionId(),V,ne,W),Q.setOptions(X[z]),this._decorationsTree.insert(Q),Q.id}removeAllDecorationsWithOwnerId(U){if(this._isDisposed)return;const le=this._decorationsTree.collectNodesFromOwner(U);for(let z=0,Q=le.length;z<Q;z++){const W=le[z];this._decorationsTree.delete(W),delete this._decorations[W.id]}}getDecorationOptions(U){const le=this._decorations[U];return le?le.options:null}getDecorationRange(U){const le=this._decorations[U];return le?this._decorationsTree.getNodeRange(this,le):null}getLineDecorations(U,le=0,z=!1){return U<1||U>this.getLineCount()?[]:this.getLinesDecorations(U,U,le,z)}getLinesDecorations(U,le,z=0,Q=!1){const W=this.getLineCount(),V=Math.min(W,Math.max(1,U)),ne=Math.min(W,Math.max(1,le)),de=this.getLineMaxColumn(ne),ce=new i.Range(V,1,ne,de),ue=this._getDecorationsInRange(ce,z,Q);return(0,y.pushMany)(ue,this._decorationProvider.getDecorationsInRange(ce,z,Q)),ue}getDecorationsInRange(U,le=0,z=!1){const Q=this.validateRange(U),W=this._getDecorationsInRange(Q,le,z);return(0,y.pushMany)(W,this._decorationProvider.getDecorationsInRange(Q,le,z)),W}getOverviewRulerDecorations(U=0,le=!1){return this._decorationsTree.getAll(this,U,le,!0)}getInjectedTextDecorations(U=0){return this._decorationsTree.getAllInjectedText(this,U)}_getInjectedTextInLine(U){const le=this._buffer.getOffsetAt(U,1),z=le+this._buffer.getLineLength(U),Q=this._decorationsTree.getInjectedTextInInterval(this,le,z,0);return L.LineInjectedText.fromDecorations(Q).filter(W=>W.lineNumber===U)}getAllDecorations(U=0,le=!1){let z=this._decorationsTree.getAll(this,U,le,!1);return z=z.concat(this._decorationProvider.getAllDecorations(U,le)),z}_getDecorationsInRange(U,le,z){const Q=this._buffer.getOffsetAt(U.startLineNumber,U.startColumn),W=this._buffer.getOffsetAt(U.endLineNumber,U.endColumn);return this._decorationsTree.getAllInInterval(this,Q,W,le,z)}getRangeAt(U,le){return this._buffer.getRangeAt(U,le-U)}_changeDecorationImpl(U,le){const z=this._decorations[U];if(!z)return;if(z.options.after){const ne=this.getDecorationRange(U);this._onDidChangeDecorations.recordLineAffectedByInjectedText(ne.endLineNumber)}if(z.options.before){const ne=this.getDecorationRange(U);this._onDidChangeDecorations.recordLineAffectedByInjectedText(ne.startLineNumber)}const Q=this._validateRangeRelaxedNoAllocations(le),W=this._buffer.getOffsetAt(Q.startLineNumber,Q.startColumn),V=this._buffer.getOffsetAt(Q.endLineNumber,Q.endColumn);this._decorationsTree.delete(z),z.reset(this.getVersionId(),W,V,Q),this._decorationsTree.insert(z),this._onDidChangeDecorations.checkAffectedAndFire(z.options),z.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(Q.endLineNumber),z.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(Q.startLineNumber)}_changeDecorationOptionsImpl(U,le){const z=this._decorations[U];if(!z)return;const Q=!!(z.options.overviewRuler&&z.options.overviewRuler.color),W=!!(le.overviewRuler&&le.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(z.options),this._onDidChangeDecorations.checkAffectedAndFire(le),z.options.after||le.after){const V=this._decorationsTree.getNodeRange(this,z);this._onDidChangeDecorations.recordLineAffectedByInjectedText(V.endLineNumber)}if(z.options.before||le.before){const V=this._decorationsTree.getNodeRange(this,z);this._onDidChangeDecorations.recordLineAffectedByInjectedText(V.startLineNumber)}Q!==W?(this._decorationsTree.delete(z),z.setOptions(le),this._decorationsTree.insert(z)):z.setOptions(le)}_deltaDecorationsImpl(U,le,z){const Q=this.getVersionId(),W=le.length;let V=0;const ne=z.length;let de=0;const ce=new Array(ne);for(;V<W||de<ne;){let ue=null;if(V<W){do ue=this._decorations[le[V++]];while(!ue&&V<W);if(ue){if(ue.options.after){const me=this._decorationsTree.getNodeRange(this,ue);this._onDidChangeDecorations.recordLineAffectedByInjectedText(me.endLineNumber)}if(ue.options.before){const me=this._decorationsTree.getNodeRange(this,ue);this._onDidChangeDecorations.recordLineAffectedByInjectedText(me.startLineNumber)}this._decorationsTree.delete(ue),this._onDidChangeDecorations.checkAffectedAndFire(ue.options)}}if(de<ne){if(!ue){const Me=++this._lastDecorationId,fe=`${this._instanceId};${Me}`;ue=new _.IntervalNode(fe,0,0),this._decorations[fe]=ue}const me=z[de],_e=this._validateRangeRelaxedNoAllocations(me.range),ye=ie(me.options),ke=this._buffer.getOffsetAt(_e.startLineNumber,_e.startColumn),Te=this._buffer.getOffsetAt(_e.endLineNumber,_e.endColumn);ue.ownerId=U,ue.reset(Q,ke,Te,_e),ue.setOptions(ye),ue.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(_e.endLineNumber),ue.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(_e.startLineNumber),this._onDidChangeDecorations.checkAffectedAndFire(ye),this._decorationsTree.insert(ue),ce[de]=ue.id,de++}else ue&&delete this._decorations[ue.id]}return ce}getLanguageId(){return this.tokenization.getLanguageId()}setMode(U){this.tokenization.setLanguageId(U)}getLanguageIdAtPosition(U,le){return this.tokenization.getLanguageIdAtPosition(U,le)}getWordAtPosition(U){return this._tokenizationTextModelPart.getWordAtPosition(U)}getWordUntilPosition(U){return this._tokenizationTextModelPart.getWordUntilPosition(U)}normalizePosition(U,le){return U}getLineIndentColumn(U){return B(this.getLineContent(U))+1}};A.MODEL_SYNC_LIMIT=50*1024*1024,A.LARGE_FILE_SIZE_THRESHOLD=20*1024*1024,A.LARGE_FILE_LINE_COUNT_THRESHOLD=300*1e3,A.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:o.EDITOR_MODEL_DEFAULTS.tabSize,indentSize:o.EDITOR_MODEL_DEFAULTS.indentSize,insertSpaces:o.EDITOR_MODEL_DEFAULTS.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:o.EDITOR_MODEL_DEFAULTS.trimAutoWhitespace,largeFileOptimizations:o.EDITOR_MODEL_DEFAULTS.largeFileOptimizations,bracketPairColorizationOptions:o.EDITOR_MODEL_DEFAULTS.bracketPairColorizationOptions},A=Ie([pe(4,N.IUndoRedoService),pe(5,s.ILanguageService),pe(6,d.ILanguageConfigurationService)],A),e.TextModel=A;function B(Y){let U=0;for(const le of Y)if(le===" "||le===" ")U++;else break;return U}function K(Y){return!!(Y.options.overviewRuler&&Y.options.overviewRuler.color)}function T(Y){return!!Y.options.after||!!Y.options.before}class ee{constructor(){this._decorationsTree0=new _.IntervalTree,this._decorationsTree1=new _.IntervalTree,this._injectedTextDecorationsTree=new _.IntervalTree}ensureAllNodesHaveRanges(U){this.getAll(U,0,!1,!1)}_ensureNodesHaveRanges(U,le){for(const z of le)z.range===null&&(z.range=U.getRangeAt(z.cachedAbsoluteStart,z.cachedAbsoluteEnd));return le}getAllInInterval(U,le,z,Q,W){const V=U.getVersionId(),ne=this._intervalSearch(le,z,Q,W,V);return this._ensureNodesHaveRanges(U,ne)}_intervalSearch(U,le,z,Q,W){const V=this._decorationsTree0.intervalSearch(U,le,z,Q,W),ne=this._decorationsTree1.intervalSearch(U,le,z,Q,W),de=this._injectedTextDecorationsTree.intervalSearch(U,le,z,Q,W);return V.concat(ne).concat(de)}getInjectedTextInInterval(U,le,z,Q){const W=U.getVersionId(),V=this._injectedTextDecorationsTree.intervalSearch(le,z,Q,!1,W);return this._ensureNodesHaveRanges(U,V).filter(ne=>ne.options.showIfCollapsed||!ne.range.isEmpty())}getAllInjectedText(U,le){const z=U.getVersionId(),Q=this._injectedTextDecorationsTree.search(le,!1,z);return this._ensureNodesHaveRanges(U,Q).filter(W=>W.options.showIfCollapsed||!W.range.isEmpty())}getAll(U,le,z,Q){const W=U.getVersionId(),V=this._search(le,z,Q,W);return this._ensureNodesHaveRanges(U,V)}_search(U,le,z,Q){if(z)return this._decorationsTree1.search(U,le,Q);{const W=this._decorationsTree0.search(U,le,Q),V=this._decorationsTree1.search(U,le,Q),ne=this._injectedTextDecorationsTree.search(U,le,Q);return W.concat(V).concat(ne)}}collectNodesFromOwner(U){const le=this._decorationsTree0.collectNodesFromOwner(U),z=this._decorationsTree1.collectNodesFromOwner(U),Q=this._injectedTextDecorationsTree.collectNodesFromOwner(U);return le.concat(z).concat(Q)}collectNodesPostOrder(){const U=this._decorationsTree0.collectNodesPostOrder(),le=this._decorationsTree1.collectNodesPostOrder(),z=this._injectedTextDecorationsTree.collectNodesPostOrder();return U.concat(le).concat(z)}insert(U){T(U)?this._injectedTextDecorationsTree.insert(U):K(U)?this._decorationsTree1.insert(U):this._decorationsTree0.insert(U)}delete(U){T(U)?this._injectedTextDecorationsTree.delete(U):K(U)?this._decorationsTree1.delete(U):this._decorationsTree0.delete(U)}getNodeRange(U,le){const z=U.getVersionId();return le.cachedVersionId!==z&&this._resolveNode(le,z),le.range===null&&(le.range=U.getRangeAt(le.cachedAbsoluteStart,le.cachedAbsoluteEnd)),le.range}_resolveNode(U,le){T(U)?this._injectedTextDecorationsTree.resolveNode(U,le):K(U)?this._decorationsTree1.resolveNode(U,le):this._decorationsTree0.resolveNode(U,le)}acceptReplace(U,le,z,Q){this._decorationsTree0.acceptReplace(U,le,z,Q),this._decorationsTree1.acceptReplace(U,le,z,Q),this._injectedTextDecorationsTree.acceptReplace(U,le,z,Q)}}function J(Y){return Y.replace(/[^a-z0-9\-_]/gi," ")}class ${constructor(U){this.color=U.color||"",this.darkColor=U.darkColor||""}}class j extends ${constructor(U){super(U),this._resolvedColor=null,this.position=typeof U.position=="number"?U.position:l.OverviewRulerLane.Center}getColor(U){return this._resolvedColor||(U.type!=="light"&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,U):this._resolvedColor=this._resolveColor(this.color,U)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(U,le){if(typeof U=="string")return U;const z=U?le.getColor(U.id):null;return z?z.toString():""}}e.ModelDecorationOverviewRulerOptions=j;class G extends ${constructor(U){super(U),this.position=U.position}getColor(U){return this._resolvedColor||(U.type!=="light"&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,U):this._resolvedColor=this._resolveColor(this.color,U)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(U,le){return typeof U=="string"?v.Color.fromHex(U):le.getColor(U.id)}}e.ModelDecorationMinimapOptions=G;class te{constructor(U){this.content=U.content||"",this.inlineClassName=U.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=U.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=U.attachedData||null,this.cursorStops=U.cursorStops||null}static from(U){return U instanceof te?U:new te(U)}}e.ModelDecorationInjectedTextOptions=te;class Z{constructor(U){var le,z;this.description=U.description,this.blockClassName=U.blockClassName?J(U.blockClassName):null,this.stickiness=U.stickiness||0,this.zIndex=U.zIndex||0,this.className=U.className?J(U.className):null,this.hoverMessage=U.hoverMessage||null,this.glyphMarginHoverMessage=U.glyphMarginHoverMessage||null,this.isWholeLine=U.isWholeLine||!1,this.showIfCollapsed=U.showIfCollapsed||!1,this.collapseOnReplaceEdit=U.collapseOnReplaceEdit||!1,this.overviewRuler=U.overviewRuler?new j(U.overviewRuler):null,this.minimap=U.minimap?new G(U.minimap):null,this.glyphMarginClassName=U.glyphMarginClassName?J(U.glyphMarginClassName):null,this.linesDecorationsClassName=U.linesDecorationsClassName?J(U.linesDecorationsClassName):null,this.firstLineDecorationClassName=U.firstLineDecorationClassName?J(U.firstLineDecorationClassName):null,this.marginClassName=U.marginClassName?J(U.marginClassName):null,this.inlineClassName=U.inlineClassName?J(U.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=U.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=U.beforeContentClassName?J(U.beforeContentClassName):null,this.afterContentClassName=U.afterContentClassName?J(U.afterContentClassName):null,this.after=U.after?te.from(U.after):null,this.before=U.before?te.from(U.before):null,this.hideInCommentTokens=(le=U.hideInCommentTokens)!==null&&le!==void 0?le:!1,this.hideInStringTokens=(z=U.hideInStringTokens)!==null&&z!==void 0?z:!1}static register(U){return new Z(U)}static createDynamic(U){return new Z(U)}}e.ModelDecorationOptions=Z,Z.EMPTY=Z.register({description:"empty"});const X=[Z.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),Z.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),Z.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),Z.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function ie(Y){return Y instanceof Z?Y:Z.createDynamic(Y)}class H extends w.Disposable{constructor(U){super(),this.handleBeforeFire=U,this._actual=this._register(new D.Emitter),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFire=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){var U;if(this._deferredCnt--,this._deferredCnt===0){if(this._shouldFire){this.handleBeforeFire(this._affectedInjectedTextLines);const le={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler};this._shouldFire=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._actual.fire(le)}(U=this._affectedInjectedTextLines)===null||U===void 0||U.clear(),this._affectedInjectedTextLines=null}}recordLineAffectedByInjectedText(U){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(U)}checkAffectedAndFire(U){this._affectsMinimap||(this._affectsMinimap=!!(U.minimap&&U.minimap.position)),this._affectsOverviewRuler||(this._affectsOverviewRuler=!!(U.overviewRuler&&U.overviewRuler.color)),this._shouldFire=!0}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._shouldFire=!0}}e.DidChangeDecorationsEmitter=H;class ae extends w.Disposable{constructor(){super(),this._fastEmitter=this._register(new D.Emitter),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new D.Emitter),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(U=null){if(this._deferredCnt--,this._deferredCnt===0&&this._deferredEvent!==null){this._deferredEvent.rawContentChangedEvent.resultingSelection=U;const le=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(le),this._slowEmitter.fire(le)}}fire(U){if(this._deferredCnt>0){this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(U):this._deferredEvent=U;return}this._fastEmitter.fire(U),this._slowEmitter.fire(U)}}e.DidChangeContentEmitter=ae}),define(oe[310],se([1,0,6,2,17,14,35,153,72,37,50,166,30,10,21,15,69,172,105,279,52,298,281,40,32,70,57,20]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r,c,g,f,_,p,m,S,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ModelSemanticColoring=e.isSemanticColoringEnabled=e.SEMANTIC_HIGHLIGHTING_SETTING_ID=e.ModelService=void 0;function L(K){return K.toString()}function N(K){const T=new a.StringSHA1,ee=K.createSnapshot();let J;for(;J=ee.read();)T.update(J);return T.digest()}class I{constructor(T,ee,J){this._modelEventListeners=new v.DisposableStore,this.model=T,this._languageSelection=null,this._languageSelectionListener=null,this._modelEventListeners.add(T.onWillDispose(()=>ee(T))),this._modelEventListeners.add(T.onDidChangeLanguage($=>J(T,$)))}_disposeLanguageSelection(){this._languageSelectionListener&&(this._languageSelectionListener.dispose(),this._languageSelectionListener=null)}dispose(){this._modelEventListeners.dispose(),this._disposeLanguageSelection()}setLanguage(T){this._disposeLanguageSelection(),this._languageSelection=T,this._languageSelectionListener=this._languageSelection.onDidChange(()=>this.model.setMode(T.languageId)),this.model.setMode(T.languageId)}}const R=k.isLinux||k.isMacintosh?1:2;class F{constructor(T,ee,J,$,j,G,te,Z){this.uri=T,this.initialUndoRedoSnapshot=ee,this.time=J,this.sharesUndoRedoStack=$,this.heapSize=j,this.sha1=G,this.versionId=te,this.alternativeVersionId=Z}}let O=class li extends v.Disposable{constructor(T,ee,J,$,j,G,te,Z,X){super(),this._configurationService=T,this._resourcePropertiesService=ee,this._themeService=J,this._logService=$,this._undoRedoService=j,this._languageService=G,this._languageConfigurationService=te,this._languageFeatureDebounceService=Z,this._onModelAdded=this._register(new y.Emitter),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new y.Emitter),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new y.Emitter),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._semanticStyling=this._register(new P(this._themeService,this._languageService,this._logService)),this._register(this._configurationService.onDidChangeConfiguration(()=>this._updateModelOptions())),this._updateModelOptions(),this._register(new M(this._semanticStyling,this,this._themeService,this._configurationService,this._languageFeatureDebounceService,X))}static _readModelOptions(T,ee){var J;let $=b.EDITOR_MODEL_DEFAULTS.tabSize;if(T.editor&&typeof T.editor.tabSize<"u"){const Y=parseInt(T.editor.tabSize,10);isNaN(Y)||($=Y),$<1&&($=1)}let j=$;if(T.editor&&typeof T.editor.indentSize<"u"&&T.editor.indentSize!=="tabSize"){const Y=parseInt(T.editor.indentSize,10);isNaN(Y)||(j=Y),j<1&&(j=1)}let G=b.EDITOR_MODEL_DEFAULTS.insertSpaces;T.editor&&typeof T.editor.insertSpaces<"u"&&(G=T.editor.insertSpaces==="false"?!1:!!T.editor.insertSpaces);let te=R;const Z=T.eol;Z===`\r `?te=2:Z===` `&&(te=1);let X=b.EDITOR_MODEL_DEFAULTS.trimAutoWhitespace;T.editor&&typeof T.editor.trimAutoWhitespace<"u"&&(X=T.editor.trimAutoWhitespace==="false"?!1:!!T.editor.trimAutoWhitespace);let ie=b.EDITOR_MODEL_DEFAULTS.detectIndentation;T.editor&&typeof T.editor.detectIndentation<"u"&&(ie=T.editor.detectIndentation==="false"?!1:!!T.editor.detectIndentation);let H=b.EDITOR_MODEL_DEFAULTS.largeFileOptimizations;T.editor&&typeof T.editor.largeFileOptimizations<"u"&&(H=T.editor.largeFileOptimizations==="false"?!1:!!T.editor.largeFileOptimizations);let ae=b.EDITOR_MODEL_DEFAULTS.bracketPairColorizationOptions;return!((J=T.editor)===null||J===void 0)&&J.bracketPairColorization&&typeof T.editor.bracketPairColorization=="object"&&(ae={enabled:!!T.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!T.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:ee,tabSize:$,indentSize:j,insertSpaces:G,detectIndentation:ie,defaultEOL:te,trimAutoWhitespace:X,largeFileOptimizations:H,bracketPairColorizationOptions:ae}}_getEOL(T,ee){if(T)return this._resourcePropertiesService.getEOL(T,ee);const J=this._configurationService.getValue("files.eol",{overrideIdentifier:ee});return J&&typeof J=="string"&&J!=="auto"?J:k.OS===3||k.OS===2?` `:`\r `}_shouldRestoreUndoStack(){const T=this._configurationService.getValue("files.restoreUndoStack");return typeof T=="boolean"?T:!0}getCreationOptions(T,ee,J){let $=this._modelCreationOptionsByLanguageAndResource[T+ee];if(!$){const j=this._configurationService.getValue("editor",{overrideIdentifier:T,resource:ee}),G=this._getEOL(ee,T);$=li._readModelOptions({editor:j,eol:G},J),this._modelCreationOptionsByLanguageAndResource[T+ee]=$}return $}_updateModelOptions(){const T=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const ee=Object.keys(this._models);for(let J=0,$=ee.length;J<$;J++){const j=ee[J],G=this._models[j],te=G.model.getLanguageId(),Z=G.model.uri,X=T[te+Z],ie=this.getCreationOptions(te,Z,G.model.isForSimpleWidget);li._setModelOptionsForModel(G.model,ie,X)}}static _setModelOptionsForModel(T,ee,J){J&&J.defaultEOL!==ee.defaultEOL&&T.getLineCount()===1&&T.setEOL(ee.defaultEOL===1?0:1),!(J&&J.detectIndentation===ee.detectIndentation&&J.insertSpaces===ee.insertSpaces&&J.tabSize===ee.tabSize&&J.indentSize===ee.indentSize&&J.trimAutoWhitespace===ee.trimAutoWhitespace&&(0,_.equals)(J.bracketPairColorizationOptions,ee.bracketPairColorizationOptions))&&(ee.detectIndentation?(T.detectIndentation(ee.insertSpaces,ee.tabSize),T.updateOptions({trimAutoWhitespace:ee.trimAutoWhitespace,bracketColorizationOptions:ee.bracketPairColorizationOptions})):T.updateOptions({insertSpaces:ee.insertSpaces,tabSize:ee.tabSize,indentSize:ee.indentSize,trimAutoWhitespace:ee.trimAutoWhitespace,bracketColorizationOptions:ee.bracketPairColorizationOptions}))}_insertDisposedModel(T){this._disposedModels.set(L(T.uri),T),this._disposedModelsHeapSize+=T.heapSize}_removeDisposedModel(T){const ee=this._disposedModels.get(L(T));return ee&&(this._disposedModelsHeapSize-=ee.heapSize),this._disposedModels.delete(L(T)),ee}_ensureDisposedModelsHeapSize(T){if(this._disposedModelsHeapSize>T){const ee=[];for(this._disposedModels.forEach(J=>{J.sharesUndoRedoStack||ee.push(J)}),ee.sort((J,$)=>J.time-$.time);ee.length>0&&this._disposedModelsHeapSize>T;){const J=ee.shift();this._removeDisposedModel(J.uri),J.initialUndoRedoSnapshot!==null&&this._undoRedoService.restoreSnapshot(J.initialUndoRedoSnapshot)}}}_createModelData(T,ee,J,$){const j=this.getCreationOptions(ee,J,$),G=new w.TextModel(T,ee,j,J,this._undoRedoService,this._languageService,this._languageConfigurationService);if(J&&this._disposedModels.has(L(J))){const X=this._removeDisposedModel(J),ie=this._undoRedoService.getElements(J),H=N(G)===X.sha1;if(H||X.sharesUndoRedoStack){for(const ae of ie.past)(0,r.isEditStackElement)(ae)&&ae.matchesResource(J)&&ae.setModel(G);for(const ae of ie.future)(0,r.isEditStackElement)(ae)&&ae.matchesResource(J)&&ae.setModel(G);this._undoRedoService.setElementsValidFlag(J,!0,ae=>(0,r.isEditStackElement)(ae)&&ae.matchesResource(J)),H&&(G._overwriteVersionId(X.versionId),G._overwriteAlternativeVersionId(X.alternativeVersionId),G._overwriteInitialUndoRedoSnapshot(X.initialUndoRedoSnapshot))}else X.initialUndoRedoSnapshot!==null&&this._undoRedoService.restoreSnapshot(X.initialUndoRedoSnapshot)}const te=L(G.uri);if(this._models[te])throw new Error("ModelService: Cannot add model because it already exists!");const Z=new I(G,X=>this._onWillDispose(X),(X,ie)=>this._onDidChangeLanguage(X,ie));return this._models[te]=Z,Z}createModel(T,ee,J,$=!1){let j;return ee?(j=this._createModelData(T,ee.languageId,J,$),this.setMode(j.model,ee)):j=this._createModelData(T,C.PLAINTEXT_LANGUAGE_ID,J,$),this._onModelAdded.fire(j.model),j.model}setMode(T,ee){if(!ee)return;const J=this._models[L(T.uri)];!J||J.setLanguage(ee)}getModels(){const T=[],ee=Object.keys(this._models);for(let J=0,$=ee.length;J<$;J++){const j=ee[J];T.push(this._models[j].model)}return T}getModel(T){const ee=L(T),J=this._models[ee];return J?J.model:null}getSemanticTokensProviderStyling(T){return this._semanticStyling.get(T)}_schemaShouldMaintainUndoRedoElements(T){return T.scheme===c.Schemas.file||T.scheme===c.Schemas.vscodeRemote||T.scheme===c.Schemas.vscodeUserData||T.scheme===c.Schemas.vscodeNotebookCell||T.scheme==="fake-fs"}_onWillDispose(T){const ee=L(T.uri),J=this._models[ee],$=this._undoRedoService.getUriComparisonKey(T.uri)!==T.uri.toString();let j=!1,G=0;if($||this._shouldRestoreUndoStack()&&this._schemaShouldMaintainUndoRedoElements(T.uri)){const Z=this._undoRedoService.getElements(T.uri);if(Z.past.length>0||Z.future.length>0){for(const X of Z.past)(0,r.isEditStackElement)(X)&&X.matchesResource(T.uri)&&(j=!0,G+=X.heapSize(T.uri),X.setModel(T.uri));for(const X of Z.future)(0,r.isEditStackElement)(X)&&X.matchesResource(T.uri)&&(j=!0,G+=X.heapSize(T.uri),X.setModel(T.uri))}}const te=li.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK;if(j)if(!$&&G>te){const Z=J.model.getInitialUndoRedoSnapshot();Z!==null&&this._undoRedoService.restoreSnapshot(Z)}else this._ensureDisposedModelsHeapSize(te-G),this._undoRedoService.setElementsValidFlag(T.uri,!1,Z=>(0,r.isEditStackElement)(Z)&&Z.matchesResource(T.uri)),this._insertDisposedModel(new F(T.uri,J.model.getInitialUndoRedoSnapshot(),Date.now(),$,G,N(T),T.getVersionId(),T.getAlternativeVersionId()));else if(!$){const Z=J.model.getInitialUndoRedoSnapshot();Z!==null&&this._undoRedoService.restoreSnapshot(Z)}delete this._models[ee],J.dispose(),delete this._modelCreationOptionsByLanguageAndResource[T.getLanguageId()+T.uri],this._onModelRemoved.fire(T)}_onDidChangeLanguage(T,ee){const J=ee.oldLanguage,$=T.getLanguageId(),j=this.getCreationOptions(J,T.uri,T.isForSimpleWidget),G=this.getCreationOptions($,T.uri,T.isForSimpleWidget);li._setModelOptionsForModel(T,G,j),this._onModelModeChanged.fire({model:T,oldLanguageId:J})}};O.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20*1024*1024,O=Ie([pe(0,i.IConfigurationService),pe(1,n.ITextResourcePropertiesService),pe(2,s.IThemeService),pe(3,d.ILogService),pe(4,l.IUndoRedoService),pe(5,h.ILanguageService),pe(6,p.ILanguageConfigurationService),pe(7,m.ILanguageFeatureDebounceService),pe(8,E.ILanguageFeaturesService)],O),e.ModelService=O,e.SEMANTIC_HIGHLIGHTING_SETTING_ID="editor.semanticHighlighting";function x(K,T,ee){var J;const $=(J=ee.getValue(e.SEMANTIC_HIGHLIGHTING_SETTING_ID,{overrideIdentifier:K.getLanguageId(),resource:K.uri}))===null||J===void 0?void 0:J.enabled;return typeof $=="boolean"?$:T.getColorTheme().semanticHighlighting}e.isSemanticColoringEnabled=x;let M=class extends v.Disposable{constructor(K,T,ee,J,$,j){super(),this._watchers=Object.create(null),this._semanticStyling=K;const G=X=>{this._watchers[X.uri.toString()]=new B(X,this._semanticStyling,ee,$,j)},te=(X,ie)=>{ie.dispose(),delete this._watchers[X.uri.toString()]},Z=()=>{for(const X of T.getModels()){const ie=this._watchers[X.uri.toString()];x(X,ee,J)?ie||G(X):ie&&te(X,ie)}};this._register(T.onModelAdded(X=>{x(X,ee,J)&&G(X)})),this._register(T.onModelRemoved(X=>{const ie=this._watchers[X.uri.toString()];ie&&te(X,ie)})),this._register(J.onDidChangeConfiguration(X=>{X.affectsConfiguration(e.SEMANTIC_HIGHLIGHTING_SETTING_ID)&&Z()})),this._register(ee.onDidColorThemeChange(Z))}dispose(){for(const K of Object.values(this._watchers))K.dispose();super.dispose()}};M=Ie([pe(1,u.IModelService),pe(2,s.IThemeService),pe(3,i.IConfigurationService),pe(4,m.ILanguageFeatureDebounceService),pe(5,E.ILanguageFeaturesService)],M);class P extends v.Disposable{constructor(T,ee,J){super(),this._themeService=T,this._languageService=ee,this._logService=J,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange(()=>{this._caches=new WeakMap}))}get(T){return this._caches.has(T)||this._caches.set(T,new g.SemanticTokensProviderStyling(T.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(T)}}class A{constructor(T,ee,J){this.provider=T,this.resultId=ee,this.data=J}dispose(){this.provider.releaseDocumentSemanticTokens(this.resultId)}}let B=class Jt extends v.Disposable{constructor(T,ee,J,$,j){super(),this._isDisposed=!1,this._model=T,this._semanticStyling=ee,this._provider=j.documentSemanticTokensProvider,this._debounceInformation=$.for(this._provider,"DocumentSemanticTokens",{min:Jt.REQUEST_MIN_DELAY,max:Jt.REQUEST_MAX_DELAY}),this._fetchDocumentSemanticTokens=this._register(new t.RunOnceScheduler(()=>this._fetchDocumentSemanticTokensNow(),Jt.REQUEST_MIN_DELAY)),this._currentDocumentResponse=null,this._currentDocumentRequestCancellationTokenSource=null,this._documentProvidersChangeListeners=[],this._register(this._model.onDidChangeContent(()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(this._model.onDidChangeLanguage(()=>{this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(0)}));const G=()=>{(0,v.dispose)(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[];for(const te of this._provider.all(T))typeof te.onDidChange=="function"&&this._documentProvidersChangeListeners.push(te.onDidChange(()=>this._fetchDocumentSemanticTokens.schedule(0)))};G(),this._register(this._provider.onDidChange(()=>{G(),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(J.onDidColorThemeChange(te=>{this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._fetchDocumentSemanticTokens.schedule(0)}dispose(){this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._isDisposed=!0,super.dispose()}_fetchDocumentSemanticTokensNow(){if(this._currentDocumentRequestCancellationTokenSource)return;if(!(0,f.hasDocumentSemanticTokensProvider)(this._provider,this._model)){this._currentDocumentResponse&&this._model.tokenization.setSemanticTokens(null,!1);return}const T=new o.CancellationTokenSource,ee=this._currentDocumentResponse?this._currentDocumentResponse.provider:null,J=this._currentDocumentResponse&&this._currentDocumentResponse.resultId||null,$=(0,f.getDocumentSemanticTokens)(this._provider,this._model,ee,J,T.token);this._currentDocumentRequestCancellationTokenSource=T;const j=[],G=this._model.onDidChangeContent(Z=>{j.push(Z)}),te=new S.StopWatch(!1);$.then(Z=>{if(this._debounceInformation.update(this._model,te.elapsed()),this._currentDocumentRequestCancellationTokenSource=null,G.dispose(),!Z)this._setDocumentSemanticTokens(null,null,null,j);else{const{provider:X,tokens:ie}=Z,H=this._semanticStyling.get(X);this._setDocumentSemanticTokens(X,ie||null,H,j)}},Z=>{Z&&(D.isCancellationError(Z)||typeof Z.message=="string"&&Z.message.indexOf("busy")!==-1)||D.onUnexpectedError(Z),this._currentDocumentRequestCancellationTokenSource=null,G.dispose(),j.length>0&&(this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model)))})}static _copy(T,ee,J,$,j){j=Math.min(j,J.length-$,T.length-ee);for(let G=0;G<j;G++)J[$+G]=T[ee+G]}_setDocumentSemanticTokens(T,ee,J,$){const j=this._currentDocumentResponse,G=()=>{$.length>0&&!this._fetchDocumentSemanticTokens.isScheduled()&&this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))};if(this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._isDisposed){T&&ee&&T.releaseDocumentSemanticTokens(ee.resultId);return}if(!T||!J){this._model.tokenization.setSemanticTokens(null,!1);return}if(!ee){this._model.tokenization.setSemanticTokens(null,!0),G();return}if((0,f.isSemanticTokensEdits)(ee)){if(!j){this._model.tokenization.setSemanticTokens(null,!0);return}if(ee.edits.length===0)ee={resultId:ee.resultId,data:j.data};else{let te=0;for(const ae of ee.edits)te+=(ae.data?ae.data.length:0)-ae.deleteCount;const Z=j.data,X=new Uint32Array(Z.length+te);let ie=Z.length,H=X.length;for(let ae=ee.edits.length-1;ae>=0;ae--){const Y=ee.edits[ae];if(Y.start>Z.length){J.warnInvalidEditStart(j.resultId,ee.resultId,ae,Y.start,Z.length),this._model.tokenization.setSemanticTokens(null,!0);return}const U=ie-(Y.start+Y.deleteCount);U>0&&(Jt._copy(Z,ie-U,X,H-U,U),H-=U),Y.data&&(Jt._copy(Y.data,0,X,H-Y.data.length,Y.data.length),H-=Y.data.length),ie=Y.start}ie>0&&Jt._copy(Z,0,X,0,ie),ee={resultId:ee.resultId,data:X}}}if((0,f.isSemanticTokens)(ee)){this._currentDocumentResponse=new A(T,ee.resultId,ee.data);const te=(0,g.toMultilineTokens2)(ee,J,this._model.getLanguageId());if($.length>0)for(const Z of $)for(const X of te)for(const ie of Z.changes)X.applyEdit(ie.range,ie.text);this._model.tokenization.setSemanticTokens(te,!0)}else this._model.tokenization.setSemanticTokens(null,!0);G()}};B.REQUEST_MIN_DELAY=300,B.REQUEST_MAX_DELAY=2e3,B=Ie([pe(2,s.IThemeService),pe(3,m.ILanguageFeatureDebounceService),pe(4,E.ILanguageFeaturesService)],B),e.ModelSemanticColoring=B}),define(oe[738],se([1,0,18,11,3,185,35,99,187,444,238,74]),function(q,e,y,v,k,D,w,b,C,h,u,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewModelLinesFromModelAsIs=e.ViewModelLinesFromProjectedModel=void 0;class i{constructor(c,g,f,_,p,m,S,E,L){this._editorId=c,this.model=g,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=f,this._monospaceLineBreaksComputerFactory=_,this.fontInfo=p,this.tabSize=m,this.wrappingStrategy=S,this.wrappingColumn=E,this.wrappingIndent=L,this._constructLines(!0,null)}dispose(){this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[])}createCoordinatesConverter(){return new d(this)}_constructLines(c,g){this.modelLineProjections=[],c&&(this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[]));const f=this.model.getLinesContent(),_=this.model.getInjectedTextDecorations(this._editorId),p=f.length,m=this.createLineBreaksComputer(),S=new y.ArrayQueue(b.LineInjectedText.fromDecorations(_));for(let x=0;x<p;x++){const M=S.takeWhile(P=>P.lineNumber===x+1);m.addRequest(f[x],M,g?g[x]:null)}const E=m.finalize(),L=[],N=this.hiddenAreasDecorationIds.map(x=>this.model.getDecorationRange(x)).sort(k.Range.compareRangesUsingStarts);let I=1,R=0,F=-1,O=F+1<N.length?R+1:p+2;for(let x=0;x<p;x++){const M=x+1;M===O&&(F++,I=N[F].startLineNumber,R=N[F].endLineNumber,O=F+1<N.length?R+1:p+2);const P=M>=I&&M<=R,A=(0,h.createModelLineProjection)(E[x],!P);L[x]=A.getViewLineCount(),this.modelLineProjections[x]=A}this._validModelVersionId=this.model.getVersionId(),this.projectedModelLineLineCounts=new u.ConstantTimePrefixSumComputer(L)}getHiddenAreas(){return this.hiddenAreasDecorationIds.map(c=>this.model.getDecorationRange(c))}setHiddenAreas(c){const g=c.map(R=>this.model.validateRange(R)),f=t(g),_=this.hiddenAreasDecorationIds.map(R=>this.model.getDecorationRange(R)).sort(k.Range.compareRangesUsingStarts);if(f.length===_.length){let R=!1;for(let F=0;F<f.length;F++)if(!f[F].equalsRange(_[F])){R=!0;break}if(!R)return!1}const p=f.map(R=>({range:R,options:w.ModelDecorationOptions.EMPTY}));this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,p);const m=f;let S=1,E=0,L=-1,N=L+1<m.length?E+1:this.modelLineProjections.length+2,I=!1;for(let R=0;R<this.modelLineProjections.length;R++){const F=R+1;F===N&&(L++,S=m[L].startLineNumber,E=m[L].endLineNumber,N=L+1<m.length?E+1:this.modelLineProjections.length+2);let O=!1;if(F>=S&&F<=E?this.modelLineProjections[R].isVisible()&&(this.modelLineProjections[R]=this.modelLineProjections[R].setVisible(!1),O=!0):(I=!0,this.modelLineProjections[R].isVisible()||(this.modelLineProjections[R]=this.modelLineProjections[R].setVisible(!0),O=!0)),O){const x=this.modelLineProjections[R].getViewLineCount();this.projectedModelLineLineCounts.setValue(R,x)}}return I||this.setHiddenAreas([]),!0}modelPositionIsVisible(c,g){return c<1||c>this.modelLineProjections.length?!1:this.modelLineProjections[c-1].isVisible()}getModelLineViewLineCount(c){return c<1||c>this.modelLineProjections.length?1:this.modelLineProjections[c-1].getViewLineCount()}setTabSize(c){return this.tabSize===c?!1:(this.tabSize=c,this._constructLines(!1,null),!0)}setWrappingSettings(c,g,f,_){const p=this.fontInfo.equals(c),m=this.wrappingStrategy===g,S=this.wrappingColumn===f,E=this.wrappingIndent===_;if(p&&m&&S&&E)return!1;const L=p&&m&&!S&&E;this.fontInfo=c,this.wrappingStrategy=g,this.wrappingColumn=f,this.wrappingIndent=_;let N=null;if(L){N=[];for(let I=0,R=this.modelLineProjections.length;I<R;I++)N[I]=this.modelLineProjections[I].getProjectionData()}return this._constructLines(!1,N),!0}createLineBreaksComputer(){return(this.wrappingStrategy==="advanced"?this._domLineBreaksComputerFactory:this._monospaceLineBreaksComputerFactory).createLineBreaksComputer(this.fontInfo,this.tabSize,this.wrappingColumn,this.wrappingIndent)}onModelFlushed(){this._constructLines(!0,null)}onModelLinesDeleted(c,g,f){if(!c||c<=this._validModelVersionId)return null;const _=g===1?1:this.projectedModelLineLineCounts.getPrefixSum(g-1)+1,p=this.projectedModelLineLineCounts.getPrefixSum(f);return this.modelLineProjections.splice(g-1,f-g+1),this.projectedModelLineLineCounts.removeValues(g-1,f-g+1),new C.ViewLinesDeletedEvent(_,p)}onModelLinesInserted(c,g,f,_){if(!c||c<=this._validModelVersionId)return null;const p=g>2&&!this.modelLineProjections[g-2].isVisible(),m=g===1?1:this.projectedModelLineLineCounts.getPrefixSum(g-1)+1;let S=0;const E=[],L=[];for(let N=0,I=_.length;N<I;N++){const R=(0,h.createModelLineProjection)(_[N],!p);E.push(R);const F=R.getViewLineCount();S+=F,L[N]=F}return this.modelLineProjections=this.modelLineProjections.slice(0,g-1).concat(E).concat(this.modelLineProjections.slice(g-1)),this.projectedModelLineLineCounts.insertValues(g-1,L),new C.ViewLinesInsertedEvent(m,m+S-1)}onModelLineChanged(c,g,f){if(c!==null&&c<=this._validModelVersionId)return[!1,null,null,null];const _=g-1,p=this.modelLineProjections[_].getViewLineCount(),m=this.modelLineProjections[_].isVisible(),S=(0,h.createModelLineProjection)(f,m);this.modelLineProjections[_]=S;const E=this.modelLineProjections[_].getViewLineCount();let L=!1,N=0,I=-1,R=0,F=-1,O=0,x=-1;p>E?(N=this.projectedModelLineLineCounts.getPrefixSum(g-1)+1,I=N+E-1,O=I+1,x=O+(p-E)-1,L=!0):p<E?(N=this.projectedModelLineLineCounts.getPrefixSum(g-1)+1,I=N+p-1,R=I+1,F=R+(E-p)-1,L=!0):(N=this.projectedModelLineLineCounts.getPrefixSum(g-1)+1,I=N+E-1),this.projectedModelLineLineCounts.setValue(_,E);const M=N<=I?new C.ViewLinesChangedEvent(N,I-N+1):null,P=R<=F?new C.ViewLinesInsertedEvent(R,F):null,A=O<=x?new C.ViewLinesDeletedEvent(O,x):null;return[L,M,P,A]}acceptVersionId(c){this._validModelVersionId=c,this.modelLineProjections.length===1&&!this.modelLineProjections[0].isVisible()&&this.setHiddenAreas([])}getViewLineCount(){return this.projectedModelLineLineCounts.getTotalSum()}_toValidViewLineNumber(c){if(c<1)return 1;const g=this.getViewLineCount();return c>g?g:c|0}getActiveIndentGuide(c,g,f){c=this._toValidViewLineNumber(c),g=this._toValidViewLineNumber(g),f=this._toValidViewLineNumber(f);const _=this.convertViewPositionToModelPosition(c,this.getViewLineMinColumn(c)),p=this.convertViewPositionToModelPosition(g,this.getViewLineMinColumn(g)),m=this.convertViewPositionToModelPosition(f,this.getViewLineMinColumn(f)),S=this.model.guides.getActiveIndentGuide(_.lineNumber,p.lineNumber,m.lineNumber),E=this.convertModelPositionToViewPosition(S.startLineNumber,1),L=this.convertModelPositionToViewPosition(S.endLineNumber,this.model.getLineMaxColumn(S.endLineNumber));return{startLineNumber:E.lineNumber,endLineNumber:L.lineNumber,indent:S.indent}}getViewLineInfo(c){c=this._toValidViewLineNumber(c);const g=this.projectedModelLineLineCounts.getIndexOf(c-1),f=g.index,_=g.remainder;return new o(f+1,_)}getMinColumnOfViewLine(c){return this.modelLineProjections[c.modelLineNumber-1].getViewLineMinColumn(this.model,c.modelLineNumber,c.modelLineWrappedLineIdx)}getMaxColumnOfViewLine(c){return this.modelLineProjections[c.modelLineNumber-1].getViewLineMaxColumn(this.model,c.modelLineNumber,c.modelLineWrappedLineIdx)}getModelStartPositionOfViewLine(c){const g=this.modelLineProjections[c.modelLineNumber-1],f=g.getViewLineMinColumn(this.model,c.modelLineNumber,c.modelLineWrappedLineIdx),_=g.getModelColumnOfViewPosition(c.modelLineWrappedLineIdx,f);return new v.Position(c.modelLineNumber,_)}getModelEndPositionOfViewLine(c){const g=this.modelLineProjections[c.modelLineNumber-1],f=g.getViewLineMaxColumn(this.model,c.modelLineNumber,c.modelLineWrappedLineIdx),_=g.getModelColumnOfViewPosition(c.modelLineWrappedLineIdx,f);return new v.Position(c.modelLineNumber,_)}getViewLineInfosGroupedByModelRanges(c,g){const f=this.getViewLineInfo(c),_=this.getViewLineInfo(g),p=new Array;let m=this.getModelStartPositionOfViewLine(f),S=new Array;for(let E=f.modelLineNumber;E<=_.modelLineNumber;E++){const L=this.modelLineProjections[E-1];if(L.isVisible()){const N=E===f.modelLineNumber?f.modelLineWrappedLineIdx:0,I=E===_.modelLineNumber?_.modelLineWrappedLineIdx+1:L.getViewLineCount();for(let R=N;R<I;R++)S.push(new o(E,R))}if(!L.isVisible()&&m){const N=new v.Position(E-1,this.model.getLineMaxColumn(E-1)+1),I=k.Range.fromPositions(m,N);p.push(new s(I,S)),S=[],m=null}else L.isVisible()&&!m&&(m=new v.Position(E,1))}if(m){const E=k.Range.fromPositions(m,this.getModelEndPositionOfViewLine(_));p.push(new s(E,S))}return p}getViewLinesBracketGuides(c,g,f,_){const p=f?this.convertViewPositionToModelPosition(f.lineNumber,f.column):null,m=[];for(const S of this.getViewLineInfosGroupedByModelRanges(c,g)){const E=S.modelRange.startLineNumber,L=this.model.guides.getLinesBracketGuides(E,S.modelRange.endLineNumber,p,_);for(const N of S.viewLines){const I=L[N.modelLineNumber-E].map(R=>{if(R.forWrappedLinesAfterColumn!==-1&&this.modelLineProjections[N.modelLineNumber-1].getViewPositionOfModelPosition(0,R.forWrappedLinesAfterColumn).lineNumber>=N.modelLineWrappedLineIdx||R.forWrappedLinesBeforeOrAtColumn!==-1&&this.modelLineProjections[N.modelLineNumber-1].getViewPositionOfModelPosition(0,R.forWrappedLinesBeforeOrAtColumn).lineNumber<N.modelLineWrappedLineIdx)return;if(!R.horizontalLine)return R;let F=-1;if(R.column!==-1){const M=this.modelLineProjections[N.modelLineNumber-1].getViewPositionOfModelPosition(0,R.column);if(M.lineNumber===N.modelLineWrappedLineIdx)F=M.column;else if(M.lineNumber<N.modelLineWrappedLineIdx)F=this.getMinColumnOfViewLine(N);else if(M.lineNumber>N.modelLineWrappedLineIdx)return}const O=this.convertModelPositionToViewPosition(N.modelLineNumber,R.horizontalLine.endColumn),x=this.modelLineProjections[N.modelLineNumber-1].getViewPositionOfModelPosition(0,R.horizontalLine.endColumn);return x.lineNumber===N.modelLineWrappedLineIdx?new D.IndentGuide(R.visibleColumn,F,R.className,new D.IndentGuideHorizontalLine(R.horizontalLine.top,O.column),-1,-1):x.lineNumber<N.modelLineWrappedLineIdx||R.visibleColumn!==-1?void 0:new D.IndentGuide(R.visibleColumn,F,R.className,new D.IndentGuideHorizontalLine(R.horizontalLine.top,this.getMaxColumnOfViewLine(N)),-1,-1)});m.push(I.filter(R=>!!R))}}return m}getViewLinesIndentGuides(c,g){c=this._toValidViewLineNumber(c),g=this._toValidViewLineNumber(g);const f=this.convertViewPositionToModelPosition(c,this.getViewLineMinColumn(c)),_=this.convertViewPositionToModelPosition(g,this.getViewLineMaxColumn(g));let p=[];const m=[],S=[],E=f.lineNumber-1,L=_.lineNumber-1;let N=null;for(let O=E;O<=L;O++){const x=this.modelLineProjections[O];if(x.isVisible()){const M=x.getViewLineNumberOfModelPosition(0,O===E?f.column:1),P=x.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(O+1)),A=P-M+1;let B=0;A>1&&x.getViewLineMinColumn(this.model,O+1,P)===1&&(B=M===0?1:2),m.push(A),S.push(B),N===null&&(N=new v.Position(O+1,0))}else N!==null&&(p=p.concat(this.model.guides.getLinesIndentGuides(N.lineNumber,O)),N=null)}N!==null&&(p=p.concat(this.model.guides.getLinesIndentGuides(N.lineNumber,_.lineNumber)),N=null);const I=g-c+1,R=new Array(I);let F=0;for(let O=0,x=p.length;O<x;O++){let M=p[O];const P=Math.min(I-F,m[O]),A=S[O];let B;A===2?B=0:A===1?B=1:B=P;for(let K=0;K<P;K++)K===B&&(M=0),R[F++]=M}return R}getViewLineContent(c){const g=this.getViewLineInfo(c);return this.modelLineProjections[g.modelLineNumber-1].getViewLineContent(this.model,g.modelLineNumber,g.modelLineWrappedLineIdx)}getViewLineLength(c){const g=this.getViewLineInfo(c);return this.modelLineProjections[g.modelLineNumber-1].getViewLineLength(this.model,g.modelLineNumber,g.modelLineWrappedLineIdx)}getViewLineMinColumn(c){const g=this.getViewLineInfo(c);return this.modelLineProjections[g.modelLineNumber-1].getViewLineMinColumn(this.model,g.modelLineNumber,g.modelLineWrappedLineIdx)}getViewLineMaxColumn(c){const g=this.getViewLineInfo(c);return this.modelLineProjections[g.modelLineNumber-1].getViewLineMaxColumn(this.model,g.modelLineNumber,g.modelLineWrappedLineIdx)}getViewLineData(c){const g=this.getViewLineInfo(c);return this.modelLineProjections[g.modelLineNumber-1].getViewLineData(this.model,g.modelLineNumber,g.modelLineWrappedLineIdx)}getViewLinesData(c,g,f){c=this._toValidViewLineNumber(c),g=this._toValidViewLineNumber(g);const _=this.projectedModelLineLineCounts.getIndexOf(c-1);let p=c;const m=_.index,S=_.remainder,E=[];for(let L=m,N=this.model.getLineCount();L<N;L++){const I=this.modelLineProjections[L];if(!I.isVisible())continue;const R=L===m?S:0;let F=I.getViewLineCount()-R,O=!1;if(p+F>g&&(O=!0,F=g-p+1),I.getViewLinesData(this.model,L+1,R,F,p-c,f,E),p+=F,O)break}return E}validateViewPosition(c,g,f){c=this._toValidViewLineNumber(c);const _=this.projectedModelLineLineCounts.getIndexOf(c-1),p=_.index,m=_.remainder,S=this.modelLineProjections[p],E=S.getViewLineMinColumn(this.model,p+1,m),L=S.getViewLineMaxColumn(this.model,p+1,m);g<E&&(g=E),g>L&&(g=L);const N=S.getModelColumnOfViewPosition(m,g);return this.model.validatePosition(new v.Position(p+1,N)).equals(f)?new v.Position(c,g):this.convertModelPositionToViewPosition(f.lineNumber,f.column)}validateViewRange(c,g){const f=this.validateViewPosition(c.startLineNumber,c.startColumn,g.getStartPosition()),_=this.validateViewPosition(c.endLineNumber,c.endColumn,g.getEndPosition());return new k.Range(f.lineNumber,f.column,_.lineNumber,_.column)}convertViewPositionToModelPosition(c,g){const f=this.getViewLineInfo(c),_=this.modelLineProjections[f.modelLineNumber-1].getModelColumnOfViewPosition(f.modelLineWrappedLineIdx,g);return this.model.validatePosition(new v.Position(f.modelLineNumber,_))}convertViewRangeToModelRange(c){const g=this.convertViewPositionToModelPosition(c.startLineNumber,c.startColumn),f=this.convertViewPositionToModelPosition(c.endLineNumber,c.endColumn);return new k.Range(g.lineNumber,g.column,f.lineNumber,f.column)}convertModelPositionToViewPosition(c,g,f=2){const _=this.model.validatePosition(new v.Position(c,g)),p=_.lineNumber,m=_.column;let S=p-1,E=!1;for(;S>0&&!this.modelLineProjections[S].isVisible();)S--,E=!0;if(S===0&&!this.modelLineProjections[S].isVisible())return new v.Position(1,1);const L=1+this.projectedModelLineLineCounts.getPrefixSum(S);let N;return E?N=this.modelLineProjections[S].getViewPositionOfModelPosition(L,this.model.getLineMaxColumn(S+1),f):N=this.modelLineProjections[p-1].getViewPositionOfModelPosition(L,m,f),N}convertModelRangeToViewRange(c,g=0){if(c.isEmpty()){const f=this.convertModelPositionToViewPosition(c.startLineNumber,c.startColumn,g);return k.Range.fromPositions(f)}else{const f=this.convertModelPositionToViewPosition(c.startLineNumber,c.startColumn,1),_=this.convertModelPositionToViewPosition(c.endLineNumber,c.endColumn,0);return new k.Range(f.lineNumber,f.column,_.lineNumber,_.column)}}getViewLineNumberOfModelPosition(c,g){let f=c-1;if(this.modelLineProjections[f].isVisible()){const p=1+this.projectedModelLineLineCounts.getPrefixSum(f);return this.modelLineProjections[f].getViewLineNumberOfModelPosition(p,g)}for(;f>0&&!this.modelLineProjections[f].isVisible();)f--;if(f===0&&!this.modelLineProjections[f].isVisible())return 1;const _=1+this.projectedModelLineLineCounts.getPrefixSum(f);return this.modelLineProjections[f].getViewLineNumberOfModelPosition(_,this.model.getLineMaxColumn(f+1))}getDecorationsInRange(c,g,f){const _=this.convertViewPositionToModelPosition(c.startLineNumber,c.startColumn),p=this.convertViewPositionToModelPosition(c.endLineNumber,c.endColumn);if(p.lineNumber-_.lineNumber<=c.endLineNumber-c.startLineNumber)return this.model.getDecorationsInRange(new k.Range(_.lineNumber,1,p.lineNumber,p.column),g,f);let m=[];const S=_.lineNumber-1,E=p.lineNumber-1;let L=null;for(let F=S;F<=E;F++)if(this.modelLineProjections[F].isVisible())L===null&&(L=new v.Position(F+1,F===S?_.column:1));else if(L!==null){const O=this.model.getLineMaxColumn(F);m=m.concat(this.model.getDecorationsInRange(new k.Range(L.lineNumber,L.column,F,O),g,f)),L=null}L!==null&&(m=m.concat(this.model.getDecorationsInRange(new k.Range(L.lineNumber,L.column,p.lineNumber,p.column),g,f)),L=null),m.sort((F,O)=>{const x=k.Range.compareRangesUsingStarts(F.range,O.range);return x===0?F.id<O.id?-1:F.id>O.id?1:0:x});const N=[];let I=0,R=null;for(const F of m){const O=F.id;R!==O&&(R=O,N[I++]=F)}return N}getInjectedTextAt(c){const g=this.getViewLineInfo(c.lineNumber);return this.modelLineProjections[g.modelLineNumber-1].getInjectedTextAt(g.modelLineWrappedLineIdx,c.column)}normalizePosition(c,g){const f=this.getViewLineInfo(c.lineNumber);return this.modelLineProjections[f.modelLineNumber-1].normalizePosition(f.modelLineWrappedLineIdx,c,g)}getLineIndentColumn(c){const g=this.getViewLineInfo(c);return g.modelLineWrappedLineIdx===0?this.model.getLineIndentColumn(g.modelLineNumber):0}}e.ViewModelLinesFromProjectedModel=i;function t(r){if(r.length===0)return[];const c=r.slice();c.sort(k.Range.compareRangesUsingStarts);const g=[];let f=c[0].startLineNumber,_=c[0].endLineNumber;for(let p=1,m=c.length;p<m;p++){const S=c[p];S.startLineNumber>_+1?(g.push(new k.Range(f,1,_,1)),f=S.startLineNumber,_=S.endLineNumber):S.endLineNumber>_&&(_=S.endLineNumber)}return g.push(new k.Range(f,1,_,1)),g}class o{constructor(c,g){this.modelLineNumber=c,this.modelLineWrappedLineIdx=g}}class s{constructor(c,g){this.modelRange=c,this.viewLines=g}}class d{constructor(c){this._lines=c}convertViewPositionToModelPosition(c){return this._lines.convertViewPositionToModelPosition(c.lineNumber,c.column)}convertViewRangeToModelRange(c){return this._lines.convertViewRangeToModelRange(c)}validateViewPosition(c,g){return this._lines.validateViewPosition(c.lineNumber,c.column,g)}validateViewRange(c,g){return this._lines.validateViewRange(c,g)}convertModelPositionToViewPosition(c,g){return this._lines.convertModelPositionToViewPosition(c.lineNumber,c.column,g)}convertModelRangeToViewRange(c,g){return this._lines.convertModelRangeToViewRange(c,g)}modelPositionIsVisible(c){return this._lines.modelPositionIsVisible(c.lineNumber,c.column)}getModelLineViewLineCount(c){return this._lines.getModelLineViewLineCount(c)}getViewLineNumberOfModelPosition(c,g){return this._lines.getViewLineNumberOfModelPosition(c,g)}}class l{constructor(c){this.model=c}dispose(){}createCoordinatesConverter(){return new a(this)}getHiddenAreas(){return[]}setHiddenAreas(c){return!1}setTabSize(c){return!1}setWrappingSettings(c,g,f,_){return!1}createLineBreaksComputer(){const c=[];return{addRequest:(g,f,_)=>{c.push(null)},finalize:()=>c}}onModelFlushed(){}onModelLinesDeleted(c,g,f){return new C.ViewLinesDeletedEvent(g,f)}onModelLinesInserted(c,g,f,_){return new C.ViewLinesInsertedEvent(g,f)}onModelLineChanged(c,g,f){return[!1,new C.ViewLinesChangedEvent(g,1),null,null]}acceptVersionId(c){}getViewLineCount(){return this.model.getLineCount()}getActiveIndentGuide(c,g,f){return{startLineNumber:c,endLineNumber:c,indent:0}}getViewLinesBracketGuides(c,g,f){return new Array(g-c+1).fill([])}getViewLinesIndentGuides(c,g){const f=g-c+1,_=new Array(f);for(let p=0;p<f;p++)_[p]=0;return _}getViewLineContent(c){return this.model.getLineContent(c)}getViewLineLength(c){return this.model.getLineLength(c)}getViewLineMinColumn(c){return this.model.getLineMinColumn(c)}getViewLineMaxColumn(c){return this.model.getLineMaxColumn(c)}getViewLineData(c){const g=this.model.tokenization.getLineTokens(c),f=g.getLineContent();return new n.ViewLineData(f,!1,1,f.length+1,0,g.inflate(),null)}getViewLinesData(c,g,f){const _=this.model.getLineCount();c=Math.min(Math.max(1,c),_),g=Math.min(Math.max(1,g),_);const p=[];for(let m=c;m<=g;m++){const S=m-c;p[S]=f[S]?this.getViewLineData(m):null}return p}getDecorationsInRange(c,g,f){return this.model.getDecorationsInRange(c,g,f)}normalizePosition(c,g){return this.model.normalizePosition(c,g)}getLineIndentColumn(c){return this.model.getLineIndentColumn(c)}getInjectedTextAt(c){return null}}e.ViewModelLinesFromModelAsIs=l;class a{constructor(c){this._lines=c}_validPosition(c){return this._lines.model.validatePosition(c)}_validRange(c){return this._lines.model.validateRange(c)}convertViewPositionToModelPosition(c){return this._validPosition(c)}convertViewRangeToModelRange(c){return this._validRange(c)}validateViewPosition(c,g){return this._validPosition(g)}validateViewRange(c,g){return this._validRange(g)}convertModelPositionToViewPosition(c){return this._validPosition(c)}convertModelRangeToViewRange(c){return this._validRange(c)}modelPositionIsVisible(c){const g=this._lines.model.getLineCount();return!(c.lineNumber<1||c.lineNumber>g)}getModelLineViewLineCount(c){return 1}getViewLineNumberOfModelPosition(c,g){return c}}}),define(oe[739],se([1,0,18,10,31,2,17,8,36,291,61,11,3,99,28,72,272,187,514,274,74,278,204,738]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r,c,g,f,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewModel=void 0;const p=!0;class m extends D.Disposable{constructor(N,I,R,F,O,x,M,P){if(super(),this.languageConfigurationService=M,this._themeService=P,this._editorId=N,this._configuration=I,this.model=R,this._eventDispatcher=new f.ViewModelEventDispatcher,this.onEvent=this._eventDispatcher.onEvent,this.cursorConfig=new u.CursorConfiguration(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._tokenizeViewportSoon=this._register(new v.RunOnceScheduler(()=>this.tokenizeViewport(),50)),this._updateConfigurationViewLineCount=this._register(new v.RunOnceScheduler(()=>this._updateConfigurationViewLineCountNow(),0)),this._hasFocus=!1,this._viewportStart=S.create(this.model),p&&this.model.isTooLargeForTokenization())this._lines=new _.ViewModelLinesFromModelAsIs(this.model);else{const A=this._configuration.options,B=A.get(46),K=A.get(127),T=A.get(134),ee=A.get(126);this._lines=new _.ViewModelLinesFromProjectedModel(this._editorId,this.model,F,O,B,this.model.getOptions().tabSize,K,T.wrappingColumn,ee)}this.coordinatesConverter=this._lines.createCoordinatesConverter(),this._cursor=this._register(new h.CursorsController(R,this,this.coordinatesConverter,this.cursorConfig)),this.viewLayout=this._register(new a.ViewLayout(this._configuration,this.getLineCount(),x)),this._register(this.viewLayout.onDidScroll(A=>{A.scrollTopChanged&&this._tokenizeViewportSoon.schedule(),A.scrollTopChanged&&this._viewportStart.invalidate(),this._eventDispatcher.emitSingleViewEvent(new l.ViewScrollChangedEvent(A)),this._eventDispatcher.emitOutgoingEvent(new f.ScrollChangedEvent(A.oldScrollWidth,A.oldScrollLeft,A.oldScrollHeight,A.oldScrollTop,A.scrollWidth,A.scrollLeft,A.scrollHeight,A.scrollTop))})),this._register(this.viewLayout.onDidContentSizeChange(A=>{this._eventDispatcher.emitOutgoingEvent(A)})),this._decorations=new g.ViewModelDecorations(this._editorId,this.model,this._configuration,this._lines,this.coordinatesConverter),this._registerModelEvents(),this._register(this._configuration.onDidChangeFast(A=>{try{const B=this._eventDispatcher.beginEmitViewEvents();this._onConfigurationChanged(B,A)}finally{this._eventDispatcher.endEmitViewEvents()}})),this._register(r.MinimapTokensColorTracker.getInstance().onDidChange(()=>{this._eventDispatcher.emitSingleViewEvent(new l.ViewTokensColorsChangedEvent)})),this._register(this._themeService.onDidColorThemeChange(A=>{this._invalidateDecorationsColorCache(),this._eventDispatcher.emitSingleViewEvent(new l.ViewThemeChangedEvent(A))})),this._updateConfigurationViewLineCountNow()}dispose(){super.dispose(),this._decorations.dispose(),this._lines.dispose(),this._viewportStart.dispose(),this._eventDispatcher.dispose()}createLineBreaksComputer(){return this._lines.createLineBreaksComputer()}addViewEventHandler(N){this._eventDispatcher.addViewEventHandler(N)}removeViewEventHandler(N){this._eventDispatcher.removeViewEventHandler(N)}_updateConfigurationViewLineCountNow(){this._configuration.setViewLineCount(this._lines.getViewLineCount())}tokenizeViewport(){const N=this.viewLayout.getLinesViewportData(),I=new i.Range(N.startLineNumber,this.getLineMinColumn(N.startLineNumber),N.endLineNumber,this.getLineMaxColumn(N.endLineNumber)),R=this._toModelVisibleRanges(I);for(const F of R)this.model.tokenization.tokenizeViewport(F.startLineNumber,F.endLineNumber)}setHasFocus(N){this._hasFocus=N,this._cursor.setHasFocus(N),this._eventDispatcher.emitSingleViewEvent(new l.ViewFocusChangedEvent(N)),this._eventDispatcher.emitOutgoingEvent(new f.FocusChangedEvent(!N,N))}onCompositionStart(){this._eventDispatcher.emitSingleViewEvent(new l.ViewCompositionStartEvent)}onCompositionEnd(){this._eventDispatcher.emitSingleViewEvent(new l.ViewCompositionEndEvent)}_onConfigurationChanged(N,I){let R=null;if(this._viewportStart.isValid){const B=new n.Position(this._viewportStart.viewLineNumber,this.getLineMinColumn(this._viewportStart.viewLineNumber));R=this.coordinatesConverter.convertViewPositionToModelPosition(B)}let F=!1;const O=this._configuration.options,x=O.get(46),M=O.get(127),P=O.get(134),A=O.get(126);if(this._lines.setWrappingSettings(x,M,P.wrappingColumn,A)&&(N.emitViewEvent(new l.ViewFlushedEvent),N.emitViewEvent(new l.ViewLineMappingChangedEvent),N.emitViewEvent(new l.ViewDecorationsChangedEvent(null)),this._cursor.onLineMappingChanged(N),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.getCurrentScrollTop()!==0&&(F=!0),this._updateConfigurationViewLineCount.schedule()),I.hasChanged(83)&&(this._decorations.reset(),N.emitViewEvent(new l.ViewDecorationsChangedEvent(null))),N.emitViewEvent(new l.ViewConfigurationChangedEvent(I)),this.viewLayout.onConfigurationChanged(I),F&&R){const B=this.coordinatesConverter.convertModelPositionToViewPosition(R),K=this.viewLayout.getVerticalOffsetForLineNumber(B.lineNumber);this.viewLayout.setScrollPosition({scrollTop:K+this._viewportStart.startLineDelta},1)}u.CursorConfiguration.shouldRecreate(I)&&(this.cursorConfig=new u.CursorConfiguration(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig))}_registerModelEvents(){this._register(this.model.onDidChangeContentOrInjectedText(N=>{try{const R=this._eventDispatcher.beginEmitViewEvents();let F=!1,O=!1;const x=N instanceof t.InternalModelContentChangeEvent?N.rawContentChangedEvent.changes:N.changes,M=N instanceof t.InternalModelContentChangeEvent?N.rawContentChangedEvent.versionId:null,P=this._lines.createLineBreaksComputer();for(const K of x)switch(K.changeType){case 4:{for(let T=0;T<K.detail.length;T++){const ee=K.detail[T];let J=K.injectedTexts[T];J&&(J=J.filter($=>!$.ownerId||$.ownerId===this._editorId)),P.addRequest(ee,J,null)}break}case 2:{let T=null;K.injectedText&&(T=K.injectedText.filter(ee=>!ee.ownerId||ee.ownerId===this._editorId)),P.addRequest(K.detail,T,null);break}}const A=P.finalize(),B=new y.ArrayQueue(A);for(const K of x)switch(K.changeType){case 1:{this._lines.onModelFlushed(),R.emitViewEvent(new l.ViewFlushedEvent),this._decorations.reset(),this.viewLayout.onFlushed(this.getLineCount()),F=!0;break}case 3:{const T=this._lines.onModelLinesDeleted(M,K.fromLineNumber,K.toLineNumber);T!==null&&(R.emitViewEvent(T),this.viewLayout.onLinesDeleted(T.fromLineNumber,T.toLineNumber)),F=!0;break}case 4:{const T=B.takeCount(K.detail.length),ee=this._lines.onModelLinesInserted(M,K.fromLineNumber,K.toLineNumber,T);ee!==null&&(R.emitViewEvent(ee),this.viewLayout.onLinesInserted(ee.fromLineNumber,ee.toLineNumber)),F=!0;break}case 2:{const T=B.dequeue(),[ee,J,$,j]=this._lines.onModelLineChanged(M,K.lineNumber,T);O=ee,J&&R.emitViewEvent(J),$&&(R.emitViewEvent($),this.viewLayout.onLinesInserted($.fromLineNumber,$.toLineNumber)),j&&(R.emitViewEvent(j),this.viewLayout.onLinesDeleted(j.fromLineNumber,j.toLineNumber));break}case 5:break}M!==null&&this._lines.acceptVersionId(M),this.viewLayout.onHeightMaybeChanged(),!F&&O&&(R.emitViewEvent(new l.ViewLineMappingChangedEvent),R.emitViewEvent(new l.ViewDecorationsChangedEvent(null)),this._cursor.onLineMappingChanged(R),this._decorations.onLineMappingChanged())}finally{this._eventDispatcher.endEmitViewEvents()}const I=this._viewportStart.isValid;if(this._viewportStart.invalidate(),this._configuration.setModelLineCount(this.model.getLineCount()),this._updateConfigurationViewLineCountNow(),!this._hasFocus&&this.model.getAttachedEditorCount()>=2&&I){const R=this.model._getTrackedRange(this._viewportStart.modelTrackedRange);if(R){const F=this.coordinatesConverter.convertModelPositionToViewPosition(R.getStartPosition()),O=this.viewLayout.getVerticalOffsetForLineNumber(F.lineNumber);this.viewLayout.setScrollPosition({scrollTop:O+this._viewportStart.startLineDelta},1)}}try{const R=this._eventDispatcher.beginEmitViewEvents();N instanceof t.InternalModelContentChangeEvent&&R.emitOutgoingEvent(new f.ModelContentChangedEvent(N.contentChangedEvent)),this._cursor.onModelContentChanged(R,N)}finally{this._eventDispatcher.endEmitViewEvents()}this._tokenizeViewportSoon.schedule()})),this._register(this.model.onDidChangeTokens(N=>{const I=[];for(let R=0,F=N.ranges.length;R<F;R++){const O=N.ranges[R],x=this.coordinatesConverter.convertModelPositionToViewPosition(new n.Position(O.fromLineNumber,1)).lineNumber,M=this.coordinatesConverter.convertModelPositionToViewPosition(new n.Position(O.toLineNumber,this.model.getLineMaxColumn(O.toLineNumber))).lineNumber;I[R]={fromLineNumber:x,toLineNumber:M}}this._eventDispatcher.emitSingleViewEvent(new l.ViewTokensChangedEvent(I)),N.tokenizationSupportChanged&&this._tokenizeViewportSoon.schedule(),this._eventDispatcher.emitOutgoingEvent(new f.ModelTokensChangedEvent(N))})),this._register(this.model.onDidChangeLanguageConfiguration(N=>{this._eventDispatcher.emitSingleViewEvent(new l.ViewLanguageConfigurationEvent),this.cursorConfig=new u.CursorConfiguration(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new f.ModelLanguageConfigurationChangedEvent(N))})),this._register(this.model.onDidChangeLanguage(N=>{this.cursorConfig=new u.CursorConfiguration(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new f.ModelLanguageChangedEvent(N))})),this._register(this.model.onDidChangeOptions(N=>{if(this._lines.setTabSize(this.model.getOptions().tabSize)){try{const I=this._eventDispatcher.beginEmitViewEvents();I.emitViewEvent(new l.ViewFlushedEvent),I.emitViewEvent(new l.ViewLineMappingChangedEvent),I.emitViewEvent(new l.ViewDecorationsChangedEvent(null)),this._cursor.onLineMappingChanged(I),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule()}this.cursorConfig=new u.CursorConfiguration(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new f.ModelOptionsChangedEvent(N))})),this._register(this.model.onDidChangeDecorations(N=>{this._decorations.onModelDecorationsChanged(),this._eventDispatcher.emitSingleViewEvent(new l.ViewDecorationsChangedEvent(N)),this._eventDispatcher.emitOutgoingEvent(new f.ModelDecorationsChangedEvent(N))}))}setHiddenAreas(N){let I=!1;try{const R=this._eventDispatcher.beginEmitViewEvents();I=this._lines.setHiddenAreas(N),I&&(R.emitViewEvent(new l.ViewFlushedEvent),R.emitViewEvent(new l.ViewLineMappingChangedEvent),R.emitViewEvent(new l.ViewDecorationsChangedEvent(null)),this._cursor.onLineMappingChanged(R),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule(),I&&this._eventDispatcher.emitOutgoingEvent(new f.HiddenAreasChangedEvent)}getVisibleRangesPlusViewportAboveBelow(){const N=this._configuration.options.get(133),I=this._configuration.options.get(61),R=Math.max(20,Math.round(N.height/I)),F=this.viewLayout.getLinesViewportData(),O=Math.max(1,F.completelyVisibleStartLineNumber-R),x=Math.min(this.getLineCount(),F.completelyVisibleEndLineNumber+R);return this._toModelVisibleRanges(new i.Range(O,this.getLineMinColumn(O),x,this.getLineMaxColumn(x)))}getVisibleRanges(){const N=this.getCompletelyVisibleViewRange();return this._toModelVisibleRanges(N)}getHiddenAreas(){return this._lines.getHiddenAreas()}_toModelVisibleRanges(N){const I=this.coordinatesConverter.convertViewRangeToModelRange(N),R=this._lines.getHiddenAreas();if(R.length===0)return[I];const F=[];let O=0,x=I.startLineNumber,M=I.startColumn;const P=I.endLineNumber,A=I.endColumn;for(let B=0,K=R.length;B<K;B++){const T=R[B].startLineNumber,ee=R[B].endLineNumber;ee<x||T>P||(x<T&&(F[O++]=new i.Range(x,M,T-1,this.model.getLineMaxColumn(T-1))),x=ee+1,M=1)}return(x<P||x===P&&M<A)&&(F[O++]=new i.Range(x,M,P,A)),F}getCompletelyVisibleViewRange(){const N=this.viewLayout.getLinesViewportData(),I=N.completelyVisibleStartLineNumber,R=N.completelyVisibleEndLineNumber;return new i.Range(I,this.getLineMinColumn(I),R,this.getLineMaxColumn(R))}getCompletelyVisibleViewRangeAtScrollTop(N){const I=this.viewLayout.getLinesViewportDataAtScrollTop(N),R=I.completelyVisibleStartLineNumber,F=I.completelyVisibleEndLineNumber;return new i.Range(R,this.getLineMinColumn(R),F,this.getLineMaxColumn(F))}saveState(){const N=this.viewLayout.saveState(),I=N.scrollTop,R=this.viewLayout.getLineNumberAtVerticalOffset(I),F=this.coordinatesConverter.convertViewPositionToModelPosition(new n.Position(R,this.getLineMinColumn(R))),O=this.viewLayout.getVerticalOffsetForLineNumber(R)-I;return{scrollLeft:N.scrollLeft,firstPosition:F,firstPositionDeltaTop:O}}reduceRestoreState(N){if(typeof N.firstPosition>"u")return this._reduceRestoreStateCompatibility(N);const I=this.model.validatePosition(N.firstPosition),R=this.coordinatesConverter.convertModelPositionToViewPosition(I),F=this.viewLayout.getVerticalOffsetForLineNumber(R.lineNumber)-N.firstPositionDeltaTop;return{scrollLeft:N.scrollLeft,scrollTop:F}}_reduceRestoreStateCompatibility(N){return{scrollLeft:N.scrollLeft,scrollTop:N.scrollTopWithoutViewZones}}getTabSize(){return this.model.getOptions().tabSize}getLineCount(){return this._lines.getViewLineCount()}setViewport(N,I,R){this._viewportStart.update(this,N)}getActiveIndentGuide(N,I,R){return this._lines.getActiveIndentGuide(N,I,R)}getLinesIndentGuides(N,I){return this._lines.getViewLinesIndentGuides(N,I)}getBracketGuidesInRangeByLine(N,I,R,F){return this._lines.getViewLinesBracketGuides(N,I,R,F)}getLineContent(N){return this._lines.getViewLineContent(N)}getLineLength(N){return this._lines.getViewLineLength(N)}getLineMinColumn(N){return this._lines.getViewLineMinColumn(N)}getLineMaxColumn(N){return this._lines.getViewLineMaxColumn(N)}getLineFirstNonWhitespaceColumn(N){const I=b.firstNonWhitespaceIndex(this.getLineContent(N));return I===-1?0:I+1}getLineLastNonWhitespaceColumn(N){const I=b.lastNonWhitespaceIndex(this.getLineContent(N));return I===-1?0:I+2}getDecorationsInViewport(N){return this._decorations.getDecorationsViewportData(N).decorations}getInjectedTextAt(N){return this._lines.getInjectedTextAt(N)}getViewportViewLineRenderingData(N,I){const R=this._decorations.getDecorationsViewportData(N).inlineDecorations[I-N.startLineNumber];return this._getViewLineRenderingData(I,R)}getViewLineRenderingData(N){const I=this._decorations.getInlineDecorationsOnLine(N);return this._getViewLineRenderingData(N,I)}_getViewLineRenderingData(N,I){const R=this.model.mightContainRTL(),F=this.model.mightContainNonBasicASCII(),O=this.getTabSize(),x=this._lines.getViewLineData(N);return x.inlineDecorations&&(I=[...I,...x.inlineDecorations.map(M=>M.toInlineDecoration(N))]),new c.ViewLineRenderingData(x.minColumn,x.maxColumn,x.content,x.continuesWithWrappedLine,R,F,x.tokens,I,O,x.startVisibleColumn)}getViewLineData(N){return this._lines.getViewLineData(N)}getMinimapLinesRenderingData(N,I,R){const F=this._lines.getViewLinesData(N,I,R);return new c.MinimapLinesRenderingData(this.getTabSize(),F)}getAllOverviewRulerDecorations(N){const I=this.model.getOverviewRulerDecorations(this._editorId,(0,C.filterValidationDecorations)(this._configuration.options)),R=new E;for(const F of I){const O=F.options,x=O.overviewRuler;if(!x)continue;const M=x.position;if(M===0)continue;const P=x.getColor(N.value),A=this.coordinatesConverter.getViewLineNumberOfModelPosition(F.range.startLineNumber,F.range.startColumn),B=this.coordinatesConverter.getViewLineNumberOfModelPosition(F.range.endLineNumber,F.range.endColumn);R.accept(P,O.zIndex,A,B,M)}return R.asArray}_invalidateDecorationsColorCache(){const N=this.model.getOverviewRulerDecorations();for(const I of N){const R=I.options.overviewRuler;R&&R.invalidateCachedColor();const F=I.options.minimap;F&&F.invalidateCachedColor()}}getValueInRange(N,I){const R=this.coordinatesConverter.convertViewRangeToModelRange(N);return this.model.getValueInRange(R,I)}deduceModelPositionRelativeToViewPosition(N,I,R){const F=this.coordinatesConverter.convertViewPositionToModelPosition(N);this.model.getEOL().length===2&&(I<0?I-=R:I+=R);const O=this.model.getOffsetAt(F)+I;return this.model.getPositionAt(O)}getPlainTextToCopy(N,I,R){const F=R?`\r `:this.model.getEOL();N=N.slice(0),N.sort(i.Range.compareRangesUsingStarts);let O=!1,x=!1;for(const P of N)P.isEmpty()?O=!0:x=!0;if(!x){if(!I)return"";const P=N.map(B=>B.startLineNumber);let A="";for(let B=0;B<P.length;B++)B>0&&P[B-1]===P[B]||(A+=this.model.getLineContent(P[B])+F);return A}if(O&&I){const P=[];let A=0;for(const B of N){const K=B.startLineNumber;B.isEmpty()?K!==A&&P.push(this.model.getLineContent(K)):P.push(this.model.getValueInRange(B,R?2:0)),A=K}return P.length===1?P[0]:P}const M=[];for(const P of N)P.isEmpty()||M.push(this.model.getValueInRange(P,R?2:0));return M.length===1?M[0]:M}getRichTextToCopy(N,I){const R=this.model.getLanguageId();if(R===s.PLAINTEXT_LANGUAGE_ID||N.length!==1)return null;let F=N[0];if(F.isEmpty()){if(!I)return null;const A=F.startLineNumber;F=new i.Range(A,this.model.getLineMinColumn(A),A,this.model.getLineMaxColumn(A))}const O=this._configuration.options.get(46),x=this._getColorMap(),M=/[:;\\\/<>]/.test(O.fontFamily)||O.fontFamily===C.EDITOR_FONT_DEFAULTS.fontFamily;let P;return M?P=C.EDITOR_FONT_DEFAULTS.fontFamily:(P=O.fontFamily,P=P.replace(/"/g,"'"),/[,']/.test(P)||/[+ ]/.test(P)&&(P=`'${P}'`),P=`${P}, ${C.EDITOR_FONT_DEFAULTS.fontFamily}`),{mode:R,html:`<div style="color: ${x[1]};background-color: ${x[2]};font-family: ${P};font-weight: ${O.fontWeight};font-size: ${O.fontSize}px;line-height: ${O.lineHeight}px;white-space: pre;">`+this._getHTMLToCopy(F,x)+"</div>"}}_getHTMLToCopy(N,I){const R=N.startLineNumber,F=N.startColumn,O=N.endLineNumber,x=N.endColumn,M=this.getTabSize();let P="";for(let A=R;A<=O;A++){const B=this.model.tokenization.getLineTokens(A),K=B.getLineContent(),T=A===R?F-1:0,ee=A===O?x-1:K.length;K===""?P+="<br>":P+=(0,d.tokenizeLineToHTML)(K,B.inflate(),I,T,ee,M,w.isWindows)}return P}_getColorMap(){const N=o.TokenizationRegistry.getColorMap(),I=["#000000"];if(N)for(let R=1,F=N.length;R<F;R++)I[R]=k.Color.Format.CSS.formatHex(N[R]);return I}getPrimaryCursorState(){return this._cursor.getPrimaryCursorState()}getLastAddedCursorIndex(){return this._cursor.getLastAddedCursorIndex()}getCursorStates(){return this._cursor.getCursorStates()}setCursorStates(N,I,R){return this._withViewEventsCollector(F=>this._cursor.setStates(F,N,I,R))}getCursorColumnSelectData(){return this._cursor.getCursorColumnSelectData()}getCursorAutoClosedCharacters(){return this._cursor.getAutoClosedCharacters()}setCursorColumnSelectData(N){this._cursor.setCursorColumnSelectData(N)}getPrevEditOperationType(){return this._cursor.getPrevEditOperationType()}setPrevEditOperationType(N){this._cursor.setPrevEditOperationType(N)}getSelection(){return this._cursor.getSelection()}getSelections(){return this._cursor.getSelections()}getPosition(){return this._cursor.getPrimaryCursorState().modelState.position}setSelections(N,I,R=0){this._withViewEventsCollector(F=>this._cursor.setSelections(F,N,I,R))}saveCursorState(){return this._cursor.saveState()}restoreCursorState(N){this._withViewEventsCollector(I=>this._cursor.restoreState(I,N))}_executeCursorEdit(N){if(this._cursor.context.cursorConfig.readOnly){this._eventDispatcher.emitOutgoingEvent(new f.ReadOnlyEditAttemptEvent);return}this._withViewEventsCollector(N)}executeEdits(N,I,R){this._executeCursorEdit(F=>this._cursor.executeEdits(F,N,I,R))}startComposition(){this._executeCursorEdit(N=>this._cursor.startComposition(N))}endComposition(N){this._executeCursorEdit(I=>this._cursor.endComposition(I,N))}type(N,I){this._executeCursorEdit(R=>this._cursor.type(R,N,I))}compositionType(N,I,R,F,O){this._executeCursorEdit(x=>this._cursor.compositionType(x,N,I,R,F,O))}paste(N,I,R,F){this._executeCursorEdit(O=>this._cursor.paste(O,N,I,R,F))}cut(N){this._executeCursorEdit(I=>this._cursor.cut(I,N))}executeCommand(N,I){this._executeCursorEdit(R=>this._cursor.executeCommand(R,N,I))}executeCommands(N,I){this._executeCursorEdit(R=>this._cursor.executeCommands(R,N,I))}revealPrimaryCursor(N,I,R=!1){this._withViewEventsCollector(F=>this._cursor.revealPrimary(F,N,R,0,I,0))}revealTopMostCursor(N){const I=this._cursor.getTopMostViewPosition(),R=new i.Range(I.lineNumber,I.column,I.lineNumber,I.column);this._withViewEventsCollector(F=>F.emitViewEvent(new l.ViewRevealRangeRequestEvent(N,!1,R,null,0,!0,0)))}revealBottomMostCursor(N){const I=this._cursor.getBottomMostViewPosition(),R=new i.Range(I.lineNumber,I.column,I.lineNumber,I.column);this._withViewEventsCollector(F=>F.emitViewEvent(new l.ViewRevealRangeRequestEvent(N,!1,R,null,0,!0,0)))}revealRange(N,I,R,F,O){this._withViewEventsCollector(x=>x.emitViewEvent(new l.ViewRevealRangeRequestEvent(N,!1,R,null,F,I,O)))}changeWhitespace(N){this.viewLayout.changeWhitespace(N)&&(this._eventDispatcher.emitSingleViewEvent(new l.ViewZonesChangedEvent),this._eventDispatcher.emitOutgoingEvent(new f.ViewZonesChangedEvent))}_withViewEventsCollector(N){try{const I=this._eventDispatcher.beginEmitViewEvents();return N(I)}finally{this._eventDispatcher.endEmitViewEvents()}}normalizePosition(N,I){return this._lines.normalizePosition(N,I)}getLineIndentColumn(N){return this._lines.getLineIndentColumn(N)}}e.ViewModel=m;class S{constructor(N,I,R,F,O){this._model=N,this._viewLineNumber=I,this._isValid=R,this._modelTrackedRange=F,this._startLineDelta=O}static create(N){const I=N._setTrackedRange(null,new i.Range(1,1,1,1),1);return new S(N,1,!1,I,0)}get viewLineNumber(){return this._viewLineNumber}get isValid(){return this._isValid}get modelTrackedRange(){return this._modelTrackedRange}get startLineDelta(){return this._startLineDelta}dispose(){this._model._setTrackedRange(this._modelTrackedRange,null,1)}update(N,I){const R=N.coordinatesConverter.convertViewPositionToModelPosition(new n.Position(I,N.getLineMinColumn(I))),F=N.model._setTrackedRange(this._modelTrackedRange,new i.Range(R.lineNumber,R.column,R.lineNumber,R.column),1),O=N.viewLayout.getVerticalOffsetForLineNumber(I),x=N.viewLayout.getCurrentScrollTop();this._viewLineNumber=I,this._isValid=!0,this._modelTrackedRange=F,this._startLineDelta=x-O}invalidate(){this._isValid=!1}}class E{constructor(){this._asMap=Object.create(null),this.asArray=[]}accept(N,I,R,F,O){const x=this._asMap[N];if(x){const M=x.data,P=M[M.length-3],A=M[M.length-1];if(P===O&&A+1>=R){F>A&&(M[M.length-1]=F);return}M.push(O,R,F)}else{const M=new c.OverviewRulerDecorationsGroup(N,I,[O,R,F]);this._asMap[N]=M,this.asArray.push(M)}}}}),define(oe[173],se([1,0,525,7,14,6,2,52,634,12,29,692,229,36,291,66,11,3,23,234,154,24,35,54,25,739,26,16,9,167,38,15,77,19,445,501,156,32,65,20,690,370]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r,c,g,f,_,p,m,S,E,L,N,I,R,F,O,x,M,P,A,B,K){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorModeContext=e.BooleanEventEmitter=e.CodeEditorWidget=void 0;let T=0;class ee{constructor(z,Q,W,V,ne){this.model=z,this.viewModel=Q,this.view=W,this.hasRealView=V,this.listenersToRemove=ne}dispose(){(0,w.dispose)(this.listenersToRemove),this.model.onBeforeDetached(),this.hasRealView&&this.view.dispose(),this.viewModel.dispose()}}let J=class ii extends w.Disposable{constructor(z,Q,W,V,ne,de,ce,ue,me,_e,ye,ke){super(),this.languageConfigurationService=ye,this._deliveryQueue=new D.EventDeliveryQueue,this._onDidDispose=this._register(new D.Emitter),this.onDidDispose=this._onDidDispose.event,this._onDidChangeModelContent=this._register(new D.Emitter({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelContent=this._onDidChangeModelContent.event,this._onDidChangeModelLanguage=this._register(new D.Emitter({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelLanguage=this._onDidChangeModelLanguage.event,this._onDidChangeModelLanguageConfiguration=this._register(new D.Emitter({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelLanguageConfiguration=this._onDidChangeModelLanguageConfiguration.event,this._onDidChangeModelOptions=this._register(new D.Emitter({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelOptions=this._onDidChangeModelOptions.event,this._onDidChangeModelDecorations=this._register(new D.Emitter({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelDecorations=this._onDidChangeModelDecorations.event,this._onDidChangeModelTokens=this._register(new D.Emitter({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelTokens=this._onDidChangeModelTokens.event,this._onDidChangeConfiguration=this._register(new D.Emitter({deliveryQueue:this._deliveryQueue})),this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._onDidChangeModel=this._register(new D.Emitter({deliveryQueue:this._deliveryQueue})),this.onDidChangeModel=this._onDidChangeModel.event,this._onDidChangeCursorPosition=this._register(new D.Emitter({deliveryQueue:this._deliveryQueue})),this.onDidChangeCursorPosition=this._onDidChangeCursorPosition.event,this._onDidChangeCursorSelection=this._register(new D.Emitter({deliveryQueue:this._deliveryQueue})),this.onDidChangeCursorSelection=this._onDidChangeCursorSelection.event,this._onDidAttemptReadOnlyEdit=this._register(new D.Emitter({deliveryQueue:this._deliveryQueue})),this.onDidAttemptReadOnlyEdit=this._onDidAttemptReadOnlyEdit.event,this._onDidLayoutChange=this._register(new D.Emitter({deliveryQueue:this._deliveryQueue})),this.onDidLayoutChange=this._onDidLayoutChange.event,this._editorTextFocus=this._register(new $({deliveryQueue:this._deliveryQueue})),this.onDidFocusEditorText=this._editorTextFocus.onDidChangeToTrue,this.onDidBlurEditorText=this._editorTextFocus.onDidChangeToFalse,this._editorWidgetFocus=this._register(new $({deliveryQueue:this._deliveryQueue})),this.onDidFocusEditorWidget=this._editorWidgetFocus.onDidChangeToTrue,this.onDidBlurEditorWidget=this._editorWidgetFocus.onDidChangeToFalse,this._onWillType=this._register(new D.Emitter({deliveryQueue:this._deliveryQueue})),this.onWillType=this._onWillType.event,this._onDidType=this._register(new D.Emitter({deliveryQueue:this._deliveryQueue})),this.onDidType=this._onDidType.event,this._onDidCompositionStart=this._register(new D.Emitter({deliveryQueue:this._deliveryQueue})),this.onDidCompositionStart=this._onDidCompositionStart.event,this._onDidCompositionEnd=this._register(new D.Emitter({deliveryQueue:this._deliveryQueue})),this.onDidCompositionEnd=this._onDidCompositionEnd.event,this._onDidPaste=this._register(new D.Emitter({deliveryQueue:this._deliveryQueue})),this.onDidPaste=this._onDidPaste.event,this._onMouseUp=this._register(new D.Emitter({deliveryQueue:this._deliveryQueue})),this.onMouseUp=this._onMouseUp.event,this._onMouseDown=this._register(new D.Emitter({deliveryQueue:this._deliveryQueue})),this.onMouseDown=this._onMouseDown.event,this._onMouseDrag=this._register(new D.Emitter({deliveryQueue:this._deliveryQueue})),this.onMouseDrag=this._onMouseDrag.event,this._onMouseDrop=this._register(new D.Emitter({deliveryQueue:this._deliveryQueue})),this.onMouseDrop=this._onMouseDrop.event,this._onMouseDropCanceled=this._register(new D.Emitter({deliveryQueue:this._deliveryQueue})),this.onMouseDropCanceled=this._onMouseDropCanceled.event,this._onDropIntoEditor=this._register(new D.Emitter({deliveryQueue:this._deliveryQueue})),this.onDropIntoEditor=this._onDropIntoEditor.event,this._onContextMenu=this._register(new D.Emitter({deliveryQueue:this._deliveryQueue})),this.onContextMenu=this._onContextMenu.event,this._onMouseMove=this._register(new D.Emitter({deliveryQueue:this._deliveryQueue})),this.onMouseMove=this._onMouseMove.event,this._onMouseLeave=this._register(new D.Emitter({deliveryQueue:this._deliveryQueue})),this.onMouseLeave=this._onMouseLeave.event,this._onMouseWheel=this._register(new D.Emitter({deliveryQueue:this._deliveryQueue})),this.onMouseWheel=this._onMouseWheel.event,this._onKeyUp=this._register(new D.Emitter({deliveryQueue:this._deliveryQueue})),this.onKeyUp=this._onKeyUp.event,this._onKeyDown=this._register(new D.Emitter({deliveryQueue:this._deliveryQueue})),this.onKeyDown=this._onKeyDown.event,this._onDidContentSizeChange=this._register(new D.Emitter({deliveryQueue:this._deliveryQueue})),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._onDidScrollChange=this._register(new D.Emitter({deliveryQueue:this._deliveryQueue})),this.onDidScrollChange=this._onDidScrollChange.event,this._onDidChangeViewZones=this._register(new D.Emitter({deliveryQueue:this._deliveryQueue})),this.onDidChangeViewZones=this._onDidChangeViewZones.event,this._onDidChangeHiddenAreas=this._register(new D.Emitter({deliveryQueue:this._deliveryQueue})),this.onDidChangeHiddenAreas=this._onDidChangeHiddenAreas.event,this._bannerDomNode=null,this._dropIntoEditorDecorations=this.createDecorationsCollection();const Te=Object.assign({},Q);this._domElement=z,this._overflowWidgetsDomNode=Te.overflowWidgetsDomNode,delete Te.overflowWidgetsDomNode,this._id=++T,this._decorationTypeKeysToIds={},this._decorationTypeSubtypes={},this._telemetryData=W.telemetryData,this._configuration=this._register(this._createConfiguration(W.isSimpleWidget||!1,Te,_e)),this._register(this._configuration.onDidChange(he=>{this._onDidChangeConfiguration.fire(he);const re=this._configuration.options;if(he.hasChanged(133)){const ge=re.get(133);this._onDidLayoutChange.fire(ge)}})),this._contextKeyService=this._register(ce.createScoped(this._domElement)),this._notificationService=me,this._codeEditorService=ne,this._commandService=de,this._themeService=ue,this._register(new j(this,this._contextKeyService)),this._register(new G(this,this._contextKeyService,ke)),this._instantiationService=V.createChild(new N.ServiceCollection([E.IContextKeyService,this._contextKeyService])),this._modelData=null,this._contributions={},this._actions={},this._focusTracker=new te(z),this._register(this._focusTracker.onChange(()=>{this._editorWidgetFocus.setValue(this._focusTracker.hasFocus())})),this._contentWidgets={},this._overlayWidgets={};let Me;Array.isArray(W.contributions)?Me=W.contributions:Me=h.EditorExtensionsRegistry.getEditorContributions();for(const he of Me){if(this._contributions[he.id]){(0,k.onUnexpectedError)(new Error(`Cannot have two contributions with the same id ${he.id}`));continue}try{const re=this._instantiationService.createInstance(he.ctor,this);this._contributions[he.id]=re}catch(re){(0,k.onUnexpectedError)(re)}}h.EditorExtensionsRegistry.getEditorActions().forEach(he=>{if(this._actions[he.id]){(0,k.onUnexpectedError)(new Error(`Cannot have two actions with the same id ${he.id}`));return}const re=new r.InternalEditorAction(he.id,he.label,he.alias,(0,O.withNullAsUndefined)(he.precondition),()=>this._instantiationService.invokeFunction(ge=>Promise.resolve(he.runEditorCommand(ge,this,null))),this._contextKeyService);this._actions[re.id]=re});const fe=()=>!this._configuration.options.get(83)&&this._configuration.options.get(32).enabled;this._register(new v.DragAndDropObserver(this._domElement,{onDragEnter:()=>{},onDragOver:he=>{if(!fe())return;const re=this.getTargetAtClientPoint(he.clientX,he.clientY);re?.position&&this.showDropIndicatorAt(re.position)},onDrop:he=>be(this,void 0,void 0,function*(){if(!fe()||(this.removeDropIndicator(),!he.dataTransfer))return;const re=this.getTargetAtClientPoint(he.clientX,he.clientY);re?.position&&this._onDropIntoEditor.fire({position:re.position,event:he})}),onDragLeave:()=>{this.removeDropIndicator()},onDragEnd:()=>{this.removeDropIndicator()}})),this._codeEditorService.addCodeEditor(this)}get isSimpleWidget(){return this._configuration.isSimpleWidget}_createConfiguration(z,Q,W){return new C.EditorConfiguration(z,Q,this._domElement,W)}getId(){return this.getEditorType()+":"+this._id}getEditorType(){return c.EditorType.ICodeEditor}dispose(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose();const z=Object.keys(this._contributions);for(let Q=0,W=z.length;Q<W;Q++){const V=z[Q];this._contributions[V].dispose()}this._contributions={},this._actions={},this._contentWidgets={},this._overlayWidgets={},this._removeDecorationTypes(),this._postDetachModelCleanup(this._detachModel()),this._onDidDispose.fire(),super.dispose()}invokeWithinContext(z){return this._instantiationService.invokeFunction(z)}updateOptions(z){this._configuration.updateOptions(z||{})}getOptions(){return this._configuration.options}getOption(z){return this._configuration.options.get(z)}getRawOptions(){return this._configuration.getRawOptions()}getOverflowWidgetsDomNode(){return this._overflowWidgetsDomNode}getConfiguredWordAtPosition(z){return this._modelData?P.WordOperations.getWordAtPosition(this._modelData.model,this._configuration.options.get(119),z):null}getValue(z=null){if(!this._modelData)return"";const Q=!!(z&&z.preserveBOM);let W=0;return z&&z.lineEnding&&z.lineEnding===` `?W=1:z&&z.lineEnding&&z.lineEnding===`\r `&&(W=2),this._modelData.model.getValue(W,Q)}setValue(z){!this._modelData||this._modelData.model.setValue(z)}getModel(){return this._modelData?this._modelData.model:null}setModel(z=null){const Q=z;if(this._modelData===null&&Q===null||this._modelData&&this._modelData.model===Q)return;const W=this.hasTextFocus(),V=this._detachModel();this._attachModel(Q),W&&this.hasModel()&&this.focus();const ne={oldModelUrl:V?V.uri:null,newModelUrl:Q?Q.uri:null};this._removeDecorationTypes(),this._onDidChangeModel.fire(ne),this._postDetachModelCleanup(V)}_removeDecorationTypes(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(const z in this._decorationTypeSubtypes){const Q=this._decorationTypeSubtypes[z];for(const W in Q)this._removeDecorationType(z+"-"+W)}this._decorationTypeSubtypes={}}}getVisibleRanges(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]}getVisibleRangesPlusViewportAboveBelow(){return this._modelData?this._modelData.viewModel.getVisibleRangesPlusViewportAboveBelow():[]}getWhitespaces(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]}static _getVerticalOffsetAfterPosition(z,Q,W,V){const ne=z.model.validatePosition({lineNumber:Q,column:W}),de=z.viewModel.coordinatesConverter.convertModelPositionToViewPosition(ne);return z.viewModel.viewLayout.getVerticalOffsetAfterLineNumber(de.lineNumber,V)}getTopForLineNumber(z,Q=!1){return this._modelData?ii._getVerticalOffsetForPosition(this._modelData,z,1,Q):-1}getTopForPosition(z,Q){return this._modelData?ii._getVerticalOffsetForPosition(this._modelData,z,Q,!1):-1}static _getVerticalOffsetForPosition(z,Q,W,V=!1){const ne=z.model.validatePosition({lineNumber:Q,column:W}),de=z.viewModel.coordinatesConverter.convertModelPositionToViewPosition(ne);return z.viewModel.viewLayout.getVerticalOffsetForLineNumber(de.lineNumber,V)}getBottomForLineNumber(z,Q=!1){return this._modelData?ii._getVerticalOffsetAfterPosition(this._modelData,z,1,Q):-1}setHiddenAreas(z){var Q;(Q=this._modelData)===null||Q===void 0||Q.viewModel.setHiddenAreas(z.map(W=>l.Range.lift(W)))}getVisibleColumnFromPosition(z){if(!this._modelData)return z.column;const Q=this._modelData.model.validatePosition(z),W=this._modelData.model.getOptions().tabSize;return s.CursorColumns.visibleColumnFromColumn(this._modelData.model.getLineContent(Q.lineNumber),Q.column,W)+1}getPosition(){return this._modelData?this._modelData.viewModel.getPosition():null}setPosition(z,Q="api"){if(this._modelData){if(!d.Position.isIPosition(z))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(Q,[{selectionStartLineNumber:z.lineNumber,selectionStartColumn:z.column,positionLineNumber:z.lineNumber,positionColumn:z.column}])}}_sendRevealRange(z,Q,W,V){if(!this._modelData)return;if(!l.Range.isIRange(z))throw new Error("Invalid arguments");const ne=this._modelData.model.validateRange(z),de=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(ne);this._modelData.viewModel.revealRange("api",W,de,Q,V)}revealLine(z,Q=0){this._revealLine(z,0,Q)}revealLineInCenter(z,Q=0){this._revealLine(z,1,Q)}revealLineInCenterIfOutsideViewport(z,Q=0){this._revealLine(z,2,Q)}revealLineNearTop(z,Q=0){this._revealLine(z,5,Q)}_revealLine(z,Q,W){if(typeof z!="number")throw new Error("Invalid arguments");this._sendRevealRange(new l.Range(z,1,z,1),Q,!1,W)}revealPosition(z,Q=0){this._revealPosition(z,0,!0,Q)}revealPositionInCenter(z,Q=0){this._revealPosition(z,1,!0,Q)}revealPositionInCenterIfOutsideViewport(z,Q=0){this._revealPosition(z,2,!0,Q)}revealPositionNearTop(z,Q=0){this._revealPosition(z,5,!0,Q)}_revealPosition(z,Q,W,V){if(!d.Position.isIPosition(z))throw new Error("Invalid arguments");this._sendRevealRange(new l.Range(z.lineNumber,z.column,z.lineNumber,z.column),Q,W,V)}getSelection(){return this._modelData?this._modelData.viewModel.getSelection():null}getSelections(){return this._modelData?this._modelData.viewModel.getSelections():null}setSelection(z,Q="api"){const W=a.Selection.isISelection(z),V=l.Range.isIRange(z);if(!W&&!V)throw new Error("Invalid arguments");if(W)this._setSelectionImpl(z,Q);else if(V){const ne={selectionStartLineNumber:z.startLineNumber,selectionStartColumn:z.startColumn,positionLineNumber:z.endLineNumber,positionColumn:z.endColumn};this._setSelectionImpl(ne,Q)}}_setSelectionImpl(z,Q){if(!this._modelData)return;const W=new a.Selection(z.selectionStartLineNumber,z.selectionStartColumn,z.positionLineNumber,z.positionColumn);this._modelData.viewModel.setSelections(Q,[W])}revealLines(z,Q,W=0){this._revealLines(z,Q,0,W)}revealLinesInCenter(z,Q,W=0){this._revealLines(z,Q,1,W)}revealLinesInCenterIfOutsideViewport(z,Q,W=0){this._revealLines(z,Q,2,W)}revealLinesNearTop(z,Q,W=0){this._revealLines(z,Q,5,W)}_revealLines(z,Q,W,V){if(typeof z!="number"||typeof Q!="number")throw new Error("Invalid arguments");this._sendRevealRange(new l.Range(z,1,Q,1),W,!1,V)}revealRange(z,Q=0,W=!1,V=!0){this._revealRange(z,W?1:0,V,Q)}revealRangeInCenter(z,Q=0){this._revealRange(z,1,!0,Q)}revealRangeInCenterIfOutsideViewport(z,Q=0){this._revealRange(z,2,!0,Q)}revealRangeNearTop(z,Q=0){this._revealRange(z,5,!0,Q)}revealRangeNearTopIfOutsideViewport(z,Q=0){this._revealRange(z,6,!0,Q)}revealRangeAtTop(z,Q=0){this._revealRange(z,3,!0,Q)}_revealRange(z,Q,W,V){if(!l.Range.isIRange(z))throw new Error("Invalid arguments");this._sendRevealRange(l.Range.lift(z),Q,W,V)}setSelections(z,Q="api",W=0){if(this._modelData){if(!z||z.length===0)throw new Error("Invalid arguments");for(let V=0,ne=z.length;V<ne;V++)if(!a.Selection.isISelection(z[V]))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(Q,z,W)}}getContentWidth(){return this._modelData?this._modelData.viewModel.viewLayout.getContentWidth():-1}getScrollWidth(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollWidth():-1}getScrollLeft(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollLeft():-1}getContentHeight(){return this._modelData?this._modelData.viewModel.viewLayout.getContentHeight():-1}getScrollHeight(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollHeight():-1}getScrollTop(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollTop():-1}setScrollLeft(z,Q=1){if(this._modelData){if(typeof z!="number")throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPosition({scrollLeft:z},Q)}}setScrollTop(z,Q=1){if(this._modelData){if(typeof z!="number")throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPosition({scrollTop:z},Q)}}setScrollPosition(z,Q=1){!this._modelData||this._modelData.viewModel.viewLayout.setScrollPosition(z,Q)}saveViewState(){if(!this._modelData)return null;const z={},Q=Object.keys(this._contributions);for(const ne of Q){const de=this._contributions[ne];typeof de.saveViewState=="function"&&(z[ne]=de.saveViewState())}const W=this._modelData.viewModel.saveCursorState(),V=this._modelData.viewModel.saveState();return{cursorState:W,viewState:V,contributionsState:z}}restoreViewState(z){if(!this._modelData||!this._modelData.hasRealView)return;const Q=z;if(Q&&Q.cursorState&&Q.viewState){const W=Q.cursorState;Array.isArray(W)?W.length>0&&this._modelData.viewModel.restoreCursorState(W):this._modelData.viewModel.restoreCursorState([W]);const V=Q.contributionsState||{},ne=Object.keys(this._contributions);for(let ce=0,ue=ne.length;ce<ue;ce++){const me=ne[ce],_e=this._contributions[me];typeof _e.restoreViewState=="function"&&_e.restoreViewState(V[me])}const de=this._modelData.viewModel.reduceRestoreState(Q.viewState);this._modelData.view.restoreState(de)}}getContribution(z){return this._contributions[z]||null}getActions(){const z=[],Q=Object.keys(this._actions);for(let W=0,V=Q.length;W<V;W++){const ne=Q[W];z.push(this._actions[ne])}return z}getSupportedActions(){let z=this.getActions();return z=z.filter(Q=>Q.isSupported()),z}getAction(z){return this._actions[z]||null}trigger(z,Q,W){switch(W=W||{},Q){case"compositionStart":this._startComposition();return;case"compositionEnd":this._endComposition(z);return;case"type":{const ne=W;this._type(z,ne.text||"");return}case"replacePreviousChar":{const ne=W;this._compositionType(z,ne.text||"",ne.replaceCharCnt||0,0,0);return}case"compositionType":{const ne=W;this._compositionType(z,ne.text||"",ne.replacePrevCharCnt||0,ne.replaceNextCharCnt||0,ne.positionDelta||0);return}case"paste":{const ne=W;this._paste(z,ne.text||"",ne.pasteOnNewLine||!1,ne.multicursorText||null,ne.mode||null);return}case"cut":this._cut(z);return}const V=this.getAction(Q);if(V){Promise.resolve(V.run()).then(void 0,k.onUnexpectedError);return}!this._modelData||this._triggerEditorCommand(z,Q,W)||this._triggerCommand(Q,W)}_triggerCommand(z,Q){this._commandService.executeCommand(z,Q)}_startComposition(){!this._modelData||(this._modelData.viewModel.startComposition(),this._onDidCompositionStart.fire())}_endComposition(z){!this._modelData||(this._modelData.viewModel.endComposition(z),this._onDidCompositionEnd.fire())}_type(z,Q){!this._modelData||Q.length===0||(z==="keyboard"&&this._onWillType.fire(Q),this._modelData.viewModel.type(Q,z),z==="keyboard"&&this._onDidType.fire(Q))}_compositionType(z,Q,W,V,ne){!this._modelData||this._modelData.viewModel.compositionType(Q,W,V,ne,z)}_paste(z,Q,W,V,ne){if(!this._modelData||Q.length===0)return;const de=this._modelData.viewModel,ce=de.getSelection().getStartPosition();de.paste(Q,W,V,z);const ue=de.getSelection().getStartPosition();z==="keyboard"&&this._onDidPaste.fire({range:new l.Range(ce.lineNumber,ce.column,ue.lineNumber,ue.column),languageId:ne})}_cut(z){!this._modelData||this._modelData.viewModel.cut(z)}_triggerEditorCommand(z,Q,W){const V=h.EditorExtensionsRegistry.getEditorCommand(Q);return V?(W=W||{},W.source=z,this._instantiationService.invokeFunction(ne=>{Promise.resolve(V.runEditorCommand(ne,this,W)).then(void 0,k.onUnexpectedError)}),!0):!1}_getViewModel(){return this._modelData?this._modelData.viewModel:null}pushUndoStop(){return!this._modelData||this._configuration.options.get(83)?!1:(this._modelData.model.pushStackElement(),!0)}popUndoStop(){return!this._modelData||this._configuration.options.get(83)?!1:(this._modelData.model.popStackElement(),!0)}executeEdits(z,Q,W){if(!this._modelData||this._configuration.options.get(83))return!1;let V;return W?Array.isArray(W)?V=()=>W:V=W:V=()=>null,this._modelData.viewModel.executeEdits(z,Q,V),!0}executeCommand(z,Q){!this._modelData||this._modelData.viewModel.executeCommand(Q,z)}executeCommands(z,Q){!this._modelData||this._modelData.viewModel.executeCommands(Q,z)}createDecorationsCollection(z){return new Z(this,z)}changeDecorations(z){return this._modelData?this._modelData.model.changeDecorations(z,this._id):null}getLineDecorations(z){return this._modelData?this._modelData.model.getLineDecorations(z,this._id,(0,t.filterValidationDecorations)(this._configuration.options)):null}getDecorationsInRange(z){return this._modelData?this._modelData.model.getDecorationsInRange(z,this._id,(0,t.filterValidationDecorations)(this._configuration.options)):null}deltaDecorations(z,Q){return this._modelData?z.length===0&&Q.length===0?z:this._modelData.model.deltaDecorations(z,Q,this._id):[]}removeDecorations(z){!this._modelData||z.length===0||this._modelData.model.changeDecorations(Q=>{Q.deltaDecorations(z,[])})}removeDecorationsByType(z){const Q=this._decorationTypeKeysToIds[z];Q&&this.deltaDecorations(Q,[]),this._decorationTypeKeysToIds.hasOwnProperty(z)&&delete this._decorationTypeKeysToIds[z],this._decorationTypeSubtypes.hasOwnProperty(z)&&delete this._decorationTypeSubtypes[z]}getLayoutInfo(){return this._configuration.options.get(133)}createOverviewRuler(z){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.createOverviewRuler(z)}getContainerDomNode(){return this._domElement}getDomNode(){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.domNode.domNode}delegateVerticalScrollbarPointerDown(z){!this._modelData||!this._modelData.hasRealView||this._modelData.view.delegateVerticalScrollbarPointerDown(z)}layout(z){this._configuration.observeContainer(z),this.render()}focus(){!this._modelData||!this._modelData.hasRealView||this._modelData.view.focus()}hasTextFocus(){return!this._modelData||!this._modelData.hasRealView?!1:this._modelData.view.isFocused()}hasWidgetFocus(){return this._focusTracker&&this._focusTracker.hasFocus()}addContentWidget(z){const Q={widget:z,position:z.getPosition()};this._contentWidgets.hasOwnProperty(z.getId())&&console.warn("Overwriting a content widget with the same id."),this._contentWidgets[z.getId()]=Q,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(Q)}layoutContentWidget(z){const Q=z.getId();if(this._contentWidgets.hasOwnProperty(Q)){const W=this._contentWidgets[Q];W.position=z.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(W)}}removeContentWidget(z){const Q=z.getId();if(this._contentWidgets.hasOwnProperty(Q)){const W=this._contentWidgets[Q];delete this._contentWidgets[Q],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(W)}}addOverlayWidget(z){const Q={widget:z,position:z.getPosition()};this._overlayWidgets.hasOwnProperty(z.getId())&&console.warn("Overwriting an overlay widget with the same id."),this._overlayWidgets[z.getId()]=Q,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(Q)}layoutOverlayWidget(z){const Q=z.getId();if(this._overlayWidgets.hasOwnProperty(Q)){const W=this._overlayWidgets[Q];W.position=z.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(W)}}removeOverlayWidget(z){const Q=z.getId();if(this._overlayWidgets.hasOwnProperty(Q)){const W=this._overlayWidgets[Q];delete this._overlayWidgets[Q],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(W)}}changeViewZones(z){!this._modelData||!this._modelData.hasRealView||this._modelData.view.change(z)}getTargetAtClientPoint(z,Q){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.getTargetAtClientPoint(z,Q)}getScrolledVisiblePosition(z){if(!this._modelData||!this._modelData.hasRealView)return null;const Q=this._modelData.model.validatePosition(z),W=this._configuration.options,V=W.get(133),ne=ii._getVerticalOffsetForPosition(this._modelData,Q.lineNumber,Q.column)-this.getScrollTop(),de=this._modelData.view.getOffsetForColumn(Q.lineNumber,Q.column)+V.glyphMarginWidth+V.lineNumbersWidth+V.decorationsWidth-this.getScrollLeft();return{top:ne,left:de,height:W.get(61)}}getOffsetForColumn(z,Q){return!this._modelData||!this._modelData.hasRealView?-1:this._modelData.view.getOffsetForColumn(z,Q)}render(z=!1){!this._modelData||!this._modelData.hasRealView||this._modelData.view.render(!0,z)}setAriaOptions(z){!this._modelData||!this._modelData.hasRealView||this._modelData.view.setAriaOptions(z)}applyFontInfo(z){(0,B.applyFontInfo)(z,this._configuration.options.get(46))}setBanner(z,Q){this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._domElement.removeChild(this._bannerDomNode),this._bannerDomNode=z,this._configuration.setReservedHeight(z?Q:0),this._bannerDomNode&&this._domElement.prepend(this._bannerDomNode)}_attachModel(z){if(!z){this._modelData=null;return}const Q=[];this._domElement.setAttribute("data-mode-id",z.getLanguageId()),this._configuration.setIsDominatedByLongLines(z.isDominatedByLongLines()),this._configuration.setModelLineCount(z.getLineCount()),z.onBeforeAttached();const W=new m.ViewModel(this._id,this._configuration,z,M.DOMLineBreaksComputerFactory.create(),x.MonospaceLineBreaksComputerFactory.create(this._configuration.options),de=>v.scheduleAtNextAnimationFrame(de),this.languageConfigurationService,this._themeService);Q.push(z.onWillDispose(()=>this.setModel(null))),Q.push(W.onEvent(de=>{switch(de.kind){case 0:this._onDidContentSizeChange.fire(de);break;case 1:this._editorTextFocus.setValue(de.hasFocus);break;case 2:this._onDidScrollChange.fire(de);break;case 3:this._onDidChangeViewZones.fire();break;case 4:this._onDidChangeHiddenAreas.fire();break;case 5:this._onDidAttemptReadOnlyEdit.fire();break;case 6:{de.reachedMaxCursorCount&&this._notificationService.warn(y.localize(0,null,o.CursorsController.MAX_CURSOR_COUNT));const ce=[];for(let _e=0,ye=de.selections.length;_e<ye;_e++)ce[_e]=de.selections[_e].getPosition();const ue={position:ce[0],secondaryPositions:ce.slice(1),reason:de.reason,source:de.source};this._onDidChangeCursorPosition.fire(ue);const me={selection:de.selections[0],secondarySelections:de.selections.slice(1),modelVersionId:de.modelVersionId,oldSelections:de.oldSelections,oldModelVersionId:de.oldModelVersionId,source:de.source,reason:de.reason};this._onDidChangeCursorSelection.fire(me);break}case 7:this._onDidChangeModelDecorations.fire(de.event);break;case 8:this._domElement.setAttribute("data-mode-id",z.getLanguageId()),this._onDidChangeModelLanguage.fire(de.event);break;case 9:this._onDidChangeModelLanguageConfiguration.fire(de.event);break;case 10:this._onDidChangeModelContent.fire(de.event);break;case 11:this._onDidChangeModelOptions.fire(de.event);break;case 12:this._onDidChangeModelTokens.fire(de.event);break}}));const[V,ne]=this._createView(W);if(ne){this._domElement.appendChild(V.domNode.domNode);let de=Object.keys(this._contentWidgets);for(let ce=0,ue=de.length;ce<ue;ce++){const me=de[ce];V.addContentWidget(this._contentWidgets[me])}de=Object.keys(this._overlayWidgets);for(let ce=0,ue=de.length;ce<ue;ce++){const me=de[ce];V.addOverlayWidget(this._overlayWidgets[me])}V.render(!1,!0),V.domNode.domNode.setAttribute("data-uri",z.uri.toString())}this._modelData=new ee(z,W,V,ne,Q)}_createView(z){let Q;this.isSimpleWidget?Q={paste:(V,ne,de,ce)=>{this._paste("keyboard",V,ne,de,ce)},type:V=>{this._type("keyboard",V)},compositionType:(V,ne,de,ce)=>{this._compositionType("keyboard",V,ne,de,ce)},startComposition:()=>{this._startComposition()},endComposition:()=>{this._endComposition("keyboard")},cut:()=>{this._cut("keyboard")}}:Q={paste:(V,ne,de,ce)=>{const ue={text:V,pasteOnNewLine:ne,multicursorText:de,mode:ce};this._commandService.executeCommand("paste",ue)},type:V=>{const ne={text:V};this._commandService.executeCommand("type",ne)},compositionType:(V,ne,de,ce)=>{if(de||ce){const ue={text:V,replacePrevCharCnt:ne,replaceNextCharCnt:de,positionDelta:ce};this._commandService.executeCommand("compositionType",ue)}else{const ue={text:V,replaceCharCnt:ne};this._commandService.executeCommand("replacePreviousChar",ue)}},startComposition:()=>{this._commandService.executeCommand("compositionStart",{})},endComposition:()=>{this._commandService.executeCommand("compositionEnd",{})},cut:()=>{this._commandService.executeCommand("cut",{})}};const W=new i.ViewUserInputEvents(z.coordinatesConverter);return W.onKeyDown=V=>this._onKeyDown.fire(V),W.onKeyUp=V=>this._onKeyUp.fire(V),W.onContextMenu=V=>this._onContextMenu.fire(V),W.onMouseMove=V=>this._onMouseMove.fire(V),W.onMouseLeave=V=>this._onMouseLeave.fire(V),W.onMouseDown=V=>this._onMouseDown.fire(V),W.onMouseUp=V=>this._onMouseUp.fire(V),W.onMouseDrag=V=>this._onMouseDrag.fire(V),W.onMouseDrop=V=>this._onMouseDrop.fire(V),W.onMouseDropCanceled=V=>this._onMouseDropCanceled.fire(V),W.onMouseWheel=V=>this._onMouseWheel.fire(V),[new n.View(Q,this._configuration,this._themeService.getColorTheme(),z,W,this._overflowWidgetsDomNode),!0]}_postDetachModelCleanup(z){z?.removeAllDecorationsWithOwnerId(this._id)}_detachModel(){if(!this._modelData)return null;const z=this._modelData.model,Q=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;return this._modelData.dispose(),this._modelData=null,this._domElement.removeAttribute("data-mode-id"),Q&&this._domElement.contains(Q)&&this._domElement.removeChild(Q),this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._domElement.removeChild(this._bannerDomNode),z}_removeDecorationType(z){this._codeEditorService.removeDecorationType(z)}hasModel(){return this._modelData!==null}showDropIndicatorAt(z){const Q=[{range:new l.Range(z.lineNumber,z.column,z.lineNumber,z.column),options:ii.dropIntoEditorDecorationOptions}];this._dropIntoEditorDecorations.set(Q),this.revealPosition(z,1)}removeDropIndicator(){this._dropIntoEditorDecorations.clear()}};J.dropIntoEditorDecorationOptions=f.ModelDecorationOptions.register({description:"workbench-dnd-target",className:"dnd-target"}),J=Ie([pe(3,L.IInstantiationService),pe(4,u.ICodeEditorService),pe(5,S.ICommandService),pe(6,E.IContextKeyService),pe(7,R.IThemeService),pe(8,I.INotificationService),pe(9,F.IAccessibilityService),pe(10,A.ILanguageConfigurationService),pe(11,K.ILanguageFeaturesService)],J),e.CodeEditorWidget=J;class $ extends w.Disposable{constructor(z){super(),this._emitterOptions=z,this._onDidChangeToTrue=this._register(new D.Emitter(this._emitterOptions)),this.onDidChangeToTrue=this._onDidChangeToTrue.event,this._onDidChangeToFalse=this._register(new D.Emitter(this._emitterOptions)),this.onDidChangeToFalse=this._onDidChangeToFalse.event,this._value=0}setValue(z){const Q=z?2:1;this._value!==Q&&(this._value=Q,this._value===2?this._onDidChangeToTrue.fire():this._value===1&&this._onDidChangeToFalse.fire())}}e.BooleanEventEmitter=$;class j extends w.Disposable{constructor(z,Q){super(),this._editor=z,Q.createKey("editorId",z.getId()),this._editorSimpleInput=g.EditorContextKeys.editorSimpleInput.bindTo(Q),this._editorFocus=g.EditorContextKeys.focus.bindTo(Q),this._textInputFocus=g.EditorContextKeys.textInputFocus.bindTo(Q),this._editorTextFocus=g.EditorContextKeys.editorTextFocus.bindTo(Q),this._editorTabMovesFocus=g.EditorContextKeys.tabMovesFocus.bindTo(Q),this._editorReadonly=g.EditorContextKeys.readOnly.bindTo(Q),this._inDiffEditor=g.EditorContextKeys.inDiffEditor.bindTo(Q),this._editorColumnSelection=g.EditorContextKeys.columnSelection.bindTo(Q),this._hasMultipleSelections=g.EditorContextKeys.hasMultipleSelections.bindTo(Q),this._hasNonEmptySelection=g.EditorContextKeys.hasNonEmptySelection.bindTo(Q),this._canUndo=g.EditorContextKeys.canUndo.bindTo(Q),this._canRedo=g.EditorContextKeys.canRedo.bindTo(Q),this._register(this._editor.onDidChangeConfiguration(()=>this._updateFromConfig())),this._register(this._editor.onDidChangeCursorSelection(()=>this._updateFromSelection())),this._register(this._editor.onDidFocusEditorWidget(()=>this._updateFromFocus())),this._register(this._editor.onDidBlurEditorWidget(()=>this._updateFromFocus())),this._register(this._editor.onDidFocusEditorText(()=>this._updateFromFocus())),this._register(this._editor.onDidBlurEditorText(()=>this._updateFromFocus())),this._register(this._editor.onDidChangeModel(()=>this._updateFromModel())),this._register(this._editor.onDidChangeConfiguration(()=>this._updateFromModel())),this._updateFromConfig(),this._updateFromSelection(),this._updateFromFocus(),this._updateFromModel(),this._editorSimpleInput.set(this._editor.isSimpleWidget)}_updateFromConfig(){const z=this._editor.getOptions();this._editorTabMovesFocus.set(z.get(132)),this._editorReadonly.set(z.get(83)),this._inDiffEditor.set(z.get(56)),this._editorColumnSelection.set(z.get(18))}_updateFromSelection(){const z=this._editor.getSelections();z?(this._hasMultipleSelections.set(z.length>1),this._hasNonEmptySelection.set(z.some(Q=>!Q.isEmpty()))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())}_updateFromFocus(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())}_updateFromModel(){const z=this._editor.getModel();this._canUndo.set(!!(z&&z.canUndo())),this._canRedo.set(!!(z&&z.canRedo()))}}class G extends w.Disposable{constructor(z,Q,W){super(),this._editor=z,this._contextKeyService=Q,this._languageFeaturesService=W,this._langId=g.EditorContextKeys.languageId.bindTo(Q),this._hasCompletionItemProvider=g.EditorContextKeys.hasCompletionItemProvider.bindTo(Q),this._hasCodeActionsProvider=g.EditorContextKeys.hasCodeActionsProvider.bindTo(Q),this._hasCodeLensProvider=g.EditorContextKeys.hasCodeLensProvider.bindTo(Q),this._hasDefinitionProvider=g.EditorContextKeys.hasDefinitionProvider.bindTo(Q),this._hasDeclarationProvider=g.EditorContextKeys.hasDeclarationProvider.bindTo(Q),this._hasImplementationProvider=g.EditorContextKeys.hasImplementationProvider.bindTo(Q),this._hasTypeDefinitionProvider=g.EditorContextKeys.hasTypeDefinitionProvider.bindTo(Q),this._hasHoverProvider=g.EditorContextKeys.hasHoverProvider.bindTo(Q),this._hasDocumentHighlightProvider=g.EditorContextKeys.hasDocumentHighlightProvider.bindTo(Q),this._hasDocumentSymbolProvider=g.EditorContextKeys.hasDocumentSymbolProvider.bindTo(Q),this._hasReferenceProvider=g.EditorContextKeys.hasReferenceProvider.bindTo(Q),this._hasRenameProvider=g.EditorContextKeys.hasRenameProvider.bindTo(Q),this._hasSignatureHelpProvider=g.EditorContextKeys.hasSignatureHelpProvider.bindTo(Q),this._hasInlayHintsProvider=g.EditorContextKeys.hasInlayHintsProvider.bindTo(Q),this._hasDocumentFormattingProvider=g.EditorContextKeys.hasDocumentFormattingProvider.bindTo(Q),this._hasDocumentSelectionFormattingProvider=g.EditorContextKeys.hasDocumentSelectionFormattingProvider.bindTo(Q),this._hasMultipleDocumentFormattingProvider=g.EditorContextKeys.hasMultipleDocumentFormattingProvider.bindTo(Q),this._hasMultipleDocumentSelectionFormattingProvider=g.EditorContextKeys.hasMultipleDocumentSelectionFormattingProvider.bindTo(Q),this._isInWalkThrough=g.EditorContextKeys.isInWalkThroughSnippet.bindTo(Q);const V=()=>this._update();this._register(z.onDidChangeModel(V)),this._register(z.onDidChangeModelLanguage(V)),this._register(W.completionProvider.onDidChange(V)),this._register(W.codeActionProvider.onDidChange(V)),this._register(W.codeLensProvider.onDidChange(V)),this._register(W.definitionProvider.onDidChange(V)),this._register(W.declarationProvider.onDidChange(V)),this._register(W.implementationProvider.onDidChange(V)),this._register(W.typeDefinitionProvider.onDidChange(V)),this._register(W.hoverProvider.onDidChange(V)),this._register(W.documentHighlightProvider.onDidChange(V)),this._register(W.documentSymbolProvider.onDidChange(V)),this._register(W.referenceProvider.onDidChange(V)),this._register(W.renameProvider.onDidChange(V)),this._register(W.documentFormattingEditProvider.onDidChange(V)),this._register(W.documentRangeFormattingEditProvider.onDidChange(V)),this._register(W.signatureHelpProvider.onDidChange(V)),this._register(W.inlayHintsProvider.onDidChange(V)),V()}dispose(){super.dispose()}reset(){this._contextKeyService.bufferChangeEvents(()=>{this._langId.reset(),this._hasCompletionItemProvider.reset(),this._hasCodeActionsProvider.reset(),this._hasCodeLensProvider.reset(),this._hasDefinitionProvider.reset(),this._hasDeclarationProvider.reset(),this._hasImplementationProvider.reset(),this._hasTypeDefinitionProvider.reset(),this._hasHoverProvider.reset(),this._hasDocumentHighlightProvider.reset(),this._hasDocumentSymbolProvider.reset(),this._hasReferenceProvider.reset(),this._hasRenameProvider.reset(),this._hasDocumentFormattingProvider.reset(),this._hasDocumentSelectionFormattingProvider.reset(),this._hasSignatureHelpProvider.reset(),this._isInWalkThrough.reset()})}_update(){const z=this._editor.getModel();if(!z){this.reset();return}this._contextKeyService.bufferChangeEvents(()=>{this._langId.set(z.getLanguageId()),this._hasCompletionItemProvider.set(this._languageFeaturesService.completionProvider.has(z)),this._hasCodeActionsProvider.set(this._languageFeaturesService.codeActionProvider.has(z)),this._hasCodeLensProvider.set(this._languageFeaturesService.codeLensProvider.has(z)),this._hasDefinitionProvider.set(this._languageFeaturesService.definitionProvider.has(z)),this._hasDeclarationProvider.set(this._languageFeaturesService.declarationProvider.has(z)),this._hasImplementationProvider.set(this._languageFeaturesService.implementationProvider.has(z)),this._hasTypeDefinitionProvider.set(this._languageFeaturesService.typeDefinitionProvider.has(z)),this._hasHoverProvider.set(this._languageFeaturesService.hoverProvider.has(z)),this._hasDocumentHighlightProvider.set(this._languageFeaturesService.documentHighlightProvider.has(z)),this._hasDocumentSymbolProvider.set(this._languageFeaturesService.documentSymbolProvider.has(z)),this._hasReferenceProvider.set(this._languageFeaturesService.referenceProvider.has(z)),this._hasRenameProvider.set(this._languageFeaturesService.renameProvider.has(z)),this._hasSignatureHelpProvider.set(this._languageFeaturesService.signatureHelpProvider.has(z)),this._hasInlayHintsProvider.set(this._languageFeaturesService.inlayHintsProvider.has(z)),this._hasDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.has(z)||this._languageFeaturesService.documentRangeFormattingEditProvider.has(z)),this._hasDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.has(z)),this._hasMultipleDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.all(z).length+this._languageFeaturesService.documentRangeFormattingEditProvider.all(z).length>1),this._hasMultipleDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.all(z).length>1),this._isInWalkThrough.set(z.uri.scheme===b.Schemas.walkThroughSnippet)})}}e.EditorModeContext=G;class te extends w.Disposable{constructor(z){super(),this._onChange=this._register(new D.Emitter),this.onChange=this._onChange.event,this._hasFocus=!1,this._domFocusTracker=this._register(v.trackFocus(z)),this._register(this._domFocusTracker.onDidFocus(()=>{this._hasFocus=!0,this._onChange.fire(void 0)})),this._register(this._domFocusTracker.onDidBlur(()=>{this._hasFocus=!1,this._onChange.fire(void 0)}))}hasFocus(){return this._hasFocus}}class Z{constructor(z,Q){this._editor=z,this._decorationIds=[],this._isChangingDecorations=!1,Array.isArray(Q)&&Q.length>0&&this.set(Q)}get length(){return this._decorationIds.length}onDidChange(z,Q,W){return this._editor.onDidChangeModelDecorations(V=>{this._isChangingDecorations||z.call(Q,V)},W)}getRange(z){return!this._editor.hasModel()||z>=this._decorationIds.length?null:this._editor.getModel().getDecorationRange(this._decorationIds[z])}getRanges(){if(!this._editor.hasModel())return[];const z=this._editor.getModel(),Q=[];for(const W of this._decorationIds){const V=z.getDecorationRange(W);V&&Q.push(V)}return Q}has(z){return this._decorationIds.includes(z.id)}clear(){this._decorationIds.length!==0&&this.set([])}set(z){try{this._isChangingDecorations=!0,this._editor.changeDecorations(Q=>{this._decorationIds=Q.deltaDecorations(this._decorationIds,z)})}finally{this._isChangingDecorations=!1}}}const X=encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 3' enable-background='new 0 0 6 3' height='3' width='6'><g fill='"),ie=encodeURIComponent("'><polygon points='5.5,0 2.5,3 1.1,3 4.1,0'/><polygon points='4,0 6,2 6,0.6 5.4,0'/><polygon points='0,2 1,3 2.4,3 0,0.6'/></g></svg>");function H(le){return X+encodeURIComponent(le.toString())+ie}const ae=encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" height="3" width="12"><g fill="'),Y=encodeURIComponent('"><circle cx="1" cy="1" r="1"/><circle cx="5" cy="1" r="1"/><circle cx="9" cy="1" r="1"/></g></svg>');function U(le){return ae+encodeURIComponent(le.toString())+Y}(0,R.registerThemingParticipant)((le,z)=>{const Q=le.getColor(p.editorErrorBorder);Q&&z.addRule(`.monaco-editor .squiggly-error { border-bottom: 4px double ${Q}; }`);const W=le.getColor(p.editorErrorForeground);W&&z.addRule(`.monaco-editor .squiggly-error { background: url("data:image/svg+xml,${H(W)}") repeat-x bottom left; }`);const V=le.getColor(p.editorErrorBackground);V&&z.addRule(`.monaco-editor .squiggly-error::before { display: block; content: ''; width: 100%; height: 100%; background: ${V}; }`);const ne=le.getColor(p.editorWarningBorder);ne&&z.addRule(`.monaco-editor .squiggly-warning { border-bottom: 4px double ${ne}; }`);const de=le.getColor(p.editorWarningForeground);de&&z.addRule(`.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,${H(de)}") repeat-x bottom left; }`);const ce=le.getColor(p.editorWarningBackground);ce&&z.addRule(`.monaco-editor .squiggly-warning::before { display: block; content: ''; width: 100%; height: 100%; background: ${ce}; }`);const ue=le.getColor(p.editorInfoBorder);ue&&z.addRule(`.monaco-editor .squiggly-info { border-bottom: 4px double ${ue}; }`);const me=le.getColor(p.editorInfoForeground);me&&z.addRule(`.monaco-editor .squiggly-info { background: url("data:image/svg+xml,${H(me)}") repeat-x bottom left; }`);const _e=le.getColor(p.editorInfoBackground);_e&&z.addRule(`.monaco-editor .squiggly-info::before { display: block; content: ''; width: 100%; height: 100%; background: ${_e}; }`);const ye=le.getColor(p.editorHintBorder);ye&&z.addRule(`.monaco-editor .squiggly-hint { border-bottom: 2px dotted ${ye}; }`);const ke=le.getColor(p.editorHintForeground);ke&&z.addRule(`.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,${U(ke)}") no-repeat bottom left; }`);const Te=le.getColor(_.editorUnnecessaryCodeOpacity);Te&&z.addRule(`.monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: ${Te.rgba.a}; }`);const Me=le.getColor(_.editorUnnecessaryCodeBorder);Me&&z.addRule(`.monaco-editor.showUnused .squiggly-unnecessary { border-bottom: 2px dashed ${Me}; }`);const fe=le.getColor(p.editorForeground)||"inherit";z.addRule(`.monaco-editor.showDeprecated .squiggly-inline-deprecated { text-decoration: line-through; text-decoration-color: ${fe}}`)})}),define(oe[311],se([1,0,526,7,177,33,135,10,6,2,65,152,29,173,731,36,11,3,91,154,35,92,245,130,114,74,16,9,167,38,25,15,78,529,93,12,14,71,267,27,150,80,56,368]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r,c,g,f,_,p,m,S,E,L,N,I,R,F,O,x,M,P,A,B,K,T,ee,J){"use strict";var $;Object.defineProperty(e,"__esModule",{value:!0}),e.DiffEditorWidget=void 0;class j{constructor(he,re){this._contextMenuService=he,this._clipboardService=re,this._zones=[],this._inlineDiffMargins=[],this._zonesMap={},this._decorations=[]}getForeignViewZones(he){return he.filter(re=>!this._zonesMap[String(re.id)])}clean(he){this._zones.length>0&&he.changeViewZones(re=>{for(const ge of this._zones)re.removeZone(ge)}),this._zones=[],this._zonesMap={},he.changeDecorations(re=>{this._decorations=re.deltaDecorations(this._decorations,[])})}apply(he,re,ge,Se){const Le=Se?n.StableEditorScrollState.capture(he):null;he.changeViewZones(Ne=>{var Ae;for(const Pe of this._zones)Ne.removeZone(Pe);for(const Pe of this._inlineDiffMargins)Pe.dispose();this._zones=[],this._zonesMap={},this._inlineDiffMargins=[];for(let Pe=0,Ce=ge.zones.length;Pe<Ce;Pe++){const ve=ge.zones[Pe];ve.suppressMouseDown=!0;const De=Ne.addZone(ve);this._zones.push(De),this._zonesMap[String(De)]=!0,ge.zones[Pe].diff&&ve.marginDomNode&&(ve.suppressMouseDown=!1,((Ae=ge.zones[Pe].diff)===null||Ae===void 0?void 0:Ae.originalModel.getValueLength())!==0&&this._inlineDiffMargins.push(new O.InlineDiffMargin(De,ve.marginDomNode,he,ge.zones[Pe].diff,this._contextMenuService,this._clipboardService)))}}),Le?.restore(he),he.changeDecorations(Ne=>{this._decorations=Ne.deltaDecorations(this._decorations,ge.decorations)}),re?.setZones(ge.overviewZones)}}let G=0;const te=(0,ee.registerIcon)("diff-insert",K.Codicon.add,y.localize(0,null)),Z=(0,ee.registerIcon)("diff-remove",K.Codicon.remove,y.localize(1,null)),X=($=window.trustedTypes)===null||$===void 0?void 0:$.createPolicy("diffEditorWidget",{createHTML:fe=>fe});let ie=class kt extends h.Disposable{constructor(he,re,ge,Se,Le,Ne,Ae,Pe,Ce,ve,De,Be){super(),this._editorProgressService=Be,this._onDidDispose=this._register(new C.Emitter),this.onDidDispose=this._onDidDispose.event,this._onDidUpdateDiff=this._register(new C.Emitter),this.onDidUpdateDiff=this._onDidUpdateDiff.event,this._onDidContentSizeChange=this._register(new C.Emitter),this._lastOriginalWarning=null,this._lastModifiedWarning=null,this._editorWorkerService=Le,this._codeEditorService=Pe,this._contextKeyService=this._register(Ne.createScoped(he)),this._instantiationService=Ae.createChild(new L.ServiceCollection([S.IContextKeyService,this._contextKeyService])),this._contextKeyService.createKey("isInDiffEditor",!0),this._themeService=Ce,this._notificationService=ve,this._id=++G,this._state=0,this._updatingDiffProgress=null,this._domElement=he,re=re||{},this._options=Te(re,{enableSplitViewResizing:!0,renderSideBySide:!0,renderMarginRevertIcon:!0,maxComputationTime:5e3,maxFileSize:50,ignoreTrimWhitespace:!0,renderIndicators:!0,originalEditable:!1,diffCodeLens:!1,renderOverviewRuler:!0,diffWordWrap:"inherit"}),typeof re.isInEmbeddedEditor<"u"?this._contextKeyService.createKey("isInEmbeddedDiffEditor",re.isInEmbeddedEditor):this._contextKeyService.createKey("isInEmbeddedDiffEditor",!1),this._updateDecorationsRunner=this._register(new b.RunOnceScheduler(()=>this._updateDecorations(),0)),this._containerDomElement=document.createElement("div"),this._containerDomElement.className=kt._getClassName(this._themeService.getColorTheme(),this._options.renderSideBySide),this._containerDomElement.style.position="relative",this._containerDomElement.style.height="100%",this._domElement.appendChild(this._containerDomElement),this._overviewViewportDomElement=(0,D.createFastDomNode)(document.createElement("div")),this._overviewViewportDomElement.setClassName("diffViewport"),this._overviewViewportDomElement.setPosition("absolute"),this._overviewDomElement=document.createElement("div"),this._overviewDomElement.className="diffOverview",this._overviewDomElement.style.position="absolute",this._overviewDomElement.appendChild(this._overviewViewportDomElement.domNode),this._register(v.addStandardDisposableListener(this._overviewDomElement,v.EventType.POINTER_DOWN,Ve=>{this._modifiedEditor.delegateVerticalScrollbarPointerDown(Ve)})),this._options.renderOverviewRuler&&this._containerDomElement.appendChild(this._overviewDomElement),this._originalDomNode=document.createElement("div"),this._originalDomNode.className="editor original",this._originalDomNode.style.position="absolute",this._originalDomNode.style.height="100%",this._containerDomElement.appendChild(this._originalDomNode),this._modifiedDomNode=document.createElement("div"),this._modifiedDomNode.className="editor modified",this._modifiedDomNode.style.position="absolute",this._modifiedDomNode.style.height="100%",this._containerDomElement.appendChild(this._modifiedDomNode),this._beginUpdateDecorationsTimeout=-1,this._currentlyChangingViewZones=!1,this._diffComputationToken=0,this._originalEditorState=new j(De,Se),this._modifiedEditorState=new j(De,Se),this._isVisible=!0,this._isHandlingScrollEvent=!1,this._elementSizeObserver=this._register(new B.ElementSizeObserver(this._containerDomElement,re.dimension)),this._register(this._elementSizeObserver.onDidChange(()=>this._onDidContainerSizeChanged())),re.automaticLayout&&this._elementSizeObserver.startObserving(),this._diffComputationResult=null,this._originalEditor=this._createLeftHandSideEditor(re,ge.originalEditor||{}),this._modifiedEditor=this._createRightHandSideEditor(re,ge.modifiedEditor||{}),this._originalOverviewRuler=null,this._modifiedOverviewRuler=null,this._reviewPane=Ae.createInstance(o.DiffReview,this),this._containerDomElement.appendChild(this._reviewPane.domNode.domNode),this._containerDomElement.appendChild(this._reviewPane.shadow.domNode),this._containerDomElement.appendChild(this._reviewPane.actionBarContainer.domNode),this._options.renderSideBySide?this._setStrategy(new z(this._createDataSource(),this._options.enableSplitViewResizing)):this._setStrategy(new W(this._createDataSource(),this._options.enableSplitViewResizing)),this._register(Ce.onDidColorThemeChange(Ve=>{this._strategy&&this._strategy.applyColors(Ve)&&this._updateDecorationsRunner.schedule(),this._containerDomElement.className=kt._getClassName(this._themeService.getColorTheme(),this._options.renderSideBySide)}));const Re=M.EditorExtensionsRegistry.getDiffEditorContributions();for(const Ve of Re)try{this._register(Ae.createInstance(Ve.ctor,this))}catch(Ue){(0,P.onUnexpectedError)(Ue)}this._codeEditorService.addDiffEditor(this)}_setState(he){this._state!==he&&(this._state=he,this._updatingDiffProgress&&(this._updatingDiffProgress.done(),this._updatingDiffProgress=null),this._state===1&&(this._updatingDiffProgress=this._editorProgressService.show(!0,1e3)))}diffReviewNext(){this._reviewPane.next()}diffReviewPrev(){this._reviewPane.prev()}static _getClassName(he,re){let ge="monaco-diff-editor monaco-editor-background ";return re&&(ge+="side-by-side "),ge+=(0,R.getThemeTypeSelector)(he.type),ge}_disposeOverviewRulers(){this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose(),this._originalOverviewRuler=null),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose(),this._modifiedOverviewRuler=null)}_createOverviewRulers(){!this._options.renderOverviewRuler||(k.ok(!this._originalOverviewRuler&&!this._modifiedOverviewRuler),this._originalEditor.hasModel()&&(this._originalOverviewRuler=this._originalEditor.createOverviewRuler("original diffOverviewRuler"),this._overviewDomElement.appendChild(this._originalOverviewRuler.getDomNode())),this._modifiedEditor.hasModel()&&(this._modifiedOverviewRuler=this._modifiedEditor.createOverviewRuler("modified diffOverviewRuler"),this._overviewDomElement.appendChild(this._modifiedOverviewRuler.getDomNode())),this._layoutOverviewRulers())}_createLeftHandSideEditor(he,re){const ge=this._createInnerEditor(this._instantiationService,this._originalDomNode,this._adjustOptionsForLeftHandSide(he),re);this._register(ge.onDidScrollChange(Le=>{this._isHandlingScrollEvent||!Le.scrollTopChanged&&!Le.scrollLeftChanged&&!Le.scrollHeightChanged||(this._isHandlingScrollEvent=!0,this._modifiedEditor.setScrollPosition({scrollLeft:Le.scrollLeft,scrollTop:Le.scrollTop}),this._isHandlingScrollEvent=!1,this._layoutOverviewViewport())})),this._register(ge.onDidChangeViewZones(()=>{this._onViewZonesChanged()})),this._register(ge.onDidChangeConfiguration(Le=>{!ge.getModel()||(Le.hasChanged(46)&&this._updateDecorationsRunner.schedule(),Le.hasChanged(134)&&(this._updateDecorationsRunner.cancel(),this._updateDecorations()))})),this._register(ge.onDidChangeHiddenAreas(()=>{this._updateDecorationsRunner.cancel(),this._updateDecorations()})),this._register(ge.onDidChangeModelContent(()=>{this._isVisible&&this._beginUpdateDecorationsSoon()}));const Se=this._contextKeyService.createKey("isInDiffLeftEditor",ge.hasWidgetFocus());return this._register(ge.onDidFocusEditorWidget(()=>Se.set(!0))),this._register(ge.onDidBlurEditorWidget(()=>Se.set(!1))),this._register(ge.onDidContentSizeChange(Le=>{const Ne=this._originalEditor.getContentWidth()+this._modifiedEditor.getContentWidth()+kt.ONE_OVERVIEW_WIDTH,Ae=Math.max(this._modifiedEditor.getContentHeight(),this._originalEditor.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:Ae,contentWidth:Ne,contentHeightChanged:Le.contentHeightChanged,contentWidthChanged:Le.contentWidthChanged})})),ge}_createRightHandSideEditor(he,re){const ge=this._createInnerEditor(this._instantiationService,this._modifiedDomNode,this._adjustOptionsForRightHandSide(he),re);this._register(ge.onDidScrollChange(Le=>{this._isHandlingScrollEvent||!Le.scrollTopChanged&&!Le.scrollLeftChanged&&!Le.scrollHeightChanged||(this._isHandlingScrollEvent=!0,this._originalEditor.setScrollPosition({scrollLeft:Le.scrollLeft,scrollTop:Le.scrollTop}),this._isHandlingScrollEvent=!1,this._layoutOverviewViewport())})),this._register(ge.onDidChangeViewZones(()=>{this._onViewZonesChanged()})),this._register(ge.onDidChangeConfiguration(Le=>{!ge.getModel()||(Le.hasChanged(46)&&this._updateDecorationsRunner.schedule(),Le.hasChanged(134)&&(this._updateDecorationsRunner.cancel(),this._updateDecorations()))})),this._register(ge.onDidChangeHiddenAreas(()=>{this._updateDecorationsRunner.cancel(),this._updateDecorations()})),this._register(ge.onDidChangeModelContent(()=>{this._isVisible&&this._beginUpdateDecorationsSoon()})),this._register(ge.onDidChangeModelOptions(Le=>{Le.tabSize&&this._updateDecorationsRunner.schedule()}));const Se=this._contextKeyService.createKey("isInDiffRightEditor",ge.hasWidgetFocus());return this._register(ge.onDidFocusEditorWidget(()=>Se.set(!0))),this._register(ge.onDidBlurEditorWidget(()=>Se.set(!1))),this._register(ge.onDidContentSizeChange(Le=>{const Ne=this._originalEditor.getContentWidth()+this._modifiedEditor.getContentWidth()+kt.ONE_OVERVIEW_WIDTH,Ae=Math.max(this._modifiedEditor.getContentHeight(),this._originalEditor.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:Ae,contentWidth:Ne,contentHeightChanged:Le.contentHeightChanged,contentWidthChanged:Le.contentWidthChanged})})),this._register(ge.onMouseDown(Le=>{var Ne,Ae;if(!Le.event.rightButton&&Le.target.position&&(!((Ne=Le.target.element)===null||Ne===void 0)&&Ne.className.includes("arrow-revert-change"))){const Pe=Le.target.position.lineNumber,Ce=(Ae=this._diffComputationResult)===null||Ae===void 0?void 0:Ae.changes.find(ve=>ve.modifiedStartLineNumber===Pe-1||ve.modifiedStartLineNumber===Pe);Ce&&this.revertChange(Ce),Le.event.stopPropagation(),this._updateDecorations();return}})),ge}revertChange(he){const re=this._modifiedEditor,ge=this._originalEditor.getModel(),Se=this._modifiedEditor.getModel();if(!ge||!Se||!re)return;const Le=he.originalEndLineNumber>0?new l.Range(he.originalStartLineNumber,1,he.originalEndLineNumber,ge.getLineMaxColumn(he.originalEndLineNumber)):null,Ne=Le?ge.getValueInRange(Le):null,Ae=he.modifiedEndLineNumber>0?new l.Range(he.modifiedStartLineNumber,1,he.modifiedEndLineNumber,Se.getLineMaxColumn(he.modifiedEndLineNumber)):null,Pe=Se.getEOL();if(he.originalEndLineNumber===0&&Ae){let Ce=Ae;he.modifiedStartLineNumber>1?Ce=Ae.setStartPosition(he.modifiedStartLineNumber-1,Se.getLineMaxColumn(he.modifiedStartLineNumber-1)):he.modifiedEndLineNumber<Se.getLineCount()&&(Ce=Ae.setEndPosition(he.modifiedEndLineNumber+1,1)),re.executeEdits("diffEditor",[{range:Ce,text:""}])}else if(he.modifiedEndLineNumber===0&&Ne!==null){const Ce=he.modifiedStartLineNumber<Se.getLineCount()?new d.Position(he.modifiedStartLineNumber+1,1):new d.Position(he.modifiedStartLineNumber,Se.getLineMaxColumn(he.modifiedStartLineNumber));re.executeEdits("diffEditor",[{range:l.Range.fromPositions(Ce,Ce),text:he.modifiedStartLineNumber<Se.getLineCount()?Ne+Pe:Pe+Ne}])}else Ae&&Ne!==null&&re.executeEdits("diffEditor",[{range:Ae,text:Ne}])}_createInnerEditor(he,re,ge,Se){return he.createInstance(t.CodeEditorWidget,re,ge,Se)}dispose(){this._codeEditorService.removeDiffEditor(this),this._beginUpdateDecorationsTimeout!==-1&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._cleanViewZonesAndDecorations(),this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose()),this._overviewDomElement.removeChild(this._overviewViewportDomElement.domNode),this._options.renderOverviewRuler&&this._containerDomElement.removeChild(this._overviewDomElement),this._containerDomElement.removeChild(this._originalDomNode),this._originalEditor.dispose(),this._containerDomElement.removeChild(this._modifiedDomNode),this._modifiedEditor.dispose(),this._strategy.dispose(),this._containerDomElement.removeChild(this._reviewPane.domNode.domNode),this._containerDomElement.removeChild(this._reviewPane.shadow.domNode),this._containerDomElement.removeChild(this._reviewPane.actionBarContainer.domNode),this._reviewPane.dispose(),this._domElement.removeChild(this._containerDomElement),this._onDidDispose.fire(),super.dispose()}getId(){return this.getEditorType()+":"+this._id}getEditorType(){return r.EditorType.IDiffEditor}getLineChanges(){return this._diffComputationResult?this._diffComputationResult.changes:null}getOriginalEditor(){return this._originalEditor}getModifiedEditor(){return this._modifiedEditor}updateOptions(he){const re=Te(he,this._options),ge=Me(this._options,re);this._options=re;const Se=ge.ignoreTrimWhitespace||ge.renderIndicators||ge.renderMarginRevertIcon,Le=this._isVisible&&(ge.maxComputationTime||ge.maxFileSize);Se?this._beginUpdateDecorations():Le&&this._beginUpdateDecorationsSoon(),this._modifiedEditor.updateOptions(this._adjustOptionsForRightHandSide(he)),this._originalEditor.updateOptions(this._adjustOptionsForLeftHandSide(he)),this._strategy.setEnableSplitViewResizing(this._options.enableSplitViewResizing),ge.renderSideBySide&&(this._options.renderSideBySide?this._setStrategy(new z(this._createDataSource(),this._options.enableSplitViewResizing)):this._setStrategy(new W(this._createDataSource(),this._options.enableSplitViewResizing)),this._containerDomElement.className=kt._getClassName(this._themeService.getColorTheme(),this._options.renderSideBySide)),ge.renderOverviewRuler&&(this._options.renderOverviewRuler?this._containerDomElement.appendChild(this._overviewDomElement):this._containerDomElement.removeChild(this._overviewDomElement))}getModel(){return{original:this._originalEditor.getModel(),modified:this._modifiedEditor.getModel()}}setModel(he){if(he&&(!he.original||!he.modified))throw new Error(he.original?"DiffEditorWidget.setModel: Modified model is null":"DiffEditorWidget.setModel: Original model is null");this._cleanViewZonesAndDecorations(),this._disposeOverviewRulers(),this._originalEditor.setModel(he?he.original:null),this._modifiedEditor.setModel(he?he.modified:null),this._updateDecorationsRunner.cancel(),he&&(this._originalEditor.setScrollTop(0),this._modifiedEditor.setScrollTop(0)),this._diffComputationResult=null,this._diffComputationToken++,this._setState(0),he&&(this._createOverviewRulers(),this._beginUpdateDecorations()),this._layoutOverviewViewport()}getContainerDomNode(){return this._domElement}getVisibleColumnFromPosition(he){return this._modifiedEditor.getVisibleColumnFromPosition(he)}getPosition(){return this._modifiedEditor.getPosition()}setPosition(he,re="api"){this._modifiedEditor.setPosition(he,re)}revealLine(he,re=0){this._modifiedEditor.revealLine(he,re)}revealLineInCenter(he,re=0){this._modifiedEditor.revealLineInCenter(he,re)}revealLineInCenterIfOutsideViewport(he,re=0){this._modifiedEditor.revealLineInCenterIfOutsideViewport(he,re)}revealLineNearTop(he,re=0){this._modifiedEditor.revealLineNearTop(he,re)}revealPosition(he,re=0){this._modifiedEditor.revealPosition(he,re)}revealPositionInCenter(he,re=0){this._modifiedEditor.revealPositionInCenter(he,re)}revealPositionInCenterIfOutsideViewport(he,re=0){this._modifiedEditor.revealPositionInCenterIfOutsideViewport(he,re)}revealPositionNearTop(he,re=0){this._modifiedEditor.revealPositionNearTop(he,re)}getSelection(){return this._modifiedEditor.getSelection()}getSelections(){return this._modifiedEditor.getSelections()}setSelection(he,re="api"){this._modifiedEditor.setSelection(he,re)}setSelections(he,re="api"){this._modifiedEditor.setSelections(he,re)}revealLines(he,re,ge=0){this._modifiedEditor.revealLines(he,re,ge)}revealLinesInCenter(he,re,ge=0){this._modifiedEditor.revealLinesInCenter(he,re,ge)}revealLinesInCenterIfOutsideViewport(he,re,ge=0){this._modifiedEditor.revealLinesInCenterIfOutsideViewport(he,re,ge)}revealLinesNearTop(he,re,ge=0){this._modifiedEditor.revealLinesNearTop(he,re,ge)}revealRange(he,re=0,ge=!1,Se=!0){this._modifiedEditor.revealRange(he,re,ge,Se)}revealRangeInCenter(he,re=0){this._modifiedEditor.revealRangeInCenter(he,re)}revealRangeInCenterIfOutsideViewport(he,re=0){this._modifiedEditor.revealRangeInCenterIfOutsideViewport(he,re)}revealRangeNearTop(he,re=0){this._modifiedEditor.revealRangeNearTop(he,re)}revealRangeNearTopIfOutsideViewport(he,re=0){this._modifiedEditor.revealRangeNearTopIfOutsideViewport(he,re)}revealRangeAtTop(he,re=0){this._modifiedEditor.revealRangeAtTop(he,re)}getSupportedActions(){return this._modifiedEditor.getSupportedActions()}saveViewState(){const he=this._originalEditor.saveViewState(),re=this._modifiedEditor.saveViewState();return{original:he,modified:re}}restoreViewState(he){if(he&&he.original&&he.modified){const re=he;this._originalEditor.restoreViewState(re.original),this._modifiedEditor.restoreViewState(re.modified)}}layout(he){this._elementSizeObserver.observe(he)}focus(){this._modifiedEditor.focus()}hasTextFocus(){return this._originalEditor.hasTextFocus()||this._modifiedEditor.hasTextFocus()}trigger(he,re,ge){this._modifiedEditor.trigger(he,re,ge)}createDecorationsCollection(he){return this._modifiedEditor.createDecorationsCollection(he)}changeDecorations(he){return this._modifiedEditor.changeDecorations(he)}_onDidContainerSizeChanged(){this._doLayout()}_getReviewHeight(){return this._reviewPane.isVisible()?this._elementSizeObserver.getHeight():0}_layoutOverviewRulers(){if(!this._options.renderOverviewRuler||!this._originalOverviewRuler||!this._modifiedOverviewRuler)return;const he=this._elementSizeObserver.getHeight(),re=this._getReviewHeight(),ge=kt.ENTIRE_DIFF_OVERVIEW_WIDTH-2*kt.ONE_OVERVIEW_WIDTH;this._modifiedEditor.getLayoutInfo()&&(this._originalOverviewRuler.setLayout({top:0,width:kt.ONE_OVERVIEW_WIDTH,right:ge+kt.ONE_OVERVIEW_WIDTH,height:he-re}),this._modifiedOverviewRuler.setLayout({top:0,right:0,width:kt.ONE_OVERVIEW_WIDTH,height:he-re}))}_onViewZonesChanged(){this._currentlyChangingViewZones||this._updateDecorationsRunner.schedule()}_beginUpdateDecorationsSoon(){this._beginUpdateDecorationsTimeout!==-1&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._beginUpdateDecorationsTimeout=window.setTimeout(()=>this._beginUpdateDecorations(),kt.UPDATE_DIFF_DECORATIONS_DELAY)}static _equals(he,re){return!he&&!re?!0:!he||!re?!1:he.toString()===re.toString()}_beginUpdateDecorations(){this._beginUpdateDecorationsTimeout=-1;const he=this._originalEditor.getModel(),re=this._modifiedEditor.getModel();if(!he||!re)return;this._diffComputationToken++;const ge=this._diffComputationToken,Se=this._options.maxFileSize*1024*1024,Le=Ne=>{const Ae=Ne.getValueLength();return Se===0||Ae<=Se};if(!Le(he)||!Le(re)){(!kt._equals(he.uri,this._lastOriginalWarning)||!kt._equals(re.uri,this._lastModifiedWarning))&&(this._lastOriginalWarning=he.uri,this._lastModifiedWarning=re.uri,this._notificationService.warn(y.localize(2,null)));return}this._setState(1),this._editorWorkerService.computeDiff(he.uri,re.uri,this._options.ignoreTrimWhitespace,this._options.maxComputationTime).then(Ne=>{ge===this._diffComputationToken&&he===this._originalEditor.getModel()&&re===this._modifiedEditor.getModel()&&(this._setState(2),this._diffComputationResult=Ne,this._updateDecorationsRunner.schedule(),this._onDidUpdateDiff.fire())},Ne=>{ge===this._diffComputationToken&&he===this._originalEditor.getModel()&&re===this._modifiedEditor.getModel()&&(this._setState(2),this._diffComputationResult=null,this._updateDecorationsRunner.schedule())})}_cleanViewZonesAndDecorations(){this._originalEditorState.clean(this._originalEditor),this._modifiedEditorState.clean(this._modifiedEditor)}_updateDecorations(){if(!this._originalEditor.getModel()||!this._modifiedEditor.getModel())return;const he=this._diffComputationResult?this._diffComputationResult.changes:[],re=this._originalEditorState.getForeignViewZones(this._originalEditor.getWhitespaces()),ge=this._modifiedEditorState.getForeignViewZones(this._modifiedEditor.getWhitespaces()),Se=this._strategy.getEditorsDiffDecorations(he,this._options.ignoreTrimWhitespace,this._options.renderIndicators,this._options.renderMarginRevertIcon,re,ge);try{this._currentlyChangingViewZones=!0,this._originalEditorState.apply(this._originalEditor,this._originalOverviewRuler,Se.original,!1),this._modifiedEditorState.apply(this._modifiedEditor,this._modifiedOverviewRuler,Se.modified,!0)}finally{this._currentlyChangingViewZones=!1}}_adjustOptionsForSubEditor(he){const re=Object.assign({},he);return re.inDiffEditor=!0,re.automaticLayout=!1,re.scrollbar=Object.assign({},re.scrollbar||{}),re.scrollbar.vertical="visible",re.folding=!1,re.codeLens=this._options.diffCodeLens,re.fixedOverflowWidgets=!0,re.minimap=Object.assign({},re.minimap||{}),re.minimap.enabled=!1,re}_adjustOptionsForLeftHandSide(he){const re=this._adjustOptionsForSubEditor(he);return this._options.renderSideBySide?re.wordWrapOverride1=this._options.diffWordWrap:(re.wordWrapOverride1="off",re.wordWrapOverride2="off"),he.originalAriaLabel&&(re.ariaLabel=he.originalAriaLabel),re.readOnly=!this._options.originalEditable,re.dropIntoEditor={enabled:!re.readOnly},re.extraEditorClassName="original-in-monaco-diff-editor",Object.assign(Object.assign({},re),{dimension:{height:0,width:0}})}_adjustOptionsForRightHandSide(he){const re=this._adjustOptionsForSubEditor(he);return he.modifiedAriaLabel&&(re.ariaLabel=he.modifiedAriaLabel),re.wordWrapOverride1=this._options.diffWordWrap,re.revealHorizontalRightPadding=s.EditorOptions.revealHorizontalRightPadding.defaultValue+kt.ENTIRE_DIFF_OVERVIEW_WIDTH,re.scrollbar.verticalHasArrows=!1,re.extraEditorClassName="modified-in-monaco-diff-editor",Object.assign(Object.assign({},re),{dimension:{height:0,width:0}})}doLayout(){this._elementSizeObserver.observe(),this._doLayout()}_doLayout(){const he=this._elementSizeObserver.getWidth(),re=this._elementSizeObserver.getHeight(),ge=this._getReviewHeight(),Se=this._strategy.layout();this._originalDomNode.style.width=Se+"px",this._originalDomNode.style.left="0px",this._modifiedDomNode.style.width=he-Se+"px",this._modifiedDomNode.style.left=Se+"px",this._overviewDomElement.style.top="0px",this._overviewDomElement.style.height=re-ge+"px",this._overviewDomElement.style.width=kt.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewDomElement.style.left=he-kt.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewViewportDomElement.setWidth(kt.ENTIRE_DIFF_OVERVIEW_WIDTH),this._overviewViewportDomElement.setHeight(30),this._originalEditor.layout({width:Se,height:re-ge}),this._modifiedEditor.layout({width:he-Se-(this._options.renderOverviewRuler?kt.ENTIRE_DIFF_OVERVIEW_WIDTH:0),height:re-ge}),(this._originalOverviewRuler||this._modifiedOverviewRuler)&&this._layoutOverviewRulers(),this._reviewPane.layout(re-ge,he,ge),this._layoutOverviewViewport()}_layoutOverviewViewport(){const he=this._computeOverviewViewport();he?(this._overviewViewportDomElement.setTop(he.top),this._overviewViewportDomElement.setHeight(he.height)):(this._overviewViewportDomElement.setTop(0),this._overviewViewportDomElement.setHeight(0))}_computeOverviewViewport(){const he=this._modifiedEditor.getLayoutInfo();if(!he)return null;const re=this._modifiedEditor.getScrollTop(),ge=this._modifiedEditor.getScrollHeight(),Se=Math.max(0,he.height),Le=Math.max(0,Se-2*0),Ne=ge>0?Le/ge:0,Ae=Math.max(0,Math.floor(he.height*Ne)),Pe=Math.floor(re*Ne);return{height:Ae,top:Pe}}_createDataSource(){return{getWidth:()=>this._elementSizeObserver.getWidth(),getHeight:()=>this._elementSizeObserver.getHeight()-this._getReviewHeight(),getOptions:()=>({renderOverviewRuler:this._options.renderOverviewRuler}),getContainerDomNode:()=>this._containerDomElement,relayoutEditors:()=>{this._doLayout()},getOriginalEditor:()=>this._originalEditor,getModifiedEditor:()=>this._modifiedEditor}}_setStrategy(he){this._strategy&&this._strategy.dispose(),this._strategy=he,he.applyColors(this._themeService.getColorTheme()),this._diffComputationResult&&this._updateDecorations(),this._doLayout()}_getLineChangeAtOrBeforeLineNumber(he,re){const ge=this._diffComputationResult?this._diffComputationResult.changes:[];if(ge.length===0||he<re(ge[0]))return null;let Se=0,Le=ge.length-1;for(;Se<Le;){const Ne=Math.floor((Se+Le)/2),Ae=re(ge[Ne]),Pe=Ne+1<=Le?re(ge[Ne+1]):1073741824;he<Ae?Le=Ne-1:he>=Pe?Se=Ne+1:(Se=Ne,Le=Ne)}return ge[Se]}_getEquivalentLineForOriginalLineNumber(he){const re=this._getLineChangeAtOrBeforeLineNumber(he,Pe=>Pe.originalStartLineNumber);if(!re)return he;const ge=re.originalStartLineNumber+(re.originalEndLineNumber>0?-1:0),Se=re.modifiedStartLineNumber+(re.modifiedEndLineNumber>0?-1:0),Le=re.originalEndLineNumber>0?re.originalEndLineNumber-re.originalStartLineNumber+1:0,Ne=re.modifiedEndLineNumber>0?re.modifiedEndLineNumber-re.modifiedStartLineNumber+1:0,Ae=he-ge;return Ae<=Le?Se+Math.min(Ae,Ne):Se+Ne-Le+Ae}_getEquivalentLineForModifiedLineNumber(he){const re=this._getLineChangeAtOrBeforeLineNumber(he,Pe=>Pe.modifiedStartLineNumber);if(!re)return he;const ge=re.originalStartLineNumber+(re.originalEndLineNumber>0?-1:0),Se=re.modifiedStartLineNumber+(re.modifiedEndLineNumber>0?-1:0),Le=re.originalEndLineNumber>0?re.originalEndLineNumber-re.originalStartLineNumber+1:0,Ne=re.modifiedEndLineNumber>0?re.modifiedEndLineNumber-re.modifiedStartLineNumber+1:0,Ae=he-Se;return Ae<=Ne?ge+Math.min(Ae,Le):ge+Le-Ne+Ae}getDiffLineInformationForOriginal(he){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(he)}:null}getDiffLineInformationForModified(he){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(he)}:null}};ie.ONE_OVERVIEW_WIDTH=15,ie.ENTIRE_DIFF_OVERVIEW_WIDTH=30,ie.UPDATE_DIFF_DECORATIONS_DELAY=200,ie=Ie([pe(3,x.IClipboardService),pe(4,g.IEditorWorkerService),pe(5,S.IContextKeyService),pe(6,E.IInstantiationService),pe(7,i.ICodeEditorService),pe(8,R.IThemeService),pe(9,N.INotificationService),pe(10,F.IContextMenuService),pe(11,A.IEditorProgressService)],ie),e.DiffEditorWidget=ie;class H extends h.Disposable{constructor(he){super(),this._dataSource=he,this._insertColor=null,this._removeColor=null}applyColors(he){const re=he.getColor(I.diffOverviewRulerInserted)||(he.getColor(I.diffInserted)||I.defaultInsertColor).transparent(2),ge=he.getColor(I.diffOverviewRulerRemoved)||(he.getColor(I.diffRemoved)||I.defaultRemoveColor).transparent(2),Se=!re.equals(this._insertColor)||!ge.equals(this._removeColor);return this._insertColor=re,this._removeColor=ge,Se}getEditorsDiffDecorations(he,re,ge,Se,Le,Ne){Ne=Ne.sort((ve,De)=>ve.afterLineNumber-De.afterLineNumber),Le=Le.sort((ve,De)=>ve.afterLineNumber-De.afterLineNumber);const Ae=this._getViewZones(he,Le,Ne,ge),Pe=this._getOriginalEditorDecorations(Ae,he,re,ge),Ce=this._getModifiedEditorDecorations(Ae,he,re,ge,Se);return{original:{decorations:Pe.decorations,overviewZones:Pe.overviewZones,zones:Ae.original},modified:{decorations:Ce.decorations,overviewZones:Ce.overviewZones,zones:Ae.modified}}}}class ae{constructor(he){this._source=he,this._index=-1,this.current=null,this.advance()}advance(){this._index++,this._index<this._source.length?this.current=this._source[this._index]:this.current=null}}class Y{constructor(he,re,ge,Se,Le){this._lineChanges=he,this._originalForeignVZ=re,this._modifiedForeignVZ=ge,this._originalEditor=Se,this._modifiedEditor=Le}static _getViewLineCount(he,re,ge){const Se=he.getModel(),Le=he._getViewModel();if(Se&&Le){const Ne=ke(Se,Le,re,ge);return Ne.endLineNumber-Ne.startLineNumber+1}return ge-re+1}getViewZones(){const he=this._originalEditor.getOption(61),re=this._modifiedEditor.getOption(61),ge=this._originalEditor.getOption(134).wrappingColumn!==-1,Se=this._modifiedEditor.getOption(134).wrappingColumn!==-1,Le=ge||Se,Ne=this._originalEditor.getModel(),Ae=this._originalEditor._getViewModel().coordinatesConverter,Pe=this._modifiedEditor._getViewModel().coordinatesConverter,Ce={original:[],modified:[]};let ve=0,De=0,Be=0,Re=0,Ve=0,Ue=0;const Je=(He,et)=>He.afterLineNumber-et.afterLineNumber,rt=(He,et)=>{if(et.domNode===null&&He.length>0){const je=He[He.length-1];if(je.afterLineNumber===et.afterLineNumber&&je.domNode===null){je.heightInLines+=et.heightInLines;return}}He.push(et)},gt=new ae(this._modifiedForeignVZ),ft=new ae(this._originalForeignVZ);let xe=1,$e=1;for(let He=0,et=this._lineChanges.length;He<=et;He++){const je=He<et?this._lineChanges[He]:null;je!==null?(Be=je.originalStartLineNumber+(je.originalEndLineNumber>0?-1:0),Re=je.modifiedStartLineNumber+(je.modifiedEndLineNumber>0?-1:0),De=je.originalEndLineNumber>0?Y._getViewLineCount(this._originalEditor,je.originalStartLineNumber,je.originalEndLineNumber):0,ve=je.modifiedEndLineNumber>0?Y._getViewLineCount(this._modifiedEditor,je.modifiedStartLineNumber,je.modifiedEndLineNumber):0,Ve=Math.max(je.originalStartLineNumber,je.originalEndLineNumber),Ue=Math.max(je.modifiedStartLineNumber,je.modifiedEndLineNumber)):(Be+=1e7+De,Re+=1e7+ve,Ve=Be,Ue=Re);let pt=[],it=[];if(Le){let ht;je?je.originalEndLineNumber>0?ht=je.originalStartLineNumber-xe:ht=je.modifiedStartLineNumber-$e:ht=Ne.getLineCount()-xe+1;for(let Ke=0;Ke<ht;Ke++){const Oe=xe+Ke,qe=$e+Ke,Ye=Ae.getModelLineViewLineCount(Oe),tt=Pe.getModelLineViewLineCount(qe);Ye<tt?pt.push({afterLineNumber:Oe,heightInLines:tt-Ye,domNode:null,marginDomNode:null}):Ye>tt&&it.push({afterLineNumber:qe,heightInLines:Ye-tt,domNode:null,marginDomNode:null})}je&&(xe=(je.originalEndLineNumber>0?je.originalEndLineNumber:je.originalStartLineNumber)+1,$e=(je.modifiedEndLineNumber>0?je.modifiedEndLineNumber:je.modifiedStartLineNumber)+1)}for(;gt.current&>.current.afterLineNumber<=Ue;){let ht;gt.current.afterLineNumber<=Re?ht=Be-Re+gt.current.afterLineNumber:ht=Ve;let Ke=null;je&&je.modifiedStartLineNumber<=gt.current.afterLineNumber&>.current.afterLineNumber<=je.modifiedEndLineNumber&&(Ke=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()),pt.push({afterLineNumber:ht,heightInLines:gt.current.height/re,domNode:null,marginDomNode:Ke}),gt.advance()}for(;ft.current&&ft.current.afterLineNumber<=Ve;){let ht;ft.current.afterLineNumber<=Be?ht=Re-Be+ft.current.afterLineNumber:ht=Ue,it.push({afterLineNumber:ht,heightInLines:ft.current.height/he,domNode:null}),ft.advance()}if(je!==null&&de(je)){const ht=this._produceOriginalFromDiff(je,De,ve);ht&&pt.push(ht)}if(je!==null&&ce(je)){const ht=this._produceModifiedFromDiff(je,De,ve);ht&&it.push(ht)}let Ct=0,nt=0;for(pt=pt.sort(Je),it=it.sort(Je);Ct<pt.length&&nt<it.length;){const ht=pt[Ct],Ke=it[nt],Oe=ht.afterLineNumber-Be,qe=Ke.afterLineNumber-Re;Oe<qe?(rt(Ce.original,ht),Ct++):qe<Oe?(rt(Ce.modified,Ke),nt++):ht.shouldNotShrink?(rt(Ce.original,ht),Ct++):Ke.shouldNotShrink?(rt(Ce.modified,Ke),nt++):ht.heightInLines>=Ke.heightInLines?(ht.heightInLines-=Ke.heightInLines,nt++):(Ke.heightInLines-=ht.heightInLines,Ct++)}for(;Ct<pt.length;)rt(Ce.original,pt[Ct]),Ct++;for(;nt<it.length;)rt(Ce.modified,it[nt]),nt++}return{original:Y._ensureDomNodes(Ce.original),modified:Y._ensureDomNodes(Ce.modified)}}static _ensureDomNodes(he){return he.map(re=>(re.domNode||(re.domNode=_e()),re))}}function U(fe,he,re,ge,Se){return{range:new l.Range(fe,he,re,ge),options:Se}}const le={arrowRevertChange:c.ModelDecorationOptions.register({description:"diff-editor-arrow-revert-change",glyphMarginClassName:"arrow-revert-change "+R.ThemeIcon.asClassName(K.Codicon.arrowRight)}),charDelete:c.ModelDecorationOptions.register({description:"diff-editor-char-delete",className:"char-delete"}),charDeleteWholeLine:c.ModelDecorationOptions.register({description:"diff-editor-char-delete-whole-line",className:"char-delete",isWholeLine:!0}),charInsert:c.ModelDecorationOptions.register({description:"diff-editor-char-insert",className:"char-insert"}),charInsertWholeLine:c.ModelDecorationOptions.register({description:"diff-editor-char-insert-whole-line",className:"char-insert",isWholeLine:!0}),lineInsert:c.ModelDecorationOptions.register({description:"diff-editor-line-insert",className:"line-insert",marginClassName:"gutter-insert",isWholeLine:!0}),lineInsertWithSign:c.ModelDecorationOptions.register({description:"diff-editor-line-insert-with-sign",className:"line-insert",linesDecorationsClassName:"insert-sign "+R.ThemeIcon.asClassName(te),marginClassName:"gutter-insert",isWholeLine:!0}),lineDelete:c.ModelDecorationOptions.register({description:"diff-editor-line-delete",className:"line-delete",marginClassName:"gutter-delete",isWholeLine:!0}),lineDeleteWithSign:c.ModelDecorationOptions.register({description:"diff-editor-line-delete-with-sign",className:"line-delete",linesDecorationsClassName:"delete-sign "+R.ThemeIcon.asClassName(Z),marginClassName:"gutter-delete",isWholeLine:!0}),lineDeleteMargin:c.ModelDecorationOptions.register({description:"diff-editor-line-delete-margin",marginClassName:"gutter-delete"})};class z extends H{constructor(he,re){super(he),this._disableSash=re===!1,this._sashRatio=null,this._sashPosition=null,this._startSashPosition=null,this._sash=this._register(new w.Sash(this._dataSource.getContainerDomNode(),this,{orientation:0})),this._disableSash&&(this._sash.state=0),this._sash.onDidStart(()=>this._onSashDragStart()),this._sash.onDidChange(ge=>this._onSashDrag(ge)),this._sash.onDidEnd(()=>this._onSashDragEnd()),this._sash.onDidReset(()=>this._onSashReset())}setEnableSplitViewResizing(he){const re=he===!1;this._disableSash!==re&&(this._disableSash=re,this._sash.state=this._disableSash?0:3)}layout(he=this._sashRatio){const re=this._dataSource.getWidth()-(this._dataSource.getOptions().renderOverviewRuler?ie.ENTIRE_DIFF_OVERVIEW_WIDTH:0);let ge=Math.floor((he||.5)*re);const Se=Math.floor(.5*re);return ge=this._disableSash?Se:ge||Se,re>z.MINIMUM_EDITOR_WIDTH*2?(ge<z.MINIMUM_EDITOR_WIDTH&&(ge=z.MINIMUM_EDITOR_WIDTH),ge>re-z.MINIMUM_EDITOR_WIDTH&&(ge=re-z.MINIMUM_EDITOR_WIDTH)):ge=Se,this._sashPosition!==ge&&(this._sashPosition=ge),this._sash.layout(),this._sashPosition}_onSashDragStart(){this._startSashPosition=this._sashPosition}_onSashDrag(he){const re=this._dataSource.getWidth()-(this._dataSource.getOptions().renderOverviewRuler?ie.ENTIRE_DIFF_OVERVIEW_WIDTH:0),ge=this.layout((this._startSashPosition+(he.currentX-he.startX))/re);this._sashRatio=ge/re,this._dataSource.relayoutEditors()}_onSashDragEnd(){this._sash.layout()}_onSashReset(){this._sashRatio=.5,this._dataSource.relayoutEditors(),this._sash.layout()}getVerticalSashTop(he){return 0}getVerticalSashLeft(he){return this._sashPosition}getVerticalSashHeight(he){return this._dataSource.getHeight()}_getViewZones(he,re,ge){const Se=this._dataSource.getOriginalEditor(),Le=this._dataSource.getModifiedEditor();return new Q(he,re,ge,Se,Le).getViewZones()}_getOriginalEditorDecorations(he,re,ge,Se){const Le=this._dataSource.getOriginalEditor(),Ne=String(this._removeColor),Ae={decorations:[],overviewZones:[]},Pe=Le.getModel(),Ce=Le._getViewModel();for(const ve of re)if(ce(ve)){Ae.decorations.push({range:new l.Range(ve.originalStartLineNumber,1,ve.originalEndLineNumber,1073741824),options:Se?le.lineDeleteWithSign:le.lineDelete}),(!de(ve)||!ve.charChanges)&&Ae.decorations.push(U(ve.originalStartLineNumber,1,ve.originalEndLineNumber,1073741824,le.charDeleteWholeLine));const De=ke(Pe,Ce,ve.originalStartLineNumber,ve.originalEndLineNumber);if(Ae.overviewZones.push(new f.OverviewRulerZone(De.startLineNumber,De.endLineNumber,0,Ne)),ve.charChanges){for(const Be of ve.charChanges)if(me(Be))if(ge)for(let Re=Be.originalStartLineNumber;Re<=Be.originalEndLineNumber;Re++){let Ve,Ue;Re===Be.originalStartLineNumber?Ve=Be.originalStartColumn:Ve=Pe.getLineFirstNonWhitespaceColumn(Re),Re===Be.originalEndLineNumber?Ue=Be.originalEndColumn:Ue=Pe.getLineLastNonWhitespaceColumn(Re),Ae.decorations.push(U(Re,Ve,Re,Ue,le.charDelete))}else Ae.decorations.push(U(Be.originalStartLineNumber,Be.originalStartColumn,Be.originalEndLineNumber,Be.originalEndColumn,le.charDelete))}}return Ae}_getModifiedEditorDecorations(he,re,ge,Se,Le){const Ne=this._dataSource.getModifiedEditor(),Ae=String(this._insertColor),Pe={decorations:[],overviewZones:[]},Ce=Ne.getModel(),ve=Ne._getViewModel();for(const De of re){if(Le)if(De.modifiedEndLineNumber>0)Pe.decorations.push({range:new l.Range(De.modifiedStartLineNumber,1,De.modifiedStartLineNumber,1),options:le.arrowRevertChange});else{const Be=he.modified.find(Re=>Re.afterLineNumber===De.modifiedStartLineNumber);Be&&(Be.marginDomNode=ye())}if(de(De)){Pe.decorations.push({range:new l.Range(De.modifiedStartLineNumber,1,De.modifiedEndLineNumber,1073741824),options:Se?le.lineInsertWithSign:le.lineInsert}),(!ce(De)||!De.charChanges)&&Pe.decorations.push(U(De.modifiedStartLineNumber,1,De.modifiedEndLineNumber,1073741824,le.charInsertWholeLine));const Be=ke(Ce,ve,De.modifiedStartLineNumber,De.modifiedEndLineNumber);if(Pe.overviewZones.push(new f.OverviewRulerZone(Be.startLineNumber,Be.endLineNumber,0,Ae)),De.charChanges){for(const Re of De.charChanges)if(ue(Re))if(ge)for(let Ve=Re.modifiedStartLineNumber;Ve<=Re.modifiedEndLineNumber;Ve++){let Ue,Je;Ve===Re.modifiedStartLineNumber?Ue=Re.modifiedStartColumn:Ue=Ce.getLineFirstNonWhitespaceColumn(Ve),Ve===Re.modifiedEndLineNumber?Je=Re.modifiedEndColumn:Je=Ce.getLineLastNonWhitespaceColumn(Ve),Pe.decorations.push(U(Ve,Ue,Ve,Je,le.charInsert))}else Pe.decorations.push(U(Re.modifiedStartLineNumber,Re.modifiedStartColumn,Re.modifiedEndLineNumber,Re.modifiedEndColumn,le.charInsert))}}}return Pe}}z.MINIMUM_EDITOR_WIDTH=100;class Q extends Y{constructor(he,re,ge,Se,Le){super(he,re,ge,Se,Le)}_createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion(){return null}_produceOriginalFromDiff(he,re,ge){return ge>re?{afterLineNumber:Math.max(he.originalStartLineNumber,he.originalEndLineNumber),heightInLines:ge-re,domNode:null}:null}_produceModifiedFromDiff(he,re,ge){return re>ge?{afterLineNumber:Math.max(he.modifiedStartLineNumber,he.modifiedEndLineNumber),heightInLines:re-ge,domNode:null}:null}}class W extends H{constructor(he,re){super(he),this._decorationsLeft=he.getOriginalEditor().getLayoutInfo().decorationsLeft,this._register(he.getOriginalEditor().onDidLayoutChange(ge=>{this._decorationsLeft!==ge.decorationsLeft&&(this._decorationsLeft=ge.decorationsLeft,he.relayoutEditors())}))}setEnableSplitViewResizing(he){}_getViewZones(he,re,ge,Se){const Le=this._dataSource.getOriginalEditor(),Ne=this._dataSource.getModifiedEditor();return new V(he,re,ge,Le,Ne,Se).getViewZones()}_getOriginalEditorDecorations(he,re,ge,Se){const Le=String(this._removeColor),Ne={decorations:[],overviewZones:[]},Ae=this._dataSource.getOriginalEditor(),Pe=Ae.getModel(),Ce=Ae._getViewModel();let ve=0;for(const De of re)if(ce(De)){for(Ne.decorations.push({range:new l.Range(De.originalStartLineNumber,1,De.originalEndLineNumber,1073741824),options:le.lineDeleteMargin});ve<he.modified.length;){const Ve=he.modified[ve];if(Ve.diff&&Ve.diff.originalStartLineNumber>=De.originalStartLineNumber)break;ve++}let Be=0;if(ve<he.modified.length){const Ve=he.modified[ve];Ve.diff&&Ve.diff.originalStartLineNumber===De.originalStartLineNumber&&Ve.diff.originalEndLineNumber===De.originalEndLineNumber&&Ve.diff.modifiedStartLineNumber===De.modifiedStartLineNumber&&Ve.diff.modifiedEndLineNumber===De.modifiedEndLineNumber&&(Be=Ve.heightInLines)}const Re=ke(Pe,Ce,De.originalStartLineNumber,De.originalEndLineNumber);Ne.overviewZones.push(new f.OverviewRulerZone(Re.startLineNumber,Re.endLineNumber,Be,Le))}return Ne}_getModifiedEditorDecorations(he,re,ge,Se,Le){const Ne=this._dataSource.getModifiedEditor(),Ae=String(this._insertColor),Pe={decorations:[],overviewZones:[]},Ce=Ne.getModel(),ve=Ne._getViewModel();for(const De of re)if(de(De)){Pe.decorations.push({range:new l.Range(De.modifiedStartLineNumber,1,De.modifiedEndLineNumber,1073741824),options:Se?le.lineInsertWithSign:le.lineInsert});const Be=ke(Ce,ve,De.modifiedStartLineNumber,De.modifiedEndLineNumber);if(Pe.overviewZones.push(new f.OverviewRulerZone(Be.startLineNumber,Be.endLineNumber,0,Ae)),De.charChanges){for(const Re of De.charChanges)if(ue(Re))if(ge)for(let Ve=Re.modifiedStartLineNumber;Ve<=Re.modifiedEndLineNumber;Ve++){let Ue,Je;Ve===Re.modifiedStartLineNumber?Ue=Re.modifiedStartColumn:Ue=Ce.getLineFirstNonWhitespaceColumn(Ve),Ve===Re.modifiedEndLineNumber?Je=Re.modifiedEndColumn:Je=Ce.getLineLastNonWhitespaceColumn(Ve),Pe.decorations.push(U(Ve,Ue,Ve,Je,le.charInsert))}else Pe.decorations.push(U(Re.modifiedStartLineNumber,Re.modifiedStartColumn,Re.modifiedEndLineNumber,Re.modifiedEndColumn,le.charInsert))}else Pe.decorations.push(U(De.modifiedStartLineNumber,1,De.modifiedEndLineNumber,1073741824,le.charInsertWholeLine))}return Pe}layout(){return Math.max(5,this._decorationsLeft)}}class V extends Y{constructor(he,re,ge,Se,Le,Ne){super(he,re,ge,Se,Le),this._originalModel=Se.getModel(),this._renderIndicators=Ne,this._pendingLineChange=[],this._pendingViewZones=[],this._lineBreaksComputer=this._modifiedEditor._getViewModel().createLineBreaksComputer()}getViewZones(){const he=super.getViewZones();return this._finalize(he),he}_createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion(){const he=document.createElement("div");return he.className="inline-added-margin-view-zone",he}_produceOriginalFromDiff(he,re,ge){const Se=document.createElement("div");return Se.className="inline-added-margin-view-zone",{afterLineNumber:Math.max(he.originalStartLineNumber,he.originalEndLineNumber),heightInLines:ge,domNode:document.createElement("div"),marginDomNode:Se}}_produceModifiedFromDiff(he,re,ge){const Se=document.createElement("div");Se.className=`view-lines line-delete ${T.MOUSE_CURSOR_TEXT_CSS_CLASS_NAME}`;const Le=document.createElement("div");Le.className="inline-deleted-margin-view-zone";const Ne={shouldNotShrink:!0,afterLineNumber:he.modifiedEndLineNumber===0?he.modifiedStartLineNumber:he.modifiedStartLineNumber-1,heightInLines:re,minWidthInPx:0,domNode:Se,marginDomNode:Le,diff:{originalStartLineNumber:he.originalStartLineNumber,originalEndLineNumber:he.originalEndLineNumber,modifiedStartLineNumber:he.modifiedStartLineNumber,modifiedEndLineNumber:he.modifiedEndLineNumber,originalModel:this._originalModel,viewLineCounts:null}};for(let Ae=he.originalStartLineNumber;Ae<=he.originalEndLineNumber;Ae++)this._lineBreaksComputer.addRequest(this._originalModel.getLineContent(Ae),null,null);return this._pendingLineChange.push(he),this._pendingViewZones.push(Ne),Ne}_finalize(he){const re=this._modifiedEditor.getOptions(),ge=this._modifiedEditor.getModel().getOptions().tabSize,Se=re.get(46),Le=re.get(29),Ne=Se.typicalHalfwidthCharacterWidth,Ae=re.get(95),Pe=this._originalModel.mightContainNonBasicASCII(),Ce=this._originalModel.mightContainRTL(),ve=re.get(61),De=re.get(133).decorationsWidth,Be=re.get(107),Re=re.get(90),Ve=re.get(85),Ue=re.get(47),Je=this._lineBreaksComputer.finalize();let rt=0;for(let gt=0;gt<this._pendingLineChange.length;gt++){const ft=this._pendingLineChange[gt],xe=this._pendingViewZones[gt],$e=xe.domNode;(0,u.applyFontInfo)($e,Se);const He=xe.marginDomNode;(0,u.applyFontInfo)(He,Se);const et=[];if(ft.charChanges)for(const Oe of ft.charChanges)me(Oe)&&et.push(new m.InlineDecoration(new l.Range(Oe.originalStartLineNumber,Oe.originalStartColumn,Oe.originalEndLineNumber,Oe.originalEndColumn),"char-delete",0));const je=et.length>0,pt=(0,a.createStringBuilder)(1e4);let it=0,Ct=0,nt=null;for(let Oe=ft.originalStartLineNumber;Oe<=ft.originalEndLineNumber;Oe++){const qe=Oe-ft.originalStartLineNumber,Ye=this._originalModel.tokenization.getLineTokens(Oe),tt=Ye.getLineContent(),at=Je[rt++],lt=_.LineDecoration.filter(et,Oe,1,tt.length+1);if(at){let _t=0;for(const Ft of at.breakOffsets){const Ot=Ye.sliceAndInflate(_t,Ft,0),Pt=tt.substring(_t,Ft);it=Math.max(it,this._renderOriginalLine(Ct++,Pt,Ot,_.LineDecoration.extractWrapped(lt,_t,Ft),je,Pe,Ce,Se,Le,ve,De,Be,Re,Ve,Ue,ge,pt,He)),_t=Ft}for(nt||(nt=[]);nt.length<qe;)nt[nt.length]=1;nt[qe]=at.breakOffsets.length,xe.heightInLines+=at.breakOffsets.length-1;const xt=document.createElement("div");xt.className="gutter-delete",he.original.push({afterLineNumber:Oe,afterColumn:0,heightInLines:at.breakOffsets.length-1,domNode:_e(),marginDomNode:xt})}else it=Math.max(it,this._renderOriginalLine(Ct++,tt,Ye,lt,je,Pe,Ce,Se,Le,ve,De,Be,Re,Ve,Ue,ge,pt,He))}it+=Ae;const ht=pt.build(),Ke=X?X.createHTML(ht):ht;if($e.innerHTML=Ke,xe.minWidthInPx=it*Ne,nt){const Oe=ft.originalEndLineNumber-ft.originalStartLineNumber;for(;nt.length<=Oe;)nt[nt.length]=1}xe.diff.viewLineCounts=nt}he.original.sort((gt,ft)=>gt.afterLineNumber-ft.afterLineNumber)}_renderOriginalLine(he,re,ge,Se,Le,Ne,Ae,Pe,Ce,ve,De,Be,Re,Ve,Ue,Je,rt,gt){rt.appendASCIIString('<div class="view-line'),Le||rt.appendASCIIString(" char-delete"),rt.appendASCIIString('" style="top:'),rt.appendASCIIString(String(he*ve)),rt.appendASCIIString('px;width:1000000px;">');const ft=m.ViewLineRenderingData.isBasicASCII(re,Ne),xe=m.ViewLineRenderingData.containsRTL(re,ft,Ae),$e=(0,p.renderViewLine)(new p.RenderLineInput(Pe.isMonospace&&!Ce,Pe.canUseHalfwidthRightwardsArrow,re,!1,ft,xe,0,ge,Se,Je,0,Pe.spaceWidth,Pe.middotWidth,Pe.wsmiddotWidth,Be,Re,Ve,Ue!==s.EditorFontLigatures.OFF,null),rt);if(rt.appendASCIIString("</div>"),this._renderIndicators){const He=document.createElement("div");He.className=`delete-sign ${R.ThemeIcon.asClassName(Z)}`,He.setAttribute("style",`position:absolute;top:${he*ve}px;width:${De}px;height:${ve}px;right:0;`),gt.appendChild(He)}return $e.characterMapping.getHorizontalOffset($e.characterMapping.length)}}function ne(fe,he){return(0,s.stringSet)(fe,he,["off","on","inherit"])}function de(fe){return fe.modifiedEndLineNumber>0}function ce(fe){return fe.originalEndLineNumber>0}function ue(fe){return fe.modifiedStartLineNumber===fe.modifiedEndLineNumber?fe.modifiedEndColumn-fe.modifiedStartColumn>0:fe.modifiedEndLineNumber-fe.modifiedStartLineNumber>0}function me(fe){return fe.originalStartLineNumber===fe.originalEndLineNumber?fe.originalEndColumn-fe.originalStartColumn>0:fe.originalEndLineNumber-fe.originalStartLineNumber>0}function _e(){const fe=document.createElement("div");return fe.className="diagonal-fill",fe}function ye(){const fe=document.createElement("div");return fe.className="arrow-revert-change "+R.ThemeIcon.asClassName(K.Codicon.arrowRight),v.$("div",{},fe)}function ke(fe,he,re,ge){const Se=fe.getLineCount();return re=Math.min(Se,Math.max(1,re)),ge=Math.min(Se,Math.max(1,ge)),he.coordinatesConverter.convertModelRangeToViewRange(new l.Range(re,fe.getLineMinColumn(re),ge,fe.getLineMaxColumn(ge)))}function Te(fe,he){return{enableSplitViewResizing:(0,s.boolean)(fe.enableSplitViewResizing,he.enableSplitViewResizing),renderSideBySide:(0,s.boolean)(fe.renderSideBySide,he.renderSideBySide),renderMarginRevertIcon:(0,s.boolean)(fe.renderMarginRevertIcon,he.renderMarginRevertIcon),maxComputationTime:(0,s.clampedInt)(fe.maxComputationTime,he.maxComputationTime,0,1073741824),maxFileSize:(0,s.clampedInt)(fe.maxFileSize,he.maxFileSize,0,1073741824),ignoreTrimWhitespace:(0,s.boolean)(fe.ignoreTrimWhitespace,he.ignoreTrimWhitespace),renderIndicators:(0,s.boolean)(fe.renderIndicators,he.renderIndicators),originalEditable:(0,s.boolean)(fe.originalEditable,he.originalEditable),diffCodeLens:(0,s.boolean)(fe.diffCodeLens,he.diffCodeLens),renderOverviewRuler:(0,s.boolean)(fe.renderOverviewRuler,he.renderOverviewRuler),diffWordWrap:ne(fe.diffWordWrap,he.diffWordWrap)}}function Me(fe,he){return{enableSplitViewResizing:fe.enableSplitViewResizing!==he.enableSplitViewResizing,renderSideBySide:fe.renderSideBySide!==he.renderSideBySide,renderMarginRevertIcon:fe.renderMarginRevertIcon!==he.renderMarginRevertIcon,maxComputationTime:fe.maxComputationTime!==he.maxComputationTime,maxFileSize:fe.maxFileSize!==he.maxFileSize,ignoreTrimWhitespace:fe.ignoreTrimWhitespace!==he.ignoreTrimWhitespace,renderIndicators:fe.renderIndicators!==he.renderIndicators,originalEditable:fe.originalEditable!==he.originalEditable,diffCodeLens:fe.diffCodeLens!==he.diffCodeLens,renderOverviewRuler:fe.renderOverviewRuler!==he.renderOverviewRuler,diffWordWrap:fe.diffWordWrap!==he.diffWordWrap}}(0,R.registerThemingParticipant)((fe,he)=>{const re=fe.getColor(I.diffInserted);re&&he.addRule(`.monaco-editor .char-insert, .monaco-diff-editor .char-insert { background-color: ${re}; }`);const ge=fe.getColor(I.diffInsertedLine)||re;ge&&he.addRule(`.monaco-editor .line-insert, .monaco-diff-editor .line-insert { background-color: ${ge}; }`);const Se=fe.getColor(I.diffInsertedLineGutter)||ge;Se&&(he.addRule(`.monaco-editor .inline-added-margin-view-zone { background-color: ${Se}; }`),he.addRule(`.monaco-editor .gutter-insert, .monaco-diff-editor .gutter-insert { background-color: ${Se}; }`));const Le=fe.getColor(I.diffRemoved);Le&&he.addRule(`.monaco-editor .char-delete, .monaco-diff-editor .char-delete { background-color: ${Le}; }`);const Ne=fe.getColor(I.diffRemovedLine)||Le;Ne&&he.addRule(`.monaco-editor .line-delete, .monaco-diff-editor .line-delete { background-color: ${Ne}; }`);const Ae=fe.getColor(I.diffRemovedLineGutter)||Ne;Ae&&(he.addRule(`.monaco-editor .inline-deleted-margin-view-zone { background-color: ${Ae}; }`),he.addRule(`.monaco-editor .gutter-delete, .monaco-diff-editor .gutter-delete { background-color: ${Ae}; }`));const Pe=fe.getColor(I.diffInsertedOutline);Pe&&he.addRule(`.monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px ${(0,J.isHighContrast)(fe.type)?"dashed":"solid"} ${Pe}; }`);const Ce=fe.getColor(I.diffRemovedOutline);Ce&&he.addRule(`.monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px ${(0,J.isHighContrast)(fe.type)?"dashed":"solid"} ${Ce}; }`);const ve=fe.getColor(I.scrollbarShadow);ve&&he.addRule(`.monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px ${ve}; }`);const De=fe.getColor(I.diffBorder);De&&he.addRule(`.monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid ${De}; }`);const Be=fe.getColor(I.scrollbarSliderBackground);Be&&he.addRule(` .monaco-diff-editor .diffViewport { background: ${Be}; } `);const Re=fe.getColor(I.scrollbarSliderHoverBackground);Re&&he.addRule(` .monaco-diff-editor .diffViewport:hover { background: ${Re}; } `);const Ve=fe.getColor(I.scrollbarSliderActiveBackground);Ve&&he.addRule(` .monaco-diff-editor .diffViewport:active { background: ${Ve}; } `);const Ue=fe.getColor(I.diffDiagonalFill);he.addRule(` .monaco-editor .diagonal-fill { background-image: linear-gradient( -45deg, ${Ue} 12.5%, #0000 12.5%, #0000 50%, ${Ue} 50%, ${Ue} 62.5%, #0000 62.5%, #0000 100% ); background-size: 8px 8px; } `)})}),define(oe[174],se([1,0,40,29,173,26,16,9,38,15,77,32,20]),function(q,e,y,v,k,D,w,b,C,h,u,n,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EmbeddedCodeEditorWidget=void 0;let t=class extends k.CodeEditorWidget{constructor(o,s,d,l,a,r,c,g,f,_,p,m){super(o,Object.assign(Object.assign({},d.getRawOptions()),{overflowWidgetsDomNode:d.getOverflowWidgetsDomNode()}),{},l,a,r,c,g,f,_,p,m),this._parentEditor=d,this._overwriteOptions=s,super.updateOptions(this._overwriteOptions),this._register(d.onDidChangeConfiguration(S=>this._onParentConfigurationChanged(S)))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(o){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(o){y.mixin(this._overwriteOptions,o,!0),super.updateOptions(this._overwriteOptions)}};t=Ie([pe(3,b.IInstantiationService),pe(4,v.ICodeEditorService),pe(5,D.ICommandService),pe(6,w.IContextKeyService),pe(7,h.IThemeService),pe(8,C.INotificationService),pe(9,u.IAccessibilityService),pe(10,n.ILanguageConfigurationService),pe(11,i.ILanguageFeaturesService)],t),e.EmbeddedCodeEditorWidget=t}),define(oe[740],se([1,0,10,2,12,11,3,23,24,46,35,54,539,39,25,15,372]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BracketMatchingController=void 0;const d=(0,o.registerColor)("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},i.localize(0,null));class l extends k.EditorAction{constructor(){super({id:"editor.action.jumpToBracket",label:i.localize(1,null),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:C.EditorContextKeys.editorTextFocus,primary:3160,weight:100}})}run(f,_){var p;(p=c.get(_))===null||p===void 0||p.jumpToBracket()}}class a extends k.EditorAction{constructor(){super({id:"editor.action.selectToBracket",label:i.localize(2,null),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(f,_,p){var m;let S=!0;p&&p.selectBrackets===!1&&(S=!1),(m=c.get(_))===null||m===void 0||m.selectToBracket(S)}}class r{constructor(f,_,p){this.position=f,this.brackets=_,this.options=p}}class c extends v.Disposable{constructor(f){super(),this._editor=f,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new y.RunOnceScheduler(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(66),this._updateBracketsSoon.schedule(),this._register(f.onDidChangeCursorPosition(_=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(f.onDidChangeModelContent(_=>{this._updateBracketsSoon.schedule()})),this._register(f.onDidChangeModel(_=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(f.onDidChangeModelLanguageConfiguration(_=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(f.onDidChangeConfiguration(_=>{_.hasChanged(66)&&(this._matchBrackets=this._editor.getOption(66),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(f.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(f.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}static get(f){return f.getContribution(c.ID)}jumpToBracket(){if(!this._editor.hasModel())return;const f=this._editor.getModel(),_=this._editor.getSelections().map(p=>{const m=p.getStartPosition(),S=f.bracketPairs.matchBracket(m);let E=null;if(S)S[0].containsPosition(m)&&!S[1].containsPosition(m)?E=S[1].getStartPosition():S[1].containsPosition(m)&&(E=S[0].getStartPosition());else{const L=f.bracketPairs.findEnclosingBrackets(m);if(L)E=L[1].getStartPosition();else{const N=f.bracketPairs.findNextBracket(m);N&&N.range&&(E=N.range.getStartPosition())}}return E?new b.Selection(E.lineNumber,E.column,E.lineNumber,E.column):new b.Selection(m.lineNumber,m.column,m.lineNumber,m.column)});this._editor.setSelections(_),this._editor.revealRange(_[0])}selectToBracket(f){if(!this._editor.hasModel())return;const _=this._editor.getModel(),p=[];this._editor.getSelections().forEach(m=>{const S=m.getStartPosition();let E=_.bracketPairs.matchBracket(S);if(!E&&(E=_.bracketPairs.findEnclosingBrackets(S),!E)){const I=_.bracketPairs.findNextBracket(S);I&&I.range&&(E=_.bracketPairs.matchBracket(I.range.getStartPosition()))}let L=null,N=null;if(E){E.sort(w.Range.compareRangesUsingStarts);const[I,R]=E;if(L=f?I.getStartPosition():I.getEndPosition(),N=f?R.getEndPosition():R.getStartPosition(),R.containsPosition(S)){const F=L;L=N,N=F}}L&&N&&p.push(new b.Selection(L.lineNumber,L.column,N.lineNumber,N.column))}),p.length>0&&(this._editor.setSelections(p),this._editor.revealRange(p[0]))}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const f=[];let _=0;for(const p of this._lastBracketsData){const m=p.brackets;m&&(f[_++]={range:m[0],options:p.options},f[_++]={range:m[1],options:p.options})}this._decorations.set(f)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const f=this._editor.getSelections();if(f.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const _=this._editor.getModel(),p=_.getVersionId();let m=[];this._lastVersionId===p&&(m=this._lastBracketsData);const S=[];let E=0;for(let F=0,O=f.length;F<O;F++){const x=f[F];x.isEmpty()&&(S[E++]=x.getStartPosition())}S.length>1&&S.sort(D.Position.compare);const L=[];let N=0,I=0;const R=m.length;for(let F=0,O=S.length;F<O;F++){const x=S[F];for(;I<R&&m[I].position.isBefore(x);)I++;if(I<R&&m[I].position.equals(x))L[N++]=m[I];else{let M=_.bracketPairs.matchBracket(x,20),P=c._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;!M&&this._matchBrackets==="always"&&(M=_.bracketPairs.findEnclosingBrackets(x,20),P=c._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),L[N++]=new r(x,M,P)}}this._lastBracketsData=L,this._lastVersionId=p}}e.BracketMatchingController=c,c.ID="editor.contrib.bracketMatchingController",c._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=u.ModelDecorationOptions.register({description:"bracket-match-overview",stickiness:1,className:"bracket-match",overviewRuler:{color:(0,s.themeColorFromId)(d),position:h.OverviewRulerLane.Center}}),c._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=u.ModelDecorationOptions.register({description:"bracket-match-no-overview",stickiness:1,className:"bracket-match"}),(0,k.registerEditorContribution)(c.ID,c),(0,k.registerEditorAction)(a),(0,k.registerEditorAction)(l),(0,s.registerThemingParticipant)((g,f)=>{const _=g.getColor(n.editorBracketMatchBackground);_&&f.addRule(`.monaco-editor .bracket-match { background-color: ${_}; }`);const p=g.getColor(n.editorBracketMatchBorder);p&&f.addRule(`.monaco-editor .bracket-match { border: 1px solid ${p}; }`)}),t.MenuRegistry.appendMenuItem(t.MenuId.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:i.localize(3,null)},order:2})}),define(oe[741],se([1,0,7,134,3,35,375]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CodeLensWidget=e.CodeLensHelper=void 0;class w{constructor(n,i,t){this.afterColumn=1073741824,this.afterLineNumber=n,this.heightInPx=i,this._onHeight=t,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}onComputedHeight(n){this._lastHeight===void 0?this._lastHeight=n:this._lastHeight!==n&&(this._lastHeight=n,this._onHeight())}isVisible(){return this._lastHeight!==0&&this.domNode.hasAttribute("monaco-visible-view-zone")}}class b{constructor(n,i,t){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=n,this._id=`codelens.widget-${b._idPool++}`,this.updatePosition(t),this._domNode=document.createElement("span"),this._domNode.className=`codelens-decoration ${i}`}withCommands(n,i){this._commands.clear();const t=[];let o=!1;for(let s=0;s<n.length;s++){const d=n[s];if(d&&(o=!0,d.command)){const l=(0,v.renderLabelWithIcons)(d.command.title.trim());d.command.id?(t.push(y.$("a",{id:String(s),title:d.command.tooltip,role:"button"},...l)),this._commands.set(String(s),d.command)):t.push(y.$("span",{title:d.command.tooltip},...l)),s+1<n.length&&t.push(y.$("span",void 0,"\xA0|\xA0"))}}o?(y.reset(this._domNode,...t),this._isEmpty&&i&&this._domNode.classList.add("fadein"),this._isEmpty=!1):y.reset(this._domNode,y.$("span",void 0,"no commands"))}getCommand(n){return n.parentElement===this._domNode?this._commands.get(n.id):void 0}getId(){return this._id}getDomNode(){return this._domNode}updatePosition(n){const i=this._editor.getModel().getLineFirstNonWhitespaceColumn(n);this._widgetPosition={position:{lineNumber:n,column:i},preference:[1]}}getPosition(){return this._widgetPosition||null}}b._idPool=0;class C{constructor(){this._removeDecorations=[],this._addDecorations=[],this._addDecorationsCallbacks=[]}addDecoration(n,i){this._addDecorations.push(n),this._addDecorationsCallbacks.push(i)}removeDecoration(n){this._removeDecorations.push(n)}commit(n){const i=n.deltaDecorations(this._removeDecorations,this._addDecorations);for(let t=0,o=i.length;t<o;t++)this._addDecorationsCallbacks[t](i[t])}}e.CodeLensHelper=C;class h{constructor(n,i,t,o,s,d,l){this._isDisposed=!1,this._editor=i,this._className=t,this._data=n,this._decorationIds=[];let a;const r=[];this._data.forEach((c,g)=>{c.symbol.command&&r.push(c.symbol),o.addDecoration({range:c.symbol.range,options:D.ModelDecorationOptions.EMPTY},f=>this._decorationIds[g]=f),a?a=k.Range.plusRange(a,c.symbol.range):a=k.Range.lift(c.symbol.range)}),this._viewZone=new w(a.startLineNumber-1,d,l),this._viewZoneId=s.addZone(this._viewZone),r.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(r,!1))}_createContentWidgetIfNecessary(){this._contentWidget?this._editor.layoutContentWidget(this._contentWidget):(this._contentWidget=new b(this._editor,this._className,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(n,i){this._decorationIds.forEach(n.removeDecoration,n),this._decorationIds=[],i?.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some((n,i)=>{const t=this._editor.getModel().getDecorationRange(n),o=this._data[i].symbol;return!!(t&&k.Range.isEmpty(o.range)===t.isEmpty())})}updateCodeLensSymbols(n,i){this._decorationIds.forEach(i.removeDecoration,i),this._decorationIds=[],this._data=n,this._data.forEach((t,o)=>{i.addDecoration({range:t.symbol.range,options:D.ModelDecorationOptions.EMPTY},s=>this._decorationIds[o]=s)})}updateHeight(n,i){this._viewZone.heightInPx=n,i.layoutZone(this._viewZoneId),this._contentWidget&&this._editor.layoutContentWidget(this._contentWidget)}computeIfNecessary(n){if(!this._viewZone.isVisible())return null;for(let i=0;i<this._decorationIds.length;i++){const t=n.getDecorationRange(this._decorationIds[i]);t&&(this._data[i].symbol.range=t)}return this._data}updateCommands(n){this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(n,!0);for(let i=0;i<this._data.length;i++){const t=n[i];if(t){const{symbol:o}=this._data[i];o.command=t.command||o.command}}}getCommand(n){var i;return(i=this._contentWidget)===null||i===void 0?void 0:i.getCommand(n)}getLineNumber(){const n=this._editor.getModel().getDecorationRange(this._decorationIds[0]);return n?n.startLineNumber:-1}update(n){if(this.isValid()){const i=this._editor.getModel().getDecorationRange(this._decorationIds[0]);i&&(this._viewZone.afterLineNumber=i.startLineNumber-1,n.layoutZone(this._viewZoneId),this._contentWidget&&(this._contentWidget.updatePosition(i.startLineNumber),this._editor.layoutContentWidget(this._contentWidget)))}}}e.CodeLensWidget=h}),define(oe[742],se([1,0,7,10,14,105,2,152,12,36,24,282,662,741,547,26,38,85,70,20]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CodeLensContribution=void 0;let c=class{constructor(g,f,_,p,m,S){this._editor=g,this._languageFeaturesService=f,this._commandService=p,this._notificationService=m,this._codeLensCache=S,this._disposables=new w.DisposableStore,this._localToDispose=new w.DisposableStore,this._lenses=[],this._oldCodeLensModels=new w.DisposableStore,this._provideCodeLensDebounce=_.for(f.codeLensProvider,"CodeLensProvide",{min:250}),this._resolveCodeLensesDebounce=_.for(f.codeLensProvider,"CodeLensResolve",{min:250,salt:"resolve"}),this._resolveCodeLensesScheduler=new v.RunOnceScheduler(()=>this._resolveCodeLensesInViewport(),this._resolveCodeLensesDebounce.default()),this._disposables.add(this._editor.onDidChangeModel(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeConfiguration(E=>{(E.hasChanged(46)||E.hasChanged(16)||E.hasChanged(15))&&this._updateLensStyle(),E.hasChanged(14)&&this._onModelChange()})),this._disposables.add(f.codeLensProvider.onDidChange(this._onModelChange,this)),this._onModelChange(),this._styleClassName="_"+(0,D.hash)(this._editor.getId()).toString(16),this._styleElement=y.createStyleSheet(y.isInShadowDOM(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0),this._updateLensStyle()}dispose(){var g;this._localDispose(),this._disposables.dispose(),this._oldCodeLensModels.dispose(),(g=this._currentCodeLensModel)===null||g===void 0||g.dispose(),this._styleElement.remove()}_getLayoutInfo(){const g=Math.max(1.3,this._editor.getOption(61)/this._editor.getOption(48));let f=this._editor.getOption(16);return(!f||f<5)&&(f=this._editor.getOption(48)*.9|0),{fontSize:f,codeLensHeight:f*g|0}}_updateLensStyle(){const{codeLensHeight:g,fontSize:f}=this._getLayoutInfo(),_=this._editor.getOption(15),p=this._editor.getOption(46),m=`--codelens-font-family${this._styleClassName}`,S=`--codelens-font-features${this._styleClassName}`;let E=` .monaco-editor .codelens-decoration.${this._styleClassName} { line-height: ${g}px; font-size: ${f}px; padding-right: ${Math.round(f*.5)}px; font-feature-settings: var(${S}) } .monaco-editor .codelens-decoration.${this._styleClassName} span.codicon { line-height: ${g}px; font-size: ${f}px; } `;_&&(E+=`.monaco-editor .codelens-decoration.${this._styleClassName} { font-family: var(${m}), ${h.EDITOR_FONT_DEFAULTS.fontFamily}}`),this._styleElement.textContent=E,this._editor.getContainerDomNode().style.setProperty(m,_??"inherit"),this._editor.getContainerDomNode().style.setProperty(S,p.fontFeatureSettings),this._editor.changeViewZones(L=>{for(const N of this._lenses)N.updateHeight(g,L)})}_localDispose(){var g,f,_;(g=this._getCodeLensModelPromise)===null||g===void 0||g.cancel(),this._getCodeLensModelPromise=void 0,(f=this._resolveCodeLensesPromise)===null||f===void 0||f.cancel(),this._resolveCodeLensesPromise=void 0,this._localToDispose.clear(),this._oldCodeLensModels.clear(),(_=this._currentCodeLensModel)===null||_===void 0||_.dispose()}_onModelChange(){this._localDispose();const g=this._editor.getModel();if(!g||!this._editor.getOption(14))return;const f=this._codeLensCache.get(g);if(f&&this._renderCodeLensSymbols(f),!this._languageFeaturesService.codeLensProvider.has(g)){f&&this._localToDispose.add((0,v.disposableTimeout)(()=>{const p=this._codeLensCache.get(g);f===p&&(this._codeLensCache.delete(g),this._onModelChange())},30*1e3));return}for(const p of this._languageFeaturesService.codeLensProvider.all(g))if(typeof p.onDidChange=="function"){const m=p.onDidChange(()=>_.schedule());this._localToDispose.add(m)}const _=new v.RunOnceScheduler(()=>{var p;const m=Date.now();(p=this._getCodeLensModelPromise)===null||p===void 0||p.cancel(),this._getCodeLensModelPromise=(0,v.createCancelablePromise)(S=>(0,n.getCodeLensModel)(this._languageFeaturesService.codeLensProvider,g,S)),this._getCodeLensModelPromise.then(S=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=S,this._codeLensCache.put(g,S);const E=this._provideCodeLensDebounce.update(g,Date.now()-m);_.delay=E,this._renderCodeLensSymbols(S),this._resolveCodeLensesInViewportSoon()},k.onUnexpectedError)},this._provideCodeLensDebounce.get(g));this._localToDispose.add(_),this._localToDispose.add((0,w.toDisposable)(()=>this._resolveCodeLensesScheduler.cancel())),this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._editor.changeDecorations(p=>{this._editor.changeViewZones(m=>{const S=[];let E=-1;this._lenses.forEach(N=>{!N.isValid()||E===N.getLineNumber()?S.push(N):(N.update(m),E=N.getLineNumber())});const L=new t.CodeLensHelper;S.forEach(N=>{N.dispose(L,m),this._lenses.splice(this._lenses.indexOf(N),1)}),L.commit(p)})}),_.schedule()})),this._localToDispose.add(this._editor.onDidFocusEditorWidget(()=>{_.schedule()})),this._localToDispose.add(this._editor.onDidScrollChange(p=>{p.scrollTopChanged&&this._lenses.length>0&&this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(this._editor.onDidLayoutChange(()=>{this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add((0,w.toDisposable)(()=>{if(this._editor.getModel()){const p=b.StableEditorScrollState.capture(this._editor);this._editor.changeDecorations(m=>{this._editor.changeViewZones(S=>{this._disposeAllLenses(m,S)})}),p.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)})),this._localToDispose.add(this._editor.onMouseDown(p=>{if(p.target.type!==9)return;let m=p.target.element;if(m?.tagName==="SPAN"&&(m=m.parentElement),m?.tagName==="A")for(const S of this._lenses){const E=S.getCommand(m);if(E){this._commandService.executeCommand(E.id,...E.arguments||[]).catch(L=>this._notificationService.error(L));break}}})),_.schedule()}_disposeAllLenses(g,f){const _=new t.CodeLensHelper;for(const p of this._lenses)p.dispose(_,f);g&&_.commit(g),this._lenses.length=0}_renderCodeLensSymbols(g){if(!this._editor.hasModel())return;const f=this._editor.getModel().getLineCount(),_=[];let p;for(const E of g.lenses){const L=E.symbol.range.startLineNumber;L<1||L>f||(p&&p[p.length-1].symbol.range.startLineNumber===L?p.push(E):(p=[E],_.push(p)))}const m=b.StableEditorScrollState.capture(this._editor),S=this._getLayoutInfo();this._editor.changeDecorations(E=>{this._editor.changeViewZones(L=>{const N=new t.CodeLensHelper;let I=0,R=0;for(;R<_.length&&I<this._lenses.length;){const F=_[R][0].symbol.range.startLineNumber,O=this._lenses[I].getLineNumber();O<F?(this._lenses[I].dispose(N,L),this._lenses.splice(I,1)):O===F?(this._lenses[I].updateCodeLensSymbols(_[R],N),R++,I++):(this._lenses.splice(I,0,new t.CodeLensWidget(_[R],this._editor,this._styleClassName,N,L,S.codeLensHeight,()=>this._resolveCodeLensesInViewportSoon())),I++,R++)}for(;I<this._lenses.length;)this._lenses[I].dispose(N,L),this._lenses.splice(I,1);for(;R<_.length;)this._lenses.push(new t.CodeLensWidget(_[R],this._editor,this._styleClassName,N,L,S.codeLensHeight,()=>this._resolveCodeLensesInViewportSoon())),R++;N.commit(E)})}),m.restore(this._editor)}_resolveCodeLensesInViewportSoon(){this._editor.getModel()&&this._resolveCodeLensesScheduler.schedule()}_resolveCodeLensesInViewport(){var g;(g=this._resolveCodeLensesPromise)===null||g===void 0||g.cancel(),this._resolveCodeLensesPromise=void 0;const f=this._editor.getModel();if(!f)return;const _=[],p=[];if(this._lenses.forEach(E=>{const L=E.computeIfNecessary(f);L&&(_.push(L),p.push(E))}),_.length===0)return;const m=Date.now(),S=(0,v.createCancelablePromise)(E=>{const L=_.map((N,I)=>{const R=new Array(N.length),F=N.map((O,x)=>!O.symbol.command&&typeof O.provider.resolveCodeLens=="function"?Promise.resolve(O.provider.resolveCodeLens(f,O.symbol,E)).then(M=>{R[x]=M},k.onUnexpectedExternalError):(R[x]=O.symbol,Promise.resolve(void 0)));return Promise.all(F).then(()=>{!E.isCancellationRequested&&!p[I].isDisposed()&&p[I].updateCommands(R)})});return Promise.all(L)});this._resolveCodeLensesPromise=S,this._resolveCodeLensesPromise.then(()=>{const E=this._resolveCodeLensesDebounce.update(f,Date.now()-m);this._resolveCodeLensesScheduler.delay=E,this._currentCodeLensModel&&this._codeLensCache.put(f,this._currentCodeLensModel),this._oldCodeLensModels.clear(),S===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)},E=>{(0,k.onUnexpectedError)(E),S===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)})}getModel(){return this._currentCodeLensModel}};c.ID="css.editor.codeLens",c=Ie([pe(1,r.ILanguageFeaturesService),pe(2,a.ILanguageFeatureDebounceService),pe(3,s.ICommandService),pe(4,d.INotificationService),pe(5,i.ICodeLensCache)],c),e.CodeLensContribution=c,(0,C.registerEditorContribution)(c.ID,c),(0,C.registerEditorAction)(class extends C.EditorAction{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:u.EditorContextKeys.hasCodeLensProvider,label:(0,o.localize)(0,null),alias:"Show CodeLens Commands For Current Line"})}run(g,f){return be(this,void 0,void 0,function*(){if(!f.hasModel())return;const _=g.get(l.IQuickInputService),p=g.get(s.ICommandService),m=g.get(d.INotificationService),S=f.getSelection().positionLineNumber,E=f.getContribution(c.ID);if(!E)return;const L=E.getModel();if(!L)return;const N=[];for(const R of L.lenses)R.symbol.command&&R.symbol.range.startLineNumber===S&&N.push({label:R.symbol.command.title,command:R.symbol.command});if(N.length===0)return;const I=yield _.pick(N,{canPickMany:!1});if(I){if(L.isDisposed)return yield p.executeCommand(this.id);try{yield p.executeCommand(I.command.id,...I.command.arguments||[])}catch(R){m.error(R)}}})}})}),define(oe[312],se([1,0,10,31,14,2,57,8,141,12,3,35,70,20,283,30]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColorDetector=e.ColorDecorationInjectedTextMarker=void 0,e.ColorDecorationInjectedTextMarker=Object.create({});const d=500;let l=class en extends D.Disposable{constructor(r,c,g,f){super(),this._editor=r,this._configurationService=c,this._languageFeaturesService=g,this._localToDispose=this._register(new D.DisposableStore),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=this._editor.createDecorationsCollection(),this._ruleFactory=new C.DynamicCssRules(this._editor),this._colorDecorationClassRefs=this._register(new D.DisposableStore),this._debounceInformation=f.for(g.colorProvider,"Document Colors",{min:en.RECOMPUTE_TIME}),this._register(r.onDidChangeModel(()=>{this._isEnabled=this.isEnabled(),this.onModelChanged()})),this._register(r.onDidChangeModelLanguage(()=>this.onModelChanged())),this._register(g.colorProvider.onDidChange(()=>this.onModelChanged())),this._register(r.onDidChangeConfiguration(()=>{const _=this._isEnabled;this._isEnabled=this.isEnabled(),_!==this._isEnabled&&(this._isEnabled?this.onModelChanged():this.removeAllDecorations())})),this._timeoutTimer=null,this._computePromise=null,this._isEnabled=this.isEnabled(),this.onModelChanged()}isEnabled(){const r=this._editor.getModel();if(!r)return!1;const c=r.getLanguageId(),g=this._configurationService.getValue(c);if(g&&typeof g=="object"){const f=g.colorDecorators;if(f&&f.enable!==void 0&&!f.enable)return f.enable}return this._editor.getOption(17)}static get(r){return r.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}onModelChanged(){if(this.stop(),!this._isEnabled)return;const r=this._editor.getModel();!r||!this._languageFeaturesService.colorProvider.has(r)||(this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._timeoutTimer||(this._timeoutTimer=new y.TimeoutTimer,this._timeoutTimer.cancelAndSet(()=>{this._timeoutTimer=null,this.beginCompute()},this._debounceInformation.get(r)))})),this.beginCompute())}beginCompute(){this._computePromise=(0,y.createCancelablePromise)(r=>be(this,void 0,void 0,function*(){const c=this._editor.getModel();if(!c)return Promise.resolve([]);const g=new w.StopWatch(!1),f=yield(0,o.getColors)(this._languageFeaturesService.colorProvider,c,r);return this._debounceInformation.update(c,g.elapsed()),f})),this._computePromise.then(r=>{this.updateDecorations(r),this.updateColorDecorators(r),this._computePromise=null},k.onUnexpectedError)}stop(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}updateDecorations(r){const c=r.map(g=>({range:{startLineNumber:g.colorInfo.range.startLineNumber,startColumn:g.colorInfo.range.startColumn,endLineNumber:g.colorInfo.range.endLineNumber,endColumn:g.colorInfo.range.endColumn},options:n.ModelDecorationOptions.EMPTY}));this._editor.changeDecorations(g=>{this._decorationsIds=g.deltaDecorations(this._decorationsIds,c),this._colorDatas=new Map,this._decorationsIds.forEach((f,_)=>this._colorDatas.set(f,r[_]))})}updateColorDecorators(r){this._colorDecorationClassRefs.clear();const c=[];for(let g=0;g<r.length&&c.length<d;g++){const{red:f,green:_,blue:p,alpha:m}=r[g].colorInfo.color,S=new v.RGBA(Math.round(f*255),Math.round(_*255),Math.round(p*255),m),E=`rgba(${S.r}, ${S.g}, ${S.b}, ${S.a})`,L=this._colorDecorationClassRefs.add(this._ruleFactory.createClassNameRef({backgroundColor:E}));c.push({range:{startLineNumber:r[g].colorInfo.range.startLineNumber,startColumn:r[g].colorInfo.range.startColumn,endLineNumber:r[g].colorInfo.range.endLineNumber,endColumn:r[g].colorInfo.range.endColumn},options:{description:"colorDetector",before:{content:b.noBreakWhitespace,inlineClassName:`${L.className} colorpicker-color-decoration`,inlineClassNameAffectsLetterSpacing:!0,attachedData:e.ColorDecorationInjectedTextMarker}}})}this._colorDecoratorIds.set(c)}removeAllDecorations(){this._editor.removeDecorations(this._decorationsIds),this._decorationsIds=[],this._colorDecoratorIds.clear(),this._colorDecorationClassRefs.clear()}getColorData(r){const c=this._editor.getModel();if(!c)return null;const g=c.getDecorationsInRange(u.Range.fromPositions(r,r)).filter(f=>this._colorDatas.has(f.id));return g.length===0?null:this._colorDatas.get(g[0].id)}isColorDecoration(r){return this._colorDecoratorIds.has(r)}};l.ID="editor.contrib.colorDetector",l.RECOMPUTE_TIME=1e3,l=Ie([pe(1,s.IConfigurationService),pe(2,t.ILanguageFeaturesService),pe(3,i.ILanguageFeatureDebounceService)],l),e.ColorDetector=l,(0,h.registerEditorContribution)(l.ID,l)}),define(oe[743],se([1,0,10,21,31,2,3,283,312,515,683,15]),function(q,e,y,v,k,D,w,b,C,h,u,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColorHoverParticipant=e.ColorHover=void 0;class i{constructor(s,d,l,a){this.owner=s,this.range=d,this.model=l,this.provider=a,this.forceShowAtRange=!0}isValidForHoverAnchor(s){return s.type===1&&this.range.startColumn<=s.range.startColumn&&this.range.endColumn>=s.range.endColumn}}e.ColorHover=i;let t=class{constructor(o,s){this._editor=o,this._themeService=s,this.hoverOrdinal=1}computeSync(o,s){return[]}computeAsync(o,s,d){return y.AsyncIterableObject.fromPromise(this._computeAsync(o,s,d))}_computeAsync(o,s,d){return be(this,void 0,void 0,function*(){if(!this._editor.hasModel())return[];const l=C.ColorDetector.get(this._editor);if(!l)return[];for(const a of s){if(!l.isColorDecoration(a))continue;const r=l.getColorData(a.range.getStartPosition());if(r)return[yield this._createColorHover(this._editor.getModel(),r.colorInfo,r.provider)]}return[]})}_createColorHover(o,s,d){return be(this,void 0,void 0,function*(){const l=o.getValueInRange(s.range),{red:a,green:r,blue:c,alpha:g}=s.color,f=new k.RGBA(Math.round(a*255),Math.round(r*255),Math.round(c*255),g),_=new k.Color(f),p=yield(0,b.getColorPresentations)(o,s,d,v.CancellationToken.None),m=new h.ColorPickerModel(_,[],0);return m.colorPresentations=p||[],m.guessColorPresentation(_,l),new i(this,w.Range.lift(s.range),m,d)})}renderHoverParts(o,s){if(s.length===0||!this._editor.hasModel())return D.Disposable.None;const d=new D.DisposableStore,l=s[0],a=this._editor.getModel(),r=l.model,c=d.add(new u.ColorPickerWidget(o.fragment,r,this._editor.getOption(131),this._themeService));o.setColorPicker(c);let g=new w.Range(l.range.startLineNumber,l.range.startColumn,l.range.endLineNumber,l.range.endColumn);const f=()=>{let p,m;if(r.presentation.textEdit){p=[r.presentation.textEdit],m=new w.Range(r.presentation.textEdit.range.startLineNumber,r.presentation.textEdit.range.startColumn,r.presentation.textEdit.range.endLineNumber,r.presentation.textEdit.range.endColumn);const S=this._editor.getModel()._setTrackedRange(null,m,3);this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",p),m=this._editor.getModel()._getTrackedRange(S)||m}else p=[{range:g,text:r.presentation.label,forceMoveMarkers:!1}],m=g.setEndPosition(g.endLineNumber,g.startColumn+r.presentation.label.length),this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",p);r.presentation.additionalTextEdits&&(p=[...r.presentation.additionalTextEdits],this._editor.executeEdits("colorpicker",p),o.hide()),this._editor.pushUndoStop(),g=m},_=p=>(0,b.getColorPresentations)(a,{range:g,color:{red:p.rgba.r/255,green:p.rgba.g/255,blue:p.rgba.b/255,alpha:p.rgba.a}},l.provider,v.CancellationToken.None).then(m=>{r.colorPresentations=m||[]});return d.add(r.onColorFlushed(p=>{_(p).then(f)})),d.add(r.onDidChangeColor(_)),d}};t=Ie([pe(1,n.IThemeService)],t),e.ColorHoverParticipant=t}),define(oe[744],se([1,0,2,17,12,11,3,23,35,450,377]),function(q,e,y,v,k,D,w,b,C,h){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DragAndDropController=void 0;function u(i){return v.isMacintosh?i.altKey:i.ctrlKey}class n extends y.Disposable{constructor(t){super(),this._editor=t,this._dndDecorationIds=this._editor.createDecorationsCollection(),this._register(this._editor.onMouseDown(o=>this._onEditorMouseDown(o))),this._register(this._editor.onMouseUp(o=>this._onEditorMouseUp(o))),this._register(this._editor.onMouseDrag(o=>this._onEditorMouseDrag(o))),this._register(this._editor.onMouseDrop(o=>this._onEditorMouseDrop(o))),this._register(this._editor.onMouseDropCanceled(()=>this._onEditorMouseDropCanceled())),this._register(this._editor.onKeyDown(o=>this.onEditorKeyDown(o))),this._register(this._editor.onKeyUp(o=>this.onEditorKeyUp(o))),this._register(this._editor.onDidBlurEditorWidget(()=>this.onEditorBlur())),this._register(this._editor.onDidBlurEditorText(()=>this.onEditorBlur())),this._mouseDown=!1,this._modifierPressed=!1,this._dragSelection=null}onEditorBlur(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1}onEditorKeyDown(t){!this._editor.getOption(31)||this._editor.getOption(18)||(u(t)&&(this._modifierPressed=!0),this._mouseDown&&u(t)&&this._editor.updateOptions({mouseStyle:"copy"}))}onEditorKeyUp(t){!this._editor.getOption(31)||this._editor.getOption(18)||(u(t)&&(this._modifierPressed=!1),this._mouseDown&&t.keyCode===n.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}))}_onEditorMouseDown(t){this._mouseDown=!0}_onEditorMouseUp(t){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})}_onEditorMouseDrag(t){const o=t.target;if(this._dragSelection===null){const s=(this._editor.getSelections()||[]).filter(d=>o.position&&d.containsPosition(o.position));if(s.length===1)this._dragSelection=s[0];else return}u(t.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),o.position&&(this._dragSelection.containsPosition(o.position)?this._removeDecoration():this.showAt(o.position))}_onEditorMouseDropCanceled(){this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}_onEditorMouseDrop(t){if(t.target&&(this._hitContent(t.target)||this._hitMargin(t.target))&&t.target.position){const o=new D.Position(t.target.position.lineNumber,t.target.position.column);if(this._dragSelection===null){let s=null;if(t.event.shiftKey){const d=this._editor.getSelection();if(d){const{selectionStartLineNumber:l,selectionStartColumn:a}=d;s=[new b.Selection(l,a,o.lineNumber,o.column)]}}else s=(this._editor.getSelections()||[]).map(d=>d.containsPosition(o)?new b.Selection(o.lineNumber,o.column,o.lineNumber,o.column):d);this._editor.setSelections(s||[],"mouse",3)}else(!this._dragSelection.containsPosition(o)||(u(t.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(o)||this._dragSelection.getStartPosition().equals(o)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(n.ID,new h.DragAndDropCommand(this._dragSelection,o,u(t.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}showAt(t){this._dndDecorationIds.set([{range:new w.Range(t.lineNumber,t.column,t.lineNumber,t.column),options:n._DECORATION_OPTIONS}]),this._editor.revealPosition(t,1)}_removeDecoration(){this._dndDecorationIds.clear()}_hitContent(t){return t.type===6||t.type===7}_hitMargin(t){return t.type===2||t.type===3||t.type===4}dispose(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,super.dispose()}}e.DragAndDropController=n,n.ID="editor.contrib.dragAndDrop",n.TRIGGER_KEY_VALUE=v.isMacintosh?6:5,n._DECORATION_OPTIONS=C.ModelDecorationOptions.register({description:"dnd-target",className:"dnd-target"}),(0,k.registerEditorContribution)(n.ID,n)}),define(oe[745],se([1,0,3,46,35,25,15]),function(q,e,y,v,k,D,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FindDecorations=void 0;class b{constructor(h){this._editor=h,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}dispose(){this._editor.removeDecorations(this._allDecorations()),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}reset(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}getCount(){return this._decorations.length}getFindScope(){return this._findScopeDecorationIds[0]?this._editor.getModel().getDecorationRange(this._findScopeDecorationIds[0]):null}getFindScopes(){if(this._findScopeDecorationIds.length){const h=this._findScopeDecorationIds.map(u=>this._editor.getModel().getDecorationRange(u)).filter(u=>!!u);if(h.length)return h}return null}getStartPosition(){return this._startPosition}setStartPosition(h){this._startPosition=h,this.setCurrentFindMatch(null)}_getDecorationIndex(h){const u=this._decorations.indexOf(h);return u>=0?u+1:1}getCurrentMatchesPosition(h){const u=this._editor.getModel().getDecorationsInRange(h);for(const n of u){const i=n.options;if(i===b._FIND_MATCH_DECORATION||i===b._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(n.id)}return 0}setCurrentFindMatch(h){let u=null,n=0;if(h)for(let i=0,t=this._decorations.length;i<t;i++){const o=this._editor.getModel().getDecorationRange(this._decorations[i]);if(h.equalsRange(o)){u=this._decorations[i],n=i+1;break}}return(this._highlightedDecorationId!==null||u!==null)&&this._editor.changeDecorations(i=>{if(this._highlightedDecorationId!==null&&(i.changeDecorationOptions(this._highlightedDecorationId,b._FIND_MATCH_DECORATION),this._highlightedDecorationId=null),u!==null&&(this._highlightedDecorationId=u,i.changeDecorationOptions(this._highlightedDecorationId,b._CURRENT_FIND_MATCH_DECORATION)),this._rangeHighlightDecorationId!==null&&(i.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),u!==null){let t=this._editor.getModel().getDecorationRange(u);if(t.startLineNumber!==t.endLineNumber&&t.endColumn===1){const o=t.endLineNumber-1,s=this._editor.getModel().getLineMaxColumn(o);t=new y.Range(t.startLineNumber,t.startColumn,o,s)}this._rangeHighlightDecorationId=i.addDecoration(t,b._RANGE_HIGHLIGHT_DECORATION)}}),n}set(h,u){this._editor.changeDecorations(n=>{let i=b._FIND_MATCH_DECORATION;const t=[];if(h.length>1e3){i=b._FIND_MATCH_NO_OVERVIEW_DECORATION;const s=this._editor.getModel().getLineCount(),d=this._editor.getLayoutInfo().height/s,l=Math.max(2,Math.ceil(3/d));let a=h[0].range.startLineNumber,r=h[0].range.endLineNumber;for(let c=1,g=h.length;c<g;c++){const f=h[c].range;r+l>=f.startLineNumber?f.endLineNumber>r&&(r=f.endLineNumber):(t.push({range:new y.Range(a,1,r,1),options:b._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),a=f.startLineNumber,r=f.endLineNumber)}t.push({range:new y.Range(a,1,r,1),options:b._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}const o=new Array(h.length);for(let s=0,d=h.length;s<d;s++)o[s]={range:h[s].range,options:i};this._decorations=n.deltaDecorations(this._decorations,o),this._overviewRulerApproximateDecorations=n.deltaDecorations(this._overviewRulerApproximateDecorations,t),this._rangeHighlightDecorationId&&(n.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),this._findScopeDecorationIds.length&&(this._findScopeDecorationIds.forEach(s=>n.removeDecoration(s)),this._findScopeDecorationIds=[]),u?.length&&(this._findScopeDecorationIds=u.map(s=>n.addDecoration(s,b._FIND_SCOPE_DECORATION)))})}matchBeforePosition(h){if(this._decorations.length===0)return null;for(let u=this._decorations.length-1;u>=0;u--){const n=this._decorations[u],i=this._editor.getModel().getDecorationRange(n);if(!(!i||i.endLineNumber>h.lineNumber)&&(i.endLineNumber<h.lineNumber||!(i.endColumn>h.column)))return i}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])}matchAfterPosition(h){if(this._decorations.length===0)return null;for(let u=0,n=this._decorations.length;u<n;u++){const i=this._decorations[u],t=this._editor.getModel().getDecorationRange(i);if(!(!t||t.startLineNumber<h.lineNumber)&&(t.startLineNumber>h.lineNumber||!(t.startColumn<h.column)))return t}return this._editor.getModel().getDecorationRange(this._decorations[0])}_allDecorations(){let h=[];return h=h.concat(this._decorations),h=h.concat(this._overviewRulerApproximateDecorations),this._findScopeDecorationIds.length&&h.push(...this._findScopeDecorationIds),this._rangeHighlightDecorationId&&h.push(this._rangeHighlightDecorationId),h}}e.FindDecorations=b,b._CURRENT_FIND_MATCH_DECORATION=k.ModelDecorationOptions.register({description:"current-find-match",stickiness:1,zIndex:13,className:"currentFindMatch",showIfCollapsed:!0,overviewRuler:{color:(0,w.themeColorFromId)(D.overviewRulerFindMatchForeground),position:v.OverviewRulerLane.Center},minimap:{color:(0,w.themeColorFromId)(D.minimapFindMatch),position:v.MinimapPosition.Inline}}),b._FIND_MATCH_DECORATION=k.ModelDecorationOptions.register({description:"find-match",stickiness:1,zIndex:10,className:"findMatch",showIfCollapsed:!0,overviewRuler:{color:(0,w.themeColorFromId)(D.overviewRulerFindMatchForeground),position:v.OverviewRulerLane.Center},minimap:{color:(0,w.themeColorFromId)(D.minimapFindMatch),position:v.MinimapPosition.Inline}}),b._FIND_MATCH_NO_OVERVIEW_DECORATION=k.ModelDecorationOptions.register({description:"find-match-no-overview",stickiness:1,className:"findMatch",showIfCollapsed:!0}),b._FIND_MATCH_ONLY_OVERVIEW_DECORATION=k.ModelDecorationOptions.register({description:"find-match-only-overview",stickiness:1,overviewRuler:{color:(0,w.themeColorFromId)(D.overviewRulerFindMatchForeground),position:v.OverviewRulerLane.Center}}),b._RANGE_HIGHLIGHT_DECORATION=k.ModelDecorationOptions.register({description:"find-range-highlight",stickiness:1,className:"rangeHighlight",isWholeLine:!0}),b._FIND_SCOPE_DECORATION=k.ModelDecorationOptions.register({description:"find-scope",className:"findScope",isWholeLine:!0})}),define(oe[175],se([1,0,18,10,2,108,11,3,23,158,745,451,452,16]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FindModelBoundToEditorModel=e.MATCHES_LIMIT=e.FIND_IDS=e.TogglePreserveCaseKeybinding=e.ToggleSearchScopeKeybinding=e.ToggleRegexKeybinding=e.ToggleWholeWordKeybinding=e.ToggleCaseSensitiveKeybinding=e.CONTEXT_REPLACE_INPUT_FOCUSED=e.CONTEXT_FIND_INPUT_FOCUSED=e.CONTEXT_FIND_WIDGET_NOT_VISIBLE=e.CONTEXT_FIND_WIDGET_VISIBLE=void 0,e.CONTEXT_FIND_WIDGET_VISIBLE=new t.RawContextKey("findWidgetVisible",!1),e.CONTEXT_FIND_WIDGET_NOT_VISIBLE=e.CONTEXT_FIND_WIDGET_VISIBLE.toNegated(),e.CONTEXT_FIND_INPUT_FOCUSED=new t.RawContextKey("findInputFocussed",!1),e.CONTEXT_REPLACE_INPUT_FOCUSED=new t.RawContextKey("replaceInputFocussed",!1),e.ToggleCaseSensitiveKeybinding={primary:545,mac:{primary:2593}},e.ToggleWholeWordKeybinding={primary:565,mac:{primary:2613}},e.ToggleRegexKeybinding={primary:560,mac:{primary:2608}},e.ToggleSearchScopeKeybinding={primary:554,mac:{primary:2602}},e.TogglePreserveCaseKeybinding={primary:558,mac:{primary:2606}},e.FIND_IDS={StartFindAction:"actions.find",StartFindWithSelection:"actions.findWithSelection",StartFindWithArgs:"editor.actions.findWithArgs",NextMatchFindAction:"editor.action.nextMatchFindAction",PreviousMatchFindAction:"editor.action.previousMatchFindAction",NextSelectionMatchFindAction:"editor.action.nextSelectionMatchFindAction",PreviousSelectionMatchFindAction:"editor.action.previousSelectionMatchFindAction",StartFindReplaceAction:"editor.action.startFindReplaceAction",CloseFindWidgetCommand:"closeFindWidget",ToggleCaseSensitiveCommand:"toggleFindCaseSensitive",ToggleWholeWordCommand:"toggleFindWholeWord",ToggleRegexCommand:"toggleFindRegex",ToggleSearchScopeCommand:"toggleFindInSelection",TogglePreserveCaseCommand:"togglePreserveCase",ReplaceOneAction:"editor.action.replaceOne",ReplaceAllAction:"editor.action.replaceAll",SelectAllMatchesAction:"editor.action.selectAllMatches"},e.MATCHES_LIMIT=19999;const o=240;class s{constructor(l,a){this._toDispose=new k.DisposableStore,this._editor=l,this._state=a,this._isDisposed=!1,this._startSearchingTimer=new v.TimeoutTimer,this._decorations=new u.FindDecorations(l),this._toDispose.add(this._decorations),this._updateDecorationsScheduler=new v.RunOnceScheduler(()=>this.research(!1),100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition(r=>{(r.reason===3||r.reason===5||r.reason===6)&&this._decorations.setStartPosition(this._editor.getPosition())})),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent(r=>{this._ignoreModelContentChanged||(r.isFlush&&this._decorations.reset(),this._decorations.setStartPosition(this._editor.getPosition()),this._updateDecorationsScheduler.schedule())})),this._toDispose.add(this._state.onFindReplaceStateChange(r=>this._onStateChanged(r))),this.research(!1,this._state.searchScope)}dispose(){this._isDisposed=!0,(0,k.dispose)(this._startSearchingTimer),this._toDispose.dispose()}_onStateChanged(l){this._isDisposed||!this._editor.hasModel()||(l.searchString||l.isReplaceRevealed||l.isRegex||l.wholeWord||l.matchCase||l.searchScope)&&(this._editor.getModel().isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet(()=>{l.searchScope?this.research(l.moveCursor,this._state.searchScope):this.research(l.moveCursor)},o)):l.searchScope?this.research(l.moveCursor,this._state.searchScope):this.research(l.moveCursor))}static _getSearchRange(l,a){return a||l.getFullModelRange()}research(l,a){let r=null;typeof a<"u"?a!==null&&(Array.isArray(a)?r=a:r=[a]):r=this._decorations.getFindScopes(),r!==null&&(r=r.map(_=>{if(_.startLineNumber!==_.endLineNumber){let p=_.endLineNumber;return _.endColumn===1&&(p=p-1),new b.Range(_.startLineNumber,1,p,this._editor.getModel().getLineMaxColumn(p))}return _}));const c=this._findMatches(r,!1,e.MATCHES_LIMIT);this._decorations.set(c,r);const g=this._editor.getSelection();let f=this._decorations.getCurrentMatchesPosition(g);if(f===0&&c.length>0){const _=(0,y.findFirstInSorted)(c.map(p=>p.range),p=>b.Range.compareRangesUsingStarts(p,g)>=0);f=_>0?_-1+1:f}this._state.changeMatchInfo(f,this._decorations.getCount(),void 0),l&&this._editor.getOption(37).cursorMoveOnType&&this._moveToNextMatch(this._decorations.getStartPosition())}_hasMatches(){return this._state.matchesCount>0}_cannotFind(){if(!this._hasMatches()){const l=this._decorations.getFindScope();return l&&this._editor.revealRangeInCenterIfOutsideViewport(l,0),!0}return!1}_setCurrentFindMatch(l){const a=this._decorations.setCurrentFindMatch(l);this._state.changeMatchInfo(a,this._decorations.getCount(),l),this._editor.setSelection(l),this._editor.revealRangeInCenterIfOutsideViewport(l,0)}_prevSearchPosition(l){const a=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0);let{lineNumber:r,column:c}=l;const g=this._editor.getModel();return a||c===1?(r===1?r=g.getLineCount():r--,c=g.getLineMaxColumn(r)):c--,new w.Position(r,c)}_moveToPrevMatch(l,a=!1){if(!this._state.canNavigateBack()){const S=this._decorations.matchAfterPosition(l);S&&this._setCurrentFindMatch(S);return}if(this._decorations.getCount()<e.MATCHES_LIMIT){let S=this._decorations.matchBeforePosition(l);S&&S.isEmpty()&&S.getStartPosition().equals(l)&&(l=this._prevSearchPosition(l),S=this._decorations.matchBeforePosition(l)),S&&this._setCurrentFindMatch(S);return}if(this._cannotFind())return;const r=this._decorations.getFindScope(),c=s._getSearchRange(this._editor.getModel(),r);c.getEndPosition().isBefore(l)&&(l=c.getEndPosition()),l.isBefore(c.getStartPosition())&&(l=c.getEndPosition());const{lineNumber:g,column:f}=l,_=this._editor.getModel();let p=new w.Position(g,f),m=_.findPreviousMatch(this._state.searchString,p,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(119):null,!1);if(m&&m.range.isEmpty()&&m.range.getStartPosition().equals(p)&&(p=this._prevSearchPosition(p),m=_.findPreviousMatch(this._state.searchString,p,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(119):null,!1)),!!m){if(!a&&!c.containsRange(m.range))return this._moveToPrevMatch(m.range.getStartPosition(),!0);this._setCurrentFindMatch(m.range)}}moveToPrevMatch(){this._moveToPrevMatch(this._editor.getSelection().getStartPosition())}_nextSearchPosition(l){const a=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0);let{lineNumber:r,column:c}=l;const g=this._editor.getModel();return a||c===g.getLineMaxColumn(r)?(r===g.getLineCount()?r=1:r++,c=1):c++,new w.Position(r,c)}_moveToNextMatch(l){if(!this._state.canNavigateForward()){const r=this._decorations.matchBeforePosition(l);r&&this._setCurrentFindMatch(r);return}if(this._decorations.getCount()<e.MATCHES_LIMIT){let r=this._decorations.matchAfterPosition(l);r&&r.isEmpty()&&r.getStartPosition().equals(l)&&(l=this._nextSearchPosition(l),r=this._decorations.matchAfterPosition(l)),r&&this._setCurrentFindMatch(r);return}const a=this._getNextMatch(l,!1,!0);a&&this._setCurrentFindMatch(a.range)}_getNextMatch(l,a,r,c=!1){if(this._cannotFind())return null;const g=this._decorations.getFindScope(),f=s._getSearchRange(this._editor.getModel(),g);f.getEndPosition().isBefore(l)&&(l=f.getStartPosition()),l.isBefore(f.getStartPosition())&&(l=f.getStartPosition());const{lineNumber:_,column:p}=l,m=this._editor.getModel();let S=new w.Position(_,p),E=m.findNextMatch(this._state.searchString,S,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(119):null,a);return r&&E&&E.range.isEmpty()&&E.range.getStartPosition().equals(S)&&(S=this._nextSearchPosition(S),E=m.findNextMatch(this._state.searchString,S,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(119):null,a)),E?!c&&!f.containsRange(E.range)?this._getNextMatch(E.range.getEndPosition(),a,r,!0):E:null}moveToNextMatch(){this._moveToNextMatch(this._editor.getSelection().getEndPosition())}_getReplacePattern(){return this._state.isRegex?(0,i.parseReplaceString)(this._state.replaceString):i.ReplacePattern.fromStaticValue(this._state.replaceString)}replace(){if(!this._hasMatches())return;const l=this._getReplacePattern(),a=this._editor.getSelection(),r=this._getNextMatch(a.getStartPosition(),!0,!1);if(r)if(a.equalsRange(r.range)){const c=l.buildReplaceString(r.matches,this._state.preserveCase),g=new D.ReplaceCommand(a,c);this._executeEditorCommand("replace",g),this._decorations.setStartPosition(new w.Position(a.startLineNumber,a.startColumn+c.length)),this.research(!0)}else this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(r.range)}_findMatches(l,a,r){const c=(l||[null]).map(g=>s._getSearchRange(this._editor.getModel(),g));return this._editor.getModel().findMatches(this._state.searchString,c,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(119):null,a,r)}replaceAll(){if(!this._hasMatches())return;const l=this._decorations.getFindScopes();l===null&&this._state.matchesCount>=e.MATCHES_LIMIT?this._largeReplaceAll():this._regularReplaceAll(l),this.research(!1)}_largeReplaceAll(){const l=new h.SearchParams(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(119):null).parseSearchRequest();if(!l)return;let a=l.regex;if(!a.multiline){let S="mu";a.ignoreCase&&(S+="i"),a.global&&(S+="g"),a=new RegExp(a.source,S)}const r=this._editor.getModel(),c=r.getValue(1),g=r.getFullModelRange(),f=this._getReplacePattern();let _;const p=this._state.preserveCase;f.hasReplacementPatterns||p?_=c.replace(a,function(){return f.buildReplaceString(arguments,p)}):_=c.replace(a,f.buildReplaceString(null,p));const m=new D.ReplaceCommandThatPreservesSelection(g,_,this._editor.getSelection());this._executeEditorCommand("replaceAll",m)}_regularReplaceAll(l){const a=this._getReplacePattern(),r=this._findMatches(l,a.hasReplacementPatterns||this._state.preserveCase,1073741824),c=[];for(let f=0,_=r.length;f<_;f++)c[f]=a.buildReplaceString(r[f].matches,this._state.preserveCase);const g=new n.ReplaceAllCommand(this._editor.getSelection(),r.map(f=>f.range),c);this._executeEditorCommand("replaceAll",g)}selectAllMatches(){if(!this._hasMatches())return;const l=this._decorations.getFindScopes();let a=this._findMatches(l,!1,1073741824).map(c=>new C.Selection(c.range.startLineNumber,c.range.startColumn,c.range.endLineNumber,c.range.endColumn));const r=this._editor.getSelection();for(let c=0,g=a.length;c<g;c++)if(a[c].equalsRange(r)){a=[r].concat(a.slice(0,c)).concat(a.slice(c+1));break}this._editor.setSelections(a)}_executeEditorCommand(l,a){try{this._ignoreModelContentChanged=!0,this._editor.pushUndoStop(),this._editor.executeCommand(l,a),this._editor.pushUndoStop()}finally{this._ignoreModelContentChanged=!1}}}e.FindModelBoundToEditorModel=s}),define(oe[746],se([1,0,7,262,68,10,175,25,15]),function(q,e,y,v,k,D,w,b,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FindOptionsWidget=void 0;class h extends k.Widget{constructor(n,i,t,o){super(),this._hideSoon=this._register(new D.RunOnceScheduler(()=>this._hide(),2e3)),this._isVisible=!1,this._editor=n,this._state=i,this._keybindingService=t,this._domNode=document.createElement("div"),this._domNode.className="findOptionsWidget",this._domNode.style.display="none",this._domNode.style.top="10px",this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true");const s=o.getColorTheme().getColor(b.inputActiveOptionBorder),d=o.getColorTheme().getColor(b.inputActiveOptionForeground),l=o.getColorTheme().getColor(b.inputActiveOptionBackground);this.caseSensitive=this._register(new v.CaseSensitiveToggle({appendTitle:this._keybindingLabelFor(w.FIND_IDS.ToggleCaseSensitiveCommand),isChecked:this._state.matchCase,inputActiveOptionBorder:s,inputActiveOptionForeground:d,inputActiveOptionBackground:l})),this._domNode.appendChild(this.caseSensitive.domNode),this._register(this.caseSensitive.onChange(()=>{this._state.change({matchCase:this.caseSensitive.checked},!1)})),this.wholeWords=this._register(new v.WholeWordsToggle({appendTitle:this._keybindingLabelFor(w.FIND_IDS.ToggleWholeWordCommand),isChecked:this._state.wholeWord,inputActiveOptionBorder:s,inputActiveOptionForeground:d,inputActiveOptionBackground:l})),this._domNode.appendChild(this.wholeWords.domNode),this._register(this.wholeWords.onChange(()=>{this._state.change({wholeWord:this.wholeWords.checked},!1)})),this.regex=this._register(new v.RegexToggle({appendTitle:this._keybindingLabelFor(w.FIND_IDS.ToggleRegexCommand),isChecked:this._state.isRegex,inputActiveOptionBorder:s,inputActiveOptionForeground:d,inputActiveOptionBackground:l})),this._domNode.appendChild(this.regex.domNode),this._register(this.regex.onChange(()=>{this._state.change({isRegex:this.regex.checked},!1)})),this._editor.addOverlayWidget(this),this._register(this._state.onFindReplaceStateChange(a=>{let r=!1;a.isRegex&&(this.regex.checked=this._state.isRegex,r=!0),a.wholeWord&&(this.wholeWords.checked=this._state.wholeWord,r=!0),a.matchCase&&(this.caseSensitive.checked=this._state.matchCase,r=!0),!this._state.isRevealed&&r&&this._revealTemporarily()})),this._register(y.addDisposableListener(this._domNode,y.EventType.MOUSE_LEAVE,a=>this._onMouseLeave())),this._register(y.addDisposableListener(this._domNode,"mouseover",a=>this._onMouseOver())),this._applyTheme(o.getColorTheme()),this._register(o.onDidColorThemeChange(this._applyTheme.bind(this)))}_keybindingLabelFor(n){const i=this._keybindingService.lookupKeybinding(n);return i?` (${i.getLabel()})`:""}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return h.ID}getDomNode(){return this._domNode}getPosition(){return{preference:0}}highlightFindOptions(){this._revealTemporarily()}_revealTemporarily(){this._show(),this._hideSoon.schedule()}_onMouseLeave(){this._hideSoon.schedule()}_onMouseOver(){this._hideSoon.cancel()}_show(){this._isVisible||(this._isVisible=!0,this._domNode.style.display="block")}_hide(){!this._isVisible||(this._isVisible=!1,this._domNode.style.display="none")}_applyTheme(n){const i={inputActiveOptionBorder:n.getColor(b.inputActiveOptionBorder),inputActiveOptionForeground:n.getColor(b.inputActiveOptionForeground),inputActiveOptionBackground:n.getColor(b.inputActiveOptionBackground)};this.caseSensitive.style(i),this.wholeWords.style(i),this.regex.style(i)}}e.FindOptionsWidget=h,h.ID="editor.contrib.findOptionsWidget",(0,C.registerThemingParticipant)((u,n)=>{const i=u.getColor(b.editorWidgetBackground);i&&n.addRule(`.monaco-editor .findOptionsWidget { background-color: ${i}; }`);const t=u.getColor(b.editorWidgetForeground);t&&n.addRule(`.monaco-editor .findOptionsWidget { color: ${t}; }`);const o=u.getColor(b.widgetShadow);o&&n.addRule(`.monaco-editor .findOptionsWidget { box-shadow: 0 0 8px 2px ${o}; }`);const s=u.getColor(b.contrastBorder);s&&n.addRule(`.monaco-editor .findOptionsWidget { border: 2px solid ${s}; }`)})}),define(oe[747],se([1,0,6,2,3,175]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FindReplaceState=void 0;function w(C,h){return C===1?!0:C===2?!1:h}class b extends v.Disposable{constructor(){super(),this._onFindReplaceStateChange=this._register(new y.Emitter),this.onFindReplaceStateChange=this._onFindReplaceStateChange.event,this._searchString="",this._replaceString="",this._isRevealed=!1,this._isReplaceRevealed=!1,this._isRegex=!1,this._isRegexOverride=0,this._wholeWord=!1,this._wholeWordOverride=0,this._matchCase=!1,this._matchCaseOverride=0,this._preserveCase=!1,this._preserveCaseOverride=0,this._searchScope=null,this._matchesPosition=0,this._matchesCount=0,this._currentMatch=null,this._loop=!0,this._isSearching=!1,this._filters=null}get searchString(){return this._searchString}get replaceString(){return this._replaceString}get isRevealed(){return this._isRevealed}get isReplaceRevealed(){return this._isReplaceRevealed}get isRegex(){return w(this._isRegexOverride,this._isRegex)}get wholeWord(){return w(this._wholeWordOverride,this._wholeWord)}get matchCase(){return w(this._matchCaseOverride,this._matchCase)}get preserveCase(){return w(this._preserveCaseOverride,this._preserveCase)}get actualIsRegex(){return this._isRegex}get actualWholeWord(){return this._wholeWord}get actualMatchCase(){return this._matchCase}get actualPreserveCase(){return this._preserveCase}get searchScope(){return this._searchScope}get matchesPosition(){return this._matchesPosition}get matchesCount(){return this._matchesCount}get currentMatch(){return this._currentMatch}changeMatchInfo(h,u,n){const i={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1};let t=!1;u===0&&(h=0),h>u&&(h=u),this._matchesPosition!==h&&(this._matchesPosition=h,i.matchesPosition=!0,t=!0),this._matchesCount!==u&&(this._matchesCount=u,i.matchesCount=!0,t=!0),typeof n<"u"&&(k.Range.equalsRange(this._currentMatch,n)||(this._currentMatch=n,i.currentMatch=!0,t=!0)),t&&this._onFindReplaceStateChange.fire(i)}change(h,u,n=!0){var i;const t={moveCursor:u,updateHistory:n,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1};let o=!1;const s=this.isRegex,d=this.wholeWord,l=this.matchCase,a=this.preserveCase;typeof h.searchString<"u"&&this._searchString!==h.searchString&&(this._searchString=h.searchString,t.searchString=!0,o=!0),typeof h.replaceString<"u"&&this._replaceString!==h.replaceString&&(this._replaceString=h.replaceString,t.replaceString=!0,o=!0),typeof h.isRevealed<"u"&&this._isRevealed!==h.isRevealed&&(this._isRevealed=h.isRevealed,t.isRevealed=!0,o=!0),typeof h.isReplaceRevealed<"u"&&this._isReplaceRevealed!==h.isReplaceRevealed&&(this._isReplaceRevealed=h.isReplaceRevealed,t.isReplaceRevealed=!0,o=!0),typeof h.isRegex<"u"&&(this._isRegex=h.isRegex),typeof h.wholeWord<"u"&&(this._wholeWord=h.wholeWord),typeof h.matchCase<"u"&&(this._matchCase=h.matchCase),typeof h.preserveCase<"u"&&(this._preserveCase=h.preserveCase),typeof h.searchScope<"u"&&(!((i=h.searchScope)===null||i===void 0)&&i.every(r=>{var c;return(c=this._searchScope)===null||c===void 0?void 0:c.some(g=>!k.Range.equalsRange(g,r))})||(this._searchScope=h.searchScope,t.searchScope=!0,o=!0)),typeof h.loop<"u"&&this._loop!==h.loop&&(this._loop=h.loop,t.loop=!0,o=!0),typeof h.isSearching<"u"&&this._isSearching!==h.isSearching&&(this._isSearching=h.isSearching,t.isSearching=!0,o=!0),typeof h.filters<"u"&&(this._filters?this._filters.update(h.filters):this._filters=h.filters,t.filters=!0,o=!0),this._isRegexOverride=typeof h.isRegexOverride<"u"?h.isRegexOverride:0,this._wholeWordOverride=typeof h.wholeWordOverride<"u"?h.wholeWordOverride:0,this._matchCaseOverride=typeof h.matchCaseOverride<"u"?h.matchCaseOverride:0,this._preserveCaseOverride=typeof h.preserveCaseOverride<"u"?h.preserveCaseOverride:0,s!==this.isRegex&&(o=!0,t.isRegex=!0),d!==this.wholeWord&&(o=!0,t.wholeWord=!0),l!==this.matchCase&&(o=!0,t.matchCase=!0),a!==this.preserveCase&&(o=!0,t.preserveCase=!0),o&&this._onFindReplaceStateChange.fire(t)}canNavigateBack(){return this.canNavigateInLoop()||this.matchesPosition!==1}canNavigateForward(){return this.canNavigateInLoop()||this.matchesPosition<this.matchesCount}canNavigateInLoop(){return this._loop||this.matchesCount>=D.MATCHES_LIMIT}}e.FindReplaceState=b}),define(oe[748],se([1,0,7,49,162,135,68,10,27,14,2,17,8,3,175,556,293,626,25,80,15,56,378]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r,c,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SimpleButton=e.FindWidget=e.FindWidgetViewZone=e.NLS_NO_RESULTS=e.NLS_MATCHES_LOCATION=e.findNextMatchIcon=e.findPreviousMatchIcon=e.findReplaceAllIcon=e.findReplaceIcon=void 0;const f=(0,r.registerIcon)("find-selection",C.Codicon.selection,s.localize(0,null)),_=(0,r.registerIcon)("find-collapsed",C.Codicon.chevronRight,s.localize(1,null)),p=(0,r.registerIcon)("find-expanded",C.Codicon.chevronDown,s.localize(2,null));e.findReplaceIcon=(0,r.registerIcon)("find-replace",C.Codicon.replace,s.localize(3,null)),e.findReplaceAllIcon=(0,r.registerIcon)("find-replace-all",C.Codicon.replaceAll,s.localize(4,null)),e.findPreviousMatchIcon=(0,r.registerIcon)("find-previous-match",C.Codicon.arrowUp,s.localize(5,null)),e.findNextMatchIcon=(0,r.registerIcon)("find-next-match",C.Codicon.arrowDown,s.localize(6,null));const m=s.localize(7,null),S=s.localize(8,null),E=s.localize(9,null),L=s.localize(10,null),N=s.localize(11,null),I=s.localize(12,null),R=s.localize(13,null),F=s.localize(14,null),O=s.localize(15,null),x=s.localize(16,null),M=s.localize(17,null),P=s.localize(18,null,o.MATCHES_LIMIT);e.NLS_MATCHES_LOCATION=s.localize(19,null),e.NLS_NO_RESULTS=s.localize(20,null);const A=419,B=275-54;let K=69;const T=33,ee="ctrlEnterReplaceAll.windows.donotask",J=n.isMacintosh?256:2048;class ${constructor(ie){this.afterLineNumber=ie,this.heightInPx=T,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}}e.FindWidgetViewZone=$;function j(X,ie,H){const ae=!!ie.match(/\n/);if(H&&ae&&H.selectionStart>0){X.stopPropagation();return}}function G(X,ie,H){const ae=!!ie.match(/\n/);if(H&&ae&&H.selectionEnd<H.value.length){X.stopPropagation();return}}class te extends w.Widget{constructor(ie,H,ae,Y,U,le,z,Q,W){super(),this._cachedHeight=null,this._revealTimeouts=[],this._codeEditor=ie,this._controller=H,this._state=ae,this._contextViewProvider=Y,this._keybindingService=U,this._contextKeyService=le,this._storageService=Q,this._notificationService=W,this._ctrlEnterReplaceAllWarningPrompted=!!Q.getBoolean(ee,0),this._isVisible=!1,this._isReplaceVisible=!1,this._ignoreChangeEvent=!1,this._updateHistoryDelayer=new b.Delayer(500),this._register((0,u.toDisposable)(()=>this._updateHistoryDelayer.cancel())),this._register(this._state.onFindReplaceStateChange(V=>this._onStateChanged(V))),this._buildDomNode(),this._updateButtons(),this._tryUpdateWidgetWidth(),this._findInput.inputBox.layout(),this._register(this._codeEditor.onDidChangeConfiguration(V=>{if(V.hasChanged(83)&&(this._codeEditor.getOption(83)&&this._state.change({isReplaceRevealed:!1},!1),this._updateButtons()),V.hasChanged(133)&&this._tryUpdateWidgetWidth(),V.hasChanged(2)&&this.updateAccessibilitySupport(),V.hasChanged(37)){const ne=this._codeEditor.getOption(37).addExtraSpaceOnTop;ne&&!this._viewZone&&(this._viewZone=new $(0),this._showViewZone()),!ne&&this._viewZone&&this._removeViewZone()}})),this.updateAccessibilitySupport(),this._register(this._codeEditor.onDidChangeCursorSelection(()=>{this._isVisible&&this._updateToggleSelectionFindButton()})),this._register(this._codeEditor.onDidFocusEditorWidget(()=>be(this,void 0,void 0,function*(){if(this._isVisible){const V=yield this._controller.getGlobalBufferTerm();V&&V!==this._state.searchString&&(this._state.change({searchString:V},!1),this._findInput.select())}}))),this._findInputFocused=o.CONTEXT_FIND_INPUT_FOCUSED.bindTo(le),this._findFocusTracker=this._register(y.trackFocus(this._findInput.inputBox.inputElement)),this._register(this._findFocusTracker.onDidFocus(()=>{this._findInputFocused.set(!0),this._updateSearchScope()})),this._register(this._findFocusTracker.onDidBlur(()=>{this._findInputFocused.set(!1)})),this._replaceInputFocused=o.CONTEXT_REPLACE_INPUT_FOCUSED.bindTo(le),this._replaceFocusTracker=this._register(y.trackFocus(this._replaceInput.inputBox.inputElement)),this._register(this._replaceFocusTracker.onDidFocus(()=>{this._replaceInputFocused.set(!0),this._updateSearchScope()})),this._register(this._replaceFocusTracker.onDidBlur(()=>{this._replaceInputFocused.set(!1)})),this._codeEditor.addOverlayWidget(this),this._codeEditor.getOption(37).addExtraSpaceOnTop&&(this._viewZone=new $(0)),this._applyTheme(z.getColorTheme()),this._register(z.onDidColorThemeChange(this._applyTheme.bind(this))),this._register(this._codeEditor.onDidChangeModel(()=>{!this._isVisible||(this._viewZoneId=void 0)})),this._register(this._codeEditor.onDidScrollChange(V=>{if(V.scrollTopChanged){this._layoutViewZone();return}setTimeout(()=>{this._layoutViewZone()},0)}))}getId(){return te.ID}getDomNode(){return this._domNode}getPosition(){return this._isVisible?{preference:0}:null}_onStateChanged(ie){if(ie.searchString){try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(ie.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),ie.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),ie.isReplaceRevealed&&(this._state.isReplaceRevealed?!this._codeEditor.getOption(83)&&!this._isReplaceVisible&&(this._isReplaceVisible=!0,this._replaceInput.width=y.getTotalWidth(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(ie.isRevealed||ie.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&this._tryUpdateHeight()&&this._showViewZone(),ie.isRegex&&this._findInput.setRegex(this._state.isRegex),ie.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),ie.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),ie.preserveCase&&this._replaceInput.setPreserveCase(this._state.preserveCase),ie.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),ie.searchString||ie.matchesCount||ie.matchesPosition){const H=this._state.searchString.length>0&&this._state.matchesCount===0;this._domNode.classList.toggle("no-results",H),this._updateMatchesCount(),this._updateButtons()}(ie.searchString||ie.currentMatch)&&this._layoutViewZone(),ie.updateHistory&&this._delayedUpdateHistory(),ie.loop&&this._updateButtons()}_delayedUpdateHistory(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this)).then(void 0,h.onUnexpectedError)}_updateHistory(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()}_updateMatchesCount(){this._matchesCount.style.minWidth=K+"px",this._state.matchesCount>=o.MATCHES_LIMIT?this._matchesCount.title=P:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild);let ie;if(this._state.matchesCount>0){let H=String(this._state.matchesCount);this._state.matchesCount>=o.MATCHES_LIMIT&&(H+="+");let ae=String(this._state.matchesPosition);ae==="0"&&(ae="?"),ie=i.format(e.NLS_MATCHES_LOCATION,ae,H)}else ie=e.NLS_NO_RESULTS;this._matchesCount.appendChild(document.createTextNode(ie)),(0,v.alert)(this._getAriaLabel(ie,this._state.currentMatch,this._state.searchString)),K=Math.max(K,this._matchesCount.clientWidth)}_getAriaLabel(ie,H,ae){if(ie===e.NLS_NO_RESULTS)return ae===""?s.localize(21,null,ie):s.localize(22,null,ie,ae);if(H){const Y=s.localize(23,null,ie,ae,H.startLineNumber+":"+H.startColumn),U=this._codeEditor.getModel();return U&&H.startLineNumber<=U.getLineCount()&&H.startLineNumber>=1?`${U.getLineContent(H.startLineNumber)}, ${Y}`:Y}return s.localize(24,null,ie,ae)}_updateToggleSelectionFindButton(){const ie=this._codeEditor.getSelection(),H=ie?ie.startLineNumber!==ie.endLineNumber||ie.startColumn!==ie.endColumn:!1,ae=this._toggleSelectionFind.checked;this._isVisible&&(ae||H)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()}_updateButtons(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);const ie=this._state.searchString.length>0,H=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&ie&&H&&this._state.canNavigateBack()),this._nextBtn.setEnabled(this._isVisible&&ie&&H&&this._state.canNavigateForward()),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&ie),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&ie),this._domNode.classList.toggle("replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);const ae=!this._codeEditor.getOption(83);this._toggleReplaceBtn.setEnabled(this._isVisible&&ae)}_reveal(){if(this._revealTimeouts.forEach(ie=>{clearTimeout(ie)}),this._revealTimeouts=[],!this._isVisible){this._isVisible=!0;const ie=this._codeEditor.getSelection();switch(this._codeEditor.getOption(37).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":{const ae=!!ie&&ie.startLineNumber!==ie.endLineNumber;this._toggleSelectionFind.checked=ae;break}default:break}this._tryUpdateWidgetWidth(),this._updateButtons(),this._revealTimeouts.push(setTimeout(()=>{this._domNode.classList.add("visible"),this._domNode.setAttribute("aria-hidden","false")},0)),this._revealTimeouts.push(setTimeout(()=>{this._findInput.validate()},200)),this._codeEditor.layoutOverlayWidget(this);let H=!0;if(this._codeEditor.getOption(37).seedSearchStringFromSelection&&ie){const ae=this._codeEditor.getDomNode();if(ae){const Y=y.getDomNodePagePosition(ae),U=this._codeEditor.getScrolledVisiblePosition(ie.getStartPosition()),le=Y.left+(U?U.left:0),z=U?U.top:0;if(this._viewZone&&z<this._viewZone.heightInPx){ie.endLineNumber>ie.startLineNumber&&(H=!1);const Q=y.getTopLeftOffset(this._domNode).left;le>Q&&(H=!1);const W=this._codeEditor.getScrolledVisiblePosition(ie.getEndPosition());Y.left+(W?W.left:0)>Q&&(H=!1)}}}this._showViewZone(H)}}_hide(ie){this._revealTimeouts.forEach(H=>{clearTimeout(H)}),this._revealTimeouts=[],this._isVisible&&(this._isVisible=!1,this._updateButtons(),this._domNode.classList.remove("visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),ie&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())}_layoutViewZone(ie){if(!this._codeEditor.getOption(37).addExtraSpaceOnTop){this._removeViewZone();return}if(!this._isVisible)return;const H=this._viewZone;this._viewZoneId!==void 0||!H||this._codeEditor.changeViewZones(ae=>{H.heightInPx=this._getHeight(),this._viewZoneId=ae.addZone(H),this._codeEditor.setScrollTop(ie||this._codeEditor.getScrollTop()+H.heightInPx)})}_showViewZone(ie=!0){if(!this._isVisible||!this._codeEditor.getOption(37).addExtraSpaceOnTop)return;this._viewZone===void 0&&(this._viewZone=new $(0));const H=this._viewZone;this._codeEditor.changeViewZones(ae=>{if(this._viewZoneId!==void 0){const Y=this._getHeight();if(Y===H.heightInPx)return;const U=Y-H.heightInPx;H.heightInPx=Y,ae.layoutZone(this._viewZoneId),ie&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+U);return}else{let Y=this._getHeight();if(Y-=this._codeEditor.getOption(77).top,Y<=0)return;H.heightInPx=Y,this._viewZoneId=ae.addZone(H),ie&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+Y)}})}_removeViewZone(){this._codeEditor.changeViewZones(ie=>{this._viewZoneId!==void 0&&(ie.removeZone(this._viewZoneId),this._viewZoneId=void 0,this._viewZone&&(this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()-this._viewZone.heightInPx),this._viewZone=void 0))})}_applyTheme(ie){const H={inputActiveOptionBorder:ie.getColor(a.inputActiveOptionBorder),inputActiveOptionBackground:ie.getColor(a.inputActiveOptionBackground),inputActiveOptionForeground:ie.getColor(a.inputActiveOptionForeground),inputBackground:ie.getColor(a.inputBackground),inputForeground:ie.getColor(a.inputForeground),inputBorder:ie.getColor(a.inputBorder),inputValidationInfoBackground:ie.getColor(a.inputValidationInfoBackground),inputValidationInfoForeground:ie.getColor(a.inputValidationInfoForeground),inputValidationInfoBorder:ie.getColor(a.inputValidationInfoBorder),inputValidationWarningBackground:ie.getColor(a.inputValidationWarningBackground),inputValidationWarningForeground:ie.getColor(a.inputValidationWarningForeground),inputValidationWarningBorder:ie.getColor(a.inputValidationWarningBorder),inputValidationErrorBackground:ie.getColor(a.inputValidationErrorBackground),inputValidationErrorForeground:ie.getColor(a.inputValidationErrorForeground),inputValidationErrorBorder:ie.getColor(a.inputValidationErrorBorder)};this._findInput.style(H),this._replaceInput.style(H),this._toggleSelectionFind.style(H)}_tryUpdateWidgetWidth(){if(!this._isVisible||!y.isInDOM(this._domNode))return;const ie=this._codeEditor.getLayoutInfo();if(ie.contentWidth<=0){this._domNode.classList.add("hiddenEditor");return}else this._domNode.classList.contains("hiddenEditor")&&this._domNode.classList.remove("hiddenEditor");const H=ie.width,ae=ie.minimap.minimapWidth;let Y=!1,U=!1,le=!1;if(this._resized&&y.getTotalWidth(this._domNode)>A){this._domNode.style.maxWidth=`${H-28-ae-15}px`,this._replaceInput.width=y.getTotalWidth(this._findInput.domNode);return}if(A+28+ae>=H&&(U=!0),A+28+ae-K>=H&&(le=!0),A+28+ae-K>=H+50&&(Y=!0),this._domNode.classList.toggle("collapsed-find-widget",Y),this._domNode.classList.toggle("narrow-find-widget",le),this._domNode.classList.toggle("reduced-find-widget",U),!le&&!Y&&(this._domNode.style.maxWidth=`${H-28-ae-15}px`),this._resized){this._findInput.inputBox.layout();const z=this._findInput.inputBox.element.clientWidth;z>0&&(this._replaceInput.width=z)}else this._isReplaceVisible&&(this._replaceInput.width=y.getTotalWidth(this._findInput.domNode))}_getHeight(){let ie=0;return ie+=4,ie+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(ie+=4,ie+=this._replaceInput.inputBox.height+2),ie+=4,ie}_tryUpdateHeight(){const ie=this._getHeight();return this._cachedHeight!==null&&this._cachedHeight===ie?!1:(this._cachedHeight=ie,this._domNode.style.height=`${ie}px`,!0)}focusFindInput(){this._findInput.select(),this._findInput.focus()}focusReplaceInput(){this._replaceInput.select(),this._replaceInput.focus()}highlightFindOptions(){this._findInput.highlightFindOptions()}_updateSearchScope(){if(this._codeEditor.hasModel()&&this._toggleSelectionFind.checked){const ie=this._codeEditor.getSelections();ie.map(H=>{H.endColumn===1&&H.endLineNumber>H.startLineNumber&&(H=H.setEndPosition(H.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(H.endLineNumber-1)));const ae=this._state.currentMatch;return H.startLineNumber!==H.endLineNumber&&!t.Range.equalsRange(H,ae)?H:null}).filter(H=>!!H),ie.length&&this._state.change({searchScope:ie},!0)}}_onFindInputMouseDown(ie){ie.middleButton&&ie.stopPropagation()}_onFindInputKeyDown(ie){if(ie.equals(J|3))if(this._keybindingService.dispatchEvent(ie,ie.target)){ie.preventDefault();return}else{this._findInput.inputBox.insertAtCursor(` `),ie.preventDefault();return}if(ie.equals(2)){this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),ie.preventDefault();return}if(ie.equals(2066)){this._codeEditor.focus(),ie.preventDefault();return}if(ie.equals(16))return j(ie,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"));if(ie.equals(18))return G(ie,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"))}_onReplaceInputKeyDown(ie){if(ie.equals(J|3))if(this._keybindingService.dispatchEvent(ie,ie.target)){ie.preventDefault();return}else{n.isWindows&&n.isNative&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(s.localize(25,null)),this._ctrlEnterReplaceAllWarningPrompted=!0,this._storageService.store(ee,!0,0,0)),this._replaceInput.inputBox.insertAtCursor(` `),ie.preventDefault();return}if(ie.equals(2)){this._findInput.focusOnCaseSensitive(),ie.preventDefault();return}if(ie.equals(1026)){this._findInput.focus(),ie.preventDefault();return}if(ie.equals(2066)){this._codeEditor.focus(),ie.preventDefault();return}if(ie.equals(16))return j(ie,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"));if(ie.equals(18))return G(ie,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"))}getVerticalSashLeft(ie){return 0}_keybindingLabelFor(ie){const H=this._keybindingService.lookupKeybinding(ie);return H?` (${H.getLabel()})`:""}_buildDomNode(){this._findInput=this._register(new d.ContextScopedFindInput(null,this._contextViewProvider,{width:B,label:m,placeholder:S,appendCaseSensitiveLabel:this._keybindingLabelFor(o.FIND_IDS.ToggleCaseSensitiveCommand),appendWholeWordsLabel:this._keybindingLabelFor(o.FIND_IDS.ToggleWholeWordCommand),appendRegexLabel:this._keybindingLabelFor(o.FIND_IDS.ToggleRegexCommand),validation:Q=>{if(Q.length===0||!this._findInput.getRegex())return null;try{return new RegExp(Q,"gu"),null}catch(W){return{content:W.message}}},flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118,showHistoryHint:()=>(0,l.showHistoryKeybindingHint)(this._keybindingService)},this._contextKeyService,!0)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown(Q=>this._onFindInputKeyDown(Q))),this._register(this._findInput.inputBox.onDidChange(()=>{this._ignoreChangeEvent||this._state.change({searchString:this._findInput.getValue()},!0)})),this._register(this._findInput.onDidOptionChange(()=>{this._state.change({isRegex:this._findInput.getRegex(),wholeWord:this._findInput.getWholeWords(),matchCase:this._findInput.getCaseSensitive()},!0)})),this._register(this._findInput.onCaseSensitiveKeyDown(Q=>{Q.equals(1026)&&this._isReplaceVisible&&(this._replaceInput.focus(),Q.preventDefault())})),this._register(this._findInput.onRegexKeyDown(Q=>{Q.equals(2)&&this._isReplaceVisible&&(this._replaceInput.focusOnPreserve(),Q.preventDefault())})),this._register(this._findInput.inputBox.onDidHeightChange(Q=>{this._tryUpdateHeight()&&this._showViewZone()})),n.isLinux&&this._register(this._findInput.onMouseDown(Q=>this._onFindInputMouseDown(Q))),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new Z({label:E+this._keybindingLabelFor(o.FIND_IDS.PreviousMatchFindAction),icon:e.findPreviousMatchIcon,onTrigger:()=>{this._codeEditor.getAction(o.FIND_IDS.PreviousMatchFindAction).run().then(void 0,h.onUnexpectedError)}})),this._nextBtn=this._register(new Z({label:L+this._keybindingLabelFor(o.FIND_IDS.NextMatchFindAction),icon:e.findNextMatchIcon,onTrigger:()=>{this._codeEditor.getAction(o.FIND_IDS.NextMatchFindAction).run().then(void 0,h.onUnexpectedError)}}));const ae=document.createElement("div");ae.className="find-part",ae.appendChild(this._findInput.domNode);const Y=document.createElement("div");Y.className="find-actions",ae.appendChild(Y),Y.appendChild(this._matchesCount),Y.appendChild(this._prevBtn.domNode),Y.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new k.Toggle({icon:f,title:N+this._keybindingLabelFor(o.FIND_IDS.ToggleSearchScopeCommand),isChecked:!1})),this._register(this._toggleSelectionFind.onChange(()=>{if(this._toggleSelectionFind.checked){if(this._codeEditor.hasModel()){const Q=this._codeEditor.getSelections();Q.map(W=>(W.endColumn===1&&W.endLineNumber>W.startLineNumber&&(W=W.setEndPosition(W.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(W.endLineNumber-1))),W.isEmpty()?null:W)).filter(W=>!!W),Q.length&&this._state.change({searchScope:Q},!0)}}else this._state.change({searchScope:null},!0)})),Y.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new Z({label:I+this._keybindingLabelFor(o.FIND_IDS.CloseFindWidgetCommand),icon:r.widgetClose,onTrigger:()=>{this._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:Q=>{Q.equals(2)&&this._isReplaceVisible&&(this._replaceBtn.isEnabled()?this._replaceBtn.focus():this._codeEditor.focus(),Q.preventDefault())}})),Y.appendChild(this._closeBtn.domNode),this._replaceInput=this._register(new d.ContextScopedReplaceInput(null,void 0,{label:R,placeholder:F,appendPreserveCaseLabel:this._keybindingLabelFor(o.FIND_IDS.TogglePreserveCaseCommand),history:[],flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118,showHistoryHint:()=>(0,l.showHistoryKeybindingHint)(this._keybindingService)},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown(Q=>this._onReplaceInputKeyDown(Q))),this._register(this._replaceInput.inputBox.onDidChange(()=>{this._state.change({replaceString:this._replaceInput.inputBox.value},!1)})),this._register(this._replaceInput.inputBox.onDidHeightChange(Q=>{this._isReplaceVisible&&this._tryUpdateHeight()&&this._showViewZone()})),this._register(this._replaceInput.onDidOptionChange(()=>{this._state.change({preserveCase:this._replaceInput.getPreserveCase()},!0)})),this._register(this._replaceInput.onPreserveCaseKeyDown(Q=>{Q.equals(2)&&(this._prevBtn.isEnabled()?this._prevBtn.focus():this._nextBtn.isEnabled()?this._nextBtn.focus():this._toggleSelectionFind.enabled?this._toggleSelectionFind.focus():this._closeBtn.isEnabled()&&this._closeBtn.focus(),Q.preventDefault())})),this._replaceBtn=this._register(new Z({label:O+this._keybindingLabelFor(o.FIND_IDS.ReplaceOneAction),icon:e.findReplaceIcon,onTrigger:()=>{this._controller.replace()},onKeyDown:Q=>{Q.equals(1026)&&(this._closeBtn.focus(),Q.preventDefault())}})),this._replaceAllBtn=this._register(new Z({label:x+this._keybindingLabelFor(o.FIND_IDS.ReplaceAllAction),icon:e.findReplaceAllIcon,onTrigger:()=>{this._controller.replaceAll()}}));const U=document.createElement("div");U.className="replace-part",U.appendChild(this._replaceInput.domNode);const le=document.createElement("div");le.className="replace-actions",U.appendChild(le),le.appendChild(this._replaceBtn.domNode),le.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new Z({label:M,className:"codicon toggle left",onTrigger:()=>{this._state.change({isReplaceRevealed:!this._isReplaceVisible},!1),this._isReplaceVisible&&(this._replaceInput.width=y.getTotalWidth(this._findInput.domNode),this._replaceInput.inputBox.layout()),this._showViewZone()}})),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.style.width=`${A}px`,this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(ae),this._domNode.appendChild(U),this._resizeSash=new D.Sash(this._domNode,this,{orientation:0,size:2}),this._resized=!1;let z=A;this._register(this._resizeSash.onDidStart(()=>{z=y.getTotalWidth(this._domNode)})),this._register(this._resizeSash.onDidChange(Q=>{this._resized=!0;const W=z+Q.startX-Q.currentX;if(W<A)return;const V=parseFloat(y.getComputedStyle(this._domNode).maxWidth)||0;W>V||(this._domNode.style.width=`${W}px`,this._isReplaceVisible&&(this._replaceInput.width=y.getTotalWidth(this._findInput.domNode)),this._findInput.inputBox.layout(),this._tryUpdateHeight())})),this._register(this._resizeSash.onDidReset(()=>{const Q=y.getTotalWidth(this._domNode);if(Q<A)return;let W=A;if(!this._resized||Q===A){const V=this._codeEditor.getLayoutInfo();W=V.width-28-V.minimap.minimapWidth-15,this._resized=!0}this._domNode.style.width=`${W}px`,this._isReplaceVisible&&(this._replaceInput.width=y.getTotalWidth(this._findInput.domNode)),this._findInput.inputBox.layout()}))}updateAccessibilitySupport(){const ie=this._codeEditor.getOption(2);this._findInput.setFocusInputOnOptionClick(ie!==2)}}e.FindWidget=te,te.ID="editor.contrib.findWidget";class Z extends w.Widget{constructor(ie){super(),this._opts=ie;let H="button";this._opts.className&&(H=H+" "+this._opts.className),this._opts.icon&&(H=H+" "+c.ThemeIcon.asClassName(this._opts.icon)),this._domNode=document.createElement("div"),this._domNode.title=this._opts.label,this._domNode.tabIndex=0,this._domNode.className=H,this._domNode.setAttribute("role","button"),this._domNode.setAttribute("aria-label",this._opts.label),this.onclick(this._domNode,ae=>{this._opts.onTrigger(),ae.preventDefault()}),this.onkeydown(this._domNode,ae=>{var Y,U;if(ae.equals(10)||ae.equals(3)){this._opts.onTrigger(),ae.preventDefault();return}(U=(Y=this._opts).onKeyDown)===null||U===void 0||U.call(Y,ae)})}get domNode(){return this._domNode}isEnabled(){return this._domNode.tabIndex>=0}focus(){this._domNode.focus()}setEnabled(ie){this._domNode.classList.toggle("disabled",!ie),this._domNode.setAttribute("aria-disabled",String(!ie)),this._domNode.tabIndex=ie?0:-1}setExpanded(ie){this._domNode.setAttribute("aria-expanded",String(!!ie)),ie?(this._domNode.classList.remove(...c.ThemeIcon.asClassNameArray(_)),this._domNode.classList.add(...c.ThemeIcon.asClassNameArray(p))):(this._domNode.classList.remove(...c.ThemeIcon.asClassNameArray(p)),this._domNode.classList.add(...c.ThemeIcon.asClassNameArray(_)))}}e.SimpleButton=Z,(0,c.registerThemingParticipant)((X,ie)=>{const H=(ue,me)=>{me&&ie.addRule(`.monaco-editor ${ue} { background-color: ${me}; }`)};H(".findMatch",X.getColor(a.editorFindMatchHighlight)),H(".currentFindMatch",X.getColor(a.editorFindMatch)),H(".findScope",X.getColor(a.editorFindRangeHighlight));const ae=X.getColor(a.editorWidgetBackground);H(".find-widget",ae);const Y=X.getColor(a.widgetShadow);Y&&ie.addRule(`.monaco-editor .find-widget { box-shadow: 0 0 8px 2px ${Y}; }`);const U=X.getColor(a.editorFindMatchHighlightBorder);U&&ie.addRule(`.monaco-editor .findMatch { border: 1px ${(0,g.isHighContrast)(X.type)?"dotted":"solid"} ${U}; box-sizing: border-box; }`);const le=X.getColor(a.editorFindMatchBorder);le&&ie.addRule(`.monaco-editor .currentFindMatch { border: 2px solid ${le}; padding: 1px; box-sizing: border-box; }`);const z=X.getColor(a.editorFindRangeHighlightBorder);z&&ie.addRule(`.monaco-editor .findScope { border: 1px ${(0,g.isHighContrast)(X.type)?"dashed":"solid"} ${z}; }`);const Q=X.getColor(a.contrastBorder);Q&&ie.addRule(`.monaco-editor .find-widget { border: 1px solid ${Q}; }`);const W=X.getColor(a.editorWidgetForeground);W&&ie.addRule(`.monaco-editor .find-widget { color: ${W}; }`);const V=X.getColor(a.errorForeground);V&&ie.addRule(`.monaco-editor .find-widget.no-results .matchesCount { color: ${V}; }`);const ne=X.getColor(a.editorWidgetResizeBorder);if(ne)ie.addRule(`.monaco-editor .find-widget .monaco-sash { background-color: ${ne}; }`);else{const ue=X.getColor(a.editorWidgetBorder);ue&&ie.addRule(`.monaco-editor .find-widget .monaco-sash { background-color: ${ue}; }`)}const de=X.getColor(a.toolbarHoverBackground);de&&ie.addRule(` .monaco-editor .find-widget .button:not(.disabled):hover, .monaco-editor .find-widget .codicon-find-selection:hover { background-color: ${de} !important; } `);const ce=X.getColor(a.focusBorder);ce&&ie.addRule(`.monaco-editor .find-widget .monaco-inputbox.synthetic-focus { outline-color: ${ce}; }`)})}),define(oe[313],se([1,0,10,2,8,12,24,175,746,747,748,555,39,93,16,78,44,38,79,15]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StartFindReplaceAction=e.PreviousSelectionMatchFindAction=e.NextSelectionMatchFindAction=e.SelectionMatchFindAction=e.PreviousMatchFindAction=e.NextMatchFindAction=e.MatchFindAction=e.StartFindWithSelectionAction=e.StartFindWithArgsAction=e.StartFindAction=e.FindController=e.CommonFindController=e.getSelectionSearchString=void 0;const c=524288;function g(x,M="single",P=!1){if(!x.hasModel())return null;const A=x.getSelection();if(M==="single"&&A.startLineNumber===A.endLineNumber||M==="multiple"){if(A.isEmpty()){const B=x.getConfiguredWordAtPosition(A.getStartPosition());if(B&&P===!1)return B.word}else if(x.getModel().getValueLengthInRange(A)<c)return x.getModel().getValueInRange(A)}return null}e.getSelectionSearchString=g;let f=class tn extends v.Disposable{constructor(M,P,A,B){super(),this._editor=M,this._findWidgetVisible=b.CONTEXT_FIND_WIDGET_VISIBLE.bindTo(P),this._contextKeyService=P,this._storageService=A,this._clipboardService=B,this._updateHistoryDelayer=new y.Delayer(500),this._state=this._register(new h.FindReplaceState),this.loadQueryState(),this._register(this._state.onFindReplaceStateChange(K=>this._onStateChanged(K))),this._model=null,this._register(this._editor.onDidChangeModel(()=>{const K=this._editor.getModel()&&this._state.isRevealed;this.disposeModel(),this._state.change({searchScope:null,matchCase:this._storageService.getBoolean("editor.matchCase",1,!1),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,!1),isRegex:this._storageService.getBoolean("editor.isRegex",1,!1),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,!1)},!1),K&&this._start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1,loop:this._editor.getOption(37).loop})}))}get editor(){return this._editor}static get(M){return M.getContribution(tn.ID)}dispose(){this.disposeModel(),super.dispose()}disposeModel(){this._model&&(this._model.dispose(),this._model=null)}_onStateChanged(M){this.saveQueryState(M),M.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),M.searchString&&this.setGlobalBufferTerm(this._state.searchString)}saveQueryState(M){M.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1,0),M.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1,0),M.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1,0),M.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,1,0)}loadQueryState(){this._state.change({matchCase:this._storageService.getBoolean("editor.matchCase",1,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",1,this._state.isRegex),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,this._state.preserveCase)},!1)}isFindInputFocused(){return!!b.CONTEXT_FIND_INPUT_FOCUSED.getValue(this._contextKeyService)}getState(){return this._state}closeFindWidget(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()}toggleCaseSensitive(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleWholeWords(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()}toggleRegex(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()}togglePreserveCase(){this._state.change({preserveCase:!this._state.preserveCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleSearchScope(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else if(this._editor.hasModel()){const M=this._editor.getSelections();M.map(P=>(P.endColumn===1&&P.endLineNumber>P.startLineNumber&&(P=P.setEndPosition(P.endLineNumber-1,this._editor.getModel().getLineMaxColumn(P.endLineNumber-1))),P.isEmpty()?null:P)).filter(P=>!!P),M.length&&this._state.change({searchScope:M},!0)}}setSearchString(M){this._state.isRegex&&(M=k.escapeRegExpCharacters(M)),this._state.change({searchString:M},!1)}highlightFindOptions(M=!1){}_start(M,P){return be(this,void 0,void 0,function*(){if(this.disposeModel(),!this._editor.hasModel())return;const A=Object.assign(Object.assign({},P),{isRevealed:!0});if(M.seedSearchStringFromSelection==="single"){const B=g(this._editor,M.seedSearchStringFromSelection,M.seedSearchStringFromNonEmptySelection);B&&(this._state.isRegex?A.searchString=k.escapeRegExpCharacters(B):A.searchString=B)}else if(M.seedSearchStringFromSelection==="multiple"&&!M.updateSearchScope){const B=g(this._editor,M.seedSearchStringFromSelection);B&&(A.searchString=B)}if(!A.searchString&&M.seedSearchStringFromGlobalClipboard){const B=yield this.getGlobalBufferTerm();if(!this._editor.hasModel())return;B&&(A.searchString=B)}if(M.forceRevealReplace||A.isReplaceRevealed?A.isReplaceRevealed=!0:this._findWidgetVisible.get()||(A.isReplaceRevealed=!1),M.updateSearchScope){const B=this._editor.getSelections();B.some(K=>!K.isEmpty())&&(A.searchScope=B)}A.loop=M.loop,this._state.change(A,!1),this._model||(this._model=new b.FindModelBoundToEditorModel(this._editor,this._state))})}start(M,P){return this._start(M,P)}moveToNextMatch(){return this._model?(this._model.moveToNextMatch(),!0):!1}moveToPrevMatch(){return this._model?(this._model.moveToPrevMatch(),!0):!1}replace(){return this._model?(this._model.replace(),!0):!1}replaceAll(){return this._model?(this._model.replaceAll(),!0):!1}selectAllMatches(){return this._model?(this._model.selectAllMatches(),this._editor.focus(),!0):!1}getGlobalBufferTerm(){return be(this,void 0,void 0,function*(){return this._editor.getOption(37).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""})}setGlobalBufferTerm(M){this._editor.getOption(37).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(M)}};f.ID="editor.contrib.findController",f=Ie([pe(1,o.IContextKeyService),pe(2,a.IStorageService),pe(3,t.IClipboardService)],f),e.CommonFindController=f;let _=class extends f{constructor(x,M,P,A,B,K,T,ee){super(x,P,T,ee),this._contextViewService=M,this._keybindingService=A,this._themeService=B,this._notificationService=K,this._widget=null,this._findOptionsWidget=null}_start(x,M){const P=Object.create(null,{_start:{get:()=>super._start}});return be(this,void 0,void 0,function*(){this._widget||this._createFindWidget();const A=this._editor.getSelection();let B=!1;switch(this._editor.getOption(37).autoFindInSelection){case"always":B=!0;break;case"never":B=!1;break;case"multiline":{B=!!A&&A.startLineNumber!==A.endLineNumber;break}default:break}x.updateSearchScope=x.updateSearchScope||B,yield P._start.call(this,x,M),this._widget&&(x.shouldFocus===2?this._widget.focusReplaceInput():x.shouldFocus===1&&this._widget.focusFindInput())})}highlightFindOptions(x=!1){this._widget||this._createFindWidget(),this._state.isRevealed&&!x?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()}_createFindWidget(){this._widget=this._register(new u.FindWidget(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService)),this._findOptionsWidget=this._register(new C.FindOptionsWidget(this._editor,this._state,this._keybindingService,this._themeService))}};_=Ie([pe(1,s.IContextViewService),pe(2,o.IContextKeyService),pe(3,d.IKeybindingService),pe(4,r.IThemeService),pe(5,l.INotificationService),pe(6,a.IStorageService),pe(7,t.IClipboardService)],_),e.FindController=_,e.StartFindAction=(0,D.registerMultiEditorAction)(new D.MultiEditorAction({id:b.FIND_IDS.StartFindAction,label:n.localize(0,null),alias:"Find",precondition:o.ContextKeyExpr.or(w.EditorContextKeys.focus,o.ContextKeyExpr.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2084,weight:100},menuOpts:{menuId:i.MenuId.MenubarEditMenu,group:"3_find",title:n.localize(1,null),order:1}})),e.StartFindAction.addImplementation(0,(x,M,P)=>{const A=f.get(M);return A?A.start({forceRevealReplace:!1,seedSearchStringFromSelection:M.getOption(37).seedSearchStringFromSelection!=="never"?"single":"none",seedSearchStringFromNonEmptySelection:M.getOption(37).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:M.getOption(37).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1,loop:M.getOption(37).loop}):!1});const p={description:"Open a new In-Editor Find Widget.",args:[{name:"Open a new In-Editor Find Widget args",schema:{properties:{searchString:{type:"string"},replaceString:{type:"string"},regex:{type:"boolean"},regexOverride:{type:"number",description:n.localize(2,null)},wholeWord:{type:"boolean"},wholeWordOverride:{type:"number",description:n.localize(3,null)},matchCase:{type:"boolean"},matchCaseOverride:{type:"number",description:n.localize(4,null)},preserveCase:{type:"boolean"},preserveCaseOverride:{type:"number",description:n.localize(5,null)},findInSelection:{type:"boolean"}}}}]};class m extends D.EditorAction{constructor(){super({id:b.FIND_IDS.StartFindWithArgs,label:n.localize(6,null),alias:"Find With Arguments",precondition:void 0,kbOpts:{kbExpr:null,primary:0,weight:100},description:p})}run(M,P,A){return be(this,void 0,void 0,function*(){const B=f.get(P);if(B){const K=A?{searchString:A.searchString,replaceString:A.replaceString,isReplaceRevealed:A.replaceString!==void 0,isRegex:A.isRegex,wholeWord:A.matchWholeWord,matchCase:A.isCaseSensitive,preserveCase:A.preserveCase}:{};yield B.start({forceRevealReplace:!1,seedSearchStringFromSelection:B.getState().searchString.length===0&&P.getOption(37).seedSearchStringFromSelection!=="never"?"single":"none",seedSearchStringFromNonEmptySelection:P.getOption(37).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:!0,shouldFocus:1,shouldAnimate:!0,updateSearchScope:A?.findInSelection||!1,loop:P.getOption(37).loop},K),B.setGlobalBufferTerm(B.getState().searchString)}})}}e.StartFindWithArgsAction=m;class S extends D.EditorAction{constructor(){super({id:b.FIND_IDS.StartFindWithSelection,label:n.localize(7,null),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2083},weight:100}})}run(M,P){return be(this,void 0,void 0,function*(){const A=f.get(P);A&&(yield A.start({forceRevealReplace:!1,seedSearchStringFromSelection:"multiple",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:P.getOption(37).loop}),A.setGlobalBufferTerm(A.getState().searchString))})}}e.StartFindWithSelectionAction=S;class E extends D.EditorAction{run(M,P){return be(this,void 0,void 0,function*(){const A=f.get(P);A&&!this._run(A)&&(yield A.start({forceRevealReplace:!1,seedSearchStringFromSelection:A.getState().searchString.length===0&&P.getOption(37).seedSearchStringFromSelection!=="never"?"single":"none",seedSearchStringFromNonEmptySelection:P.getOption(37).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:P.getOption(37).loop}),this._run(A))})}}e.MatchFindAction=E;class L extends E{constructor(){super({id:b.FIND_IDS.NextMatchFindAction,label:n.localize(8,null),alias:"Find Next",precondition:void 0,kbOpts:[{kbExpr:w.EditorContextKeys.focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100},{kbExpr:o.ContextKeyExpr.and(w.EditorContextKeys.focus,b.CONTEXT_FIND_INPUT_FOCUSED),primary:3,weight:100}]})}_run(M){return M.moveToNextMatch()?(M.editor.pushUndoStop(),!0):!1}}e.NextMatchFindAction=L;class N extends E{constructor(){super({id:b.FIND_IDS.PreviousMatchFindAction,label:n.localize(9,null),alias:"Find Previous",precondition:void 0,kbOpts:[{kbExpr:w.EditorContextKeys.focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100},{kbExpr:o.ContextKeyExpr.and(w.EditorContextKeys.focus,b.CONTEXT_FIND_INPUT_FOCUSED),primary:1027,weight:100}]})}_run(M){return M.moveToPrevMatch()}}e.PreviousMatchFindAction=N;class I extends D.EditorAction{run(M,P){return be(this,void 0,void 0,function*(){const A=f.get(P);if(!A)return;const B=P.getOption(37).seedSearchStringFromSelection==="selection";let K=null;P.getOption(37).seedSearchStringFromSelection!=="never"&&(K=g(P,"single",B)),K&&A.setSearchString(K),this._run(A)||(yield A.start({forceRevealReplace:!1,seedSearchStringFromSelection:P.getOption(37).seedSearchStringFromSelection!=="never"?"single":"none",seedSearchStringFromNonEmptySelection:B,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:P.getOption(37).loop}),this._run(A))})}}e.SelectionMatchFindAction=I;class R extends I{constructor(){super({id:b.FIND_IDS.NextSelectionMatchFindAction,label:n.localize(10,null),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:w.EditorContextKeys.focus,primary:2109,weight:100}})}_run(M){return M.moveToNextMatch()}}e.NextSelectionMatchFindAction=R;class F extends I{constructor(){super({id:b.FIND_IDS.PreviousSelectionMatchFindAction,label:n.localize(11,null),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:w.EditorContextKeys.focus,primary:3133,weight:100}})}_run(M){return M.moveToPrevMatch()}}e.PreviousSelectionMatchFindAction=F,e.StartFindReplaceAction=(0,D.registerMultiEditorAction)(new D.MultiEditorAction({id:b.FIND_IDS.StartFindReplaceAction,label:n.localize(12,null),alias:"Replace",precondition:o.ContextKeyExpr.or(w.EditorContextKeys.focus,o.ContextKeyExpr.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menuOpts:{menuId:i.MenuId.MenubarEditMenu,group:"3_find",title:n.localize(13,null),order:2}})),e.StartFindReplaceAction.addImplementation(0,(x,M,P)=>{if(!M.hasModel()||M.getOption(83))return!1;const A=f.get(M);if(!A)return!1;const B=M.getSelection(),K=A.isFindInputFocused(),T=!B.isEmpty()&&B.startLineNumber===B.endLineNumber&&M.getOption(37).seedSearchStringFromSelection!=="never"&&!K,ee=K||T?2:1;return A.start({forceRevealReplace:!0,seedSearchStringFromSelection:T?"single":"none",seedSearchStringFromNonEmptySelection:M.getOption(37).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:M.getOption(37).seedSearchStringFromSelection!=="never",shouldFocus:ee,shouldAnimate:!0,updateSearchScope:!1,loop:M.getOption(37).loop})}),(0,D.registerEditorContribution)(f.ID,_),(0,D.registerEditorAction)(m),(0,D.registerEditorAction)(S),(0,D.registerEditorAction)(L),(0,D.registerEditorAction)(N),(0,D.registerEditorAction)(R),(0,D.registerEditorAction)(F);const O=D.EditorCommand.bindToContribution(f.get);(0,D.registerEditorCommand)(new O({id:b.FIND_IDS.CloseFindWidgetCommand,precondition:b.CONTEXT_FIND_WIDGET_VISIBLE,handler:x=>x.closeFindWidget(),kbOpts:{weight:100+5,kbExpr:o.ContextKeyExpr.and(w.EditorContextKeys.focus,o.ContextKeyExpr.not("isComposing")),primary:9,secondary:[1033]}})),(0,D.registerEditorCommand)(new O({id:b.FIND_IDS.ToggleCaseSensitiveCommand,precondition:void 0,handler:x=>x.toggleCaseSensitive(),kbOpts:{weight:100+5,kbExpr:w.EditorContextKeys.focus,primary:b.ToggleCaseSensitiveKeybinding.primary,mac:b.ToggleCaseSensitiveKeybinding.mac,win:b.ToggleCaseSensitiveKeybinding.win,linux:b.ToggleCaseSensitiveKeybinding.linux}})),(0,D.registerEditorCommand)(new O({id:b.FIND_IDS.ToggleWholeWordCommand,precondition:void 0,handler:x=>x.toggleWholeWords(),kbOpts:{weight:100+5,kbExpr:w.EditorContextKeys.focus,primary:b.ToggleWholeWordKeybinding.primary,mac:b.ToggleWholeWordKeybinding.mac,win:b.ToggleWholeWordKeybinding.win,linux:b.ToggleWholeWordKeybinding.linux}})),(0,D.registerEditorCommand)(new O({id:b.FIND_IDS.ToggleRegexCommand,precondition:void 0,handler:x=>x.toggleRegex(),kbOpts:{weight:100+5,kbExpr:w.EditorContextKeys.focus,primary:b.ToggleRegexKeybinding.primary,mac:b.ToggleRegexKeybinding.mac,win:b.ToggleRegexKeybinding.win,linux:b.ToggleRegexKeybinding.linux}})),(0,D.registerEditorCommand)(new O({id:b.FIND_IDS.ToggleSearchScopeCommand,precondition:void 0,handler:x=>x.toggleSearchScope(),kbOpts:{weight:100+5,kbExpr:w.EditorContextKeys.focus,primary:b.ToggleSearchScopeKeybinding.primary,mac:b.ToggleSearchScopeKeybinding.mac,win:b.ToggleSearchScopeKeybinding.win,linux:b.ToggleSearchScopeKeybinding.linux}})),(0,D.registerEditorCommand)(new O({id:b.FIND_IDS.TogglePreserveCaseCommand,precondition:void 0,handler:x=>x.togglePreserveCase(),kbOpts:{weight:100+5,kbExpr:w.EditorContextKeys.focus,primary:b.TogglePreserveCaseKeybinding.primary,mac:b.TogglePreserveCaseKeybinding.mac,win:b.TogglePreserveCaseKeybinding.win,linux:b.TogglePreserveCaseKeybinding.linux}})),(0,D.registerEditorCommand)(new O({id:b.FIND_IDS.ReplaceOneAction,precondition:b.CONTEXT_FIND_WIDGET_VISIBLE,handler:x=>x.replace(),kbOpts:{weight:100+5,kbExpr:w.EditorContextKeys.focus,primary:3094}})),(0,D.registerEditorCommand)(new O({id:b.FIND_IDS.ReplaceOneAction,precondition:b.CONTEXT_FIND_WIDGET_VISIBLE,handler:x=>x.replace(),kbOpts:{weight:100+5,kbExpr:o.ContextKeyExpr.and(w.EditorContextKeys.focus,b.CONTEXT_REPLACE_INPUT_FOCUSED),primary:3}})),(0,D.registerEditorCommand)(new O({id:b.FIND_IDS.ReplaceAllAction,precondition:b.CONTEXT_FIND_WIDGET_VISIBLE,handler:x=>x.replaceAll(),kbOpts:{weight:100+5,kbExpr:w.EditorContextKeys.focus,primary:2563}})),(0,D.registerEditorCommand)(new O({id:b.FIND_IDS.ReplaceAllAction,precondition:b.CONTEXT_FIND_WIDGET_VISIBLE,handler:x=>x.replaceAll(),kbOpts:{weight:100+5,kbExpr:o.ContextKeyExpr.and(w.EditorContextKeys.focus,b.CONTEXT_REPLACE_INPUT_FOCUSED),primary:void 0,mac:{primary:2051}}})),(0,D.registerEditorCommand)(new O({id:b.FIND_IDS.SelectAllMatchesAction,precondition:b.CONTEXT_FIND_WIDGET_VISIBLE,handler:x=>x.selectAllMatches(),kbOpts:{weight:100+5,kbExpr:w.EditorContextKeys.focus,primary:515}}))}),define(oe[749],se([1,0,27,35,558,80,15]),function(q,e,y,v,k,D,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FoldingDecorationProvider=e.foldingManualExpandedIcon=e.foldingManualCollapsedIcon=e.foldingCollapsedIcon=e.foldingExpandedIcon=void 0,e.foldingExpandedIcon=(0,D.registerIcon)("folding-expanded",y.Codicon.chevronDown,(0,k.localize)(0,null)),e.foldingCollapsedIcon=(0,D.registerIcon)("folding-collapsed",y.Codicon.chevronRight,(0,k.localize)(1,null)),e.foldingManualCollapsedIcon=(0,D.registerIcon)("folding-manual-collapsed",e.foldingCollapsedIcon,(0,k.localize)(2,null)),e.foldingManualExpandedIcon=(0,D.registerIcon)("folding-manual-expanded",e.foldingExpandedIcon,(0,k.localize)(3,null));class b{constructor(h){this.editor=h,this.showFoldingControls="mouseover",this.showFoldingHighlights=!0}getDecorationOption(h,u,n){return u||this.showFoldingControls==="never"?b.HIDDEN_RANGE_DECORATION:h?n?this.showFoldingHighlights?b.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:b.MANUALLY_COLLAPSED_VISUAL_DECORATION:this.showFoldingHighlights?b.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:b.COLLAPSED_VISUAL_DECORATION:this.showFoldingControls==="mouseover"?n?b.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION:b.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:n?b.MANUALLY_EXPANDED_VISUAL_DECORATION:b.EXPANDED_VISUAL_DECORATION}changeDecorations(h){return this.editor.changeDecorations(h)}removeDecorations(h){this.editor.removeDecorations(h)}}e.FoldingDecorationProvider=b,b.COLLAPSED_VISUAL_DECORATION=v.ModelDecorationOptions.register({description:"folding-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,firstLineDecorationClassName:w.ThemeIcon.asClassName(e.foldingCollapsedIcon)}),b.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=v.ModelDecorationOptions.register({description:"folding-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",isWholeLine:!0,firstLineDecorationClassName:w.ThemeIcon.asClassName(e.foldingCollapsedIcon)}),b.MANUALLY_COLLAPSED_VISUAL_DECORATION=v.ModelDecorationOptions.register({description:"folding-manually-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+w.ThemeIcon.asClassName(e.foldingExpandedIcon)}),b.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=v.ModelDecorationOptions.register({description:"folding-manually-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",isWholeLine:!0,firstLineDecorationClassName:w.ThemeIcon.asClassName(e.foldingManualCollapsedIcon)}),b.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=v.ModelDecorationOptions.register({description:"folding-expanded-auto-hide-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:w.ThemeIcon.asClassName(e.foldingExpandedIcon)}),b.EXPANDED_VISUAL_DECORATION=v.ModelDecorationOptions.register({description:"folding-expanded-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+w.ThemeIcon.asClassName(e.foldingExpandedIcon)}),b.MANUALLY_EXPANDED_VISUAL_DECORATION=v.ModelDecorationOptions.register({description:"folding-manually-expanded-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+w.ThemeIcon.asClassName(e.foldingManualExpandedIcon)}),b.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION=v.ModelDecorationOptions.register({description:"folding-manually-expanded-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:w.ThemeIcon.asClassName(e.foldingManualExpandedIcon)}),b.HIDDEN_RANGE_DECORATION=v.ModelDecorationOptions.register({description:"folding-hidden-range-decoration",stickiness:1})}),define(oe[750],se([1,0,10,14,59,2,8,19,152,12,24,28,32,516,517,453,557,16,25,15,749,160,454,38,81,70,57,20,379]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r,c,g,f,_,p,m,S,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.editorFoldForeground=e.foldBackgroundBackground=e.FoldingController=void 0;const L=new l.RawContextKey("foldingEnabled",!1);let N=class nn extends D.Disposable{constructor(ae,Y,U,le,z,Q){super(),this.contextKeyService=Y,this.languageConfigurationService=U,this.languageFeaturesService=Q,this._tooManyRegionsNotified=!1,this.localToDispose=this._register(new D.DisposableStore),this.editor=ae;const W=this.editor.getOptions();this._isEnabled=W.get(39),this._useFoldingProviders=W.get(40)!=="indentation",this._unfoldOnClickAfterEndOfLine=W.get(44),this._restoringViewState=!1,this._currentModelHasFoldedImports=!1,this._foldingImportsByDefault=W.get(42),this._maxFoldingRegions=W.get(43),this.updateDebounceInfo=z.for(Q.foldingRangeProvider,"Folding",{min:200}),this.foldingModel=null,this.hiddenRangeModel=null,this.rangeProvider=null,this.foldingRegionPromise=null,this.foldingModelPromise=null,this.updateScheduler=null,this.cursorChangedScheduler=null,this.mouseDownInfo=null,this.foldingDecorationProvider=new c.FoldingDecorationProvider(ae),this.foldingDecorationProvider.showFoldingControls=W.get(101),this.foldingDecorationProvider.showFoldingHighlights=W.get(41),this.foldingEnabled=L.bindTo(this.contextKeyService),this.foldingEnabled.set(this._isEnabled),this._notifyTooManyRegions=V=>{this._tooManyRegionsNotified||(le.notify({severity:p.default.Warning,sticky:!0,message:d.localize(0,null,V)}),this._tooManyRegionsNotified=!0)},this._register(this.editor.onDidChangeModel(()=>this.onModelChanged())),this._register(this.editor.onDidChangeConfiguration(V=>{if(V.hasChanged(39)&&(this._isEnabled=this.editor.getOptions().get(39),this.foldingEnabled.set(this._isEnabled),this.onModelChanged()),V.hasChanged(43)&&(this._maxFoldingRegions=this.editor.getOptions().get(43),this._tooManyRegionsNotified=!1,this.onModelChanged()),V.hasChanged(101)||V.hasChanged(41)){const ne=this.editor.getOptions();this.foldingDecorationProvider.showFoldingControls=ne.get(101),this.foldingDecorationProvider.showFoldingHighlights=ne.get(41),this.triggerFoldingModelChanged()}V.hasChanged(40)&&(this._useFoldingProviders=this.editor.getOptions().get(40)!=="indentation",this.onFoldingStrategyChanged()),V.hasChanged(44)&&(this._unfoldOnClickAfterEndOfLine=this.editor.getOptions().get(44)),V.hasChanged(42)&&(this._foldingImportsByDefault=this.editor.getOptions().get(42))})),this.onModelChanged()}static get(ae){return ae.getContribution(nn.ID)}saveViewState(){const ae=this.editor.getModel();if(!ae||!this._isEnabled||ae.isTooLargeForTokenization())return{};if(this.foldingModel){const Y=this.foldingModel.getMemento(),U=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:Y,lineCount:ae.getLineCount(),provider:U,foldedImports:this._currentModelHasFoldedImports}}}restoreViewState(ae){const Y=this.editor.getModel();if(!(!Y||!this._isEnabled||Y.isTooLargeForTokenization()||!this.hiddenRangeModel)&&!(!ae||ae.lineCount!==Y.getLineCount())&&(this._currentModelHasFoldedImports=!!ae.foldedImports,ae.collapsedRegions&&ae.collapsedRegions.length>0&&this.foldingModel)){this._restoringViewState=!0;try{this.foldingModel.applyMemento(ae.collapsedRegions)}finally{this._restoringViewState=!1}}}onModelChanged(){this.localToDispose.clear();const ae=this.editor.getModel();!this._isEnabled||!ae||ae.isTooLargeForTokenization()||(this._currentModelHasFoldedImports=!1,this.foldingModel=new t.FoldingModel(ae,this.foldingDecorationProvider),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new o.HiddenRangeModel(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange(Y=>this.onHiddenRangesChanges(Y))),this.updateScheduler=new y.Delayer(this.updateDebounceInfo.get(ae)),this.cursorChangedScheduler=new y.RunOnceScheduler(()=>this.revealCursor(),200),this.localToDispose.add(this.cursorChangedScheduler),this.localToDispose.add(this.languageFeaturesService.foldingRangeProvider.onDidChange(()=>this.onFoldingStrategyChanged())),this.localToDispose.add(this.editor.onDidChangeModelLanguageConfiguration(()=>this.onFoldingStrategyChanged())),this.localToDispose.add(this.editor.onDidChangeModelContent(Y=>this.onDidChangeModelContent(Y))),this.localToDispose.add(this.editor.onDidChangeCursorPosition(()=>this.onCursorPositionChanged())),this.localToDispose.add(this.editor.onMouseDown(Y=>this.onEditorMouseDown(Y))),this.localToDispose.add(this.editor.onMouseUp(Y=>this.onEditorMouseUp(Y))),this.localToDispose.add({dispose:()=>{this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.updateScheduler&&this.updateScheduler.cancel(),this.updateScheduler=null,this.foldingModel=null,this.foldingModelPromise=null,this.hiddenRangeModel=null,this.cursorChangedScheduler=null,this.rangeProvider&&this.rangeProvider.dispose(),this.rangeProvider=null}}),this.triggerFoldingModelChanged())}onFoldingStrategyChanged(){this.rangeProvider&&this.rangeProvider.dispose(),this.rangeProvider=null,this.triggerFoldingModelChanged()}getRangeProvider(ae){if(this.rangeProvider)return this.rangeProvider;if(this.rangeProvider=new s.IndentRangeProvider(ae,this.languageConfigurationService,this._maxFoldingRegions),this._useFoldingProviders&&this.foldingModel){const Y=this.languageFeaturesService.foldingRangeProvider.ordered(this.foldingModel.textModel);Y.length>0&&(this.rangeProvider=new f.SyntaxRangeProvider(ae,Y,()=>this.triggerFoldingModelChanged(),this._maxFoldingRegions))}return this.rangeProvider}getFoldingModel(){return this.foldingModelPromise}onDidChangeModelContent(ae){var Y;(Y=this.hiddenRangeModel)===null||Y===void 0||Y.notifyChangeModelContent(ae),this.triggerFoldingModelChanged()}triggerFoldingModelChanged(){this.updateScheduler&&(this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.foldingModelPromise=this.updateScheduler.trigger(()=>{const ae=this.foldingModel;if(!ae)return null;const Y=new S.StopWatch(!0),U=this.getRangeProvider(ae.textModel),le=this.foldingRegionPromise=(0,y.createCancelablePromise)(z=>U.compute(z,this._notifyTooManyRegions));return le.then(z=>{if(z&&le===this.foldingRegionPromise){let Q;if(this._foldingImportsByDefault&&!this._currentModelHasFoldedImports){const de=z.setCollapsedAllOfType(n.FoldingRangeKind.Imports.value,!0);de&&(Q=C.StableEditorScrollState.capture(this.editor),this._currentModelHasFoldedImports=de)}const W=this.editor.getSelections(),V=W?W.map(de=>de.startLineNumber):[];ae.update(z,V),Q?.restore(this.editor);const ne=this.updateDebounceInfo.update(ae.textModel,Y.elapsed());this.updateScheduler&&(this.updateScheduler.defaultDelay=ne)}return ae})}).then(void 0,ae=>((0,v.onUnexpectedError)(ae),null)))}onHiddenRangesChanges(ae){if(this.hiddenRangeModel&&ae.length&&!this._restoringViewState){const Y=this.editor.getSelections();Y&&this.hiddenRangeModel.adjustSelections(Y)&&this.editor.setSelections(Y)}this.editor.setHiddenAreas(ae)}onCursorPositionChanged(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()}revealCursor(){const ae=this.getFoldingModel();!ae||ae.then(Y=>{if(Y){const U=this.editor.getSelections();if(U&&U.length>0){const le=[];for(const z of U){const Q=z.selectionStartLineNumber;this.hiddenRangeModel&&this.hiddenRangeModel.isHidden(Q)&&le.push(...Y.getAllRegionsAtLine(Q,W=>W.isCollapsed&&Q>W.startLineNumber))}le.length&&(Y.toggleCollapseState(le),this.reveal(U[0].getPosition()))}}}).then(void 0,v.onUnexpectedError)}onEditorMouseDown(ae){if(this.mouseDownInfo=null,!this.hiddenRangeModel||!ae.target||!ae.target.range||!ae.event.leftButton&&!ae.event.middleButton)return;const Y=ae.target.range;let U=!1;switch(ae.target.type){case 4:{const le=ae.target.detail,z=ae.target.element.offsetLeft;if(le.offsetX-z<5)return;U=!0;break}case 7:{if(this._unfoldOnClickAfterEndOfLine&&this.hiddenRangeModel.hasRanges()&&!ae.target.detail.isAfterLines)break;return}case 6:{if(this.hiddenRangeModel.hasRanges()){const le=this.editor.getModel();if(le&&Y.startColumn===le.getLineMaxColumn(Y.startLineNumber))break}return}default:return}this.mouseDownInfo={lineNumber:Y.startLineNumber,iconClicked:U}}onEditorMouseUp(ae){const Y=this.foldingModel;if(!Y||!this.mouseDownInfo||!ae.target)return;const U=this.mouseDownInfo.lineNumber,le=this.mouseDownInfo.iconClicked,z=ae.target.range;if(!z||z.startLineNumber!==U)return;if(le){if(ae.target.type!==4)return}else{const W=this.editor.getModel();if(!W||z.startColumn!==W.getLineMaxColumn(U))return}const Q=Y.getRegionAtLine(U);if(Q&&Q.startLineNumber===U){const W=Q.isCollapsed;if(le||W){const V=ae.event.altKey;let ne=[];if(V){const de=ue=>!ue.containedBy(Q)&&!Q.containedBy(ue),ce=Y.getRegionsInside(null,de);for(const ue of ce)ue.isCollapsed&&ne.push(ue);ne.length===0&&(ne=ce)}else{const de=ae.event.middleButton||ae.event.shiftKey;if(de)for(const ce of Y.getRegionsInside(Q))ce.isCollapsed===W&&ne.push(ce);(W||!de||ne.length===0)&&ne.push(Q)}Y.toggleCollapseState(ne),this.reveal({lineNumber:U,column:1})}}}reveal(ae){this.editor.revealPositionInCenterIfOutsideViewport(ae,0)}};N.ID="editor.contrib.folding",N=Ie([pe(1,l.IContextKeyService),pe(2,i.ILanguageConfigurationService),pe(3,_.INotificationService),pe(4,m.ILanguageFeatureDebounceService),pe(5,E.ILanguageFeaturesService)],N),e.FoldingController=N;class I extends h.EditorAction{runEditorCommand(ae,Y,U){const le=ae.get(i.ILanguageConfigurationService),z=N.get(Y);if(!z)return;const Q=z.getFoldingModel();if(Q)return this.reportTelemetry(ae,Y),Q.then(W=>{if(W){this.invoke(z,W,Y,U,le);const V=Y.getSelection();V&&z.reveal(V.getStartPosition())}})}getSelectedLines(ae){const Y=ae.getSelections();return Y?Y.map(U=>U.startLineNumber):[]}getLineNumbers(ae,Y){return ae&&ae.selectionLines?ae.selectionLines.map(U=>U+1):this.getSelectedLines(Y)}run(ae,Y){}}function R(H){if(!b.isUndefined(H)){if(!b.isObject(H))return!1;const ae=H;if(!b.isUndefined(ae.levels)&&!b.isNumber(ae.levels)||!b.isUndefined(ae.direction)&&!b.isString(ae.direction)||!b.isUndefined(ae.selectionLines)&&(!b.isArray(ae.selectionLines)||!ae.selectionLines.every(b.isNumber)))return!1}return!0}class F extends I{constructor(){super({id:"editor.unfold",label:d.localize(1,null),alias:"Unfold",precondition:L,kbOpts:{kbExpr:u.EditorContextKeys.editorTextFocus,primary:3161,mac:{primary:2649},weight:100},description:{description:"Unfold the content in the editor",args:[{name:"Unfold editor argument",description:`Property-value pairs that can be passed through this argument: * 'levels': Number of levels to unfold. If not set, defaults to 1. * 'direction': If 'up', unfold given number of levels up otherwise unfolds down. * 'selectionLines': Array of the start lines (0-based) of the editor selections to apply the unfold action to. If not set, the active selection(s) will be used. `,constraint:R,schema:{type:"object",properties:{levels:{type:"number",default:1},direction:{type:"string",enum:["up","down"],default:"down"},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(ae,Y,U,le){const z=le&&le.levels||1,Q=this.getLineNumbers(le,U);le&&le.direction==="up"?(0,t.setCollapseStateLevelsUp)(Y,!1,z,Q):(0,t.setCollapseStateLevelsDown)(Y,!1,z,Q)}}class O extends I{constructor(){super({id:"editor.unfoldRecursively",label:d.localize(2,null),alias:"Unfold Recursively",precondition:L,kbOpts:{kbExpr:u.EditorContextKeys.editorTextFocus,primary:(0,k.KeyChord)(2089,2137),weight:100}})}invoke(ae,Y,U,le){(0,t.setCollapseStateLevelsDown)(Y,!1,Number.MAX_VALUE,this.getSelectedLines(U))}}class x extends I{constructor(){super({id:"editor.fold",label:d.localize(3,null),alias:"Fold",precondition:L,kbOpts:{kbExpr:u.EditorContextKeys.editorTextFocus,primary:3159,mac:{primary:2647},weight:100},description:{description:"Fold the content in the editor",args:[{name:"Fold editor argument",description:`Property-value pairs that can be passed through this argument: * 'levels': Number of levels to fold. * 'direction': If 'up', folds given number of levels up otherwise folds down. * 'selectionLines': Array of the start lines (0-based) of the editor selections to apply the fold action to. If not set, the active selection(s) will be used. If no levels or direction is set, folds the region at the locations or if already collapsed, the first uncollapsed parent instead. `,constraint:R,schema:{type:"object",properties:{levels:{type:"number"},direction:{type:"string",enum:["up","down"]},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(ae,Y,U,le){const z=this.getLineNumbers(le,U),Q=le&&le.levels,W=le&&le.direction;typeof Q!="number"&&typeof W!="string"?(0,t.setCollapseStateUp)(Y,!0,z):W==="up"?(0,t.setCollapseStateLevelsUp)(Y,!0,Q||1,z):(0,t.setCollapseStateLevelsDown)(Y,!0,Q||1,z)}}class M extends I{constructor(){super({id:"editor.toggleFold",label:d.localize(4,null),alias:"Toggle Fold",precondition:L,kbOpts:{kbExpr:u.EditorContextKeys.editorTextFocus,primary:(0,k.KeyChord)(2089,2090),weight:100}})}invoke(ae,Y,U){const le=this.getSelectedLines(U);(0,t.toggleCollapseState)(Y,1,le)}}class P extends I{constructor(){super({id:"editor.foldRecursively",label:d.localize(5,null),alias:"Fold Recursively",precondition:L,kbOpts:{kbExpr:u.EditorContextKeys.editorTextFocus,primary:(0,k.KeyChord)(2089,2135),weight:100}})}invoke(ae,Y,U){const le=this.getSelectedLines(U);(0,t.setCollapseStateLevelsDown)(Y,!0,Number.MAX_VALUE,le)}}class A extends I{constructor(){super({id:"editor.foldAllBlockComments",label:d.localize(6,null),alias:"Fold All Block Comments",precondition:L,kbOpts:{kbExpr:u.EditorContextKeys.editorTextFocus,primary:(0,k.KeyChord)(2089,2133),weight:100}})}invoke(ae,Y,U,le,z){if(Y.regions.hasTypes())(0,t.setCollapseStateForType)(Y,n.FoldingRangeKind.Comment.value,!0);else{const Q=U.getModel();if(!Q)return;const W=z.getLanguageConfiguration(Q.getLanguageId()).comments;if(W&&W.blockCommentStartToken){const V=new RegExp("^\\s*"+(0,w.escapeRegExpCharacters)(W.blockCommentStartToken));(0,t.setCollapseStateForMatchingLines)(Y,V,!0)}}}}class B extends I{constructor(){super({id:"editor.foldAllMarkerRegions",label:d.localize(7,null),alias:"Fold All Regions",precondition:L,kbOpts:{kbExpr:u.EditorContextKeys.editorTextFocus,primary:(0,k.KeyChord)(2089,2077),weight:100}})}invoke(ae,Y,U,le,z){if(Y.regions.hasTypes())(0,t.setCollapseStateForType)(Y,n.FoldingRangeKind.Region.value,!0);else{const Q=U.getModel();if(!Q)return;const W=z.getLanguageConfiguration(Q.getLanguageId()).foldingRules;if(W&&W.markers&&W.markers.start){const V=new RegExp(W.markers.start);(0,t.setCollapseStateForMatchingLines)(Y,V,!0)}}}}class K extends I{constructor(){super({id:"editor.unfoldAllMarkerRegions",label:d.localize(8,null),alias:"Unfold All Regions",precondition:L,kbOpts:{kbExpr:u.EditorContextKeys.editorTextFocus,primary:(0,k.KeyChord)(2089,2078),weight:100}})}invoke(ae,Y,U,le,z){if(Y.regions.hasTypes())(0,t.setCollapseStateForType)(Y,n.FoldingRangeKind.Region.value,!1);else{const Q=U.getModel();if(!Q)return;const W=z.getLanguageConfiguration(Q.getLanguageId()).foldingRules;if(W&&W.markers&&W.markers.start){const V=new RegExp(W.markers.start);(0,t.setCollapseStateForMatchingLines)(Y,V,!1)}}}}class T extends I{constructor(){super({id:"editor.foldAllExcept",label:d.localize(9,null),alias:"Fold All Regions Except Selected",precondition:L,kbOpts:{kbExpr:u.EditorContextKeys.editorTextFocus,primary:(0,k.KeyChord)(2089,2131),weight:100}})}invoke(ae,Y,U){const le=this.getSelectedLines(U);(0,t.setCollapseStateForRest)(Y,!0,le)}}class ee extends I{constructor(){super({id:"editor.unfoldAllExcept",label:d.localize(10,null),alias:"Unfold All Regions Except Selected",precondition:L,kbOpts:{kbExpr:u.EditorContextKeys.editorTextFocus,primary:(0,k.KeyChord)(2089,2129),weight:100}})}invoke(ae,Y,U){const le=this.getSelectedLines(U);(0,t.setCollapseStateForRest)(Y,!1,le)}}class J extends I{constructor(){super({id:"editor.foldAll",label:d.localize(11,null),alias:"Fold All",precondition:L,kbOpts:{kbExpr:u.EditorContextKeys.editorTextFocus,primary:(0,k.KeyChord)(2089,2069),weight:100}})}invoke(ae,Y,U){(0,t.setCollapseStateLevelsDown)(Y,!0)}}class $ extends I{constructor(){super({id:"editor.unfoldAll",label:d.localize(12,null),alias:"Unfold All",precondition:L,kbOpts:{kbExpr:u.EditorContextKeys.editorTextFocus,primary:(0,k.KeyChord)(2089,2088),weight:100}})}invoke(ae,Y,U){(0,t.setCollapseStateLevelsDown)(Y,!1)}}class j extends I{getFoldingLevel(){return parseInt(this.id.substr(j.ID_PREFIX.length))}invoke(ae,Y,U){(0,t.setCollapseStateAtLevel)(Y,this.getFoldingLevel(),!0,this.getSelectedLines(U))}}j.ID_PREFIX="editor.foldLevel",j.ID=H=>j.ID_PREFIX+H;class G extends I{constructor(){super({id:"editor.gotoParentFold",label:d.localize(13,null),alias:"Go to Parent Fold",precondition:L,kbOpts:{kbExpr:u.EditorContextKeys.editorTextFocus,weight:100}})}invoke(ae,Y,U){const le=this.getSelectedLines(U);if(le.length>0){const z=(0,t.getParentFoldLine)(le[0],Y);z!==null&&U.setSelection({startLineNumber:z,startColumn:1,endLineNumber:z,endColumn:1})}}}class te extends I{constructor(){super({id:"editor.gotoPreviousFold",label:d.localize(14,null),alias:"Go to Previous Folding Range",precondition:L,kbOpts:{kbExpr:u.EditorContextKeys.editorTextFocus,weight:100}})}invoke(ae,Y,U){const le=this.getSelectedLines(U);if(le.length>0){const z=(0,t.getPreviousFoldLine)(le[0],Y);z!==null&&U.setSelection({startLineNumber:z,startColumn:1,endLineNumber:z,endColumn:1})}}}class Z extends I{constructor(){super({id:"editor.gotoNextFold",label:d.localize(15,null),alias:"Go to Next Folding Range",precondition:L,kbOpts:{kbExpr:u.EditorContextKeys.editorTextFocus,weight:100}})}invoke(ae,Y,U){const le=this.getSelectedLines(U);if(le.length>0){const z=(0,t.getNextFoldLine)(le[0],Y);z!==null&&U.setSelection({startLineNumber:z,startColumn:1,endLineNumber:z,endColumn:1})}}}class X extends I{constructor(){super({id:"editor.createFoldingRangeFromSelection",label:d.localize(16,null),alias:"Create Folding Range from Selection",precondition:L,kbOpts:{kbExpr:u.EditorContextKeys.editorTextFocus,primary:(0,k.KeyChord)(2089,2130),weight:100}})}invoke(ae,Y,U){var le;const z=[],Q=U.getSelections();if(Q){for(const W of Q){let V=W.endLineNumber;W.endColumn===1&&--V,V>W.startLineNumber&&(z.push({startLineNumber:W.startLineNumber,endLineNumber:V,type:void 0,isCollapsed:!0,source:1}),U.setSelection({startLineNumber:W.startLineNumber,startColumn:1,endLineNumber:W.startLineNumber,endColumn:1}))}if(z.length>0){z.sort((V,ne)=>V.startLineNumber-ne.startLineNumber);const W=g.FoldingRegions.sanitizeAndMerge(Y.regions,z,(le=U.getModel())===null||le===void 0?void 0:le.getLineCount());Y.updatePost(g.FoldingRegions.fromFoldRanges(W))}}}}class ie extends I{constructor(){super({id:"editor.removeManualFoldingRanges",label:d.localize(17,null),alias:"Remove Manual Folding Ranges",precondition:L,kbOpts:{kbExpr:u.EditorContextKeys.editorTextFocus,primary:(0,k.KeyChord)(2089,2132),weight:100}})}invoke(ae,Y,U){const le=U.getSelections();if(le){const z=[];for(const Q of le){const{startLineNumber:W,endLineNumber:V}=Q;z.push(V>=W?{startLineNumber:W,endLineNumber:V}:{endLineNumber:V,startLineNumber:W})}Y.removeManualRanges(z),ae.triggerFoldingModelChanged()}}}(0,h.registerEditorContribution)(N.ID,N),(0,h.registerEditorAction)(F),(0,h.registerEditorAction)(O),(0,h.registerEditorAction)(x),(0,h.registerEditorAction)(P),(0,h.registerEditorAction)(J),(0,h.registerEditorAction)($),(0,h.registerEditorAction)(A),(0,h.registerEditorAction)(B),(0,h.registerEditorAction)(K),(0,h.registerEditorAction)(T),(0,h.registerEditorAction)(ee),(0,h.registerEditorAction)(M),(0,h.registerEditorAction)(G),(0,h.registerEditorAction)(te),(0,h.registerEditorAction)(Z),(0,h.registerEditorAction)(X),(0,h.registerEditorAction)(ie);for(let H=1;H<=7;H++)(0,h.registerInstantiatedEditorAction)(new j({id:j.ID(H),label:d.localize(18,null,H),alias:`Fold Level ${H}`,precondition:L,kbOpts:{kbExpr:u.EditorContextKeys.editorTextFocus,primary:(0,k.KeyChord)(2089,2048|21+H),weight:100}}));e.foldBackgroundBackground=(0,a.registerColor)("editor.foldBackground",{light:(0,a.transparent)(a.editorSelectionBackground,.3),dark:(0,a.transparent)(a.editorSelectionBackground,.3),hcDark:null,hcLight:null},d.localize(19,null),!0),e.editorFoldForeground=(0,a.registerColor)("editorGutter.foldingControlForeground",{dark:a.iconForeground,light:a.iconForeground,hcDark:a.iconForeground,hcLight:a.iconForeground},d.localize(20,null)),(0,r.registerThemingParticipant)((H,ae)=>{const Y=H.getColor(e.foldBackgroundBackground);Y&&ae.addRule(`.monaco-editor .folded-background { background-color: ${Y}; }`);const U=H.getColor(e.editorFoldForeground);U&&ae.addRule(` .monaco-editor .cldr${r.ThemeIcon.asCSSSelector(c.foldingExpandedIcon)}, .monaco-editor .cldr${r.ThemeIcon.asCSSSelector(c.foldingCollapsedIcon)}, .monaco-editor .cldr${r.ThemeIcon.asCSSSelector(c.foldingManualExpandedIcon)}, .monaco-editor .cldr${r.ThemeIcon.asCSSSelector(c.foldingManualCollapsedIcon)} { color: ${U} !important; } `)})}),define(oe[751],se([1,0,7,260,18,2,11,3,35,28,275,88,16,9,44,102,10,24]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContentHoverWidget=e.ContentHoverController=void 0;const a=y.$;let r=class ki extends D.Disposable{constructor(m,S,E){super(),this._editor=m,this._instantiationService=S,this._keybindingService=E,this._widget=this._register(this._instantiationService.createInstance(g,this._editor)),this._isChangingDecorations=!1,this._messages=[],this._messagesAreComplete=!1,this._participants=[];for(const L of n.HoverParticipantRegistry.getAll())this._participants.push(this._instantiationService.createInstance(L,this._editor));this._participants.sort((L,N)=>L.hoverOrdinal-N.hoverOrdinal),this._computer=new _(this._editor,this._participants),this._hoverOperation=this._register(new u.HoverOperation(this._editor,this._computer)),this._register(this._hoverOperation.onResult(L=>{this._withResult(L.value,L.isComplete,L.hasLoadingMessage)})),this._register(this._editor.onDidChangeModelDecorations(()=>{this._isChangingDecorations||this._onModelDecorationsChanged()})),this._register(y.addStandardDisposableListener(this._widget.getDomNode(),"keydown",L=>{L.equals(9)&&this.hide()})),this._register(h.TokenizationRegistry.onDidChange(()=>{this._widget.position&&this._computer.anchor&&this._messages.length>0&&(this._widget.clear(),this._renderMessages(this._computer.anchor,this._messages))}))}_onModelDecorationsChanged(){this._widget.position&&(this._hoverOperation.cancel(),this._widget.isColorPickerVisible||this._hoverOperation.start(0))}maybeShowAt(m){const S=[];for(const L of this._participants)if(L.suggestHoverAnchor){const N=L.suggestHoverAnchor(m);N&&S.push(N)}const E=m.target;if(E.type===6&&S.push(new n.HoverRangeAnchor(0,E.range)),E.type===7){const L=this._editor.getOption(46).typicalHalfwidthCharacterWidth/2;!E.detail.isAfterLines&&typeof E.detail.horizontalDistanceToText=="number"&&E.detail.horizontalDistanceToText<L&&S.push(new n.HoverRangeAnchor(0,E.range))}return S.length===0?!1:(S.sort((L,N)=>N.priority-L.priority),this._startShowingAt(S[0],0,!1),!0)}startShowingAtRange(m,S,E){this._startShowingAt(new n.HoverRangeAnchor(0,m),S,E)}_startShowingAt(m,S,E){if(!(this._computer.anchor&&this._computer.anchor.equals(m))){if(this._hoverOperation.cancel(),this._widget.position)if(!this._computer.anchor||!m.canAdoptVisibleHover(this._computer.anchor,this._widget.position))this.hide();else{const L=this._messages.filter(N=>N.isValidForHoverAnchor(m));if(L.length===0)this.hide();else{if(L.length===this._messages.length&&this._messagesAreComplete)return;this._renderMessages(m,L)}}this._computer.anchor=m,this._computer.shouldFocus=E,this._hoverOperation.start(S)}}hide(){this._computer.anchor=null,this._hoverOperation.cancel(),this._widget.hide()}isColorPickerVisible(){return this._widget.isColorPickerVisible}containsNode(m){return this._widget.getDomNode().contains(m)}_addLoadingMessage(m){if(this._computer.anchor){for(const S of this._participants)if(S.createLoadingMessage){const E=S.createLoadingMessage(this._computer.anchor);if(E)return m.slice(0).concat([E])}}return m}_withResult(m,S,E){this._messages=E?this._addLoadingMessage(m):m,this._messagesAreComplete=S,this._computer.anchor&&this._messages.length>0?this._renderMessages(this._computer.anchor,this._messages):S&&this.hide()}_renderMessages(m,S){const{showAtPosition:E,showAtRange:L,highlightRange:N}=ki.computeHoverRanges(m.range,S),I=new D.DisposableStore,R=I.add(new f(this._keybindingService)),F=document.createDocumentFragment();let O=null;const x={fragment:F,statusBar:R,setColorPicker:M=>O=M,onContentsChanged:()=>this._widget.onContentsChanged(),hide:()=>this.hide()};for(const M of this._participants){const P=S.filter(A=>A.owner===M);P.length>0&&I.add(M.renderHoverParts(x,P))}if(R.hasContent&&F.appendChild(R.hoverElement),F.hasChildNodes()){if(N){const M=this._editor.createDecorationsCollection();try{this._isChangingDecorations=!0,M.set([{range:N,options:ki._DECORATION_OPTIONS}])}finally{this._isChangingDecorations=!1}I.add((0,D.toDisposable)(()=>{try{this._isChangingDecorations=!0,M.clear()}finally{this._isChangingDecorations=!1}}))}this._widget.showAt(F,new c(O,E,L,this._editor.getOption(55).above,this._computer.shouldFocus,I))}else I.dispose()}static computeHoverRanges(m,S){const E=m.startLineNumber;let L=m.startColumn,N=m.endColumn,I=S[0].range,R=null;for(const F of S)I=b.Range.plusRange(I,F.range),F.range.startLineNumber===E&&F.range.endLineNumber===E&&(L=Math.min(L,F.range.startColumn),N=Math.max(N,F.range.endColumn)),F.forceShowAtRange&&(R=F.range);return{showAtPosition:R?R.getStartPosition():new w.Position(m.startLineNumber,L),showAtRange:R||new b.Range(E,L,E,N),highlightRange:I}}};r._DECORATION_OPTIONS=C.ModelDecorationOptions.register({description:"content-hover-highlight",className:"hoverHighlight"}),r=Ie([pe(1,t.IInstantiationService),pe(2,o.IKeybindingService)],r),e.ContentHoverController=r;class c{constructor(m,S,E,L,N,I){this.colorPicker=m,this.showAtPosition=S,this.showAtRange=E,this.preferAbove=L,this.stoleFocus=N,this.disposables=I}}let g=class on extends D.Disposable{constructor(m,S){super(),this._editor=m,this._contextKeyService=S,this.allowEditorOverflow=!0,this._hoverVisibleKey=l.EditorContextKeys.hoverVisible.bindTo(this._contextKeyService),this._hover=this._register(new v.HoverWidget),this._visibleData=null,this._register(this._editor.onDidLayoutChange(()=>this._layout())),this._register(this._editor.onDidChangeConfiguration(E=>{E.hasChanged(46)&&this._updateFont()})),this._setVisibleData(null),this._layout(),this._editor.addContentWidget(this)}get position(){var m,S;return(S=(m=this._visibleData)===null||m===void 0?void 0:m.showAtPosition)!==null&&S!==void 0?S:null}get isColorPickerVisible(){var m;return!!(!((m=this._visibleData)===null||m===void 0)&&m.colorPicker)}dispose(){this._editor.removeContentWidget(this),this._visibleData&&this._visibleData.disposables.dispose(),super.dispose()}getId(){return on.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){if(!this._visibleData)return null;let m=this._visibleData.preferAbove;return!m&&this._contextKeyService.getContextKeyValue(s.Context.Visible.key)&&(m=!0),{position:this._visibleData.showAtPosition,range:this._visibleData.showAtRange,preference:m?[1,2]:[2,1]}}_setVisibleData(m){this._visibleData&&this._visibleData.disposables.dispose(),this._visibleData=m,this._hoverVisibleKey.set(!!this._visibleData),this._hover.containerDomNode.classList.toggle("hidden",!this._visibleData)}_layout(){const m=Math.max(this._editor.getLayoutInfo().height/4,250),{fontSize:S,lineHeight:E}=this._editor.getOption(46);this._hover.contentsDomNode.style.fontSize=`${S}px`,this._hover.contentsDomNode.style.lineHeight=`${E/S}`,this._hover.contentsDomNode.style.maxHeight=`${m}px`,this._hover.contentsDomNode.style.maxWidth=`${Math.max(this._editor.getLayoutInfo().width*.66,500)}px`}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(m=>this._editor.applyFontInfo(m))}showAt(m,S){this._setVisibleData(S),this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(m),this._hover.contentsDomNode.style.paddingBottom="",this._updateFont(),this.onContentsChanged(),this._editor.render(),this.onContentsChanged(),S.stoleFocus&&this._hover.containerDomNode.focus(),S.colorPicker&&S.colorPicker.layout()}hide(){if(this._visibleData){const m=this._visibleData.stoleFocus;this._setVisibleData(null),this._editor.layoutContentWidget(this),m&&this._editor.focus()}}onContentsChanged(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged();const m=this._hover.scrollbar.getScrollDimensions();if(m.scrollWidth>m.width){const S=`${this._hover.scrollbar.options.horizontalScrollbarSize}px`;this._hover.contentsDomNode.style.paddingBottom!==S&&(this._hover.contentsDomNode.style.paddingBottom=S,this._editor.layoutContentWidget(this),this._hover.onContentsChanged())}}clear(){this._hover.contentsDomNode.textContent=""}};g.ID="editor.contrib.contentHoverWidget",g=Ie([pe(1,i.IContextKeyService)],g),e.ContentHoverWidget=g;let f=class extends D.Disposable{constructor(p){super(),this._keybindingService=p,this._hasContent=!1,this.hoverElement=a("div.hover-row.status-bar"),this.actionsElement=y.append(this.hoverElement,a("div.actions"))}get hasContent(){return this._hasContent}addAction(p){const m=this._keybindingService.lookupKeybinding(p.commandId),S=m?m.getLabel():null;return this._hasContent=!0,this._register(v.HoverAction.render(this.actionsElement,p,S))}append(p){const m=y.append(this.actionsElement,p);return this._hasContent=!0,m}};f=Ie([pe(0,o.IKeybindingService)],f);class _{constructor(m,S){this._editor=m,this._participants=S,this._anchor=null,this._shouldFocus=!1}get anchor(){return this._anchor}set anchor(m){this._anchor=m}get shouldFocus(){return this._shouldFocus}set shouldFocus(m){this._shouldFocus=m}static _getLineDecorations(m,S){if(S.type!==1)return[];const E=m.getModel(),L=S.range.startLineNumber;if(L>E.getLineCount())return[];const N=E.getLineMaxColumn(L);return m.getLineDecorations(L).filter(I=>{if(I.options.isWholeLine)return!0;const R=I.range.startLineNumber===L?I.range.startColumn:1,F=I.range.endLineNumber===L?I.range.endColumn:N;if(I.options.showIfCollapsed){if(R>S.range.startColumn+1||S.range.endColumn-1>F)return!1}else if(R>S.range.startColumn||S.range.endColumn>F)return!1;return!0})}computeAsync(m){const S=this._anchor;if(!this._editor.hasModel()||!S)return d.AsyncIterableObject.EMPTY;const E=_._getLineDecorations(this._editor,S);return d.AsyncIterableObject.merge(this._participants.map(L=>L.computeAsync?L.computeAsync(S,E,m):d.AsyncIterableObject.EMPTY))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];const m=_._getLineDecorations(this._editor,this._anchor);let S=[];for(const E of this._participants)S=S.concat(E.computeSync(this._anchor,m));return(0,k.coalesce)(S)}}}),define(oe[752],se([1,0,10,14,95,12,3,23,24,35,92,54,574,15,455]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let s=class Ii{constructor(r,c){this.editor=r,this.editorWorkerService=c,this.decorations=this.editor.createDecorationsCollection()}static get(r){return r.getContribution(Ii.ID)}dispose(){}run(r,c){this.currentRequest&&this.currentRequest.cancel();const g=this.editor.getSelection(),f=this.editor.getModel();if(!f||!g)return;let _=g;if(_.startLineNumber!==_.endLineNumber)return;const p=new k.EditorState(this.editor,5),m=f.uri;return this.editorWorkerService.canNavigateValueSet(m)?(this.currentRequest=(0,y.createCancelablePromise)(S=>this.editorWorkerService.navigateValueSet(m,_,c)),this.currentRequest.then(S=>{if(!S||!S.range||!S.value||!p.validate(this.editor))return;const E=w.Range.lift(S.range);let L=S.range;const N=S.value.length-(_.endColumn-_.startColumn);L={startLineNumber:L.startLineNumber,startColumn:L.startColumn,endLineNumber:L.endLineNumber,endColumn:L.startColumn+S.value.length},N>1&&(_=new b.Selection(_.startLineNumber,_.startColumn,_.endLineNumber,_.endColumn+N-1));const I=new o.InPlaceReplaceCommand(E,_,S.value);this.editor.pushUndoStop(),this.editor.executeCommand(r,I),this.editor.pushUndoStop(),this.decorations.set([{range:L,options:Ii.DECORATION}]),this.decorationRemover&&this.decorationRemover.cancel(),this.decorationRemover=(0,y.timeout)(350),this.decorationRemover.then(()=>this.decorations.clear()).catch(v.onUnexpectedError)}).catch(v.onUnexpectedError)):Promise.resolve(void 0)}};s.ID="editor.contrib.inPlaceReplaceController",s.DECORATION=h.ModelDecorationOptions.register({description:"in-place-replace",className:"valueSetReplacement"}),s=Ie([pe(1,u.IEditorWorkerService)],s);class d extends D.EditorAction{constructor(){super({id:"editor.action.inPlaceReplace.up",label:i.localize(0,null),alias:"Replace with Previous Value",precondition:C.EditorContextKeys.writable,kbOpts:{kbExpr:C.EditorContextKeys.editorTextFocus,primary:3154,weight:100}})}run(r,c){const g=s.get(c);return g?g.run(this.id,!0):Promise.resolve(void 0)}}class l extends D.EditorAction{constructor(){super({id:"editor.action.inPlaceReplace.down",label:i.localize(1,null),alias:"Replace with Next Value",precondition:C.EditorContextKeys.writable,kbOpts:{kbExpr:C.EditorContextKeys.editorTextFocus,primary:3156,weight:100}})}run(r,c){const g=s.get(c);return g?g.run(this.id,!1):Promise.resolve(void 0)}}(0,D.registerEditorContribution)(s.ID,s),(0,D.registerEditorAction)(d),(0,D.registerEditorAction)(l),(0,t.registerThemingParticipant)((a,r)=>{const c=a.getColor(n.editorBracketMatchBorder);c&&r.addRule(`.monaco-editor.vs .valueSetReplacement { outline: solid 2px ${c}; }`)})}),define(oe[753],se([1,0,18,10,21,31,14,6,2,8,22,12,29,11,3,24,35,32,581,16,25,15,20,70,57]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r,c,g,f,_,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.editorLinkedEditingBackground=e.LinkedEditingAction=e.LinkedEditingContribution=e.CONTEXT_ONTYPE_RENAME_INPUT_VISIBLE=void 0,e.CONTEXT_ONTYPE_RENAME_INPUT_VISIBLE=new r.RawContextKey("LinkedEditingInputVisible",!1);const m="linked-editing-decoration";let S=class Ni extends C.Disposable{constructor(R,F,O,x,M){super(),this.languageConfigurationService=x,this._syncRangesToken=0,this._localToDispose=this._register(new C.DisposableStore),this._editor=R,this._providers=O.linkedEditingRangeProvider,this._enabled=!1,this._visibleContextKey=e.CONTEXT_ONTYPE_RENAME_INPUT_VISIBLE.bindTo(F),this._debounceInformation=M.for(this._providers,"Linked Editing",{min:200}),this._currentDecorations=this._editor.createDecorationsCollection(),this._languageWordPattern=null,this._currentWordPattern=null,this._ignoreChangeEvent=!1,this._localToDispose=this._register(new C.DisposableStore),this._rangeUpdateTriggerPromise=null,this._rangeSyncTriggerPromise=null,this._currentRequest=null,this._currentRequestPosition=null,this._currentRequestModelVersion=null,this._register(this._editor.onDidChangeModel(()=>this.reinitialize(!0))),this._register(this._editor.onDidChangeConfiguration(P=>{(P.hasChanged(64)||P.hasChanged(84))&&this.reinitialize(!1)})),this._register(this._providers.onDidChange(()=>this.reinitialize(!1))),this._register(this._editor.onDidChangeModelLanguage(()=>this.reinitialize(!0))),this.reinitialize(!0)}static get(R){return R.getContribution(Ni.ID)}reinitialize(R){const F=this._editor.getModel(),O=F!==null&&(this._editor.getOption(64)||this._editor.getOption(84))&&this._providers.has(F);if(O===this._enabled&&!R||(this._enabled=O,this.clearRanges(),this._localToDispose.clear(),!O||F===null))return;this._localToDispose.add(b.Event.runAndSubscribe(F.onDidChangeLanguageConfiguration,()=>{this._languageWordPattern=this.languageConfigurationService.getLanguageConfiguration(F.getLanguageId()).getWordDefinition()}));const x=new v.Delayer(this._debounceInformation.get(F)),M=()=>{var B;this._rangeUpdateTriggerPromise=x.trigger(()=>this.updateRanges(),(B=this._debounceDuration)!==null&&B!==void 0?B:this._debounceInformation.get(F))},P=new v.Delayer(0),A=B=>{this._rangeSyncTriggerPromise=P.trigger(()=>this._syncRanges(B))};this._localToDispose.add(this._editor.onDidChangeCursorPosition(()=>{M()})),this._localToDispose.add(this._editor.onDidChangeModelContent(B=>{if(!this._ignoreChangeEvent&&this._currentDecorations.length>0){const K=this._currentDecorations.getRange(0);if(K&&B.changes.every(T=>K.intersectRanges(T.range))){A(this._syncRangesToken);return}}M()})),this._localToDispose.add({dispose:()=>{x.dispose(),P.dispose()}}),this.updateRanges()}_syncRanges(R){if(!this._editor.hasModel()||R!==this._syncRangesToken||this._currentDecorations.length===0)return;const F=this._editor.getModel(),O=this._currentDecorations.getRange(0);if(!O||O.startLineNumber!==O.endLineNumber)return this.clearRanges();const x=F.getValueInRange(O);if(this._currentWordPattern){const P=x.match(this._currentWordPattern);if((P?P[0].length:0)!==x.length)return this.clearRanges()}const M=[];for(let P=1,A=this._currentDecorations.length;P<A;P++){const B=this._currentDecorations.getRange(P);if(B)if(B.startLineNumber!==B.endLineNumber)M.push({range:B,text:x});else{let K=F.getValueInRange(B),T=x,ee=B.startColumn,J=B.endColumn;const $=h.commonPrefixLength(K,T);ee+=$,K=K.substr($),T=T.substr($);const j=h.commonSuffixLength(K,T);J-=j,K=K.substr(0,K.length-j),T=T.substr(0,T.length-j),(ee!==J||T.length!==0)&&M.push({range:new o.Range(B.startLineNumber,ee,B.endLineNumber,J),text:T})}}if(M.length!==0)try{this._editor.popUndoStop(),this._ignoreChangeEvent=!0;const P=this._editor._getViewModel().getPrevEditOperationType();this._editor.executeEdits("linkedEditing",M),this._editor._getViewModel().setPrevEditOperationType(P)}finally{this._ignoreChangeEvent=!1}}dispose(){this.clearRanges(),super.dispose()}clearRanges(){this._visibleContextKey.set(!1),this._currentDecorations.clear(),this._currentRequest&&(this._currentRequest.cancel(),this._currentRequest=null,this._currentRequestPosition=null)}updateRanges(R=!1){return be(this,void 0,void 0,function*(){if(!this._editor.hasModel()){this.clearRanges();return}const F=this._editor.getPosition();if(!this._enabled&&!R||this._editor.getSelections().length>1){this.clearRanges();return}const O=this._editor.getModel(),x=O.getVersionId();if(this._currentRequestPosition&&this._currentRequestModelVersion===x){if(F.equals(this._currentRequestPosition))return;if(this._currentDecorations.length>0){const P=this._currentDecorations.getRange(0);if(P&&P.containsPosition(F))return}}this._currentRequestPosition=F,this._currentRequestModelVersion=x;const M=(0,v.createCancelablePromise)(P=>be(this,void 0,void 0,function*(){try{const A=new p.StopWatch(!1),B=yield N(this._providers,O,F,P);if(this._debounceInformation.update(O,A.elapsed()),M!==this._currentRequest||(this._currentRequest=null,x!==O.getVersionId()))return;let K=[];B?.ranges&&(K=B.ranges),this._currentWordPattern=B?.wordPattern||this._languageWordPattern;let T=!1;for(let J=0,$=K.length;J<$;J++)if(o.Range.containsPosition(K[J],F)){if(T=!0,J!==0){const j=K[J];K.splice(J,1),K.unshift(j)}break}if(!T){this.clearRanges();return}const ee=K.map(J=>({range:J,options:Ni.DECORATION}));this._visibleContextKey.set(!0),this._currentDecorations.set(ee),this._syncRangesToken++}catch(A){(0,w.isCancellationError)(A)||(0,w.onUnexpectedError)(A),(this._currentRequest===M||!this._currentRequest)&&this.clearRanges()}}));return this._currentRequest=M,M})}};S.ID="editor.contrib.linkedEditing",S.DECORATION=d.ModelDecorationOptions.register({description:"linked-editing",stickiness:0,className:m}),S=Ie([pe(1,r.IContextKeyService),pe(2,f.ILanguageFeaturesService),pe(3,l.ILanguageConfigurationService),pe(4,_.ILanguageFeatureDebounceService)],S),e.LinkedEditingContribution=S;class E extends n.EditorAction{constructor(){super({id:"editor.action.linkedEditing",label:a.localize(0,null),alias:"Start Linked Editing",precondition:r.ContextKeyExpr.and(s.EditorContextKeys.writable,s.EditorContextKeys.hasRenameProvider),kbOpts:{kbExpr:s.EditorContextKeys.editorTextFocus,primary:3132,weight:100}})}runCommand(R,F){const O=R.get(i.ICodeEditorService),[x,M]=Array.isArray(F)&&F||[void 0,void 0];return u.URI.isUri(x)&&t.Position.isIPosition(M)?O.openCodeEditor({resource:x},O.getActiveCodeEditor()).then(P=>{!P||(P.setPosition(M),P.invokeWithinContext(A=>(this.reportTelemetry(A,P),this.run(A,P))))},w.onUnexpectedError):super.runCommand(R,F)}run(R,F){const O=S.get(F);return O?Promise.resolve(O.updateRanges(!0)):Promise.resolve()}}e.LinkedEditingAction=E;const L=n.EditorCommand.bindToContribution(S.get);(0,n.registerEditorCommand)(new L({id:"cancelLinkedEditingInput",precondition:e.CONTEXT_ONTYPE_RENAME_INPUT_VISIBLE,handler:I=>I.clearRanges(),kbOpts:{kbExpr:s.EditorContextKeys.editorTextFocus,weight:100+99,primary:9,secondary:[1033]}}));function N(I,R,F,O){const x=I.ordered(R);return(0,v.first)(x.map(M=>()=>be(this,void 0,void 0,function*(){try{return yield M.provideLinkedEditingRanges(R,F,O)}catch(P){(0,w.onUnexpectedExternalError)(P);return}})),M=>!!M&&y.isNonEmptyArray(M?.ranges))}e.editorLinkedEditingBackground=(0,c.registerColor)("editor.linkedEditingBackground",{dark:D.Color.fromHex("#f00").transparent(.3),light:D.Color.fromHex("#f00").transparent(.3),hcDark:D.Color.fromHex("#f00").transparent(.3),hcLight:D.Color.white},a.localize(1,null)),(0,g.registerThemingParticipant)((I,R)=>{const F=I.getColor(e.editorLinkedEditingBackground);F&&R.addRule(`.monaco-editor .${m} { background: ${F}; border-left-color: ${F}; }`)}),(0,n.registerModelAndPositionCommand)("_executeLinkedEditingProvider",(I,R,F)=>{const{linkedEditingRangeProvider:O}=I.get(f.ILanguageFeaturesService);return N(O,R,F,k.CancellationToken.None)}),(0,n.registerEditorContribution)(S.ID,S),(0,n.registerEditorAction)(E)}),define(oe[754],se([1,0,10,21,14,64,2,52,17,43,57,22,12,35,70,20,205,629,582,38,45,25,15,384]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r,c,g,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinkDetector=void 0;let _=class sn extends w.Disposable{constructor(N,I,R,F,O){super(),this.editor=N,this.openerService=I,this.notificationService=R,this.languageFeaturesService=F,this.providers=this.languageFeaturesService.linkProvider,this.debounceInformation=O.for(this.providers,"Links",{min:1e3,max:4e3}),this.computeLinks=this._register(new y.RunOnceScheduler(()=>this.computeLinksNow(),1e3)),this.computePromise=null,this.activeLinksList=null,this.currentOccurrences={},this.activeLinkDecorationId=null;const x=this._register(new d.ClickLinkGesture(N));this._register(x.onMouseMoveOrRelevantKeyDown(([M,P])=>{this._onEditorMouseMove(M,P)})),this._register(x.onExecute(M=>{this.onEditorMouseUp(M)})),this._register(x.onCancel(M=>{this.cleanUpActiveLinkDecoration()})),this._register(N.onDidChangeConfiguration(M=>{!M.hasChanged(65)||(this.updateDecorations([]),this.stop(),this.computeLinks.schedule(0))})),this._register(N.onDidChangeModelContent(M=>{!this.editor.hasModel()||this.computeLinks.schedule(this.debounceInformation.get(this.editor.getModel()))})),this._register(N.onDidChangeModel(M=>{this.currentOccurrences={},this.activeLinkDecorationId=null,this.stop(),this.computeLinks.schedule(0)})),this._register(N.onDidChangeModelLanguage(M=>{this.stop(),this.computeLinks.schedule(0)})),this._register(this.providers.onDidChange(M=>{this.stop(),this.computeLinks.schedule(0)})),this.computeLinks.schedule(0)}static get(N){return N.getContribution(sn.ID)}computeLinksNow(){return be(this,void 0,void 0,function*(){if(!this.editor.hasModel()||!this.editor.getOption(65))return;const N=this.editor.getModel();if(this.providers.has(N)){this.activeLinksList&&(this.activeLinksList.dispose(),this.activeLinksList=null),this.computePromise=(0,y.createCancelablePromise)(I=>(0,l.getLinks)(this.providers,N,I));try{const I=new u.StopWatch(!1);if(this.activeLinksList=yield this.computePromise,this.debounceInformation.update(N,I.elapsed()),N.isDisposed())return;this.updateDecorations(this.activeLinksList.links)}catch(I){(0,k.onUnexpectedError)(I)}finally{this.computePromise=null}}})}updateDecorations(N){const I=this.editor.getOption(72)==="altKey",R=[],F=Object.keys(this.currentOccurrences);for(const x of F){const M=this.currentOccurrences[x];R.push(M.decorationId)}const O=[];if(N)for(const x of N)O.push(m.decoration(x,I));this.editor.changeDecorations(x=>{const M=x.deltaDecorations(R,O);this.currentOccurrences={},this.activeLinkDecorationId=null;for(let P=0,A=M.length;P<A;P++){const B=new m(N[P],M[P]);this.currentOccurrences[B.decorationId]=B}})}_onEditorMouseMove(N,I){const R=this.editor.getOption(72)==="altKey";if(this.isEnabled(N,I)){this.cleanUpActiveLinkDecoration();const F=this.getLinkOccurrence(N.target.position);F&&this.editor.changeDecorations(O=>{F.activate(O,R),this.activeLinkDecorationId=F.decorationId})}else this.cleanUpActiveLinkDecoration()}cleanUpActiveLinkDecoration(){const N=this.editor.getOption(72)==="altKey";if(this.activeLinkDecorationId){const I=this.currentOccurrences[this.activeLinkDecorationId];I&&this.editor.changeDecorations(R=>{I.deactivate(R,N)}),this.activeLinkDecorationId=null}}onEditorMouseUp(N){if(!this.isEnabled(N))return;const I=this.getLinkOccurrence(N.target.position);!I||this.openLinkOccurrence(I,N.hasSideBySideModifier,!0)}openLinkOccurrence(N,I,R=!1){if(!this.openerService)return;const{link:F}=N;F.resolve(v.CancellationToken.None).then(O=>{if(typeof O=="string"&&this.editor.hasModel()){const x=this.editor.getModel().uri;if(x.scheme===b.Schemas.file&&O.startsWith(`${b.Schemas.file}:`)){const M=n.URI.parse(O);if(M.scheme===b.Schemas.file){const P=h.originalFSPath(M);let A=null;P.startsWith("/./")?A=`.${P.substr(1)}`:P.startsWith("//./")&&(A=`.${P.substr(2)}`),A&&(O=h.joinPath(x,A))}}}return this.openerService.open(O,{openToSide:I,fromUserGesture:R,allowContributedOpeners:!0,allowCommands:!0,fromWorkspace:!0})},O=>{const x=O instanceof Error?O.message:O;x==="invalid"?this.notificationService.warn(a.localize(0,null,F.url.toString())):x==="missing"?this.notificationService.warn(a.localize(1,null)):(0,k.onUnexpectedError)(O)})}getLinkOccurrence(N){if(!this.editor.hasModel()||!N)return null;const I=this.editor.getModel().getDecorationsInRange({startLineNumber:N.lineNumber,startColumn:N.column,endLineNumber:N.lineNumber,endColumn:N.column},0,!0);for(const R of I){const F=this.currentOccurrences[R.id];if(F)return F}return null}isEnabled(N,I){return!!(N.target.type===6&&(N.hasTriggerModifier||I&&I.keyCodeIsTriggerKey))}stop(){var N;this.computeLinks.cancel(),this.activeLinksList&&((N=this.activeLinksList)===null||N===void 0||N.dispose(),this.activeLinksList=null),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)}dispose(){super.dispose(),this.stop()}};_.ID="editor.linkDetector",_=Ie([pe(1,c.IOpenerService),pe(2,r.INotificationService),pe(3,s.ILanguageFeaturesService),pe(4,o.ILanguageFeatureDebounceService)],_),e.LinkDetector=_;const p={general:t.ModelDecorationOptions.register({description:"detected-link",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link"}),active:t.ModelDecorationOptions.register({description:"detected-link-active",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link-active"})};class m{constructor(N,I){this.link=N,this.decorationId=I}static decoration(N,I){return{range:N.range,options:m._getOptions(N,I,!1)}}static _getOptions(N,I,R){const F=Object.assign({},R?p.active:p.general);return F.hoverMessage=S(N,I),F}activate(N,I){N.changeDecorationOptions(this.decorationId,m._getOptions(this.link,I,!0))}deactivate(N,I){N.changeDecorationOptions(this.decorationId,m._getOptions(this.link,I,!1))}}function S(L,N){const I=L.url&&/^command:/i.test(L.url.toString()),R=L.tooltip?L.tooltip:I?a.localize(2,null):a.localize(3,null),F=N?C.isMacintosh?a.localize(4,null):a.localize(5,null):C.isMacintosh?a.localize(6,null):a.localize(7,null);if(L.url){let O="";if(/^command:/i.test(L.url.toString())){const x=L.url.toString().match(/^command:([^?#]+)/);if(x){const M=x[1];O=a.localize(8,null,M)}}return new D.MarkdownString("",!0).appendLink(L.url.toString(!0).replace(/ /g,"%20"),R,O).appendMarkdown(` (${F})`)}else return new D.MarkdownString().appendText(`${R} (${F})`)}class E extends i.EditorAction{constructor(){super({id:"editor.action.openLink",label:a.localize(9,null),alias:"Open Link",precondition:void 0})}run(N,I){const R=_.get(I);if(!R||!I.hasModel())return;const F=I.getSelections();for(const O of F){const x=R.getLinkOccurrence(O.getEndPosition());x&&R.openLinkOccurrence(x,!1)}}}(0,i.registerEditorContribution)(_.ID,_),(0,i.registerEditorAction)(E),(0,f.registerThemingParticipant)((L,N)=>{const I=L.getColor(g.editorActiveLinkForeground);I&&N.addRule(`.monaco-editor .detected-link-active { color: ${I} !important; }`)})}),define(oe[755],se([1,0,49,10,59,2,12,182,3,23,24,46,35,313,584,39,16,25,15,20]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FocusPreviousCursor=e.FocusNextCursor=e.SelectionHighlighter=e.CompatChangeAll=e.SelectHighlightsAction=e.MoveSelectionToPreviousFindMatchAction=e.MoveSelectionToNextFindMatchAction=e.AddSelectionToPreviousFindMatchAction=e.AddSelectionToNextFindMatchAction=e.MultiCursorSelectionControllerAction=e.MultiCursorSelectionController=e.MultiCursorSession=e.MultiCursorSessionResult=e.InsertCursorBelow=e.InsertCursorAbove=void 0;function c(J,$){const j=$.filter(G=>!J.find(te=>te.equals(G)));if(j.length>=1){const G=j.map(Z=>`line ${Z.viewState.position.lineNumber} column ${Z.viewState.position.column}`).join(", "),te=j.length===1?o.localize(0,null,G):o.localize(1,null,G);(0,y.status)(te)}}class g extends w.EditorAction{constructor(){super({id:"editor.action.insertCursorAbove",label:o.localize(2,null),alias:"Add Cursor Above",precondition:void 0,kbOpts:{kbExpr:u.EditorContextKeys.editorTextFocus,primary:2576,linux:{primary:1552,secondary:[3088]},weight:100},menuOpts:{menuId:s.MenuId.MenubarSelectionMenu,group:"3_multi",title:o.localize(3,null),order:2}})}run($,j,G){if(!j.hasModel())return;let te=!0;G&&G.logicalLine===!1&&(te=!1);const Z=j._getViewModel();if(Z.cursorConfig.readOnly)return;Z.model.pushStackElement();const X=Z.getCursorStates();Z.setCursorStates(G.source,3,b.CursorMoveCommands.addCursorUp(Z,X,te)),Z.revealTopMostCursor(G.source),c(X,Z.getCursorStates())}}e.InsertCursorAbove=g;class f extends w.EditorAction{constructor(){super({id:"editor.action.insertCursorBelow",label:o.localize(4,null),alias:"Add Cursor Below",precondition:void 0,kbOpts:{kbExpr:u.EditorContextKeys.editorTextFocus,primary:2578,linux:{primary:1554,secondary:[3090]},weight:100},menuOpts:{menuId:s.MenuId.MenubarSelectionMenu,group:"3_multi",title:o.localize(5,null),order:3}})}run($,j,G){if(!j.hasModel())return;let te=!0;G&&G.logicalLine===!1&&(te=!1);const Z=j._getViewModel();if(Z.cursorConfig.readOnly)return;Z.model.pushStackElement();const X=Z.getCursorStates();Z.setCursorStates(G.source,3,b.CursorMoveCommands.addCursorDown(Z,X,te)),Z.revealBottomMostCursor(G.source),c(X,Z.getCursorStates())}}e.InsertCursorBelow=f;class _ extends w.EditorAction{constructor(){super({id:"editor.action.insertCursorAtEndOfEachLineSelected",label:o.localize(6,null),alias:"Add Cursors to Line Ends",precondition:void 0,kbOpts:{kbExpr:u.EditorContextKeys.editorTextFocus,primary:1575,weight:100},menuOpts:{menuId:s.MenuId.MenubarSelectionMenu,group:"3_multi",title:o.localize(7,null),order:4}})}getCursorsForSelection($,j,G){if(!$.isEmpty()){for(let te=$.startLineNumber;te<$.endLineNumber;te++){const Z=j.getLineMaxColumn(te);G.push(new h.Selection(te,Z,te,Z))}$.endColumn>1&&G.push(new h.Selection($.endLineNumber,$.endColumn,$.endLineNumber,$.endColumn))}}run($,j){if(!j.hasModel())return;const G=j.getModel(),te=j.getSelections(),Z=j._getViewModel(),X=Z.getCursorStates(),ie=[];te.forEach(H=>this.getCursorsForSelection(H,G,ie)),ie.length>0&&j.setSelections(ie),c(X,Z.getCursorStates())}}class p extends w.EditorAction{constructor(){super({id:"editor.action.addCursorsToBottom",label:o.localize(8,null),alias:"Add Cursors To Bottom",precondition:void 0})}run($,j){if(!j.hasModel())return;const G=j.getSelections(),te=j.getModel().getLineCount(),Z=[];for(let H=G[0].startLineNumber;H<=te;H++)Z.push(new h.Selection(H,G[0].startColumn,H,G[0].endColumn));const X=j._getViewModel(),ie=X.getCursorStates();Z.length>0&&j.setSelections(Z),c(ie,X.getCursorStates())}}class m extends w.EditorAction{constructor(){super({id:"editor.action.addCursorsToTop",label:o.localize(9,null),alias:"Add Cursors To Top",precondition:void 0})}run($,j){if(!j.hasModel())return;const G=j.getSelections(),te=[];for(let ie=G[0].startLineNumber;ie>=1;ie--)te.push(new h.Selection(ie,G[0].startColumn,ie,G[0].endColumn));const Z=j._getViewModel(),X=Z.getCursorStates();te.length>0&&j.setSelections(te),c(X,Z.getCursorStates())}}class S{constructor($,j,G){this.selections=$,this.revealRange=j,this.revealScrollType=G}}e.MultiCursorSessionResult=S;class E{constructor($,j,G,te,Z,X,ie){this._editor=$,this.findController=j,this.isDisconnectedFromFindController=G,this.searchText=te,this.wholeWord=Z,this.matchCase=X,this.currentMatch=ie}static create($,j){if(!$.hasModel())return null;const G=j.getState();if(!$.hasTextFocus()&&G.isRevealed&&G.searchString.length>0)return new E($,j,!1,G.searchString,G.wholeWord,G.matchCase,null);let te=!1,Z,X;const ie=$.getSelections();ie.length===1&&ie[0].isEmpty()?(te=!0,Z=!0,X=!0):(Z=G.wholeWord,X=G.matchCase);const H=$.getSelection();let ae,Y=null;if(H.isEmpty()){const U=$.getConfiguredWordAtPosition(H.getStartPosition());if(!U)return null;ae=U.word,Y=new h.Selection(H.startLineNumber,U.startColumn,H.startLineNumber,U.endColumn)}else ae=$.getModel().getValueInRange(H).replace(/\r\n/g,` `);return new E($,j,te,ae,Z,X,Y)}addSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;const $=this._getNextMatch();if(!$)return null;const j=this._editor.getSelections();return new S(j.concat($),$,0)}moveSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;const $=this._getNextMatch();if(!$)return null;const j=this._editor.getSelections();return new S(j.slice(0,j.length-1).concat($),$,0)}_getNextMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){const te=this.currentMatch;return this.currentMatch=null,te}this.findController.highlightFindOptions();const $=this._editor.getSelections(),j=$[$.length-1],G=this._editor.getModel().findNextMatch(this.searchText,j.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(119):null,!1);return G?new h.Selection(G.range.startLineNumber,G.range.startColumn,G.range.endLineNumber,G.range.endColumn):null}addSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;const $=this._getPreviousMatch();if(!$)return null;const j=this._editor.getSelections();return new S(j.concat($),$,0)}moveSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;const $=this._getPreviousMatch();if(!$)return null;const j=this._editor.getSelections();return new S(j.slice(0,j.length-1).concat($),$,0)}_getPreviousMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){const te=this.currentMatch;return this.currentMatch=null,te}this.findController.highlightFindOptions();const $=this._editor.getSelections(),j=$[$.length-1],G=this._editor.getModel().findPreviousMatch(this.searchText,j.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(119):null,!1);return G?new h.Selection(G.range.startLineNumber,G.range.startColumn,G.range.endLineNumber,G.range.endColumn):null}selectAll($){if(!this._editor.hasModel())return[];this.findController.highlightFindOptions();const j=this._editor.getModel();return $?j.findMatches(this.searchText,$,!1,this.matchCase,this.wholeWord?this._editor.getOption(119):null,!1,1073741824):j.findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(119):null,!1,1073741824)}}e.MultiCursorSession=E;class L extends D.Disposable{constructor($){super(),this._sessionDispose=this._register(new D.DisposableStore),this._editor=$,this._ignoreSelectionChange=!1,this._session=null}static get($){return $.getContribution(L.ID)}dispose(){this._endSession(),super.dispose()}_beginSessionIfNeeded($){if(!this._session){const j=E.create(this._editor,$);if(!j)return;this._session=j;const G={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(G.wholeWordOverride=1,G.matchCaseOverride=1,G.isRegexOverride=2),$.getState().change(G,!1),this._sessionDispose.add(this._editor.onDidChangeCursorSelection(te=>{this._ignoreSelectionChange||this._endSession()})),this._sessionDispose.add(this._editor.onDidBlurEditorText(()=>{this._endSession()})),this._sessionDispose.add($.getState().onFindReplaceStateChange(te=>{(te.matchCase||te.wholeWord)&&this._endSession()}))}}_endSession(){if(this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController){const $={wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0};this._session.findController.getState().change($,!1)}this._session=null}_setSelections($){this._ignoreSelectionChange=!0,this._editor.setSelections($),this._ignoreSelectionChange=!1}_expandEmptyToWord($,j){if(!j.isEmpty())return j;const G=this._editor.getConfiguredWordAtPosition(j.getStartPosition());return G?new h.Selection(j.startLineNumber,G.startColumn,j.startLineNumber,G.endColumn):j}_applySessionResult($){!$||(this._setSelections($.selections),$.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport($.revealRange,$.revealScrollType))}getSession($){return this._session}addSelectionToNextFindMatch($){if(this._editor.hasModel()){if(!this._session){const j=this._editor.getSelections();if(j.length>1){const G=$.getState().matchCase;if(!B(this._editor.getModel(),j,G)){const te=this._editor.getModel(),Z=[];for(let X=0,ie=j.length;X<ie;X++)Z[X]=this._expandEmptyToWord(te,j[X]);this._editor.setSelections(Z);return}}}this._beginSessionIfNeeded($),this._session&&this._applySessionResult(this._session.addSelectionToNextFindMatch())}}addSelectionToPreviousFindMatch($){this._beginSessionIfNeeded($),this._session&&this._applySessionResult(this._session.addSelectionToPreviousFindMatch())}moveSelectionToNextFindMatch($){this._beginSessionIfNeeded($),this._session&&this._applySessionResult(this._session.moveSelectionToNextFindMatch())}moveSelectionToPreviousFindMatch($){this._beginSessionIfNeeded($),this._session&&this._applySessionResult(this._session.moveSelectionToPreviousFindMatch())}selectAll($){if(!this._editor.hasModel())return;let j=null;const G=$.getState();if(G.isRevealed&&G.searchString.length>0&&G.isRegex){const te=this._editor.getModel();G.searchScope?j=te.findMatches(G.searchString,G.searchScope,G.isRegex,G.matchCase,G.wholeWord?this._editor.getOption(119):null,!1,1073741824):j=te.findMatches(G.searchString,!0,G.isRegex,G.matchCase,G.wholeWord?this._editor.getOption(119):null,!1,1073741824)}else{if(this._beginSessionIfNeeded($),!this._session)return;j=this._session.selectAll(G.searchScope)}if(j.length>0){const te=this._editor.getSelection();for(let Z=0,X=j.length;Z<X;Z++){const ie=j[Z];if(ie.range.intersectRanges(te)){j[Z]=j[0],j[0]=ie;break}}this._setSelections(j.map(Z=>new h.Selection(Z.range.startLineNumber,Z.range.startColumn,Z.range.endLineNumber,Z.range.endColumn)))}}}e.MultiCursorSelectionController=L,L.ID="editor.contrib.multiCursorController";class N extends w.EditorAction{run($,j){const G=L.get(j);if(!G)return;const te=t.CommonFindController.get(j);if(!te)return;const Z=j._getViewModel();if(Z){const X=Z.getCursorStates();this._run(G,te),c(X,Z.getCursorStates())}}}e.MultiCursorSelectionControllerAction=N;class I extends N{constructor(){super({id:"editor.action.addSelectionToNextFindMatch",label:o.localize(10,null),alias:"Add Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:u.EditorContextKeys.focus,primary:2082,weight:100},menuOpts:{menuId:s.MenuId.MenubarSelectionMenu,group:"3_multi",title:o.localize(11,null),order:5}})}_run($,j){$.addSelectionToNextFindMatch(j)}}e.AddSelectionToNextFindMatchAction=I;class R extends N{constructor(){super({id:"editor.action.addSelectionToPreviousFindMatch",label:o.localize(12,null),alias:"Add Selection To Previous Find Match",precondition:void 0,menuOpts:{menuId:s.MenuId.MenubarSelectionMenu,group:"3_multi",title:o.localize(13,null),order:6}})}_run($,j){$.addSelectionToPreviousFindMatch(j)}}e.AddSelectionToPreviousFindMatchAction=R;class F extends N{constructor(){super({id:"editor.action.moveSelectionToNextFindMatch",label:o.localize(14,null),alias:"Move Last Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:u.EditorContextKeys.focus,primary:(0,k.KeyChord)(2089,2082),weight:100}})}_run($,j){$.moveSelectionToNextFindMatch(j)}}e.MoveSelectionToNextFindMatchAction=F;class O extends N{constructor(){super({id:"editor.action.moveSelectionToPreviousFindMatch",label:o.localize(15,null),alias:"Move Last Selection To Previous Find Match",precondition:void 0})}_run($,j){$.moveSelectionToPreviousFindMatch(j)}}e.MoveSelectionToPreviousFindMatchAction=O;class x extends N{constructor(){super({id:"editor.action.selectHighlights",label:o.localize(16,null),alias:"Select All Occurrences of Find Match",precondition:void 0,kbOpts:{kbExpr:u.EditorContextKeys.focus,primary:3114,weight:100},menuOpts:{menuId:s.MenuId.MenubarSelectionMenu,group:"3_multi",title:o.localize(17,null),order:7}})}_run($,j){$.selectAll(j)}}e.SelectHighlightsAction=x;class M extends N{constructor(){super({id:"editor.action.changeAll",label:o.localize(18,null),alias:"Change All Occurrences",precondition:d.ContextKeyExpr.and(u.EditorContextKeys.writable,u.EditorContextKeys.editorTextFocus),kbOpts:{kbExpr:u.EditorContextKeys.editorTextFocus,primary:2108,weight:100},contextMenuOpts:{group:"1_modification",order:1.2}})}_run($,j){$.selectAll(j)}}e.CompatChangeAll=M;class P{constructor($,j,G,te,Z){this._model=$,this._searchText=j,this._matchCase=G,this._wordSeparators=te,this._modelVersionId=this._model.getVersionId(),this._cachedFindMatches=null,Z&&this._model===Z._model&&this._searchText===Z._searchText&&this._matchCase===Z._matchCase&&this._wordSeparators===Z._wordSeparators&&this._modelVersionId===Z._modelVersionId&&(this._cachedFindMatches=Z._cachedFindMatches)}findMatches(){return this._cachedFindMatches===null&&(this._cachedFindMatches=this._model.findMatches(this._searchText,!0,!1,this._matchCase,this._wordSeparators,!1).map($=>$.range),this._cachedFindMatches.sort(C.Range.compareRangesUsingStarts)),this._cachedFindMatches}}let A=class _i extends D.Disposable{constructor($,j){super(),this._languageFeaturesService=j,this.editor=$,this._isEnabled=$.getOption(99),this._decorations=$.createDecorationsCollection(),this.updateSoon=this._register(new v.RunOnceScheduler(()=>this._update(),300)),this.state=null,this._register($.onDidChangeConfiguration(te=>{this._isEnabled=$.getOption(99)})),this._register($.onDidChangeCursorSelection(te=>{!this._isEnabled||(te.selection.isEmpty()?te.reason===3?(this.state&&this._setState(null),this.updateSoon.schedule()):this._setState(null):this._update())})),this._register($.onDidChangeModel(te=>{this._setState(null)})),this._register($.onDidChangeModelContent(te=>{this._isEnabled&&this.updateSoon.schedule()}));const G=t.CommonFindController.get($);G&&this._register(G.getState().onFindReplaceStateChange(te=>{this._update()}))}_update(){this._setState(_i._createState(this.state,this._isEnabled,this.editor))}static _createState($,j,G){if(!j||!G.hasModel())return null;const te=G.getSelection();if(te.startLineNumber!==te.endLineNumber)return null;const Z=L.get(G);if(!Z)return null;const X=t.CommonFindController.get(G);if(!X)return null;let ie=Z.getSession(X);if(!ie){const Y=G.getSelections();if(Y.length>1){const U=X.getState().matchCase;if(!B(G.getModel(),Y,U))return null}ie=E.create(G,X)}if(!ie||ie.currentMatch||/^[ \t]+$/.test(ie.searchText)||ie.searchText.length>200)return null;const H=X.getState(),ae=H.matchCase;if(H.isRevealed){let Y=H.searchString;ae||(Y=Y.toLowerCase());let U=ie.searchText;if(ae||(U=U.toLowerCase()),Y===U&&ie.matchCase===H.matchCase&&ie.wholeWord===H.wholeWord&&!H.isRegex)return null}return new P(G.getModel(),ie.searchText,ie.matchCase,ie.wholeWord?G.getOption(119):null,$)}_setState($){if(this.state=$,!this.state){this._decorations.clear();return}if(!this.editor.hasModel())return;const j=this.editor.getModel();if(j.isTooLargeForTokenization())return;const G=this.state.findMatches(),te=this.editor.getSelections();te.sort(C.Range.compareRangesUsingStarts);const Z=[];for(let H=0,ae=0,Y=G.length,U=te.length;H<Y;){const le=G[H];if(ae>=U)Z.push(le),H++;else{const z=C.Range.compareRangesUsingStarts(le,te[ae]);z<0?((te[ae].isEmpty()||!C.Range.areIntersecting(le,te[ae]))&&Z.push(le),H++):(z>0||H++,ae++)}}const X=this._languageFeaturesService.documentHighlightProvider.has(j)&&this.editor.getOption(74),ie=Z.map(H=>({range:H,options:X?_i._SELECTION_HIGHLIGHT:_i._SELECTION_HIGHLIGHT_OVERVIEW}));this._decorations.set(ie)}dispose(){this._setState(null),super.dispose()}};A.ID="editor.contrib.selectionHighlighter",A._SELECTION_HIGHLIGHT_OVERVIEW=i.ModelDecorationOptions.register({description:"selection-highlight-overview",stickiness:1,className:"selectionHighlight",minimap:{color:(0,a.themeColorFromId)(l.minimapSelectionOccurrenceHighlight),position:n.MinimapPosition.Inline},overviewRuler:{color:(0,a.themeColorFromId)(l.overviewRulerSelectionHighlightForeground),position:n.OverviewRulerLane.Center}}),A._SELECTION_HIGHLIGHT=i.ModelDecorationOptions.register({description:"selection-highlight",stickiness:1,className:"selectionHighlight"}),A=Ie([pe(1,r.ILanguageFeaturesService)],A),e.SelectionHighlighter=A;function B(J,$,j){const G=K(J,$[0],!j);for(let te=1,Z=$.length;te<Z;te++){const X=$[te];if(X.isEmpty())return!1;const ie=K(J,X,!j);if(G!==ie)return!1}return!0}function K(J,$,j){const G=J.getValueInRange($);return j?G.toLowerCase():G}class T extends w.EditorAction{constructor(){super({id:"editor.action.focusNextCursor",label:o.localize(19,null),description:{description:o.localize(20,null),args:[]},alias:"Focus Next Cursor",precondition:void 0})}run($,j,G){if(!j.hasModel())return;const te=j._getViewModel();if(te.cursorConfig.readOnly)return;te.model.pushStackElement();const Z=Array.from(te.getCursorStates()),X=Z.shift();!X||(Z.push(X),te.setCursorStates(G.source,3,Z),te.revealPrimaryCursor(G.source,!0),c(Z,te.getCursorStates()))}}e.FocusNextCursor=T;class ee extends w.EditorAction{constructor(){super({id:"editor.action.focusPreviousCursor",label:o.localize(21,null),description:{description:o.localize(22,null),args:[]},alias:"Focus Previous Cursor",precondition:void 0})}run($,j,G){if(!j.hasModel())return;const te=j._getViewModel();if(te.cursorConfig.readOnly)return;te.model.pushStackElement();const Z=Array.from(te.getCursorStates()),X=Z.pop();!X||(Z.unshift(X),te.setCursorStates(G.source,3,Z),te.revealPrimaryCursor(G.source,!0),c(Z,te.getCursorStates()))}}e.FocusPreviousCursor=ee,(0,w.registerEditorContribution)(L.ID,L),(0,w.registerEditorContribution)(A.ID,A),(0,w.registerEditorAction)(g),(0,w.registerEditorAction)(f),(0,w.registerEditorAction)(_),(0,w.registerEditorAction)(I),(0,w.registerEditorAction)(R),(0,w.registerEditorAction)(F),(0,w.registerEditorAction)(O),(0,w.registerEditorAction)(x),(0,w.registerEditorAction)(M),(0,w.registerEditorAction)(p),(0,w.registerEditorAction)(m),(0,w.registerEditorAction)(T),(0,w.registerEditorAction)(ee)}),define(oe[756],se([1,0,7,113,10,14,6,2,124,8,174,724,598,16,9,79,25,142,56,15,258,102,292,734,149,390,300]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r,c,g,f,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SuggestContentWidget=e.SuggestWidget=e.editorSuggestWidgetStatusForeground=e.editorSuggestWidgetHighlightFocusForeground=e.editorSuggestWidgetHighlightForeground=e.editorSuggestWidgetSelectedBackground=e.editorSuggestWidgetSelectedIconForeground=e.editorSuggestWidgetSelectedForeground=e.editorSuggestWidgetForeground=e.editorSuggestWidgetBorder=e.editorSuggestWidgetBackground=void 0,e.editorSuggestWidgetBackground=(0,d.registerColor)("editorSuggestWidget.background",{dark:d.editorWidgetBackground,light:d.editorWidgetBackground,hcDark:d.editorWidgetBackground,hcLight:d.editorWidgetBackground},i.localize(0,null)),e.editorSuggestWidgetBorder=(0,d.registerColor)("editorSuggestWidget.border",{dark:d.editorWidgetBorder,light:d.editorWidgetBorder,hcDark:d.editorWidgetBorder,hcLight:d.editorWidgetBorder},i.localize(1,null)),e.editorSuggestWidgetForeground=(0,d.registerColor)("editorSuggestWidget.foreground",{dark:d.editorForeground,light:d.editorForeground,hcDark:d.editorForeground,hcLight:d.editorForeground},i.localize(2,null)),e.editorSuggestWidgetSelectedForeground=(0,d.registerColor)("editorSuggestWidget.selectedForeground",{dark:d.quickInputListFocusForeground,light:d.quickInputListFocusForeground,hcDark:d.quickInputListFocusForeground,hcLight:d.quickInputListFocusForeground},i.localize(3,null)),e.editorSuggestWidgetSelectedIconForeground=(0,d.registerColor)("editorSuggestWidget.selectedIconForeground",{dark:d.quickInputListFocusIconForeground,light:d.quickInputListFocusIconForeground,hcDark:d.quickInputListFocusIconForeground,hcLight:d.quickInputListFocusIconForeground},i.localize(4,null)),e.editorSuggestWidgetSelectedBackground=(0,d.registerColor)("editorSuggestWidget.selectedBackground",{dark:d.quickInputListFocusBackground,light:d.quickInputListFocusBackground,hcDark:d.quickInputListFocusBackground,hcLight:d.quickInputListFocusBackground},i.localize(5,null)),e.editorSuggestWidgetHighlightForeground=(0,d.registerColor)("editorSuggestWidget.highlightForeground",{dark:d.listHighlightForeground,light:d.listHighlightForeground,hcDark:d.listHighlightForeground,hcLight:d.listHighlightForeground},i.localize(6,null)),e.editorSuggestWidgetHighlightFocusForeground=(0,d.registerColor)("editorSuggestWidget.focusHighlightForeground",{dark:d.listFocusHighlightForeground,light:d.listFocusHighlightForeground,hcDark:d.listFocusHighlightForeground,hcLight:d.listFocusHighlightForeground},i.localize(7,null)),e.editorSuggestWidgetStatusForeground=(0,d.registerColor)("editorSuggestWidgetStatus.foreground",{dark:(0,d.transparent)(e.editorSuggestWidgetForeground,.5),light:(0,d.transparent)(e.editorSuggestWidgetForeground,.5),hcDark:(0,d.transparent)(e.editorSuggestWidgetForeground,.5),hcLight:(0,d.transparent)(e.editorSuggestWidgetForeground,.5)},i.localize(8,null));class p{constructor(L,N){this._service=L,this._key=`suggestWidget.size/${N.getEditorType()}/${N instanceof u.EmbeddedCodeEditorWidget}`}restore(){var L;const N=(L=this._service.get(this._key,0))!==null&&L!==void 0?L:"";try{const I=JSON.parse(N);if(y.Dimension.is(I))return y.Dimension.lift(I)}catch{}}store(L){this._service.store(this._key,JSON.stringify(L),0,1)}reset(){this._service.remove(this._key,0)}}let m=class Mi{constructor(L,N,I,R,F){this.editor=L,this._storageService=N,this._state=0,this._isAuto=!1,this._ignoreFocusEvents=!1,this._forceRenderingAbove=!1,this._explainMode=!1,this._showTimeout=new k.TimeoutTimer,this._disposables=new b.DisposableStore,this._onDidSelect=new w.Emitter,this._onDidFocus=new w.Emitter,this._onDidHide=new w.Emitter,this._onDidShow=new w.Emitter,this.onDidSelect=this._onDidSelect.event,this.onDidFocus=this._onDidFocus.event,this.onDidHide=this._onDidHide.event,this.onDidShow=this._onDidShow.event,this._onDetailsKeydown=new w.Emitter,this.onDetailsKeyDown=this._onDetailsKeydown.event,this.element=new c.ResizableHTMLElement,this.element.domNode.classList.add("editor-widget","suggest-widget"),this._contentWidget=new S(this,L),this._persistedSize=new p(N,L);class O{constructor(T,ee,J=!1,$=!1){this.persistedSize=T,this.currentSize=ee,this.persistHeight=J,this.persistWidth=$}}let x;this._disposables.add(this.element.onDidWillResize(()=>{this._contentWidget.lockPreference(),x=new O(this._persistedSize.restore(),this.element.size)})),this._disposables.add(this.element.onDidResize(K=>{var T,ee,J,$;if(this._resize(K.dimension.width,K.dimension.height),x&&(x.persistHeight=x.persistHeight||!!K.north||!!K.south,x.persistWidth=x.persistWidth||!!K.east||!!K.west),!!K.done){if(x){const{itemHeight:j,defaultSize:G}=this.getLayoutInfo(),te=Math.round(j/2);let{width:Z,height:X}=this.element.size;(!x.persistHeight||Math.abs(x.currentSize.height-X)<=te)&&(X=(ee=(T=x.persistedSize)===null||T===void 0?void 0:T.height)!==null&&ee!==void 0?ee:G.height),(!x.persistWidth||Math.abs(x.currentSize.width-Z)<=te)&&(Z=($=(J=x.persistedSize)===null||J===void 0?void 0:J.width)!==null&&$!==void 0?$:G.width),this._persistedSize.store(new y.Dimension(Z,X))}this._contentWidget.unlockPreference(),x=void 0}})),this._messageElement=y.append(this.element.domNode,y.$(".message")),this._listElement=y.append(this.element.domNode,y.$(".tree"));const M=F.createInstance(f.SuggestDetailsWidget,this.editor);M.onDidClose(this.toggleDetails,this,this._disposables),this._details=new f.SuggestDetailsOverlay(M,this.editor);const P=()=>this.element.domNode.classList.toggle("no-icons",!this.editor.getOption(108).showIcons);P();const A=F.createInstance(_.ItemRenderer,this.editor);this._disposables.add(A),this._disposables.add(A.onDidToggleDetails(()=>this.toggleDetails())),this._list=new v.List("SuggestWidget",this._listElement,{getHeight:K=>this.getLayoutInfo().itemHeight,getTemplateId:K=>"suggestion"},[A],{alwaysConsumeMouseWheel:!0,useShadows:!1,mouseSupport:!1,multipleSelectionSupport:!1,accessibilityProvider:{getRole:()=>"option",getWidgetAriaLabel:()=>i.localize(11,null),getWidgetRole:()=>"listbox",getAriaLabel:K=>{let T=K.textLabel;if(typeof K.completion.label!="string"){const{detail:j,description:G}=K.completion.label;j&&G?T=i.localize(12,null,T,j,G):j?T=i.localize(13,null,T,j):G&&(T=i.localize(14,null,T,G))}if(!K.isResolved||!this._isDetailsVisible())return T;const{documentation:ee,detail:J}=K.completion,$=h.format("{0}{1}",J||"",ee?typeof ee=="string"?ee:ee.value:"");return i.localize(15,null,T,$)}}}),this._status=F.createInstance(n.SuggestWidgetStatus,this.element.domNode);const B=()=>this.element.domNode.classList.toggle("with-status-bar",this.editor.getOption(108).showStatusBar);B(),this._disposables.add((0,l.attachListStyler)(this._list,R,{listInactiveFocusBackground:e.editorSuggestWidgetSelectedBackground,listInactiveFocusOutline:d.activeContrastBorder})),this._disposables.add(R.onDidColorThemeChange(K=>this._onThemeChange(K))),this._onThemeChange(R.getColorTheme()),this._disposables.add(this._list.onMouseDown(K=>this._onListMouseDownOrTap(K))),this._disposables.add(this._list.onTap(K=>this._onListMouseDownOrTap(K))),this._disposables.add(this._list.onDidChangeSelection(K=>this._onListSelection(K))),this._disposables.add(this._list.onDidChangeFocus(K=>this._onListFocus(K))),this._disposables.add(this.editor.onDidChangeCursorSelection(()=>this._onCursorSelectionChanged())),this._disposables.add(this.editor.onDidChangeConfiguration(K=>{K.hasChanged(108)&&(B(),P())})),this._ctxSuggestWidgetVisible=g.Context.Visible.bindTo(I),this._ctxSuggestWidgetDetailsVisible=g.Context.DetailsVisible.bindTo(I),this._ctxSuggestWidgetMultipleSuggestions=g.Context.MultipleSuggestions.bindTo(I),this._ctxSuggestWidgetHasFocusedSuggestion=g.Context.HasFocusedSuggestion.bindTo(I),this._disposables.add(y.addStandardDisposableListener(this._details.widget.domNode,"keydown",K=>{this._onDetailsKeydown.fire(K)})),this._disposables.add(this.editor.onMouseDown(K=>this._onEditorMouseDown(K)))}dispose(){var L;this._details.widget.dispose(),this._details.dispose(),this._list.dispose(),this._status.dispose(),this._disposables.dispose(),(L=this._loadingTimeout)===null||L===void 0||L.dispose(),this._showTimeout.dispose(),this._contentWidget.dispose(),this.element.dispose()}_onEditorMouseDown(L){this._details.widget.domNode.contains(L.target.element)?this._details.widget.domNode.focus():this.element.domNode.contains(L.target.element)&&this.editor.focus()}_onCursorSelectionChanged(){this._state!==0&&this._contentWidget.layout()}_onListMouseDownOrTap(L){typeof L.element>"u"||typeof L.index>"u"||(L.browserEvent.preventDefault(),L.browserEvent.stopPropagation(),this._select(L.element,L.index))}_onListSelection(L){L.elements.length&&this._select(L.elements[0],L.indexes[0])}_select(L,N){const I=this._completionModel;I&&(this._onDidSelect.fire({item:L,index:N,model:I}),this.editor.focus())}_onThemeChange(L){this._details.widget.borderWidth=(0,a.isHighContrast)(L.type)?2:1}_onListFocus(L){var N;if(this._ignoreFocusEvents)return;if(!L.elements.length){this._currentSuggestionDetails&&(this._currentSuggestionDetails.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=void 0),this.editor.setAriaOptions({activeDescendant:void 0}),this._ctxSuggestWidgetHasFocusedSuggestion.set(!1);return}if(!this._completionModel)return;this._ctxSuggestWidgetHasFocusedSuggestion.set(!0);const I=L.elements[0],R=L.indexes[0];I!==this._focusedItem&&((N=this._currentSuggestionDetails)===null||N===void 0||N.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=I,this._list.reveal(R),this._currentSuggestionDetails=(0,k.createCancelablePromise)(F=>be(this,void 0,void 0,function*(){const O=(0,k.disposableTimeout)(()=>{this._isDetailsVisible()&&this.showDetails(!0)},250),x=F.onCancellationRequested(()=>O.dispose()),M=yield I.resolve(F);return O.dispose(),x.dispose(),M})),this._currentSuggestionDetails.then(()=>{R>=this._list.length||I!==this._list.element(R)||(this._ignoreFocusEvents=!0,this._list.splice(R,1,[I]),this._list.setFocus([R]),this._ignoreFocusEvents=!1,this._isDetailsVisible()?this.showDetails(!1):this.element.domNode.classList.remove("docs-side"),this.editor.setAriaOptions({activeDescendant:(0,_.getAriaId)(R)}))}).catch(D.onUnexpectedError)),this._onDidFocus.fire({item:I,index:R,model:this._completionModel})}_setState(L){if(this._state!==L)switch(this._state=L,this.element.domNode.classList.toggle("frozen",L===4),this.element.domNode.classList.remove("message"),L){case 0:y.hide(this._messageElement,this._listElement,this._status.element),this._details.hide(!0),this._status.hide(),this._contentWidget.hide(),this._ctxSuggestWidgetVisible.reset(),this._ctxSuggestWidgetMultipleSuggestions.reset(),this._ctxSuggestWidgetHasFocusedSuggestion.reset(),this._showTimeout.cancel(),this.element.domNode.classList.remove("visible"),this._list.splice(0,this._list.length),this._focusedItem=void 0,this._cappedHeight=void 0,this._explainMode=!1;break;case 1:this.element.domNode.classList.add("message"),this._messageElement.textContent=Mi.LOADING_MESSAGE,y.hide(this._listElement,this._status.element),y.show(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0;break;case 2:this.element.domNode.classList.add("message"),this._messageElement.textContent=Mi.NO_SUGGESTIONS_MESSAGE,y.hide(this._listElement,this._status.element),y.show(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0;break;case 3:y.hide(this._messageElement),y.show(this._listElement,this._status.element),this._show();break;case 4:y.hide(this._messageElement),y.show(this._listElement,this._status.element),this._show();break;case 5:y.hide(this._messageElement),y.show(this._listElement,this._status.element),this._details.show(),this._show();break}}_show(){this._status.show(),this._contentWidget.show(),this._layout(this._persistedSize.restore()),this._ctxSuggestWidgetVisible.set(!0),this._showTimeout.cancelAndSet(()=>{this.element.domNode.classList.add("visible"),this._onDidShow.fire(this)},100)}showTriggered(L,N){this._state===0&&(this._contentWidget.setPosition(this.editor.getPosition()),this._isAuto=!!L,this._isAuto||(this._loadingTimeout=(0,k.disposableTimeout)(()=>this._setState(1),N)))}showSuggestions(L,N,I,R){var F,O;if(this._contentWidget.setPosition(this.editor.getPosition()),(F=this._loadingTimeout)===null||F===void 0||F.dispose(),(O=this._currentSuggestionDetails)===null||O===void 0||O.cancel(),this._currentSuggestionDetails=void 0,this._completionModel!==L&&(this._completionModel=L),I&&this._state!==2&&this._state!==0){this._setState(4);return}const x=this._completionModel.items.length,M=x===0;if(this._ctxSuggestWidgetMultipleSuggestions.set(x>1),M){this._setState(R?0:2),this._completionModel=void 0;return}this._focusedItem=void 0,this._list.splice(0,this._list.length,this._completionModel.items),this._setState(I?4:3),N>=0&&(this._list.reveal(N,0),this._list.setFocus([N])),this._layout(this.element.size),this._details.widget.domNode.classList.remove("focused")}selectNextPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageDown(),!0;case 1:return!this._isAuto;default:return this._list.focusNextPage(),!0}}selectNext(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusNext(1,!0),!0}}selectLast(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollBottom(),!0;case 1:return!this._isAuto;default:return this._list.focusLast(),!0}}selectPreviousPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageUp(),!0;case 1:return!this._isAuto;default:return this._list.focusPreviousPage(),!0}}selectPrevious(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusPrevious(1,!0),!1}}selectFirst(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollTop(),!0;case 1:return!this._isAuto;default:return this._list.focusFirst(),!0}}getFocusedItem(){if(this._state!==0&&this._state!==2&&this._state!==1&&this._completionModel)return{item:this._list.getFocusedElements()[0],index:this._list.getFocus()[0],model:this._completionModel}}toggleDetailsFocus(){this._state===5?(this._setState(3),this._details.widget.domNode.classList.remove("focused")):this._state===3&&this._isDetailsVisible()&&(this._setState(5),this._details.widget.domNode.classList.add("focused"))}toggleDetails(){this._isDetailsVisible()?(this._ctxSuggestWidgetDetailsVisible.set(!1),this._setDetailsVisible(!1),this._details.hide(),this.element.domNode.classList.remove("shows-details")):((0,f.canExpandCompletionItem)(this._list.getFocusedElements()[0])||this._explainMode)&&(this._state===3||this._state===5||this._state===4)&&(this._ctxSuggestWidgetDetailsVisible.set(!0),this._setDetailsVisible(!0),this.showDetails(!1))}showDetails(L){this._details.show(),L?this._details.widget.renderLoading():this._details.widget.renderItem(this._list.getFocusedElements()[0],this._explainMode),this._positionDetails(),this.editor.focus(),this.element.domNode.classList.add("shows-details")}toggleExplainMode(){this._list.getFocusedElements()[0]&&(this._explainMode=!this._explainMode,this._isDetailsVisible()?this.showDetails(!1):this.toggleDetails())}resetPersistedSize(){this._persistedSize.reset()}hideWidget(){var L;(L=this._loadingTimeout)===null||L===void 0||L.dispose(),this._setState(0),this._onDidHide.fire(this),this.element.clearSashHoverState();const N=this._persistedSize.restore(),I=Math.ceil(this.getLayoutInfo().itemHeight*4.3);N&&N.height<I&&this._persistedSize.store(N.with(void 0,I))}isFrozen(){return this._state===4}_afterRender(L){if(L===null){this._isDetailsVisible()&&this._details.hide();return}this._state===2||this._state===1||(this._isDetailsVisible()&&this._details.show(),this._positionDetails())}_layout(L){var N,I,R;if(!this.editor.hasModel()||!this.editor.getDomNode())return;const F=y.getClientArea(document.body),O=this.getLayoutInfo();L||(L=O.defaultSize);let x=L.height,M=L.width;if(this._status.element.style.lineHeight=`${O.itemHeight}px`,this._state===2||this._state===1)x=O.itemHeight+O.borderHeight,M=O.defaultSize.width/2,this.element.enableSashes(!1,!1,!1,!1),this.element.minSize=this.element.maxSize=new y.Dimension(M,x),this._contentWidget.setPreference(2);else{const P=F.width-O.borderHeight-2*O.horizontalPadding;M>P&&(M=P);const A=this._completionModel?this._completionModel.stats.pLabelLen*O.typicalHalfwidthCharacterWidth:M,B=O.statusBarHeight+this._list.contentHeight+O.borderHeight,K=O.itemHeight+O.statusBarHeight,T=y.getDomNodePagePosition(this.editor.getDomNode()),ee=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),J=T.top+ee.top+ee.height,$=Math.min(F.height-J-O.verticalPadding,B),j=T.top+ee.top-O.verticalPadding,G=Math.min(j,B);let te=Math.min(Math.max(G,$)+O.borderHeight,B);x===((N=this._cappedHeight)===null||N===void 0?void 0:N.capped)&&(x=this._cappedHeight.wanted),x<K&&(x=K),x>te&&(x=te);const Z=150;x>$||this._forceRenderingAbove&&j>Z?(this._contentWidget.setPreference(1),this.element.enableSashes(!0,!0,!1,!1),te=G):(this._contentWidget.setPreference(2),this.element.enableSashes(!1,!0,!0,!1),te=$),this.element.preferredSize=new y.Dimension(A,O.defaultSize.height),this.element.maxSize=new y.Dimension(P,te),this.element.minSize=new y.Dimension(220,K),this._cappedHeight=x===B?{wanted:(R=(I=this._cappedHeight)===null||I===void 0?void 0:I.wanted)!==null&&R!==void 0?R:L.height,capped:x}:void 0}this._resize(M,x)}_resize(L,N){const{width:I,height:R}=this.element.maxSize;L=Math.min(I,L),N=Math.min(R,N);const{statusBarHeight:F}=this.getLayoutInfo();this._list.layout(N-F,L),this._listElement.style.height=`${N-F}px`,this.element.layout(N,L),this._contentWidget.layout(),this._positionDetails()}_positionDetails(){var L;this._isDetailsVisible()&&this._details.placeAtAnchor(this.element.domNode,((L=this._contentWidget.getPosition())===null||L===void 0?void 0:L.preference[0])===2)}getLayoutInfo(){const L=this.editor.getOption(46),N=(0,C.clamp)(this.editor.getOption(110)||L.lineHeight,8,1e3),I=!this.editor.getOption(108).showStatusBar||this._state===2||this._state===1?0:N,R=this._details.widget.borderWidth,F=2*R;return{itemHeight:N,statusBarHeight:I,borderWidth:R,borderHeight:F,typicalHalfwidthCharacterWidth:L.typicalHalfwidthCharacterWidth,verticalPadding:22,horizontalPadding:14,defaultSize:new y.Dimension(430,I+12*N+F)}}_isDetailsVisible(){return this._storageService.getBoolean("expandSuggestionDocs",0,!1)}_setDetailsVisible(L){this._storageService.store("expandSuggestionDocs",L,0,0)}forceRenderingAbove(){this._forceRenderingAbove||(this._forceRenderingAbove=!0,this._layout(this._persistedSize.restore()))}stopForceRenderingAbove(){this._forceRenderingAbove=!1}};m.LOADING_MESSAGE=i.localize(9,null),m.NO_SUGGESTIONS_MESSAGE=i.localize(10,null),m=Ie([pe(1,s.IStorageService),pe(2,t.IContextKeyService),pe(3,r.IThemeService),pe(4,o.IInstantiationService)],m),e.SuggestWidget=m;class S{constructor(L,N){this._widget=L,this._editor=N,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._preferenceLocked=!1,this._added=!1,this._hidden=!1}dispose(){this._added&&(this._added=!1,this._editor.removeContentWidget(this))}getId(){return"editor.widget.suggestWidget"}getDomNode(){return this._widget.element.domNode}show(){this._hidden=!1,this._added||(this._added=!0,this._editor.addContentWidget(this))}hide(){this._hidden||(this._hidden=!0,this.layout())}layout(){this._editor.layoutContentWidget(this)}getPosition(){return this._hidden||!this._position||!this._preference?null:{position:this._position,preference:[this._preference]}}beforeRender(){const{height:L,width:N}=this._widget.element.size,{borderWidth:I,horizontalPadding:R}=this._widget.getLayoutInfo();return new y.Dimension(N+2*I+R,L+2*I)}afterRender(L){this._widget._afterRender(L)}setPreference(L){this._preferenceLocked||(this._preference=L)}lockPreference(){this._preferenceLocked=!0}unlockPreference(){this._preferenceLocked=!1}setPosition(L){this._position=L}}e.SuggestContentWidget=S}),define(oe[757],se([1,0,10,2,12,281,50,310,298,30,15,70,57,20]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let o=class extends v.Disposable{constructor(s,d,l,a,r,c){super(),this._modelService=d,this._themeService=l,this._configurationService=a,this._editor=s,this._provider=c.documentRangeSemanticTokensProvider,this._debounceInformation=r.for(this._provider,"DocumentRangeSemanticTokens",{min:100,max:500}),this._tokenizeViewport=this._register(new y.RunOnceScheduler(()=>this._tokenizeViewportNow(),100)),this._outstandingRequests=[];const g=()=>{this._editor.hasModel()&&this._tokenizeViewport.schedule(this._debounceInformation.get(this._editor.getModel()))};this._register(this._editor.onDidScrollChange(()=>{g()})),this._register(this._editor.onDidChangeModel(()=>{this._cancelAll(),g()})),this._register(this._editor.onDidChangeModelContent(f=>{this._cancelAll(),g()})),this._register(this._provider.onDidChange(()=>{this._cancelAll(),g()})),this._register(this._configurationService.onDidChangeConfiguration(f=>{f.affectsConfiguration(b.SEMANTIC_HIGHLIGHTING_SETTING_ID)&&(this._cancelAll(),g())})),this._register(this._themeService.onDidColorThemeChange(()=>{this._cancelAll(),g()}))}_cancelAll(){for(const s of this._outstandingRequests)s.cancel();this._outstandingRequests=[]}_removeOutstandingRequest(s){for(let d=0,l=this._outstandingRequests.length;d<l;d++)if(this._outstandingRequests[d]===s){this._outstandingRequests.splice(d,1);return}}_tokenizeViewportNow(){if(!this._editor.hasModel())return;const s=this._editor.getModel();if(s.tokenization.hasCompleteSemanticTokens())return;if(!(0,b.isSemanticColoringEnabled)(s,this._themeService,this._configurationService)){s.tokenization.hasSomeSemanticTokens()&&s.tokenization.setSemanticTokens(null,!1);return}if(!(0,D.hasDocumentRangeSemanticTokensProvider)(this._provider,s)){s.tokenization.hasSomeSemanticTokens()&&s.tokenization.setSemanticTokens(null,!1);return}const d=this._editor.getVisibleRangesPlusViewportAboveBelow();this._outstandingRequests=this._outstandingRequests.concat(d.map(l=>this._requestRange(s,l)))}_requestRange(s,d){const l=s.getVersionId(),a=(0,y.createCancelablePromise)(c=>Promise.resolve((0,D.getDocumentRangeSemanticTokens)(this._provider,s,d,c))),r=new i.StopWatch(!1);return a.then(c=>{if(this._debounceInformation.update(s,r.elapsed()),!c||!c.tokens||s.isDisposed()||s.getVersionId()!==l)return;const{provider:g,tokens:f}=c,_=this._modelService.getSemanticTokensProviderStyling(g);s.tokenization.setPartialSemanticTokens(d,(0,C.toMultilineTokens2)(f,_,s.getLanguageId()))}).then(()=>this._removeOutstandingRequest(a),()=>this._removeOutstandingRequest(a)),a}};o.ID="editor.contrib.viewportSemanticTokens",o=Ie([pe(1,w.IModelService),pe(2,u.IThemeService),pe(3,h.IConfigurationService),pe(4,n.ILanguageFeatureDebounceService),pe(5,t.ILanguageFeaturesService)],o),(0,k.registerEditorContribution)(o.ID,o)}),define(oe[758],se([1,0,49,18,10,21,14,2,12,3,24,46,35,28,607,16,25,15,20,56]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getOccurrencesAtPosition=void 0;const c=(0,d.registerColor)("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hcDark:null,hcLight:null},o.localize(0,null),!0),g=(0,d.registerColor)("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hcDark:null,hcLight:null},o.localize(1,null),!0),f=(0,d.registerColor)("editor.wordHighlightBorder",{light:null,dark:null,hcDark:d.activeContrastBorder,hcLight:d.activeContrastBorder},o.localize(2,null)),_=(0,d.registerColor)("editor.wordHighlightStrongBorder",{light:null,dark:null,hcDark:d.activeContrastBorder,hcLight:d.activeContrastBorder},o.localize(3,null)),p=(0,d.registerColor)("editorOverviewRuler.wordHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hcDark:"#A0A0A0CC",hcLight:"#A0A0A0CC"},o.localize(4,null),!0),m=(0,d.registerColor)("editorOverviewRuler.wordHighlightStrongForeground",{dark:"#C0A0C0CC",light:"#C0A0C0CC",hcDark:"#C0A0C0CC",hcLight:"#C0A0C0CC"},o.localize(5,null),!0),S=new s.RawContextKey("hasWordHighlights",!1);function E(B,K,T,ee){const J=B.ordered(K);return(0,k.first)(J.map($=>()=>Promise.resolve($.provideDocumentHighlights(K,T,ee)).then(void 0,w.onUnexpectedExternalError)),v.isNonEmptyArray)}e.getOccurrencesAtPosition=E;class L{constructor(K,T,ee){this._model=K,this._selection=T,this._wordSeparators=ee,this._wordRange=this._getCurrentWordRange(K,T),this._result=null}get result(){return this._result||(this._result=(0,k.createCancelablePromise)(K=>this._compute(this._model,this._selection,this._wordSeparators,K))),this._result}_getCurrentWordRange(K,T){const ee=K.getWordAtPosition(T.getPosition());return ee?new h.Range(T.startLineNumber,ee.startColumn,T.startLineNumber,ee.endColumn):null}isValid(K,T,ee){const J=T.startLineNumber,$=T.startColumn,j=T.endColumn,G=this._getCurrentWordRange(K,T);let te=!!(this._wordRange&&this._wordRange.equalsRange(G));for(let Z=0,X=ee.length;!te&&Z<X;Z++){const ie=ee.getRange(Z);ie&&ie.startLineNumber===J&&ie.startColumn<=$&&ie.endColumn>=j&&(te=!0)}return te}cancel(){this.result.cancel()}}class N extends L{constructor(K,T,ee,J){super(K,T,ee),this._providers=J}_compute(K,T,ee,J){return E(this._providers,K,T.getPosition(),J).then($=>$||[])}}class I extends L{constructor(K,T,ee){super(K,T,ee),this._selectionIsEmpty=T.isEmpty()}_compute(K,T,ee,J){return(0,k.timeout)(250,J).then(()=>{if(!T.isEmpty())return[];const $=K.getWordAtPosition(T.getPosition());return!$||$.word.length>1e3?[]:K.findMatches($.word,!0,!1,!0,ee,!1).map(j=>({range:j.range,kind:t.DocumentHighlightKind.Text}))})}isValid(K,T,ee){const J=T.isEmpty();return this._selectionIsEmpty!==J?!1:super.isValid(K,T,ee)}}function R(B,K,T,ee){return B.has(K)?new N(K,T,ee,B):new I(K,T,ee)}(0,C.registerModelAndPositionCommand)("_executeDocumentHighlights",(B,K,T)=>{const ee=B.get(a.ILanguageFeaturesService);return E(ee.documentHighlightProvider,K,T,D.CancellationToken.None)});class F{constructor(K,T,ee){this.toUnhook=new b.DisposableStore,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=[],this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=K,this.providers=T,this._hasWordHighlights=S.bindTo(ee),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(74),this.model=this.editor.getModel(),this.toUnhook.add(K.onDidChangeCursorPosition(J=>{this._ignorePositionChangeEvent||!this.occurrencesHighlight||this._onPositionChanged(J)})),this.toUnhook.add(K.onDidChangeModelContent(J=>{this._stopAll()})),this.toUnhook.add(K.onDidChangeConfiguration(J=>{const $=this.editor.getOption(74);this.occurrencesHighlight!==$&&(this.occurrencesHighlight=$,this._stopAll())})),this.decorations=this.editor.createDecorationsCollection(),this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1}hasDecorations(){return this.decorations.length>0}restore(){!this.occurrencesHighlight||this._run()}_getSortedHighlights(){return this.decorations.getRanges().sort(h.Range.compareRangesUsingStarts)}moveNext(){const K=this._getSortedHighlights(),T=(K.findIndex(J=>J.containsPosition(this.editor.getPosition()))+1)%K.length,ee=K[T];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(ee.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(ee);const J=this._getWord();if(J){const $=this.editor.getModel().getLineContent(ee.startLineNumber);(0,y.alert)(`${$}, ${T+1} of ${K.length} for '${J.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}moveBack(){const K=this._getSortedHighlights(),T=(K.findIndex(J=>J.containsPosition(this.editor.getPosition()))-1+K.length)%K.length,ee=K[T];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(ee.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(ee);const J=this._getWord();if(J){const $=this.editor.getModel().getLineContent(ee.startLineNumber);(0,y.alert)(`${$}, ${T+1} of ${K.length} for '${J.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}_removeDecorations(){this.decorations.length>0&&(this.decorations.clear(),this._hasWordHighlights.set(!1))}_stopAll(){this._removeDecorations(),this.renderDecorationsTimer!==-1&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),this.workerRequest!==null&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_onPositionChanged(K){if(!this.occurrencesHighlight){this._stopAll();return}if(K.reason!==3){this._stopAll();return}this._run()}_getWord(){const K=this.editor.getSelection(),T=K.startLineNumber,ee=K.startColumn;return this.model.getWordAtPosition({lineNumber:T,column:ee})}_run(){const K=this.editor.getSelection();if(K.startLineNumber!==K.endLineNumber){this._stopAll();return}const T=K.startColumn,ee=K.endColumn,J=this._getWord();if(!J||J.startColumn>T||J.endColumn<ee){this._stopAll();return}const $=this.workerRequest&&this.workerRequest.isValid(this.model,K,this.decorations);if(this.lastCursorPositionChangeTime=new Date().getTime(),$)this.workerRequestCompleted&&this.renderDecorationsTimer!==-1&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1,this._beginRenderDecorations());else{this._stopAll();const j=++this.workerRequestTokenId;this.workerRequestCompleted=!1,this.workerRequest=R(this.providers,this.model,this.editor.getSelection(),this.editor.getOption(119)),this.workerRequest.result.then(G=>{j===this.workerRequestTokenId&&(this.workerRequestCompleted=!0,this.workerRequestValue=G||[],this._beginRenderDecorations())},w.onUnexpectedError)}}_beginRenderDecorations(){const K=new Date().getTime(),T=this.lastCursorPositionChangeTime+250;K>=T?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout(()=>{this.renderDecorations()},T-K)}renderDecorations(){this.renderDecorationsTimer=-1;const K=[];for(const T of this.workerRequestValue)T.range&&K.push({range:T.range,options:F._getDecorationOptions(T.kind)});this.decorations.set(K),this._hasWordHighlights.set(this.hasDecorations())}static _getDecorationOptions(K){return K===t.DocumentHighlightKind.Write?this._WRITE_OPTIONS:K===t.DocumentHighlightKind.Text?this._TEXT_OPTIONS:this._REGULAR_OPTIONS}dispose(){this._stopAll(),this.toUnhook.dispose()}}F._WRITE_OPTIONS=i.ModelDecorationOptions.register({description:"word-highlight-strong",stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:(0,l.themeColorFromId)(m),position:n.OverviewRulerLane.Center},minimap:{color:(0,l.themeColorFromId)(d.minimapSelectionOccurrenceHighlight),position:n.MinimapPosition.Inline}}),F._TEXT_OPTIONS=i.ModelDecorationOptions.register({description:"selection-highlight",stickiness:1,className:"selectionHighlight",overviewRuler:{color:(0,l.themeColorFromId)(d.overviewRulerSelectionHighlightForeground),position:n.OverviewRulerLane.Center},minimap:{color:(0,l.themeColorFromId)(d.minimapSelectionOccurrenceHighlight),position:n.MinimapPosition.Inline}}),F._REGULAR_OPTIONS=i.ModelDecorationOptions.register({description:"word-highlight",stickiness:1,className:"wordHighlight",overviewRuler:{color:(0,l.themeColorFromId)(p),position:n.OverviewRulerLane.Center},minimap:{color:(0,l.themeColorFromId)(d.minimapSelectionOccurrenceHighlight),position:n.MinimapPosition.Inline}});let O=class rn extends b.Disposable{constructor(K,T,ee){super(),this.wordHighlighter=null;const J=()=>{K.hasModel()&&(this.wordHighlighter=new F(K,ee.documentHighlightProvider,T))};this._register(K.onDidChangeModel($=>{this.wordHighlighter&&(this.wordHighlighter.dispose(),this.wordHighlighter=null),J()})),J()}static get(K){return K.getContribution(rn.ID)}saveViewState(){return!!(this.wordHighlighter&&this.wordHighlighter.hasDecorations())}moveNext(){this.wordHighlighter&&this.wordHighlighter.moveNext()}moveBack(){this.wordHighlighter&&this.wordHighlighter.moveBack()}restoreViewState(K){this.wordHighlighter&&K&&this.wordHighlighter.restore()}dispose(){this.wordHighlighter&&(this.wordHighlighter.dispose(),this.wordHighlighter=null),super.dispose()}};O.ID="editor.contrib.wordHighlighter",O=Ie([pe(1,s.IContextKeyService),pe(2,a.ILanguageFeaturesService)],O);class x extends C.EditorAction{constructor(K,T){super(T),this._isNext=K}run(K,T){const ee=O.get(T);!ee||(this._isNext?ee.moveNext():ee.moveBack())}}class M extends x{constructor(){super(!0,{id:"editor.action.wordHighlight.next",label:o.localize(6,null),alias:"Go to Next Symbol Highlight",precondition:S,kbOpts:{kbExpr:u.EditorContextKeys.editorTextFocus,primary:65,weight:100}})}}class P extends x{constructor(){super(!1,{id:"editor.action.wordHighlight.prev",label:o.localize(7,null),alias:"Go to Previous Symbol Highlight",precondition:S,kbOpts:{kbExpr:u.EditorContextKeys.editorTextFocus,primary:1089,weight:100}})}}class A extends C.EditorAction{constructor(){super({id:"editor.action.wordHighlight.trigger",label:o.localize(8,null),alias:"Trigger Symbol Highlight",precondition:S.toNegated(),kbOpts:{kbExpr:u.EditorContextKeys.editorTextFocus,primary:0,weight:100}})}run(K,T,ee){const J=O.get(T);!J||J.restoreViewState(!0)}}(0,C.registerEditorContribution)(O.ID,O),(0,C.registerEditorAction)(M),(0,C.registerEditorAction)(P),(0,C.registerEditorAction)(A),(0,l.registerThemingParticipant)((B,K)=>{const T=B.getColor(d.editorSelectionHighlight);T&&(K.addRule(`.monaco-editor .focused .selectionHighlight { background-color: ${T}; }`),K.addRule(`.monaco-editor .selectionHighlight { background-color: ${T.transparent(.5)}; }`));const ee=B.getColor(c);ee&&K.addRule(`.monaco-editor .wordHighlight { background-color: ${ee}; }`);const J=B.getColor(g);J&&K.addRule(`.monaco-editor .wordHighlightStrong { background-color: ${J}; }`);const $=B.getColor(d.editorSelectionHighlightBorder);$&&K.addRule(`.monaco-editor .selectionHighlight { border: 1px ${(0,r.isHighContrast)(B.type)?"dotted":"solid"} ${$}; box-sizing: border-box; }`);const j=B.getColor(f);j&&K.addRule(`.monaco-editor .wordHighlight { border: 1px ${(0,r.isHighContrast)(B.type)?"dashed":"solid"} ${j}; box-sizing: border-box; }`);const G=B.getColor(_);G&&K.addRule(`.monaco-editor .wordHighlightStrong { border: 1px ${(0,r.isHighContrast)(B.type)?"dashed":"solid"} ${G}; box-sizing: border-box; }`)})}),define(oe[759],se([1,0,7,135,31,144,2,40,3,35,393]),function(q,e,y,v,k,D,w,b,C,h){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ZoneWidget=e.OverlayWidgetDelegate=e.ViewZoneDelegate=void 0;const u=new k.Color(new k.RGBA(0,122,204)),n={showArrow:!0,showFrame:!0,className:"",frameColor:u,arrowColor:u,keepEditorSelection:!1},i="vs.editor.contrib.zoneWidget";class t{constructor(a,r,c,g,f,_){this.id="",this.domNode=a,this.afterLineNumber=r,this.afterColumn=c,this.heightInLines=g,this._onDomNodeTop=f,this._onComputedHeight=_}onDomNodeTop(a){this._onDomNodeTop(a)}onComputedHeight(a){this._onComputedHeight(a)}}e.ViewZoneDelegate=t;class o{constructor(a,r){this._id=a,this._domNode=r}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}}e.OverlayWidgetDelegate=o;class s{constructor(a){this._editor=a,this._ruleName=s._IdGenerator.nextId(),this._decorations=this._editor.createDecorationsCollection(),this._color=null,this._height=-1}dispose(){this.hide(),y.removeCSSRulesContainingSelector(this._ruleName)}set color(a){this._color!==a&&(this._color=a,this._updateStyle())}set height(a){this._height!==a&&(this._height=a,this._updateStyle())}_updateStyle(){y.removeCSSRulesContainingSelector(this._ruleName),y.createCSSRule(`.monaco-editor ${this._ruleName}`,`border-style: solid; border-color: transparent; border-bottom-color: ${this._color}; border-width: ${this._height}px; bottom: -${this._height}px; margin-left: -${this._height}px; `)}show(a){a.column===1&&(a={lineNumber:a.lineNumber,column:2}),this._decorations.set([{range:C.Range.fromPositions(a),options:{description:"zone-widget-arrow",className:this._ruleName,stickiness:1}}])}hide(){this._decorations.clear()}}s._IdGenerator=new D.IdGenerator(".arrow-decoration-");class d{constructor(a,r={}){this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._viewZone=null,this._disposables=new w.DisposableStore,this.container=null,this._isShowing=!1,this.editor=a,this._positionMarkerId=this.editor.createDecorationsCollection(),this.options=b.deepClone(r),b.mixin(this.options,n,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange(c=>{const g=this._getWidth(c);this.domNode.style.width=g+"px",this.domNode.style.left=this._getLeft(c)+"px",this._onWidth(g)}))}dispose(){this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones(a=>{this._viewZone&&a.removeZone(this._viewZone.id),this._viewZone=null}),this._positionMarkerId.clear(),this._disposables.dispose()}create(){this.domNode.classList.add("zone-widget"),this.options.className&&this.domNode.classList.add(this.options.className),this.container=document.createElement("div"),this.container.classList.add("zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new s(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()}style(a){a.frameColor&&(this.options.frameColor=a.frameColor),a.arrowColor&&(this.options.arrowColor=a.arrowColor),this._applyStyles()}_applyStyles(){if(this.container&&this.options.frameColor){const a=this.options.frameColor.toString();this.container.style.borderTopColor=a,this.container.style.borderBottomColor=a}if(this._arrow&&this.options.arrowColor){const a=this.options.arrowColor.toString();this._arrow.color=a}}_getWidth(a){return a.width-a.minimap.minimapWidth-a.verticalScrollbarWidth}_getLeft(a){return a.minimap.minimapWidth>0&&a.minimap.minimapLeft===0?a.minimap.minimapWidth:0}_onViewZoneTop(a){this.domNode.style.top=a+"px"}_onViewZoneHeight(a){if(this.domNode.style.height=`${a}px`,this.container){const r=a-this._decoratingElementsHeight();this.container.style.height=`${r}px`;const c=this.editor.getLayoutInfo();this._doLayout(r,this._getWidth(c))}this._resizeSash&&this._resizeSash.layout()}get position(){const a=this._positionMarkerId.getRange(0);if(a)return a.getStartPosition()}show(a,r){const c=C.Range.isIRange(a)?C.Range.lift(a):C.Range.fromPositions(a);this._isShowing=!0,this._showImpl(c,r),this._isShowing=!1,this._positionMarkerId.set([{range:c,options:h.ModelDecorationOptions.EMPTY}])}hide(){this._viewZone&&(this.editor.changeViewZones(a=>{this._viewZone&&a.removeZone(this._viewZone.id)}),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._arrow&&this._arrow.hide()}_decoratingElementsHeight(){const a=this.editor.getOption(61);let r=0;if(this.options.showArrow){const c=Math.round(a/3);r+=2*c}if(this.options.showFrame){const c=Math.round(a/9);r+=2*c}return r}_showImpl(a,r){const c=a.getStartPosition(),g=this.editor.getLayoutInfo(),f=this._getWidth(g);this.domNode.style.width=`${f}px`,this.domNode.style.left=this._getLeft(g)+"px";const _=document.createElement("div");_.style.overflow="hidden";const p=this.editor.getOption(61),m=Math.max(12,this.editor.getLayoutInfo().height/p*.8);r=Math.min(r,m);let S=0,E=0;if(this._arrow&&this.options.showArrow&&(S=Math.round(p/3),this._arrow.height=S,this._arrow.show(c)),this.options.showFrame&&(E=Math.round(p/9)),this.editor.changeViewZones(I=>{this._viewZone&&I.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new t(_,c.lineNumber,c.column,r,R=>this._onViewZoneTop(R),R=>this._onViewZoneHeight(R)),this._viewZone.id=I.addZone(this._viewZone),this._overlayWidget=new o(i+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)}),this.container&&this.options.showFrame){const I=this.options.frameWidth?this.options.frameWidth:E;this.container.style.borderTopWidth=I+"px",this.container.style.borderBottomWidth=I+"px"}const L=r*p-this._decoratingElementsHeight();this.container&&(this.container.style.top=S+"px",this.container.style.height=L+"px",this.container.style.overflow="hidden"),this._doLayout(L,f),this.options.keepEditorSelection||this.editor.setSelection(a);const N=this.editor.getModel();if(N){const I=a.endLineNumber+1;I<=N.getLineCount()?this.revealLine(I,!1):this.revealLine(N.getLineCount(),!0)}}revealLine(a,r){r?this.editor.revealLineInCenter(a,0):this.editor.revealLine(a,0)}setCssClass(a,r){!this.container||(r&&this.container.classList.remove(r),this.container.classList.add(a))}_onWidth(a){}_doLayout(a,r){}_relayout(a){this._viewZone&&this._viewZone.heightInLines!==a&&this.editor.changeViewZones(r=>{this._viewZone&&(this._viewZone.heightInLines=a,r.layoutZone(this._viewZone.id))})}_initSash(){if(this._resizeSash)return;this._resizeSash=this._disposables.add(new v.Sash(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.state=0);let a;this._disposables.add(this._resizeSash.onDidStart(r=>{this._viewZone&&(a={startY:r.startY,heightInLines:this._viewZone.heightInLines})})),this._disposables.add(this._resizeSash.onDidEnd(()=>{a=void 0})),this._disposables.add(this._resizeSash.onDidChange(r=>{if(a){const c=(r.currentY-a.startY)/this.editor.getOption(61),g=c<0?Math.ceil(c):Math.floor(c),f=a.heightInLines+g;f>5&&f<35&&this._relayout(f)}}))}getHorizontalSashLeft(){return 0}getHorizontalSashTop(){return(this.domNode.style.height===null?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2}getHorizontalSashWidth(){const a=this.editor.getLayoutInfo();return a.width-a.minimap.minimapWidth}}e.ZoneWidget=d}),define(oe[119],se([1,0,7,83,42,27,31,6,40,12,29,174,759,587,218,16,53,9,25,387]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.peekViewEditorMatchHighlightBorder=e.peekViewEditorMatchHighlight=e.peekViewResultsMatchHighlight=e.peekViewEditorGutterBackground=e.peekViewEditorBackground=e.peekViewResultsSelectionForeground=e.peekViewResultsSelectionBackground=e.peekViewResultsFileForeground=e.peekViewResultsMatchForeground=e.peekViewResultsBackground=e.peekViewBorder=e.peekViewTitleInfoForeground=e.peekViewTitleForeground=e.peekViewTitleBackground=e.PeekViewWidget=e.getOuterEditor=e.PeekContext=e.IPeekViewService=void 0,e.IPeekViewService=(0,l.createDecorator)("IPeekViewService"),(0,d.registerSingleton)(e.IPeekViewService,class{constructor(){this._widgets=new Map}addExclusiveWidget(p,m){const S=this._widgets.get(p);S&&(S.listener.dispose(),S.widget.dispose());const E=()=>{const L=this._widgets.get(p);L&&L.widget===m&&(L.listener.dispose(),this._widgets.delete(p))};this._widgets.set(p,{widget:m,listener:m.onDidClose(E)})}});var r;(function(p){p.inPeekEditor=new s.RawContextKey("inReferenceSearchEditor",!0,t.localize(0,null)),p.notInPeekEditor=p.inPeekEditor.toNegated()})(r=e.PeekContext||(e.PeekContext={}));let c=class{constructor(p,m){p instanceof n.EmbeddedCodeEditorWidget&&r.inPeekEditor.bindTo(m)}dispose(){}};c.ID="editor.contrib.referenceController",c=Ie([pe(1,s.IContextKeyService)],c),(0,h.registerEditorContribution)(c.ID,c);function g(p){const m=p.get(u.ICodeEditorService).getFocusedCodeEditor();return m instanceof n.EmbeddedCodeEditorWidget?m.getParentEditor():m}e.getOuterEditor=g;const f={headerBackgroundColor:w.Color.white,primaryHeadingColor:w.Color.fromHex("#333333"),secondaryHeadingColor:w.Color.fromHex("#6c6c6cb3")};let _=class extends i.ZoneWidget{constructor(p,m,S){super(p,m),this.instantiationService=S,this._onDidClose=new b.Emitter,this.onDidClose=this._onDidClose.event,C.mixin(this.options,f,!1)}dispose(){this.disposed||(this.disposed=!0,super.dispose(),this._onDidClose.fire(this))}style(p){const m=this.options;p.headerBackgroundColor&&(m.headerBackgroundColor=p.headerBackgroundColor),p.primaryHeadingColor&&(m.primaryHeadingColor=p.primaryHeadingColor),p.secondaryHeadingColor&&(m.secondaryHeadingColor=p.secondaryHeadingColor),super.style(p)}_applyStyles(){super._applyStyles();const p=this.options;this._headElement&&p.headerBackgroundColor&&(this._headElement.style.backgroundColor=p.headerBackgroundColor.toString()),this._primaryHeading&&p.primaryHeadingColor&&(this._primaryHeading.style.color=p.primaryHeadingColor.toString()),this._secondaryHeading&&p.secondaryHeadingColor&&(this._secondaryHeading.style.color=p.secondaryHeadingColor.toString()),this._bodyElement&&p.frameColor&&(this._bodyElement.style.borderColor=p.frameColor.toString())}_fillContainer(p){this.setCssClass("peekview-widget"),this._headElement=y.$(".head"),this._bodyElement=y.$(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),p.appendChild(this._headElement),p.appendChild(this._bodyElement)}_fillHead(p,m){const S=y.$(".peekview-title");this.options.supportOnTitleClick&&(S.classList.add("clickable"),y.addStandardDisposableListener(S,"click",N=>this._onTitleClick(N))),y.append(this._headElement,S),this._fillTitleIcon(S),this._primaryHeading=y.$("span.filename"),this._secondaryHeading=y.$("span.dirname"),this._metaHeading=y.$("span.meta"),y.append(S,this._primaryHeading,this._secondaryHeading,this._metaHeading);const E=y.$(".peekview-actions");y.append(this._headElement,E);const L=this._getActionBarOptions();this._actionbarWidget=new v.ActionBar(E,L),this._disposables.add(this._actionbarWidget),m||this._actionbarWidget.push(new k.Action("peekview.close",t.localize(1,null),D.Codicon.close.classNames,!0,()=>(this.dispose(),Promise.resolve())),{label:!1,icon:!0})}_fillTitleIcon(p){}_getActionBarOptions(){return{actionViewItemProvider:o.createActionViewItem.bind(void 0,this.instantiationService),orientation:0}}_onTitleClick(p){}setTitle(p,m){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerText=p,this._primaryHeading.setAttribute("title",p),m?this._secondaryHeading.innerText=m:y.clearNode(this._secondaryHeading))}setMetaTitle(p){this._metaHeading&&(p?(this._metaHeading.innerText=p,y.show(this._metaHeading)):y.hide(this._metaHeading))}_doLayout(p,m){if(!this._isShowing&&p<0){this.dispose();return}const S=Math.ceil(this.editor.getOption(61)*1.2),E=Math.round(p-(S+2));this._doLayoutHead(S,m),this._doLayoutBody(E,m)}_doLayoutHead(p,m){this._headElement&&(this._headElement.style.height=`${p}px`,this._headElement.style.lineHeight=this._headElement.style.height)}_doLayoutBody(p,m){this._bodyElement&&(this._bodyElement.style.height=`${p}px`)}};_=Ie([pe(2,l.IInstantiationService)],_),e.PeekViewWidget=_,e.peekViewTitleBackground=(0,a.registerColor)("peekViewTitle.background",{dark:(0,a.transparent)(a.editorInfoForeground,.1),light:(0,a.transparent)(a.editorInfoForeground,.1),hcDark:null,hcLight:null},t.localize(2,null)),e.peekViewTitleForeground=(0,a.registerColor)("peekViewTitleLabel.foreground",{dark:w.Color.white,light:w.Color.black,hcDark:w.Color.white,hcLight:a.editorForeground},t.localize(3,null)),e.peekViewTitleInfoForeground=(0,a.registerColor)("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hcDark:"#FFFFFF99",hcLight:"#292929"},t.localize(4,null)),e.peekViewBorder=(0,a.registerColor)("peekView.border",{dark:a.editorInfoForeground,light:a.editorInfoForeground,hcDark:a.contrastBorder,hcLight:a.contrastBorder},t.localize(5,null)),e.peekViewResultsBackground=(0,a.registerColor)("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hcDark:w.Color.black,hcLight:w.Color.white},t.localize(6,null)),e.peekViewResultsMatchForeground=(0,a.registerColor)("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hcDark:w.Color.white,hcLight:a.editorForeground},t.localize(7,null)),e.peekViewResultsFileForeground=(0,a.registerColor)("peekViewResult.fileForeground",{dark:w.Color.white,light:"#1E1E1E",hcDark:w.Color.white,hcLight:a.editorForeground},t.localize(8,null)),e.peekViewResultsSelectionBackground=(0,a.registerColor)("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hcDark:null,hcLight:null},t.localize(9,null)),e.peekViewResultsSelectionForeground=(0,a.registerColor)("peekViewResult.selectionForeground",{dark:w.Color.white,light:"#6C6C6C",hcDark:w.Color.white,hcLight:a.editorForeground},t.localize(10,null)),e.peekViewEditorBackground=(0,a.registerColor)("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hcDark:w.Color.black,hcLight:w.Color.white},t.localize(11,null)),e.peekViewEditorGutterBackground=(0,a.registerColor)("peekViewEditorGutter.background",{dark:e.peekViewEditorBackground,light:e.peekViewEditorBackground,hcDark:e.peekViewEditorBackground,hcLight:e.peekViewEditorBackground},t.localize(12,null)),e.peekViewResultsMatchHighlight=(0,a.registerColor)("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hcDark:null,hcLight:null},t.localize(13,null)),e.peekViewEditorMatchHighlight=(0,a.registerColor)("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hcDark:null,hcLight:null},t.localize(14,null)),e.peekViewEditorMatchHighlightBorder=(0,a.registerColor)("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hcDark:a.activeContrastBorder,hcLight:a.activeContrastBorder},t.localize(15,null))}),define(oe[760],se([1,0,7,75,18,31,6,2,43,8,3,119,563,218,39,16,9,140,84,45,730,25,15,380]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r,c,g,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.editorMarkerNavigationBackground=e.editorMarkerNavigationInfoHeader=e.editorMarkerNavigationInfo=e.editorMarkerNavigationWarningHeader=e.editorMarkerNavigationWarning=e.editorMarkerNavigationErrorHeader=e.editorMarkerNavigationError=e.MarkerNavigationWidget=void 0;class _{constructor(N,I,R,F,O){this._openerService=F,this._labelService=O,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new b.DisposableStore,this._editor=I;const x=document.createElement("div");x.className="descriptioncontainer",this._messageBlock=document.createElement("div"),this._messageBlock.classList.add("message"),this._messageBlock.setAttribute("aria-live","assertive"),this._messageBlock.setAttribute("role","alert"),x.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),x.appendChild(this._relatedBlock),this._disposables.add(y.addStandardDisposableListener(this._relatedBlock,"click",M=>{M.preventDefault();const P=this._relatedDiagnostics.get(M.target);P&&R(P)})),this._scrollable=new v.ScrollableElement(x,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:6,verticalScrollbarSize:6}),N.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll(M=>{x.style.left=`-${M.scrollLeft}px`,x.style.top=`-${M.scrollTop}px`})),this._disposables.add(this._scrollable)}dispose(){(0,b.dispose)(this._disposables)}update(N){const{source:I,message:R,relatedInformation:F,code:O}=N;let x=(I?.length||0)+2;O&&(typeof O=="string"?x+=O.length:x+=O.value.length);const M=(0,h.splitLines)(R);this._lines=M.length,this._longestLineLength=0;for(const T of M)this._longestLineLength=Math.max(T.length+x,this._longestLineLength);y.clearNode(this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(N)),this._editor.applyFontInfo(this._messageBlock);let P=this._messageBlock;for(const T of M)P=document.createElement("div"),P.innerText=T,T===""&&(P.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(P);if(I||O){const T=document.createElement("span");if(T.classList.add("details"),P.appendChild(T),I){const ee=document.createElement("span");ee.innerText=I,ee.classList.add("source"),T.appendChild(ee)}if(O)if(typeof O=="string"){const ee=document.createElement("span");ee.innerText=`(${O})`,ee.classList.add("code"),T.appendChild(ee)}else{this._codeLink=y.$("a.code-link"),this._codeLink.setAttribute("href",`${O.target.toString()}`),this._codeLink.onclick=J=>{this._openerService.open(O.target,{allowCommands:!0}),J.preventDefault(),J.stopPropagation()};const ee=y.append(this._codeLink,y.$("span"));ee.innerText=O.value,T.appendChild(this._codeLink)}}if(y.clearNode(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),(0,k.isNonEmptyArray)(F)){const T=this._relatedBlock.appendChild(document.createElement("div"));T.style.paddingTop=`${Math.floor(this._editor.getOption(61)*.66)}px`,this._lines+=1;for(const ee of F){const J=document.createElement("div"),$=document.createElement("a");$.classList.add("filename"),$.innerText=`${this._labelService.getUriBasenameLabel(ee.resource)}(${ee.startLineNumber}, ${ee.startColumn}): `,$.title=this._labelService.getUriLabel(ee.resource),this._relatedDiagnostics.set($,ee);const j=document.createElement("span");j.innerText=ee.message,J.appendChild($),J.appendChild(j),this._lines+=1,T.appendChild(J)}}const A=this._editor.getOption(46),B=Math.ceil(A.typicalFullwidthCharacterWidth*this._longestLineLength*.75),K=A.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:B,scrollHeight:K})}layout(N,I){this._scrollable.getDomNode().style.height=`${N}px`,this._scrollable.getDomNode().style.width=`${I}px`,this._scrollable.setScrollDimensions({width:I,height:N})}getHeightInLines(){return Math.min(17,this._lines)}getAriaLabel(N){let I="";switch(N.severity){case a.MarkerSeverity.Error:I=i.localize(0,null);break;case a.MarkerSeverity.Warning:I=i.localize(1,null);break;case a.MarkerSeverity.Info:I=i.localize(2,null);break;case a.MarkerSeverity.Hint:I=i.localize(3,null);break}let R=i.localize(4,null,I,N.startLineNumber+":"+N.startColumn);const F=this._editor.getModel();return F&&N.startLineNumber<=F.getLineCount()&&N.startLineNumber>=1&&(R=`${F.getLineContent(N.startLineNumber)}, ${R}`),R}}let p=class an extends n.PeekViewWidget{constructor(N,I,R,F,O,x,M){super(N,{showArrow:!0,showFrame:!0,isAccessible:!0,frameWidth:1},O),this._themeService=I,this._openerService=R,this._menuService=F,this._contextKeyService=x,this._labelService=M,this._callOnDispose=new b.DisposableStore,this._onDidSelectRelatedInformation=new w.Emitter,this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=a.MarkerSeverity.Warning,this._backgroundColor=D.Color.white,this._applyTheme(I.getColorTheme()),this._callOnDispose.add(I.onDidColorThemeChange(this._applyTheme.bind(this))),this.create()}_applyTheme(N){this._backgroundColor=N.getColor(e.editorMarkerNavigationBackground);let I=e.editorMarkerNavigationError,R=e.editorMarkerNavigationErrorHeader;this._severity===a.MarkerSeverity.Warning?(I=e.editorMarkerNavigationWarning,R=e.editorMarkerNavigationWarningHeader):this._severity===a.MarkerSeverity.Info&&(I=e.editorMarkerNavigationInfo,R=e.editorMarkerNavigationInfoHeader);const F=N.getColor(I),O=N.getColor(R);this.style({arrowColor:F,frameColor:F,headerBackgroundColor:O,primaryHeadingColor:N.getColor(n.peekViewTitleForeground),secondaryHeadingColor:N.getColor(n.peekViewTitleInfoForeground)})}_applyStyles(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),super._applyStyles()}dispose(){this._callOnDispose.dispose(),super.dispose()}_fillHead(N){super._fillHead(N),this._disposables.add(this._actionbarWidget.actionRunner.onBeforeRun(F=>this.editor.focus()));const I=[],R=this._menuService.createMenu(an.TitleMenu,this._contextKeyService);(0,t.createAndFillInActionBarActions)(R,void 0,I),this._actionbarWidget.push(I,{label:!1,icon:!0,index:0}),R.dispose()}_fillTitleIcon(N){this._icon=y.append(N,y.$(""))}_fillBody(N){this._parentContainer=N,N.classList.add("marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),N.appendChild(this._container),this._message=new _(this._container,this.editor,I=>this._onDidSelectRelatedInformation.fire(I),this._openerService,this._labelService),this._disposables.add(this._message)}show(){throw new Error("call showAtMarker")}showAtMarker(N,I,R){this._container.classList.remove("stale"),this._message.update(N),this._severity=N.severity,this._applyTheme(this._themeService.getColorTheme());const F=u.Range.lift(N),O=this.editor.getPosition(),x=O&&F.containsPosition(O)?O:F.getStartPosition();super.show(x,this.computeRequiredHeight());const M=this.editor.getModel();if(M){const P=R>1?i.localize(5,null,I,R):i.localize(6,null,I,R);this.setTitle((0,C.basename)(M.uri),P)}this._icon.className=`codicon ${c.SeverityIcon.className(a.MarkerSeverity.toSeverity(this._severity))}`,this.editor.revealPositionNearTop(x,0),this.editor.focus()}updateMarker(N){this._container.classList.remove("stale"),this._message.update(N)}showStale(){this._container.classList.add("stale"),this._relayout()}_doLayoutBody(N,I){super._doLayoutBody(N,I),this._heightInPixel=N,this._message.layout(N,I),this._container.style.height=`${N}px`}_onWidth(N){this._message.layout(this._heightInPixel,N)}_relayout(){super._relayout(this.computeRequiredHeight())}computeRequiredHeight(){return 3+this._message.getHeightInLines()}};p.TitleMenu=new o.MenuId("gotoErrorTitleMenu"),p=Ie([pe(1,f.IThemeService),pe(2,r.IOpenerService),pe(3,o.IMenuService),pe(4,d.IInstantiationService),pe(5,s.IContextKeyService),pe(6,l.ILabelService)],p),e.MarkerNavigationWidget=p;const m=(0,g.oneOf)(g.editorErrorForeground,g.editorErrorBorder),S=(0,g.oneOf)(g.editorWarningForeground,g.editorWarningBorder),E=(0,g.oneOf)(g.editorInfoForeground,g.editorInfoBorder);e.editorMarkerNavigationError=(0,g.registerColor)("editorMarkerNavigationError.background",{dark:m,light:m,hcDark:g.contrastBorder,hcLight:g.contrastBorder},i.localize(7,null)),e.editorMarkerNavigationErrorHeader=(0,g.registerColor)("editorMarkerNavigationError.headerBackground",{dark:(0,g.transparent)(e.editorMarkerNavigationError,.1),light:(0,g.transparent)(e.editorMarkerNavigationError,.1),hcDark:null,hcLight:null},i.localize(8,null)),e.editorMarkerNavigationWarning=(0,g.registerColor)("editorMarkerNavigationWarning.background",{dark:S,light:S,hcDark:g.contrastBorder,hcLight:g.contrastBorder},i.localize(9,null)),e.editorMarkerNavigationWarningHeader=(0,g.registerColor)("editorMarkerNavigationWarning.headerBackground",{dark:(0,g.transparent)(e.editorMarkerNavigationWarning,.1),light:(0,g.transparent)(e.editorMarkerNavigationWarning,.1),hcDark:"#0C141F",hcLight:(0,g.transparent)(e.editorMarkerNavigationWarning,.2)},i.localize(10,null)),e.editorMarkerNavigationInfo=(0,g.registerColor)("editorMarkerNavigationInfo.background",{dark:E,light:E,hcDark:g.contrastBorder,hcLight:g.contrastBorder},i.localize(11,null)),e.editorMarkerNavigationInfoHeader=(0,g.registerColor)("editorMarkerNavigationInfo.headerBackground",{dark:(0,g.transparent)(e.editorMarkerNavigationInfo,.1),light:(0,g.transparent)(e.editorMarkerNavigationInfo,.1),hcDark:null,hcLight:null},i.localize(12,null)),e.editorMarkerNavigationBackground=(0,g.registerColor)("editorMarkerNavigation.background",{dark:g.editorBackground,light:g.editorBackground,hcDark:g.editorBackground,hcLight:g.editorBackground},i.localize(13,null))}),define(oe[314],se([1,0,27,2,12,29,11,3,24,644,562,39,16,9,80,760]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NextMarkerAction=e.MarkerController=void 0;let d=class vi{constructor(m,S,E,L,N){this._markerNavigationService=S,this._contextKeyService=E,this._editorService=L,this._instantiationService=N,this._sessionDispoables=new v.DisposableStore,this._editor=m,this._widgetVisible=f.bindTo(this._contextKeyService)}static get(m){return m.getContribution(vi.ID)}dispose(){this._cleanUp(),this._sessionDispoables.dispose()}_cleanUp(){this._widgetVisible.reset(),this._sessionDispoables.clear(),this._widget=void 0,this._model=void 0}_getOrCreateModel(m){if(this._model&&this._model.matches(m))return this._model;let S=!1;return this._model&&(S=!0,this._cleanUp()),this._model=this._markerNavigationService.getMarkerList(m),S&&this._model.move(!0,this._editor.getModel(),this._editor.getPosition()),this._widget=this._instantiationService.createInstance(s.MarkerNavigationWidget,this._editor),this._widget.onDidClose(()=>this.close(),this,this._sessionDispoables),this._widgetVisible.set(!0),this._sessionDispoables.add(this._model),this._sessionDispoables.add(this._widget),this._sessionDispoables.add(this._editor.onDidChangeCursorPosition(E=>{var L,N,I;(!(!((L=this._model)===null||L===void 0)&&L.selected)||!b.Range.containsPosition((N=this._model)===null||N===void 0?void 0:N.selected.marker,E.position))&&((I=this._model)===null||I===void 0||I.resetIndex())})),this._sessionDispoables.add(this._model.onDidChange(()=>{if(!this._widget||!this._widget.position||!this._model)return;const E=this._model.find(this._editor.getModel().uri,this._widget.position);E?this._widget.updateMarker(E.marker):this._widget.showStale()})),this._sessionDispoables.add(this._widget.onDidSelectRelatedInformation(E=>{this._editorService.openCodeEditor({resource:E.resource,options:{pinned:!0,revealIfOpened:!0,selection:b.Range.lift(E).collapseToStart()}},this._editor),this.close(!1)})),this._sessionDispoables.add(this._editor.onDidChangeModel(()=>this._cleanUp())),this._model}close(m=!0){this._cleanUp(),m&&this._editor.focus()}showAtMarker(m){if(this._editor.hasModel()){const S=this._getOrCreateModel(this._editor.getModel().uri);S.resetIndex(),S.move(!0,this._editor.getModel(),new w.Position(m.startLineNumber,m.startColumn)),S.selected&&this._widget.showAtMarker(S.selected.marker,S.selected.index,S.selected.total)}}nagivate(m,S){var E,L;return be(this,void 0,void 0,function*(){if(this._editor.hasModel()){const N=this._getOrCreateModel(S?void 0:this._editor.getModel().uri);if(N.move(m,this._editor.getModel(),this._editor.getPosition()),!N.selected)return;if(N.selected.marker.resource.toString()!==this._editor.getModel().uri.toString()){this._cleanUp();const I=yield this._editorService.openCodeEditor({resource:N.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:N.selected.marker}},this._editor);I&&((E=vi.get(I))===null||E===void 0||E.close(),(L=vi.get(I))===null||L===void 0||L.nagivate(m,S))}else this._widget.showAtMarker(N.selected.marker,N.selected.index,N.selected.total)}})}};d.ID="editor.contrib.markerController",d=Ie([pe(1,h.IMarkerNavigationService),pe(2,i.IContextKeyService),pe(3,D.ICodeEditorService),pe(4,t.IInstantiationService)],d),e.MarkerController=d;class l extends k.EditorAction{constructor(m,S,E){super(E),this._next=m,this._multiFile=S}run(m,S){var E;return be(this,void 0,void 0,function*(){S.hasModel()&&((E=d.get(S))===null||E===void 0||E.nagivate(this._next,this._multiFile))})}}class a extends l{constructor(){super(!0,!1,{id:a.ID,label:a.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:C.EditorContextKeys.focus,primary:578,weight:100},menuOpts:{menuId:s.MarkerNavigationWidget.TitleMenu,title:a.LABEL,icon:(0,o.registerIcon)("marker-navigation-next",y.Codicon.arrowDown,u.localize(1,null)),group:"navigation",order:1}})}}e.NextMarkerAction=a,a.ID="editor.action.marker.next",a.LABEL=u.localize(0,null);class r extends l{constructor(){super(!1,!1,{id:r.ID,label:r.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:C.EditorContextKeys.focus,primary:1602,weight:100},menuOpts:{menuId:s.MarkerNavigationWidget.TitleMenu,title:r.LABEL,icon:(0,o.registerIcon)("marker-navigation-previous",y.Codicon.arrowUp,u.localize(3,null)),group:"navigation",order:2}})}}r.ID="editor.action.marker.prev",r.LABEL=u.localize(2,null);class c extends l{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:u.localize(4,null),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:C.EditorContextKeys.focus,primary:66,weight:100},menuOpts:{menuId:n.MenuId.MenubarGoMenu,title:u.localize(5,null),group:"6_problem_nav",order:1}})}}class g extends l{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:u.localize(6,null),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:C.EditorContextKeys.focus,primary:1090,weight:100},menuOpts:{menuId:n.MenuId.MenubarGoMenu,title:u.localize(7,null),group:"6_problem_nav",order:2}})}}(0,k.registerEditorContribution)(d.ID,d),(0,k.registerEditorAction)(a),(0,k.registerEditorAction)(r),(0,k.registerEditorAction)(c),(0,k.registerEditorAction)(g);const f=new i.RawContextKey("markersNavigationVisible",!1),_=k.EditorCommand.bindToContribution(d.get);(0,k.registerEditorCommand)(new _({id:"closeMarkersNavigation",precondition:f,handler:p=>p.close(),kbOpts:{weight:100+50,kbExpr:C.EditorContextKeys.focus,primary:9,secondary:[1033]}}))}),define(oe[761],se([1,0,7,261,31,6,2,52,43,174,3,35,32,72,37,58,684,119,568,9,44,140,171,15,172,137,382]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r,c,g,f,_,p,m){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ReferenceWidget=e.LayoutData=void 0;class S{constructor(R,F){this._editor=R,this._model=F,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new w.DisposableStore,this._callOnModelChange=new w.DisposableStore,this._callOnDispose.add(this._editor.onDidChangeModel(()=>this._onModelChanged())),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();const R=this._editor.getModel();if(R){for(const F of this._model.references)if(F.uri.toString()===R.uri.toString()){this._addDecorations(F.parent);return}}}_addDecorations(R){if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations(()=>this._onDecorationChanged()));const F=[],O=[];for(let x=0,M=R.children.length;x<M;x++){const P=R.children[x];this._decorationIgnoreSet.has(P.id)||P.uri.toString()===this._editor.getModel().uri.toString()&&(F.push({range:P.range,options:S.DecorationOptions}),O.push(x))}this._editor.changeDecorations(x=>{const M=x.deltaDecorations([],F);for(let P=0;P<M.length;P++)this._decorations.set(M[P],R.children[O[P]])})}_onDecorationChanged(){const R=[],F=this._editor.getModel();if(F){for(const[O,x]of this._decorations){const M=F.getDecorationRange(O);if(!M)continue;let P=!1;if(!u.Range.equalsRange(M,x.range)){if(u.Range.spansMultipleLines(M))P=!0;else{const A=x.range.endColumn-x.range.startColumn,B=M.endColumn-M.startColumn;A!==B&&(P=!0)}P?(this._decorationIgnoreSet.add(x.id),R.push(O)):x.range=M}}for(let O=0,x=R.length;O<x;O++)this._decorations.delete(R[O]);this._editor.removeDecorations(R)}}removeDecorations(){this._editor.removeDecorations([...this._decorations.keys()]),this._decorations.clear()}}S.DecorationOptions=n.ModelDecorationOptions.register({description:"reference-decoration",stickiness:1,className:"reference-decoration"});class E{constructor(){this.ratio=.7,this.heightInLines=18}static fromJSON(R){let F,O;try{const x=JSON.parse(R);F=x.ratio,O=x.heightInLines}catch{}return{ratio:F||.7,heightInLines:O||18}}}e.LayoutData=E;class L extends f.WorkbenchAsyncDataTree{}let N=class extends l.PeekViewWidget{constructor(I,R,F,O,x,M,P,A,B,K,T,ee){super(I,{showFrame:!1,showArrow:!0,isResizeable:!0,isAccessible:!0,supportOnTitleClick:!0},M),this._defaultTreeKeyboardSupport=R,this.layoutData=F,this._textModelResolverService=x,this._instantiationService=M,this._peekViewService=P,this._uriLabel=A,this._undoRedoService=B,this._keybindingService=K,this._languageService=T,this._languageConfigurationService=ee,this._disposeOnNewModel=new w.DisposableStore,this._callOnDispose=new w.DisposableStore,this._onDidSelectReference=new D.Emitter,this.onDidSelectReference=this._onDidSelectReference.event,this._dim=new y.Dimension(0,0),this._applyTheme(O.getColorTheme()),this._callOnDispose.add(O.onDidColorThemeChange(this._applyTheme.bind(this))),this._peekViewService.addExclusiveWidget(I,this),this.create()}dispose(){this.setModel(void 0),this._callOnDispose.dispose(),this._disposeOnNewModel.dispose(),(0,w.dispose)(this._preview),(0,w.dispose)(this._previewNotAvailableMessage),(0,w.dispose)(this._tree),(0,w.dispose)(this._previewModelReference),this._splitView.dispose(),super.dispose()}_applyTheme(I){const R=I.getColor(l.peekViewBorder)||k.Color.transparent;this.style({arrowColor:R,frameColor:R,headerBackgroundColor:I.getColor(l.peekViewTitleBackground)||k.Color.transparent,primaryHeadingColor:I.getColor(l.peekViewTitleForeground),secondaryHeadingColor:I.getColor(l.peekViewTitleInfoForeground)})}show(I){super.show(I,this.layoutData.heightInLines||18)}focusOnReferenceTree(){this._tree.domFocus()}focusOnPreviewEditor(){this._preview.focus()}isPreviewEditorFocused(){return this._preview.hasTextFocus()}_onTitleClick(I){this._preview&&this._preview.getModel()&&this._onDidSelectReference.fire({element:this._getFocusedReference(),kind:I.ctrlKey||I.metaKey||I.altKey?"side":"open",source:"title"})}_fillBody(I){this.setCssClass("reference-zone-widget"),this._messageContainer=y.append(I,y.$("div.messages")),y.hide(this._messageContainer),this._splitView=new v.SplitView(I,{orientation:1}),this._previewContainer=y.append(I,y.$("div.preview.inline"));const R={scrollBeyondLastLine:!1,scrollbar:{verticalScrollbarSize:14,horizontal:"auto",useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,alwaysConsumeMouseWheel:!1},overviewRulerLanes:2,fixedOverflowWidgets:!0,minimap:{enabled:!1}};this._preview=this._instantiationService.createInstance(h.EmbeddedCodeEditorWidget,this._previewContainer,R,this.editor),y.hide(this._previewContainer),this._previewNotAvailableMessage=new n.TextModel(a.localize(0,null),t.PLAINTEXT_LANGUAGE_ID,n.TextModel.DEFAULT_CREATION_OPTIONS,null,this._undoRedoService,this._languageService,this._languageConfigurationService),this._treeContainer=y.append(I,y.$("div.ref-tree.inline"));const F={keyboardSupport:this._defaultTreeKeyboardSupport,accessibilityProvider:new d.AccessibilityProvider,keyboardNavigationLabelProvider:this._instantiationService.createInstance(d.StringRepresentationProvider),identityProvider:new d.IdentityProvider,openOnSingleClick:!0,selectionNavigation:!0,overrideStyles:{listBackground:l.peekViewResultsBackground}};this._defaultTreeKeyboardSupport&&this._callOnDispose.add(y.addStandardDisposableListener(this._treeContainer,"keydown",x=>{x.equals(9)&&(this._keybindingService.dispatchEvent(x,x.target),x.stopPropagation())},!0)),this._tree=this._instantiationService.createInstance(L,"ReferencesWidget",this._treeContainer,new d.Delegate,[this._instantiationService.createInstance(d.FileReferencesRenderer),this._instantiationService.createInstance(d.OneReferenceRenderer)],this._instantiationService.createInstance(d.DataSource),F),this._splitView.addView({onDidChange:D.Event.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:x=>{this._preview.layout({height:this._dim.height,width:x})}},v.Sizing.Distribute),this._splitView.addView({onDidChange:D.Event.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:x=>{this._treeContainer.style.height=`${this._dim.height}px`,this._treeContainer.style.width=`${x}px`,this._tree.layout(this._dim.height,x)}},v.Sizing.Distribute),this._disposables.add(this._splitView.onDidSashChange(()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)},void 0));const O=(x,M)=>{x instanceof m.OneReference&&(M==="show"&&this._revealReference(x,!1),this._onDidSelectReference.fire({element:x,kind:M,source:"tree"}))};this._tree.onDidOpen(x=>{x.sideBySide?O(x.element,"side"):x.editorOptions.pinned?O(x.element,"goto"):O(x.element,"show")}),y.hide(this._treeContainer)}_onWidth(I){this._dim&&this._doLayoutBody(this._dim.height,I)}_doLayoutBody(I,R){super._doLayoutBody(I,R),this._dim=new y.Dimension(R,I),this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(R),this._splitView.resizeView(0,R*this.layoutData.ratio)}setSelection(I){return this._revealReference(I,!0).then(()=>{!this._model||(this._tree.setSelection([I]),this._tree.setFocus([I]))})}setModel(I){return this._disposeOnNewModel.clear(),this._model=I,this._model?this._onNewModel():Promise.resolve()}_onNewModel(){return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerText=a.localize(1,null),y.show(this._messageContainer),Promise.resolve(void 0)):(y.hide(this._messageContainer),this._decorationsManager=new S(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange(I=>this._tree.rerender(I))),this._disposeOnNewModel.add(this._preview.onMouseDown(I=>{const{event:R,target:F}=I;if(R.detail!==2)return;const O=this._getFocusedReference();!O||this._onDidSelectReference.fire({element:{uri:O.uri,range:F.range},kind:R.ctrlKey||R.metaKey||R.altKey?"side":"open",source:"editor"})})),this.container.classList.add("results-loaded"),y.show(this._treeContainer),y.show(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(this._model.groups.length===1?this._model.groups[0]:this._model)):Promise.resolve(void 0)}_getFocusedReference(){const[I]=this._tree.getFocus();if(I instanceof m.OneReference)return I;if(I instanceof m.FileReferences&&I.children.length>0)return I.children[0]}revealReference(I){return be(this,void 0,void 0,function*(){yield this._revealReference(I,!1),this._onDidSelectReference.fire({element:I,kind:"goto",source:"tree"})})}_revealReference(I,R){return be(this,void 0,void 0,function*(){if(this._revealedReference===I)return;this._revealedReference=I,I.uri.scheme!==b.Schemas.inMemory?this.setTitle((0,C.basenameOrAuthority)(I.uri),this._uriLabel.getUriLabel((0,C.dirname)(I.uri))):this.setTitle(a.localize(2,null));const F=this._textModelResolverService.createModelReference(I.uri);this._tree.getInput()===I.parent?this._tree.reveal(I):(R&&this._tree.reveal(I.parent),yield this._tree.expand(I.parent),this._tree.reveal(I));const O=yield F;if(!this._model){O.dispose();return}(0,w.dispose)(this._previewModelReference);const x=O.object;if(x){const M=this._preview.getModel()===x.textEditorModel?0:1,P=u.Range.lift(I.range).collapseToStart();this._previewModelReference=O,this._preview.setModel(x.textEditorModel),this._preview.setSelection(P),this._preview.revealRangeInCenter(P,M)}else this._preview.setModel(this._previewNotAvailableMessage),O.dispose()})}};N=Ie([pe(3,_.IThemeService),pe(4,s.ITextModelService),pe(5,r.IInstantiationService),pe(6,l.IPeekViewService),pe(7,g.ILabelService),pe(8,p.IUndoRedoService),pe(9,c.IKeybindingService),pe(10,o.ILanguageService),pe(11,i.ILanguageConfigurationService)],N),e.ReferenceWidget=N}),define(oe[315],se([1,0,10,14,59,2,29,11,3,119,566,26,30,16,9,101,171,38,79,137,761]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ReferencesController=e.ctxReferenceSearchVisible=void 0,e.ctxReferenceSearchVisible=new t.RawContextKey("referenceSearchVisible",!1,u.localize(0,null));let g=class Ti{constructor(p,m,S,E,L,N,I,R){this._defaultTreeKeyboardSupport=p,this._editor=m,this._editorService=E,this._notificationService=L,this._instantiationService=N,this._storageService=I,this._configurationService=R,this._disposables=new D.DisposableStore,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=e.ctxReferenceSearchVisible.bindTo(S)}static get(p){return p.getContribution(Ti.ID)}dispose(){var p,m;this._referenceSearchVisible.reset(),this._disposables.dispose(),(p=this._widget)===null||p===void 0||p.dispose(),(m=this._model)===null||m===void 0||m.dispose(),this._widget=void 0,this._model=void 0}toggleWidget(p,m,S){let E;if(this._widget&&(E=this._widget.position),this.closeWidget(),!!E&&p.containsPosition(E))return;this._peekMode=S,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>{this.closeWidget()})),this._disposables.add(this._editor.onDidChangeModel(()=>{this._ignoreModelChangeEvent||this.closeWidget()}));const L="peekViewLayout",N=c.LayoutData.fromJSON(this._storageService.get(L,0,"{}"));this._widget=this._instantiationService.createInstance(c.ReferenceWidget,this._editor,this._defaultTreeKeyboardSupport,N),this._widget.setTitle(u.localize(1,null)),this._widget.show(p),this._disposables.add(this._widget.onDidClose(()=>{m.cancel(),this._widget&&(this._storageService.store(L,JSON.stringify(this._widget.layoutData),0,1),this._widget=void 0),this.closeWidget()})),this._disposables.add(this._widget.onDidSelectReference(R=>{const{element:F,kind:O}=R;if(F)switch(O){case"open":(R.source!=="editor"||!this._configurationService.getValue("editor.stablePeek"))&&this.openReference(F,!1,!1);break;case"side":this.openReference(F,!0,!1);break;case"goto":S?this._gotoReference(F):this.openReference(F,!1,!0);break}}));const I=++this._requestIdPool;m.then(R=>{var F;if(I!==this._requestIdPool||!this._widget){R.dispose();return}return(F=this._model)===null||F===void 0||F.dispose(),this._model=R,this._widget.setModel(this._model).then(()=>{if(this._widget&&this._model&&this._editor.hasModel()){this._model.isEmpty?this._widget.setMetaTitle(""):this._widget.setMetaTitle(u.localize(2,null,this._model.title,this._model.references.length));const O=this._editor.getModel().uri,x=new b.Position(p.startLineNumber,p.startColumn),M=this._model.nearestReference(O,x);if(M)return this._widget.setSelection(M).then(()=>{this._widget&&this._editor.getOption(79)==="editor"&&this._widget.focusOnPreviewEditor()})}})},R=>{this._notificationService.error(R)})}changeFocusBetweenPreviewAndReferences(){!this._widget||(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}goToNextOrPreviousReference(p){return be(this,void 0,void 0,function*(){if(!this._editor.hasModel()||!this._model||!this._widget)return;const m=this._widget.position;if(!m)return;const S=this._model.nearestReference(this._editor.getModel().uri,m);if(!S)return;const E=this._model.nextOrPreviousReference(S,p),L=this._editor.hasTextFocus(),N=this._widget.isPreviewEditorFocused();yield this._widget.setSelection(E),yield this._gotoReference(E),L?this._editor.focus():this._widget&&N&&this._widget.focusOnPreviewEditor()})}revealReference(p){return be(this,void 0,void 0,function*(){!this._editor.hasModel()||!this._model||!this._widget||(yield this._widget.revealReference(p))})}closeWidget(p=!0){var m,S;(m=this._widget)===null||m===void 0||m.dispose(),(S=this._model)===null||S===void 0||S.dispose(),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,p&&this._editor.focus(),this._requestIdPool+=1}_gotoReference(p){this._widget&&this._widget.hide(),this._ignoreModelChangeEvent=!0;const m=C.Range.lift(p.range).collapseToStart();return this._editorService.openCodeEditor({resource:p.uri,options:{selection:m,selectionSource:"code.jump"}},this._editor).then(S=>{var E;if(this._ignoreModelChangeEvent=!1,!S||!this._widget){this.closeWidget();return}if(this._editor===S)this._widget.show(m),this._widget.focusOnReferenceTree();else{const L=Ti.get(S),N=this._model.clone();this.closeWidget(),S.focus(),L?.toggleWidget(m,(0,y.createCancelablePromise)(I=>Promise.resolve(N)),(E=this._peekMode)!==null&&E!==void 0?E:!1)}},S=>{this._ignoreModelChangeEvent=!1,(0,v.onUnexpectedError)(S)})}openReference(p,m,S){m||this.closeWidget();const{uri:E,range:L}=p;this._editorService.openCodeEditor({resource:E,options:{selection:L,selectionSource:"code.jump",pinned:S}},this._editor,m)}};g.ID="editor.contrib.referencesController",g=Ie([pe(2,t.IContextKeyService),pe(3,w.ICodeEditorService),pe(4,l.INotificationService),pe(5,o.IInstantiationService),pe(6,a.IStorageService),pe(7,i.IConfigurationService)],g),e.ReferencesController=g;function f(_,p){const m=(0,h.getOuterEditor)(_);if(!m)return;const S=g.get(m);S&&p(S)}s.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:(0,k.KeyChord)(2089,60),when:t.ContextKeyExpr.or(e.ctxReferenceSearchVisible,h.PeekContext.inPeekEditor),handler(_){f(_,p=>{p.changeFocusBetweenPreviewAndReferences()})}}),s.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"goToNextReference",weight:100-10,primary:62,secondary:[70],when:t.ContextKeyExpr.or(e.ctxReferenceSearchVisible,h.PeekContext.inPeekEditor),handler(_){f(_,p=>{p.goToNextOrPreviousReference(!0)})}}),s.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:100-10,primary:1086,secondary:[1094],when:t.ContextKeyExpr.or(e.ctxReferenceSearchVisible,h.PeekContext.inPeekEditor),handler(_){f(_,p=>{p.goToNextOrPreviousReference(!1)})}}),n.CommandsRegistry.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference"),n.CommandsRegistry.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference"),n.CommandsRegistry.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch"),n.CommandsRegistry.registerCommand("closeReferenceSearch",_=>f(_,p=>p.closeWidget())),s.KeybindingsRegistry.registerKeybindingRule({id:"closeReferenceSearch",weight:100-101,primary:9,secondary:[1033],when:t.ContextKeyExpr.and(h.PeekContext.inPeekEditor,t.ContextKeyExpr.not("config.editor.stablePeek"))}),s.KeybindingsRegistry.registerKeybindingRule({id:"closeReferenceSearch",weight:200+50,primary:9,secondary:[1033],when:t.ContextKeyExpr.and(e.ctxReferenceSearchVisible,t.ContextKeyExpr.not("config.editor.stablePeek"))}),s.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:t.ContextKeyExpr.and(e.ctxReferenceSearchVisible,d.WorkbenchListFocusContextKey,d.WorkbenchTreeElementCanCollapse.negate(),d.WorkbenchTreeElementCanExpand.negate()),handler(_){var p;const m=(p=_.get(d.IListService).lastFocusedList)===null||p===void 0?void 0:p.getFocus();Array.isArray(m)&&m[0]instanceof r.OneReference&&f(_,S=>S.revealReference(m[0]))}}),s.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:t.ContextKeyExpr.and(e.ctxReferenceSearchVisible,d.WorkbenchListFocusContextKey,d.WorkbenchTreeElementCanCollapse.negate(),d.WorkbenchTreeElementCanExpand.negate()),handler(_){var p;const m=(p=_.get(d.IListService).lastFocusedList)===null||p===void 0?void 0:p.getFocus();Array.isArray(m)&&m[0]instanceof r.OneReference&&f(_,S=>S.openReference(m[0],!0,!0))}}),n.CommandsRegistry.registerCommand("openReference",_=>{var p;const m=(p=_.get(d.IListService).lastFocusedList)===null||p===void 0?void 0:p.getFocus();Array.isArray(m)&&m[0]instanceof r.OneReference&&f(_,S=>S.openReference(m[0],!1,!0))})}),define(oe[219],se([1,0,41,49,10,59,17,19,22,95,155,12,29,174,11,3,24,28,315,137,704,143,119,564,39,26,16,9,38,71,304,20]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r,c,g,f,_,p,m,S,E,L,N,I,R){"use strict";var F,O,x,M,P,A,B,K;Object.defineProperty(e,"__esModule",{value:!0}),e.DefinitionAction=e.SymbolNavigationAction=e.SymbolNavigationAnchor=void 0,p.MenuRegistry.appendMenuItem(p.MenuId.EditorContext,{submenu:p.MenuId.EditorContextPeek,title:_.localize(0,null),group:"navigation",order:100});const T=new Set;function ee(ae){const Y=new ae;return(0,n.registerInstantiatedEditorAction)(Y),T.add(Y.id),Y}class J{constructor(Y,U){this.model=Y,this.position=U}static is(Y){return!Y||typeof Y!="object"?!1:!!(Y instanceof J||o.Position.isIPosition(Y.position)&&Y.model)}}e.SymbolNavigationAnchor=J;class $ extends n.EditorAction{constructor(Y,U){super(U),this.configuration=Y}run(Y,U,le){if(!U.hasModel())return Promise.resolve(void 0);const z=Y.get(L.INotificationService),Q=Y.get(i.ICodeEditorService),W=Y.get(N.IEditorProgressService),V=Y.get(c.ISymbolNavigationService),ne=Y.get(R.ILanguageFeaturesService),de=U.getModel(),ce=U.getPosition(),ue=J.is(le)?le:new J(de,ce),me=new h.EditorStateCancellationTokenSource(U,5),_e=(0,k.raceCancellation)(this._getLocationModel(ne,ue.model,ue.position,me.token),me.token).then(ye=>be(this,void 0,void 0,function*(){var ke;if(!ye||me.token.isCancellationRequested)return;(0,v.alert)(ye.ariaMessage);let Te;if(ye.referenceAt(de.uri,ce)){const fe=this._getAlternativeCommand(U);!$._activeAlternativeCommands.has(fe)&&T.has(fe)&&(Te=U.getAction(fe))}const Me=ye.references.length;if(Me===0){if(!this.configuration.muteMessage){const fe=de.getWordAtPosition(ce);(ke=g.MessageController.get(U))===null||ke===void 0||ke.showMessage(this._getNoResultFoundMessage(fe),ce)}}else if(Me===1&&Te)$._activeAlternativeCommands.add(this.id),Te.run().finally(()=>{$._activeAlternativeCommands.delete(this.id)});else return this._onResult(Q,V,U,ye)}),ye=>{z.error(ye)}).finally(()=>{me.dispose()});return W.showWhile(_e,250),_e}_onResult(Y,U,le,z){return be(this,void 0,void 0,function*(){const Q=this._getGoToPreference(le);if(!(le instanceof t.EmbeddedCodeEditorWidget)&&(this.configuration.openInPeek||Q==="peek"&&z.references.length>1))this._openInPeek(le,z);else{const W=z.firstReference(),V=z.references.length>1&&Q==="gotoAndPeek",ne=yield this._openReference(le,Y,W,this.configuration.openToSide,!V);V&&ne?this._openInPeek(ne,z):z.dispose(),Q==="goto"&&U.put(W)}})}_openReference(Y,U,le,z,Q){return be(this,void 0,void 0,function*(){let W;if((0,l.isLocationLink)(le)&&(W=le.targetSelectionRange),W||(W=le.range),!W)return;const V=yield U.openCodeEditor({resource:le.uri,options:{selection:s.Range.collapseToStart(W),selectionRevealType:3,selectionSource:"code.jump"}},Y,z);if(V){if(Q){const ne=V.getModel(),de=V.createDecorationsCollection([{range:W,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout(()=>{V.getModel()===ne&&de.clear()},350)}return V}})}_openInPeek(Y,U){const le=a.ReferencesController.get(Y);le&&Y.hasModel()?le.toggleWidget(Y.getSelection(),(0,k.createCancelablePromise)(z=>Promise.resolve(U)),this.configuration.openInPeek):U.dispose()}}e.SymbolNavigationAction=$,$._activeAlternativeCommands=new Set;class j extends ${_getLocationModel(Y,U,le,z){return be(this,void 0,void 0,function*(){return new r.ReferencesModel(yield(0,I.getDefinitionsAtPosition)(Y.definitionProvider,U,le,z),_.localize(1,null))})}_getNoResultFoundMessage(Y){return Y&&Y.word?_.localize(2,null,Y.word):_.localize(3,null)}_getAlternativeCommand(Y){return Y.getOption(53).alternativeDefinitionCommand}_getGoToPreference(Y){return Y.getOption(53).multipleDefinitions}}e.DefinitionAction=j;const G=w.isWeb&&!(0,y.isStandalone)()?2118:70;ee((F=class Ri extends j{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Ri.id,label:_.localize(4,null),alias:"Go to Definition",precondition:S.ContextKeyExpr.and(d.EditorContextKeys.hasDefinitionProvider,d.EditorContextKeys.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:d.EditorContextKeys.editorTextFocus,primary:G,weight:100},contextMenuOpts:{group:"navigation",order:1.1}}),m.CommandsRegistry.registerCommandAlias("editor.action.goToDeclaration",Ri.id)}},F.id="editor.action.revealDefinition",F)),ee((O=class Oi extends j{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:Oi.id,label:_.localize(5,null),alias:"Open Definition to the Side",precondition:S.ContextKeyExpr.and(d.EditorContextKeys.hasDefinitionProvider,d.EditorContextKeys.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:d.EditorContextKeys.editorTextFocus,primary:(0,D.KeyChord)(2089,G),weight:100}}),m.CommandsRegistry.registerCommandAlias("editor.action.openDeclarationToTheSide",Oi.id)}},O.id="editor.action.revealDefinitionAside",O)),ee((x=class Pi extends j{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:Pi.id,label:_.localize(6,null),alias:"Peek Definition",precondition:S.ContextKeyExpr.and(d.EditorContextKeys.hasDefinitionProvider,f.PeekContext.notInPeekEditor,d.EditorContextKeys.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:d.EditorContextKeys.editorTextFocus,primary:582,linux:{primary:3140},weight:100},contextMenuOpts:{menuId:p.MenuId.EditorContextPeek,group:"peek",order:2}}),m.CommandsRegistry.registerCommandAlias("editor.action.previewDeclaration",Pi.id)}},x.id="editor.action.peekDefinition",x));class te extends ${_getLocationModel(Y,U,le,z){return be(this,void 0,void 0,function*(){return new r.ReferencesModel(yield(0,I.getDeclarationsAtPosition)(Y.declarationProvider,U,le,z),_.localize(7,null))})}_getNoResultFoundMessage(Y){return Y&&Y.word?_.localize(8,null,Y.word):_.localize(9,null)}_getAlternativeCommand(Y){return Y.getOption(53).alternativeDeclarationCommand}_getGoToPreference(Y){return Y.getOption(53).multipleDeclarations}}ee((M=class ln extends te{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:ln.id,label:_.localize(10,null),alias:"Go to Declaration",precondition:S.ContextKeyExpr.and(d.EditorContextKeys.hasDeclarationProvider,d.EditorContextKeys.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{group:"navigation",order:1.3}})}_getNoResultFoundMessage(Y){return Y&&Y.word?_.localize(11,null,Y.word):_.localize(12,null)}},M.id="editor.action.revealDeclaration",M)),ee(class extends te{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",label:_.localize(13,null),alias:"Peek Declaration",precondition:S.ContextKeyExpr.and(d.EditorContextKeys.hasDeclarationProvider,f.PeekContext.notInPeekEditor,d.EditorContextKeys.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:p.MenuId.EditorContextPeek,group:"peek",order:3}})}});class Z extends ${_getLocationModel(Y,U,le,z){return be(this,void 0,void 0,function*(){return new r.ReferencesModel(yield(0,I.getTypeDefinitionsAtPosition)(Y.typeDefinitionProvider,U,le,z),_.localize(14,null))})}_getNoResultFoundMessage(Y){return Y&&Y.word?_.localize(15,null,Y.word):_.localize(16,null)}_getAlternativeCommand(Y){return Y.getOption(53).alternativeTypeDefinitionCommand}_getGoToPreference(Y){return Y.getOption(53).multipleTypeDefinitions}}ee((P=class dn extends Z{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:dn.ID,label:_.localize(17,null),alias:"Go to Type Definition",precondition:S.ContextKeyExpr.and(d.EditorContextKeys.hasTypeDefinitionProvider,d.EditorContextKeys.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:d.EditorContextKeys.editorTextFocus,primary:0,weight:100},contextMenuOpts:{group:"navigation",order:1.4}})}},P.ID="editor.action.goToTypeDefinition",P)),ee((A=class cn extends Z{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:cn.ID,label:_.localize(18,null),alias:"Peek Type Definition",precondition:S.ContextKeyExpr.and(d.EditorContextKeys.hasTypeDefinitionProvider,f.PeekContext.notInPeekEditor,d.EditorContextKeys.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:p.MenuId.EditorContextPeek,group:"peek",order:4}})}},A.ID="editor.action.peekTypeDefinition",A));class X extends ${_getLocationModel(Y,U,le,z){return be(this,void 0,void 0,function*(){return new r.ReferencesModel(yield(0,I.getImplementationsAtPosition)(Y.implementationProvider,U,le,z),_.localize(19,null))})}_getNoResultFoundMessage(Y){return Y&&Y.word?_.localize(20,null,Y.word):_.localize(21,null)}_getAlternativeCommand(Y){return Y.getOption(53).alternativeImplementationCommand}_getGoToPreference(Y){return Y.getOption(53).multipleImplementations}}ee((B=class hn extends X{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:hn.ID,label:_.localize(22,null),alias:"Go to Implementations",precondition:S.ContextKeyExpr.and(d.EditorContextKeys.hasImplementationProvider,d.EditorContextKeys.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:d.EditorContextKeys.editorTextFocus,primary:2118,weight:100},contextMenuOpts:{group:"navigation",order:1.45}})}},B.ID="editor.action.goToImplementation",B)),ee((K=class un extends X{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:un.ID,label:_.localize(23,null),alias:"Peek Implementations",precondition:S.ContextKeyExpr.and(d.EditorContextKeys.hasImplementationProvider,f.PeekContext.notInPeekEditor,d.EditorContextKeys.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:d.EditorContextKeys.editorTextFocus,primary:3142,weight:100},contextMenuOpts:{menuId:p.MenuId.EditorContextPeek,group:"peek",order:5}})}},K.ID="editor.action.peekImplementation",K));class ie extends ${_getNoResultFoundMessage(Y){return Y?_.localize(24,null,Y.word):_.localize(25,null)}_getAlternativeCommand(Y){return Y.getOption(53).alternativeReferenceCommand}_getGoToPreference(Y){return Y.getOption(53).multipleReferences}}ee(class extends ie{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",label:_.localize(26,null),alias:"Go to References",precondition:S.ContextKeyExpr.and(d.EditorContextKeys.hasReferenceProvider,f.PeekContext.notInPeekEditor,d.EditorContextKeys.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:d.EditorContextKeys.editorTextFocus,primary:1094,weight:100},contextMenuOpts:{group:"navigation",order:1.45}})}_getLocationModel(ae,Y,U,le){return be(this,void 0,void 0,function*(){return new r.ReferencesModel(yield(0,I.getReferencesAtPosition)(ae.referenceProvider,Y,U,!0,le),_.localize(27,null))})}}),ee(class extends ie{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",label:_.localize(28,null),alias:"Peek References",precondition:S.ContextKeyExpr.and(d.EditorContextKeys.hasReferenceProvider,f.PeekContext.notInPeekEditor,d.EditorContextKeys.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:p.MenuId.EditorContextPeek,group:"peek",order:6}})}_getLocationModel(ae,Y,U,le){return be(this,void 0,void 0,function*(){return new r.ReferencesModel(yield(0,I.getReferencesAtPosition)(ae.referenceProvider,Y,U,!1,le),_.localize(29,null))})}});class H extends ${constructor(Y,U,le){super(Y,{id:"editor.action.goToLocation",label:_.localize(30,null),alias:"Go to Any Symbol",precondition:S.ContextKeyExpr.and(f.PeekContext.notInPeekEditor,d.EditorContextKeys.isInWalkThroughSnippet.toNegated())}),this._references=U,this._gotoMultipleBehaviour=le}_getLocationModel(Y,U,le,z){return be(this,void 0,void 0,function*(){return new r.ReferencesModel(this._references,_.localize(31,null))})}_getNoResultFoundMessage(Y){return Y&&_.localize(32,null,Y.word)||""}_getGoToPreference(Y){var U;return(U=this._gotoMultipleBehaviour)!==null&&U!==void 0?U:Y.getOption(53).multipleReferences}_getAlternativeCommand(){return""}}m.CommandsRegistry.registerCommand({id:"editor.action.goToLocations",description:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:C.URI},{name:"position",description:"The position at which to start",constraint:o.Position.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:(ae,Y,U,le,z,Q,W)=>be(void 0,void 0,void 0,function*(){(0,b.assertType)(C.URI.isUri(Y)),(0,b.assertType)(o.Position.isIPosition(U)),(0,b.assertType)(Array.isArray(le)),(0,b.assertType)(typeof z>"u"||typeof z=="string"),(0,b.assertType)(typeof W>"u"||typeof W=="boolean");const V=ae.get(i.ICodeEditorService),ne=yield V.openCodeEditor({resource:Y},V.getFocusedCodeEditor());if((0,u.isCodeEditor)(ne))return ne.setPosition(U),ne.revealPositionInCenterIfOutsideViewport(U,0),ne.invokeWithinContext(de=>{const ce=new class extends H{_getNoResultFoundMessage(ue){return Q||super._getNoResultFoundMessage(ue)}}({muteMessage:!Q,openInPeek:!!W,openToSide:!1},le,z);de.get(E.IInstantiationService).invokeFunction(ce.run.bind(ce),ne)})})}),m.CommandsRegistry.registerCommand({id:"editor.action.peekLocations",description:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:C.URI},{name:"position",description:"The position at which to start",constraint:o.Position.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:(ae,Y,U,le,z)=>be(void 0,void 0,void 0,function*(){ae.get(m.ICommandService).executeCommand("editor.action.goToLocations",Y,U,le,z,void 0,!0)})}),m.CommandsRegistry.registerCommand({id:"editor.action.findReferences",handler:(ae,Y,U)=>{(0,b.assertType)(C.URI.isUri(Y)),(0,b.assertType)(o.Position.isIPosition(U));const le=ae.get(R.ILanguageFeaturesService),z=ae.get(i.ICodeEditorService);return z.openCodeEditor({resource:Y},z.getFocusedCodeEditor()).then(Q=>{if(!(0,u.isCodeEditor)(Q)||!Q.hasModel())return;const W=a.ReferencesController.get(Q);if(!W)return;const V=(0,k.createCancelablePromise)(de=>(0,I.getReferencesAtPosition)(le.referenceProvider,Q.getModel(),o.Position.lift(U),!1,de).then(ce=>new r.ReferencesModel(ce,_.localize(33,null)))),ne=new s.Range(U.lineNumber,U.column,U.lineNumber,U.column);return Promise.resolve(W.toggleWidget(ne,V,!1))})}}),m.CommandsRegistry.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations"),p.MenuRegistry.appendMenuItems([{id:p.MenuId.MenubarGoMenu,item:{command:{id:"editor.action.revealDefinition",title:_.localize(34,null)},group:"4_symbol_nav",order:2}},{id:p.MenuId.MenubarGoMenu,item:{command:{id:"editor.action.revealDeclaration",title:_.localize(35,null)},group:"4_symbol_nav",order:3}},{id:p.MenuId.MenubarGoMenu,item:{command:{id:"editor.action.goToTypeDefinition",title:_.localize(36,null)},group:"4_symbol_nav",order:3}},{id:p.MenuId.MenubarGoMenu,item:{command:{id:"editor.action.goToImplementation",title:_.localize(37,null)},group:"4_symbol_nav",order:4}},{id:p.MenuId.MenubarGoMenu,item:{command:{id:"editor.action.goToReferences",title:_.localize(38,null)},group:"4_symbol_nav",order:5}}])}),define(oe[316],se([1,0,10,14,64,2,19,95,12,3,37,58,205,119,565,16,25,15,219,304,20,381]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GotoDefinitionAtPositionEditorContribution=void 0;let g=class Ci{constructor(_,p,m,S){this.textModelResolverService=p,this.languageService=m,this.languageFeaturesService=S,this.toUnhook=new D.DisposableStore,this.toUnhookForKeyboard=new D.DisposableStore,this.currentWordAtPosition=null,this.previousPromise=null,this.editor=_,this.linkDecorations=this.editor.createDecorationsCollection();const E=new i.ClickLinkGesture(_);this.toUnhook.add(E),this.toUnhook.add(E.onMouseMoveOrRelevantKeyDown(([L,N])=>{this.startFindDefinitionFromMouse(L,(0,w.withNullAsUndefined)(N))})),this.toUnhook.add(E.onExecute(L=>{this.isEnabled(L)&&this.gotoDefinition(L.target.position,L.hasSideBySideModifier).then(()=>{this.removeLinkDecorations()},N=>{this.removeLinkDecorations(),(0,v.onUnexpectedError)(N)})})),this.toUnhook.add(E.onCancel(()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null}))}static get(_){return _.getContribution(Ci.ID)}startFindDefinitionFromCursor(_){return this.startFindDefinition(_).then(()=>{this.toUnhookForKeyboard.add(this.editor.onDidChangeCursorPosition(()=>{this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear()})),this.toUnhookForKeyboard.add(this.editor.onKeyDown(p=>{p&&(this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear())}))})}startFindDefinitionFromMouse(_,p){if(_.target.type===9&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(_,p)){this.currentWordAtPosition=null,this.removeLinkDecorations();return}const m=_.target.position;this.startFindDefinition(m)}startFindDefinition(_){var p;this.toUnhookForKeyboard.clear();const m=_?(p=this.editor.getModel())===null||p===void 0?void 0:p.getWordAtPosition(_):null;if(!m)return this.currentWordAtPosition=null,this.removeLinkDecorations(),Promise.resolve(0);if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===m.startColumn&&this.currentWordAtPosition.endColumn===m.endColumn&&this.currentWordAtPosition.word===m.word)return Promise.resolve(0);this.currentWordAtPosition=m;const S=new b.EditorState(this.editor,15);return this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=(0,y.createCancelablePromise)(E=>this.findDefinition(_,E)),this.previousPromise.then(E=>{if(!E||!E.length||!S.validate(this.editor)){this.removeLinkDecorations();return}if(E.length>1)this.addDecoration(new h.Range(_.lineNumber,m.startColumn,_.lineNumber,m.endColumn),new k.MarkdownString().appendText(o.localize(0,null,E.length)));else{const L=E[0];if(!L.uri)return;this.textModelResolverService.createModelReference(L.uri).then(N=>{if(!N.object||!N.object.textEditorModel){N.dispose();return}const{object:{textEditorModel:I}}=N,{startLineNumber:R}=L.range;if(R<1||R>I.getLineCount()){N.dispose();return}const F=this.getPreviewValue(I,R,L);let O;L.originSelectionRange?O=h.Range.lift(L.originSelectionRange):O=new h.Range(_.lineNumber,m.startColumn,_.lineNumber,m.endColumn);const x=this.languageService.guessLanguageIdByFilepathOrFirstLine(I.uri);this.addDecoration(O,new k.MarkdownString().appendCodeblock(x||"",F)),N.dispose()})}}).then(void 0,v.onUnexpectedError)}getPreviewValue(_,p,m){let S=m.range;return S.endLineNumber-S.startLineNumber>=Ci.MAX_SOURCE_PREVIEW_LINES&&(S=this.getPreviewRangeBasedOnIndentation(_,p)),this.stripIndentationFromPreviewRange(_,p,S)}stripIndentationFromPreviewRange(_,p,m){let S=_.getLineFirstNonWhitespaceColumn(p);for(let E=p+1;E<m.endLineNumber;E++){const L=_.getLineFirstNonWhitespaceColumn(E);S=Math.min(S,L)}return _.getValueInRange(m).replace(new RegExp(`^\\s{${S-1}}`,"gm"),"").trim()}getPreviewRangeBasedOnIndentation(_,p){const m=_.getLineFirstNonWhitespaceColumn(p),S=Math.min(_.getLineCount(),p+Ci.MAX_SOURCE_PREVIEW_LINES);let E=p+1;for(;E<S;E++){const L=_.getLineFirstNonWhitespaceColumn(E);if(m===L)break}return new h.Range(p,1,E+1,1)}addDecoration(_,p){const m={range:_,options:{description:"goto-definition-link",inlineClassName:"goto-definition-link",hoverMessage:p}};this.linkDecorations.set([m])}removeLinkDecorations(){this.linkDecorations.clear()}isEnabled(_,p){return this.editor.hasModel()&&_.isNoneOrSingleMouseDown&&_.target.type===6&&(_.hasTriggerModifier||(p?p.keyCodeIsTriggerKey:!1))&&this.languageFeaturesService.definitionProvider.has(this.editor.getModel())}findDefinition(_,p){const m=this.editor.getModel();return m?(0,r.getDefinitionsAtPosition)(this.languageFeaturesService.definitionProvider,m,_,p):Promise.resolve(null)}gotoDefinition(_,p){return this.editor.setPosition(_),this.editor.invokeWithinContext(m=>{const S=!p&&this.editor.getOption(80)&&!this.isInPeekEditor(m);return new a.DefinitionAction({openToSide:p,openInPeek:S,muteMessage:!0},{alias:"",label:"",id:"",precondition:void 0}).run(m,this.editor)})}isInPeekEditor(_){const p=_.get(s.IContextKeyService);return t.PeekContext.inPeekEditor.getValue(p)}dispose(){this.toUnhook.dispose()}};g.ID="editor.contrib.gotodefinitionatposition",g.MAX_SOURCE_PREVIEW_LINES=8,g=Ie([pe(1,n.ITextModelService),pe(2,u.ILanguageService),pe(3,c.ILanguageFeaturesService)],g),e.GotoDefinitionAtPositionEditorContribution=g,(0,C.registerEditorContribution)(g.ID,g),(0,l.registerThemingParticipant)((f,_)=>{const p=f.getColor(d.editorActiveLinkForeground);p&&_.addRule(`.monaco-editor .goto-definition-link { color: ${p} !important; }`)})}),define(oe[762],se([1,0,7,18,10,14,2,43,3,209,170,306,131,314,573,84,45,71,25,15,20]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MarkerHoverParticipant=e.MarkerHover=void 0;const g=y.$;class f{constructor(S,E,L){this.owner=S,this.range=E,this.marker=L}isValidForHoverAnchor(S){return S.type===1&&this.range.startColumn<=S.range.startColumn&&this.range.endColumn>=S.range.endColumn}}e.MarkerHover=f;const _={type:1,filter:{include:i.CodeActionKind.QuickFix},triggerAction:i.CodeActionTriggerSource.QuickFixHover};let p=class{constructor(m,S,E,L){this._editor=m,this._markerDecorationsService=S,this._openerService=E,this._languageFeaturesService=L,this.hoverOrdinal=5,this.recentMarkerCodeActionsInfo=void 0}computeSync(m,S){if(!this._editor.hasModel()||m.type!==1)return[];const E=this._editor.getModel(),L=m.range.startLineNumber,N=E.getLineMaxColumn(L),I=[];for(const R of S){const F=R.range.startLineNumber===L?R.range.startColumn:1,O=R.range.endLineNumber===L?R.range.endColumn:N,x=this._markerDecorationsService.getMarker(E.uri,R);if(!x)continue;const M=new C.Range(m.range.startLineNumber,F,m.range.startLineNumber,O);I.push(new f(this,M,x))}return I}renderHoverParts(m,S){if(!S.length)return w.Disposable.None;const E=new w.DisposableStore;S.forEach(N=>m.fragment.appendChild(this.renderMarkerHover(N,E)));const L=S.length===1?S[0]:S.sort((N,I)=>s.MarkerSeverity.compare(N.marker.severity,I.marker.severity))[0];return this.renderMarkerStatusbar(m,L,E),E}renderMarkerHover(m,S){const E=g("div.hover-row"),L=y.append(E,g("div.marker.hover-contents")),{source:N,message:I,code:R,relatedInformation:F}=m.marker;this._editor.applyFontInfo(L);const O=y.append(L,g("span"));if(O.style.whiteSpace="pre-wrap",O.innerText=I,N||R)if(R&&typeof R!="string"){const x=g("span");if(N){const B=y.append(x,g("span"));B.innerText=N}const M=y.append(x,g("a.code-link"));M.setAttribute("href",R.target.toString()),S.add(y.addDisposableListener(M,"click",B=>{this._openerService.open(R.target,{allowCommands:!0}),B.preventDefault(),B.stopPropagation()}));const P=y.append(M,g("span"));P.innerText=R.value;const A=y.append(L,x);A.style.opacity="0.6",A.style.paddingLeft="6px"}else{const x=y.append(L,g("span"));x.style.opacity="0.6",x.style.paddingLeft="6px",x.innerText=N&&R?`${N}(${R})`:N||`(${R})`}if((0,v.isNonEmptyArray)(F))for(const{message:x,resource:M,startLineNumber:P,startColumn:A}of F){const B=y.append(L,g("div"));B.style.marginTop="8px";const K=y.append(B,g("a"));K.innerText=`${(0,b.basename)(M)}(${P}, ${A}): `,K.style.cursor="pointer",S.add(y.addDisposableListener(K,"click",ee=>{ee.stopPropagation(),ee.preventDefault(),this._openerService&&this._openerService.open(M,{fromUserGesture:!0,editorOptions:{selection:{startLineNumber:P,startColumn:A}}}).catch(D.onUnexpectedError)}));const T=y.append(B,g("span"));T.innerText=x,this._editor.applyFontInfo(T)}return E}renderMarkerStatusbar(m,S,E){if((S.marker.severity===s.MarkerSeverity.Error||S.marker.severity===s.MarkerSeverity.Warning||S.marker.severity===s.MarkerSeverity.Info)&&m.statusBar.addAction({label:o.localize(0,null),commandId:t.NextMarkerAction.ID,run:()=>{var L;m.hide(),(L=t.MarkerController.get(this._editor))===null||L===void 0||L.showAtMarker(S.marker),this._editor.focus()}}),!this._editor.getOption(83)){const L=m.statusBar.append(g("div"));this.recentMarkerCodeActionsInfo&&(s.IMarkerData.makeKey(this.recentMarkerCodeActionsInfo.marker)===s.IMarkerData.makeKey(S.marker)?this.recentMarkerCodeActionsInfo.hasCodeActions||(L.textContent=o.localize(1,null)):this.recentMarkerCodeActionsInfo=void 0);const N=this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?w.Disposable.None:E.add((0,k.disposableTimeout)(()=>L.textContent=o.localize(2,null),200));L.textContent||(L.textContent=String.fromCharCode(160));const I=this.getCodeActions(S.marker);E.add((0,w.toDisposable)(()=>I.cancel())),I.then(R=>{if(N.dispose(),this.recentMarkerCodeActionsInfo={marker:S.marker,hasCodeActions:R.validActions.length>0},!this.recentMarkerCodeActionsInfo.hasCodeActions){R.dispose(),L.textContent=o.localize(3,null);return}L.style.display="none";let F=!1;E.add((0,w.toDisposable)(()=>{F||R.dispose()})),m.statusBar.addAction({label:o.localize(4,null),commandId:n.QuickFixAction.Id,run:O=>{F=!0;const x=n.QuickFixController.get(this._editor),M=y.getDomNodePagePosition(O);m.hide(),x?.showCodeActions(_,R,{x:M.left+6,y:M.top+M.height+6,width:M.width,height:M.height})}})},D.onUnexpectedError)}}getCodeActions(m){return(0,k.createCancelablePromise)(S=>(0,u.getCodeActions)(this._languageFeaturesService.codeActionProvider,this._editor.getModel(),new C.Range(m.startLineNumber,m.startColumn,m.endLineNumber,m.endColumn),_,l.Progress.None,S))}};p=Ie([pe(1,h.IMarkerDecorationsService),pe(2,d.IOpenerService),pe(3,c.ILanguageFeaturesService)],p),e.MarkerHoverParticipant=p,(0,r.registerThemingParticipant)((m,S)=>{const E=m.getColor(a.textLinkForeground);E&&S.addRule(`.monaco-hover .hover-contents a.code-link span { color: ${E}; }`);const L=m.getColor(a.textLinkActiveForeground);L&&S.addRule(`.monaco-hover .hover-contents a.code-link span:hover { color: ${L}; }`)})}),define(oe[317],se([1,0,59,2,12,3,24,37,316,751,657,571,16,9,45,25,15,88,217,762]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ModesHoverController=void 0;let c=class gn{constructor(p,m,S,E,L){this._editor=p,this._instantiationService=m,this._openerService=S,this._languageService=E,this._toUnhook=new v.DisposableStore,this._isMouseDown=!1,this._hoverClicked=!1,this._contentWidget=null,this._glyphWidget=null,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration(N=>{N.hasChanged(55)&&(this._unhookEvents(),this._hookEvents())})}static get(p){return p.getContribution(gn.ID)}_hookEvents(){const p=()=>this._hideWidgets(),m=this._editor.getOption(55);this._isHoverEnabled=m.enabled,this._isHoverSticky=m.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown(S=>this._onEditorMouseDown(S))),this._toUnhook.add(this._editor.onMouseUp(S=>this._onEditorMouseUp(S))),this._toUnhook.add(this._editor.onMouseMove(S=>this._onEditorMouseMove(S))),this._toUnhook.add(this._editor.onKeyDown(S=>this._onKeyDown(S)))):(this._toUnhook.add(this._editor.onMouseMove(S=>this._onEditorMouseMove(S))),this._toUnhook.add(this._editor.onKeyDown(S=>this._onKeyDown(S)))),this._toUnhook.add(this._editor.onMouseLeave(S=>this._onEditorMouseLeave(S))),this._toUnhook.add(this._editor.onDidChangeModel(p)),this._toUnhook.add(this._editor.onDidScrollChange(S=>this._onEditorScrollChanged(S)))}_unhookEvents(){this._toUnhook.clear()}_onEditorScrollChanged(p){(p.scrollTopChanged||p.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(p){this._isMouseDown=!0;const m=p.target;if(m.type===9&&m.detail===h.ContentHoverWidget.ID){this._hoverClicked=!0;return}m.type===12&&m.detail===u.MarginHoverWidget.ID||(m.type!==12&&(this._hoverClicked=!1),this._hideWidgets())}_onEditorMouseUp(p){this._isMouseDown=!1}_onEditorMouseLeave(p){var m;const S=p.event.browserEvent.relatedTarget;!((m=this._contentWidget)===null||m===void 0)&&m.containsNode(S)||this._hideWidgets()}_onEditorMouseMove(p){var m,S,E,L,N;const I=p.target;if(!(this._isMouseDown&&this._hoverClicked||this._isHoverSticky&&I.type===9&&I.detail===h.ContentHoverWidget.ID||this._isHoverSticky&&!(!((S=(m=p.event.browserEvent.view)===null||m===void 0?void 0:m.getSelection())===null||S===void 0)&&S.isCollapsed)||!this._isHoverSticky&&I.type===9&&I.detail===h.ContentHoverWidget.ID&&(!((E=this._contentWidget)===null||E===void 0)&&E.isColorPickerVisible())||this._isHoverSticky&&I.type===12&&I.detail===u.MarginHoverWidget.ID)){if(!this._isHoverEnabled){this._hideWidgets();return}if(this._getOrCreateContentWidget().maybeShowAt(p)){(L=this._glyphWidget)===null||L===void 0||L.hide();return}if(I.type===2&&I.position){(N=this._contentWidget)===null||N===void 0||N.hide(),this._glyphWidget||(this._glyphWidget=new u.MarginHoverWidget(this._editor,this._languageService,this._openerService)),this._glyphWidget.startShowingAt(I.position.lineNumber);return}this._hideWidgets()}}_onKeyDown(p){p.keyCode!==5&&p.keyCode!==6&&p.keyCode!==57&&p.keyCode!==4&&this._hideWidgets()}_hideWidgets(){var p,m,S;this._isMouseDown&&this._hoverClicked&&(!((p=this._contentWidget)===null||p===void 0)&&p.isColorPickerVisible())||(this._hoverClicked=!1,(m=this._glyphWidget)===null||m===void 0||m.hide(),(S=this._contentWidget)===null||S===void 0||S.hide())}_getOrCreateContentWidget(){return this._contentWidget||(this._contentWidget=this._instantiationService.createInstance(h.ContentHoverController,this._editor)),this._contentWidget}isColorPickerVisible(){var p;return((p=this._contentWidget)===null||p===void 0?void 0:p.isColorPickerVisible())||!1}showContentHover(p,m,S){this._getOrCreateContentWidget().startShowingAtRange(p,m,S)}dispose(){var p,m;this._unhookEvents(),this._toUnhook.dispose(),this._didChangeConfigurationHandler.dispose(),(p=this._glyphWidget)===null||p===void 0||p.dispose(),(m=this._contentWidget)===null||m===void 0||m.dispose()}};c.ID="editor.contrib.hover",c=Ie([pe(1,t.IInstantiationService),pe(2,o.IOpenerService),pe(3,b.ILanguageService),pe(4,i.IContextKeyService)],c),e.ModesHoverController=c;class g extends k.EditorAction{constructor(){super({id:"editor.action.showHover",label:n.localize(0,null),alias:"Show Hover",precondition:void 0,kbOpts:{kbExpr:w.EditorContextKeys.editorTextFocus,primary:(0,y.KeyChord)(2089,2087),weight:100}})}run(p,m){if(!m.hasModel())return;const S=c.get(m);if(!S)return;const E=m.getPosition(),L=new D.Range(E.lineNumber,E.column,E.lineNumber,E.column),N=m.getOption(2)===2;S.showContentHover(L,1,N)}}class f extends k.EditorAction{constructor(){super({id:"editor.action.showDefinitionPreviewHover",label:n.localize(1,null),alias:"Show Definition Preview Hover",precondition:void 0})}run(p,m){const S=c.get(m);if(!S)return;const E=m.getPosition();if(!E)return;const L=new D.Range(E.lineNumber,E.column,E.lineNumber,E.column),N=C.GotoDefinitionAtPositionEditorContribution.get(m);N&&N.startFindDefinitionFromCursor(E).then(()=>{S.showContentHover(L,1,!0)})}}(0,k.registerEditorContribution)(c.ID,c),(0,k.registerEditorAction)(g),(0,k.registerEditorAction)(f),l.HoverParticipantRegistry.register(a.MarkdownHoverParticipant),l.HoverParticipantRegistry.register(r.MarkerHoverParticipant),(0,d.registerThemingParticipant)((_,p)=>{const m=_.getColor(s.editorHoverHighlight);m&&p.addRule(`.monaco-editor .hoverHighlight { background-color: ${m}; }`);const S=_.getColor(s.editorHoverBackground);S&&p.addRule(`.monaco-editor .monaco-hover { background-color: ${S}; }`);const E=_.getColor(s.editorHoverBorder);E&&(p.addRule(`.monaco-editor .monaco-hover { border: 1px solid ${E}; }`),p.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${E.transparent(.5)}; }`),p.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${E.transparent(.5)}; }`),p.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${E.transparent(.5)}; }`));const L=_.getColor(s.textLinkForeground);L&&p.addRule(`.monaco-editor .monaco-hover a { color: ${L}; }`);const N=_.getColor(s.textLinkActiveForeground);N&&p.addRule(`.monaco-editor .monaco-hover a:hover { color: ${N}; }`);const I=_.getColor(s.editorHoverForeground);I&&p.addRule(`.monaco-editor .monaco-hover { color: ${I}; }`);const R=_.getColor(s.editorHoverStatusBarBackground);R&&p.addRule(`.monaco-editor .monaco-hover .hover-row .actions { background-color: ${R}; }`);const F=_.getColor(s.textCodeBlockBackground);F&&p.addRule(`.monaco-editor .monaco-hover code { background-color: ${F}; }`)})}),define(oe[763],se([1,0,2,12,3,312,743,317,88]),function(q,e,y,v,k,D,w,b,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColorContribution=void 0;class h extends y.Disposable{constructor(n){super(),this._editor=n,this._register(n.onMouseDown(i=>this.onMouseDown(i)))}dispose(){super.dispose()}onMouseDown(n){const i=n.target;if(i.type!==6||!i.detail.injectedText||i.detail.injectedText.options.attachedData!==D.ColorDecorationInjectedTextMarker||!i.range)return;const t=this._editor.getContribution(b.ModesHoverController.ID);if(t&&!t.isColorPickerVisible()){const o=new k.Range(i.range.startLineNumber,i.range.startColumn+1,i.range.endLineNumber,i.range.endColumn+1);t.showContentHover(o,1,!1)}}}e.ColorContribution=h,h.ID="editor.contrib.colorContribution",(0,v.registerEditorContribution)(h.ID,h),C.HoverParticipantRegistry.register(w.ColorHoverParticipant)}),define(oe[764],se([1,0,7,42,21,12,3,58,219,119,39,26,16,78,9,38]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.goToDefinitionWithLocation=e.showGoToContextMenu=void 0;function d(a,r,c,g){var f;return be(this,void 0,void 0,function*(){const _=a.get(b.ITextModelService),p=a.get(t.IContextMenuService),m=a.get(n.ICommandService),S=a.get(o.IInstantiationService),E=a.get(s.INotificationService);if(yield g.item.resolve(k.CancellationToken.None),!g.part.location)return;const L=g.part.location,N=[],I=new Set(u.MenuRegistry.getMenuItems(u.MenuId.EditorContext).map(F=>(0,u.isIMenuItem)(F)?F.command.id:""));for(const F of D.EditorExtensionsRegistry.getEditorActions())F instanceof C.SymbolNavigationAction&&I.has(F.id)&&N.push(new v.Action(F.id,F.label,void 0,!0,()=>be(this,void 0,void 0,function*(){const O=yield _.createModelReference(L.uri);try{yield S.invokeFunction(F.run.bind(F),r,new C.SymbolNavigationAnchor(O.object.textEditorModel,w.Range.getStartPosition(L.range)))}finally{O.dispose()}})));if(g.part.command){const{command:F}=g.part;N.push(new v.Separator),N.push(new v.Action(F.id,F.title,void 0,!0,()=>be(this,void 0,void 0,function*(){var O;try{yield m.executeCommand(F.id,...(O=F.arguments)!==null&&O!==void 0?O:[])}catch(x){E.notify({severity:s.Severity.Error,source:g.item.provider.displayName,message:x})}})))}const R=r.getOption(117);p.showContextMenu({domForShadowRoot:R&&(f=r.getDomNode())!==null&&f!==void 0?f:void 0,getAnchor:()=>{const F=y.getDomNodePagePosition(c);return{x:F.left,y:F.top+F.height+8}},getActions:()=>N,onHide:()=>{r.focus()},autoSelectFirstItem:!0})})}e.showGoToContextMenu=d;function l(a,r,c,g){return be(this,void 0,void 0,function*(){const f=yield a.get(b.ITextModelService).createModelReference(g.uri);yield c.invokeWithinContext(_=>be(this,void 0,void 0,function*(){const p=r.hasSideBySideModifier,m=_.get(i.IContextKeyService),S=h.PeekContext.inPeekEditor.getValue(m),E=!p&&c.getOption(80)&&!S;return new C.DefinitionAction({openToSide:p,openInPeek:E,muteMessage:!0},{alias:"",label:"",id:"",precondition:void 0}).run(_,c,{model:f.object.textEditorModel,position:w.Range.getStartPosition(g.range)})})),f.dispose()})}e.goToDefinitionWithLocation=l}),define(oe[318],se([1,0,7,18,10,21,14,2,51,19,22,141,36,60,3,28,46,35,70,20,58,205,276,764,26,53,9,38,25,15]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r,c,g,f,_,p,m,S,E,L,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InlayHintsController=e.RenderedInlayHintLabelPart=void 0;class I{constructor(){this._entries=new C.LRUCache(50)}get(A){const B=I._key(A);return this._entries.get(B)}set(A,B){const K=I._key(A);this._entries.set(K,B)}static _key(A){return`${A.uri.toString()}/${A.getVersionId()}`}}const R=(0,S.createDecorator)("IInlayHintsCache");(0,m.registerSingleton)(R,I,!0);class F{constructor(A,B){this.item=A,this.index=B}get part(){const A=this.item.hint.label;return typeof A=="string"?{label:A}:A[this.index]}}e.RenderedInlayHintLabelPart=F;class O{constructor(A,B){this.part=A,this.hasTriggerModifier=B}}let x=class Ai{constructor(A,B,K,T,ee,J,$){this._editor=A,this._languageFeaturesService=B,this._inlayHintsCache=T,this._commandService=ee,this._notificationService=J,this._instaService=$,this._disposables=new b.DisposableStore,this._sessionDisposables=new b.DisposableStore,this._decorationsMetadata=new Map,this._ruleFactory=new n.DynamicCssRules(this._editor),this._activeRenderMode=0,this._debounceInfo=K.for(B.inlayHintsProvider,"InlayHint",{min:25}),this._disposables.add(B.inlayHintsProvider.onDidChange(()=>this._update())),this._disposables.add(A.onDidChangeModel(()=>this._update())),this._disposables.add(A.onDidChangeModelLanguage(()=>this._update())),this._disposables.add(A.onDidChangeConfiguration(j=>{j.hasChanged(129)&&this._update()})),this._update()}static get(A){var B;return(B=A.getContribution(Ai.ID))!==null&&B!==void 0?B:void 0}dispose(){this._sessionDisposables.dispose(),this._removeAllDecorations(),this._disposables.dispose()}_update(){this._sessionDisposables.clear(),this._removeAllDecorations();const A=this._editor.getOption(129);if(A.enabled==="off")return;const B=this._editor.getModel();if(!B||!this._languageFeaturesService.inlayHintsProvider.has(B))return;const K=this._inlayHintsCache.get(B);K&&this._updateHintsDecorators([B.getFullModelRange()],K),this._sessionDisposables.add((0,b.toDisposable)(()=>{B.isDisposed()||this._cacheHintsForFastRestore(B)}));let T;const ee=new Set,J=new k.RunOnceScheduler(()=>be(this,void 0,void 0,function*(){const $=Date.now();T?.dispose(!0),T=new D.CancellationTokenSource;const j=B.onWillDispose(()=>T?.cancel());try{const G=T.token,te=yield f.InlayHintsFragments.create(this._languageFeaturesService.inlayHintsProvider,B,this._getHintsRanges(),G);if(J.delay=this._debounceInfo.update(B,Date.now()-$),G.isCancellationRequested){te.dispose();return}for(const Z of te.provider)typeof Z.onDidChangeInlayHints=="function"&&!ee.has(Z)&&(ee.add(Z),this._sessionDisposables.add(Z.onDidChangeInlayHints(()=>{J.isScheduled()||J.schedule()})));this._sessionDisposables.add(te),this._updateHintsDecorators(te.ranges,te.items),this._cacheHintsForFastRestore(B)}catch(G){(0,w.onUnexpectedError)(G)}finally{T.dispose(),j.dispose()}}),this._debounceInfo.get(B));if(this._sessionDisposables.add(J),this._sessionDisposables.add((0,b.toDisposable)(()=>T?.dispose(!0))),J.schedule(0),this._sessionDisposables.add(this._editor.onDidScrollChange($=>{($.scrollTopChanged||!J.isScheduled())&&J.schedule()})),this._sessionDisposables.add(this._editor.onDidChangeModelContent($=>{const j=Math.max(J.delay,1250);J.schedule(j)})),A.enabled==="on")this._activeRenderMode=0;else{let $,j;A.enabled==="onUnlessPressed"?($=0,j=1):($=1,j=0),this._activeRenderMode=$,this._sessionDisposables.add(y.ModifierKeyEmitter.getInstance().event(G=>{if(!this._editor.hasModel())return;const te=G.altKey&&G.ctrlKey?j:$;if(te!==this._activeRenderMode){this._activeRenderMode=te;const Z=this._editor.getModel(),X=this._copyInlayHintsWithCurrentAnchor(Z);this._updateHintsDecorators([Z.getFullModelRange()],X),J.schedule(0)}}))}this._sessionDisposables.add(this._installDblClickGesture(()=>J.schedule(0))),this._sessionDisposables.add(this._installLinkGesture()),this._sessionDisposables.add(this._installContextMenu())}_installLinkGesture(){const A=new b.DisposableStore,B=A.add(new g.ClickLinkGesture(this._editor)),K=new b.DisposableStore;return A.add(K),A.add(B.onMouseMoveOrRelevantKeyDown(T=>{const[ee]=T,J=this._getInlayHintLabelPart(ee),$=this._editor.getModel();if(!J||!$){K.clear();return}const j=new D.CancellationTokenSource;K.add((0,b.toDisposable)(()=>j.dispose(!0))),J.item.resolve(j.token),this._activeInlayHintPart=J.part.command||J.part.location?new O(J,ee.hasTriggerModifier):void 0;const G=J.item.hint.position.lineNumber,te=new o.Range(G,1,G,$.getLineMaxColumn(G)),Z=this._getInlineHintsForRange(te);this._updateHintsDecorators([te],Z),K.add((0,b.toDisposable)(()=>{this._activeInlayHintPart=void 0,this._updateHintsDecorators([te],Z)}))})),A.add(B.onCancel(()=>K.clear())),A.add(B.onExecute(T=>be(this,void 0,void 0,function*(){const ee=this._getInlayHintLabelPart(T);if(ee){const J=ee.part;J.location?this._instaService.invokeFunction(_.goToDefinitionWithLocation,T,this._editor,J.location):s.Command.is(J.command)&&(yield this._invokeCommand(J.command,ee.item))}}))),A}_getInlineHintsForRange(A){const B=new Set;for(const K of this._decorationsMetadata.values())A.containsRange(K.item.anchor.range)&&B.add(K.item);return Array.from(B)}_installDblClickGesture(A){return this._editor.onMouseUp(B=>be(this,void 0,void 0,function*(){if(B.event.detail!==2)return;const K=this._getInlayHintLabelPart(B);if(K&&(B.event.preventDefault(),yield K.item.resolve(D.CancellationToken.None),(0,v.isNonEmptyArray)(K.item.hint.textEdits))){const T=K.item.hint.textEdits.map(ee=>t.EditOperation.replace(o.Range.lift(ee.range),ee.text));this._editor.executeEdits("inlayHint.default",T),A()}}))}_installContextMenu(){return this._editor.onContextMenu(A=>be(this,void 0,void 0,function*(){if(!(A.event.target instanceof HTMLElement))return;const B=this._getInlayHintLabelPart(A);B&&(yield this._instaService.invokeFunction(_.showGoToContextMenu,this._editor,A.event.target,B))}))}_getInlayHintLabelPart(A){var B;if(A.target.type!==6)return;const K=(B=A.target.detail.injectedText)===null||B===void 0?void 0:B.options;if(K instanceof l.ModelDecorationInjectedTextOptions&&K?.attachedData instanceof F)return K.attachedData}_invokeCommand(A,B){var K;return be(this,void 0,void 0,function*(){try{yield this._commandService.executeCommand(A.id,...(K=A.arguments)!==null&&K!==void 0?K:[])}catch(T){this._notificationService.notify({severity:E.Severity.Error,source:B.provider.displayName,message:T})}})}_cacheHintsForFastRestore(A){const B=this._copyInlayHintsWithCurrentAnchor(A);this._inlayHintsCache.set(A,B)}_copyInlayHintsWithCurrentAnchor(A){const B=new Map;for(const[K,T]of this._decorationsMetadata){if(B.has(T.item))continue;const ee=A.getDecorationRange(K);if(ee){const J=new f.InlayHintAnchor(ee,T.item.anchor.direction),$=T.item.with({anchor:J});B.set(T.item,$)}}return Array.from(B.values())}_getHintsRanges(){const B=this._editor.getModel(),K=this._editor.getVisibleRangesPlusViewportAboveBelow(),T=[];for(const ee of K.sort(o.Range.compareRangesUsingStarts)){const J=B.validateRange(new o.Range(ee.startLineNumber-30,ee.startColumn,ee.endLineNumber+30,ee.endColumn));T.length===0||!o.Range.areIntersectingOrTouching(T[T.length-1],J)?T.push(J):T[T.length-1]=o.Range.plusRange(T[T.length-1],J)}return T}_updateHintsDecorators(A,B){var K,T;const ee=[],J=(H,ae,Y,U,le)=>{const z={content:Y,inlineClassNameAffectsLetterSpacing:!0,inlineClassName:ae.className,cursorStops:U,attachedData:le};ee.push({item:H,classNameRef:ae,decoration:{range:H.anchor.range,options:{description:"InlayHint",showIfCollapsed:H.anchor.range.isEmpty(),collapseOnReplaceEdit:!H.anchor.range.isEmpty(),stickiness:0,[H.anchor.direction]:this._activeRenderMode===0?z:void 0}}})},$=(H,ae)=>{const Y=this._ruleFactory.createClassNameRef({width:`${j/3|0}px`,display:"inline-block"});J(H,Y,"\u200A",ae?d.InjectedTextCursorStops.Right:d.InjectedTextCursorStops.None)},{fontSize:j,fontFamily:G,padding:te,isUniform:Z}=this._getLayoutInfo(),X="--code-editorInlayHintsFontFamily";this._editor.getContainerDomNode().style.setProperty(X,G);for(const H of B){H.hint.paddingLeft&&$(H,!1);const ae=typeof H.hint.label=="string"?[{label:H.hint.label}]:H.hint.label;for(let Y=0;Y<ae.length;Y++){const U=ae[Y],le=Y===0,z=Y===ae.length-1,Q={fontSize:`${j}px`,fontFamily:`var(${X}), ${i.EDITOR_FONT_DEFAULTS.fontFamily}`,verticalAlign:Z?"baseline":"middle"};(0,v.isNonEmptyArray)(H.hint.textEdits)&&(Q.cursor="default"),this._fillInColors(Q,H.hint),(U.command||U.location)&&((K=this._activeInlayHintPart)===null||K===void 0?void 0:K.part.item)===H&&this._activeInlayHintPart.part.index===Y&&(Q.textDecoration="underline",this._activeInlayHintPart.hasTriggerModifier&&(Q.color=(0,N.themeColorFromId)(L.editorActiveLinkForeground),Q.cursor="pointer")),te&&(le&&z?(Q.padding=`1px ${Math.max(1,j/4)|0}px`,Q.borderRadius=`${j/4|0}px`):le?(Q.padding=`1px 0 1px ${Math.max(1,j/4)|0}px`,Q.borderRadius=`${j/4|0}px 0 0 ${j/4|0}px`):z?(Q.padding=`1px ${Math.max(1,j/4)|0}px 1px 0`,Q.borderRadius=`0 ${j/4|0}px ${j/4|0}px 0`):Q.padding="1px 0 1px 0"),J(H,this._ruleFactory.createClassNameRef(Q),M(U.label),z&&!H.hint.paddingRight?d.InjectedTextCursorStops.Right:d.InjectedTextCursorStops.None,new F(H,Y))}if(H.hint.paddingRight&&$(H,!0),ee.length>Ai._MAX_DECORATORS)break}const ie=[];for(const H of A)for(const{id:ae}of(T=this._editor.getDecorationsInRange(H))!==null&&T!==void 0?T:[]){const Y=this._decorationsMetadata.get(ae);Y&&(ie.push(ae),Y.classNameRef.dispose(),this._decorationsMetadata.delete(ae))}this._editor.changeDecorations(H=>{const ae=H.deltaDecorations(ie,ee.map(Y=>Y.decoration));for(let Y=0;Y<ae.length;Y++){const U=ee[Y];this._decorationsMetadata.set(ae[Y],U)}})}_fillInColors(A,B){B.kind===s.InlayHintKind.Parameter?(A.backgroundColor=(0,N.themeColorFromId)(L.editorInlayHintParameterBackground),A.color=(0,N.themeColorFromId)(L.editorInlayHintParameterForeground)):B.kind===s.InlayHintKind.Type?(A.backgroundColor=(0,N.themeColorFromId)(L.editorInlayHintTypeBackground),A.color=(0,N.themeColorFromId)(L.editorInlayHintTypeForeground)):(A.backgroundColor=(0,N.themeColorFromId)(L.editorInlayHintBackground),A.color=(0,N.themeColorFromId)(L.editorInlayHintForeground))}_getLayoutInfo(){const A=this._editor.getOption(129),B=A.padding,K=this._editor.getOption(48),T=this._editor.getOption(45);let ee=A.fontSize;(!ee||ee<5||ee>K)&&(ee=K);const J=A.fontFamily||T;return{fontSize:ee,fontFamily:J,padding:B,isUniform:!B&&J===T&&ee===K}}_removeAllDecorations(){this._editor.removeDecorations(Array.from(this._decorationsMetadata.keys()));for(const A of this._decorationsMetadata.values())A.classNameRef.dispose();this._decorationsMetadata.clear()}};x.ID="editor.contrib.InlayHints",x._MAX_DECORATORS=1500,x=Ie([pe(1,r.ILanguageFeaturesService),pe(2,a.ILanguageFeatureDebounceService),pe(3,R),pe(4,p.ICommandService),pe(5,E.INotificationService),pe(6,S.IInstantiationService)],x),e.InlayHintsController=x;function M(P){const A="\xA0";return P.replace(/[ \t]/g,A)}p.CommandsRegistry.registerCommand("_executeInlayHintProvider",(P,...A)=>be(void 0,void 0,void 0,function*(){const[B,K]=A;(0,h.assertType)(u.URI.isUri(B)),(0,h.assertType)(o.Range.isIRange(K));const{inlayHintsProvider:T}=P.get(r.ILanguageFeaturesService),ee=yield P.get(c.ITextModelService).createModelReference(B);try{const J=yield f.InlayHintsFragments.create(T,ee.object.textEditorModel,[o.Range.lift(K)],D.CancellationToken.None),$=J.items.map(j=>j.hint);return setTimeout(()=>J.dispose(),0),$}finally{ee.dispose()}}))});var Gt=this&&this.__asyncValues||function(q){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=q[Symbol.asyncIterator],y;return e?e.call(q):(q=typeof __values=="function"?__values(q):q[Symbol.iterator](),y={},v("next"),v("throw"),v("return"),y[Symbol.asyncIterator]=function(){return this},y);function v(D){y[D]=q[D]&&function(w){return new Promise(function(b,C){w=q[D](w),k(b,C,w.done,w.value)})}}function k(D,w,b,C){Promise.resolve(C).then(function(h){D({value:h,done:b})},w)}};define(oe[765],se([1,0,10,64,11,35,88,37,58,305,217,318,30,45,20,576,17,276,18]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InlayHintsHover=void 0;class r extends w.HoverForeignElementAnchor{constructor(f,_){super(10,_,f.item.anchor.range),this.part=f}}let c=class extends u.MarkdownHoverParticipant{constructor(g,f,_,p,m,S){super(g,f,_,p,S),this._resolverService=m,this.hoverOrdinal=6}suggestHoverAnchor(g){var f;if(!n.InlayHintsController.get(this._editor)||g.target.type!==6)return null;const _=(f=g.target.detail.injectedText)===null||f===void 0?void 0:f.options;return _ instanceof D.ModelDecorationInjectedTextOptions&&_.attachedData instanceof n.RenderedInlayHintLabelPart?new r(_.attachedData,this):null}computeSync(){return[]}computeAsync(g,f,_){return g instanceof r?new y.AsyncIterableObject(p=>be(this,void 0,void 0,function*(){var m,S;const{part:E}=g;if(yield E.item.resolve(_),_.isCancellationRequested)return;let L;typeof E.item.hint.tooltip=="string"?L=new v.MarkdownString().appendText(E.item.hint.tooltip):E.item.hint.tooltip&&(L=E.item.hint.tooltip),L&&p.emitOne(new u.MarkdownHover(this,g.range,[L],0)),(0,a.isNonEmptyArray)(E.item.hint.textEdits)&&p.emitOne(new u.MarkdownHover(this,g.range,[new v.MarkdownString().appendText((0,s.localize)(0,null))],10001));let N;if(typeof E.part.tooltip=="string"?N=new v.MarkdownString().appendText(E.part.tooltip):E.part.tooltip&&(N=E.part.tooltip),N&&p.emitOne(new u.MarkdownHover(this,g.range,[N],1)),E.part.location||E.part.command){let O;const x=this._editor.getOption(72)==="altKey"?d.isMacintosh?(0,s.localize)(1,null):(0,s.localize)(2,null):d.isMacintosh?(0,s.localize)(3,null):(0,s.localize)(4,null);E.part.location&&E.part.command?O=new v.MarkdownString().appendText((0,s.localize)(5,null,x)):E.part.location?O=new v.MarkdownString().appendText((0,s.localize)(6,null,x)):E.part.command&&(O=new v.MarkdownString(`[${(0,s.localize)(7,null)}](${(0,l.asCommandLink)(E.part.command)} "${E.part.command.title}") (${x})`,{isTrusted:!0})),O&&p.emitOne(new u.MarkdownHover(this,g.range,[O],1e4))}const I=yield this._resolveInlayHintLabelPartHover(E,_);try{for(var R=Gt(I),F;F=yield R.next(),!F.done;){const O=F.value;p.emitOne(O)}}catch(O){m={error:O}}finally{try{F&&!F.done&&(S=R.return)&&(yield S.call(R))}finally{if(m)throw m.error}}})):y.AsyncIterableObject.EMPTY}_resolveInlayHintLabelPartHover(g,f){return be(this,void 0,void 0,function*(){if(!g.part.location)return y.AsyncIterableObject.EMPTY;const{uri:_,range:p}=g.part.location,m=yield this._resolverService.createModelReference(_);try{const S=m.object.textEditorModel;return this._languageFeaturesService.hoverProvider.has(S)?(0,h.getHover)(this._languageFeaturesService.hoverProvider,S,new k.Position(p.startLineNumber,p.startColumn),f).filter(E=>!(0,v.isEmptyMarkdownString)(E.hover.contents)).map(E=>new u.MarkdownHover(this,g.item.anchor.range,E.hover.contents,2+E.ordinal)):y.AsyncIterableObject.EMPTY}finally{m.dispose()}})}};c=Ie([pe(1,b.ILanguageService),pe(2,t.IOpenerService),pe(3,i.IConfigurationService),pe(4,C.ITextModelService),pe(5,o.ILanguageFeaturesService)],c),e.InlayHintsHover=c}),define(oe[766],se([1,0,12,88,318,765]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(0,y.registerEditorContribution)(k.InlayHintsController.ID,k.InlayHintsController),v.HoverParticipantRegistry.register(D.InlayHintsHover)}),define(oe[767],se([1,0,12,29,315,30,16,9,38,79]),function(q,e,y,v,k,D,w,b,C,h){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StandaloneReferencesController=void 0;let u=class extends k.ReferencesController{constructor(n,i,t,o,s,d,l){super(!0,n,i,t,o,s,d,l)}};u=Ie([pe(1,w.IContextKeyService),pe(2,v.ICodeEditorService),pe(3,C.INotificationService),pe(4,b.IInstantiationService),pe(5,h.IStorageService),pe(6,D.IConfigurationService)],u),e.StandaloneReferencesController=u,(0,y.registerEditorContribution)(k.ReferencesController.ID,u)}),define(oe[768],se([1,0,14,2,52,81,622,139,53,38,172]),function(q,e,y,v,k,D,w,b,C,h,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UndoRedoService=void 0;const n=!1;function i(_){return _.scheme===k.Schemas.file?_.fsPath:_.path}let t=0;class o{constructor(p,m,S,E,L,N,I){this.id=++t,this.type=0,this.actual=p,this.label=p.label,this.confirmBeforeUndo=p.confirmBeforeUndo||!1,this.resourceLabel=m,this.strResource=S,this.resourceLabels=[this.resourceLabel],this.strResources=[this.strResource],this.groupId=E,this.groupOrder=L,this.sourceId=N,this.sourceOrder=I,this.isValid=!0}setValid(p){this.isValid=p}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.isValid?" VALID":"INVALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class s{constructor(p,m){this.resourceLabel=p,this.reason=m}}class d{constructor(){this.elements=new Map}createMessage(){const p=[],m=[];for(const[,E]of this.elements)(E.reason===0?p:m).push(E.resourceLabel);const S=[];return p.length>0&&S.push(w.localize(0,null,p.join(", "))),m.length>0&&S.push(w.localize(1,null,m.join(", "))),S.join(` `)}get size(){return this.elements.size}has(p){return this.elements.has(p)}set(p,m){this.elements.set(p,m)}delete(p){return this.elements.delete(p)}}class l{constructor(p,m,S,E,L,N,I){this.id=++t,this.type=1,this.actual=p,this.label=p.label,this.confirmBeforeUndo=p.confirmBeforeUndo||!1,this.resourceLabels=m,this.strResources=S,this.groupId=E,this.groupOrder=L,this.sourceId=N,this.sourceOrder=I,this.removedResources=null,this.invalidatedResources=null}canSplit(){return typeof this.actual.split=="function"}removeResource(p,m,S){this.removedResources||(this.removedResources=new d),this.removedResources.has(m)||this.removedResources.set(m,new s(p,S))}setValid(p,m,S){S?this.invalidatedResources&&(this.invalidatedResources.delete(m),this.invalidatedResources.size===0&&(this.invalidatedResources=null)):(this.invalidatedResources||(this.invalidatedResources=new d),this.invalidatedResources.has(m)||this.invalidatedResources.set(m,new s(p,0)))}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.invalidatedResources?"INVALID":" VALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class a{constructor(p,m){this.resourceLabel=p,this.strResource=m,this._past=[],this._future=[],this.locked=!1,this.versionId=1}dispose(){for(const p of this._past)p.type===1&&p.removeResource(this.resourceLabel,this.strResource,0);for(const p of this._future)p.type===1&&p.removeResource(this.resourceLabel,this.strResource,0);this.versionId++}toString(){const p=[];p.push(`* ${this.strResource}:`);for(let m=0;m<this._past.length;m++)p.push(` * [UNDO] ${this._past[m]}`);for(let m=this._future.length-1;m>=0;m--)p.push(` * [REDO] ${this._future[m]}`);return p.join(` `)}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(p,m){p.type===1?p.setValid(this.resourceLabel,this.strResource,m):p.setValid(m)}setElementsValidFlag(p,m){for(const S of this._past)m(S.actual)&&this._setElementValidFlag(S,p);for(const S of this._future)m(S.actual)&&this._setElementValidFlag(S,p)}pushElement(p){for(const m of this._future)m.type===1&&m.removeResource(this.resourceLabel,this.strResource,1);this._future=[],this._past.push(p),this.versionId++}createSnapshot(p){const m=[];for(let S=0,E=this._past.length;S<E;S++)m.push(this._past[S].id);for(let S=this._future.length-1;S>=0;S--)m.push(this._future[S].id);return new u.ResourceEditStackSnapshot(p,m)}restoreSnapshot(p){const m=p.elements.length;let S=!0,E=0,L=-1;for(let I=0,R=this._past.length;I<R;I++,E++){const F=this._past[I];S&&(E>=m||F.id!==p.elements[E])&&(S=!1,L=0),!S&&F.type===1&&F.removeResource(this.resourceLabel,this.strResource,0)}let N=-1;for(let I=this._future.length-1;I>=0;I--,E++){const R=this._future[I];S&&(E>=m||R.id!==p.elements[E])&&(S=!1,N=I),!S&&R.type===1&&R.removeResource(this.resourceLabel,this.strResource,0)}L!==-1&&(this._past=this._past.slice(0,L)),N!==-1&&(this._future=this._future.slice(N+1)),this.versionId++}getElements(){const p=[],m=[];for(const S of this._past)p.push(S.actual);for(const S of this._future)m.push(S.actual);return{past:p,future:m}}getClosestPastElement(){return this._past.length===0?null:this._past[this._past.length-1]}getSecondClosestPastElement(){return this._past.length<2?null:this._past[this._past.length-2]}getClosestFutureElement(){return this._future.length===0?null:this._future[this._future.length-1]}hasPastElements(){return this._past.length>0}hasFutureElements(){return this._future.length>0}splitPastWorkspaceElement(p,m){for(let S=this._past.length-1;S>=0;S--)if(this._past[S]===p){m.has(this.strResource)?this._past[S]=m.get(this.strResource):this._past.splice(S,1);break}this.versionId++}splitFutureWorkspaceElement(p,m){for(let S=this._future.length-1;S>=0;S--)if(this._future[S]===p){m.has(this.strResource)?this._future[S]=m.get(this.strResource):this._future.splice(S,1);break}this.versionId++}moveBackward(p){this._past.pop(),this._future.push(p),this.versionId++}moveForward(p){this._future.pop(),this._past.push(p),this.versionId++}}class r{constructor(p){this.editStacks=p,this._versionIds=[];for(let m=0,S=this.editStacks.length;m<S;m++)this._versionIds[m]=this.editStacks[m].versionId}isValid(){for(let p=0,m=this.editStacks.length;p<m;p++)if(this._versionIds[p]!==this.editStacks[p].versionId)return!1;return!0}}const c=new a("","");c.locked=!0;let g=class{constructor(_,p){this._dialogService=_,this._notificationService=p,this._editStacks=new Map,this._uriComparisonKeyComputers=[]}getUriComparisonKey(_){for(const p of this._uriComparisonKeyComputers)if(p[0]===_.scheme)return p[1].getComparisonKey(_);return _.toString()}_print(_){console.log("------------------------------------"),console.log(`AFTER ${_}: `);const p=[];for(const m of this._editStacks)p.push(m[1].toString());console.log(p.join(` `))}pushElement(_,p=u.UndoRedoGroup.None,m=u.UndoRedoSource.None){if(_.type===0){const S=i(_.resource),E=this.getUriComparisonKey(_.resource);this._pushElement(new o(_,S,E,p.id,p.nextOrder(),m.id,m.nextOrder()))}else{const S=new Set,E=[],L=[];for(const N of _.resources){const I=i(N),R=this.getUriComparisonKey(N);S.has(R)||(S.add(R),E.push(I),L.push(R))}E.length===1?this._pushElement(new o(_,E[0],L[0],p.id,p.nextOrder(),m.id,m.nextOrder())):this._pushElement(new l(_,E,L,p.id,p.nextOrder(),m.id,m.nextOrder()))}n&&this._print("pushElement")}_pushElement(_){for(let p=0,m=_.strResources.length;p<m;p++){const S=_.resourceLabels[p],E=_.strResources[p];let L;this._editStacks.has(E)?L=this._editStacks.get(E):(L=new a(S,E),this._editStacks.set(E,L)),L.pushElement(_)}}getLastElement(_){const p=this.getUriComparisonKey(_);if(this._editStacks.has(p)){const m=this._editStacks.get(p);if(m.hasFutureElements())return null;const S=m.getClosestPastElement();return S?S.actual:null}return null}_splitPastWorkspaceElement(_,p){const m=_.actual.split(),S=new Map;for(const E of m){const L=i(E.resource),N=this.getUriComparisonKey(E.resource),I=new o(E,L,N,0,0,0,0);S.set(I.strResource,I)}for(const E of _.strResources)p&&p.has(E)||this._editStacks.get(E).splitPastWorkspaceElement(_,S)}_splitFutureWorkspaceElement(_,p){const m=_.actual.split(),S=new Map;for(const E of m){const L=i(E.resource),N=this.getUriComparisonKey(E.resource),I=new o(E,L,N,0,0,0,0);S.set(I.strResource,I)}for(const E of _.strResources)p&&p.has(E)||this._editStacks.get(E).splitFutureWorkspaceElement(_,S)}removeElements(_){const p=typeof _=="string"?_:this.getUriComparisonKey(_);this._editStacks.has(p)&&(this._editStacks.get(p).dispose(),this._editStacks.delete(p)),n&&this._print("removeElements")}setElementsValidFlag(_,p,m){const S=this.getUriComparisonKey(_);this._editStacks.has(S)&&this._editStacks.get(S).setElementsValidFlag(p,m),n&&this._print("setElementsValidFlag")}createSnapshot(_){const p=this.getUriComparisonKey(_);return this._editStacks.has(p)?this._editStacks.get(p).createSnapshot(_):new u.ResourceEditStackSnapshot(_,[])}restoreSnapshot(_){const p=this.getUriComparisonKey(_.resource);if(this._editStacks.has(p)){const m=this._editStacks.get(p);m.restoreSnapshot(_),!m.hasPastElements()&&!m.hasFutureElements()&&(m.dispose(),this._editStacks.delete(p))}n&&this._print("restoreSnapshot")}getElements(_){const p=this.getUriComparisonKey(_);return this._editStacks.has(p)?this._editStacks.get(p).getElements():{past:[],future:[]}}_findClosestUndoElementWithSource(_){if(!_)return[null,null];let p=null,m=null;for(const[S,E]of this._editStacks){const L=E.getClosestPastElement();!L||L.sourceId===_&&(!p||L.sourceOrder>p.sourceOrder)&&(p=L,m=S)}return[p,m]}canUndo(_){if(_ instanceof u.UndoRedoSource){const[,m]=this._findClosestUndoElementWithSource(_.id);return!!m}const p=this.getUriComparisonKey(_);return this._editStacks.has(p)?this._editStacks.get(p).hasPastElements():!1}_onError(_,p){(0,y.onUnexpectedError)(_);for(const m of p.strResources)this.removeElements(m);this._notificationService.error(_)}_acquireLocks(_){for(const p of _.editStacks)if(p.locked)throw new Error("Cannot acquire edit stack lock");for(const p of _.editStacks)p.locked=!0;return()=>{for(const p of _.editStacks)p.locked=!1}}_safeInvokeWithLocks(_,p,m,S,E){const L=this._acquireLocks(m);let N;try{N=p()}catch(I){return L(),S.dispose(),this._onError(I,_)}return N?N.then(()=>(L(),S.dispose(),E()),I=>(L(),S.dispose(),this._onError(I,_))):(L(),S.dispose(),E())}_invokeWorkspacePrepare(_){return be(this,void 0,void 0,function*(){if(typeof _.actual.prepareUndoRedo>"u")return v.Disposable.None;const p=_.actual.prepareUndoRedo();return typeof p>"u"?v.Disposable.None:p})}_invokeResourcePrepare(_,p){if(_.actual.type!==1||typeof _.actual.prepareUndoRedo>"u")return p(v.Disposable.None);const m=_.actual.prepareUndoRedo();return m?(0,v.isDisposable)(m)?p(m):m.then(S=>p(S)):p(v.Disposable.None)}_getAffectedEditStacks(_){const p=[];for(const m of _.strResources)p.push(this._editStacks.get(m)||c);return new r(p)}_tryToSplitAndUndo(_,p,m,S){if(p.canSplit())return this._splitPastWorkspaceElement(p,m),this._notificationService.warn(S),new f(this._undo(_,0,!0));for(const E of p.strResources)this.removeElements(E);return this._notificationService.warn(S),new f}_checkWorkspaceUndo(_,p,m,S){if(p.removedResources)return this._tryToSplitAndUndo(_,p,p.removedResources,w.localize(2,null,p.label,p.removedResources.createMessage()));if(S&&p.invalidatedResources)return this._tryToSplitAndUndo(_,p,p.invalidatedResources,w.localize(3,null,p.label,p.invalidatedResources.createMessage()));const E=[];for(const N of m.editStacks)N.getClosestPastElement()!==p&&E.push(N.resourceLabel);if(E.length>0)return this._tryToSplitAndUndo(_,p,null,w.localize(4,null,p.label,E.join(", ")));const L=[];for(const N of m.editStacks)N.locked&&L.push(N.resourceLabel);return L.length>0?this._tryToSplitAndUndo(_,p,null,w.localize(5,null,p.label,L.join(", "))):m.isValid()?null:this._tryToSplitAndUndo(_,p,null,w.localize(6,null,p.label))}_workspaceUndo(_,p,m){const S=this._getAffectedEditStacks(p),E=this._checkWorkspaceUndo(_,p,S,!1);return E?E.returnValue:this._confirmAndExecuteWorkspaceUndo(_,p,S,m)}_isPartOfUndoGroup(_){if(!_.groupId)return!1;for(const[,p]of this._editStacks){const m=p.getClosestPastElement();if(m){if(m===_){const S=p.getSecondClosestPastElement();if(S&&S.groupId===_.groupId)return!0}if(m.groupId===_.groupId)return!0}}return!1}_confirmAndExecuteWorkspaceUndo(_,p,m,S){return be(this,void 0,void 0,function*(){if(p.canSplit()&&!this._isPartOfUndoGroup(p)){const N=yield this._dialogService.show(D.default.Info,w.localize(7,null,p.label),[w.localize(8,null,m.editStacks.length),w.localize(9,null),w.localize(10,null)],{cancelId:2});if(N.choice===2)return;if(N.choice===1)return this._splitPastWorkspaceElement(p,null),this._undo(_,0,!0);const I=this._checkWorkspaceUndo(_,p,m,!1);if(I)return I.returnValue;S=!0}let E;try{E=yield this._invokeWorkspacePrepare(p)}catch(N){return this._onError(N,p)}const L=this._checkWorkspaceUndo(_,p,m,!0);if(L)return E.dispose(),L.returnValue;for(const N of m.editStacks)N.moveBackward(p);return this._safeInvokeWithLocks(p,()=>p.actual.undo(),m,E,()=>this._continueUndoInGroup(p.groupId,S))})}_resourceUndo(_,p,m){if(!p.isValid){_.flushAllElements();return}if(_.locked){const S=w.localize(11,null,p.label);this._notificationService.warn(S);return}return this._invokeResourcePrepare(p,S=>(_.moveBackward(p),this._safeInvokeWithLocks(p,()=>p.actual.undo(),new r([_]),S,()=>this._continueUndoInGroup(p.groupId,m))))}_findClosestUndoElementInGroup(_){if(!_)return[null,null];let p=null,m=null;for(const[S,E]of this._editStacks){const L=E.getClosestPastElement();!L||L.groupId===_&&(!p||L.groupOrder>p.groupOrder)&&(p=L,m=S)}return[p,m]}_continueUndoInGroup(_,p){if(!_)return;const[,m]=this._findClosestUndoElementInGroup(_);if(m)return this._undo(m,0,p)}undo(_){if(_ instanceof u.UndoRedoSource){const[,p]=this._findClosestUndoElementWithSource(_.id);return p?this._undo(p,_.id,!1):void 0}return typeof _=="string"?this._undo(_,0,!1):this._undo(this.getUriComparisonKey(_),0,!1)}_undo(_,p=0,m){if(!this._editStacks.has(_))return;const S=this._editStacks.get(_),E=S.getClosestPastElement();if(E){if(E.groupId){const[L,N]=this._findClosestUndoElementInGroup(E.groupId);if(E!==L&&N)return this._undo(N,p,m)}if((E.sourceId!==p||E.confirmBeforeUndo)&&!m)return this._confirmAndContinueUndo(_,p,E);try{return E.type===1?this._workspaceUndo(_,E,m):this._resourceUndo(S,E,m)}finally{n&&this._print("undo")}}}_confirmAndContinueUndo(_,p,m){return be(this,void 0,void 0,function*(){if((yield this._dialogService.show(D.default.Info,w.localize(12,null,m.label),[w.localize(13,null),w.localize(14,null)],{cancelId:1})).choice!==1)return this._undo(_,p,!0)})}_findClosestRedoElementWithSource(_){if(!_)return[null,null];let p=null,m=null;for(const[S,E]of this._editStacks){const L=E.getClosestFutureElement();!L||L.sourceId===_&&(!p||L.sourceOrder<p.sourceOrder)&&(p=L,m=S)}return[p,m]}canRedo(_){if(_ instanceof u.UndoRedoSource){const[,m]=this._findClosestRedoElementWithSource(_.id);return!!m}const p=this.getUriComparisonKey(_);return this._editStacks.has(p)?this._editStacks.get(p).hasFutureElements():!1}_tryToSplitAndRedo(_,p,m,S){if(p.canSplit())return this._splitFutureWorkspaceElement(p,m),this._notificationService.warn(S),new f(this._redo(_));for(const E of p.strResources)this.removeElements(E);return this._notificationService.warn(S),new f}_checkWorkspaceRedo(_,p,m,S){if(p.removedResources)return this._tryToSplitAndRedo(_,p,p.removedResources,w.localize(15,null,p.label,p.removedResources.createMessage()));if(S&&p.invalidatedResources)return this._tryToSplitAndRedo(_,p,p.invalidatedResources,w.localize(16,null,p.label,p.invalidatedResources.createMessage()));const E=[];for(const N of m.editStacks)N.getClosestFutureElement()!==p&&E.push(N.resourceLabel);if(E.length>0)return this._tryToSplitAndRedo(_,p,null,w.localize(17,null,p.label,E.join(", ")));const L=[];for(const N of m.editStacks)N.locked&&L.push(N.resourceLabel);return L.length>0?this._tryToSplitAndRedo(_,p,null,w.localize(18,null,p.label,L.join(", "))):m.isValid()?null:this._tryToSplitAndRedo(_,p,null,w.localize(19,null,p.label))}_workspaceRedo(_,p){const m=this._getAffectedEditStacks(p),S=this._checkWorkspaceRedo(_,p,m,!1);return S?S.returnValue:this._executeWorkspaceRedo(_,p,m)}_executeWorkspaceRedo(_,p,m){return be(this,void 0,void 0,function*(){let S;try{S=yield this._invokeWorkspacePrepare(p)}catch(L){return this._onError(L,p)}const E=this._checkWorkspaceRedo(_,p,m,!0);if(E)return S.dispose(),E.returnValue;for(const L of m.editStacks)L.moveForward(p);return this._safeInvokeWithLocks(p,()=>p.actual.redo(),m,S,()=>this._continueRedoInGroup(p.groupId))})}_resourceRedo(_,p){if(!p.isValid){_.flushAllElements();return}if(_.locked){const m=w.localize(20,null,p.label);this._notificationService.warn(m);return}return this._invokeResourcePrepare(p,m=>(_.moveForward(p),this._safeInvokeWithLocks(p,()=>p.actual.redo(),new r([_]),m,()=>this._continueRedoInGroup(p.groupId))))}_findClosestRedoElementInGroup(_){if(!_)return[null,null];let p=null,m=null;for(const[S,E]of this._editStacks){const L=E.getClosestFutureElement();!L||L.groupId===_&&(!p||L.groupOrder<p.groupOrder)&&(p=L,m=S)}return[p,m]}_continueRedoInGroup(_){if(!_)return;const[,p]=this._findClosestRedoElementInGroup(_);if(p)return this._redo(p)}redo(_){if(_ instanceof u.UndoRedoSource){const[,p]=this._findClosestRedoElementWithSource(_.id);return p?this._redo(p):void 0}return typeof _=="string"?this._redo(_):this._redo(this.getUriComparisonKey(_))}_redo(_){if(!this._editStacks.has(_))return;const p=this._editStacks.get(_),m=p.getClosestFutureElement();if(m){if(m.groupId){const[S,E]=this._findClosestRedoElementInGroup(m.groupId);if(m!==S&&E)return this._redo(E)}try{return m.type===1?this._workspaceRedo(_,m):this._resourceRedo(p,m)}finally{n&&this._print("redo")}}}};g=Ie([pe(0,b.IDialogService),pe(1,h.INotificationService)],g),e.UndoRedoService=g;class f{constructor(p){this.returnValue=p}}(0,C.registerSingleton)(u.IUndoRedoService,g)}),define(oe[176],se([1,0,623,51,22,9]),function(q,e,y,v,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WORKSPACE_FILTER=e.WORKSPACE_EXTENSION=e.WorkspaceFolder=e.Workspace=e.toWorkspaceIdentifier=e.isSingleFolderWorkspaceIdentifier=e.IWorkspaceContextService=void 0,e.IWorkspaceContextService=(0,D.createDecorator)("contextService");function w(u){const n=u;return typeof n?.id=="string"&&k.URI.isUri(n.uri)}e.isSingleFolderWorkspaceIdentifier=w;function b(u){if(u.configuration)return{id:u.id,configPath:u.configuration};if(u.folders.length===1)return{id:u.id,uri:u.folders[0].uri}}e.toWorkspaceIdentifier=b;class C{constructor(n,i,t,o,s){this._id=n,this._transient=t,this._configuration=o,this._ignorePathCasing=s,this._foldersMap=v.TernarySearchTree.forUris(this._ignorePathCasing,()=>!0),this.folders=i}get folders(){return this._folders}set folders(n){this._folders=n,this.updateFoldersMap()}get id(){return this._id}get transient(){return this._transient}get configuration(){return this._configuration}set configuration(n){this._configuration=n}getFolder(n){return n&&this._foldersMap.findSubstr(n)||null}updateFoldersMap(){this._foldersMap=v.TernarySearchTree.forUris(this._ignorePathCasing,()=>!0);for(const n of this.folders)this._foldersMap.set(n.uri,n)}toJSON(){return{id:this.id,folders:this.folders,transient:this.transient,configuration:this.configuration}}}e.Workspace=C;class h{constructor(n,i){this.raw=i,this.uri=n.uri,this.index=n.index,this.name=n.name}toJSON(){return{uri:this.uri,name:this.name,index:this.index}}}e.WorkspaceFolder=h,e.WORKSPACE_EXTENSION="code-workspace",e.WORKSPACE_FILTER=[{name:(0,y.localize)(0,null),extensions:[e.WORKSPACE_EXTENSION]}]}),define(oe[769],se([1,0,477,90,43,8,223,32,89,595,176]),function(q,e,y,v,k,D,w,b,C,h,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RandomBasedVariableResolver=e.WorkspaceBasedVariableResolver=e.TimeBasedVariableResolver=e.CommentBasedVariableResolver=e.ClipboardBasedVariableResolver=e.ModelBasedVariableResolver=e.SelectionBasedVariableResolver=e.CompositeSnippetVariableResolver=e.KnownSnippetVariableNames=void 0,e.KnownSnippetVariableNames=Object.freeze({CURRENT_YEAR:!0,CURRENT_YEAR_SHORT:!0,CURRENT_MONTH:!0,CURRENT_DATE:!0,CURRENT_HOUR:!0,CURRENT_MINUTE:!0,CURRENT_SECOND:!0,CURRENT_DAY_NAME:!0,CURRENT_DAY_NAME_SHORT:!0,CURRENT_MONTH_NAME:!0,CURRENT_MONTH_NAME_SHORT:!0,CURRENT_SECONDS_UNIX:!0,SELECTION:!0,CLIPBOARD:!0,TM_SELECTED_TEXT:!0,TM_CURRENT_LINE:!0,TM_CURRENT_WORD:!0,TM_LINE_INDEX:!0,TM_LINE_NUMBER:!0,TM_FILENAME:!0,TM_FILENAME_BASE:!0,TM_DIRECTORY:!0,TM_FILEPATH:!0,CURSOR_INDEX:!0,CURSOR_NUMBER:!0,RELATIVE_FILEPATH:!0,BLOCK_COMMENT_START:!0,BLOCK_COMMENT_END:!0,LINE_COMMENT:!0,WORKSPACE_NAME:!0,WORKSPACE_FOLDER:!0,RANDOM:!0,RANDOM_HEX:!0,UUID:!0});class n{constructor(c){this._delegates=c}resolve(c){for(const g of this._delegates){const f=g.resolve(c);if(f!==void 0)return f}}}e.CompositeSnippetVariableResolver=n;class i{constructor(c,g,f,_){this._model=c,this._selection=g,this._selectionIdx=f,this._overtypingCapturer=_}resolve(c){const{name:g}=c;if(g==="SELECTION"||g==="TM_SELECTED_TEXT"){let f=this._model.getValueInRange(this._selection)||void 0,_=this._selection.startLineNumber!==this._selection.endLineNumber;if(!f&&this._overtypingCapturer){const p=this._overtypingCapturer.getLastOvertypedInfo(this._selectionIdx);p&&(f=p.value,_=p.multiline)}if(f&&_&&c.snippet){const p=this._model.getLineContent(this._selection.startLineNumber),m=(0,D.getLeadingWhitespace)(p,0,this._selection.startColumn-1);let S=m;c.snippet.walk(L=>L===c?!1:(L instanceof C.Text&&(S=(0,D.getLeadingWhitespace)((0,D.splitLines)(L.value).pop())),!0));const E=(0,D.commonPrefixLength)(S,m);f=f.replace(/(\r\n|\r|\n)(.*)/g,(L,N,I)=>`${N}${S.substr(E)}${I}`)}return f}else{if(g==="TM_CURRENT_LINE")return this._model.getLineContent(this._selection.positionLineNumber);if(g==="TM_CURRENT_WORD"){const f=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return f&&f.word||void 0}else{if(g==="TM_LINE_INDEX")return String(this._selection.positionLineNumber-1);if(g==="TM_LINE_NUMBER")return String(this._selection.positionLineNumber);if(g==="CURSOR_INDEX")return String(this._selectionIdx);if(g==="CURSOR_NUMBER")return String(this._selectionIdx+1)}}}}e.SelectionBasedVariableResolver=i;class t{constructor(c,g){this._labelService=c,this._model=g}resolve(c){const{name:g}=c;if(g==="TM_FILENAME")return v.basename(this._model.uri.fsPath);if(g==="TM_FILENAME_BASE"){const f=v.basename(this._model.uri.fsPath),_=f.lastIndexOf(".");return _<=0?f:f.slice(0,_)}else{if(g==="TM_DIRECTORY")return v.dirname(this._model.uri.fsPath)==="."?"":this._labelService.getUriLabel((0,k.dirname)(this._model.uri));if(g==="TM_FILEPATH")return this._labelService.getUriLabel(this._model.uri);if(g==="RELATIVE_FILEPATH")return this._labelService.getUriLabel(this._model.uri,{relative:!0,noPrefix:!0})}}}e.ModelBasedVariableResolver=t;class o{constructor(c,g,f,_){this._readClipboardText=c,this._selectionIdx=g,this._selectionCount=f,this._spread=_}resolve(c){if(c.name!=="CLIPBOARD")return;const g=this._readClipboardText();if(g){if(this._spread){const f=g.split(/\r\n|\n|\r/).filter(_=>!(0,D.isFalsyOrWhitespace)(_));if(f.length===this._selectionCount)return f[this._selectionIdx]}return g}}}e.ClipboardBasedVariableResolver=o;let s=class{constructor(r,c,g){this._model=r,this._selection=c,this._languageConfigurationService=g}resolve(r){const{name:c}=r,g=this._model.getLanguageIdAtPosition(this._selection.selectionStartLineNumber,this._selection.selectionStartColumn),f=this._languageConfigurationService.getLanguageConfiguration(g).comments;if(f){if(c==="LINE_COMMENT")return f.lineCommentToken||void 0;if(c==="BLOCK_COMMENT_START")return f.blockCommentStartToken||void 0;if(c==="BLOCK_COMMENT_END")return f.blockCommentEndToken||void 0}}};s=Ie([pe(2,b.ILanguageConfigurationService)],s),e.CommentBasedVariableResolver=s;class d{constructor(){this._date=new Date}resolve(c){const{name:g}=c;if(g==="CURRENT_YEAR")return String(this._date.getFullYear());if(g==="CURRENT_YEAR_SHORT")return String(this._date.getFullYear()).slice(-2);if(g==="CURRENT_MONTH")return String(this._date.getMonth().valueOf()+1).padStart(2,"0");if(g==="CURRENT_DATE")return String(this._date.getDate().valueOf()).padStart(2,"0");if(g==="CURRENT_HOUR")return String(this._date.getHours().valueOf()).padStart(2,"0");if(g==="CURRENT_MINUTE")return String(this._date.getMinutes().valueOf()).padStart(2,"0");if(g==="CURRENT_SECOND")return String(this._date.getSeconds().valueOf()).padStart(2,"0");if(g==="CURRENT_DAY_NAME")return d.dayNames[this._date.getDay()];if(g==="CURRENT_DAY_NAME_SHORT")return d.dayNamesShort[this._date.getDay()];if(g==="CURRENT_MONTH_NAME")return d.monthNames[this._date.getMonth()];if(g==="CURRENT_MONTH_NAME_SHORT")return d.monthNamesShort[this._date.getMonth()];if(g==="CURRENT_SECONDS_UNIX")return String(Math.floor(this._date.getTime()/1e3))}}e.TimeBasedVariableResolver=d,d.dayNames=[h.localize(0,null),h.localize(1,null),h.localize(2,null),h.localize(3,null),h.localize(4,null),h.localize(5,null),h.localize(6,null)],d.dayNamesShort=[h.localize(7,null),h.localize(8,null),h.localize(9,null),h.localize(10,null),h.localize(11,null),h.localize(12,null),h.localize(13,null)],d.monthNames=[h.localize(14,null),h.localize(15,null),h.localize(16,null),h.localize(17,null),h.localize(18,null),h.localize(19,null),h.localize(20,null),h.localize(21,null),h.localize(22,null),h.localize(23,null),h.localize(24,null),h.localize(25,null)],d.monthNamesShort=[h.localize(26,null),h.localize(27,null),h.localize(28,null),h.localize(29,null),h.localize(30,null),h.localize(31,null),h.localize(32,null),h.localize(33,null),h.localize(34,null),h.localize(35,null),h.localize(36,null),h.localize(37,null)];class l{constructor(c){this._workspaceService=c}resolve(c){if(!this._workspaceService)return;const g=(0,u.toWorkspaceIdentifier)(this._workspaceService.getWorkspace());if(g){if(c.name==="WORKSPACE_NAME")return this._resolveWorkspaceName(g);if(c.name==="WORKSPACE_FOLDER")return this._resoveWorkspacePath(g)}}_resolveWorkspaceName(c){if((0,u.isSingleFolderWorkspaceIdentifier)(c))return v.basename(c.uri.path);let g=v.basename(c.configPath.path);return g.endsWith(u.WORKSPACE_EXTENSION)&&(g=g.substr(0,g.length-u.WORKSPACE_EXTENSION.length-1)),g}_resoveWorkspacePath(c){if((0,u.isSingleFolderWorkspaceIdentifier)(c))return(0,y.normalizeDriveLetter)(c.uri.fsPath);const g=v.basename(c.configPath.path);let f=c.configPath.fsPath;return f.endsWith(g)&&(f=f.substr(0,f.length-g.length-1)),f?(0,y.normalizeDriveLetter)(f):"/"}}e.WorkspaceBasedVariableResolver=l;class a{resolve(c){const{name:g}=c;if(g==="RANDOM")return Math.random().toString().slice(-6);if(g==="RANDOM_HEX")return Math.random().toString(16).slice(-6);if(g==="UUID")return(0,w.generateUuid)()}}e.RandomBasedVariableResolver=a}),define(oe[319],se([1,0,18,2,8,60,3,23,32,35,140,176,89,769,389]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SnippetSession=e.OneSnippet=void 0;class o{constructor(a,r,c){this._editor=a,this._snippet=r,this._snippetLineLeadingWhitespace=c,this._offset=-1,this._nestingLevel=1,this._placeholderGroups=(0,y.groupBy)(r.placeholders,i.Placeholder.compareByIndex),this._placeholderGroupsIdx=-1}initialize(a){this._offset=a.newPosition}dispose(){this._placeholderDecorations&&this._editor.removeDecorations([...this._placeholderDecorations.values()]),this._placeholderGroups.length=0}_initDecorations(){if(this._offset===-1)throw new Error("Snippet not initialized!");if(this._placeholderDecorations)return;this._placeholderDecorations=new Map;const a=this._editor.getModel();this._editor.changeDecorations(r=>{for(const c of this._snippet.placeholders){const g=this._snippet.offset(c),f=this._snippet.fullLen(c),_=w.Range.fromPositions(a.getPositionAt(this._offset+g),a.getPositionAt(this._offset+g+f)),p=c.isFinalTabstop?o._decor.inactiveFinal:o._decor.inactive,m=r.addDecoration(_,p);this._placeholderDecorations.set(c,m)}})}move(a){if(!this._editor.hasModel())return[];if(this._initDecorations(),this._placeholderGroupsIdx>=0){const g=[];for(const f of this._placeholderGroups[this._placeholderGroupsIdx])if(f.transform){const _=this._placeholderDecorations.get(f),p=this._editor.getModel().getDecorationRange(_),m=this._editor.getModel().getValueInRange(p),S=f.transform.resolve(m).split(/\r\n|\r|\n/);for(let E=1;E<S.length;E++)S[E]=this._editor.getModel().normalizeIndentation(this._snippetLineLeadingWhitespace+S[E]);g.push(D.EditOperation.replace(p,S.join(this._editor.getModel().getEOL())))}g.length>0&&this._editor.executeEdits("snippet.placeholderTransform",g)}let r=!1;a===!0&&this._placeholderGroupsIdx<this._placeholderGroups.length-1?(this._placeholderGroupsIdx+=1,r=!0):a===!1&&this._placeholderGroupsIdx>0&&(this._placeholderGroupsIdx-=1,r=!0);const c=this._editor.getModel().changeDecorations(g=>{const f=new Set,_=[];for(const p of this._placeholderGroups[this._placeholderGroupsIdx]){const m=this._placeholderDecorations.get(p),S=this._editor.getModel().getDecorationRange(m);_.push(new b.Selection(S.startLineNumber,S.startColumn,S.endLineNumber,S.endColumn)),r=r&&this._hasPlaceholderBeenCollapsed(p),g.changeDecorationOptions(m,p.isFinalTabstop?o._decor.activeFinal:o._decor.active),f.add(p);for(const E of this._snippet.enclosingPlaceholders(p)){const L=this._placeholderDecorations.get(E);g.changeDecorationOptions(L,E.isFinalTabstop?o._decor.activeFinal:o._decor.active),f.add(E)}}for(const[p,m]of this._placeholderDecorations)f.has(p)||g.changeDecorationOptions(m,p.isFinalTabstop?o._decor.inactiveFinal:o._decor.inactive);return _});return r?this.move(a):c??[]}_hasPlaceholderBeenCollapsed(a){let r=a;for(;r;){if(r instanceof i.Placeholder){const c=this._placeholderDecorations.get(r);if(this._editor.getModel().getDecorationRange(c).isEmpty()&&r.toString().length>0)return!0}r=r.parent}return!1}get isAtFirstPlaceholder(){return this._placeholderGroupsIdx<=0||this._placeholderGroups.length===0}get isAtLastPlaceholder(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1}get hasPlaceholder(){return this._snippet.placeholders.length>0}get isTrivialSnippet(){return this._snippet.placeholders.length===0||this._snippet.placeholders.length===1&&this._snippet.placeholders[0].isFinalTabstop}computePossibleSelections(){const a=new Map;for(const r of this._placeholderGroups){let c;for(const g of r){if(g.isFinalTabstop)break;c||(c=[],a.set(g.index,c));const f=this._placeholderDecorations.get(g),_=this._editor.getModel().getDecorationRange(f);if(!_){a.delete(g.index);break}c.push(_)}}return a}get activeChoice(){if(!this._placeholderDecorations)return;const a=this._placeholderGroups[this._placeholderGroupsIdx][0];if(!a?.choice)return;const r=this._placeholderDecorations.get(a);if(!r)return;const c=this._editor.getModel().getDecorationRange(r);if(c)return{range:c,choice:a.choice}}get hasChoice(){let a=!1;return this._snippet.walk(r=>(a=r instanceof i.Choice,!a)),a}merge(a){const r=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations(c=>{for(const g of this._placeholderGroups[this._placeholderGroupsIdx]){const f=a.shift();console.assert(f._offset!==-1),console.assert(!f._placeholderDecorations);const _=f._snippet.placeholderInfo.last.index;for(const m of f._snippet.placeholderInfo.all)m.isFinalTabstop?m.index=g.index+(_+1)/this._nestingLevel:m.index=g.index+m.index/this._nestingLevel;this._snippet.replace(g,f._snippet.children);const p=this._placeholderDecorations.get(g);c.removeDecoration(p),this._placeholderDecorations.delete(g);for(const m of f._snippet.placeholders){const S=f._snippet.offset(m),E=f._snippet.fullLen(m),L=w.Range.fromPositions(r.getPositionAt(f._offset+S),r.getPositionAt(f._offset+S+E)),N=c.addDecoration(L,o._decor.inactive);this._placeholderDecorations.set(m,N)}}this._placeholderGroups=(0,y.groupBy)(this._snippet.placeholders,i.Placeholder.compareByIndex)})}}e.OneSnippet=o,o._decor={active:h.ModelDecorationOptions.register({description:"snippet-placeholder-1",stickiness:0,className:"snippet-placeholder"}),inactive:h.ModelDecorationOptions.register({description:"snippet-placeholder-2",stickiness:1,className:"snippet-placeholder"}),activeFinal:h.ModelDecorationOptions.register({description:"snippet-placeholder-3",stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:h.ModelDecorationOptions.register({description:"snippet-placeholder-4",stickiness:1,className:"finish-snippet-placeholder"})};const s={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};let d=class Xt{constructor(a,r,c=s,g){this._editor=a,this._template=r,this._options=c,this._languageConfigurationService=g,this._templateMerges=[],this._snippets=[]}static adjustWhitespace(a,r,c,g,f){const _=a.getLineContent(r.lineNumber),p=(0,k.getLeadingWhitespace)(_,0,r.column-1);let m;return c.walk(S=>{if(!(S instanceof i.Text)||S.parent instanceof i.Choice)return!0;const E=S.value.split(/\r\n|\r|\n/);if(g){const N=c.offset(S);if(N===0)E[0]=a.normalizeIndentation(E[0]);else{m=m??c.toString();const I=m.charCodeAt(N-1);(I===10||I===13)&&(E[0]=a.normalizeIndentation(p+E[0]))}for(let I=1;I<E.length;I++)E[I]=a.normalizeIndentation(p+E[I])}const L=E.join(a.getEOL());return L!==S.value&&(S.parent.replace(S,[new i.Text(L)]),m=void 0),!0}),p}static adjustSelection(a,r,c,g){if(c!==0||g!==0){const{positionLineNumber:f,positionColumn:_}=r,p=_-c,m=_+g,S=a.validateRange({startLineNumber:f,startColumn:p,endLineNumber:f,endColumn:m});r=b.Selection.createWithDirection(S.startLineNumber,S.startColumn,S.endLineNumber,S.endColumn,r.getDirection())}return r}static createEditsAndSnippetsFromSelections(a,r,c,g,f,_,p,m,S){const E=[],L=[];if(!a.hasModel())return{edits:E,snippets:L};const N=a.getModel(),I=a.invokeWithinContext(A=>A.get(n.IWorkspaceContextService)),R=a.invokeWithinContext(A=>new t.ModelBasedVariableResolver(A.get(u.ILabelService),N)),F=()=>p,O=N.getValueInRange(Xt.adjustSelection(N,a.getSelection(),c,0)),x=N.getValueInRange(Xt.adjustSelection(N,a.getSelection(),0,g)),M=N.getLineFirstNonWhitespaceColumn(a.getSelection().positionLineNumber),P=a.getSelections().map((A,B)=>({selection:A,idx:B})).sort((A,B)=>w.Range.compareRangesUsingStarts(A.selection,B.selection));for(const{selection:A,idx:B}of P){let K=Xt.adjustSelection(N,A,c,0),T=Xt.adjustSelection(N,A,0,g);O!==N.getValueInRange(K)&&(K=A),x!==N.getValueInRange(T)&&(T=A);const ee=A.setStartPosition(K.startLineNumber,K.startColumn).setEndPosition(T.endLineNumber,T.endColumn),J=new i.SnippetParser().parse(r,!0,f),$=ee.getStartPosition(),j=Xt.adjustWhitespace(N,$,J,_||B>0&&M!==N.getLineFirstNonWhitespaceColumn(A.positionLineNumber),!0);J.resolveVariables(new t.CompositeSnippetVariableResolver([R,new t.ClipboardBasedVariableResolver(F,B,P.length,a.getOption(73)==="spread"),new t.SelectionBasedVariableResolver(N,A,B,m),new t.CommentBasedVariableResolver(N,A,S),new t.TimeBasedVariableResolver,new t.WorkspaceBasedVariableResolver(I),new t.RandomBasedVariableResolver])),E[B]=D.EditOperation.replace(ee,J.toString()),E[B].identifier={major:B,minor:0},E[B]._isTracked=!0,L[B]=new o(a,J,j)}return{edits:E,snippets:L}}static createEditsAndSnippetsFromEdits(a,r,c,g,f,_,p){if(!a.hasModel()||r.length===0)return{edits:[],snippets:[]};const m=[],S=a.getModel(),E=new i.SnippetParser,L=new i.TextmateSnippet,N=new t.CompositeSnippetVariableResolver([a.invokeWithinContext(R=>new t.ModelBasedVariableResolver(R.get(u.ILabelService),S)),new t.ClipboardBasedVariableResolver(()=>f,0,a.getSelections().length,a.getOption(73)==="spread"),new t.SelectionBasedVariableResolver(S,a.getSelection(),0,_),new t.CommentBasedVariableResolver(S,a.getSelection(),p),new t.TimeBasedVariableResolver,new t.WorkspaceBasedVariableResolver(a.invokeWithinContext(R=>R.get(n.IWorkspaceContextService))),new t.RandomBasedVariableResolver]);r=r.sort((R,F)=>w.Range.compareRangesUsingStarts(R.range,F.range));let I=0;for(let R=0;R<r.length;R++){const{range:F,template:O}=r[R];if(R>0){const A=r[R-1].range,B=w.Range.fromPositions(A.getEndPosition(),F.getStartPosition()),K=new i.Text(S.getValueInRange(B));L.appendChild(K),I+=K.value.length}E.parseFragment(O,L),L.resolveVariables(N);const x=L.toString(),M=x.slice(I);I=x.length;const P=D.EditOperation.replace(F,M);P.identifier={major:R,minor:0},P._isTracked=!0,m.push(P)}return E.ensureFinalTabstop(L,c,!0),{edits:m,snippets:[new o(a,L,"")]}}dispose(){(0,v.dispose)(this._snippets)}_logInfo(){return`template="${this._template}", merged_templates="${this._templateMerges.join(" -> ")}"`}insert(){if(!this._editor.hasModel())return;const{edits:a,snippets:r}=typeof this._template=="string"?Xt.createEditsAndSnippetsFromSelections(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService):Xt.createEditsAndSnippetsFromEdits(this._editor,this._template,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService);this._snippets=r,this._editor.executeEdits("snippet",a,c=>{const g=c.filter(f=>!!f.identifier);for(let f=0;f<r.length;f++)r[f].initialize(g[f].textChange);return this._snippets[0].hasPlaceholder?this._move(!0):g.map(f=>b.Selection.fromPositions(f.range.getEndPosition()))}),this._editor.revealRange(this._editor.getSelections()[0])}merge(a,r=s){if(!this._editor.hasModel())return;this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,a]);const{edits:c,snippets:g}=Xt.createEditsAndSnippetsFromSelections(this._editor,a,r.overwriteBefore,r.overwriteAfter,!0,r.adjustWhitespace,r.clipboardText,r.overtypingCapturer,this._languageConfigurationService);this._editor.executeEdits("snippet",c,f=>{const _=f.filter(m=>!!m.identifier);for(let m=0;m<g.length;m++)g[m].initialize(_[m].textChange);const p=g[0].isTrivialSnippet;if(!p){for(const m of this._snippets)m.merge(g);console.assert(g.length===0)}return this._snippets[0].hasPlaceholder&&!p?this._move(void 0):_.map(m=>b.Selection.fromPositions(m.range.getEndPosition()))})}next(){const a=this._move(!0);this._editor.setSelections(a),this._editor.revealPositionInCenterIfOutsideViewport(a[0].getPosition())}prev(){const a=this._move(!1);this._editor.setSelections(a),this._editor.revealPositionInCenterIfOutsideViewport(a[0].getPosition())}_move(a){const r=[];for(const c of this._snippets){const g=c.move(a);r.push(...g)}return r}get isAtFirstPlaceholder(){return this._snippets[0].isAtFirstPlaceholder}get isAtLastPlaceholder(){return this._snippets[0].isAtLastPlaceholder}get hasPlaceholder(){return this._snippets[0].hasPlaceholder}get hasChoice(){return this._snippets[0].hasChoice}get activeChoice(){return this._snippets[0].activeChoice}isSelectionWithinPlaceholders(){if(!this.hasPlaceholder)return!1;const a=this._editor.getSelections();if(a.length<this._snippets.length)return!1;const r=new Map;for(const c of this._snippets){const g=c.computePossibleSelections();if(r.size===0)for(const[f,_]of g){_.sort(w.Range.compareRangesUsingStarts);for(const p of a)if(_[0].containsRange(p)){r.set(f,[]);break}}if(r.size===0)return!1;r.forEach((f,_)=>{f.push(...g.get(_))})}a.sort(w.Range.compareRangesUsingStarts);for(const[c,g]of r){if(g.length!==a.length){r.delete(c);continue}g.sort(w.Range.compareRangesUsingStarts);for(let f=0;f<g.length;f++)if(!g[f].containsRange(a[f])){r.delete(c);continue}}return r.size>0}};d=Ie([pe(3,C.ILanguageConfigurationService)],d),e.SnippetSession=d}),define(oe[120],se([1,0,2,19,12,11,23,24,32,20,102,594,16,69,319]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.performSnippetEdit=e.SnippetController2=void 0;const s={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};let d=class di{constructor(c,g,f,_,p){this._editor=c,this._logService=g,this._languageFeaturesService=f,this._languageConfigurationService=p,this._snippetListener=new y.DisposableStore,this._modelVersionId=-1,this._inSnippet=di.InSnippetMode.bindTo(_),this._hasNextTabstop=di.HasNextTabstop.bindTo(_),this._hasPrevTabstop=di.HasPrevTabstop.bindTo(_)}static get(c){return c.getContribution(di.ID)}dispose(){var c;this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),(c=this._session)===null||c===void 0||c.dispose(),this._snippetListener.dispose()}apply(c,g){try{this._doInsert(c,typeof g>"u"?s:Object.assign(Object.assign({},s),g))}catch(f){this.cancel(),this._logService.error(f),this._logService.error("snippet_error"),this._logService.error("insert_edits=",c),this._logService.error("existing_template=",this._session?this._session._logInfo():"<no_session>")}}insert(c,g){try{this._doInsert(c,typeof g>"u"?s:Object.assign(Object.assign({},s),g))}catch(f){this.cancel(),this._logService.error(f),this._logService.error("snippet_error"),this._logService.error("insert_template=",c),this._logService.error("existing_template=",this._session?this._session._logInfo():"<no_session>")}}_doInsert(c,g){var f;if(this._editor.hasModel()){if(this._snippetListener.clear(),g.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session&&typeof c!="string"&&this.cancel(),this._session?((0,v.assertType)(typeof c=="string"),this._session.merge(c,g)):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new o.SnippetSession(this._editor,c,g,this._languageConfigurationService),this._session.insert()),g.undoStopAfter&&this._editor.getModel().pushStackElement(),(f=this._session)===null||f===void 0?void 0:f.hasChoice){this._choiceCompletionItemProvider={provideCompletionItems:(p,m)=>{if(!this._session||p!==this._editor.getModel()||!D.Position.equals(this._editor.getPosition(),m))return;const{activeChoice:S}=this._session;if(!S||S.choice.options.length===0)return;const E=p.getValueInRange(S.range),L=!!S.choice.options.find(I=>I.value===E),N=[];for(let I=0;I<S.choice.options.length;I++){const R=S.choice.options[I];N.push({kind:13,label:R.value,insertText:R.value,sortText:"a".repeat(I+1),range:S.range,filterText:L?`${E}_${R.value}`:void 0,command:{id:"jumpToNextSnippetPlaceholder",title:(0,n.localize)(3,null)}})}return{suggestions:N}}};const _=this._languageFeaturesService.completionProvider.register({language:this._editor.getModel().getLanguageId(),pattern:this._editor.getModel().uri.fsPath,scheme:this._editor.getModel().uri.scheme},this._choiceCompletionItemProvider);this._snippetListener.add(_)}this._updateState(),this._snippetListener.add(this._editor.onDidChangeModelContent(_=>_.isFlush&&this.cancel())),this._snippetListener.add(this._editor.onDidChangeModel(()=>this.cancel())),this._snippetListener.add(this._editor.onDidChangeCursorSelection(()=>this._updateState()))}}_updateState(){if(!(!this._session||!this._editor.hasModel())){if(this._modelVersionId===this._editor.getModel().getAlternativeVersionId())return this.cancel();if(!this._session.hasPlaceholder)return this.cancel();if(this._session.isAtLastPlaceholder||!this._session.isSelectionWithinPlaceholders())return this._editor.getModel().pushStackElement(),this.cancel();this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),this._handleChoice()}}_handleChoice(){if(!this._session||!this._editor.hasModel()){this._currentChoice=void 0;return}const{activeChoice:c}=this._session;if(!c||!this._choiceCompletionItemProvider){this._currentChoice=void 0;return}this._currentChoice!==c.choice&&(this._currentChoice=c.choice,queueMicrotask(()=>{(0,u.showSimpleSuggestions)(this._editor,this._choiceCompletionItemProvider)}))}finish(){for(;this._inSnippet.get();)this.next()}cancel(c=!1){var g;this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),this._currentChoice=void 0,(g=this._session)===null||g===void 0||g.dispose(),this._session=void 0,this._modelVersionId=-1,c&&this._editor.setSelections([this._editor.getSelection()])}prev(){this._session&&this._session.prev(),this._updateState()}next(){this._session&&this._session.next(),this._updateState()}isInSnippet(){return!!this._inSnippet.get()}};d.ID="snippetController2",d.InSnippetMode=new i.RawContextKey("inSnippetMode",!1,(0,n.localize)(0,null)),d.HasNextTabstop=new i.RawContextKey("hasNextTabstop",!1,(0,n.localize)(1,null)),d.HasPrevTabstop=new i.RawContextKey("hasPrevTabstop",!1,(0,n.localize)(2,null)),d=Ie([pe(1,t.ILogService),pe(2,h.ILanguageFeaturesService),pe(3,i.IContextKeyService),pe(4,C.ILanguageConfigurationService)],d),e.SnippetController2=d,(0,k.registerEditorContribution)(d.ID,d);const l=k.EditorCommand.bindToContribution(d.get);(0,k.registerEditorCommand)(new l({id:"jumpToNextSnippetPlaceholder",precondition:i.ContextKeyExpr.and(d.InSnippetMode,d.HasNextTabstop),handler:r=>r.next(),kbOpts:{weight:100+30,kbExpr:b.EditorContextKeys.editorTextFocus,primary:2}})),(0,k.registerEditorCommand)(new l({id:"jumpToPrevSnippetPlaceholder",precondition:i.ContextKeyExpr.and(d.InSnippetMode,d.HasPrevTabstop),handler:r=>r.prev(),kbOpts:{weight:100+30,kbExpr:b.EditorContextKeys.editorTextFocus,primary:1026}})),(0,k.registerEditorCommand)(new l({id:"leaveSnippet",precondition:d.InSnippetMode,handler:r=>r.cancel(!0),kbOpts:{weight:100+30,kbExpr:b.EditorContextKeys.editorTextFocus,primary:9,secondary:[1033]}})),(0,k.registerEditorCommand)(new l({id:"acceptSnippet",precondition:d.InSnippetMode,handler:r=>r.finish()}));function a(r,c,g){const f=d.get(r);return f?(r.focus(),f.apply(g.map(_=>({range:w.Selection.liftSelection(_),template:c}))),f.isInSnippet()):!1}e.performSnippetEdit=a}),define(oe[770],se([1,0,123,7,10,178,2,97,223,289,138,3,20,95,120,89,93,30]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CopyPasteController=void 0;const a="application/vnd.code.copyMetadata";let r=class extends w.Disposable{constructor(c,g,f,_,p){super(),this._bulkEditService=g,this._clipboardService=f,this._configurationService=_,this._languageFeaturesService=p,this._editor=c;const m=c.getContainerDomNode();this._register((0,v.addDisposableListener)(m,"copy",S=>this.handleCopy(S))),this._register((0,v.addDisposableListener)(m,"cut",S=>this.handleCopy(S))),this._register((0,v.addDisposableListener)(m,"paste",S=>this.handlePaste(S),!0))}arePasteActionsEnabled(c){return this._configurationService.getValue("editor.experimental.pasteActions.enabled",{resource:c.uri})}handleCopy(c){var g;if(!c.clipboardData||!this._editor.hasTextFocus())return;const f=this._editor.getModel(),_=this._editor.getSelections();if(!f||!_?.length||!this.arePasteActionsEnabled(f))return;const p=[..._],m=_[0],S=m.isEmpty();if(S){if(!this._editor.getOption(33))return;p[0]=new n.Range(m.startLineNumber,0,m.startLineNumber,f.getLineLength(m.startLineNumber))}const E=this._languageFeaturesService.documentPasteEditProvider.ordered(f).filter(R=>!!R.prepareDocumentPaste);if(!E.length){this.setCopyMetadata(c.clipboardData,{wasFromEmptySelection:S});return}const L=(0,h.toVSDataTransfer)(c.clipboardData),N=(0,C.generateUuid)();this.setCopyMetadata(c.clipboardData,{id:N,wasFromEmptySelection:S});const I=(0,k.createCancelablePromise)(R=>be(this,void 0,void 0,function*(){const F=yield Promise.all(E.map(O=>O.prepareDocumentPaste(f,p,L,R)));for(const O of F)O?.forEach((x,M)=>{L.replace(M,x)});return L}));(g=this._currentClipboardItem)===null||g===void 0||g.dataTransferPromise.cancel(),this._currentClipboardItem={handle:N,dataTransferPromise:I}}setCopyMetadata(c,g){c.setData(a,JSON.stringify(g))}handlePaste(c){var g,f,_;return be(this,void 0,void 0,function*(){if(!c.clipboardData||!this._editor.hasTextFocus())return;const p=this._editor.getSelections();if(!p?.length||!this._editor.hasModel())return;const m=this._editor.getModel();if(!this.arePasteActionsEnabled(m))return;let S;const E=(g=c.clipboardData)===null||g===void 0?void 0:g.getData(a);E&&typeof E=="string"&&(S=JSON.parse(E));const L=this._languageFeaturesService.documentPasteEditProvider.ordered(m);if(!L.length)return;c.preventDefault(),c.stopImmediatePropagation();const N=m.getVersionId(),I=new t.EditorStateCancellationTokenSource(this._editor,3);try{const R=(0,h.toVSDataTransfer)(c.clipboardData);if(S?.id&&((f=this._currentClipboardItem)===null||f===void 0?void 0:f.handle)===S.id&&(yield this._currentClipboardItem.dataTransferPromise).forEach((x,M)=>{R.replace(M,x)}),!R.has(b.Mimes.uriList)){const x=yield this._clipboardService.readResources();x.length&&R.append(b.Mimes.uriList,(0,D.createStringDataTransferItem)(h.UriList.create(x)))}R.delete(a);for(const x of L){if(!x.pasteMimeTypes.some(P=>P.toLowerCase()===y.DataTransfers.FILES.toLowerCase()?[...R.values()].some(A=>A.asFile()):R.has(P)))continue;const M=yield x.provideDocumentPasteEdits(m,p,R,I.token);if(N!==m.getVersionId())return;if(M){(0,o.performSnippetEdit)(this._editor,typeof M.insertText=="string"?s.SnippetParser.escape(M.insertText):M.insertText.snippet,p),M.additionalEdit&&(yield this._bulkEditService.apply(u.ResourceEdit.convert(M.additionalEdit),{editor:this._editor}));return}}const F=(_=R.get(b.Mimes.text))!==null&&_!==void 0?_:R.get("text");if(!F)return;const O=yield F.asString();if(N!==m.getVersionId())return;this._editor.trigger("keyboard","paste",{text:O,pasteOnNewLine:S?.wasFromEmptySelection,multicursorText:null})}finally{I.dispose()}})}};r.ID="editor.contrib.copyPasteActionController",r=Ie([pe(1,u.IBulkEditService),pe(2,d.IClipboardService),pe(3,l.IConfigurationService),pe(4,i.ILanguageFeaturesService)],r),e.CopyPasteController=r}),define(oe[771],se([1,0,12,212,770,551,94,34]),function(q,e,y,v,k,D,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(0,y.registerEditorContribution)(k.CopyPasteController.ID,k.CopyPasteController),b.Registry.as(w.Extensions.Configuration).registerConfiguration(Object.assign(Object.assign({},v.editorConfigurationBaseNode),{properties:{"editor.experimental.pasteActions.enabled":{type:"boolean",scope:5,description:D.localize(0,null),default:!1}}}))}),define(oe[772],se([1,0,10,178,2,97,43,22,289,12,138,3,23,20,95,120,89,553,71,176]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DropIntoEditorController=void 0;let c=class extends k.Disposable{constructor(f,_,p,m,S){super(),this._bulkEditService=_,this._languageFeaturesService=p,this._progressService=m,this._register(f.onDropIntoEditor(E=>this.onDropIntoEditor(f,E.position,E.event))),this._languageFeaturesService.documentOnDropEditProvider.register("*",new g(S))}onDropIntoEditor(f,_,p){return be(this,void 0,void 0,function*(){if(!p.dataTransfer||!f.hasModel())return;const m=f.getModel(),S=m.getVersionId(),E=yield this.extractDataTransferData(p);if(E.size===0||f.getModel().getVersionId()!==S)return;const L=new o.EditorStateCancellationTokenSource(f,1);try{const N=this._languageFeaturesService.documentOnDropEditProvider.ordered(m),I=yield this._progressService.withProgress({location:15,delay:750,title:(0,l.localize)(0,null),cancellable:!0},()=>(0,y.raceCancellation)((()=>be(this,void 0,void 0,function*(){for(const R of N){const F=yield R.provideDocumentOnDropEdits(m,_,E,L.token);if(L.token.isCancellationRequested)return;if(F)return F}}))(),L.token),()=>{L.cancel()});if(L.token.isCancellationRequested||f.getModel().getVersionId()!==S)return;if(I){const R=new n.Range(_.lineNumber,_.column,_.lineNumber,_.column);(0,s.performSnippetEdit)(f,typeof I.insertText=="string"?d.SnippetParser.escape(I.insertText):I.insertText.snippet,[i.Selection.fromRange(R,0)]),I.additionalEdit&&(yield this._bulkEditService.apply(u.ResourceEdit.convert(I.additionalEdit),{editor:f}));return}}finally{L.dispose()}})}extractDataTransferData(f){return be(this,void 0,void 0,function*(){if(!f.dataTransfer)return new v.VSDataTransfer;const _=(0,C.toVSDataTransfer)(f.dataTransfer);return(0,C.addExternalEditorsDropData)(_,f),_})}};c.ID="editor.contrib.dropIntoEditorController",c=Ie([pe(1,u.IBulkEditService),pe(2,t.ILanguageFeaturesService),pe(3,a.IProgressService),pe(4,r.IWorkspaceContextService)],c),e.DropIntoEditorController=c;let g=class{constructor(f){this._workspaceContextService=f}provideDocumentOnDropEdits(f,_,p,m){var S;return be(this,void 0,void 0,function*(){const E=p.get(D.Mimes.uriList);if(E){const N=yield E.asString(),I=this.getUriListInsertText(N);if(I)return{insertText:I}}const L=(S=p.get("text"))!==null&&S!==void 0?S:p.get(D.Mimes.text);if(L)return{insertText:yield L.asString()}})}getUriListInsertText(f){const _=[];for(const p of C.UriList.parse(f))try{_.push(b.URI.parse(p))}catch{}if(_.length)return _.map(p=>{const m=this._workspaceContextService.getWorkspaceFolder(p);if(m){const S=(0,w.relativePath)(m.uri,p);if(S)return S}return p.fsPath}).join(" ")}};g=Ie([pe(0,r.IWorkspaceContextService)],g),(0,h.registerEditorContribution)(c.ID,c)}),define(oe[320],se([1,0,10,21,14,6,2,169,60,3,28,165,26,188,206,32,423,20,70,89,120,19,63,189,30]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r,c,g,f,_,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.provideInlineCompletions=e.SynchronizedInlineCompletionsCache=e.UpdateOperation=e.InlineCompletionsSession=e.InlineCompletionsModel=void 0;let m=class extends w.Disposable{constructor(O,x,M,P,A,B,K){super(),this.editor=O,this.cache=x,this.commandService=M,this.languageConfigurationService=P,this.languageFeaturesService=A,this.debounceService=B,this.onDidChangeEmitter=new D.Emitter,this.onDidChange=this.onDidChangeEmitter.event,this.completionSession=this._register(new w.MutableDisposable),this.active=!1,this.disposed=!1,this.debounceValue=this.debounceService.for(this.languageFeaturesService.inlineCompletionsProvider,"InlineCompletionsDebounce",{min:50,max:50}),this._register(M.onDidExecuteCommand(T=>{new Set([b.CoreEditingCommands.Tab.id,b.CoreEditingCommands.DeleteLeft.id,b.CoreEditingCommands.DeleteRight.id,t.inlineSuggestCommitId,"acceptSelectedSuggestion"]).has(T.commandId)&&O.hasTextFocus()&&this.handleUserInput()})),this._register(this.editor.onDidType(T=>{this.handleUserInput()})),this._register(this.editor.onDidChangeCursorPosition(T=>{(T.reason===3||this.session&&!this.session.isValid)&&this.hide()})),this._register((0,w.toDisposable)(()=>{this.disposed=!0})),this._register(this.editor.onDidBlurEditorWidget(()=>{K.getValue("editor.inlineSuggest.hideOnBlur")||this.hide()}))}handleUserInput(){this.session&&!this.session.isValid&&this.hide(),setTimeout(()=>{this.disposed||this.startSessionIfTriggered()},0)}get session(){return this.completionSession.value}get ghostText(){var O;return(O=this.session)===null||O===void 0?void 0:O.ghostText}get minReservedLineCount(){return this.session?this.session.minReservedLineCount:0}setExpanded(O){var x;(x=this.session)===null||x===void 0||x.setExpanded(O)}setActive(O){var x;this.active=O,O&&((x=this.session)===null||x===void 0||x.scheduleAutomaticUpdate())}startSessionIfTriggered(){!this.editor.getOption(57).enabled||this.session&&this.session.isValid||this.trigger(u.InlineCompletionTriggerKind.Automatic)}trigger(O){if(this.completionSession.value){O===u.InlineCompletionTriggerKind.Explicit&&this.completionSession.value.ensureUpdateWithExplicitContext();return}this.completionSession.value=new S(this.editor,this.editor.getPosition(),()=>this.active,this.commandService,this.cache,O,this.languageConfigurationService,this.languageFeaturesService.inlineCompletionsProvider,this.debounceValue),this.completionSession.value.takeOwnership(this.completionSession.value.onDidChange(()=>{this.onDidChangeEmitter.fire()}))}hide(){this.completionSession.clear(),this.onDidChangeEmitter.fire()}commitCurrentSuggestion(){var O;(O=this.session)===null||O===void 0||O.commitCurrentCompletion()}showNext(){var O;(O=this.session)===null||O===void 0||O.showNextInlineCompletion()}showPrevious(){var O;(O=this.session)===null||O===void 0||O.showPreviousInlineCompletion()}hasMultipleInlineCompletions(){var O;return be(this,void 0,void 0,function*(){const x=yield(O=this.session)===null||O===void 0?void 0:O.hasMultipleInlineCompletions();return x!==void 0?x:!1})}};m=Ie([pe(2,i.ICommandService),pe(3,s.ILanguageConfigurationService),pe(4,l.ILanguageFeaturesService),pe(5,a.ILanguageFeatureDebounceService),pe(6,p.IConfigurationService)],m),e.InlineCompletionsModel=m;class S extends n.BaseGhostTextWidgetModel{constructor(x,M,P,A,B,K,T,ee,J){super(x),this.triggerPosition=M,this.shouldUpdate=P,this.commandService=A,this.cache=B,this.initialTriggerKind=K,this.languageConfigurationService=T,this.registry=ee,this.debounce=J,this.minReservedLineCount=0,this.updateOperation=this._register(new w.MutableDisposable),this.updateSoon=this._register(new y.RunOnceScheduler(()=>{const j=this.initialTriggerKind;return this.initialTriggerKind=u.InlineCompletionTriggerKind.Automatic,this.update(j)},50)),this.filteredCompletions=[],this.currentlySelectedCompletionId=void 0;let $;this._register(this.onDidChange(()=>{var j;const G=this.currentCompletion;if(G&&G.sourceInlineCompletion!==$){$=G.sourceInlineCompletion;const te=G.sourceProvider;(j=te.handleItemDidShow)===null||j===void 0||j.call(te,G.sourceInlineCompletions,$)}})),this._register((0,w.toDisposable)(()=>{this.cache.clear()})),this._register(this.editor.onDidChangeCursorPosition(j=>{var G;j.reason!==3&&((G=this.cache.value)===null||G===void 0||G.updateRanges(),this.cache.value&&(this.updateFilteredInlineCompletions(),this.onDidChangeEmitter.fire()))})),this._register(this.editor.onDidChangeModelContent(j=>{var G;(G=this.cache.value)===null||G===void 0||G.updateRanges(),this.updateFilteredInlineCompletions(),this.scheduleAutomaticUpdate()})),this._register(this.registry.onDidChange(()=>{this.updateSoon.schedule(this.debounce.get(this.editor.getModel()))})),this.scheduleAutomaticUpdate()}updateFilteredInlineCompletions(){if(!this.cache.value){this.filteredCompletions=[];return}const x=this.editor.getModel(),M=x.validatePosition(this.editor.getPosition());this.filteredCompletions=this.cache.value.completions.filter(P=>{const A=x.getValueInRange(P.synchronizedRange).toLowerCase(),B=P.inlineCompletion.filterText.toLowerCase(),K=x.getLineIndentColumn(P.synchronizedRange.startLineNumber),T=Math.max(0,M.column-P.synchronizedRange.startColumn);let ee=B.substring(0,T),J=B.substring(T),$=A.substring(0,T),j=A.substring(T);return P.synchronizedRange.startColumn<=K&&($=$.trimStart(),$.length===0&&(j=j.trimStart()),ee=ee.trimStart(),ee.length===0&&(J=J.trimStart())),ee.startsWith($)&&(0,f.matchesSubString)(j,J)})}fixAndGetIndexOfCurrentSelection(){if(!this.currentlySelectedCompletionId||!this.cache.value||this.cache.value.completions.length===0)return 0;const x=this.filteredCompletions.findIndex(M=>M.semanticId===this.currentlySelectedCompletionId);return x===-1?(this.currentlySelectedCompletionId=void 0,0):x}get currentCachedCompletion(){if(this.cache.value)return this.filteredCompletions[this.fixAndGetIndexOfCurrentSelection()]}showNextInlineCompletion(){return be(this,void 0,void 0,function*(){yield this.ensureUpdateWithExplicitContext();const x=this.filteredCompletions||[];if(x.length>0){const M=(this.fixAndGetIndexOfCurrentSelection()+1)%x.length;this.currentlySelectedCompletionId=x[M].semanticId}else this.currentlySelectedCompletionId=void 0;this.onDidChangeEmitter.fire()})}showPreviousInlineCompletion(){return be(this,void 0,void 0,function*(){yield this.ensureUpdateWithExplicitContext();const x=this.filteredCompletions||[];if(x.length>0){const M=(this.fixAndGetIndexOfCurrentSelection()+x.length-1)%x.length;this.currentlySelectedCompletionId=x[M].semanticId}else this.currentlySelectedCompletionId=void 0;this.onDidChangeEmitter.fire()})}ensureUpdateWithExplicitContext(){var x;return be(this,void 0,void 0,function*(){this.updateOperation.value?this.updateOperation.value.triggerKind===u.InlineCompletionTriggerKind.Explicit?yield this.updateOperation.value.promise:yield this.update(u.InlineCompletionTriggerKind.Explicit):((x=this.cache.value)===null||x===void 0?void 0:x.triggerKind)!==u.InlineCompletionTriggerKind.Explicit&&(yield this.update(u.InlineCompletionTriggerKind.Explicit))})}hasMultipleInlineCompletions(){var x;return be(this,void 0,void 0,function*(){return yield this.ensureUpdateWithExplicitContext(),(((x=this.cache.value)===null||x===void 0?void 0:x.completions.length)||0)>1})}get ghostText(){const x=this.currentCompletion;if(!x)return;const M=this.editor.getPosition();if(x.range.getEndPosition().isBefore(M))return;const P=this.editor.getOptions().get(57).mode,A=(0,o.inlineCompletionToGhostText)(x,this.editor.getModel(),P,M);return A?A.isEmpty()?void 0:A:new n.GhostTextReplacement(x.range.startLineNumber,x.range.startColumn,x.range.endColumn-x.range.startColumn,x.insertText.split(` `),0)}get currentCompletion(){const x=this.currentCachedCompletion;if(x)return x.toLiveInlineCompletion()}get isValid(){return this.editor.getPosition().lineNumber===this.triggerPosition.lineNumber}scheduleAutomaticUpdate(){this.updateOperation.clear(),this.updateSoon.schedule(this.debounce.get(this.editor.getModel()))}update(x){return be(this,void 0,void 0,function*(){if(!this.shouldUpdate())return;const M=this.editor.getPosition(),P=new Date,A=(0,y.createCancelablePromise)(K=>be(this,void 0,void 0,function*(){let T;try{T=yield I(this.registry,M,this.editor.getModel(),{triggerKind:x,selectedSuggestionInfo:void 0},K,this.languageConfigurationService);const ee=new Date;this.debounce.update(this.editor.getModel(),ee.getTime()-P.getTime())}catch(ee){(0,k.onUnexpectedError)(ee);return}K.isCancellationRequested||(this.cache.setValue(this.editor,T,x),this.updateFilteredInlineCompletions(),this.onDidChangeEmitter.fire())})),B=new E(A,x);this.updateOperation.value=B,yield A,this.updateOperation.value===B&&this.updateOperation.clear()})}takeOwnership(x){this._register(x)}commitCurrentCompletion(){if(!this.ghostText)return;const x=this.currentCompletion;x&&this.commit(x)}commit(x){var M;const P=this.cache.clearAndLeak();x.snippetInfo?(this.editor.executeEdits("inlineSuggestion.accept",[C.EditOperation.replaceMove(x.range,""),...x.additionalTextEdits]),this.editor.setPosition(x.snippetInfo.range.getStartPosition()),(M=c.SnippetController2.get(this.editor))===null||M===void 0||M.insert(x.snippetInfo.snippet)):this.editor.executeEdits("inlineSuggestion.accept",[C.EditOperation.replaceMove(x.range,x.insertText),...x.additionalTextEdits]),x.command?this.commandService.executeCommand(x.command.id,...x.command.arguments||[]).finally(()=>{P?.dispose()}).then(void 0,k.onUnexpectedExternalError):P?.dispose(),this.onDidChangeEmitter.fire()}get commands(){var x;return[...new Set(((x=this.cache.value)===null||x===void 0?void 0:x.completions.map(M=>M.inlineCompletion.sourceInlineCompletions))||[])].flatMap(M=>M.commands||[])}}e.InlineCompletionsSession=S;class E{constructor(x,M){this.promise=x,this.triggerKind=M}dispose(){this.promise.cancel()}}e.UpdateOperation=E;class L extends w.Disposable{constructor(x,M,P,A){super(),this.editor=M,this.onChange=P,this.triggerKind=A,this.isDisposing=!1;const B=M.changeDecorations(K=>K.deltaDecorations([],x.items.map(T=>({range:T.range,options:{description:"inline-completion-tracking-range"}}))));this._register((0,w.toDisposable)(()=>{this.isDisposing=!0,M.removeDecorations(B)})),this.completions=x.items.map((K,T)=>new N(K,B[T])),this._register(M.onDidChangeModelContent(()=>{this.updateRanges()})),this._register(x)}updateRanges(){if(this.isDisposing)return;let x=!1;const M=this.editor.getModel();for(const P of this.completions){const A=M.getDecorationRange(P.decorationId);if(!A){(0,k.onUnexpectedError)(new Error("Decoration has no range"));continue}P.synchronizedRange.equalsRange(A)||(x=!0,P.synchronizedRange=A)}x&&this.onChange()}}e.SynchronizedInlineCompletionsCache=L;class N{constructor(x,M){this.inlineCompletion=x,this.decorationId=M,this.semanticId=JSON.stringify({text:this.inlineCompletion.insertText,abbreviation:this.inlineCompletion.filterText,startLine:this.inlineCompletion.range.startLineNumber,startColumn:this.inlineCompletion.range.startColumn,command:this.inlineCompletion.command}),this.synchronizedRange=x.range}toLiveInlineCompletion(){return{insertText:this.inlineCompletion.insertText,range:this.synchronizedRange,command:this.inlineCompletion.command,sourceProvider:this.inlineCompletion.sourceProvider,sourceInlineCompletions:this.inlineCompletion.sourceInlineCompletions,sourceInlineCompletion:this.inlineCompletion.sourceInlineCompletion,snippetInfo:this.inlineCompletion.snippetInfo,filterText:this.inlineCompletion.filterText,additionalTextEdits:this.inlineCompletion.additionalTextEdits}}}function I(O,x,M,P,A=v.CancellationToken.None,B){return be(this,void 0,void 0,function*(){const K=R(x,M),T=O.all(M),ee=yield Promise.all(T.map($=>be(this,void 0,void 0,function*(){const j=yield Promise.resolve($.provideInlineCompletions(M,x,P,A)).catch(k.onUnexpectedExternalError);return{completions:j,provider:$,dispose:()=>{j&&$.freeInlineCompletions(j)}}}))),J=new Map;for(const $ of ee){const j=$.completions;if(j)for(const G of j.items){let te=G.range?h.Range.lift(G.range):K;if(te.startLineNumber!==te.endLineNumber)continue;let Z,X;if(typeof G.insertText=="string"){if(Z=G.insertText,B&&G.completeBracketPairs){Z=F(Z,te.getStartPosition(),M,B);const H=Z.length-G.insertText.length;H!==0&&(te=new h.Range(te.startLineNumber,te.startColumn,te.endLineNumber,te.endColumn+H))}X=void 0}else"snippet"in G.insertText?(Z=new r.SnippetParser().parse(G.insertText.snippet).toString(),X={snippet:G.insertText.snippet,range:te}):(0,g.assertNever)(G.insertText);const ie={insertText:Z,snippetInfo:X,range:te,command:G.command,sourceProvider:$.provider,sourceInlineCompletions:j,sourceInlineCompletion:G,filterText:G.filterText||Z,additionalTextEdits:G.additionalTextEdits||(0,_.getReadonlyEmptyArray)()};J.set(JSON.stringify({insertText:Z,range:G.range}),ie)}}return{items:[...J.values()],dispose:()=>{for(const $ of ee)$.dispose()}}})}e.provideInlineCompletions=I;function R(O,x){const M=x.getWordAtPosition(O),P=x.getLineMaxColumn(O.lineNumber);return M?new h.Range(O.lineNumber,M.startColumn,O.lineNumber,P):h.Range.fromPositions(O,O.with(void 0,P))}function F(O,x,M,P){const A=M.getLineContent(x.lineNumber).substring(0,x.column-1)+O,B=M.tokenization.tokenizeLineWithEdit(x,A.length-(x.column-1),O),K=B?.sliceAndInflate(x.column-1,A.length,0);return K?(0,d.fixBracketsInLine)(K,P):O}}),define(oe[773],se([1,0,10,21,14,6,2,8,23,92,120,251,93,30,16,69,86,250,102,20]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SuggestModel=e.LineContext=void 0;class c{constructor(S,E,L,N,I){this.leadingLineContent=S.getLineContent(E.lineNumber).substr(0,E.column-1),this.leadingWord=S.getWordUntilPosition(E),this.lineNumber=E.lineNumber,this.column=E.column,this.auto=L,this.shy=N,this.noSelect=I}static shouldAutoTrigger(S){if(!S.hasModel())return!1;const E=S.getModel(),L=S.getPosition();E.tokenization.tokenizeIfCheap(L.lineNumber);const N=E.getWordAtPosition(L);return!(!N||N.endColumn!==L.column||!isNaN(Number(N.word)))}}e.LineContext=c;function g(m){return m.getOption(108).preview}function f(m,S,E){if(!S.getContextKeyValue("inlineSuggestionVisible"))return!0;const L=E.getValue("editor.inlineSuggest.allowQuickSuggestions");return L!==void 0?!!L:!1}function _(m,S,E){if(!S.getContextKeyValue("inlineSuggestionVisible"))return!0;const L=E.getValue("editor.inlineSuggest.allowSuggestOnTriggerCharacters");return L!==void 0?!!L:!1}let p=class pn{constructor(S,E,L,N,I,R,F,O){this._editor=S,this._editorWorkerService=E,this._clipboardService=L,this._telemetryService=N,this._logService=I,this._contextKeyService=R,this._configurationService=F,this._languageFeaturesService=O,this._toDispose=new w.DisposableStore,this._triggerCharacterListener=new w.DisposableStore,this._triggerQuickSuggest=new y.TimeoutTimer,this._state=0,this._completionDisposables=new w.DisposableStore,this._onDidCancel=new D.Emitter,this._onDidTrigger=new D.Emitter,this._onDidSuggest=new D.Emitter,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._telemetryGate=0,this._currentSelection=this._editor.getSelection()||new C.Selection(1,1,1,1),this._toDispose.add(this._editor.onDidChangeModel(()=>{this._updateTriggerCharacters(),this.cancel()})),this._toDispose.add(this._editor.onDidChangeModelLanguage(()=>{this._updateTriggerCharacters(),this.cancel()})),this._toDispose.add(this._editor.onDidChangeConfiguration(()=>{this._updateTriggerCharacters()})),this._toDispose.add(this._languageFeaturesService.completionProvider.onDidChange(()=>{this._updateTriggerCharacters(),this._updateActiveSuggestSession()}));let x=!1;this._toDispose.add(this._editor.onDidCompositionStart(()=>{x=!0})),this._toDispose.add(this._editor.onDidCompositionEnd(()=>{x=!1,this._onCompositionEnd()})),this._toDispose.add(this._editor.onDidChangeCursorSelection(M=>{x||this._onCursorChange(M)})),this._toDispose.add(this._editor.onDidChangeModelContent(()=>{x||this._refilterCompletionItems()})),this._updateTriggerCharacters()}dispose(){(0,w.dispose)(this._triggerCharacterListener),(0,w.dispose)([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()}_updateTriggerCharacters(){if(this._triggerCharacterListener.clear(),this._editor.getOption(83)||!this._editor.hasModel()||!this._editor.getOption(111))return;const S=new Map;for(const L of this._languageFeaturesService.completionProvider.all(this._editor.getModel()))for(const N of L.triggerCharacters||[]){let I=S.get(N);I||(I=new Set,I.add((0,a.getSnippetSuggestSupport)()),S.set(N,I)),I.add(L)}const E=L=>{if(!_(this._editor,this._contextKeyService,this._configurationService)||c.shouldAutoTrigger(this._editor))return;if(!L){const R=this._editor.getPosition();L=this._editor.getModel().getLineContent(R.lineNumber).substr(0,R.column-1)}let N="";(0,b.isLowSurrogate)(L.charCodeAt(L.length-1))?(0,b.isHighSurrogate)(L.charCodeAt(L.length-2))&&(N=L.substr(L.length-2)):N=L.charAt(L.length-1);const I=S.get(N);if(I){const R=this._completionModel?{items:this._completionModel.adopt(I),clipboardText:this._completionModel.clipboardText}:void 0;this.trigger({auto:!0,shy:!1,noSelect:!1,triggerCharacter:N},!!this._completionModel,I,R)}};this._triggerCharacterListener.add(this._editor.onDidType(E)),this._triggerCharacterListener.add(this._editor.onDidCompositionEnd(()=>E()))}get state(){return this._state}cancel(S=!1){var E;this._state!==0&&(this._triggerQuickSuggest.cancel(),(E=this._requestToken)===null||E===void 0||E.cancel(),this._requestToken=void 0,this._state=0,this._completionModel=void 0,this._context=void 0,this._onDidCancel.fire({retrigger:S}))}clear(){this._completionDisposables.clear()}_updateActiveSuggestSession(){this._state!==0&&(!this._editor.hasModel()||!this._languageFeaturesService.completionProvider.has(this._editor.getModel())?this.cancel():this.trigger({auto:this._state===2,shy:!1,noSelect:!1},!0))}_onCursorChange(S){if(!this._editor.hasModel())return;const E=this._currentSelection;if(this._currentSelection=this._editor.getSelection(),!S.selection.isEmpty()||S.reason!==0&&S.reason!==3||S.source!=="keyboard"&&S.source!=="deleteLeft"){this.cancel();return}this._state===0&&S.reason===0?(E.containsRange(this._currentSelection)||E.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition()))&&this._doTriggerQuickSuggest():this._state!==0&&S.reason===3&&this._refilterCompletionItems()}_onCompositionEnd(){this._state===0?this._doTriggerQuickSuggest():this._refilterCompletionItems()}_doTriggerQuickSuggest(){var S;a.QuickSuggestionsOptions.isAllOff(this._editor.getOption(81))||this._editor.getOption(108).snippetsPreventQuickSuggestions&&(!((S=u.SnippetController2.get(this._editor))===null||S===void 0)&&S.isInSnippet())||(this.cancel(),this._triggerQuickSuggest.cancelAndSet(()=>{if(this._state!==0||!c.shouldAutoTrigger(this._editor)||!this._editor.hasModel()||!this._editor.hasWidgetFocus())return;const E=this._editor.getModel(),L=this._editor.getPosition(),N=this._editor.getOption(81);if(!a.QuickSuggestionsOptions.isAllOff(N)){if(!a.QuickSuggestionsOptions.isAllOn(N)){E.tokenization.tokenizeIfCheap(L.lineNumber);const I=E.tokenization.getLineTokens(L.lineNumber),R=I.getStandardTokenType(I.findTokenIndexAtOffset(Math.max(L.column-1-1,0)));if(a.QuickSuggestionsOptions.valueFor(N,R)!=="on")return}!f(this._editor,this._contextKeyService,this._configurationService)||!this._languageFeaturesService.completionProvider.has(E)||this.trigger({auto:!0,shy:!1,noSelect:!1})}},this._editor.getOption(82)))}_refilterCompletionItems(){Promise.resolve().then(()=>{if(this._state===0||!this._editor.hasModel())return;const S=this._editor.getModel(),E=this._editor.getPosition(),L=new c(S,E,this._state===2,!1,!1);this._onNewContext(L)})}trigger(S,E=!1,L,N,I){var R;if(!this._editor.hasModel())return;const F=this._editor.getModel(),O=S.auto,x=new c(F,this._editor.getPosition(),O,S.shy,S.noSelect);this.cancel(E),this._state=O?2:1,this._onDidTrigger.fire({auto:O,shy:S.shy,position:this._editor.getPosition()}),this._context=x;let M={triggerKind:(R=S.triggerKind)!==null&&R!==void 0?R:0};S.triggerCharacter&&(M={triggerKind:1,triggerCharacter:S.triggerCharacter}),this._requestToken=new v.CancellationTokenSource;const P=this._editor.getOption(103);let A=1;switch(P){case"top":A=0;break;case"bottom":A=2;break}const{itemKind:B,showDeprecated:K}=pn._createSuggestFilter(this._editor),T=new a.CompletionOptions(A,I?new Set:B,L,K),ee=n.WordDistance.create(this._editorWorkerService,this._editor),J=(0,a.provideSuggestionItems)(this._languageFeaturesService.completionProvider,F,this._editor.getPosition(),T,M,this._requestToken.token);Promise.all([J,ee]).then(([$,j])=>be(this,void 0,void 0,function*(){var G;if((G=this._requestToken)===null||G===void 0||G.dispose(),!this._editor.hasModel())return;let te=N?.clipboardText;if(!te&&$.needsClipboard&&(te=yield this._clipboardService.readText()),this._state===0)return;const Z=this._editor.getModel();let X=$.items;if(N){const H=(0,a.getSuggestionComparator)(A);X=X.concat(N.items).sort(H)}const ie=new c(Z,this._editor.getPosition(),O,S.shy,S.noSelect);this._completionModel=new l.CompletionModel(X,this._context.column,{leadingLineContent:ie.leadingLineContent,characterCountDelta:ie.column-this._context.column},j,this._editor.getOption(108),this._editor.getOption(103),void 0,te),this._completionDisposables.add($.disposable),this._onNewContext(ie),this._reportDurationsTelemetry($.durations)})).catch(k.onUnexpectedError)}_reportDurationsTelemetry(S){this._telemetryGate++%230==0&&setTimeout(()=>{this._telemetryService.publicLog2("suggest.durations.json",{data:JSON.stringify(S)}),this._logService.debug("suggest.durations.json",S)})}static _createSuggestFilter(S){const E=new Set;S.getOption(103)==="none"&&E.add(27);const L=S.getOption(108);return L.showMethods||E.add(0),L.showFunctions||E.add(1),L.showConstructors||E.add(2),L.showFields||E.add(3),L.showVariables||E.add(4),L.showClasses||E.add(5),L.showStructs||E.add(6),L.showInterfaces||E.add(7),L.showModules||E.add(8),L.showProperties||E.add(9),L.showEvents||E.add(10),L.showOperators||E.add(11),L.showUnits||E.add(12),L.showValues||E.add(13),L.showConstants||E.add(14),L.showEnums||E.add(15),L.showEnumMembers||E.add(16),L.showKeywords||E.add(17),L.showWords||E.add(18),L.showColors||E.add(19),L.showFiles||E.add(20),L.showReferences||E.add(21),L.showColors||E.add(22),L.showFolders||E.add(23),L.showTypeParameters||E.add(24),L.showSnippets||E.add(27),L.showUsers||E.add(25),L.showIssues||E.add(26),{itemKind:E,showDeprecated:L.showDeprecated}}_onNewContext(S){if(this._context){if(S.lineNumber!==this._context.lineNumber){this.cancel();return}if((0,b.getLeadingWhitespace)(S.leadingLineContent)!==(0,b.getLeadingWhitespace)(this._context.leadingLineContent)){this.cancel();return}if(S.column<this._context.column){S.leadingWord.word?this.trigger({auto:this._context.auto,shy:!1,noSelect:!1},!0):this.cancel();return}if(this._completionModel){if(S.leadingWord.word.length!==0&&S.leadingWord.startColumn>this._context.leadingWord.startColumn){const E=new Set(this._languageFeaturesService.completionProvider.all(this._editor.getModel()));for(const N of this._completionModel.allProvider)E.delete(N);const L=this._completionModel.adopt(new Set);this.trigger({auto:this._context.auto,shy:!1,noSelect:!1},!0,E,{items:L,clipboardText:this._completionModel.clipboardText});return}if(S.column>this._context.column&&this._completionModel.incomplete.size>0&&S.leadingWord.word.length!==0){const{incomplete:E}=this._completionModel,L=this._completionModel.adopt(E);this.trigger({auto:this._state===2,shy:!1,noSelect:!1,triggerKind:2},!0,E,{items:L,clipboardText:this._completionModel.clipboardText})}else{const E=this._completionModel.lineContext;let L=!1;if(this._completionModel.lineContext={leadingLineContent:S.leadingLineContent,characterCountDelta:S.column-this._context.column},this._completionModel.items.length===0){if(c.shouldAutoTrigger(this._editor)&&this._context.leadingWord.endColumn<S.leadingWord.startColumn){this.trigger({auto:this._context.auto,shy:!1,noSelect:!1},!0);return}if(this._context.auto){this.cancel();return}else if(this._completionModel.lineContext=E,L=this._completionModel.items.length>0,L&&S.leadingWord.word.length===0){this.cancel();return}}this._onDidSuggest.fire({completionModel:this._completionModel,auto:this._context.auto,shy:this._context.shy,noSelect:this._context.noSelect,isFrozen:L})}}}}};p=Ie([pe(1,h.IEditorWorkerService),pe(2,i.IClipboardService),pe(3,d.ITelemetryService),pe(4,s.ILogService),pe(5,o.IContextKeyService),pe(6,t.IConfigurationService),pe(7,r.ILanguageFeaturesService)],p),e.SuggestModel=p}),define(oe[321],se([1,0,49,18,10,21,14,6,104,2,17,57,19,152,12,60,11,3,24,120,89,294,633,597,26,16,9,69,102,632,459,773,460,756,86,43,105]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r,c,g,f,_,p,m,S,E,L,N,I,R,F,O,x,M,P){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TriggerSuggestAction=e.SuggestController=void 0;const A=!1;class B{constructor(G,te){if(this._model=G,this._position=te,G.getLineMaxColumn(te.lineNumber)!==te.column){const Z=G.getOffsetAt(te),X=G.getPositionAt(Z+1);this._marker=G.deltaDecorations([],[{range:l.Range.fromPositions(te,X),options:{description:"suggest-line-suffix",stickiness:1}}])}}dispose(){this._marker&&!this._model.isDisposed()&&this._model.deltaDecorations(this._marker,[])}delta(G){if(this._model.isDisposed()||this._position.lineNumber!==G.lineNumber)return 0;if(this._marker){const te=this._model.getDecorationRange(this._marker[0]);return this._model.getOffsetAt(te.getStartPosition())-this._model.getOffsetAt(G)}else return this._model.getLineMaxColumn(G.lineNumber)-G.column}}let K=class mn{constructor(G,te,Z,X,ie,H,ae){this._memoryService=te,this._commandService=Z,this._contextKeyService=X,this._instantiationService=ie,this._logService=H,this._telemetryService=ae,this._lineSuffix=new h.MutableDisposable,this._toDispose=new h.DisposableStore,this._selectors=new T(z=>z.priority),this._telemetryGate=0,this.editor=G,this.model=ie.createInstance(R.SuggestModel,this.editor);const Y=L.Context.InsertMode.bindTo(X);Y.set(G.getOption(108).insertMode),this.model.onDidTrigger(()=>Y.set(G.getOption(108).insertMode)),this.widget=this._toDispose.add(new k.IdleValue(()=>{const z=this._instantiationService.createInstance(O.SuggestWidget,this.editor);this._toDispose.add(z),this._toDispose.add(z.onDidSelect(de=>this._insertSuggestion(de,0),this));const Q=new I.CommitCharacterController(this.editor,z,de=>this._insertSuggestion(de,2));this._toDispose.add(Q),this._toDispose.add(this.model.onDidSuggest(de=>{de.completionModel.items.length===0&&Q.reset()}));const W=L.Context.MakesTextEdit.bindTo(this._contextKeyService),V=L.Context.HasInsertAndReplaceRange.bindTo(this._contextKeyService),ne=L.Context.CanResolve.bindTo(this._contextKeyService);return this._toDispose.add((0,h.toDisposable)(()=>{W.reset(),V.reset(),ne.reset()})),this._toDispose.add(z.onDidFocus(({item:de})=>{const ce=this.editor.getPosition(),ue=de.editStart.column,me=ce.column;let _e=!0;this.editor.getOption(1)==="smart"&&this.model.state===2&&!de.completion.additionalTextEdits&&!(de.completion.insertTextRules&4)&&me-ue===de.completion.insertText.length&&(_e=this.editor.getModel().getValueInRange({startLineNumber:ce.lineNumber,startColumn:ue,endLineNumber:ce.lineNumber,endColumn:me})!==de.completion.insertText),W.set(_e),V.set(!d.Position.equals(de.editInsertEnd,de.editReplaceEnd)),ne.set(!!de.provider.resolveCompletionItem||!!de.completion.documentation||de.completion.detail!==de.completion.label)})),this._toDispose.add(z.onDetailsKeyDown(de=>{if(de.toKeybinding().equals(new C.SimpleKeybinding(!0,!1,!1,!1,33))||u.isMacintosh&&de.toKeybinding().equals(new C.SimpleKeybinding(!1,!1,!1,!0,33))){de.stopPropagation();return}de.toKeybinding().isModifierKey()||this.editor.focus()})),z})),this._overtypingCapturer=this._toDispose.add(new k.IdleValue(()=>this._toDispose.add(new F.OvertypingCapturer(this.editor,this.model)))),this._alternatives=this._toDispose.add(new k.IdleValue(()=>this._toDispose.add(new N.SuggestAlternatives(this.editor,this._contextKeyService)))),this._toDispose.add(ie.createInstance(f.WordContextKey,G)),this._toDispose.add(this.model.onDidTrigger(z=>{this.widget.value.showTriggered(z.auto,z.shy?250:50),this._lineSuffix.value=new B(this.editor.getModel(),z.position)})),this._toDispose.add(this.model.onDidSuggest(z=>{if(z.shy)return;let Q=-1;if(!z.noSelect){for(const W of this._selectors.itemsOrderedByPriorityDesc)if(Q=W.select(this.editor.getModel(),this.editor.getPosition(),z.completionModel.items),Q!==-1)break;Q===-1&&(Q=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),z.completionModel.items))}this.widget.value.showSuggestions(z.completionModel,Q,z.isFrozen,z.auto)})),this._toDispose.add(this.model.onDidCancel(z=>{z.retrigger||this.widget.value.hideWidget()})),this._toDispose.add(this.editor.onDidBlurEditorWidget(()=>{A||(this.model.cancel(),this.model.clear())}));const U=L.Context.AcceptSuggestionsOnEnter.bindTo(X),le=()=>{const z=this.editor.getOption(1);U.set(z==="on"||z==="smart")};this._toDispose.add(this.editor.onDidChangeConfiguration(()=>le())),le()}static get(G){return G.getContribution(mn.ID)}dispose(){this._alternatives.dispose(),this._toDispose.dispose(),this.widget.dispose(),this.model.dispose(),this._lineSuffix.dispose()}_insertSuggestion(G,te){if(!G||!G.item){this._alternatives.value.reset(),this.model.cancel(),this.model.clear();return}if(!this.editor.hasModel())return;const Z=r.SnippetController2.get(this.editor);if(!Z)return;const X=this.editor.getModel(),ie=X.getAlternativeVersionId(),{item:H}=G,ae=[],Y=new D.CancellationTokenSource;te&1||this.editor.pushUndoStop();const U=this.getOverwriteInfo(H,!!(te&8));if(this._memoryService.memorize(X,this.editor.getPosition(),H),Array.isArray(H.completion.additionalTextEdits)){const z=t.StableEditorScrollState.capture(this.editor);this.editor.executeEdits("suggestController.additionalTextEdits.sync",H.completion.additionalTextEdits.map(Q=>s.EditOperation.replaceMove(l.Range.lift(Q.range),Q.text))),z.restoreRelativeVerticalPositionOfCursor(this.editor)}else if(!H.isResolved){const z=new n.StopWatch(!0);let Q;const W=X.onDidChangeContent(ce=>{if(ce.isFlush){Y.cancel(),W.dispose();return}for(const ue of ce.changes){const me=l.Range.getEndPosition(ue.range);(!Q||d.Position.isBefore(me,Q))&&(Q=me)}}),V=te;te|=2;let ne=!1;const de=this.editor.onWillType(()=>{de.dispose(),ne=!0,V&2||this.editor.pushUndoStop()});ae.push(H.resolve(Y.token).then(()=>{if(!H.completion.additionalTextEdits||Y.token.isCancellationRequested||Q&&H.completion.additionalTextEdits.some(ue=>d.Position.isBefore(Q,l.Range.getStartPosition(ue.range))))return!1;ne&&this.editor.pushUndoStop();const ce=t.StableEditorScrollState.capture(this.editor);return this.editor.executeEdits("suggestController.additionalTextEdits.async",H.completion.additionalTextEdits.map(ue=>s.EditOperation.replaceMove(l.Range.lift(ue.range),ue.text))),ce.restoreRelativeVerticalPositionOfCursor(this.editor),(ne||!(V&2))&&this.editor.pushUndoStop(),!0}).then(ce=>{this._logService.trace("[suggest] async resolving of edits DONE (ms, applied?)",z.elapsed(),ce),W.dispose(),de.dispose()}))}let{insertText:le}=H.completion;H.completion.insertTextRules&4||(le=c.SnippetParser.escape(le)),Z.insert(le,{overwriteBefore:U.overwriteBefore,overwriteAfter:U.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(H.completion.insertTextRules&1),clipboardText:G.model.clipboardText,overtypingCapturer:this._overtypingCapturer.value}),te&2||this.editor.pushUndoStop(),H.completion.command?H.completion.command.id===ee.id?this.model.trigger({auto:!0,shy:!1,noSelect:!1},!0):(ae.push(this._commandService.executeCommand(H.completion.command.id,...H.completion.command.arguments?[...H.completion.command.arguments]:[]).catch(w.onUnexpectedError)),this.model.cancel()):this.model.cancel(),te&4&&this._alternatives.value.set(G,z=>{for(Y.cancel();X.canUndo();){ie!==X.getAlternativeVersionId()&&X.undo(),this._insertSuggestion(z,3|(te&8?8:0));break}}),this._alertCompletionItem(H),Promise.all(ae).finally(()=>{this._reportSuggestionAcceptedTelemetry(H,X,G),this.model.clear(),Y.dispose()})}_reportSuggestionAcceptedTelemetry(G,te,Z){var X;if(this._telemetryGate++%100!=0)return;const ie=G.extensionId?G.extensionId.value:((X=Z.item.provider._debugDisplayName)!==null&&X!==void 0?X:"unknown").split("(",1)[0].toLowerCase();this._telemetryService.publicLog2("suggest.acceptedSuggestion",{providerId:ie,kind:G.completion.kind,basenameHash:(0,P.hash)((0,M.basename)(te.uri)).toString(16),languageId:te.getLanguageId(),fileExtension:(0,M.extname)(te.uri)})}getOverwriteInfo(G,te){(0,i.assertType)(this.editor.hasModel());let Z=this.editor.getOption(108).insertMode==="replace";te&&(Z=!Z);const X=G.position.column-G.editStart.column,ie=(Z?G.editReplaceEnd.column:G.editInsertEnd.column)-G.position.column,H=this.editor.getPosition().column-G.position.column,ae=this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0;return{overwriteBefore:X+H,overwriteAfter:ie+ae}}_alertCompletionItem(G){if((0,v.isNonEmptyArray)(G.completion.additionalTextEdits)){const te=_.localize(0,null,G.textLabel,G.completion.additionalTextEdits.length);(0,y.alert)(te)}}triggerSuggest(G,te,Z,X){this.editor.hasModel()&&(this.model.trigger({auto:te??!1,shy:!1,noSelect:X??!1},!1,G,void 0,Z),this.editor.revealPosition(this.editor.getPosition(),0),this.editor.focus())}triggerSuggestAndAcceptBest(G){if(!this.editor.hasModel())return;const te=this.editor.getPosition(),Z=()=>{te.equals(this.editor.getPosition())&&this._commandService.executeCommand(G.fallback)},X=ie=>{if(ie.completion.insertTextRules&4||ie.completion.additionalTextEdits)return!0;const H=this.editor.getPosition(),ae=ie.editStart.column,Y=H.column;return Y-ae!==ie.completion.insertText.length?!0:this.editor.getModel().getValueInRange({startLineNumber:H.lineNumber,startColumn:ae,endLineNumber:H.lineNumber,endColumn:Y})!==ie.completion.insertText};b.Event.once(this.model.onDidTrigger)(ie=>{const H=[];b.Event.any(this.model.onDidTrigger,this.model.onDidCancel)(()=>{(0,h.dispose)(H),Z()},void 0,H),this.model.onDidSuggest(({completionModel:ae})=>{if((0,h.dispose)(H),ae.items.length===0){Z();return}const Y=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),ae.items),U=ae.items[Y];if(!X(U)){Z();return}this.editor.pushUndoStop(),this._insertSuggestion({index:Y,item:U,model:ae},7)},void 0,H)}),this.model.trigger({auto:!1,shy:!0,noSelect:!1}),this.editor.revealPosition(te,0),this.editor.focus()}acceptSelectedSuggestion(G,te){const Z=this.widget.value.getFocusedItem();let X=0;G&&(X|=4),te&&(X|=8),this._insertSuggestion(Z,X)}acceptNextSuggestion(){this._alternatives.value.next()}acceptPrevSuggestion(){this._alternatives.value.prev()}cancelSuggestWidget(){this.model.cancel(),this.model.clear(),this.widget.value.hideWidget()}selectNextSuggestion(){this.widget.value.selectNext()}selectNextPageSuggestion(){this.widget.value.selectNextPage()}selectLastSuggestion(){this.widget.value.selectLast()}selectPrevSuggestion(){this.widget.value.selectPrevious()}selectPrevPageSuggestion(){this.widget.value.selectPreviousPage()}selectFirstSuggestion(){this.widget.value.selectFirst()}toggleSuggestionDetails(){this.widget.value.toggleDetails()}toggleExplainMode(){this.widget.value.toggleExplainMode()}toggleSuggestionFocus(){this.widget.value.toggleDetailsFocus()}resetWidgetSize(){this.widget.value.resetPersistedSize()}forceRenderingAbove(){this.widget.value.forceRenderingAbove()}stopForceRenderingAbove(){!this.widget.isInitialized||this.widget.value.stopForceRenderingAbove()}registerSelector(G){return this._selectors.register(G)}};K.ID="editor.contrib.suggestController",K=Ie([pe(1,g.ISuggestMemoryService),pe(2,p.ICommandService),pe(3,m.IContextKeyService),pe(4,S.IInstantiationService),pe(5,E.ILogService),pe(6,x.ITelemetryService)],K),e.SuggestController=K;class T{constructor(G){this.prioritySelector=G,this._items=new Array}register(G){if(this._items.indexOf(G)!==-1)throw new Error("Value is already registered");return this._items.push(G),this._items.sort((te,Z)=>this.prioritySelector(Z)-this.prioritySelector(te)),{dispose:()=>{const te=this._items.indexOf(G);te>=0&&this._items.splice(te,1)}}}get itemsOrderedByPriorityDesc(){return this._items}}class ee extends o.EditorAction{constructor(){super({id:ee.id,label:_.localize(1,null),alias:"Trigger Suggest",precondition:m.ContextKeyExpr.and(a.EditorContextKeys.writable,a.EditorContextKeys.hasCompletionItemProvider),kbOpts:{kbExpr:a.EditorContextKeys.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[521,2087]},weight:100}})}run(G,te,Z){const X=K.get(te);if(!X)return;let ie,H;Z&&typeof Z=="object"&&(Z.auto===!0&&(ie=!0),Z.noSelection===!0&&(H=!0)),X.triggerSuggest(void 0,ie,void 0,H)}}e.TriggerSuggestAction=ee,ee.id="editor.action.triggerSuggest",(0,o.registerEditorContribution)(K.ID,K),(0,o.registerEditorAction)(ee);const J=100+90,$=o.EditorCommand.bindToContribution(K.get);(0,o.registerEditorCommand)(new $({id:"acceptSelectedSuggestion",precondition:m.ContextKeyExpr.and(L.Context.Visible,L.Context.HasFocusedSuggestion),handler(j){j.acceptSelectedSuggestion(!0,!1)},kbOpts:[{primary:2,kbExpr:m.ContextKeyExpr.and(L.Context.Visible,a.EditorContextKeys.textInputFocus),weight:J},{primary:3,kbExpr:m.ContextKeyExpr.and(L.Context.Visible,a.EditorContextKeys.textInputFocus,L.Context.AcceptSuggestionsOnEnter,L.Context.MakesTextEdit),weight:J}],menuOpts:[{menuId:L.suggestWidgetStatusbarMenu,title:_.localize(2,null),group:"left",order:1,when:L.Context.HasInsertAndReplaceRange.toNegated()},{menuId:L.suggestWidgetStatusbarMenu,title:_.localize(3,null),group:"left",order:1,when:m.ContextKeyExpr.and(L.Context.HasInsertAndReplaceRange,L.Context.InsertMode.isEqualTo("insert"))},{menuId:L.suggestWidgetStatusbarMenu,title:_.localize(4,null),group:"left",order:1,when:m.ContextKeyExpr.and(L.Context.HasInsertAndReplaceRange,L.Context.InsertMode.isEqualTo("replace"))}]})),(0,o.registerEditorCommand)(new $({id:"acceptAlternativeSelectedSuggestion",precondition:m.ContextKeyExpr.and(L.Context.Visible,a.EditorContextKeys.textInputFocus,L.Context.HasFocusedSuggestion),kbOpts:{weight:J,kbExpr:a.EditorContextKeys.textInputFocus,primary:1027,secondary:[1026]},handler(j){j.acceptSelectedSuggestion(!1,!0)},menuOpts:[{menuId:L.suggestWidgetStatusbarMenu,group:"left",order:2,when:m.ContextKeyExpr.and(L.Context.HasInsertAndReplaceRange,L.Context.InsertMode.isEqualTo("insert")),title:_.localize(5,null)},{menuId:L.suggestWidgetStatusbarMenu,group:"left",order:2,when:m.ContextKeyExpr.and(L.Context.HasInsertAndReplaceRange,L.Context.InsertMode.isEqualTo("replace")),title:_.localize(6,null)}]})),p.CommandsRegistry.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion"),(0,o.registerEditorCommand)(new $({id:"hideSuggestWidget",precondition:L.Context.Visible,handler:j=>j.cancelSuggestWidget(),kbOpts:{weight:J,kbExpr:a.EditorContextKeys.textInputFocus,primary:9,secondary:[1033]}})),(0,o.registerEditorCommand)(new $({id:"selectNextSuggestion",precondition:m.ContextKeyExpr.and(L.Context.Visible,L.Context.MultipleSuggestions),handler:j=>j.selectNextSuggestion(),kbOpts:{weight:J,kbExpr:a.EditorContextKeys.textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})),(0,o.registerEditorCommand)(new $({id:"selectNextPageSuggestion",precondition:m.ContextKeyExpr.and(L.Context.Visible,L.Context.MultipleSuggestions),handler:j=>j.selectNextPageSuggestion(),kbOpts:{weight:J,kbExpr:a.EditorContextKeys.textInputFocus,primary:12,secondary:[2060]}})),(0,o.registerEditorCommand)(new $({id:"selectLastSuggestion",precondition:m.ContextKeyExpr.and(L.Context.Visible,L.Context.MultipleSuggestions),handler:j=>j.selectLastSuggestion()})),(0,o.registerEditorCommand)(new $({id:"selectPrevSuggestion",precondition:m.ContextKeyExpr.and(L.Context.Visible,L.Context.MultipleSuggestions),handler:j=>j.selectPrevSuggestion(),kbOpts:{weight:J,kbExpr:a.EditorContextKeys.textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})),(0,o.registerEditorCommand)(new $({id:"selectPrevPageSuggestion",precondition:m.ContextKeyExpr.and(L.Context.Visible,L.Context.MultipleSuggestions),handler:j=>j.selectPrevPageSuggestion(),kbOpts:{weight:J,kbExpr:a.EditorContextKeys.textInputFocus,primary:11,secondary:[2059]}})),(0,o.registerEditorCommand)(new $({id:"selectFirstSuggestion",precondition:m.ContextKeyExpr.and(L.Context.Visible,L.Context.MultipleSuggestions),handler:j=>j.selectFirstSuggestion()})),(0,o.registerEditorCommand)(new $({id:"toggleSuggestionDetails",precondition:L.Context.Visible,handler:j=>j.toggleSuggestionDetails(),kbOpts:{weight:J,kbExpr:a.EditorContextKeys.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}},menuOpts:[{menuId:L.suggestWidgetStatusbarMenu,group:"right",order:1,when:m.ContextKeyExpr.and(L.Context.DetailsVisible,L.Context.CanResolve),title:_.localize(7,null)},{menuId:L.suggestWidgetStatusbarMenu,group:"right",order:1,when:m.ContextKeyExpr.and(L.Context.DetailsVisible.toNegated(),L.Context.CanResolve),title:_.localize(8,null)}]})),(0,o.registerEditorCommand)(new $({id:"toggleExplainMode",precondition:L.Context.Visible,handler:j=>j.toggleExplainMode(),kbOpts:{weight:100,primary:2133}})),(0,o.registerEditorCommand)(new $({id:"toggleSuggestionFocus",precondition:L.Context.Visible,handler:j=>j.toggleSuggestionFocus(),kbOpts:{weight:J,kbExpr:a.EditorContextKeys.textInputFocus,primary:2570,mac:{primary:778}}})),(0,o.registerEditorCommand)(new $({id:"insertBestCompletion",precondition:m.ContextKeyExpr.and(a.EditorContextKeys.textInputFocus,m.ContextKeyExpr.equals("config.editor.tabCompletion","on"),f.WordContextKey.AtEnd,L.Context.Visible.toNegated(),N.SuggestAlternatives.OtherSuggestions.toNegated(),r.SnippetController2.InSnippetMode.toNegated()),handler:(j,G)=>{j.triggerSuggestAndAcceptBest((0,i.isObject)(G)?Object.assign({fallback:"tab"},G):{fallback:"tab"})},kbOpts:{weight:J,primary:2}})),(0,o.registerEditorCommand)(new $({id:"insertNextSuggestion",precondition:m.ContextKeyExpr.and(a.EditorContextKeys.textInputFocus,m.ContextKeyExpr.equals("config.editor.tabCompletion","on"),N.SuggestAlternatives.OtherSuggestions,L.Context.Visible.toNegated(),r.SnippetController2.InSnippetMode.toNegated()),handler:j=>j.acceptNextSuggestion(),kbOpts:{weight:J,kbExpr:a.EditorContextKeys.textInputFocus,primary:2}})),(0,o.registerEditorCommand)(new $({id:"insertPrevSuggestion",precondition:m.ContextKeyExpr.and(a.EditorContextKeys.textInputFocus,m.ContextKeyExpr.equals("config.editor.tabCompletion","on"),N.SuggestAlternatives.OtherSuggestions,L.Context.Visible.toNegated(),r.SnippetController2.InSnippetMode.toNegated()),handler:j=>j.acceptPrevSuggestion(),kbOpts:{weight:J,kbExpr:a.EditorContextKeys.textInputFocus,primary:1026}})),(0,o.registerEditorAction)(class extends o.EditorAction{constructor(){super({id:"editor.action.resetSuggestSize",label:_.localize(9,null),alias:"Reset Suggest Widget Size",precondition:void 0})}run(j,G){var te;(te=K.get(G))===null||te===void 0||te.resetWidgetSize()}})}),define(oe[774],se([1,0,18,10,6,2,11,3,89,319,321,206]),function(q,e,y,v,k,D,w,b,C,h,u,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.rangeStartsWith=e.SuggestWidgetInlineCompletionProvider=void 0;class i extends D.Disposable{constructor(l,a){super(),this.editor=l,this.suggestControllerPreselector=a,this.isSuggestWidgetVisible=!1,this.isShiftKeyPressed=!1,this._isActive=!1,this._currentSuggestItemInfo=void 0,this.onDidChangeEmitter=new k.Emitter,this.onDidChange=this.onDidChangeEmitter.event,this.setInactiveDelayed=this._register(new v.RunOnceScheduler(()=>{this.isSuggestWidgetVisible||this._isActive&&(this._isActive=!1,this.onDidChangeEmitter.fire())},100)),this._register(l.onKeyDown(c=>{c.shiftKey&&!this.isShiftKeyPressed&&(this.isShiftKeyPressed=!0,this.update(this._isActive))})),this._register(l.onKeyUp(c=>{c.shiftKey&&this.isShiftKeyPressed&&(this.isShiftKeyPressed=!1,this.update(this._isActive))}));const r=u.SuggestController.get(this.editor);if(r){this._register(r.registerSelector({priority:100,select:(f,_,p)=>{const m=this.editor.getModel(),S=(0,n.minimizeInlineCompletion)(m,this.suggestControllerPreselector());if(!S)return-1;const E=w.Position.lift(_),L=p.map((I,R)=>{const F=s(r,E,I,this.isShiftKeyPressed),O=(0,n.minimizeInlineCompletion)(m,F?.normalizedInlineCompletion);if(!O)return;const x=t(S.range,O.range)&&S.insertText.startsWith(O.insertText);return{index:R,valid:x,prefixLength:O.insertText.length,suggestItem:I}}).filter(I=>I&&I.valid),N=(0,y.findMaxBy)(L,(0,y.compareBy)(I=>I.prefixLength,y.numberComparator));return N?N.index:-1}}));let c=!1;const g=()=>{c||(c=!0,this._register(r.widget.value.onDidShow(()=>{this.isSuggestWidgetVisible=!0,this.update(!0)})),this._register(r.widget.value.onDidHide(()=>{this.isSuggestWidgetVisible=!1,this.setInactiveDelayed.schedule(),this.update(this._isActive)})),this._register(r.widget.value.onDidFocus(()=>{this.isSuggestWidgetVisible=!0,this.update(!0)})))};this._register(k.Event.once(r.model.onDidTrigger)(f=>{g()}))}this.update(this._isActive)}get state(){if(this._isActive)return{selectedItem:this._currentSuggestItemInfo}}update(l){const a=this.getSuggestItemInfo();let r=!1;o(this._currentSuggestItemInfo,a)||(this._currentSuggestItemInfo=a,r=!0),this._isActive!==l&&(this._isActive=l,r=!0),r&&this.onDidChangeEmitter.fire()}getSuggestItemInfo(){const l=u.SuggestController.get(this.editor);if(!l||!this.isSuggestWidgetVisible)return;const a=l.widget.value.getFocusedItem();if(a)return s(l,this.editor.getPosition(),a.item,this.isShiftKeyPressed)}stopForceRenderingAbove(){const l=u.SuggestController.get(this.editor);l&&l.stopForceRenderingAbove()}forceRenderingAbove(){const l=u.SuggestController.get(this.editor);l&&l.forceRenderingAbove()}}e.SuggestWidgetInlineCompletionProvider=i;function t(d,l){return l.startLineNumber===d.startLineNumber&&l.startColumn===d.startColumn&&(l.endLineNumber<d.endLineNumber||l.endLineNumber===d.endLineNumber&&l.endColumn<=d.endColumn)}e.rangeStartsWith=t;function o(d,l){return d===l?!0:!d||!l?!1:d.completionItemKind===l.completionItemKind&&d.isSnippetText===l.isSnippetText&&(0,n.normalizedInlineCompletionsEquals)(d.normalizedInlineCompletion,l.normalizedInlineCompletion)}function s(d,l,a,r){if(Array.isArray(a.completion.additionalTextEdits)&&a.completion.additionalTextEdits.length>0)return{completionItemKind:a.completion.kind,isSnippetText:!1,normalizedInlineCompletion:{range:b.Range.fromPositions(l,l),insertText:"",filterText:"",snippetInfo:void 0,additionalTextEdits:[]}};let{insertText:c}=a.completion,g=!1;if(a.completion.insertTextRules&4){const _=new C.SnippetParser().parse(c),p=d.editor.getModel();if(_.children.length>100)return;h.SnippetSession.adjustWhitespace(p,l,_,!0,!0),c=_.toString(),g=!0}const f=d.getOverwriteInfo(a,r);return{isSnippetText:g,completionItemKind:a.completion.kind,normalizedInlineCompletion:{insertText:c,filterText:c,range:b.Range.fromPositions(l.delta(0,-f.overwriteBefore),l.delta(0,Math.max(f.overwriteAfter,0))),snippetInfo:void 0,additionalTextEdits:[]}}}}),define(oe[775],se([1,0,10,14,2,28,20,165,320,206,774]),function(q,e,y,v,k,D,w,b,C,h,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SuggestWidgetPreviewModel=void 0;let n=class extends b.BaseGhostTextWidgetModel{constructor(t,o,s){super(t),this.cache=o,this.languageFeaturesService=s,this.suggestionInlineCompletionSource=this._register(new u.SuggestWidgetInlineCompletionProvider(this.editor,()=>{var d,l;return(l=(d=this.cache.value)===null||d===void 0?void 0:d.completions[0])===null||l===void 0?void 0:l.toLiveInlineCompletion()})),this.updateOperation=this._register(new k.MutableDisposable),this.updateCacheSoon=this._register(new y.RunOnceScheduler(()=>this.updateCache(),50)),this.minReservedLineCount=0,this._register(this.suggestionInlineCompletionSource.onDidChange(()=>{if(!this.editor.hasModel())return;this.updateCacheSoon.schedule(),this.suggestionInlineCompletionSource.state||(this.minReservedLineCount=0);const d=this.ghostText;d&&(this.minReservedLineCount=Math.max(this.minReservedLineCount,i(d.parts.map(l=>l.lines.length-1)))),this.minReservedLineCount>=1?this.suggestionInlineCompletionSource.forceRenderingAbove():this.suggestionInlineCompletionSource.stopForceRenderingAbove(),this.onDidChangeEmitter.fire()})),this._register(this.cache.onDidChange(()=>{this.onDidChangeEmitter.fire()})),this._register(this.editor.onDidChangeCursorPosition(d=>{this.minReservedLineCount=0,this.updateCacheSoon.schedule(),this.onDidChangeEmitter.fire()})),this._register((0,k.toDisposable)(()=>this.suggestionInlineCompletionSource.stopForceRenderingAbove()))}get isActive(){return this.suggestionInlineCompletionSource.state!==void 0}isSuggestionPreviewEnabled(){return this.editor.getOption(108).preview}updateCache(){return be(this,void 0,void 0,function*(){const t=this.suggestionInlineCompletionSource.state;if(!t||!t.selectedItem)return;const o={text:t.selectedItem.normalizedInlineCompletion.insertText,range:t.selectedItem.normalizedInlineCompletion.range,isSnippetText:t.selectedItem.isSnippetText,completionKind:t.selectedItem.completionItemKind},s=this.editor.getPosition();if(t.selectedItem.isSnippetText||t.selectedItem.completionItemKind===27||t.selectedItem.completionItemKind===20||t.selectedItem.completionItemKind===23){this.cache.clear();return}const d=(0,y.createCancelablePromise)(a=>be(this,void 0,void 0,function*(){let r;try{r=yield(0,C.provideInlineCompletions)(this.languageFeaturesService.inlineCompletionsProvider,s,this.editor.getModel(),{triggerKind:D.InlineCompletionTriggerKind.Automatic,selectedSuggestionInfo:o},a)}catch(c){(0,v.onUnexpectedError)(c);return}if(a.isCancellationRequested){r.dispose();return}this.cache.setValue(this.editor,r,D.InlineCompletionTriggerKind.Automatic),this.onDidChangeEmitter.fire()})),l=new C.UpdateOperation(d,D.InlineCompletionTriggerKind.Automatic);this.updateOperation.value=l,yield d,this.updateOperation.value===l&&this.updateOperation.clear()})}get ghostText(){var t,o,s;const d=this.isSuggestionPreviewEnabled(),l=this.editor.getModel(),a=(0,h.minimizeInlineCompletion)(l,(o=(t=this.cache.value)===null||t===void 0?void 0:t.completions[0])===null||o===void 0?void 0:o.toLiveInlineCompletion()),r=this.suggestionInlineCompletionSource.state,c=(0,h.minimizeInlineCompletion)(l,(s=r?.selectedItem)===null||s===void 0?void 0:s.normalizedInlineCompletion),g=a&&c&&a.insertText.startsWith(c.insertText)&&a.range.equalsRange(c.range);if(!d&&!g)return;const f=g?a:c||a,_=g?f.insertText.length-c.insertText.length:0;return this.toGhostText(f,_)}toGhostText(t,o){const s=this.editor.getOptions().get(108).previewMode;return t?(0,h.inlineCompletionToGhostText)(t,this.editor.getModel(),s,this.editor.getPosition(),o)||new b.GhostText(t.range.endLineNumber,[],this.minReservedLineCount):void 0}};n=Ie([pe(2,w.ILanguageFeaturesService)],n),e.SuggestWidgetPreviewModel=n;function i(t){return t.reduce((o,s)=>o+s,0)}}),define(oe[776],se([1,0,6,2,11,28,320,775,189,9]),function(q,e,y,v,k,D,w,b,C,h){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SharedInlineCompletionCache=e.GhostTextModel=e.DelegatingModel=void 0;class u extends v.Disposable{constructor(){super(...arguments),this.onDidChangeEmitter=new y.Emitter,this.onDidChange=this.onDidChangeEmitter.event,this.hasCachedGhostText=!1,this.currentModelRef=this._register(new v.MutableDisposable)}get targetModel(){var o;return(o=this.currentModelRef.value)===null||o===void 0?void 0:o.object}setTargetModel(o){var s;((s=this.currentModelRef.value)===null||s===void 0?void 0:s.object)!==o&&(this.currentModelRef.clear(),this.currentModelRef.value=o?(0,C.createDisposableRef)(o,o.onDidChange(()=>{this.hasCachedGhostText=!1,this.onDidChangeEmitter.fire()})):void 0,this.hasCachedGhostText=!1,this.onDidChangeEmitter.fire())}get ghostText(){var o,s;return this.hasCachedGhostText||(this.cachedGhostText=(s=(o=this.currentModelRef.value)===null||o===void 0?void 0:o.object)===null||s===void 0?void 0:s.ghostText,this.hasCachedGhostText=!0),this.cachedGhostText}setExpanded(o){var s;(s=this.targetModel)===null||s===void 0||s.setExpanded(o)}get minReservedLineCount(){return this.targetModel?this.targetModel.minReservedLineCount:0}}e.DelegatingModel=u;let n=class extends u{constructor(t,o){super(),this.editor=t,this.instantiationService=o,this.sharedCache=this._register(new i),this.suggestWidgetAdapterModel=this._register(this.instantiationService.createInstance(b.SuggestWidgetPreviewModel,this.editor,this.sharedCache)),this.inlineCompletionsModel=this._register(this.instantiationService.createInstance(w.InlineCompletionsModel,this.editor,this.sharedCache)),this._register(this.suggestWidgetAdapterModel.onDidChange(()=>{this.updateModel()})),this.updateModel()}get activeInlineCompletionsModel(){if(this.targetModel===this.inlineCompletionsModel)return this.inlineCompletionsModel}updateModel(){this.setTargetModel(this.suggestWidgetAdapterModel.isActive?this.suggestWidgetAdapterModel:this.inlineCompletionsModel),this.inlineCompletionsModel.setActive(this.targetModel===this.inlineCompletionsModel)}shouldShowHoverAt(t){var o;const s=(o=this.activeInlineCompletionsModel)===null||o===void 0?void 0:o.ghostText;return s?s.parts.some(d=>t.containsPosition(new k.Position(s.lineNumber,d.column))):!1}triggerInlineCompletion(){var t;(t=this.activeInlineCompletionsModel)===null||t===void 0||t.trigger(D.InlineCompletionTriggerKind.Explicit)}commitInlineCompletion(){var t;(t=this.activeInlineCompletionsModel)===null||t===void 0||t.commitCurrentSuggestion()}hideInlineCompletion(){var t;(t=this.activeInlineCompletionsModel)===null||t===void 0||t.hide()}showNextInlineCompletion(){var t;(t=this.activeInlineCompletionsModel)===null||t===void 0||t.showNext()}showPreviousInlineCompletion(){var t;(t=this.activeInlineCompletionsModel)===null||t===void 0||t.showPrevious()}hasMultipleInlineCompletions(){var t;return be(this,void 0,void 0,function*(){const o=yield(t=this.activeInlineCompletionsModel)===null||t===void 0?void 0:t.hasMultipleInlineCompletions();return o!==void 0?o:!1})}};n=Ie([pe(1,h.IInstantiationService)],n),e.GhostTextModel=n;class i extends v.Disposable{constructor(){super(...arguments),this.onDidChangeEmitter=new y.Emitter,this.onDidChange=this.onDidChangeEmitter.event,this.cache=this._register(new v.MutableDisposable)}get value(){return this.cache.value}setValue(o,s,d){this.cache.value=new w.SynchronizedInlineCompletionsCache(s,o,()=>this.onDidChangeEmitter.fire(),d)}clearAndLeak(){return this.cache.clearAndLeak()}clear(){this.cache.clear()}}e.SharedInlineCompletionCache=i}),define(oe[322],se([1,0,6,2,8,12,66,24,776,685,577,16,9]),function(q,e,y,v,k,D,w,b,C,h,u,n,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TriggerInlineSuggestionAction=e.ShowPreviousInlineSuggestionAction=e.ShowNextInlineSuggestionAction=e.ActiveGhostTextController=e.GhostTextController=void 0;let t=class fn extends v.Disposable{constructor(c,g){super(),this.editor=c,this.instantiationService=g,this.triggeredExplicitly=!1,this.activeController=this._register(new v.MutableDisposable),this.activeModelDidChangeEmitter=this._register(new y.Emitter),this._register(this.editor.onDidChangeModel(()=>{this.updateModelController()})),this._register(this.editor.onDidChangeConfiguration(f=>{f.hasChanged(108)&&this.updateModelController(),f.hasChanged(57)&&this.updateModelController()})),this.updateModelController()}static get(c){return c.getContribution(fn.ID)}get activeModel(){var c;return(c=this.activeController.value)===null||c===void 0?void 0:c.model}updateModelController(){const c=this.editor.getOption(108),g=this.editor.getOption(57);this.activeController.value=void 0,this.activeController.value=this.editor.hasModel()&&(c.preview||g.enabled||this.triggeredExplicitly)?this.instantiationService.createInstance(s,this.editor):void 0,this.activeModelDidChangeEmitter.fire()}shouldShowHoverAt(c){var g;return((g=this.activeModel)===null||g===void 0?void 0:g.shouldShowHoverAt(c))||!1}shouldShowHoverAtViewZone(c){var g,f;return((f=(g=this.activeController.value)===null||g===void 0?void 0:g.widget)===null||f===void 0?void 0:f.shouldShowHoverAtViewZone(c))||!1}trigger(){var c;this.triggeredExplicitly=!0,this.activeController.value||this.updateModelController(),(c=this.activeModel)===null||c===void 0||c.triggerInlineCompletion()}commit(){var c;(c=this.activeModel)===null||c===void 0||c.commitInlineCompletion()}hide(){var c;(c=this.activeModel)===null||c===void 0||c.hideInlineCompletion()}showNextInlineCompletion(){var c;(c=this.activeModel)===null||c===void 0||c.showNextInlineCompletion()}showPreviousInlineCompletion(){var c;(c=this.activeModel)===null||c===void 0||c.showPreviousInlineCompletion()}hasMultipleInlineCompletions(){var c;return be(this,void 0,void 0,function*(){const g=yield(c=this.activeModel)===null||c===void 0?void 0:c.hasMultipleInlineCompletions();return g!==void 0?g:!1})}};t.inlineSuggestionVisible=new n.RawContextKey("inlineSuggestionVisible",!1,u.localize(0,null)),t.inlineSuggestionHasIndentation=new n.RawContextKey("inlineSuggestionHasIndentation",!1,u.localize(1,null)),t.inlineSuggestionHasIndentationLessThanTabSize=new n.RawContextKey("inlineSuggestionHasIndentationLessThanTabSize",!0,u.localize(2,null)),t.ID="editor.contrib.ghostTextController",t=Ie([pe(1,i.IInstantiationService)],t),e.GhostTextController=t;class o{constructor(c){this.contextKeyService=c,this.inlineCompletionVisible=t.inlineSuggestionVisible.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentation=t.inlineSuggestionHasIndentation.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentationLessThanTabSize=t.inlineSuggestionHasIndentationLessThanTabSize.bindTo(this.contextKeyService)}}let s=class extends v.Disposable{constructor(r,c,g){super(),this.editor=r,this.instantiationService=c,this.contextKeyService=g,this.contextKeys=new o(this.contextKeyService),this.model=this._register(this.instantiationService.createInstance(C.GhostTextModel,this.editor)),this.widget=this._register(this.instantiationService.createInstance(h.GhostTextWidget,this.editor,this.model)),this._register((0,v.toDisposable)(()=>{this.contextKeys.inlineCompletionVisible.set(!1),this.contextKeys.inlineCompletionSuggestsIndentation.set(!1),this.contextKeys.inlineCompletionSuggestsIndentationLessThanTabSize.set(!0)})),this._register(this.model.onDidChange(()=>{this.updateContextKeys()})),this.updateContextKeys()}updateContextKeys(){var r;this.contextKeys.inlineCompletionVisible.set(((r=this.model.activeInlineCompletionsModel)===null||r===void 0?void 0:r.ghostText)!==void 0);let c=!1,g=!0;const f=this.model.inlineCompletionsModel.ghostText;if(this.model.activeInlineCompletionsModel&&f&&f.parts.length>0){const{column:_,lines:p}=f.parts[0],m=p[0],S=this.editor.getModel().getLineIndentColumn(f.lineNumber);if(_<=S){let E=(0,k.firstNonWhitespaceIndex)(m);E===-1&&(E=m.length-1),c=E>0;const L=this.editor.getModel().getOptions().tabSize;g=w.CursorColumns.visibleColumnFromColumn(m,E+1,L)<L}}this.contextKeys.inlineCompletionSuggestsIndentation.set(c),this.contextKeys.inlineCompletionSuggestsIndentationLessThanTabSize.set(g)}};s=Ie([pe(1,i.IInstantiationService),pe(2,n.IContextKeyService)],s),e.ActiveGhostTextController=s;class d extends D.EditorAction{constructor(){super({id:d.ID,label:u.localize(3,null),alias:"Show Next Inline Suggestion",precondition:n.ContextKeyExpr.and(b.EditorContextKeys.writable,t.inlineSuggestionVisible),kbOpts:{weight:100,primary:601}})}run(c,g){return be(this,void 0,void 0,function*(){const f=t.get(g);f&&(f.showNextInlineCompletion(),g.focus())})}}e.ShowNextInlineSuggestionAction=d,d.ID="editor.action.inlineSuggest.showNext";class l extends D.EditorAction{constructor(){super({id:l.ID,label:u.localize(4,null),alias:"Show Previous Inline Suggestion",precondition:n.ContextKeyExpr.and(b.EditorContextKeys.writable,t.inlineSuggestionVisible),kbOpts:{weight:100,primary:599}})}run(c,g){return be(this,void 0,void 0,function*(){const f=t.get(g);f&&(f.showPreviousInlineCompletion(),g.focus())})}}e.ShowPreviousInlineSuggestionAction=l,l.ID="editor.action.inlineSuggest.showPrevious";class a extends D.EditorAction{constructor(){super({id:"editor.action.inlineSuggest.trigger",label:u.localize(5,null),alias:"Trigger Inline Suggestion",precondition:b.EditorContextKeys.writable})}run(c,g){return be(this,void 0,void 0,function*(){const f=t.get(g);f&&f.trigger()})}}e.TriggerInlineSuggestionAction=a}),define(oe[777],se([1,0,7,64,2,117,3,37,88,322,578,77,39,26,16,45,188]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InlineCompletionsHoverParticipant=e.InlineCompletionsHover=void 0;class l{constructor(c,g,f){this.owner=c,this.range=g,this.controller=f}isValidForHoverAnchor(c){return c.type===1&&this.range.startColumn<=c.range.startColumn&&this.range.endColumn>=c.range.endColumn}hasMultipleSuggestions(){return this.controller.hasMultipleInlineCompletions()}get commands(){var c,g,f;return((f=(g=(c=this.controller.activeModel)===null||c===void 0?void 0:c.activeInlineCompletionsModel)===null||g===void 0?void 0:g.completionSession.value)===null||f===void 0?void 0:f.commands)||[]}}e.InlineCompletionsHover=l;let a=class{constructor(r,c,g,f,_,p,m){this._editor=r,this._commandService=c,this._menuService=g,this._contextKeyService=f,this._languageService=_,this._openerService=p,this.accessibilityService=m,this.hoverOrdinal=3}suggestHoverAnchor(r){const c=h.GhostTextController.get(this._editor);if(!c)return null;const g=r.target;if(g.type===8){const f=g.detail;if(c.shouldShowHoverAtViewZone(f.viewZoneId))return new C.HoverForeignElementAnchor(1e3,this,w.Range.fromPositions(f.positionBefore||f.position,f.positionBefore||f.position))}return g.type===7&&c.shouldShowHoverAt(g.range)?new C.HoverForeignElementAnchor(1e3,this,g.range):g.type===6&&g.detail.mightBeForeignElement&&c.shouldShowHoverAt(g.range)?new C.HoverForeignElementAnchor(1e3,this,g.range):null}computeSync(r,c){const g=h.GhostTextController.get(this._editor);return g&&g.shouldShowHoverAt(r.range)?[new l(this,r.range,g)]:[]}renderHoverParts(r,c){const g=new k.DisposableStore,f=c[0];this.accessibilityService.isScreenReaderOptimized()&&this.renderScreenReaderText(r,f,g);const _=g.add(this._menuService.createMenu(i.MenuId.InlineCompletionsActions,this._contextKeyService)),p=r.statusBar.addAction({label:u.localize(0,null),commandId:h.ShowNextInlineSuggestionAction.ID,run:()=>this._commandService.executeCommand(h.ShowNextInlineSuggestionAction.ID)}),m=r.statusBar.addAction({label:u.localize(1,null),commandId:h.ShowPreviousInlineSuggestionAction.ID,run:()=>this._commandService.executeCommand(h.ShowPreviousInlineSuggestionAction.ID)});r.statusBar.addAction({label:u.localize(2,null),commandId:d.inlineSuggestCommitId,run:()=>this._commandService.executeCommand(d.inlineSuggestCommitId)});const S=[p,m];for(const E of S)E.setEnabled(!1);f.hasMultipleSuggestions().then(E=>{for(const L of S)L.setEnabled(E)});for(const E of f.commands)r.statusBar.addAction({label:E.title,commandId:E.id,run:()=>this._commandService.executeCommand(E.id,...E.arguments||[])});for(const[E,L]of _.getActions())for(const N of L)N instanceof i.MenuItemAction&&r.statusBar.addAction({label:N.label,commandId:N.item.id,run:()=>this._commandService.executeCommand(N.item.id)});return g}renderScreenReaderText(r,c,g){var f,_;const p=y.$,m=p("div.hover-row.markdown-hover"),S=y.append(m,p("div.hover-contents")),E=g.add(new D.MarkdownRenderer({editor:this._editor},this._languageService,this._openerService)),L=I=>{g.add(E.onDidRenderAsync(()=>{S.className="hover-contents code-hover-contents",r.onContentsChanged()}));const R=u.localize(3,null),F=g.add(E.render(new v.MarkdownString().appendText(R).appendCodeblock("text",I)));S.replaceChildren(F.element)},N=(_=(f=c.controller.activeModel)===null||f===void 0?void 0:f.inlineCompletionsModel)===null||_===void 0?void 0:_.ghostText;if(N){const I=this._editor.getModel().getLineContent(N.lineNumber);L(N.renderForScreenReader(I))}r.fragment.appendChild(m)}};a=Ie([pe(1,t.ICommandService),pe(2,i.IMenuService),pe(3,o.IContextKeyService),pe(4,b.ILanguageService),pe(5,s.IOpenerService),pe(6,n.IAccessibilityService)],a),e.InlineCompletionsHoverParticipant=a}),define(oe[778],se([1,0,12,24,88,188,322,777,16,101]),function(q,e,y,v,k,D,w,b,C,h){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.commitInlineSuggestionAction=void 0,(0,y.registerEditorContribution)(w.GhostTextController.ID,w.GhostTextController),(0,y.registerEditorAction)(w.TriggerInlineSuggestionAction),(0,y.registerEditorAction)(w.ShowNextInlineSuggestionAction),(0,y.registerEditorAction)(w.ShowPreviousInlineSuggestionAction),k.HoverParticipantRegistry.register(b.InlineCompletionsHoverParticipant);const u=y.EditorCommand.bindToContribution(w.GhostTextController.get);e.commitInlineSuggestionAction=new u({id:D.inlineSuggestCommitId,precondition:w.GhostTextController.inlineSuggestionVisible,handler(n){n.commit(),n.editor.focus()}}),(0,y.registerEditorCommand)(e.commitInlineSuggestionAction),h.KeybindingsRegistry.registerKeybindingRule({primary:2,weight:200,id:e.commitInlineSuggestionAction.id,when:C.ContextKeyExpr.and(e.commitInlineSuggestionAction.precondition,v.EditorContextKeys.tabMovesFocus.toNegated(),w.GhostTextController.inlineSuggestionHasIndentationLessThanTabSize)}),(0,y.registerEditorCommand)(new u({id:"editor.action.inlineSuggest.hide",precondition:w.GhostTextController.inlineSuggestionVisible,kbOpts:{weight:100,primary:9},handler(n){n.hide()}}))}),define(oe[323],se([1,0,9]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IWorkspaceTrustManagementService=void 0,e.IWorkspaceTrustManagementService=(0,y.createDecorator)("workspaceTrustManagementService")}),define(oe[779],se([1,0,10,27,64,2,17,8,12,36,35,242,92,37,278,88,217,735,605,30,9,45,85,80,323,392]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r,c,g,f,_,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ShowExcludeOptions=e.DisableHighlightingOfNonBasicAsciiCharactersAction=e.DisableHighlightingOfInvisibleCharactersAction=e.DisableHighlightingOfAmbiguousCharactersAction=e.DisableHighlightingInStringsAction=e.DisableHighlightingInCommentsAction=e.UnicodeHighlighterHoverParticipant=e.UnicodeHighlighter=e.warningIcon=void 0,e.warningIcon=(0,_.registerIcon)("extensions-warning-message",v.Codicon.warning,a.localize(0,null));let m=class extends D.Disposable{constructor(j,G,te,Z){super(),this._editor=j,this._editorWorkerService=G,this._workspaceTrustService=te,this._highlighter=null,this._bannerClosed=!1,this._updateState=X=>{if(X&&X.hasMore){if(this._bannerClosed)return;const ie=Math.max(X.ambiguousCharacterCount,X.nonBasicAsciiCharacterCount,X.invisibleCharacterCount);let H;if(X.nonBasicAsciiCharacterCount>=ie)H={message:a.localize(1,null),command:new K};else if(X.ambiguousCharacterCount>=ie)H={message:a.localize(2,null),command:new A};else if(X.invisibleCharacterCount>=ie)H={message:a.localize(3,null),command:new B};else throw new Error("Unreachable");this._bannerController.show({id:"unicodeHighlightBanner",message:H.message,icon:e.warningIcon,actions:[{label:H.command.shortLabel,href:`command:${H.command.id}`}],onClose:()=>{this._bannerClosed=!0}})}else this._bannerController.hide()},this._bannerController=this._register(Z.createInstance(l.BannerController,j)),this._register(this._editor.onDidChangeModel(()=>{this._bannerClosed=!1,this._updateHighlighter()})),this._options=j.getOption(115),this._register(te.onDidChangeTrust(X=>{this._updateHighlighter()})),this._register(j.onDidChangeConfiguration(X=>{X.hasChanged(115)&&(this._options=j.getOption(115),this._updateHighlighter())})),this._updateHighlighter()}dispose(){this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),super.dispose()}_updateHighlighter(){if(this._updateState(null),this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),!this._editor.hasModel())return;const j=S(this._workspaceTrustService.isWorkspaceTrusted(),this._options);if([j.nonBasicASCII,j.ambiguousCharacters,j.invisibleCharacters].every(te=>te===!1))return;const G={nonBasicASCII:j.nonBasicASCII,ambiguousCharacters:j.ambiguousCharacters,invisibleCharacters:j.invisibleCharacters,includeComments:j.includeComments,includeStrings:j.includeStrings,allowedCodePoints:Object.keys(j.allowedCharacters).map(te=>te.codePointAt(0)),allowedLocales:Object.keys(j.allowedLocales).map(te=>te==="_os"?new Intl.NumberFormat().resolvedOptions().locale:te==="_vscode"?w.language:te)};this._editorWorkerService.canComputeUnicodeHighlights(this._editor.getModel().uri)?this._highlighter=new E(this._editor,G,this._updateState,this._editorWorkerService):this._highlighter=new L(this._editor,G,this._updateState)}getDecorationInfo(j){return this._highlighter?this._highlighter.getDecorationInfo(j):null}};m.ID="editor.contrib.unicodeHighlighter",m=Ie([pe(1,i.IEditorWorkerService),pe(2,p.IWorkspaceTrustManagementService),pe(3,c.IInstantiationService)],m),e.UnicodeHighlighter=m;function S(j,G){return{nonBasicASCII:G.nonBasicASCII===h.inUntrustedWorkspace?!j:G.nonBasicASCII,ambiguousCharacters:G.ambiguousCharacters,invisibleCharacters:G.invisibleCharacters,includeComments:G.includeComments===h.inUntrustedWorkspace?!j:G.includeComments,includeStrings:G.includeStrings===h.inUntrustedWorkspace?!j:G.includeStrings,allowedCharacters:G.allowedCharacters,allowedLocales:G.allowedLocales}}let E=class extends D.Disposable{constructor(j,G,te,Z){super(),this._editor=j,this._options=G,this._updateState=te,this._editorWorkerService=Z,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new y.RunOnceScheduler(()=>this._update(),250)),this._register(this._editor.onDidChangeModelContent(()=>{this._updateSoon.schedule()})),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII()){this._decorations.clear();return}const j=this._model.getVersionId();this._editorWorkerService.computedUnicodeHighlights(this._model.uri,this._options).then(G=>{if(this._model.isDisposed()||this._model.getVersionId()!==j)return;this._updateState(G);const te=[];if(!G.hasMore)for(const Z of G.ranges)te.push({range:Z,options:x.instance.getDecorationFromOptions(this._options)});this._decorations.set(te)})}getDecorationInfo(j){if(!this._decorations.has(j))return null;const G=this._editor.getModel();if(!(0,o.isModelDecorationVisible)(G,j))return null;const te=G.getValueInRange(j.range);return{reason:O(te,this._options),inComment:(0,o.isModelDecorationInComment)(G,j),inString:(0,o.isModelDecorationInString)(G,j)}}};E=Ie([pe(3,i.IEditorWorkerService)],E);class L extends D.Disposable{constructor(G,te,Z){super(),this._editor=G,this._options=te,this._updateState=Z,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new y.RunOnceScheduler(()=>this._update(),250)),this._register(this._editor.onDidLayoutChange(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidScrollChange(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidChangeHiddenAreas(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidChangeModelContent(()=>{this._updateSoon.schedule()})),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII()){this._decorations.clear();return}const G=this._editor.getVisibleRanges(),te=[],Z={ranges:[],ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0,hasMore:!1};for(const X of G){const ie=n.UnicodeTextModelHighlighter.computeUnicodeHighlights(this._model,this._options,X);for(const H of ie.ranges)Z.ranges.push(H);Z.ambiguousCharacterCount+=Z.ambiguousCharacterCount,Z.invisibleCharacterCount+=Z.invisibleCharacterCount,Z.nonBasicAsciiCharacterCount+=Z.nonBasicAsciiCharacterCount,Z.hasMore=Z.hasMore||ie.hasMore}if(!Z.hasMore)for(const X of Z.ranges)te.push({range:X,options:x.instance.getDecorationFromOptions(this._options)});this._updateState(Z),this._decorations.set(te)}getDecorationInfo(G){if(!this._decorations.has(G))return null;const te=this._editor.getModel(),Z=te.getValueInRange(G.range);return(0,o.isModelDecorationVisible)(te,G)?{reason:O(Z,this._options),inComment:(0,o.isModelDecorationInComment)(te,G),inString:(0,o.isModelDecorationInString)(te,G)}:null}}let N=class{constructor(j,G,te){this._editor=j,this._languageService=G,this._openerService=te,this.hoverOrdinal=4}computeSync(j,G){if(!this._editor.hasModel()||j.type!==1)return[];const te=this._editor.getModel(),Z=this._editor.getContribution(m.ID);if(!Z)return[];const X=[];let ie=300;for(const H of G){const ae=Z.getDecorationInfo(H);if(!ae)continue;const Y=te.getValueInRange(H.range).codePointAt(0),U=R(Y);let le;switch(ae.reason.kind){case 0:le=a.localize(4,null,U,R(ae.reason.confusableWith.codePointAt(0)));break;case 1:le=a.localize(5,null,U);break;case 2:le=a.localize(6,null,U);break}const z={codePoint:Y,reason:ae.reason,inComment:ae.inComment,inString:ae.inString},Q=a.localize(7,null),W=`command:${T.ID}?${encodeURIComponent(JSON.stringify(z))}`,V=new k.MarkdownString("",!0).appendMarkdown(le).appendText(" ").appendLink(W,Q);X.push(new d.MarkdownHover(this,H.range,[V],ie++))}return X}renderHoverParts(j,G){return(0,d.renderMarkdownHovers)(j,G,this._editor,this._languageService,this._openerService)}};N=Ie([pe(1,t.ILanguageService),pe(2,g.IOpenerService)],N),e.UnicodeHighlighterHoverParticipant=N;function I(j){return`U+${j.toString(16).padStart(4,"0")}`}function R(j){let G=`\`${I(j)}\``;return b.InvisibleCharacters.isInvisibleCharacter(j)||(G+=` "${`${F(j)}`}"`),G}function F(j){return j===96?"`` ` ``":"`"+String.fromCodePoint(j)+"`"}function O(j,G){return n.UnicodeTextModelHighlighter.computeUnicodeHighlightReason(j,G)}class x{constructor(){this.map=new Map}getDecorationFromOptions(G){return this.getDecoration(!G.includeComments,!G.includeStrings)}getDecoration(G,te){const Z=`${G}${te}`;let X=this.map.get(Z);return X||(X=u.ModelDecorationOptions.createDynamic({description:"unicode-highlight",stickiness:1,className:"unicode-highlight",showIfCollapsed:!0,overviewRuler:null,minimap:null,hideInCommentTokens:G,hideInStringTokens:te}),this.map.set(Z,X)),X}}x.instance=new x;class M extends C.EditorAction{constructor(){super({id:A.ID,label:a.localize(9,null),alias:"Disable highlighting of characters in comments",precondition:void 0}),this.shortLabel=a.localize(8,null)}run(G,te,Z){return be(this,void 0,void 0,function*(){const X=G?.get(r.IConfigurationService);X&&this.runAction(X)})}runAction(G){return be(this,void 0,void 0,function*(){yield G.updateValue(h.unicodeHighlightConfigKeys.includeComments,!1,2)})}}e.DisableHighlightingInCommentsAction=M;class P extends C.EditorAction{constructor(){super({id:A.ID,label:a.localize(11,null),alias:"Disable highlighting of characters in strings",precondition:void 0}),this.shortLabel=a.localize(10,null)}run(G,te,Z){return be(this,void 0,void 0,function*(){const X=G?.get(r.IConfigurationService);X&&this.runAction(X)})}runAction(G){return be(this,void 0,void 0,function*(){yield G.updateValue(h.unicodeHighlightConfigKeys.includeStrings,!1,2)})}}e.DisableHighlightingInStringsAction=P;class A extends C.EditorAction{constructor(){super({id:A.ID,label:a.localize(13,null),alias:"Disable highlighting of ambiguous characters",precondition:void 0}),this.shortLabel=a.localize(12,null)}run(G,te,Z){return be(this,void 0,void 0,function*(){const X=G?.get(r.IConfigurationService);X&&this.runAction(X)})}runAction(G){return be(this,void 0,void 0,function*(){yield G.updateValue(h.unicodeHighlightConfigKeys.ambiguousCharacters,!1,2)})}}e.DisableHighlightingOfAmbiguousCharactersAction=A,A.ID="editor.action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters";class B extends C.EditorAction{constructor(){super({id:B.ID,label:a.localize(15,null),alias:"Disable highlighting of invisible characters",precondition:void 0}),this.shortLabel=a.localize(14,null)}run(G,te,Z){return be(this,void 0,void 0,function*(){const X=G?.get(r.IConfigurationService);X&&this.runAction(X)})}runAction(G){return be(this,void 0,void 0,function*(){yield G.updateValue(h.unicodeHighlightConfigKeys.invisibleCharacters,!1,2)})}}e.DisableHighlightingOfInvisibleCharactersAction=B,B.ID="editor.action.unicodeHighlight.disableHighlightingOfInvisibleCharacters";class K extends C.EditorAction{constructor(){super({id:K.ID,label:a.localize(17,null),alias:"Disable highlighting of non basic ASCII characters",precondition:void 0}),this.shortLabel=a.localize(16,null)}run(G,te,Z){return be(this,void 0,void 0,function*(){const X=G?.get(r.IConfigurationService);X&&this.runAction(X)})}runAction(G){return be(this,void 0,void 0,function*(){yield G.updateValue(h.unicodeHighlightConfigKeys.nonBasicASCII,!1,2)})}}e.DisableHighlightingOfNonBasicAsciiCharactersAction=K,K.ID="editor.action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters";class T extends C.EditorAction{constructor(){super({id:T.ID,label:a.localize(18,null),alias:"Show Exclude Options",precondition:void 0})}run(G,te,Z){return be(this,void 0,void 0,function*(){const{codePoint:X,reason:ie,inString:H,inComment:ae}=Z,Y=String.fromCodePoint(X),U=G.get(f.IQuickInputService),le=G.get(r.IConfigurationService);function z(V){return b.InvisibleCharacters.isInvisibleCharacter(V)?a.localize(19,null,I(V)):a.localize(20,null,`${I(V)} "${Y}"`)}const Q=[];if(ie.kind===0)for(const V of ie.notAmbiguousInLocales)Q.push({label:a.localize(21,null,V),run:()=>be(this,void 0,void 0,function*(){J(le,[V])})});if(Q.push({label:z(X),run:()=>ee(le,[X])}),ae){const V=new M;Q.push({label:V.label,run:()=>be(this,void 0,void 0,function*(){return V.runAction(le)})})}else if(H){const V=new P;Q.push({label:V.label,run:()=>be(this,void 0,void 0,function*(){return V.runAction(le)})})}if(ie.kind===0){const V=new A;Q.push({label:V.label,run:()=>be(this,void 0,void 0,function*(){return V.runAction(le)})})}else if(ie.kind===1){const V=new B;Q.push({label:V.label,run:()=>be(this,void 0,void 0,function*(){return V.runAction(le)})})}else if(ie.kind===2){const V=new K;Q.push({label:V.label,run:()=>be(this,void 0,void 0,function*(){return V.runAction(le)})})}else $(ie);const W=yield U.pick(Q,{title:a.localize(22,null)});W&&(yield W.run())})}}e.ShowExcludeOptions=T,T.ID="editor.action.unicodeHighlight.showExcludeOptions";function ee(j,G){return be(this,void 0,void 0,function*(){const te=j.getValue(h.unicodeHighlightConfigKeys.allowedCharacters);let Z;typeof te=="object"&&te?Z=te:Z={};for(const X of G)Z[String.fromCodePoint(X)]=!0;yield j.updateValue(h.unicodeHighlightConfigKeys.allowedCharacters,Z,2)})}function J(j,G){var te;return be(this,void 0,void 0,function*(){const Z=(te=j.inspect(h.unicodeHighlightConfigKeys.allowedLocales).user)===null||te===void 0?void 0:te.value;let X;typeof Z=="object"&&Z?X=Object.assign({},Z):X={};for(const ie of G)X[ie]=!0;yield j.updateValue(h.unicodeHighlightConfigKeys.allowedLocales,X,2)})}function $(j){throw new Error(`Unexpected value: ${j}`)}(0,C.registerEditorAction)(A),(0,C.registerEditorAction)(B),(0,C.registerEditorAction)(K),(0,C.registerEditorAction)(T),(0,C.registerEditorContribution)(m.ID,m),s.HoverParticipantRegistry.register(N)}),define(oe[780],se([1,0,169,173,311,269,693,740,694,695,696,709,742,763,771,697,698,699,744,772,313,750,702,703,647,778,219,316,314,317,705,766,752,706,707,753,754,755,733,711,713,712,120,321,714,715,307,779,716,757,758,308,717,710,76,149]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})}),define(oe[220],se([1,0,8,7,48,6,104,2,17,81,22,138,212,60,11,3,50,58,166,26,30,285,16,139,9,637,44,639,101,287,640,140,38,71,86,176,116,76,43,29,69,323,78,642,654,726,15,53,646,92,290,37,681,209,310,729,309,115,641,77,39,725,643,93,635,208,636,167,171,84,645,45,85,79,658,32,301,288,768,70,628]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r,c,g,f,_,p,m,S,E,L,N,I,R,F,O,x,M,P,A,B,K,T,ee,J,$,j,G,te,Z,X,ie,H,ae,Y,U,le,z,Q,W,V,ne,de,ce,ue,me,_e,ye,ke,Te,Me,fe,he,re,ge,Se,Le){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StandaloneServices=e.updateConfigurationService=e.StandaloneConfigurationService=e.StandaloneKeybindingService=e.StandaloneCommandService=e.StandaloneNotificationService=void 0;class Ne{constructor(Oe){this.disposed=!1,this.model=Oe,this._onWillDispose=new D.Emitter}get textEditorModel(){return this.model}dispose(){this.disposed=!0,this._onWillDispose.fire()}}let Ae=class{constructor(Ke){this.modelService=Ke}createModelReference(Ke){const Oe=this.modelService.getModel(Ke);return Oe?Promise.resolve(new b.ImmortalReference(new Ne(Oe))):Promise.reject(new Error("Model not found"))}};Ae=Ie([pe(0,d.IModelService)],Ae);class Pe{show(){return Pe.NULL_PROGRESS_RUNNER}showWhile(Oe,qe){return be(this,void 0,void 0,function*(){yield Oe})}}Pe.NULL_PROGRESS_RUNNER={done:()=>{},total:()=>{},worked:()=>{}};class Ce{withProgress(Oe,qe,Ye){return qe({report:()=>{}})}}class ve{confirm(Oe){return this.doConfirm(Oe).then(qe=>({confirmed:qe,checkboxChecked:!1}))}doConfirm(Oe){let qe=Oe.message;return Oe.detail&&(qe=qe+` `+Oe.detail),Promise.resolve(window.confirm(qe))}show(Oe,qe,Ye,tt){return Promise.resolve({choice:0})}}class De{info(Oe){return this.notify({severity:h.default.Info,message:Oe})}warn(Oe){return this.notify({severity:h.default.Warning,message:Oe})}error(Oe){return this.notify({severity:h.default.Error,message:Oe})}notify(Oe){switch(Oe.severity){case h.default.Error:console.error(Oe.message);break;case h.default.Warning:console.warn(Oe.message);break;default:console.log(Oe.message);break}return De.NO_OP}status(Oe,qe){return b.Disposable.None}}e.StandaloneNotificationService=De,De.NO_OP=new F.NoOpNotification;let Be=class{constructor(Ke){this._onWillExecuteCommand=new D.Emitter,this._onDidExecuteCommand=new D.Emitter,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this._instantiationService=Ke}executeCommand(Ke,...Oe){const qe=r.CommandsRegistry.getCommand(Ke);if(!qe)return Promise.reject(new Error(`command '${Ke}' not found`));try{this._onWillExecuteCommand.fire({commandId:Ke,args:Oe});const Ye=this._instantiationService.invokeFunction.apply(this._instantiationService,[qe.handler,...Oe]);return this._onDidExecuteCommand.fire({commandId:Ke,args:Oe}),Promise.resolve(Ye)}catch(Ye){return Promise.reject(Ye)}}};Be=Ie([pe(0,p.IInstantiationService)],Be),e.StandaloneCommandService=Be;let Re=class extends m.AbstractKeybindingService{constructor(Ke,Oe,qe,Ye,tt,at){super(Ke,Oe,qe,Ye,tt),this._cachedResolver=null,this._dynamicKeybindings=[],this._domNodeListeners=[];const lt=yt=>{const Ut=new b.DisposableStore;Ut.add(v.addDisposableListener(yt,v.EventType.KEY_DOWN,Qt=>{const $t=new k.StandardKeyboardEvent(Qt);this._dispatch($t,$t.target)&&($t.preventDefault(),$t.stopPropagation())})),Ut.add(v.addDisposableListener(yt,v.EventType.KEY_UP,Qt=>{const $t=new k.StandardKeyboardEvent(Qt);this._singleModifierDispatch($t,$t.target)&&$t.preventDefault()})),this._domNodeListeners.push(new Ve(yt,Ut))},_t=yt=>{for(let Ut=0;Ut<this._domNodeListeners.length;Ut++){const Qt=this._domNodeListeners[Ut];Qt.domNode===yt&&(this._domNodeListeners.splice(Ut,1),Qt.dispose())}},xt=yt=>{yt.getOption(56)||lt(yt.getContainerDomNode())},Ft=yt=>{yt.getOption(56)||_t(yt.getContainerDomNode())};this._register(at.onCodeEditorAdd(xt)),this._register(at.onCodeEditorRemove(Ft)),at.listCodeEditors().forEach(xt);const Ot=yt=>{lt(yt.getContainerDomNode())},Pt=yt=>{_t(yt.getContainerDomNode())};this._register(at.onDiffEditorAdd(Ot)),this._register(at.onDiffEditorRemove(Pt)),at.listDiffEditors().forEach(Ot)}addDynamicKeybinding(Ke,Oe,qe,Ye){const tt=(0,w.createKeybinding)(Oe,C.OS),at=new b.DisposableStore;return tt&&(this._dynamicKeybindings.push({keybinding:tt.parts,command:Ke,when:Ye,weight1:1e3,weight2:0,extensionId:null,isBuiltinExtension:!1}),at.add((0,b.toDisposable)(()=>{for(let lt=0;lt<this._dynamicKeybindings.length;lt++)if(this._dynamicKeybindings[lt].command===Ke){this._dynamicKeybindings.splice(lt,1),this.updateResolver();return}}))),at.add(r.CommandsRegistry.registerCommand(Ke,qe)),this.updateResolver(),at}updateResolver(){this._cachedResolver=null,this._onDidUpdateKeybindings.fire()}_getResolver(){if(!this._cachedResolver){const Ke=this._toNormalizedKeybindingItems(L.KeybindingsRegistry.getDefaultKeybindings(),!0),Oe=this._toNormalizedKeybindingItems(this._dynamicKeybindings,!1);this._cachedResolver=new E.KeybindingResolver(Ke,Oe,qe=>this._log(qe))}return this._cachedResolver}_documentHasFocus(){return document.hasFocus()}_toNormalizedKeybindingItems(Ke,Oe){const qe=[];let Ye=0;for(const tt of Ke){const at=tt.when||void 0,lt=tt.keybinding;if(!lt)qe[Ye++]=new N.ResolvedKeybindingItem(void 0,tt.command,tt.commandArgs,at,Oe,null,!1);else{const _t=I.USLayoutResolvedKeybinding.resolveUserBinding(lt,C.OS);for(const xt of _t)qe[Ye++]=new N.ResolvedKeybindingItem(xt,tt.command,tt.commandArgs,at,Oe,null,!1)}}return qe}resolveKeyboardEvent(Ke){const Oe=new w.SimpleKeybinding(Ke.ctrlKey,Ke.shiftKey,Ke.altKey,Ke.metaKey,Ke.keyCode).toChord();return new I.USLayoutResolvedKeybinding(Oe,C.OS)}};Re=Ie([pe(0,f.IContextKeyService),pe(1,r.ICommandService),pe(2,x.ITelemetryService),pe(3,F.INotificationService),pe(4,T.ILogService),pe(5,K.ICodeEditorService)],Re),e.StandaloneKeybindingService=Re;class Ve extends b.Disposable{constructor(Oe,qe){super(),this.domNode=Oe,this._register(qe)}}function Ue(Ke){return Ke&&typeof Ke=="object"&&(!Ke.overrideIdentifier||typeof Ke.overrideIdentifier=="string")&&(!Ke.resource||Ke.resource instanceof u.URI)}class Je{constructor(){this._onDidChangeConfiguration=new D.Emitter,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._configuration=new g.Configuration(new Le.DefaultConfigurationModel,new g.ConfigurationModel,new g.ConfigurationModel,new g.ConfigurationModel)}getValue(Oe,qe){const Ye=typeof Oe=="string"?Oe:void 0,tt=Ue(Oe)?Oe:Ue(qe)?qe:{};return this._configuration.getValue(Ye,tt,void 0)}updateValues(Oe){const qe={data:this._configuration.toData()},Ye=[];for(const tt of Oe){const[at,lt]=tt;this.getValue(at)!==lt&&(this._configuration.updateValue(at,lt),Ye.push(at))}if(Ye.length>0){const tt=new g.ConfigurationChangeEvent({keys:Ye,overrides:[]},qe,this._configuration);tt.source=8,tt.sourceConfig=null,this._onDidChangeConfiguration.fire(tt)}return Promise.resolve()}updateValue(Oe,qe,Ye,tt){return this.updateValues([[Oe,qe]])}inspect(Oe,qe={}){return this._configuration.inspect(Oe,qe,void 0)}}e.StandaloneConfigurationService=Je;let rt=class{constructor(Ke){this.configurationService=Ke,this._onDidChangeConfiguration=new D.Emitter,this.configurationService.onDidChangeConfiguration(Oe=>{this._onDidChangeConfiguration.fire({affectedKeys:Oe.affectedKeys,affectsConfiguration:(qe,Ye)=>Oe.affectsConfiguration(Ye)})})}getValue(Ke,Oe,qe){const Ye=o.Position.isIPosition(Oe)&&Oe?typeof qe=="string"?qe:void 0:typeof Oe=="string"?Oe:void 0;return typeof Ye>"u"?this.configurationService.getValue():this.configurationService.getValue(Ye)}};rt=Ie([pe(0,c.IConfigurationService)],rt);let gt=class{constructor(Ke){this.configurationService=Ke}getEOL(Ke,Oe){const qe=this.configurationService.getValue("files.eol",{overrideIdentifier:Oe,resource:Ke});return qe&&typeof qe=="string"&&qe!=="auto"?qe:C.isLinux||C.isMacintosh?` `:`\r `}};gt=Ie([pe(0,c.IConfigurationService)],gt);class ft{publicLog(Oe,qe){return Promise.resolve(void 0)}publicLog2(Oe,qe){return this.publicLog(Oe,qe)}}class xe{constructor(){const Oe=u.URI.from({scheme:xe.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new M.WorkspaceFolder({uri:Oe,name:"",index:0})]}}getWorkspace(){return this.workspace}getWorkspaceFolder(Oe){return Oe&&Oe.scheme===xe.SCHEME?this.workspace.folders[0]:null}}xe.SCHEME="inmemory";function $e(Ke,Oe,qe){if(!Oe||!(Ke instanceof Je))return;const Ye=[];Object.keys(Oe).forEach(tt=>{(0,i.isEditorConfigurationKey)(tt)&&Ye.push([`editor.${tt}`,Oe[tt]]),qe&&(0,i.isDiffEditorConfigurationKey)(tt)&&Ye.push([`diffEditor.${tt}`,Oe[tt]])}),Ye.length>0&&Ke.updateValues(Ye)}e.updateConfigurationService=$e;let He=class{constructor(Ke){this._modelService=Ke}hasPreviewHandler(){return!1}apply(Ke,Oe){return be(this,void 0,void 0,function*(){const qe=new Map;for(const at of Ke){if(!(at instanceof n.ResourceTextEdit))throw new Error("bad edit - only text edits are supported");const lt=this._modelService.getModel(at.resource);if(!lt)throw new Error("bad edit - model not found");if(typeof at.versionId=="number"&<.getVersionId()!==at.versionId)throw new Error("bad state - model changed in the meantime");let _t=qe.get(lt);_t||(_t=[],qe.set(lt,_t)),_t.push(t.EditOperation.replaceMove(s.Range.lift(at.textEdit.range),at.textEdit.text))}let Ye=0,tt=0;for(const[at,lt]of qe)at.pushStackElement(),at.pushEditOperations([],lt,()=>[]),at.pushStackElement(),tt+=1,Ye+=lt.length;return{ariaSummary:y.format(A.StandaloneServicesNLS.bulkEditServiceSummary,Ye,tt)}})}};He=Ie([pe(0,d.IModelService)],He);class et{getUriLabel(Oe,qe){return Oe.scheme==="file"?Oe.fsPath:Oe.path}getUriBasenameLabel(Oe){return(0,B.basename)(Oe)}}let je=class extends $.ContextViewService{constructor(Ke,Oe){super(Ke),this._codeEditorService=Oe}showContextView(Ke,Oe,qe){if(!Oe){const Ye=this._codeEditorService.getFocusedCodeEditor()||this._codeEditorService.getActiveCodeEditor();Ye&&(Oe=Ye.getContainerDomNode())}return super.showContextView(Ke,Oe,qe)}};je=Ie([pe(0,P.ILayoutService),pe(1,K.ICodeEditorService)],je);class pt{constructor(){this._neverEmitter=new D.Emitter,this.onDidChangeTrust=this._neverEmitter.event}isWorkspaceTrusted(){return!0}}class it extends j.LanguageService{constructor(){super()}}class Ct extends T.LogService{constructor(){super(new T.ConsoleLogger)}}let nt=class extends G.ContextMenuService{constructor(Ke,Oe,qe,Ye,tt){super(Ke,Oe,qe,Ye,tt),this.configure({blockMouse:!1})}};nt=Ie([pe(0,x.ITelemetryService),pe(1,F.INotificationService),pe(2,J.IContextViewService),pe(3,S.IKeybindingService),pe(4,te.IThemeService)],nt),(0,Z.registerSingleton)(c.IConfigurationService,Je),(0,Z.registerSingleton)(a.ITextResourceConfigurationService,rt),(0,Z.registerSingleton)(a.ITextResourcePropertiesService,gt),(0,Z.registerSingleton)(M.IWorkspaceContextService,xe),(0,Z.registerSingleton)(R.ILabelService,et),(0,Z.registerSingleton)(x.ITelemetryService,ft),(0,Z.registerSingleton)(_.IDialogService,ve),(0,Z.registerSingleton)(F.INotificationService,De),(0,Z.registerSingleton)(fe.IMarkerService,he.MarkerService),(0,Z.registerSingleton)(ae.ILanguageService,it),(0,Z.registerSingleton)(W.IStandaloneThemeService,Q.StandaloneThemeService),(0,Z.registerSingleton)(T.ILogService,Ct),(0,Z.registerSingleton)(d.IModelService,le.ModelService),(0,Z.registerSingleton)(U.IMarkerDecorationsService,Y.MarkerDecorationsService),(0,Z.registerSingleton)(f.IContextKeyService,_e.ContextKeyService),(0,Z.registerSingleton)(O.IProgressService,Ce),(0,Z.registerSingleton)(O.IEditorProgressService,Pe),(0,Z.registerSingleton)(Se.IStorageService,Se.InMemoryStorageService),(0,Z.registerSingleton)(ie.IEditorWorkerService,H.EditorWorkerService),(0,Z.registerSingleton)(n.IBulkEditService,He),(0,Z.registerSingleton)(ee.IWorkspaceTrustManagementService,pt),(0,Z.registerSingleton)(l.ITextModelService,Ae),(0,Z.registerSingleton)(ne.IAccessibilityService,V.AccessibilityService),(0,Z.registerSingleton)(Me.IListService,Me.ListService),(0,Z.registerSingleton)(r.ICommandService,Be),(0,Z.registerSingleton)(S.IKeybindingService,Re),(0,Z.registerSingleton)(ge.IQuickInputService,z.StandaloneQuickInputService),(0,Z.registerSingleton)(J.IContextViewService,je),(0,Z.registerSingleton)(re.IOpenerService,X.OpenerService),(0,Z.registerSingleton)(me.IClipboardService,ue.BrowserClipboardService),(0,Z.registerSingleton)(J.IContextMenuService,nt),(0,Z.registerSingleton)(de.IMenuService,ce.MenuService);var ht;(function(Ke){const Oe=new Te.ServiceCollection;for(const[lt,_t]of(0,Z.getSingletonServiceDescriptors)())Oe.set(lt,_t);const qe=new ke.InstantiationService(Oe,!0);Oe.set(p.IInstantiationService,qe);function Ye(lt){const _t=Oe.get(lt);if(!_t)throw new Error("Missing service "+lt);return _t instanceof ye.SyncDescriptor?qe.invokeFunction(xt=>xt.get(lt)):_t}Ke.get=Ye;let tt=!1;function at(lt){if(tt)return qe;tt=!0;for(const[_t,xt]of(0,Z.getSingletonServiceDescriptors)())Oe.get(_t)||Oe.set(_t,xt);for(const _t in lt)if(lt.hasOwnProperty(_t)){const xt=(0,p.createDecorator)(_t);Oe.get(xt)instanceof ye.SyncDescriptor&&Oe.set(xt,lt[_t])}return qe}Ke.initialize=at})(ht=e.StandaloneServices||(e.StandaloneServices={}))}),define(oe[781],se([1,0,49,2,29,173,311,234,92,220,115,39,26,30,16,78,9,44,38,15,77,76,93,71,50,37,301,72,32,20]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r,c,g,f,_,p,m,S,E,L,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createTextModel=e.StandaloneDiffEditor=e.StandaloneEditor=e.StandaloneCodeEditor=void 0;let I=0,R=!1;function F(B){if(!B){if(R)return;R=!0}y.setARIAContainer(B||document.body)}let O=class extends D.CodeEditorWidget{constructor(B,K,T,ee,J,$,j,G,te,Z,X,ie){const H=Object.assign({},K);H.ariaLabel=H.ariaLabel||g.StandaloneCodeEditorNLS.editorViewAccessibleLabel,H.ariaLabel=H.ariaLabel+";"+g.StandaloneCodeEditorNLS.accessibilityHelpMessage,super(B,H,{},T,ee,J,$,G,te,Z,X,ie),j instanceof h.StandaloneKeybindingService?this._standaloneKeybindingService=j:this._standaloneKeybindingService=null,F(H.ariaContainerElement)}addCommand(B,K,T){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;const ee="DYNAMIC_"+ ++I,J=o.ContextKeyExpr.deserialize(T);return this._standaloneKeybindingService.addDynamicKeybinding(ee,B,K,J),ee}createContextKey(B,K){return this._contextKeyService.createKey(B,K)}addAction(B){if(typeof B.id!="string"||typeof B.label!="string"||typeof B.run!="function")throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),v.Disposable.None;const K=B.id,T=B.label,ee=o.ContextKeyExpr.and(o.ContextKeyExpr.equals("editorId",this.getId()),o.ContextKeyExpr.deserialize(B.precondition)),J=B.keybindings,$=o.ContextKeyExpr.and(ee,o.ContextKeyExpr.deserialize(B.keybindingContext)),j=B.contextMenuGroupId||null,G=B.contextMenuOrder||0,te=(H,...ae)=>Promise.resolve(B.run(this,...ae)),Z=new v.DisposableStore,X=this.getId()+":"+K;if(Z.add(i.CommandsRegistry.registerCommand(X,te)),j){const H={command:{id:X,title:T},when:ee,group:j,order:G};Z.add(n.MenuRegistry.appendMenuItem(n.MenuId.EditorContext,H))}if(Array.isArray(J))for(const H of J)Z.add(this._standaloneKeybindingService.addDynamicKeybinding(X,H,te,$));const ie=new b.InternalEditorAction(X,T,T,ee,te,this._contextKeyService);return this._actions[K]=ie,Z.add((0,v.toDisposable)(()=>{delete this._actions[K]})),Z}_triggerCommand(B,K){if(this._codeEditorService instanceof S.StandaloneCodeEditorService)try{this._codeEditorService.setActiveCodeEditor(this),super._triggerCommand(B,K)}finally{this._codeEditorService.setActiveCodeEditor(null)}else super._triggerCommand(B,K)}};O=Ie([pe(2,d.IInstantiationService),pe(3,k.ICodeEditorService),pe(4,i.ICommandService),pe(5,o.IContextKeyService),pe(6,l.IKeybindingService),pe(7,r.IThemeService),pe(8,a.INotificationService),pe(9,c.IAccessibilityService),pe(10,L.ILanguageConfigurationService),pe(11,N.ILanguageFeaturesService)],O),e.StandaloneCodeEditor=O;let x=class extends O{constructor(B,K,T,ee,J,$,j,G,te,Z,X,ie,H,ae,Y){const U=Object.assign({},K);(0,h.updateConfigurationService)(Z,U,!1);const le=G.registerEditorContainer(B);typeof U.theme=="string"&&G.setTheme(U.theme),typeof U.autoDetectHighContrast<"u"&&G.setAutoDetectHighContrast(!!U.autoDetectHighContrast);const z=U.model;delete U.model,super(B,U,T,ee,J,$,j,G,te,X,ae,Y),this._configurationService=Z,this._standaloneThemeService=G,this._register(le);let Q;if(typeof z>"u"){const W=H.getLanguageIdByMimeType(U.language)||U.language||E.PLAINTEXT_LANGUAGE_ID;Q=P(ie,H,U.value||"",W,void 0),this._ownsModel=!0}else Q=z,this._ownsModel=!1;if(this._attachModel(Q),Q){const W={oldModelUrl:null,newModelUrl:Q.uri};this._onDidChangeModel.fire(W)}}dispose(){super.dispose()}updateOptions(B){(0,h.updateConfigurationService)(this._configurationService,B,!1),typeof B.theme=="string"&&this._standaloneThemeService.setTheme(B.theme),typeof B.autoDetectHighContrast<"u"&&this._standaloneThemeService.setAutoDetectHighContrast(!!B.autoDetectHighContrast),super.updateOptions(B)}_postDetachModelCleanup(B){super._postDetachModelCleanup(B),B&&this._ownsModel&&(B.dispose(),this._ownsModel=!1)}};x=Ie([pe(2,d.IInstantiationService),pe(3,k.ICodeEditorService),pe(4,i.ICommandService),pe(5,o.IContextKeyService),pe(6,l.IKeybindingService),pe(7,u.IStandaloneThemeService),pe(8,a.INotificationService),pe(9,t.IConfigurationService),pe(10,c.IAccessibilityService),pe(11,p.IModelService),pe(12,m.ILanguageService),pe(13,L.ILanguageConfigurationService),pe(14,N.ILanguageFeaturesService)],x),e.StandaloneEditor=x;let M=class extends w.DiffEditorWidget{constructor(B,K,T,ee,J,$,j,G,te,Z,X,ie){const H=Object.assign({},K);(0,h.updateConfigurationService)(te,H,!0);const ae=j.registerEditorContainer(B);typeof H.theme=="string"&&j.setTheme(H.theme),typeof H.autoDetectHighContrast<"u"&&j.setAutoDetectHighContrast(!!H.autoDetectHighContrast),super(B,H,{},ie,J,ee,T,$,j,G,Z,X),this._configurationService=te,this._standaloneThemeService=j,this._register(ae)}dispose(){super.dispose()}updateOptions(B){(0,h.updateConfigurationService)(this._configurationService,B,!0),typeof B.theme=="string"&&this._standaloneThemeService.setTheme(B.theme),typeof B.autoDetectHighContrast<"u"&&this._standaloneThemeService.setAutoDetectHighContrast(!!B.autoDetectHighContrast),super.updateOptions(B)}_createInnerEditor(B,K,T){return B.createInstance(O,K,T)}getOriginalEditor(){return super.getOriginalEditor()}getModifiedEditor(){return super.getModifiedEditor()}addCommand(B,K,T){return this.getModifiedEditor().addCommand(B,K,T)}createContextKey(B,K){return this.getModifiedEditor().createContextKey(B,K)}addAction(B){return this.getModifiedEditor().addAction(B)}};M=Ie([pe(2,d.IInstantiationService),pe(3,o.IContextKeyService),pe(4,C.IEditorWorkerService),pe(5,k.ICodeEditorService),pe(6,u.IStandaloneThemeService),pe(7,a.INotificationService),pe(8,t.IConfigurationService),pe(9,s.IContextMenuService),pe(10,_.IEditorProgressService),pe(11,f.IClipboardService)],M),e.StandaloneDiffEditor=M;function P(B,K,T,ee,J){if(T=T||"",!ee){const $=T.indexOf(` `);let j=T;return $!==-1&&(j=T.substring(0,$)),A(B,T,K.createByFilepathOrFirstLine(J||null,j),J)}return A(B,T,K.createById(ee),J)}e.createTextModel=P;function A(B,K,T,ee){return B.createModel(K,T,ee)}}),define(oe[782],se([1,0,8,277,29,269,36,207,154,46,28,32,136,37,50,650,159,630,781,220,115,26,84,398]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s,d,l,a,r,c,g,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createMonacoEditorAPI=e.registerCommand=e.remeasureFonts=e.setTheme=e.defineTheme=e.tokenize=e.colorizeModelLine=e.colorize=e.colorizeElement=e.createWebWorker=e.onDidChangeModelLanguage=e.onWillDisposeModel=e.onDidCreateModel=e.getModels=e.getModel=e.onDidChangeMarkers=e.getModelMarkers=e.removeAllMarkers=e.setModelMarkers=e.setModelLanguage=e.createModel=e.createDiffNavigator=e.createDiffEditor=e.getDiffEditors=e.getEditors=e.onDidCreateDiffEditor=e.onDidCreateEditor=e.create=void 0;function _(Y,U,le){return r.StandaloneServices.initialize(le||{}).createInstance(a.StandaloneEditor,Y,U)}e.create=_;function p(Y){return r.StandaloneServices.get(k.ICodeEditorService).onCodeEditorAdd(U=>{Y(U)})}e.onDidCreateEditor=p;function m(Y){return r.StandaloneServices.get(k.ICodeEditorService).onDiffEditorAdd(U=>{Y(U)})}e.onDidCreateDiffEditor=m;function S(){return r.StandaloneServices.get(k.ICodeEditorService).listCodeEditors()}e.getEditors=S;function E(){return r.StandaloneServices.get(k.ICodeEditorService).listDiffEditors()}e.getDiffEditors=E;function L(Y,U,le){return r.StandaloneServices.initialize(le||{}).createInstance(a.StandaloneDiffEditor,Y,U)}e.createDiffEditor=L;function N(Y,U){return new D.DiffNavigator(Y,U)}e.createDiffNavigator=N;function I(Y,U,le){const z=r.StandaloneServices.get(t.ILanguageService),Q=z.getLanguageIdByMimeType(U)||U;return(0,a.createTextModel)(r.StandaloneServices.get(o.IModelService),z,Y,Q,le)}e.createModel=I;function R(Y,U){const le=r.StandaloneServices.get(t.ILanguageService);r.StandaloneServices.get(o.IModelService).setMode(Y,le.createById(U))}e.setModelLanguage=R;function F(Y,U,le){Y&&r.StandaloneServices.get(f.IMarkerService).changeOne(U,Y.uri,le)}e.setModelMarkers=F;function O(Y){r.StandaloneServices.get(f.IMarkerService).changeAll(Y,[])}e.removeAllMarkers=O;function x(Y){return r.StandaloneServices.get(f.IMarkerService).read(Y)}e.getModelMarkers=x;function M(Y){return r.StandaloneServices.get(f.IMarkerService).onMarkerChanged(Y)}e.onDidChangeMarkers=M;function P(Y){return r.StandaloneServices.get(o.IModelService).getModel(Y)}e.getModel=P;function A(){return r.StandaloneServices.get(o.IModelService).getModels()}e.getModels=A;function B(Y){return r.StandaloneServices.get(o.IModelService).onModelAdded(Y)}e.onDidCreateModel=B;function K(Y){return r.StandaloneServices.get(o.IModelService).onModelRemoved(Y)}e.onWillDisposeModel=K;function T(Y){return r.StandaloneServices.get(o.IModelService).onModelLanguageChanged(U=>{Y({model:U.model,oldLanguage:U.oldLanguageId})})}e.onDidChangeModelLanguage=T;function ee(Y){return(0,s.createWebWorker)(r.StandaloneServices.get(o.IModelService),r.StandaloneServices.get(n.ILanguageConfigurationService),Y)}e.createWebWorker=ee;function J(Y,U){const le=r.StandaloneServices.get(t.ILanguageService),z=r.StandaloneServices.get(c.IStandaloneThemeService);return z.registerEditorContainer(Y),l.Colorizer.colorizeElement(z,le,Y,U)}e.colorizeElement=J;function $(Y,U,le){const z=r.StandaloneServices.get(t.ILanguageService);return r.StandaloneServices.get(c.IStandaloneThemeService).registerEditorContainer(document.body),l.Colorizer.colorize(z,Y,U,le)}e.colorize=$;function j(Y,U,le=4){return r.StandaloneServices.get(c.IStandaloneThemeService).registerEditorContainer(document.body),l.Colorizer.colorizeModelLine(Y,U,le)}e.colorizeModelLine=j;function G(Y){return u.TokenizationRegistry.get(Y)||{getInitialState:()=>i.NullState,tokenize:(le,z,Q)=>(0,i.nullTokenize)(Y,Q)}}function te(Y,U){u.TokenizationRegistry.getOrCreate(U);const le=G(U),z=(0,y.splitLines)(Y),Q=[];let W=le.getInitialState();for(let V=0,ne=z.length;V<ne;V++){const de=z[V],ce=le.tokenize(de,!0,W);Q[V]=ce.tokens,W=ce.endState}return Q}e.tokenize=te;function Z(Y,U){r.StandaloneServices.get(c.IStandaloneThemeService).defineTheme(Y,U)}e.defineTheme=Z;function X(Y){r.StandaloneServices.get(c.IStandaloneThemeService).setTheme(Y)}e.setTheme=X;function ie(){v.FontMeasurements.clearAllFontInfos()}e.remeasureFonts=ie;function H(Y,U){return g.CommandsRegistry.registerCommand({id:Y,handler:U})}e.registerCommand=H;function ae(){return{create:_,getEditors:S,getDiffEditors:E,onDidCreateEditor:p,onDidCreateDiffEditor:m,createDiffEditor:L,createDiffNavigator:N,createModel:I,setModelLanguage:R,setModelMarkers:F,getModelMarkers:x,removeAllMarkers:O,onDidChangeMarkers:M,getModels:A,getModel:P,onDidCreateModel:B,onWillDisposeModel:K,onDidChangeModelLanguage:T,createWebWorker:ee,colorizeElement:J,colorize:$,colorizeModelLine:j,tokenize:te,defineTheme:Z,setTheme:X,remeasureFonts:ie,registerCommand:H,AccessibilitySupport:d.AccessibilitySupport,ContentWidgetPositionPreference:d.ContentWidgetPositionPreference,CursorChangeReason:d.CursorChangeReason,DefaultEndOfLine:d.DefaultEndOfLine,EditorAutoIndentStrategy:d.EditorAutoIndentStrategy,EditorOption:d.EditorOption,EndOfLinePreference:d.EndOfLinePreference,EndOfLineSequence:d.EndOfLineSequence,MinimapPosition:d.MinimapPosition,MouseTargetType:d.MouseTargetType,OverlayWidgetPositionPreference:d.OverlayWidgetPositionPreference,OverviewRulerLane:d.OverviewRulerLane,RenderLineNumbersType:d.RenderLineNumbersType,RenderMinimap:d.RenderMinimap,ScrollbarVisibility:d.ScrollbarVisibility,ScrollType:d.ScrollType,TextEditorCursorBlinkingStyle:d.TextEditorCursorBlinkingStyle,TextEditorCursorStyle:d.TextEditorCursorStyle,TrackedRangeStickiness:d.TrackedRangeStickiness,WrappingIndent:d.WrappingIndent,InjectedTextCursorStops:d.InjectedTextCursorStops,PositionAffinity:d.PositionAffinity,ConfigurationChangedEvent:w.ConfigurationChangedEvent,BareFontInfo:b.BareFontInfo,FontInfo:b.FontInfo,TextModelResolvedOptions:h.TextModelResolvedOptions,FindMatch:h.FindMatch,ApplyUpdateResult:w.ApplyUpdateResult,EditorType:C.EditorType,EditorOptions:w.EditorOptions}}e.createMonacoEditorAPI=ae}),define(oe[783],se([1,0,31,3,28,32,72,37,159,220,461,284,115,84,20,30]),function(q,e,y,v,k,D,w,b,C,h,u,n,i,t,o,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createMonacoLanguagesAPI=e.registerInlayHintsProvider=e.registerInlineCompletionsProvider=e.registerDocumentRangeSemanticTokensProvider=e.registerDocumentSemanticTokensProvider=e.registerSelectionRangeProvider=e.registerDeclarationProvider=e.registerFoldingRangeProvider=e.registerColorProvider=e.registerCompletionItemProvider=e.registerLinkProvider=e.registerOnTypeFormattingEditProvider=e.registerDocumentRangeFormattingEditProvider=e.registerDocumentFormattingEditProvider=e.registerCodeActionProvider=e.registerCodeLensProvider=e.registerTypeDefinitionProvider=e.registerImplementationProvider=e.registerDefinitionProvider=e.registerLinkedEditingRangeProvider=e.registerDocumentHighlightProvider=e.registerDocumentSymbolProvider=e.registerHoverProvider=e.registerSignatureHelpProvider=e.registerRenameProvider=e.registerReferenceProvider=e.setMonarchTokensProvider=e.setTokensProvider=e.registerTokensProviderFactory=e.setColorMap=e.TokenizationSupportAdapter=e.EncodedTokenizationSupportAdapter=e.setLanguageConfiguration=e.onLanguage=e.getEncodedLanguageId=e.getLanguages=e.register=void 0;function d(W){w.ModesRegistry.registerLanguage(W)}e.register=d;function l(){let W=[];return W=W.concat(w.ModesRegistry.getLanguages()),W}e.getLanguages=l;function a(W){return h.StandaloneServices.get(b.ILanguageService).languageIdCodec.encodeLanguageId(W)}e.getEncodedLanguageId=a;function r(W,V){const ne=h.StandaloneServices.get(b.ILanguageService).onDidEncounterLanguage(de=>{de===W&&(ne.dispose(),V())});return ne}e.onLanguage=r;function c(W,V){if(!h.StandaloneServices.get(b.ILanguageService).isRegisteredLanguageId(W))throw new Error(`Cannot set configuration for unknown language ${W}`);return h.StandaloneServices.get(D.ILanguageConfigurationService).register(W,V,100)}e.setLanguageConfiguration=c;class g{constructor(V,ne){this._languageId=V,this._actual=ne}getInitialState(){return this._actual.getInitialState()}tokenize(V,ne,de){if(typeof this._actual.tokenize=="function")return f.adaptTokenize(this._languageId,this._actual,V,de);throw new Error("Not supported!")}tokenizeEncoded(V,ne,de){const ce=this._actual.tokenizeEncoded(V,de);return new k.EncodedTokenizationResult(ce.tokens,ce.endState)}}e.EncodedTokenizationSupportAdapter=g;class f{constructor(V,ne,de,ce){this._languageId=V,this._actual=ne,this._languageService=de,this._standaloneThemeService=ce}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(V,ne){const de=[];let ce=0;for(let ue=0,me=V.length;ue<me;ue++){const _e=V[ue];let ye=_e.startIndex;ue===0?ye=0:ye<ce&&(ye=ce),de[ue]=new k.Token(ye,_e.scopes,ne),ce=ye}return de}static adaptTokenize(V,ne,de,ce){const ue=ne.tokenize(de,ce),me=f._toClassicTokens(ue.tokens,V);let _e;return ue.endState.equals(ce)?_e=ce:_e=ue.endState,new k.TokenizationResult(me,_e)}tokenize(V,ne,de){return f.adaptTokenize(this._languageId,this._actual,V,de)}_toBinaryTokens(V,ne){const de=V.encodeLanguageId(this._languageId),ce=this._standaloneThemeService.getColorTheme().tokenTheme,ue=[];let me=0,_e=0;for(let ke=0,Te=ne.length;ke<Te;ke++){const Me=ne[ke],fe=ce.match(de,Me.scopes);if(me>0&&ue[me-1]===fe)continue;let he=Me.startIndex;ke===0?he=0:he<_e&&(he=_e),ue[me++]=he,ue[me++]=fe,_e=he}const ye=new Uint32Array(me);for(let ke=0;ke<me;ke++)ye[ke]=ue[ke];return ye}tokenizeEncoded(V,ne,de){const ce=this._actual.tokenize(V,de),ue=this._toBinaryTokens(this._languageService.languageIdCodec,ce.tokens);let me;return ce.endState.equals(de)?me=de:me=ce.endState,new k.EncodedTokenizationResult(ue,me)}}e.TokenizationSupportAdapter=f;function _(W){return typeof W.getInitialState=="function"}function p(W){return"tokenizeEncoded"in W}function m(W){return W&&typeof W.then=="function"}function S(W){const V=h.StandaloneServices.get(i.IStandaloneThemeService);if(W){const ne=[null];for(let de=1,ce=W.length;de<ce;de++)ne[de]=y.Color.fromHex(W[de]);V.setColorMapOverride(ne)}else V.setColorMapOverride(null)}e.setColorMap=S;function E(W,V){return p(V)?new g(W,V):new f(W,V,h.StandaloneServices.get(b.ILanguageService),h.StandaloneServices.get(i.IStandaloneThemeService))}function L(W,V){const ne={createTokenizationSupport:()=>be(this,void 0,void 0,function*(){const de=yield Promise.resolve(V.create());return de?_(de)?E(W,de):new n.MonarchTokenizer(h.StandaloneServices.get(b.ILanguageService),h.StandaloneServices.get(i.IStandaloneThemeService),W,(0,u.compile)(W,de),h.StandaloneServices.get(s.IConfigurationService)):null})};return k.TokenizationRegistry.registerFactory(W,ne)}e.registerTokensProviderFactory=L;function N(W,V){if(!h.StandaloneServices.get(b.ILanguageService).isRegisteredLanguageId(W))throw new Error(`Cannot set tokens provider for unknown language ${W}`);return m(V)?L(W,{create:()=>V}):k.TokenizationRegistry.register(W,E(W,V))}e.setTokensProvider=N;function I(W,V){const ne=de=>new n.MonarchTokenizer(h.StandaloneServices.get(b.ILanguageService),h.StandaloneServices.get(i.IStandaloneThemeService),W,(0,u.compile)(W,de),h.StandaloneServices.get(s.IConfigurationService));return m(V)?L(W,{create:()=>V}):k.TokenizationRegistry.register(W,ne(V))}e.setMonarchTokensProvider=I;function R(W,V){return h.StandaloneServices.get(o.ILanguageFeaturesService).referenceProvider.register(W,V)}e.registerReferenceProvider=R;function F(W,V){return h.StandaloneServices.get(o.ILanguageFeaturesService).renameProvider.register(W,V)}e.registerRenameProvider=F;function O(W,V){return h.StandaloneServices.get(o.ILanguageFeaturesService).signatureHelpProvider.register(W,V)}e.registerSignatureHelpProvider=O;function x(W,V){return h.StandaloneServices.get(o.ILanguageFeaturesService).hoverProvider.register(W,{provideHover:(ne,de,ce)=>{const ue=ne.getWordAtPosition(de);return Promise.resolve(V.provideHover(ne,de,ce)).then(me=>{if(me)return!me.range&&ue&&(me.range=new v.Range(de.lineNumber,ue.startColumn,de.lineNumber,ue.endColumn)),me.range||(me.range=new v.Range(de.lineNumber,de.column,de.lineNumber,de.column)),me})}})}e.registerHoverProvider=x;function M(W,V){return h.StandaloneServices.get(o.ILanguageFeaturesService).documentSymbolProvider.register(W,V)}e.registerDocumentSymbolProvider=M;function P(W,V){return h.StandaloneServices.get(o.ILanguageFeaturesService).documentHighlightProvider.register(W,V)}e.registerDocumentHighlightProvider=P;function A(W,V){return h.StandaloneServices.get(o.ILanguageFeaturesService).linkedEditingRangeProvider.register(W,V)}e.registerLinkedEditingRangeProvider=A;function B(W,V){return h.StandaloneServices.get(o.ILanguageFeaturesService).definitionProvider.register(W,V)}e.registerDefinitionProvider=B;function K(W,V){return h.StandaloneServices.get(o.ILanguageFeaturesService).implementationProvider.register(W,V)}e.registerImplementationProvider=K;function T(W,V){return h.StandaloneServices.get(o.ILanguageFeaturesService).typeDefinitionProvider.register(W,V)}e.registerTypeDefinitionProvider=T;function ee(W,V){return h.StandaloneServices.get(o.ILanguageFeaturesService).codeLensProvider.register(W,V)}e.registerCodeLensProvider=ee;function J(W,V,ne){return h.StandaloneServices.get(o.ILanguageFeaturesService).codeActionProvider.register(W,{providedCodeActionKinds:ne?.providedCodeActionKinds,documentation:ne?.documentation,provideCodeActions:(de,ce,ue,me)=>{const _e=h.StandaloneServices.get(t.IMarkerService).read({resource:de.uri}).filter(ye=>v.Range.areIntersectingOrTouching(ye,ce));return V.provideCodeActions(de,ce,{markers:_e,only:ue.only,trigger:ue.trigger},me)},resolveCodeAction:V.resolveCodeAction})}e.registerCodeActionProvider=J;function $(W,V){return h.StandaloneServices.get(o.ILanguageFeaturesService).documentFormattingEditProvider.register(W,V)}e.registerDocumentFormattingEditProvider=$;function j(W,V){return h.StandaloneServices.get(o.ILanguageFeaturesService).documentRangeFormattingEditProvider.register(W,V)}e.registerDocumentRangeFormattingEditProvider=j;function G(W,V){return h.StandaloneServices.get(o.ILanguageFeaturesService).onTypeFormattingEditProvider.register(W,V)}e.registerOnTypeFormattingEditProvider=G;function te(W,V){return h.StandaloneServices.get(o.ILanguageFeaturesService).linkProvider.register(W,V)}e.registerLinkProvider=te;function Z(W,V){return h.StandaloneServices.get(o.ILanguageFeaturesService).completionProvider.register(W,V)}e.registerCompletionItemProvider=Z;function X(W,V){return h.StandaloneServices.get(o.ILanguageFeaturesService).colorProvider.register(W,V)}e.registerColorProvider=X;function ie(W,V){return h.StandaloneServices.get(o.ILanguageFeaturesService).foldingRangeProvider.register(W,V)}e.registerFoldingRangeProvider=ie;function H(W,V){return h.StandaloneServices.get(o.ILanguageFeaturesService).declarationProvider.register(W,V)}e.registerDeclarationProvider=H;function ae(W,V){return h.StandaloneServices.get(o.ILanguageFeaturesService).selectionRangeProvider.register(W,V)}e.registerSelectionRangeProvider=ae;function Y(W,V){return h.StandaloneServices.get(o.ILanguageFeaturesService).documentSemanticTokensProvider.register(W,V)}e.registerDocumentSemanticTokensProvider=Y;function U(W,V){return h.StandaloneServices.get(o.ILanguageFeaturesService).documentRangeSemanticTokensProvider.register(W,V)}e.registerDocumentRangeSemanticTokensProvider=U;function le(W,V){return h.StandaloneServices.get(o.ILanguageFeaturesService).inlineCompletionsProvider.register(W,V)}e.registerInlineCompletionsProvider=le;function z(W,V){return h.StandaloneServices.get(o.ILanguageFeaturesService).inlayHintsProvider.register(W,V)}e.registerInlayHintsProvider=z;function Q(){return{register:d,getLanguages:l,onLanguage:r,getEncodedLanguageId:a,setLanguageConfiguration:c,setColorMap:S,registerTokensProviderFactory:L,setTokensProvider:N,setMonarchTokensProvider:I,registerReferenceProvider:R,registerRenameProvider:F,registerCompletionItemProvider:Z,registerSignatureHelpProvider:O,registerHoverProvider:x,registerDocumentSymbolProvider:M,registerDocumentHighlightProvider:P,registerLinkedEditingRangeProvider:A,registerDefinitionProvider:B,registerImplementationProvider:K,registerTypeDefinitionProvider:T,registerCodeLensProvider:ee,registerCodeActionProvider:J,registerDocumentFormattingEditProvider:$,registerDocumentRangeFormattingEditProvider:j,registerOnTypeFormattingEditProvider:G,registerLinkProvider:te,registerColorProvider:X,registerFoldingRangeProvider:ie,registerDeclarationProvider:H,registerSelectionRangeProvider:ae,registerDocumentSemanticTokensProvider:Y,registerDocumentRangeSemanticTokensProvider:U,registerInlineCompletionsProvider:le,registerInlayHintsProvider:z,DocumentHighlightKind:C.DocumentHighlightKind,CompletionItemKind:C.CompletionItemKind,CompletionItemTag:C.CompletionItemTag,CompletionItemInsertTextRule:C.CompletionItemInsertTextRule,SymbolKind:C.SymbolKind,SymbolTag:C.SymbolTag,IndentAction:C.IndentAction,CompletionTriggerKind:C.CompletionTriggerKind,SignatureHelpTriggerKind:C.SignatureHelpTriggerKind,InlayHintKind:C.InlayHintKind,InlineCompletionTriggerKind:C.InlineCompletionTriggerKind,CodeActionTriggerType:C.CodeActionTriggerType,FoldingRangeKind:k.FoldingRangeKind}}e.createMonacoLanguagesAPI=Q}),define(oe[784],se([1,0,36,273,782,783,17,303]),function(q,e,y,v,k,D,w,b){"use strict";var C;Object.defineProperty(e,"__esModule",{value:!0}),e.languages=e.editor=e.Token=e.Uri=e.MarkerTag=e.MarkerSeverity=e.SelectionDirection=e.Selection=e.Range=e.Position=e.KeyMod=e.KeyCode=e.Emitter=e.CancellationTokenSource=void 0,y.EditorOptions.wrappingIndent.defaultValue=0,y.EditorOptions.glyphMargin.defaultValue=!1,y.EditorOptions.autoIndent.defaultValue=3,y.EditorOptions.overviewRulerLanes.defaultValue=2,b.FormattingConflicts.setFormatterSelector((u,n,i)=>Promise.resolve(u[0]));const h=(0,v.createMonacoBaseAPI)();h.editor=(0,k.createMonacoEditorAPI)(),h.languages=(0,D.createMonacoLanguagesAPI)(),e.CancellationTokenSource=h.CancellationTokenSource,e.Emitter=h.Emitter,e.KeyCode=h.KeyCode,e.KeyMod=h.KeyMod,e.Position=h.Position,e.Range=h.Range,e.Selection=h.Selection,e.SelectionDirection=h.SelectionDirection,e.MarkerSeverity=h.MarkerSeverity,e.MarkerTag=h.MarkerTag,e.Uri=h.Uri,e.Token=h.Token,e.editor=h.editor,e.languages=h.languages,(!((C=w.globals.MonacoEnvironment)===null||C===void 0)&&C.globalAPI||typeof define=="function"&&define.amd)&&(self.monaco=h),typeof self.require<"u"&&typeof self.require.config=="function"&&self.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]})});var Si=this&&this.__createBinding||(Object.create?function(q,e,y,v){v===void 0&&(v=y);var k=Object.getOwnPropertyDescriptor(e,y);(!k||("get"in k?!e.__esModule:k.writable||k.configurable))&&(k={enumerable:!0,get:function(){return e[y]}}),Object.defineProperty(q,v,k)}:function(q,e,y,v){v===void 0&&(v=y),q[v]=e[y]}),yi=this&&this.__exportStar||function(q,e){for(var y in q)y!=="default"&&!Object.prototype.hasOwnProperty.call(e,y)&&Si(e,q,y)};define(oe[786],se([1,0,784,780,718,719,720,660,722,723,721,767,737]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),yi(y,e)})}).call(this);/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.0(9d278685b078158491964f8fd7ac9628fffa0f30) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/define("vs/basic-languages/monaco.contribution",["require","require","vs/editor/editor.api"],oe=>{var se=(()=>{var be=Object.create,St=Object.defineProperty,Vt=Object.getOwnPropertyDescriptor,Bt=Object.getOwnPropertyNames,Ht=Object.getPrototypeOf,Kt=Object.prototype.hasOwnProperty,ze=(we=>typeof oe<"u"?oe:typeof Proxy<"u"?new Proxy(we,{get:(Ee,ut)=>(typeof oe<"u"?oe:Ee)[ut]}):we)(function(we){if(typeof oe<"u")return oe.apply(this,arguments);throw new Error('Dynamic require of "'+we+'" is not supported')}),bt=(we,Ee)=>()=>(Ee||we((Ee={exports:{}}).exports,Ee),Ee.exports),Dt=(we,Ee,ut,Et)=>{if(Ee&&typeof Ee=="object"||typeof Ee=="function")for(let Ze of Bt(Ee))!Kt.call(we,Ze)&&Ze!==ut&&St(we,Ze,{get:()=>Ee[Ze],enumerable:!(Et=Vt(Ee,Ze))||Et.enumerable});return we},wt=(we,Ee,ut)=>(Dt(we,Ee,"default"),ut&&Dt(ut,Ee,"default")),At=(we,Ee,ut)=>(ut=we!=null?be(Ht(we)):{},Dt(Ee||!we||!we.__esModule?St(ut,"default",{value:we,enumerable:!0}):ut,we)),It=bt((we,Ee)=>{var ut=At(ze("vs/editor/editor.api"));Ee.exports=ut}),Mt={};wt(Mt,At(It()));var Wt={},Nt={},vt=class{static getOrCreate(we){return Nt[we]||(Nt[we]=new vt(we)),Nt[we]}_languageId;_loadingTriggered;_lazyLoadPromise;_lazyLoadPromiseResolve;_lazyLoadPromiseReject;constructor(we){this._languageId=we,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((Ee,ut)=>{this._lazyLoadPromiseResolve=Ee,this._lazyLoadPromiseReject=ut})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,Wt[this._languageId].loader().then(we=>this._lazyLoadPromiseResolve(we),we=>this._lazyLoadPromiseReject(we))),this._lazyLoadPromise}};function We(we){let Ee=we.id;Wt[Ee]=we,Mt.languages.register(we);let ut=vt.getOrCreate(Ee);Mt.languages.registerTokensProviderFactory(Ee,{create:async()=>(await ut.load()).language}),Mt.languages.onLanguage(Ee,async()=>{let Et=await ut.load();Mt.languages.setLanguageConfiguration(Ee,Et.conf)})}We({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/abap/abap"],we,Ee)})}),We({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/apex/apex"],we,Ee)})}),We({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/azcli/azcli"],we,Ee)})}),We({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/bat/bat"],we,Ee)})}),We({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/bicep/bicep"],we,Ee)})}),We({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/cameligo/cameligo"],we,Ee)})}),We({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/clojure/clojure"],we,Ee)})}),We({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/coffee/coffee"],we,Ee)})}),We({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/cpp/cpp"],we,Ee)})}),We({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/cpp/cpp"],we,Ee)})}),We({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/csharp/csharp"],we,Ee)})}),We({id:"csp",extensions:[],aliases:["CSP","csp"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/csp/csp"],we,Ee)})}),We({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/css/css"],we,Ee)})}),We({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/cypher/cypher"],we,Ee)})}),We({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/dart/dart"],we,Ee)})}),We({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/dockerfile/dockerfile"],we,Ee)})}),We({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/ecl/ecl"],we,Ee)})}),We({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/elixir/elixir"],we,Ee)})}),We({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/flow9/flow9"],we,Ee)})}),We({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/fsharp/fsharp"],we,Ee)})}),We({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/freemarker2/freemarker2"],we,Ee)}).then(we=>we.TagAngleInterpolationDollar)}),We({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/freemarker2/freemarker2"],we,Ee)}).then(we=>we.TagAngleInterpolationDollar)}),We({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/freemarker2/freemarker2"],we,Ee)}).then(we=>we.TagBracketInterpolationDollar)}),We({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/freemarker2/freemarker2"],we,Ee)}).then(we=>we.TagAngleInterpolationBracket)}),We({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/freemarker2/freemarker2"],we,Ee)}).then(we=>we.TagBracketInterpolationBracket)}),We({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/freemarker2/freemarker2"],we,Ee)}).then(we=>we.TagAutoInterpolationDollar)}),We({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/freemarker2/freemarker2"],we,Ee)}).then(we=>we.TagAutoInterpolationBracket)}),We({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/go/go"],we,Ee)})}),We({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/graphql/graphql"],we,Ee)})}),We({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/handlebars/handlebars"],we,Ee)})}),We({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/hcl/hcl"],we,Ee)})}),We({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/html/html"],we,Ee)})}),We({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/ini/ini"],we,Ee)})}),We({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/java/java"],we,Ee)})}),We({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/javascript/javascript"],we,Ee)})}),We({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/julia/julia"],we,Ee)})}),We({id:"kotlin",extensions:[".kt"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/kotlin/kotlin"],we,Ee)})}),We({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/less/less"],we,Ee)})}),We({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/lexon/lexon"],we,Ee)})}),We({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/lua/lua"],we,Ee)})}),We({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/liquid/liquid"],we,Ee)})}),We({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/m3/m3"],we,Ee)})}),We({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/markdown/markdown"],we,Ee)})}),We({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/mips/mips"],we,Ee)})}),We({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/msdax/msdax"],we,Ee)})}),We({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/mysql/mysql"],we,Ee)})}),We({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/objective-c/objective-c"],we,Ee)})}),We({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/pascal/pascal"],we,Ee)})}),We({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/pascaligo/pascaligo"],we,Ee)})}),We({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/perl/perl"],we,Ee)})}),We({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/pgsql/pgsql"],we,Ee)})}),We({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/php/php"],we,Ee)})}),We({id:"pla",extensions:[".pla"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/pla/pla"],we,Ee)})}),We({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/postiats/postiats"],we,Ee)})}),We({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/powerquery/powerquery"],we,Ee)})}),We({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/powershell/powershell"],we,Ee)})}),We({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/protobuf/protobuf"],we,Ee)})}),We({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/pug/pug"],we,Ee)})}),We({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/python/python"],we,Ee)})}),We({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/qsharp/qsharp"],we,Ee)})}),We({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/r/r"],we,Ee)})}),We({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/razor/razor"],we,Ee)})}),We({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/redis/redis"],we,Ee)})}),We({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/redshift/redshift"],we,Ee)})}),We({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/restructuredtext/restructuredtext"],we,Ee)})}),We({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/ruby/ruby"],we,Ee)})}),We({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/rust/rust"],we,Ee)})}),We({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/sb/sb"],we,Ee)})}),We({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/scala/scala"],we,Ee)})}),We({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/scheme/scheme"],we,Ee)})}),We({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/scss/scss"],we,Ee)})}),We({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/shell/shell"],we,Ee)})}),We({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/solidity/solidity"],we,Ee)})}),We({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/sophia/sophia"],we,Ee)})}),We({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/sparql/sparql"],we,Ee)})}),We({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/sql/sql"],we,Ee)})}),We({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/st/st"],we,Ee)})}),We({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/swift/swift"],we,Ee)})}),We({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/systemverilog/systemverilog"],we,Ee)})}),We({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/systemverilog/systemverilog"],we,Ee)})}),We({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/tcl/tcl"],we,Ee)})}),We({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/twig/twig"],we,Ee)})}),We({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/typescript/typescript"],we,Ee)})}),We({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/vb/vb"],we,Ee)})}),We({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/xml/xml"],we,Ee)})}),We({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>new Promise((we,Ee)=>{ze(["vs/basic-languages/yaml/yaml"],we,Ee)})})})();return se});/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.0(9d278685b078158491964f8fd7ac9628fffa0f30) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/define("vs/language/css/monaco.contribution",["require","require","vs/editor/editor.api"],oe=>{var se=(()=>{var be=Object.create,St=Object.defineProperty,Vt=Object.getOwnPropertyDescriptor,Bt=Object.getOwnPropertyNames,Ht=Object.getPrototypeOf,Kt=Object.prototype.hasOwnProperty,ze=(Ge=>typeof oe<"u"?oe:typeof Proxy<"u"?new Proxy(Ge,{get:(ct,Xe)=>(typeof oe<"u"?oe:ct)[Xe]}):Ge)(function(Ge){if(typeof oe<"u")return oe.apply(this,arguments);throw new Error('Dynamic require of "'+Ge+'" is not supported')}),bt=(Ge,ct)=>()=>(ct||Ge((ct={exports:{}}).exports,ct),ct.exports),Dt=(Ge,ct)=>{for(var Xe in ct)St(Ge,Xe,{get:ct[Xe],enumerable:!0})},wt=(Ge,ct,Xe,Rt)=>{if(ct&&typeof ct=="object"||typeof ct=="function")for(let Tt of Bt(ct))!Kt.call(Ge,Tt)&&Tt!==Xe&&St(Ge,Tt,{get:()=>ct[Tt],enumerable:!(Rt=Vt(ct,Tt))||Rt.enumerable});return Ge},At=(Ge,ct,Xe)=>(wt(Ge,ct,"default"),Xe&&wt(Xe,ct,"default")),It=(Ge,ct,Xe)=>(Xe=Ge!=null?be(Ht(Ge)):{},wt(ct||!Ge||!Ge.__esModule?St(Xe,"default",{value:Ge,enumerable:!0}):Xe,Ge)),Mt=Ge=>wt(St({},"__esModule",{value:!0}),Ge),Wt=bt((Ge,ct)=>{var Xe=It(ze("vs/editor/editor.api"));ct.exports=Xe}),Nt={};Dt(Nt,{cssDefaults:()=>ut,lessDefaults:()=>Ze,scssDefaults:()=>Et});var vt={};At(vt,It(Wt()));var We=class{_onDidChange=new vt.Emitter;_options;_modeConfiguration;_languageId;constructor(Ge,ct,Xe){this._languageId=Ge,this.setOptions(ct),this.setModeConfiguration(Xe)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(Ge){this._options=Ge||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(Ge){this.setOptions(Ge)}setModeConfiguration(Ge){this._modeConfiguration=Ge||Object.create(null),this._onDidChange.fire(this)}},we={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},Ee={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},ut=new We("css",we,Ee),Et=new We("scss",we,Ee),Ze=new We("less",we,Ee);vt.languages.css={cssDefaults:ut,lessDefaults:Ze,scssDefaults:Et};function dt(){return new Promise((Ge,ct)=>{ze(["vs/language/css/cssMode"],Ge,ct)})}return vt.languages.onLanguage("less",()=>{dt().then(Ge=>Ge.setupMode(Ze))}),vt.languages.onLanguage("scss",()=>{dt().then(Ge=>Ge.setupMode(Et))}),vt.languages.onLanguage("css",()=>{dt().then(Ge=>Ge.setupMode(ut))}),Mt(Nt)})();return se});/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.0(9d278685b078158491964f8fd7ac9628fffa0f30) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/define("vs/language/html/monaco.contribution",["require","require","vs/editor/editor.api"],oe=>{var se=(()=>{var be=Object.create,St=Object.defineProperty,Vt=Object.getOwnPropertyDescriptor,Bt=Object.getOwnPropertyNames,Ht=Object.getPrototypeOf,Kt=Object.prototype.hasOwnProperty,ze=(Qe=>typeof oe<"u"?oe:typeof Proxy<"u"?new Proxy(Qe,{get:(st,mt)=>(typeof oe<"u"?oe:st)[mt]}):Qe)(function(Qe){if(typeof oe<"u")return oe.apply(this,arguments);throw new Error('Dynamic require of "'+Qe+'" is not supported')}),bt=(Qe,st)=>()=>(st||Qe((st={exports:{}}).exports,st),st.exports),Dt=(Qe,st)=>{for(var mt in st)St(Qe,mt,{get:st[mt],enumerable:!0})},wt=(Qe,st,mt,Zt)=>{if(st&&typeof st=="object"||typeof st=="function")for(let zt of Bt(st))!Kt.call(Qe,zt)&&zt!==mt&&St(Qe,zt,{get:()=>st[zt],enumerable:!(Zt=Vt(st,zt))||Zt.enumerable});return Qe},At=(Qe,st,mt)=>(wt(Qe,st,"default"),mt&&wt(mt,st,"default")),It=(Qe,st,mt)=>(mt=Qe!=null?be(Ht(Qe)):{},wt(st||!Qe||!Qe.__esModule?St(mt,"default",{value:Qe,enumerable:!0}):mt,Qe)),Mt=Qe=>wt(St({},"__esModule",{value:!0}),Qe),Wt=bt((Qe,st)=>{var mt=It(ze("vs/editor/editor.api"));st.exports=mt}),Nt={};Dt(Nt,{handlebarDefaults:()=>Rt,handlebarLanguageService:()=>Xe,htmlDefaults:()=>ct,htmlLanguageService:()=>Ge,razorDefaults:()=>jt,razorLanguageService:()=>Tt,registerHTMLLanguageService:()=>ot});var vt={};At(vt,It(Wt()));var We=class{_onDidChange=new vt.Emitter;_options;_modeConfiguration;_languageId;constructor(Qe,st,mt){this._languageId=Qe,this.setOptions(st),this.setModeConfiguration(mt)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(Qe){this._options=Qe||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(Qe){this._modeConfiguration=Qe||Object.create(null),this._onDidChange.fire(this)}},we={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},Ee={format:we,suggest:{},data:{useDefaultDataProvider:!0}};function ut(Qe){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:Qe===Et,documentFormattingEdits:Qe===Et,documentRangeFormattingEdits:Qe===Et}}var Et="html",Ze="handlebars",dt="razor",Ge=ot(Et,Ee,ut(Et)),ct=Ge.defaults,Xe=ot(Ze,Ee,ut(Ze)),Rt=Xe.defaults,Tt=ot(dt,Ee,ut(dt)),jt=Tt.defaults;vt.languages.html={htmlDefaults:ct,razorDefaults:jt,handlebarDefaults:Rt,htmlLanguageService:Ge,handlebarLanguageService:Xe,razorLanguageService:Tt,registerHTMLLanguageService:ot};function Fe(){return new Promise((Qe,st)=>{ze(["vs/language/html/htmlMode"],Qe,st)})}function ot(Qe,st=Ee,mt=ut(Qe)){let Zt=new We(Qe,st,mt),zt,ni=vt.languages.onLanguage(Qe,async()=>{zt=(await Fe()).setupMode(Zt)});return{defaults:Zt,dispose(){ni.dispose(),zt?.dispose(),zt=void 0}}}return Mt(Nt)})();return se});/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.0(9d278685b078158491964f8fd7ac9628fffa0f30) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/define("vs/language/json/monaco.contribution",["require","require","vs/editor/editor.api"],oe=>{var se=(()=>{var be=Object.create,St=Object.defineProperty,Vt=Object.getOwnPropertyDescriptor,Bt=Object.getOwnPropertyNames,Ht=Object.getPrototypeOf,Kt=Object.prototype.hasOwnProperty,ze=(Ze=>typeof oe<"u"?oe:typeof Proxy<"u"?new Proxy(Ze,{get:(dt,Ge)=>(typeof oe<"u"?oe:dt)[Ge]}):Ze)(function(Ze){if(typeof oe<"u")return oe.apply(this,arguments);throw new Error('Dynamic require of "'+Ze+'" is not supported')}),bt=(Ze,dt)=>()=>(dt||Ze((dt={exports:{}}).exports,dt),dt.exports),Dt=(Ze,dt)=>{for(var Ge in dt)St(Ze,Ge,{get:dt[Ge],enumerable:!0})},wt=(Ze,dt,Ge,ct)=>{if(dt&&typeof dt=="object"||typeof dt=="function")for(let Xe of Bt(dt))!Kt.call(Ze,Xe)&&Xe!==Ge&&St(Ze,Xe,{get:()=>dt[Xe],enumerable:!(ct=Vt(dt,Xe))||ct.enumerable});return Ze},At=(Ze,dt,Ge)=>(wt(Ze,dt,"default"),Ge&&wt(Ge,dt,"default")),It=(Ze,dt,Ge)=>(Ge=Ze!=null?be(Ht(Ze)):{},wt(dt||!Ze||!Ze.__esModule?St(Ge,"default",{value:Ze,enumerable:!0}):Ge,Ze)),Mt=Ze=>wt(St({},"__esModule",{value:!0}),Ze),Wt=bt((Ze,dt)=>{var Ge=It(ze("vs/editor/editor.api"));dt.exports=Ge}),Nt={};Dt(Nt,{jsonDefaults:()=>ut});var vt={};At(vt,It(Wt()));var We=class{_onDidChange=new vt.Emitter;_diagnosticsOptions;_modeConfiguration;_languageId;constructor(Ze,dt,Ge){this._languageId=Ze,this.setDiagnosticsOptions(dt),this.setModeConfiguration(Ge)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(Ze){this._diagnosticsOptions=Ze||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(Ze){this._modeConfiguration=Ze||Object.create(null),this._onDidChange.fire(this)}},we={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},Ee={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},ut=new We("json",we,Ee);vt.languages.json={jsonDefaults:ut};function Et(){return new Promise((Ze,dt)=>{ze(["vs/language/json/jsonMode"],Ze,dt)})}return vt.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]}),vt.languages.onLanguage("json",()=>{Et().then(Ze=>Ze.setupMode(ut))}),Mt(Nt)})();return se});/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.0(9d278685b078158491964f8fd7ac9628fffa0f30) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/define("vs/language/typescript/monaco.contribution",["require","require","vs/editor/editor.api"],oe=>{var se=(()=>{var be=Object.create,St=Object.defineProperty,Vt=Object.getOwnPropertyDescriptor,Bt=Object.getOwnPropertyNames,Ht=Object.getPrototypeOf,Kt=Object.prototype.hasOwnProperty,ze=(Fe=>typeof oe<"u"?oe:typeof Proxy<"u"?new Proxy(Fe,{get:(ot,Qe)=>(typeof oe<"u"?oe:ot)[Qe]}):Fe)(function(Fe){if(typeof oe<"u")return oe.apply(this,arguments);throw new Error('Dynamic require of "'+Fe+'" is not supported')}),bt=(Fe,ot)=>()=>(ot||Fe((ot={exports:{}}).exports,ot),ot.exports),Dt=(Fe,ot)=>{for(var Qe in ot)St(Fe,Qe,{get:ot[Qe],enumerable:!0})},wt=(Fe,ot,Qe,st)=>{if(ot&&typeof ot=="object"||typeof ot=="function")for(let mt of Bt(ot))!Kt.call(Fe,mt)&&mt!==Qe&&St(Fe,mt,{get:()=>ot[mt],enumerable:!(st=Vt(ot,mt))||st.enumerable});return Fe},At=(Fe,ot,Qe)=>(wt(Fe,ot,"default"),Qe&&wt(Qe,ot,"default")),It=(Fe,ot,Qe)=>(Qe=Fe!=null?be(Ht(Fe)):{},wt(ot||!Fe||!Fe.__esModule?St(Qe,"default",{value:Fe,enumerable:!0}):Qe,Fe)),Mt=Fe=>wt(St({},"__esModule",{value:!0}),Fe),Wt=bt((Fe,ot)=>{var Qe=It(ze("vs/editor/editor.api"));ot.exports=Qe}),Nt={};Dt(Nt,{JsxEmit:()=>Ee,ModuleKind:()=>we,ModuleResolutionKind:()=>Ze,NewLineKind:()=>ut,ScriptTarget:()=>Et,getJavaScriptWorker:()=>Tt,getTypeScriptWorker:()=>Rt,javascriptDefaults:()=>Xe,typescriptDefaults:()=>ct,typescriptVersion:()=>Ge});var vt="4.5.5",We={};At(We,It(Wt()));var we=(Fe=>(Fe[Fe.None=0]="None",Fe[Fe.CommonJS=1]="CommonJS",Fe[Fe.AMD=2]="AMD",Fe[Fe.UMD=3]="UMD",Fe[Fe.System=4]="System",Fe[Fe.ES2015=5]="ES2015",Fe[Fe.ESNext=99]="ESNext",Fe))(we||{}),Ee=(Fe=>(Fe[Fe.None=0]="None",Fe[Fe.Preserve=1]="Preserve",Fe[Fe.React=2]="React",Fe[Fe.ReactNative=3]="ReactNative",Fe[Fe.ReactJSX=4]="ReactJSX",Fe[Fe.ReactJSXDev=5]="ReactJSXDev",Fe))(Ee||{}),ut=(Fe=>(Fe[Fe.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",Fe[Fe.LineFeed=1]="LineFeed",Fe))(ut||{}),Et=(Fe=>(Fe[Fe.ES3=0]="ES3",Fe[Fe.ES5=1]="ES5",Fe[Fe.ES2015=2]="ES2015",Fe[Fe.ES2016=3]="ES2016",Fe[Fe.ES2017=4]="ES2017",Fe[Fe.ES2018=5]="ES2018",Fe[Fe.ES2019=6]="ES2019",Fe[Fe.ES2020=7]="ES2020",Fe[Fe.ESNext=99]="ESNext",Fe[Fe.JSON=100]="JSON",Fe[Fe.Latest=99]="Latest",Fe))(Et||{}),Ze=(Fe=>(Fe[Fe.Classic=1]="Classic",Fe[Fe.NodeJs=2]="NodeJs",Fe))(Ze||{}),dt=class{_onDidChange=new We.Emitter;_onDidExtraLibsChange=new We.Emitter;_extraLibs;_removedExtraLibs;_eagerModelSync;_compilerOptions;_diagnosticsOptions;_workerOptions;_onDidExtraLibsChangeTimeout;_inlayHintsOptions;constructor(Fe,ot,Qe,st){this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(Fe),this.setDiagnosticsOptions(ot),this.setWorkerOptions(Qe),this.setInlayHintsOptions(st),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(Fe,ot){let Qe;if(typeof ot>"u"?Qe=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:Qe=ot,this._extraLibs[Qe]&&this._extraLibs[Qe].content===Fe)return{dispose:()=>{}};let st=1;return this._removedExtraLibs[Qe]&&(st=this._removedExtraLibs[Qe]+1),this._extraLibs[Qe]&&(st=this._extraLibs[Qe].version+1),this._extraLibs[Qe]={content:Fe,version:st},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let mt=this._extraLibs[Qe];!mt||mt.version===st&&(delete this._extraLibs[Qe],this._removedExtraLibs[Qe]=st,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(Fe){for(let ot in this._extraLibs)this._removedExtraLibs[ot]=this._extraLibs[ot].version;if(this._extraLibs=Object.create(null),Fe&&Fe.length>0)for(let ot of Fe){let Qe=ot.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,st=ot.content,mt=1;this._removedExtraLibs[Qe]&&(mt=this._removedExtraLibs[Qe]+1),this._extraLibs[Qe]={content:st,version:mt}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(Fe){this._compilerOptions=Fe||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(Fe){this._diagnosticsOptions=Fe||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(Fe){this._workerOptions=Fe||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(Fe){this._inlayHintsOptions=Fe||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(Fe){}setEagerModelSync(Fe){this._eagerModelSync=Fe}getEagerModelSync(){return this._eagerModelSync}},Ge=vt,ct=new dt({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{}),Xe=new dt({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{}),Rt=()=>jt().then(Fe=>Fe.getTypeScriptWorker()),Tt=()=>jt().then(Fe=>Fe.getJavaScriptWorker());We.languages.typescript={ModuleKind:we,JsxEmit:Ee,NewLineKind:ut,ScriptTarget:Et,ModuleResolutionKind:Ze,typescriptVersion:Ge,typescriptDefaults:ct,javascriptDefaults:Xe,getTypeScriptWorker:Rt,getJavaScriptWorker:Tt};function jt(){return new Promise((Fe,ot)=>{ze(["vs/language/typescript/tsMode"],Fe,ot)})}return We.languages.onLanguage("typescript",()=>jt().then(Fe=>Fe.setupTypeScript(ct))),We.languages.onLanguage("javascript",()=>jt().then(Fe=>Fe.setupJavaScript(Xe))),Mt(Nt)})();return se}),define("vs/editor/editor.main",["vs/editor/edcore.main","vs/basic-languages/monaco.contribution","vs/language/css/monaco.contribution","vs/language/html/monaco.contribution","vs/language/json/monaco.contribution","vs/language/typescript/monaco.contribution"],function(oe){return oe}); //# sourceMappingURL=editor.main.js.map