mirror of
https://litchi.icu/ngc2207/judge.git
synced 2025-05-18 20:27:42 +00:00
757 lines
2.7 MiB
757 lines
2.7 MiB
/*!-----------------------------------------------------------
|
||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||
* Version: 0.36.1(6c56744c3419458f0dd48864520b759d1a3a1ca8)
|
||
* Released under the MIT license
|
||
* https://github.com/microsoft/vscode/blob/main/LICENSE.txt
|
||
*-----------------------------------------------------------*/(function(){var _=["exports","require","vs/base/common/lifecycle","vs/nls","vs/editor/common/core/range","vs/nls!vs/editor/editor.main","vs/base/common/event","vs/base/browser/dom","vs/platform/instantiation/common/instantiation","vs/base/common/strings","vs/css!vs/editor/editor.main","vs/base/common/async","vs/editor/common/core/position","vs/base/common/errors","vs/editor/browser/editorExtensions","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/platform/theme/common/themeService","vs/editor/common/editorContextKeys","vs/platform/commands/common/commands","vs/editor/common/languages","vs/platform/configuration/common/configuration","vs/platform/actions/common/actions","vs/base/common/codicons","vs/editor/browser/services/codeEditorService","vs/platform/theme/common/colorRegistry","vs/base/common/themables","vs/platform/registry/common/platform","vs/editor/common/languages/languageConfigurationRegistry","vs/base/browser/fastDomNode","vs/base/common/color","vs/editor/common/languages/language","vs/platform/keybinding/common/keybinding","vs/editor/common/model/textModel","vs/editor/common/config/editorOptions","vs/base/common/actions","vs/platform/notification/common/notification","vs/base/browser/keyboardEvent","vs/base/common/resources","vs/base/browser/browser","vs/base/common/objects","vs/editor/common/model","vs/base/common/network","vs/platform/instantiation/common/extensions","vs/platform/opener/common/opener","vs/editor/browser/view/viewPart","vs/base/browser/ui/aria/aria","vs/editor/common/services/model","vs/base/common/iterator","vs/base/common/map","vs/base/browser/touch","vs/platform/contextview/browser/contextView","vs/base/common/keyCodes","vs/base/common/linkedList","vs/base/common/stopwatch","vs/editor/common/services/resolverService","vs/platform/log/common/log","vs/base/common/filters","vs/editor/common/core/editOperation","vs/editor/common/cursorCommon","vs/base/browser/mouseEvent","vs/base/browser/ui/widget","vs/base/browser/ui/actionbar/actionbar","vs/platform/progress/common/progress","vs/editor/common/languages/modesRegistry","vs/editor/common/core/editorColorRegistry","vs/base/common/htmlContent","vs/editor/browser/config/domFontInfo","vs/editor/common/core/cursorColumns","vs/base/browser/event","vs/base/browser/ui/scrollbar/scrollableElement","vs/platform/accessibility/common/accessibility","vs/editor/common/services/languageFeatureDebounce","vs/platform/quickinput/common/quickInput","vs/platform/telemetry/common/telemetry","vs/platform/theme/common/iconRegistry","vs/editor/common/viewModel","vs/editor/common/standaloneStrings","vs/platform/storage/common/storage","vs/base/common/assert","vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/length","vs/editor/common/tokens/lineTokens","vs/base/common/path","vs/platform/markers/common/markers","vs/platform/configuration/common/configurationRegistry","vs/platform/theme/common/theme","vs/base/common/functional","vs/editor/contrib/hover/browser/hoverTypes","vs/editor/contrib/snippet/browser/snippetParser","vs/editor/common/core/stringBuilder","vs/platform/clipboard/common/clipboardService","vs/editor/contrib/editorState/browser/editorState","vs/platform/theme/browser/defaultStyles","vs/base/common/decorators","vs/base/common/lazy","vs/base/common/mime","vs/base/common/severity","vs/editor/common/languages/languageConfiguration","vs/editor/common/textModelEvents","vs/editor/browser/view/dynamicViewOverlay","vs/base/browser/ui/list/listWidget","vs/editor/common/viewLayout/viewLineRenderer","vs/editor/common/services/editorWorker","vs/platform/keybinding/common/keybindingsRegistry","vs/base/common/keybindings","vs/base/common/iconLabels","vs/editor/browser/stableEditorScroll","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/contrib/codeAction/common/types","vs/editor/standalone/common/standaloneTheme","vs/platform/layout/browser/layoutService","vs/editor/contrib/markdownRenderer/browser/markdownRenderer","vs/editor/contrib/suggest/browser/suggest","vs/platform/quickinput/common/quickAccess","vs/editor/contrib/peekView/browser/peekView","vs/base/browser/ui/tree/tree","vs/base/common/buffer","vs/base/browser/dnd","vs/base/common/numbers","vs/base/common/hash","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/base/browser/globalPointerMoveMonitor","vs/base/browser/ui/iconLabel/iconLabels","vs/base/browser/ui/sash/sash","vs/base/browser/ui/toggle/toggle","vs/base/browser/ui/actionbar/actionViewItems","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/contrib/message/browser/messageController","vs/editor/browser/editorDom","vs/platform/actions/browser/menuEntryActionViewItem","vs/editor/browser/widget/embeddedCodeEditorWidget","vs/base/common/idGenerator","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/platform/quickinput/browser/media/quickInput","vs/editor/common/core/textModelDefaults","vs/editor/common/diff/algorithms/diffAlgorithm","vs/editor/common/diff/linesDiffComputer","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/tree/abstractTree","vs/editor/common/config/editorZoom","vs/editor/contrib/gotoSymbol/browser/link/clickLinkGesture","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/contrib/find/browser/findModel","vs/platform/workspace/common/workspace","vs/base/common/ternarySearchTree","vs/base/common/uuid","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/beforeEditPositionMapper","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/highlightedlabel/highlightedLabel","vs/base/browser/ui/iconLabel/iconLabel","vs/base/browser/ui/keybindingLabel/keybindingLabel","vs/base/browser/ui/scrollbar/scrollbarArrow","vs/base/browser/ui/list/listView","vs/base/browser/ui/inputbox/inputBox","vs/base/browser/ui/findinput/findInput","vs/editor/browser/config/tabFocus","vs/editor/browser/controller/textAreaInput","vs/editor/browser/view/viewLayer","vs/editor/common/languages/supports/richEditBrackets","vs/editor/common/viewModelEventDispatcher","vs/editor/contrib/inlineCompletions/browser/inlineCompletionToGhostText","vs/editor/common/config/fontInfo","vs/platform/instantiation/common/descriptors","vs/editor/common/services/markerDecorations","vs/editor/common/services/semanticTokensStyling","vs/platform/audioCues/browser/audioCueService","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/gotoSymbol/browser/goToSymbol","vs/editor/contrib/hover/browser/markdownHoverParticipant","vs/editor/contrib/symbolIcons/browser/symbolIcons","vs/editor/common/services/semanticTokensProviderStyling","vs/editor/contrib/inlineCompletions/browser/inlineSuggestionHintsWidget","vs/editor/contrib/gotoSymbol/browser/goToCommands","vs/editor/contrib/snippet/browser/snippetController2","vs/editor/standalone/browser/standaloneServices","vs/base/browser/performance","vs/base/browser/ui/scrollbar/scrollbarState","vs/base/common/cache","vs/base/common/symbols","vs/css!vs/base/browser/ui/actionbar/actionbar","vs/css!vs/base/browser/ui/dropdown/dropdown","vs/css!vs/base/browser/ui/findinput/findInput","vs/css!vs/base/browser/ui/list/list","vs/css!vs/platform/actionWidget/browser/actionWidget","vs/editor/browser/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/editorFeatures","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/semanticTokens/common/semanticTokensConfig","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/common/ime","vs/base/browser/ui/contextview/contextview","vs/base/browser/ui/countBadge/countBadge","vs/base/browser/ui/iconLabel/iconLabelHover","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/markdownRenderer","vs/base/browser/ui/dropdown/dropdownActionViewItem","vs/base/browser/ui/tree/objectTree","vs/base/common/worker/simpleWorker","vs/editor/browser/config/elementSizeObserver","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/contrib/codelens/browser/codelens","vs/editor/contrib/colorPicker/browser/color","vs/editor/contrib/semanticTokens/common/getSemanticTokens","vs/editor/standalone/common/monarch/monarchLexer","vs/editor/browser/widget/diffNavigator","vs/platform/contextkey/common/contextkeys","vs/platform/keybinding/common/resolvedKeybindingItem","vs/editor/standalone/browser/standaloneLayoutService","vs/platform/quickinput/browser/quickInputUtils","vs/editor/browser/dnd","vs/editor/browser/services/editorWorkerService","vs/editor/contrib/suggest/browser/suggestWidgetDetails","vs/platform/configuration/common/configurationModels","vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode","vs/platform/history/browser/contextScopedHistoryWidget","vs/editor/contrib/suggest/browser/suggestMemory","vs/editor/contrib/format/browser/format","vs/editor/contrib/hover/browser/getHover","vs/editor/contrib/wordOperations/browser/wordOperations","vs/editor/contrib/codeAction/browser/codeActionCommands","vs/editor/browser/viewParts/lines/viewLine","vs/editor/browser/controller/mouseTarget","vs/editor/browser/viewParts/lineNumbers/lineNumbers","vs/editor/contrib/quickAccess/browser/editorNavigationQuickAccess","vs/editor/standalone/browser/standaloneCodeEditorService","vs/editor/standalone/browser/standaloneThemeService","vs/editor/browser/widget/diffEditorWidget","vs/editor/contrib/colorPicker/browser/colorDetector","vs/editor/contrib/find/browser/findController","vs/editor/contrib/folding/browser/folding","vs/editor/contrib/wordHighlighter/browser/highlightDecorations","vs/editor/contrib/gotoError/browser/gotoError","vs/editor/contrib/gotoSymbol/browser/peek/referencesController","vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition","vs/editor/contrib/hover/browser/hover","vs/editor/contrib/inlayHints/browser/inlayHintsLocations","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/comparers","vs/base/common/linkedText","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/selectBox/selectBox","vs/css!vs/base/browser/ui/selectBox/selectBoxCustom","vs/css!vs/base/browser/ui/splitview/splitview","vs/css!vs/base/browser/ui/table/table","vs/css!vs/base/browser/ui/toggle/toggle","vs/css!vs/base/browser/ui/toolbar/toolbar","vs/css!vs/base/browser/ui/tree/media/tree","vs/css!vs/editor/browser/controller/textAreaHandler","vs/css!vs/editor/browser/viewParts/blockDecorations/blockDecorations","vs/css!vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight","vs/css!vs/editor/browser/viewParts/decorations/decorations","vs/css!vs/editor/browser/viewParts/glyphMargin/glyphMargin","vs/css!vs/editor/browser/viewParts/indentGuides/indentGuides","vs/css!vs/editor/browser/viewParts/lineNumbers/lineNumbers","vs/css!vs/editor/browser/viewParts/lines/viewLines","vs/css!vs/editor/browser/viewParts/linesDecorations/linesDecorations","vs/css!vs/editor/browser/viewParts/margin/margin","vs/css!vs/editor/browser/viewParts/marginDecorations/marginDecorations","vs/css!vs/editor/browser/viewParts/minimap/minimap","vs/css!vs/editor/browser/viewParts/overlayWidgets/overlayWidgets","vs/css!vs/editor/browser/viewParts/rulers/rulers","vs/css!vs/editor/browser/viewParts/scrollDecoration/scrollDecoration","vs/css!vs/editor/browser/viewParts/selections/selections","vs/css!vs/editor/browser/viewParts/viewCursors/viewCursors","vs/css!vs/editor/browser/viewParts/whitespace/whitespace","vs/css!vs/editor/browser/widget/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/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/findOptionsWidget","vs/css!vs/editor/contrib/find/browser/findWidget","vs/css!vs/editor/contrib/folding/browser/folding","vs/css!vs/editor/contrib/gotoError/browser/media/gotoErrorWidget","vs/css!vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition","vs/css!vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget","vs/css!vs/editor/contrib/hover/browser/hover","vs/css!vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace","vs/css!vs/editor/contrib/inlineCompletions/browser/ghostText","vs/css!vs/editor/contrib/inlineCompletions/browser/inlineSuggestionHintsWidget","vs/css!vs/editor/contrib/linkedEditing/browser/linkedEditing","vs/css!vs/editor/contrib/links/browser/links","vs/css!vs/editor/contrib/message/browser/messageController","vs/css!vs/editor/contrib/parameterHints/browser/parameterHints","vs/css!vs/editor/contrib/peekView/browser/media/peekViewWidget","vs/css!vs/editor/contrib/rename/browser/renameInputField","vs/css!vs/editor/contrib/snippet/browser/snippetSession","vs/css!vs/editor/contrib/stickyScroll/browser/stickyScroll","vs/css!vs/editor/contrib/suggest/browser/media/suggest","vs/css!vs/editor/contrib/symbolIcons/browser/symbolIcons","vs/css!vs/editor/contrib/unicodeHighlighter/browser/bannerController","vs/css!vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter","vs/css!vs/editor/contrib/wordHighlighter/browser/highlightDecorations","vs/css!vs/editor/contrib/zoneWidget/browser/zoneWidget","vs/css!vs/editor/standalone/browser/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/css!vs/platform/opener/browser/link","vs/css!vs/platform/severityIcon/browser/media/severityIcon","vs/editor/browser/config/charWidthReader","vs/editor/browser/config/migrateOptions","vs/editor/browser/viewParts/lines/domReadingContext","vs/editor/browser/viewParts/lines/rangeUtil","vs/editor/browser/viewParts/minimap/minimapCharRenderer","vs/editor/browser/viewParts/minimap/minimapPreBaked","vs/editor/browser/viewParts/minimap/minimapCharRendererFactory","vs/editor/common/commands/trimTrailingWhitespaceCommand","vs/editor/common/commands/surroundSelectionCommand","vs/editor/common/cursor/cursorContext","vs/editor/common/diff/algorithms/joinSequenceDiffs","vs/editor/common/diff/algorithms/myersDiffAlgorithm","vs/editor/common/diff/algorithms/utils","vs/editor/common/diff/algorithms/dynamicProgrammingDiffing","vs/editor/common/diff/smartLinesDiffComputer","vs/editor/common/diff/standardLinesDiffComputer","vs/editor/common/diff/linesDiffComputers","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/combineTextEditInfos","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/rulers/rulers","vs/editor/browser/viewParts/scrollDecoration/scrollDecoration","vs/editor/browser/viewParts/viewZones/viewZones","vs/editor/common/viewLayout/linePart","vs/editor/common/viewLayout/linesLayout","vs/editor/common/viewLayout/viewLinesViewportData","vs/editor/common/viewModel/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/selectBox/selectBoxCustom","vs/nls!vs/base/browser/ui/toolbar/toolbar","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/browser/dompurify/dompurify","vs/base/browser/ui/dropdown/dropdown","vs/base/browser/ui/button/button","vs/base/browser/ui/list/rowCache","vs/base/browser/ui/progressbar/progressbar","vs/base/browser/ui/selectBox/selectBoxNative","vs/base/browser/ui/scrollbar/horizontalScrollbar","vs/base/browser/ui/scrollbar/verticalScrollbar","vs/base/browser/ui/list/listPaging","vs/base/browser/ui/table/tableWidget","vs/base/browser/ui/selectBox/selectBoxCustom","vs/base/browser/ui/selectBox/selectBox","vs/base/browser/ui/findinput/replaceInput","vs/base/browser/ui/menu/menu","vs/base/browser/ui/toolbar/toolbar","vs/base/browser/ui/tree/dataTree","vs/base/browser/ui/tree/asyncDataTree","vs/base/browser/defaultWorkerFactory","vs/base/parts/storage/common/storage","vs/editor/browser/viewParts/contentWidgets/contentWidgets","vs/editor/browser/widget/codeEditorContributions","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/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/common/viewLayout/viewLineRenderer","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/codeAction","vs/nls!vs/editor/contrib/codeAction/browser/codeActionCommands","vs/nls!vs/editor/contrib/codeAction/browser/codeActionContributions","vs/nls!vs/editor/contrib/codeAction/browser/codeActionMenu","vs/nls!vs/editor/contrib/codeAction/browser/codeActionUi","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/copyPaste/browser/copyPasteController","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/inlineCompletions/browser/inlineSuggestionHintsWidget","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/stickyScroll/browser/stickyScrollActions","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/highlightDecorations","vs/nls!vs/editor/contrib/wordHighlighter/browser/wordHighlighter","vs/nls!vs/editor/contrib/wordOperations/browser/wordOperations","vs/nls!vs/platform/action/common/actionCommonCategories","vs/nls!vs/platform/actionWidget/browser/actionList","vs/nls!vs/platform/actionWidget/browser/actionWidget","vs/nls!vs/platform/actions/browser/menuEntryActionViewItem","vs/nls!vs/platform/actions/browser/toolbar","vs/nls!vs/platform/actions/common/menuService","vs/nls!vs/platform/audioCues/browser/audioCueService","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/quickinput/browser/quickInput","vs/nls!vs/platform/quickinput/browser/quickInputList","vs/nls!vs/platform/quickinput/browser/quickInputUtils","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/action/common/action","vs/platform/action/common/actionCommonCategories","vs/platform/editor/common/editor","vs/platform/extensions/common/extensions","vs/platform/history/browser/historyWidgetKeybindingHint","vs/platform/instantiation/common/graph","vs/editor/browser/widget/workerBasedDocumentDiffProvider","vs/editor/common/services/languageFeaturesService","vs/editor/contrib/inlineCompletions/browser/ghostTextWidget","vs/editor/contrib/links/browser/getLinks","vs/editor/standalone/browser/colorizer","vs/editor/contrib/parameterHints/browser/parameterHintsModel","vs/editor/contrib/suggest/browser/suggestAlternatives","vs/editor/contrib/suggest/browser/wordContextKey","vs/editor/browser/config/editorConfiguration","vs/platform/contextkey/browser/contextKeyService","vs/platform/instantiation/common/instantiationService","vs/platform/keybinding/common/abstractKeybindingService","vs/platform/keybinding/common/baseResolvedKeybinding","vs/editor/contrib/codeAction/browser/lightBulbWidget","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/platform/log/common/logService","vs/editor/contrib/gotoError/browser/markerNavigationService","vs/platform/markers/common/markerService","vs/editor/browser/services/openerService","vs/editor/contrib/documentSymbols/browser/documentSymbols","vs/platform/opener/browser/link","vs/platform/quickinput/browser/pickerQuickAccess","vs/platform/quickinput/browser/quickInputBox","vs/platform/quickinput/browser/quickInputList","vs/platform/quickinput/browser/quickInput","vs/platform/dnd/browser/dnd","vs/editor/browser/services/webWorker","vs/editor/common/cursor/cursor","vs/editor/common/services/getIconClasses","vs/editor/common/services/languagesAssociations","vs/editor/common/services/languagesRegistry","vs/editor/common/services/languageService","vs/editor/contrib/linesOperations/browser/moveLinesCommand","vs/editor/contrib/hover/browser/marginHover","vs/platform/configuration/common/configurations","vs/editor/contrib/stickyScroll/browser/stickyScrollActions","vs/platform/quickinput/browser/helpQuickAccess","vs/editor/standalone/browser/quickAccess/standaloneHelpQuickAccess","vs/platform/quickinput/browser/quickAccess","vs/platform/severityIcon/browser/severityIcon","vs/editor/contrib/codelens/browser/codeLensCache","vs/platform/actions/common/menuService","vs/editor/browser/services/markerDecorations","vs/editor/browser/view/viewController","vs/editor/contrib/anchorSelect/browser/anchorSelect","vs/editor/contrib/caretOperations/browser/caretOperations","vs/editor/contrib/caretOperations/browser/transpose","vs/editor/contrib/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/codeActionKeybindingResolver","vs/editor/contrib/codeAction/browser/codeActionModel","vs/editor/contrib/copyPaste/browser/copyPasteController","vs/editor/contrib/copyPaste/browser/copyPasteContribution","vs/editor/contrib/fontZoom/browser/fontZoom","vs/editor/contrib/format/browser/formatActions","vs/editor/contrib/gotoSymbol/browser/symbolNavigation","vs/editor/contrib/indentation/browser/indentation","vs/editor/contrib/lineSelection/browser/lineSelection","vs/editor/contrib/linesOperations/browser/linesOperations","vs/editor/contrib/longLinesHelper/browser/longLinesHelper","vs/editor/contrib/readOnlyMessage/browser/contribution","vs/editor/contrib/smartSelect/browser/smartSelect","vs/editor/contrib/suggest/browser/suggestInlineCompletions","vs/editor/contrib/suggest/browser/suggestModel","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/platform/actions/browser/toolbar","vs/platform/quickinput/browser/commandsQuickAccess","vs/editor/contrib/quickAccess/browser/commandsQuickAccess","vs/editor/standalone/browser/quickAccess/standaloneCommandsQuickAccess","vs/editor/browser/viewParts/minimap/minimap","vs/editor/contrib/colorPicker/browser/colorPickerWidget","vs/editor/contrib/codeAction/browser/codeActionMenu","vs/editor/contrib/gotoSymbol/browser/peek/referencesTree","vs/platform/actionWidget/browser/actionList","vs/platform/actionWidget/browser/actionWidget","vs/editor/contrib/codeAction/browser/codeActionUi","vs/editor/contrib/codeAction/browser/codeActionContributions","vs/platform/contextview/browser/contextMenuHandler","vs/editor/browser/widget/diffReview","vs/editor/contrib/parameterHints/browser/parameterHintsWidget","vs/editor/contrib/parameterHints/browser/parameterHints","vs/editor/contrib/unicodeHighlighter/browser/bannerController","vs/platform/theme/browser/iconsStyleSheet","vs/editor/browser/controller/mouseHandler","vs/editor/browser/controller/pointerHandler","vs/editor/browser/viewParts/lines/viewLines","vs/editor/browser/services/abstractCodeEditorService","vs/editor/browser/viewParts/editorScrollbar/editorScrollbar","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/viewCursors/viewCursors","vs/editor/browser/viewParts/whitespace/whitespace","vs/editor/browser/view","vs/editor/common/model/bracketPairsTextModelPart/colorizedBracketPairsDecorationProvider","vs/editor/common/services/markerDecorationsService","vs/editor/common/services/semanticTokensStylingService","vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess","vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess","vs/editor/contrib/rename/browser/renameInputField","vs/editor/contrib/rename/browser/rename","vs/editor/contrib/semanticTokens/browser/documentSemanticTokens","vs/editor/contrib/semanticTokens/browser/viewportSemanticTokens","vs/editor/contrib/suggest/browser/suggestWidgetRenderer","vs/editor/standalone/browser/quickAccess/standaloneGotoLineQuickAccess","vs/editor/standalone/browser/quickAccess/standaloneGotoSymbolQuickAccess","vs/editor/standalone/common/themes","vs/editor/standalone/browser/toggleHighContrast/toggleHighContrast","vs/editor/contrib/suggest/browser/suggestWidgetStatus","vs/platform/contextview/browser/contextMenuService","vs/platform/quickinput/browser/quickInputService","vs/editor/standalone/browser/quickInput/standaloneQuickInputService","vs/editor/common/services/modelService","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/hover/browser/contentHover","vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace","vs/editor/contrib/linkedEditing/browser/linkedEditing","vs/editor/contrib/links/browser/links","vs/editor/contrib/stickyScroll/browser/stickyScrollProvider","vs/editor/contrib/suggest/browser/suggestWidget","vs/editor/contrib/multicursor/browser/multicursor","vs/editor/contrib/wordHighlighter/browser/wordHighlighter","vs/editor/contrib/zoneWidget/browser/zoneWidget","vs/editor/contrib/gotoError/browser/gotoErrorWidget","vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget","vs/editor/contrib/hover/browser/markerHoverParticipant","vs/editor/contrib/colorPicker/browser/colorContributions","vs/editor/contrib/inlayHints/browser/inlayHintsHover","vs/editor/contrib/inlayHints/browser/inlayHintsContribution","vs/editor/contrib/stickyScroll/browser/stickyScrollWidget","vs/editor/contrib/stickyScroll/browser/stickyScrollController","vs/editor/contrib/stickyScroll/browser/stickyScrollContribution","vs/editor/standalone/browser/referenceSearch/standaloneReferenceSearch","vs/platform/undoRedo/common/undoRedoService","vs/editor/contrib/dropIntoEditor/browser/dropIntoEditorContribution","vs/editor/contrib/snippet/browser/snippetVariables","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"],ee=function(q){for(var e=[],C=0,N=q.length;C<N;C++)e[C]=_[q[C]];return e};define(_[856],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.load=void 0;function C(S,v,f,g){if(g=g||{},(g["vs/css"]||{}).disabled){f({});return}const t=v.toUrl(S+".css");N(S,t,()=>{f({})},n=>{typeof f.error=="function"&&f.error("Could not find "+t+".")})}e.load=C;function N(S,v,f,g){if(E(S,v)){f();return}I(S,v,f,g)}function E(S,v){const f=document.getElementsByTagName("link");for(let g=0,i=f.length;g<i;g++){const t=f[g].getAttribute("data-name"),n=f[g].getAttribute("href");if(t===S||n===v)return!0}return!1}function I(S,v,f,g){const i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("type","text/css"),i.setAttribute("data-name",S),L(S,i,f,g),i.setAttribute("href",v),(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}function L(S,v,f,g){const i=()=>{v.removeEventListener("load",t),v.removeEventListener("error",n)},t=a=>{i(),f()},n=a=>{i(),g(a)};v.addEventListener("load",t),v.addEventListener("error",n)}});var ye=this&&this.__awaiter||function(q,e,C,N){function E(I){return I instanceof C?I:new C(function(L){L(I)})}return new(C||(C=Promise))(function(I,L){function S(g){try{f(N.next(g))}catch(i){L(i)}}function v(g){try{f(N.throw(g))}catch(i){L(i)}}function f(g){g.done?I(g.value):E(g.value).then(S,v)}f((N=N.apply(q,e||[])).next())})};define(_[3],ee([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 C=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;const N="i-default";function E(a,r){let c;return r.length===0?c=a:c=a.replace(/\{(\d+)\}/g,(d,s)=>{const l=s[0],o=r[l];let u=d;return typeof o=="string"?u=o:(typeof o=="number"||typeof o=="boolean"||o===void 0||o===null)&&(u=String(o)),u}),C&&(c="\uFF3B"+c.replace(/[aouei]/g,"$&$&")+"\uFF3D"),c}function I(a,r){let c=a[r];return c||(c=a["*"],c)?c:null}function L(a){return a.charAt(a.length-1)==="/"?a:a+"/"}function S(a,r,c){return ye(this,void 0,void 0,function*(){const d=L(a)+L(r)+"vscode/"+L(c),s=yield fetch(d);if(s.ok)return yield s.json();throw new Error(`${s.status} - ${s.statusText}`)})}function v(a){return function(r,c){const d=Array.prototype.slice.call(arguments,2);return E(a[r],d)}}function f(a,r,...c){return E(r,c)}e.localize=f;function g(a){}e.getConfiguredDefaultLocale=g;function i(a){C=a}e.setPseudoTranslation=i;function t(a,r){var c;return{localize:v(r[a]),getConfiguredDefaultLocale:(c=r.getConfiguredDefaultLocale)!==null&&c!==void 0?c:d=>{}}}e.create=t;function n(a,r,c,d){var s;const l=(s=d["vs/nls"])!==null&&s!==void 0?s:{};if(!a||a.length===0)return c({localize:f,getConfiguredDefaultLocale:()=>{var m;return(m=l.availableLanguages)===null||m===void 0?void 0:m["*"]}});const o=l.availableLanguages?I(l.availableLanguages,a):null,u=o===null||o===N;let h=".nls";u||(h=h+"."+o);const w=m=>{Array.isArray(m)?m.localize=v(m):m.localize=v(m[a]),m.getConfiguredDefaultLocale=()=>{var p;return(p=l.availableLanguages)===null||p===void 0?void 0:p["*"]},c(m)};typeof l.loadBundle=="function"?l.loadBundle(a,o,(m,p)=>{m?r([a+".nls"],w):w(p)}):l.translationServiceUrl&&!u?ye(this,void 0,void 0,function*(){var m;try{const p=yield S(l.translationServiceUrl,o,a);return w(p)}catch(p){if(!o.includes("-"))return console.error(p),r([a+".nls"],w);try{const b=o.split("-")[0],y=yield S(l.translationServiceUrl,b,a);return(m=l.availableLanguages)!==null&&m!==void 0||(l.availableLanguages={}),l.availableLanguages["*"]=b,w(y)}catch(b){return console.error(b),r([a+".nls"],w)}}}):r([a+h],w,m=>{if(h===".nls"){console.error("Failed trying to load default language strings",m);return}console.error(`Failed to load message bundle for language ${o}. Falling back to the default language:`,m),r([a+".nls"],w)})}e.load=n});/*! @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 ln(q){if(Array.isArray(q)){for(var e=0,C=Array(q.length);e<q.length;e++)C[e]=q[e];return C}else return Array.from(q)}var cn=Object.hasOwnProperty,Si=Object.setPrototypeOf,un=Object.isFrozen,hn=Object.getPrototypeOf,dn=Object.getOwnPropertyDescriptor,gt=Object.freeze,Ct=Object.seal,fn=Object.create,Li=typeof Reflect<"u"&&Reflect,jt=Li.apply,ei=Li.construct;jt||(jt=function(e,C,N){return e.apply(C,N)}),gt||(gt=function(e){return e}),Ct||(Ct=function(e){return e}),ei||(ei=function(e,C){return new(Function.prototype.bind.apply(e,[null].concat(ln(C))))});var gn=mt(Array.prototype.forEach),yi=mt(Array.prototype.pop),Rt=mt(Array.prototype.push),It=mt(String.prototype.toLowerCase),Ei=mt(String.prototype.match),yt=mt(String.prototype.replace),mn=mt(String.prototype.indexOf),pn=mt(String.prototype.trim),wt=mt(RegExp.prototype.test),ki=bn(TypeError);function mt(q){return function(e){for(var C=arguments.length,N=Array(C>1?C-1:0),E=1;E<C;E++)N[E-1]=arguments[E];return jt(q,e,N)}}function bn(q){return function(){for(var e=arguments.length,C=Array(e),N=0;N<e;N++)C[N]=arguments[N];return ei(q,C)}}function _e(q,e){Si&&Si(q,null);for(var C=e.length;C--;){var N=e[C];if(typeof N=="string"){var E=It(N);E!==N&&(un(e)||(e[C]=E),N=E)}q[N]=!0}return q}function Dt(q){var e=fn(null),C=void 0;for(C in q)jt(cn,q,[C])&&(e[C]=q[C]);return e}function qt(q,e){for(;q!==null;){var C=dn(q,e);if(C){if(C.get)return mt(C.get);if(typeof C.value=="function")return mt(C.value)}q=hn(q)}function N(E){return console.warn("fallback value for",E),null}return N}var Ii=gt(["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"]),ti=gt(["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"]),ii=gt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),vn=gt(["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"]),ni=gt(["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"]),Cn=gt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Di=gt(["#text"]),Ni=gt(["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"]),si=gt(["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"]),Ti=gt(["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"]),Ut=gt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),wn=Ct(/\{\{[\s\S]*|[\s\S]*\}\}/gm),Sn=Ct(/<%[\s\S]*|[\s\S]*%>/gm),Ln=Ct(/^data-[\-\w.\u00B7-\uFFFF]/),yn=Ct(/^aria-[\-\w]+$/),En=Ct(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),kn=Ct(/^(?:\w+script|data):/i),In=Ct(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ft=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 pt(q){if(Array.isArray(q)){for(var e=0,C=Array(q.length);e<q.length;e++)C[e]=q[e];return C}else return Array.from(q)}var Dn=function(){return typeof window>"u"?null:window},Nn=function(e,C){if((typeof e>"u"?"undefined":Ft(e))!=="object"||typeof e.createPolicy!="function")return null;var N=null,E="data-tt-policy-suffix";C.currentScript&&C.currentScript.hasAttribute(E)&&(N=C.currentScript.getAttribute(E));var I="dompurify"+(N?"#"+N:"");try{return e.createPolicy(I,{createHTML:function(S){return S}})}catch{return console.warn("TrustedTypes policy "+I+" could not be created."),null}};function Mi(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Dn(),e=function(Te){return Mi(Te)};if(e.version="2.3.1",e.removed=[],!q||!q.document||q.document.nodeType!==9)return e.isSupported=!1,e;var C=q.document,N=q.document,E=q.DocumentFragment,I=q.HTMLTemplateElement,L=q.Node,S=q.Element,v=q.NodeFilter,f=q.NamedNodeMap,g=f===void 0?q.NamedNodeMap||q.MozNamedAttrMap:f,i=q.Text,t=q.Comment,n=q.DOMParser,a=q.trustedTypes,r=S.prototype,c=qt(r,"cloneNode"),d=qt(r,"nextSibling"),s=qt(r,"childNodes"),l=qt(r,"parentNode");if(typeof I=="function"){var o=N.createElement("template");o.content&&o.content.ownerDocument&&(N=o.content.ownerDocument)}var u=Nn(a,C),h=u&&K?u.createHTML(""):"",w=N,m=w.implementation,p=w.createNodeIterator,b=w.createDocumentFragment,y=w.getElementsByTagName,k=C.importNode,D={};try{D=Dt(N).documentMode?N.documentMode:{}}catch{}var M={};e.isSupported=typeof l=="function"&&m&&typeof m.createHTMLDocument<"u"&&D!==9;var z=wn,R=Sn,P=Ln,A=yn,T=kn,O=In,B=En,W=null,j=_e({},[].concat(pt(Ii),pt(ti),pt(ii),pt(ni),pt(Di))),F=null,U=_e({},[].concat(pt(Ni),pt(si),pt(Ti),pt(Ut))),Q=null,se=null,he=!0,ie=!0,ue=!1,J=!1,x=!1,G=!1,te=!1,Z=!1,ae=!1,de=!0,K=!1,Y=!0,ne=!0,V=!1,H={},$=null,oe=_e({},["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"]),re=null,X=_e({},["audio","video","img","source","image","track"]),le=null,me=_e({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),we="http://www.w3.org/1998/Math/MathML",Le="http://www.w3.org/2000/svg",Ee="http://www.w3.org/1999/xhtml",Me=Ee,Ae=!1,ke=null,fe=N.createElement("form"),pe=function(Te){ke&&ke===Te||((!Te||(typeof Te>"u"?"undefined":Ft(Te))!=="object")&&(Te={}),Te=Dt(Te),W="ALLOWED_TAGS"in Te?_e({},Te.ALLOWED_TAGS):j,F="ALLOWED_ATTR"in Te?_e({},Te.ALLOWED_ATTR):U,le="ADD_URI_SAFE_ATTR"in Te?_e(Dt(me),Te.ADD_URI_SAFE_ATTR):me,re="ADD_DATA_URI_TAGS"in Te?_e(Dt(X),Te.ADD_DATA_URI_TAGS):X,$="FORBID_CONTENTS"in Te?_e({},Te.FORBID_CONTENTS):oe,Q="FORBID_TAGS"in Te?_e({},Te.FORBID_TAGS):{},se="FORBID_ATTR"in Te?_e({},Te.FORBID_ATTR):{},H="USE_PROFILES"in Te?Te.USE_PROFILES:!1,he=Te.ALLOW_ARIA_ATTR!==!1,ie=Te.ALLOW_DATA_ATTR!==!1,ue=Te.ALLOW_UNKNOWN_PROTOCOLS||!1,J=Te.SAFE_FOR_TEMPLATES||!1,x=Te.WHOLE_DOCUMENT||!1,Z=Te.RETURN_DOM||!1,ae=Te.RETURN_DOM_FRAGMENT||!1,de=Te.RETURN_DOM_IMPORT!==!1,K=Te.RETURN_TRUSTED_TYPE||!1,te=Te.FORCE_BODY||!1,Y=Te.SANITIZE_DOM!==!1,ne=Te.KEEP_CONTENT!==!1,V=Te.IN_PLACE||!1,B=Te.ALLOWED_URI_REGEXP||B,Me=Te.NAMESPACE||Ee,J&&(ie=!1),ae&&(Z=!0),H&&(W=_e({},[].concat(pt(Di))),F=[],H.html===!0&&(_e(W,Ii),_e(F,Ni)),H.svg===!0&&(_e(W,ti),_e(F,si),_e(F,Ut)),H.svgFilters===!0&&(_e(W,ii),_e(F,si),_e(F,Ut)),H.mathMl===!0&&(_e(W,ni),_e(F,Ti),_e(F,Ut))),Te.ADD_TAGS&&(W===j&&(W=Dt(W)),_e(W,Te.ADD_TAGS)),Te.ADD_ATTR&&(F===U&&(F=Dt(F)),_e(F,Te.ADD_ATTR)),Te.ADD_URI_SAFE_ATTR&&_e(le,Te.ADD_URI_SAFE_ATTR),Te.FORBID_CONTENTS&&($===oe&&($=Dt($)),_e($,Te.FORBID_CONTENTS)),ne&&(W["#text"]=!0),x&&_e(W,["html","head","body"]),W.table&&(_e(W,["tbody"]),delete Q.tbody),gt&>(Te),ke=Te)},ce=_e({},["mi","mo","mn","ms","mtext"]),be=_e({},["foreignobject","desc","title","annotation-xml"]),Se=_e({},ti);_e(Se,ii),_e(Se,vn);var Ie=_e({},ni);_e(Ie,Cn);var Ce=function(Te){var ze=l(Te);(!ze||!ze.tagName)&&(ze={namespaceURI:Ee,tagName:"template"});var Ve=It(Te.tagName),Ge=It(ze.tagName);if(Te.namespaceURI===Le)return ze.namespaceURI===Ee?Ve==="svg":ze.namespaceURI===we?Ve==="svg"&&(Ge==="annotation-xml"||ce[Ge]):Boolean(Se[Ve]);if(Te.namespaceURI===we)return ze.namespaceURI===Ee?Ve==="math":ze.namespaceURI===Le?Ve==="math"&&be[Ge]:Boolean(Ie[Ve]);if(Te.namespaceURI===Ee){if(ze.namespaceURI===Le&&!be[Ge]||ze.namespaceURI===we&&!ce[Ge])return!1;var qe=_e({},["title","style","font","a","script"]);return!Ie[Ve]&&(qe[Ve]||!Se[Ve])}return!1},ve=function(Te){Rt(e.removed,{element:Te});try{Te.parentNode.removeChild(Te)}catch{try{Te.outerHTML=h}catch{Te.remove()}}},De=function(Te,ze){try{Rt(e.removed,{attribute:ze.getAttributeNode(Te),from:ze})}catch{Rt(e.removed,{attribute:null,from:ze})}if(ze.removeAttribute(Te),Te==="is"&&!F[Te])if(Z||ae)try{ve(ze)}catch{}else try{ze.setAttribute(Te,"")}catch{}},Oe=function(Te){var ze=void 0,Ve=void 0;if(te)Te="<remove></remove>"+Te;else{var Ge=Ei(Te,/^[\r\n\t ]+/);Ve=Ge&&Ge[0]}var qe=u?u.createHTML(Te):Te;if(Me===Ee)try{ze=new n().parseFromString(qe,"text/html")}catch{}if(!ze||!ze.documentElement){ze=m.createDocument(Me,"template",null);try{ze.documentElement.innerHTML=Ae?"":qe}catch{}}var Ze=ze.body||ze.documentElement;return Te&&Ve&&Ze.insertBefore(N.createTextNode(Ve),Ze.childNodes[0]||null),Me===Ee?y.call(ze,x?"html":"body")[0]:x?ze.documentElement:Ze},Re=function(Te){return p.call(Te.ownerDocument||Te,Te,v.SHOW_ELEMENT|v.SHOW_COMMENT|v.SHOW_TEXT,null,!1)},xe=function(Te){return Te instanceof i||Te instanceof t?!1:typeof Te.nodeName!="string"||typeof Te.textContent!="string"||typeof Te.removeChild!="function"||!(Te.attributes instanceof g)||typeof Te.removeAttribute!="function"||typeof Te.setAttribute!="function"||typeof Te.namespaceURI!="string"||typeof Te.insertBefore!="function"},Fe=function(Te){return(typeof L>"u"?"undefined":Ft(L))==="object"?Te instanceof L:Te&&(typeof Te>"u"?"undefined":Ft(Te))==="object"&&typeof Te.nodeType=="number"&&typeof Te.nodeName=="string"},Be=function(Te,ze,Ve){!M[Te]||gn(M[Te],function(Ge){Ge.call(e,ze,Ve,ke)})},Ke=function(Te){var ze=void 0;if(Be("beforeSanitizeElements",Te,null),xe(Te)||Ei(Te.nodeName,/[\u0080-\uFFFF]/))return ve(Te),!0;var Ve=It(Te.nodeName);if(Be("uponSanitizeElement",Te,{tagName:Ve,allowedTags:W}),!Fe(Te.firstElementChild)&&(!Fe(Te.content)||!Fe(Te.content.firstElementChild))&&wt(/<[/\w]/g,Te.innerHTML)&&wt(/<[/\w]/g,Te.textContent)||Ve==="select"&&wt(/<template/i,Te.innerHTML))return ve(Te),!0;if(!W[Ve]||Q[Ve]){if(ne&&!$[Ve]){var Ge=l(Te)||Te.parentNode,qe=s(Te)||Te.childNodes;if(qe&&Ge)for(var Ze=qe.length,Je=Ze-1;Je>=0;--Je)Ge.insertBefore(c(qe[Je],!0),d(Te))}return ve(Te),!0}return Te instanceof S&&!Ce(Te)||(Ve==="noscript"||Ve==="noembed")&&wt(/<\/no(script|embed)/i,Te.innerHTML)?(ve(Te),!0):(J&&Te.nodeType===3&&(ze=Te.textContent,ze=yt(ze,z," "),ze=yt(ze,R," "),Te.textContent!==ze&&(Rt(e.removed,{element:Te.cloneNode()}),Te.textContent=ze)),Be("afterSanitizeElements",Te,null),!1)},$e=function(Te,ze,Ve){if(Y&&(ze==="id"||ze==="name")&&(Ve in N||Ve in fe))return!1;if(!(ie&&!se[ze]&&wt(P,ze))){if(!(he&&wt(A,ze))){if(!F[ze]||se[ze])return!1;if(!le[ze]){if(!wt(B,yt(Ve,O,""))){if(!((ze==="src"||ze==="xlink:href"||ze==="href")&&Te!=="script"&&mn(Ve,"data:")===0&&re[Te])){if(!(ue&&!wt(T,yt(Ve,O,"")))){if(Ve)return!1}}}}}}return!0},nt=function(Te){var ze=void 0,Ve=void 0,Ge=void 0,qe=void 0;Be("beforeSanitizeAttributes",Te,null);var Ze=Te.attributes;if(!!Ze){var Je={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F};for(qe=Ze.length;qe--;){ze=Ze[qe];var it=ze,ct=it.name,Ye=it.namespaceURI;if(Ve=pn(ze.value),Ge=It(ct),Je.attrName=Ge,Je.attrValue=Ve,Je.keepAttr=!0,Je.forceKeepAttr=void 0,Be("uponSanitizeAttribute",Te,Je),Ve=Je.attrValue,!Je.forceKeepAttr&&(De(ct,Te),!!Je.keepAttr)){if(wt(/\/>/i,Ve)){De(ct,Te);continue}J&&(Ve=yt(Ve,z," "),Ve=yt(Ve,R," "));var at=Te.nodeName.toLowerCase();if(!!$e(at,Ge,Ve))try{Ye?Te.setAttributeNS(Ye,ct,Ve):Te.setAttribute(ct,Ve),yi(e.removed)}catch{}}}Be("afterSanitizeAttributes",Te,null)}},lt=function He(Te){var ze=void 0,Ve=Re(Te);for(Be("beforeSanitizeShadowDOM",Te,null);ze=Ve.nextNode();)Be("uponSanitizeShadowNode",ze,null),!Ke(ze)&&(ze.content instanceof E&&He(ze.content),nt(ze));Be("afterSanitizeShadowDOM",Te,null)};return e.sanitize=function(He,Te){var ze=void 0,Ve=void 0,Ge=void 0,qe=void 0,Ze=void 0;if(Ae=!He,Ae&&(He="<!-->"),typeof He!="string"&&!Fe(He)){if(typeof He.toString!="function")throw ki("toString is not a function");if(He=He.toString(),typeof He!="string")throw ki("dirty is not a string, aborting")}if(!e.isSupported){if(Ft(q.toStaticHTML)==="object"||typeof q.toStaticHTML=="function"){if(typeof He=="string")return q.toStaticHTML(He);if(Fe(He))return q.toStaticHTML(He.outerHTML)}return He}if(G||pe(Te),e.removed=[],typeof He=="string"&&(V=!1),!V)if(He instanceof L)ze=Oe("<!---->"),Ve=ze.ownerDocument.importNode(He,!0),Ve.nodeType===1&&Ve.nodeName==="BODY"||Ve.nodeName==="HTML"?ze=Ve:ze.appendChild(Ve);else{if(!Z&&!J&&!x&&He.indexOf("<")===-1)return u&&K?u.createHTML(He):He;if(ze=Oe(He),!ze)return Z?null:h}ze&&te&&ve(ze.firstChild);for(var Je=Re(V?He:ze);Ge=Je.nextNode();)Ge.nodeType===3&&Ge===qe||Ke(Ge)||(Ge.content instanceof E&<(Ge.content),nt(Ge),qe=Ge);if(qe=null,V)return He;if(Z){if(ae)for(Ze=b.call(ze.ownerDocument);ze.firstChild;)Ze.appendChild(ze.firstChild);else Ze=ze;return de&&(Ze=k.call(C,Ze,!0)),Ze}var it=x?ze.outerHTML:ze.innerHTML;return J&&(it=yt(it,z," "),it=yt(it,R," ")),u&&K?u.createHTML(it):it},e.setConfig=function(He){pe(He),G=!0},e.clearConfig=function(){ke=null,G=!1},e.isValidAttribute=function(He,Te,ze){ke||pe({});var Ve=It(He),Ge=It(Te);return $e(Ve,Ge,ze)},e.addHook=function(He,Te){typeof Te=="function"&&(M[He]=M[He]||[],Rt(M[He],Te))},e.removeHook=function(He){M[He]&&yi(M[He])},e.removeHooks=function(He){M[He]&&(M[He]=[])},e.removeAllHooks=function(){M={}},e}var Tn=Mi();define("vs/base/browser/dompurify/dompurify",function(){return Tn}),define(_[35],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createFastDomNode=e.FastDomNode=void 0;class C{constructor(L){this.domNode=L,this.a="",this.b="",this.c="",this.d="",this.e="",this.f="",this.g="",this.h="",this.i="",this.j="",this.k="",this.l="",this.m="",this.n="",this.o="",this.p="",this.q="",this.r="",this.s="",this.t="",this.u="",this.v="",this.w="",this.x=!1,this.y="none",this.z=""}setMaxWidth(L){const S=N(L);this.a!==S&&(this.a=S,this.domNode.style.maxWidth=this.a)}setWidth(L){const S=N(L);this.b!==S&&(this.b=S,this.domNode.style.width=this.b)}setHeight(L){const S=N(L);this.c!==S&&(this.c=S,this.domNode.style.height=this.c)}setTop(L){const S=N(L);this.d!==S&&(this.d=S,this.domNode.style.top=this.d)}setLeft(L){const S=N(L);this.e!==S&&(this.e=S,this.domNode.style.left=this.e)}setBottom(L){const S=N(L);this.f!==S&&(this.f=S,this.domNode.style.bottom=this.f)}setRight(L){const S=N(L);this.g!==S&&(this.g=S,this.domNode.style.right=this.g)}setPaddingLeft(L){const S=N(L);this.h!==S&&(this.h=S,this.domNode.style.paddingLeft=this.h)}setFontFamily(L){this.i!==L&&(this.i=L,this.domNode.style.fontFamily=this.i)}setFontWeight(L){this.j!==L&&(this.j=L,this.domNode.style.fontWeight=this.j)}setFontSize(L){const S=N(L);this.k!==S&&(this.k=S,this.domNode.style.fontSize=this.k)}setFontStyle(L){this.l!==L&&(this.l=L,this.domNode.style.fontStyle=this.l)}setFontFeatureSettings(L){this.m!==L&&(this.m=L,this.domNode.style.fontFeatureSettings=this.m)}setFontVariationSettings(L){this.n!==L&&(this.n=L,this.domNode.style.fontVariationSettings=this.n)}setTextDecoration(L){this.o!==L&&(this.o=L,this.domNode.style.textDecoration=this.o)}setLineHeight(L){const S=N(L);this.p!==S&&(this.p=S,this.domNode.style.lineHeight=this.p)}setLetterSpacing(L){const S=N(L);this.q!==S&&(this.q=S,this.domNode.style.letterSpacing=this.q)}setClassName(L){this.r!==L&&(this.r=L,this.domNode.className=this.r)}toggleClassName(L,S){this.domNode.classList.toggle(L,S),this.r=this.domNode.className}setDisplay(L){this.s!==L&&(this.s=L,this.domNode.style.display=this.s)}setPosition(L){this.t!==L&&(this.t=L,this.domNode.style.position=this.t)}setVisibility(L){this.u!==L&&(this.u=L,this.domNode.style.visibility=this.u)}setColor(L){this.v!==L&&(this.v=L,this.domNode.style.color=this.v)}setBackgroundColor(L){this.w!==L&&(this.w=L,this.domNode.style.backgroundColor=this.w)}setLayerHinting(L){this.x!==L&&(this.x=L,this.domNode.style.transform=this.x?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(L){this.z!==L&&(this.z=L,this.domNode.style.boxShadow=L)}setContain(L){this.y!==L&&(this.y=L,this.domNode.style.contain=this.y)}setAttribute(L,S){this.domNode.setAttribute(L,S)}removeAttribute(L){this.domNode.removeAttribute(L)}appendChild(L){this.domNode.appendChild(L.domNode)}removeChild(L){this.domNode.removeChild(L.domNode)}}e.FastDomNode=C;function N(I){return typeof I=="number"?`${I}px`:I}function E(I){return new C(I)}e.createFastDomNode=E}),define(_[339],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IframeUtils=void 0;let C=!1,N=null;function E(L){if(!L.parent||L.parent===L)return null;try{const S=L.location,v=L.parent.location;if(S.origin!=="null"&&v.origin!=="null"&&S.origin!==v.origin)return C=!0,null}catch{return C=!0,null}return L.parent}class I{static getSameOriginWindowChain(){if(!N){N=[];let S=window,v;do v=E(S),v?N.push({window:S,iframeElement:S.frameElement||null}):N.push({window:S,iframeElement:null}),S=v;while(S)}return N.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(S,v){if(!v||S===v)return{top:0,left:0};let f=0,g=0;const i=this.getSameOriginWindowChain();for(const t of i){if(f+=t.window.scrollY,g+=t.window.scrollX,t.window===v||!t.iframeElement)break;const n=t.iframeElement.getBoundingClientRect();f+=n.top,g+=n.left}return{top:f,left:g}}}e.IframeUtils=I}),define(_[237],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.inputLatency=void 0;var C;(function(N){const E={total:0,min:Number.MAX_VALUE,max:0},I=Object.assign({},E),L=Object.assign({},E),S=Object.assign({},E);let v=0;const f={keydown:0,input:0,render:0};function g(){o(),performance.mark("inputlatency/start"),performance.mark("keydown/start"),f.keydown=1,queueMicrotask(i)}N.onKeyDown=g;function i(){f.keydown===1&&(performance.mark("keydown/end"),f.keydown=2)}function t(){performance.mark("input/start"),f.input=1,l()}N.onBeforeInput=t;function n(){f.input===0&&t(),queueMicrotask(a)}N.onInput=n;function a(){f.input===1&&(performance.mark("input/end"),f.input=2)}function r(){o()}N.onKeyUp=r;function c(){o()}N.onSelectionChange=c;function d(){f.keydown===2&&f.input===2&&f.render===0&&(performance.mark("render/start"),f.render=1,queueMicrotask(s),l())}N.onRenderStart=d;function s(){f.render===1&&(performance.mark("render/end"),f.render=2)}function l(){setTimeout(o)}function o(){f.keydown===2&&f.input===2&&f.render===2&&(performance.mark("inputlatency/end"),performance.measure("keydown","keydown/start","keydown/end"),performance.measure("input","input/start","input/end"),performance.measure("render","render/start","render/end"),performance.measure("inputlatency","inputlatency/start","inputlatency/end"),u("keydown",E),u("input",I),u("render",L),u("inputlatency",S),v++,h())}function u(b,y){const k=performance.getEntriesByName(b)[0].duration;y.total+=k,y.min=Math.min(y.min,k),y.max=Math.max(y.max,k)}function h(){performance.clearMarks("keydown/start"),performance.clearMarks("keydown/end"),performance.clearMarks("input/start"),performance.clearMarks("input/end"),performance.clearMarks("render/start"),performance.clearMarks("render/end"),performance.clearMarks("inputlatency/start"),performance.clearMarks("inputlatency/end"),performance.clearMeasures("keydown"),performance.clearMeasures("input"),performance.clearMeasures("render"),performance.clearMeasures("inputlatency"),f.keydown=0,f.input=0,f.render=0}function w(){if(v===0)return;const b={keydown:m(E),input:m(I),render:m(L),total:m(S),sampleCount:v};return p(E),p(I),p(L),p(S),v=0,b}N.getAndClearMeasurements=w;function m(b){return{average:b.total/v,max:b.max,min:b.min}}function p(b){b.total=0,b.min=Number.MAX_VALUE,b.max=0}})(C=e.inputLatency||(e.inputLatency={}))}),define(_[340],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ListError=void 0;class C extends Error{constructor(E,I){super(`ListError [${E}] ${I}`)}}e.ListError=C}),define(_[341],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CombinedSpliceable=void 0;class C{constructor(E){this.a=E}splice(E,I,L){this.a.forEach(S=>S.splice(E,I,L))}}e.CombinedSpliceable=C}),define(_[238],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ScrollbarState=void 0;const C=20;class N{constructor(I,L,S,v,f,g){this.a=Math.round(L),this.b=Math.round(S),this.c=Math.round(I),this.d=v,this.e=f,this.f=g,this.g=0,this.h=!1,this.i=0,this.j=0,this.k=0,this.m()}clone(){return new N(this.c,this.a,this.b,this.d,this.e,this.f)}setVisibleSize(I){const L=Math.round(I);return this.d!==L?(this.d=L,this.m(),!0):!1}setScrollSize(I){const L=Math.round(I);return this.e!==L?(this.e=L,this.m(),!0):!1}setScrollPosition(I){const L=Math.round(I);return this.f!==L?(this.f=L,this.m(),!0):!1}setScrollbarSize(I){this.a=Math.round(I)}setOppositeScrollbarSize(I){this.b=Math.round(I)}static l(I,L,S,v,f){const g=Math.max(0,S-I),i=Math.max(0,g-2*L),t=v>0&&v>S;if(!t)return{computedAvailableSize:Math.round(g),computedIsNeeded:t,computedSliderSize:Math.round(i),computedSliderRatio:0,computedSliderPosition:0};const n=Math.round(Math.max(C,Math.floor(S*i/v))),a=(i-n)/(v-S),r=f*a;return{computedAvailableSize:Math.round(g),computedIsNeeded:t,computedSliderSize:Math.round(n),computedSliderRatio:a,computedSliderPosition:Math.round(r)}}m(){const I=N.l(this.b,this.c,this.d,this.e,this.f);this.g=I.computedAvailableSize,this.h=I.computedIsNeeded,this.i=I.computedSliderSize,this.j=I.computedSliderRatio,this.k=I.computedSliderPosition}getArrowSize(){return this.c}getScrollPosition(){return this.f}getRectangleLargeSize(){return this.g}getRectangleSmallSize(){return this.a}isNeeded(){return this.h}getSliderSize(){return this.i}getSliderPosition(){return this.k}getDesiredScrollPositionFromOffset(I){if(!this.h)return 0;const L=I-this.c-this.i/2;return Math.round(L/this.j)}getDesiredScrollPositionFromOffsetPaged(I){if(!this.h)return 0;const L=I-this.c;let S=this.f;return L<this.k?S-=this.d:S+=this.d,S}getDesiredScrollPositionFromDelta(I){if(!this.h)return 0;const L=this.k+I;return Math.round(L/this.j)}}e.ScrollbarState=N}),define(_[125],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WeakMapper=e.TreeError=e.TreeMouseEventTarget=void 0;var C;(function(I){I[I.Unknown=0]="Unknown",I[I.Twistie=1]="Twistie",I[I.Element=2]="Element",I[I.Filter=3]="Filter"})(C=e.TreeMouseEventTarget||(e.TreeMouseEventTarget={}));class N extends Error{constructor(L,S){super(`TreeError [${L}] ${S}`)}}e.TreeError=N;class E{constructor(L){this.a=L,this.b=new WeakMap}map(L){let S=this.b.get(L);return S||(S=this.a(L),this.b.set(L,S)),S}}e.WeakMapper=E}),define(_[17],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CallbackIterable=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.coalesceInPlace=e.coalesce=e.groupBy=e.quickSelect=e.findFirstInSorted=e.binarySearch2=e.binarySearch=e.removeFastWithoutKeepingOrder=e.equals=e.tail2=e.tail=void 0;function C(O,B=0){return O[O.length-(1+B)]}e.tail=C;function N(O){if(O.length===0)throw new Error("Invalid tail call");return[O.slice(0,O.length-1),O[O.length-1]]}e.tail2=N;function E(O,B,W=(j,F)=>j===F){if(O===B)return!0;if(!O||!B||O.length!==B.length)return!1;for(let j=0,F=O.length;j<F;j++)if(!W(O[j],B[j]))return!1;return!0}e.equals=E;function I(O,B){const W=O.length-1;B<W&&(O[B]=O[W]),O.pop()}e.removeFastWithoutKeepingOrder=I;function L(O,B,W){return S(O.length,j=>W(O[j],B))}e.binarySearch=L;function S(O,B){let W=0,j=O-1;for(;W<=j;){const F=(W+j)/2|0,U=B(F);if(U<0)W=F+1;else if(U>0)j=F-1;else return F}return-(W+1)}e.binarySearch2=S;function v(O,B){let W=0,j=O.length;if(j===0)return 0;for(;W<j;){const F=Math.floor((W+j)/2);B(O[F])?j=F:W=F+1}return W}e.findFirstInSorted=v;function f(O,B,W){if(O=O|0,O>=B.length)throw new TypeError("invalid index");const j=B[Math.floor(B.length*Math.random())],F=[],U=[],Q=[];for(const se of B){const he=W(se,j);he<0?F.push(se):he>0?U.push(se):Q.push(se)}return O<F.length?f(O,F,W):O<F.length+Q.length?Q[0]:f(O-(F.length+Q.length),U,W)}e.quickSelect=f;function g(O,B){const W=[];let j;for(const F of O.slice(0).sort(B))!j||B(j[0],F)!==0?(j=[F],W.push(j)):j.push(F);return W}e.groupBy=g;function i(O){return O.filter(B=>!!B)}e.coalesce=i;function t(O){let B=0;for(let W=0;W<O.length;W++)O[W]&&(O[B]=O[W],B+=1);O.length=B}e.coalesceInPlace=t;function n(O){return!Array.isArray(O)||O.length===0}e.isFalsyOrEmpty=n;function a(O){return Array.isArray(O)&&O.length>0}e.isNonEmptyArray=a;function r(O,B=W=>W){const W=new Set;return O.filter(j=>{const F=B(j);return W.has(F)?!1:(W.add(F),!0)})}e.distinct=r;function c(O,B){const W=d(O,B);if(W!==-1)return O[W]}e.findLast=c;function d(O,B){for(let W=O.length-1;W>=0;W--){const j=O[W];if(B(j))return W}return-1}e.lastIndex=d;function s(O,B){return O.length>0?O[0]:B}e.firstOrDefault=s;function l(O,B){let W=typeof B=="number"?O:0;typeof B=="number"?W=O:(W=0,B=O);const j=[];if(W<=B)for(let F=W;F<B;F++)j.push(F);else for(let F=W;F>B;F--)j.push(F);return j}e.range=l;function o(O,B,W){const j=O.slice(0,B),F=O.slice(B);return j.concat(W,F)}e.arrayInsert=o;function u(O,B){const W=O.indexOf(B);W>-1&&(O.splice(W,1),O.unshift(B))}e.pushToStart=u;function h(O,B){const W=O.indexOf(B);W>-1&&(O.splice(W,1),O.push(B))}e.pushToEnd=h;function w(O,B){for(const W of B)O.push(W)}e.pushMany=w;function m(O){return Array.isArray(O)?O:[O]}e.asArray=m;function p(O,B,W){const j=y(O,B),F=O.length,U=W.length;O.length=F+U;for(let Q=F-1;Q>=j;Q--)O[Q+U]=O[Q];for(let Q=0;Q<U;Q++)O[Q+j]=W[Q]}e.insertInto=p;function b(O,B,W,j){const F=y(O,B),U=O.splice(F,W);return p(O,F,j),U}e.splice=b;function y(O,B){return B<0?Math.max(B+O.length,0):Math.min(B,O.length)}var k;(function(O){function B(F){return F<0}O.isLessThan=B;function W(F){return F>0}O.isGreaterThan=W;function j(F){return F===0}O.isNeitherLessOrGreaterThan=j,O.greaterThan=1,O.lessThan=-1,O.neitherLessOrGreaterThan=0})(k=e.CompareResult||(e.CompareResult={}));function D(O,B){return(W,j)=>B(O(W),O(j))}e.compareBy=D;const M=(O,B)=>O-B;e.numberComparator=M;function z(O,B){if(O.length===0)return;let W=O[0];for(let j=1;j<O.length;j++){const F=O[j];B(F,W)>0&&(W=F)}return W}e.findMaxBy=z;function R(O,B){if(O.length===0)return;let W=O[0];for(let j=1;j<O.length;j++){const F=O[j];B(F,W)>=0&&(W=F)}return W}e.findLastMaxBy=R;function P(O,B){return z(O,(W,j)=>-B(W,j))}e.findMinBy=P;class A{constructor(B){this.f=B,this.c=0,this.d=this.f.length-1}get length(){return this.d-this.c+1}takeWhile(B){let W=this.c;for(;W<this.f.length&&B(this.f[W]);)W++;const j=W===this.c?null:this.f.slice(this.c,W);return this.c=W,j}takeFromEndWhile(B){let W=this.d;for(;W>=0&&B(this.f[W]);)W--;const j=W===this.d?null:this.f.slice(W+1,this.d+1);return this.d=W,j}peek(){if(this.length!==0)return this.f[this.c]}dequeue(){const B=this.f[this.c];return this.c++,B}takeCount(B){const W=this.f.slice(this.c,this.c+B);return this.c+=B,W}}e.ArrayQueue=A;class T{constructor(B){this.iterate=B}toArray(){const B=[];return this.iterate(W=>(B.push(W),!0)),B}filter(B){return new T(W=>this.iterate(j=>B(j)?W(j):!0))}map(B){return new T(W=>this.iterate(j=>W(B(j))))}findLast(B){let W;return this.iterate(j=>(B(j)&&(W=j),!0)),W}findLastMaxBy(B){let W,j=!0;return this.iterate(F=>((j||k.isGreaterThan(B(F,W)))&&(j=!1,W=F),!0)),W}}T.empty=new T(O=>{}),e.CallbackIterable=T}),define(_[126],ee([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 C=typeof Buffer<"u";let N;class E{static wrap(t){return C&&!Buffer.isBuffer(t)&&(t=Buffer.from(t.buffer,t.byteOffset,t.byteLength)),new E(t)}constructor(t){this.buffer=t,this.byteLength=this.buffer.byteLength}toString(){return C?this.buffer.toString():(N||(N=new TextDecoder),N.decode(this.buffer))}}e.VSBuffer=E;function I(i,t){return i[t+0]<<0>>>0|i[t+1]<<8>>>0}e.readUInt16LE=I;function L(i,t,n){i[n+0]=t&255,t=t>>>8,i[n+1]=t&255}e.writeUInt16LE=L;function S(i,t){return i[t]*Math.pow(2,24)+i[t+1]*Math.pow(2,16)+i[t+2]*Math.pow(2,8)+i[t+3]}e.readUInt32BE=S;function v(i,t,n){i[n+3]=t,t=t>>>8,i[n+2]=t,t=t>>>8,i[n+1]=t,t=t>>>8,i[n]=t}e.writeUInt32BE=v;function f(i,t){return i[t]}e.readUInt8=f;function g(i,t,n){i[n]=t}e.writeUInt8=g}),define(_[239],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CachedFunction=e.LRUCachedFunction=void 0;class C{constructor(I){this.c=I,this.a=void 0,this.b=void 0}get(I){const L=JSON.stringify(I);return this.b!==L&&(this.b=L,this.a=this.c(I)),this.a}}e.LRUCachedFunction=C;class N{get cachedValues(){return this.a}constructor(I){this.b=I,this.a=new Map}get(I){if(this.a.has(I))return this.a.get(I);const L=this.b(I);return this.a.set(I,L),L}}e.CachedFunction=N}),define(_[342],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SetMap=void 0;class C{constructor(){this.a=new Map}add(E,I){let L=this.a.get(E);L||(L=new Set,this.a.set(E,L)),L.add(I)}delete(E,I){const L=this.a.get(E);!L||(L.delete(I),L.size===0&&this.a.delete(E))}forEach(E,I){const L=this.a.get(E);!L||L.forEach(I)}}e.SetMap=C}),define(_[36],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Color=e.HSVA=e.HSLA=e.RGBA=void 0;function C(S,v){const f=Math.pow(10,v);return Math.round(S*f)/f}class N{constructor(v,f,g,i=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,v))|0,this.g=Math.min(255,Math.max(0,f))|0,this.b=Math.min(255,Math.max(0,g))|0,this.a=C(Math.max(Math.min(1,i),0),3)}static equals(v,f){return v.r===f.r&&v.g===f.g&&v.b===f.b&&v.a===f.a}}e.RGBA=N;class E{constructor(v,f,g,i){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,v),0)|0,this.s=C(Math.max(Math.min(1,f),0),3),this.l=C(Math.max(Math.min(1,g),0),3),this.a=C(Math.max(Math.min(1,i),0),3)}static equals(v,f){return v.h===f.h&&v.s===f.s&&v.l===f.l&&v.a===f.a}static fromRGBA(v){const f=v.r/255,g=v.g/255,i=v.b/255,t=v.a,n=Math.max(f,g,i),a=Math.min(f,g,i);let r=0,c=0;const d=(a+n)/2,s=n-a;if(s>0){switch(c=Math.min(d<=.5?s/(2*d):s/(2-2*d),1),n){case f:r=(g-i)/s+(g<i?6:0);break;case g:r=(i-f)/s+2;break;case i:r=(f-g)/s+4;break}r*=60,r=Math.round(r)}return new E(r,c,d,t)}static i(v,f,g){return g<0&&(g+=1),g>1&&(g-=1),g<1/6?v+(f-v)*6*g:g<1/2?f:g<2/3?v+(f-v)*(2/3-g)*6:v}static toRGBA(v){const f=v.h/360,{s:g,l:i,a:t}=v;let n,a,r;if(g===0)n=a=r=i;else{const c=i<.5?i*(1+g):i+g-i*g,d=2*i-c;n=E.i(d,c,f+1/3),a=E.i(d,c,f),r=E.i(d,c,f-1/3)}return new N(Math.round(n*255),Math.round(a*255),Math.round(r*255),t)}}e.HSLA=E;class I{constructor(v,f,g,i){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,v),0)|0,this.s=C(Math.max(Math.min(1,f),0),3),this.v=C(Math.max(Math.min(1,g),0),3),this.a=C(Math.max(Math.min(1,i),0),3)}static equals(v,f){return v.h===f.h&&v.s===f.s&&v.v===f.v&&v.a===f.a}static fromRGBA(v){const f=v.r/255,g=v.g/255,i=v.b/255,t=Math.max(f,g,i),n=Math.min(f,g,i),a=t-n,r=t===0?0:a/t;let c;return a===0?c=0:t===f?c=((g-i)/a%6+6)%6:t===g?c=(i-f)/a+2:c=(f-g)/a+4,new I(Math.round(c*60),r,t,v.a)}static toRGBA(v){const{h:f,s:g,v:i,a:t}=v,n=i*g,a=n*(1-Math.abs(f/60%2-1)),r=i-n;let[c,d,s]=[0,0,0];return f<60?(c=n,d=a):f<120?(c=a,d=n):f<180?(d=n,s=a):f<240?(d=a,s=n):f<300?(c=a,s=n):f<=360&&(c=n,s=a),c=Math.round((c+r)*255),d=Math.round((d+r)*255),s=Math.round((s+r)*255),new N(c,d,s,t)}}e.HSVA=I;class L{static fromHex(v){return L.Format.CSS.parseHex(v)||L.red}static equals(v,f){return!v&&!f?!0:!v||!f?!1:v.equals(f)}get hsla(){return this.i?this.i:E.fromRGBA(this.rgba)}get hsva(){return this.j?this.j:I.fromRGBA(this.rgba)}constructor(v){if(v)if(v instanceof N)this.rgba=v;else if(v instanceof E)this.i=v,this.rgba=E.toRGBA(v);else if(v instanceof I)this.j=v,this.rgba=I.toRGBA(v);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(v){return!!v&&N.equals(this.rgba,v.rgba)&&E.equals(this.hsla,v.hsla)&&I.equals(this.hsva,v.hsva)}getRelativeLuminance(){const v=L.k(this.rgba.r),f=L.k(this.rgba.g),g=L.k(this.rgba.b),i=.2126*v+.7152*f+.0722*g;return C(i,4)}static k(v){const f=v/255;return f<=.03928?f/12.92:Math.pow((f+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(v){const f=this.getRelativeLuminance(),g=v.getRelativeLuminance();return f>g}isDarkerThan(v){const f=this.getRelativeLuminance(),g=v.getRelativeLuminance();return f<g}lighten(v){return new L(new E(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*v,this.hsla.a))}darken(v){return new L(new E(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*v,this.hsla.a))}transparent(v){const{r:f,g,b:i,a:t}=this.rgba;return new L(new N(f,g,i,t*v))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new L(new N(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(v){if(this.isOpaque()||v.rgba.a!==1)return this;const{r:f,g,b:i,a:t}=this.rgba;return new L(new N(v.rgba.r-t*(v.rgba.r-f),v.rgba.g-t*(v.rgba.g-g),v.rgba.b-t*(v.rgba.b-i),1))}toString(){return this.o||(this.o=L.Format.CSS.format(this)),this.o}static getLighterColor(v,f,g){if(v.isLighterThan(f))return v;g=g||.5;const i=v.getRelativeLuminance(),t=f.getRelativeLuminance();return g=g*(t-i)/t,v.lighten(g)}static getDarkerColor(v,f,g){if(v.isDarkerThan(f))return v;g=g||.5;const i=v.getRelativeLuminance(),t=f.getRelativeLuminance();return g=g*(i-t)/i,v.darken(g)}}L.white=new L(new N(255,255,255,1)),L.black=new L(new N(0,0,0,1)),L.red=new L(new N(255,0,0,1)),L.blue=new L(new N(0,0,255,1)),L.green=new L(new N(0,255,0,1)),L.cyan=new L(new N(0,255,255,1)),L.lightgrey=new L(new N(211,211,211,1)),L.transparent=new L(new N(0,0,0,0)),e.Color=L,function(S){let v;(function(f){let g;(function(i){function t(h){return h.rgba.a===1?`rgb(${h.rgba.r}, ${h.rgba.g}, ${h.rgba.b})`:S.Format.CSS.formatRGBA(h)}i.formatRGB=t;function n(h){return`rgba(${h.rgba.r}, ${h.rgba.g}, ${h.rgba.b}, ${+h.rgba.a.toFixed(2)})`}i.formatRGBA=n;function a(h){return h.hsla.a===1?`hsl(${h.hsla.h}, ${(h.hsla.s*100).toFixed(2)}%, ${(h.hsla.l*100).toFixed(2)}%)`:S.Format.CSS.formatHSLA(h)}i.formatHSL=a;function r(h){return`hsla(${h.hsla.h}, ${(h.hsla.s*100).toFixed(2)}%, ${(h.hsla.l*100).toFixed(2)}%, ${h.hsla.a.toFixed(2)})`}i.formatHSLA=r;function c(h){const w=h.toString(16);return w.length!==2?"0"+w:w}function d(h){return`#${c(h.rgba.r)}${c(h.rgba.g)}${c(h.rgba.b)}`}i.formatHex=d;function s(h,w=!1){return w&&h.rgba.a===1?S.Format.CSS.formatHex(h):`#${c(h.rgba.r)}${c(h.rgba.g)}${c(h.rgba.b)}${c(Math.round(h.rgba.a*255))}`}i.formatHexA=s;function l(h){return h.isOpaque()?S.Format.CSS.formatHex(h):S.Format.CSS.formatRGBA(h)}i.format=l;function o(h){const w=h.length;if(w===0||h.charCodeAt(0)!==35)return null;if(w===7){const m=16*u(h.charCodeAt(1))+u(h.charCodeAt(2)),p=16*u(h.charCodeAt(3))+u(h.charCodeAt(4)),b=16*u(h.charCodeAt(5))+u(h.charCodeAt(6));return new S(new N(m,p,b,1))}if(w===9){const m=16*u(h.charCodeAt(1))+u(h.charCodeAt(2)),p=16*u(h.charCodeAt(3))+u(h.charCodeAt(4)),b=16*u(h.charCodeAt(5))+u(h.charCodeAt(6)),y=16*u(h.charCodeAt(7))+u(h.charCodeAt(8));return new S(new N(m,p,b,y/255))}if(w===4){const m=u(h.charCodeAt(1)),p=u(h.charCodeAt(2)),b=u(h.charCodeAt(3));return new S(new N(16*m+m,16*p+p,16*b+b))}if(w===5){const m=u(h.charCodeAt(1)),p=u(h.charCodeAt(2)),b=u(h.charCodeAt(3)),y=u(h.charCodeAt(4));return new S(new N(16*m+m,16*p+p,16*b+b,(16*y+y)/255))}return null}i.parseHex=o;function u(h){switch(h){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}})(g=f.CSS||(f.CSS={}))})(v=S.Format||(S.Format={}))}(L=e.Color||(e.Color={})),e.Color=L}),define(_[99],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.memoize=void 0;function C(N,E,I){let L=null,S=null;if(typeof I.value=="function"?(L="value",S=I.value,S.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof I.get=="function"&&(L="get",S=I.get),!S)throw new Error("not supported");const v=`$memoize$${E}`;I[L]=function(...f){return this.hasOwnProperty(v)||Object.defineProperty(this,v,{configurable:!1,enumerable:!1,writable:!1,value:S.apply(this,f)}),this[v]}}e.memoize=C}),define(_[343],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DiffChange=void 0;class C{constructor(E,I,L,S){this.originalStart=E,this.originalLength=I,this.modifiedStart=L,this.modifiedLength=S}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}e.DiffChange=C}),define(_[13],ee([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 C{constructor(){this.b=[],this.a=function(c){setTimeout(()=>{throw c.stack?n.isErrorNoTelemetry(c)?new n(c.message+`
|
||
|
||
`+c.stack):new Error(c.message+`
|
||
|
||
`+c.stack):c},0)}}c(c){this.b.forEach(d=>{d(c)})}onUnexpectedError(c){this.a(c),this.c(c)}onUnexpectedExternalError(c){this.a(c)}}e.ErrorHandler=C,e.errorHandler=new C;function N(r){S(r)||e.errorHandler.onUnexpectedError(r)}e.onUnexpectedError=N;function E(r){S(r)||e.errorHandler.onUnexpectedExternalError(r)}e.onUnexpectedExternalError=E;function I(r){if(r instanceof Error){const{name:c,message:d}=r,s=r.stacktrace||r.stack;return{$isError:!0,name:c,message:d,stack:s,noTelemetry:n.isErrorNoTelemetry(r)}}return r}e.transformErrorForSerialization=I;const L="Canceled";function S(r){return r instanceof v?!0:r instanceof Error&&r.name===L&&r.message===L}e.isCancellationError=S;class v extends Error{constructor(){super(L),this.name=this.message}}e.CancellationError=v;function f(){const r=new Error(L);return r.name=r.message,r}e.canceled=f;function g(r){return r?new Error(`Illegal argument: ${r}`):new Error("Illegal argument")}e.illegalArgument=g;function i(r){return r?new Error(`Illegal state: ${r}`):new Error("Illegal state")}e.illegalState=i;class t extends Error{constructor(c){super("NotSupported"),c&&(this.message=c)}}e.NotSupportedError=t;class n extends Error{constructor(c){super(c),this.name="CodeExpectedError"}static fromError(c){if(c instanceof n)return c;const d=new n;return d.message=c.message,d.stack=c.stack,d}static isErrorNoTelemetry(c){return c.name==="CodeExpectedError"}}e.ErrorNoTelemetry=n;class a extends Error{constructor(c){super(c||"An unexpected bug occurred."),Object.setPrototypeOf(this,a.prototype);debugger}}e.BugIndicatingError=a}),define(_[85],ee([1,0,13]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.checkAdjacentItems=e.assertFn=e.assertNever=e.ok=void 0;function N(S,v){if(!S)throw new Error(v?`Assertion failed (${v})`:"Assertion Failed")}e.ok=N;function E(S,v="Unreachable"){throw new Error(v)}e.assertNever=E;function I(S){if(!S()){debugger;S(),(0,C.onUnexpectedError)(new C.BugIndicatingError("Assertion Failed"))}}e.assertFn=I;function L(S,v){let f=0;for(;f<S.length-1;){const g=S[f],i=S[f+1];if(!v(g,i))return!1;f++}return!0}e.checkAdjacentItems=L}),define(_[92],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.once=void 0;function C(N){const E=this;let I=!1,L;return function(){return I||(I=!0,L=N.apply(E,arguments)),L}}e.once=C}),define(_[150],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultGenerator=e.IdGenerator=void 0;class C{constructor(E){this.a=E,this.b=0}nextId(){return this.a+ ++this.b}}e.IdGenerator=C,e.defaultGenerator=new C("id#")}),define(_[54],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Iterable=void 0;var C;(function(N){function E(o){return o&&typeof o=="object"&&typeof o[Symbol.iterator]=="function"}N.is=E;const I=Object.freeze([]);function L(){return I}N.empty=L;function*S(o){yield o}N.single=S;function v(o){return E(o)?o:S(o)}N.wrap=v;function f(o){return o||I}N.from=f;function g(o){return!o||o[Symbol.iterator]().next().done===!0}N.isEmpty=g;function i(o){return o[Symbol.iterator]().next().value}N.first=i;function t(o,u){for(const h of o)if(u(h))return!0;return!1}N.some=t;function n(o,u){for(const h of o)if(u(h))return h}N.find=n;function*a(o,u){for(const h of o)u(h)&&(yield h)}N.filter=a;function*r(o,u){let h=0;for(const w of o)yield u(w,h++)}N.map=r;function*c(...o){for(const u of o)for(const h of u)yield h}N.concat=c;function d(o,u,h){let w=h;for(const m of o)w=u(w,m);return w}N.reduce=d;function*s(o,u,h=o.length){for(u<0&&(u+=o.length),h<0?h+=o.length:h>o.length&&(h=o.length);u<h;u++)yield o[u]}N.slice=s;function l(o,u=Number.POSITIVE_INFINITY){const h=[];if(u===0)return[h,o];const w=o[Symbol.iterator]();for(let m=0;m<u;m++){const p=w.next();if(p.done)return[h,N.empty()];h.push(p.value)}return[h,{[Symbol.iterator](){return w}}]}N.consume=l})(C=e.Iterable||(e.Iterable={}))}),define(_[58],ee([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 C{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(t,n){this._keyCodeToStr[t]=n,this._strToKeyCode[n.toLowerCase()]=t}keyCodeToStr(t){return this._keyCodeToStr[t]}strToKeyCode(t){return this._strToKeyCode[t.toLowerCase()]||0}}const N=new C,E=new C,I=new C;e.EVENT_KEY_CODE_MAP=new Array(230),e.NATIVE_WINDOWS_KEY_CODE_TO_KEY_CODE={};const L=[],S=Object.create(null),v=Object.create(null);e.IMMUTABLE_CODE_TO_KEY_CODE=[],e.IMMUTABLE_KEY_CODE_TO_CODE=[];for(let i=0;i<=193;i++)e.IMMUTABLE_CODE_TO_KEY_CODE[i]=-1;for(let i=0;i<=127;i++)e.IMMUTABLE_KEY_CODE_TO_CODE[i]=-1;(function(){const i="",t=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN",i,i],[0,1,1,"Hyper",0,i,0,i,i,i],[0,1,2,"Super",0,i,0,i,i,i],[0,1,3,"Fn",0,i,0,i,i,i],[0,1,4,"FnLock",0,i,0,i,i,i],[0,1,5,"Suspend",0,i,0,i,i,i],[0,1,6,"Resume",0,i,0,i,i,i],[0,1,7,"Turbo",0,i,0,i,i,i],[0,1,8,"Sleep",0,i,0,"VK_SLEEP",i,i],[0,1,9,"WakeUp",0,i,0,i,i,i],[31,0,10,"KeyA",31,"A",65,"VK_A",i,i],[32,0,11,"KeyB",32,"B",66,"VK_B",i,i],[33,0,12,"KeyC",33,"C",67,"VK_C",i,i],[34,0,13,"KeyD",34,"D",68,"VK_D",i,i],[35,0,14,"KeyE",35,"E",69,"VK_E",i,i],[36,0,15,"KeyF",36,"F",70,"VK_F",i,i],[37,0,16,"KeyG",37,"G",71,"VK_G",i,i],[38,0,17,"KeyH",38,"H",72,"VK_H",i,i],[39,0,18,"KeyI",39,"I",73,"VK_I",i,i],[40,0,19,"KeyJ",40,"J",74,"VK_J",i,i],[41,0,20,"KeyK",41,"K",75,"VK_K",i,i],[42,0,21,"KeyL",42,"L",76,"VK_L",i,i],[43,0,22,"KeyM",43,"M",77,"VK_M",i,i],[44,0,23,"KeyN",44,"N",78,"VK_N",i,i],[45,0,24,"KeyO",45,"O",79,"VK_O",i,i],[46,0,25,"KeyP",46,"P",80,"VK_P",i,i],[47,0,26,"KeyQ",47,"Q",81,"VK_Q",i,i],[48,0,27,"KeyR",48,"R",82,"VK_R",i,i],[49,0,28,"KeyS",49,"S",83,"VK_S",i,i],[50,0,29,"KeyT",50,"T",84,"VK_T",i,i],[51,0,30,"KeyU",51,"U",85,"VK_U",i,i],[52,0,31,"KeyV",52,"V",86,"VK_V",i,i],[53,0,32,"KeyW",53,"W",87,"VK_W",i,i],[54,0,33,"KeyX",54,"X",88,"VK_X",i,i],[55,0,34,"KeyY",55,"Y",89,"VK_Y",i,i],[56,0,35,"KeyZ",56,"Z",90,"VK_Z",i,i],[22,0,36,"Digit1",22,"1",49,"VK_1",i,i],[23,0,37,"Digit2",23,"2",50,"VK_2",i,i],[24,0,38,"Digit3",24,"3",51,"VK_3",i,i],[25,0,39,"Digit4",25,"4",52,"VK_4",i,i],[26,0,40,"Digit5",26,"5",53,"VK_5",i,i],[27,0,41,"Digit6",27,"6",54,"VK_6",i,i],[28,0,42,"Digit7",28,"7",55,"VK_7",i,i],[29,0,43,"Digit8",29,"8",56,"VK_8",i,i],[30,0,44,"Digit9",30,"9",57,"VK_9",i,i],[21,0,45,"Digit0",21,"0",48,"VK_0",i,i],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN",i,i],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE",i,i],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK",i,i],[2,1,49,"Tab",2,"Tab",9,"VK_TAB",i,i],[10,1,50,"Space",10,"Space",32,"VK_SPACE",i,i],[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,i,0,i,i,i],[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",i,i],[59,1,64,"F1",59,"F1",112,"VK_F1",i,i],[60,1,65,"F2",60,"F2",113,"VK_F2",i,i],[61,1,66,"F3",61,"F3",114,"VK_F3",i,i],[62,1,67,"F4",62,"F4",115,"VK_F4",i,i],[63,1,68,"F5",63,"F5",116,"VK_F5",i,i],[64,1,69,"F6",64,"F6",117,"VK_F6",i,i],[65,1,70,"F7",65,"F7",118,"VK_F7",i,i],[66,1,71,"F8",66,"F8",119,"VK_F8",i,i],[67,1,72,"F9",67,"F9",120,"VK_F9",i,i],[68,1,73,"F10",68,"F10",121,"VK_F10",i,i],[69,1,74,"F11",69,"F11",122,"VK_F11",i,i],[70,1,75,"F12",70,"F12",123,"VK_F12",i,i],[0,1,76,"PrintScreen",0,i,0,i,i,i],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL",i,i],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",i,i],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT",i,i],[14,1,80,"Home",14,"Home",36,"VK_HOME",i,i],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",i,i],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE",i,i],[13,1,83,"End",13,"End",35,"VK_END",i,i],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT",i,i],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",i],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",i],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",i],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",i],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK",i,i],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE",i,i],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY",i,i],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT",i,i],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD",i,i],[3,1,94,"NumpadEnter",3,i,0,i,i,i],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1",i,i],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2",i,i],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3",i,i],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4",i,i],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5",i,i],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6",i,i],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7",i,i],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8",i,i],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9",i,i],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0",i,i],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL",i,i],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102",i,i],[58,1,107,"ContextMenu",58,"ContextMenu",93,i,i,i],[0,1,108,"Power",0,i,0,i,i,i],[0,1,109,"NumpadEqual",0,i,0,i,i,i],[71,1,110,"F13",71,"F13",124,"VK_F13",i,i],[72,1,111,"F14",72,"F14",125,"VK_F14",i,i],[73,1,112,"F15",73,"F15",126,"VK_F15",i,i],[74,1,113,"F16",74,"F16",127,"VK_F16",i,i],[75,1,114,"F17",75,"F17",128,"VK_F17",i,i],[76,1,115,"F18",76,"F18",129,"VK_F18",i,i],[77,1,116,"F19",77,"F19",130,"VK_F19",i,i],[0,1,117,"F20",0,i,0,"VK_F20",i,i],[0,1,118,"F21",0,i,0,"VK_F21",i,i],[0,1,119,"F22",0,i,0,"VK_F22",i,i],[0,1,120,"F23",0,i,0,"VK_F23",i,i],[0,1,121,"F24",0,i,0,"VK_F24",i,i],[0,1,122,"Open",0,i,0,i,i,i],[0,1,123,"Help",0,i,0,i,i,i],[0,1,124,"Select",0,i,0,i,i,i],[0,1,125,"Again",0,i,0,i,i,i],[0,1,126,"Undo",0,i,0,i,i,i],[0,1,127,"Cut",0,i,0,i,i,i],[0,1,128,"Copy",0,i,0,i,i,i],[0,1,129,"Paste",0,i,0,i,i,i],[0,1,130,"Find",0,i,0,i,i,i],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE",i,i],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP",i,i],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN",i,i],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR",i,i],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1",i,i],[0,1,136,"KanaMode",0,i,0,i,i,i],[0,0,137,"IntlYen",0,i,0,i,i,i],[0,1,138,"Convert",0,i,0,i,i,i],[0,1,139,"NonConvert",0,i,0,i,i,i],[0,1,140,"Lang1",0,i,0,i,i,i],[0,1,141,"Lang2",0,i,0,i,i,i],[0,1,142,"Lang3",0,i,0,i,i,i],[0,1,143,"Lang4",0,i,0,i,i,i],[0,1,144,"Lang5",0,i,0,i,i,i],[0,1,145,"Abort",0,i,0,i,i,i],[0,1,146,"Props",0,i,0,i,i,i],[0,1,147,"NumpadParenLeft",0,i,0,i,i,i],[0,1,148,"NumpadParenRight",0,i,0,i,i,i],[0,1,149,"NumpadBackspace",0,i,0,i,i,i],[0,1,150,"NumpadMemoryStore",0,i,0,i,i,i],[0,1,151,"NumpadMemoryRecall",0,i,0,i,i,i],[0,1,152,"NumpadMemoryClear",0,i,0,i,i,i],[0,1,153,"NumpadMemoryAdd",0,i,0,i,i,i],[0,1,154,"NumpadMemorySubtract",0,i,0,i,i,i],[0,1,155,"NumpadClear",126,"Clear",12,"VK_CLEAR",i,i],[0,1,156,"NumpadClearEntry",0,i,0,i,i,i],[5,1,0,i,5,"Ctrl",17,"VK_CONTROL",i,i],[4,1,0,i,4,"Shift",16,"VK_SHIFT",i,i],[6,1,0,i,6,"Alt",18,"VK_MENU",i,i],[57,1,0,i,57,"Meta",0,"VK_COMMAND",i,i],[5,1,157,"ControlLeft",5,i,0,"VK_LCONTROL",i,i],[4,1,158,"ShiftLeft",4,i,0,"VK_LSHIFT",i,i],[6,1,159,"AltLeft",6,i,0,"VK_LMENU",i,i],[57,1,160,"MetaLeft",57,i,0,"VK_LWIN",i,i],[5,1,161,"ControlRight",5,i,0,"VK_RCONTROL",i,i],[4,1,162,"ShiftRight",4,i,0,"VK_RSHIFT",i,i],[6,1,163,"AltRight",6,i,0,"VK_RMENU",i,i],[57,1,164,"MetaRight",57,i,0,"VK_RWIN",i,i],[0,1,165,"BrightnessUp",0,i,0,i,i,i],[0,1,166,"BrightnessDown",0,i,0,i,i,i],[0,1,167,"MediaPlay",0,i,0,i,i,i],[0,1,168,"MediaRecord",0,i,0,i,i,i],[0,1,169,"MediaFastForward",0,i,0,i,i,i],[0,1,170,"MediaRewind",0,i,0,i,i,i],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",i,i],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",i,i],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP",i,i],[0,1,174,"Eject",0,i,0,i,i,i],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",i,i],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",i,i],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",i,i],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",i,i],[0,1,179,"LaunchApp1",0,i,0,"VK_MEDIA_LAUNCH_APP1",i,i],[0,1,180,"SelectTask",0,i,0,i,i,i],[0,1,181,"LaunchScreenSaver",0,i,0,i,i,i],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH",i,i],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME",i,i],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK",i,i],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD",i,i],[0,1,186,"BrowserStop",0,i,0,"VK_BROWSER_STOP",i,i],[0,1,187,"BrowserRefresh",0,i,0,"VK_BROWSER_REFRESH",i,i],[0,1,188,"BrowserFavorites",0,i,0,"VK_BROWSER_FAVORITES",i,i],[0,1,189,"ZoomToggle",0,i,0,i,i,i],[0,1,190,"MailReply",0,i,0,i,i,i],[0,1,191,"MailForward",0,i,0,i,i,i],[0,1,192,"MailSend",0,i,0,i,i,i],[109,1,0,i,109,"KeyInComposition",229,i,i,i],[111,1,0,i,111,"ABNT_C2",194,"VK_ABNT_C2",i,i],[91,1,0,i,91,"OEM_8",223,"VK_OEM_8",i,i],[0,1,0,i,0,i,0,"VK_KANA",i,i],[0,1,0,i,0,i,0,"VK_HANGUL",i,i],[0,1,0,i,0,i,0,"VK_JUNJA",i,i],[0,1,0,i,0,i,0,"VK_FINAL",i,i],[0,1,0,i,0,i,0,"VK_HANJA",i,i],[0,1,0,i,0,i,0,"VK_KANJI",i,i],[0,1,0,i,0,i,0,"VK_CONVERT",i,i],[0,1,0,i,0,i,0,"VK_NONCONVERT",i,i],[0,1,0,i,0,i,0,"VK_ACCEPT",i,i],[0,1,0,i,0,i,0,"VK_MODECHANGE",i,i],[0,1,0,i,0,i,0,"VK_SELECT",i,i],[0,1,0,i,0,i,0,"VK_PRINT",i,i],[0,1,0,i,0,i,0,"VK_EXECUTE",i,i],[0,1,0,i,0,i,0,"VK_SNAPSHOT",i,i],[0,1,0,i,0,i,0,"VK_HELP",i,i],[0,1,0,i,0,i,0,"VK_APPS",i,i],[0,1,0,i,0,i,0,"VK_PROCESSKEY",i,i],[0,1,0,i,0,i,0,"VK_PACKET",i,i],[0,1,0,i,0,i,0,"VK_DBE_SBCSCHAR",i,i],[0,1,0,i,0,i,0,"VK_DBE_DBCSCHAR",i,i],[0,1,0,i,0,i,0,"VK_ATTN",i,i],[0,1,0,i,0,i,0,"VK_CRSEL",i,i],[0,1,0,i,0,i,0,"VK_EXSEL",i,i],[0,1,0,i,0,i,0,"VK_EREOF",i,i],[0,1,0,i,0,i,0,"VK_PLAY",i,i],[0,1,0,i,0,i,0,"VK_ZOOM",i,i],[0,1,0,i,0,i,0,"VK_NONAME",i,i],[0,1,0,i,0,i,0,"VK_PA1",i,i],[0,1,0,i,0,i,0,"VK_OEM_CLEAR",i,i]],n=[],a=[];for(const r of t){const[c,d,s,l,o,u,h,w,m,p]=r;if(a[s]||(a[s]=!0,L[s]=l,S[l]=s,v[l.toLowerCase()]=s,d&&(e.IMMUTABLE_CODE_TO_KEY_CODE[s]=o,o!==0&&o!==3&&o!==5&&o!==4&&o!==6&&o!==57&&(e.IMMUTABLE_KEY_CODE_TO_CODE[o]=s))),!n[o]){if(n[o]=!0,!u)throw new Error(`String representation missing for key code ${o} around scan code ${l}`);N.define(o,u),E.define(o,m||u),I.define(o,p||m||u)}h&&(e.EVENT_KEY_CODE_MAP[h]=o),w&&(e.NATIVE_WINDOWS_KEY_CODE_TO_KEY_CODE[w]=o)}e.IMMUTABLE_KEY_CODE_TO_CODE[3]=46})();var f;(function(i){function t(s){return N.keyCodeToStr(s)}i.toString=t;function n(s){return N.strToKeyCode(s)}i.fromString=n;function a(s){return E.keyCodeToStr(s)}i.toUserSettingsUS=a;function r(s){return I.keyCodeToStr(s)}i.toUserSettingsGeneral=r;function c(s){return E.strToKeyCode(s)||I.strToKeyCode(s)}i.fromUserSettings=c;function d(s){if(s>=93&&s<=108)return null;switch(s){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return N.keyCodeToStr(s)}i.toElectronAccelerator=d})(f=e.KeyCodeUtils||(e.KeyCodeUtils={}));function g(i,t){const n=(t&65535)<<16>>>0;return(i|n)>>>0}e.KeyChord=g}),define(_[110],ee([1,0,13]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ResolvedKeybinding=e.ResolvedChord=e.Keybinding=e.ScanCodeChord=e.KeyCodeChord=e.createSimpleKeybinding=e.decodeKeybinding=void 0;function N(g,i){if(g===0)return null;const t=(g&65535)>>>0,n=(g&4294901760)>>>16;return n!==0?new S([E(t,i),E(n,i)]):new S([E(t,i)])}e.decodeKeybinding=N;function E(g,i){const t=!!(g&2048),n=!!(g&256),a=i===2?n:t,r=!!(g&1024),c=!!(g&512),d=i===2?t:n,s=g&255;return new I(a,r,c,d,s)}e.createSimpleKeybinding=E;class I{constructor(i,t,n,a,r){this.ctrlKey=i,this.shiftKey=t,this.altKey=n,this.metaKey=a,this.keyCode=r}equals(i){return i instanceof I&&this.ctrlKey===i.ctrlKey&&this.shiftKey===i.shiftKey&&this.altKey===i.altKey&&this.metaKey===i.metaKey&&this.keyCode===i.keyCode}isModifierKey(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4}isDuplicateModifierCase(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57}}e.KeyCodeChord=I;class L{constructor(i,t,n,a,r){this.ctrlKey=i,this.shiftKey=t,this.altKey=n,this.metaKey=a,this.scanCode=r}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.ScanCodeChord=L;class S{constructor(i){if(i.length===0)throw(0,C.illegalArgument)("chords");this.chords=i}}e.Keybinding=S;class v{constructor(i,t,n,a,r,c){this.ctrlKey=i,this.shiftKey=t,this.altKey=n,this.metaKey=a,this.keyLabel=r,this.keyAriaLabel=c}}e.ResolvedChord=v;class f{}e.ResolvedKeybinding=f}),define(_[100],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Lazy=void 0;class C{constructor(E){this.d=E,this.a=!1}get value(){if(!this.a)try{this.b=this.d()}catch(E){this.c=E}finally{this.a=!0}if(this.c)throw this.c;return this.b}get rawValue(){return this.b}}e.Lazy=C}),define(_[344],ee([1,0,100]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.compareByPrefix=e.compareAnything=e.compareFileNames=void 0;const N=new C.Lazy(()=>{const f=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:f,collatorIsNumeric:f.resolvedOptions().numeric}}),E=new C.Lazy(()=>({collator:new Intl.Collator(void 0,{numeric:!0})})),I=new C.Lazy(()=>({collator:new Intl.Collator(void 0,{numeric:!0,sensitivity:"accent"})}));function L(f,g,i=!1){const t=f||"",n=g||"",a=N.value.collator.compare(t,n);return N.value.collatorIsNumeric&&a===0&&t!==n?t<n?-1:1:a}e.compareFileNames=L;function S(f,g,i){const t=f.toLowerCase(),n=g.toLowerCase(),a=v(f,g,i);if(a)return a;const r=t.endsWith(i),c=n.endsWith(i);if(r!==c)return r?-1:1;const d=L(t,n);return d!==0?d:t.localeCompare(n)}e.compareAnything=S;function v(f,g,i){const t=f.toLowerCase(),n=g.toLowerCase(),a=t.startsWith(i),r=n.startsWith(i);if(a!==r)return a?-1:1;if(a&&r){if(t.length<n.length)return-1;if(t.length>n.length)return 1}return 0}e.compareByPrefix=v}),define(_[2],ee([1,0,92,54]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DisposableMap=e.ImmortalReference=e.SafeDisposable=e.RefCountedDisposable=e.MutableDisposable=e.Disposable=e.DisposableStore=e.toDisposable=e.combinedDisposable=e.dispose=e.isDisposable=e.markAsSingleton=e.setDisposableTracker=void 0;const E=!1;let I=null;function L(w){I=w}if(e.setDisposableTracker=L,E){const w="__is_disposable_tracked__";L(new class{trackDisposable(m){const p=new Error("Potentially leaked disposable").stack;setTimeout(()=>{m[w]||console.log(p)},3e3)}setParent(m,p){if(m&&m!==d.None)try{m[w]=!0}catch{}}markAsDisposed(m){if(m&&m!==d.None)try{m[w]=!0}catch{}}markAsSingleton(m){}})}function S(w){return I?.trackDisposable(w),w}function v(w){I?.markAsDisposed(w)}function f(w,m){I?.setParent(w,m)}function g(w,m){if(!!I)for(const p of w)I.setParent(p,m)}function i(w){return I?.markAsSingleton(w),w}e.markAsSingleton=i;function t(w){return typeof w.dispose=="function"&&w.dispose.length===0}e.isDisposable=t;function n(w){if(N.Iterable.is(w)){const m=[];for(const p of w)if(p)try{p.dispose()}catch(b){m.push(b)}if(m.length===1)throw m[0];if(m.length>1)throw new AggregateError(m,"Encountered errors while disposing of store");return Array.isArray(w)?[]:w}else if(w)return w.dispose(),w}e.dispose=n;function a(...w){const m=r(()=>n(w));return g(w,m),m}e.combinedDisposable=a;function r(w){const m=S({dispose:(0,C.once)(()=>{v(m),w()})});return m}e.toDisposable=r;class c{constructor(){this.a=new Set,this.b=!1,S(this)}dispose(){this.b||(v(this),this.b=!0,this.clear())}get isDisposed(){return this.b}clear(){if(this.a.size!==0)try{n(this.a)}finally{this.a.clear()}}add(m){if(!m)return m;if(m===this)throw new Error("Cannot register a disposable on itself!");return f(m,this),this.b?c.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.a.add(m),m}}c.DISABLE_DISPOSED_WARNING=!1,e.DisposableStore=c;class d{constructor(){this.f=new c,S(this),f(this.f,this)}dispose(){v(this),this.f.dispose()}q(m){if(m===this)throw new Error("Cannot register a disposable on itself!");return this.f.add(m)}}d.None=Object.freeze({dispose(){}}),e.Disposable=d;class s{constructor(){this.b=!1,S(this)}get value(){return this.b?void 0:this.a}set value(m){var p;this.b||m===this.a||((p=this.a)===null||p===void 0||p.dispose(),m&&f(m,this),this.a=m)}clear(){this.value=void 0}dispose(){var m;this.b=!0,v(this),(m=this.a)===null||m===void 0||m.dispose(),this.a=void 0}clearAndLeak(){const m=this.a;return this.a=void 0,m&&f(m,null),m}}e.MutableDisposable=s;class l{constructor(m){this.b=m,this.a=1}acquire(){return this.a++,this}release(){return--this.a===0&&this.b.dispose(),this}}e.RefCountedDisposable=l;class o{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1,S(this)}set(m){let p=m;return this.unset=()=>p=void 0,this.isset=()=>p!==void 0,this.dispose=()=>{p&&(p(),p=void 0,v(this))},this}}e.SafeDisposable=o;class u{constructor(m){this.object=m}dispose(){}}e.ImmortalReference=u;class h{constructor(){this.a=new Map,this.b=!1,S(this)}dispose(){v(this),this.b=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(!!this.a.size)try{n(this.a.values())}finally{this.a.clear()}}get(m){return this.a.get(m)}set(m,p,b=!1){var y;this.b&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),b||(y=this.a.get(m))===null||y===void 0||y.dispose(),this.a.set(m,p)}[Symbol.iterator](){return this.a[Symbol.iterator]()}}e.DisposableMap=h}),define(_[59],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinkedList=void 0;class C{constructor(I){this.element=I,this.next=C.Undefined,this.prev=C.Undefined}}C.Undefined=new C(void 0);class N{constructor(){this.a=C.Undefined,this.b=C.Undefined,this.c=0}get size(){return this.c}isEmpty(){return this.a===C.Undefined}clear(){let I=this.a;for(;I!==C.Undefined;){const L=I.next;I.prev=C.Undefined,I.next=C.Undefined,I=L}this.a=C.Undefined,this.b=C.Undefined,this.c=0}unshift(I){return this.d(I,!1)}push(I){return this.d(I,!0)}d(I,L){const S=new C(I);if(this.a===C.Undefined)this.a=S,this.b=S;else if(L){const f=this.b;this.b=S,S.prev=f,f.next=S}else{const f=this.a;this.a=S,S.next=f,f.prev=S}this.c+=1;let v=!1;return()=>{v||(v=!0,this.e(S))}}shift(){if(this.a!==C.Undefined){const I=this.a.element;return this.e(this.a),I}}pop(){if(this.b!==C.Undefined){const I=this.b.element;return this.e(this.b),I}}e(I){if(I.prev!==C.Undefined&&I.next!==C.Undefined){const L=I.prev;L.next=I.next,I.next.prev=L}else I.prev===C.Undefined&&I.next===C.Undefined?(this.a=C.Undefined,this.b=C.Undefined):I.next===C.Undefined?(this.b=this.b.prev,this.b.next=C.Undefined):I.prev===C.Undefined&&(this.a=this.a.next,this.a.prev=C.Undefined);this.c-=1}*[Symbol.iterator](){let I=this.a;for(;I!==C.Undefined;)yield I.element,I=I.next}}e.LinkedList=N});var Ne=this&&this.__decorate||function(q,e,C,N){var E=arguments.length,I=E<3?e:N===null?N=Object.getOwnPropertyDescriptor(e,C):N,L;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")I=Reflect.decorate(q,e,C,N);else for(var S=q.length-1;S>=0;S--)(L=q[S])&&(I=(E<3?L(I):E>3?L(e,C,I):L(e,C))||I);return E>3&&I&&Object.defineProperty(e,C,I),I};define(_[345],ee([1,0,99]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseLinkedText=e.LinkedText=void 0;class N{constructor(S){this.nodes=S}toString(){return this.nodes.map(S=>typeof S=="string"?S:S.label).join("")}}Ne([C.memoize],N.prototype,"toString",null),e.LinkedText=N;const E=/\[([^\]]+)\]\(((?:https?:\/\/|command:|file:)[^\)\s]+)(?: (["'])(.+?)(\3))?\)/gi;function I(L){const S=[];let v=0,f;for(;f=E.exec(L);){f.index-v>0&&S.push(L.substring(v,f.index));const[,g,i,,t]=f;t?S.push({label:g,href:i,title:t}):S.push({label:g,href:i}),v=f.index+f[0].length}return v<L.length&&S.push(L.substring(v)),new N(S)}e.parseLinkedText=I}),define(_[55],ee([1,0]),function(q,e){"use strict";var C,N;Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=e.LinkedMap=e.ResourceMap=void 0;class E{constructor(f,g){this.uri=f,this.value=g}}class I{constructor(f,g){this[C]="ResourceMap",f instanceof I?(this.b=new Map(f.b),this.c=g??I.a):(this.b=new Map,this.c=f??I.a)}set(f,g){return this.b.set(this.c(f),new E(f,g)),this}get(f){var g;return(g=this.b.get(this.c(f)))===null||g===void 0?void 0:g.value}has(f){return this.b.has(this.c(f))}get size(){return this.b.size}clear(){this.b.clear()}delete(f){return this.b.delete(this.c(f))}forEach(f,g){typeof g<"u"&&(f=f.bind(g));for(const[i,t]of this.b)f(t.value,t.uri,this)}*values(){for(const f of this.b.values())yield f.value}*keys(){for(const f of this.b.values())yield f.uri}*entries(){for(const f of this.b.values())yield[f.uri,f.value]}*[(C=Symbol.toStringTag,Symbol.iterator)](){for(const[,f]of this.b)yield[f.uri,f.value]}}I.a=v=>v.toString(),e.ResourceMap=I;class L{constructor(){this[N]="LinkedMap",this.a=new Map,this.b=void 0,this.c=void 0,this.d=0,this.e=0}clear(){this.a.clear(),this.b=void 0,this.c=void 0,this.d=0,this.e++}isEmpty(){return!this.b&&!this.c}get size(){return this.d}get first(){var f;return(f=this.b)===null||f===void 0?void 0:f.value}get last(){var f;return(f=this.c)===null||f===void 0?void 0:f.value}has(f){return this.a.has(f)}get(f,g=0){const i=this.a.get(f);if(!!i)return g!==0&&this.j(i,g),i.value}set(f,g,i=0){let t=this.a.get(f);if(t)t.value=g,i!==0&&this.j(t,i);else{switch(t={key:f,value:g,next:void 0,previous:void 0},i){case 0:this.h(t);break;case 1:this.g(t);break;case 2:this.h(t);break;default:this.h(t);break}this.a.set(f,t),this.d++}return this}delete(f){return!!this.remove(f)}remove(f){const g=this.a.get(f);if(!!g)return this.a.delete(f),this.i(g),this.d--,g.value}shift(){if(!this.b&&!this.c)return;if(!this.b||!this.c)throw new Error("Invalid list");const f=this.b;return this.a.delete(f.key),this.i(f),this.d--,f.value}forEach(f,g){const i=this.e;let t=this.b;for(;t;){if(g?f.bind(g)(t.value,t.key,this):f(t.value,t.key,this),this.e!==i)throw new Error("LinkedMap got modified during iteration.");t=t.next}}keys(){const f=this,g=this.e;let i=this.b;const t={[Symbol.iterator](){return t},next(){if(f.e!==g)throw new Error("LinkedMap got modified during iteration.");if(i){const n={value:i.key,done:!1};return i=i.next,n}else return{value:void 0,done:!0}}};return t}values(){const f=this,g=this.e;let i=this.b;const t={[Symbol.iterator](){return t},next(){if(f.e!==g)throw new Error("LinkedMap got modified during iteration.");if(i){const n={value:i.value,done:!1};return i=i.next,n}else return{value:void 0,done:!0}}};return t}entries(){const f=this,g=this.e;let i=this.b;const t={[Symbol.iterator](){return t},next(){if(f.e!==g)throw new Error("LinkedMap got modified during iteration.");if(i){const n={value:[i.key,i.value],done:!1};return i=i.next,n}else return{value:void 0,done:!0}}};return t}[(N=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}f(f){if(f>=this.size)return;if(f===0){this.clear();return}let g=this.b,i=this.size;for(;g&&i>f;)this.a.delete(g.key),g=g.next,i--;this.b=g,this.d=i,g&&(g.previous=void 0),this.e++}g(f){if(!this.b&&!this.c)this.c=f;else if(this.b)f.next=this.b,this.b.previous=f;else throw new Error("Invalid list");this.b=f,this.e++}h(f){if(!this.b&&!this.c)this.b=f;else if(this.c)f.previous=this.c,this.c.next=f;else throw new Error("Invalid list");this.c=f,this.e++}i(f){if(f===this.b&&f===this.c)this.b=void 0,this.c=void 0;else if(f===this.b){if(!f.next)throw new Error("Invalid list");f.next.previous=void 0,this.b=f.next}else if(f===this.c){if(!f.previous)throw new Error("Invalid list");f.previous.next=void 0,this.c=f.previous}else{const g=f.next,i=f.previous;if(!g||!i)throw new Error("Invalid list");g.previous=i,i.next=g}f.next=void 0,f.previous=void 0,this.e++}j(f,g){if(!this.b||!this.c)throw new Error("Invalid list");if(!(g!==1&&g!==2)){if(g===1){if(f===this.b)return;const i=f.next,t=f.previous;f===this.c?(t.next=void 0,this.c=t):(i.previous=t,t.next=i),f.previous=void 0,f.next=this.b,this.b.previous=f,this.b=f,this.e++}else if(g===2){if(f===this.c)return;const i=f.next,t=f.previous;f===this.b?(i.previous=void 0,this.b=i):(i.previous=t,t.next=i),f.next=void 0,f.previous=this.c,this.c.next=f,this.c=f,this.e++}}}toJSON(){const f=[];return this.forEach((g,i)=>{f.push([i,g])}),f}fromJSON(f){this.clear();for(const[g,i]of f)this.set(g,i)}}e.LinkedMap=L;class S extends L{constructor(f,g=1){super(),this.k=f,this.l=Math.min(Math.max(0,g),1)}get limit(){return this.k}set limit(f){this.k=f,this.m()}get(f,g=2){return super.get(f,g)}peek(f){return super.get(f,0)}set(f,g){return super.set(f,g,2),this.m(),this}m(){this.size>this.k&&this.f(Math.round(this.k*this.l))}}e.LRUCache=S}),function(q,e){typeof exports=="object"&&typeof module<"u"?e(exports):typeof define=="function"&&define.amd?define(_[346],ee([0]),e):(q=typeof globalThis<"u"?globalThis:q||self,e(q.marked={}))}(this,function(q){"use strict";function e(Y,ne){for(var V=0;V<ne.length;V++){var H=ne[V];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(Y,H.key,H)}}function C(Y,ne,V){return ne&&e(Y.prototype,ne),V&&e(Y,V),Object.defineProperty(Y,"prototype",{writable:!1}),Y}function N(Y,ne){if(!!Y){if(typeof Y=="string")return E(Y,ne);var V=Object.prototype.toString.call(Y).slice(8,-1);if(V==="Object"&&Y.constructor&&(V=Y.constructor.name),V==="Map"||V==="Set")return Array.from(Y);if(V==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(V))return E(Y,ne)}}function E(Y,ne){(ne==null||ne>Y.length)&&(ne=Y.length);for(var V=0,H=new Array(ne);V<ne;V++)H[V]=Y[V];return H}function I(Y,ne){var V=typeof Symbol<"u"&&Y[Symbol.iterator]||Y["@@iterator"];if(V)return(V=V.call(Y)).next.bind(V);if(Array.isArray(Y)||(V=N(Y))||ne&&Y&&typeof Y.length=="number"){V&&(Y=V);var H=0;return function(){return H>=Y.length?{done:!0}:{done:!1,value:Y[H++]}}}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 L(){return{async:!1,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=L();function S(Y){q.defaults=Y}var v=/[&<>"']/,f=/[&<>"']/g,g=/[<>"']|&(?!#?\w+;)/,i=/[<>"']|&(?!#?\w+;)/g,t={"&":"&","<":"<",">":">",'"':""","'":"'"},n=function(ne){return t[ne]};function a(Y,ne){if(ne){if(v.test(Y))return Y.replace(f,n)}else if(g.test(Y))return Y.replace(i,n);return Y}var r=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function c(Y){return Y.replace(r,function(ne,V){return V=V.toLowerCase(),V==="colon"?":":V.charAt(0)==="#"?V.charAt(1)==="x"?String.fromCharCode(parseInt(V.substring(2),16)):String.fromCharCode(+V.substring(1)):""})}var d=/(^|[^\[])\^/g;function s(Y,ne){Y=typeof Y=="string"?Y:Y.source,ne=ne||"";var V={replace:function($,oe){return oe=oe.source||oe,oe=oe.replace(d,"$1"),Y=Y.replace($,oe),V},getRegex:function(){return new RegExp(Y,ne)}};return V}var l=/[^\w:]/g,o=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function u(Y,ne,V){if(Y){var H;try{H=decodeURIComponent(c(V)).replace(l,"").toLowerCase()}catch{return null}if(H.indexOf("javascript:")===0||H.indexOf("vbscript:")===0||H.indexOf("data:")===0)return null}ne&&!o.test(V)&&(V=b(ne,V));try{V=encodeURI(V).replace(/%25/g,"%")}catch{return null}return V}var h={},w=/^[^:]+:\/*[^/]*$/,m=/^([^:]+:)[\s\S]*$/,p=/^([^:]+:\/*[^/]*)[\s\S]*$/;function b(Y,ne){h[" "+Y]||(w.test(Y)?h[" "+Y]=Y+"/":h[" "+Y]=M(Y,"/",!0)),Y=h[" "+Y];var V=Y.indexOf(":")===-1;return ne.substring(0,2)==="//"?V?ne:Y.replace(m,"$1")+ne:ne.charAt(0)==="/"?V?ne:Y.replace(p,"$1")+ne:Y+ne}var y={exec:function(){}};function k(Y){for(var ne=1,V,H;ne<arguments.length;ne++){V=arguments[ne];for(H in V)Object.prototype.hasOwnProperty.call(V,H)&&(Y[H]=V[H])}return Y}function D(Y,ne){var V=Y.replace(/\|/g,function(oe,re,X){for(var le=!1,me=re;--me>=0&&X[me]==="\\";)le=!le;return le?"|":" |"}),H=V.split(/ \|/),$=0;if(H[0].trim()||H.shift(),H.length>0&&!H[H.length-1].trim()&&H.pop(),H.length>ne)H.splice(ne);else for(;H.length<ne;)H.push("");for(;$<H.length;$++)H[$]=H[$].trim().replace(/\\\|/g,"|");return H}function M(Y,ne,V){var H=Y.length;if(H===0)return"";for(var $=0;$<H;){var oe=Y.charAt(H-$-1);if(oe===ne&&!V)$++;else if(oe!==ne&&V)$++;else break}return Y.slice(0,H-$)}function z(Y,ne){if(Y.indexOf(ne[1])===-1)return-1;for(var V=Y.length,H=0,$=0;$<V;$++)if(Y[$]==="\\")$++;else if(Y[$]===ne[0])H++;else if(Y[$]===ne[1]&&(H--,H<0))return $;return-1}function R(Y){Y&&Y.sanitize&&!Y.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 P(Y,ne){if(ne<1)return"";for(var V="";ne>1;)ne&1&&(V+=Y),ne>>=1,Y+=Y;return V+Y}function A(Y,ne,V,H){var $=ne.href,oe=ne.title?a(ne.title):null,re=Y[1].replace(/\\([\[\]])/g,"$1");if(Y[0].charAt(0)!=="!"){H.state.inLink=!0;var X={type:"link",raw:V,href:$,title:oe,text:re,tokens:H.inlineTokens(re)};return H.state.inLink=!1,X}return{type:"image",raw:V,href:$,title:oe,text:a(re)}}function T(Y,ne){var V=Y.match(/^(\s+)(?:```)/);if(V===null)return ne;var H=V[1];return ne.split(`
|
||
`).map(function($){var oe=$.match(/^\s+/);if(oe===null)return $;var re=oe[0];return re.length>=H.length?$.slice(H.length):$}).join(`
|
||
`)}var O=function(){function Y(V){this.options=V||q.defaults}var ne=Y.prototype;return ne.space=function(H){var $=this.rules.block.newline.exec(H);if($&&$[0].length>0)return{type:"space",raw:$[0]}},ne.code=function(H){var $=this.rules.block.code.exec(H);if($){var oe=$[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:$[0],codeBlockStyle:"indented",text:this.options.pedantic?oe:M(oe,`
|
||
`)}}},ne.fences=function(H){var $=this.rules.block.fences.exec(H);if($){var oe=$[0],re=T(oe,$[3]||"");return{type:"code",raw:oe,lang:$[2]?$[2].trim():$[2],text:re}}},ne.heading=function(H){var $=this.rules.block.heading.exec(H);if($){var oe=$[2].trim();if(/#$/.test(oe)){var re=M(oe,"#");(this.options.pedantic||!re||/ $/.test(re))&&(oe=re.trim())}return{type:"heading",raw:$[0],depth:$[1].length,text:oe,tokens:this.lexer.inline(oe)}}},ne.hr=function(H){var $=this.rules.block.hr.exec(H);if($)return{type:"hr",raw:$[0]}},ne.blockquote=function(H){var $=this.rules.block.blockquote.exec(H);if($){var oe=$[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:$[0],tokens:this.lexer.blockTokens(oe,[]),text:oe}}},ne.list=function(H){var $=this.rules.block.list.exec(H);if($){var oe,re,X,le,me,we,Le,Ee,Me,Ae,ke,fe,pe=$[1].trim(),ce=pe.length>1,be={type:"list",raw:"",ordered:ce,start:ce?+pe.slice(0,-1):"",loose:!1,items:[]};pe=ce?"\\d{1,9}\\"+pe.slice(-1):"\\"+pe,this.options.pedantic&&(pe=ce?pe:"[*+-]");for(var Se=new RegExp("^( {0,3}"+pe+")((?:[ ][^\\n]*)?(?:\\n|$))");H&&(fe=!1,!(!($=Se.exec(H))||this.rules.block.hr.test(H)));){if(oe=$[0],H=H.substring(oe.length),Ee=$[2].split(`
|
||
`,1)[0],Me=H.split(`
|
||
`,1)[0],this.options.pedantic?(le=2,ke=Ee.trimLeft()):(le=$[2].search(/[^ ]/),le=le>4?1:le,ke=Ee.slice(le),le+=$[1].length),we=!1,!Ee&&/^ *$/.test(Me)&&(oe+=Me+`
|
||
`,H=H.substring(Me.length+1),fe=!0),!fe)for(var Ie=new RegExp("^ {0,"+Math.min(3,le-1)+"}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))"),Ce=new RegExp("^ {0,"+Math.min(3,le-1)+"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"),ve=new RegExp("^ {0,"+Math.min(3,le-1)+"}(?:```|~~~)"),De=new RegExp("^ {0,"+Math.min(3,le-1)+"}#");H&&(Ae=H.split(`
|
||
`,1)[0],Ee=Ae,this.options.pedantic&&(Ee=Ee.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(ve.test(Ee)||De.test(Ee)||Ie.test(Ee)||Ce.test(H)));){if(Ee.search(/[^ ]/)>=le||!Ee.trim())ke+=`
|
||
`+Ee.slice(le);else if(!we)ke+=`
|
||
`+Ee;else break;!we&&!Ee.trim()&&(we=!0),oe+=Ae+`
|
||
`,H=H.substring(Ae.length+1)}be.loose||(Le?be.loose=!0:/\n *\n *$/.test(oe)&&(Le=!0)),this.options.gfm&&(re=/^\[[ xX]\] /.exec(ke),re&&(X=re[0]!=="[ ] ",ke=ke.replace(/^\[[ xX]\] +/,""))),be.items.push({type:"list_item",raw:oe,task:!!re,checked:X,loose:!1,text:ke}),be.raw+=oe}be.items[be.items.length-1].raw=oe.trimRight(),be.items[be.items.length-1].text=ke.trimRight(),be.raw=be.raw.trimRight();var Oe=be.items.length;for(me=0;me<Oe;me++){this.lexer.state.top=!1,be.items[me].tokens=this.lexer.blockTokens(be.items[me].text,[]);var Re=be.items[me].tokens.filter(function(Fe){return Fe.type==="space"}),xe=Re.every(function(Fe){for(var Be=Fe.raw.split(""),Ke=0,$e=I(Be),nt;!(nt=$e()).done;){var lt=nt.value;if(lt===`
|
||
`&&(Ke+=1),Ke>1)return!0}return!1});!be.loose&&Re.length&&xe&&(be.loose=!0,be.items[me].loose=!0)}return be}},ne.html=function(H){var $=this.rules.block.html.exec(H);if($){var oe={type:"html",raw:$[0],pre:!this.options.sanitizer&&($[1]==="pre"||$[1]==="script"||$[1]==="style"),text:$[0]};if(this.options.sanitize){var re=this.options.sanitizer?this.options.sanitizer($[0]):a($[0]);oe.type="paragraph",oe.text=re,oe.tokens=this.lexer.inline(re)}return oe}},ne.def=function(H){var $=this.rules.block.def.exec(H);if($){$[3]&&($[3]=$[3].substring(1,$[3].length-1));var oe=$[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:oe,raw:$[0],href:$[2],title:$[3]}}},ne.table=function(H){var $=this.rules.block.table.exec(H);if($){var oe={type:"table",header:D($[1]).map(function(Le){return{text:Le}}),align:$[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:$[3]&&$[3].trim()?$[3].replace(/\n[ \t]*$/,"").split(`
|
||
`):[]};if(oe.header.length===oe.align.length){oe.raw=$[0];var re=oe.align.length,X,le,me,we;for(X=0;X<re;X++)/^ *-+: *$/.test(oe.align[X])?oe.align[X]="right":/^ *:-+: *$/.test(oe.align[X])?oe.align[X]="center":/^ *:-+ *$/.test(oe.align[X])?oe.align[X]="left":oe.align[X]=null;for(re=oe.rows.length,X=0;X<re;X++)oe.rows[X]=D(oe.rows[X],oe.header.length).map(function(Le){return{text:Le}});for(re=oe.header.length,le=0;le<re;le++)oe.header[le].tokens=this.lexer.inline(oe.header[le].text);for(re=oe.rows.length,le=0;le<re;le++)for(we=oe.rows[le],me=0;me<we.length;me++)we[me].tokens=this.lexer.inline(we[me].text);return oe}}},ne.lheading=function(H){var $=this.rules.block.lheading.exec(H);if($)return{type:"heading",raw:$[0],depth:$[2].charAt(0)==="="?1:2,text:$[1],tokens:this.lexer.inline($[1])}},ne.paragraph=function(H){var $=this.rules.block.paragraph.exec(H);if($){var oe=$[1].charAt($[1].length-1)===`
|
||
`?$[1].slice(0,-1):$[1];return{type:"paragraph",raw:$[0],text:oe,tokens:this.lexer.inline(oe)}}},ne.text=function(H){var $=this.rules.block.text.exec(H);if($)return{type:"text",raw:$[0],text:$[0],tokens:this.lexer.inline($[0])}},ne.escape=function(H){var $=this.rules.inline.escape.exec(H);if($)return{type:"escape",raw:$[0],text:a($[1])}},ne.tag=function(H){var $=this.rules.inline.tag.exec(H);if($)return!this.lexer.state.inLink&&/^<a /i.test($[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test($[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test($[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test($[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:$[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer($[0]):a($[0]):$[0]}},ne.link=function(H){var $=this.rules.inline.link.exec(H);if($){var oe=$[2].trim();if(!this.options.pedantic&&/^</.test(oe)){if(!/>$/.test(oe))return;var re=M(oe.slice(0,-1),"\\");if((oe.length-re.length)%2===0)return}else{var X=z($[2],"()");if(X>-1){var le=$[0].indexOf("!")===0?5:4,me=le+$[1].length+X;$[2]=$[2].substring(0,X),$[0]=$[0].substring(0,me).trim(),$[3]=""}}var we=$[2],Le="";if(this.options.pedantic){var Ee=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(we);Ee&&(we=Ee[1],Le=Ee[3])}else Le=$[3]?$[3].slice(1,-1):"";return we=we.trim(),/^</.test(we)&&(this.options.pedantic&&!/>$/.test(oe)?we=we.slice(1):we=we.slice(1,-1)),A($,{href:we&&we.replace(this.rules.inline._escapes,"$1"),title:Le&&Le.replace(this.rules.inline._escapes,"$1")},$[0],this.lexer)}},ne.reflink=function(H,$){var oe;if((oe=this.rules.inline.reflink.exec(H))||(oe=this.rules.inline.nolink.exec(H))){var re=(oe[2]||oe[1]).replace(/\s+/g," ");if(re=$[re.toLowerCase()],!re||!re.href){var X=oe[0].charAt(0);return{type:"text",raw:X,text:X}}return A(oe,re,oe[0],this.lexer)}},ne.emStrong=function(H,$,oe){oe===void 0&&(oe="");var re=this.rules.inline.emStrong.lDelim.exec(H);if(!!re&&!(re[3]&&oe.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 X=re[1]||re[2]||"";if(!X||X&&(oe===""||this.rules.inline.punctuation.exec(oe))){var le=re[0].length-1,me,we,Le=le,Ee=0,Me=re[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(Me.lastIndex=0,$=$.slice(-1*H.length+le);(re=Me.exec($))!=null;)if(me=re[1]||re[2]||re[3]||re[4]||re[5]||re[6],!!me){if(we=me.length,re[3]||re[4]){Le+=we;continue}else if((re[5]||re[6])&&le%3&&!((le+we)%3)){Ee+=we;continue}if(Le-=we,!(Le>0)){if(we=Math.min(we,we+Le+Ee),Math.min(le,we)%2){var Ae=H.slice(1,le+re.index+we);return{type:"em",raw:H.slice(0,le+re.index+we+1),text:Ae,tokens:this.lexer.inlineTokens(Ae)}}var ke=H.slice(2,le+re.index+we-1);return{type:"strong",raw:H.slice(0,le+re.index+we+1),text:ke,tokens:this.lexer.inlineTokens(ke)}}}}}},ne.codespan=function(H){var $=this.rules.inline.code.exec(H);if($){var oe=$[2].replace(/\n/g," "),re=/[^ ]/.test(oe),X=/^ /.test(oe)&&/ $/.test(oe);return re&&X&&(oe=oe.substring(1,oe.length-1)),oe=a(oe,!0),{type:"codespan",raw:$[0],text:oe}}},ne.br=function(H){var $=this.rules.inline.br.exec(H);if($)return{type:"br",raw:$[0]}},ne.del=function(H){var $=this.rules.inline.del.exec(H);if($)return{type:"del",raw:$[0],text:$[2],tokens:this.lexer.inlineTokens($[2])}},ne.autolink=function(H,$){var oe=this.rules.inline.autolink.exec(H);if(oe){var re,X;return oe[2]==="@"?(re=a(this.options.mangle?$(oe[1]):oe[1]),X="mailto:"+re):(re=a(oe[1]),X=re),{type:"link",raw:oe[0],text:re,href:X,tokens:[{type:"text",raw:re,text:re}]}}},ne.url=function(H,$){var oe;if(oe=this.rules.inline.url.exec(H)){var re,X;if(oe[2]==="@")re=a(this.options.mangle?$(oe[0]):oe[0]),X="mailto:"+re;else{var le;do le=oe[0],oe[0]=this.rules.inline._backpedal.exec(oe[0])[0];while(le!==oe[0]);re=a(oe[0]),oe[1]==="www."?X="http://"+re:X=re}return{type:"link",raw:oe[0],text:re,href:X,tokens:[{type:"text",raw:re,text:re}]}}},ne.inlineText=function(H,$){var oe=this.rules.inline.text.exec(H);if(oe){var re;return this.lexer.state.inRawBlock?re=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(oe[0]):a(oe[0]):oe[0]:re=a(this.options.smartypants?$(oe[0]):oe[0]),{type:"text",raw:oe[0],text:re}}},Y}(),B={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:y,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};B._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/,B._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,B.def=s(B.def).replace("label",B._label).replace("title",B._title).getRegex(),B.bullet=/(?:[*+-]|\d{1,9}[.)])/,B.listItemStart=s(/^( *)(bull) */).replace("bull",B.bullet).getRegex(),B.list=s(B.list).replace(/bull/g,B.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+B.def.source+")").getRegex(),B._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",B._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,B.html=s(B.html,"i").replace("comment",B._comment).replace("tag",B._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),B.paragraph=s(B._paragraph).replace("hr",B.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",B._tag).getRegex(),B.blockquote=s(B.blockquote).replace("paragraph",B.paragraph).getRegex(),B.normal=k({},B),B.gfm=k({},B.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),B.gfm.table=s(B.gfm.table).replace("hr",B.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",B._tag).getRegex(),B.gfm.paragraph=s(B._paragraph).replace("hr",B.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",B.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",B._tag).getRegex(),B.pedantic=k({},B.normal,{html:s(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",B._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:y,paragraph:s(B.normal._paragraph).replace("hr",B.hr).replace("heading",` *#{1,6} *[^
|
||
]`).replace("lheading",B.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var W={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:y,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:y,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};W._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",W.punctuation=s(W.punctuation).replace(/punctuation/g,W._punctuation).getRegex(),W.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,W.escapedEmSt=/\\\*|\\_/g,W._comment=s(B._comment).replace("(?:-->|$)","-->").getRegex(),W.emStrong.lDelim=s(W.emStrong.lDelim).replace(/punct/g,W._punctuation).getRegex(),W.emStrong.rDelimAst=s(W.emStrong.rDelimAst,"g").replace(/punct/g,W._punctuation).getRegex(),W.emStrong.rDelimUnd=s(W.emStrong.rDelimUnd,"g").replace(/punct/g,W._punctuation).getRegex(),W._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,W._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,W._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])?)+(?![-_])/,W.autolink=s(W.autolink).replace("scheme",W._scheme).replace("email",W._email).getRegex(),W._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,W.tag=s(W.tag).replace("comment",W._comment).replace("attribute",W._attribute).getRegex(),W._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,W._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,W._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,W.link=s(W.link).replace("label",W._label).replace("href",W._href).replace("title",W._title).getRegex(),W.reflink=s(W.reflink).replace("label",W._label).replace("ref",B._label).getRegex(),W.nolink=s(W.nolink).replace("ref",B._label).getRegex(),W.reflinkSearch=s(W.reflinkSearch,"g").replace("reflink",W.reflink).replace("nolink",W.nolink).getRegex(),W.normal=k({},W),W.pedantic=k({},W.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:s(/^!?\[(label)\]\((.*?)\)/).replace("label",W._label).getRegex(),reflink:s(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",W._label).getRegex()}),W.gfm=k({},W.normal,{escape:s(W.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),W.gfm.url=s(W.gfm.url,"i").replace("email",W.gfm._extended_email).getRegex(),W.breaks=k({},W.gfm,{br:s(W.br).replace("{2,}","*").getRegex(),text:s(W.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});function j(Y){return Y.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 F(Y){var ne="",V,H,$=Y.length;for(V=0;V<$;V++)H=Y.charCodeAt(V),Math.random()>.5&&(H="x"+H.toString(16)),ne+="&#"+H+";";return ne}var U=function(){function Y(V){this.tokens=[],this.tokens.links=Object.create(null),this.options=V||q.defaults,this.options.tokenizer=this.options.tokenizer||new O,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 H={block:B.normal,inline:W.normal};this.options.pedantic?(H.block=B.pedantic,H.inline=W.pedantic):this.options.gfm&&(H.block=B.gfm,this.options.breaks?H.inline=W.breaks:H.inline=W.gfm),this.tokenizer.rules=H}Y.lex=function(H,$){var oe=new Y($);return oe.lex(H)},Y.lexInline=function(H,$){var oe=new Y($);return oe.inlineTokens(H)};var ne=Y.prototype;return ne.lex=function(H){H=H.replace(/\r\n|\r/g,`
|
||
`),this.blockTokens(H,this.tokens);for(var $;$=this.inlineQueue.shift();)this.inlineTokens($.src,$.tokens);return this.tokens},ne.blockTokens=function(H,$){var oe=this;$===void 0&&($=[]),this.options.pedantic?H=H.replace(/\t/g," ").replace(/^ +$/gm,""):H=H.replace(/^( *)(\t+)/gm,function(Le,Ee,Me){return Ee+" ".repeat(Me.length)});for(var re,X,le,me;H;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(function(Le){return(re=Le.call({lexer:oe},H,$))?(H=H.substring(re.raw.length),$.push(re),!0):!1}))){if(re=this.tokenizer.space(H)){H=H.substring(re.raw.length),re.raw.length===1&&$.length>0?$[$.length-1].raw+=`
|
||
`:$.push(re);continue}if(re=this.tokenizer.code(H)){H=H.substring(re.raw.length),X=$[$.length-1],X&&(X.type==="paragraph"||X.type==="text")?(X.raw+=`
|
||
`+re.raw,X.text+=`
|
||
`+re.text,this.inlineQueue[this.inlineQueue.length-1].src=X.text):$.push(re);continue}if(re=this.tokenizer.fences(H)){H=H.substring(re.raw.length),$.push(re);continue}if(re=this.tokenizer.heading(H)){H=H.substring(re.raw.length),$.push(re);continue}if(re=this.tokenizer.hr(H)){H=H.substring(re.raw.length),$.push(re);continue}if(re=this.tokenizer.blockquote(H)){H=H.substring(re.raw.length),$.push(re);continue}if(re=this.tokenizer.list(H)){H=H.substring(re.raw.length),$.push(re);continue}if(re=this.tokenizer.html(H)){H=H.substring(re.raw.length),$.push(re);continue}if(re=this.tokenizer.def(H)){H=H.substring(re.raw.length),X=$[$.length-1],X&&(X.type==="paragraph"||X.type==="text")?(X.raw+=`
|
||
`+re.raw,X.text+=`
|
||
`+re.raw,this.inlineQueue[this.inlineQueue.length-1].src=X.text):this.tokens.links[re.tag]||(this.tokens.links[re.tag]={href:re.href,title:re.title});continue}if(re=this.tokenizer.table(H)){H=H.substring(re.raw.length),$.push(re);continue}if(re=this.tokenizer.lheading(H)){H=H.substring(re.raw.length),$.push(re);continue}if(le=H,this.options.extensions&&this.options.extensions.startBlock&&function(){var Le=1/0,Ee=H.slice(1),Me=void 0;oe.options.extensions.startBlock.forEach(function(Ae){Me=Ae.call({lexer:this},Ee),typeof Me=="number"&&Me>=0&&(Le=Math.min(Le,Me))}),Le<1/0&&Le>=0&&(le=H.substring(0,Le+1))}(),this.state.top&&(re=this.tokenizer.paragraph(le))){X=$[$.length-1],me&&X.type==="paragraph"?(X.raw+=`
|
||
`+re.raw,X.text+=`
|
||
`+re.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=X.text):$.push(re),me=le.length!==H.length,H=H.substring(re.raw.length);continue}if(re=this.tokenizer.text(H)){H=H.substring(re.raw.length),X=$[$.length-1],X&&X.type==="text"?(X.raw+=`
|
||
`+re.raw,X.text+=`
|
||
`+re.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=X.text):$.push(re);continue}if(H){var we="Infinite loop on byte: "+H.charCodeAt(0);if(this.options.silent){console.error(we);break}else throw new Error(we)}}return this.state.top=!0,$},ne.inline=function(H,$){return $===void 0&&($=[]),this.inlineQueue.push({src:H,tokens:$}),$},ne.inlineTokens=function(H,$){var oe=this;$===void 0&&($=[]);var re,X,le,me=H,we,Le,Ee;if(this.tokens.links){var Me=Object.keys(this.tokens.links);if(Me.length>0)for(;(we=this.tokenizer.rules.inline.reflinkSearch.exec(me))!=null;)Me.includes(we[0].slice(we[0].lastIndexOf("[")+1,-1))&&(me=me.slice(0,we.index)+"["+P("a",we[0].length-2)+"]"+me.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(we=this.tokenizer.rules.inline.blockSkip.exec(me))!=null;)me=me.slice(0,we.index)+"["+P("a",we[0].length-2)+"]"+me.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(we=this.tokenizer.rules.inline.escapedEmSt.exec(me))!=null;)me=me.slice(0,we.index)+"++"+me.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;H;)if(Le||(Ee=""),Le=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(function(ke){return(re=ke.call({lexer:oe},H,$))?(H=H.substring(re.raw.length),$.push(re),!0):!1}))){if(re=this.tokenizer.escape(H)){H=H.substring(re.raw.length),$.push(re);continue}if(re=this.tokenizer.tag(H)){H=H.substring(re.raw.length),X=$[$.length-1],X&&re.type==="text"&&X.type==="text"?(X.raw+=re.raw,X.text+=re.text):$.push(re);continue}if(re=this.tokenizer.link(H)){H=H.substring(re.raw.length),$.push(re);continue}if(re=this.tokenizer.reflink(H,this.tokens.links)){H=H.substring(re.raw.length),X=$[$.length-1],X&&re.type==="text"&&X.type==="text"?(X.raw+=re.raw,X.text+=re.text):$.push(re);continue}if(re=this.tokenizer.emStrong(H,me,Ee)){H=H.substring(re.raw.length),$.push(re);continue}if(re=this.tokenizer.codespan(H)){H=H.substring(re.raw.length),$.push(re);continue}if(re=this.tokenizer.br(H)){H=H.substring(re.raw.length),$.push(re);continue}if(re=this.tokenizer.del(H)){H=H.substring(re.raw.length),$.push(re);continue}if(re=this.tokenizer.autolink(H,F)){H=H.substring(re.raw.length),$.push(re);continue}if(!this.state.inLink&&(re=this.tokenizer.url(H,F))){H=H.substring(re.raw.length),$.push(re);continue}if(le=H,this.options.extensions&&this.options.extensions.startInline&&function(){var ke=1/0,fe=H.slice(1),pe=void 0;oe.options.extensions.startInline.forEach(function(ce){pe=ce.call({lexer:this},fe),typeof pe=="number"&&pe>=0&&(ke=Math.min(ke,pe))}),ke<1/0&&ke>=0&&(le=H.substring(0,ke+1))}(),re=this.tokenizer.inlineText(le,j)){H=H.substring(re.raw.length),re.raw.slice(-1)!=="_"&&(Ee=re.raw.slice(-1)),Le=!0,X=$[$.length-1],X&&X.type==="text"?(X.raw+=re.raw,X.text+=re.text):$.push(re);continue}if(H){var Ae="Infinite loop on byte: "+H.charCodeAt(0);if(this.options.silent){console.error(Ae);break}else throw new Error(Ae)}}return $},C(Y,null,[{key:"rules",get:function(){return{block:B,inline:W}}}]),Y}(),Q=function(){function Y(V){this.options=V||q.defaults}var ne=Y.prototype;return ne.code=function(H,$,oe){var re=($||"").match(/\S*/)[0];if(this.options.highlight){var X=this.options.highlight(H,re);X!=null&&X!==H&&(oe=!0,H=X)}return H=H.replace(/\n$/,"")+`
|
||
`,re?'<pre><code class="'+this.options.langPrefix+a(re,!0)+'">'+(oe?H:a(H,!0))+`</code></pre>
|
||
`:"<pre><code>"+(oe?H:a(H,!0))+`</code></pre>
|
||
`},ne.blockquote=function(H){return`<blockquote>
|
||
`+H+`</blockquote>
|
||
`},ne.html=function(H){return H},ne.heading=function(H,$,oe,re){if(this.options.headerIds){var X=this.options.headerPrefix+re.slug(oe);return"<h"+$+' id="'+X+'">'+H+"</h"+$+`>
|
||
`}return"<h"+$+">"+H+"</h"+$+`>
|
||
`},ne.hr=function(){return this.options.xhtml?`<hr/>
|
||
`:`<hr>
|
||
`},ne.list=function(H,$,oe){var re=$?"ol":"ul",X=$&&oe!==1?' start="'+oe+'"':"";return"<"+re+X+`>
|
||
`+H+"</"+re+`>
|
||
`},ne.listitem=function(H){return"<li>"+H+`</li>
|
||
`},ne.checkbox=function(H){return"<input "+(H?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},ne.paragraph=function(H){return"<p>"+H+`</p>
|
||
`},ne.table=function(H,$){return $&&($="<tbody>"+$+"</tbody>"),`<table>
|
||
<thead>
|
||
`+H+`</thead>
|
||
`+$+`</table>
|
||
`},ne.tablerow=function(H){return`<tr>
|
||
`+H+`</tr>
|
||
`},ne.tablecell=function(H,$){var oe=$.header?"th":"td",re=$.align?"<"+oe+' align="'+$.align+'">':"<"+oe+">";return re+H+("</"+oe+`>
|
||
`)},ne.strong=function(H){return"<strong>"+H+"</strong>"},ne.em=function(H){return"<em>"+H+"</em>"},ne.codespan=function(H){return"<code>"+H+"</code>"},ne.br=function(){return this.options.xhtml?"<br/>":"<br>"},ne.del=function(H){return"<del>"+H+"</del>"},ne.link=function(H,$,oe){if(H=u(this.options.sanitize,this.options.baseUrl,H),H===null)return oe;var re='<a href="'+a(H)+'"';return $&&(re+=' title="'+$+'"'),re+=">"+oe+"</a>",re},ne.image=function(H,$,oe){if(H=u(this.options.sanitize,this.options.baseUrl,H),H===null)return oe;var re='<img src="'+H+'" alt="'+oe+'"';return $&&(re+=' title="'+$+'"'),re+=this.options.xhtml?"/>":">",re},ne.text=function(H){return H},Y}(),se=function(){function Y(){}var ne=Y.prototype;return ne.strong=function(H){return H},ne.em=function(H){return H},ne.codespan=function(H){return H},ne.del=function(H){return H},ne.html=function(H){return H},ne.text=function(H){return H},ne.link=function(H,$,oe){return""+oe},ne.image=function(H,$,oe){return""+oe},ne.br=function(){return""},Y}(),he=function(){function Y(){this.seen={}}var ne=Y.prototype;return ne.serialize=function(H){return H.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},ne.getNextSafeSlug=function(H,$){var oe=H,re=0;if(this.seen.hasOwnProperty(oe)){re=this.seen[H];do re++,oe=H+"-"+re;while(this.seen.hasOwnProperty(oe))}return $||(this.seen[H]=re,this.seen[oe]=0),oe},ne.slug=function(H,$){$===void 0&&($={});var oe=this.serialize(H);return this.getNextSafeSlug(oe,$.dryrun)},Y}(),ie=function(){function Y(V){this.options=V||q.defaults,this.options.renderer=this.options.renderer||new Q,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new se,this.slugger=new he}Y.parse=function(H,$){var oe=new Y($);return oe.parse(H)},Y.parseInline=function(H,$){var oe=new Y($);return oe.parseInline(H)};var ne=Y.prototype;return ne.parse=function(H,$){$===void 0&&($=!0);var oe="",re,X,le,me,we,Le,Ee,Me,Ae,ke,fe,pe,ce,be,Se,Ie,Ce,ve,De,Oe=H.length;for(re=0;re<Oe;re++){if(ke=H[re],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[ke.type]&&(De=this.options.extensions.renderers[ke.type].call({parser:this},ke),De!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(ke.type))){oe+=De||"";continue}switch(ke.type){case"space":continue;case"hr":{oe+=this.renderer.hr();continue}case"heading":{oe+=this.renderer.heading(this.parseInline(ke.tokens),ke.depth,c(this.parseInline(ke.tokens,this.textRenderer)),this.slugger);continue}case"code":{oe+=this.renderer.code(ke.text,ke.lang,ke.escaped);continue}case"table":{for(Me="",Ee="",me=ke.header.length,X=0;X<me;X++)Ee+=this.renderer.tablecell(this.parseInline(ke.header[X].tokens),{header:!0,align:ke.align[X]});for(Me+=this.renderer.tablerow(Ee),Ae="",me=ke.rows.length,X=0;X<me;X++){for(Le=ke.rows[X],Ee="",we=Le.length,le=0;le<we;le++)Ee+=this.renderer.tablecell(this.parseInline(Le[le].tokens),{header:!1,align:ke.align[le]});Ae+=this.renderer.tablerow(Ee)}oe+=this.renderer.table(Me,Ae);continue}case"blockquote":{Ae=this.parse(ke.tokens),oe+=this.renderer.blockquote(Ae);continue}case"list":{for(fe=ke.ordered,pe=ke.start,ce=ke.loose,me=ke.items.length,Ae="",X=0;X<me;X++)Se=ke.items[X],Ie=Se.checked,Ce=Se.task,be="",Se.task&&(ve=this.renderer.checkbox(Ie),ce?Se.tokens.length>0&&Se.tokens[0].type==="paragraph"?(Se.tokens[0].text=ve+" "+Se.tokens[0].text,Se.tokens[0].tokens&&Se.tokens[0].tokens.length>0&&Se.tokens[0].tokens[0].type==="text"&&(Se.tokens[0].tokens[0].text=ve+" "+Se.tokens[0].tokens[0].text)):Se.tokens.unshift({type:"text",text:ve}):be+=ve),be+=this.parse(Se.tokens,ce),Ae+=this.renderer.listitem(be,Ce,Ie);oe+=this.renderer.list(Ae,fe,pe);continue}case"html":{oe+=this.renderer.html(ke.text);continue}case"paragraph":{oe+=this.renderer.paragraph(this.parseInline(ke.tokens));continue}case"text":{for(Ae=ke.tokens?this.parseInline(ke.tokens):ke.text;re+1<Oe&&H[re+1].type==="text";)ke=H[++re],Ae+=`
|
||
`+(ke.tokens?this.parseInline(ke.tokens):ke.text);oe+=$?this.renderer.paragraph(Ae):Ae;continue}default:{var Re='Token with "'+ke.type+'" type was not found.';if(this.options.silent){console.error(Re);return}else throw new Error(Re)}}}return oe},ne.parseInline=function(H,$){$=$||this.renderer;var oe="",re,X,le,me=H.length;for(re=0;re<me;re++){if(X=H[re],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[X.type]&&(le=this.options.extensions.renderers[X.type].call({parser:this},X),le!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(X.type))){oe+=le||"";continue}switch(X.type){case"escape":{oe+=$.text(X.text);break}case"html":{oe+=$.html(X.text);break}case"link":{oe+=$.link(X.href,X.title,this.parseInline(X.tokens,$));break}case"image":{oe+=$.image(X.href,X.title,X.text);break}case"strong":{oe+=$.strong(this.parseInline(X.tokens,$));break}case"em":{oe+=$.em(this.parseInline(X.tokens,$));break}case"codespan":{oe+=$.codespan(X.text);break}case"br":{oe+=$.br();break}case"del":{oe+=$.del(this.parseInline(X.tokens,$));break}case"text":{oe+=$.text(X.text);break}default:{var we='Token with "'+X.type+'" type was not found.';if(this.options.silent){console.error(we);return}else throw new Error(we)}}}return oe},Y}();function ue(Y,ne,V){if(typeof Y>"u"||Y===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Y!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Y)+", string expected");if(typeof ne=="function"&&(V=ne,ne=null),ne=k({},ue.defaults,ne||{}),R(ne),V){var H=ne.highlight,$;try{$=U.lex(Y,ne)}catch(me){return V(me)}var oe=function(we){var Le;if(!we)try{ne.walkTokens&&ue.walkTokens($,ne.walkTokens),Le=ie.parse($,ne)}catch(Ee){we=Ee}return ne.highlight=H,we?V(we):V(null,Le)};if(!H||H.length<3||(delete ne.highlight,!$.length))return oe();var re=0;ue.walkTokens($,function(me){me.type==="code"&&(re++,setTimeout(function(){H(me.text,me.lang,function(we,Le){if(we)return oe(we);Le!=null&&Le!==me.text&&(me.text=Le,me.escaped=!0),re--,re===0&&oe()})},0))}),re===0&&oe();return}function X(me){if(me.message+=`
|
||
Please report this to https://github.com/markedjs/marked.`,ne.silent)return"<p>An error occurred:</p><pre>"+a(me.message+"",!0)+"</pre>";throw me}try{var le=U.lex(Y,ne);if(ne.walkTokens){if(ne.async)return Promise.all(ue.walkTokens(le,ne.walkTokens)).then(function(){return ie.parse(le,ne)}).catch(X);ue.walkTokens(le,ne.walkTokens)}return ie.parse(le,ne)}catch(me){X(me)}}ue.options=ue.setOptions=function(Y){return k(ue.defaults,Y),S(ue.defaults),ue},ue.getDefaults=L,ue.defaults=q.defaults,ue.use=function(){for(var Y=arguments.length,ne=new Array(Y),V=0;V<Y;V++)ne[V]=arguments[V];var H=k.apply(void 0,[{}].concat(ne)),$=ue.defaults.extensions||{renderers:{},childTokens:{}},oe;ne.forEach(function(re){if(re.extensions&&(oe=!0,re.extensions.forEach(function(le){if(!le.name)throw new Error("extension name required");if(le.renderer){var me=$.renderers?$.renderers[le.name]:null;me?$.renderers[le.name]=function(){for(var we=arguments.length,Le=new Array(we),Ee=0;Ee<we;Ee++)Le[Ee]=arguments[Ee];var Me=le.renderer.apply(this,Le);return Me===!1&&(Me=me.apply(this,Le)),Me}:$.renderers[le.name]=le.renderer}if(le.tokenizer){if(!le.level||le.level!=="block"&&le.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");$[le.level]?$[le.level].unshift(le.tokenizer):$[le.level]=[le.tokenizer],le.start&&(le.level==="block"?$.startBlock?$.startBlock.push(le.start):$.startBlock=[le.start]:le.level==="inline"&&($.startInline?$.startInline.push(le.start):$.startInline=[le.start]))}le.childTokens&&($.childTokens[le.name]=le.childTokens)})),re.renderer&&function(){var le=ue.defaults.renderer||new Q,me=function(Ee){var Me=le[Ee];le[Ee]=function(){for(var Ae=arguments.length,ke=new Array(Ae),fe=0;fe<Ae;fe++)ke[fe]=arguments[fe];var pe=re.renderer[Ee].apply(le,ke);return pe===!1&&(pe=Me.apply(le,ke)),pe}};for(var we in re.renderer)me(we);H.renderer=le}(),re.tokenizer&&function(){var le=ue.defaults.tokenizer||new O,me=function(Ee){var Me=le[Ee];le[Ee]=function(){for(var Ae=arguments.length,ke=new Array(Ae),fe=0;fe<Ae;fe++)ke[fe]=arguments[fe];var pe=re.tokenizer[Ee].apply(le,ke);return pe===!1&&(pe=Me.apply(le,ke)),pe}};for(var we in re.tokenizer)me(we);H.tokenizer=le}(),re.walkTokens){var X=ue.defaults.walkTokens;H.walkTokens=function(le){var me=[];return me.push(re.walkTokens.call(this,le)),X&&(me=me.concat(X.call(this,le))),me}}oe&&(H.extensions=$),ue.setOptions(H)})},ue.walkTokens=function(Y,ne){for(var V=[],H=function(){var X=oe.value;switch(V=V.concat(ne.call(ue,X)),X.type){case"table":{for(var le=I(X.header),me;!(me=le()).done;){var we=me.value;V=V.concat(ue.walkTokens(we.tokens,ne))}for(var Le=I(X.rows),Ee;!(Ee=Le()).done;)for(var Me=Ee.value,Ae=I(Me),ke;!(ke=Ae()).done;){var fe=ke.value;V=V.concat(ue.walkTokens(fe.tokens,ne))}break}case"list":{V=V.concat(ue.walkTokens(X.items,ne));break}default:ue.defaults.extensions&&ue.defaults.extensions.childTokens&&ue.defaults.extensions.childTokens[X.type]?ue.defaults.extensions.childTokens[X.type].forEach(function(pe){V=V.concat(ue.walkTokens(X[pe],ne))}):X.tokens&&(V=V.concat(ue.walkTokens(X.tokens,ne)))}},$=I(Y),oe;!(oe=$()).done;)H();return V},ue.parseInline=function(Y,ne){if(typeof Y>"u"||Y===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof Y!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(Y)+", string expected");ne=k({},ue.defaults,ne||{}),R(ne);try{var V=U.lexInline(Y,ne);return ne.walkTokens&&ue.walkTokens(V,ne.walkTokens),ie.parseInline(V,ne)}catch(H){if(H.message+=`
|
||
Please report this to https://github.com/markedjs/marked.`,ne.silent)return"<p>An error occurred:</p><pre>"+a(H.message+"",!0)+"</pre>";throw H}},ue.Parser=ie,ue.parser=ie.parse,ue.Renderer=Q,ue.TextRenderer=se,ue.Lexer=U,ue.lexer=U.lex,ue.Tokenizer=O,ue.Slugger=he,ue.parse=ue;var J=ue.options,x=ue.setOptions,G=ue.use,te=ue.walkTokens,Z=ue.parseInline,ae=ue,de=ie.parse,K=U.lex;q.Lexer=U,q.Parser=ie,q.Renderer=Q,q.Slugger=he,q.TextRenderer=se,q.Tokenizer=O,q.getDefaults=L,q.lexer=K,q.marked=ue,q.options=J,q.parse=ae,q.parseInline=Z,q.parser=de,q.setOptions=x,q.use=G,q.walkTokens=te,Object.defineProperty(q,"__esModule",{value:!0})}),define(_[101],ee([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(_[127],ee([1,0,101]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DataTransfers=void 0,e.DataTransfers={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:C.Mimes.text}}),define(_[347],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayNavigator=void 0;class C{constructor(E,I=0,L=E.length,S=I-1){this.a=E,this.b=I,this.c=L,this.d=S}current(){return this.d===this.b-1||this.d===this.c?null:this.a[this.d]}next(){return this.d=Math.min(this.d+1,this.c),this.current()}previous(){return this.d=Math.max(this.d-1,this.b-1),this.current()}first(){return this.d=this.b,this.current()}last(){return this.d=this.c-1,this.current()}}e.ArrayNavigator=C}),define(_[348],ee([1,0,347]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HistoryNavigator=void 0;class N{constructor(I=[],L=10){this.h(I),this.b=L,this.d()}getHistory(){return this.i}add(I){this.a.delete(I),this.a.add(I),this.d()}next(){return this.g()!==this.i.length-1?this.c.next():null}previous(){return this.g()!==0?this.c.previous():null}current(){return this.c.current()}first(){return this.c.first()}last(){return this.c.last()}isLast(){return this.g()===this.i.length-1}isNowhere(){return this.c.current()===null}has(I){return this.a.has(I)}d(){this.f();const I=this.i;this.c=new C.ArrayNavigator(I,0,I.length,I.length)}f(){const I=this.i;I.length>this.b&&this.h(I.slice(I.length-this.b))}g(){const I=this.c.current();return I?this.i.indexOf(I):-1}h(I){this.a=new Set;for(const L of I)this.a.add(L)}get i(){const I=[];return this.a.forEach(L=>I.push(L)),I}}e.HistoryNavigator=N}),define(_[128],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SlidingWindowAverage=e.MovingAverage=e.clamp=void 0;function C(I,L,S){return Math.min(Math.max(I,L),S)}e.clamp=C;class N{constructor(){this.a=1,this.b=0}update(L){return this.b=this.b+(L-this.b)/this.a,this.a+=1,this.b}get value(){return this.b}}e.MovingAverage=N;class E{constructor(L){this.a=0,this.b=0,this.c=[],this.d=0,this.e=0,this.c=new Array(L),this.c.fill(0,0,L)}update(L){const S=this.c[this.d];return this.c[this.d]=L,this.d=(this.d+1)%this.c.length,this.e-=S,this.e+=L,this.a<this.c.length&&(this.a+=1),this.b=this.e/this.a,this.b}get value(){return this.b}}e.SlidingWindowAverage=E}),define(_[151],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Range=void 0;var C;(function(N){function E(v,f){if(v.start>=f.end||f.start>=v.end)return{start:0,end:0};const g=Math.max(v.start,f.start),i=Math.min(v.end,f.end);return i-g<=0?{start:0,end:0}:{start:g,end:i}}N.intersect=E;function I(v){return v.end-v.start<=0}N.isEmpty=I;function L(v,f){return!I(E(v,f))}N.intersects=L;function S(v,f){const g=[],i={start:v.start,end:Math.min(f.start,v.end)},t={start:Math.max(f.end,v.start),end:v.end};return I(i)||g.push(i),I(t)||g.push(t),g}N.relativeComplement=S})(C=e.Range||(e.Range={}))}),define(_[349],ee([1,0,151]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RangeMap=e.consolidate=e.shift=e.groupIntersect=void 0;function N(v,f){const g=[];for(const i of f){if(v.start>=i.range.end)continue;if(v.end<i.range.start)break;const t=C.Range.intersect(v,i.range);C.Range.isEmpty(t)||g.push({range:t,size:i.size})}return g}e.groupIntersect=N;function E({start:v,end:f},g){return{start:v+g,end:f+g}}e.shift=E;function I(v){const f=[];let g=null;for(const i of v){const t=i.range.start,n=i.range.end,a=i.size;if(g&&a===g.size){g.range.end=n;continue}g={range:{start:t,end:n},size:a},f.push(g)}return f}e.consolidate=I;function L(...v){return I(v.reduce((f,g)=>f.concat(g),[]))}class S{constructor(){this.a=[],this.b=0}splice(f,g,i=[]){const t=i.length-g,n=N({start:0,end:f},this.a),a=N({start:f+g,end:Number.POSITIVE_INFINITY},this.a).map(c=>({range:E(c.range,t),size:c.size})),r=i.map((c,d)=>({range:{start:f+d,end:f+d+1},size:c.size}));this.a=L(n,r,a),this.b=this.a.reduce((c,d)=>c+d.size*(d.range.end-d.range.start),0)}get count(){const f=this.a.length;return f?this.a[f-1].range.end:0}get size(){return this.b}indexAt(f){if(f<0)return-1;let g=0,i=0;for(const t of this.a){const n=t.range.end-t.range.start,a=i+n*t.size;if(f<a)return g+Math.floor((f-i)/t.size);g+=n,i=a}return g}indexAfter(f){return Math.min(this.indexAt(f)+1,this.count)}positionAt(f){if(f<0)return-1;let g=0,i=0;for(const t of this.a){const n=t.range.end-t.range.start,a=i+n;if(f<a)return g+(f-i)*t.size;g+=n*t.size,i=a}return-1}}e.RangeMap=S}),define(_[9],ee([1,0,239,100]),function(q,e,C,N){"use strict";var E;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 I(X){return!X||typeof X!="string"?!0:X.trim().length===0}e.isFalsyOrWhitespace=I;const L=/{(\d+)}/g;function S(X,...le){return le.length===0?X:X.replace(L,function(me,we){const Le=parseInt(we,10);return isNaN(Le)||Le<0||Le>=le.length?me:le[Le]})}e.format=S;function v(X){return X.replace(/[<>&]/g,function(le){switch(le){case"<":return"<";case">":return">";case"&":return"&";default:return le}})}e.escape=v;function f(X){return X.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}e.escapeRegExpCharacters=f;function g(X,le=" "){const me=i(X,le);return t(me,le)}e.trim=g;function i(X,le){if(!X||!le)return X;const me=le.length;if(me===0||X.length===0)return X;let we=0;for(;X.indexOf(le,we)===we;)we=we+me;return X.substring(we)}e.ltrim=i;function t(X,le){if(!X||!le)return X;const me=le.length,we=X.length;if(me===0||we===0)return X;let Le=we,Ee=-1;for(;Ee=X.lastIndexOf(le,Le-1),!(Ee===-1||Ee+me!==Le);){if(Ee===0)return"";Le=Ee}return X.substring(0,Le)}e.rtrim=t;function n(X){return X.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}e.convertSimple2RegExpPattern=n;function a(X){return X.replace(/\*/g,"")}e.stripWildcards=a;function r(X,le,me={}){if(!X)throw new Error("Cannot create regex from empty string");le||(X=f(X)),me.wholeWord&&(/\B/.test(X.charAt(0))||(X="\\b"+X),/\B/.test(X.charAt(X.length-1))||(X=X+"\\b"));let we="";return me.global&&(we+="g"),me.matchCase||(we+="i"),me.multiline&&(we+="m"),me.unicode&&(we+="u"),new RegExp(X,we)}e.createRegExp=r;function c(X){return X.source==="^"||X.source==="^$"||X.source==="$"||X.source==="^\\s*$"?!1:!!(X.exec("")&&X.lastIndex===0)}e.regExpLeadsToEndlessLoop=c;function d(X){return(X.global?"g":"")+(X.ignoreCase?"i":"")+(X.multiline?"m":"")+(X.unicode?"u":"")}e.regExpFlags=d;function s(X){return X.split(/\r\n|\r|\n/)}e.splitLines=s;function l(X){for(let le=0,me=X.length;le<me;le++){const we=X.charCodeAt(le);if(we!==32&&we!==9)return le}return-1}e.firstNonWhitespaceIndex=l;function o(X,le=0,me=X.length){for(let we=le;we<me;we++){const Le=X.charCodeAt(we);if(Le!==32&&Le!==9)return X.substring(le,we)}return X.substring(le,me)}e.getLeadingWhitespace=o;function u(X,le=X.length-1){for(let me=le;me>=0;me--){const we=X.charCodeAt(me);if(we!==32&&we!==9)return me}return-1}e.lastNonWhitespaceIndex=u;function h(X,le){return X<le?-1:X>le?1:0}e.compare=h;function w(X,le,me=0,we=X.length,Le=0,Ee=le.length){for(;me<we&&Le<Ee;me++,Le++){const ke=X.charCodeAt(me),fe=le.charCodeAt(Le);if(ke<fe)return-1;if(ke>fe)return 1}const Me=we-me,Ae=Ee-Le;return Me<Ae?-1:Me>Ae?1:0}e.compareSubstring=w;function m(X,le){return p(X,le,0,X.length,0,le.length)}e.compareIgnoreCase=m;function p(X,le,me=0,we=X.length,Le=0,Ee=le.length){for(;me<we&&Le<Ee;me++,Le++){let ke=X.charCodeAt(me),fe=le.charCodeAt(Le);if(ke===fe)continue;if(ke>=128||fe>=128)return w(X.toLowerCase(),le.toLowerCase(),me,we,Le,Ee);y(ke)&&(ke-=32),y(fe)&&(fe-=32);const pe=ke-fe;if(pe!==0)return pe}const Me=we-me,Ae=Ee-Le;return Me<Ae?-1:Me>Ae?1:0}e.compareSubstringIgnoreCase=p;function b(X){return X>=48&&X<=57}e.isAsciiDigit=b;function y(X){return X>=97&&X<=122}e.isLowerAsciiLetter=y;function k(X){return X>=65&&X<=90}e.isUpperAsciiLetter=k;function D(X,le){return X.length===le.length&&p(X,le)===0}e.equalsIgnoreCase=D;function M(X,le){const me=le.length;return le.length>X.length?!1:p(X,le,0,me)===0}e.startsWithIgnoreCase=M;function z(X,le){const me=Math.min(X.length,le.length);let we;for(we=0;we<me;we++)if(X.charCodeAt(we)!==le.charCodeAt(we))return we;return me}e.commonPrefixLength=z;function R(X,le){const me=Math.min(X.length,le.length);let we;const Le=X.length-1,Ee=le.length-1;for(we=0;we<me;we++)if(X.charCodeAt(Le-we)!==le.charCodeAt(Ee-we))return we;return me}e.commonSuffixLength=R;function P(X){return 55296<=X&&X<=56319}e.isHighSurrogate=P;function A(X){return 56320<=X&&X<=57343}e.isLowSurrogate=A;function T(X,le){return(X-55296<<10)+(le-56320)+65536}e.computeCodePoint=T;function O(X,le,me){const we=X.charCodeAt(me);if(P(we)&&me+1<le){const Le=X.charCodeAt(me+1);if(A(Le))return T(we,Le)}return we}e.getNextCodePoint=O;function B(X,le){const me=X.charCodeAt(le-1);if(A(me)&&le>1){const we=X.charCodeAt(le-2);if(P(we))return T(we,me)}return me}class W{get offset(){return this.e}constructor(le,me=0){this.c=le,this.d=le.length,this.e=me}setOffset(le){this.e=le}prevCodePoint(){const le=B(this.c,this.e);return this.e-=le>=65536?2:1,le}nextCodePoint(){const le=O(this.c,this.d,this.e);return this.e+=le>=65536?2:1,le}eol(){return this.e>=this.d}}e.CodePointIterator=W;class j{get offset(){return this.c.offset}constructor(le,me=0){this.c=new W(le,me)}nextGraphemeLength(){const le=Y.getInstance(),me=this.c,we=me.offset;let Le=le.getGraphemeBreakType(me.nextCodePoint());for(;!me.eol();){const Ee=me.offset,Me=le.getGraphemeBreakType(me.nextCodePoint());if(K(Le,Me)){me.setOffset(Ee);break}Le=Me}return me.offset-we}prevGraphemeLength(){const le=Y.getInstance(),me=this.c,we=me.offset;let Le=le.getGraphemeBreakType(me.prevCodePoint());for(;me.offset>0;){const Ee=me.offset,Me=le.getGraphemeBreakType(me.prevCodePoint());if(K(Me,Le)){me.setOffset(Ee);break}Le=Me}return we-me.offset}eol(){return this.c.eol()}}e.GraphemeIterator=j;function F(X,le){return new j(X,le).nextGraphemeLength()}e.nextCharLength=F;function U(X,le){return new j(X,le).prevGraphemeLength()}e.prevCharLength=U;function Q(X,le){le>0&&A(X.charCodeAt(le))&&le--;const me=le+F(X,le);return[me-U(X,me),me]}e.getCharContainingOffset=Q;let se;function he(){return/(?:[\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 ie(X){return se||(se=he()),se.test(X)}e.containsRTL=ie;const ue=/^[\t\n\r\x20-\x7E]*$/;function J(X){return ue.test(X)}e.isBasicASCII=J,e.UNUSUAL_LINE_TERMINATORS=/[\u2028\u2029]/;function x(X){return e.UNUSUAL_LINE_TERMINATORS.test(X)}e.containsUnusualLineTerminators=x;function G(X){return X>=11904&&X<=55215||X>=63744&&X<=64255||X>=65281&&X<=65374}e.isFullWidthCharacter=G;function te(X){return X>=127462&&X<=127487||X===8986||X===8987||X===9200||X===9203||X>=9728&&X<=10175||X===11088||X===11093||X>=127744&&X<=128591||X>=128640&&X<=128764||X>=128992&&X<=129008||X>=129280&&X<=129535||X>=129648&&X<=129782}e.isEmojiImprecise=te,e.UTF8_BOM_CHARACTER=String.fromCharCode(65279);function Z(X){return!!(X&&X.length>0&&X.charCodeAt(0)===65279)}e.startsWithUTF8BOM=Z;function ae(X,le=!1){return X?(le&&(X=X.replace(/\\./g,"")),X.toLowerCase()!==X):!1}e.containsUppercaseCharacter=ae;function de(X){return X=X%(2*26),X<26?String.fromCharCode(97+X):String.fromCharCode(65+X-26)}e.singleLetterHash=de;function K(X,le){return X===0?le!==5&&le!==7:X===2&&le===3?!1:X===4||X===2||X===3||le===4||le===2||le===3?!0:!(X===8&&(le===8||le===9||le===11||le===12)||(X===11||X===9)&&(le===9||le===10)||(X===12||X===10)&&le===10||le===5||le===13||le===7||X===1||X===13&&le===14||X===6&&le===6)}class Y{static getInstance(){return Y.c||(Y.c=new Y),Y.c}constructor(){this.d=ne()}getGraphemeBreakType(le){if(le<32)return le===10?3:le===13?2:4;if(le<127)return 0;const me=this.d,we=me.length/3;let Le=1;for(;Le<=we;)if(le<me[3*Le])Le=2*Le;else if(le>me[3*Le+1])Le=2*Le+1;else return me[3*Le+2];return 0}}Y.c=null;function ne(){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 V(X,le){if(X===0)return 0;const me=H(X,le);if(me!==void 0)return me;const we=new W(le,X);return we.prevCodePoint(),we.offset}e.getLeftDeleteOffset=V;function H(X,le){const me=new W(le,X);let we=me.prevCodePoint();for(;$(we)||we===65039||we===8419;){if(me.offset===0)return;we=me.prevCodePoint()}if(!te(we))return;let Le=me.offset;return Le>0&&me.prevCodePoint()===8205&&(Le=me.offset),Le}function $(X){return 127995<=X&&X<=127999}e.noBreakWhitespace="\xA0";class oe{static getInstance(le){return oe.d.get(Array.from(le))}static getLocales(){return oe.e.value}constructor(le){this.f=le}isAmbiguous(le){return this.f.has(le)}getPrimaryConfusable(le){return this.f.get(le)}getConfusableCodePoints(){return new Set(this.f.keys())}}E=oe,oe.c=new N.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]}')),oe.d=new C.LRUCachedFunction(X=>{function le(fe){const pe=new Map;for(let ce=0;ce<fe.length;ce+=2)pe.set(fe[ce],fe[ce+1]);return pe}function me(fe,pe){const ce=new Map(fe);for(const[be,Se]of pe)ce.set(be,Se);return ce}function we(fe,pe){if(!fe)return pe;const ce=new Map;for(const[be,Se]of fe)pe.has(be)&&ce.set(be,Se);return ce}const Le=E.c.value;let Ee=X.filter(fe=>!fe.startsWith("_")&&fe in Le);Ee.length===0&&(Ee=["_default"]);let Me;for(const fe of Ee){const pe=le(Le[fe]);Me=we(Me,pe)}const Ae=le(Le._common),ke=me(Ae,Me);return new oe(ke)}),oe.e=new N.Lazy(()=>Object.keys(oe.c.value).filter(X=>!X.startsWith("_"))),e.AmbiguousCharacters=oe;class re{static c(){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 e(){return this.d||(this.d=new Set(re.c())),this.d}static isInvisibleCharacter(le){return re.e().has(le)}static get codePoints(){return re.e()}}re.d=void 0,e.InvisibleCharacters=re}),define(_[63],ee([1,0,55,9]),function(q,e,C,N){"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 E(...V){return function(H,$){for(let oe=0,re=V.length;oe<re;oe++){const X=V[oe](H,$);if(X)return X}return null}}e.or=E,e.matchesStrictPrefix=I.bind(void 0,!1),e.matchesPrefix=I.bind(void 0,!0);function I(V,H,$){if(!$||$.length<H.length)return null;let oe;return V?oe=N.startsWithIgnoreCase($,H):oe=$.indexOf(H)===0,oe?H.length>0?[{start:0,end:H.length}]:[]:null}function L(V,H){const $=H.toLowerCase().indexOf(V.toLowerCase());return $===-1?null:[{start:$,end:$+V.length}]}e.matchesContiguousSubString=L;function S(V,H){return v(V.toLowerCase(),H.toLowerCase(),0,0)}e.matchesSubString=S;function v(V,H,$,oe){if($===V.length)return[];if(oe===H.length)return null;if(V[$]===H[oe]){let re=null;return(re=v(V,H,$+1,oe+1))?d({start:oe,end:oe+1},re):null}return v(V,H,$,oe+1)}function f(V){return 97<=V&&V<=122}function g(V){return 65<=V&&V<=90}e.isUpper=g;function i(V){return 48<=V&&V<=57}function t(V){return V===32||V===9||V===10||V===13}const n=new Set;"()[]{}<>`'\"-/;:,.?!".split("").forEach(V=>n.add(V.charCodeAt(0)));function a(V){return t(V)||n.has(V)}function r(V,H){return V===H||a(V)&&a(H)}function c(V){return f(V)||g(V)||i(V)}function d(V,H){return H.length===0?H=[V]:V.end===H[0].start?H[0].start=V.start:H.unshift(V),H}function s(V,H){for(let $=H;$<V.length;$++){const oe=V.charCodeAt($);if(g(oe)||i(oe)||$>0&&!c(V.charCodeAt($-1)))return $}return V.length}function l(V,H,$,oe){if($===V.length)return[];if(oe===H.length)return null;if(V[$]!==H[oe].toLowerCase())return null;{let re=null,X=oe+1;for(re=l(V,H,$+1,oe+1);!re&&(X=s(H,X))<H.length;)re=l(V,H,$+1,X),X++;return re===null?null:d({start:oe,end:oe+1},re)}}function o(V){let H=0,$=0,oe=0,re=0,X=0;for(let Ee=0;Ee<V.length;Ee++)X=V.charCodeAt(Ee),g(X)&&H++,f(X)&&$++,c(X)&&oe++,i(X)&&re++;const le=H/V.length,me=$/V.length,we=oe/V.length,Le=re/V.length;return{upperPercent:le,lowerPercent:me,alphaPercent:we,numericPercent:Le}}function u(V){const{upperPercent:H,lowerPercent:$}=V;return $===0&&H>.6}function h(V){const{upperPercent:H,lowerPercent:$,alphaPercent:oe,numericPercent:re}=V;return $>.2&&H<.8&&oe>.6&&re<.2}function w(V){let H=0,$=0,oe=0,re=0;for(let X=0;X<V.length;X++)oe=V.charCodeAt(X),g(oe)&&H++,f(oe)&&$++,t(oe)&&re++;return(H===0||$===0)&&re===0?V.length<=30:H<=5}function m(V,H){if(!H||(H=H.trim(),H.length===0)||!w(V)||H.length>60)return null;const $=o(H);if(!h($)){if(!u($))return null;H=H.toLowerCase()}let oe=null,re=0;for(V=V.toLowerCase();re<H.length&&(oe=l(V,H,0,re))===null;)re=s(H,re+1);return oe}e.matchesCamelCase=m;function p(V,H,$=!1){if(!H||H.length===0)return null;let oe=null,re=0;for(V=V.toLowerCase(),H=H.toLowerCase();re<H.length&&(oe=b(V,H,0,re,$))===null;)re=y(H,re+1);return oe}e.matchesWords=p;function b(V,H,$,oe,re){if($===V.length)return[];if(oe===H.length)return null;if(r(V.charCodeAt($),H.charCodeAt(oe))){let X=null,le=oe+1;if(X=b(V,H,$+1,oe+1,re),!re)for(;!X&&(le=y(H,le))<H.length;)X=b(V,H,$+1,le,re),le++;return X?V.charCodeAt($)!==H.charCodeAt(oe)?X:d({start:oe,end:oe+1},X):null}else return null}function y(V,H){for(let $=H;$<V.length;$++)if(a(V.charCodeAt($))||$>0&&a(V.charCodeAt($-1)))return $;return V.length}const k=E(e.matchesPrefix,m,L),D=E(e.matchesPrefix,m,S),M=new C.LRUCache(1e4);function z(V,H,$=!1){if(typeof V!="string"||typeof H!="string")return null;let oe=M.get(V);oe||(oe=new RegExp(N.convertSimple2RegExpPattern(V),"i"),M.set(V,oe));const re=oe.exec(H);return re?[{start:re.index,end:re.index+re[0].length}]:$?D(V,H):k(V,H)}e.matchesFuzzy=z;function R(V,H,$,oe,re,X){const le=Math.min(13,V.length);for(;$<le;$++){const me=Z(V,H,$,oe,re,X,{firstMatchCanBeWeak:!0,boostFullMatch:!0});if(me)return me}return[0,X]}e.anyScore=R;function P(V){if(typeof V>"u")return[];const H=[],$=V[1];for(let oe=V.length-1;oe>1;oe--){const re=V[oe]+$,X=H[H.length-1];X&&X.end===re?X.end=re+1:H.push({start:re,end:re+1})}return H}e.createMatches=P;const A=128;function T(){const V=[],H=[];for(let $=0;$<=A;$++)H[$]=0;for(let $=0;$<=A;$++)V.push(H.slice(0));return V}function O(V){const H=[];for(let $=0;$<=V;$++)H[$]=0;return H}const B=O(2*A),W=O(2*A),j=T(),F=T(),U=T(),Q=!1;function se(V,H,$,oe,re){function X(me,we,Le=" "){for(;me.length<we;)me=Le+me;return me}let le=` | |${oe.split("").map(me=>X(me,3)).join("|")}
|
||
`;for(let me=0;me<=$;me++)me===0?le+=" |":le+=`${H[me-1]}|`,le+=V[me].slice(0,re+1).map(we=>X(we.toString(),3)).join("|")+`
|
||
`;return le}function he(V,H,$,oe){V=V.substr(H),$=$.substr(oe),console.log(se(F,V,V.length,$,$.length)),console.log(se(U,V,V.length,$,$.length)),console.log(se(j,V,V.length,$,$.length))}function ie(V,H){if(H<0||H>=V.length)return!1;const $=V.codePointAt(H);switch($){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!!N.isEmojiImprecise($)}}function ue(V,H){if(H<0||H>=V.length)return!1;switch(V.charCodeAt(H)){case 32:case 9:return!0;default:return!1}}function J(V,H,$){return H[V]!==$[V]}function x(V,H,$,oe,re,X,le=!1){for(;H<$&&re<X;)V[H]===oe[re]&&(le&&(B[H]=re),H+=1),re+=1;return H===$}e.isPatternInWord=x;var G;(function(V){V.Default=[-100,0];function H($){return!$||$.length===2&&$[0]===-100&&$[1]===0}V.isDefault=H})(G=e.FuzzyScore||(e.FuzzyScore={}));class te{constructor(H,$){this.firstMatchCanBeWeak=H,this.boostFullMatch=$}}te.default={boostFullMatch:!0,firstMatchCanBeWeak:!1},e.FuzzyScoreOptions=te;function Z(V,H,$,oe,re,X,le=te.default){const me=V.length>A?A:V.length,we=oe.length>A?A:oe.length;if($>=me||X>=we||me-$>we-X||!x(H,$,me,re,X,we,!0))return;ae(me,we,$,X,H,re);let Le=1,Ee=1,Me=$,Ae=X;const ke=[!1];for(Le=1,Me=$;Me<me;Le++,Me++){const Se=B[Me],Ie=W[Me],Ce=Me+1<me?W[Me+1]:we;for(Ee=Se-X+1,Ae=Se;Ae<Ce;Ee++,Ae++){let ve=Number.MIN_SAFE_INTEGER,De=!1;Ae<=Ie&&(ve=de(V,H,Me,$,oe,re,Ae,we,X,j[Le-1][Ee-1]===0,ke));let Oe=0;ve!==Number.MAX_SAFE_INTEGER&&(De=!0,Oe=ve+F[Le-1][Ee-1]);const Re=Ae>Se,xe=Re?F[Le][Ee-1]+(j[Le][Ee-1]>0?-5:0):0,Fe=Ae>Se+1&&j[Le][Ee-1]>0,Be=Fe?F[Le][Ee-2]+(j[Le][Ee-2]>0?-5:0):0;if(Fe&&(!Re||Be>=xe)&&(!De||Be>=Oe))F[Le][Ee]=Be,U[Le][Ee]=3,j[Le][Ee]=0;else if(Re&&(!De||xe>=Oe))F[Le][Ee]=xe,U[Le][Ee]=2,j[Le][Ee]=0;else if(De)F[Le][Ee]=Oe,U[Le][Ee]=1,j[Le][Ee]=j[Le-1][Ee-1]+1;else throw new Error("not possible")}}if(Q&&he(V,$,oe,X),!ke[0]&&!le.firstMatchCanBeWeak)return;Le--,Ee--;const fe=[F[Le][Ee],X];let pe=0,ce=0;for(;Le>=1;){let Se=Ee;do{const Ie=U[Le][Se];if(Ie===3)Se=Se-2;else if(Ie===2)Se=Se-1;else break}while(Se>=1);pe>1&&H[$+Le-1]===re[X+Ee-1]&&!J(Se+X-1,oe,re)&&pe+1>j[Le][Se]&&(Se=Ee),Se===Ee?pe++:pe=1,ce||(ce=Se),Le--,Ee=Se-1,fe.push(Ee)}we===me&&le.boostFullMatch&&(fe[0]+=2);const be=ce-me;return fe[0]-=be,fe}e.fuzzyScore=Z;function ae(V,H,$,oe,re,X){let le=V-1,me=H-1;for(;le>=$&&me>=oe;)re[le]===X[me]&&(W[le]=me,le--),me--}function de(V,H,$,oe,re,X,le,me,we,Le,Ee){if(H[$]!==X[le])return Number.MIN_SAFE_INTEGER;let Me=1,Ae=!1;return le===$-oe?Me=V[$]===re[le]?7:5:J(le,re,X)&&(le===0||!J(le-1,re,X))?(Me=V[$]===re[le]?7:5,Ae=!0):ie(X,le)&&(le===0||!ie(X,le-1))?Me=5:(ie(X,le-1)||ue(X,le-1))&&(Me=5,Ae=!0),Me>1&&$===oe&&(Ee[0]=!0),Ae||(Ae=J(le,re,X)||ie(X,le-1)||ue(X,le-1)),$===oe?le>we&&(Me-=Ae?3:5):Le?Me+=Ae?2:0:Me+=Ae?0:1,le+1===me&&(Me-=Ae?3:5),Me}function K(V,H,$,oe,re,X,le){return Y(V,H,$,oe,re,X,!0,le)}e.fuzzyScoreGracefulAggressive=K;function Y(V,H,$,oe,re,X,le,me){let we=Z(V,H,$,oe,re,X,me);if(we&&!le)return we;if(V.length>=3){const Le=Math.min(7,V.length-1);for(let Ee=$+1;Ee<Le;Ee++){const Me=ne(V,Ee);if(Me){const Ae=Z(Me,Me.toLowerCase(),$,oe,re,X,me);Ae&&(Ae[0]-=3,(!we||Ae[0]>we[0])&&(we=Ae))}}}return we}function ne(V,H){if(H+1>=V.length)return;const $=V[H],oe=V[H+1];if($!==oe)return V.slice(0,H)+oe+$+V.slice(H+2)}}),define(_[129],ee([1,0,9]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StringSHA1=e.toHexString=e.stringHash=e.numberHash=e.doHash=e.hash=void 0;function N(r){return E(r,0)}e.hash=N;function E(r,c){switch(typeof r){case"object":return r===null?I(349,c):Array.isArray(r)?v(r,c):f(r,c);case"string":return S(r,c);case"boolean":return L(r,c);case"number":return I(r,c);case"undefined":return I(937,c);default:return I(617,c)}}e.doHash=E;function I(r,c){return(c<<5)-c+r|0}e.numberHash=I;function L(r,c){return I(r?433:863,c)}function S(r,c){c=I(149417,c);for(let d=0,s=r.length;d<s;d++)c=I(r.charCodeAt(d),c);return c}e.stringHash=S;function v(r,c){return c=I(104579,c),r.reduce((d,s)=>E(s,d),c)}function f(r,c){return c=I(181387,c),Object.keys(r).sort().reduce((d,s)=>(d=S(s,d),E(r[s],d)),c)}function g(r,c,d=32){const s=d-c,l=~((1<<s)-1);return(r<<c|(l&r)>>>s)>>>0}function i(r,c=0,d=r.byteLength,s=0){for(let l=0;l<d;l++)r[c+l]=s}function t(r,c,d="0"){for(;r.length<c;)r=d+r;return r}function n(r,c=32){return r instanceof ArrayBuffer?Array.from(new Uint8Array(r)).map(d=>d.toString(16).padStart(2,"0")).join(""):t((r>>>0).toString(16),c/4)}e.toHexString=n;class a{constructor(){this.h=1732584193,this.l=4023233417,this.m=2562383102,this.n=271733878,this.o=3285377520,this.p=new Uint8Array(64+3),this.q=new DataView(this.p.buffer),this.r=0,this.t=0,this.u=0,this.v=!1}update(c){const d=c.length;if(d===0)return;const s=this.p;let l=this.r,o=this.u,u,h;for(o!==0?(u=o,h=-1,o=0):(u=c.charCodeAt(0),h=0);;){let w=u;if(C.isHighSurrogate(u))if(h+1<d){const m=c.charCodeAt(h+1);C.isLowSurrogate(m)?(h++,w=C.computeCodePoint(u,m)):w=65533}else{o=u;break}else C.isLowSurrogate(u)&&(w=65533);if(l=this.w(s,l,w),h++,h<d)u=c.charCodeAt(h);else break}this.r=l,this.u=o}w(c,d,s){return s<128?c[d++]=s:s<2048?(c[d++]=192|(s&1984)>>>6,c[d++]=128|(s&63)>>>0):s<65536?(c[d++]=224|(s&61440)>>>12,c[d++]=128|(s&4032)>>>6,c[d++]=128|(s&63)>>>0):(c[d++]=240|(s&1835008)>>>18,c[d++]=128|(s&258048)>>>12,c[d++]=128|(s&4032)>>>6,c[d++]=128|(s&63)>>>0),d>=64&&(this.y(),d-=64,this.t+=64,c[0]=c[64+0],c[1]=c[64+1],c[2]=c[64+2]),d}digest(){return this.v||(this.v=!0,this.u&&(this.u=0,this.r=this.w(this.p,this.r,65533)),this.t+=this.r,this.x()),n(this.h)+n(this.l)+n(this.m)+n(this.n)+n(this.o)}x(){this.p[this.r++]=128,i(this.p,this.r),this.r>56&&(this.y(),i(this.p));const c=8*this.t;this.q.setUint32(56,Math.floor(c/4294967296),!1),this.q.setUint32(60,c%4294967296,!1),this.y()}y(){const c=a.g,d=this.q;for(let b=0;b<64;b+=4)c.setUint32(b,d.getUint32(b,!1),!1);for(let b=64;b<320;b+=4)c.setUint32(b,g(c.getUint32(b-12,!1)^c.getUint32(b-32,!1)^c.getUint32(b-56,!1)^c.getUint32(b-64,!1),1),!1);let s=this.h,l=this.l,o=this.m,u=this.n,h=this.o,w,m,p;for(let b=0;b<80;b++)b<20?(w=l&o|~l&u,m=1518500249):b<40?(w=l^o^u,m=1859775393):b<60?(w=l&o|l&u|o&u,m=2400959708):(w=l^o^u,m=3395469782),p=g(s,5)+w+h+m+c.getUint32(b*4,!1)&4294967295,h=u,u=o,o=g(l,30),l=s,s=p;this.h=this.h+s&4294967295,this.l=this.l+l&4294967295,this.m=this.m+o&4294967295,this.n=this.n+u&4294967295,this.o=this.o+h&4294967295}}a.g=new DataView(new ArrayBuffer(320)),e.StringSHA1=a}),define(_[152],ee([1,0,343,129]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LcsDiff=e.stringDiff=e.StringDiffSequence=void 0;class E{constructor(i){this.a=i}getElements(){const i=this.a,t=new Int32Array(i.length);for(let n=0,a=i.length;n<a;n++)t[n]=i.charCodeAt(n);return t}}e.StringDiffSequence=E;function I(g,i,t){return new f(new E(g),new E(i)).ComputeDiff(t).changes}e.stringDiff=I;class L{static Assert(i,t){if(!i)throw new Error(t)}}class S{static Copy(i,t,n,a,r){for(let c=0;c<r;c++)n[a+c]=i[t+c]}static Copy2(i,t,n,a,r){for(let c=0;c<r;c++)n[a+c]=i[t+c]}}class v{constructor(){this.a=[],this.b=1073741824,this.c=1073741824,this.d=0,this.e=0}MarkNextChange(){(this.d>0||this.e>0)&&this.a.push(new C.DiffChange(this.b,this.d,this.c,this.e)),this.d=0,this.e=0,this.b=1073741824,this.c=1073741824}AddOriginalElement(i,t){this.b=Math.min(this.b,i),this.c=Math.min(this.c,t),this.d++}AddModifiedElement(i,t){this.b=Math.min(this.b,i),this.c=Math.min(this.c,t),this.e++}getChanges(){return(this.d>0||this.e>0)&&this.MarkNextChange(),this.a}getReverseChanges(){return(this.d>0||this.e>0)&&this.MarkNextChange(),this.a.reverse(),this.a}}class f{constructor(i,t,n=null){this.a=n,this.b=i,this.c=t;const[a,r,c]=f.o(i),[d,s,l]=f.o(t);this.d=c&&l,this.e=a,this.f=r,this.g=d,this.h=s,this.k=[],this.m=[]}static n(i){return i.length>0&&typeof i[0]=="string"}static o(i){const t=i.getElements();if(f.n(t)){const n=new Int32Array(t.length);for(let a=0,r=t.length;a<r;a++)n[a]=(0,N.stringHash)(t[a],0);return[t,n,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}p(i,t){return this.f[i]!==this.h[t]?!1:this.d?this.e[i]===this.g[t]:!0}q(i,t){if(!this.p(i,t))return!1;const n=f.r(this.b,i),a=f.r(this.c,t);return n===a}static r(i,t){return typeof i.getStrictElement=="function"?i.getStrictElement(t):null}s(i,t){return this.f[i]!==this.f[t]?!1:this.d?this.e[i]===this.e[t]:!0}u(i,t){return this.h[i]!==this.h[t]?!1:this.d?this.g[i]===this.g[t]:!0}ComputeDiff(i){return this.v(0,this.f.length-1,0,this.h.length-1,i)}v(i,t,n,a,r){const c=[!1];let d=this.w(i,t,n,a,c);return r&&(d=this.z(d)),{quitEarly:c[0],changes:d}}w(i,t,n,a,r){for(r[0]=!1;i<=t&&n<=a&&this.p(i,n);)i++,n++;for(;t>=i&&a>=n&&this.p(t,a);)t--,a--;if(i>t||n>a){let u;return n<=a?(L.Assert(i===t+1,"originalStart should only be one more than originalEnd"),u=[new C.DiffChange(i,0,n,a-n+1)]):i<=t?(L.Assert(n===a+1,"modifiedStart should only be one more than modifiedEnd"),u=[new C.DiffChange(i,t-i+1,n,0)]):(L.Assert(i===t+1,"originalStart should only be one more than originalEnd"),L.Assert(n===a+1,"modifiedStart should only be one more than modifiedEnd"),u=[]),u}const c=[0],d=[0],s=this.y(i,t,n,a,c,d,r),l=c[0],o=d[0];if(s!==null)return s;if(!r[0]){const u=this.w(i,l,n,o,r);let h=[];return r[0]?h=[new C.DiffChange(l+1,t-(l+1)+1,o+1,a-(o+1)+1)]:h=this.w(l+1,t,o+1,a,r),this.H(u,h)}return[new C.DiffChange(i,t-i+1,n,a-n+1)]}x(i,t,n,a,r,c,d,s,l,o,u,h,w,m,p,b,y,k){let D=null,M=null,z=new v,R=t,P=n,A=w[0]-b[0]-a,T=-1073741824,O=this.k.length-1;do{const B=A+i;B===R||B<P&&l[B-1]<l[B+1]?(u=l[B+1],m=u-A-a,u<T&&z.MarkNextChange(),T=u,z.AddModifiedElement(u+1,m),A=B+1-i):(u=l[B-1]+1,m=u-A-a,u<T&&z.MarkNextChange(),T=u-1,z.AddOriginalElement(u,m+1),A=B-1-i),O>=0&&(l=this.k[O],i=l[0],R=1,P=l.length-1)}while(--O>=-1);if(D=z.getReverseChanges(),k[0]){let B=w[0]+1,W=b[0]+1;if(D!==null&&D.length>0){const j=D[D.length-1];B=Math.max(B,j.getOriginalEnd()),W=Math.max(W,j.getModifiedEnd())}M=[new C.DiffChange(B,h-B+1,W,p-W+1)]}else{z=new v,R=c,P=d,A=w[0]-b[0]-s,T=1073741824,O=y?this.m.length-1:this.m.length-2;do{const B=A+r;B===R||B<P&&o[B-1]>=o[B+1]?(u=o[B+1]-1,m=u-A-s,u>T&&z.MarkNextChange(),T=u+1,z.AddOriginalElement(u+1,m+1),A=B+1-r):(u=o[B-1],m=u-A-s,u>T&&z.MarkNextChange(),T=u,z.AddModifiedElement(u+1,m+1),A=B-1-r),O>=0&&(o=this.m[O],r=o[0],R=1,P=o.length-1)}while(--O>=-1);M=z.getChanges()}return this.H(D,M)}y(i,t,n,a,r,c,d){let s=0,l=0,o=0,u=0,h=0,w=0;i--,n--,r[0]=0,c[0]=0,this.k=[],this.m=[];const m=t-i+(a-n),p=m+1,b=new Int32Array(p),y=new Int32Array(p),k=a-n,D=t-i,M=i-n,z=t-a,P=(D-k)%2===0;b[k]=i,y[D]=t,d[0]=!1;for(let A=1;A<=m/2+1;A++){let T=0,O=0;o=this.J(k-A,A,k,p),u=this.J(k+A,A,k,p);for(let W=o;W<=u;W+=2){W===o||W<u&&b[W-1]<b[W+1]?s=b[W+1]:s=b[W-1]+1,l=s-(W-k)-M;const j=s;for(;s<t&&l<a&&this.p(s+1,l+1);)s++,l++;if(b[W]=s,s+l>T+O&&(T=s,O=l),!P&&Math.abs(W-D)<=A-1&&s>=y[W])return r[0]=s,c[0]=l,j<=y[W]&&1447>0&&A<=1447+1?this.x(k,o,u,M,D,h,w,z,b,y,s,t,r,l,a,c,P,d):null}const B=(T-i+(O-n)-A)/2;if(this.a!==null&&!this.a(T,B))return d[0]=!0,r[0]=T,c[0]=O,B>0&&1447>0&&A<=1447+1?this.x(k,o,u,M,D,h,w,z,b,y,s,t,r,l,a,c,P,d):(i++,n++,[new C.DiffChange(i,t-i+1,n,a-n+1)]);h=this.J(D-A,A,D,p),w=this.J(D+A,A,D,p);for(let W=h;W<=w;W+=2){W===h||W<w&&y[W-1]>=y[W+1]?s=y[W+1]-1:s=y[W-1],l=s-(W-D)-z;const j=s;for(;s>i&&l>n&&this.p(s,l);)s--,l--;if(y[W]=s,P&&Math.abs(W-k)<=A&&s<=b[W])return r[0]=s,c[0]=l,j>=b[W]&&1447>0&&A<=1447+1?this.x(k,o,u,M,D,h,w,z,b,y,s,t,r,l,a,c,P,d):null}if(A<=1447){let W=new Int32Array(u-o+2);W[0]=k-o+1,S.Copy2(b,o,W,1,u-o+1),this.k.push(W),W=new Int32Array(w-h+2),W[0]=D-h+1,S.Copy2(y,h,W,1,w-h+1),this.m.push(W)}}return this.x(k,o,u,M,D,h,w,z,b,y,s,t,r,l,a,c,P,d)}z(i){for(let t=0;t<i.length;t++){const n=i[t],a=t<i.length-1?i[t+1].originalStart:this.f.length,r=t<i.length-1?i[t+1].modifiedStart:this.h.length,c=n.originalLength>0,d=n.modifiedLength>0;for(;n.originalStart+n.originalLength<a&&n.modifiedStart+n.modifiedLength<r&&(!c||this.s(n.originalStart,n.originalStart+n.originalLength))&&(!d||this.u(n.modifiedStart,n.modifiedStart+n.modifiedLength));){const l=this.q(n.originalStart,n.modifiedStart);if(this.q(n.originalStart+n.originalLength,n.modifiedStart+n.modifiedLength)&&!l)break;n.originalStart++,n.modifiedStart++}const s=[null];if(t<i.length-1&&this.I(i[t],i[t+1],s)){i[t]=s[0],i.splice(t+1,1),t--;continue}}for(let t=i.length-1;t>=0;t--){const n=i[t];let a=0,r=0;if(t>0){const u=i[t-1];a=u.originalStart+u.originalLength,r=u.modifiedStart+u.modifiedLength}const c=n.originalLength>0,d=n.modifiedLength>0;let s=0,l=this.G(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let u=1;;u++){const h=n.originalStart-u,w=n.modifiedStart-u;if(h<a||w<r||c&&!this.s(h,h+n.originalLength)||d&&!this.u(w,w+n.modifiedLength))break;const p=(h===a&&w===r?5:0)+this.G(h,n.originalLength,w,n.modifiedLength);p>l&&(l=p,s=u)}n.originalStart-=s,n.modifiedStart-=s;const o=[null];if(t>0&&this.I(i[t-1],i[t],o)){i[t-1]=o[0],i.splice(t,1),t++;continue}}if(this.d)for(let t=1,n=i.length;t<n;t++){const a=i[t-1],r=i[t],c=r.originalStart-a.originalStart-a.originalLength,d=a.originalStart,s=r.originalStart+r.originalLength,l=s-d,o=a.modifiedStart,u=r.modifiedStart+r.modifiedLength,h=u-o;if(c<5&&l<20&&h<20){const w=this.A(d,l,o,h,c);if(w){const[m,p]=w;(m!==a.originalStart+a.originalLength||p!==a.modifiedStart+a.modifiedLength)&&(a.originalLength=m-a.originalStart,a.modifiedLength=p-a.modifiedStart,r.originalStart=m+c,r.modifiedStart=p+c,r.originalLength=s-r.originalStart,r.modifiedLength=u-r.modifiedStart)}}}return i}A(i,t,n,a,r){if(t<r||a<r)return null;const c=i+t-r+1,d=n+a-r+1;let s=0,l=0,o=0;for(let u=i;u<c;u++)for(let h=n;h<d;h++){const w=this.B(u,h,r);w>0&&w>s&&(s=w,l=u,o=h)}return s>0?[l,o]:null}B(i,t,n){let a=0;for(let r=0;r<n;r++){if(!this.p(i+r,t+r))return 0;a+=this.e[i+r].length}return a}C(i){return i<=0||i>=this.f.length-1?!0:this.d&&/^\s*$/.test(this.e[i])}D(i,t){if(this.C(i)||this.C(i-1))return!0;if(t>0){const n=i+t;if(this.C(n-1)||this.C(n))return!0}return!1}E(i){return i<=0||i>=this.h.length-1?!0:this.d&&/^\s*$/.test(this.g[i])}F(i,t){if(this.E(i)||this.E(i-1))return!0;if(t>0){const n=i+t;if(this.E(n-1)||this.E(n))return!0}return!1}G(i,t,n,a){const r=this.D(i,t)?1:0,c=this.F(n,a)?1:0;return r+c}H(i,t){const n=[];if(i.length===0||t.length===0)return t.length>0?t:i;if(this.I(i[i.length-1],t[0],n)){const a=new Array(i.length+t.length-1);return S.Copy(i,0,a,0,i.length-1),a[i.length-1]=n[0],S.Copy(t,1,a,i.length,t.length-1),a}else{const a=new Array(i.length+t.length);return S.Copy(i,0,a,0,i.length),S.Copy(t,0,a,i.length,t.length),a}}I(i,t,n){if(L.Assert(i.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),L.Assert(i.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),i.originalStart+i.originalLength>=t.originalStart||i.modifiedStart+i.modifiedLength>=t.modifiedStart){const a=i.originalStart;let r=i.originalLength;const c=i.modifiedStart;let d=i.modifiedLength;return i.originalStart+i.originalLength>=t.originalStart&&(r=t.originalStart+t.originalLength-i.originalStart),i.modifiedStart+i.modifiedLength>=t.modifiedStart&&(d=t.modifiedStart+t.modifiedLength-i.modifiedStart),n[0]=new C.DiffChange(a,r,c,d),!0}else return n[0]=null,!1}J(i,t,n,a){if(i>=0&&i<a)return i;const r=n,c=a-n-1,d=t%2===0;if(i<0){const s=r%2===0;return d===s?0:1}else{const s=c%2===0;return d===s?a-1:a-2}}}e.LcsDiff=f}),define(_[350],ee([1,0,9]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.buildReplaceStringWithCasePreserved=void 0;function N(L,S){if(L&&L[0]!==""){const v=E(L,S,"-"),f=E(L,S,"_");return v&&!f?I(L,S,"-"):!v&&f?I(L,S,"_"):L[0].toUpperCase()===L[0]?S.toUpperCase():L[0].toLowerCase()===L[0]?S.toLowerCase():C.containsUppercaseCharacter(L[0][0])&&S.length>0?S[0].toUpperCase()+S.substr(1):L[0][0].toUpperCase()!==L[0][0]&&S.length>0?S[0].toLowerCase()+S.substr(1):S}else return S}e.buildReplaceStringWithCasePreserved=N;function E(L,S,v){return L[0].indexOf(v)!==-1&&S.indexOf(v)!==-1&&L[0].split(v).length===S.split(v).length}function I(L,S,v){const f=S.split(v),g=L[0].split(v);let i="";return f.forEach((t,n)=>{i+=N([g[n]],t)+v}),i.slice(0,-1)}}),define(_[102],ee([1,0,9]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var N;(function(E){E[E.Ignore=0]="Ignore",E[E.Info=1]="Info",E[E.Warning=2]="Warning",E[E.Error=3]="Error"})(N||(N={})),function(E){const I="error",L="warning",S="warn",v="info",f="ignore";function g(t){return t?C.equalsIgnoreCase(I,t)?E.Error:C.equalsIgnoreCase(L,t)||C.equalsIgnoreCase(S,t)?E.Warning:C.equalsIgnoreCase(v,t)?E.Info:E.Ignore:E.Ignore}E.fromValue=g;function i(t){switch(t){case E.Error:return I;case E.Warning:return L;case E.Info:return v;default:return f}}E.toString=i}(N||(N={})),e.default=N}),define(_[240],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MicrotaskDelay=void 0,e.MicrotaskDelay=Symbol("MicrotaskDelay")}),define(_[182],ee([1,0,9]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TernarySearchTree=e.UriIterator=e.PathIterator=e.ConfigKeysIterator=e.StringIterator=void 0;class N{constructor(){this.b="",this.c=0}reset(g){return this.b=g,this.c=0,this}next(){return this.c+=1,this}hasNext(){return this.c<this.b.length-1}cmp(g){const i=g.charCodeAt(0),t=this.b.charCodeAt(this.c);return i-t}value(){return this.b[this.c]}}e.StringIterator=N;class E{constructor(g=!0){this.e=g}reset(g){return this.b=g,this.c=0,this.d=0,this.next()}hasNext(){return this.d<this.b.length}next(){this.c=this.d;let g=!0;for(;this.d<this.b.length;this.d++)if(this.b.charCodeAt(this.d)===46)if(g)this.c++;else break;else g=!1;return this}cmp(g){return this.e?(0,C.compareSubstring)(g,this.b,0,g.length,this.c,this.d):(0,C.compareSubstringIgnoreCase)(g,this.b,0,g.length,this.c,this.d)}value(){return this.b.substring(this.c,this.d)}}e.ConfigKeysIterator=E;class I{constructor(g=!0,i=!0){this.f=g,this.g=i}reset(g){this.d=0,this.e=0,this.b=g,this.c=g.length;for(let i=g.length-1;i>=0;i--,this.c--){const t=this.b.charCodeAt(i);if(!(t===47||this.f&&t===92))break}return this.next()}hasNext(){return this.e<this.c}next(){this.d=this.e;let g=!0;for(;this.e<this.c;this.e++){const i=this.b.charCodeAt(this.e);if(i===47||this.f&&i===92)if(g)this.d++;else break;else g=!1}return this}cmp(g){return this.g?(0,C.compareSubstring)(g,this.b,0,g.length,this.d,this.e):(0,C.compareSubstringIgnoreCase)(g,this.b,0,g.length,this.d,this.e)}value(){return this.b.substring(this.d,this.e)}}e.PathIterator=I;class L{constructor(g,i){this.f=g,this.g=i,this.d=[],this.e=0}reset(g){return this.c=g,this.d=[],this.c.scheme&&this.d.push(1),this.c.authority&&this.d.push(2),this.c.path&&(this.b=new I(!1,!this.f(g)),this.b.reset(g.path),this.b.value()&&this.d.push(3)),this.g(g)||(this.c.query&&this.d.push(4),this.c.fragment&&this.d.push(5)),this.e=0,this}next(){return this.d[this.e]===3&&this.b.hasNext()?this.b.next():this.e+=1,this}hasNext(){return this.d[this.e]===3&&this.b.hasNext()||this.e<this.d.length-1}cmp(g){if(this.d[this.e]===1)return(0,C.compareIgnoreCase)(g,this.c.scheme);if(this.d[this.e]===2)return(0,C.compareIgnoreCase)(g,this.c.authority);if(this.d[this.e]===3)return this.b.cmp(g);if(this.d[this.e]===4)return(0,C.compare)(g,this.c.query);if(this.d[this.e]===5)return(0,C.compare)(g,this.c.fragment);throw new Error}value(){if(this.d[this.e]===1)return this.c.scheme;if(this.d[this.e]===2)return this.c.authority;if(this.d[this.e]===3)return this.b.value();if(this.d[this.e]===4)return this.c.query;if(this.d[this.e]===5)return this.c.fragment;throw new Error}}e.UriIterator=L;class S{constructor(){this.height=1}rotateLeft(){const g=this.right;return this.right=g.left,g.left=this,this.updateHeight(),g.updateHeight(),g}rotateRight(){const g=this.left;return this.left=g.right,g.right=this,this.updateHeight(),g.updateHeight(),g}updateHeight(){this.height=1+Math.max(this.heightLeft,this.heightRight)}balanceFactor(){return this.heightRight-this.heightLeft}get heightLeft(){var g,i;return(i=(g=this.left)===null||g===void 0?void 0:g.height)!==null&&i!==void 0?i:0}get heightRight(){var g,i;return(i=(g=this.right)===null||g===void 0?void 0:g.height)!==null&&i!==void 0?i:0}}class v{static forUris(g=()=>!1,i=()=>!1){return new v(new L(g,i))}static forStrings(){return new v(new N)}static forConfigKeys(){return new v(new E)}constructor(g){this.b=g}clear(){this.c=void 0}set(g,i){const t=this.b.reset(g);let n;this.c||(this.c=new S,this.c.segment=t.value());const a=[];for(n=this.c;;){const c=t.cmp(n.segment);if(c>0)n.left||(n.left=new S,n.left.segment=t.value()),a.push([-1,n]),n=n.left;else if(c<0)n.right||(n.right=new S,n.right.segment=t.value()),a.push([1,n]),n=n.right;else if(t.hasNext())t.next(),n.mid||(n.mid=new S,n.mid.segment=t.value()),a.push([0,n]),n=n.mid;else break}const r=n.value;n.value=i,n.key=g;for(let c=a.length-1;c>=0;c--){const d=a[c][1];d.updateHeight();const s=d.balanceFactor();if(s<-1||s>1){const l=a[c][0],o=a[c+1][0];if(l===1&&o===1)a[c][1]=d.rotateLeft();else if(l===-1&&o===-1)a[c][1]=d.rotateRight();else if(l===1&&o===-1)d.right=a[c+1][1]=a[c+1][1].rotateRight(),a[c][1]=d.rotateLeft();else if(l===-1&&o===1)d.left=a[c+1][1]=a[c+1][1].rotateLeft(),a[c][1]=d.rotateRight();else throw new Error;if(c>0)switch(a[c-1][0]){case-1:a[c-1][1].left=a[c][1];break;case 1:a[c-1][1].right=a[c][1];break;case 0:a[c-1][1].mid=a[c][1];break}else this.c=a[0][1]}}return r}get(g){var i;return(i=this.d(g))===null||i===void 0?void 0:i.value}d(g){const i=this.b.reset(g);let t=this.c;for(;t;){const n=i.cmp(t.segment);if(n>0)t=t.left;else if(n<0)t=t.right;else if(i.hasNext())i.next(),t=t.mid;else break}return t}has(g){const i=this.d(g);return!(i?.value===void 0&&i?.mid===void 0)}delete(g){return this.e(g,!1)}deleteSuperstr(g){return this.e(g,!0)}e(g,i){var t;const n=this.b.reset(g),a=[];let r=this.c;for(;r;){const c=n.cmp(r.segment);if(c>0)a.push([-1,r]),r=r.left;else if(c<0)a.push([1,r]),r=r.right;else if(n.hasNext())n.next(),a.push([0,r]),r=r.mid;else break}if(!!r){if(i?(r.left=void 0,r.mid=void 0,r.right=void 0,r.height=1):(r.key=void 0,r.value=void 0),!r.mid&&!r.value)if(r.left&&r.right){const c=this.f(r.right);if(c.key){const{key:d,value:s,segment:l}=c;this.e(c.key,!1),r.key=d,r.value=s,r.segment=l}}else{const c=(t=r.left)!==null&&t!==void 0?t:r.right;if(a.length>0){const[d,s]=a[a.length-1];switch(d){case-1:s.left=c;break;case 0:s.mid=c;break;case 1:s.right=c;break}}else this.c=c}for(let c=a.length-1;c>=0;c--){const d=a[c][1];d.updateHeight();const s=d.balanceFactor();if(s>1?(d.right.balanceFactor()>=0||(d.right=d.right.rotateRight()),a[c][1]=d.rotateLeft()):s<-1&&(d.left.balanceFactor()<=0||(d.left=d.left.rotateLeft()),a[c][1]=d.rotateRight()),c>0)switch(a[c-1][0]){case-1:a[c-1][1].left=a[c][1];break;case 1:a[c-1][1].right=a[c][1];break;case 0:a[c-1][1].mid=a[c][1];break}else this.c=a[0][1]}}}f(g){for(;g.left;)g=g.left;return g}findSubstr(g){const i=this.b.reset(g);let t=this.c,n;for(;t;){const a=i.cmp(t.segment);if(a>0)t=t.left;else if(a<0)t=t.right;else if(i.hasNext())i.next(),n=t.value||n,t=t.mid;else break}return t&&t.value||n}findSuperstr(g){return this.g(g,!1)}g(g,i){const t=this.b.reset(g);let n=this.c;for(;n;){const a=t.cmp(n.segment);if(a>0)n=n.left;else if(a<0)n=n.right;else if(t.hasNext())t.next(),n=n.mid;else return n.mid?this.h(n.mid):i?n.value:void 0}}forEach(g){for(const[i,t]of this)g(t,i)}*[Symbol.iterator](){yield*this.h(this.c)}h(g){const i=[];return this.j(g,i),i[Symbol.iterator]()}j(g,i){!g||(g.left&&this.j(g.left,i),g.value&&i.push([g.key,g.value]),g.mid&&this.j(g.mid,i),g.right&&this.j(g.right,i))}}e.TernarySearchTree=v}),define(_[18],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.withNullAsUndefined=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=void 0;function C(d){return typeof d=="string"}e.isString=C;function N(d){return typeof d=="object"&&d!==null&&!Array.isArray(d)&&!(d instanceof RegExp)&&!(d instanceof Date)}e.isObject=N;function E(d){const s=Object.getPrototypeOf(Uint8Array);return typeof d=="object"&&d instanceof s}e.isTypedArray=E;function I(d){return typeof d=="number"&&!isNaN(d)}e.isNumber=I;function L(d){return!!d&&typeof d[Symbol.iterator]=="function"}e.isIterable=L;function S(d){return d===!0||d===!1}e.isBoolean=S;function v(d){return typeof d>"u"}e.isUndefined=v;function f(d){return!g(d)}e.isDefined=f;function g(d){return v(d)||d===null}e.isUndefinedOrNull=g;function i(d,s){if(!d)throw new Error(s?`Unexpected type, expected '${s}'`:"Unexpected type")}e.assertType=i;function t(d){if(g(d))throw new Error("Assertion Failed: argument is undefined or null");return d}e.assertIsDefined=t;function n(d){return typeof d=="function"}e.isFunction=n;function a(d,s){const l=Math.min(d.length,s.length);for(let o=0;o<l;o++)r(d[o],s[o])}e.validateConstraints=a;function r(d,s){if(C(s)){if(typeof d!==s)throw new Error(`argument does not match constraint: typeof ${s}`)}else if(n(s)){try{if(d instanceof s)return}catch{}if(!g(d)&&d.constructor===s||s.length===1&&s.call(void 0,d)===!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=r;function c(d){return d===null?void 0:d}e.withNullAsUndefined=c}),define(_[29],ee([1,0,18]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Codicon=e.getCodiconFontCharacters=void 0;const N=Object.create(null);function E(L,S){if((0,C.isString)(S)){const v=N[S];if(v===void 0)throw new Error(`${L} references an unknown codicon: ${S}`);S=v}return N[L]=S,{id:L}}function I(){return N}e.getCodiconFontCharacters=I,e.Codicon={add:E("add",6e4),plus:E("plus",6e4),gistNew:E("gist-new",6e4),repoCreate:E("repo-create",6e4),lightbulb:E("lightbulb",60001),lightBulb:E("light-bulb",60001),repo:E("repo",60002),repoDelete:E("repo-delete",60002),gistFork:E("gist-fork",60003),repoForked:E("repo-forked",60003),gitPullRequest:E("git-pull-request",60004),gitPullRequestAbandoned:E("git-pull-request-abandoned",60004),recordKeys:E("record-keys",60005),keyboard:E("keyboard",60005),tag:E("tag",60006),tagAdd:E("tag-add",60006),tagRemove:E("tag-remove",60006),person:E("person",60007),personFollow:E("person-follow",60007),personOutline:E("person-outline",60007),personFilled:E("person-filled",60007),gitBranch:E("git-branch",60008),gitBranchCreate:E("git-branch-create",60008),gitBranchDelete:E("git-branch-delete",60008),sourceControl:E("source-control",60008),mirror:E("mirror",60009),mirrorPublic:E("mirror-public",60009),star:E("star",60010),starAdd:E("star-add",60010),starDelete:E("star-delete",60010),starEmpty:E("star-empty",60010),comment:E("comment",60011),commentAdd:E("comment-add",60011),alert:E("alert",60012),warning:E("warning",60012),search:E("search",60013),searchSave:E("search-save",60013),logOut:E("log-out",60014),signOut:E("sign-out",60014),logIn:E("log-in",60015),signIn:E("sign-in",60015),eye:E("eye",60016),eyeUnwatch:E("eye-unwatch",60016),eyeWatch:E("eye-watch",60016),circleFilled:E("circle-filled",60017),primitiveDot:E("primitive-dot",60017),closeDirty:E("close-dirty",60017),debugBreakpoint:E("debug-breakpoint",60017),debugBreakpointDisabled:E("debug-breakpoint-disabled",60017),debugHint:E("debug-hint",60017),primitiveSquare:E("primitive-square",60018),edit:E("edit",60019),pencil:E("pencil",60019),info:E("info",60020),issueOpened:E("issue-opened",60020),gistPrivate:E("gist-private",60021),gitForkPrivate:E("git-fork-private",60021),lock:E("lock",60021),mirrorPrivate:E("mirror-private",60021),close:E("close",60022),removeClose:E("remove-close",60022),x:E("x",60022),repoSync:E("repo-sync",60023),sync:E("sync",60023),clone:E("clone",60024),desktopDownload:E("desktop-download",60024),beaker:E("beaker",60025),microscope:E("microscope",60025),vm:E("vm",60026),deviceDesktop:E("device-desktop",60026),file:E("file",60027),fileText:E("file-text",60027),more:E("more",60028),ellipsis:E("ellipsis",60028),kebabHorizontal:E("kebab-horizontal",60028),mailReply:E("mail-reply",60029),reply:E("reply",60029),organization:E("organization",60030),organizationFilled:E("organization-filled",60030),organizationOutline:E("organization-outline",60030),newFile:E("new-file",60031),fileAdd:E("file-add",60031),newFolder:E("new-folder",60032),fileDirectoryCreate:E("file-directory-create",60032),trash:E("trash",60033),trashcan:E("trashcan",60033),history:E("history",60034),clock:E("clock",60034),folder:E("folder",60035),fileDirectory:E("file-directory",60035),symbolFolder:E("symbol-folder",60035),logoGithub:E("logo-github",60036),markGithub:E("mark-github",60036),github:E("github",60036),terminal:E("terminal",60037),console:E("console",60037),repl:E("repl",60037),zap:E("zap",60038),symbolEvent:E("symbol-event",60038),error:E("error",60039),stop:E("stop",60039),variable:E("variable",60040),symbolVariable:E("symbol-variable",60040),array:E("array",60042),symbolArray:E("symbol-array",60042),symbolModule:E("symbol-module",60043),symbolPackage:E("symbol-package",60043),symbolNamespace:E("symbol-namespace",60043),symbolObject:E("symbol-object",60043),symbolMethod:E("symbol-method",60044),symbolFunction:E("symbol-function",60044),symbolConstructor:E("symbol-constructor",60044),symbolBoolean:E("symbol-boolean",60047),symbolNull:E("symbol-null",60047),symbolNumeric:E("symbol-numeric",60048),symbolNumber:E("symbol-number",60048),symbolStructure:E("symbol-structure",60049),symbolStruct:E("symbol-struct",60049),symbolParameter:E("symbol-parameter",60050),symbolTypeParameter:E("symbol-type-parameter",60050),symbolKey:E("symbol-key",60051),symbolText:E("symbol-text",60051),symbolReference:E("symbol-reference",60052),goToFile:E("go-to-file",60052),symbolEnum:E("symbol-enum",60053),symbolValue:E("symbol-value",60053),symbolRuler:E("symbol-ruler",60054),symbolUnit:E("symbol-unit",60054),activateBreakpoints:E("activate-breakpoints",60055),archive:E("archive",60056),arrowBoth:E("arrow-both",60057),arrowDown:E("arrow-down",60058),arrowLeft:E("arrow-left",60059),arrowRight:E("arrow-right",60060),arrowSmallDown:E("arrow-small-down",60061),arrowSmallLeft:E("arrow-small-left",60062),arrowSmallRight:E("arrow-small-right",60063),arrowSmallUp:E("arrow-small-up",60064),arrowUp:E("arrow-up",60065),bell:E("bell",60066),bold:E("bold",60067),book:E("book",60068),bookmark:E("bookmark",60069),debugBreakpointConditionalUnverified:E("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:E("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:E("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:E("debug-breakpoint-data-unverified",60072),debugBreakpointData:E("debug-breakpoint-data",60073),debugBreakpointDataDisabled:E("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:E("debug-breakpoint-log-unverified",60074),debugBreakpointLog:E("debug-breakpoint-log",60075),debugBreakpointLogDisabled:E("debug-breakpoint-log-disabled",60075),briefcase:E("briefcase",60076),broadcast:E("broadcast",60077),browser:E("browser",60078),bug:E("bug",60079),calendar:E("calendar",60080),caseSensitive:E("case-sensitive",60081),check:E("check",60082),checklist:E("checklist",60083),chevronDown:E("chevron-down",60084),dropDownButton:E("drop-down-button",60084),chevronLeft:E("chevron-left",60085),chevronRight:E("chevron-right",60086),chevronUp:E("chevron-up",60087),chromeClose:E("chrome-close",60088),chromeMaximize:E("chrome-maximize",60089),chromeMinimize:E("chrome-minimize",60090),chromeRestore:E("chrome-restore",60091),circle:E("circle",60092),circleOutline:E("circle-outline",60092),debugBreakpointUnverified:E("debug-breakpoint-unverified",60092),circleSlash:E("circle-slash",60093),circuitBoard:E("circuit-board",60094),clearAll:E("clear-all",60095),clippy:E("clippy",60096),closeAll:E("close-all",60097),cloudDownload:E("cloud-download",60098),cloudUpload:E("cloud-upload",60099),code:E("code",60100),collapseAll:E("collapse-all",60101),colorMode:E("color-mode",60102),commentDiscussion:E("comment-discussion",60103),compareChanges:E("compare-changes",60157),creditCard:E("credit-card",60105),dash:E("dash",60108),dashboard:E("dashboard",60109),database:E("database",60110),debugContinue:E("debug-continue",60111),debugDisconnect:E("debug-disconnect",60112),debugPause:E("debug-pause",60113),debugRestart:E("debug-restart",60114),debugStart:E("debug-start",60115),debugStepInto:E("debug-step-into",60116),debugStepOut:E("debug-step-out",60117),debugStepOver:E("debug-step-over",60118),debugStop:E("debug-stop",60119),debug:E("debug",60120),deviceCameraVideo:E("device-camera-video",60121),deviceCamera:E("device-camera",60122),deviceMobile:E("device-mobile",60123),diffAdded:E("diff-added",60124),diffIgnored:E("diff-ignored",60125),diffModified:E("diff-modified",60126),diffRemoved:E("diff-removed",60127),diffRenamed:E("diff-renamed",60128),diff:E("diff",60129),discard:E("discard",60130),editorLayout:E("editor-layout",60131),emptyWindow:E("empty-window",60132),exclude:E("exclude",60133),extensions:E("extensions",60134),eyeClosed:E("eye-closed",60135),fileBinary:E("file-binary",60136),fileCode:E("file-code",60137),fileMedia:E("file-media",60138),filePdf:E("file-pdf",60139),fileSubmodule:E("file-submodule",60140),fileSymlinkDirectory:E("file-symlink-directory",60141),fileSymlinkFile:E("file-symlink-file",60142),fileZip:E("file-zip",60143),files:E("files",60144),filter:E("filter",60145),flame:E("flame",60146),foldDown:E("fold-down",60147),foldUp:E("fold-up",60148),fold:E("fold",60149),folderActive:E("folder-active",60150),folderOpened:E("folder-opened",60151),gear:E("gear",60152),gift:E("gift",60153),gistSecret:E("gist-secret",60154),gist:E("gist",60155),gitCommit:E("git-commit",60156),gitCompare:E("git-compare",60157),gitMerge:E("git-merge",60158),githubAction:E("github-action",60159),githubAlt:E("github-alt",60160),globe:E("globe",60161),grabber:E("grabber",60162),graph:E("graph",60163),gripper:E("gripper",60164),heart:E("heart",60165),home:E("home",60166),horizontalRule:E("horizontal-rule",60167),hubot:E("hubot",60168),inbox:E("inbox",60169),issueClosed:E("issue-closed",60324),issueReopened:E("issue-reopened",60171),issues:E("issues",60172),italic:E("italic",60173),jersey:E("jersey",60174),json:E("json",60175),bracket:E("bracket",60175),kebabVertical:E("kebab-vertical",60176),key:E("key",60177),law:E("law",60178),lightbulbAutofix:E("lightbulb-autofix",60179),linkExternal:E("link-external",60180),link:E("link",60181),listOrdered:E("list-ordered",60182),listUnordered:E("list-unordered",60183),liveShare:E("live-share",60184),loading:E("loading",60185),location:E("location",60186),mailRead:E("mail-read",60187),mail:E("mail",60188),markdown:E("markdown",60189),megaphone:E("megaphone",60190),mention:E("mention",60191),milestone:E("milestone",60192),mortarBoard:E("mortar-board",60193),move:E("move",60194),multipleWindows:E("multiple-windows",60195),mute:E("mute",60196),noNewline:E("no-newline",60197),note:E("note",60198),octoface:E("octoface",60199),openPreview:E("open-preview",60200),package_:E("package",60201),paintcan:E("paintcan",60202),pin:E("pin",60203),play:E("play",60204),run:E("run",60204),plug:E("plug",60205),preserveCase:E("preserve-case",60206),preview:E("preview",60207),project:E("project",60208),pulse:E("pulse",60209),question:E("question",60210),quote:E("quote",60211),radioTower:E("radio-tower",60212),reactions:E("reactions",60213),references:E("references",60214),refresh:E("refresh",60215),regex:E("regex",60216),remoteExplorer:E("remote-explorer",60217),remote:E("remote",60218),remove:E("remove",60219),replaceAll:E("replace-all",60220),replace:E("replace",60221),repoClone:E("repo-clone",60222),repoForcePush:E("repo-force-push",60223),repoPull:E("repo-pull",60224),repoPush:E("repo-push",60225),report:E("report",60226),requestChanges:E("request-changes",60227),rocket:E("rocket",60228),rootFolderOpened:E("root-folder-opened",60229),rootFolder:E("root-folder",60230),rss:E("rss",60231),ruby:E("ruby",60232),saveAll:E("save-all",60233),saveAs:E("save-as",60234),save:E("save",60235),screenFull:E("screen-full",60236),screenNormal:E("screen-normal",60237),searchStop:E("search-stop",60238),server:E("server",60240),settingsGear:E("settings-gear",60241),settings:E("settings",60242),shield:E("shield",60243),smiley:E("smiley",60244),sortPrecedence:E("sort-precedence",60245),splitHorizontal:E("split-horizontal",60246),splitVertical:E("split-vertical",60247),squirrel:E("squirrel",60248),starFull:E("star-full",60249),starHalf:E("star-half",60250),symbolClass:E("symbol-class",60251),symbolColor:E("symbol-color",60252),symbolCustomColor:E("symbol-customcolor",60252),symbolConstant:E("symbol-constant",60253),symbolEnumMember:E("symbol-enum-member",60254),symbolField:E("symbol-field",60255),symbolFile:E("symbol-file",60256),symbolInterface:E("symbol-interface",60257),symbolKeyword:E("symbol-keyword",60258),symbolMisc:E("symbol-misc",60259),symbolOperator:E("symbol-operator",60260),symbolProperty:E("symbol-property",60261),wrench:E("wrench",60261),wrenchSubaction:E("wrench-subaction",60261),symbolSnippet:E("symbol-snippet",60262),tasklist:E("tasklist",60263),telescope:E("telescope",60264),textSize:E("text-size",60265),threeBars:E("three-bars",60266),thumbsdown:E("thumbsdown",60267),thumbsup:E("thumbsup",60268),tools:E("tools",60269),triangleDown:E("triangle-down",60270),triangleLeft:E("triangle-left",60271),triangleRight:E("triangle-right",60272),triangleUp:E("triangle-up",60273),twitter:E("twitter",60274),unfold:E("unfold",60275),unlock:E("unlock",60276),unmute:E("unmute",60277),unverified:E("unverified",60278),verified:E("verified",60279),versions:E("versions",60280),vmActive:E("vm-active",60281),vmOutline:E("vm-outline",60282),vmRunning:E("vm-running",60283),watch:E("watch",60284),whitespace:E("whitespace",60285),wholeWord:E("whole-word",60286),window:E("window",60287),wordWrap:E("word-wrap",60288),zoomIn:E("zoom-in",60289),zoomOut:E("zoom-out",60290),listFilter:E("list-filter",60291),listFlat:E("list-flat",60292),listSelection:E("list-selection",60293),selection:E("selection",60293),listTree:E("list-tree",60294),debugBreakpointFunctionUnverified:E("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:E("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:E("debug-breakpoint-function-disabled",60296),debugStackframeActive:E("debug-stackframe-active",60297),circleSmallFilled:E("circle-small-filled",60298),debugStackframeDot:E("debug-stackframe-dot",60298),debugStackframe:E("debug-stackframe",60299),debugStackframeFocused:E("debug-stackframe-focused",60299),debugBreakpointUnsupported:E("debug-breakpoint-unsupported",60300),symbolString:E("symbol-string",60301),debugReverseContinue:E("debug-reverse-continue",60302),debugStepBack:E("debug-step-back",60303),debugRestartFrame:E("debug-restart-frame",60304),callIncoming:E("call-incoming",60306),callOutgoing:E("call-outgoing",60307),menu:E("menu",60308),expandAll:E("expand-all",60309),feedback:E("feedback",60310),groupByRefType:E("group-by-ref-type",60311),ungroupByRefType:E("ungroup-by-ref-type",60312),account:E("account",60313),bellDot:E("bell-dot",60314),debugConsole:E("debug-console",60315),library:E("library",60316),output:E("output",60317),runAll:E("run-all",60318),syncIgnored:E("sync-ignored",60319),pinned:E("pinned",60320),githubInverted:E("github-inverted",60321),debugAlt:E("debug-alt",60305),serverProcess:E("server-process",60322),serverEnvironment:E("server-environment",60323),pass:E("pass",60324),stopCircle:E("stop-circle",60325),playCircle:E("play-circle",60326),record:E("record",60327),debugAltSmall:E("debug-alt-small",60328),vmConnect:E("vm-connect",60329),cloud:E("cloud",60330),merge:E("merge",60331),exportIcon:E("export",60332),graphLeft:E("graph-left",60333),magnet:E("magnet",60334),notebook:E("notebook",60335),redo:E("redo",60336),checkAll:E("check-all",60337),pinnedDirty:E("pinned-dirty",60338),passFilled:E("pass-filled",60339),circleLargeFilled:E("circle-large-filled",60340),circleLarge:E("circle-large",60341),circleLargeOutline:E("circle-large-outline",60341),combine:E("combine",60342),gather:E("gather",60342),table:E("table",60343),variableGroup:E("variable-group",60344),typeHierarchy:E("type-hierarchy",60345),typeHierarchySub:E("type-hierarchy-sub",60346),typeHierarchySuper:E("type-hierarchy-super",60347),gitPullRequestCreate:E("git-pull-request-create",60348),runAbove:E("run-above",60349),runBelow:E("run-below",60350),notebookTemplate:E("notebook-template",60351),debugRerun:E("debug-rerun",60352),workspaceTrusted:E("workspace-trusted",60353),workspaceUntrusted:E("workspace-untrusted",60354),workspaceUnspecified:E("workspace-unspecified",60355),terminalCmd:E("terminal-cmd",60356),terminalDebian:E("terminal-debian",60357),terminalLinux:E("terminal-linux",60358),terminalPowershell:E("terminal-powershell",60359),terminalTmux:E("terminal-tmux",60360),terminalUbuntu:E("terminal-ubuntu",60361),terminalBash:E("terminal-bash",60362),arrowSwap:E("arrow-swap",60363),copy:E("copy",60364),personAdd:E("person-add",60365),filterFilled:E("filter-filled",60366),wand:E("wand",60367),debugLineByLine:E("debug-line-by-line",60368),inspect:E("inspect",60369),layers:E("layers",60370),layersDot:E("layers-dot",60371),layersActive:E("layers-active",60372),compass:E("compass",60373),compassDot:E("compass-dot",60374),compassActive:E("compass-active",60375),azure:E("azure",60376),issueDraft:E("issue-draft",60377),gitPullRequestClosed:E("git-pull-request-closed",60378),gitPullRequestDraft:E("git-pull-request-draft",60379),debugAll:E("debug-all",60380),debugCoverage:E("debug-coverage",60381),runErrors:E("run-errors",60382),folderLibrary:E("folder-library",60383),debugContinueSmall:E("debug-continue-small",60384),beakerStop:E("beaker-stop",60385),graphLine:E("graph-line",60386),graphScatter:E("graph-scatter",60387),pieChart:E("pie-chart",60388),bracketDot:E("bracket-dot",60389),bracketError:E("bracket-error",60390),lockSmall:E("lock-small",60391),azureDevops:E("azure-devops",60392),verifiedFilled:E("verified-filled",60393),newLine:E("newline",60394),layout:E("layout",60395),layoutActivitybarLeft:E("layout-activitybar-left",60396),layoutActivitybarRight:E("layout-activitybar-right",60397),layoutPanelLeft:E("layout-panel-left",60398),layoutPanelCenter:E("layout-panel-center",60399),layoutPanelJustify:E("layout-panel-justify",60400),layoutPanelRight:E("layout-panel-right",60401),layoutPanel:E("layout-panel",60402),layoutSidebarLeft:E("layout-sidebar-left",60403),layoutSidebarRight:E("layout-sidebar-right",60404),layoutStatusbar:E("layout-statusbar",60405),layoutMenubar:E("layout-menubar",60406),layoutCentered:E("layout-centered",60407),layoutSidebarRightOff:E("layout-sidebar-right-off",60416),layoutPanelOff:E("layout-panel-off",60417),layoutSidebarLeftOff:E("layout-sidebar-left-off",60418),target:E("target",60408),indent:E("indent",60409),recordSmall:E("record-small",60410),errorSmall:E("error-small",60411),arrowCircleDown:E("arrow-circle-down",60412),arrowCircleLeft:E("arrow-circle-left",60413),arrowCircleRight:E("arrow-circle-right",60414),arrowCircleUp:E("arrow-circle-up",60415),heartFilled:E("heart-filled",60420),map:E("map",60421),mapFilled:E("map-filled",60422),circleSmall:E("circle-small",60423),bellSlash:E("bell-slash",60424),bellSlashDot:E("bell-slash-dot",60425),commentUnresolved:E("comment-unresolved",60426),gitPullRequestGoToChanges:E("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:E("git-pull-request-new-changes",60428),searchFuzzy:E("search-fuzzy",60429),commentDraft:E("comment-draft",60430),dialogError:E("dialog-error","error"),dialogWarning:E("dialog-warning","warning"),dialogInfo:E("dialog-info","info"),dialogClose:E("dialog-close","close"),treeItemExpanded:E("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:E("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:E("tree-filter-on-type-off","list-selection"),treeFilterClear:E("tree-filter-clear","close"),treeItemLoading:E("tree-item-loading","loading"),menuSelection:E("menu-selection","check"),menuSubmenu:E("menu-submenu","chevron-right"),menuBarMore:E("menubar-more","more"),scrollbarButtonLeft:E("scrollbar-button-left","triangle-left"),scrollbarButtonRight:E("scrollbar-button-right","triangle-right"),scrollbarButtonUp:E("scrollbar-button-up","triangle-up"),scrollbarButtonDown:E("scrollbar-button-down","triangle-down"),toolBarMore:E("toolbar-more","more"),quickInputBack:E("quick-input-back","arrow-left")}}),define(_[46],ee([1,0,18]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createProxyObject=e.getAllMethodNames=e.getAllPropertyNames=e.equals=e.mixin=e.cloneAndChange=e.deepFreeze=e.deepClone=void 0;function N(n){if(!n||typeof n!="object"||n instanceof RegExp)return n;const a=Array.isArray(n)?[]:{};return Object.entries(n).forEach(([r,c])=>{a[r]=c&&typeof c=="object"?N(c):c}),a}e.deepClone=N;function E(n){if(!n||typeof n!="object")return n;const a=[n];for(;a.length>0;){const r=a.shift();Object.freeze(r);for(const c in r)if(I.call(r,c)){const d=r[c];typeof d=="object"&&!Object.isFrozen(d)&&!(0,C.isTypedArray)(d)&&a.push(d)}}return n}e.deepFreeze=E;const I=Object.prototype.hasOwnProperty;function L(n,a){return S(n,a,new Set)}e.cloneAndChange=L;function S(n,a,r){if((0,C.isUndefinedOrNull)(n))return n;const c=a(n);if(typeof c<"u")return c;if(Array.isArray(n)){const d=[];for(const s of n)d.push(S(s,a,r));return d}if((0,C.isObject)(n)){if(r.has(n))throw new Error("Cannot clone recursive data-structure");r.add(n);const d={};for(const s in n)I.call(n,s)&&(d[s]=S(n[s],a,r));return r.delete(n),d}return n}function v(n,a,r=!0){return(0,C.isObject)(n)?((0,C.isObject)(a)&&Object.keys(a).forEach(c=>{c in n?r&&((0,C.isObject)(n[c])&&(0,C.isObject)(a[c])?v(n[c],a[c],r):n[c]=a[c]):n[c]=a[c]}),n):a}e.mixin=v;function f(n,a){if(n===a)return!0;if(n==null||a===null||a===void 0||typeof n!=typeof a||typeof n!="object"||Array.isArray(n)!==Array.isArray(a))return!1;let r,c;if(Array.isArray(n)){if(n.length!==a.length)return!1;for(r=0;r<n.length;r++)if(!f(n[r],a[r]))return!1}else{const d=[];for(c in n)d.push(c);d.sort();const s=[];for(c in a)s.push(c);if(s.sort(),!f(d,s))return!1;for(r=0;r<d.length;r++)if(!f(n[d[r]],a[d[r]]))return!1}return!0}e.equals=f;function g(n){let a=[],r=Object.getPrototypeOf(n);for(;Object.prototype!==r;)a=a.concat(Object.getOwnPropertyNames(r)),r=Object.getPrototypeOf(r);return a}e.getAllPropertyNames=g;function i(n){const a=[];for(const r of g(n))typeof n[r]=="function"&&a.push(r);return a}e.getAllMethodNames=i;function t(n,a){const r=d=>function(){const s=Array.prototype.slice.call(arguments,0);return a(d,s)},c={};for(const d of n)c[d]=r(d);return c}e.createProxyObject=t}),define(_[32],ee([1,0,29]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ThemeIcon=e.ThemeColor=void 0;var N;(function(I){function L(S){return S&&typeof S=="object"&&typeof S.id=="string"}I.isThemeColor=L})(N=e.ThemeColor||(e.ThemeColor={}));var E;(function(I){I.iconNameSegment="[A-Za-z0-9]+",I.iconNameExpression="[A-Za-z0-9-]+",I.iconModifierExpression="~[A-Za-z]+",I.iconNameCharacter="[A-Za-z0-9~-]";const L=new RegExp(`^(${I.iconNameExpression})(${I.iconModifierExpression})?$`);function S(d){const s=L.exec(d.id);if(!s)return S(C.Codicon.error);const[,l,o]=s,u=["codicon","codicon-"+l];return o&&u.push("codicon-modifier-"+o.substring(1)),u}I.asClassNameArray=S;function v(d){return S(d).join(" ")}I.asClassName=v;function f(d){return"."+S(d).join(".")}I.asCSSSelector=f;function g(d){return d&&typeof d=="object"&&typeof d.id=="string"&&(typeof d.color>"u"||N.isThemeColor(d.color))}I.isThemeIcon=g;const i=new RegExp(`^\\$\\((${I.iconNameExpression}(?:${I.iconModifierExpression})?)\\)$`);function t(d){const s=i.exec(d);if(!s)return;const[,l]=s;return{id:l}}I.fromString=t;function n(d){return{id:d}}I.fromId=n;function a(d,s){let l=d.id;const o=l.lastIndexOf("~");return o!==-1&&(l=l.substring(0,o)),s&&(l=`${l}~${s}`),{id:l}}I.modify=a;function r(d){const s=d.id.lastIndexOf("~");if(s!==-1)return d.id.substring(s+1)}I.getModifier=r;function c(d,s){var l,o;return d.id===s.id&&((l=d.color)===null||l===void 0?void 0:l.id)===((o=s.color)===null||o===void 0?void 0:o.id)}I.isEqual=c})(E=e.ThemeIcon||(e.ThemeIcon={}))}),define(_[111],ee([1,0,63,9,32]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.matchesFuzzyIconAware=e.parseLabelWithIcons=e.getCodiconAriaLabel=e.stripIcons=e.markdownEscapeEscapedIcons=e.escapeIcons=void 0;const I="$(",L=new RegExp(`\\$\\(${E.ThemeIcon.iconNameExpression}(?:${E.ThemeIcon.iconModifierExpression})?\\)`,"g"),S=new RegExp(`(\\\\)?${L.source}`,"g");function v(d){return d.replace(S,(s,l)=>l?s:`\\${s}`)}e.escapeIcons=v;const f=new RegExp(`\\\\${L.source}`,"g");function g(d){return d.replace(f,s=>`\\${s}`)}e.markdownEscapeEscapedIcons=g;const i=new RegExp(`(\\s)?(\\\\)?${L.source}(\\s)?`,"g");function t(d){return d.indexOf(I)===-1?d:d.replace(i,(s,l,o,u)=>o?s:l||u||"")}e.stripIcons=t;function n(d){return d?d.replace(/\$\((.*?)\)/g,(s,l)=>` ${l} `).trim():""}e.getCodiconAriaLabel=n;const a=new RegExp(`\\$\\(${E.ThemeIcon.iconNameCharacter}+\\)`,"g");function r(d){a.lastIndex=0;let s="";const l=[];let o=0;for(;;){const u=a.lastIndex,h=a.exec(d),w=d.substring(u,h?.index);if(w.length>0){s+=w;for(let m=0;m<w.length;m++)l.push(o)}if(!h)break;o+=h[0].length}return{text:s,iconOffsets:l}}e.parseLabelWithIcons=r;function c(d,s,l=!1){const{text:o,iconOffsets:u}=s;if(!u||u.length===0)return(0,C.matchesFuzzy)(d,o,l);const h=(0,N.ltrim)(o," "),w=o.length-h.length,m=(0,C.matchesFuzzy)(d,h,l);if(m)for(const p of m){const b=u[p.start+w]+w;p.start+=b,p.end+=b}return m}e.matchesFuzzyIconAware=c}),define(_[72],ee([1,0,13,111,9]),function(q,e,C,N,E){"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 I{constructor(n="",a=!1){var r,c,d;if(this.value=n,typeof this.value!="string")throw(0,C.illegalArgument)("value");typeof a=="boolean"?(this.isTrusted=a,this.supportThemeIcons=!1,this.supportHtml=!1):(this.isTrusted=(r=a.isTrusted)!==null&&r!==void 0?r:void 0,this.supportThemeIcons=(c=a.supportThemeIcons)!==null&&c!==void 0?c:!1,this.supportHtml=(d=a.supportHtml)!==null&&d!==void 0?d:!1)}appendText(n,a=0){return this.value+=v(this.supportThemeIcons?(0,N.escapeIcons)(n):n).replace(/([ \t]+)/g,(r,c)=>" ".repeat(c.length)).replace(/\>/gm,"\\>").replace(/\n/g,a===1?`\\
|
||
`:`
|
||
|
||
`),this}appendMarkdown(n){return this.value+=n,this}appendCodeblock(n,a){return this.value+="\n```",this.value+=n,this.value+=`
|
||
`,this.value+=a,this.value+="\n```\n",this}appendLink(n,a,r){return this.value+="[",this.value+=this.a(a,"]"),this.value+="](",this.value+=this.a(String(n),")"),r&&(this.value+=` "${this.a(this.a(r,'"'),")")}"`),this.value+=")",this}a(n,a){const r=new RegExp((0,E.escapeRegExpCharacters)(a),"g");return n.replace(r,(c,d)=>n.charAt(d-1)!=="\\"?`\\${c}`:c)}}e.MarkdownString=I;function L(t){return S(t)?!t.value:Array.isArray(t)?t.every(L):!0}e.isEmptyMarkdownString=L;function S(t){return t instanceof I?!0:t&&typeof t=="object"?typeof t.value=="string"&&(typeof t.isTrusted=="boolean"||t.isTrusted===void 0)&&(typeof t.supportThemeIcons=="boolean"||t.supportThemeIcons===void 0):!1}e.isMarkdownString=S;function v(t){return t.replace(/[\\`*_{}[\]()#+\-!~]/g,"\\$&")}e.escapeMarkdownSyntaxTokens=v;function f(t){return t.replace(/"/g,""")}e.escapeDoubleQuotes=f;function g(t){return t&&t.replace(/\\([\\`*_{}[\]()#+\-.!~])/g,"$1")}e.removeMarkdownEscapes=g;function i(t){const n=[],a=t.split("|").map(c=>c.trim());t=a[0];const r=a[1];if(r){const c=/height=(\d+)/.exec(r),d=/width=(\d+)/.exec(r),s=c?c[1]:"",l=d?d[1]:"",o=isFinite(parseInt(l)),u=isFinite(parseInt(s));o&&n.push(`width="${l}"`),u&&n.push(`height="${s}"`)}return{href:t,dimensions:n}}e.parseHrefAndDimensions=i}),define(_[153],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toUint32=e.toUint8=void 0;function C(E){return E<0?0:E>255?255:E|0}e.toUint8=C;function N(E){return E<0?0:E>4294967295?4294967295:E|0}e.toUint32=N}),define(_[183],ee([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 C;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?C=crypto.getRandomValues.bind(crypto):C=function(I){for(let L=0;L<I.length;L++)I[L]=Math.floor(Math.random()*256);return I};const N=new Uint8Array(16),E=[];for(let I=0;I<256;I++)E.push(I.toString(16).padStart(2,"0"));return function(){C(N),N[6]=N[6]&15|64,N[8]=N[8]&63|128;let L=0,S="";return S+=E[N[L++]],S+=E[N[L++]],S+=E[N[L++]],S+=E[N[L++]],S+="-",S+=E[N[L++]],S+=E[N[L++]],S+="-",S+=E[N[L++]],S+=E[N[L++]],S+="-",S+=E[N[L++]],S+=E[N[L++]],S+="-",S+=E[N[L++]],S+=E[N[L++]],S+=E[N[L++]],S+=E[N[L++]],S+=E[N[L++]],S+=E[N[L++]],S}}()}),define(_[184],ee([1,0,17,183]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UriList=e.VSDataTransfer=e.createFileDataTransferItem=e.createStringDataTransferItem=void 0;function E(S){return{id:(0,N.generateUuid)(),asString:()=>ye(this,void 0,void 0,function*(){return S}),asFile:()=>{},value:typeof S=="string"?S:void 0}}e.createStringDataTransferItem=E;function I(S,v,f){return{id:(0,N.generateUuid)(),asString:()=>ye(this,void 0,void 0,function*(){return""}),asFile:()=>({name:S,uri:v,data:f}),value:void 0}}e.createFileDataTransferItem=I;class L{constructor(){this.a=new Map}get size(){return this.a.size}has(v){return this.a.has(this.b(v))}get(v){var f;return(f=this.a.get(this.b(v)))===null||f===void 0?void 0:f[0]}append(v,f){const g=this.a.get(v);g?g.push(f):this.a.set(this.b(v),[f])}replace(v,f){this.a.set(this.b(v),[f])}delete(v){this.a.delete(this.b(v))}*entries(){for(const[v,f]of this.a.entries())for(const g of f)yield[v,g]}values(){return Array.from(this.a.values()).flat()}forEach(v){for(const[f,g]of this.entries())v(g,f)}b(v){return v.toLowerCase()}}e.VSDataTransfer=L,e.UriList=Object.freeze({create:S=>(0,C.distinct)(S.map(v=>v.toString())).join(`\r
|
||
`),split:S=>S.split(`\r
|
||
`),parse:S=>e.UriList.split(S).filter(v=>!v.startsWith("#"))})}),define(_[241],ee([10]),{}),define(_[351],ee([10]),{}),define(_[352],ee([10]),{}),define(_[353],ee([10]),{}),define(_[354],ee([10]),{}),define(_[154],ee([1,0,353,354]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})}),define(_[355],ee([10]),{}),define(_[356],ee([10]),{}),define(_[242],ee([10]),{}),define(_[243],ee([10]),{}),define(_[357],ee([10]),{}),define(_[358],ee([10]),{}),define(_[359],ee([10]),{}),define(_[360],ee([10]),{}),define(_[244],ee([10]),{}),define(_[361],ee([10]),{}),define(_[155],ee([1,0,361]),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(_[362],ee([10]),{}),define(_[363],ee([10]),{}),define(_[364],ee([10]),{}),define(_[365],ee([10]),{}),define(_[366],ee([10]),{}),define(_[367],ee([10]),{}),define(_[368],ee([10]),{}),define(_[369],ee([10]),{}),define(_[370],ee([10]),{}),define(_[371],ee([10]),{}),define(_[372],ee([10]),{}),define(_[373],ee([10]),{}),define(_[374],ee([10]),{}),define(_[375],ee([10]),{}),define(_[376],ee([10]),{}),define(_[377],ee([10]),{}),define(_[378],ee([10]),{}),define(_[379],ee([10]),{}),define(_[380],ee([10]),{}),define(_[381],ee([10]),{}),define(_[382],ee([10]),{}),define(_[383],ee([10]),{}),define(_[384],ee([10]),{}),define(_[385],ee([10]),{}),define(_[386],ee([10]),{}),define(_[387],ee([10]),{}),define(_[388],ee([10]),{}),define(_[389],ee([10]),{}),define(_[390],ee([10]),{}),define(_[391],ee([10]),{}),define(_[392],ee([10]),{}),define(_[393],ee([10]),{}),define(_[394],ee([10]),{}),define(_[395],ee([10]),{}),define(_[396],ee([10]),{}),define(_[397],ee([10]),{}),define(_[398],ee([10]),{}),define(_[399],ee([10]),{}),define(_[400],ee([10]),{}),define(_[401],ee([10]),{}),define(_[402],ee([10]),{}),define(_[403],ee([10]),{}),define(_[404],ee([10]),{}),define(_[405],ee([10]),{}),define(_[406],ee([10]),{}),define(_[407],ee([10]),{}),define(_[408],ee([10]),{}),define(_[409],ee([10]),{}),define(_[410],ee([10]),{}),define(_[411],ee([10]),{}),define(_[412],ee([10]),{}),define(_[413],ee([10]),{}),define(_[414],ee([10]),{}),define(_[415],ee([10]),{}),define(_[416],ee([10]),{}),define(_[417],ee([10]),{}),define(_[418],ee([10]),{}),define(_[419],ee([10]),{}),define(_[420],ee([10]),{}),define(_[421],ee([10]),{}),define(_[422],ee([10]),{}),define(_[423],ee([10]),{}),define(_[424],ee([10]),{}),define(_[425],ee([10]),{}),define(_[426],ee([10]),{}),define(_[427],ee([10]),{}),define(_[245],ee([10]),{}),define(_[428],ee([10]),{}),define(_[429],ee([10]),{}),define(_[156],ee([10]),{}),define(_[430],ee([10]),{}),define(_[73],ee([1,0,35]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.applyFontInfo=void 0;function N(E,I){E instanceof C.FastDomNode?(E.setFontFamily(I.getMassagedFontFamily()),E.setFontWeight(I.fontWeight),E.setFontSize(I.fontSize),E.setFontFeatureSettings(I.fontFeatureSettings),E.setFontVariationSettings(I.fontVariationSettings),E.setLineHeight(I.lineHeight),E.setLetterSpacing(I.letterSpacing)):(E.style.fontFamily=I.getMassagedFontFamily(),E.style.fontWeight=I.fontWeight,E.style.fontSize=I.fontSize+"px",E.style.fontFeatureSettings=I.fontFeatureSettings,E.style.fontVariationSettings=I.fontVariationSettings,E.style.lineHeight=I.lineHeight+"px",E.style.letterSpacing=I.letterSpacing+"px")}e.applyFontInfo=N}),define(_[431],ee([1,0,73]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.readCharWidths=e.CharWidthRequest=void 0;class N{constructor(S,v){this.chr=S,this.type=v,this.width=0}fulfill(S){this.width=S}}e.CharWidthRequest=N;class E{constructor(S,v){this.a=S,this.b=v,this.c=null,this.d=null}read(){this.e(),document.body.appendChild(this.c),this.g(),document.body.removeChild(this.c),this.c=null,this.d=null}e(){const S=document.createElement("div");S.style.position="absolute",S.style.top="-50000px",S.style.width="50000px";const v=document.createElement("div");(0,C.applyFontInfo)(v,this.a),S.appendChild(v);const f=document.createElement("div");(0,C.applyFontInfo)(f,this.a),f.style.fontWeight="bold",S.appendChild(f);const g=document.createElement("div");(0,C.applyFontInfo)(g,this.a),g.style.fontStyle="italic",S.appendChild(g);const i=[];for(const t of this.b){let n;t.type===0&&(n=v),t.type===2&&(n=f),t.type===1&&(n=g),n.appendChild(document.createElement("br"));const a=document.createElement("span");E.f(a,t),n.appendChild(a),i.push(a)}this.c=S,this.d=i}static f(S,v){if(v.chr===" "){let f="\xA0";for(let g=0;g<8;g++)f+=f;S.innerText=f}else{let f=v.chr;for(let g=0;g<8;g++)f+=f;S.textContent=f}}g(){for(let S=0,v=this.b.length;S<v;S++){const f=this.b[S],g=this.d[S];f.fulfill(g.offsetWidth/256)}}}function I(L,S){new E(L,S).read()}e.readCharWidths=I}),define(_[432],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.migrateOptions=e.EditorSettingMigration=void 0;class C{constructor(v,f){this.key=v,this.migrate=f}apply(v){const f=C.a(v,this.key),g=t=>C.a(v,t),i=(t,n)=>C.b(v,t,n);this.migrate(f,g,i)}static a(v,f){if(typeof v>"u")return;const g=f.indexOf(".");if(g>=0){const i=f.substring(0,g);return this.a(v[i],f.substring(g+1))}return v[f]}static b(v,f,g){const i=f.indexOf(".");if(i>=0){const t=f.substring(0,i);v[t]=v[t]||{},this.b(v[t],f.substring(i+1),g);return}v[f]=g}}C.items=[],e.EditorSettingMigration=C;function N(S,v){C.items.push(new C(S,v))}function E(S,v){N(S,(f,g,i)=>{if(typeof f<"u"){for(const[t,n]of v)if(f===t){i(S,n);return}}})}function I(S){C.items.forEach(v=>v.apply(S))}e.migrateOptions=I,E("wordWrap",[[!0,"on"],[!1,"off"]]),E("lineNumbers",[[!0,"on"],[!1,"off"]]),E("cursorBlinking",[["visible","solid"]]),E("renderWhitespace",[[!0,"boundary"],[!1,"none"]]),E("renderLineHighlight",[[!0,"line"],[!1,"none"]]),E("acceptSuggestionOnEnter",[[!0,"on"],[!1,"off"]]),E("tabCompletion",[[!1,"off"],[!0,"onlySnippets"]]),E("hover",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),E("parameterHints",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),E("autoIndent",[[!1,"advanced"],[!0,"full"]]),E("matchBrackets",[[!0,"always"],[!1,"never"]]),E("renderFinalNewline",[[!0,"on"],[!1,"off"]]),E("cursorSmoothCaretAnimation",[[!0,"on"],[!1,"off"]]),N("autoClosingBrackets",(S,v,f)=>{S===!1&&(f("autoClosingBrackets","never"),typeof v("autoClosingQuotes")>"u"&&f("autoClosingQuotes","never"),typeof v("autoSurround")>"u"&&f("autoSurround","never"))}),N("renderIndentGuides",(S,v,f)=>{typeof S<"u"&&(f("renderIndentGuides",void 0),typeof v("guides.indentation")>"u"&&f("guides.indentation",!!S))}),N("highlightActiveIndentGuide",(S,v,f)=>{typeof S<"u"&&(f("highlightActiveIndentGuide",void 0),typeof v("guides.highlightActiveIndentation")>"u"&&f("guides.highlightActiveIndentation",!!S))});const L={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"};N("suggest.filteredTypes",(S,v,f)=>{if(S&&typeof S=="object"){for(const g of Object.entries(L))S[g[0]]===!1&&typeof v(`suggest.${g[1]}`)>"u"&&f(`suggest.${g[1]}`,!1);f("suggest.filteredTypes",void 0)}}),N("quickSuggestions",(S,v,f)=>{if(typeof S=="boolean"){const g=S?"on":"off";f("quickSuggestions",{comments:g,strings:g,other:g})}}),N("experimental.stickyScroll.enabled",(S,v,f)=>{typeof S=="boolean"&&(f("experimental.stickyScroll.enabled",void 0),typeof v("stickyScroll.enabled")>"u"&&f("stickyScroll.enabled",S))}),N("experimental.stickyScroll.maxLineCount",(S,v,f)=>{typeof S=="number"&&(f("experimental.stickyScroll.maxLineCount",void 0),typeof v("stickyScroll.maxLineCount")>"u"&&f("stickyScroll.maxLineCount",S))})}),define(_[112],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StableEditorScrollState=void 0;class C{static capture(E){let I=null,L=0;if(E.getScrollTop()!==0){const S=E.getVisibleRanges();if(S.length>0){I=S[0].getStartPosition();const v=E.getTopForPosition(I.lineNumber,I.column);L=E.getScrollTop()-v}}return new C(I,L,E.getPosition())}constructor(E,I,L){this.a=E,this.b=I,this.c=L}restore(E){if(this.a){const I=E.getTopForPosition(this.a.lineNumber,this.a.column);E.setScrollTop(I+this.b)}}restoreRelativeVerticalPositionOfCursor(E){const I=E.getPosition();if(!this.c||!I)return;const L=E.getTopForLineNumber(I.lineNumber)-E.getTopForLineNumber(this.c.lineNumber);E.setScrollTop(E.getScrollTop()+L)}}e.StableEditorScrollState=C}),define(_[130],ee([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 C{constructor(g,i){this._restrictedRenderingContextBrand=void 0,this.c=g,this.viewportData=i,this.scrollWidth=this.c.getScrollWidth(),this.scrollHeight=this.c.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;const t=this.c.getCurrentViewport();this.scrollTop=t.top,this.scrollLeft=t.left,this.viewportWidth=t.width,this.viewportHeight=t.height}getScrolledTopFromAbsoluteTop(g){return g-this.scrollTop}getVerticalOffsetForLineNumber(g,i){return this.c.getVerticalOffsetForLineNumber(g,i)}getVerticalOffsetAfterLineNumber(g,i){return this.c.getVerticalOffsetAfterLineNumber(g,i)}getDecorationsInViewport(){return this.viewportData.getDecorationsInViewport()}}e.RestrictedRenderingContext=C;class N extends C{constructor(g,i,t){super(g,i),this._renderingContextBrand=void 0,this.d=t}linesVisibleRangesForRange(g,i){return this.d.linesVisibleRangesForRange(g,i)}visibleRangeForPosition(g){return this.d.visibleRangeForPosition(g)}}e.RenderingContext=N;class E{constructor(g,i,t){this.outsideRenderedLine=g,this.lineNumber=i,this.ranges=t}}e.LineVisibleRanges=E;class I{static from(g){const i=new Array(g.length);for(let t=0,n=g.length;t<n;t++){const a=g[t];i[t]=new I(a.left,a.width)}return i}constructor(g,i){this._horizontalRangeBrand=void 0,this.left=Math.round(g),this.width=Math.round(i)}toString(){return`[${this.left},${this.width}]`}}e.HorizontalRange=I;class L{constructor(g,i){this._floatHorizontalRangeBrand=void 0,this.left=g,this.width=i}toString(){return`[${this.left},${this.width}]`}static compare(g,i){return g.left-i.left}}e.FloatHorizontalRange=L;class S{constructor(g,i){this.outsideRenderedLine=g,this.originalLeft=i,this.left=Math.round(this.originalLeft)}}e.HorizontalPosition=S;class v{constructor(g,i){this.outsideRenderedLine=g,this.ranges=i}}e.VisibleRanges=v}),define(_[246],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewUserInputEvents=void 0;class C{constructor(E){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.a=E}emitKeyDown(E){var I;(I=this.onKeyDown)===null||I===void 0||I.call(this,E)}emitKeyUp(E){var I;(I=this.onKeyUp)===null||I===void 0||I.call(this,E)}emitContextMenu(E){var I;(I=this.onContextMenu)===null||I===void 0||I.call(this,this.b(E))}emitMouseMove(E){var I;(I=this.onMouseMove)===null||I===void 0||I.call(this,this.b(E))}emitMouseLeave(E){var I;(I=this.onMouseLeave)===null||I===void 0||I.call(this,this.b(E))}emitMouseDown(E){var I;(I=this.onMouseDown)===null||I===void 0||I.call(this,this.b(E))}emitMouseUp(E){var I;(I=this.onMouseUp)===null||I===void 0||I.call(this,this.b(E))}emitMouseDrag(E){var I;(I=this.onMouseDrag)===null||I===void 0||I.call(this,this.b(E))}emitMouseDrop(E){var I;(I=this.onMouseDrop)===null||I===void 0||I.call(this,this.b(E))}emitMouseDropCanceled(){var E;(E=this.onMouseDropCanceled)===null||E===void 0||E.call(this)}emitMouseWheel(E){var I;(I=this.onMouseWheel)===null||I===void 0||I.call(this,E)}b(E){return E.target?{event:E.event,target:this.c(E.target)}:E}c(E){return C.convertViewToModelMouseTarget(E,this.a)}static convertViewToModelMouseTarget(E,I){const L=Object.assign({},E);return L.position&&(L.position=I.convertViewPositionToModelPosition(L.position)),L.range&&(L.range=I.convertViewRangeToModelRange(L.range)),L}}e.ViewUserInputEvents=C}),define(_[433],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DomReadingContext=void 0;class C{get didDomLayout(){return this.a}e(){if(!this.d){this.d=!0;const E=this.f.getBoundingClientRect();this.markDidDomLayout(),this.b=E.left,this.c=E.width/this.f.offsetWidth}}get clientRectDeltaLeft(){return this.d||this.e(),this.b}get clientRectScale(){return this.d||this.e(),this.c}constructor(E,I){this.f=E,this.endNode=I,this.a=!1,this.b=0,this.c=1,this.d=!1}markDidDomLayout(){this.a=!0}}e.DomReadingContext=C}),define(_[434],ee([1,0,130]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RangeUtil=void 0;class N{static b(){return this.a||(this.a=document.createRange()),this.a}static c(I,L){I.selectNodeContents(L)}static d(I,L,S,v,f){const g=this.b();try{return g.setStart(I,L),g.setEnd(S,v),g.getClientRects()}catch{return null}finally{this.c(g,f)}}static f(I){if(I.length===1)return I;I.sort(C.FloatHorizontalRange.compare);const L=[];let S=0,v=I[0];for(let f=1,g=I.length;f<g;f++){const i=I[f];v.left+v.width+.9>=i.left?v.width=Math.max(v.width,i.left+i.width-v.left):(L[S++]=v,v=i)}return L[S++]=v,L}static g(I,L,S){if(!I||I.length===0)return null;const v=[];for(let f=0,g=I.length;f<g;f++){const i=I[f];v[f]=new C.FloatHorizontalRange(Math.max(0,(i.left-L)/S),i.width/S)}return this.f(v)}static readHorizontalRanges(I,L,S,v,f,g){const t=I.children.length-1;if(0>t)return null;if(L=Math.min(t,Math.max(0,L)),v=Math.min(t,Math.max(0,v)),L===v&&S===f&&S===0&&!I.children[L].firstChild){const c=I.children[L].getClientRects();return g.markDidDomLayout(),this.g(c,g.clientRectDeltaLeft,g.clientRectScale)}L!==v&&v>0&&f===0&&(v--,f=1073741824);let n=I.children[L].firstChild,a=I.children[v].firstChild;if((!n||!a)&&(!n&&S===0&&L>0&&(n=I.children[L-1].firstChild,S=1073741824),!a&&f===0&&v>0&&(a=I.children[v-1].firstChild,f=1073741824)),!n||!a)return null;S=Math.min(n.textContent.length,Math.max(0,S)),f=Math.min(a.textContent.length,Math.max(0,f));const r=this.d(n,S,a,f,g.endNode);return g.markDidDomLayout(),this.g(r,g.clientRectDeltaLeft,g.clientRectScale)}}e.RangeUtil=N}),define(_[247],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCharIndex=e.allCharCodes=void 0,e.allCharCodes=(()=>{const N=[];for(let E=32;E<=126;E++)N.push(E);return N.push(65533),N})();const C=(N,E)=>(N-=32,N<0||N>96?E<=2?(N+96)%96:96-1:N);e.getCharIndex=C}),define(_[435],ee([1,0,247,153]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MinimapCharRenderer=void 0;class E{constructor(L,S){this.scale=S,this._minimapCharRendererBrand=void 0,this.a=E.e(L,12/15),this.d=E.e(L,50/60)}static e(L,S){const v=new Uint8ClampedArray(L.length);for(let f=0,g=L.length;f<g;f++)v[f]=(0,N.toUint8)(L[f]*S);return v}renderChar(L,S,v,f,g,i,t,n,a,r,c){const d=1*this.scale,s=2*this.scale,l=c?1:s;if(S+d>L.width||v+l>L.height){console.warn("bad render request outside image data");return}const o=r?this.d:this.a,u=(0,C.getCharIndex)(f,a),h=L.width*4,w=t.r,m=t.g,p=t.b,b=g.r-w,y=g.g-m,k=g.b-p,D=Math.max(i,n),M=L.data;let z=u*d*s,R=v*h+S*4;for(let P=0;P<l;P++){let A=R;for(let T=0;T<d;T++){const O=o[z++]/255*(i/255);M[A++]=w+b*O,M[A++]=m+y*O,M[A++]=p+k*O,M[A++]=D}R+=h}}blockRenderChar(L,S,v,f,g,i,t,n){const a=1*this.scale,r=2*this.scale,c=n?1:r;if(S+a>L.width||v+c>L.height){console.warn("bad render request outside image data");return}const d=L.width*4,s=.5*(g/255),l=i.r,o=i.g,u=i.b,h=f.r-l,w=f.g-o,m=f.b-u,p=l+h*s,b=o+w*s,y=u+m*s,k=Math.max(g,t),D=L.data;let M=v*d+S*4;for(let z=0;z<c;z++){let R=M;for(let P=0;P<a;P++)D[R++]=p,D[R++]=b,D[R++]=y,D[R++]=k;M+=d}}}e.MinimapCharRenderer=E}),define(_[436],ee([1,0,92]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.prebakedMiniMaps=void 0;const N={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},E=I=>{const L=new Uint8ClampedArray(I.length/2);for(let S=0;S<I.length;S+=2)L[S>>1]=N[I[S]]<<4|N[I[S+1]]&15;return L};e.prebakedMiniMaps={1:(0,C.once)(()=>E("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")),2:(0,C.once)(()=>E("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126"))}}),define(_[437],ee([1,0,435,247,436,153]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MinimapCharRendererFactory=void 0;class L{static create(v,f){if(this.a&&v===this.a.scale&&f===this.b)return this.a;let g;return E.prebakedMiniMaps[v]?g=new C.MinimapCharRenderer(E.prebakedMiniMaps[v](),v):g=L.createFromSampleData(L.createSampleData(f).data,v),this.b=f,this.a=g,g}static createSampleData(v){const f=document.createElement("canvas"),g=f.getContext("2d");f.style.height=`${16}px`,f.height=16,f.width=96*10,f.style.width=96*10+"px",g.fillStyle="#ffffff",g.font=`bold ${16}px ${v}`,g.textBaseline="middle";let i=0;for(const t of N.allCharCodes)g.fillText(String.fromCharCode(t),i,16/2),i+=10;return g.getImageData(0,0,96*10,16)}static createFromSampleData(v,f){if(v.length!==61440)throw new Error("Unexpected source in MinimapCharRenderer");const i=L.d(v,f);return new C.MinimapCharRenderer(i,f)}static c(v,f,g,i,t){const n=1*t,a=2*t;let r=i,c=0;for(let d=0;d<a;d++){const s=d/a*16,l=(d+1)/a*16;for(let o=0;o<n;o++){const u=o/n*10,h=(o+1)/n*10;let w=0,m=0;for(let b=s;b<l;b++){const y=f+Math.floor(b)*3840,k=1-(b-Math.floor(b));for(let D=u;D<h;D++){const M=1-(D-Math.floor(D)),z=y+Math.floor(D)*4,R=M*k;m+=R,w+=v[z]*v[z+3]/255*R}}const p=w/m;c=Math.max(c,p),g[r++]=(0,I.toUint8)(p)}}return c}static d(v,f){const g=2*f*1*f,i=g*96,t=new Uint8ClampedArray(i);let n=0,a=0,r=0;for(let c=0;c<96;c++)r=Math.max(r,this.c(v,a,t,n,f)),n+=g,a+=10*4;if(r>0){const c=255/r;for(let d=0;d<i;d++)t[d]*=c}return t}}e.MinimapCharRendererFactory=L}),define(_[113],ee([1,0,153]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CharacterSet=e.CharacterClassifier=void 0;class N{constructor(L){const S=(0,C.toUint8)(L);this.c=S,this.a=N.d(S),this.b=new Map}static d(L){const S=new Uint8Array(256);return S.fill(L),S}set(L,S){const v=(0,C.toUint8)(S);L>=0&&L<256?this.a[L]=v:this.b.set(L,v)}get(L){return L>=0&&L<256?this.a[L]:this.b.get(L)||this.c}clear(){this.a.fill(this.c),this.b.clear()}}e.CharacterClassifier=N;class E{constructor(){this.a=new N(0)}add(L){this.a.set(L,1)}has(L){return this.a.get(L)===1}clear(){return this.a.clear()}}e.CharacterSet=E}),define(_[74],ee([1,0,9]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CursorColumns=void 0;class N{static a(I,L,S){return I===9?N.nextRenderTabStop(L,S):C.isFullWidthCharacter(I)||C.isEmojiImprecise(I)?L+2:L+1}static visibleColumnFromColumn(I,L,S){const v=Math.min(L-1,I.length),f=I.substring(0,v),g=new C.GraphemeIterator(f);let i=0;for(;!g.eol();){const t=C.getNextCodePoint(f,v,g.offset);g.nextGraphemeLength(),i=this.a(t,i,S)}return i}static columnFromVisibleColumn(I,L,S){if(L<=0)return 1;const v=I.length,f=new C.GraphemeIterator(I);let g=0,i=1;for(;!f.eol();){const t=C.getNextCodePoint(I,v,f.offset);f.nextGraphemeLength();const n=this.a(t,g,S),a=f.offset+1;if(n>=L){const r=L-g;return n-L<r?a:i}g=n,i=a}return v+1}static nextRenderTabStop(I,L){return I+L-I%L}static nextIndentTabStop(I,L){return I+L-I%L}static prevRenderTabStop(I,L){return Math.max(0,I-1-(I-1)%L)}static prevIndentTabStop(I,L){return Math.max(0,I-1-(I-1)%L)}}e.CursorColumns=N}),define(_[131],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.countEOL=void 0;function C(N){let E=0,I=0,L=0,S=0;for(let v=0,f=N.length;v<f;v++){const g=N.charCodeAt(v);g===13?(E===0&&(I=v),E++,v+1<f&&N.charCodeAt(v+1)===10?(S|=2,v++):S|=3,L=v+1):g===10&&(S|=1,E===0&&(I=v),E++,L=v+1)}return E===0&&(I=N.length),[E,I,N.length-L,S]}e.countEOL=C}),define(_[185],ee([1,0,9,74]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.normalizeIndentation=void 0;function E(L,S,v){let f=0;for(let i=0;i<L.length;i++)L.charAt(i)===" "?f=N.CursorColumns.nextIndentTabStop(f,S):f++;let g="";if(!v){const i=Math.floor(f/S);f=f%S;for(let t=0;t<i;t++)g+=" "}for(let i=0;i<f;i++)g+=" ";return g}function I(L,S,v){let f=C.firstNonWhitespaceIndex(L);return f===-1&&(f=L.length),E(L.substring(0,f),S,v)+L.substring(f)}e.normalizeIndentation=I}),define(_[12],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Position=void 0;class C{constructor(E,I){this.lineNumber=E,this.column=I}with(E=this.lineNumber,I=this.column){return E===this.lineNumber&&I===this.column?this:new C(E,I)}delta(E=0,I=0){return this.with(this.lineNumber+E,this.column+I)}equals(E){return C.equals(this,E)}static equals(E,I){return!E&&!I?!0:!!E&&!!I&&E.lineNumber===I.lineNumber&&E.column===I.column}isBefore(E){return C.isBefore(this,E)}static isBefore(E,I){return E.lineNumber<I.lineNumber?!0:I.lineNumber<E.lineNumber?!1:E.column<I.column}isBeforeOrEqual(E){return C.isBeforeOrEqual(this,E)}static isBeforeOrEqual(E,I){return E.lineNumber<I.lineNumber?!0:I.lineNumber<E.lineNumber?!1:E.column<=I.column}static compare(E,I){const L=E.lineNumber|0,S=I.lineNumber|0;if(L===S){const v=E.column|0,f=I.column|0;return v-f}return L-S}clone(){return new C(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(E){return new C(E.lineNumber,E.column)}static isIPosition(E){return E&&typeof E.lineNumber=="number"&&typeof E.column=="number"}}e.Position=C}),define(_[4],ee([1,0,12]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Range=void 0;class N{constructor(I,L,S,v){I>S||I===S&&L>v?(this.startLineNumber=S,this.startColumn=v,this.endLineNumber=I,this.endColumn=L):(this.startLineNumber=I,this.startColumn=L,this.endLineNumber=S,this.endColumn=v)}isEmpty(){return N.isEmpty(this)}static isEmpty(I){return I.startLineNumber===I.endLineNumber&&I.startColumn===I.endColumn}containsPosition(I){return N.containsPosition(this,I)}static containsPosition(I,L){return!(L.lineNumber<I.startLineNumber||L.lineNumber>I.endLineNumber||L.lineNumber===I.startLineNumber&&L.column<I.startColumn||L.lineNumber===I.endLineNumber&&L.column>I.endColumn)}static strictContainsPosition(I,L){return!(L.lineNumber<I.startLineNumber||L.lineNumber>I.endLineNumber||L.lineNumber===I.startLineNumber&&L.column<=I.startColumn||L.lineNumber===I.endLineNumber&&L.column>=I.endColumn)}containsRange(I){return N.containsRange(this,I)}static containsRange(I,L){return!(L.startLineNumber<I.startLineNumber||L.endLineNumber<I.startLineNumber||L.startLineNumber>I.endLineNumber||L.endLineNumber>I.endLineNumber||L.startLineNumber===I.startLineNumber&&L.startColumn<I.startColumn||L.endLineNumber===I.endLineNumber&&L.endColumn>I.endColumn)}strictContainsRange(I){return N.strictContainsRange(this,I)}static strictContainsRange(I,L){return!(L.startLineNumber<I.startLineNumber||L.endLineNumber<I.startLineNumber||L.startLineNumber>I.endLineNumber||L.endLineNumber>I.endLineNumber||L.startLineNumber===I.startLineNumber&&L.startColumn<=I.startColumn||L.endLineNumber===I.endLineNumber&&L.endColumn>=I.endColumn)}plusRange(I){return N.plusRange(this,I)}static plusRange(I,L){let S,v,f,g;return L.startLineNumber<I.startLineNumber?(S=L.startLineNumber,v=L.startColumn):L.startLineNumber===I.startLineNumber?(S=L.startLineNumber,v=Math.min(L.startColumn,I.startColumn)):(S=I.startLineNumber,v=I.startColumn),L.endLineNumber>I.endLineNumber?(f=L.endLineNumber,g=L.endColumn):L.endLineNumber===I.endLineNumber?(f=L.endLineNumber,g=Math.max(L.endColumn,I.endColumn)):(f=I.endLineNumber,g=I.endColumn),new N(S,v,f,g)}intersectRanges(I){return N.intersectRanges(this,I)}static intersectRanges(I,L){let S=I.startLineNumber,v=I.startColumn,f=I.endLineNumber,g=I.endColumn;const i=L.startLineNumber,t=L.startColumn,n=L.endLineNumber,a=L.endColumn;return S<i?(S=i,v=t):S===i&&(v=Math.max(v,t)),f>n?(f=n,g=a):f===n&&(g=Math.min(g,a)),S>f||S===f&&v>g?null:new N(S,v,f,g)}equalsRange(I){return N.equalsRange(this,I)}static equalsRange(I,L){return!I&&!L?!0:!!I&&!!L&&I.startLineNumber===L.startLineNumber&&I.startColumn===L.startColumn&&I.endLineNumber===L.endLineNumber&&I.endColumn===L.endColumn}getEndPosition(){return N.getEndPosition(this)}static getEndPosition(I){return new C.Position(I.endLineNumber,I.endColumn)}getStartPosition(){return N.getStartPosition(this)}static getStartPosition(I){return new C.Position(I.startLineNumber,I.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(I,L){return new N(this.startLineNumber,this.startColumn,I,L)}setStartPosition(I,L){return new N(I,L,this.endLineNumber,this.endColumn)}collapseToStart(){return N.collapseToStart(this)}static collapseToStart(I){return new N(I.startLineNumber,I.startColumn,I.startLineNumber,I.startColumn)}collapseToEnd(){return N.collapseToEnd(this)}static collapseToEnd(I){return new N(I.endLineNumber,I.endColumn,I.endLineNumber,I.endColumn)}delta(I){return new N(this.startLineNumber+I,this.startColumn,this.endLineNumber+I,this.endColumn)}static fromPositions(I,L=I){return new N(I.lineNumber,I.column,L.lineNumber,L.column)}static lift(I){return I?new N(I.startLineNumber,I.startColumn,I.endLineNumber,I.endColumn):null}static isIRange(I){return I&&typeof I.startLineNumber=="number"&&typeof I.startColumn=="number"&&typeof I.endLineNumber=="number"&&typeof I.endColumn=="number"}static areIntersectingOrTouching(I,L){return!(I.endLineNumber<L.startLineNumber||I.endLineNumber===L.startLineNumber&&I.endColumn<L.startColumn||L.endLineNumber<I.startLineNumber||L.endLineNumber===I.startLineNumber&&L.endColumn<I.startColumn)}static areIntersecting(I,L){return!(I.endLineNumber<L.startLineNumber||I.endLineNumber===L.startLineNumber&&I.endColumn<=L.startColumn||L.endLineNumber<I.startLineNumber||L.endLineNumber===I.startLineNumber&&L.endColumn<=I.startColumn)}static compareRangesUsingStarts(I,L){if(I&&L){const f=I.startLineNumber|0,g=L.startLineNumber|0;if(f===g){const i=I.startColumn|0,t=L.startColumn|0;if(i===t){const n=I.endLineNumber|0,a=L.endLineNumber|0;if(n===a){const r=I.endColumn|0,c=L.endColumn|0;return r-c}return n-a}return i-t}return f-g}return(I?1:0)-(L?1:0)}static compareRangesUsingEnds(I,L){return I.endLineNumber===L.endLineNumber?I.endColumn===L.endColumn?I.startLineNumber===L.startLineNumber?I.startColumn-L.startColumn:I.startLineNumber-L.startLineNumber:I.endColumn-L.endColumn:I.endLineNumber-L.endLineNumber}static spansMultipleLines(I){return I.endLineNumber>I.startLineNumber}toJSON(){return this}}e.Range=N}),define(_[248],ee([1,0,9,4]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PagedScreenReaderStrategy=e.TextAreaState=e._debugComposition=void 0,e._debugComposition=!1;class E{constructor(S,v,f,g,i){this.value=S,this.selectionStart=v,this.selectionEnd=f,this.selection=g,this.newlineCountBeforeSelection=i}toString(){return`[ <${this.value}>, selectionStart: ${this.selectionStart}, selectionEnd: ${this.selectionEnd}]`}static readFromTextArea(S,v){const f=S.getValue(),g=S.getSelectionStart(),i=S.getSelectionEnd();let t;if(v){const n=f.substring(0,g),a=v.value.substring(0,v.selectionStart);n===a&&(t=v.newlineCountBeforeSelection)}return new E(f,g,i,null,t)}collapseSelection(){return this.selectionStart===this.value.length?this:new E(this.value,this.value.length,this.value.length,null,void 0)}writeToTextArea(S,v,f){e._debugComposition&&console.log(`writeToTextArea ${S}: ${this.toString()}`),v.setValue(S,this.value),f&&v.setSelectionRange(S,this.selectionStart,this.selectionEnd)}deduceEditorPosition(S){var v,f,g,i,t,n,a,r;if(S<=this.selectionStart){const s=this.value.substring(S,this.selectionStart);return this.a((f=(v=this.selection)===null||v===void 0?void 0:v.getStartPosition())!==null&&f!==void 0?f:null,s,-1)}if(S>=this.selectionEnd){const s=this.value.substring(this.selectionEnd,S);return this.a((i=(g=this.selection)===null||g===void 0?void 0:g.getEndPosition())!==null&&i!==void 0?i:null,s,1)}const c=this.value.substring(this.selectionStart,S);if(c.indexOf(String.fromCharCode(8230))===-1)return this.a((n=(t=this.selection)===null||t===void 0?void 0:t.getStartPosition())!==null&&n!==void 0?n:null,c,1);const d=this.value.substring(S,this.selectionEnd);return this.a((r=(a=this.selection)===null||a===void 0?void 0:a.getEndPosition())!==null&&r!==void 0?r:null,d,-1)}a(S,v,f){let g=0,i=-1;for(;(i=v.indexOf(`
|
||
`,i+1))!==-1;)g++;return[S,f*v.length,g]}static deduceInput(S,v,f){if(!S)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};e._debugComposition&&(console.log("------------------------deduceInput"),console.log(`PREVIOUS STATE: ${S.toString()}`),console.log(`CURRENT STATE: ${v.toString()}`));const g=Math.min(C.commonPrefixLength(S.value,v.value),S.selectionStart,v.selectionStart),i=Math.min(C.commonSuffixLength(S.value,v.value),S.value.length-S.selectionEnd,v.value.length-v.selectionEnd),t=S.value.substring(g,S.value.length-i),n=v.value.substring(g,v.value.length-i),a=S.selectionStart-g,r=S.selectionEnd-g,c=v.selectionStart-g,d=v.selectionEnd-g;if(e._debugComposition&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${t}>, selectionStart: ${a}, selectionEnd: ${r}`),console.log(`AFTER DIFFING CURRENT STATE: <${n}>, selectionStart: ${c}, selectionEnd: ${d}`)),c===d){const l=S.selectionStart-g;return e._debugComposition&&console.log(`REMOVE PREVIOUS: ${l} chars`),{text:n,replacePrevCharCnt:l,replaceNextCharCnt:0,positionDelta:0}}const s=r-a;return{text:n,replacePrevCharCnt:s,replaceNextCharCnt:0,positionDelta:0}}static deduceAndroidCompositionInput(S,v){if(!S)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};if(e._debugComposition&&(console.log("------------------------deduceAndroidCompositionInput"),console.log(`PREVIOUS STATE: ${S.toString()}`),console.log(`CURRENT STATE: ${v.toString()}`)),S.value===v.value)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:v.selectionEnd-S.selectionEnd};const f=Math.min(C.commonPrefixLength(S.value,v.value),S.selectionEnd),g=Math.min(C.commonSuffixLength(S.value,v.value),S.value.length-S.selectionEnd),i=S.value.substring(f,S.value.length-g),t=v.value.substring(f,v.value.length-g),n=S.selectionStart-f,a=S.selectionEnd-f,r=v.selectionStart-f,c=v.selectionEnd-f;return e._debugComposition&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${i}>, selectionStart: ${n}, selectionEnd: ${a}`),console.log(`AFTER DIFFING CURRENT STATE: <${t}>, selectionStart: ${r}, selectionEnd: ${c}`)),{text:t,replacePrevCharCnt:a,replaceNextCharCnt:i.length-a,positionDelta:c-t.length}}}E.EMPTY=new E("",0,0,null,void 0),e.TextAreaState=E;class I{static a(S,v){return Math.floor((S-1)/v)}static b(S,v){const f=S*v,g=f+1,i=f+v;return new N.Range(g,1,i+1,1)}static fromEditorSelection(S,v,f,g){const t=I.a(v.startLineNumber,f),n=I.b(t,f),a=I.a(v.endLineNumber,f),r=I.b(a,f);let c=n.intersectRanges(new N.Range(1,1,v.startLineNumber,v.startColumn));if(g&&S.getValueLengthInRange(c,1)>500){const w=S.modifyPosition(c.getEndPosition(),-500);c=N.Range.fromPositions(w,c.getEndPosition())}const d=S.getValueInRange(c,1),s=S.getLineCount(),l=S.getLineMaxColumn(s);let o=r.intersectRanges(new N.Range(v.endLineNumber,v.endColumn,s,l));if(g&&S.getValueLengthInRange(o,1)>500){const w=S.modifyPosition(o.getStartPosition(),500);o=N.Range.fromPositions(o.getStartPosition(),w)}const u=S.getValueInRange(o,1);let h;if(t===a||t+1===a)h=S.getValueInRange(v,1);else{const w=n.intersectRanges(v),m=r.intersectRanges(v);h=S.getValueInRange(w,1)+String.fromCharCode(8230)+S.getValueInRange(m,1)}return g&&h.length>2*500&&(h=h.substring(0,500)+String.fromCharCode(8230)+h.substring(h.length-500,h.length)),new E(d+h+u,d.length,d.length+h.length,v,c.endLineNumber-c.startLineNumber)}}e.PagedScreenReaderStrategy=I}),define(_[64],ee([1,0,4]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditOperation=void 0;class N{static insert(I,L){return{range:new C.Range(I.lineNumber,I.column,I.lineNumber,I.column),text:L,forceMoveMarkers:!0}}static delete(I){return{range:I,text:null}}static replace(I,L){return{range:I,text:L}}static replaceMove(I,L){return{range:I,text:L,forceMoveMarkers:!0}}}e.EditOperation=N}),define(_[438],ee([1,0,9,64,4]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.trimTrailingWhitespace=e.TrimTrailingWhitespaceCommand=void 0;class I{constructor(v,f){this.c=v,this.e=f,this.d=null}getEditOperations(v,f){const g=L(v,this.e);for(let i=0,t=g.length;i<t;i++){const n=g[i];f.addEditOperation(n.range,n.text)}this.d=f.trackSelection(this.c)}computeCursorState(v,f){return f.getTrackedSelection(this.d)}}e.TrimTrailingWhitespaceCommand=I;function L(S,v){v.sort((n,a)=>n.lineNumber===a.lineNumber?n.column-a.column:n.lineNumber-a.lineNumber);for(let n=v.length-2;n>=0;n--)v[n].lineNumber===v[n+1].lineNumber&&v.splice(n,1);const f=[];let g=0,i=0;const t=v.length;for(let n=1,a=S.getLineCount();n<=a;n++){const r=S.getLineContent(n),c=r.length+1;let d=0;if(i<t&&v[i].lineNumber===n&&(d=v[i].column,i++,d===c)||r.length===0)continue;const s=C.lastNonWhitespaceIndex(r);let l=0;if(s===-1)l=1;else if(s!==r.length-1)l=s+2;else continue;l=Math.max(d,l),f[g++]=N.EditOperation.delete(new E.Range(n,l,n,c))}return f}e.trimTrailingWhitespace=L}),define(_[249],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RGBA8=void 0;class C{constructor(E,I,L,S){this._rgba8Brand=void 0,this.r=C._clamp(E),this.g=C._clamp(I),this.b=C._clamp(L),this.a=C._clamp(S)}equals(E){return this.r===E.r&&this.g===E.g&&this.b===E.b&&this.a===E.a}static _clamp(E){return E<0?0:E>255?255:E|0}}C.Empty=new C(0,0,0,0),e.RGBA8=C}),define(_[22],ee([1,0,12,4]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Selection=void 0;class E extends N.Range{constructor(L,S,v,f){super(L,S,v,f),this.selectionStartLineNumber=L,this.selectionStartColumn=S,this.positionLineNumber=v,this.positionColumn=f}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(L){return E.selectionsEqual(this,L)}static selectionsEqual(L,S){return L.selectionStartLineNumber===S.selectionStartLineNumber&&L.selectionStartColumn===S.selectionStartColumn&&L.positionLineNumber===S.positionLineNumber&&L.positionColumn===S.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(L,S){return this.getDirection()===0?new E(this.startLineNumber,this.startColumn,L,S):new E(L,S,this.startLineNumber,this.startColumn)}getPosition(){return new C.Position(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new C.Position(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(L,S){return this.getDirection()===0?new E(L,S,this.endLineNumber,this.endColumn):new E(this.endLineNumber,this.endColumn,L,S)}static fromPositions(L,S=L){return new E(L.lineNumber,L.column,S.lineNumber,S.column)}static fromRange(L,S){return S===0?new E(L.startLineNumber,L.startColumn,L.endLineNumber,L.endColumn):new E(L.endLineNumber,L.endColumn,L.startLineNumber,L.startColumn)}static liftSelection(L){return new E(L.selectionStartLineNumber,L.selectionStartColumn,L.positionLineNumber,L.positionColumn)}static selectionsArrEqual(L,S){if(L&&!S||!L&&S)return!1;if(!L&&!S)return!0;if(L.length!==S.length)return!1;for(let v=0,f=L.length;v<f;v++)if(!this.selectionsEqual(L[v],S[v]))return!1;return!0}static isISelection(L){return L&&typeof L.selectionStartLineNumber=="number"&&typeof L.selectionStartColumn=="number"&&typeof L.positionLineNumber=="number"&&typeof L.positionColumn=="number"}static createWithDirection(L,S,v,f,g){return g===0?new E(L,S,v,f):new E(v,f,L,S)}}e.Selection=E}),define(_[114],ee([1,0,22]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ReplaceCommandThatPreservesSelection=e.ReplaceCommandWithOffsetCursorState=e.ReplaceCommandWithoutChangingPosition=e.ReplaceCommandThatSelectsText=e.ReplaceCommand=void 0;class N{constructor(f,g,i=!1){this.a=f,this.b=g,this.insertsAutoWhitespace=i}getEditOperations(f,g){g.addTrackedEditOperation(this.a,this.b)}computeCursorState(f,g){const t=g.getInverseEditOperations()[0].range;return C.Selection.fromPositions(t.getEndPosition())}}e.ReplaceCommand=N;class E{constructor(f,g){this.a=f,this.b=g}getEditOperations(f,g){g.addTrackedEditOperation(this.a,this.b)}computeCursorState(f,g){const t=g.getInverseEditOperations()[0].range;return C.Selection.fromRange(t,0)}}e.ReplaceCommandThatSelectsText=E;class I{constructor(f,g,i=!1){this.a=f,this.b=g,this.insertsAutoWhitespace=i}getEditOperations(f,g){g.addTrackedEditOperation(this.a,this.b)}computeCursorState(f,g){const t=g.getInverseEditOperations()[0].range;return C.Selection.fromPositions(t.getStartPosition())}}e.ReplaceCommandWithoutChangingPosition=I;class L{constructor(f,g,i,t,n=!1){this.a=f,this.b=g,this.c=t,this.d=i,this.insertsAutoWhitespace=n}getEditOperations(f,g){g.addTrackedEditOperation(this.a,this.b)}computeCursorState(f,g){const t=g.getInverseEditOperations()[0].range;return C.Selection.fromPositions(t.getEndPosition().delta(this.d,this.c))}}e.ReplaceCommandWithOffsetCursorState=L;class S{constructor(f,g,i,t=!1){this.a=f,this.b=g,this.c=i,this.d=t,this.e=null}getEditOperations(f,g){g.addTrackedEditOperation(this.a,this.b,this.d),this.e=g.trackSelection(this.c)}computeCursorState(f,g){return g.getTrackedSelection(this.e)}}e.ReplaceCommandThatPreservesSelection=S}),define(_[439],ee([1,0,4,22]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CompositionSurroundSelectionCommand=e.SurroundSelectionCommand=void 0;class E{constructor(S,v,f){this.a=S,this.b=v,this.c=f}getEditOperations(S,v){v.addTrackedEditOperation(new C.Range(this.a.startLineNumber,this.a.startColumn,this.a.startLineNumber,this.a.startColumn),this.b),v.addTrackedEditOperation(new C.Range(this.a.endLineNumber,this.a.endColumn,this.a.endLineNumber,this.a.endColumn),this.c)}computeCursorState(S,v){const f=v.getInverseEditOperations(),g=f[0].range,i=f[1].range;return new N.Selection(g.endLineNumber,g.endColumn,i.endLineNumber,i.endColumn-this.c.length)}}e.SurroundSelectionCommand=E;class I{constructor(S,v,f){this.a=S,this.b=v,this.c=f}getEditOperations(S,v){v.addTrackedEditOperation(new C.Range(this.a.lineNumber,this.a.column,this.a.lineNumber,this.a.column),this.b+this.c)}computeCursorState(S,v){const g=v.getInverseEditOperations()[0].range;return new N.Selection(g.endLineNumber,g.startColumn,g.endLineNumber,g.endColumn-this.c.length)}}e.CompositionSurroundSelectionCommand=I}),define(_[157],ee([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(_[132],ee([1,0,113]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMapForWordSeparators=e.WordCharacterClassifier=void 0;class N extends C.CharacterClassifier{constructor(L){super(0);for(let S=0,v=L.length;S<v;S++)this.set(L.charCodeAt(S),2);this.set(32,1),this.set(9,1)}}e.WordCharacterClassifier=N;function E(I){const L={};return S=>(L.hasOwnProperty(S)||(L[S]=I(S)),L[S])}e.getMapForWordSeparators=E(I=>new N(I))}),define(_[133],ee([1,0,54,59]),function(q,e,C,N){"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 E(f=""){let g="(-?\\d*\\.\\d\\w*)|([^";for(const i of e.USUAL_WORD_SEPARATORS)f.indexOf(i)>=0||(g+="\\"+i);return g+="\\s]+)",new RegExp(g,"g")}e.DEFAULT_WORD_REGEXP=E();function I(f){let g=e.DEFAULT_WORD_REGEXP;if(f&&f instanceof RegExp)if(f.global)g=f;else{let i="g";f.ignoreCase&&(i+="i"),f.multiline&&(i+="m"),f.unicode&&(i+="u"),g=new RegExp(f.source,i)}return g.lastIndex=0,g}e.ensureValidWordDefinition=I;const L=new N.LinkedList;L.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function S(f,g,i,t,n){if(n||(n=C.Iterable.first(L)),i.length>n.maxLen){let s=f-n.maxLen/2;return s<0?s=0:t+=s,i=i.substring(s,f+n.maxLen/2),S(f,g,i,t,n)}const a=Date.now(),r=f-1-t;let c=-1,d=null;for(let s=1;!(Date.now()-a>=n.timeBudget);s++){const l=r-n.windowSize*s;g.lastIndex=Math.max(0,l);const o=v(g,i,r,c);if(!o&&d||(d=o,l<=0))break;c=l}if(d){const s={word:d[0],startColumn:t+1+d.index,endColumn:t+1+d.index+d[0].length};return g.lastIndex=0,s}return null}e.getWordAtText=S;function v(f,g,i,t){let n;for(;n=f.exec(g);){const a=n.index||0;if(a<=i&&f.lastIndex>=i)return n;if(t>0&&a>t)return null}return null}}),define(_[250],ee([1,0,74]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AtomicTabMoveOperations=void 0;class N{static whitespaceVisibleColumn(I,L,S){const v=I.length;let f=0,g=-1,i=-1;for(let t=0;t<v;t++){if(t===L)return[g,i,f];switch(f%S===0&&(g=t,i=f),I.charCodeAt(t)){case 32:f+=1;break;case 9:f=C.CursorColumns.nextRenderTabStop(f,S);break;default:return[-1,-1,-1]}}return L===v?[g,i,f]:[-1,-1,-1]}static atomicPosition(I,L,S,v){const f=I.length,[g,i,t]=N.whitespaceVisibleColumn(I,L,S);if(t===-1)return-1;let n;switch(v){case 0:n=!0;break;case 1:n=!1;break;case 2:if(t%S===0)return L;n=t%S<=S/2;break}if(n){if(g===-1)return-1;let c=i;for(let d=g;d<f;++d){if(c===i+S)return g;switch(I.charCodeAt(d)){case 32:c+=1;break;case 9:c=C.CursorColumns.nextRenderTabStop(c,S);break;default:return-1}}return c===i+S?g:-1}const a=C.CursorColumns.nextRenderTabStop(t,S);let r=t;for(let c=L;c<f;c++){if(r===a)return c;switch(I.charCodeAt(c)){case 32:r+=1;break;case 9:r=C.CursorColumns.nextRenderTabStop(r,S);break;default:return-1}}return r===a?f:-1}}e.AtomicTabMoveOperations=N}),define(_[440],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CursorContext=void 0;class C{constructor(E,I,L,S){this._cursorContextBrand=void 0,this.model=E,this.viewModel=I,this.coordinatesConverter=L,this.cursorConfig=S}}e.CursorContext=C}),define(_[158],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OffsetRange=e.SequenceDiff=void 0;class C{constructor(I,L){this.seq1Range=I,this.seq2Range=L}reverse(){return new C(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}}e.SequenceDiff=C;class N{constructor(I,L){this.start=I,this.endExclusive=L}get isEmpty(){return this.start===this.endExclusive}delta(I){return new N(this.start+I,this.endExclusive+I)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}join(I){return new N(Math.min(this.start,I.start),Math.max(this.endExclusive,I.endExclusive))}}e.OffsetRange=N}),define(_[441],ee([1,0,158]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.shiftSequenceDiffs=e.joinSequenceDiffs=e.smoothenSequenceDiffs=e.optimizeSequenceDiffs=void 0;function N(v,f,g){let i=g;return i=I(v,f,i),i=L(v,f,i),i}e.optimizeSequenceDiffs=N;function E(v,f,g){const i=[];for(const t of g){const n=i[i.length-1];if(!n){i.push(t);continue}t.seq1Range.start-n.seq1Range.endExclusive<=2||t.seq2Range.start-n.seq2Range.endExclusive<=2?i[i.length-1]=new C.SequenceDiff(n.seq1Range.join(t.seq1Range),n.seq2Range.join(t.seq2Range)):i.push(t)}return i}e.smoothenSequenceDiffs=E;function I(v,f,g){const i=[];g.length>0&&i.push(g[0]);for(let t=1;t<g.length;t++){const n=i[i.length-1],a=g[t];if(a.seq1Range.isEmpty){let r=!0;const c=a.seq1Range.start-n.seq1Range.endExclusive;for(let d=1;d<=c;d++)if(f.getElement(a.seq2Range.start-d)!==f.getElement(a.seq2Range.endExclusive-d)){r=!1;break}if(r){i[i.length-1]=new C.SequenceDiff(n.seq1Range,new C.OffsetRange(n.seq2Range.start,a.seq2Range.endExclusive-c));continue}}i.push(a)}return i}e.joinSequenceDiffs=I;function L(v,f,g){if(!v.getBoundaryScore||!f.getBoundaryScore)return g;for(let i=0;i<g.length;i++){const t=g[i];if(t.seq1Range.isEmpty){const n=i>0?g[i-1].seq2Range.endExclusive:-1,a=i+1<g.length?g[i+1].seq2Range.start:f.length;g[i]=S(t,v,f,a,n)}else if(t.seq2Range.isEmpty){const n=i>0?g[i-1].seq1Range.endExclusive:-1,a=i+1<g.length?g[i+1].seq1Range.start:v.length;g[i]=S(t.reverse(),f,v,a,n).reverse()}}return g}e.shiftSequenceDiffs=L;function S(v,f,g,i,t){let a=1;for(;v.seq2Range.start-a>t&&g.getElement(v.seq2Range.start-a)===g.getElement(v.seq2Range.endExclusive-a)&&a<20;)a++;a--;let r=0;for(;v.seq2Range.start+r<i&&g.getElement(v.seq2Range.start+r)===g.getElement(v.seq2Range.endExclusive+r)&&r<20;)r++;if(a===0&&r===0)return v;let c=0,d=-1;for(let s=-a;s<=r;s++){const l=v.seq2Range.start+s,o=v.seq2Range.endExclusive+s,u=v.seq1Range.start+s,h=f.getBoundaryScore(u)+g.getBoundaryScore(l)+g.getBoundaryScore(o);h>d&&(d=h,c=s)}return c!==0?new C.SequenceDiff(v.seq1Range.delta(c),v.seq2Range.delta(c)):v}}),define(_[442],ee([1,0,158]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MyersDiffAlgorithm=void 0;class N{compute(v,f){if(v.length===0)return[new C.SequenceDiff(new C.OffsetRange(0,0),new C.OffsetRange(0,f.length))];if(f.length===0)return[new C.SequenceDiff(new C.OffsetRange(0,v.length),new C.OffsetRange(0,0))];function g(l,o){for(;l<v.length&&o<f.length&&v.getElement(l)===f.getElement(o);)l++,o++;return l}let i=0;const t=new I;t.set(0,g(0,0));const n=new L;n.set(0,t.get(0)===0?null:new E(null,0,0,t.get(0)));let a=0;e:for(;;)for(i++,a=-i;a<=i;a+=2){const l=a===i?-1:t.get(a+1),o=a===-i?-1:t.get(a-1)+1,u=Math.min(Math.max(l,o),v.length),h=u-a,w=g(u,h);t.set(a,w);const m=u===l?n.get(a+1):n.get(a-1);if(n.set(a,w!==u?new E(m,u,h,w-u):m),t.get(a)===v.length&&t.get(a)-a===f.length)break e}let r=n.get(a);const c=[];let d=v.length,s=f.length;for(;;){const l=r?r.x+r.length:0,o=r?r.y+r.length:0;if((l!==d||o!==s)&&c.push(new C.SequenceDiff(new C.OffsetRange(l,d),new C.OffsetRange(o,s))),!r)break;d=r.x,s=r.y,r=r.prev}return c.reverse(),c}}e.MyersDiffAlgorithm=N;class E{constructor(v,f,g,i){this.prev=v,this.x=f,this.y=g,this.length=i}}class I{constructor(){this.a=new Int32Array(10),this.b=new Int32Array(10)}get(v){return v<0?(v=-v-1,this.b[v]):this.a[v]}set(v,f){if(v<0){if(v=-v-1,v>=this.b.length){const g=this.b;this.b=new Int32Array(g.length*2),this.b.set(g)}this.b[v]=f}else{if(v>=this.a.length){const g=this.a;this.a=new Int32Array(g.length*2),this.a.set(g)}this.a[v]=f}}}class L{constructor(){this.a=[],this.b=[]}get(v){return v<0?(v=-v-1,this.b[v]):this.a[v]}set(v,f){v<0?(v=-v-1,this.b[v]=f):this.a[v]=f}}}),define(_[443],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Array2D=void 0;class C{constructor(E,I){this.width=E,this.height=I,this.a=[],this.a=new Array(E*I)}get(E,I){return this.a[E+I*this.width]}set(E,I,L){this.a[E+I*this.width]=L}}e.Array2D=C}),define(_[444],ee([1,0,158,443]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DynamicProgrammingDiffing=void 0;class E{compute(L,S,v){const f=new N.Array2D(L.length,S.length),g=new N.Array2D(L.length,S.length),i=new N.Array2D(L.length,S.length);for(let s=0;s<L.length;s++)for(let l=0;l<S.length;l++){const o=s===0?0:f.get(s-1,l),u=l===0?0:f.get(s,l-1);let h;L.getElement(s)===S.getElement(l)?(s===0||l===0?h=0:h=f.get(s-1,l-1),s>0&&l>0&&g.get(s-1,l-1)===3&&(h+=i.get(s-1,l-1)),h+=v?v(s,l):1):h=-1;const w=Math.max(o,u,h);if(w===h){const m=s>0&&l>0?i.get(s-1,l-1):0;i.set(s,l,m+1),g.set(s,l,3)}else w===o?(i.set(s,l,0),g.set(s,l,1)):w===u&&(i.set(s,l,0),g.set(s,l,2));f.set(s,l,w)}const t=[];let n=L.length,a=S.length;function r(s,l){(s+1!==n||l+1!==a)&&t.push(new C.SequenceDiff(new C.OffsetRange(s+1,n),new C.OffsetRange(l+1,a))),n=s,a=l}let c=L.length-1,d=S.length-1;for(;c>=0&&d>=0;)g.get(c,d)===3?(r(c,d),c--,d--):g.get(c,d)===1?c--:d--;return r(-1,-1),t.reverse(),t}}e.DynamicProgrammingDiffing=E}),define(_[159],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LineRange=e.RangeMapping=e.LineRangeMapping=void 0;class C{constructor(L,S,v){this.originalRange=L,this.modifiedRange=S,this.innerChanges=v}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}}e.LineRangeMapping=C;class N{constructor(L,S){this.originalRange=L,this.modifiedRange=S}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}}e.RangeMapping=N;class E{constructor(L,S){this.startLineNumber=L,this.endLineNumberExclusive=S}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(L){return new E(this.startLineNumber+L,this.endLineNumberExclusive+L)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(L){return new E(Math.min(this.startLineNumber,L.startLineNumber),Math.max(this.endLineNumberExclusive,L.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}}e.LineRange=E}),define(_[445],ee([1,0,152,159,9,4,85]),function(q,e,C,N,E,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DiffComputer=e.SmartLinesDiffComputer=void 0;const S=3;class v{computeDiff(o,u,h){var w;const p=new r(o,u,{maxComputationTime:h.maxComputationTimeMs,shouldIgnoreTrimWhitespace:h.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),b=[];let y=null;for(const k of p.changes){let D;k.originalEndLineNumber===0?D=new N.LineRange(k.originalStartLineNumber+1,k.originalStartLineNumber+1):D=new N.LineRange(k.originalStartLineNumber,k.originalEndLineNumber+1);let M;k.modifiedEndLineNumber===0?M=new N.LineRange(k.modifiedStartLineNumber+1,k.modifiedStartLineNumber+1):M=new N.LineRange(k.modifiedStartLineNumber,k.modifiedEndLineNumber+1);let z=new N.LineRangeMapping(D,M,(w=k.charChanges)===null||w===void 0?void 0:w.map(R=>new N.RangeMapping(new I.Range(R.originalStartLineNumber,R.originalStartColumn,R.originalEndLineNumber,R.originalEndColumn),new I.Range(R.modifiedStartLineNumber,R.modifiedStartColumn,R.modifiedEndLineNumber,R.modifiedEndColumn))));y&&(y.modifiedRange.endLineNumberExclusive===z.modifiedRange.startLineNumber||y.originalRange.endLineNumberExclusive===z.originalRange.startLineNumber)&&(z=new N.LineRangeMapping(y.originalRange.join(z.originalRange),y.modifiedRange.join(z.modifiedRange),y.innerChanges&&z.innerChanges?y.innerChanges.concat(z.innerChanges):void 0),b.pop()),b.push(z),y=z}return(0,L.assertFn)(()=>(0,L.checkAdjacentItems)(b,(k,D)=>D.originalRange.startLineNumber-k.originalRange.endLineNumberExclusive===D.modifiedRange.startLineNumber-k.modifiedRange.endLineNumberExclusive&&k.originalRange.endLineNumberExclusive<D.originalRange.startLineNumber&&k.modifiedRange.endLineNumberExclusive<D.modifiedRange.startLineNumber)),{quitEarly:p.quitEarly,changes:b}}}e.SmartLinesDiffComputer=v;function f(l,o,u,h){return new C.LcsDiff(l,o,u).ComputeDiff(h)}class g{constructor(o){const u=[],h=[];for(let w=0,m=o.length;w<m;w++)u[w]=c(o[w],1),h[w]=d(o[w],1);this.lines=o,this.a=u,this.b=h}getElements(){const o=[];for(let u=0,h=this.lines.length;u<h;u++)o[u]=this.lines[u].substring(this.a[u]-1,this.b[u]-1);return o}getStrictElement(o){return this.lines[o]}getStartLineNumber(o){return o+1}getEndLineNumber(o){return o+1}createCharSequence(o,u,h){const w=[],m=[],p=[];let b=0;for(let y=u;y<=h;y++){const k=this.lines[y],D=o?this.a[y]:1,M=o?this.b[y]:k.length+1;for(let z=D;z<M;z++)w[b]=k.charCodeAt(z-1),m[b]=y+1,p[b]=z,b++;!o&&y<h&&(w[b]=10,m[b]=y+1,p[b]=k.length+1,b++)}return new i(w,m,p)}}class i{constructor(o,u,h){this.a=o,this.b=u,this.d=h}toString(){return"["+this.a.map((o,u)=>(o===10?"\\n":String.fromCharCode(o))+`-(${this.b[u]},${this.d[u]})`).join(", ")+"]"}e(o,u){if(o<0||o>=u.length)throw new Error("Illegal index")}getElements(){return this.a}getStartLineNumber(o){return o>0&&o===this.b.length?this.getEndLineNumber(o-1):(this.e(o,this.b),this.b[o])}getEndLineNumber(o){return o===-1?this.getStartLineNumber(o+1):(this.e(o,this.b),this.a[o]===10?this.b[o]+1:this.b[o])}getStartColumn(o){return o>0&&o===this.d.length?this.getEndColumn(o-1):(this.e(o,this.d),this.d[o])}getEndColumn(o){return o===-1?this.getStartColumn(o+1):(this.e(o,this.d),this.a[o]===10?1:this.d[o]+1)}}class t{constructor(o,u,h,w,m,p,b,y){this.originalStartLineNumber=o,this.originalStartColumn=u,this.originalEndLineNumber=h,this.originalEndColumn=w,this.modifiedStartLineNumber=m,this.modifiedStartColumn=p,this.modifiedEndLineNumber=b,this.modifiedEndColumn=y}static createFromDiffChange(o,u,h){const w=u.getStartLineNumber(o.originalStart),m=u.getStartColumn(o.originalStart),p=u.getEndLineNumber(o.originalStart+o.originalLength-1),b=u.getEndColumn(o.originalStart+o.originalLength-1),y=h.getStartLineNumber(o.modifiedStart),k=h.getStartColumn(o.modifiedStart),D=h.getEndLineNumber(o.modifiedStart+o.modifiedLength-1),M=h.getEndColumn(o.modifiedStart+o.modifiedLength-1);return new t(w,m,p,b,y,k,D,M)}}function n(l){if(l.length<=1)return l;const o=[l[0]];let u=o[0];for(let h=1,w=l.length;h<w;h++){const m=l[h],p=m.originalStart-(u.originalStart+u.originalLength),b=m.modifiedStart-(u.modifiedStart+u.modifiedLength);Math.min(p,b)<S?(u.originalLength=m.originalStart+m.originalLength-u.originalStart,u.modifiedLength=m.modifiedStart+m.modifiedLength-u.modifiedStart):(o.push(m),u=m)}return o}class a{constructor(o,u,h,w,m){this.originalStartLineNumber=o,this.originalEndLineNumber=u,this.modifiedStartLineNumber=h,this.modifiedEndLineNumber=w,this.charChanges=m}static createFromDiffResult(o,u,h,w,m,p,b){let y,k,D,M,z;if(u.originalLength===0?(y=h.getStartLineNumber(u.originalStart)-1,k=0):(y=h.getStartLineNumber(u.originalStart),k=h.getEndLineNumber(u.originalStart+u.originalLength-1)),u.modifiedLength===0?(D=w.getStartLineNumber(u.modifiedStart)-1,M=0):(D=w.getStartLineNumber(u.modifiedStart),M=w.getEndLineNumber(u.modifiedStart+u.modifiedLength-1)),p&&u.originalLength>0&&u.originalLength<20&&u.modifiedLength>0&&u.modifiedLength<20&&m()){const R=h.createCharSequence(o,u.originalStart,u.originalStart+u.originalLength-1),P=w.createCharSequence(o,u.modifiedStart,u.modifiedStart+u.modifiedLength-1);if(R.getElements().length>0&&P.getElements().length>0){let A=f(R,P,m,!0).changes;b&&(A=n(A)),z=[];for(let T=0,O=A.length;T<O;T++)z.push(t.createFromDiffChange(A[T],R,P))}}return new a(y,k,D,M,z)}}class r{constructor(o,u,h){this.a=h.shouldComputeCharChanges,this.b=h.shouldPostProcessCharChanges,this.d=h.shouldIgnoreTrimWhitespace,this.e=h.shouldMakePrettyDiff,this.f=o,this.g=u,this.h=new g(o),this.j=new g(u),this.k=s(h.maxComputationTime),this.l=s(h.maxComputationTime===0?0:Math.min(h.maxComputationTime,5e3))}computeDiff(){if(this.h.lines.length===1&&this.h.lines[0].length===0)return this.j.lines.length===1&&this.j.lines[0].length===0?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.j.lines.length,charChanges:void 0}]};if(this.j.lines.length===1&&this.j.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.h.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const o=f(this.h,this.j,this.k,this.e),u=o.changes,h=o.quitEarly;if(this.d){const b=[];for(let y=0,k=u.length;y<k;y++)b.push(a.createFromDiffResult(this.d,u[y],this.h,this.j,this.l,this.a,this.b));return{quitEarly:h,changes:b}}const w=[];let m=0,p=0;for(let b=-1,y=u.length;b<y;b++){const k=b+1<y?u[b+1]:null,D=k?k.originalStart:this.f.length,M=k?k.modifiedStart:this.g.length;for(;m<D&&p<M;){const z=this.f[m],R=this.g[p];if(z!==R){{let P=c(z,1),A=c(R,1);for(;P>1&&A>1;){const T=z.charCodeAt(P-2),O=R.charCodeAt(A-2);if(T!==O)break;P--,A--}(P>1||A>1)&&this.m(w,m+1,1,P,p+1,1,A)}{let P=d(z,1),A=d(R,1);const T=z.length+1,O=R.length+1;for(;P<T&&A<O;){const B=z.charCodeAt(P-1),W=z.charCodeAt(A-1);if(B!==W)break;P++,A++}(P<T||A<O)&&this.m(w,m+1,P,T,p+1,A,O)}}m++,p++}k&&(w.push(a.createFromDiffResult(this.d,k,this.h,this.j,this.l,this.a,this.b)),m+=k.originalLength,p+=k.modifiedLength)}return{quitEarly:h,changes:w}}m(o,u,h,w,m,p,b){if(this.n(o,u,h,w,m,p,b))return;let y;this.a&&(y=[new t(u,h,u,w,m,p,m,b)]),o.push(new a(u,u,m,m,y))}n(o,u,h,w,m,p,b){const y=o.length;if(y===0)return!1;const k=o[y-1];return k.originalEndLineNumber===0||k.modifiedEndLineNumber===0?!1:k.originalEndLineNumber===u&&k.modifiedEndLineNumber===m?(this.a&&k.charChanges&&k.charChanges.push(new t(u,h,u,w,m,p,m,b)),!0):k.originalEndLineNumber+1===u&&k.modifiedEndLineNumber+1===m?(k.originalEndLineNumber=u,k.modifiedEndLineNumber=m,this.a&&k.charChanges&&k.charChanges.push(new t(u,h,u,w,m,p,m,b)),!0):!1}}e.DiffComputer=r;function c(l,o){const u=E.firstNonWhitespaceIndex(l);return u===-1?o:u+1}function d(l,o){const u=E.lastNonWhitespaceIndex(l);return u===-1?o:u+2}function s(l){if(l===0)return()=>!0;const o=Date.now();return()=>Date.now()-o<l}}),define(_[446],ee([1,0,85,12,4,158,444,441,442,159]),function(q,e,C,N,E,I,L,S,v,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LineSequence=e.lineRangeMappingFromRangeMappings=e.StandardLinesDiffComputer=void 0;class g{constructor(){this.b=new L.DynamicProgrammingDiffing,this.c=new v.MyersDiffAlgorithm}computeDiff(u,h,w){const m=new Map;function p(O){let B=m.get(O);return B===void 0&&(B=m.size,m.set(O,B)),B}const b=u.map(O=>p(O.trim())),y=h.map(O=>p(O.trim())),k=new n(b,u),D=new n(y,h);let M=(()=>k.length+D.length<1500?this.b.compute(k,D,(O,B)=>u[O]===h[B]?h[B].length===0?.1:1+Math.log(1+h[B].length):.99):this.c.compute(k,D))();M=(0,S.optimizeSequenceDiffs)(k,D,M);const z=[],R=O=>{for(let B=0;B<O;B++){const W=P+B,j=A+B;if(u[W]!==h[j]){const F=this.e(u,h,new I.SequenceDiff(new I.OffsetRange(W,W+1),new I.OffsetRange(j,j+1)));for(const U of F)z.push(U)}}};let P=0,A=0;for(const O of M){(0,C.assertFn)(()=>O.seq1Range.start-P===O.seq2Range.start-A);const B=O.seq1Range.start-P;R(B),P=O.seq1Range.endExclusive,A=O.seq2Range.endExclusive;const W=this.e(u,h,O);for(const j of W)z.push(j)}R(u.length-P);const T=i(z);return{quitEarly:!1,changes:T}}e(u,h,w){const m=new r(u,w.seq1Range),p=new r(h,w.seq2Range),b=m.length+p.length<500?this.b.compute(m,p):this.c.compute(m,p);let y=(0,S.optimizeSequenceDiffs)(m,p,b);return y=(0,S.smoothenSequenceDiffs)(m,p,y),y.map(D=>new f.RangeMapping(m.translateRange(D.seq1Range).delta(w.seq1Range.start),p.translateRange(D.seq2Range).delta(w.seq2Range.start)))}}e.StandardLinesDiffComputer=g;function i(o){const u=[];for(const h of t(o,(w,m)=>m.originalRange.startLineNumber-(w.originalRange.endLineNumber-(w.originalRange.endColumn>1?0:1))<=1||m.modifiedRange.startLineNumber-(w.modifiedRange.endLineNumber-(w.modifiedRange.endColumn>1?0:1))<=1)){const w=h[0],m=h[h.length-1];u.push(new f.LineRangeMapping(new f.LineRange(w.originalRange.startLineNumber,m.originalRange.endLineNumber+(m.originalRange.endColumn>1||m.modifiedRange.endColumn>1?1:0)),new f.LineRange(w.modifiedRange.startLineNumber,m.modifiedRange.endLineNumber+(m.originalRange.endColumn>1||m.modifiedRange.endColumn>1?1:0)),h))}return(0,C.assertFn)(()=>(0,C.checkAdjacentItems)(u,(h,w)=>w.originalRange.startLineNumber-h.originalRange.endLineNumberExclusive===w.modifiedRange.startLineNumber-h.modifiedRange.endLineNumberExclusive&&h.originalRange.endLineNumberExclusive<w.originalRange.startLineNumber&&h.modifiedRange.endLineNumberExclusive<w.modifiedRange.startLineNumber)),u}e.lineRangeMappingFromRangeMappings=i;function*t(o,u){let h,w;for(const m of o)w!==void 0&&u(w,m)?h.push(m):(h&&(yield h),h=[m]),w=m;h&&(yield h)}class n{constructor(u,h){this.b=u,this.c=h}getElement(u){return this.b[u]}get length(){return this.b.length}getBoundaryScore(u){const h=u===0?0:a(this.c[u-1]),w=u===this.c.length?0:a(this.c[u]);return 1e3-(h+w)}}e.LineSequence=n;function a(o){let u=0;for(;u<o.length&&(o.charCodeAt(u)===32||o.charCodeAt(u)===9);)u++;return u}class r{constructor(u,h){this.lines=u,this.lineRange=h;let w=0;this.c=new Int32Array(h.length);for(let p=h.start;p<h.endExclusive;p++)w+=u[p].length,this.c[p-h.start]=w+1,w++;this.b=new Int32Array(w);let m=0;for(let p=h.start;p<h.endExclusive;p++){const b=u[p];for(let y=0;y<b.length;y++)this.b[m+y]=b.charCodeAt(y);m+=b.length,p<u.length-1&&(this.b[m]=`
|
||
`.charCodeAt(0),m+=1)}}getElement(u){return this.b[u]}get length(){return this.b.length}getBoundaryScore(u){const h=s(u>0?this.b[u-1]:-1),w=s(u<this.b.length?this.b[u]:-1);if(h===6&&w===7)return 0;let m=0;return h!==w&&(m+=10,w===1&&(m+=1)),m+=d(h),m+=d(w),m}translateOffset(u){let h=0,w=this.c.length;for(;h<w;){const p=Math.floor((h+w)/2);this.c[p]>u?w=p:h=p+1}const m=h===0?0:this.c[h-1];return new N.Position(h+1,u-m+1)}translateRange(u){return E.Range.fromPositions(this.translateOffset(u.start),this.translateOffset(u.endExclusive))}}const c={[0]:0,[1]:0,[2]:0,[3]:10,[4]:2,[5]:3,[6]:10,[7]:10};function d(o){return c[o]}function s(o){return o===10?7:o===13?6:l(o)?5:o>=97&&o<=122?0:o>=65&&o<=90?1:o>=48&&o<=57?2:o===-1?3:4}function l(o){return o===32||o===9}}),define(_[447],ee([1,0,445,446]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.linesDiffComputers=void 0,e.linesDiffComputers={smart:new C.SmartLinesDiffComputer,experimental:new N.StandardLinesDiffComputer}}),define(_[251],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InternalEditorAction=void 0;class C{constructor(E,I,L,S,v,f){this.id=E,this.label=I,this.alias=L,this.a=S,this.b=v,this.c=f}isSupported(){return this.c.contextMatchesRules(this.a)}run(){return this.isSupported()?this.b():Promise.resolve(void 0)}}e.InternalEditorAction=C}),define(_[160],ee([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(_[161],ee([1,0,160]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCodeEditor=e.isCompositeEditor=e.isDiffEditor=e.isCodeEditor=void 0;function N(S){return S&&typeof S.getEditorType=="function"?S.getEditorType()===C.EditorType.ICodeEditor:!1}e.isCodeEditor=N;function E(S){return S&&typeof S.getEditorType=="function"?S.getEditorType()===C.EditorType.IDiffEditor:!1}e.isDiffEditor=E;function I(S){return!!S&&typeof S=="object"&&typeof S.onDidChangeActiveEditor=="function"}e.isCompositeEditor=I;function L(S){return N(S)?S:E(S)?S.getModifiedEditor():I(S)&&N(S.activeCodeEditor)?S.activeCodeEditor:null}e.getCodeEditor=L}),define(_[252],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getEditorFeatures=e.registerEditorFeature=void 0;const C=[];function N(I){C.push(I)}e.registerEditorFeature=N;function E(){return C.slice(0)}e.getEditorFeatures=E}),define(_[448],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorTheme=void 0;class C{get type(){return this.a.type}get value(){return this.a}constructor(E){this.a=E}update(E){this.a=E}getColor(E){return this.a.getColor(E)}}e.EditorTheme=C}),define(_[115],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenMetadata=void 0;class C{static getLanguageId(E){return(E&255)>>>0}static getTokenType(E){return(E&768)>>>8}static containsBalancedBrackets(E){return(E&1024)!==0}static getFontStyle(E){return(E&30720)>>>11}static getForeground(E){return(E&16744448)>>>15}static getBackground(E){return(E&4278190080)>>>24}static getClassNameFromMetadata(E){const I=this.getForeground(E);let L="mtk"+I;const S=this.getFontStyle(E);return S&1&&(L+=" mtki"),S&2&&(L+=" mtkb"),S&4&&(L+=" mtku"),S&8&&(L+=" mtks"),L}static getInlineStyleFromMetadata(E,I){const L=this.getForeground(E),S=this.getFontStyle(E);let v=`color: ${I[L]};`;S&1&&(v+="font-style: italic;"),S&2&&(v+="font-weight: bold;");let f="";return S&4&&(f+=" underline"),S&8&&(f+=" line-through"),f&&(v+=`text-decoration:${f};`),v}static getPresentationFromMetadata(E){const I=this.getForeground(E),L=this.getFontStyle(E);return{foreground:I,italic:Boolean(L&1),bold:Boolean(L&2),underline:Boolean(L&4),strikethrough:Boolean(L&8)}}}e.TokenMetadata=C}),define(_[103],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AutoClosingPairs=e.StandardAutoClosingPairConditional=e.IndentAction=void 0;var C;(function(L){L[L.None=0]="None",L[L.Indent=1]="Indent",L[L.IndentOutdent=2]="IndentOutdent",L[L.Outdent=3]="Outdent"})(C=e.IndentAction||(e.IndentAction={}));class N{constructor(S){if(this.e=null,this.f=!1,this.open=S.open,this.close=S.close,this.b=!0,this.c=!0,this.d=!0,Array.isArray(S.notIn))for(let v=0,f=S.notIn.length;v<f;v++)switch(S.notIn[v]){case"string":this.b=!1;break;case"comment":this.c=!1;break;case"regex":this.d=!1;break}}isOK(S){switch(S){case 0:return!0;case 1:return this.c;case 2:return this.b;case 3:return this.d}}shouldAutoClose(S,v){if(S.getTokenCount()===0)return!0;const f=S.findTokenIndexAtOffset(v-2),g=S.getStandardTokenType(f);return this.isOK(g)}g(S,v){for(let f=S;f<=v;f++){const g=String.fromCharCode(f);if(!this.open.includes(g)&&!this.close.includes(g))return g}return null}findNeutralCharacter(){return this.f||(this.f=!0,this.e||(this.e=this.g(48,57)),this.e||(this.e=this.g(97,122)),this.e||(this.e=this.g(65,90))),this.e}}e.StandardAutoClosingPairConditional=N;class E{constructor(S){this.autoClosingPairsOpenByStart=new Map,this.autoClosingPairsOpenByEnd=new Map,this.autoClosingPairsCloseByStart=new Map,this.autoClosingPairsCloseByEnd=new Map,this.autoClosingPairsCloseSingleChar=new Map;for(const v of S)I(this.autoClosingPairsOpenByStart,v.open.charAt(0),v),I(this.autoClosingPairsOpenByEnd,v.open.charAt(v.open.length-1),v),I(this.autoClosingPairsCloseByStart,v.close.charAt(0),v),I(this.autoClosingPairsCloseByEnd,v.close.charAt(v.close.length-1),v),v.close.length===1&&v.open.length===1&&I(this.autoClosingPairsCloseSingleChar,v.close,v)}}e.AutoClosingPairs=E;function I(L,S,v){L.has(S)?L.get(S).push(v):L.set(S,[v])}}),define(_[449],ee([1,0,113]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.computeLinks=e.LinkComputer=e.StateMachine=void 0;class N{constructor(t,n,a){const r=new Uint8Array(t*n);for(let c=0,d=t*n;c<d;c++)r[c]=a;this.a=r,this.rows=t,this.cols=n}get(t,n){return this.a[t*this.cols+n]}set(t,n,a){this.a[t*this.cols+n]=a}}class E{constructor(t){let n=0,a=0;for(let c=0,d=t.length;c<d;c++){const[s,l,o]=t[c];l>n&&(n=l),s>a&&(a=s),o>a&&(a=o)}n++,a++;const r=new N(a,n,0);for(let c=0,d=t.length;c<d;c++){const[s,l,o]=t[c];r.set(s,l,o)}this.a=r,this.b=n}nextState(t,n){return n<0||n>=this.b?0:this.a.get(t,n)}}e.StateMachine=E;let I=null;function L(){return I===null&&(I=new E([[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]])),I}let S=null;function v(){if(S===null){S=new C.CharacterClassifier(0);const i=` <>'"\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 n=0;n<i.length;n++)S.set(i.charCodeAt(n),1);const t=".,;:";for(let n=0;n<t.length;n++)S.set(t.charCodeAt(n),2)}return S}class f{static a(t,n,a,r,c){let d=c-1;do{const s=n.charCodeAt(d);if(t.get(s)!==2)break;d--}while(d>r);if(r>0){const s=n.charCodeAt(r-1),l=n.charCodeAt(d);(s===40&&l===41||s===91&&l===93||s===123&&l===125)&&d--}return{range:{startLineNumber:a,startColumn:r+1,endLineNumber:a,endColumn:d+2},url:n.substring(r,d+1)}}static computeLinks(t,n=L()){const a=v(),r=[];for(let c=1,d=t.getLineCount();c<=d;c++){const s=t.getLineContent(c),l=s.length;let o=0,u=0,h=0,w=1,m=!1,p=!1,b=!1,y=!1;for(;o<l;){let k=!1;const D=s.charCodeAt(o);if(w===13){let M;switch(D){case 40:m=!0,M=0;break;case 41:M=m?0:1;break;case 91:b=!0,p=!0,M=0;break;case 93:b=!1,M=p?0:1;break;case 123:y=!0,M=0;break;case 125:M=y?0:1;break;case 39:case 34:case 96:h===D?M=1:h===39||h===34||h===96?M=0:M=1;break;case 42:M=h===42?1:0;break;case 124:M=h===124?1:0;break;case 32:M=b?0:1;break;default:M=a.get(D)}M===1&&(r.push(f.a(a,s,c,u,o)),k=!0)}else if(w===12){let M;D===91?(p=!0,M=0):M=a.get(D),M===1?k=!0:w=13}else w=n.nextState(w,D),w===0&&(k=!0);k&&(w=1,m=!1,p=!1,y=!1,u=o+1,h=D),o++}w===13&&r.push(f.a(a,s,c,u,l))}return r}}e.LinkComputer=f;function g(i){return!i||typeof i.getLineCount!="function"||typeof i.getLineContent!="function"?[]:f.computeLinks(i)}e.computeLinks=g}),define(_[116],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ignoreBracketsInToken=e.ScopedLineTokens=e.createScopedLineTokens=void 0;function C(I,L){const S=I.getCount(),v=I.findTokenIndexAtOffset(L),f=I.getLanguageId(v);let g=v;for(;g+1<S&&I.getLanguageId(g+1)===f;)g++;let i=v;for(;i>0&&I.getLanguageId(i-1)===f;)i--;return new N(I,f,i,g+1,I.getStartOffset(i),I.getEndOffset(g))}e.createScopedLineTokens=C;class N{constructor(L,S,v,f,g,i){this._scopedLineTokensBrand=void 0,this.a=L,this.languageId=S,this.b=v,this.c=f,this.firstCharOffset=g,this.d=i}getLineContent(){return this.a.getLineContent().substring(this.firstCharOffset,this.d)}getActualLineContentBefore(L){return this.a.getLineContent().substring(0,this.firstCharOffset+L)}getTokenCount(){return this.c-this.b}findTokenIndexAtOffset(L){return this.a.findTokenIndexAtOffset(L+this.firstCharOffset)-this.b}getStandardTokenType(L){return this.a.getStandardTokenType(L+this.b)}}e.ScopedLineTokens=N;function E(I){return(I&3)!==0}e.ignoreBracketsInToken=E}),define(_[65],ee([1,0,12,4,22,116,74,185]),function(q,e,C,N,E,I,L,S){"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 v=()=>!0,f=()=>!1,g=s=>s===" "||s===" ";class i{static shouldRecreate(l){return l.hasChanged(138)||l.hasChanged(124)||l.hasChanged(34)||l.hasChanged(73)||l.hasChanged(75)||l.hasChanged(76)||l.hasChanged(5)||l.hasChanged(8)||l.hasChanged(6)||l.hasChanged(7)||l.hasChanged(11)||l.hasChanged(122)||l.hasChanged(47)||l.hasChanged(86)}constructor(l,o,u,h){this.languageConfigurationService=h,this._cursorMoveConfigurationBrand=void 0,this.a=l;const w=u.options,m=w.get(138),p=w.get(47);this.readOnly=w.get(86),this.tabSize=o.tabSize,this.indentSize=o.indentSize,this.insertSpaces=o.insertSpaces,this.stickyTabStops=w.get(110),this.lineHeight=p.lineHeight,this.typicalHalfwidthCharacterWidth=p.typicalHalfwidthCharacterWidth,this.pageSize=Math.max(1,Math.floor(m.height/this.lineHeight)-2),this.useTabStops=w.get(122),this.wordSeparators=w.get(124),this.emptySelectionClipboard=w.get(34),this.copyWithSyntaxHighlighting=w.get(22),this.multiCursorMergeOverlapping=w.get(73),this.multiCursorPaste=w.get(75),this.multiCursorLimit=w.get(76),this.autoClosingBrackets=w.get(5),this.autoClosingQuotes=w.get(8),this.autoClosingDelete=w.get(6),this.autoClosingOvertype=w.get(7),this.autoSurround=w.get(11),this.autoIndent=w.get(9),this.surroundingPairs={},this.b=null,this.shouldAutoCloseBefore={quote:this.d(l,this.autoClosingQuotes,!0),bracket:this.d(l,this.autoClosingBrackets,!1)},this.autoClosingPairs=this.languageConfigurationService.getLanguageConfiguration(l).getAutoClosingPairs();const b=this.languageConfigurationService.getLanguageConfiguration(l).getSurroundingPairs();if(b)for(const y of b)this.surroundingPairs[y.open]=y.close}get electricChars(){var l;if(!this.b){this.b={};const o=(l=this.languageConfigurationService.getLanguageConfiguration(this.a).electricCharacter)===null||l===void 0?void 0:l.getElectricCharacters();if(o)for(const u of o)this.b[u]=!0}return this.b}onElectricCharacter(l,o,u){const h=(0,I.createScopedLineTokens)(o,u-1),w=this.languageConfigurationService.getLanguageConfiguration(h.languageId).electricCharacter;return w?w.onElectricCharacter(l,h,u-h.firstCharOffset):null}normalizeIndentation(l){return(0,S.normalizeIndentation)(l,this.indentSize,this.insertSpaces)}d(l,o,u){switch(o){case"beforeWhitespace":return g;case"languageDefined":return this.f(l,u);case"always":return v;case"never":return f}}f(l,o){const u=this.languageConfigurationService.getLanguageConfiguration(l).getAutoCloseBeforeSet(o);return h=>u.indexOf(h)!==-1}visibleColumnFromColumn(l,o){return L.CursorColumns.visibleColumnFromColumn(l.getLineContent(o.lineNumber),o.column,this.tabSize)}columnFromVisibleColumn(l,o,u){const h=L.CursorColumns.columnFromVisibleColumn(l.getLineContent(o),u,this.tabSize),w=l.getLineMinColumn(o);if(h<w)return w;const m=l.getLineMaxColumn(o);return h>m?m:h}}e.CursorConfiguration=i;class t{static fromModelState(l){return new n(l)}static fromViewState(l){return new a(l)}static fromModelSelection(l){const o=E.Selection.liftSelection(l),u=new r(N.Range.fromPositions(o.getSelectionStart()),0,0,o.getPosition(),0);return t.fromModelState(u)}static fromModelSelections(l){const o=[];for(let u=0,h=l.length;u<h;u++)o[u]=this.fromModelSelection(l[u]);return o}constructor(l,o){this._cursorStateBrand=void 0,this.modelState=l,this.viewState=o}equals(l){return this.viewState.equals(l.viewState)&&this.modelState.equals(l.modelState)}}e.CursorState=t;class n{constructor(l){this.modelState=l,this.viewState=null}}e.PartialModelCursorState=n;class a{constructor(l){this.modelState=null,this.viewState=l}}e.PartialViewCursorState=a;class r{constructor(l,o,u,h,w){this.selectionStart=l,this.selectionStartKind=o,this.selectionStartLeftoverVisibleColumns=u,this.position=h,this.leftoverVisibleColumns=w,this._singleCursorStateBrand=void 0,this.selection=r.a(this.selectionStart,this.position)}equals(l){return this.selectionStartLeftoverVisibleColumns===l.selectionStartLeftoverVisibleColumns&&this.leftoverVisibleColumns===l.leftoverVisibleColumns&&this.selectionStartKind===l.selectionStartKind&&this.position.equals(l.position)&&this.selectionStart.equalsRange(l.selectionStart)}hasSelection(){return!this.selection.isEmpty()||!this.selectionStart.isEmpty()}move(l,o,u,h){return l?new r(this.selectionStart,this.selectionStartKind,this.selectionStartLeftoverVisibleColumns,new C.Position(o,u),h):new r(new N.Range(o,u,o,u),0,h,new C.Position(o,u),h)}static a(l,o){return l.isEmpty()||!o.isBeforeOrEqual(l.getStartPosition())?E.Selection.fromPositions(l.getStartPosition(),o):E.Selection.fromPositions(l.getEndPosition(),o)}}e.SingleCursorState=r;class c{constructor(l,o,u){this._editOperationResultBrand=void 0,this.type=l,this.commands=o,this.shouldPushStackElementBefore=u.shouldPushStackElementBefore,this.shouldPushStackElementAfter=u.shouldPushStackElementAfter}}e.EditOperationResult=c;function d(s){return s==="'"||s==='"'||s==="`"}e.isQuote=d}),define(_[450],ee([1,0,65,12,4]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColumnSelection=void 0;class I{static columnSelect(S,v,f,g,i,t){const n=Math.abs(i-f)+1,a=f>i,r=g>t,c=g<t,d=[];for(let s=0;s<n;s++){const l=f+(a?-s:s),o=S.columnFromVisibleColumn(v,l,g),u=S.columnFromVisibleColumn(v,l,t),h=S.visibleColumnFromColumn(v,new N.Position(l,o)),w=S.visibleColumnFromColumn(v,new N.Position(l,u));c&&(h>t||w<g)||r&&(w>g||h<t)||d.push(new C.SingleCursorState(new E.Range(l,o,l,o),0,0,new N.Position(l,u),0))}if(d.length===0)for(let s=0;s<n;s++){const l=f+(a?-s:s),o=v.getLineMaxColumn(l);d.push(new C.SingleCursorState(new E.Range(l,o,l,o),0,0,new N.Position(l,o),0))}return{viewStates:d,reversed:a,fromLineNumber:f,fromVisualColumn:g,toLineNumber:i,toVisualColumn:t}}static columnSelectLeft(S,v,f){let g=f.toViewVisualColumn;return g>0&&g--,I.columnSelect(S,v,f.fromViewLineNumber,f.fromViewVisualColumn,f.toViewLineNumber,g)}static columnSelectRight(S,v,f){let g=0;const i=Math.min(f.fromViewLineNumber,f.toViewLineNumber),t=Math.max(f.fromViewLineNumber,f.toViewLineNumber);for(let a=i;a<=t;a++){const r=v.getLineMaxColumn(a),c=S.visibleColumnFromColumn(v,new N.Position(a,r));g=Math.max(g,c)}let n=f.toViewVisualColumn;return n<g&&n++,this.columnSelect(S,v,f.fromViewLineNumber,f.fromViewVisualColumn,f.toViewLineNumber,n)}static columnSelectUp(S,v,f,g){const i=g?S.pageSize:1,t=Math.max(1,f.toViewLineNumber-i);return this.columnSelect(S,v,f.fromViewLineNumber,f.fromViewVisualColumn,t,f.toViewVisualColumn)}static columnSelectDown(S,v,f,g){const i=g?S.pageSize:1,t=Math.min(v.getLineCount(),f.toViewLineNumber+i);return this.columnSelect(S,v,f.fromViewLineNumber,f.fromViewVisualColumn,t,f.toViewVisualColumn)}}e.ColumnSelection=I}),define(_[186],ee([1,0,65,74,12,4,9,250]),function(q,e,C,N,E,I,L,S){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MoveOperations=e.CursorPosition=void 0;class v{constructor(i,t,n){this._cursorPositionBrand=void 0,this.lineNumber=i,this.column=t,this.leftoverVisibleColumns=n}}e.CursorPosition=v;class f{static leftPosition(i,t){if(t.column>i.getLineMinColumn(t.lineNumber))return t.delta(void 0,-L.prevCharLength(i.getLineContent(t.lineNumber),t.column-1));if(t.lineNumber>1){const n=t.lineNumber-1;return new E.Position(n,i.getLineMaxColumn(n))}else return t}static a(i,t,n){if(t.column<=i.getLineIndentColumn(t.lineNumber)){const a=i.getLineMinColumn(t.lineNumber),r=i.getLineContent(t.lineNumber),c=S.AtomicTabMoveOperations.atomicPosition(r,t.column-1,n,0);if(c!==-1&&c+1>=a)return new E.Position(t.lineNumber,c+1)}return this.leftPosition(i,t)}static b(i,t,n){const a=i.stickyTabStops?f.a(t,n,i.tabSize):f.leftPosition(t,n);return new v(a.lineNumber,a.column,0)}static moveLeft(i,t,n,a,r){let c,d;if(n.hasSelection()&&!a)c=n.selection.startLineNumber,d=n.selection.startColumn;else{const s=n.position.delta(void 0,-(r-1)),l=t.normalizePosition(f.c(s,t),0),o=f.b(i,t,l);c=o.lineNumber,d=o.column}return n.move(a,c,d,0)}static c(i,t){return new E.Position(i.lineNumber,f.d(i.column,t.getLineMinColumn(i.lineNumber),t.getLineMaxColumn(i.lineNumber)))}static d(i,t,n){return i<t?t:i>n?n:i}static rightPosition(i,t,n){return n<i.getLineMaxColumn(t)?n=n+L.nextCharLength(i.getLineContent(t),n-1):t<i.getLineCount()&&(t=t+1,n=i.getLineMinColumn(t)),new E.Position(t,n)}static rightPositionAtomicSoftTabs(i,t,n,a,r){if(n<i.getLineIndentColumn(t)){const c=i.getLineContent(t),d=S.AtomicTabMoveOperations.atomicPosition(c,n-1,a,1);if(d!==-1)return new E.Position(t,d+1)}return this.rightPosition(i,t,n)}static right(i,t,n){const a=i.stickyTabStops?f.rightPositionAtomicSoftTabs(t,n.lineNumber,n.column,i.tabSize,i.indentSize):f.rightPosition(t,n.lineNumber,n.column);return new v(a.lineNumber,a.column,0)}static moveRight(i,t,n,a,r){let c,d;if(n.hasSelection()&&!a)c=n.selection.endLineNumber,d=n.selection.endColumn;else{const s=n.position.delta(void 0,r-1),l=t.normalizePosition(f.c(s,t),1),o=f.right(i,t,l);c=o.lineNumber,d=o.column}return n.move(a,c,d,0)}static vertical(i,t,n,a,r,c,d,s){const l=N.CursorColumns.visibleColumnFromColumn(t.getLineContent(n),a,i.tabSize)+r,o=t.getLineCount(),u=n===1&&a===1,h=n===o&&a===t.getLineMaxColumn(n),w=c<n?u:h;if(n=c,n<1?(n=1,d?a=t.getLineMinColumn(n):a=Math.min(t.getLineMaxColumn(n),a)):n>o?(n=o,d?a=t.getLineMaxColumn(n):a=Math.min(t.getLineMaxColumn(n),a)):a=i.columnFromVisibleColumn(t,n,l),w?r=0:r=l-N.CursorColumns.visibleColumnFromColumn(t.getLineContent(n),a,i.tabSize),s!==void 0){const m=new E.Position(n,a),p=t.normalizePosition(m,s);r=r+(a-p.column),n=p.lineNumber,a=p.column}return new v(n,a,r)}static down(i,t,n,a,r,c,d){return this.vertical(i,t,n,a,r,n+c,d,4)}static moveDown(i,t,n,a,r){let c,d;n.hasSelection()&&!a?(c=n.selection.endLineNumber,d=n.selection.endColumn):(c=n.position.lineNumber,d=n.position.column);const s=f.down(i,t,c,d,n.leftoverVisibleColumns,r,!0);return n.move(a,s.lineNumber,s.column,s.leftoverVisibleColumns)}static translateDown(i,t,n){const a=n.selection,r=f.down(i,t,a.selectionStartLineNumber,a.selectionStartColumn,n.selectionStartLeftoverVisibleColumns,1,!1),c=f.down(i,t,a.positionLineNumber,a.positionColumn,n.leftoverVisibleColumns,1,!1);return new C.SingleCursorState(new I.Range(r.lineNumber,r.column,r.lineNumber,r.column),0,r.leftoverVisibleColumns,new E.Position(c.lineNumber,c.column),c.leftoverVisibleColumns)}static up(i,t,n,a,r,c,d){return this.vertical(i,t,n,a,r,n-c,d,3)}static moveUp(i,t,n,a,r){let c,d;n.hasSelection()&&!a?(c=n.selection.startLineNumber,d=n.selection.startColumn):(c=n.position.lineNumber,d=n.position.column);const s=f.up(i,t,c,d,n.leftoverVisibleColumns,r,!0);return n.move(a,s.lineNumber,s.column,s.leftoverVisibleColumns)}static translateUp(i,t,n){const a=n.selection,r=f.up(i,t,a.selectionStartLineNumber,a.selectionStartColumn,n.selectionStartLeftoverVisibleColumns,1,!1),c=f.up(i,t,a.positionLineNumber,a.positionColumn,n.leftoverVisibleColumns,1,!1);return new C.SingleCursorState(new I.Range(r.lineNumber,r.column,r.lineNumber,r.column),0,r.leftoverVisibleColumns,new E.Position(c.lineNumber,c.column),c.leftoverVisibleColumns)}static e(i,t){return i.getLineFirstNonWhitespaceColumn(t)===0}static moveToPrevBlankLine(i,t,n,a){let r=n.position.lineNumber;for(;r>1&&this.e(t,r);)r--;for(;r>1&&!this.e(t,r);)r--;return n.move(a,r,t.getLineMinColumn(r),0)}static moveToNextBlankLine(i,t,n,a){const r=t.getLineCount();let c=n.position.lineNumber;for(;c<r&&this.e(t,c);)c++;for(;c<r&&!this.e(t,c);)c++;return n.move(a,c,t.getLineMinColumn(c),0)}static moveToBeginningOfLine(i,t,n,a){const r=n.position.lineNumber,c=t.getLineMinColumn(r),d=t.getLineFirstNonWhitespaceColumn(r)||c;let s;return n.position.column===d?s=c:s=d,n.move(a,r,s,0)}static moveToEndOfLine(i,t,n,a,r){const c=n.position.lineNumber,d=t.getLineMaxColumn(c);return n.move(a,c,d,r?1073741824-d:0)}static moveToBeginningOfBuffer(i,t,n,a){return n.move(a,1,1,0)}static moveToEndOfBuffer(i,t,n,a){const r=t.getLineCount(),c=t.getLineMaxColumn(r);return n.move(a,r,c,0)}}e.MoveOperations=f}),define(_[187],ee([1,0,9,114,65,74,186,4,12]),function(q,e,C,N,E,I,L,S,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DeleteOperations=void 0;class f{static deleteRight(i,t,n,a){const r=[];let c=i!==3;for(let d=0,s=a.length;d<s;d++){const l=a[d];let o=l;if(o.isEmpty()){const u=l.getPosition(),h=L.MoveOperations.right(t,n,u);o=new S.Range(h.lineNumber,h.column,u.lineNumber,u.column)}if(o.isEmpty()){r[d]=null;continue}o.startLineNumber!==o.endLineNumber&&(c=!0),r[d]=new N.ReplaceCommand(o,"")}return[c,r]}static isAutoClosingPairDelete(i,t,n,a,r,c,d){if(t==="never"&&n==="never"||i==="never")return!1;for(let s=0,l=c.length;s<l;s++){const o=c[s],u=o.getPosition();if(!o.isEmpty())return!1;const h=r.getLineContent(u.lineNumber);if(u.column<2||u.column>=h.length+1)return!1;const w=h.charAt(u.column-2),m=a.get(w);if(!m)return!1;if((0,E.isQuote)(w)){if(n==="never")return!1}else if(t==="never")return!1;const p=h.charAt(u.column-1);let b=!1;for(const y of m)y.open===w&&y.close===p&&(b=!0);if(!b)return!1;if(i==="auto"){let y=!1;for(let k=0,D=d.length;k<D;k++){const M=d[k];if(u.lineNumber===M.startLineNumber&&u.column===M.startColumn){y=!0;break}}if(!y)return!1}}return!0}static c(i,t,n){const a=[];for(let r=0,c=n.length;r<c;r++){const d=n[r].getPosition(),s=new S.Range(d.lineNumber,d.column-1,d.lineNumber,d.column+1);a[r]=new N.ReplaceCommand(s,"")}return[!0,a]}static deleteLeft(i,t,n,a,r){if(this.isAutoClosingPairDelete(t.autoClosingDelete,t.autoClosingBrackets,t.autoClosingQuotes,t.autoClosingPairs.autoClosingPairsOpenByEnd,n,a,r))return this.c(t,n,a);const c=[];let d=i!==2;for(let s=0,l=a.length;s<l;s++){const o=f.d(a[s],n,t);if(o.isEmpty()){c[s]=null;continue}o.startLineNumber!==o.endLineNumber&&(d=!0),c[s]=new N.ReplaceCommand(o,"")}return[d,c]}static d(i,t,n){if(!i.isEmpty())return i;const a=i.getPosition();if(n.useTabStops&&a.column>1){const r=t.getLineContent(a.lineNumber),c=C.firstNonWhitespaceIndex(r),d=c===-1?r.length+1:c+1;if(a.column<=d){const s=n.visibleColumnFromColumn(t,a),l=I.CursorColumns.prevIndentTabStop(s,n.indentSize),o=n.columnFromVisibleColumn(t,a.lineNumber,l);return new S.Range(a.lineNumber,o,a.lineNumber,a.column)}}return S.Range.fromPositions(f.e(a,t),a)}static e(i,t){if(i.column>1){const n=C.getLeftDeleteOffset(i.column-1,t.getLineContent(i.lineNumber));return i.with(void 0,n+1)}else if(i.lineNumber>1){const n=i.lineNumber-1;return new v.Position(n,t.getLineMaxColumn(n))}else return i}static cut(i,t,n){const a=[];let r=null;n.sort((c,d)=>v.Position.compare(c.getStartPosition(),d.getEndPosition()));for(let c=0,d=n.length;c<d;c++){const s=n[c];if(s.isEmpty())if(i.emptySelectionClipboard){const l=s.getPosition();let o,u,h,w;l.lineNumber<t.getLineCount()?(o=l.lineNumber,u=1,h=l.lineNumber+1,w=1):l.lineNumber>1&&r?.endLineNumber!==l.lineNumber?(o=l.lineNumber-1,u=t.getLineMaxColumn(l.lineNumber-1),h=l.lineNumber,w=t.getLineMaxColumn(l.lineNumber)):(o=l.lineNumber,u=1,h=l.lineNumber,w=t.getLineMaxColumn(l.lineNumber));const m=new S.Range(o,u,h,w);r=m,m.isEmpty()?a[c]=null:a[c]=new N.ReplaceCommand(m,"")}else a[c]=null;else a[c]=new N.ReplaceCommand(s,"")}return new E.EditOperationResult(0,a,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}}e.DeleteOperations=f}),define(_[162],ee([1,0,9,65,187,132,12,4]),function(q,e,C,N,E,I,L,S){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WordPartOperations=e.WordOperations=void 0;class v{static a(t,n,a,r,c){return{start:r,end:c,wordType:n,nextCharClass:a}}static b(t,n,a){const r=n.getLineContent(a.lineNumber);return this.c(r,t,a)}static c(t,n,a){let r=0;for(let c=a.column-2;c>=0;c--){const d=t.charCodeAt(c),s=n.get(d);if(s===0){if(r===2)return this.a(t,r,s,c+1,this.d(t,n,r,c+1));r=1}else if(s===2){if(r===1)return this.a(t,r,s,c+1,this.d(t,n,r,c+1));r=2}else if(s===1&&r!==0)return this.a(t,r,s,c+1,this.d(t,n,r,c+1))}return r!==0?this.a(t,r,1,0,this.d(t,n,r,0)):null}static d(t,n,a,r){const c=t.length;for(let d=r;d<c;d++){const s=t.charCodeAt(d),l=n.get(s);if(l===1||a===1&&l===2||a===2&&l===0)return d}return c}static e(t,n,a){const r=n.getLineContent(a.lineNumber);return this.f(r,t,a)}static f(t,n,a){let r=0;const c=t.length;for(let d=a.column-1;d<c;d++){const s=t.charCodeAt(d),l=n.get(s);if(l===0){if(r===2)return this.a(t,r,l,this.g(t,n,r,d-1),d);r=1}else if(l===2){if(r===1)return this.a(t,r,l,this.g(t,n,r,d-1),d);r=2}else if(l===1&&r!==0)return this.a(t,r,l,this.g(t,n,r,d-1),d)}return r!==0?this.a(t,r,1,this.g(t,n,r,c-1),c):null}static g(t,n,a,r){for(let c=r;c>=0;c--){const d=t.charCodeAt(c),s=n.get(d);if(s===1||a===1&&s===2||a===2&&s===0)return c+1}return 0}static moveWordLeft(t,n,a,r){let c=a.lineNumber,d=a.column;d===1&&c>1&&(c=c-1,d=n.getLineMaxColumn(c));let s=v.b(t,n,new L.Position(c,d));if(r===0)return new L.Position(c,s?s.start+1:1);if(r===1)return s&&s.wordType===2&&s.end-s.start===1&&s.nextCharClass===0&&(s=v.b(t,n,new L.Position(c,s.start+1))),new L.Position(c,s?s.start+1:1);if(r===3){for(;s&&s.wordType===2;)s=v.b(t,n,new L.Position(c,s.start+1));return new L.Position(c,s?s.start+1:1)}return s&&d<=s.end+1&&(s=v.b(t,n,new L.Position(c,s.start+1))),new L.Position(c,s?s.end+1:1)}static _moveWordPartLeft(t,n){const a=n.lineNumber,r=t.getLineMaxColumn(a);if(n.column===1)return a>1?new L.Position(a-1,t.getLineMaxColumn(a-1)):n;const c=t.getLineContent(a);for(let d=n.column-1;d>1;d--){const s=c.charCodeAt(d-2),l=c.charCodeAt(d-1);if(s===95&&l!==95)return new L.Position(a,d);if(s===45&&l!==45)return new L.Position(a,d);if((C.isLowerAsciiLetter(s)||C.isAsciiDigit(s))&&C.isUpperAsciiLetter(l))return new L.Position(a,d);if(C.isUpperAsciiLetter(s)&&C.isUpperAsciiLetter(l)&&d+1<r){const o=c.charCodeAt(d);if(C.isLowerAsciiLetter(o)||C.isAsciiDigit(o))return new L.Position(a,d)}}return new L.Position(a,1)}static moveWordRight(t,n,a,r){let c=a.lineNumber,d=a.column,s=!1;d===n.getLineMaxColumn(c)&&c<n.getLineCount()&&(s=!0,c=c+1,d=1);let l=v.e(t,n,new L.Position(c,d));if(r===2)l&&l.wordType===2&&l.end-l.start===1&&l.nextCharClass===0&&(l=v.e(t,n,new L.Position(c,l.end+1))),l?d=l.end+1:d=n.getLineMaxColumn(c);else if(r===3){for(s&&(d=0);l&&(l.wordType===2||l.start+1<=d);)l=v.e(t,n,new L.Position(c,l.end+1));l?d=l.start+1:d=n.getLineMaxColumn(c)}else l&&!s&&d>=l.start+1&&(l=v.e(t,n,new L.Position(c,l.end+1))),l?d=l.start+1:d=n.getLineMaxColumn(c);return new L.Position(c,d)}static _moveWordPartRight(t,n){const a=n.lineNumber,r=t.getLineMaxColumn(a);if(n.column===r)return a<t.getLineCount()?new L.Position(a+1,1):n;const c=t.getLineContent(a);for(let d=n.column+1;d<r;d++){const s=c.charCodeAt(d-2),l=c.charCodeAt(d-1);if(s!==95&&l===95)return new L.Position(a,d);if(s!==45&&l===45)return new L.Position(a,d);if((C.isLowerAsciiLetter(s)||C.isAsciiDigit(s))&&C.isUpperAsciiLetter(l))return new L.Position(a,d);if(C.isUpperAsciiLetter(s)&&C.isUpperAsciiLetter(l)&&d+1<r){const o=c.charCodeAt(d);if(C.isLowerAsciiLetter(o)||C.isAsciiDigit(o))return new L.Position(a,d)}}return new L.Position(a,r)}static h(t,n){const a=t.getLineContent(n.lineNumber),r=n.column-2,c=C.lastNonWhitespaceIndex(a,r);return c+1<r?new S.Range(n.lineNumber,c+2,n.lineNumber,n.column):null}static deleteWordLeft(t,n){const a=t.wordSeparators,r=t.model,c=t.selection,d=t.whitespaceHeuristics;if(!c.isEmpty())return c;if(E.DeleteOperations.isAutoClosingPairDelete(t.autoClosingDelete,t.autoClosingBrackets,t.autoClosingQuotes,t.autoClosingPairs.autoClosingPairsOpenByEnd,t.model,[t.selection],t.autoClosedCharacters)){const h=t.selection.getPosition();return new S.Range(h.lineNumber,h.column-1,h.lineNumber,h.column+1)}const s=new L.Position(c.positionLineNumber,c.positionColumn);let l=s.lineNumber,o=s.column;if(l===1&&o===1)return null;if(d){const h=this.h(r,s);if(h)return h}let u=v.b(a,r,s);return n===0?u?o=u.start+1:o>1?o=1:(l--,o=r.getLineMaxColumn(l)):(u&&o<=u.end+1&&(u=v.b(a,r,new L.Position(l,u.start+1))),u?o=u.end+1:o>1?o=1:(l--,o=r.getLineMaxColumn(l))),new S.Range(l,o,s.lineNumber,s.column)}static deleteInsideWord(t,n,a){if(!a.isEmpty())return a;const r=new L.Position(a.positionLineNumber,a.positionColumn),c=this.j(n,r);return c||this.k(t,n,r)}static i(t,n){const a=t.charCodeAt(n);return a===32||a===9}static j(t,n){const a=t.getLineContent(n.lineNumber),r=a.length;if(r===0)return null;let c=Math.max(n.column-2,0);if(!this.i(a,c))return null;let d=Math.min(n.column-1,r-1);if(!this.i(a,d))return null;for(;c>0&&this.i(a,c-1);)c--;for(;d+1<r&&this.i(a,d+1);)d++;return new S.Range(n.lineNumber,c+1,n.lineNumber,d+2)}static k(t,n,a){const r=n.getLineContent(a.lineNumber),c=r.length;if(c===0)return a.lineNumber>1?new S.Range(a.lineNumber-1,n.getLineMaxColumn(a.lineNumber-1),a.lineNumber,1):a.lineNumber<n.getLineCount()?new S.Range(a.lineNumber,1,a.lineNumber+1,1):new S.Range(a.lineNumber,1,a.lineNumber,1);const d=h=>h.start+1<=a.column&&a.column<=h.end+1,s=(h,w)=>(h=Math.min(h,a.column),w=Math.max(w,a.column),new S.Range(a.lineNumber,h,a.lineNumber,w)),l=h=>{let w=h.start+1,m=h.end+1,p=!1;for(;m-1<c&&this.i(r,m-1);)p=!0,m++;if(!p)for(;w>1&&this.i(r,w-2);)w--;return s(w,m)},o=v.b(t,n,a);if(o&&d(o))return l(o);const u=v.e(t,n,a);return u&&d(u)?l(u):o&&u?s(o.end+1,u.start+1):o?s(o.start+1,o.end+1):u?s(u.start+1,u.end+1):s(1,c+1)}static _deleteWordPartLeft(t,n){if(!n.isEmpty())return n;const a=n.getPosition(),r=v._moveWordPartLeft(t,a);return new S.Range(a.lineNumber,a.column,r.lineNumber,r.column)}static l(t,n){const a=t.length;for(let r=n;r<a;r++){const c=t.charAt(r);if(c!==" "&&c!==" ")return r}return a}static m(t,n){const a=t.getLineContent(n.lineNumber),r=n.column-1,c=this.l(a,r);return r+1<c?new S.Range(n.lineNumber,n.column,n.lineNumber,c+1):null}static deleteWordRight(t,n){const a=t.wordSeparators,r=t.model,c=t.selection,d=t.whitespaceHeuristics;if(!c.isEmpty())return c;const s=new L.Position(c.positionLineNumber,c.positionColumn);let l=s.lineNumber,o=s.column;const u=r.getLineCount(),h=r.getLineMaxColumn(l);if(l===u&&o===h)return null;if(d){const m=this.m(r,s);if(m)return m}let w=v.e(a,r,s);return n===2?w?o=w.end+1:o<h||l===u?o=h:(l++,w=v.e(a,r,new L.Position(l,1)),w?o=w.start+1:o=r.getLineMaxColumn(l)):(w&&o>=w.start+1&&(w=v.e(a,r,new L.Position(l,w.end+1))),w?o=w.start+1:o<h||l===u?o=h:(l++,w=v.e(a,r,new L.Position(l,1)),w?o=w.start+1:o=r.getLineMaxColumn(l))),new S.Range(l,o,s.lineNumber,s.column)}static _deleteWordPartRight(t,n){if(!n.isEmpty())return n;const a=n.getPosition(),r=v._moveWordPartRight(t,a);return new S.Range(a.lineNumber,a.column,r.lineNumber,r.column)}static n(t,n,a){const r=new S.Range(n,a.start+1,n,a.end+1);return{word:t.getValueInRange(r),startColumn:r.startColumn,endColumn:r.endColumn}}static getWordAtPosition(t,n,a){const r=(0,I.getMapForWordSeparators)(n),c=v.b(r,t,a);if(c&&c.wordType===1&&c.start<=a.column-1&&a.column-1<=c.end)return v.n(t,a.lineNumber,c);const d=v.e(r,t,a);return d&&d.wordType===1&&d.start<=a.column-1&&a.column-1<=d.end?v.n(t,a.lineNumber,d):null}static word(t,n,a,r,c){const d=(0,I.getMapForWordSeparators)(t.wordSeparators),s=v.b(d,n,c),l=v.e(d,n,c);if(!r){let m,p;return s&&s.wordType===1&&s.start<=c.column-1&&c.column-1<=s.end?(m=s.start+1,p=s.end+1):l&&l.wordType===1&&l.start<=c.column-1&&c.column-1<=l.end?(m=l.start+1,p=l.end+1):(s?m=s.end+1:m=1,l?p=l.start+1:p=n.getLineMaxColumn(c.lineNumber)),new N.SingleCursorState(new S.Range(c.lineNumber,m,c.lineNumber,p),1,0,new L.Position(c.lineNumber,p),0)}let o,u;s&&s.wordType===1&&s.start<c.column-1&&c.column-1<s.end?(o=s.start+1,u=s.end+1):l&&l.wordType===1&&l.start<c.column-1&&c.column-1<l.end?(o=l.start+1,u=l.end+1):(o=c.column,u=c.column);const h=c.lineNumber;let w;if(a.selectionStart.containsPosition(c))w=a.selectionStart.endColumn;else if(c.isBeforeOrEqual(a.selectionStart.getStartPosition())){w=o;const m=new L.Position(h,w);a.selectionStart.containsPosition(m)&&(w=a.selectionStart.endColumn)}else{w=u;const m=new L.Position(h,w);a.selectionStart.containsPosition(m)&&(w=a.selectionStart.startColumn)}return a.move(!0,h,w,0)}}e.WordOperations=v;class f extends v{static deleteWordPartLeft(t){const n=g([v.deleteWordLeft(t,0),v.deleteWordLeft(t,2),v._deleteWordPartLeft(t.model,t.selection)]);return n.sort(S.Range.compareRangesUsingEnds),n[2]}static deleteWordPartRight(t){const n=g([v.deleteWordRight(t,0),v.deleteWordRight(t,2),v._deleteWordPartRight(t.model,t.selection)]);return n.sort(S.Range.compareRangesUsingStarts),n[0]}static moveWordPartLeft(t,n,a){const r=g([v.moveWordLeft(t,n,a,0),v.moveWordLeft(t,n,a,2),v._moveWordPartLeft(n,a)]);return r.sort(L.Position.compare),r[2]}static moveWordPartRight(t,n,a){const r=g([v.moveWordRight(t,n,a,0),v.moveWordRight(t,n,a,2),v._moveWordPartRight(n,a)]);return r.sort(L.Position.compare),r[0]}}e.WordPartOperations=f;function g(i){return i.filter(t=>Boolean(t))}}),define(_[188],ee([1,0,18,65,186,162,12,4]),function(q,e,C,N,E,I,L,S){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CursorMove=e.CursorMoveCommands=void 0;class v{static addCursorDown(i,t,n){const a=[];let r=0;for(let c=0,d=t.length;c<d;c++){const s=t[c];a[r++]=new N.CursorState(s.modelState,s.viewState),n?a[r++]=N.CursorState.fromModelState(E.MoveOperations.translateDown(i.cursorConfig,i.model,s.modelState)):a[r++]=N.CursorState.fromViewState(E.MoveOperations.translateDown(i.cursorConfig,i,s.viewState))}return a}static addCursorUp(i,t,n){const a=[];let r=0;for(let c=0,d=t.length;c<d;c++){const s=t[c];a[r++]=new N.CursorState(s.modelState,s.viewState),n?a[r++]=N.CursorState.fromModelState(E.MoveOperations.translateUp(i.cursorConfig,i.model,s.modelState)):a[r++]=N.CursorState.fromViewState(E.MoveOperations.translateUp(i.cursorConfig,i,s.viewState))}return a}static moveToBeginningOfLine(i,t,n){const a=[];for(let r=0,c=t.length;r<c;r++){const d=t[r];a[r]=this.a(i,d,n)}return a}static a(i,t,n){const a=t.viewState.position.column,r=t.modelState.position.column,c=a===r,d=t.viewState.position.lineNumber,s=i.getLineFirstNonWhitespaceColumn(d);return!c&&!(a===s)?this.b(i,t,n):this.c(i,t,n)}static b(i,t,n){return N.CursorState.fromViewState(E.MoveOperations.moveToBeginningOfLine(i.cursorConfig,i,t.viewState,n))}static c(i,t,n){return N.CursorState.fromModelState(E.MoveOperations.moveToBeginningOfLine(i.cursorConfig,i.model,t.modelState,n))}static moveToEndOfLine(i,t,n,a){const r=[];for(let c=0,d=t.length;c<d;c++){const s=t[c];r[c]=this.d(i,s,n,a)}return r}static d(i,t,n,a){const r=t.viewState.position,c=i.getLineMaxColumn(r.lineNumber),d=r.column===c,s=t.modelState.position,l=i.model.getLineMaxColumn(s.lineNumber),o=c-r.column===l-s.column;return d||o?this.f(i,t,n,a):this.e(i,t,n,a)}static e(i,t,n,a){return N.CursorState.fromViewState(E.MoveOperations.moveToEndOfLine(i.cursorConfig,i,t.viewState,n,a))}static f(i,t,n,a){return N.CursorState.fromModelState(E.MoveOperations.moveToEndOfLine(i.cursorConfig,i.model,t.modelState,n,a))}static expandLineSelection(i,t){const n=[];for(let a=0,r=t.length;a<r;a++){const c=t[a],d=c.modelState.selection.startLineNumber,s=i.model.getLineCount();let l=c.modelState.selection.endLineNumber,o;l===s?o=i.model.getLineMaxColumn(s):(l++,o=1),n[a]=N.CursorState.fromModelState(new N.SingleCursorState(new S.Range(d,1,d,1),0,0,new L.Position(l,o),0))}return n}static moveToBeginningOfBuffer(i,t,n){const a=[];for(let r=0,c=t.length;r<c;r++){const d=t[r];a[r]=N.CursorState.fromModelState(E.MoveOperations.moveToBeginningOfBuffer(i.cursorConfig,i.model,d.modelState,n))}return a}static moveToEndOfBuffer(i,t,n){const a=[];for(let r=0,c=t.length;r<c;r++){const d=t[r];a[r]=N.CursorState.fromModelState(E.MoveOperations.moveToEndOfBuffer(i.cursorConfig,i.model,d.modelState,n))}return a}static selectAll(i,t){const n=i.model.getLineCount(),a=i.model.getLineMaxColumn(n);return N.CursorState.fromModelState(new N.SingleCursorState(new S.Range(1,1,1,1),0,0,new L.Position(n,a),0))}static line(i,t,n,a,r){const c=i.model.validatePosition(a),d=r?i.coordinatesConverter.validateViewPosition(new L.Position(r.lineNumber,r.column),c):i.coordinatesConverter.convertModelPositionToViewPosition(c);if(!n){const l=i.model.getLineCount();let o=c.lineNumber+1,u=1;return o>l&&(o=l,u=i.model.getLineMaxColumn(o)),N.CursorState.fromModelState(new N.SingleCursorState(new S.Range(c.lineNumber,1,o,u),2,0,new L.Position(o,u),0))}const s=t.modelState.selectionStart.getStartPosition().lineNumber;if(c.lineNumber<s)return N.CursorState.fromViewState(t.viewState.move(!0,d.lineNumber,1,0));if(c.lineNumber>s){const l=i.getLineCount();let o=d.lineNumber+1,u=1;return o>l&&(o=l,u=i.getLineMaxColumn(o)),N.CursorState.fromViewState(t.viewState.move(!0,o,u,0))}else{const l=t.modelState.selectionStart.getEndPosition();return N.CursorState.fromModelState(t.modelState.move(!0,l.lineNumber,l.column,0))}}static word(i,t,n,a){const r=i.model.validatePosition(a);return N.CursorState.fromModelState(I.WordOperations.word(i.cursorConfig,i.model,t.modelState,n,r))}static cancelSelection(i,t){if(!t.modelState.hasSelection())return new N.CursorState(t.modelState,t.viewState);const n=t.viewState.position.lineNumber,a=t.viewState.position.column;return N.CursorState.fromViewState(new N.SingleCursorState(new S.Range(n,a,n,a),0,0,new L.Position(n,a),0))}static moveTo(i,t,n,a,r){if(n){if(t.modelState.selectionStartKind===1)return this.word(i,t,n,a);if(t.modelState.selectionStartKind===2)return this.line(i,t,n,a,r)}const c=i.model.validatePosition(a),d=r?i.coordinatesConverter.validateViewPosition(new L.Position(r.lineNumber,r.column),c):i.coordinatesConverter.convertModelPositionToViewPosition(c);return N.CursorState.fromViewState(t.viewState.move(n,d.lineNumber,d.column,0))}static simpleMove(i,t,n,a,r,c){switch(n){case 0:return c===4?this.k(i,t,a):this.j(i,t,a,r);case 1:return c===4?this.m(i,t,a):this.l(i,t,a,r);case 2:return c===2?this.p(i,t,a,r):this.q(i,t,a,r);case 3:return c===2?this.n(i,t,a,r):this.o(i,t,a,r);case 4:return c===2?t.map(d=>N.CursorState.fromViewState(E.MoveOperations.moveToPrevBlankLine(i.cursorConfig,i,d.viewState,a))):t.map(d=>N.CursorState.fromModelState(E.MoveOperations.moveToPrevBlankLine(i.cursorConfig,i.model,d.modelState,a)));case 5:return c===2?t.map(d=>N.CursorState.fromViewState(E.MoveOperations.moveToNextBlankLine(i.cursorConfig,i,d.viewState,a))):t.map(d=>N.CursorState.fromModelState(E.MoveOperations.moveToNextBlankLine(i.cursorConfig,i.model,d.modelState,a)));case 6:return this.t(i,t,a);case 7:return this.u(i,t,a);case 8:return this.v(i,t,a);case 9:return this.w(i,t,a);case 10:return this.x(i,t,a);default:return null}}static viewportMove(i,t,n,a,r){const c=i.getCompletelyVisibleViewRange(),d=i.coordinatesConverter.convertViewRangeToModelRange(c);switch(n){case 11:{const s=this.g(i.model,d,r),l=i.model.getLineFirstNonWhitespaceColumn(s);return[this.s(i,t[0],a,s,l)]}case 13:{const s=this.h(i.model,d,r),l=i.model.getLineFirstNonWhitespaceColumn(s);return[this.s(i,t[0],a,s,l)]}case 12:{const s=Math.round((d.startLineNumber+d.endLineNumber)/2),l=i.model.getLineFirstNonWhitespaceColumn(s);return[this.s(i,t[0],a,s,l)]}case 14:{const s=[];for(let l=0,o=t.length;l<o;l++){const u=t[l];s[l]=this.findPositionInViewportIfOutside(i,u,c,a)}return s}default:return null}}static findPositionInViewportIfOutside(i,t,n,a){const r=t.viewState.position.lineNumber;if(n.startLineNumber<=r&&r<=n.endLineNumber-1)return new N.CursorState(t.modelState,t.viewState);{let c;r>n.endLineNumber-1?c=n.endLineNumber-1:r<n.startLineNumber?c=n.startLineNumber:c=r;const d=E.MoveOperations.vertical(i.cursorConfig,i,r,t.viewState.position.column,t.viewState.leftoverVisibleColumns,c,!1);return N.CursorState.fromViewState(t.viewState.move(a,d.lineNumber,d.column,d.leftoverVisibleColumns))}}static g(i,t,n){let a=t.startLineNumber;return t.startColumn!==i.getLineMinColumn(a)&&a++,Math.min(t.endLineNumber,a+n-1)}static h(i,t,n){let a=t.startLineNumber;return t.startColumn!==i.getLineMinColumn(a)&&a++,Math.max(a,t.endLineNumber-n+1)}static j(i,t,n,a){return t.map(r=>N.CursorState.fromViewState(E.MoveOperations.moveLeft(i.cursorConfig,i,r.viewState,n,a)))}static k(i,t,n){const a=[];for(let r=0,c=t.length;r<c;r++){const d=t[r],s=d.viewState.position.lineNumber,l=Math.round(i.getLineContent(s).length/2);a[r]=N.CursorState.fromViewState(E.MoveOperations.moveLeft(i.cursorConfig,i,d.viewState,n,l))}return a}static l(i,t,n,a){return t.map(r=>N.CursorState.fromViewState(E.MoveOperations.moveRight(i.cursorConfig,i,r.viewState,n,a)))}static m(i,t,n){const a=[];for(let r=0,c=t.length;r<c;r++){const d=t[r],s=d.viewState.position.lineNumber,l=Math.round(i.getLineContent(s).length/2);a[r]=N.CursorState.fromViewState(E.MoveOperations.moveRight(i.cursorConfig,i,d.viewState,n,l))}return a}static n(i,t,n,a){const r=[];for(let c=0,d=t.length;c<d;c++){const s=t[c];r[c]=N.CursorState.fromViewState(E.MoveOperations.moveDown(i.cursorConfig,i,s.viewState,n,a))}return r}static o(i,t,n,a){const r=[];for(let c=0,d=t.length;c<d;c++){const s=t[c];r[c]=N.CursorState.fromModelState(E.MoveOperations.moveDown(i.cursorConfig,i.model,s.modelState,n,a))}return r}static p(i,t,n,a){const r=[];for(let c=0,d=t.length;c<d;c++){const s=t[c];r[c]=N.CursorState.fromViewState(E.MoveOperations.moveUp(i.cursorConfig,i,s.viewState,n,a))}return r}static q(i,t,n,a){const r=[];for(let c=0,d=t.length;c<d;c++){const s=t[c];r[c]=N.CursorState.fromModelState(E.MoveOperations.moveUp(i.cursorConfig,i.model,s.modelState,n,a))}return r}static r(i,t,n,a,r){return N.CursorState.fromViewState(t.viewState.move(n,a,r,0))}static s(i,t,n,a,r){return N.CursorState.fromModelState(t.modelState.move(n,a,r,0))}static t(i,t,n){const a=[];for(let r=0,c=t.length;r<c;r++){const d=t[r],s=d.viewState.position.lineNumber,l=i.getLineMinColumn(s);a[r]=this.r(i,d,n,s,l)}return a}static u(i,t,n){const a=[];for(let r=0,c=t.length;r<c;r++){const d=t[r],s=d.viewState.position.lineNumber,l=i.getLineFirstNonWhitespaceColumn(s);a[r]=this.r(i,d,n,s,l)}return a}static v(i,t,n){const a=[];for(let r=0,c=t.length;r<c;r++){const d=t[r],s=d.viewState.position.lineNumber,l=Math.round((i.getLineMaxColumn(s)+i.getLineMinColumn(s))/2);a[r]=this.r(i,d,n,s,l)}return a}static w(i,t,n){const a=[];for(let r=0,c=t.length;r<c;r++){const d=t[r],s=d.viewState.position.lineNumber,l=i.getLineMaxColumn(s);a[r]=this.r(i,d,n,s,l)}return a}static x(i,t,n){const a=[];for(let r=0,c=t.length;r<c;r++){const d=t[r],s=d.viewState.position.lineNumber,l=i.getLineLastNonWhitespaceColumn(s);a[r]=this.r(i,d,n,s,l)}return a}}e.CursorMoveCommands=v;var f;(function(g){const i=function(n){if(!C.isObject(n))return!1;const a=n;return!(!C.isString(a.to)||!C.isUndefined(a.select)&&!C.isBoolean(a.select)||!C.isUndefined(a.by)&&!C.isString(a.by)||!C.isUndefined(a.value)&&!C.isNumber(a.value))};g.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:i,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}}}}]},g.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"},g.RawUnit={Line:"line",WrappedLine:"wrappedLine",Character:"character",HalfLine:"halfLine"};function t(n){if(!n.to)return null;let a;switch(n.to){case g.RawDirection.Left:a=0;break;case g.RawDirection.Right:a=1;break;case g.RawDirection.Up:a=2;break;case g.RawDirection.Down:a=3;break;case g.RawDirection.PrevBlankLine:a=4;break;case g.RawDirection.NextBlankLine:a=5;break;case g.RawDirection.WrappedLineStart:a=6;break;case g.RawDirection.WrappedLineFirstNonWhitespaceCharacter:a=7;break;case g.RawDirection.WrappedLineColumnCenter:a=8;break;case g.RawDirection.WrappedLineEnd:a=9;break;case g.RawDirection.WrappedLineLastNonWhitespaceCharacter:a=10;break;case g.RawDirection.ViewPortTop:a=11;break;case g.RawDirection.ViewPortBottom:a=13;break;case g.RawDirection.ViewPortCenter:a=12;break;case g.RawDirection.ViewPortIfOutside:a=14;break;default:return null}let r=0;switch(n.by){case g.RawUnit.Line:r=1;break;case g.RawUnit.WrappedLine:r=2;break;case g.RawUnit.Character:r=3;break;case g.RawUnit.HalfLine:r=4;break}return{direction:a,unit:r,select:!!n.select,value:n.value||1}}g.parse=t})(f=e.CursorMove||(e.CursorMove={}))}),define(_[451],ee([1,0,65,12,4,22]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Cursor=void 0;class L{constructor(v){this.a=null,this.b=!0,this.g(v,new C.SingleCursorState(new E.Range(1,1,1,1),0,0,new N.Position(1,1),0),new C.SingleCursorState(new E.Range(1,1,1,1),0,0,new N.Position(1,1),0))}dispose(v){this.d(v)}startTrackingSelection(v){this.b=!0,this.c(v)}stopTrackingSelection(v){this.b=!1,this.d(v)}c(v){!this.b||(this.a=v.model._setTrackedRange(this.a,this.modelState.selection,0))}d(v){this.a=v.model._setTrackedRange(this.a,null,0)}asCursorState(){return new C.CursorState(this.modelState,this.viewState)}readSelectionFromMarkers(v){const f=v.model._getTrackedRange(this.a);return this.modelState.selection.isEmpty()&&!f.isEmpty()?I.Selection.fromRange(f.collapseToEnd(),this.modelState.selection.getDirection()):I.Selection.fromRange(f,this.modelState.selection.getDirection())}ensureValidState(v){this.g(v,this.modelState,this.viewState)}setState(v,f,g){this.g(v,f,g)}static e(v,f,g,i){return f.equals(g)?i:v.normalizePosition(f,2)}static f(v,f){const g=f.position,i=f.selectionStart.getStartPosition(),t=f.selectionStart.getEndPosition(),n=v.normalizePosition(g,2),a=this.e(v,i,g,n),r=this.e(v,t,i,a);return g.equals(n)&&i.equals(a)&&t.equals(r)?f:new C.SingleCursorState(E.Range.fromPositions(a,r),f.selectionStartKind,f.selectionStartLeftoverVisibleColumns+i.column-a.column,n,f.leftoverVisibleColumns+g.column-n.column)}g(v,f,g){if(g&&(g=L.f(v.viewModel,g)),f){const i=v.model.validateRange(f.selectionStart),t=f.selectionStart.equalsRange(i)?f.selectionStartLeftoverVisibleColumns:0,n=v.model.validatePosition(f.position),a=f.position.equals(n)?f.leftoverVisibleColumns:0;f=new C.SingleCursorState(i,f.selectionStartKind,t,n,a)}else{if(!g)return;const i=v.model.validateRange(v.coordinatesConverter.convertViewRangeToModelRange(g.selectionStart)),t=v.model.validatePosition(v.coordinatesConverter.convertViewPositionToModelPosition(g.position));f=new C.SingleCursorState(i,g.selectionStartKind,g.selectionStartLeftoverVisibleColumns,t,g.leftoverVisibleColumns)}if(g){const i=v.coordinatesConverter.validateViewRange(g.selectionStart,f.selectionStart),t=v.coordinatesConverter.validateViewPosition(g.position,f.position);g=new C.SingleCursorState(i,f.selectionStartKind,f.selectionStartLeftoverVisibleColumns,t,f.leftoverVisibleColumns)}else{const i=v.coordinatesConverter.convertModelPositionToViewPosition(new N.Position(f.selectionStart.startLineNumber,f.selectionStart.startColumn)),t=v.coordinatesConverter.convertModelPositionToViewPosition(new N.Position(f.selectionStart.endLineNumber,f.selectionStart.endColumn)),n=new E.Range(i.lineNumber,i.column,t.lineNumber,t.column),a=v.coordinatesConverter.convertModelPositionToViewPosition(f.position);g=new C.SingleCursorState(n,f.selectionStartKind,f.selectionStartLeftoverVisibleColumns,a,f.leftoverVisibleColumns)}this.modelState=f,this.viewState=g,this.c(v)}}e.Cursor=L}),define(_[452],ee([1,0,17,65,451,12,4,22]),function(q,e,C,N,E,I,L,S){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CursorCollection=void 0;class v{constructor(g){this.a=g,this.b=[new E.Cursor(g)],this.d=0}dispose(){for(const g of this.b)g.dispose(this.a)}startTrackingSelections(){for(const g of this.b)g.startTrackingSelection(this.a)}stopTrackingSelections(){for(const g of this.b)g.stopTrackingSelection(this.a)}updateContext(g){this.a=g}ensureValidState(){for(const g of this.b)g.ensureValidState(this.a)}readSelectionFromMarkers(){return this.b.map(g=>g.readSelectionFromMarkers(this.a))}getAll(){return this.b.map(g=>g.asCursorState())}getViewPositions(){return this.b.map(g=>g.viewState.position)}getTopMostViewPosition(){return(0,C.findMinBy)(this.b,(0,C.compareBy)(g=>g.viewState.position,I.Position.compare)).viewState.position}getBottomMostViewPosition(){return(0,C.findLastMaxBy)(this.b,(0,C.compareBy)(g=>g.viewState.position,I.Position.compare)).viewState.position}getSelections(){return this.b.map(g=>g.modelState.selection)}getViewSelections(){return this.b.map(g=>g.viewState.selection)}setSelections(g){this.setStates(N.CursorState.fromModelSelections(g))}getPrimaryCursor(){return this.b[0].asCursorState()}setStates(g){g!==null&&(this.b[0].setState(this.a,g[0].modelState,g[0].viewState),this.e(g.slice(1)))}e(g){const i=this.b.length-1,t=g.length;if(i<t){const n=t-i;for(let a=0;a<n;a++)this.f()}else if(i>t){const n=i-t;for(let a=0;a<n;a++)this.g(this.b.length-2)}for(let n=0;n<t;n++)this.b[n+1].setState(this.a,g[n].modelState,g[n].viewState)}killSecondaryCursors(){this.e([])}f(){this.b.push(new E.Cursor(this.a)),this.d=this.b.length-1}getLastAddedCursorIndex(){return this.b.length===1||this.d===0?0:this.d}g(g){this.d>=g+1&&this.d--,this.b[g+1].dispose(this.a),this.b.splice(g+1,1)}normalize(){if(this.b.length===1)return;const g=this.b.slice(0),i=[];for(let t=0,n=g.length;t<n;t++)i.push({index:t,selection:g[t].modelState.selection});i.sort((0,C.compareBy)(t=>t.selection,L.Range.compareRangesUsingStarts));for(let t=0;t<i.length-1;t++){const n=i[t],a=i[t+1],r=n.selection,c=a.selection;if(!this.a.cursorConfig.multiCursorMergeOverlapping)continue;let d;if(c.isEmpty()||r.isEmpty()?d=c.getStartPosition().isBeforeOrEqual(r.getEndPosition()):d=c.getStartPosition().isBefore(r.getEndPosition()),d){const s=n.index<a.index?t:t+1,l=n.index<a.index?t+1:t,o=i[l].index,u=i[s].index,h=i[l].selection,w=i[s].selection;if(!h.equalsSelection(w)){const m=h.plusRange(w),p=h.selectionStartLineNumber===h.startLineNumber&&h.selectionStartColumn===h.startColumn,b=w.selectionStartLineNumber===w.startLineNumber&&w.selectionStartColumn===w.startColumn;let y;o===this.d?(y=p,this.d=u):y=b;let k;y?k=new S.Selection(m.startLineNumber,m.startColumn,m.endLineNumber,m.endColumn):k=new S.Selection(m.endLineNumber,m.endColumn,m.startLineNumber,m.startColumn),i[s].selection=k;const D=N.CursorState.fromModelSelection(k);g[u].setState(this.a,D.modelState,D.viewState)}for(const m of i)m.index>o&&m.index--;g.splice(o,1),i.splice(l,1),this.g(o-1),t--}}}}e.CursorCollection=v}),define(_[453],ee([1,0,103]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CharacterPairSupport=void 0;class N{constructor(I){if(I.autoClosingPairs?this.a=I.autoClosingPairs.map(L=>new C.StandardAutoClosingPairConditional(L)):I.brackets?this.a=I.brackets.map(L=>new C.StandardAutoClosingPairConditional({open:L[0],close:L[1]})):this.a=[],I.__electricCharacterSupport&&I.__electricCharacterSupport.docComment){const L=I.__electricCharacterSupport.docComment;this.a.push(new C.StandardAutoClosingPairConditional({open:L.open,close:L.close||""}))}this.d=typeof I.autoCloseBefore=="string"?I.autoCloseBefore:N.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this.e=typeof I.autoCloseBefore=="string"?I.autoCloseBefore:N.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this.c=I.surroundingPairs||this.a}getAutoClosingPairs(){return this.a}getAutoCloseBeforeSet(I){return I?this.d:this.e}getSurroundingPairs(){return this.c}}N.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=`;:.,=}])>
|
||
`,N.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS=`'"\`;:.,=}])>
|
||
`,e.CharacterPairSupport=N}),define(_[454],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndentRulesSupport=void 0;function C(E){return E.global&&(E.lastIndex=0),!0}class N{constructor(I){this.a=I}shouldIncrease(I){return!!(this.a&&this.a.increaseIndentPattern&&C(this.a.increaseIndentPattern)&&this.a.increaseIndentPattern.test(I))}shouldDecrease(I){return!!(this.a&&this.a.decreaseIndentPattern&&C(this.a.decreaseIndentPattern)&&this.a.decreaseIndentPattern.test(I))}shouldIndentNextLine(I){return!!(this.a&&this.a.indentNextLinePattern&&C(this.a.indentNextLinePattern)&&this.a.indentNextLinePattern.test(I))}shouldIgnore(I){return!!(this.a&&this.a.unIndentedLinePattern&&C(this.a.unIndentedLinePattern)&&this.a.unIndentedLinePattern.test(I))}getIndentMetadata(I){let L=0;return this.shouldIncrease(I)&&(L+=1),this.shouldDecrease(I)&&(L+=2),this.shouldIndentNextLine(I)&&(L+=4),this.shouldIgnore(I)&&(L+=8),L}}e.IndentRulesSupport=N}),define(_[455],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BasicInplaceReplace=void 0;class C{constructor(){this.c=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(E,I,L,S,v){if(E&&I){const f=this.a(I,v);if(f)return{range:E,value:f}}if(L&&S){const f=this.a(S,v);if(f)return{range:L,value:f}}return null}a(E,I){const L=this.b(E,I);return L!==null?L:this.d(E,I)}b(E,I){const L=Math.pow(10,E.length-(E.lastIndexOf(".")+1));let S=Number(E);const v=parseFloat(E);return!isNaN(S)&&!isNaN(v)&&S===v?S===0&&!I?null:(S=Math.floor(S*L),S+=I?L:-L,String(S/L)):null}d(E,I){return this.e(this.c,E,I)}e(E,I,L){let S=null;for(let v=0,f=E.length;S===null&&v<f;v++)S=this.f(E[v],I,L);return S}f(E,I,L){let S=E.indexOf(I);return S>=0?(S+=L?1:-1,S<0?S=E.length-1:S%=E.length,E[S]):null}}C.INSTANCE=new C,e.BasicInplaceReplace=C}),define(_[456],ee([1,0,239]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ClosingBracketKind=e.OpeningBracketKind=e.BracketKindBase=e.LanguageBracketsConfiguration=void 0;class N{constructor(f,g){this.languageId=f;const i=g.brackets?E(g.brackets):[],t=new C.CachedFunction(r=>{const c=new Set;return{info:new L(this,r,c),closing:c}}),n=new C.CachedFunction(r=>{const c=new Set,d=new Set;return{info:new S(this,r,c,d),opening:c,openingColorized:d}});for(const[r,c]of i){const d=t.get(r),s=n.get(c);d.closing.add(s.info),s.opening.add(d.info)}const a=g.colorizedBracketPairs?E(g.colorizedBracketPairs):i.filter(r=>!(r[0]==="<"&&r[1]===">"));for(const[r,c]of a){const d=t.get(r),s=n.get(c);d.closing.add(s.info),s.openingColorized.add(d.info),s.opening.add(d.info)}this.a=new Map([...t.cachedValues].map(([r,c])=>[r,c.info])),this.b=new Map([...n.cachedValues].map(([r,c])=>[r,c.info]))}get openingBrackets(){return[...this.a.values()]}get closingBrackets(){return[...this.b.values()]}getOpeningBracketInfo(f){return this.a.get(f)}getClosingBracketInfo(f){return this.b.get(f)}getBracketInfo(f){return this.getOpeningBracketInfo(f)||this.getClosingBracketInfo(f)}}e.LanguageBracketsConfiguration=N;function E(v){return v.filter(([f,g])=>f!==""&&g!=="")}class I{constructor(f,g){this.a=f,this.bracketText=g}get languageId(){return this.a.languageId}}e.BracketKindBase=I;class L extends I{constructor(f,g,i){super(f,g),this.openedBrackets=i,this.isOpeningBracket=!0}}e.OpeningBracketKind=L;class S extends I{constructor(f,g,i,t){super(f,g),this.openingBrackets=i,this.b=t,this.isOpeningBracket=!1}closes(f){return f.a!==this.a?!1:this.openingBrackets.has(f)}closesColorized(f){return f.a!==this.a?!1:this.b.has(f)}getOpeningBrackets(){return[...this.openingBrackets]}}e.ClosingBracketKind=S}),define(_[457],ee([1,0,13,9,103]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OnEnterSupport=void 0;class I{constructor(S){S=S||{},S.brackets=S.brackets||[["(",")"],["{","}"],["[","]"]],this.a=[],S.brackets.forEach(v=>{const f=I.c(v[0]),g=I.d(v[1]);f&&g&&this.a.push({open:v[0],openRegExp:f,close:v[1],closeRegExp:g})}),this.b=S.onEnterRules||[]}onEnter(S,v,f,g){if(S>=3)for(let i=0,t=this.b.length;i<t;i++){const n=this.b[i];if([{reg:n.beforeText,text:f},{reg:n.afterText,text:g},{reg:n.previousLineText,text:v}].every(r=>r.reg?(r.reg.lastIndex=0,r.reg.test(r.text)):!0))return n.action}if(S>=2&&f.length>0&&g.length>0)for(let i=0,t=this.a.length;i<t;i++){const n=this.a[i];if(n.openRegExp.test(f)&&n.closeRegExp.test(g))return{indentAction:E.IndentAction.IndentOutdent}}if(S>=2&&f.length>0){for(let i=0,t=this.a.length;i<t;i++)if(this.a[i].openRegExp.test(f))return{indentAction:E.IndentAction.Indent}}return null}static c(S){let v=N.escapeRegExpCharacters(S);return/\B/.test(v.charAt(0))||(v="\\b"+v),v+="\\s*$",I.e(v)}static d(S){let v=N.escapeRegExpCharacters(S);return/\B/.test(v.charAt(v.length-1))||(v=v+"\\b"),v="^\\s*"+v,I.e(v)}static e(S){try{return new RegExp(S)}catch(v){return(0,C.onUnexpectedError)(v),null}}}e.OnEnterSupport=I}),define(_[458],ee([1,0,36]),function(q,e,C){"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 N{constructor(c,d,s,l,o){this._parsedThemeRuleBrand=void 0,this.token=c,this.index=d,this.fontStyle=s,this.foreground=l,this.background=o}}e.ParsedTokenThemeRule=N;function E(r){if(!r||!Array.isArray(r))return[];const c=[];let d=0;for(let s=0,l=r.length;s<l;s++){const o=r[s];let u=-1;if(typeof o.fontStyle=="string"){u=0;const m=o.fontStyle.split(" ");for(let p=0,b=m.length;p<b;p++)switch(m[p]){case"italic":u=u|1;break;case"bold":u=u|2;break;case"underline":u=u|4;break;case"strikethrough":u=u|8;break}}let h=null;typeof o.foreground=="string"&&(h=o.foreground);let w=null;typeof o.background=="string"&&(w=o.background),c[d++]=new N(o.token||"",s,u,h,w)}return c}e.parseTokenTheme=E;function I(r,c){r.sort((p,b)=>{const y=i(p.token,b.token);return y!==0?y:p.index-b.index});let d=0,s="000000",l="ffffff";for(;r.length>=1&&r[0].token==="";){const p=r.shift();p.fontStyle!==-1&&(d=p.fontStyle),p.foreground!==null&&(s=p.foreground),p.background!==null&&(l=p.background)}const o=new S;for(const p of c)o.getId(p);const u=o.getId(s),h=o.getId(l),w=new t(d,u,h),m=new n(w);for(let p=0,b=r.length;p<b;p++){const y=r[p];m.insert(y.token,y.fontStyle,o.getId(y.foreground),o.getId(y.background))}return new v(o,m)}const L=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/;class S{constructor(){this.c=0,this.d=[],this.e=new Map}getId(c){if(c===null)return 0;const d=c.match(L);if(!d)throw new Error("Illegal value for token color: "+c);c=d[1].toUpperCase();let s=this.e.get(c);return s||(s=++this.c,this.e.set(c,s),this.d[s]=C.Color.fromHex("#"+c),s)}getColorMap(){return this.d.slice(0)}}e.ColorMap=S;class v{static createFromRawTokenTheme(c,d){return this.createFromParsedTokenTheme(E(c),d)}static createFromParsedTokenTheme(c,d){return I(c,d)}constructor(c,d){this.c=c,this.d=d,this.e=new Map}getColorMap(){return this.c.getColorMap()}_match(c){return this.d.match(c)}match(c,d){let s=this.e.get(d);if(typeof s>"u"){const l=this._match(d),o=g(d);s=(l.metadata|o<<8)>>>0,this.e.set(d,s)}return(s|c<<0)>>>0}}e.TokenTheme=v;const f=/\b(comment|string|regex|regexp)\b/;function g(r){const c=r.match(f);if(!c)return 0;switch(c[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=g;function i(r,c){return r<c?-1:r>c?1:0}e.strcmp=i;class t{constructor(c,d,s){this._themeTrieElementRuleBrand=void 0,this.c=c,this.d=d,this.e=s,this.metadata=(this.c<<11|this.d<<15|this.e<<24)>>>0}clone(){return new t(this.c,this.d,this.e)}acceptOverwrite(c,d,s){c!==-1&&(this.c=c),d!==0&&(this.d=d),s!==0&&(this.e=s),this.metadata=(this.c<<11|this.d<<15|this.e<<24)>>>0}}e.ThemeTrieElementRule=t;class n{constructor(c){this._themeTrieElementBrand=void 0,this.c=c,this.d=new Map}match(c){if(c==="")return this.c;const d=c.indexOf(".");let s,l;d===-1?(s=c,l=""):(s=c.substring(0,d),l=c.substring(d+1));const o=this.d.get(s);return typeof o<"u"?o.match(l):this.c}insert(c,d,s,l){if(c===""){this.c.acceptOverwrite(d,s,l);return}const o=c.indexOf(".");let u,h;o===-1?(u=c,h=""):(u=c.substring(0,o),h=c.substring(o+1));let w=this.d.get(u);typeof w>"u"&&(w=new n(this.c.clone()),this.d.set(u,w)),w.insert(h,d,s,l)}}e.ThemeTrieElement=n;function a(r){const c=[];for(let d=1,s=r.length;d<s;d++){const l=r[d];c[d]=`.mtk${d} { color: ${l}; }`}return c.push(".mtki { font-style: italic; }"),c.push(".mtkb { font-weight: bold; }"),c.push(".mtku { text-decoration: underline; text-underline-position: under; }"),c.push(".mtks { text-decoration: line-through; }"),c.push(".mtks.mtku { text-decoration: underline line-through; text-underline-position: under; }"),c.join(`
|
||
`)}e.generateTokensCSSForColorMap=a}),define(_[47],ee([1,0,46]),function(q,e,C){"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 N;(function(n){n[n.Left=1]="Left",n[n.Center=2]="Center",n[n.Right=4]="Right",n[n.Full=7]="Full"})(N=e.OverviewRulerLane||(e.OverviewRulerLane={}));var E;(function(n){n[n.Inline=1]="Inline",n[n.Gutter=2]="Gutter"})(E=e.MinimapPosition||(e.MinimapPosition={}));var I;(function(n){n[n.Both=0]="Both",n[n.Right=1]="Right",n[n.Left=2]="Left",n[n.None=3]="None"})(I=e.InjectedTextCursorStops||(e.InjectedTextCursorStops={}));class L{get originalIndentSize(){return this.a?"tabSize":this.indentSize}constructor(a){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,a.tabSize|0),a.indentSize==="tabSize"?(this.indentSize=this.tabSize,this.a=!0):(this.indentSize=Math.max(1,a.indentSize|0),this.a=!1),this.insertSpaces=Boolean(a.insertSpaces),this.defaultEOL=a.defaultEOL|0,this.trimAutoWhitespace=Boolean(a.trimAutoWhitespace),this.bracketPairColorizationOptions=a.bracketPairColorizationOptions}equals(a){return this.tabSize===a.tabSize&&this.a===a.a&&this.indentSize===a.indentSize&&this.insertSpaces===a.insertSpaces&&this.defaultEOL===a.defaultEOL&&this.trimAutoWhitespace===a.trimAutoWhitespace&&(0,C.equals)(this.bracketPairColorizationOptions,a.bracketPairColorizationOptions)}createChangeEvent(a){return{tabSize:this.tabSize!==a.tabSize,indentSize:this.indentSize!==a.indentSize,insertSpaces:this.insertSpaces!==a.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==a.trimAutoWhitespace}}}e.TextModelResolvedOptions=L;class S{constructor(a,r){this._findMatchBrand=void 0,this.range=a,this.matches=r}}e.FindMatch=S;function v(n){return n&&typeof n.read=="function"}e.isITextSnapshot=v;class f{constructor(a,r,c,d,s,l){this.identifier=a,this.range=r,this.text=c,this.forceMoveMarkers=d,this.isAutoWhitespaceEdit=s,this._isTracked=l}}e.ValidAnnotatedEditOperation=f;class g{constructor(a,r,c){this.regex=a,this.wordSeparators=r,this.simpleSearch=c}}e.SearchData=g;class i{constructor(a,r,c){this.reverseEdits=a,this.changes=r,this.trimAutoWhitespaceLineNumbers=c}}e.ApplyEditsResult=i;function t(n){return!n.isTooLargeForSyncing()&&!n.isForSimpleWidget}e.shouldSynchronizeModel=t}),define(_[86],ee([1,0,9,4]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.lengthOfString=e.lengthsToRange=e.positionToLength=e.lengthGreaterThanEqual=e.lengthLessThanEqual=e.lengthLessThan=e.lengthDiffNonNegative=e.lengthEquals=e.sumLengths=e.lengthAdd=e.lengthGetColumnCountIfZeroLineCount=e.lengthGetLineCount=e.lengthToObj=e.toLength=e.lengthIsZero=e.lengthZero=e.lengthDiff=e.LengthObj=void 0;class E{constructor(w,m){this.lineCount=w,this.columnCount=m}toString(){return`${this.lineCount},${this.columnCount}`}}E.zero=new E(0,0),e.LengthObj=E;function I(h,w,m,p){return h!==m?v(m-h,p):v(0,p-w)}e.lengthDiff=I,e.lengthZero=0;function L(h){return h===0}e.lengthIsZero=L;const S=Math.pow(2,26);function v(h,w){return h*S+w}e.toLength=v;function f(h){const w=h,m=Math.floor(w/S),p=w-m*S;return new E(m,p)}e.lengthToObj=f;function g(h){return Math.floor(h/S)}e.lengthGetLineCount=g;function i(h){return h}e.lengthGetColumnCountIfZeroLineCount=i;function t(h,w){let m=h+w;return w>=S&&(m=m-h%S),m}e.lengthAdd=t;function n(h,w){return h.reduce((m,p)=>t(m,w(p)),e.lengthZero)}e.sumLengths=n;function a(h,w){return h===w}e.lengthEquals=a;function r(h,w){const m=h,p=w;if(p-m<=0)return e.lengthZero;const y=Math.floor(m/S),k=Math.floor(p/S),D=p-k*S;if(y===k){const M=m-y*S;return v(0,D-M)}else return v(k-y,D)}e.lengthDiffNonNegative=r;function c(h,w){return h<w}e.lengthLessThan=c;function d(h,w){return h<=w}e.lengthLessThanEqual=d;function s(h,w){return h>=w}e.lengthGreaterThanEqual=s;function l(h){return v(h.lineNumber-1,h.column-1)}e.positionToLength=l;function o(h,w){const m=h,p=Math.floor(m/S),b=m-p*S,y=w,k=Math.floor(y/S),D=y-k*S;return new N.Range(p+1,b+1,k+1,D+1)}e.lengthsToRange=o;function u(h){const w=(0,C.splitLines)(h);return v(w.length-1,w[w.length-1].length)}e.lengthOfString=u}),define(_[189],ee([1,0,86]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BeforeEditPositionMapper=e.TextEditInfo=void 0;class N{constructor(S,v,f){this.startOffset=S,this.endOffset=v,this.newLength=f}}e.TextEditInfo=N;class E{constructor(S){this.a=0,this.b=0,this.c=0,this.d=-1,this.e=S.map(v=>I.from(v))}getOffsetBeforeChange(S){return this.h(S),this.g(S)}getDistanceToNextChange(S){this.h(S);const v=this.e[this.a],f=v?this.f(v.offsetObj):null;return f===null?null:(0,C.lengthDiffNonNegative)(S,f)}f(S){return S.lineCount===this.d?(0,C.toLength)(S.lineCount+this.b,S.columnCount+this.c):(0,C.toLength)(S.lineCount+this.b,S.columnCount)}g(S){const v=(0,C.lengthToObj)(S);return v.lineCount-this.b===this.d?(0,C.toLength)(v.lineCount-this.b,v.columnCount-this.c):(0,C.toLength)(v.lineCount-this.b,v.columnCount)}h(S){for(;this.a<this.e.length;){const v=this.e[this.a],f=this.f(v.endOffsetAfterObj);if((0,C.lengthLessThanEqual)(f,S)){this.a++;const g=(0,C.lengthToObj)(f),i=(0,C.lengthToObj)(this.f(v.endOffsetBeforeObj)),t=g.lineCount-i.lineCount;this.b+=t;const n=this.d===v.endOffsetBeforeObj.lineCount?this.c:0,a=g.columnCount-i.columnCount;this.c=n+a,this.d=v.endOffsetBeforeObj.lineCount}else break}}}e.BeforeEditPositionMapper=E;class I{static from(S){return new I(S.startOffset,S.endOffset,S.newLength)}constructor(S,v,f){this.endOffsetBeforeObj=(0,C.lengthToObj)(v),this.endOffsetAfterObj=(0,C.lengthToObj)((0,C.lengthAdd)(S,f)),this.offsetObj=(0,C.lengthToObj)(S)}}}),define(_[459],ee([1,0,17,189,86]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.combineTextEditInfos=void 0;function I(S,v){if(S.length===0)return v;const f=new C.ArrayQueue(L(S)),g=L(v);let i,t=E.lengthZero;function n(s){const l=[];for(;;){if(i!==void 0&&!(0,E.lengthIsZero)(i)||!(0,E.lengthIsZero)(t)){let u;s!==void 0&&(0,E.lengthLessThanEqual)(s,t)?(u=s,t=(0,E.lengthDiffNonNegative)(s,t),s=E.lengthZero):(u=t,s!==void 0&&(s=(0,E.lengthDiffNonNegative)(t,s)),t=E.lengthZero),i===void 0?l.push({oldLength:u,newLength:void 0}):(l.push({oldLength:i,newLength:u}),i=E.lengthZero)}if(s!==void 0&&(0,E.lengthIsZero)(s))break;const o=f.dequeue();if(!o){s!==void 0&&l.push({oldLength:s,newLength:void 0});break}o.newLength===void 0?(t=o.oldLength,i=void 0):(i=o.oldLength,t=o.newLength)}return l}const a=[];function r(s,l,o){if(a.length>0&&(0,E.lengthEquals)(a[a.length-1].endOffset,s)){const u=a[a.length-1];a[a.length-1]=new N.TextEditInfo(u.startOffset,l,(0,E.lengthAdd)(u.newLength,o))}else a.push({startOffset:s,endOffset:l,newLength:o})}let c=E.lengthZero;for(const s of g){const l=n(s.oldLength);if(s.newLength!==void 0){const o=(0,E.sumLengths)(l,h=>h.oldLength),u=(0,E.lengthAdd)(c,o);r(c,u,s.newLength),c=u}else for(const o of l){const u=c;c=(0,E.lengthAdd)(c,o.oldLength),o.newLength!==void 0&&r(u,c,o.newLength)}}const d=n(void 0);for(const s of d){const l=c;c=(0,E.lengthAdd)(c,s.oldLength),s.newLength!==void 0&&r(l,c,s.newLength)}return a}e.combineTextEditInfos=I;function L(S){const v=[];let f=E.lengthZero;for(const g of S){const i=(0,E.lengthDiffNonNegative)(f,g.startOffset);(0,E.lengthIsZero)(i)||v.push({oldLength:i});const t=(0,E.lengthDiffNonNegative)(g.startOffset,g.endOffset);v.push({oldLength:t,newLength:g.newLength}),f=g.endOffset}return v}}),define(_[460],ee([1,0,86]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NodeReader=void 0;class N{constructor(S){this.d=C.lengthZero,this.a=[S],this.b=[C.lengthZero],this.c=[]}readLongestNodeAt(S,v){if((0,C.lengthLessThan)(S,this.d))throw new Error("Invalid offset");for(this.d=S;;){const f=I(this.a);if(!f)return;const g=I(this.b);if((0,C.lengthLessThan)(S,g))return;if((0,C.lengthLessThan)(g,S))if((0,C.lengthAdd)(g,f.length)<=S)this.e();else{const i=E(f);i!==-1?(this.a.push(f.getChild(i)),this.b.push(g),this.c.push(i)):this.e()}else{if(v(f))return this.e(),f;{const i=E(f);if(i===-1){this.e();return}else this.a.push(f.getChild(i)),this.b.push(g),this.c.push(i)}}}}e(){for(;;){const S=I(this.b),v=I(this.a);if(this.a.pop(),this.b.pop(),this.c.length===0)break;const f=I(this.a),g=E(f,this.c[this.c.length-1]);if(g!==-1){this.a.push(f.getChild(g)),this.b.push((0,C.lengthAdd)(S,v.length)),this.c[this.c.length-1]=g;break}else this.c.pop()}}}e.NodeReader=N;function E(L,S=-1){for(;;){if(S++,S>=L.childrenLength)return-1;if(L.getChild(S))return S}}function I(L){return L.length>0?L[L.length-1]:void 0}}),define(_[117],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DenseKeyProvider=e.identityKeyProvider=e.SmallImmutableSet=void 0;const C=[];class N{static b(L,S){if(L<=128&&S.length===0){let v=N.a[L];return v||(v=new N(L,S),N.a[L]=v),v}return new N(L,S)}static getEmpty(){return this.c}constructor(L,S){this.d=L,this.e=S}add(L,S){const v=S.getKey(L);let f=v>>5;if(f===0){const i=1<<v|this.d;return i===this.d?this:N.b(i,this.e)}f--;const g=this.e.slice(0);for(;g.length<f;)g.push(0);return g[f]|=1<<(v&31),N.b(this.d,g)}merge(L){const S=this.d|L.d;if(this.e===C&&L.e===C)return S===this.d?this:S===L.d?L:N.b(S,C);const v=[];for(let f=0;f<Math.max(this.e.length,L.e.length);f++){const g=this.e[f]||0,i=L.e[f]||0;v.push(g|i)}return N.b(S,v)}intersects(L){if((this.d&L.d)!==0)return!0;for(let S=0;S<Math.min(this.e.length,L.e.length);S++)if((this.e[S]&L.e[S])!==0)return!0;return!1}}N.a=new Array(129),N.c=N.b(0,C),e.SmallImmutableSet=N,e.identityKeyProvider={getKey(I){return I}};class E{constructor(){this.a=new Map}getKey(L){let S=this.a.get(L);return S===void 0&&(S=this.a.size,this.a.set(L,S)),S}}e.DenseKeyProvider=E}),define(_[163],ee([1,0,13,74,86,117]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InvalidBracketAstNode=e.BracketAstNode=e.TextAstNode=e.ListAstNode=e.PairAstNode=void 0;class L{get length(){return this.a}constructor(l){this.a=l}}class S extends L{static create(l,o,u){let h=l.length;return o&&(h=(0,E.lengthAdd)(h,o.length)),u&&(h=(0,E.lengthAdd)(h,u.length)),new S(h,l,o,u,o?o.missingOpeningBracketIds:I.SmallImmutableSet.getEmpty())}get kind(){return 2}get listHeight(){return 0}get childrenLength(){return 3}getChild(l){switch(l){case 0:return this.openingBracket;case 1:return this.child;case 2:return this.closingBracket}throw new Error("Invalid child index")}get children(){const l=[];return l.push(this.openingBracket),this.child&&l.push(this.child),this.closingBracket&&l.push(this.closingBracket),l}constructor(l,o,u,h,w){super(l),this.openingBracket=o,this.child=u,this.closingBracket=h,this.missingOpeningBracketIds=w}canBeReused(l){return!(this.closingBracket===null||l.intersects(this.missingOpeningBracketIds))}deepClone(){return new S(this.length,this.openingBracket.deepClone(),this.child&&this.child.deepClone(),this.closingBracket&&this.closingBracket.deepClone(),this.missingOpeningBracketIds)}computeMinIndentation(l,o){return this.child?this.child.computeMinIndentation((0,E.lengthAdd)(l,this.openingBracket.length),o):Number.MAX_SAFE_INTEGER}}e.PairAstNode=S;class v extends L{static create23(l,o,u,h=!1){let w=l.length,m=l.missingOpeningBracketIds;if(l.listHeight!==o.listHeight)throw new Error("Invalid list heights");if(w=(0,E.lengthAdd)(w,o.length),m=m.merge(o.missingOpeningBracketIds),u){if(l.listHeight!==u.listHeight)throw new Error("Invalid list heights");w=(0,E.lengthAdd)(w,u.length),m=m.merge(u.missingOpeningBracketIds)}return h?new g(w,l.listHeight+1,l,o,u,m):new f(w,l.listHeight+1,l,o,u,m)}static getEmpty(){return new t(E.lengthZero,0,[],I.SmallImmutableSet.getEmpty())}get kind(){return 4}get missingOpeningBracketIds(){return this.c}constructor(l,o,u){super(l),this.listHeight=o,this.c=u,this.b=-1}d(){}makeLastElementMutable(){this.d();const l=this.childrenLength;if(l===0)return;const o=this.getChild(l-1),u=o.kind===4?o.toMutable():o;return o!==u&&this.setChild(l-1,u),u}makeFirstElementMutable(){if(this.d(),this.childrenLength===0)return;const o=this.getChild(0),u=o.kind===4?o.toMutable():o;return o!==u&&this.setChild(0,u),u}canBeReused(l){if(l.intersects(this.missingOpeningBracketIds)||this.childrenLength===0)return!1;let o=this;for(;o.kind===4;){const u=o.childrenLength;if(u===0)throw new C.BugIndicatingError;o=o.getChild(u-1)}return o.canBeReused(l)}handleChildrenChanged(){this.d();const l=this.childrenLength;let o=this.getChild(0).length,u=this.getChild(0).missingOpeningBracketIds;for(let h=1;h<l;h++){const w=this.getChild(h);o=(0,E.lengthAdd)(o,w.length),u=u.merge(w.missingOpeningBracketIds)}this.a=o,this.c=u,this.b=-1}computeMinIndentation(l,o){if(this.b!==-1)return this.b;let u=Number.MAX_SAFE_INTEGER,h=l;for(let w=0;w<this.childrenLength;w++){const m=this.getChild(w);m&&(u=Math.min(u,m.computeMinIndentation(h,o)),h=(0,E.lengthAdd)(h,m.length))}return this.b=u,u}}e.ListAstNode=v;class f extends v{get childrenLength(){return this.g!==null?3:2}getChild(l){switch(l){case 0:return this.e;case 1:return this.f;case 2:return this.g}throw new Error("Invalid child index")}setChild(l,o){switch(l){case 0:this.e=o;return;case 1:this.f=o;return;case 2:this.g=o;return}throw new Error("Invalid child index")}get children(){return this.g?[this.e,this.f,this.g]:[this.e,this.f]}get item1(){return this.e}get item2(){return this.f}get item3(){return this.g}constructor(l,o,u,h,w,m){super(l,o,m),this.e=u,this.f=h,this.g=w}deepClone(){return new f(this.length,this.listHeight,this.e.deepClone(),this.f.deepClone(),this.g?this.g.deepClone():null,this.missingOpeningBracketIds)}appendChildOfSameHeight(l){if(this.g)throw new Error("Cannot append to a full (2,3) tree node");this.d(),this.g=l,this.handleChildrenChanged()}unappendChild(){if(!this.g)throw new Error("Cannot remove from a non-full (2,3) tree node");this.d();const l=this.g;return this.g=null,this.handleChildrenChanged(),l}prependChildOfSameHeight(l){if(this.g)throw new Error("Cannot prepend to a full (2,3) tree node");this.d(),this.g=this.f,this.f=this.e,this.e=l,this.handleChildrenChanged()}unprependChild(){if(!this.g)throw new Error("Cannot remove from a non-full (2,3) tree node");this.d();const l=this.e;return this.e=this.f,this.f=this.g,this.g=null,this.handleChildrenChanged(),l}toMutable(){return this}}class g extends f{toMutable(){return new f(this.length,this.listHeight,this.item1,this.item2,this.item3,this.missingOpeningBracketIds)}d(){throw new Error("this instance is immutable")}}class i extends v{get childrenLength(){return this.e.length}getChild(l){return this.e[l]}setChild(l,o){this.e[l]=o}get children(){return this.e}constructor(l,o,u,h){super(l,o,h),this.e=u}deepClone(){const l=new Array(this.e.length);for(let o=0;o<this.e.length;o++)l[o]=this.e[o].deepClone();return new i(this.length,this.listHeight,l,this.missingOpeningBracketIds)}appendChildOfSameHeight(l){this.d(),this.e.push(l),this.handleChildrenChanged()}unappendChild(){this.d();const l=this.e.pop();return this.handleChildrenChanged(),l}prependChildOfSameHeight(l){this.d(),this.e.unshift(l),this.handleChildrenChanged()}unprependChild(){this.d();const l=this.e.shift();return this.handleChildrenChanged(),l}toMutable(){return this}}class t extends i{toMutable(){return new i(this.length,this.listHeight,[...this.children],this.missingOpeningBracketIds)}d(){throw new Error("this instance is immutable")}}const n=[];class a extends L{get listHeight(){return 0}get childrenLength(){return 0}getChild(l){return null}get children(){return n}deepClone(){return this}}class r extends a{get kind(){return 0}get missingOpeningBracketIds(){return I.SmallImmutableSet.getEmpty()}canBeReused(l){return!0}computeMinIndentation(l,o){const u=(0,E.lengthToObj)(l),h=(u.columnCount===0?u.lineCount:u.lineCount+1)+1,w=(0,E.lengthGetLineCount)((0,E.lengthAdd)(l,this.length))+1;let m=Number.MAX_SAFE_INTEGER;for(let p=h;p<=w;p++){const b=o.getLineFirstNonWhitespaceColumn(p),y=o.getLineContent(p);if(b===0)continue;const k=N.CursorColumns.visibleColumnFromColumn(y,b,o.getOptions().tabSize);m=Math.min(m,k)}return m}}e.TextAstNode=r;class c extends a{static create(l,o,u){return new c(l,o,u)}get kind(){return 1}get missingOpeningBracketIds(){return I.SmallImmutableSet.getEmpty()}constructor(l,o,u){super(l),this.bracketInfo=o,this.bracketIds=u}get text(){return this.bracketInfo.bracketText}get languageId(){return this.bracketInfo.languageId}canBeReused(l){return!1}computeMinIndentation(l,o){return Number.MAX_SAFE_INTEGER}}e.BracketAstNode=c;class d extends a{get kind(){return 3}constructor(l,o){super(o),this.missingOpeningBracketIds=l}canBeReused(l){return!l.intersects(this.missingOpeningBracketIds)}computeMinIndentation(l,o){return Number.MAX_SAFE_INTEGER}}e.InvalidBracketAstNode=d}),define(_[461],ee([1,0,163]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.concat23TreesOfSameHeight=e.concat23Trees=void 0;function N(f){if(f.length===0)return null;if(f.length===1)return f[0];let g=0;function i(){if(g>=f.length)return null;const r=g,c=f[r].listHeight;for(g++;g<f.length&&f[g].listHeight===c;)g++;return g-r>=2?E(r===0&&g===f.length?f:f.slice(r,g),!1):f[r]}let t=i(),n=i();if(!n)return t;for(let r=i();r;r=i())I(t,n)<=I(n,r)?(t=L(t,n),n=r):n=L(n,r);return L(t,n)}e.concat23Trees=N;function E(f,g=!1){if(f.length===0)return null;if(f.length===1)return f[0];let i=f.length;for(;i>3;){const t=i>>1;for(let n=0;n<t;n++){const a=n<<1;f[n]=C.ListAstNode.create23(f[a],f[a+1],a+3===i?f[a+2]:null,g)}i=t}return C.ListAstNode.create23(f[0],f[1],i>=3?f[2]:null,g)}e.concat23TreesOfSameHeight=E;function I(f,g){return Math.abs(f.listHeight-g.listHeight)}function L(f,g){return f.listHeight===g.listHeight?C.ListAstNode.create23(f,g,null,!1):f.listHeight>g.listHeight?S(f,g):v(g,f)}function S(f,g){f=f.toMutable();let i=f;const t=[];let n;for(;;){if(g.listHeight===i.listHeight){n=g;break}if(i.kind!==4)throw new Error("unexpected");t.push(i),i=i.makeLastElementMutable()}for(let a=t.length-1;a>=0;a--){const r=t[a];n?r.childrenLength>=3?n=C.ListAstNode.create23(r.unappendChild(),n,null,!1):(r.appendChildOfSameHeight(n),n=void 0):r.handleChildrenChanged()}return n?C.ListAstNode.create23(f,n,null,!1):f}function v(f,g){f=f.toMutable();let i=f;const t=[];for(;g.listHeight!==i.listHeight;){if(i.kind!==4)throw new Error("unexpected");t.push(i),i=i.makeFirstElementMutable()}let n=g;for(let a=t.length-1;a>=0;a--){const r=t[a];n?r.childrenLength>=3?n=C.ListAstNode.create23(n,r.unprependChild(),null,!1):(r.prependChildOfSameHeight(n),n=void 0):r.handleChildrenChanged()}return n?C.ListAstNode.create23(n,f,null,!1):f}}),define(_[253],ee([1,0,163,189,117,86,461,460]),function(q,e,C,N,E,I,L,S){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseDocument=void 0;function v(g,i,t,n){return new f(g,i,t,n).parseDocument()}e.parseDocument=v;class f{constructor(i,t,n,a){if(this.e=i,this.f=a,this.c=0,this.d=0,n&&a)throw new Error("Not supported");this.a=n?new S.NodeReader(n):void 0,this.b=new N.BeforeEditPositionMapper(t)}parseDocument(){this.c=0,this.d=0;let i=this.g(E.SmallImmutableSet.getEmpty());return i||(i=C.ListAstNode.getEmpty()),i}g(i){const t=[];for(;;){let a=this.h(i);if(!a){const r=this.e.peek();if(!r||r.kind===2&&r.bracketIds.intersects(i))break;a=this.i(i)}a.kind===4&&a.childrenLength===0||t.push(a)}return this.a?(0,L.concat23Trees)(t):(0,L.concat23TreesOfSameHeight)(t,this.f)}h(i){if(this.a){const t=this.b.getDistanceToNextChange(this.e.offset);if(t===null||!(0,I.lengthIsZero)(t)){const n=this.a.readLongestNodeAt(this.b.getOffsetBeforeChange(this.e.offset),a=>t!==null&&!(0,I.lengthLessThan)(a.length,t)?!1:a.canBeReused(i));if(n)return this.d++,this.e.skip(n.length),n}}}i(i){this.c++;const t=this.e.read();switch(t.kind){case 2:return new C.InvalidBracketAstNode(t.bracketIds,t.length);case 0:return t.astNode;case 1:{const n=i.merge(t.bracketIds),a=this.g(n),r=this.e.peek();return r&&r.kind===2&&(r.bracketId===t.bracketId||r.bracketIds.intersects(t.bracketIds))?(this.e.read(),C.PairAstNode.create(t.astNode,a,r.astNode)):C.PairAstNode.create(t.astNode,a,null)}default:throw new Error("unexpected")}}}}),define(_[190],ee([1,0,13,115,163,86,117]),function(q,e,C,N,E,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FastTokenizer=e.TextBufferTokenizer=e.Token=void 0;class S{constructor(t,n,a,r,c){this.length=t,this.kind=n,this.bracketId=a,this.bracketIds=r,this.astNode=c}}e.Token=S;class v{constructor(t,n){this.d=t,this.e=n,this.c=new f(this.d,this.e),this.f=I.lengthZero,this.g=!1,this.h=null,this.a=t.getLineCount(),this.b=t.getLineLength(this.a)}get offset(){return this.f}get length(){return(0,I.toLength)(this.a-1,this.b)}skip(t){this.g=!1,this.f=(0,I.lengthAdd)(this.f,t);const n=(0,I.lengthToObj)(this.f);this.c.setPosition(n.lineCount,n.columnCount)}read(){let t;return this.h?(this.g=!1,t=this.h):t=this.c.read(),t&&(this.f=(0,I.lengthAdd)(this.f,t.length)),t}peek(){return this.g||(this.h=this.c.read(),this.g=!0),this.h}}e.TextBufferTokenizer=v;class f{constructor(t,n){this.c=t,this.d=n,this.e=0,this.f=null,this.g=0,this.h=null,this.j=0,this.k=null,this.a=t.getLineCount(),this.b=t.getLineLength(this.a)}setPosition(t,n){t===this.e?(this.g=n,this.f!==null&&(this.j=this.g===0?0:this.h.findTokenIndexAtOffset(this.g))):(this.e=t,this.g=n,this.f=null),this.k=null}read(){if(this.k){const c=this.k;return this.k=null,this.g+=(0,I.lengthGetColumnCountIfZeroLineCount)(c.length),c}if(this.e>this.a-1||this.e===this.a-1&&this.g>=this.b)return null;this.f===null&&(this.h=this.c.tokenization.getLineTokens(this.e+1),this.f=this.h.getLineContent(),this.j=this.g===0?0:this.h.findTokenIndexAtOffset(this.g));const t=this.e,n=this.g;let a=0;for(;;){const c=this.h,d=c.getCount();let s=null;if(this.j<d){const l=c.getMetadata(this.j);for(;this.j+1<d&&l===c.getMetadata(this.j+1);)this.j++;const o=N.TokenMetadata.getTokenType(l)===0,u=N.TokenMetadata.containsBalancedBrackets(l),h=c.getEndOffset(this.j);if(u&&o&&this.g<h){const w=c.getLanguageId(this.j),m=this.f.substring(this.g,h),p=this.d.getSingleLanguageBracketTokens(w),b=p.regExpGlobal;if(b){b.lastIndex=0;const y=b.exec(m);y&&(s=p.getToken(y[0]),s&&(this.g+=y.index))}}if(a+=h-this.g,s)if(t!==this.e||n!==this.g){this.k=s;break}else return this.g+=(0,I.lengthGetColumnCountIfZeroLineCount)(s.length),s;else this.j++,this.g=h}else if(this.e===this.a-1||(this.e++,this.h=this.c.tokenization.getLineTokens(this.e+1),this.j=0,this.f=this.h.getLineContent(),this.g=0,a+=33,a>1e3))break;if(a>1500)break}const r=(0,I.lengthDiff)(t,n,this.e,this.g);return new S(r,0,-1,L.SmallImmutableSet.getEmpty(),new E.TextAstNode(r))}}class g{constructor(t,n){this.d=t,this.a=I.lengthZero,this.c=0;const a=n.getRegExpStr(),r=a?new RegExp(a+`|
|
||
`,"gi"):null,c=[];let d,s=0,l=0,o=0,u=0;const h=[];for(let p=0;p<60;p++)h.push(new S((0,I.toLength)(0,p),0,-1,L.SmallImmutableSet.getEmpty(),new E.TextAstNode((0,I.toLength)(0,p))));const w=[];for(let p=0;p<60;p++)w.push(new S((0,I.toLength)(1,p),0,-1,L.SmallImmutableSet.getEmpty(),new E.TextAstNode((0,I.toLength)(1,p))));if(r)for(r.lastIndex=0;(d=r.exec(t))!==null;){const p=d.index,b=d[0];if(b===`
|
||
`)s++,l=p+1;else{if(o!==p){let y;if(u===s){const k=p-o;if(k<h.length)y=h[k];else{const D=(0,I.toLength)(0,k);y=new S(D,0,-1,L.SmallImmutableSet.getEmpty(),new E.TextAstNode(D))}}else{const k=s-u,D=p-l;if(k===1&&D<w.length)y=w[D];else{const M=(0,I.toLength)(k,D);y=new S(M,0,-1,L.SmallImmutableSet.getEmpty(),new E.TextAstNode(M))}}c.push(y)}c.push(n.getToken(b)),o=p+b.length,u=s}}const m=t.length;if(o!==m){const p=u===s?(0,I.toLength)(0,m-o):(0,I.toLength)(s-u,m-l);c.push(new S(p,0,-1,L.SmallImmutableSet.getEmpty(),new E.TextAstNode(p)))}this.length=(0,I.toLength)(s,m-l),this.b=c}get offset(){return this.a}read(){return this.b[this.c++]||null}peek(){return this.b[this.c]||null}skip(t){throw new C.NotSupportedError}}e.FastTokenizer=g}),define(_[254],ee([1,0,9,163,86,117,190]),function(q,e,C,N,E,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LanguageAgnosticBracketTokens=e.BracketTokens=void 0;class S{static createFromLanguage(i,t){function n(r){return t.getKey(`${r.languageId}:::${r.bracketText}`)}const a=new Map;for(const r of i.bracketsNew.openingBrackets){const c=(0,E.toLength)(0,r.bracketText.length),d=n(r),s=I.SmallImmutableSet.getEmpty().add(d,I.identityKeyProvider);a.set(r.bracketText,new L.Token(c,1,d,s,N.BracketAstNode.create(c,r,s)))}for(const r of i.bracketsNew.closingBrackets){const c=(0,E.toLength)(0,r.bracketText.length);let d=I.SmallImmutableSet.getEmpty();const s=r.getOpeningBrackets();for(const l of s)d=d.add(n(l),I.identityKeyProvider);a.set(r.bracketText,new L.Token(c,2,n(s[0]),d,N.BracketAstNode.create(c,r,d)))}return new S(a)}constructor(i){this.c=i,this.a=!1,this.b=null}getRegExpStr(){if(this.isEmpty)return null;{const i=[...this.c.keys()];return i.sort(),i.reverse(),i.map(t=>v(t)).join("|")}}get regExpGlobal(){if(!this.a){const i=this.getRegExpStr();this.b=i?new RegExp(i,"gi"):null,this.a=!0}return this.b}getToken(i){return this.c.get(i.toLowerCase())}findClosingTokenText(i){for(const[t,n]of this.c)if(n.kind===2&&n.bracketIds.intersects(i))return t}get isEmpty(){return this.c.size===0}}e.BracketTokens=S;function v(g){let i=(0,C.escapeRegExpCharacters)(g);return/^[\w ]+/.test(g)&&(i=`\\b${i}`),/[\w ]+$/.test(g)&&(i=`${i}\\b`),i}class f{constructor(i,t){this.b=i,this.c=t,this.a=new Map}didLanguageChange(i){return this.a.has(i)}getSingleLanguageBracketTokens(i){let t=this.a.get(i);return t||(t=S.createFromLanguage(this.c(i),this.b),this.a.set(i,t)),t}}e.LanguageAgnosticBracketTokens=f}),define(_[462],ee([1,0,254,86,253,117,190]),function(q,e,C,N,E,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fixBracketsInLine=void 0;function S(f,g){const i=new I.DenseKeyProvider,t=new C.LanguageAgnosticBracketTokens(i,s=>g.getLanguageConfiguration(s)),n=new L.TextBufferTokenizer(new v([f]),t),a=(0,E.parseDocument)(n,[],void 0,!0);let r="";const c=f.getLineContent();function d(s,l){if(s.kind===2)d(s.openingBracket,l),l=(0,N.lengthAdd)(l,s.openingBracket.length),s.child&&(d(s.child,l),l=(0,N.lengthAdd)(l,s.child.length)),s.closingBracket?(d(s.closingBracket,l),l=(0,N.lengthAdd)(l,s.closingBracket.length)):r+=t.getSingleLanguageBracketTokens(s.openingBracket.languageId).findClosingTokenText(s.openingBracket.bracketIds);else if(s.kind!==3){if(s.kind===0||s.kind===1)r+=c.substring((0,N.lengthGetColumnCountIfZeroLineCount)(l),(0,N.lengthGetColumnCountIfZeroLineCount)((0,N.lengthAdd)(l,s.length)));else if(s.kind===4)for(const o of s.children)d(o,l),l=(0,N.lengthAdd)(l,o.length)}}return d(a,N.lengthZero),r}e.fixBracketsInLine=S;class v{constructor(g){this.a=g,this.tokenization={getLineTokens:i=>this.a[i-1]}}getLineCount(){return this.a.length}getLineLength(g){return this.a[g-1].getLineContent().length}}}),define(_[463],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.guessIndentation=void 0;class C{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function N(I,L,S,v,f){f.spacesDiff=0,f.looksLikeAlignment=!1;let g;for(g=0;g<L&&g<v;g++){const d=I.charCodeAt(g),s=S.charCodeAt(g);if(d!==s)break}let i=0,t=0;for(let d=g;d<L;d++)I.charCodeAt(d)===32?i++:t++;let n=0,a=0;for(let d=g;d<v;d++)S.charCodeAt(d)===32?n++:a++;if(i>0&&t>0||n>0&&a>0)return;const r=Math.abs(t-a),c=Math.abs(i-n);if(r===0){f.spacesDiff=c,c>0&&0<=n-1&&n-1<I.length&&n<S.length&&S.charCodeAt(n)!==32&&I.charCodeAt(n-1)===32&&I.charCodeAt(I.length-1)===44&&(f.looksLikeAlignment=!0);return}if(c%r===0){f.spacesDiff=c/r;return}}function E(I,L,S){const v=Math.min(I.getLineCount(),1e4);let f=0,g=0,i="",t=0;const n=[2,4,6,8,3,5,7],a=8,r=[0,0,0,0,0,0,0,0,0],c=new C;for(let l=1;l<=v;l++){const o=I.getLineLength(l),u=I.getLineContent(l),h=o<=65536;let w=!1,m=0,p=0,b=0;for(let k=0,D=o;k<D;k++){const M=h?u.charCodeAt(k):I.getLineCharCode(l,k);if(M===9)b++;else if(M===32)p++;else{w=!0,m=k;break}}if(!w||(b>0?f++:p>1&&g++,N(i,t,u,m,c),c.looksLikeAlignment&&!(S&&L===c.spacesDiff)))continue;const y=c.spacesDiff;y<=a&&r[y]++,i=u,t=m}let d=S;f!==g&&(d=f<g);let s=L;if(d){let l=d?0:.1*v;n.forEach(o=>{const u=r[o];u>l&&(l=u,s=o)}),s===4&&r[4]>0&&r[2]>0&&r[2]>=r[4]/2&&(s=2)}return{insertSpaces:d,tabSize:s}}e.guessIndentation=E}),define(_[464],ee([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 C(A){return(A.metadata&1)>>>0}e.getNodeColor=C;function N(A,T){A.metadata=A.metadata&254|T<<0}function E(A){return(A.metadata&2)>>>1===1}function I(A,T){A.metadata=A.metadata&253|(T?1:0)<<1}function L(A){return(A.metadata&4)>>>2===1}function S(A,T){A.metadata=A.metadata&251|(T?1:0)<<2}function v(A){return(A.metadata&24)>>>3}function f(A,T){A.metadata=A.metadata&231|T<<3}function g(A){return(A.metadata&32)>>>5===1}function i(A,T){A.metadata=A.metadata&223|(T?1:0)<<5}class t{constructor(T,O,B){this.metadata=0,this.parent=this,this.left=this,this.right=this,N(this,1),this.start=O,this.end=B,this.delta=0,this.maxEnd=B,this.id=T,this.ownerId=0,this.options=null,S(this,!1),f(this,1),i(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=O,this.cachedAbsoluteEnd=B,this.range=null,I(this,!1)}reset(T,O,B,W){this.start=O,this.end=B,this.maxEnd=B,this.cachedVersionId=T,this.cachedAbsoluteStart=O,this.cachedAbsoluteEnd=B,this.range=W}setOptions(T){this.options=T;const O=this.options.className;S(this,O==="squiggly-error"||O==="squiggly-warning"||O==="squiggly-info"),f(this,this.options.stickiness),i(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(T,O,B){this.cachedVersionId!==B&&(this.range=null),this.cachedVersionId=B,this.cachedAbsoluteStart=T,this.cachedAbsoluteEnd=O}detach(){this.parent=null,this.left=null,this.right=null}}e.IntervalNode=t,e.SENTINEL=new t(null,0,0),e.SENTINEL.parent=e.SENTINEL,e.SENTINEL.left=e.SENTINEL,e.SENTINEL.right=e.SENTINEL,N(e.SENTINEL,0);class n{constructor(){this.root=e.SENTINEL,this.requestNormalizeDelta=!1}intervalSearch(T,O,B,W,j){return this.root===e.SENTINEL?[]:h(this,T,O,B,W,j)}search(T,O,B){return this.root===e.SENTINEL?[]:u(this,T,O,B)}collectNodesFromOwner(T){return l(this,T)}collectNodesPostOrder(){return o(this)}insert(T){w(this,T),this.a()}delete(T){p(this,T),this.a()}resolveNode(T,O){const B=T;let W=0;for(;T!==this.root;)T===T.parent.right&&(W+=T.parent.delta),T=T.parent;const j=B.start+W,F=B.end+W;B.setCachedOffsets(j,F,O)}acceptReplace(T,O,B,W){const j=d(this,T,T+O);for(let F=0,U=j.length;F<U;F++){const Q=j[F];p(this,Q)}this.a(),s(this,T,T+O,B),this.a();for(let F=0,U=j.length;F<U;F++){const Q=j[F];Q.start=Q.cachedAbsoluteStart,Q.end=Q.cachedAbsoluteEnd,c(Q,T,T+O,B,W),Q.maxEnd=Q.end,w(this,Q)}this.a()}a(){!this.requestNormalizeDelta||(this.requestNormalizeDelta=!1,a(this))}}e.IntervalTree=n;function a(A){let T=A.root,O=0;for(;T!==e.SENTINEL;){if(T.left!==e.SENTINEL&&!E(T.left)){T=T.left;continue}if(T.right!==e.SENTINEL&&!E(T.right)){O+=T.delta,T=T.right;continue}T.start=O+T.start,T.end=O+T.end,T.delta=0,z(T),I(T,!0),I(T.left,!1),I(T.right,!1),T===T.parent.right&&(O-=T.parent.delta),T=T.parent}I(A.root,!1)}function r(A,T,O,B){return A<O?!0:A>O||B===1?!1:B===2?!0:T}function c(A,T,O,B,W){const j=v(A),F=j===0||j===2,U=j===1||j===2,Q=O-T,se=B,he=Math.min(Q,se),ie=A.start;let ue=!1;const J=A.end;let x=!1;T<=ie&&J<=O&&g(A)&&(A.start=T,ue=!0,A.end=T,x=!0);{const te=W?1:Q>0?2:0;!ue&&r(ie,F,T,te)&&(ue=!0),!x&&r(J,U,T,te)&&(x=!0)}if(he>0&&!W){const te=Q>se?2:0;!ue&&r(ie,F,T+he,te)&&(ue=!0),!x&&r(J,U,T+he,te)&&(x=!0)}{const te=W?1:0;!ue&&r(ie,F,O,te)&&(A.start=T+se,ue=!0),!x&&r(J,U,O,te)&&(A.end=T+se,x=!0)}const G=se-Q;ue||(A.start=Math.max(0,ie+G)),x||(A.end=Math.max(0,J+G)),A.start>A.end&&(A.end=A.start)}e.nodeAcceptEdit=c;function d(A,T,O){let B=A.root,W=0,j=0,F=0,U=0;const Q=[];let se=0;for(;B!==e.SENTINEL;){if(E(B)){I(B.left,!1),I(B.right,!1),B===B.parent.right&&(W-=B.parent.delta),B=B.parent;continue}if(!E(B.left)){if(j=W+B.maxEnd,j<T){I(B,!0);continue}if(B.left!==e.SENTINEL){B=B.left;continue}}if(F=W+B.start,F>O){I(B,!0);continue}if(U=W+B.end,U>=T&&(B.setCachedOffsets(F,U,0),Q[se++]=B),I(B,!0),B.right!==e.SENTINEL&&!E(B.right)){W+=B.delta,B=B.right;continue}}return I(A.root,!1),Q}function s(A,T,O,B){let W=A.root,j=0,F=0,U=0;const Q=B-(O-T);for(;W!==e.SENTINEL;){if(E(W)){I(W.left,!1),I(W.right,!1),W===W.parent.right&&(j-=W.parent.delta),z(W),W=W.parent;continue}if(!E(W.left)){if(F=j+W.maxEnd,F<T){I(W,!0);continue}if(W.left!==e.SENTINEL){W=W.left;continue}}if(U=j+W.start,U>O){W.start+=Q,W.end+=Q,W.delta+=Q,(W.delta<-1073741824||W.delta>1073741824)&&(A.requestNormalizeDelta=!0),I(W,!0);continue}if(I(W,!0),W.right!==e.SENTINEL&&!E(W.right)){j+=W.delta,W=W.right;continue}}I(A.root,!1)}function l(A,T){let O=A.root;const B=[];let W=0;for(;O!==e.SENTINEL;){if(E(O)){I(O.left,!1),I(O.right,!1),O=O.parent;continue}if(O.left!==e.SENTINEL&&!E(O.left)){O=O.left;continue}if(O.ownerId===T&&(B[W++]=O),I(O,!0),O.right!==e.SENTINEL&&!E(O.right)){O=O.right;continue}}return I(A.root,!1),B}function o(A){let T=A.root;const O=[];let B=0;for(;T!==e.SENTINEL;){if(E(T)){I(T.left,!1),I(T.right,!1),T=T.parent;continue}if(T.left!==e.SENTINEL&&!E(T.left)){T=T.left;continue}if(T.right!==e.SENTINEL&&!E(T.right)){T=T.right;continue}O[B++]=T,I(T,!0)}return I(A.root,!1),O}function u(A,T,O,B){let W=A.root,j=0,F=0,U=0;const Q=[];let se=0;for(;W!==e.SENTINEL;){if(E(W)){I(W.left,!1),I(W.right,!1),W===W.parent.right&&(j-=W.parent.delta),W=W.parent;continue}if(W.left!==e.SENTINEL&&!E(W.left)){W=W.left;continue}F=j+W.start,U=j+W.end,W.setCachedOffsets(F,U,B);let he=!0;if(T&&W.ownerId&&W.ownerId!==T&&(he=!1),O&&L(W)&&(he=!1),he&&(Q[se++]=W),I(W,!0),W.right!==e.SENTINEL&&!E(W.right)){j+=W.delta,W=W.right;continue}}return I(A.root,!1),Q}function h(A,T,O,B,W,j){let F=A.root,U=0,Q=0,se=0,he=0;const ie=[];let ue=0;for(;F!==e.SENTINEL;){if(E(F)){I(F.left,!1),I(F.right,!1),F===F.parent.right&&(U-=F.parent.delta),F=F.parent;continue}if(!E(F.left)){if(Q=U+F.maxEnd,Q<T){I(F,!0);continue}if(F.left!==e.SENTINEL){F=F.left;continue}}if(se=U+F.start,se>O){I(F,!0);continue}if(he=U+F.end,he>=T){F.setCachedOffsets(se,he,j);let J=!0;B&&F.ownerId&&F.ownerId!==B&&(J=!1),W&&L(F)&&(J=!1),J&&(ie[ue++]=F)}if(I(F,!0),F.right!==e.SENTINEL&&!E(F.right)){U+=F.delta,F=F.right;continue}}return I(A.root,!1),ie}function w(A,T){if(A.root===e.SENTINEL)return T.parent=e.SENTINEL,T.left=e.SENTINEL,T.right=e.SENTINEL,N(T,0),A.root=T,A.root;m(A,T),R(T.parent);let O=T;for(;O!==A.root&&C(O.parent)===1;)if(O.parent===O.parent.parent.left){const B=O.parent.parent.right;C(B)===1?(N(O.parent,0),N(B,0),N(O.parent.parent,1),O=O.parent.parent):(O===O.parent.right&&(O=O.parent,k(A,O)),N(O.parent,0),N(O.parent.parent,1),D(A,O.parent.parent))}else{const B=O.parent.parent.left;C(B)===1?(N(O.parent,0),N(B,0),N(O.parent.parent,1),O=O.parent.parent):(O===O.parent.left&&(O=O.parent,D(A,O)),N(O.parent,0),N(O.parent.parent,1),k(A,O.parent.parent))}return N(A.root,0),T}function m(A,T){let O=0,B=A.root;const W=T.start,j=T.end;for(;;)if(P(W,j,B.start+O,B.end+O)<0)if(B.left===e.SENTINEL){T.start-=O,T.end-=O,T.maxEnd-=O,B.left=T;break}else B=B.left;else if(B.right===e.SENTINEL){T.start-=O+B.delta,T.end-=O+B.delta,T.maxEnd-=O+B.delta,B.right=T;break}else O+=B.delta,B=B.right;T.parent=B,T.left=e.SENTINEL,T.right=e.SENTINEL,N(T,1)}function p(A,T){let O,B;if(T.left===e.SENTINEL?(O=T.right,B=T,O.delta+=T.delta,(O.delta<-1073741824||O.delta>1073741824)&&(A.requestNormalizeDelta=!0),O.start+=T.delta,O.end+=T.delta):T.right===e.SENTINEL?(O=T.left,B=T):(B=b(T.right),O=B.right,O.start+=B.delta,O.end+=B.delta,O.delta+=B.delta,(O.delta<-1073741824||O.delta>1073741824)&&(A.requestNormalizeDelta=!0),B.start+=T.delta,B.end+=T.delta,B.delta=T.delta,(B.delta<-1073741824||B.delta>1073741824)&&(A.requestNormalizeDelta=!0)),B===A.root){A.root=O,N(O,0),T.detach(),y(),z(O),A.root.parent=e.SENTINEL;return}const W=C(B)===1;if(B===B.parent.left?B.parent.left=O:B.parent.right=O,B===T?O.parent=B.parent:(B.parent===T?O.parent=B:O.parent=B.parent,B.left=T.left,B.right=T.right,B.parent=T.parent,N(B,C(T)),T===A.root?A.root=B:T===T.parent.left?T.parent.left=B:T.parent.right=B,B.left!==e.SENTINEL&&(B.left.parent=B),B.right!==e.SENTINEL&&(B.right.parent=B)),T.detach(),W){R(O.parent),B!==T&&(R(B),R(B.parent)),y();return}R(O),R(O.parent),B!==T&&(R(B),R(B.parent));let j;for(;O!==A.root&&C(O)===0;)O===O.parent.left?(j=O.parent.right,C(j)===1&&(N(j,0),N(O.parent,1),k(A,O.parent),j=O.parent.right),C(j.left)===0&&C(j.right)===0?(N(j,1),O=O.parent):(C(j.right)===0&&(N(j.left,0),N(j,1),D(A,j),j=O.parent.right),N(j,C(O.parent)),N(O.parent,0),N(j.right,0),k(A,O.parent),O=A.root)):(j=O.parent.left,C(j)===1&&(N(j,0),N(O.parent,1),D(A,O.parent),j=O.parent.left),C(j.left)===0&&C(j.right)===0?(N(j,1),O=O.parent):(C(j.left)===0&&(N(j.right,0),N(j,1),k(A,j),j=O.parent.left),N(j,C(O.parent)),N(O.parent,0),N(j.left,0),D(A,O.parent),O=A.root));N(O,0),y()}function b(A){for(;A.left!==e.SENTINEL;)A=A.left;return A}function y(){e.SENTINEL.parent=e.SENTINEL,e.SENTINEL.delta=0,e.SENTINEL.start=0,e.SENTINEL.end=0}function k(A,T){const O=T.right;O.delta+=T.delta,(O.delta<-1073741824||O.delta>1073741824)&&(A.requestNormalizeDelta=!0),O.start+=T.delta,O.end+=T.delta,T.right=O.left,O.left!==e.SENTINEL&&(O.left.parent=T),O.parent=T.parent,T.parent===e.SENTINEL?A.root=O:T===T.parent.left?T.parent.left=O:T.parent.right=O,O.left=T,T.parent=O,z(T),z(O)}function D(A,T){const O=T.left;T.delta-=O.delta,(T.delta<-1073741824||T.delta>1073741824)&&(A.requestNormalizeDelta=!0),T.start-=O.delta,T.end-=O.delta,T.left=O.right,O.right!==e.SENTINEL&&(O.right.parent=T),O.parent=T.parent,T.parent===e.SENTINEL?A.root=O:T===T.parent.right?T.parent.right=O:T.parent.left=O,O.right=T,T.parent=O,z(T),z(O)}function M(A){let T=A.end;if(A.left!==e.SENTINEL){const O=A.left.maxEnd;O>T&&(T=O)}if(A.right!==e.SENTINEL){const O=A.right.maxEnd+A.delta;O>T&&(T=O)}return T}function z(A){A.maxEnd=M(A)}e.recomputeMaxEnd=z;function R(A){for(;A!==e.SENTINEL;){const T=M(A);if(A.maxEnd===T)return;A.maxEnd=T,A=A.parent}}function P(A,T,O,B){return A===O?T-B:A-O}e.intervalCompare=P}),define(_[465],ee([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.righttest=e.leftest=e.SENTINEL=e.TreeNode=void 0;class C{constructor(r,c){this.piece=r,this.color=c,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==e.SENTINEL)return N(this.right);let r=this;for(;r.parent!==e.SENTINEL&&r.parent.left!==r;)r=r.parent;return r.parent===e.SENTINEL?e.SENTINEL:r.parent}prev(){if(this.left!==e.SENTINEL)return E(this.left);let r=this;for(;r.parent!==e.SENTINEL&&r.parent.right!==r;)r=r.parent;return r.parent===e.SENTINEL?e.SENTINEL:r.parent}detach(){this.parent=null,this.left=null,this.right=null}}e.TreeNode=C,e.SENTINEL=new C(null,0),e.SENTINEL.parent=e.SENTINEL,e.SENTINEL.left=e.SENTINEL,e.SENTINEL.right=e.SENTINEL,e.SENTINEL.color=0;function N(a){for(;a.left!==e.SENTINEL;)a=a.left;return a}e.leftest=N;function E(a){for(;a.right!==e.SENTINEL;)a=a.right;return a}e.righttest=E;function I(a){return a===e.SENTINEL?0:a.size_left+a.piece.length+I(a.right)}function L(a){return a===e.SENTINEL?0:a.lf_left+a.piece.lineFeedCnt+L(a.right)}function S(){e.SENTINEL.parent=e.SENTINEL}function v(a,r){const c=r.right;c.size_left+=r.size_left+(r.piece?r.piece.length:0),c.lf_left+=r.lf_left+(r.piece?r.piece.lineFeedCnt:0),r.right=c.left,c.left!==e.SENTINEL&&(c.left.parent=r),c.parent=r.parent,r.parent===e.SENTINEL?a.root=c:r.parent.left===r?r.parent.left=c:r.parent.right=c,c.left=r,r.parent=c}e.leftRotate=v;function f(a,r){const c=r.left;r.left=c.right,c.right!==e.SENTINEL&&(c.right.parent=r),c.parent=r.parent,r.size_left-=c.size_left+(c.piece?c.piece.length:0),r.lf_left-=c.lf_left+(c.piece?c.piece.lineFeedCnt:0),r.parent===e.SENTINEL?a.root=c:r===r.parent.right?r.parent.right=c:r.parent.left=c,c.right=r,r.parent=c}e.rightRotate=f;function g(a,r){let c,d;if(r.left===e.SENTINEL?(d=r,c=d.right):r.right===e.SENTINEL?(d=r,c=d.left):(d=N(r.right),c=d.right),d===a.root){a.root=c,c.color=0,r.detach(),S(),a.root.parent=e.SENTINEL;return}const s=d.color===1;if(d===d.parent.left?d.parent.left=c:d.parent.right=c,d===r?(c.parent=d.parent,n(a,c)):(d.parent===r?c.parent=d:c.parent=d.parent,n(a,c),d.left=r.left,d.right=r.right,d.parent=r.parent,d.color=r.color,r===a.root?a.root=d:r===r.parent.left?r.parent.left=d:r.parent.right=d,d.left!==e.SENTINEL&&(d.left.parent=d),d.right!==e.SENTINEL&&(d.right.parent=d),d.size_left=r.size_left,d.lf_left=r.lf_left,n(a,d)),r.detach(),c.parent.left===c){const o=I(c),u=L(c);if(o!==c.parent.size_left||u!==c.parent.lf_left){const h=o-c.parent.size_left,w=u-c.parent.lf_left;c.parent.size_left=o,c.parent.lf_left=u,t(a,c.parent,h,w)}}if(n(a,c.parent),s){S();return}let l;for(;c!==a.root&&c.color===0;)c===c.parent.left?(l=c.parent.right,l.color===1&&(l.color=0,c.parent.color=1,v(a,c.parent),l=c.parent.right),l.left.color===0&&l.right.color===0?(l.color=1,c=c.parent):(l.right.color===0&&(l.left.color=0,l.color=1,f(a,l),l=c.parent.right),l.color=c.parent.color,c.parent.color=0,l.right.color=0,v(a,c.parent),c=a.root)):(l=c.parent.left,l.color===1&&(l.color=0,c.parent.color=1,f(a,c.parent),l=c.parent.left),l.left.color===0&&l.right.color===0?(l.color=1,c=c.parent):(l.left.color===0&&(l.right.color=0,l.color=1,v(a,l),l=c.parent.left),l.color=c.parent.color,c.parent.color=0,l.left.color=0,f(a,c.parent),c=a.root));c.color=0,S()}e.rbDelete=g;function i(a,r){for(n(a,r);r!==a.root&&r.parent.color===1;)if(r.parent===r.parent.parent.left){const c=r.parent.parent.right;c.color===1?(r.parent.color=0,c.color=0,r.parent.parent.color=1,r=r.parent.parent):(r===r.parent.right&&(r=r.parent,v(a,r)),r.parent.color=0,r.parent.parent.color=1,f(a,r.parent.parent))}else{const c=r.parent.parent.left;c.color===1?(r.parent.color=0,c.color=0,r.parent.parent.color=1,r=r.parent.parent):(r===r.parent.left&&(r=r.parent,f(a,r)),r.parent.color=0,r.parent.parent.color=1,v(a,r.parent.parent))}a.root.color=0}e.fixInsert=i;function t(a,r,c,d){for(;r!==a.root&&r!==e.SENTINEL;)r.parent.left===r&&(r.parent.size_left+=c,r.parent.lf_left+=d),r=r.parent}e.updateTreeMetadata=t;function n(a,r){let c=0,d=0;if(r!==a.root){for(;r!==a.root&&r===r.parent.right;)r=r.parent;if(r!==a.root)for(r=r.parent,c=I(r.left)-r.size_left,d=L(r.left)-r.lf_left,r.size_left+=c,r.lf_left+=d;r!==a.root&&(c!==0||d!==0);)r.parent.left===r&&(r.parent.size_left+=c,r.parent.lf_left+=d),r=r.parent}}e.recomputeTreeMetadata=n}),define(_[255],ee([1,0,17,153]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PrefixSumIndexOfResult=e.ConstantTimePrefixSumComputer=e.PrefixSumComputer=void 0;class E{constructor(v){this.a=v,this.b=new Uint32Array(v.length),this.c=new Int32Array(1),this.c[0]=-1}insertValues(v,f){v=(0,N.toUint32)(v);const g=this.a,i=this.b,t=f.length;return t===0?!1:(this.a=new Uint32Array(g.length+t),this.a.set(g.subarray(0,v),0),this.a.set(g.subarray(v),v+t),this.a.set(f,v),v-1<this.c[0]&&(this.c[0]=v-1),this.b=new Uint32Array(this.a.length),this.c[0]>=0&&this.b.set(i.subarray(0,this.c[0]+1)),!0)}setValue(v,f){return v=(0,N.toUint32)(v),f=(0,N.toUint32)(f),this.a[v]===f?!1:(this.a[v]=f,v-1<this.c[0]&&(this.c[0]=v-1),!0)}removeValues(v,f){v=(0,N.toUint32)(v),f=(0,N.toUint32)(f);const g=this.a,i=this.b;if(v>=g.length)return!1;const t=g.length-v;return f>=t&&(f=t),f===0?!1:(this.a=new Uint32Array(g.length-f),this.a.set(g.subarray(0,v),0),this.a.set(g.subarray(v+f),v),this.b=new Uint32Array(this.a.length),v-1<this.c[0]&&(this.c[0]=v-1),this.c[0]>=0&&this.b.set(i.subarray(0,this.c[0]+1)),!0)}getTotalSum(){return this.a.length===0?0:this.d(this.a.length-1)}getPrefixSum(v){return v<0?0:(v=(0,N.toUint32)(v),this.d(v))}d(v){if(v<=this.c[0])return this.b[v];let f=this.c[0]+1;f===0&&(this.b[0]=this.a[0],f++),v>=this.a.length&&(v=this.a.length-1);for(let g=f;g<=v;g++)this.b[g]=this.b[g-1]+this.a[g];return this.c[0]=Math.max(this.c[0],v),this.b[v]}getIndexOf(v){v=Math.floor(v),this.getTotalSum();let f=0,g=this.a.length-1,i=0,t=0,n=0;for(;f<=g;)if(i=f+(g-f)/2|0,t=this.b[i],n=t-this.a[i],v<n)g=i-1;else if(v>=t)f=i+1;else break;return new L(i,v-n)}}e.PrefixSumComputer=E;class I{constructor(v){this.a=v,this.b=!1,this.c=-1,this.d=[],this.e=[]}getTotalSum(){return this.g(),this.e.length}getPrefixSum(v){return this.g(),v===0?0:this.d[v-1]}getIndexOf(v){this.g();const f=this.e[v],g=f>0?this.d[f-1]:0;return new L(f,v-g)}removeValues(v,f){this.a.splice(v,f),this.f(v)}insertValues(v,f){this.a=(0,C.arrayInsert)(this.a,v,f),this.f(v)}f(v){this.b=!1,this.c=Math.min(this.c,v-1)}g(){if(!this.b){for(let v=this.c+1,f=this.a.length;v<f;v++){const g=this.a[v],i=v>0?this.d[v-1]:0;this.d[v]=i+g;for(let t=0;t<g;t++)this.e[i+t]=v}this.d.length=this.a.length,this.e.length=this.d[this.d.length-1],this.b=!0,this.c=this.a.length-1}}setValue(v,f){this.a[v]!==f&&(this.a[v]=f,this.f(v))}}e.ConstantTimePrefixSumComputer=I;class L{constructor(v,f){this.index=v,this.remainder=f,this._prefixSumIndexOfResultBrand=void 0,this.index=v,this.remainder=f}}e.PrefixSumIndexOfResult=L}),define(_[466],ee([1,0,9,12,255]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MirrorTextModel=void 0;class I{constructor(S,v,f,g){this.c=S,this.d=v,this.f=f,this.g=g,this.h=null,this.j=null}dispose(){this.d.length=0}get version(){return this.g}getText(){return this.j===null&&(this.j=this.d.join(this.f)),this.j}onEvents(S){S.eol&&S.eol!==this.f&&(this.f=S.eol,this.h=null);const v=S.changes;for(const f of v)this.n(f.range),this.o(new N.Position(f.range.startLineNumber,f.range.startColumn),f.text);this.g=S.versionId,this.j=null}k(){if(!this.h){const S=this.f.length,v=this.d.length,f=new Uint32Array(v);for(let g=0;g<v;g++)f[g]=this.d[g].length+S;this.h=new E.PrefixSumComputer(f)}}l(S,v){this.d[S]=v,this.h&&this.h.setValue(S,this.d[S].length+this.f.length)}n(S){if(S.startLineNumber===S.endLineNumber){if(S.startColumn===S.endColumn)return;this.l(S.startLineNumber-1,this.d[S.startLineNumber-1].substring(0,S.startColumn-1)+this.d[S.startLineNumber-1].substring(S.endColumn-1));return}this.l(S.startLineNumber-1,this.d[S.startLineNumber-1].substring(0,S.startColumn-1)+this.d[S.endLineNumber-1].substring(S.endColumn-1)),this.d.splice(S.startLineNumber,S.endLineNumber-S.startLineNumber),this.h&&this.h.removeValues(S.startLineNumber,S.endLineNumber-S.startLineNumber)}o(S,v){if(v.length===0)return;const f=(0,C.splitLines)(v);if(f.length===1){this.l(S.lineNumber-1,this.d[S.lineNumber-1].substring(0,S.column-1)+f[0]+this.d[S.lineNumber-1].substring(S.column-1));return}f[f.length-1]+=this.d[S.lineNumber-1].substring(S.column-1),this.l(S.lineNumber-1,this.d[S.lineNumber-1].substring(0,S.column-1)+f[0]);const g=new Uint32Array(f.length-1);for(let i=1;i<f.length;i++)this.d.splice(S.lineNumber+i-1,0,f[i]),g[i-1]=f[i].length+this.f.length;this.h&&this.h.insertValues(S.lineNumber,g)}}e.MirrorTextModel=I}),define(_[256],ee([1,0,2]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextModelPart=void 0;class N extends C.Disposable{constructor(){super(...arguments),this.c=!1}dispose(){super.dispose(),this.c=!0}g(){if(this.c)throw new Error("TextModelPart is disposed!")}}e.TextModelPart=N}),define(_[164],ee([1,0,9,132,12,4,47]),function(q,e,C,N,E,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Searcher=e.isValidMatch=e.TextModelSearch=e.createFindMatch=e.isMultilineRegexSource=e.SearchParams=void 0;const S=999;class v{constructor(s,l,o,u){this.searchString=s,this.isRegex=l,this.matchCase=o,this.wordSeparators=u}parseSearchRequest(){if(this.searchString==="")return null;let s;this.isRegex?s=f(this.searchString):s=this.searchString.indexOf(`
|
||
`)>=0;let l=null;try{l=C.createRegExp(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:s,global:!0,unicode:!0})}catch{return null}if(!l)return null;let o=!this.isRegex&&!s;return o&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(o=this.matchCase),new L.SearchData(l,this.wordSeparators?(0,N.getMapForWordSeparators)(this.wordSeparators):null,o?this.searchString:null)}}e.SearchParams=v;function f(d){if(!d||d.length===0)return!1;for(let s=0,l=d.length;s<l;s++){const o=d.charCodeAt(s);if(o===10)return!0;if(o===92){if(s++,s>=l)break;const u=d.charCodeAt(s);if(u===110||u===114||u===87)return!0}}return!1}e.isMultilineRegexSource=f;function g(d,s,l){if(!l)return new L.FindMatch(d,null);const o=[];for(let u=0,h=s.length;u<h;u++)o[u]=s[u];return new L.FindMatch(d,o)}e.createFindMatch=g;class i{constructor(s){const l=[];let o=0;for(let u=0,h=s.length;u<h;u++)s.charCodeAt(u)===10&&(l[o++]=u);this.a=l}findLineFeedCountBeforeOffset(s){const l=this.a;let o=0,u=l.length-1;if(u===-1||s<=l[0])return 0;for(;o<u;){const h=o+((u-o)/2>>0);l[h]>=s?u=h-1:l[h+1]>=s?(o=h,u=h):o=h+1}return o+1}}class t{static findMatches(s,l,o,u,h){const w=l.parseSearchRequest();return w?w.regex.multiline?this.b(s,o,new c(w.wordSeparators,w.regex),u,h):this.c(s,o,w,u,h):[]}static a(s,l,o,u,h,w){let m,p=0;u?(p=u.findLineFeedCountBeforeOffset(h),m=l+h+p):m=l+h;let b;if(u){const M=u.findLineFeedCountBeforeOffset(h+w.length)-p;b=m+w.length+M}else b=m+w.length;const y=s.getPositionAt(m),k=s.getPositionAt(b);return new I.Range(y.lineNumber,y.column,k.lineNumber,k.column)}static b(s,l,o,u,h){const w=s.getOffsetAt(l.getStartPosition()),m=s.getValueInRange(l,1),p=s.getEOL()===`\r
|
||
`?new i(m):null,b=[];let y=0,k;for(o.reset(0);k=o.next(m);)if(b[y++]=g(this.a(s,w,m,p,k.index,k[0]),k,u),y>=h)return b;return b}static c(s,l,o,u,h){const w=[];let m=0;if(l.startLineNumber===l.endLineNumber){const b=s.getLineContent(l.startLineNumber).substring(l.startColumn-1,l.endColumn-1);return m=this.d(o,b,l.startLineNumber,l.startColumn-1,m,w,u,h),w}const p=s.getLineContent(l.startLineNumber).substring(l.startColumn-1);m=this.d(o,p,l.startLineNumber,l.startColumn-1,m,w,u,h);for(let b=l.startLineNumber+1;b<l.endLineNumber&&m<h;b++)m=this.d(o,s.getLineContent(b),b,0,m,w,u,h);if(m<h){const b=s.getLineContent(l.endLineNumber).substring(0,l.endColumn-1);m=this.d(o,b,l.endLineNumber,0,m,w,u,h)}return w}static d(s,l,o,u,h,w,m,p){const b=s.wordSeparators;if(!m&&s.simpleSearch){const D=s.simpleSearch,M=D.length,z=l.length;let R=-M;for(;(R=l.indexOf(D,R+M))!==-1;)if((!b||r(b,l,z,R,M))&&(w[h++]=new L.FindMatch(new I.Range(o,R+1+u,o,R+1+M+u),null),h>=p))return h;return h}const y=new c(s.wordSeparators,s.regex);let k;y.reset(0);do if(k=y.next(l),k&&(w[h++]=g(new I.Range(o,k.index+1+u,o,k.index+1+k[0].length+u),k,m),h>=p))return h;while(k);return h}static findNextMatch(s,l,o,u){const h=l.parseSearchRequest();if(!h)return null;const w=new c(h.wordSeparators,h.regex);return h.regex.multiline?this.e(s,o,w,u):this.f(s,o,w,u)}static e(s,l,o,u){const h=new E.Position(l.lineNumber,1),w=s.getOffsetAt(h),m=s.getLineCount(),p=s.getValueInRange(new I.Range(h.lineNumber,h.column,m,s.getLineMaxColumn(m)),1),b=s.getEOL()===`\r
|
||
`?new i(p):null;o.reset(l.column-1);const y=o.next(p);return y?g(this.a(s,w,p,b,y.index,y[0]),y,u):l.lineNumber!==1||l.column!==1?this.e(s,new E.Position(1,1),o,u):null}static f(s,l,o,u){const h=s.getLineCount(),w=l.lineNumber,m=s.getLineContent(w),p=this.g(o,m,w,l.column,u);if(p)return p;for(let b=1;b<=h;b++){const y=(w+b-1)%h,k=s.getLineContent(y+1),D=this.g(o,k,y+1,1,u);if(D)return D}return null}static g(s,l,o,u,h){s.reset(u-1);const w=s.next(l);return w?g(new I.Range(o,w.index+1,o,w.index+1+w[0].length),w,h):null}static findPreviousMatch(s,l,o,u){const h=l.parseSearchRequest();if(!h)return null;const w=new c(h.wordSeparators,h.regex);return h.regex.multiline?this.h(s,o,w,u):this.j(s,o,w,u)}static h(s,l,o,u){const h=this.b(s,new I.Range(1,1,l.lineNumber,l.column),o,u,10*S);if(h.length>0)return h[h.length-1];const w=s.getLineCount();return l.lineNumber!==w||l.column!==s.getLineMaxColumn(w)?this.h(s,new E.Position(w,s.getLineMaxColumn(w)),o,u):null}static j(s,l,o,u){const h=s.getLineCount(),w=l.lineNumber,m=s.getLineContent(w).substring(0,l.column-1),p=this.k(o,m,w,u);if(p)return p;for(let b=1;b<=h;b++){const y=(h+w-b-1)%h,k=s.getLineContent(y+1),D=this.k(o,k,y+1,u);if(D)return D}return null}static k(s,l,o,u){let h=null,w;for(s.reset(0);w=s.next(l);)h=g(new I.Range(o,w.index+1,o,w.index+1+w[0].length),w,u);return h}}e.TextModelSearch=t;function n(d,s,l,o,u){if(o===0)return!0;const h=s.charCodeAt(o-1);if(d.get(h)!==0||h===13||h===10)return!0;if(u>0){const w=s.charCodeAt(o);if(d.get(w)!==0)return!0}return!1}function a(d,s,l,o,u){if(o+u===l)return!0;const h=s.charCodeAt(o+u);if(d.get(h)!==0||h===13||h===10)return!0;if(u>0){const w=s.charCodeAt(o+u-1);if(d.get(w)!==0)return!0}return!1}function r(d,s,l,o,u){return n(d,s,l,o,u)&&a(d,s,l,o,u)}e.isValidMatch=r;class c{constructor(s,l){this._wordSeparators=s,this.a=l,this.b=-1,this.c=0}reset(s){this.a.lastIndex=s,this.b=-1,this.c=0}next(s){const l=s.length;let o;do{if(this.b+this.c===l||(o=this.a.exec(s),!o))return null;const u=o.index,h=o[0].length;if(u===this.b&&h===this.c){if(h===0){C.getNextCodePoint(s,l,this.a.lastIndex)>65535?this.a.lastIndex+=2:this.a.lastIndex+=1;continue}return null}if(this.b=u,this.c=h,!this._wordSeparators||r(this._wordSeparators,s,l,u,h))return o}while(o);return null}}e.Searcher=c}),define(_[257],ee([1,0,12,4,47,465,164]),function(q,e,C,N,E,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PieceTreeBase=e.StringBuffer=e.Piece=e.createLineStarts=e.createLineStartsFast=void 0;const S=65535;function v(d){let s;return d[d.length-1]<65536?s=new Uint16Array(d.length):s=new Uint32Array(d.length),s.set(d,0),s}class f{constructor(s,l,o,u,h){this.lineStarts=s,this.cr=l,this.lf=o,this.crlf=u,this.isBasicASCII=h}}function g(d,s=!0){const l=[0];let o=1;for(let u=0,h=d.length;u<h;u++){const w=d.charCodeAt(u);w===13?u+1<h&&d.charCodeAt(u+1)===10?(l[o++]=u+2,u++):l[o++]=u+1:w===10&&(l[o++]=u+1)}return s?v(l):l}e.createLineStartsFast=g;function i(d,s){d.length=0,d[0]=0;let l=1,o=0,u=0,h=0,w=!0;for(let p=0,b=s.length;p<b;p++){const y=s.charCodeAt(p);y===13?p+1<b&&s.charCodeAt(p+1)===10?(h++,d[l++]=p+2,p++):(o++,d[l++]=p+1):y===10?(u++,d[l++]=p+1):w&&y!==9&&(y<32||y>126)&&(w=!1)}const m=new f(v(d),o,u,h,w);return d.length=0,m}e.createLineStarts=i;class t{constructor(s,l,o,u,h){this.bufferIndex=s,this.start=l,this.end=o,this.lineFeedCnt=u,this.length=h}}e.Piece=t;class n{constructor(s,l){this.buffer=s,this.lineStarts=l}}e.StringBuffer=n;class a{constructor(s,l){this.a=[],this.c=s,this.d=l,this.b=0,s.root!==I.SENTINEL&&s.iterate(s.root,o=>(o!==I.SENTINEL&&this.a.push(o.piece),!0))}read(){return this.a.length===0?this.b===0?(this.b++,this.d):null:this.b>this.a.length-1?null:this.b===0?this.d+this.c.getPieceContent(this.a[this.b++]):this.c.getPieceContent(this.a[this.b++])}}class r{constructor(s){this.a=s,this.b=[]}get(s){for(let l=this.b.length-1;l>=0;l--){const o=this.b[l];if(o.nodeStartOffset<=s&&o.nodeStartOffset+o.node.piece.length>=s)return o}return null}get2(s){for(let l=this.b.length-1;l>=0;l--){const o=this.b[l];if(o.nodeStartLineNumber&&o.nodeStartLineNumber<s&&o.nodeStartLineNumber+o.node.piece.lineFeedCnt>=s)return o}return null}set(s){this.b.length>=this.a&&this.b.shift(),this.b.push(s)}validate(s){let l=!1;const o=this.b;for(let u=0;u<o.length;u++){const h=o[u];if(h.node.parent===null||h.nodeStartOffset>=s){o[u]=null,l=!0;continue}}if(l){const u=[];for(const h of o)h!==null&&u.push(h);this.b=u}}}class c{constructor(s,l,o){this.create(s,l,o)}create(s,l,o){this.a=[new n("",[0])],this.g={line:0,column:0},this.root=I.SENTINEL,this.b=1,this.c=0,this.d=l,this.e=l.length,this.f=o;let u=null;for(let h=0,w=s.length;h<w;h++)if(s[h].buffer.length>0){s[h].lineStarts||(s[h].lineStarts=g(s[h].buffer));const m=new t(h+1,{line:0,column:0},{line:s[h].lineStarts.length-1,column:s[h].buffer.length-s[h].lineStarts[s[h].lineStarts.length-1]},s[h].lineStarts.length-1,s[h].buffer.length);this.a.push(s[h]),u=this.S(u,m)}this.h=new r(1),this.j={lineNumber:0,value:""},this.y()}normalizeEOL(s){const l=S,o=l-Math.floor(l/3),u=o*2;let h="",w=0;const m=[];if(this.iterate(this.root,p=>{const b=this.R(p),y=b.length;if(w<=o||w+y<u)return h+=b,w+=y,!0;const k=h.replace(/\r\n|\r|\n/g,s);return m.push(new n(k,g(k))),h=b,w=y,!0}),w>0){const p=h.replace(/\r\n|\r|\n/g,s);m.push(new n(p,g(p)))}this.create(m,s,!0)}getEOL(){return this.d}setEOL(s){this.d=s,this.e=this.d.length,this.normalizeEOL(s)}createSnapshot(s){return new a(this,s)}getOffsetAt(s,l){let o=0,u=this.root;for(;u!==I.SENTINEL;)if(u.left!==I.SENTINEL&&u.lf_left+1>=s)u=u.left;else{if(u.lf_left+u.piece.lineFeedCnt+1>=s)return o+=u.size_left,o+=this.B(u,s-u.lf_left-2)+l-1;s-=u.lf_left+u.piece.lineFeedCnt,o+=u.size_left+u.piece.length,u=u.right}return o}getPositionAt(s){s=Math.floor(s),s=Math.max(0,s);let l=this.root,o=0;const u=s;for(;l!==I.SENTINEL;)if(l.size_left!==0&&l.size_left>=s)l=l.left;else if(l.size_left+l.piece.length>=s){const h=this.A(l,s-l.size_left);if(o+=l.lf_left+h.index,h.index===0){const w=this.getOffsetAt(o+1,1),m=u-w;return new C.Position(o+1,m+1)}return new C.Position(o+1,h.remainder+1)}else if(s-=l.size_left+l.piece.length,o+=l.lf_left+l.piece.lineFeedCnt,l.right===I.SENTINEL){const h=this.getOffsetAt(o+1,1),w=u-s-h;return new C.Position(o+1,w+1)}else l=l.right;return new C.Position(1,1)}getValueInRange(s,l){if(s.startLineNumber===s.endLineNumber&&s.startColumn===s.endColumn)return"";const o=this.H(s.startLineNumber,s.startColumn),u=this.H(s.endLineNumber,s.endColumn),h=this.getValueInRange2(o,u);return l?l!==this.d||!this.f?h.replace(/\r\n|\r|\n/g,l):l===this.getEOL()&&this.f?h:h.replace(/\r\n|\r|\n/g,l):h}getValueInRange2(s,l){if(s.node===l.node){const m=s.node,p=this.a[m.piece.bufferIndex].buffer,b=this.u(m.piece.bufferIndex,m.piece.start);return p.substring(b+s.remainder,b+l.remainder)}let o=s.node;const u=this.a[o.piece.bufferIndex].buffer,h=this.u(o.piece.bufferIndex,o.piece.start);let w=u.substring(h+s.remainder,h+o.piece.length);for(o=o.next();o!==I.SENTINEL;){const m=this.a[o.piece.bufferIndex].buffer,p=this.u(o.piece.bufferIndex,o.piece.start);if(o===l.node){w+=m.substring(p,p+l.remainder);break}else w+=m.substr(p,o.piece.length);o=o.next()}return w}getLinesContent(){const s=[];let l=0,o="",u=!1;return this.iterate(this.root,h=>{if(h===I.SENTINEL)return!0;const w=h.piece;let m=w.length;if(m===0)return!0;const p=this.a[w.bufferIndex].buffer,b=this.a[w.bufferIndex].lineStarts,y=w.start.line,k=w.end.line;let D=b[y]+w.start.column;if(u&&(p.charCodeAt(D)===10&&(D++,m--),s[l++]=o,o="",u=!1,m===0))return!0;if(y===k)return!this.f&&p.charCodeAt(D+m-1)===13?(u=!0,o+=p.substr(D,m-1)):o+=p.substr(D,m),!0;o+=this.f?p.substring(D,Math.max(D,b[y+1]-this.e)):p.substring(D,b[y+1]).replace(/(\r\n|\r|\n)$/,""),s[l++]=o;for(let M=y+1;M<k;M++)o=this.f?p.substring(b[M],b[M+1]-this.e):p.substring(b[M],b[M+1]).replace(/(\r\n|\r|\n)$/,""),s[l++]=o;return!this.f&&p.charCodeAt(b[k]+w.end.column-1)===13?(u=!0,w.end.column===0?l--:o=p.substr(b[k],w.end.column-1)):o=p.substr(b[k],w.end.column),!0}),u&&(s[l++]=o,o=""),s[l++]=o,s}getLength(){return this.c}getLineCount(){return this.b}getLineContent(s){return this.j.lineNumber===s?this.j.value:(this.j.lineNumber=s,s===this.b?this.j.value=this.getLineRawContent(s):this.f?this.j.value=this.getLineRawContent(s,this.e):this.j.value=this.getLineRawContent(s).replace(/(\r\n|\r|\n)$/,""),this.j.value)}l(s){if(s.remainder===s.node.piece.length){const l=s.node.next();if(!l)return 0;const o=this.a[l.piece.bufferIndex],u=this.u(l.piece.bufferIndex,l.piece.start);return o.buffer.charCodeAt(u)}else{const l=this.a[s.node.piece.bufferIndex],u=this.u(s.node.piece.bufferIndex,s.node.piece.start)+s.remainder;return l.buffer.charCodeAt(u)}}getLineCharCode(s,l){const o=this.H(s,l+1);return this.l(o)}getLineLength(s){if(s===this.getLineCount()){const l=this.getOffsetAt(s,1);return this.getLength()-l}return this.getOffsetAt(s+1,1)-this.getOffsetAt(s,1)-this.e}findMatchesInNode(s,l,o,u,h,w,m,p,b,y,k){const D=this.a[s.piece.bufferIndex],M=this.u(s.piece.bufferIndex,s.piece.start),z=this.u(s.piece.bufferIndex,h),R=this.u(s.piece.bufferIndex,w);let P;const A={line:0,column:0};let T,O;l._wordSeparators?(T=D.buffer.substring(z,R),O=B=>B+z,l.reset(0)):(T=D.buffer,O=B=>B,l.reset(z));do if(P=l.next(T),P){if(O(P.index)>=R)return y;this.s(s,O(P.index)-M,A);const B=this.t(s.piece.bufferIndex,h,A),W=A.line===h.line?A.column-h.column+u:A.column+1,j=W+P[0].length;if(k[y++]=(0,L.createFindMatch)(new N.Range(o+B,W,o+B,j),P,p),O(P.index)+P[0].length>=R||y>=b)return y}while(P);return y}findMatchesLineByLine(s,l,o,u){const h=[];let w=0;const m=new L.Searcher(l.wordSeparators,l.regex);let p=this.H(s.startLineNumber,s.startColumn);if(p===null)return[];const b=this.H(s.endLineNumber,s.endColumn);if(b===null)return[];let y=this.s(p.node,p.remainder);const k=this.s(b.node,b.remainder);if(p.node===b.node)return this.findMatchesInNode(p.node,m,s.startLineNumber,s.startColumn,y,k,l,o,u,w,h),h;let D=s.startLineNumber,M=p.node;for(;M!==b.node;){const R=this.t(M.piece.bufferIndex,y,M.piece.end);if(R>=1){const A=this.a[M.piece.bufferIndex].lineStarts,T=this.u(M.piece.bufferIndex,M.piece.start),O=A[y.line+R],B=D===s.startLineNumber?s.startColumn:1;if(w=this.findMatchesInNode(M,m,D,B,y,this.s(M,O-T),l,o,u,w,h),w>=u)return h;D+=R}const P=D===s.startLineNumber?s.startColumn-1:0;if(D===s.endLineNumber){const A=this.getLineContent(D).substring(P,s.endColumn-1);return w=this.n(l,m,A,s.endLineNumber,P,w,h,o,u),h}if(w=this.n(l,m,this.getLineContent(D).substr(P),D,P,w,h,o,u),w>=u)return h;D++,p=this.H(D,1),M=p.node,y=this.s(p.node,p.remainder)}if(D===s.endLineNumber){const R=D===s.startLineNumber?s.startColumn-1:0,P=this.getLineContent(D).substring(R,s.endColumn-1);return w=this.n(l,m,P,s.endLineNumber,R,w,h,o,u),h}const z=D===s.startLineNumber?s.startColumn:1;return w=this.findMatchesInNode(b.node,m,D,z,y,k,l,o,u,w,h),h}n(s,l,o,u,h,w,m,p,b){const y=s.wordSeparators;if(!p&&s.simpleSearch){const D=s.simpleSearch,M=D.length,z=o.length;let R=-M;for(;(R=o.indexOf(D,R+M))!==-1;)if((!y||(0,L.isValidMatch)(y,o,z,R,M))&&(m[w++]=new E.FindMatch(new N.Range(u,R+1+h,u,R+1+M+h),null),w>=b))return w;return w}let k;l.reset(0);do if(k=l.next(o),k&&(m[w++]=(0,L.createFindMatch)(new N.Range(u,k.index+1+h,u,k.index+1+k[0].length+h),k,p),w>=b))return w;while(k);return w}insert(s,l,o=!1){if(this.f=this.f&&o,this.j.lineNumber=0,this.j.value="",this.root!==I.SENTINEL){const{node:u,remainder:h,nodeStartOffset:w}=this.G(s),m=u.piece,p=m.bufferIndex,b=this.s(u,h);if(u.piece.bufferIndex===0&&m.end.line===this.g.line&&m.end.column===this.g.column&&w+m.length===s&&l.length<S){this.F(u,l),this.y();return}if(w===s)this.o(l,u),this.h.validate(s);else if(w+u.piece.length>s){const y=[];let k=new t(m.bufferIndex,b,m.end,this.t(m.bufferIndex,b,m.end),this.u(p,m.end)-this.u(p,b));if(this.K()&&this.M(l)&&this.I(u,h)===10){const R={line:k.start.line+1,column:0};k=new t(k.bufferIndex,R,k.end,this.t(k.bufferIndex,R,k.end),k.length-1),l+=`
|
||
`}if(this.K()&&this.L(l))if(this.I(u,h-1)===13){const R=this.s(u,h-1);this.C(u,R),l="\r"+l,u.piece.length===0&&y.push(u)}else this.C(u,b);else this.C(u,b);const D=this.w(l);k.length>0&&this.S(u,k);let M=u;for(let z=0;z<D.length;z++)M=this.S(M,D[z]);this.v(y)}else this.q(l,u)}else{const u=this.w(l);let h=this.T(null,u[0]);for(let w=1;w<u.length;w++)h=this.S(h,u[w])}this.y()}delete(s,l){if(this.j.lineNumber=0,this.j.value="",l<=0||this.root===I.SENTINEL)return;const o=this.G(s),u=this.G(s+l),h=o.node,w=u.node;if(h===w){const D=this.s(h,o.remainder),M=this.s(h,u.remainder);if(o.nodeStartOffset===s){if(l===h.piece.length){const z=h.next();(0,I.rbDelete)(this,h),this.N(z),this.y();return}this.D(h,M),this.h.validate(s),this.N(h),this.y();return}if(o.nodeStartOffset+h.piece.length===s+l){this.C(h,D),this.O(h),this.y();return}this.E(h,D,M),this.y();return}const m=[],p=this.s(h,o.remainder);this.C(h,p),this.h.validate(s),h.piece.length===0&&m.push(h);const b=this.s(w,u.remainder);this.D(w,b),w.piece.length===0&&m.push(w);const y=h.next();for(let D=y;D!==I.SENTINEL&&D!==w;D=D.next())m.push(D);const k=h.piece.length===0?h.prev():h;this.v(m),this.O(k),this.y()}o(s,l){const o=[];if(this.K()&&this.M(s)&&this.L(l)){const w=l.piece,m={line:w.start.line+1,column:0},p=new t(w.bufferIndex,m,w.end,this.t(w.bufferIndex,m,w.end),w.length-1);l.piece=p,s+=`
|
||
`,(0,I.updateTreeMetadata)(this,l,-1,-1),l.piece.length===0&&o.push(l)}const u=this.w(s);let h=this.T(l,u[u.length-1]);for(let w=u.length-2;w>=0;w--)h=this.T(h,u[w]);this.N(h),this.v(o)}q(s,l){this.Q(s,l)&&(s+=`
|
||
`);const o=this.w(s),u=this.S(l,o[0]);let h=u;for(let w=1;w<o.length;w++)h=this.S(h,o[w]);this.N(u)}s(s,l,o){const u=s.piece,h=s.piece.bufferIndex,w=this.a[h].lineStarts,p=w[u.start.line]+u.start.column+l;let b=u.start.line,y=u.end.line,k=0,D=0,M=0;for(;b<=y&&(k=b+(y-b)/2|0,M=w[k],k!==y);)if(D=w[k+1],p<M)y=k-1;else if(p>=D)b=k+1;else break;return o?(o.line=k,o.column=p-M,null):{line:k,column:p-M}}t(s,l,o){if(o.column===0)return o.line-l.line;const u=this.a[s].lineStarts;if(o.line===u.length-1)return o.line-l.line;const h=u[o.line+1],w=u[o.line]+o.column;if(h>w+1)return o.line-l.line;const m=w-1;return this.a[s].buffer.charCodeAt(m)===13?o.line-l.line+1:o.line-l.line}u(s,l){return this.a[s].lineStarts[l.line]+l.column}v(s){for(let l=0;l<s.length;l++)(0,I.rbDelete)(this,s[l])}w(s){if(s.length>S){const y=[];for(;s.length>S;){const D=s.charCodeAt(S-1);let M;D===13||D>=55296&&D<=56319?(M=s.substring(0,S-1),s=s.substring(S-1)):(M=s.substring(0,S),s=s.substring(S));const z=g(M);y.push(new t(this.a.length,{line:0,column:0},{line:z.length-1,column:M.length-z[z.length-1]},z.length-1,M.length)),this.a.push(new n(M,z))}const k=g(s);return y.push(new t(this.a.length,{line:0,column:0},{line:k.length-1,column:s.length-k[k.length-1]},k.length-1,s.length)),this.a.push(new n(s,k)),y}let l=this.a[0].buffer.length;const o=g(s,!1);let u=this.g;if(this.a[0].lineStarts[this.a[0].lineStarts.length-1]===l&&l!==0&&this.L(s)&&this.M(this.a[0].buffer)){this.g={line:this.g.line,column:this.g.column+1},u=this.g;for(let y=0;y<o.length;y++)o[y]+=l+1;this.a[0].lineStarts=this.a[0].lineStarts.concat(o.slice(1)),this.a[0].buffer+="_"+s,l+=1}else{if(l!==0)for(let y=0;y<o.length;y++)o[y]+=l;this.a[0].lineStarts=this.a[0].lineStarts.concat(o.slice(1)),this.a[0].buffer+=s}const h=this.a[0].buffer.length,w=this.a[0].lineStarts.length-1,m=h-this.a[0].lineStarts[w],p={line:w,column:m},b=new t(0,u,p,this.t(0,u,p),h-l);return this.g=p,[b]}getLineRawContent(s,l=0){let o=this.root,u="";const h=this.h.get2(s);if(h){o=h.node;const w=this.B(o,s-h.nodeStartLineNumber-1),m=this.a[o.piece.bufferIndex].buffer,p=this.u(o.piece.bufferIndex,o.piece.start);if(h.nodeStartLineNumber+o.piece.lineFeedCnt===s)u=m.substring(p+w,p+o.piece.length);else{const b=this.B(o,s-h.nodeStartLineNumber);return m.substring(p+w,p+b-l)}}else{let w=0;const m=s;for(;o!==I.SENTINEL;)if(o.left!==I.SENTINEL&&o.lf_left>=s-1)o=o.left;else if(o.lf_left+o.piece.lineFeedCnt>s-1){const p=this.B(o,s-o.lf_left-2),b=this.B(o,s-o.lf_left-1),y=this.a[o.piece.bufferIndex].buffer,k=this.u(o.piece.bufferIndex,o.piece.start);return w+=o.size_left,this.h.set({node:o,nodeStartOffset:w,nodeStartLineNumber:m-(s-1-o.lf_left)}),y.substring(k+p,k+b-l)}else if(o.lf_left+o.piece.lineFeedCnt===s-1){const p=this.B(o,s-o.lf_left-2),b=this.a[o.piece.bufferIndex].buffer,y=this.u(o.piece.bufferIndex,o.piece.start);u=b.substring(y+p,y+o.piece.length);break}else s-=o.lf_left+o.piece.lineFeedCnt,w+=o.size_left+o.piece.length,o=o.right}for(o=o.next();o!==I.SENTINEL;){const w=this.a[o.piece.bufferIndex].buffer;if(o.piece.lineFeedCnt>0){const m=this.B(o,0),p=this.u(o.piece.bufferIndex,o.piece.start);return u+=w.substring(p,p+m-l),u}else{const m=this.u(o.piece.bufferIndex,o.piece.start);u+=w.substr(m,o.piece.length)}o=o.next()}return u}y(){let s=this.root,l=1,o=0;for(;s!==I.SENTINEL;)l+=s.lf_left+s.piece.lineFeedCnt,o+=s.size_left+s.piece.length,s=s.right;this.b=l,this.c=o,this.h.validate(this.c)}A(s,l){const o=s.piece,u=this.s(s,l),h=u.line-o.start.line;if(this.u(o.bufferIndex,o.end)-this.u(o.bufferIndex,o.start)===l){const w=this.t(s.piece.bufferIndex,o.start,u);if(w!==h)return{index:w,remainder:0}}return{index:h,remainder:u.column}}B(s,l){if(l<0)return 0;const o=s.piece,u=this.a[o.bufferIndex].lineStarts,h=o.start.line+l+1;return h>o.end.line?u[o.end.line]+o.end.column-u[o.start.line]-o.start.column:u[h]-u[o.start.line]-o.start.column}C(s,l){const o=s.piece,u=o.lineFeedCnt,h=this.u(o.bufferIndex,o.end),w=l,m=this.u(o.bufferIndex,w),p=this.t(o.bufferIndex,o.start,w),b=p-u,y=m-h,k=o.length+y;s.piece=new t(o.bufferIndex,o.start,w,p,k),(0,I.updateTreeMetadata)(this,s,y,b)}D(s,l){const o=s.piece,u=o.lineFeedCnt,h=this.u(o.bufferIndex,o.start),w=l,m=this.t(o.bufferIndex,w,o.end),p=this.u(o.bufferIndex,w),b=m-u,y=h-p,k=o.length+y;s.piece=new t(o.bufferIndex,w,o.end,m,k),(0,I.updateTreeMetadata)(this,s,y,b)}E(s,l,o){const u=s.piece,h=u.start,w=u.end,m=u.length,p=u.lineFeedCnt,b=l,y=this.t(u.bufferIndex,u.start,b),k=this.u(u.bufferIndex,l)-this.u(u.bufferIndex,h);s.piece=new t(u.bufferIndex,u.start,b,y,k),(0,I.updateTreeMetadata)(this,s,k-m,y-p);const D=new t(u.bufferIndex,o,w,this.t(u.bufferIndex,o,w),this.u(u.bufferIndex,w)-this.u(u.bufferIndex,o)),M=this.S(s,D);this.N(M)}F(s,l){this.Q(l,s)&&(l+=`
|
||
`);const o=this.K()&&this.L(l)&&this.M(s),u=this.a[0].buffer.length;this.a[0].buffer+=l;const h=g(l,!1);for(let M=0;M<h.length;M++)h[M]+=u;if(o){const M=this.a[0].lineStarts[this.a[0].lineStarts.length-2];this.a[0].lineStarts.pop(),this.g={line:this.g.line-1,column:u-M}}this.a[0].lineStarts=this.a[0].lineStarts.concat(h.slice(1));const w=this.a[0].lineStarts.length-1,m=this.a[0].buffer.length-this.a[0].lineStarts[w],p={line:w,column:m},b=s.piece.length+l.length,y=s.piece.lineFeedCnt,k=this.t(0,s.piece.start,p),D=k-y;s.piece=new t(s.piece.bufferIndex,s.piece.start,p,k,b),this.g=p,(0,I.updateTreeMetadata)(this,s,l.length,D)}G(s){let l=this.root;const o=this.h.get(s);if(o)return{node:o.node,nodeStartOffset:o.nodeStartOffset,remainder:s-o.nodeStartOffset};let u=0;for(;l!==I.SENTINEL;)if(l.size_left>s)l=l.left;else if(l.size_left+l.piece.length>=s){u+=l.size_left;const h={node:l,remainder:s-l.size_left,nodeStartOffset:u};return this.h.set(h),h}else s-=l.size_left+l.piece.length,u+=l.size_left+l.piece.length,l=l.right;return null}H(s,l){let o=this.root,u=0;for(;o!==I.SENTINEL;)if(o.left!==I.SENTINEL&&o.lf_left>=s-1)o=o.left;else if(o.lf_left+o.piece.lineFeedCnt>s-1){const h=this.B(o,s-o.lf_left-2),w=this.B(o,s-o.lf_left-1);return u+=o.size_left,{node:o,remainder:Math.min(h+l-1,w),nodeStartOffset:u}}else if(o.lf_left+o.piece.lineFeedCnt===s-1){const h=this.B(o,s-o.lf_left-2);if(h+l-1<=o.piece.length)return{node:o,remainder:h+l-1,nodeStartOffset:u};l-=o.piece.length-h;break}else s-=o.lf_left+o.piece.lineFeedCnt,u+=o.size_left+o.piece.length,o=o.right;for(o=o.next();o!==I.SENTINEL;){if(o.piece.lineFeedCnt>0){const h=this.B(o,0),w=this.J(o);return{node:o,remainder:Math.min(l-1,h),nodeStartOffset:w}}else if(o.piece.length>=l-1){const h=this.J(o);return{node:o,remainder:l-1,nodeStartOffset:h}}else l-=o.piece.length;o=o.next()}return null}I(s,l){if(s.piece.lineFeedCnt<1)return-1;const o=this.a[s.piece.bufferIndex],u=this.u(s.piece.bufferIndex,s.piece.start)+l;return o.buffer.charCodeAt(u)}J(s){if(!s)return 0;let l=s.size_left;for(;s!==this.root;)s.parent.right===s&&(l+=s.parent.size_left+s.parent.piece.length),s=s.parent;return l}K(){return!(this.f&&this.d===`
|
||
`)}L(s){if(typeof s=="string")return s.charCodeAt(0)===10;if(s===I.SENTINEL||s.piece.lineFeedCnt===0)return!1;const l=s.piece,o=this.a[l.bufferIndex].lineStarts,u=l.start.line,h=o[u]+l.start.column;return u===o.length-1||o[u+1]>h+1?!1:this.a[l.bufferIndex].buffer.charCodeAt(h)===10}M(s){return typeof s=="string"?s.charCodeAt(s.length-1)===13:s===I.SENTINEL||s.piece.lineFeedCnt===0?!1:this.I(s,s.piece.length-1)===13}N(s){if(this.K()&&this.L(s)){const l=s.prev();this.M(l)&&this.P(l,s)}}O(s){if(this.K()&&this.M(s)){const l=s.next();this.L(l)&&this.P(s,l)}}P(s,l){const o=[],u=this.a[s.piece.bufferIndex].lineStarts;let h;s.piece.end.column===0?h={line:s.piece.end.line-1,column:u[s.piece.end.line]-u[s.piece.end.line-1]-1}:h={line:s.piece.end.line,column:s.piece.end.column-1};const w=s.piece.length-1,m=s.piece.lineFeedCnt-1;s.piece=new t(s.piece.bufferIndex,s.piece.start,h,m,w),(0,I.updateTreeMetadata)(this,s,-1,-1),s.piece.length===0&&o.push(s);const p={line:l.piece.start.line+1,column:0},b=l.piece.length-1,y=this.t(l.piece.bufferIndex,p,l.piece.end);l.piece=new t(l.piece.bufferIndex,p,l.piece.end,y,b),(0,I.updateTreeMetadata)(this,l,-1,-1),l.piece.length===0&&o.push(l);const k=this.w(`\r
|
||
`);this.S(s,k[0]);for(let D=0;D<o.length;D++)(0,I.rbDelete)(this,o[D])}Q(s,l){if(this.K()&&this.M(s)){const o=l.next();if(this.L(o)){if(s+=`
|
||
`,o.piece.length===1)(0,I.rbDelete)(this,o);else{const u=o.piece,h={line:u.start.line+1,column:0},w=u.length-1,m=this.t(u.bufferIndex,h,u.end);o.piece=new t(u.bufferIndex,h,u.end,m,w),(0,I.updateTreeMetadata)(this,o,-1,-1)}return!0}}return!1}iterate(s,l){if(s===I.SENTINEL)return l(I.SENTINEL);const o=this.iterate(s.left,l);return o&&l(s)&&this.iterate(s.right,l)}R(s){if(s===I.SENTINEL)return"";const l=this.a[s.piece.bufferIndex],o=s.piece,u=this.u(o.bufferIndex,o.start),h=this.u(o.bufferIndex,o.end);return l.buffer.substring(u,h)}getPieceContent(s){const l=this.a[s.bufferIndex],o=this.u(s.bufferIndex,s.start),u=this.u(s.bufferIndex,s.end);return l.buffer.substring(o,u)}S(s,l){const o=new I.TreeNode(l,1);if(o.left=I.SENTINEL,o.right=I.SENTINEL,o.parent=I.SENTINEL,o.size_left=0,o.lf_left=0,this.root===I.SENTINEL)this.root=o,o.color=0;else if(s.right===I.SENTINEL)s.right=o,o.parent=s;else{const h=(0,I.leftest)(s.right);h.left=o,o.parent=h}return(0,I.fixInsert)(this,o),o}T(s,l){const o=new I.TreeNode(l,1);if(o.left=I.SENTINEL,o.right=I.SENTINEL,o.parent=I.SENTINEL,o.size_left=0,o.lf_left=0,this.root===I.SENTINEL)this.root=o,o.color=0;else if(s.left===I.SENTINEL)s.left=o,o.parent=s;else{const u=(0,I.righttest)(s.left);u.right=o,o.parent=u}return(0,I.fixInsert)(this,o),o}}e.PieceTreeBase=c}),define(_[191],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.computeIndentLevel=void 0;function C(N,E){let I=0,L=0;const S=N.length;for(;L<S;){const v=N.charCodeAt(L);if(v===32)I++;else if(v===9)I=I-I%E+E;else break;L++}return L===S?-1:I}e.computeIndentLevel=C}),define(_[258],ee([1,0,85,12,47]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OutputPosition=e.InjectedText=e.ModelLineProjectionData=void 0;class I{constructor(i,t,n,a,r){this.injectionOffsets=i,this.injectionOptions=t,this.breakOffsets=n,this.breakOffsetsVisibleColumn=a,this.wrappedTextIndentLength=r}getOutputLineCount(){return this.breakOffsets.length}getMinOutputOffset(i){return i>0?this.wrappedTextIndentLength:0}getLineLength(i){const t=i>0?this.breakOffsets[i-1]:0;let a=this.breakOffsets[i]-t;return i>0&&(a+=this.wrappedTextIndentLength),a}getMaxOutputOffset(i){return this.getLineLength(i)}translateToInputOffset(i,t){i>0&&(t=Math.max(0,t-this.wrappedTextIndentLength));let a=i===0?t:this.breakOffsets[i-1]+t;if(this.injectionOffsets!==null)for(let r=0;r<this.injectionOffsets.length&&a>this.injectionOffsets[r];r++)a<this.injectionOffsets[r]+this.injectionOptions[r].content.length?a=this.injectionOffsets[r]:a-=this.injectionOptions[r].content.length;return a}translateToOutputPosition(i,t=2){let n=i;if(this.injectionOffsets!==null)for(let a=0;a<this.injectionOffsets.length&&!(i<this.injectionOffsets[a]||t!==1&&i===this.injectionOffsets[a]);a++)n+=this.injectionOptions[a].content.length;return this.a(n,t)}a(i,t=2){let n=0,a=this.breakOffsets.length-1,r=0,c=0;for(;n<=a;){r=n+(a-n)/2|0;const s=this.breakOffsets[r];if(c=r>0?this.breakOffsets[r-1]:0,t===0)if(i<=c)a=r-1;else if(i>s)n=r+1;else break;else if(i<c)a=r-1;else if(i>=s)n=r+1;else break}let d=i-c;return r>0&&(d+=this.wrappedTextIndentLength),new f(r,d)}normalizeOutputPosition(i,t,n){if(this.injectionOffsets!==null){const a=this.b(i,t),r=this.c(a,n);if(r!==a)return this.a(r,n)}if(n===0){if(i>0&&t===this.getMinOutputOffset(i))return new f(i-1,this.getMaxOutputOffset(i-1))}else if(n===1){const a=this.getOutputLineCount()-1;if(i<a&&t===this.getMaxOutputOffset(i))return new f(i+1,this.getMinOutputOffset(i+1))}return new f(i,t)}b(i,t){return i>0&&(t=Math.max(0,t-this.wrappedTextIndentLength)),(i>0?this.breakOffsets[i-1]:0)+t}c(i,t){const n=this.d(i);if(!n)return i;if(t===2){if(i===n.offsetInInputWithInjections+n.length&&L(this.injectionOptions[n.injectedTextIndex].cursorStops))return n.offsetInInputWithInjections+n.length;{let a=n.offsetInInputWithInjections;if(S(this.injectionOptions[n.injectedTextIndex].cursorStops))return a;let r=n.injectedTextIndex-1;for(;r>=0&&this.injectionOffsets[r]===this.injectionOffsets[n.injectedTextIndex]&&!(L(this.injectionOptions[r].cursorStops)||(a-=this.injectionOptions[r].content.length,S(this.injectionOptions[r].cursorStops)));)r--;return a}}else if(t===1||t===4){let a=n.offsetInInputWithInjections+n.length,r=n.injectedTextIndex;for(;r+1<this.injectionOffsets.length&&this.injectionOffsets[r+1]===this.injectionOffsets[r];)a+=this.injectionOptions[r+1].content.length,r++;return a}else if(t===0||t===3){let a=n.offsetInInputWithInjections,r=n.injectedTextIndex;for(;r-1>=0&&this.injectionOffsets[r-1]===this.injectionOffsets[r];)a-=this.injectionOptions[r-1].content.length,r--;return a}(0,C.assertNever)(t)}getInjectedText(i,t){const n=this.b(i,t),a=this.d(n);return a?{options:this.injectionOptions[a.injectedTextIndex]}:null}d(i){const t=this.injectionOffsets,n=this.injectionOptions;if(t!==null){let a=0;for(let r=0;r<t.length;r++){const c=n[r].content.length,d=t[r]+a,s=t[r]+a+c;if(d>i)break;if(i<=s)return{injectedTextIndex:r,offsetInInputWithInjections:d,length:c};a+=c}}}}e.ModelLineProjectionData=I;function L(g){return g==null?!0:g===E.InjectedTextCursorStops.Right||g===E.InjectedTextCursorStops.Both}function S(g){return g==null?!0:g===E.InjectedTextCursorStops.Left||g===E.InjectedTextCursorStops.Both}class v{constructor(i){this.options=i}}e.InjectedText=v;class f{constructor(i,t){this.outputLineIndex=i,this.outputOffset=t}toString(){return`${this.outputLineIndex}:${this.outputOffset}`}toPosition(i){return new N.Position(i+this.outputLineIndex,this.outputOffset+1)}}e.OutputPosition=f}),define(_[259],ee([1,0,4,164,9,85,133]),function(q,e,C,N,E,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UnicodeTextModelHighlighter=void 0;class S{static computeUnicodeHighlights(t,n,a){const r=a?a.startLineNumber:1,c=a?a.endLineNumber:t.getLineCount(),d=new f(n),s=d.getCandidateCodePoints();let l;s==="allNonBasicAscii"?l=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):l=new RegExp(`${v(Array.from(s))}`,"g");const o=new N.Searcher(null,l),u=[];let h=!1,w,m=0,p=0,b=0;e:for(let y=r,k=c;y<=k;y++){const D=t.getLineContent(y),M=D.length;o.reset(0);do if(w=o.next(D),w){let z=w.index,R=w.index+w[0].length;if(z>0){const O=D.charCodeAt(z-1);E.isHighSurrogate(O)&&z--}if(R+1<M){const O=D.charCodeAt(R-1);E.isHighSurrogate(O)&&R++}const P=D.substring(z,R);let A=(0,L.getWordAtText)(z+1,L.DEFAULT_WORD_REGEXP,D,0);A&&A.endColumn<=z+1&&(A=null);const T=d.shouldHighlightNonBasicASCII(P,A?A.word:null);if(T!==0){T===3?m++:T===2?p++:T===1?b++:(0,I.assertNever)(T);const O=1e3;if(u.length>=O){h=!0;break e}u.push(new C.Range(y,z+1,y,R+1))}}while(w)}return{ranges:u,hasMore:h,ambiguousCharacterCount:m,invisibleCharacterCount:p,nonBasicAsciiCharacterCount:b}}static computeUnicodeHighlightReason(t,n){const a=new f(n);switch(a.shouldHighlightNonBasicASCII(t,null)){case 0:return null;case 2:return{kind:1};case 3:{const c=t.codePointAt(0),d=a.ambiguousCharacters.getPrimaryConfusable(c),s=E.AmbiguousCharacters.getLocales().filter(l=>!E.AmbiguousCharacters.getInstance(new Set([...n.allowedLocales,l])).isAmbiguous(c));return{kind:0,confusableWith:String.fromCodePoint(d),notAmbiguousInLocales:s}}case 1:return{kind:2}}}}e.UnicodeTextModelHighlighter=S;function v(i,t){return`[${E.escapeRegExpCharacters(i.map(a=>String.fromCodePoint(a)).join(""))}]`}class f{constructor(t){this.b=t,this.a=new Set(t.allowedCodePoints),this.ambiguousCharacters=E.AmbiguousCharacters.getInstance(new Set(t.allowedLocales))}getCandidateCodePoints(){if(this.b.nonBasicASCII)return"allNonBasicAscii";const t=new Set;if(this.b.invisibleCharacters)for(const n of E.InvisibleCharacters.codePoints)g(String.fromCodePoint(n))||t.add(n);if(this.b.ambiguousCharacters)for(const n of this.ambiguousCharacters.getConfusableCodePoints())t.add(n);for(const n of this.a)t.delete(n);return t}shouldHighlightNonBasicASCII(t,n){const a=t.codePointAt(0);if(this.a.has(a))return 0;if(this.b.nonBasicASCII)return 1;let r=!1,c=!1;if(n)for(const d of n){const s=d.codePointAt(0),l=E.isBasicASCII(d);r=r||l,!l&&!this.ambiguousCharacters.isAmbiguous(s)&&!E.InvisibleCharacters.isInvisibleCharacter(s)&&(c=!0)}return!r&&c?0:this.b.invisibleCharacters&&!g(t)&&E.InvisibleCharacters.isInvisibleCharacter(a)?2:this.b.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(a)?3:0}}function g(i){return i===" "||i===`
|
||
`||i===" "}}),define(_[165],ee([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 C;(function(F){F[F.Unknown=0]="Unknown",F[F.Disabled=1]="Disabled",F[F.Enabled=2]="Enabled"})(C=e.AccessibilitySupport||(e.AccessibilitySupport={}));var N;(function(F){F[F.Invoke=1]="Invoke",F[F.Auto=2]="Auto"})(N=e.CodeActionTriggerType||(e.CodeActionTriggerType={}));var E;(function(F){F[F.None=0]="None",F[F.KeepWhitespace=1]="KeepWhitespace",F[F.InsertAsSnippet=4]="InsertAsSnippet"})(E=e.CompletionItemInsertTextRule||(e.CompletionItemInsertTextRule={}));var I;(function(F){F[F.Method=0]="Method",F[F.Function=1]="Function",F[F.Constructor=2]="Constructor",F[F.Field=3]="Field",F[F.Variable=4]="Variable",F[F.Class=5]="Class",F[F.Struct=6]="Struct",F[F.Interface=7]="Interface",F[F.Module=8]="Module",F[F.Property=9]="Property",F[F.Event=10]="Event",F[F.Operator=11]="Operator",F[F.Unit=12]="Unit",F[F.Value=13]="Value",F[F.Constant=14]="Constant",F[F.Enum=15]="Enum",F[F.EnumMember=16]="EnumMember",F[F.Keyword=17]="Keyword",F[F.Text=18]="Text",F[F.Color=19]="Color",F[F.File=20]="File",F[F.Reference=21]="Reference",F[F.Customcolor=22]="Customcolor",F[F.Folder=23]="Folder",F[F.TypeParameter=24]="TypeParameter",F[F.User=25]="User",F[F.Issue=26]="Issue",F[F.Snippet=27]="Snippet"})(I=e.CompletionItemKind||(e.CompletionItemKind={}));var L;(function(F){F[F.Deprecated=1]="Deprecated"})(L=e.CompletionItemTag||(e.CompletionItemTag={}));var S;(function(F){F[F.Invoke=0]="Invoke",F[F.TriggerCharacter=1]="TriggerCharacter",F[F.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(S=e.CompletionTriggerKind||(e.CompletionTriggerKind={}));var v;(function(F){F[F.EXACT=0]="EXACT",F[F.ABOVE=1]="ABOVE",F[F.BELOW=2]="BELOW"})(v=e.ContentWidgetPositionPreference||(e.ContentWidgetPositionPreference={}));var f;(function(F){F[F.NotSet=0]="NotSet",F[F.ContentFlush=1]="ContentFlush",F[F.RecoverFromMarkers=2]="RecoverFromMarkers",F[F.Explicit=3]="Explicit",F[F.Paste=4]="Paste",F[F.Undo=5]="Undo",F[F.Redo=6]="Redo"})(f=e.CursorChangeReason||(e.CursorChangeReason={}));var g;(function(F){F[F.LF=1]="LF",F[F.CRLF=2]="CRLF"})(g=e.DefaultEndOfLine||(e.DefaultEndOfLine={}));var i;(function(F){F[F.Text=0]="Text",F[F.Read=1]="Read",F[F.Write=2]="Write"})(i=e.DocumentHighlightKind||(e.DocumentHighlightKind={}));var t;(function(F){F[F.None=0]="None",F[F.Keep=1]="Keep",F[F.Brackets=2]="Brackets",F[F.Advanced=3]="Advanced",F[F.Full=4]="Full"})(t=e.EditorAutoIndentStrategy||(e.EditorAutoIndentStrategy={}));var n;(function(F){F[F.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",F[F.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",F[F.accessibilitySupport=2]="accessibilitySupport",F[F.accessibilityPageSize=3]="accessibilityPageSize",F[F.ariaLabel=4]="ariaLabel",F[F.autoClosingBrackets=5]="autoClosingBrackets",F[F.autoClosingDelete=6]="autoClosingDelete",F[F.autoClosingOvertype=7]="autoClosingOvertype",F[F.autoClosingQuotes=8]="autoClosingQuotes",F[F.autoIndent=9]="autoIndent",F[F.automaticLayout=10]="automaticLayout",F[F.autoSurround=11]="autoSurround",F[F.bracketPairColorization=12]="bracketPairColorization",F[F.guides=13]="guides",F[F.codeLens=14]="codeLens",F[F.codeLensFontFamily=15]="codeLensFontFamily",F[F.codeLensFontSize=16]="codeLensFontSize",F[F.colorDecorators=17]="colorDecorators",F[F.colorDecoratorsLimit=18]="colorDecoratorsLimit",F[F.columnSelection=19]="columnSelection",F[F.comments=20]="comments",F[F.contextmenu=21]="contextmenu",F[F.copyWithSyntaxHighlighting=22]="copyWithSyntaxHighlighting",F[F.cursorBlinking=23]="cursorBlinking",F[F.cursorSmoothCaretAnimation=24]="cursorSmoothCaretAnimation",F[F.cursorStyle=25]="cursorStyle",F[F.cursorSurroundingLines=26]="cursorSurroundingLines",F[F.cursorSurroundingLinesStyle=27]="cursorSurroundingLinesStyle",F[F.cursorWidth=28]="cursorWidth",F[F.disableLayerHinting=29]="disableLayerHinting",F[F.disableMonospaceOptimizations=30]="disableMonospaceOptimizations",F[F.domReadOnly=31]="domReadOnly",F[F.dragAndDrop=32]="dragAndDrop",F[F.dropIntoEditor=33]="dropIntoEditor",F[F.emptySelectionClipboard=34]="emptySelectionClipboard",F[F.experimentalWhitespaceRendering=35]="experimentalWhitespaceRendering",F[F.extraEditorClassName=36]="extraEditorClassName",F[F.fastScrollSensitivity=37]="fastScrollSensitivity",F[F.find=38]="find",F[F.fixedOverflowWidgets=39]="fixedOverflowWidgets",F[F.folding=40]="folding",F[F.foldingStrategy=41]="foldingStrategy",F[F.foldingHighlight=42]="foldingHighlight",F[F.foldingImportsByDefault=43]="foldingImportsByDefault",F[F.foldingMaximumRegions=44]="foldingMaximumRegions",F[F.unfoldOnClickAfterEndOfLine=45]="unfoldOnClickAfterEndOfLine",F[F.fontFamily=46]="fontFamily",F[F.fontInfo=47]="fontInfo",F[F.fontLigatures=48]="fontLigatures",F[F.fontSize=49]="fontSize",F[F.fontWeight=50]="fontWeight",F[F.fontVariations=51]="fontVariations",F[F.formatOnPaste=52]="formatOnPaste",F[F.formatOnType=53]="formatOnType",F[F.glyphMargin=54]="glyphMargin",F[F.gotoLocation=55]="gotoLocation",F[F.hideCursorInOverviewRuler=56]="hideCursorInOverviewRuler",F[F.hover=57]="hover",F[F.inDiffEditor=58]="inDiffEditor",F[F.inlineSuggest=59]="inlineSuggest",F[F.letterSpacing=60]="letterSpacing",F[F.lightbulb=61]="lightbulb",F[F.lineDecorationsWidth=62]="lineDecorationsWidth",F[F.lineHeight=63]="lineHeight",F[F.lineNumbers=64]="lineNumbers",F[F.lineNumbersMinChars=65]="lineNumbersMinChars",F[F.linkedEditing=66]="linkedEditing",F[F.links=67]="links",F[F.matchBrackets=68]="matchBrackets",F[F.minimap=69]="minimap",F[F.mouseStyle=70]="mouseStyle",F[F.mouseWheelScrollSensitivity=71]="mouseWheelScrollSensitivity",F[F.mouseWheelZoom=72]="mouseWheelZoom",F[F.multiCursorMergeOverlapping=73]="multiCursorMergeOverlapping",F[F.multiCursorModifier=74]="multiCursorModifier",F[F.multiCursorPaste=75]="multiCursorPaste",F[F.multiCursorLimit=76]="multiCursorLimit",F[F.occurrencesHighlight=77]="occurrencesHighlight",F[F.overviewRulerBorder=78]="overviewRulerBorder",F[F.overviewRulerLanes=79]="overviewRulerLanes",F[F.padding=80]="padding",F[F.parameterHints=81]="parameterHints",F[F.peekWidgetDefaultFocus=82]="peekWidgetDefaultFocus",F[F.definitionLinkOpensInPeek=83]="definitionLinkOpensInPeek",F[F.quickSuggestions=84]="quickSuggestions",F[F.quickSuggestionsDelay=85]="quickSuggestionsDelay",F[F.readOnly=86]="readOnly",F[F.renameOnType=87]="renameOnType",F[F.renderControlCharacters=88]="renderControlCharacters",F[F.renderFinalNewline=89]="renderFinalNewline",F[F.renderLineHighlight=90]="renderLineHighlight",F[F.renderLineHighlightOnlyWhenFocus=91]="renderLineHighlightOnlyWhenFocus",F[F.renderValidationDecorations=92]="renderValidationDecorations",F[F.renderWhitespace=93]="renderWhitespace",F[F.revealHorizontalRightPadding=94]="revealHorizontalRightPadding",F[F.roundedSelection=95]="roundedSelection",F[F.rulers=96]="rulers",F[F.scrollbar=97]="scrollbar",F[F.scrollBeyondLastColumn=98]="scrollBeyondLastColumn",F[F.scrollBeyondLastLine=99]="scrollBeyondLastLine",F[F.scrollPredominantAxis=100]="scrollPredominantAxis",F[F.selectionClipboard=101]="selectionClipboard",F[F.selectionHighlight=102]="selectionHighlight",F[F.selectOnLineNumbers=103]="selectOnLineNumbers",F[F.showFoldingControls=104]="showFoldingControls",F[F.showUnused=105]="showUnused",F[F.snippetSuggestions=106]="snippetSuggestions",F[F.smartSelect=107]="smartSelect",F[F.smoothScrolling=108]="smoothScrolling",F[F.stickyScroll=109]="stickyScroll",F[F.stickyTabStops=110]="stickyTabStops",F[F.stopRenderingLineAfter=111]="stopRenderingLineAfter",F[F.suggest=112]="suggest",F[F.suggestFontSize=113]="suggestFontSize",F[F.suggestLineHeight=114]="suggestLineHeight",F[F.suggestOnTriggerCharacters=115]="suggestOnTriggerCharacters",F[F.suggestSelection=116]="suggestSelection",F[F.tabCompletion=117]="tabCompletion",F[F.tabIndex=118]="tabIndex",F[F.unicodeHighlighting=119]="unicodeHighlighting",F[F.unusualLineTerminators=120]="unusualLineTerminators",F[F.useShadowDOM=121]="useShadowDOM",F[F.useTabStops=122]="useTabStops",F[F.wordBreak=123]="wordBreak",F[F.wordSeparators=124]="wordSeparators",F[F.wordWrap=125]="wordWrap",F[F.wordWrapBreakAfterCharacters=126]="wordWrapBreakAfterCharacters",F[F.wordWrapBreakBeforeCharacters=127]="wordWrapBreakBeforeCharacters",F[F.wordWrapColumn=128]="wordWrapColumn",F[F.wordWrapOverride1=129]="wordWrapOverride1",F[F.wordWrapOverride2=130]="wordWrapOverride2",F[F.wrappingIndent=131]="wrappingIndent",F[F.wrappingStrategy=132]="wrappingStrategy",F[F.showDeprecated=133]="showDeprecated",F[F.inlayHints=134]="inlayHints",F[F.editorClassName=135]="editorClassName",F[F.pixelRatio=136]="pixelRatio",F[F.tabFocusMode=137]="tabFocusMode",F[F.layoutInfo=138]="layoutInfo",F[F.wrappingInfo=139]="wrappingInfo"})(n=e.EditorOption||(e.EditorOption={}));var a;(function(F){F[F.TextDefined=0]="TextDefined",F[F.LF=1]="LF",F[F.CRLF=2]="CRLF"})(a=e.EndOfLinePreference||(e.EndOfLinePreference={}));var r;(function(F){F[F.LF=0]="LF",F[F.CRLF=1]="CRLF"})(r=e.EndOfLineSequence||(e.EndOfLineSequence={}));var c;(function(F){F[F.None=0]="None",F[F.Indent=1]="Indent",F[F.IndentOutdent=2]="IndentOutdent",F[F.Outdent=3]="Outdent"})(c=e.IndentAction||(e.IndentAction={}));var d;(function(F){F[F.Both=0]="Both",F[F.Right=1]="Right",F[F.Left=2]="Left",F[F.None=3]="None"})(d=e.InjectedTextCursorStops||(e.InjectedTextCursorStops={}));var s;(function(F){F[F.Type=1]="Type",F[F.Parameter=2]="Parameter"})(s=e.InlayHintKind||(e.InlayHintKind={}));var l;(function(F){F[F.Automatic=0]="Automatic",F[F.Explicit=1]="Explicit"})(l=e.InlineCompletionTriggerKind||(e.InlineCompletionTriggerKind={}));var o;(function(F){F[F.DependsOnKbLayout=-1]="DependsOnKbLayout",F[F.Unknown=0]="Unknown",F[F.Backspace=1]="Backspace",F[F.Tab=2]="Tab",F[F.Enter=3]="Enter",F[F.Shift=4]="Shift",F[F.Ctrl=5]="Ctrl",F[F.Alt=6]="Alt",F[F.PauseBreak=7]="PauseBreak",F[F.CapsLock=8]="CapsLock",F[F.Escape=9]="Escape",F[F.Space=10]="Space",F[F.PageUp=11]="PageUp",F[F.PageDown=12]="PageDown",F[F.End=13]="End",F[F.Home=14]="Home",F[F.LeftArrow=15]="LeftArrow",F[F.UpArrow=16]="UpArrow",F[F.RightArrow=17]="RightArrow",F[F.DownArrow=18]="DownArrow",F[F.Insert=19]="Insert",F[F.Delete=20]="Delete",F[F.Digit0=21]="Digit0",F[F.Digit1=22]="Digit1",F[F.Digit2=23]="Digit2",F[F.Digit3=24]="Digit3",F[F.Digit4=25]="Digit4",F[F.Digit5=26]="Digit5",F[F.Digit6=27]="Digit6",F[F.Digit7=28]="Digit7",F[F.Digit8=29]="Digit8",F[F.Digit9=30]="Digit9",F[F.KeyA=31]="KeyA",F[F.KeyB=32]="KeyB",F[F.KeyC=33]="KeyC",F[F.KeyD=34]="KeyD",F[F.KeyE=35]="KeyE",F[F.KeyF=36]="KeyF",F[F.KeyG=37]="KeyG",F[F.KeyH=38]="KeyH",F[F.KeyI=39]="KeyI",F[F.KeyJ=40]="KeyJ",F[F.KeyK=41]="KeyK",F[F.KeyL=42]="KeyL",F[F.KeyM=43]="KeyM",F[F.KeyN=44]="KeyN",F[F.KeyO=45]="KeyO",F[F.KeyP=46]="KeyP",F[F.KeyQ=47]="KeyQ",F[F.KeyR=48]="KeyR",F[F.KeyS=49]="KeyS",F[F.KeyT=50]="KeyT",F[F.KeyU=51]="KeyU",F[F.KeyV=52]="KeyV",F[F.KeyW=53]="KeyW",F[F.KeyX=54]="KeyX",F[F.KeyY=55]="KeyY",F[F.KeyZ=56]="KeyZ",F[F.Meta=57]="Meta",F[F.ContextMenu=58]="ContextMenu",F[F.F1=59]="F1",F[F.F2=60]="F2",F[F.F3=61]="F3",F[F.F4=62]="F4",F[F.F5=63]="F5",F[F.F6=64]="F6",F[F.F7=65]="F7",F[F.F8=66]="F8",F[F.F9=67]="F9",F[F.F10=68]="F10",F[F.F11=69]="F11",F[F.F12=70]="F12",F[F.F13=71]="F13",F[F.F14=72]="F14",F[F.F15=73]="F15",F[F.F16=74]="F16",F[F.F17=75]="F17",F[F.F18=76]="F18",F[F.F19=77]="F19",F[F.NumLock=78]="NumLock",F[F.ScrollLock=79]="ScrollLock",F[F.Semicolon=80]="Semicolon",F[F.Equal=81]="Equal",F[F.Comma=82]="Comma",F[F.Minus=83]="Minus",F[F.Period=84]="Period",F[F.Slash=85]="Slash",F[F.Backquote=86]="Backquote",F[F.BracketLeft=87]="BracketLeft",F[F.Backslash=88]="Backslash",F[F.BracketRight=89]="BracketRight",F[F.Quote=90]="Quote",F[F.OEM_8=91]="OEM_8",F[F.IntlBackslash=92]="IntlBackslash",F[F.Numpad0=93]="Numpad0",F[F.Numpad1=94]="Numpad1",F[F.Numpad2=95]="Numpad2",F[F.Numpad3=96]="Numpad3",F[F.Numpad4=97]="Numpad4",F[F.Numpad5=98]="Numpad5",F[F.Numpad6=99]="Numpad6",F[F.Numpad7=100]="Numpad7",F[F.Numpad8=101]="Numpad8",F[F.Numpad9=102]="Numpad9",F[F.NumpadMultiply=103]="NumpadMultiply",F[F.NumpadAdd=104]="NumpadAdd",F[F.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",F[F.NumpadSubtract=106]="NumpadSubtract",F[F.NumpadDecimal=107]="NumpadDecimal",F[F.NumpadDivide=108]="NumpadDivide",F[F.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",F[F.ABNT_C1=110]="ABNT_C1",F[F.ABNT_C2=111]="ABNT_C2",F[F.AudioVolumeMute=112]="AudioVolumeMute",F[F.AudioVolumeUp=113]="AudioVolumeUp",F[F.AudioVolumeDown=114]="AudioVolumeDown",F[F.BrowserSearch=115]="BrowserSearch",F[F.BrowserHome=116]="BrowserHome",F[F.BrowserBack=117]="BrowserBack",F[F.BrowserForward=118]="BrowserForward",F[F.MediaTrackNext=119]="MediaTrackNext",F[F.MediaTrackPrevious=120]="MediaTrackPrevious",F[F.MediaStop=121]="MediaStop",F[F.MediaPlayPause=122]="MediaPlayPause",F[F.LaunchMediaPlayer=123]="LaunchMediaPlayer",F[F.LaunchMail=124]="LaunchMail",F[F.LaunchApp2=125]="LaunchApp2",F[F.Clear=126]="Clear",F[F.MAX_VALUE=127]="MAX_VALUE"})(o=e.KeyCode||(e.KeyCode={}));var u;(function(F){F[F.Hint=1]="Hint",F[F.Info=2]="Info",F[F.Warning=4]="Warning",F[F.Error=8]="Error"})(u=e.MarkerSeverity||(e.MarkerSeverity={}));var h;(function(F){F[F.Unnecessary=1]="Unnecessary",F[F.Deprecated=2]="Deprecated"})(h=e.MarkerTag||(e.MarkerTag={}));var w;(function(F){F[F.Inline=1]="Inline",F[F.Gutter=2]="Gutter"})(w=e.MinimapPosition||(e.MinimapPosition={}));var m;(function(F){F[F.UNKNOWN=0]="UNKNOWN",F[F.TEXTAREA=1]="TEXTAREA",F[F.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",F[F.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",F[F.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",F[F.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",F[F.CONTENT_TEXT=6]="CONTENT_TEXT",F[F.CONTENT_EMPTY=7]="CONTENT_EMPTY",F[F.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",F[F.CONTENT_WIDGET=9]="CONTENT_WIDGET",F[F.OVERVIEW_RULER=10]="OVERVIEW_RULER",F[F.SCROLLBAR=11]="SCROLLBAR",F[F.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",F[F.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(m=e.MouseTargetType||(e.MouseTargetType={}));var p;(function(F){F[F.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",F[F.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",F[F.TOP_CENTER=2]="TOP_CENTER"})(p=e.OverlayWidgetPositionPreference||(e.OverlayWidgetPositionPreference={}));var b;(function(F){F[F.Left=1]="Left",F[F.Center=2]="Center",F[F.Right=4]="Right",F[F.Full=7]="Full"})(b=e.OverviewRulerLane||(e.OverviewRulerLane={}));var y;(function(F){F[F.Left=0]="Left",F[F.Right=1]="Right",F[F.None=2]="None",F[F.LeftOfInjectedText=3]="LeftOfInjectedText",F[F.RightOfInjectedText=4]="RightOfInjectedText"})(y=e.PositionAffinity||(e.PositionAffinity={}));var k;(function(F){F[F.Off=0]="Off",F[F.On=1]="On",F[F.Relative=2]="Relative",F[F.Interval=3]="Interval",F[F.Custom=4]="Custom"})(k=e.RenderLineNumbersType||(e.RenderLineNumbersType={}));var D;(function(F){F[F.None=0]="None",F[F.Text=1]="Text",F[F.Blocks=2]="Blocks"})(D=e.RenderMinimap||(e.RenderMinimap={}));var M;(function(F){F[F.Smooth=0]="Smooth",F[F.Immediate=1]="Immediate"})(M=e.ScrollType||(e.ScrollType={}));var z;(function(F){F[F.Auto=1]="Auto",F[F.Hidden=2]="Hidden",F[F.Visible=3]="Visible"})(z=e.ScrollbarVisibility||(e.ScrollbarVisibility={}));var R;(function(F){F[F.LTR=0]="LTR",F[F.RTL=1]="RTL"})(R=e.SelectionDirection||(e.SelectionDirection={}));var P;(function(F){F[F.Invoke=1]="Invoke",F[F.TriggerCharacter=2]="TriggerCharacter",F[F.ContentChange=3]="ContentChange"})(P=e.SignatureHelpTriggerKind||(e.SignatureHelpTriggerKind={}));var A;(function(F){F[F.File=0]="File",F[F.Module=1]="Module",F[F.Namespace=2]="Namespace",F[F.Package=3]="Package",F[F.Class=4]="Class",F[F.Method=5]="Method",F[F.Property=6]="Property",F[F.Field=7]="Field",F[F.Constructor=8]="Constructor",F[F.Enum=9]="Enum",F[F.Interface=10]="Interface",F[F.Function=11]="Function",F[F.Variable=12]="Variable",F[F.Constant=13]="Constant",F[F.String=14]="String",F[F.Number=15]="Number",F[F.Boolean=16]="Boolean",F[F.Array=17]="Array",F[F.Object=18]="Object",F[F.Key=19]="Key",F[F.Null=20]="Null",F[F.EnumMember=21]="EnumMember",F[F.Struct=22]="Struct",F[F.Event=23]="Event",F[F.Operator=24]="Operator",F[F.TypeParameter=25]="TypeParameter"})(A=e.SymbolKind||(e.SymbolKind={}));var T;(function(F){F[F.Deprecated=1]="Deprecated"})(T=e.SymbolTag||(e.SymbolTag={}));var O;(function(F){F[F.Hidden=0]="Hidden",F[F.Blink=1]="Blink",F[F.Smooth=2]="Smooth",F[F.Phase=3]="Phase",F[F.Expand=4]="Expand",F[F.Solid=5]="Solid"})(O=e.TextEditorCursorBlinkingStyle||(e.TextEditorCursorBlinkingStyle={}));var B;(function(F){F[F.Line=1]="Line",F[F.Block=2]="Block",F[F.Underline=3]="Underline",F[F.LineThin=4]="LineThin",F[F.BlockOutline=5]="BlockOutline",F[F.UnderlineThin=6]="UnderlineThin"})(B=e.TextEditorCursorStyle||(e.TextEditorCursorStyle={}));var W;(function(F){F[F.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",F[F.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",F[F.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",F[F.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(W=e.TrackedRangeStickiness||(e.TrackedRangeStickiness={}));var j;(function(F){F[F.None=0]="None",F[F.Same=1]="Same",F[F.Indent=2]="Indent",F[F.DeepIndent=3]="DeepIndent"})(j=e.WrappingIndent||(e.WrappingIndent={}))}),define(_[467],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BracketPairWithMinIndentationInfo=e.BracketPairInfo=e.BracketInfo=void 0;class C{constructor(L,S,v,f){this.range=L,this.nestingLevel=S,this.nestingLevelOfEqualBracketType=v,this.isInvalid=f}}e.BracketInfo=C;class N{constructor(L,S,v,f,g,i){this.range=L,this.openingBracketRange=S,this.closingBracketRange=v,this.nestingLevel=f,this.nestingLevelOfEqualBracketType=g,this.a=i}get openingBracketInfo(){return this.a.openingBracket.bracketInfo}}e.BracketPairInfo=N;class E extends N{constructor(L,S,v,f,g,i,t){super(L,S,v,f,g,i),this.minVisibleColumnIndentation=t}}e.BracketPairWithMinIndentationInfo=E}),define(_[104],ee([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 C{constructor(){this.changeType=1}}e.ModelRawFlush=C;class N{static applyInjectedText(t,n){if(!n||n.length===0)return t;let a="",r=0;for(const c of n)a+=t.substring(r,c.column-1),r=c.column-1,a+=c.options.content;return a+=t.substring(r),a}static fromDecorations(t){const n=[];for(const a of t)a.options.before&&a.options.before.content.length>0&&n.push(new N(a.ownerId,a.range.startLineNumber,a.range.startColumn,a.options.before,0)),a.options.after&&a.options.after.content.length>0&&n.push(new N(a.ownerId,a.range.endLineNumber,a.range.endColumn,a.options.after,1));return n.sort((a,r)=>a.lineNumber===r.lineNumber?a.column===r.column?a.order-r.order:a.column-r.column:a.lineNumber-r.lineNumber),n}constructor(t,n,a,r,c){this.ownerId=t,this.lineNumber=n,this.column=a,this.options=r,this.order=c}}e.LineInjectedText=N;class E{constructor(t,n,a){this.changeType=2,this.lineNumber=t,this.detail=n,this.injectedText=a}}e.ModelRawLineChanged=E;class I{constructor(t,n){this.changeType=3,this.fromLineNumber=t,this.toLineNumber=n}}e.ModelRawLinesDeleted=I;class L{constructor(t,n,a,r){this.changeType=4,this.injectedTexts=r,this.fromLineNumber=t,this.toLineNumber=n,this.detail=a}}e.ModelRawLinesInserted=L;class S{constructor(){this.changeType=5}}e.ModelRawEOLChanged=S;class v{constructor(t,n,a,r){this.changes=t,this.versionId=n,this.isUndoing=a,this.isRedoing=r,this.resultingSelection=null}containsEvent(t){for(let n=0,a=this.changes.length;n<a;n++)if(this.changes[n].changeType===t)return!0;return!1}static merge(t,n){const a=[].concat(t.changes).concat(n.changes),r=n.versionId,c=t.isUndoing||n.isUndoing,d=t.isRedoing||n.isRedoing;return new v(a,r,c,d)}}e.ModelRawContentChangedEvent=v;class f{constructor(t){this.changes=t}}e.ModelInjectedTextChangedEvent=f;class g{constructor(t,n){this.rawContentChangedEvent=t,this.contentChangedEvent=n}merge(t){const n=v.merge(this.rawContentChangedEvent,t.rawContentChangedEvent),a=g.c(this.contentChangedEvent,t.contentChangedEvent);return new g(n,a)}static c(t,n){const a=[].concat(t.changes).concat(n.changes),r=n.eol,c=n.versionId,d=t.isUndoing||n.isUndoing,s=t.isRedoing||n.isRedoing,l=t.isFlush||n.isFlush;return{changes:a,eol:r,versionId:c,isUndoing:d,isRedoing:s,isFlush:l}}}e.InternalModelContentChangeEvent=g}),define(_[192],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndentGuideHorizontalLine=e.IndentGuide=e.HorizontalGuidesState=void 0;var C;(function(I){I[I.Disabled=0]="Disabled",I[I.EnabledForActive=1]="EnabledForActive",I[I.Enabled=2]="Enabled"})(C=e.HorizontalGuidesState||(e.HorizontalGuidesState={}));class N{constructor(L,S,v,f,g,i){if(this.visibleColumn=L,this.column=S,this.className=v,this.horizontalLine=f,this.forWrappedLinesAfterColumn=g,this.forWrappedLinesBeforeOrAtColumn=i,L!==-1==(S!==-1))throw new Error}}e.IndentGuide=N;class E{constructor(L,S){this.top=L,this.endColumn=S}}e.IndentGuideHorizontalLine=E}),define(_[260],ee([1,0,17,9,74,4,256,191,192]),function(q,e,C,N,E,I,L,S,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BracketPairGuidesClassNames=e.GuidesTextModelPart=void 0;class f extends L.TextModelPart{constructor(t,n){super(),this.h=t,this.j=n}k(t){return this.j.getLanguageConfiguration(t)}m(t){return(0,S.computeIndentLevel)(this.h.getLineContent(t+1),this.h.getOptions().tabSize)}getActiveIndentGuide(t,n,a){this.g();const r=this.h.getLineCount();if(t<1||t>r)throw new Error("Illegal value for lineNumber");const c=this.k(this.h.getLanguageId()).foldingRules,d=Boolean(c&&c.offSide);let s=-2,l=-1,o=-2,u=-1;const h=A=>{if(s!==-1&&(s===-2||s>A-1)){s=-1,l=-1;for(let T=A-2;T>=0;T--){const O=this.m(T);if(O>=0){s=T,l=O;break}}}if(o===-2){o=-1,u=-1;for(let T=A;T<r;T++){const O=this.m(T);if(O>=0){o=T,u=O;break}}}};let w=-2,m=-1,p=-2,b=-1;const y=A=>{if(w===-2){w=-1,m=-1;for(let T=A-2;T>=0;T--){const O=this.m(T);if(O>=0){w=T,m=O;break}}}if(p!==-1&&(p===-2||p<A-1)){p=-1,b=-1;for(let T=A;T<r;T++){const O=this.m(T);if(O>=0){p=T,b=O;break}}}};let k=0,D=!0,M=0,z=!0,R=0,P=0;for(let A=0;D||z;A++){const T=t-A,O=t+A;A>1&&(T<1||T<n)&&(D=!1),A>1&&(O>r||O>a)&&(z=!1),A>5e4&&(D=!1,z=!1);let B=-1;if(D&&T>=1){const j=this.m(T-1);j>=0?(o=T-1,u=j,B=Math.ceil(j/this.h.getOptions().indentSize)):(h(T),B=this.p(d,l,u))}let W=-1;if(z&&O<=r){const j=this.m(O-1);j>=0?(w=O-1,m=j,W=Math.ceil(j/this.h.getOptions().indentSize)):(y(O),W=this.p(d,m,b))}if(A===0){P=B;continue}if(A===1){if(O<=r&&W>=0&&P+1===W){D=!1,k=O,M=O,R=W;continue}if(T>=1&&B>=0&&B-1===P){z=!1,k=T,M=T,R=B;continue}if(k=t,M=t,R=P,R===0)return{startLineNumber:k,endLineNumber:M,indent:R}}D&&(B>=R?k=T:D=!1),z&&(W>=R?M=O:z=!1)}return{startLineNumber:k,endLineNumber:M,indent:R}}getLinesBracketGuides(t,n,a,r){var c;const d=[];for(let w=t;w<=n;w++)d.push([]);const s=!0,l=this.h.bracketPairs.getBracketPairsInRangeWithMinIndentation(new I.Range(t,1,n,this.h.getLineMaxColumn(n))).toArray();let o;if(a&&l.length>0){const w=(t<=a.lineNumber&&a.lineNumber<=n?l:this.h.bracketPairs.getBracketPairsInRange(I.Range.fromPositions(a)).toArray()).filter(m=>I.Range.strictContainsPosition(m.range,a));o=(c=(0,C.findLast)(w,m=>s||m.range.startLineNumber!==m.range.endLineNumber))===null||c===void 0?void 0:c.range}const u=this.h.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,h=new g;for(const w of l){if(!w.closingBracketRange)continue;const m=o&&w.range.equalsRange(o);if(!m&&!r.includeInactive)continue;const p=h.getInlineClassName(w.nestingLevel,w.nestingLevelOfEqualBracketType,u)+(r.highlightActive&&m?" "+h.activeClassName:""),b=w.openingBracketRange.getStartPosition(),y=w.closingBracketRange.getStartPosition(),k=r.horizontalGuides===v.HorizontalGuidesState.Enabled||r.horizontalGuides===v.HorizontalGuidesState.EnabledForActive&&m;if(w.range.startLineNumber===w.range.endLineNumber){s&&k&&d[w.range.startLineNumber-t].push(new v.IndentGuide(-1,w.openingBracketRange.getEndPosition().column,p,new v.IndentGuideHorizontalLine(!1,y.column),-1,-1));continue}const D=this.n(y),M=this.n(w.openingBracketRange.getStartPosition()),z=Math.min(M,D,w.minVisibleColumnIndentation+1);let R=!1;N.firstNonWhitespaceIndex(this.h.getLineContent(w.closingBracketRange.startLineNumber))<w.closingBracketRange.startColumn-1&&(R=!0);const T=Math.max(b.lineNumber,t),O=Math.min(y.lineNumber,n),B=R?1:0;for(let W=T;W<O+B;W++)d[W-t].push(new v.IndentGuide(z,-1,p,null,W===b.lineNumber?b.column:-1,W===y.lineNumber?y.column:-1));k&&(b.lineNumber>=t&&M>z&&d[b.lineNumber-t].push(new v.IndentGuide(z,-1,p,new v.IndentGuideHorizontalLine(!1,b.column),-1,-1)),y.lineNumber<=n&&D>z&&d[y.lineNumber-t].push(new v.IndentGuide(z,-1,p,new v.IndentGuideHorizontalLine(!R,y.column),-1,-1)))}for(const w of d)w.sort((m,p)=>m.visibleColumn-p.visibleColumn);return d}n(t){return E.CursorColumns.visibleColumnFromColumn(this.h.getLineContent(t.lineNumber),t.column,this.h.getOptions().tabSize)+1}getLinesIndentGuides(t,n){this.g();const a=this.h.getLineCount();if(t<1||t>a)throw new Error("Illegal value for startLineNumber");if(n<1||n>a)throw new Error("Illegal value for endLineNumber");const r=this.h.getOptions(),c=this.k(this.h.getLanguageId()).foldingRules,d=Boolean(c&&c.offSide),s=new Array(n-t+1);let l=-2,o=-1,u=-2,h=-1;for(let w=t;w<=n;w++){const m=w-t,p=this.m(w-1);if(p>=0){l=w-1,o=p,s[m]=Math.ceil(p/r.indentSize);continue}if(l===-2){l=-1,o=-1;for(let b=w-2;b>=0;b--){const y=this.m(b);if(y>=0){l=b,o=y;break}}}if(u!==-1&&(u===-2||u<w-1)){u=-1,h=-1;for(let b=w;b<a;b++){const y=this.m(b);if(y>=0){u=b,h=y;break}}}s[m]=this.p(d,o,h)}return s}p(t,n,a){const r=this.h.getOptions();return n===-1||a===-1?0:n<a?1+Math.floor(n/r.indentSize):n===a||t?Math.ceil(a/r.indentSize):1+Math.floor(a/r.indentSize)}}e.GuidesTextModelPart=f;class g{constructor(){this.activeClassName="indent-active"}getInlineClassName(t,n,a){return this.getInlineClassNameOfLevel(a?n:t)}getInlineClassNameOfLevel(t){return`bracket-indent-guide lvl-${t%30}`}}e.BracketPairGuidesClassNames=g}),define(_[468],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContiguousMultilineTokens=void 0;class C{get startLineNumber(){return this.a}get endLineNumber(){return this.a+this.b.length-1}constructor(E,I){this.a=E,this.b=I}getLineTokens(E){return this.b[E-this.a]}appendLineTokens(E){this.b.push(E)}}e.ContiguousMultilineTokens=C}),define(_[469],ee([1,0,468]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContiguousMultilineTokensBuilder=void 0;class N{constructor(){this.a=[]}add(I,L){if(this.a.length>0){const S=this.a[this.a.length-1];if(S.endLineNumber+1===I){S.appendLineTokens(L);return}}this.a.push(new C.ContiguousMultilineTokens(I,[L]))}finalize(){return this.a}}e.ContiguousMultilineTokensBuilder=N}),define(_[87],ee([1,0,115]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LineTokens=void 0;class N{static createEmpty(L,S){const v=N.defaultTokenMetadata,f=new Uint32Array(2);return f[0]=L.length,f[1]=v,new N(f,L,S)}constructor(L,S,v){this._lineTokensBrand=void 0,this.a=L,this.b=this.a.length>>>1,this.c=S,this.d=v}equals(L){return L instanceof N?this.slicedEquals(L,0,this.b):!1}slicedEquals(L,S,v){if(this.c!==L.c||this.b!==L.b)return!1;const f=S<<1,g=f+(v<<1);for(let i=f;i<g;i++)if(this.a[i]!==L.a[i])return!1;return!0}getLineContent(){return this.c}getCount(){return this.b}getStartOffset(L){return L>0?this.a[L-1<<1]:0}getMetadata(L){return this.a[(L<<1)+1]}getLanguageId(L){const S=this.a[(L<<1)+1],v=C.TokenMetadata.getLanguageId(S);return this.d.decodeLanguageId(v)}getStandardTokenType(L){const S=this.a[(L<<1)+1];return C.TokenMetadata.getTokenType(S)}getForeground(L){const S=this.a[(L<<1)+1];return C.TokenMetadata.getForeground(S)}getClassName(L){const S=this.a[(L<<1)+1];return C.TokenMetadata.getClassNameFromMetadata(S)}getInlineStyle(L,S){const v=this.a[(L<<1)+1];return C.TokenMetadata.getInlineStyleFromMetadata(v,S)}getPresentation(L){const S=this.a[(L<<1)+1];return C.TokenMetadata.getPresentationFromMetadata(S)}getEndOffset(L){return this.a[L<<1]}findTokenIndexAtOffset(L){return N.findIndexInTokensArray(this.a,L)}inflate(){return this}sliceAndInflate(L,S,v){return new E(this,L,S,v)}static convertToEndOffset(L,S){const f=(L.length>>>1)-1;for(let g=0;g<f;g++)L[g<<1]=L[g+1<<1];L[f<<1]=S}static findIndexInTokensArray(L,S){if(L.length<=2)return 0;let v=0,f=(L.length>>>1)-1;for(;v<f;){const g=v+Math.floor((f-v)/2),i=L[g<<1];if(i===S)return g+1;i<S?v=g+1:i>S&&(f=g)}return v}withInserted(L){if(L.length===0)return this;let S=0,v=0,f="";const g=new Array;let i=0;for(;;){const t=S<this.b?this.a[S<<1]:-1,n=v<L.length?L[v]:null;if(t!==-1&&(n===null||t<=n.offset)){f+=this.c.substring(i,t);const a=this.a[(S<<1)+1];g.push(f.length,a),S++,i=t}else if(n){if(n.offset>i){f+=this.c.substring(i,n.offset);const a=this.a[(S<<1)+1];g.push(f.length,a),i=n.offset}f+=n.text,g.push(f.length,n.tokenMetadata),v++}else break}return new N(new Uint32Array(g),f,this.d)}}N.defaultTokenMetadata=(0<<11|1<<15|2<<24)>>>0,e.LineTokens=N;class E{constructor(L,S,v,f){this.a=L,this.b=S,this.c=v,this.d=f,this.e=L.findTokenIndexAtOffset(S),this.f=0;for(let g=this.e,i=L.getCount();g<i&&!(L.getStartOffset(g)>=v);g++)this.f++}getMetadata(L){return this.a.getMetadata(this.e+L)}getLanguageId(L){return this.a.getLanguageId(this.e+L)}getLineContent(){return this.a.getLineContent().substring(this.b,this.c)}equals(L){return L instanceof E?this.b===L.b&&this.c===L.c&&this.d===L.d&&this.a.slicedEquals(L.a,this.e,this.f):!1}getCount(){return this.f}getForeground(L){return this.a.getForeground(this.e+L)}getEndOffset(L){const S=this.a.getEndOffset(this.e+L);return Math.min(this.c,S)-this.b+this.d}getClassName(L){return this.a.getClassName(this.e+L)}getInlineStyle(L,S){return this.a.getInlineStyle(this.e+L,S)}getPresentation(L){return this.a.getPresentation(this.e+L)}findTokenIndexAtOffset(L){return this.a.findTokenIndexAtOffset(L+this.b-this.d)-this.e}}}),define(_[470],ee([1,0,87]),function(q,e,C){"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 N{static deleteBeginning(L,S){return L===null||L===e.EMPTY_LINE_TOKENS?L:N.delete(L,0,S)}static deleteEnding(L,S){if(L===null||L===e.EMPTY_LINE_TOKENS)return L;const v=E(L),f=v[v.length-2];return N.delete(L,S,f)}static delete(L,S,v){if(L===null||L===e.EMPTY_LINE_TOKENS||S===v)return L;const f=E(L),g=f.length>>>1;if(S===0&&f[f.length-2]===v)return e.EMPTY_LINE_TOKENS;const i=C.LineTokens.findIndexInTokensArray(f,S),t=i>0?f[i-1<<1]:0,n=f[i<<1];if(v<n){const s=v-S;for(let l=i;l<g;l++)f[l<<1]-=s;return L}let a,r;t!==S?(f[i<<1]=S,a=i+1<<1,r=S):(a=i<<1,r=t);const c=v-S;for(let s=i+1;s<g;s++){const l=f[s<<1]-c;l>r&&(f[a++]=l,f[a++]=f[(s<<1)+1],r=l)}if(a===f.length)return L;const d=new Uint32Array(a);return d.set(f.subarray(0,a),0),d.buffer}static append(L,S){if(S===e.EMPTY_LINE_TOKENS)return L;if(L===e.EMPTY_LINE_TOKENS)return S;if(L===null)return L;if(S===null)return null;const v=E(L),f=E(S),g=f.length>>>1,i=new Uint32Array(v.length+f.length);i.set(v,0);let t=v.length;const n=v[v.length-2];for(let a=0;a<g;a++)i[t++]=f[a<<1]+n,i[t++]=f[(a<<1)+1];return i.buffer}static insert(L,S,v){if(L===null||L===e.EMPTY_LINE_TOKENS)return L;const f=E(L),g=f.length>>>1;let i=C.LineTokens.findIndexInTokensArray(f,S);i>0&&f[i-1<<1]===S&&i--;for(let t=i;t<g;t++)f[t<<1]+=v;return L}}e.ContiguousTokensEditing=N;function E(I){return I instanceof Uint32Array?I:new Uint32Array(I)}e.toUint32Array=E}),define(_[471],ee([1,0,17,12,470,87,115]),function(q,e,C,N,E,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContiguousTokensStore=void 0;class S{constructor(g){this.c=[],this.d=0,this.e=g}flush(){this.c=[],this.d=0}get hasTokens(){return this.c.length>0}getTokens(g,i,t){let n=null;if(i<this.d&&(n=this.c[i]),n!==null&&n!==E.EMPTY_LINE_TOKENS)return new I.LineTokens((0,E.toUint32Array)(n),t,this.e);const a=new Uint32Array(2);return a[0]=t.length,a[1]=v(this.e.encodeLanguageId(g)),new I.LineTokens(a,t,this.e)}static f(g,i,t){const n=t?(0,E.toUint32Array)(t):null;if(i===0){let a=!1;if(n&&n.length>1&&(a=L.TokenMetadata.getLanguageId(n[1])!==g),!a)return E.EMPTY_LINE_TOKENS}if(!n||n.length===0){const a=new Uint32Array(2);return a[0]=i,a[1]=v(g),a.buffer}return n[n.length-2]=i,n.byteOffset===0&&n.byteLength===n.buffer.byteLength?n.buffer:n}g(g){for(;g>=this.d;)this.c[this.d]=null,this.d++}h(g,i){i!==0&&(g+i>this.d&&(i=this.d-g),this.c.splice(g,i),this.d-=i)}j(g,i){if(i===0)return;const t=[];for(let n=0;n<i;n++)t[n]=null;this.c=C.arrayInsert(this.c,g,t),this.d+=i}setTokens(g,i,t,n,a){const r=S.f(this.e.encodeLanguageId(g),t,n);this.g(i);const c=this.c[i];return this.c[i]=r,a?!S.k(c,r):!1}static k(g,i){if(!g||!i)return!g&&!i;const t=(0,E.toUint32Array)(g),n=(0,E.toUint32Array)(i);if(t.length!==n.length)return!1;for(let a=0,r=t.length;a<r;a++)if(t[a]!==n[a])return!1;return!0}acceptEdit(g,i,t){this.l(g),this.m(new N.Position(g.startLineNumber,g.startColumn),i,t)}l(g){const i=g.startLineNumber-1;if(i>=this.d)return;if(g.startLineNumber===g.endLineNumber){if(g.startColumn===g.endColumn)return;this.c[i]=E.ContiguousTokensEditing.delete(this.c[i],g.startColumn-1,g.endColumn-1);return}this.c[i]=E.ContiguousTokensEditing.deleteEnding(this.c[i],g.startColumn-1);const t=g.endLineNumber-1;let n=null;t<this.d&&(n=E.ContiguousTokensEditing.deleteBeginning(this.c[t],g.endColumn-1)),this.c[i]=E.ContiguousTokensEditing.append(this.c[i],n),this.h(g.startLineNumber,g.endLineNumber-g.startLineNumber)}m(g,i,t){if(i===0&&t===0)return;const n=g.lineNumber-1;if(!(n>=this.d)){if(i===0){this.c[n]=E.ContiguousTokensEditing.insert(this.c[n],g.column-1,t);return}this.c[n]=E.ContiguousTokensEditing.deleteEnding(this.c[n],g.column-1),this.c[n]=E.ContiguousTokensEditing.insert(this.c[n],g.column-1,t),this.j(g.lineNumber,i)}}}e.ContiguousTokensStore=S;function v(f){return(f<<0|0<<8|0<<11|1<<15|2<<24|1024)>>>0}}),define(_[472],ee([1,0,12,4,131]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SparseLineTokens=e.SparseMultilineTokens=void 0;class I{static create(f,g){return new I(f,new L(g))}get startLineNumber(){return this.c}get endLineNumber(){return this.d}constructor(f,g){this.c=f,this.e=g,this.d=this.c+this.e.getMaxDeltaLine()}toString(){return this.e.toString(this.c)}f(){this.d=this.c+this.e.getMaxDeltaLine()}isEmpty(){return this.e.isEmpty()}getLineTokens(f){return this.c<=f&&f<=this.d?this.e.getLineTokens(f-this.c):null}getRange(){const f=this.e.getRange();return f&&new N.Range(this.c+f.startLineNumber,f.startColumn,this.c+f.endLineNumber,f.endColumn)}removeTokens(f){const g=f.startLineNumber-this.c,i=f.endLineNumber-this.c;this.c+=this.e.removeTokens(g,f.startColumn-1,i,f.endColumn-1),this.f()}split(f){const g=f.startLineNumber-this.c,i=f.endLineNumber-this.c,[t,n,a]=this.e.split(g,f.startColumn-1,i,f.endColumn-1);return[new I(this.c,t),new I(this.c+a,n)]}applyEdit(f,g){const[i,t,n]=(0,E.countEOL)(g);this.acceptEdit(f,i,t,n,g.length>0?g.charCodeAt(0):0)}acceptEdit(f,g,i,t,n){this.g(f),this.h(new C.Position(f.startLineNumber,f.startColumn),g,i,t,n),this.f()}g(f){if(f.startLineNumber===f.endLineNumber&&f.startColumn===f.endColumn)return;const g=f.startLineNumber-this.c,i=f.endLineNumber-this.c;if(i<0){const n=i-g;this.c-=n;return}const t=this.e.getMaxDeltaLine();if(!(g>=t+1)){if(g<0&&i>=t+1){this.c=0,this.e.clear();return}if(g<0){const n=-g;this.c-=n,this.e.acceptDeleteRange(f.startColumn-1,0,0,i,f.endColumn-1)}else this.e.acceptDeleteRange(0,g,f.startColumn-1,i,f.endColumn-1)}}h(f,g,i,t,n){if(g===0&&i===0)return;const a=f.lineNumber-this.c;if(a<0){this.c+=g;return}const r=this.e.getMaxDeltaLine();a>=r+1||this.e.acceptInsertText(a,f.column-1,g,i,t,n)}}e.SparseMultilineTokens=I;class L{constructor(f){this.c=f,this.d=f.length/4}toString(f){const g=[];for(let i=0;i<this.d;i++)g.push(`(${this.f(i)+f},${this.g(i)}-${this.h(i)})`);return`[${g.join(",")}]`}getMaxDeltaLine(){const f=this.e();return f===0?-1:this.f(f-1)}getRange(){const f=this.e();if(f===0)return null;const g=this.g(0),i=this.f(f-1),t=this.h(f-1);return new N.Range(0,g+1,i,t+1)}e(){return this.d}f(f){return this.c[4*f]}g(f){return this.c[4*f+1]}h(f){return this.c[4*f+2]}isEmpty(){return this.e()===0}getLineTokens(f){let g=0,i=this.e()-1;for(;g<i;){const t=g+Math.floor((i-g)/2),n=this.f(t);if(n<f)g=t+1;else if(n>f)i=t-1;else{let a=t;for(;a>g&&this.f(a-1)===f;)a--;let r=t;for(;r<i&&this.f(r+1)===f;)r++;return new S(this.c.subarray(4*a,4*r+4))}}return this.f(g)===f?new S(this.c.subarray(4*g,4*g+4)):null}clear(){this.d=0}removeTokens(f,g,i,t){const n=this.c,a=this.d;let r=0,c=!1,d=0;for(let s=0;s<a;s++){const l=4*s,o=n[l],u=n[l+1],h=n[l+2],w=n[l+3];if((o>f||o===f&&h>=g)&&(o<i||o===i&&u<=t))c=!0;else{if(r===0&&(d=o),c){const m=4*r;n[m]=o-d,n[m+1]=u,n[m+2]=h,n[m+3]=w}r++}}return this.d=r,d}split(f,g,i,t){const n=this.c,a=this.d,r=[],c=[];let d=r,s=0,l=0;for(let o=0;o<a;o++){const u=4*o,h=n[u],w=n[u+1],m=n[u+2],p=n[u+3];if(h>f||h===f&&m>=g){if(h<i||h===i&&w<=t)continue;d!==c&&(d=c,s=0,l=h)}d[s++]=h-l,d[s++]=w,d[s++]=m,d[s++]=p}return[new L(new Uint32Array(r)),new L(new Uint32Array(c)),l]}acceptDeleteRange(f,g,i,t,n){const a=this.c,r=this.d,c=t-g;let d=0,s=!1;for(let l=0;l<r;l++){const o=4*l;let u=a[o],h=a[o+1],w=a[o+2];const m=a[o+3];if(u<g||u===g&&w<=i){d++;continue}else if(u===g&&h<i)u===t&&w>n?w-=n-i:w=i;else if(u===g&&h===i)if(u===t&&w>n)w-=n-i;else{s=!0;continue}else if(u<t||u===t&&h<n)if(u===t&&w>n)u===g?(h=i,w=h+(w-n)):(h=0,w=h+(w-n));else{s=!0;continue}else if(u>t){if(c===0&&!s){d=r;break}u-=c}else if(u===t&&h>=n)f&&u===0&&(h+=f,w+=f),u-=c,h-=n-i,w-=n-i;else throw new Error("Not possible!");const p=4*d;a[p]=u,a[p+1]=h,a[p+2]=w,a[p+3]=m,d++}this.d=d}acceptInsertText(f,g,i,t,n,a){const r=i===0&&t===1&&(a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122),c=this.c,d=this.d;for(let s=0;s<d;s++){const l=4*s;let o=c[l],u=c[l+1],h=c[l+2];if(!(o<f||o===f&&h<g)){if(o===f&&h===g)if(r)h+=1;else continue;else if(o===f&&u<g&&g<h)i===0?h+=t:h=g;else{if(o===f&&u===g&&r)continue;if(o===f)if(o+=i,i===0)u+=t,h+=t;else{const w=h-u;u=n+(u-g),h=u+w}else o+=i}c[l]=o,c[l+1]=u,c[l+2]=h}}}}class S{constructor(f){this.c=f}getCount(){return this.c.length/4}getStartCharacter(f){return this.c[4*f+1]}getEndCharacter(f){return this.c[4*f+2]}getMetadata(f){return this.c[4*f+3]}}e.SparseLineTokens=S}),define(_[473],ee([1,0,17,87]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SparseTokensStore=void 0;class E{constructor(L){this.c=[],this.d=!1,this.e=L}flush(){this.c=[],this.d=!1}isEmpty(){return this.c.length===0}set(L,S){this.c=L||[],this.d=S}setPartial(L,S){let v=L;if(S.length>0){const g=S[0].getRange(),i=S[S.length-1].getRange();if(!g||!i)return L;v=L.plusRange(g).plusRange(i)}let f=null;for(let g=0,i=this.c.length;g<i;g++){const t=this.c[g];if(t.endLineNumber<v.startLineNumber)continue;if(t.startLineNumber>v.endLineNumber){f=f||{index:g};break}if(t.removeTokens(v),t.isEmpty()){this.c.splice(g,1),g--,i--;continue}if(t.endLineNumber<v.startLineNumber)continue;if(t.startLineNumber>v.endLineNumber){f=f||{index:g};continue}const[n,a]=t.split(v);if(n.isEmpty()){f=f||{index:g};continue}a.isEmpty()||(this.c.splice(g,1,n,a),g++,i++,f=f||{index:g})}return f=f||{index:this.c.length},S.length>0&&(this.c=C.arrayInsert(this.c,f.index,S)),v}isComplete(){return this.d}addSparseTokens(L,S){if(S.getLineContent().length===0)return S;const v=this.c;if(v.length===0)return S;const f=E.f(v,L),g=v[f].getLineTokens(L);if(!g)return S;const i=S.getCount(),t=g.getCount();let n=0;const a=[];let r=0,c=0;const d=(s,l)=>{s!==c&&(c=s,a[r++]=s,a[r++]=l)};for(let s=0;s<t;s++){const l=g.getStartCharacter(s),o=g.getEndCharacter(s),u=g.getMetadata(s),h=((u&1?2048:0)|(u&2?4096:0)|(u&4?8192:0)|(u&8?16384:0)|(u&16?16744448:0)|(u&32?4278190080:0))>>>0,w=~h>>>0;for(;n<i&&S.getEndOffset(n)<=l;)d(S.getEndOffset(n),S.getMetadata(n)),n++;for(n<i&&S.getStartOffset(n)<l&&d(l,S.getMetadata(n));n<i&&S.getEndOffset(n)<o;)d(S.getEndOffset(n),S.getMetadata(n)&w|u&h),n++;if(n<i)d(o,S.getMetadata(n)&w|u&h),S.getEndOffset(n)===o&&n++;else{const m=Math.min(Math.max(0,n-1),i-1);d(o,S.getMetadata(m)&w|u&h)}}for(;n<i;)d(S.getEndOffset(n),S.getMetadata(n)),n++;return new N.LineTokens(new Uint32Array(a),S.getLineContent(),this.e)}static f(L,S){let v=0,f=L.length-1;for(;v<f;){let g=v+Math.floor((f-v)/2);if(L[g].endLineNumber<S)v=g+1;else if(L[g].startLineNumber>S)f=g-1;else{for(;g>v&&L[g-1].startLineNumber<=S&&S<=L[g-1].endLineNumber;)g--;return g}}return v}acceptEdit(L,S,v,f,g){for(const i of this.c)i.acceptEdit(L,S,v,f,g)}}e.SparseTokensStore=E}),define(_[134],ee([1,0,2]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewEventHandler=void 0;class N extends C.Disposable{constructor(){super(),this.h=!0}shouldRender(){return this.h}forceShouldRender(){this.h=!0}l(){this.h=!0}onDidRender(){this.h=!1}onCompositionStart(I){return!1}onCompositionEnd(I){return!1}onConfigurationChanged(I){return!1}onCursorStateChanged(I){return!1}onDecorationsChanged(I){return!1}onFlushed(I){return!1}onFocusChanged(I){return!1}onLanguageConfigurationChanged(I){return!1}onLineMappingChanged(I){return!1}onLinesChanged(I){return!1}onLinesDeleted(I){return!1}onLinesInserted(I){return!1}onRevealRangeRequest(I){return!1}onScrollChanged(I){return!1}onThemeChanged(I){return!1}onTokensChanged(I){return!1}onTokensColorsChanged(I){return!1}onZonesChanged(I){return!1}handleEvents(I){let L=!1;for(let S=0,v=I.length;S<v;S++){const f=I[S];switch(f.type){case 0:this.onCompositionStart(f)&&(L=!0);break;case 1:this.onCompositionEnd(f)&&(L=!0);break;case 2:this.onConfigurationChanged(f)&&(L=!0);break;case 3:this.onCursorStateChanged(f)&&(L=!0);break;case 4:this.onDecorationsChanged(f)&&(L=!0);break;case 5:this.onFlushed(f)&&(L=!0);break;case 6:this.onFocusChanged(f)&&(L=!0);break;case 7:this.onLanguageConfigurationChanged(f)&&(L=!0);break;case 8:this.onLineMappingChanged(f)&&(L=!0);break;case 9:this.onLinesChanged(f)&&(L=!0);break;case 10:this.onLinesDeleted(f)&&(L=!0);break;case 11:this.onLinesInserted(f)&&(L=!0);break;case 12:this.onRevealRangeRequest(f)&&(L=!0);break;case 13:this.onScrollChanged(f)&&(L=!0);break;case 15:this.onTokensChanged(f)&&(L=!0);break;case 14:this.onThemeChanged(f)&&(L=!0);break;case 16:this.onTokensColorsChanged(f)&&(L=!0);break;case 17:this.onZonesChanged(f)&&(L=!0);break;default:console.info("View received unknown event: "),console.info(f)}}L&&(this.h=!0)}}e.ViewEventHandler=N}),define(_[105],ee([1,0,134]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DynamicViewOverlay=void 0;class N extends C.ViewEventHandler{}e.DynamicViewOverlay=N}),define(_[51],ee([1,0,134]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PartFingerprints=e.ViewPart=void 0;class N extends C.ViewEventHandler{constructor(L){super(),this._context=L,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}}e.ViewPart=N;class E{static write(L,S){L.setAttribute("data-mprt",String(S))}static read(L){const S=L.getAttribute("data-mprt");return S===null?0:parseInt(S,10)}static collect(L,S){const v=[];let f=0;for(;L&&L!==document.body&&L!==S;)L.nodeType===L.ELEMENT_NODE&&(v[f++]=this.read(L)),L=L.parentElement;const g=new Uint8Array(f);for(let i=0;i<f;i++)g[i]=v[f-i-1];return g}}e.PartFingerprints=E}),define(_[474],ee([1,0,35,51,373]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BlockDecorations=void 0;class E extends N.ViewPart{constructor(L){super(L),this.a=[],this.b=-1,this.domNode=(0,C.createFastDomNode)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("blockDecorations-container"),this.c()}c(){let L=!1;const v=this._context.configuration.options.get(138),f=v.contentWidth-v.verticalScrollbarWidth;return this.b!==f&&(this.b=f,L=!0),L}dispose(){super.dispose()}onConfigurationChanged(L){return this.c()}onScrollChanged(L){return L.scrollTopChanged||L.scrollLeftChanged}onDecorationsChanged(L){return!0}onZonesChanged(L){return!0}prepareRender(L){}render(L){let S=0;const v=L.getDecorationsInViewport();for(const f of v){if(!f.options.blockClassName)continue;let g=this.a[S];g||(g=this.a[S]=(0,C.createFastDomNode)(document.createElement("div")),this.domNode.appendChild(g));let i,t;f.options.blockIsAfterEnd?(i=L.getVerticalOffsetAfterLineNumber(f.range.endLineNumber,!1),t=L.getVerticalOffsetAfterLineNumber(f.range.endLineNumber,!0)):(i=L.getVerticalOffsetForLineNumber(f.range.startLineNumber,!0),t=f.range.isEmpty()?L.getVerticalOffsetForLineNumber(f.range.startLineNumber,!1):L.getVerticalOffsetAfterLineNumber(f.range.endLineNumber,!0)),g.setClassName("blockDecorations-block "+f.options.blockClassName),g.setLeft(L.scrollLeft),g.setWidth(this.b),g.setTop(i),g.setHeight(t-i),S++}for(let f=S;f<this.a.length;f++)this.a[f].domNode.remove();this.a.length=S}}e.BlockDecorations=E}),define(_[475],ee([1,0,105,4,130,375]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DecorationsOverlay=void 0;class I extends C.DynamicViewOverlay{constructor(S){super(),this.c=S;const v=this.c.configuration.options;this.g=v.get(63),this.m=v.get(47).typicalHalfwidthCharacterWidth,this.n=null,this.c.addEventHandler(this)}dispose(){this.c.removeEventHandler(this),this.n=null,super.dispose()}onConfigurationChanged(S){const v=this.c.configuration.options;return this.g=v.get(63),this.m=v.get(47).typicalHalfwidthCharacterWidth,!0}onDecorationsChanged(S){return!0}onFlushed(S){return!0}onLinesChanged(S){return!0}onLinesDeleted(S){return!0}onLinesInserted(S){return!0}onScrollChanged(S){return S.scrollTopChanged||S.scrollWidthChanged}onZonesChanged(S){return!0}prepareRender(S){const v=S.getDecorationsInViewport();let f=[],g=0;for(let a=0,r=v.length;a<r;a++){const c=v[a];c.options.className&&(f[g++]=c)}f=f.sort((a,r)=>{if(a.options.zIndex<r.options.zIndex)return-1;if(a.options.zIndex>r.options.zIndex)return 1;const c=a.options.className,d=r.options.className;return c<d?-1:c>d?1:N.Range.compareRangesUsingStarts(a.range,r.range)});const i=S.visibleRange.startLineNumber,t=S.visibleRange.endLineNumber,n=[];for(let a=i;a<=t;a++){const r=a-i;n[r]=""}this.p(S,f,n),this.r(S,f,n),this.n=n}p(S,v,f){const g=String(this.g),i=S.visibleRange.startLineNumber,t=S.visibleRange.endLineNumber;for(let n=0,a=v.length;n<a;n++){const r=v[n];if(!r.options.isWholeLine)continue;const c='<div class="cdr '+r.options.className+'" style="left:0;width:100%;height:'+g+'px;"></div>',d=Math.max(r.range.startLineNumber,i),s=Math.min(r.range.endLineNumber,t);for(let l=d;l<=s;l++){const o=l-i;f[o]+=c}}}r(S,v,f){const g=String(this.g),i=S.visibleRange.startLineNumber;let t=null,n=!1,a=null;for(let r=0,c=v.length;r<c;r++){const d=v[r];if(d.options.isWholeLine)continue;const s=d.options.className,l=Boolean(d.options.showIfCollapsed);let o=d.range;if(l&&o.endColumn===1&&o.endLineNumber!==o.startLineNumber&&(o=new N.Range(o.startLineNumber,o.startColumn,o.endLineNumber-1,this.c.viewModel.getLineMaxColumn(o.endLineNumber-1))),t===s&&n===l&&N.Range.areIntersectingOrTouching(a,o)){a=N.Range.plusRange(a,o);continue}t!==null&&this.s(S,a,t,n,g,i,f),t=s,n=l,a=o}t!==null&&this.s(S,a,t,n,g,i,f)}s(S,v,f,g,i,t,n){const a=S.linesVisibleRangesForRange(v,f==="findMatch");if(!!a)for(let r=0,c=a.length;r<c;r++){const d=a[r];if(d.outsideRenderedLine)continue;const s=d.lineNumber-t;if(g&&d.ranges.length===1){const l=d.ranges[0];if(l.width<this.m){const o=Math.round(l.left+l.width/2),u=Math.max(0,Math.round(o-this.m/2));d.ranges[0]=new E.HorizontalRange(u,this.m)}}for(let l=0,o=d.ranges.length;l<o;l++){const u=d.ranges[l],h='<div class="cdr '+f+'" style="left:'+String(u.left)+"px;width:"+String(u.width)+"px;height:"+i+'px;"></div>';n[s]+=h}}}render(S,v){if(!this.n)return"";const f=v-S;return f<0||f>=this.n.length?"":this.n[f]}}e.DecorationsOverlay=I}),define(_[193],ee([1,0,105,376]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GlyphMarginOverlay=e.DedupOverlay=e.DecorationToRender=void 0;class N{constructor(S,v,f){this._decorationToRenderBrand=void 0,this.startLineNumber=+S,this.endLineNumber=+v,this.className=String(f)}}e.DecorationToRender=N;class E extends C.DynamicViewOverlay{c(S,v,f){const g=[];for(let n=S;n<=v;n++){const a=n-S;g[a]=[]}if(f.length===0)return g;f.sort((n,a)=>n.className===a.className?n.startLineNumber===a.startLineNumber?n.endLineNumber-a.endLineNumber:n.startLineNumber-a.startLineNumber:n.className<a.className?-1:1);let i=null,t=0;for(let n=0,a=f.length;n<a;n++){const r=f[n],c=r.className;let d=Math.max(r.startLineNumber,S)-S;const s=Math.min(r.endLineNumber,v)-S;i===c?(d=Math.max(t+1,d),t=Math.max(t,s)):(i=c,t=s);for(let l=d;l<=t;l++)g[l].push(i)}return g}}e.DedupOverlay=E;class I extends E{constructor(S){super(),this.g=S;const v=this.g.configuration.options,f=v.get(138);this.j=v.get(63),this.k=v.get(54),this.m=f.glyphMarginLeft,this.n=f.glyphMarginWidth,this.p=null,this.g.addEventHandler(this)}dispose(){this.g.removeEventHandler(this),this.p=null,super.dispose()}onConfigurationChanged(S){const v=this.g.configuration.options,f=v.get(138);return this.j=v.get(63),this.k=v.get(54),this.m=f.glyphMarginLeft,this.n=f.glyphMarginWidth,!0}onDecorationsChanged(S){return!0}onFlushed(S){return!0}onLinesChanged(S){return!0}onLinesDeleted(S){return!0}onLinesInserted(S){return!0}onScrollChanged(S){return S.scrollTopChanged}onZonesChanged(S){return!0}s(S){const v=S.getDecorationsInViewport(),f=[];let g=0;for(let i=0,t=v.length;i<t;i++){const n=v[i],a=n.options.glyphMarginClassName;a&&(f[g++]=new N(n.range.startLineNumber,n.range.endLineNumber,a))}return f}prepareRender(S){if(!this.k){this.p=null;return}const v=S.visibleRange.startLineNumber,f=S.visibleRange.endLineNumber,g=this.c(v,f,this.s(S)),i=this.j.toString(),t=this.m.toString(),n=this.n.toString(),a='" style="left:'+t+"px;width:"+n+"px;height:"+i+'px;"></div>',r=[];for(let c=v;c<=f;c++){const d=c-v,s=g[d];s.length===0?r[d]="":r[d]='<div class="cgmr codicon '+s.join(" ")+a}this.p=r}render(S,v){if(!this.p)return"";const f=v-S;return f<0||f>=this.p.length?"":this.p[f]}}e.GlyphMarginOverlay=I}),define(_[476],ee([1,0,193,380]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinesDecorationsOverlay=void 0;class N extends C.DedupOverlay{constructor(I){super(),this.g=I;const S=this.g.configuration.options.get(138);this.j=S.decorationsLeft,this.k=S.decorationsWidth,this.m=null,this.g.addEventHandler(this)}dispose(){this.g.removeEventHandler(this),this.m=null,super.dispose()}onConfigurationChanged(I){const S=this.g.configuration.options.get(138);return this.j=S.decorationsLeft,this.k=S.decorationsWidth,!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}n(I){const L=I.getDecorationsInViewport(),S=[];let v=0;for(let f=0,g=L.length;f<g;f++){const i=L[f],t=i.options.linesDecorationsClassName;t&&(S[v++]=new C.DecorationToRender(i.range.startLineNumber,i.range.endLineNumber,t));const n=i.options.firstLineDecorationClassName;n&&(S[v++]=new C.DecorationToRender(i.range.startLineNumber,i.range.startLineNumber,n))}return S}prepareRender(I){const L=I.visibleRange.startLineNumber,S=I.visibleRange.endLineNumber,v=this.c(L,S,this.n(I)),f=this.j.toString(),g=this.k.toString(),i='" style="left:'+f+"px;width:"+g+'px;"></div>',t=[];for(let n=L;n<=S;n++){const a=n-L,r=v[a];let c="";for(let d=0,s=r.length;d<s;d++)c+='<div class="cldr '+r[d]+i;t[a]=c}this.m=t}render(I,L){return this.m?this.m[L-I]:""}}e.LinesDecorationsOverlay=N}),define(_[261],ee([1,0,35,51,381]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Margin=void 0;class E extends N.ViewPart{constructor(L){super(L);const S=this._context.configuration.options,v=S.get(138);this.b=!S.get(29),this.c=v.contentLeft,this.g=v.glyphMarginLeft,this.j=v.glyphMarginWidth,this.a=(0,C.createFastDomNode)(document.createElement("div")),this.a.setClassName(E.OUTER_CLASS_NAME),this.a.setPosition("absolute"),this.a.setAttribute("role","presentation"),this.a.setAttribute("aria-hidden","true"),this.k=(0,C.createFastDomNode)(document.createElement("div")),this.k.setClassName(E.CLASS_NAME),this.a.appendChild(this.k)}dispose(){super.dispose()}getDomNode(){return this.a}onConfigurationChanged(L){const S=this._context.configuration.options,v=S.get(138);return this.b=!S.get(29),this.c=v.contentLeft,this.g=v.glyphMarginLeft,this.j=v.glyphMarginWidth,!0}onScrollChanged(L){return super.onScrollChanged(L)||L.scrollTopChanged}prepareRender(L){}render(L){this.a.setLayerHinting(this.b),this.a.setContain("strict");const S=L.scrollTop-L.bigNumbersDelta;this.a.setTop(-S);const v=Math.min(L.scrollHeight,1e6);this.a.setHeight(v),this.a.setWidth(this.c),this.k.setLeft(this.g),this.k.setWidth(this.j),this.k.setHeight(v)}}E.CLASS_NAME="glyph-margin",E.OUTER_CLASS_NAME="margin",e.Margin=E}),define(_[477],ee([1,0,193,382]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MarginViewLineDecorationsOverlay=void 0;class N extends C.DedupOverlay{constructor(I){super(),this.g=I,this.j=null,this.g.addEventHandler(this)}dispose(){this.g.removeEventHandler(this),this.j=null,super.dispose()}onConfigurationChanged(I){return!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}k(I){const L=I.getDecorationsInViewport(),S=[];let v=0;for(let f=0,g=L.length;f<g;f++){const i=L[f],t=i.options.marginClassName;t&&(S[v++]=new C.DecorationToRender(i.range.startLineNumber,i.range.endLineNumber,t))}return S}prepareRender(I){const L=I.visibleRange.startLineNumber,S=I.visibleRange.endLineNumber,v=this.c(L,S,this.k(I)),f=[];for(let g=L;g<=S;g++){const i=g-L,t=v[i];let n="";for(let a=0,r=t.length;a<r;a++)n+='<div class="cmdr '+t[a]+'" style=""></div>';f[i]=n}this.j=f}render(I,L){return this.j?this.j[L-I]:""}}e.MarginViewLineDecorationsOverlay=N}),define(_[478],ee([1,0,35,51,384]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewOverlayWidgets=void 0;class E extends N.ViewPart{constructor(L){super(L);const v=this._context.configuration.options.get(138);this.a={},this.c=v.verticalScrollbarWidth,this.g=v.minimap.minimapWidth,this.j=v.horizontalScrollbarHeight,this.k=v.height,this.m=v.width,this.b=(0,C.createFastDomNode)(document.createElement("div")),N.PartFingerprints.write(this.b,4),this.b.setClassName("overlayWidgets")}dispose(){super.dispose(),this.a={}}getDomNode(){return this.b}onConfigurationChanged(L){const v=this._context.configuration.options.get(138);return this.c=v.verticalScrollbarWidth,this.g=v.minimap.minimapWidth,this.j=v.horizontalScrollbarHeight,this.k=v.height,this.m=v.width,!0}addWidget(L){const S=(0,C.createFastDomNode)(L.getDomNode());this.a[L.getId()]={widget:L,preference:null,domNode:S},S.setPosition("absolute"),S.setAttribute("widgetId",L.getId()),this.b.appendChild(S),this.l()}setWidgetPosition(L,S){const v=this.a[L.getId()];return v.preference===S?!1:(v.preference=S,this.l(),!0)}removeWidget(L){const S=L.getId();if(this.a.hasOwnProperty(S)){const f=this.a[S].domNode.domNode;delete this.a[S],f.parentNode.removeChild(f),this.l()}}n(L){const S=L.domNode;if(L.preference===null){S.setTop("");return}if(L.preference===0)S.setTop(0),S.setRight(2*this.c+this.g);else if(L.preference===1){const v=S.domNode.clientHeight;S.setTop(this.k-v-2*this.j),S.setRight(2*this.c+this.g)}else L.preference===2&&(S.setTop(0),S.domNode.style.right="50%")}prepareRender(L){}render(L){this.b.setWidth(this.m);const S=Object.keys(this.a);for(let v=0,f=S.length;v<f;v++){const g=S[v];this.n(this.a[g])}}}e.ViewOverlayWidgets=E}),define(_[479],ee([1,0,35,51,385]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Rulers=void 0;class E extends N.ViewPart{constructor(L){super(L),this.domNode=(0,C.createFastDomNode)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("view-rulers"),this.a=[];const S=this._context.configuration.options;this.b=S.get(96),this.c=S.get(47).typicalHalfwidthCharacterWidth}dispose(){super.dispose()}onConfigurationChanged(L){const S=this._context.configuration.options;return this.b=S.get(96),this.c=S.get(47).typicalHalfwidthCharacterWidth,!0}onScrollChanged(L){return L.scrollHeightChanged}prepareRender(L){}g(){const L=this.a.length,S=this.b.length;if(L===S)return;if(L<S){const{tabSize:f}=this._context.viewModel.model.getOptions(),g=f;let i=S-L;for(;i>0;){const t=(0,C.createFastDomNode)(document.createElement("div"));t.setClassName("view-ruler"),t.setWidth(g),this.domNode.appendChild(t),this.a.push(t),i--}return}let v=L-S;for(;v>0;){const f=this.a.pop();this.domNode.removeChild(f),v--}}render(L){this.g();for(let S=0,v=this.b.length;S<v;S++){const f=this.a[S],g=this.b[S];f.setBoxShadow(g.color?`1px 0 0 0 ${g.color} inset`:""),f.setHeight(Math.min(L.scrollHeight,1e6)),f.setLeft(g.column*this.c)}}}e.Rulers=E}),define(_[480],ee([1,0,35,51,386]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ScrollDecorationViewPart=void 0;class E extends N.ViewPart{constructor(L){super(L),this.b=0,this.c=0,this.m(),this.g=!1;const v=this._context.configuration.options.get(97);this.j=v.useShadows,this.a=(0,C.createFastDomNode)(document.createElement("div")),this.a.setAttribute("role","presentation"),this.a.setAttribute("aria-hidden","true")}dispose(){super.dispose()}k(){const L=this.j&&this.b>0;return this.g!==L?(this.g=L,!0):!1}getDomNode(){return this.a}m(){const S=this._context.configuration.options.get(138);S.minimap.renderMinimap===0||S.minimap.minimapWidth>0&&S.minimap.minimapLeft===0?this.c=S.width:this.c=S.width-S.verticalScrollbarWidth}onConfigurationChanged(L){const v=this._context.configuration.options.get(97);return this.j=v.useShadows,this.m(),this.k(),!0}onScrollChanged(L){return this.b=L.scrollTop,this.k()}prepareRender(L){}render(L){this.a.setWidth(this.c),this.a.setClassName(this.g?"scroll-decoration":"")}}e.ScrollDecorationViewPart=E}),define(_[481],ee([1,0,35,13,51,12]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewZones=void 0;const L=()=>{throw new Error("Invalid change accessor")};class S extends E.ViewPart{constructor(g){super(g);const i=this._context.configuration.options,t=i.get(138);this.b=i.get(63),this.c=t.contentWidth,this.g=t.contentLeft,this.domNode=(0,C.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,C.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.a={}}dispose(){super.dispose(),this.a={}}j(){const g=this._context.viewLayout.getWhitespaces(),i=new Map;for(const n of g)i.set(n.id,n);let t=!1;return this._context.viewModel.changeWhitespace(n=>{const a=Object.keys(this.a);for(let r=0,c=a.length;r<c;r++){const d=a[r],s=this.a[d],l=this.m(s.delegate);s.isInHiddenArea=l.isInHiddenArea;const o=i.get(d);o&&(o.afterLineNumber!==l.afterViewLineNumber||o.height!==l.heightInPx)&&(n.changeOneWhitespace(d,l.afterViewLineNumber,l.heightInPx),this.v(s.delegate,l.heightInPx),t=!0)}}),t}onConfigurationChanged(g){const i=this._context.configuration.options,t=i.get(138);return this.b=i.get(63),this.c=t.contentWidth,this.g=t.contentLeft,g.hasChanged(63)&&this.j(),!0}onLineMappingChanged(g){return this.j()}onLinesDeleted(g){return!0}onScrollChanged(g){return g.scrollTopChanged||g.scrollWidthChanged}onZonesChanged(g){return!0}onLinesInserted(g){return!0}k(g){return typeof g.afterColumn<"u"?g.afterColumn:1e4}m(g){if(g.afterLineNumber===0)return{isInHiddenArea:!1,afterViewLineNumber:0,heightInPx:this.t(g),minWidthInPx:this.u(g)};let i;if(typeof g.afterColumn<"u")i=this._context.viewModel.model.validatePosition({lineNumber:g.afterLineNumber,column:g.afterColumn});else{const r=this._context.viewModel.model.validatePosition({lineNumber:g.afterLineNumber,column:1}).lineNumber;i=new I.Position(r,this._context.viewModel.model.getLineMaxColumn(r))}let t;i.column===this._context.viewModel.model.getLineMaxColumn(i.lineNumber)?t=this._context.viewModel.model.validatePosition({lineNumber:i.lineNumber+1,column:1}):t=this._context.viewModel.model.validatePosition({lineNumber:i.lineNumber,column:i.column+1});const n=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i,g.afterColumnAffinity),a=this._context.viewModel.coordinatesConverter.modelPositionIsVisible(t);return{isInHiddenArea:!a,afterViewLineNumber:n.lineNumber,heightInPx:a?this.t(g):0,minWidthInPx:this.u(g)}}changeViewZones(g){let i=!1;return this._context.viewModel.changeWhitespace(t=>{const n={addZone:a=>(i=!0,this.n(t,a)),removeZone:a=>{!a||(i=this.p(t,a)||i)},layoutZone:a=>{!a||(i=this.s(t,a)||i)}};v(g,n),n.addZone=L,n.removeZone=L,n.layoutZone=L}),i}n(g,i){const t=this.m(i),a={whitespaceId:g.insertWhitespace(t.afterViewLineNumber,this.k(i),t.heightInPx,t.minWidthInPx),delegate:i,isInHiddenArea:t.isInHiddenArea,isVisible:!1,domNode:(0,C.createFastDomNode)(i.domNode),marginDomNode:i.marginDomNode?(0,C.createFastDomNode)(i.marginDomNode):null};return this.v(a.delegate,t.heightInPx),a.domNode.setPosition("absolute"),a.domNode.domNode.style.width="100%",a.domNode.setDisplay("none"),a.domNode.setAttribute("monaco-view-zone",a.whitespaceId),this.domNode.appendChild(a.domNode),a.marginDomNode&&(a.marginDomNode.setPosition("absolute"),a.marginDomNode.domNode.style.width="100%",a.marginDomNode.setDisplay("none"),a.marginDomNode.setAttribute("monaco-view-zone",a.whitespaceId),this.marginDomNode.appendChild(a.marginDomNode)),this.a[a.whitespaceId]=a,this.l(),a.whitespaceId}p(g,i){if(this.a.hasOwnProperty(i)){const t=this.a[i];return delete this.a[i],g.removeWhitespace(t.whitespaceId),t.domNode.removeAttribute("monaco-visible-view-zone"),t.domNode.removeAttribute("monaco-view-zone"),t.domNode.domNode.parentNode.removeChild(t.domNode.domNode),t.marginDomNode&&(t.marginDomNode.removeAttribute("monaco-visible-view-zone"),t.marginDomNode.removeAttribute("monaco-view-zone"),t.marginDomNode.domNode.parentNode.removeChild(t.marginDomNode.domNode)),this.l(),!0}return!1}s(g,i){if(this.a.hasOwnProperty(i)){const t=this.a[i],n=this.m(t.delegate);return t.isInHiddenArea=n.isInHiddenArea,g.changeOneWhitespace(t.whitespaceId,n.afterViewLineNumber,n.heightInPx),this.v(t.delegate,n.heightInPx),this.l(),!0}return!1}shouldSuppressMouseDownOnViewZone(g){if(this.a.hasOwnProperty(g)){const i=this.a[g];return Boolean(i.delegate.suppressMouseDown)}return!1}t(g){return typeof g.heightInPx=="number"?g.heightInPx:typeof g.heightInLines=="number"?this.b*g.heightInLines:this.b}u(g){return typeof g.minWidthInPx=="number"?g.minWidthInPx:0}v(g,i){if(typeof g.onComputedHeight=="function")try{g.onComputedHeight(i)}catch(t){(0,N.onUnexpectedError)(t)}}w(g,i){if(typeof g.onDomNodeTop=="function")try{g.onDomNodeTop(i)}catch(t){(0,N.onUnexpectedError)(t)}}prepareRender(g){}render(g){const i=g.viewportData.whitespaceViewportData,t={};let n=!1;for(const r of i)this.a[r.id].isInHiddenArea||(t[r.id]=r,n=!0);const a=Object.keys(this.a);for(let r=0,c=a.length;r<c;r++){const d=a[r],s=this.a[d];let l=0,o=0,u="none";t.hasOwnProperty(d)?(l=t[d].verticalOffset-g.bigNumbersDelta,o=t[d].height,u="block",s.isVisible||(s.domNode.setAttribute("monaco-visible-view-zone","true"),s.isVisible=!0),this.w(s.delegate,g.getScrolledTopFromAbsoluteTop(t[d].verticalOffset))):(s.isVisible&&(s.domNode.removeAttribute("monaco-visible-view-zone"),s.isVisible=!1),this.w(s.delegate,g.getScrolledTopFromAbsoluteTop(-1e6))),s.domNode.setTop(l),s.domNode.setHeight(o),s.domNode.setDisplay(u),s.marginDomNode&&(s.marginDomNode.setTop(l),s.marginDomNode.setHeight(o),s.marginDomNode.setDisplay(u))}n&&(this.domNode.setWidth(Math.max(g.scrollWidth,this.c)),this.marginDomNode.setWidth(this.g))}}e.ViewZones=S;function v(f,g){try{return f(g)}catch(i){(0,N.onUnexpectedError)(i)}}}),define(_[194],ee([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 C{constructor(){this.type=0}}e.ViewCompositionStartEvent=C;class N{constructor(){this.type=1}}e.ViewCompositionEndEvent=N;class E{constructor(u){this.type=2,this._source=u}hasChanged(u){return this._source.hasChanged(u)}}e.ViewConfigurationChangedEvent=E;class I{constructor(u,h,w){this.selections=u,this.modelSelections=h,this.reason=w,this.type=3}}e.ViewCursorStateChangedEvent=I;class L{constructor(u){this.type=4,u?(this.affectsMinimap=u.affectsMinimap,this.affectsOverviewRuler=u.affectsOverviewRuler):(this.affectsMinimap=!0,this.affectsOverviewRuler=!0)}}e.ViewDecorationsChangedEvent=L;class S{constructor(){this.type=5}}e.ViewFlushedEvent=S;class v{constructor(u){this.type=6,this.isFocused=u}}e.ViewFocusChangedEvent=v;class f{constructor(){this.type=7}}e.ViewLanguageConfigurationEvent=f;class g{constructor(){this.type=8}}e.ViewLineMappingChangedEvent=g;class i{constructor(u,h){this.fromLineNumber=u,this.count=h,this.type=9}}e.ViewLinesChangedEvent=i;class t{constructor(u,h){this.type=10,this.fromLineNumber=u,this.toLineNumber=h}}e.ViewLinesDeletedEvent=t;class n{constructor(u,h){this.type=11,this.fromLineNumber=u,this.toLineNumber=h}}e.ViewLinesInsertedEvent=n;class a{constructor(u,h,w,m,p,b,y){this.source=u,this.minimalReveal=h,this.range=w,this.selections=m,this.verticalType=p,this.revealHorizontal=b,this.scrollType=y,this.type=12}}e.ViewRevealRangeRequestEvent=a;class r{constructor(u){this.type=13,this.scrollWidth=u.scrollWidth,this.scrollLeft=u.scrollLeft,this.scrollHeight=u.scrollHeight,this.scrollTop=u.scrollTop,this.scrollWidthChanged=u.scrollWidthChanged,this.scrollLeftChanged=u.scrollLeftChanged,this.scrollHeightChanged=u.scrollHeightChanged,this.scrollTopChanged=u.scrollTopChanged}}e.ViewScrollChangedEvent=r;class c{constructor(u){this.theme=u,this.type=14}}e.ViewThemeChangedEvent=c;class d{constructor(u){this.type=15,this.ranges=u}}e.ViewTokensChangedEvent=d;class s{constructor(){this.type=16}}e.ViewTokensColorsChangedEvent=s;class l{constructor(){this.type=17}}e.ViewZonesChangedEvent=l}),define(_[135],ee([1,0,9]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LineDecorationsNormalizer=e.DecorationSegment=e.LineDecoration=void 0;class N{constructor(v,f,g,i){this.startColumn=v,this.endColumn=f,this.className=g,this.type=i,this._lineDecorationBrand=void 0}static c(v,f){return v.startColumn===f.startColumn&&v.endColumn===f.endColumn&&v.className===f.className&&v.type===f.type}static equalsArr(v,f){const g=v.length,i=f.length;if(g!==i)return!1;for(let t=0;t<g;t++)if(!N.c(v[t],f[t]))return!1;return!0}static extractWrapped(v,f,g){if(v.length===0)return v;const i=f+1,t=g+1,n=g-f,a=[];let r=0;for(const c of v)c.endColumn<=i||c.startColumn>=t||(a[r++]=new N(Math.max(1,c.startColumn-i+1),Math.min(n+1,c.endColumn-i+1),c.className,c.type));return a}static filter(v,f,g,i){if(v.length===0)return[];const t=[];let n=0;for(let a=0,r=v.length;a<r;a++){const c=v[a],d=c.range;if(d.endLineNumber<f||d.startLineNumber>f||d.isEmpty()&&(c.type===0||c.type===3))continue;const s=d.startLineNumber===f?d.startColumn:g,l=d.endLineNumber===f?d.endColumn:i;t[n++]=new N(s,l,c.inlineClassName,c.type)}return t}static e(v,f){const g=[2,0,1,3];return g[v]-g[f]}static compare(v,f){if(v.startColumn!==f.startColumn)return v.startColumn-f.startColumn;if(v.endColumn!==f.endColumn)return v.endColumn-f.endColumn;const g=N.e(v.type,f.type);return g!==0?g:v.className!==f.className?v.className<f.className?-1:1:0}}e.LineDecoration=N;class E{constructor(v,f,g,i){this.startOffset=v,this.endOffset=f,this.className=g,this.metadata=i}}e.DecorationSegment=E;class I{constructor(){this.c=[],this.e=[],this.f=[],this.count=0}static g(v){let f=0;for(let g=0,i=v.length;g<i;g++)f|=v[g];return f}consumeLowerThan(v,f,g){for(;this.count>0&&this.c[0]<v;){let i=0;for(;i+1<this.count&&this.c[i]===this.c[i+1];)i++;g.push(new E(f,this.c[i],this.e.join(" "),I.g(this.f))),f=this.c[i]+1,this.c.splice(0,i+1),this.e.splice(0,i+1),this.f.splice(0,i+1),this.count-=i+1}return this.count>0&&f<v&&(g.push(new E(f,v-1,this.e.join(" "),I.g(this.f))),f=v),f}insert(v,f,g){if(this.count===0||this.c[this.count-1]<=v)this.c.push(v),this.e.push(f),this.f.push(g);else for(let i=0;i<this.count;i++)if(this.c[i]>=v){this.c.splice(i,0,v),this.e.splice(i,0,f),this.f.splice(i,0,g);break}this.count++}}class L{static normalize(v,f){if(f.length===0)return[];const g=[],i=new I;let t=0;for(let n=0,a=f.length;n<a;n++){const r=f[n];let c=r.startColumn,d=r.endColumn;const s=r.className,l=r.type===1?2:r.type===2?4:0;if(c>1){const h=v.charCodeAt(c-2);C.isHighSurrogate(h)&&c--}if(d>1){const h=v.charCodeAt(d-2);C.isHighSurrogate(h)&&d--}const o=c-1,u=d-2;t=i.consumeLowerThan(o,t,g),i.count===0&&(t=o),i.insert(u,s,l)}return i.consumeLowerThan(1073741824,t,g),g}}e.LineDecorationsNormalizer=L}),define(_[482],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinePart=void 0;class C{constructor(E,I,L,S){this.endIndex=E,this.type=I,this.metadata=L,this.containsRTL=S,this._linePartBrand=void 0}isWhitespace(){return!!(this.metadata&1)}isPseudoAfter(){return!!(this.metadata&4)}}e.LinePart=C}),define(_[483],ee([1,0,9]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinesLayout=e.EditorWhitespace=void 0;class N{constructor(){this.c=!1,this.d=[],this.e=[],this.f=[]}insert(S){this.c=!0,this.d.push(S)}change(S){this.c=!0,this.e.push(S)}remove(S){this.c=!0,this.f.push(S)}mustCommit(){return this.c}commit(S){if(!this.c)return;const v=this.d,f=this.e,g=this.f;this.c=!1,this.d=[],this.e=[],this.f=[],S._commitPendingChanges(v,f,g)}}class E{constructor(S,v,f,g,i){this.id=S,this.afterLineNumber=v,this.ordinal=f,this.height=g,this.minWidth=i,this.prefixSum=0}}e.EditorWhitespace=E;class I{constructor(S,v,f,g){this.d=C.singleLetterHash(++I.c),this.e=new N,this.f=0,this.g=[],this.h=-1,this.j=-1,this.k=S,this.l=v,this.m=f,this.n=g}static findInsertionIndex(S,v,f){let g=0,i=S.length;for(;g<i;){const t=g+i>>>1;v===S[t].afterLineNumber?f<S[t].ordinal?i=t:g=t+1:v<S[t].afterLineNumber?i=t:g=t+1}return g}setLineHeight(S){this.o(),this.l=S}setPadding(S,v){this.m=S,this.n=v}onFlushed(S){this.o(),this.k=S}changeWhitespace(S){let v=!1;try{S({insertWhitespace:(g,i,t,n)=>{v=!0,g=g|0,i=i|0,t=t|0,n=n|0;const a=this.d+ ++this.f;return this.e.insert(new E(a,g,i,t,n)),a},changeOneWhitespace:(g,i,t)=>{v=!0,i=i|0,t=t|0,this.e.change({id:g,newAfterLineNumber:i,newHeight:t})},removeWhitespace:g=>{v=!0,this.e.remove({id:g})}})}finally{this.e.commit(this)}return v}_commitPendingChanges(S,v,f){if((S.length>0||f.length>0)&&(this.j=-1),S.length+v.length+f.length<=1){for(const a of S)this.p(a);for(const a of v)this.r(a.id,a.newAfterLineNumber,a.newHeight);for(const a of f){const r=this.q(a.id);r!==-1&&this.s(r)}return}const g=new Set;for(const a of f)g.add(a.id);const i=new Map;for(const a of v)i.set(a.id,a);const t=a=>{const r=[];for(const c of a)if(!g.has(c.id)){if(i.has(c.id)){const d=i.get(c.id);c.afterLineNumber=d.newAfterLineNumber,c.height=d.newHeight}r.push(c)}return r},n=t(this.g).concat(t(S));n.sort((a,r)=>a.afterLineNumber===r.afterLineNumber?a.ordinal-r.ordinal:a.afterLineNumber-r.afterLineNumber),this.g=n,this.h=-1}o(){this.e.mustCommit()&&this.e.commit(this)}p(S){const v=I.findInsertionIndex(this.g,S.afterLineNumber,S.ordinal);this.g.splice(v,0,S),this.h=Math.min(this.h,v-1)}q(S){const v=this.g;for(let f=0,g=v.length;f<g;f++)if(v[f].id===S)return f;return-1}r(S,v,f){const g=this.q(S);if(g!==-1&&(this.g[g].height!==f&&(this.g[g].height=f,this.h=Math.min(this.h,g-1)),this.g[g].afterLineNumber!==v)){const i=this.g[g];this.s(g),i.afterLineNumber=v,this.p(i)}}s(S){this.g.splice(S,1),this.h=Math.min(this.h,S-1)}onLinesDeleted(S,v){this.o(),S=S|0,v=v|0,this.k-=v-S+1;for(let f=0,g=this.g.length;f<g;f++){const i=this.g[f].afterLineNumber;S<=i&&i<=v?this.g[f].afterLineNumber=S-1:i>v&&(this.g[f].afterLineNumber-=v-S+1)}}onLinesInserted(S,v){this.o(),S=S|0,v=v|0,this.k+=v-S+1;for(let f=0,g=this.g.length;f<g;f++){const i=this.g[f].afterLineNumber;S<=i&&(this.g[f].afterLineNumber+=v-S+1)}}getWhitespacesTotalHeight(){return this.o(),this.g.length===0?0:this.getWhitespacesAccumulatedHeight(this.g.length-1)}getWhitespacesAccumulatedHeight(S){this.o(),S=S|0;let v=Math.max(0,this.h+1);v===0&&(this.g[0].prefixSum=this.g[0].height,v++);for(let f=v;f<=S;f++)this.g[f].prefixSum=this.g[f-1].prefixSum+this.g[f].height;return this.h=Math.max(this.h,S),this.g[S].prefixSum}getLinesTotalHeight(){this.o();const S=this.l*this.k,v=this.getWhitespacesTotalHeight();return S+v+this.m+this.n}getWhitespaceAccumulatedHeightBeforeLineNumber(S){this.o(),S=S|0;const v=this.t(S);return v===-1?0:this.getWhitespacesAccumulatedHeight(v)}t(S){S=S|0;const v=this.g;let f=0,g=v.length-1;for(;f<=g;){const t=(g-f|0)/2|0,n=f+t|0;if(v[n].afterLineNumber<S){if(n+1>=v.length||v[n+1].afterLineNumber>=S)return n;f=n+1|0}else g=n-1|0}return-1}u(S){S=S|0;const f=this.t(S)+1;return f<this.g.length?f:-1}getFirstWhitespaceIndexAfterLineNumber(S){return this.o(),S=S|0,this.u(S)}getVerticalOffsetForLineNumber(S,v=!1){this.o(),S=S|0;let f;S>1?f=this.l*(S-1):f=0;const g=this.getWhitespaceAccumulatedHeightBeforeLineNumber(S-(v?1:0));return f+g+this.m}getVerticalOffsetAfterLineNumber(S,v=!1){this.o(),S=S|0;const f=this.l*S,g=this.getWhitespaceAccumulatedHeightBeforeLineNumber(S+(v?1:0));return f+g+this.m}getWhitespaceMinWidth(){if(this.o(),this.j===-1){let S=0;for(let v=0,f=this.g.length;v<f;v++)S=Math.max(S,this.g[v].minWidth);this.j=S}return this.j}isAfterLines(S){this.o();const v=this.getLinesTotalHeight();return S>v}isInTopPadding(S){return this.m===0?!1:(this.o(),S<this.m)}isInBottomPadding(S){if(this.n===0)return!1;this.o();const v=this.getLinesTotalHeight();return S>=v-this.n}getLineNumberAtOrAfterVerticalOffset(S){if(this.o(),S=S|0,S<0)return 1;const v=this.k|0,f=this.l;let g=1,i=v;for(;g<i;){const t=(g+i)/2|0,n=this.getVerticalOffsetForLineNumber(t)|0;if(S>=n+f)g=t+1;else{if(S>=n)return t;i=t}}return g>v?v:g}getLinesViewportData(S,v){this.o(),S=S|0,v=v|0;const f=this.l,g=this.getLineNumberAtOrAfterVerticalOffset(S)|0,i=this.getVerticalOffsetForLineNumber(g)|0;let t=this.k|0,n=this.getFirstWhitespaceIndexAfterLineNumber(g)|0;const a=this.getWhitespacesCount()|0;let r,c;n===-1?(n=a,c=t+1,r=0):(c=this.getAfterLineNumberForWhitespaceIndex(n)|0,r=this.getHeightForWhitespaceIndex(n)|0);let d=i,s=d;const l=5e5;let o=0;i>=l&&(o=Math.floor(i/l)*l,o=Math.floor(o/f)*f,s-=o);const u=[],h=S+(v-S)/2;let w=-1;for(let y=g;y<=t;y++){if(w===-1){const k=d,D=d+f;(k<=h&&h<D||k>h)&&(w=y)}for(d+=f,u[y-g]=s,s+=f;c===y;)s+=r,d+=r,n++,n>=a?c=t+1:(c=this.getAfterLineNumberForWhitespaceIndex(n)|0,r=this.getHeightForWhitespaceIndex(n)|0);if(d>=v){t=y;break}}w===-1&&(w=t);const m=this.getVerticalOffsetForLineNumber(t)|0;let p=g,b=t;return p<b&&i<S&&p++,p<b&&m+f>v&&b--,{bigNumbersDelta:o,startLineNumber:g,endLineNumber:t,relativeVerticalOffset:u,centeredLineNumber:w,completelyVisibleStartLineNumber:p,completelyVisibleEndLineNumber:b}}getVerticalOffsetForWhitespaceIndex(S){this.o(),S=S|0;const v=this.getAfterLineNumberForWhitespaceIndex(S);let f;v>=1?f=this.l*v:f=0;let g;return S>0?g=this.getWhitespacesAccumulatedHeight(S-1):g=0,f+g+this.m}getWhitespaceIndexAtOrAfterVerticallOffset(S){this.o(),S=S|0;let v=0,f=this.getWhitespacesCount()-1;if(f<0)return-1;const g=this.getVerticalOffsetForWhitespaceIndex(f),i=this.getHeightForWhitespaceIndex(f);if(S>=g+i)return-1;for(;v<f;){const t=Math.floor((v+f)/2),n=this.getVerticalOffsetForWhitespaceIndex(t),a=this.getHeightForWhitespaceIndex(t);if(S>=n+a)v=t+1;else{if(S>=n)return t;f=t}}return v}getWhitespaceAtVerticalOffset(S){this.o(),S=S|0;const v=this.getWhitespaceIndexAtOrAfterVerticallOffset(S);if(v<0||v>=this.getWhitespacesCount())return null;const f=this.getVerticalOffsetForWhitespaceIndex(v);if(f>S)return null;const g=this.getHeightForWhitespaceIndex(v),i=this.getIdForWhitespaceIndex(v),t=this.getAfterLineNumberForWhitespaceIndex(v);return{id:i,afterLineNumber:t,verticalOffset:f,height:g}}getWhitespaceViewportData(S,v){this.o(),S=S|0,v=v|0;const f=this.getWhitespaceIndexAtOrAfterVerticallOffset(S),g=this.getWhitespacesCount()-1;if(f<0)return[];const i=[];for(let t=f;t<=g;t++){const n=this.getVerticalOffsetForWhitespaceIndex(t),a=this.getHeightForWhitespaceIndex(t);if(n>=v)break;i.push({id:this.getIdForWhitespaceIndex(t),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(t),verticalOffset:n,height:a})}return i}getWhitespaces(){return this.o(),this.g.slice(0)}getWhitespacesCount(){return this.o(),this.g.length}getIdForWhitespaceIndex(S){return this.o(),S=S|0,this.g[S].id}getAfterLineNumberForWhitespaceIndex(S){return this.o(),S=S|0,this.g[S].afterLineNumber}getHeightForWhitespaceIndex(S){return this.o(),S=S|0,this.g[S].height}}I.c=0,e.LinesLayout=I}),define(_[484],ee([1,0,4]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewportData=void 0;class N{constructor(I,L,S,v){this.selections=I,this.startLineNumber=L.startLineNumber|0,this.endLineNumber=L.endLineNumber|0,this.relativeVerticalOffset=L.relativeVerticalOffset,this.bigNumbersDelta=L.bigNumbersDelta|0,this.whitespaceViewportData=S,this.a=v,this.visibleRange=new C.Range(L.startLineNumber,this.a.getLineMinColumn(L.startLineNumber),L.endLineNumber,this.a.getLineMaxColumn(L.endLineNumber))}getViewLineRenderingData(I){return this.a.getViewportViewLineRenderingData(this.visibleRange,I)}getDecorationsInViewport(){return this.a.getDecorationsInViewport(this.visibleRange)}}e.ViewportData=N}),define(_[82],ee([1,0,9,4]),function(q,e,C,N){"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 E{constructor(n,a,r,c){this._viewportBrand=void 0,this.top=n|0,this.left=a|0,this.width=r|0,this.height=c|0}}e.Viewport=E;class I{constructor(n,a){this.tabSize=n,this.data=a}}e.MinimapLinesRenderingData=I;class L{constructor(n,a,r,c,d,s,l){this._viewLineDataBrand=void 0,this.content=n,this.continuesWithWrappedLine=a,this.minColumn=r,this.maxColumn=c,this.startVisibleColumn=d,this.tokens=s,this.inlineDecorations=l}}e.ViewLineData=L;class S{constructor(n,a,r,c,d,s,l,o,u,h){this.minColumn=n,this.maxColumn=a,this.content=r,this.continuesWithWrappedLine=c,this.isBasicASCII=S.isBasicASCII(r,s),this.containsRTL=S.containsRTL(r,this.isBasicASCII,d),this.tokens=l,this.inlineDecorations=o,this.tabSize=u,this.startVisibleColumn=h}static isBasicASCII(n,a){return a?C.isBasicASCII(n):!0}static containsRTL(n,a,r){return!a&&r?C.containsRTL(n):!1}}e.ViewLineRenderingData=S;class v{constructor(n,a,r){this.range=n,this.inlineClassName=a,this.type=r}}e.InlineDecoration=v;class f{constructor(n,a,r,c){this.startOffset=n,this.endOffset=a,this.inlineClassName=r,this.inlineClassNameAffectsLetterSpacing=c}toInlineDecoration(n){return new v(new N.Range(n,this.startOffset+1,n,this.endOffset+1),this.inlineClassName,this.inlineClassNameAffectsLetterSpacing?3:0)}}e.SingleLineInlineDecoration=f;class g{constructor(n,a){this._viewModelDecorationBrand=void 0,this.range=n,this.options=a}}e.ViewModelDecoration=g;class i{constructor(n,a,r){this.color=n,this.zIndex=a,this.data=r}static cmp(n,a){return n.zIndex===a.zIndex?n.color<a.color?-1:n.color>a.color?1:0:n.zIndex-a.zIndex}}e.OverviewRulerDecorationsGroup=i}),define(_[485],ee([1,0,87,12,104,82]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createModelLineProjection=void 0;function L(n,a){return n===null?a?v.INSTANCE:f.INSTANCE:new S(n,a)}e.createModelLineProjection=L;class S{constructor(a,r){this.a=a,this.b=r}isVisible(){return this.b}setVisible(a){return this.b=a,this}getProjectionData(){return this.a}getViewLineCount(){return this.b?this.a.getOutputLineCount():0}getViewLineContent(a,r,c){this.d();const d=c>0?this.a.breakOffsets[c-1]:0,s=this.a.breakOffsets[c];let l;if(this.a.injectionOffsets!==null){const o=this.a.injectionOffsets.map((h,w)=>new E.LineInjectedText(0,0,h+1,this.a.injectionOptions[w],0));l=E.LineInjectedText.applyInjectedText(a.getLineContent(r),o).substring(d,s)}else l=a.getValueInRange({startLineNumber:r,startColumn:d+1,endLineNumber:r,endColumn:s+1});return c>0&&(l=i(this.a.wrappedTextIndentLength)+l),l}getViewLineLength(a,r,c){return this.d(),this.a.getLineLength(c)}getViewLineMinColumn(a,r,c){return this.d(),this.a.getMinOutputOffset(c)+1}getViewLineMaxColumn(a,r,c){return this.d(),this.a.getMaxOutputOffset(c)+1}getViewLineData(a,r,c){const d=new Array;return this.getViewLinesData(a,r,c,1,0,[!0],d),d[0]}getViewLinesData(a,r,c,d,s,l,o){this.d();const u=this.a,h=u.injectionOffsets,w=u.injectionOptions;let m=null;if(h){m=[];let b=0,y=0;for(let k=0;k<u.getOutputLineCount();k++){const D=new Array;m[k]=D;const M=k>0?u.breakOffsets[k-1]:0,z=u.breakOffsets[k];for(;y<h.length;){const R=w[y].content.length,P=h[y]+b,A=P+R;if(P>z)break;if(M<A){const T=w[y];if(T.inlineClassName){const O=k>0?u.wrappedTextIndentLength:0,B=O+Math.max(P-M,0),W=O+Math.min(A-M,z);B!==W&&D.push(new I.SingleLineInlineDecoration(B,W,T.inlineClassName,T.inlineClassNameAffectsLetterSpacing))}}if(A<=z)b+=R,y++;else break}}}let p;h?p=a.tokenization.getLineTokens(r).withInserted(h.map((b,y)=>({offset:b,text:w[y].content,tokenMetadata:C.LineTokens.defaultTokenMetadata}))):p=a.tokenization.getLineTokens(r);for(let b=c;b<c+d;b++){const y=s+b-c;if(!l[y]){o[y]=null;continue}o[y]=this.c(p,m?m[b]:null,b)}}c(a,r,c){this.d();const d=this.a,s=c>0?d.wrappedTextIndentLength:0,l=c>0?d.breakOffsets[c-1]:0,o=d.breakOffsets[c],u=a.sliceAndInflate(l,o,s);let h=u.getLineContent();c>0&&(h=i(d.wrappedTextIndentLength)+h);const w=this.a.getMinOutputOffset(c)+1,m=h.length+1,p=c+1<this.getViewLineCount(),b=c===0?0:d.breakOffsetsVisibleColumn[c-1];return new I.ViewLineData(h,p,w,m,b,u,r)}getModelColumnOfViewPosition(a,r){return this.d(),this.a.translateToInputOffset(a,r-1)+1}getViewPositionOfModelPosition(a,r,c=2){return this.d(),this.a.translateToOutputPosition(r-1,c).toPosition(a)}getViewLineNumberOfModelPosition(a,r){this.d();const c=this.a.translateToOutputPosition(r-1);return a+c.outputLineIndex}normalizePosition(a,r,c){const d=r.lineNumber-a;return this.a.normalizeOutputPosition(a,r.column-1,c).toPosition(d)}getInjectedTextAt(a,r){return this.a.getInjectedText(a,r-1)}d(){if(!this.b)throw new Error("Not supported")}}class v{constructor(){}isVisible(){return!0}setVisible(a){return a?this:f.INSTANCE}getProjectionData(){return null}getViewLineCount(){return 1}getViewLineContent(a,r,c){return a.getLineContent(r)}getViewLineLength(a,r,c){return a.getLineLength(r)}getViewLineMinColumn(a,r,c){return a.getLineMinColumn(r)}getViewLineMaxColumn(a,r,c){return a.getLineMaxColumn(r)}getViewLineData(a,r,c){const d=a.tokenization.getLineTokens(r),s=d.getLineContent();return new I.ViewLineData(s,!1,1,s.length+1,0,d.inflate(),null)}getViewLinesData(a,r,c,d,s,l,o){if(!l[s]){o[s]=null;return}o[s]=this.getViewLineData(a,r,0)}getModelColumnOfViewPosition(a,r){return r}getViewPositionOfModelPosition(a,r){return new N.Position(a,r)}getViewLineNumberOfModelPosition(a,r){return a}normalizePosition(a,r,c){return r}getInjectedTextAt(a,r){return null}}v.INSTANCE=new v;class f{constructor(){}isVisible(){return!1}setVisible(a){return a?v.INSTANCE:this}getProjectionData(){return null}getViewLineCount(){return 0}getViewLineContent(a,r,c){throw new Error("Not supported")}getViewLineLength(a,r,c){throw new Error("Not supported")}getViewLineMinColumn(a,r,c){throw new Error("Not supported")}getViewLineMaxColumn(a,r,c){throw new Error("Not supported")}getViewLineData(a,r,c){throw new Error("Not supported")}getViewLinesData(a,r,c,d,s,l,o){throw new Error("Not supported")}getModelColumnOfViewPosition(a,r){throw new Error("Not supported")}getViewPositionOfModelPosition(a,r){throw new Error("Not supported")}getViewLineNumberOfModelPosition(a,r){throw new Error("Not supported")}normalizePosition(a,r,c){throw new Error("Not supported")}getInjectedTextAt(a,r){throw new Error("Not supported")}}f.INSTANCE=new f;const g=[""];function i(n){if(n>=g.length)for(let a=1;a<=n;a++)g[a]=t(a);return g[n]}function t(n){return new Array(n+1).join(" ")}}),define(_[486],ee([1,0,9,113,104,258]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MonospaceLineBreaksComputerFactory=void 0;class L{static create(d){return new L(d.get(127),d.get(126))}constructor(d,s){this.a=new S(d,s)}createLineBreaksComputer(d,s,l,o,u){const h=[],w=[],m=[];return{addRequest:(p,b,y)=>{h.push(p),w.push(b),m.push(y)},finalize:()=>{const p=d.typicalFullwidthCharacterWidth/d.typicalHalfwidthCharacterWidth,b=[];for(let y=0,k=h.length;y<k;y++){const D=w[y],M=m[y];M&&!M.injectionOptions&&!D?b[y]=g(this.a,M,h[y],s,l,p,o,u):b[y]=i(this.a,h[y],D,s,l,p,o,u)}return v.length=0,f.length=0,b}}}}e.MonospaceLineBreaksComputerFactory=L;class S extends N.CharacterClassifier{constructor(d,s){super(0);for(let l=0;l<d.length;l++)this.set(d.charCodeAt(l),1);for(let l=0;l<s.length;l++)this.set(s.charCodeAt(l),2)}get(d){return d>=0&&d<256?this.a[d]:d>=12352&&d<=12543||d>=13312&&d<=19903||d>=19968&&d<=40959?3:this.b.get(d)||this.c}}let v=[],f=[];function g(c,d,s,l,o,u,h,w){if(o===-1)return null;const m=s.length;if(m<=1)return null;const p=w==="keepAll",b=d.breakOffsets,y=d.breakOffsetsVisibleColumn,k=r(s,l,o,u,h),D=o-k,M=v,z=f;let R=0,P=0,A=0,T=o;const O=b.length;let B=0;if(B>=0){let W=Math.abs(y[B]-T);for(;B+1<O;){const j=Math.abs(y[B+1]-T);if(j>=W)break;W=j,B++}}for(;B<O;){let W=B<0?0:b[B],j=B<0?0:y[B];P>W&&(W=P,j=A);let F=0,U=0,Q=0,se=0;if(j<=T){let ie=j,ue=W===0?0:s.charCodeAt(W-1),J=W===0?0:c.get(ue),x=!0;for(let G=W;G<m;G++){const te=G,Z=s.charCodeAt(G);let ae,de;if(C.isHighSurrogate(Z)?(G++,ae=0,de=2):(ae=c.get(Z),de=t(Z,ie,l,u)),te>P&&a(ue,J,Z,ae,p)&&(F=te,U=ie),ie+=de,ie>T){te>P?(Q=te,se=ie-de):(Q=G+1,se=ie),ie-U>D&&(F=0),x=!1;break}ue=Z,J=ae}if(x){R>0&&(M[R]=b[b.length-1],z[R]=y[b.length-1],R++);break}}if(F===0){let ie=j,ue=s.charCodeAt(W),J=c.get(ue),x=!1;for(let G=W-1;G>=P;G--){const te=G+1,Z=s.charCodeAt(G);if(Z===9){x=!0;break}let ae,de;if(C.isLowSurrogate(Z)?(G--,ae=0,de=2):(ae=c.get(Z),de=C.isFullWidthCharacter(Z)?u:1),ie<=T){if(Q===0&&(Q=te,se=ie),ie<=T-D)break;if(a(Z,ae,ue,J,p)){F=te,U=ie;break}}ie-=de,ue=Z,J=ae}if(F!==0){const G=D-(se-U);if(G<=l){const te=s.charCodeAt(Q);let Z;C.isHighSurrogate(te)?Z=2:Z=t(te,se,l,u),G-Z<0&&(F=0)}}if(x){B--;continue}}if(F===0&&(F=Q,U=se),F<=P){const ie=s.charCodeAt(P);C.isHighSurrogate(ie)?(F=P+2,U=A+2):(F=P+1,U=A+t(ie,A,l,u))}for(P=F,M[R]=F,A=U,z[R]=U,R++,T=U+D;B<0||B<O&&y[B]<U;)B++;let he=Math.abs(y[B]-T);for(;B+1<O;){const ie=Math.abs(y[B+1]-T);if(ie>=he)break;he=ie,B++}}return R===0?null:(M.length=R,z.length=R,v=d.breakOffsets,f=d.breakOffsetsVisibleColumn,d.breakOffsets=M,d.breakOffsetsVisibleColumn=z,d.wrappedTextIndentLength=k,d)}function i(c,d,s,l,o,u,h,w){const m=E.LineInjectedText.applyInjectedText(d,s);let p,b;if(s&&s.length>0?(p=s.map(U=>U.options),b=s.map(U=>U.column-1)):(p=null,b=null),o===-1)return p?new I.ModelLineProjectionData(b,p,[m.length],[],0):null;const y=m.length;if(y<=1)return p?new I.ModelLineProjectionData(b,p,[m.length],[],0):null;const k=w==="keepAll",D=r(m,l,o,u,h),M=o-D,z=[],R=[];let P=0,A=0,T=0,O=o,B=m.charCodeAt(0),W=c.get(B),j=t(B,0,l,u),F=1;C.isHighSurrogate(B)&&(j+=1,B=m.charCodeAt(1),W=c.get(B),F++);for(let U=F;U<y;U++){const Q=U,se=m.charCodeAt(U);let he,ie;C.isHighSurrogate(se)?(U++,he=0,ie=2):(he=c.get(se),ie=t(se,j,l,u)),a(B,W,se,he,k)&&(A=Q,T=j),j+=ie,j>O&&((A===0||j-T>M)&&(A=Q,T=j-ie),z[P]=A,R[P]=T,P++,O=T+M,A=0),B=se,W=he}return P===0&&(!s||s.length===0)?null:(z[P]=y,R[P]=j,new I.ModelLineProjectionData(b,p,z,R,D))}function t(c,d,s,l){return c===9?s-d%s:C.isFullWidthCharacter(c)||c<32?l:1}function n(c,d){return d-c%d}function a(c,d,s,l,o){return s!==32&&(d===2&&l!==2||d!==1&&l===1||!o&&d===3&&l!==2||!o&&l===3&&d!==1)}function r(c,d,s,l,o){let u=0;if(o!==0){const h=C.firstNonWhitespaceIndex(c);if(h!==-1){for(let m=0;m<h;m++)u+=c.charCodeAt(m)===9?n(u,d):1;const w=o===3?2:o===2?1:0;for(let m=0;m<w;m++)u+=n(u,d);u+l>s&&(u=0)}}return u}}),define(_[262],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OverviewZoneManager=e.OverviewRulerZone=e.ColorZone=void 0;class C{constructor(L,S,v){this._colorZoneBrand=void 0,this.from=L|0,this.to=S|0,this.colorId=v|0}static compare(L,S){return L.colorId===S.colorId?L.from===S.from?L.to-S.to:L.from-S.from:L.colorId-S.colorId}}e.ColorZone=C;class N{constructor(L,S,v,f){this._overviewRulerZoneBrand=void 0,this.startLineNumber=L,this.endLineNumber=S,this.heightInLines=v,this.color=f,this.c=null}static compare(L,S){return L.color===S.color?L.startLineNumber===S.startLineNumber?L.heightInLines===S.heightInLines?L.endLineNumber-S.endLineNumber:L.heightInLines-S.heightInLines:L.startLineNumber-S.startLineNumber:L.color<S.color?-1:1}setColorZone(L){this.c=L}getColorZones(){return this.c}}e.OverviewRulerZone=N;class E{constructor(L){this.c=L,this.d=[],this.e=!1,this.f=0,this.g=0,this.h=0,this.j=0,this.k=1,this.l=0,this.m=Object.create(null),this.n=[]}getId2Color(){return this.n}setZones(L){this.d=L,this.d.sort(N.compare)}setLineHeight(L){return this.f===L?!1:(this.f=L,this.e=!0,!0)}setPixelRatio(L){this.k=L,this.e=!0}getDOMWidth(){return this.g}getCanvasWidth(){return this.g*this.k}setDOMWidth(L){return this.g===L?!1:(this.g=L,this.e=!0,!0)}getDOMHeight(){return this.h}getCanvasHeight(){return this.h*this.k}setDOMHeight(L){return this.h===L?!1:(this.h=L,this.e=!0,!0)}getOuterHeight(){return this.j}setOuterHeight(L){return this.j===L?!1:(this.j=L,this.e=!0,!0)}resolveColorZones(){const L=this.e,S=Math.floor(this.f),v=Math.floor(this.getCanvasHeight()),f=Math.floor(this.j),g=v/f,i=Math.floor(4*this.k/2),t=[];for(let n=0,a=this.d.length;n<a;n++){const r=this.d[n];if(!L){const p=r.getColorZones();if(p){t.push(p);continue}}const c=this.c(r.startLineNumber),d=r.heightInLines===0?this.c(r.endLineNumber)+S:c+r.heightInLines*S,s=Math.floor(g*c),l=Math.floor(g*d);let o=Math.floor((s+l)/2),u=l-o;u<i&&(u=i),o-u<0&&(o=u),o+u>v&&(o=v-u);const h=r.color;let w=this.m[h];w||(w=++this.l,this.m[h]=w,this.n[w]=h);const m=new C(o-u,o+u,w);r.setColorZone(m),t.push(m)}return this.e=!1,t.sort(C.compare),t}}e.OverviewZoneManager=E}),define(_[487],ee([1,0,35,262,134]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OverviewRuler=void 0;class I extends E.ViewEventHandler{constructor(S,v){super(),this.a=S;const f=this.a.configuration.options;this.b=(0,C.createFastDomNode)(document.createElement("canvas")),this.b.setClassName(v),this.b.setPosition("absolute"),this.b.setLayerHinting(!0),this.b.setContain("strict"),this.c=new N.OverviewZoneManager(g=>this.a.viewLayout.getVerticalOffsetForLineNumber(g)),this.c.setDOMWidth(0),this.c.setDOMHeight(0),this.c.setOuterHeight(this.a.viewLayout.getScrollHeight()),this.c.setLineHeight(f.get(63)),this.c.setPixelRatio(f.get(136)),this.a.addEventHandler(this)}dispose(){this.a.removeEventHandler(this),super.dispose()}onConfigurationChanged(S){const v=this.a.configuration.options;return S.hasChanged(63)&&(this.c.setLineHeight(v.get(63)),this.g()),S.hasChanged(136)&&(this.c.setPixelRatio(v.get(136)),this.b.setWidth(this.c.getDOMWidth()),this.b.setHeight(this.c.getDOMHeight()),this.b.domNode.width=this.c.getCanvasWidth(),this.b.domNode.height=this.c.getCanvasHeight(),this.g()),!0}onFlushed(S){return this.g(),!0}onScrollChanged(S){return S.scrollHeightChanged&&(this.c.setOuterHeight(S.scrollHeight),this.g()),!0}onZonesChanged(S){return this.g(),!0}getDomNode(){return this.b.domNode}setLayout(S){this.b.setTop(S.top),this.b.setRight(S.right);let v=!1;v=this.c.setDOMWidth(S.width)||v,v=this.c.setDOMHeight(S.height)||v,v&&(this.b.setWidth(this.c.getDOMWidth()),this.b.setHeight(this.c.getDOMHeight()),this.b.domNode.width=this.c.getCanvasWidth(),this.b.domNode.height=this.c.getCanvasHeight(),this.g())}setZones(S){this.c.setZones(S),this.g()}g(){if(this.c.getOuterHeight()===0)return!1;const S=this.c.getCanvasWidth(),v=this.c.getCanvasHeight(),f=this.c.resolveColorZones(),g=this.c.getId2Color(),i=this.b.domNode.getContext("2d");return i.clearRect(0,0,S,v),f.length>0&&this.j(i,f,g,S),!0}j(S,v,f,g){let i=0,t=0,n=0;for(const a of v){const r=a.colorId,c=a.from,d=a.to;r!==i?(S.fillRect(0,t,g,n-t),i=r,S.fillStyle=f[i],t=c,n=d):n>=c?n=Math.max(n,d):(S.fillRect(0,t,g,n-t),t=c,n=d)}S.fillRect(0,t,g,n-t)}}e.OverviewRuler=I}),define(_[488],ee([1,0,448]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewContext=void 0;class N{constructor(I,L,S){this.configuration=I,this.theme=new C.EditorTheme(L),this.viewModel=S,this.viewLayout=S.viewLayout}addEventHandler(I){this.viewModel.addViewEventHandler(I)}removeEventHandler(I){this.viewModel.removeViewEventHandler(I)}}e.ViewContext=N}),define(_[489],ee([1,0,4,22]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MoveCaretCommand=void 0;class E{constructor(L,S){this.a=L,this.b=S}getEditOperations(L,S){if(this.a.startLineNumber!==this.a.endLineNumber||this.a.isEmpty())return;const v=this.a.startLineNumber,f=this.a.startColumn,g=this.a.endColumn;if(!(this.b&&f===1)&&!(!this.b&&g===L.getLineMaxColumn(v)))if(this.b){const i=new C.Range(v,f-1,v,f),t=L.getValueInRange(i);S.addEditOperation(i,null),S.addEditOperation(new C.Range(v,g,v,g),t)}else{const i=new C.Range(v,g,v,g+1),t=L.getValueInRange(i);S.addEditOperation(i,null),S.addEditOperation(new C.Range(v,f,v,f),t)}}computeCursorState(L,S){return this.b?new N.Selection(this.a.startLineNumber,this.a.startColumn-1,this.a.endLineNumber,this.a.endColumn-1):new N.Selection(this.a.startLineNumber,this.a.startColumn+1,this.a.endLineNumber,this.a.endColumn+1)}}e.MoveCaretCommand=E}),define(_[118],ee([1,0,13]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CodeActionItem=e.CodeActionCommandArgs=e.filtersAction=e.mayIncludeActionsOfKind=e.CodeActionTriggerSource=e.CodeActionKind=void 0;class N{constructor(i){this.value=i}equals(i){return this.value===i.value}contains(i){return this.equals(i)||this.value===""||i.value.startsWith(this.value+N.a)}intersects(i){return this.contains(i)||i.contains(this)}append(i){return new N(this.value+N.a+i)}}N.a=".",N.None=new N("@@none@@"),N.Empty=new N(""),N.QuickFix=new N("quickfix"),N.Refactor=new N("refactor"),N.RefactorExtract=N.Refactor.append("extract"),N.RefactorInline=N.Refactor.append("inline"),N.RefactorMove=N.Refactor.append("move"),N.RefactorRewrite=N.Refactor.append("rewrite"),N.Source=new N("source"),N.SourceOrganizeImports=N.Source.append("organizeImports"),N.SourceFixAll=N.Source.append("fixAll"),N.SurroundWith=N.Refactor.append("surround"),e.CodeActionKind=N;var E;(function(g){g.Refactor="refactor",g.RefactorPreview="refactor preview",g.Lightbulb="lightbulb",g.Default="other (default)",g.SourceAction="source action",g.QuickFix="quick fix action",g.FixAll="fix all",g.OrganizeImports="organize imports",g.AutoFix="auto fix",g.QuickFixHover="quick fix hover window",g.OnSave="save participants",g.ProblemsView="problems view"})(E=e.CodeActionTriggerSource||(e.CodeActionTriggerSource={}));function I(g,i){return!(g.include&&!g.include.intersects(i)||g.excludes&&g.excludes.some(t=>S(i,t,g.include))||!g.includeSourceActions&&N.Source.contains(i))}e.mayIncludeActionsOfKind=I;function L(g,i){const t=i.kind?new N(i.kind):void 0;return!(g.include&&(!t||!g.include.contains(t))||g.excludes&&t&&g.excludes.some(n=>S(t,n,g.include))||!g.includeSourceActions&&t&&N.Source.contains(t)||g.onlyIncludePreferredActions&&!i.isPreferred)}e.filtersAction=L;function S(g,i,t){return!(!i.contains(g)||t&&i.contains(t))}class v{static fromUser(i,t){return!i||typeof i!="object"?new v(t.kind,t.apply,!1):new v(v.b(i,t.kind),v.a(i,t.apply),v.c(i))}static a(i,t){switch(typeof i.apply=="string"?i.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static b(i,t){return typeof i.kind=="string"?new N(i.kind):t}static c(i){return typeof i.preferred=="boolean"?i.preferred:!1}constructor(i,t,n){this.kind=i,this.apply=t,this.preferred=n}}e.CodeActionCommandArgs=v;class f{constructor(i,t){this.action=i,this.provider=t}resolve(i){var t;return ye(this,void 0,void 0,function*(){if(((t=this.provider)===null||t===void 0?void 0:t.resolveCodeAction)&&!this.action.edit){let n;try{n=yield this.provider.resolveCodeAction(this.action,i)}catch(a){(0,C.onUnexpectedExternalError)(a)}n&&(this.action.edit=n.edit)}return this})}}e.CodeActionItem=f}),define(_[263],ee([1,0,64,12,4,22]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BlockCommentCommand=void 0;class L{constructor(v,f,g){this.d=g,this.a=v,this.b=f,this.c=null}static _haystackHasNeedleAtOffset(v,f,g){if(g<0)return!1;const i=f.length,t=v.length;if(g+i>t)return!1;for(let n=0;n<i;n++){const a=v.charCodeAt(g+n),r=f.charCodeAt(n);if(a!==r&&!(a>=65&&a<=90&&a+32===r)&&!(r>=65&&r<=90&&r+32===a))return!1}return!0}e(v,f,g,i,t,n){const a=v.startLineNumber,r=v.startColumn,c=v.endLineNumber,d=v.endColumn,s=t.getLineContent(a),l=t.getLineContent(c);let o=s.lastIndexOf(f,r-1+f.length),u=l.indexOf(g,d-1-g.length);if(o!==-1&&u!==-1)if(a===c)s.substring(o+f.length,u).indexOf(g)>=0&&(o=-1,u=-1);else{const w=s.substring(o+f.length),m=l.substring(0,u);(w.indexOf(g)>=0||m.indexOf(g)>=0)&&(o=-1,u=-1)}let h;o!==-1&&u!==-1?(i&&o+f.length<s.length&&s.charCodeAt(o+f.length)===32&&(f=f+" "),i&&u>0&&l.charCodeAt(u-1)===32&&(g=" "+g,u-=1),h=L._createRemoveBlockCommentOperations(new E.Range(a,o+f.length+1,c,u+1),f,g)):(h=L._createAddBlockCommentOperations(v,f,g,this.b),this.c=h.length===1?g:null);for(const w of h)n.addTrackedEditOperation(w.range,w.text)}static _createRemoveBlockCommentOperations(v,f,g){const i=[];return E.Range.isEmpty(v)?i.push(C.EditOperation.delete(new E.Range(v.startLineNumber,v.startColumn-f.length,v.endLineNumber,v.endColumn+g.length))):(i.push(C.EditOperation.delete(new E.Range(v.startLineNumber,v.startColumn-f.length,v.startLineNumber,v.startColumn))),i.push(C.EditOperation.delete(new E.Range(v.endLineNumber,v.endColumn,v.endLineNumber,v.endColumn+g.length)))),i}static _createAddBlockCommentOperations(v,f,g,i){const t=[];return E.Range.isEmpty(v)?t.push(C.EditOperation.replace(new E.Range(v.startLineNumber,v.startColumn,v.endLineNumber,v.endColumn),f+" "+g)):(t.push(C.EditOperation.insert(new N.Position(v.startLineNumber,v.startColumn),f+(i?" ":""))),t.push(C.EditOperation.insert(new N.Position(v.endLineNumber,v.endColumn),(i?" ":"")+g))),t}getEditOperations(v,f){const g=this.a.startLineNumber,i=this.a.startColumn;v.tokenization.tokenizeIfCheap(g);const t=v.getLanguageIdAtPosition(g,i),n=this.d.getLanguageConfiguration(t).comments;!n||!n.blockCommentStartToken||!n.blockCommentEndToken||this.e(this.a,n.blockCommentStartToken,n.blockCommentEndToken,this.b,v,f)}computeCursorState(v,f){const g=f.getInverseEditOperations();if(g.length===2){const i=g[0],t=g[1];return new I.Selection(i.range.endLineNumber,i.range.endColumn,t.range.startLineNumber,t.range.startColumn)}else{const i=g[0].range,t=this.c?-this.c.length-1:0;return new I.Selection(i.endLineNumber,i.endColumn+t,i.endLineNumber,i.endColumn+t)}}}e.BlockCommentCommand=L}),define(_[490],ee([1,0,9,64,12,4,22,263]),function(q,e,C,N,E,I,L,S){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LineCommentCommand=void 0;class v{constructor(g,i,t,n,a,r,c){this.l=g,this.a=i,this.b=t,this.c=n,this.d=a,this.f=null,this.g=0,this.h=!1,this.e=r,this.k=c||!1}static m(g,i,t,n){g.tokenization.tokenizeIfCheap(i);const a=g.getLanguageIdAtPosition(i,1),r=n.getLanguageConfiguration(a).comments,c=r?r.lineCommentToken:null;if(!c)return null;const d=[];for(let s=0,l=t-i+1;s<l;s++)d[s]={ignore:!1,commentStr:c,commentStrOffset:0,commentStrLength:c.length};return d}static _analyzeLines(g,i,t,n,a,r,c,d){let s=!0,l;g===0?l=!0:g===1?l=!1:l=!0;for(let o=0,u=n.length;o<u;o++){const h=n[o],w=a+o;if(w===a&&c){h.ignore=!0;continue}const m=t.getLineContent(w),p=C.firstNonWhitespaceIndex(m);if(p===-1){h.ignore=r,h.commentStrOffset=m.length;continue}if(s=!1,h.ignore=!1,h.commentStrOffset=p,l&&!S.BlockCommentCommand._haystackHasNeedleAtOffset(m,h.commentStr,p)&&(g===0?l=!1:g===1||(h.ignore=!0)),l&&i){const b=p+h.commentStrLength;b<m.length&&m.charCodeAt(b)===32&&(h.commentStrLength+=1)}}if(g===0&&s){l=!1;for(let o=0,u=n.length;o<u;o++)n[o].ignore=!1}return{supported:!0,shouldRemoveComments:l,lines:n}}static _gatherPreflightData(g,i,t,n,a,r,c,d){const s=v.m(t,n,a,d);return s===null?{supported:!1}:v._analyzeLines(g,i,t,s,n,r,c,d)}n(g,i,t,n){let a;t.shouldRemoveComments?a=v._createRemoveLineCommentsOperations(t.lines,n.startLineNumber):(v._normalizeInsertionPoint(g,t.lines,n.startLineNumber,this.b),a=this.q(t.lines,n.startLineNumber));const r=new E.Position(n.positionLineNumber,n.positionColumn);for(let c=0,d=a.length;c<d;c++)i.addEditOperation(a[c].range,a[c].text),I.Range.isEmpty(a[c].range)&&I.Range.getStartPosition(a[c].range).equals(r)&&g.getLineContent(r.lineNumber).length+1===r.column&&(this.g=(a[c].text||"").length);this.f=i.trackSelection(n)}o(g,i,t,n){let a=i.startLineNumber,r=i.endLineNumber;const c=n.length+Math.max(g.getLineFirstNonWhitespaceColumn(i.startLineNumber),i.startColumn);let d=g.getLineContent(a).lastIndexOf(t,c-1),s=g.getLineContent(r).indexOf(n,i.endColumn-1-t.length);return d!==-1&&s===-1&&(s=g.getLineContent(a).indexOf(n,d+t.length),r=a),d===-1&&s!==-1&&(d=g.getLineContent(r).lastIndexOf(t,s),a=r),i.isEmpty()&&(d===-1||s===-1)&&(d=g.getLineContent(a).indexOf(t),d!==-1&&(s=g.getLineContent(a).indexOf(n,d+t.length))),d!==-1&&g.getLineContent(a).charCodeAt(d+t.length)===32&&(t+=" "),s!==-1&&g.getLineContent(r).charCodeAt(s-1)===32&&(n=" "+n,s-=1),d!==-1&&s!==-1?S.BlockCommentCommand._createRemoveBlockCommentOperations(new I.Range(a,d+t.length+1,r,s+1),t,n):null}p(g,i,t){g.tokenization.tokenizeIfCheap(t.startLineNumber);const n=g.getLanguageIdAtPosition(t.startLineNumber,1),a=this.l.getLanguageConfiguration(n).comments;if(!a||!a.blockCommentStartToken||!a.blockCommentEndToken)return;const r=a.blockCommentStartToken,c=a.blockCommentEndToken;let d=this.o(g,t,r,c);if(!d){if(t.isEmpty()){const s=g.getLineContent(t.startLineNumber);let l=C.firstNonWhitespaceIndex(s);l===-1&&(l=s.length),d=S.BlockCommentCommand._createAddBlockCommentOperations(new I.Range(t.startLineNumber,l+1,t.startLineNumber,s.length+1),r,c,this.d)}else d=S.BlockCommentCommand._createAddBlockCommentOperations(new I.Range(t.startLineNumber,g.getLineFirstNonWhitespaceColumn(t.startLineNumber),t.endLineNumber,g.getLineMaxColumn(t.endLineNumber)),r,c,this.d);d.length===1&&(this.g=r.length+1)}this.f=i.trackSelection(t);for(const s of d)i.addEditOperation(s.range,s.text)}getEditOperations(g,i){let t=this.a;if(this.h=!1,t.startLineNumber===t.endLineNumber&&this.k){i.addEditOperation(new I.Range(t.startLineNumber,g.getLineMaxColumn(t.startLineNumber),t.startLineNumber+1,1),t.startLineNumber===g.getLineCount()?"":`
|
||
`),this.f=i.trackSelection(t);return}t.startLineNumber<t.endLineNumber&&t.endColumn===1&&(this.h=!0,t=t.setEndPosition(t.endLineNumber-1,g.getLineMaxColumn(t.endLineNumber-1)));const n=v._gatherPreflightData(this.c,this.d,g,t.startLineNumber,t.endLineNumber,this.e,this.k,this.l);return n.supported?this.n(g,i,n,t):this.p(g,i,t)}computeCursorState(g,i){let t=i.getTrackedSelection(this.f);return this.h&&(t=t.setEndPosition(t.endLineNumber+1,1)),new L.Selection(t.selectionStartLineNumber,t.selectionStartColumn+this.g,t.positionLineNumber,t.positionColumn+this.g)}static _createRemoveLineCommentsOperations(g,i){const t=[];for(let n=0,a=g.length;n<a;n++){const r=g[n];r.ignore||t.push(N.EditOperation.delete(new I.Range(i+n,r.commentStrOffset+1,i+n,r.commentStrOffset+r.commentStrLength+1)))}return t}q(g,i){const t=[],n=this.d?" ":"";for(let a=0,r=g.length;a<r;a++){const c=g[a];c.ignore||t.push(N.EditOperation.insert(new E.Position(i+a,c.commentStrOffset+1),c.commentStr+n))}return t}static r(g,i,t,n){return t?g+(i-g%i):g+n}static _normalizeInsertionPoint(g,i,t,n){let a=1073741824,r,c;for(let d=0,s=i.length;d<s;d++){if(i[d].ignore)continue;const l=g.getLineContent(t+d);let o=0;for(let u=0,h=i[d].commentStrOffset;o<a&&u<h;u++)o=v.r(o,n,l.charCodeAt(u)===9,1);o<a&&(a=o)}a=Math.floor(a/n)*n;for(let d=0,s=i.length;d<s;d++){if(i[d].ignore)continue;const l=g.getLineContent(t+d);let o=0;for(r=0,c=i[d].commentStrOffset;o<a&&r<c;r++)o=v.r(o,n,l.charCodeAt(r)===9,1);o>a?i[d].commentStrOffset=r-1:i[d].commentStrOffset=r}}}e.LineCommentCommand=v}),define(_[491],ee([1,0,4,22]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DragAndDropCommand=void 0;class E{constructor(L,S,v){this.a=L,this.b=S,this.d=v,this.c=null}getEditOperations(L,S){const v=L.getValueInRange(this.a);if(this.d||S.addEditOperation(this.a,null),S.addEditOperation(new C.Range(this.b.lineNumber,this.b.column,this.b.lineNumber,this.b.column),v),this.a.containsPosition(this.b)&&!(this.d&&(this.a.getEndPosition().equals(this.b)||this.a.getStartPosition().equals(this.b)))){this.c=this.a;return}if(this.d){this.c=new N.Selection(this.b.lineNumber,this.b.column,this.a.endLineNumber-this.a.startLineNumber+this.b.lineNumber,this.a.startLineNumber===this.a.endLineNumber?this.b.column+this.a.endColumn-this.a.startColumn:this.a.endColumn);return}if(this.b.lineNumber>this.a.endLineNumber){this.c=new N.Selection(this.b.lineNumber-this.a.endLineNumber+this.a.startLineNumber,this.b.column,this.b.lineNumber,this.a.startLineNumber===this.a.endLineNumber?this.b.column+this.a.endColumn-this.a.startColumn:this.a.endColumn);return}if(this.b.lineNumber<this.a.endLineNumber){this.c=new N.Selection(this.b.lineNumber,this.b.column,this.b.lineNumber+this.a.endLineNumber-this.a.startLineNumber,this.a.startLineNumber===this.a.endLineNumber?this.b.column+this.a.endColumn-this.a.startColumn:this.a.endColumn);return}this.a.endColumn<=this.b.column?this.c=new N.Selection(this.b.lineNumber-this.a.endLineNumber+this.a.startLineNumber,this.a.startLineNumber===this.a.endLineNumber?this.b.column-this.a.endColumn+this.a.startColumn:this.b.column-this.a.endColumn+this.a.startColumn,this.b.lineNumber,this.a.startLineNumber===this.a.endLineNumber?this.b.column:this.a.endColumn):this.c=new N.Selection(this.b.lineNumber-this.a.endLineNumber+this.a.startLineNumber,this.b.column,this.b.lineNumber,this.b.column+this.a.endColumn-this.a.startColumn)}computeCursorState(L,S){return this.c}}e.DragAndDropCommand=E}),define(_[492],ee([1,0,4]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ReplaceAllCommand=void 0;class N{constructor(I,L,S){this.a=I,this.c=L,this.d=S,this.b=null}getEditOperations(I,L){if(this.c.length>0){const S=[];for(let g=0;g<this.c.length;g++)S.push({range:this.c[g],text:this.d[g]});S.sort((g,i)=>C.Range.compareRangesUsingStarts(g.range,i.range));const v=[];let f=S[0];for(let g=1;g<S.length;g++)f.range.endLineNumber===S[g].range.startLineNumber&&f.range.endColumn===S[g].range.startColumn?(f.range=f.range.plusRange(S[g].range),f.text=f.text+S[g].text):(v.push(f),f=S[g]);v.push(f);for(const g of v)L.addEditOperation(g.range,g.text)}this.b=L.trackSelection(this.a)}computeCursorState(I,L){return L.getTrackedSelection(this.b)}}e.ReplaceAllCommand=N}),define(_[493],ee([1,0,350]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseReplaceString=e.ReplacePiece=e.ReplacePattern=void 0;class N{constructor(g){this.staticValue=g,this.kind=0}}class E{constructor(g){this.pieces=g,this.kind=1}}class I{static fromStaticValue(g){return new I([L.staticValue(g)])}get hasReplacementPatterns(){return this.a.kind===1}constructor(g){!g||g.length===0?this.a=new N(""):g.length===1&&g[0].staticValue!==null?this.a=new N(g[0].staticValue):this.a=new E(g)}buildReplaceString(g,i){if(this.a.kind===0)return i?(0,C.buildReplaceStringWithCasePreserved)(g,this.a.staticValue):this.a.staticValue;let t="";for(let n=0,a=this.a.pieces.length;n<a;n++){const r=this.a.pieces[n];if(r.staticValue!==null){t+=r.staticValue;continue}let c=I.b(r.matchIndex,g);if(r.caseOps!==null&&r.caseOps.length>0){const d=[],s=r.caseOps.length;let l=0;for(let o=0,u=c.length;o<u;o++){if(l>=s){d.push(c.slice(o));break}switch(r.caseOps[l]){case"U":d.push(c[o].toUpperCase());break;case"u":d.push(c[o].toUpperCase()),l++;break;case"L":d.push(c[o].toLowerCase());break;case"l":d.push(c[o].toLowerCase()),l++;break;default:d.push(c[o])}}c=d.join("")}t+=c}return t}static b(g,i){if(i===null)return"";if(g===0)return i[0];let t="";for(;g>0;){if(g<i.length)return(i[g]||"")+t;t=String(g%10)+t,g=Math.floor(g/10)}return"$"+t}}e.ReplacePattern=I;class L{static staticValue(g){return new L(g,-1,null)}static caseOps(g,i){return new L(null,g,i)}constructor(g,i,t){this.staticValue=g,this.matchIndex=i,!t||t.length===0?this.caseOps=null:this.caseOps=t.slice(0)}}e.ReplacePiece=L;class S{constructor(g){this.a=g,this.b=0,this.c=[],this.d=0,this.e=""}emitUnchanged(g){this.f(this.a.substring(this.b,g)),this.b=g}emitStatic(g,i){this.f(g),this.b=i}f(g){g.length!==0&&(this.e+=g)}emitMatchIndex(g,i,t){this.e.length!==0&&(this.c[this.d++]=L.staticValue(this.e),this.e=""),this.c[this.d++]=L.caseOps(g,t),this.b=i}finalize(){return this.emitUnchanged(this.a.length),this.e.length!==0&&(this.c[this.d++]=L.staticValue(this.e),this.e=""),new I(this.c)}}function v(f){if(!f||f.length===0)return new I(null);const g=[],i=new S(f);for(let t=0,n=f.length;t<n;t++){const a=f.charCodeAt(t);if(a===92){if(t++,t>=n)break;const r=f.charCodeAt(t);switch(r){case 92:i.emitUnchanged(t-1),i.emitStatic("\\",t+1);break;case 110:i.emitUnchanged(t-1),i.emitStatic(`
|
||
`,t+1);break;case 116:i.emitUnchanged(t-1),i.emitStatic(" ",t+1);break;case 117:case 85:case 108:case 76:i.emitUnchanged(t-1),i.emitStatic("",t+1),g.push(String.fromCharCode(r));break}continue}if(a===36){if(t++,t>=n)break;const r=f.charCodeAt(t);if(r===36){i.emitUnchanged(t-1),i.emitStatic("$",t+1);continue}if(r===48||r===38){i.emitUnchanged(t-1),i.emitMatchIndex(0,t+1,g),g.length=0;continue}if(49<=r&&r<=57){let c=r-48;if(t+1<n){const d=f.charCodeAt(t+1);if(48<=d&&d<=57){t++,c=c*10+(d-48),i.emitUnchanged(t-2),i.emitMatchIndex(c,t+1,g),g.length=0;continue}}i.emitUnchanged(t-1),i.emitMatchIndex(c,t+1,g),g.length=0;continue}}}return i.finalize()}e.parseReplaceString=v}),define(_[166],ee([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=e.foldSourceAbbr=void 0,e.foldSourceAbbr={[0]:" ",[1]:"u",[2]:"r"},e.MAX_FOLDING_REGIONS=65535,e.MAX_LINE_NUMBER=16777215;const C=4278190080;class N{constructor(S){const v=Math.ceil(S/32);this.a=new Uint32Array(v)}get(S){const v=S/32|0,f=S%32;return(this.a[v]&1<<f)!==0}set(S,v){const f=S/32|0,g=S%32,i=this.a[f];v?this.a[f]=i|1<<g:this.a[f]=i&~(1<<g)}}class E{constructor(S,v,f){if(S.length!==v.length||S.length>e.MAX_FOLDING_REGIONS)throw new Error("invalid startIndexes or endIndexes size");this.a=S,this.b=v,this.c=new N(S.length),this.d=new N(S.length),this.e=new N(S.length),this.g=f,this.f=!1}h(){if(!this.f){this.f=!0;const S=[],v=(f,g)=>{const i=S[S.length-1];return this.getStartLineNumber(i)<=f&&this.getEndLineNumber(i)>=g};for(let f=0,g=this.a.length;f<g;f++){const i=this.a[f],t=this.b[f];if(i>e.MAX_LINE_NUMBER||t>e.MAX_LINE_NUMBER)throw new Error("startLineNumber or endLineNumber must not exceed "+e.MAX_LINE_NUMBER);for(;S.length>0&&!v(i,t);)S.pop();const n=S.length>0?S[S.length-1]:-1;S.push(f),this.a[f]=i+((n&255)<<24),this.b[f]=t+((n&65280)<<16)}}}get length(){return this.a.length}getStartLineNumber(S){return this.a[S]&e.MAX_LINE_NUMBER}getEndLineNumber(S){return this.b[S]&e.MAX_LINE_NUMBER}getType(S){return this.g?this.g[S]:void 0}hasTypes(){return!!this.g}isCollapsed(S){return this.c.get(S)}setCollapsed(S,v){this.c.set(S,v)}j(S){return this.d.get(S)}k(S,v){return this.d.set(S,v)}l(S){return this.e.get(S)}m(S,v){return this.e.set(S,v)}getSource(S){return this.j(S)?1:this.l(S)?2:0}setSource(S,v){v===1?(this.k(S,!0),this.m(S,!1)):v===2?(this.k(S,!1),this.m(S,!0)):(this.k(S,!1),this.m(S,!1))}setCollapsedAllOfType(S,v){let f=!1;if(this.g)for(let g=0;g<this.g.length;g++)this.g[g]===S&&(this.setCollapsed(g,v),f=!0);return f}toRegion(S){return new I(this,S)}getParentIndex(S){this.h();const v=((this.a[S]&C)>>>24)+((this.b[S]&C)>>>16);return v===e.MAX_FOLDING_REGIONS?-1:v}contains(S,v){return this.getStartLineNumber(S)<=v&&this.getEndLineNumber(S)>=v}n(S){let v=0,f=this.a.length;if(f===0)return-1;for(;v<f;){const g=Math.floor((v+f)/2);S<this.getStartLineNumber(g)?f=g:v=g+1}return v-1}findRange(S){let v=this.n(S);if(v>=0){if(this.getEndLineNumber(v)>=S)return v;for(v=this.getParentIndex(v);v!==-1;){if(this.contains(v,S))return v;v=this.getParentIndex(v)}}return-1}toString(){const S=[];for(let v=0;v<this.length;v++)S[v]=`[${e.foldSourceAbbr[this.getSource(v)]}${this.isCollapsed(v)?"+":"-"}] ${this.getStartLineNumber(v)}/${this.getEndLineNumber(v)}`;return S.join(", ")}toFoldRange(S){return{startLineNumber:this.a[S]&e.MAX_LINE_NUMBER,endLineNumber:this.b[S]&e.MAX_LINE_NUMBER,type:this.g?this.g[S]:void 0,isCollapsed:this.isCollapsed(S),source:this.getSource(S)}}static fromFoldRanges(S){const v=S.length,f=new Uint32Array(v),g=new Uint32Array(v);let i=[],t=!1;for(let a=0;a<v;a++){const r=S[a];f[a]=r.startLineNumber,g[a]=r.endLineNumber,i.push(r.type),r.type&&(t=!0)}t||(i=void 0);const n=new E(f,g,i);for(let a=0;a<v;a++)S[a].isCollapsed&&n.setCollapsed(a,!0),n.setSource(a,S[a].source);return n}static sanitizeAndMerge(S,v,f){f=f??Number.MAX_VALUE;const g=(u,h)=>Array.isArray(u)?w=>w<h?u[w]:void 0:w=>w<h?u.toFoldRange(w):void 0,i=g(S,S.length),t=g(v,v.length);let n=0,a=0,r=i(0),c=t(0);const d=[];let s,l=0;const o=[];for(;r||c;){let u;if(c&&(!r||r.startLineNumber>=c.startLineNumber))r&&r.startLineNumber===c.startLineNumber?(c.source===1?u=c:(u=r,u.isCollapsed=c.isCollapsed&&r.endLineNumber===c.endLineNumber,u.source=0),r=i(++n)):(u=c,c.isCollapsed&&c.source===0&&(u.source=2)),c=t(++a);else{let h=a,w=c;for(;;){if(!w||w.startLineNumber>r.endLineNumber){u=r;break}if(w.source===1&&w.endLineNumber>r.endLineNumber)break;w=t(++h)}r=i(++n)}if(u){for(;s&&s.endLineNumber<u.startLineNumber;)s=d.pop();u.endLineNumber>u.startLineNumber&&u.startLineNumber>l&&u.endLineNumber<=f&&(!s||s.endLineNumber>=u.endLineNumber)&&(o.push(u),l=u.startLineNumber,s&&d.push(s),s=u)}}return o}}e.FoldingRegions=E;class I{constructor(S,v){this.a=S,this.b=v}get startLineNumber(){return this.a.getStartLineNumber(this.b)}get endLineNumber(){return this.a.getEndLineNumber(this.b)}get regionIndex(){return this.b}get parentIndex(){return this.a.getParentIndex(this.b)}get isCollapsed(){return this.a.isCollapsed(this.b)}containedBy(S){return S.startLineNumber<=this.startLineNumber&&S.endLineNumber>=this.endLineNumber}containsLine(S){return this.startLineNumber<=S&&S<=this.endLineNumber}}e.FoldingRegion=I}),define(_[494],ee([1,0,191,166]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.computeRanges=e.IndentRangeProvider=void 0;const E=5e3,I="indent";class L{constructor(i,t,n){this.a=i,this.b=t,this.c=n,this.id=I}dispose(){}compute(i){const t=this.b.getLanguageConfiguration(this.a.getLanguageId()).foldingRules,n=t&&!!t.offSide,a=t&&t.markers;return Promise.resolve(f(this.a,n,a,this.c))}}e.IndentRangeProvider=L;class S{constructor(i){this.a=[],this.b=[],this.c=[],this.d=0,this.e=i}insertFirst(i,t,n){if(i>N.MAX_LINE_NUMBER||t>N.MAX_LINE_NUMBER)return;const a=this.d;this.a[a]=i,this.b[a]=t,this.d++,n<1e3&&(this.c[n]=(this.c[n]||0)+1)}toIndentRanges(i){const t=this.e.limit;if(this.d<=t){this.e.update(this.d,!1);const n=new Uint32Array(this.d),a=new Uint32Array(this.d);for(let r=this.d-1,c=0;r>=0;r--,c++)n[c]=this.a[r],a[c]=this.b[r];return new N.FoldingRegions(n,a)}else{this.e.update(this.d,t);let n=0,a=this.c.length;for(let s=0;s<this.c.length;s++){const l=this.c[s];if(l){if(l+n>t){a=s;break}n+=l}}const r=i.getOptions().tabSize,c=new Uint32Array(t),d=new Uint32Array(t);for(let s=this.d-1,l=0;s>=0;s--){const o=this.a[s],u=i.getLineContent(o),h=(0,C.computeIndentLevel)(u,r);(h<a||h===a&&n++<t)&&(c[l]=o,d[l]=this.b[s],l++)}return new N.FoldingRegions(c,d)}}}const v={limit:E,update:()=>{}};function f(g,i,t,n=v){const a=g.getOptions().tabSize,r=new S(n);let c;t&&(c=new RegExp(`(${t.start.source})|(?:${t.end.source})`));const d=[],s=g.getLineCount()+1;d.push({indent:-1,endAbove:s,line:s});for(let l=g.getLineCount();l>0;l--){const o=g.getLineContent(l),u=(0,C.computeIndentLevel)(o,a);let h=d[d.length-1];if(u===-1){i&&(h.endAbove=l);continue}let w;if(c&&(w=o.match(c)))if(w[1]){let m=d.length-1;for(;m>0&&d[m].indent!==-2;)m--;if(m>0){d.length=m+1,h=d[m],r.insertFirst(l,h.line,u),h.line=l,h.indent=u,h.endAbove=l;continue}}else{d.push({indent:-2,endAbove:l,line:l});continue}if(h.indent>u){do d.pop(),h=d[d.length-1];while(h.indent>u);const m=h.endAbove-1;m-l>=1&&r.insertFirst(l,m,u)}h.indent===u?h.endAbove=l:d.push({indent:u,endAbove:l,line:l})}return r.toIndentRanges(g)}e.computeRanges=f}),define(_[495],ee([1,0,13,2,166]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sanitizeRanges=e.SyntaxRangeProvider=void 0;const I={},L="syntax";class S{constructor(t,n,a,r,c){this.a=t,this.b=n,this.handleFoldingRangesChange=a,this.c=r,this.d=c,this.id=L,this.disposables=new N.DisposableStore,c&&this.disposables.add(c);for(const d of n)typeof d.onDidChange=="function"&&this.disposables.add(d.onDidChange(a))}compute(t){return v(this.b,this.a,t).then(n=>{var a,r;return n?g(n,this.c):(r=(a=this.d)===null||a===void 0?void 0:a.compute(t))!==null&&r!==void 0?r:null})}dispose(){this.disposables.dispose()}}e.SyntaxRangeProvider=S;function v(i,t,n){let a=null;const r=i.map((c,d)=>Promise.resolve(c.provideFoldingRanges(t,I,n)).then(s=>{if(!n.isCancellationRequested&&Array.isArray(s)){Array.isArray(a)||(a=[]);const l=t.getLineCount();for(const o of s)o.start>0&&o.end>o.start&&o.end<=l&&a.push({start:o.start,end:o.end,rank:d,kind:o.kind})}},C.onUnexpectedExternalError));return Promise.all(r).then(c=>a)}class f{constructor(t){this.a=[],this.b=[],this.c=[],this.d=[],this.e=[],this.f=0,this.g=t}add(t,n,a,r){if(t>E.MAX_LINE_NUMBER||n>E.MAX_LINE_NUMBER)return;const c=this.f;this.a[c]=t,this.b[c]=n,this.c[c]=r,this.e[c]=a,this.f++,r<30&&(this.d[r]=(this.d[r]||0)+1)}toIndentRanges(){const t=this.g.limit;if(this.f<=t){this.g.update(this.f,!1);const n=new Uint32Array(this.f),a=new Uint32Array(this.f);for(let r=0;r<this.f;r++)n[r]=this.a[r],a[r]=this.b[r];return new E.FoldingRegions(n,a,this.e)}else{this.g.update(this.f,t);let n=0,a=this.d.length;for(let s=0;s<this.d.length;s++){const l=this.d[s];if(l){if(l+n>t){a=s;break}n+=l}}const r=new Uint32Array(t),c=new Uint32Array(t),d=[];for(let s=0,l=0;s<this.f;s++){const o=this.c[s];(o<a||o===a&&n++<t)&&(r[l]=this.a[s],c[l]=this.b[s],d[l]=this.e[s],l++)}return new E.FoldingRegions(r,c,d)}}}function g(i,t){const n=i.sort((d,s)=>{let l=d.start-s.start;return l===0&&(l=d.rank-s.rank),l}),a=new f(t);let r;const c=[];for(const d of n)if(!r)r=d,a.add(d.start,d.end,d.kind&&d.kind.value,c.length);else if(d.start>r.start)if(d.end<=r.end)c.push(r),r=d,a.add(d.start,d.end,d.kind&&d.kind.value,c.length);else{if(d.start>r.end){do r=c.pop();while(r&&d.start>r.end);r&&c.push(r),r=d}a.add(d.start,d.end,d.kind&&d.kind.value,c.length)}return a.toIndentRanges()}e.sanitizeRanges=g}),define(_[264],ee([1,0,64,4,112]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FormattingEdit=void 0;class I{static a(S,v){let f;const g=[];for(const i of v)typeof i.eol=="number"&&(f=i.eol),i.range&&typeof i.text=="string"&&g.push(i);return typeof f=="number"&&S.hasModel()&&S.getModel().pushEOL(f),g}static b(S,v){if(!S.hasModel())return!1;const f=S.getModel(),g=f.validateRange(v.range);return f.getFullModelRange().equalsRange(g)}static execute(S,v,f){f&&S.pushUndoStop();const g=E.StableEditorScrollState.capture(S),i=I.a(S,v);i.length===1&&I.b(S,i[0])?S.executeEdits("formatEditsCommand",i.map(t=>C.EditOperation.replace(N.Range.lift(t.range),t.text))):S.executeEdits("formatEditsCommand",i.map(t=>C.EditOperation.replaceMove(N.Range.lift(t.range),t.text))),f&&S.pushUndoStop(),g.restoreRelativeVerticalPositionOfCursor(S)}}e.FormattingEdit=I}),define(_[93],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HoverParticipantRegistry=e.HoverForeignElementAnchor=e.HoverRangeAnchor=void 0;class C{constructor(I,L,S,v){this.priority=I,this.range=L,this.initialMousePosX=S,this.initialMousePosY=v,this.type=1}equals(I){return I.type===1&&this.range.equalsRange(I.range)}canAdoptVisibleHover(I,L){return I.type===1&&L.lineNumber===this.range.startLineNumber}}e.HoverRangeAnchor=C;class N{constructor(I,L,S,v,f,g){this.priority=I,this.owner=L,this.range=S,this.initialMousePosX=v,this.initialMousePosY=f,this.supportsMarkerHover=g,this.type=2}equals(I){return I.type===2&&this.owner===I.owner}canAdoptVisibleHover(I,L){return I.type===2&&this.owner===I.owner}}e.HoverForeignElementAnchor=N,e.HoverParticipantRegistry=new class{constructor(){this._participants=[]}register(I){this._participants.push(I)}getAll(){return this._participants}}}),define(_[496],ee([1,0,22]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InPlaceReplaceCommand=void 0;class N{constructor(I,L,S){this.a=I,this.b=L,this.c=S}getEditOperations(I,L){L.addTrackedEditOperation(this.a,this.c)}computeCursorState(I,L){const v=L.getInverseEditOperations()[0].range;return this.b.isEmpty()?new C.Selection(v.endLineNumber,Math.min(this.b.positionColumn,v.endColumn),v.endLineNumber,Math.min(this.b.positionColumn,v.endColumn)):new C.Selection(v.endLineNumber,v.endColumn-this.c.length,v.endLineNumber,v.endColumn)}}e.InPlaceReplaceCommand=N}),define(_[265],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.generateIndent=e.getSpaceCnt=void 0;function C(E,I){let L=0;for(let S=0;S<E.length;S++)E.charAt(S)===" "?L+=I:L++;return L}e.getSpaceCnt=C;function N(E,I,L){E=E<0?0:E;let S="";if(!L){const v=Math.floor(E/I);E=E%I;for(let f=0;f<v;f++)S+=" "}for(let v=0;v<E;v++)S+=" ";return S}e.generateIndent=N}),define(_[195],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.showNextInlineSuggestionActionId=e.showPreviousInlineSuggestionActionId=e.inlineSuggestCommitId=void 0,e.inlineSuggestCommitId="editor.action.inlineSuggest.commit",e.showPreviousInlineSuggestionActionId="editor.action.inlineSuggest.showPrevious",e.showNextInlineSuggestionActionId="editor.action.inlineSuggest.showNext"}),define(_[196],ee([1,0,4]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getReadonlyEmptyArray=e.applyEdits=e.createDisposableRef=void 0;function N(v,f){return{object:v,dispose:()=>f?.dispose()}}e.createDisposableRef=N;function E(v,f){const g=new I(v),i=f.map(t=>{const n=C.Range.lift(t.range);return{startOffset:g.getOffset(n.getStartPosition()),endOffset:g.getOffset(n.getEndPosition()),text:t.text}});i.sort((t,n)=>n.startOffset-t.startOffset);for(const t of i)v=v.substring(0,t.startOffset)+t.text+v.substring(t.endOffset);return v}e.applyEdits=E;class I{constructor(f){this.c=[],this.c.push(0);for(let g=0;g<f.length;g++)f.charAt(g)===`
|
||
`&&this.c.push(g+1)}getOffset(f){return this.c[f.lineNumber-1]+f.column-1}}const L=[];function S(){return L}e.getReadonlyEmptyArray=S}),define(_[497],ee([1,0,4,22]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CopyLinesCommand=void 0;class E{constructor(L,S,v){this.a=L,this.b=S,this.c=v||!1,this.d=0,this.e=null,this.f=0,this.g=0}getEditOperations(L,S){let v=this.a;this.f=0,this.g=0,v.startLineNumber<v.endLineNumber&&v.endColumn===1&&(this.g=1,v=v.setEndPosition(v.endLineNumber-1,L.getLineMaxColumn(v.endLineNumber-1)));const f=[];for(let i=v.startLineNumber;i<=v.endLineNumber;i++)f.push(L.getLineContent(i));const g=f.join(`
|
||
`);g===""&&this.b&&(this.f++,this.g++),this.c?S.addEditOperation(new C.Range(v.endLineNumber,L.getLineMaxColumn(v.endLineNumber),v.endLineNumber+1,1),v.endLineNumber===L.getLineCount()?"":`
|
||
`):this.b?S.addEditOperation(new C.Range(v.startLineNumber,1,v.startLineNumber,1),g+`
|
||
`):S.addEditOperation(new C.Range(v.endLineNumber,L.getLineMaxColumn(v.endLineNumber),v.endLineNumber,L.getLineMaxColumn(v.endLineNumber)),`
|
||
`+g),this.e=S.trackSelection(v),this.d=this.a.getDirection()}computeCursorState(L,S){let v=S.getTrackedSelection(this.e);if(this.f!==0||this.g!==0){let f=v.startLineNumber,g=v.startColumn,i=v.endLineNumber,t=v.endColumn;this.f!==0&&(f=f+this.f,g=1),this.g!==0&&(i=i+this.g,t=1),v=N.Selection.createWithDirection(f,g,i,t,this.d)}return v}}e.CopyLinesCommand=E}),define(_[498],ee([1,0,64,4]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SortLinesCommand=void 0;class E{static getCollator(){return E.a||(E.a=new Intl.Collator),E.a}constructor(v,f){this.b=v,this.c=f,this.d=null}getEditOperations(v,f){const g=L(v,this.b,this.c);g&&f.addEditOperation(g.range,g.text),this.d=f.trackSelection(this.b)}computeCursorState(v,f){return f.getTrackedSelection(this.d)}static canRun(v,f,g){if(v===null)return!1;const i=I(v,f,g);if(!i)return!1;for(let t=0,n=i.before.length;t<n;t++)if(i.before[t]!==i.after[t])return!0;return!1}}E.a=null,e.SortLinesCommand=E;function I(S,v,f){const g=v.startLineNumber;let i=v.endLineNumber;if(v.endColumn===1&&i--,g>=i)return null;const t=[];for(let a=g;a<=i;a++)t.push(S.getLineContent(a));let n=t.slice(0);return n.sort(E.getCollator().compare),f===!0&&(n=n.reverse()),{startLineNumber:g,endLineNumber:i,before:t,after:n}}function L(S,v,f){const g=I(S,v,f);return g?C.EditOperation.replace(new N.Range(g.startLineNumber,1,g.endLineNumber,S.getLineMaxColumn(g.endLineNumber)),g.after.join(`
|
||
`)):null}}),define(_[266],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isSemanticColoringEnabled=e.SEMANTIC_HIGHLIGHTING_SETTING_ID=void 0,e.SEMANTIC_HIGHLIGHTING_SETTING_ID="editor.semanticHighlighting";function C(N,E,I){var L;const S=(L=I.getValue(e.SEMANTIC_HIGHLIGHTING_SETTING_ID,{overrideIdentifier:N.getLanguageId(),resource:N.uri}))===null||L===void 0?void 0:L.enabled;return typeof S=="boolean"?S:E.getColorTheme().semanticHighlighting}e.isSemanticColoringEnabled=C}),define(_[267],ee([1,0,59,12,4]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BracketSelectionRangeProvider=void 0;class I{provideSelectionRanges(S,v){return ye(this,void 0,void 0,function*(){const f=[];for(const g of v){const i=[];f.push(i);const t=new Map;yield new Promise(n=>I.b(n,0,S,g,t)),yield new Promise(n=>I.c(n,0,S,g,t,i))}return f})}static b(S,v,f,g,i){const t=new Map,n=Date.now();for(;;){if(v>=I.a){S();break}if(!g){S();break}const a=f.bracketPairs.findNextBracket(g);if(!a){S();break}if(Date.now()-n>I._maxDuration){setTimeout(()=>I.b(S,v+1,f,g,i));break}if(a.bracketInfo.isOpeningBracket){const c=a.bracketInfo.bracketText,d=t.has(c)?t.get(c):0;t.set(c,d+1)}else{const c=a.bracketInfo.getOpeningBrackets()[0].bracketText;let d=t.has(c)?t.get(c):0;if(d-=1,t.set(c,Math.max(0,d)),d<0){let s=i.get(c);s||(s=new C.LinkedList,i.set(c,s)),s.push(a.range)}}g=a.range.getEndPosition()}}static c(S,v,f,g,i,t){const n=new Map,a=Date.now();for(;;){if(v>=I.a&&i.size===0){S();break}if(!g){S();break}const r=f.bracketPairs.findPrevBracket(g);if(!r){S();break}if(Date.now()-a>I._maxDuration){setTimeout(()=>I.c(S,v+1,f,g,i,t));break}if(r.bracketInfo.isOpeningBracket){const d=r.bracketInfo.bracketText;let s=n.has(d)?n.get(d):0;if(s-=1,n.set(d,Math.max(0,s)),s<0){const l=i.get(d);if(l){const o=l.shift();l.size===0&&i.delete(d);const u=E.Range.fromPositions(r.range.getEndPosition(),o.getStartPosition()),h=E.Range.fromPositions(r.range.getStartPosition(),o.getEndPosition());t.push({range:u}),t.push({range:h}),I.e(f,h,t)}}}else{const d=r.bracketInfo.getOpeningBrackets()[0].bracketText,s=n.has(d)?n.get(d):0;n.set(d,s+1)}g=r.range.getStartPosition()}}static e(S,v,f){if(v.startLineNumber===v.endLineNumber)return;const g=v.startLineNumber,i=S.getLineFirstNonWhitespaceColumn(g);i!==0&&i!==v.startColumn&&(f.push({range:E.Range.fromPositions(new N.Position(g,i),v.getEndPosition())}),f.push({range:E.Range.fromPositions(new N.Position(g,1),v.getEndPosition())}));const t=g-1;if(t>0){const n=S.getLineFirstNonWhitespaceColumn(t);n===v.startColumn&&n!==S.getLineLastNonWhitespaceColumn(t)&&(f.push({range:E.Range.fromPositions(new N.Position(t,n),v.getEndPosition())}),f.push({range:E.Range.fromPositions(new N.Position(t,1),v.getEndPosition())}))}}}I._maxDuration=30,I.a=2,e.BracketSelectionRangeProvider=I}),define(_[499],ee([1,0,9,4]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WordSelectionRangeProvider=void 0;class E{provideSelectionRanges(L,S){const v=[];for(const f of S){const g=[];v.push(g),this.a(g,L,f),this.b(g,L,f),this.c(g,L,f),g.push({range:L.getFullModelRange()})}return v}a(L,S,v){const f=S.getWordAtPosition(v);if(!f)return;const{word:g,startColumn:i}=f,t=v.column-i;let n=t,a=t,r=0;for(;n>=0;n--){const c=g.charCodeAt(n);if(n!==t&&(c===95||c===45))break;if((0,C.isLowerAsciiLetter)(c)&&(0,C.isUpperAsciiLetter)(r))break;r=c}for(n+=1;a<g.length;a++){const c=g.charCodeAt(a);if((0,C.isUpperAsciiLetter)(c)&&(0,C.isLowerAsciiLetter)(r))break;if(c===95||c===45)break;r=c}n<a&&L.push({range:new N.Range(v.lineNumber,i+n,v.lineNumber,i+a)})}b(L,S,v){const f=S.getWordAtPosition(v);f&&L.push({range:new N.Range(v.lineNumber,f.startColumn,v.lineNumber,f.endColumn)})}c(L,S,v){S.getLineLength(v.lineNumber)>0&&S.getLineFirstNonWhitespaceColumn(v.lineNumber)===0&&S.getLineLastNonWhitespaceColumn(v.lineNumber)===0&&L.push({range:new N.Range(v.lineNumber,1,v.lineNumber,S.getLineMaxColumn(v.lineNumber))})}}e.WordSelectionRangeProvider=E}),define(_[94],ee([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 C{constructor(){this.value="",this.pos=0}static isDigitCharacter(r){return r>=48&&r<=57}static isVariableCharacter(r){return r===95||r>=97&&r<=122||r>=65&&r<=90}text(r){this.value=r,this.pos=0}tokenText(r){return this.value.substr(r.pos,r.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};const r=this.pos;let c=0,d=this.value.charCodeAt(r),s;if(s=C.c[d],typeof s=="number")return this.pos+=1,{type:s,pos:r,len:1};if(C.isDigitCharacter(d)){s=8;do c+=1,d=this.value.charCodeAt(r+c);while(C.isDigitCharacter(d));return this.pos+=c,{type:s,pos:r,len:c}}if(C.isVariableCharacter(d)){s=9;do d=this.value.charCodeAt(r+ ++c);while(C.isVariableCharacter(d)||C.isDigitCharacter(d));return this.pos+=c,{type:s,pos:r,len:c}}s=10;do c+=1,d=this.value.charCodeAt(r+c);while(!isNaN(d)&&typeof C.c[d]>"u"&&!C.isDigitCharacter(d)&&!C.isVariableCharacter(d));return this.pos+=c,{type:s,pos:r,len:c}}}C.c={[36]:0,[58]:1,[44]:2,[123]:3,[125]:4,[92]:5,[47]:6,[124]:7,[43]:11,[45]:12,[63]:13},e.Scanner=C;class N{constructor(){this.c=[]}appendChild(r){return r instanceof E&&this.c[this.c.length-1]instanceof E?this.c[this.c.length-1].value+=r.value:(r.parent=this,this.c.push(r)),this}replace(r,c){const{parent:d}=r,s=d.children.indexOf(r),l=d.children.slice(0);l.splice(s,1,...c),d.c=l,function o(u,h){for(const w of u)w.parent=h,o(w.children,w)}(c,d)}get children(){return this.c}get rightMostDescendant(){return this.c.length>0?this.c[this.c.length-1].rightMostDescendant:this}get snippet(){let r=this;for(;;){if(!r)return;if(r instanceof t)return r;r=r.parent}}toString(){return this.children.reduce((r,c)=>r+c.toString(),"")}len(){return 0}}e.Marker=N;class E extends N{constructor(r){super(),this.value=r}toString(){return this.value}len(){return this.value.length}clone(){return new E(this.value)}}e.Text=E;class I extends N{}e.TransformableMarker=I;class L extends I{static compareByIndex(r,c){return r.index===c.index?0:r.isFinalTabstop?1:c.isFinalTabstop||r.index<c.index?-1:r.index>c.index?1:0}constructor(r){super(),this.index=r}get isFinalTabstop(){return this.index===0}get choice(){return this.c.length===1&&this.c[0]instanceof S?this.c[0]:void 0}clone(){const r=new L(this.index);return this.transform&&(r.transform=this.transform.clone()),r.c=this.children.map(c=>c.clone()),r}}e.Placeholder=L;class S extends N{constructor(){super(...arguments),this.options=[]}appendChild(r){return r instanceof E&&(r.parent=this,this.options.push(r)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const r=new S;return this.options.forEach(r.appendChild,r),r}}e.Choice=S;class v extends N{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(r){const c=this;let d=!1,s=r.replace(this.regexp,function(){return d=!0,c.d(Array.prototype.slice.call(arguments,0,-2))});return!d&&this.c.some(l=>l instanceof f&&Boolean(l.elseValue))&&(s=this.d([])),s}d(r){let c="";for(const d of this.c)if(d instanceof f){let s=r[d.index]||"";s=d.resolve(s),c+=s}else c+=d.toString();return c}toString(){return""}clone(){const r=new v;return r.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),r.c=this.children.map(c=>c.clone()),r}}e.Transform=v;class f extends N{constructor(r,c,d,s){super(),this.index=r,this.shorthandName=c,this.ifValue=d,this.elseValue=s}resolve(r){return this.shorthandName==="upcase"?r?r.toLocaleUpperCase():"":this.shorthandName==="downcase"?r?r.toLocaleLowerCase():"":this.shorthandName==="capitalize"?r?r[0].toLocaleUpperCase()+r.substr(1):"":this.shorthandName==="pascalcase"?r?this.d(r):"":this.shorthandName==="camelcase"?r?this.f(r):"":Boolean(r)&&typeof this.ifValue=="string"?this.ifValue:!Boolean(r)&&typeof this.elseValue=="string"?this.elseValue:r||""}d(r){const c=r.match(/[a-z0-9]+/gi);return c?c.map(d=>d.charAt(0).toUpperCase()+d.substr(1)).join(""):r}f(r){const c=r.match(/[a-z0-9]+/gi);return c?c.map((d,s)=>s===0?d.charAt(0).toLowerCase()+d.substr(1):d.charAt(0).toUpperCase()+d.substr(1)).join(""):r}clone(){return new f(this.index,this.shorthandName,this.ifValue,this.elseValue)}}e.FormatString=f;class g extends I{constructor(r){super(),this.name=r}resolve(r){let c=r.resolve(this);return this.transform&&(c=this.transform.resolve(c||"")),c!==void 0?(this.c=[new E(c)],!0):!1}clone(){const r=new g(this.name);return this.transform&&(r.transform=this.transform.clone()),r.c=this.children.map(c=>c.clone()),r}}e.Variable=g;function i(a,r){const c=[...a];for(;c.length>0;){const d=c.shift();if(!r(d))break;c.unshift(...d.children)}}class t extends N{get placeholderInfo(){if(!this.d){const r=[];let c;this.walk(function(d){return d instanceof L&&(r.push(d),c=!c||c.index<d.index?d:c),!0}),this.d={all:r,last:c}}return this.d}get placeholders(){const{all:r}=this.placeholderInfo;return r}offset(r){let c=0,d=!1;return this.walk(s=>s===r?(d=!0,!1):(c+=s.len(),!0)),d?c:-1}fullLen(r){let c=0;return i([r],d=>(c+=d.len(),!0)),c}enclosingPlaceholders(r){const c=[];let{parent:d}=r;for(;d;)d instanceof L&&c.push(d),d=d.parent;return c}resolveVariables(r){return this.walk(c=>(c instanceof g&&c.resolve(r)&&(this.d=void 0),!0)),this}appendChild(r){return this.d=void 0,super.appendChild(r)}replace(r,c){return this.d=void 0,super.replace(r,c)}clone(){const r=new t;return this.c=this.children.map(c=>c.clone()),r}walk(r){i(this.children,r)}}e.TextmateSnippet=t;class n{constructor(){this.c=new C,this.d={type:14,pos:0,len:0}}static escape(r){return r.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(r){return/\${?CLIPBOARD/.test(r)}parse(r,c,d){const s=new t;return this.parseFragment(r,s),this.ensureFinalTabstop(s,d??!1,c??!1),s}parseFragment(r,c){const d=c.children.length;for(this.c.text(r),this.d=this.c.next();this.i(c););const s=new Map,l=[];c.walk(h=>(h instanceof L&&(h.isFinalTabstop?s.set(0,void 0):!s.has(h.index)&&h.children.length>0?s.set(h.index,h.children):l.push(h)),!0));const o=(h,w)=>{const m=s.get(h.index);if(!m)return;const p=new L(h.index);p.transform=h.transform;for(const b of m){const y=b.clone();p.appendChild(y),y instanceof L&&s.has(y.index)&&!w.has(y.index)&&(w.add(y.index),o(y,w),w.delete(y.index))}c.replace(h,[p])},u=new Set;for(const h of l)o(h,u);return c.children.slice(d)}ensureFinalTabstop(r,c,d){(c||d&&r.placeholders.length>0)&&(r.placeholders.find(l=>l.index===0)||r.appendChild(new L(0)))}f(r,c){if(r===void 0||this.d.type===r){const d=c?this.c.tokenText(this.d):!0;return this.d=this.c.next(),d}return!1}g(r){return this.c.pos=r.pos+r.len,this.d=r,!1}h(r){const c=this.d;for(;this.d.type!==r;){if(this.d.type===14)return!1;if(this.d.type===5){const s=this.c.next();if(s.type!==0&&s.type!==4&&s.type!==5)return!1}this.d=this.c.next()}const d=this.c.value.substring(c.pos,this.d.pos).replace(/\\(\$|}|\\)/g,"$1");return this.d=this.c.next(),d}i(r){return this.j(r)||this.k(r)||this.l(r)||this.n(r)||this.r(r)}j(r){let c;return(c=this.f(5,!0))?(c=this.f(0,!0)||this.f(4,!0)||this.f(5,!0)||c,r.appendChild(new E(c)),!0):!1}k(r){let c;const d=this.d;return this.f(0)&&(c=this.f(9,!0)||this.f(8,!0))?(r.appendChild(/^\d+$/.test(c)?new L(Number(c)):new g(c)),!0):this.g(d)}l(r){let c;const d=this.d;if(!(this.f(0)&&this.f(3)&&(c=this.f(8,!0))))return this.g(d);const l=new L(Number(c));if(this.f(1))for(;;){if(this.f(4))return r.appendChild(l),!0;if(!this.i(l))return r.appendChild(new E("${"+c+":")),l.children.forEach(r.appendChild,r),!0}else if(l.index>0&&this.f(7)){const o=new S;for(;;){if(this.m(o)){if(this.f(2))continue;if(this.f(7)&&(l.appendChild(o),this.f(4)))return r.appendChild(l),!0}return this.g(d),!1}}else return this.f(6)?this.o(l)?(r.appendChild(l),!0):(this.g(d),!1):this.f(4)?(r.appendChild(l),!0):this.g(d)}m(r){const c=this.d,d=[];for(;!(this.d.type===2||this.d.type===7);){let s;if((s=this.f(5,!0))?s=this.f(2,!0)||this.f(7,!0)||this.f(5,!0)||s:s=this.f(void 0,!0),!s)return this.g(c),!1;d.push(s)}return d.length===0?(this.g(c),!1):(r.appendChild(new E(d.join(""))),!0)}n(r){let c;const d=this.d;if(!(this.f(0)&&this.f(3)&&(c=this.f(9,!0))))return this.g(d);const l=new g(c);if(this.f(1))for(;;){if(this.f(4))return r.appendChild(l),!0;if(!this.i(l))return r.appendChild(new E("${"+c+":")),l.children.forEach(r.appendChild,r),!0}else return this.f(6)?this.o(l)?(r.appendChild(l),!0):(this.g(d),!1):this.f(4)?(r.appendChild(l),!0):this.g(d)}o(r){const c=new v;let d="",s="";for(;!this.f(6);){let l;if(l=this.f(5,!0)){l=this.f(6,!0)||l,d+=l;continue}if(this.d.type!==14){d+=this.f(void 0,!0);continue}return!1}for(;!this.f(6);){let l;if(l=this.f(5,!0)){l=this.f(5,!0)||this.f(6,!0)||l,c.appendChild(new E(l));continue}if(!(this.q(c)||this.r(c)))return!1}for(;!this.f(4);){if(this.d.type!==14){s+=this.f(void 0,!0);continue}return!1}try{c.regexp=new RegExp(d,s)}catch{return!1}return r.transform=c,!0}q(r){const c=this.d;if(!this.f(0))return!1;let d=!1;this.f(3)&&(d=!0);const s=this.f(8,!0);if(s)if(d){if(this.f(4))return r.appendChild(new f(Number(s))),!0;if(!this.f(1))return this.g(c),!1}else return r.appendChild(new f(Number(s))),!0;else return this.g(c),!1;if(this.f(6)){const l=this.f(9,!0);return!l||!this.f(4)?(this.g(c),!1):(r.appendChild(new f(Number(s),l)),!0)}else if(this.f(11)){const l=this.h(4);if(l)return r.appendChild(new f(Number(s),void 0,l,void 0)),!0}else if(this.f(12)){const l=this.h(4);if(l)return r.appendChild(new f(Number(s),void 0,void 0,l)),!0}else if(this.f(13)){const l=this.h(1);if(l){const o=this.h(4);if(o)return r.appendChild(new f(Number(s),void 0,l,o)),!0}}else{const l=this.h(4);if(l)return r.appendChild(new f(Number(s),void 0,void 0,l)),!0}return this.g(c),!1}r(r){return this.d.type!==14?(r.appendChild(new E(this.c.tokenText(this.d))),this.f(void 0),!0):!1}}e.SnippetParser=n}),define(_[268],ee([1,0,17,63,9]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CompletionModel=e.LineContext=void 0;class I{constructor(v,f){this.leadingLineContent=v,this.characterCountDelta=f}}e.LineContext=I;class L{constructor(v,f,g,i,t,n,a=N.FuzzyScoreOptions.default,r=void 0){this.clipboardText=r,this.g=L.q,this.c=v,this.d=f,this.e=i,this.f=t,this.k=1,this.j=g,this.h=a,n==="top"?this.g=L.s:n==="bottom"&&(this.g=L.r)}get lineContext(){return this.j}set lineContext(v){(this.j.leadingLineContent!==v.leadingLineContent||this.j.characterCountDelta!==v.characterCountDelta)&&(this.k=this.j.characterCountDelta<v.characterCountDelta&&this.l?2:1,this.j=v)}get items(){return this.o(),this.l}getItemsByProvider(){return this.o(),this.m}getIncompleteProvider(){this.o();const v=new Set;for(const[f,g]of this.getItemsByProvider())g.length>0&&g[0].container.incomplete&&v.add(f);return v}get stats(){return this.o(),this.n}o(){this.k!==0&&this.p()}p(){this.m=new Map;const v=[],{leadingLineContent:f,characterCountDelta:g}=this.j;let i="",t="";const n=this.k===1?this.c:this.l,a=[],r=!this.f.filterGraceful||n.length>2e3?N.fuzzyScore:N.fuzzyScoreGracefulAggressive;for(let c=0;c<n.length;c++){const d=n[c];if(d.isInvalid)continue;const s=this.m.get(d.provider);s?s.push(d):this.m.set(d.provider,[d]);const l=d.position.column-d.editStart.column,o=l+g-(d.position.column-this.d);if(i.length!==o&&(i=o===0?"":f.slice(-o),t=i.toLowerCase()),d.word=i,o===0)d.score=N.FuzzyScore.Default;else{let u=0;for(;u<l;){const h=i.charCodeAt(u);if(h===32||h===9)u+=1;else break}if(u>=o)d.score=N.FuzzyScore.Default;else if(typeof d.completion.filterText=="string"){const h=r(i,t,u,d.completion.filterText,d.filterTextLow,0,this.h);if(!h)continue;(0,E.compareIgnoreCase)(d.completion.filterText,d.textLabel)===0?d.score=h:(d.score=(0,N.anyScore)(i,t,u,d.textLabel,d.labelLow,0),d.score[0]=h[0])}else{const h=r(i,t,u,d.textLabel,d.labelLow,0,this.h);if(!h)continue;d.score=h}}d.idx=c,d.distance=this.e.distance(d.position,d.completion),a.push(d),v.push(d.textLabel.length)}this.l=a.sort(this.g),this.k=0,this.n={pLabelLen:v.length?(0,C.quickSelect)(v.length-.85,v,(c,d)=>c-d):0}}static q(v,f){return v.score[0]>f.score[0]?-1:v.score[0]<f.score[0]?1:v.distance<f.distance?-1:v.distance>f.distance?1:v.idx<f.idx?-1:v.idx>f.idx?1:0}static r(v,f){if(v.completion.kind!==f.completion.kind){if(v.completion.kind===27)return 1;if(f.completion.kind===27)return-1}return L.q(v,f)}static s(v,f){if(v.completion.kind!==f.completion.kind){if(v.completion.kind===27)return-1;if(f.completion.kind===27)return 1}return L.q(v,f)}}e.CompletionModel=L}),define(_[500],ee([1,0,17,2,113]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CommitCharacterController=void 0;class I{constructor(S,v,f,g){this.a=new N.DisposableStore,this.a.add(f.onDidSuggest(i=>{i.completionModel.items.length===0&&this.reset()})),this.a.add(f.onDidCancel(i=>{this.reset()})),this.a.add(v.onDidShow(()=>this.c(v.getFocusedItem()))),this.a.add(v.onDidFocus(this.c,this)),this.a.add(v.onDidHide(this.reset,this)),this.a.add(S.onWillType(i=>{if(this.b&&!v.isFrozen()&&f.state!==0){const t=i.charCodeAt(i.length-1);this.b.acceptCharacters.has(t)&&S.getOption(0)&&g(this.b.item)}}))}c(S){if(!S||!(0,C.isNonEmptyArray)(S.item.completion.commitCharacters)){this.reset();return}if(this.b&&this.b.item.item===S.item)return;const v=new E.CharacterSet;for(const f of S.item.completion.commitCharacters)f.length>0&&v.add(f.charCodeAt(0));this.b={acceptCharacters:v,item:S}}reset(){this.b=void 0}dispose(){this.a.dispose()}}e.CommitCharacterController=I}),define(_[501],ee([1,0,2]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OvertypingCapturer=void 0;class N{constructor(I,L){this.b=new C.DisposableStore,this.c=[],this.d=!1,this.b.add(I.onWillType(()=>{if(this.d||!I.hasModel())return;const S=I.getSelections(),v=S.length;let f=!1;for(let i=0;i<v;i++)if(!S[i].isEmpty()){f=!0;break}if(!f){this.c.length!==0&&(this.c.length=0);return}this.c=[];const g=I.getModel();for(let i=0;i<v;i++){const t=S[i];if(g.getValueLengthInRange(t)>N.a)return;this.c[i]={value:g.getValueInRange(t),multiline:t.startLineNumber!==t.endLineNumber}}})),this.b.add(L.onDidTrigger(S=>{this.d=!0})),this.b.add(L.onDidCancel(S=>{this.d=!1}))}getLastOvertypedInfo(I){if(I>=0&&I<this.c.length)return this.c[I]}dispose(){this.b.dispose()}}N.a=51200,e.OvertypingCapturer=N}),define(_[269],ee([1,0,17,4,267]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WordDistance=void 0;class I{static create(S,v){return ye(this,void 0,void 0,function*(){if(!v.getOption(112).localityBonus||!v.hasModel())return I.None;const f=v.getModel(),g=v.getPosition();if(!S.canComputeWordRanges(f.uri))return I.None;const[i]=yield new E.BracketSelectionRangeProvider().provideSelectionRanges(f,[g]);if(i.length===0)return I.None;const t=yield S.computeWordRanges(f.uri,i[0].range);if(!t)return I.None;const n=f.getWordUntilPosition(g);return delete t[n.word],new class extends I{distance(a,r){if(!g.equals(v.getPosition()))return 0;if(r.kind===17)return 2<<20;const c=typeof r.label=="string"?r.label:r.label.label,d=t[c];if((0,C.isFalsyOrEmpty)(d))return 2<<20;const s=(0,C.binarySearch)(d,N.Range.fromPositions(a),N.Range.compareRangesUsingStarts),l=s>=0?d[s]:d[Math.max(0,~s-1)];let o=i.length;for(const u of i){if(!N.Range.containsRange(u.range,l))break;o-=1}return o}}})}}I.None=new class extends I{distance(){return 0}},e.WordDistance=I}),define(_[270],ee([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 C(a){return Array.isArray(a)}e.isFuzzyActionArr=C;function N(a){return!C(a)}e.isFuzzyAction=N;function E(a){return typeof a=="string"}e.isString=E;function I(a){return!E(a)}e.isIAction=I;function L(a){return!a}e.empty=L;function S(a,r){return a.ignoreCase&&r?r.toLowerCase():r}e.fixCase=S;function v(a){return a.replace(/[&<>'"_]/g,"-")}e.sanitize=v;function f(a,r){console.log(`${a.languageId}: ${r}`)}e.log=f;function g(a,r){return new Error(`${a.languageId}: ${r}`)}e.createError=g;function i(a,r,c,d,s){const l=/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g;let o=null;return r.replace(l,function(u,h,w,m,p,b,y,k,D){return L(w)?L(m)?!L(p)&&p<d.length?S(a,d[p]):!L(y)&&a&&typeof a[y]=="string"?a[y]:(o===null&&(o=s.split("."),o.unshift(s)),!L(b)&&b<o.length?S(a,o[b]):""):S(a,c):"$"})}e.substituteMatches=i;function t(a,r){let c=r;for(;c&&c.length>0;){const d=a.tokenizer[c];if(d)return d;const s=c.lastIndexOf(".");s<0?c=null:c=c.substr(0,s)}return null}e.findRules=t;function n(a,r){let c=r;for(;c&&c.length>0;){if(a.stateNames[c])return!0;const s=c.lastIndexOf(".");s<0?c=null:c=c.substr(0,s)}return!1}e.stateExists=n}),define(_[502],ee([1,0,270]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.compile=void 0;function N(a,r){if(!r||!Array.isArray(r))return!1;for(const c of r)if(!a(c))return!1;return!0}function E(a,r){return typeof a=="boolean"?a:r}function I(a,r){return typeof a=="string"?a:r}function L(a){const r={};for(const c of a)r[c]=!0;return r}function S(a,r=!1){r&&(a=a.map(function(d){return d.toLowerCase()}));const c=L(a);return r?function(d){return c[d.toLowerCase()]!==void 0&&c.hasOwnProperty(d.toLowerCase())}:function(d){return c[d]!==void 0&&c.hasOwnProperty(d)}}function v(a,r){r=r.replace(/@@/g,"");let c=0,d;do d=!1,r=r.replace(/@(\w+)/g,function(l,o){d=!0;let u="";if(typeof a[o]=="string")u=a[o];else if(a[o]&&a[o]instanceof RegExp)u=a[o].source;else throw a[o]===void 0?C.createError(a,"language definition does not contain attribute '"+o+"', used at: "+r):C.createError(a,"attribute reference '"+o+"' must be a string, used at: "+r);return C.empty(u)?"":"(?:"+u+")"}),c++;while(d&&c<5);r=r.replace(/\x01/g,"@");const s=(a.ignoreCase?"i":"")+(a.unicode?"u":"");return new RegExp(r,s)}function f(a,r,c,d){if(d<0)return a;if(d<r.length)return r[d];if(d>=100){d=d-100;const s=c.split(".");if(s.unshift(c),d<s.length)return s[d]}return null}function g(a,r,c,d){let s=-1,l=c,o=c.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);o&&(o[3]&&(s=parseInt(o[3]),o[2]&&(s=s+100)),l=o[4]);let u="~",h=l;!l||l.length===0?(u="!=",h=""):/^\w*$/.test(h)?u="==":(o=l.match(/^(@|!@|~|!~|==|!=)(.*)$/),o&&(u=o[1],h=o[2]));let w;if((u==="~"||u==="!~")&&/^(\w|\|)*$/.test(h)){const m=S(h.split("|"),a.ignoreCase);w=function(p){return u==="~"?m(p):!m(p)}}else if(u==="@"||u==="!@"){const m=a[h];if(!m)throw C.createError(a,"the @ match target '"+h+"' is not defined, in rule: "+r);if(!N(function(b){return typeof b=="string"},m))throw C.createError(a,"the @ match target '"+h+"' must be an array of strings, in rule: "+r);const p=S(m,a.ignoreCase);w=function(b){return u==="@"?p(b):!p(b)}}else if(u==="~"||u==="!~")if(h.indexOf("$")<0){const m=v(a,"^"+h+"$");w=function(p){return u==="~"?m.test(p):!m.test(p)}}else w=function(m,p,b,y){return v(a,"^"+C.substituteMatches(a,h,p,b,y)+"$").test(m)};else if(h.indexOf("$")<0){const m=C.fixCase(a,h);w=function(p){return u==="=="?p===m:p!==m}}else{const m=C.fixCase(a,h);w=function(p,b,y,k,D){const M=C.substituteMatches(a,m,b,y,k);return u==="=="?p===M:p!==M}}return s===-1?{name:c,value:d,test:function(m,p,b,y){return w(m,m,p,b,y)}}:{name:c,value:d,test:function(m,p,b,y){const k=f(m,p,b,s);return w(k||"",m,p,b,y)}}}function i(a,r,c){if(c){if(typeof c=="string")return c;if(c.token||c.token===""){if(typeof c.token!="string")throw C.createError(a,"a 'token' attribute must be of type string, in rule: "+r);{const d={token:c.token};if(c.token.indexOf("$")>=0&&(d.tokenSubst=!0),typeof c.bracket=="string")if(c.bracket==="@open")d.bracket=1;else if(c.bracket==="@close")d.bracket=-1;else throw C.createError(a,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+r);if(c.next){if(typeof c.next!="string")throw C.createError(a,"the next state must be a string value in rule: "+r);{let s=c.next;if(!/^(@pop|@push|@popall)$/.test(s)&&(s[0]==="@"&&(s=s.substr(1)),s.indexOf("$")<0&&!C.stateExists(a,C.substituteMatches(a,s,"",[],""))))throw C.createError(a,"the next state '"+c.next+"' is not defined in rule: "+r);d.next=s}}return typeof c.goBack=="number"&&(d.goBack=c.goBack),typeof c.switchTo=="string"&&(d.switchTo=c.switchTo),typeof c.log=="string"&&(d.log=c.log),typeof c.nextEmbedded=="string"&&(d.nextEmbedded=c.nextEmbedded,a.usesEmbedded=!0),d}}else if(Array.isArray(c)){const d=[];for(let s=0,l=c.length;s<l;s++)d[s]=i(a,r,c[s]);return{group:d}}else if(c.cases){const d=[];for(const l in c.cases)if(c.cases.hasOwnProperty(l)){const o=i(a,r,c.cases[l]);l==="@default"||l==="@"||l===""?d.push({test:void 0,value:o,name:l}):l==="@eos"?d.push({test:function(u,h,w,m){return m},value:o,name:l}):d.push(g(a,r,l,o))}const s=a.defaultToken;return{test:function(l,o,u,h){for(const w of d)if(!w.test||w.test(l,o,u,h))return w.value;return s}}}else throw C.createError(a,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+r)}else return{token:""}}class t{constructor(r){this.regex=new RegExp(""),this.action={token:""},this.matchOnlyAtLineStart=!1,this.name="",this.name=r}setRegex(r,c){let d;if(typeof c=="string")d=c;else if(c instanceof RegExp)d=c.source;else throw C.createError(r,"rules must start with a match string or regular expression: "+this.name);this.matchOnlyAtLineStart=d.length>0&&d[0]==="^",this.name=this.name+": "+d,this.regex=v(r,"^(?:"+(this.matchOnlyAtLineStart?d.substr(1):d)+")")}setAction(r,c){this.action=i(r,this.name,c)}}function n(a,r){if(!r||typeof r!="object")throw new Error("Monarch: expecting a language definition object");const c={};c.languageId=a,c.includeLF=E(r.includeLF,!1),c.noThrow=!1,c.maxStack=100,c.start=typeof r.start=="string"?r.start:null,c.ignoreCase=E(r.ignoreCase,!1),c.unicode=E(r.unicode,!1),c.tokenPostfix=I(r.tokenPostfix,"."+c.languageId),c.defaultToken=I(r.defaultToken,"source"),c.usesEmbedded=!1;const d=r;d.languageId=a,d.includeLF=c.includeLF,d.ignoreCase=c.ignoreCase,d.unicode=c.unicode,d.noThrow=c.noThrow,d.usesEmbedded=c.usesEmbedded,d.stateNames=r.tokenizer,d.defaultToken=c.defaultToken;function s(o,u,h){for(const w of h){let m=w.include;if(m){if(typeof m!="string")throw C.createError(c,"an 'include' attribute must be a string at: "+o);if(m[0]==="@"&&(m=m.substr(1)),!r.tokenizer[m])throw C.createError(c,"include target '"+m+"' is not defined at: "+o);s(o+"."+m,u,r.tokenizer[m])}else{const p=new t(o);if(Array.isArray(w)&&w.length>=1&&w.length<=3)if(p.setRegex(d,w[0]),w.length>=3)if(typeof w[1]=="string")p.setAction(d,{token:w[1],next:w[2]});else if(typeof w[1]=="object"){const b=w[1];b.next=w[2],p.setAction(d,b)}else throw C.createError(c,"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: "+o);else p.setAction(d,w[1]);else{if(!w.regex)throw C.createError(c,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+o);w.name&&typeof w.name=="string"&&(p.name=w.name),w.matchOnlyAtStart&&(p.matchOnlyAtLineStart=E(w.matchOnlyAtLineStart,!1)),p.setRegex(d,w.regex),p.setAction(d,w.action)}u.push(p)}}}if(!r.tokenizer||typeof r.tokenizer!="object")throw C.createError(c,"a language definition must define the 'tokenizer' attribute as an object");c.tokenizer=[];for(const o in r.tokenizer)if(r.tokenizer.hasOwnProperty(o)){c.start||(c.start=o);const u=r.tokenizer[o];c.tokenizer[o]=new Array,s("tokenizer."+o,c.tokenizer[o],u)}if(c.usesEmbedded=d.usesEmbedded,r.brackets){if(!Array.isArray(r.brackets))throw C.createError(c,"the 'brackets' attribute must be defined as an array")}else r.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];const l=[];for(const o of r.brackets){let u=o;if(u&&Array.isArray(u)&&u.length===3&&(u={token:u[2],open:u[0],close:u[1]}),u.open===u.close)throw C.createError(c,"open and close brackets in a 'brackets' attribute must be different: "+u.open+`
|
||
hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof u.open=="string"&&typeof u.token=="string"&&typeof u.close=="string")l.push({token:u.token+c.tokenPostfix,open:C.fixCase(c,u.open),close:C.fixCase(c,u.close)});else throw C.createError(c,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return c.brackets=l,c.noThrow=!0,c}e.compile=n}),define(_[503],ee([3,5]),function(q,e){return q.create("vs/base/browser/ui/actionbar/actionViewItems",e)}),define(_[504],ee([3,5]),function(q,e){return q.create("vs/base/browser/ui/findinput/findInput",e)}),define(_[505],ee([3,5]),function(q,e){return q.create("vs/base/browser/ui/findinput/findInputToggles",e)}),define(_[506],ee([3,5]),function(q,e){return q.create("vs/base/browser/ui/findinput/replaceInput",e)}),define(_[507],ee([3,5]),function(q,e){return q.create("vs/base/browser/ui/iconLabel/iconLabelHover",e)}),define(_[508],ee([3,5]),function(q,e){return q.create("vs/base/browser/ui/inputbox/inputBox",e)}),define(_[509],ee([3,5]),function(q,e){return q.create("vs/base/browser/ui/keybindingLabel/keybindingLabel",e)}),define(_[510],ee([3,5]),function(q,e){return q.create("vs/base/browser/ui/selectBox/selectBoxCustom",e)}),define(_[511],ee([3,5]),function(q,e){return q.create("vs/base/browser/ui/toolbar/toolbar",e)}),define(_[512],ee([3,5]),function(q,e){return q.create("vs/base/browser/ui/tree/abstractTree",e)}),define(_[513],ee([3,5]),function(q,e){return q.create("vs/base/common/actions",e)}),define(_[514],ee([3,5]),function(q,e){return q.create("vs/base/common/errorMessage",e)}),define(_[515],ee([1,0,17,18,514]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toErrorMessage=void 0;function I(f,g){return g&&(f.stack||f.stacktrace)?E.localize(0,null,S(f),L(f.stack)||L(f.stacktrace)):S(f)}function L(f){return Array.isArray(f)?f.join(`
|
||
`):f}function S(f){return typeof f.code=="string"&&typeof f.errno=="number"&&typeof f.syscall=="string"?E.localize(1,null,f.message):f.message||E.localize(2,null)}function v(f=null,g=!1){if(!f)return E.localize(3,null);if(Array.isArray(f)){const i=C.coalesce(f),t=v(i[0],g);return i.length>1?E.localize(4,null,t,i.length):t}if(N.isString(f))return f;if(f.detail){const i=f.detail;if(i.error)return I(i.error,g);if(i.exception)return I(i.exception,g)}return f.stack?I(f,g):f.message?f.message:E.localize(5,null)}e.toErrorMessage=v}),define(_[516],ee([3,5]),function(q,e){return q.create("vs/base/common/keybindingLabels",e)}),define(_[197],ee([1,0,516]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UserSettingsLabelProvider=e.ElectronAcceleratorLabelProvider=e.AriaLabelProvider=e.UILabelProvider=e.ModifierLabelProvider=void 0;class N{constructor(L,S,v=S){this.modifierLabels=[null],this.modifierLabels[2]=L,this.modifierLabels[1]=S,this.modifierLabels[3]=v}toLabel(L,S,v){if(S.length===0)return null;const f=[];for(let g=0,i=S.length;g<i;g++){const t=S[g],n=v(t);if(n===null)return null;f[g]=E(t,n,this.modifierLabels[L])}return f.join(" ")}}e.ModifierLabelProvider=N,e.UILabelProvider=new N({ctrlKey:"\u2303",shiftKey:"\u21E7",altKey:"\u2325",metaKey:"\u2318",separator:""},{ctrlKey:C.localize(0,null),shiftKey:C.localize(1,null),altKey:C.localize(2,null),metaKey:C.localize(3,null),separator:"+"},{ctrlKey:C.localize(4,null),shiftKey:C.localize(5,null),altKey:C.localize(6,null),metaKey:C.localize(7,null),separator:"+"}),e.AriaLabelProvider=new N({ctrlKey:C.localize(8,null),shiftKey:C.localize(9,null),altKey:C.localize(10,null),metaKey:C.localize(11,null),separator:"+"},{ctrlKey:C.localize(12,null),shiftKey:C.localize(13,null),altKey:C.localize(14,null),metaKey:C.localize(15,null),separator:"+"},{ctrlKey:C.localize(16,null),shiftKey:C.localize(17,null),altKey:C.localize(18,null),metaKey:C.localize(19,null),separator:"+"}),e.ElectronAcceleratorLabelProvider=new N({ctrlKey:"Ctrl",shiftKey:"Shift",altKey:"Alt",metaKey:"Cmd",separator:"+"},{ctrlKey:"Ctrl",shiftKey:"Shift",altKey:"Alt",metaKey:"Super",separator:"+"}),e.UserSettingsLabelProvider=new N({ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"cmd",separator:"+"},{ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"win",separator:"+"},{ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"meta",separator:"+"});function E(I,L,S){if(L===null)return"";const v=[];return I.ctrlKey&&v.push(S.ctrlKey),I.shiftKey&&v.push(S.shiftKey),I.altKey&&v.push(S.altKey),I.metaKey&&v.push(S.metaKey),L!==""&&v.push(L),v.join(S.separator)}}),define(_[517],ee([3,5]),function(q,e){return q.create("vs/base/common/platform",e)}),define(_[16],ee([1,0,517]),function(q,e,C){"use strict";var N;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.isMobile=e.isIOS=e.isWebWorker=e.isWeb=e.isNative=e.isLinux=e.isMacintosh=e.isWindows=e.globals=e.LANGUAGE_DEFAULT=void 0,e.LANGUAGE_DEFAULT="en";let E=!1,I=!1,L=!1,S=!1,v=!1,f=!1,g=!1,i=!1,t=!1,n=!1,a,r=e.LANGUAGE_DEFAULT,c,d;e.globals=typeof self=="object"?self:typeof global=="object"?global:{};let s;typeof e.globals.vscode<"u"&&typeof e.globals.vscode.process<"u"?s=e.globals.vscode.process:typeof process<"u"&&(s=process);const l=typeof((N=s?.versions)===null||N===void 0?void 0:N.electron)=="string",o=l&&s?.type==="renderer";if(typeof navigator=="object"&&!o)d=navigator.userAgent,E=d.indexOf("Windows")>=0,I=d.indexOf("Macintosh")>=0,i=(d.indexOf("Macintosh")>=0||d.indexOf("iPad")>=0||d.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,L=d.indexOf("Linux")>=0,n=d?.indexOf("Mobi")>=0,f=!0,a=C.getConfiguredDefaultLocale(C.localize(0,null))||e.LANGUAGE_DEFAULT,r=a;else if(typeof s=="object"){E=s.platform==="win32",I=s.platform==="darwin",L=s.platform==="linux",S=L&&!!s.env.SNAP&&!!s.env.SNAP_REVISION,g=l,t=!!s.env.CI||!!s.env.BUILD_ARTIFACTSTAGINGDIRECTORY,a=e.LANGUAGE_DEFAULT,r=e.LANGUAGE_DEFAULT;const p=s.env.VSCODE_NLS_CONFIG;if(p)try{const b=JSON.parse(p),y=b.availableLanguages["*"];a=b.locale,r=y||e.LANGUAGE_DEFAULT,c=b._translationsConfigFile}catch{}v=!0}else console.error("Unable to resolve platform.");let u=0;I?u=1:E?u=3:L&&(u=2),e.isWindows=E,e.isMacintosh=I,e.isLinux=L,e.isNative=v,e.isWeb=f,e.isWebWorker=f&&typeof e.globals.importScripts=="function",e.isIOS=i,e.isMobile=n,e.userAgent=d,e.language=r,e.setTimeout0IsFaster=typeof e.globals.postMessage=="function"&&!e.globals.importScripts,e.setTimeout0=(()=>{if(e.setTimeout0IsFaster){const p=[];e.globals.addEventListener("message",y=>{if(y.data&&y.data.vscodeScheduleAsyncWork)for(let k=0,D=p.length;k<D;k++){const M=p[k];if(M.id===y.data.vscodeScheduleAsyncWork){p.splice(k,1),M.callback();return}}});let b=0;return y=>{const k=++b;p.push({id:k,callback:y}),e.globals.postMessage({vscodeScheduleAsyncWork:k},"*")}}return p=>setTimeout(p)})(),e.OS=I||i?2:E?1:3;let h=!0,w=!1;function m(){if(!w){w=!0;const p=new Uint8Array(2);p[0]=1,p[1]=2,h=new Uint16Array(p.buffer)[0]===(2<<8)+1}return h}e.isLittleEndian=m,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(_[518],ee([1,0,16]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.platform=e.env=e.cwd=void 0;let N;if(typeof C.globals.vscode<"u"&&typeof C.globals.vscode.process<"u"){const E=C.globals.vscode.process;N={get platform(){return E.platform},get arch(){return E.arch},get env(){return E.env},cwd(){return E.cwd()}}}else typeof process<"u"?N={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:N={get platform(){return C.isWindows?"win32":C.isMacintosh?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};e.cwd=N.cwd,e.env=N.env,e.platform=N.platform}),define(_[88],ee([1,0,518]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sep=e.extname=e.basename=e.dirname=e.relative=e.resolve=e.normalize=e.posix=e.win32=void 0;const N=65,E=97,I=90,L=122,S=46,v=47,f=92,g=58,i=63;class t extends Error{constructor(w,m,p){let b;typeof m=="string"&&m.indexOf("not ")===0?(b="must not be",m=m.replace(/^not /,"")):b="must be";const y=w.indexOf(".")!==-1?"property":"argument";let k=`The "${w}" ${y} ${b} of type ${m}`;k+=`. Received type ${typeof p}`,super(k),this.code="ERR_INVALID_ARG_TYPE"}}function n(h,w){if(h===null||typeof h!="object")throw new t(w,"Object",h)}function a(h,w){if(typeof h!="string")throw new t(w,"string",h)}const r=C.platform==="win32";function c(h){return h===v||h===f}function d(h){return h===v}function s(h){return h>=N&&h<=I||h>=E&&h<=L}function l(h,w,m,p){let b="",y=0,k=-1,D=0,M=0;for(let z=0;z<=h.length;++z){if(z<h.length)M=h.charCodeAt(z);else{if(p(M))break;M=v}if(p(M)){if(!(k===z-1||D===1))if(D===2){if(b.length<2||y!==2||b.charCodeAt(b.length-1)!==S||b.charCodeAt(b.length-2)!==S){if(b.length>2){const R=b.lastIndexOf(m);R===-1?(b="",y=0):(b=b.slice(0,R),y=b.length-1-b.lastIndexOf(m)),k=z,D=0;continue}else if(b.length!==0){b="",y=0,k=z,D=0;continue}}w&&(b+=b.length>0?`${m}..`:"..",y=2)}else b.length>0?b+=`${m}${h.slice(k+1,z)}`:b=h.slice(k+1,z),y=z-k-1;k=z,D=0}else M===S&&D!==-1?++D:D=-1}return b}function o(h,w){n(w,"pathObject");const m=w.dir||w.root,p=w.base||`${w.name||""}${w.ext||""}`;return m?m===w.root?`${m}${p}`:`${m}${h}${p}`:p}e.win32={resolve(...h){let w="",m="",p=!1;for(let b=h.length-1;b>=-1;b--){let y;if(b>=0){if(y=h[b],a(y,"path"),y.length===0)continue}else w.length===0?y=C.cwd():(y=C.env[`=${w}`]||C.cwd(),(y===void 0||y.slice(0,2).toLowerCase()!==w.toLowerCase()&&y.charCodeAt(2)===f)&&(y=`${w}\\`));const k=y.length;let D=0,M="",z=!1;const R=y.charCodeAt(0);if(k===1)c(R)&&(D=1,z=!0);else if(c(R))if(z=!0,c(y.charCodeAt(1))){let P=2,A=P;for(;P<k&&!c(y.charCodeAt(P));)P++;if(P<k&&P!==A){const T=y.slice(A,P);for(A=P;P<k&&c(y.charCodeAt(P));)P++;if(P<k&&P!==A){for(A=P;P<k&&!c(y.charCodeAt(P));)P++;(P===k||P!==A)&&(M=`\\\\${T}\\${y.slice(A,P)}`,D=P)}}}else D=1;else s(R)&&y.charCodeAt(1)===g&&(M=y.slice(0,2),D=2,k>2&&c(y.charCodeAt(2))&&(z=!0,D=3));if(M.length>0)if(w.length>0){if(M.toLowerCase()!==w.toLowerCase())continue}else w=M;if(p){if(w.length>0)break}else if(m=`${y.slice(D)}\\${m}`,p=z,z&&w.length>0)break}return m=l(m,!p,"\\",c),p?`${w}\\${m}`:`${w}${m}`||"."},normalize(h){a(h,"path");const w=h.length;if(w===0)return".";let m=0,p,b=!1;const y=h.charCodeAt(0);if(w===1)return d(y)?"\\":h;if(c(y))if(b=!0,c(h.charCodeAt(1))){let D=2,M=D;for(;D<w&&!c(h.charCodeAt(D));)D++;if(D<w&&D!==M){const z=h.slice(M,D);for(M=D;D<w&&c(h.charCodeAt(D));)D++;if(D<w&&D!==M){for(M=D;D<w&&!c(h.charCodeAt(D));)D++;if(D===w)return`\\\\${z}\\${h.slice(M)}\\`;D!==M&&(p=`\\\\${z}\\${h.slice(M,D)}`,m=D)}}}else m=1;else s(y)&&h.charCodeAt(1)===g&&(p=h.slice(0,2),m=2,w>2&&c(h.charCodeAt(2))&&(b=!0,m=3));let k=m<w?l(h.slice(m),!b,"\\",c):"";return k.length===0&&!b&&(k="."),k.length>0&&c(h.charCodeAt(w-1))&&(k+="\\"),p===void 0?b?`\\${k}`:k:b?`${p}\\${k}`:`${p}${k}`},isAbsolute(h){a(h,"path");const w=h.length;if(w===0)return!1;const m=h.charCodeAt(0);return c(m)||w>2&&s(m)&&h.charCodeAt(1)===g&&c(h.charCodeAt(2))},join(...h){if(h.length===0)return".";let w,m;for(let y=0;y<h.length;++y){const k=h[y];a(k,"path"),k.length>0&&(w===void 0?w=m=k:w+=`\\${k}`)}if(w===void 0)return".";let p=!0,b=0;if(typeof m=="string"&&c(m.charCodeAt(0))){++b;const y=m.length;y>1&&c(m.charCodeAt(1))&&(++b,y>2&&(c(m.charCodeAt(2))?++b:p=!1))}if(p){for(;b<w.length&&c(w.charCodeAt(b));)b++;b>=2&&(w=`\\${w.slice(b)}`)}return e.win32.normalize(w)},relative(h,w){if(a(h,"from"),a(w,"to"),h===w)return"";const m=e.win32.resolve(h),p=e.win32.resolve(w);if(m===p||(h=m.toLowerCase(),w=p.toLowerCase(),h===w))return"";let b=0;for(;b<h.length&&h.charCodeAt(b)===f;)b++;let y=h.length;for(;y-1>b&&h.charCodeAt(y-1)===f;)y--;const k=y-b;let D=0;for(;D<w.length&&w.charCodeAt(D)===f;)D++;let M=w.length;for(;M-1>D&&w.charCodeAt(M-1)===f;)M--;const z=M-D,R=k<z?k:z;let P=-1,A=0;for(;A<R;A++){const O=h.charCodeAt(b+A);if(O!==w.charCodeAt(D+A))break;O===f&&(P=A)}if(A!==R){if(P===-1)return p}else{if(z>R){if(w.charCodeAt(D+A)===f)return p.slice(D+A+1);if(A===2)return p.slice(D+A)}k>R&&(h.charCodeAt(b+A)===f?P=A:A===2&&(P=3)),P===-1&&(P=0)}let T="";for(A=b+P+1;A<=y;++A)(A===y||h.charCodeAt(A)===f)&&(T+=T.length===0?"..":"\\..");return D+=P,T.length>0?`${T}${p.slice(D,M)}`:(p.charCodeAt(D)===f&&++D,p.slice(D,M))},toNamespacedPath(h){if(typeof h!="string"||h.length===0)return h;const w=e.win32.resolve(h);if(w.length<=2)return h;if(w.charCodeAt(0)===f){if(w.charCodeAt(1)===f){const m=w.charCodeAt(2);if(m!==i&&m!==S)return`\\\\?\\UNC\\${w.slice(2)}`}}else if(s(w.charCodeAt(0))&&w.charCodeAt(1)===g&&w.charCodeAt(2)===f)return`\\\\?\\${w}`;return h},dirname(h){a(h,"path");const w=h.length;if(w===0)return".";let m=-1,p=0;const b=h.charCodeAt(0);if(w===1)return c(b)?h:".";if(c(b)){if(m=p=1,c(h.charCodeAt(1))){let D=2,M=D;for(;D<w&&!c(h.charCodeAt(D));)D++;if(D<w&&D!==M){for(M=D;D<w&&c(h.charCodeAt(D));)D++;if(D<w&&D!==M){for(M=D;D<w&&!c(h.charCodeAt(D));)D++;if(D===w)return h;D!==M&&(m=p=D+1)}}}}else s(b)&&h.charCodeAt(1)===g&&(m=w>2&&c(h.charCodeAt(2))?3:2,p=m);let y=-1,k=!0;for(let D=w-1;D>=p;--D)if(c(h.charCodeAt(D))){if(!k){y=D;break}}else k=!1;if(y===-1){if(m===-1)return".";y=m}return h.slice(0,y)},basename(h,w){w!==void 0&&a(w,"ext"),a(h,"path");let m=0,p=-1,b=!0,y;if(h.length>=2&&s(h.charCodeAt(0))&&h.charCodeAt(1)===g&&(m=2),w!==void 0&&w.length>0&&w.length<=h.length){if(w===h)return"";let k=w.length-1,D=-1;for(y=h.length-1;y>=m;--y){const M=h.charCodeAt(y);if(c(M)){if(!b){m=y+1;break}}else D===-1&&(b=!1,D=y+1),k>=0&&(M===w.charCodeAt(k)?--k===-1&&(p=y):(k=-1,p=D))}return m===p?p=D:p===-1&&(p=h.length),h.slice(m,p)}for(y=h.length-1;y>=m;--y)if(c(h.charCodeAt(y))){if(!b){m=y+1;break}}else p===-1&&(b=!1,p=y+1);return p===-1?"":h.slice(m,p)},extname(h){a(h,"path");let w=0,m=-1,p=0,b=-1,y=!0,k=0;h.length>=2&&h.charCodeAt(1)===g&&s(h.charCodeAt(0))&&(w=p=2);for(let D=h.length-1;D>=w;--D){const M=h.charCodeAt(D);if(c(M)){if(!y){p=D+1;break}continue}b===-1&&(y=!1,b=D+1),M===S?m===-1?m=D:k!==1&&(k=1):m!==-1&&(k=-1)}return m===-1||b===-1||k===0||k===1&&m===b-1&&m===p+1?"":h.slice(m,b)},format:o.bind(null,"\\"),parse(h){a(h,"path");const w={root:"",dir:"",base:"",ext:"",name:""};if(h.length===0)return w;const m=h.length;let p=0,b=h.charCodeAt(0);if(m===1)return c(b)?(w.root=w.dir=h,w):(w.base=w.name=h,w);if(c(b)){if(p=1,c(h.charCodeAt(1))){let P=2,A=P;for(;P<m&&!c(h.charCodeAt(P));)P++;if(P<m&&P!==A){for(A=P;P<m&&c(h.charCodeAt(P));)P++;if(P<m&&P!==A){for(A=P;P<m&&!c(h.charCodeAt(P));)P++;P===m?p=P:P!==A&&(p=P+1)}}}}else if(s(b)&&h.charCodeAt(1)===g){if(m<=2)return w.root=w.dir=h,w;if(p=2,c(h.charCodeAt(2))){if(m===3)return w.root=w.dir=h,w;p=3}}p>0&&(w.root=h.slice(0,p));let y=-1,k=p,D=-1,M=!0,z=h.length-1,R=0;for(;z>=p;--z){if(b=h.charCodeAt(z),c(b)){if(!M){k=z+1;break}continue}D===-1&&(M=!1,D=z+1),b===S?y===-1?y=z:R!==1&&(R=1):y!==-1&&(R=-1)}return D!==-1&&(y===-1||R===0||R===1&&y===D-1&&y===k+1?w.base=w.name=h.slice(k,D):(w.name=h.slice(k,y),w.base=h.slice(k,D),w.ext=h.slice(y,D))),k>0&&k!==p?w.dir=h.slice(0,k-1):w.dir=w.root,w},sep:"\\",delimiter:";",win32:null,posix:null};const u=(()=>{if(r){const h=/\\/g;return()=>{const w=C.cwd().replace(h,"/");return w.slice(w.indexOf("/"))}}return()=>C.cwd()})();e.posix={resolve(...h){let w="",m=!1;for(let p=h.length-1;p>=-1&&!m;p--){const b=p>=0?h[p]:u();a(b,"path"),b.length!==0&&(w=`${b}/${w}`,m=b.charCodeAt(0)===v)}return w=l(w,!m,"/",d),m?`/${w}`:w.length>0?w:"."},normalize(h){if(a(h,"path"),h.length===0)return".";const w=h.charCodeAt(0)===v,m=h.charCodeAt(h.length-1)===v;return h=l(h,!w,"/",d),h.length===0?w?"/":m?"./":".":(m&&(h+="/"),w?`/${h}`:h)},isAbsolute(h){return a(h,"path"),h.length>0&&h.charCodeAt(0)===v},join(...h){if(h.length===0)return".";let w;for(let m=0;m<h.length;++m){const p=h[m];a(p,"path"),p.length>0&&(w===void 0?w=p:w+=`/${p}`)}return w===void 0?".":e.posix.normalize(w)},relative(h,w){if(a(h,"from"),a(w,"to"),h===w||(h=e.posix.resolve(h),w=e.posix.resolve(w),h===w))return"";const m=1,p=h.length,b=p-m,y=1,k=w.length-y,D=b<k?b:k;let M=-1,z=0;for(;z<D;z++){const P=h.charCodeAt(m+z);if(P!==w.charCodeAt(y+z))break;P===v&&(M=z)}if(z===D)if(k>D){if(w.charCodeAt(y+z)===v)return w.slice(y+z+1);if(z===0)return w.slice(y+z)}else b>D&&(h.charCodeAt(m+z)===v?M=z:z===0&&(M=0));let R="";for(z=m+M+1;z<=p;++z)(z===p||h.charCodeAt(z)===v)&&(R+=R.length===0?"..":"/..");return`${R}${w.slice(y+M)}`},toNamespacedPath(h){return h},dirname(h){if(a(h,"path"),h.length===0)return".";const w=h.charCodeAt(0)===v;let m=-1,p=!0;for(let b=h.length-1;b>=1;--b)if(h.charCodeAt(b)===v){if(!p){m=b;break}}else p=!1;return m===-1?w?"/":".":w&&m===1?"//":h.slice(0,m)},basename(h,w){w!==void 0&&a(w,"ext"),a(h,"path");let m=0,p=-1,b=!0,y;if(w!==void 0&&w.length>0&&w.length<=h.length){if(w===h)return"";let k=w.length-1,D=-1;for(y=h.length-1;y>=0;--y){const M=h.charCodeAt(y);if(M===v){if(!b){m=y+1;break}}else D===-1&&(b=!1,D=y+1),k>=0&&(M===w.charCodeAt(k)?--k===-1&&(p=y):(k=-1,p=D))}return m===p?p=D:p===-1&&(p=h.length),h.slice(m,p)}for(y=h.length-1;y>=0;--y)if(h.charCodeAt(y)===v){if(!b){m=y+1;break}}else p===-1&&(b=!1,p=y+1);return p===-1?"":h.slice(m,p)},extname(h){a(h,"path");let w=-1,m=0,p=-1,b=!0,y=0;for(let k=h.length-1;k>=0;--k){const D=h.charCodeAt(k);if(D===v){if(!b){m=k+1;break}continue}p===-1&&(b=!1,p=k+1),D===S?w===-1?w=k:y!==1&&(y=1):w!==-1&&(y=-1)}return w===-1||p===-1||y===0||y===1&&w===p-1&&w===m+1?"":h.slice(w,p)},format:o.bind(null,"/"),parse(h){a(h,"path");const w={root:"",dir:"",base:"",ext:"",name:""};if(h.length===0)return w;const m=h.charCodeAt(0)===v;let p;m?(w.root="/",p=1):p=0;let b=-1,y=0,k=-1,D=!0,M=h.length-1,z=0;for(;M>=p;--M){const R=h.charCodeAt(M);if(R===v){if(!D){y=M+1;break}continue}k===-1&&(D=!1,k=M+1),R===S?b===-1?b=M:z!==1&&(z=1):b!==-1&&(z=-1)}if(k!==-1){const R=y===0&&m?1:y;b===-1||z===0||z===1&&b===k-1&&b===y+1?w.base=w.name=h.slice(R,k):(w.name=h.slice(R,b),w.base=h.slice(R,k),w.ext=h.slice(b,k))}return y>0?w.dir=h.slice(0,y-1):m&&(w.dir="/"),w},sep:"/",delimiter:":",win32:null,posix:null},e.posix.win32=e.win32.win32=e.win32,e.posix.posix=e.win32.posix=e.posix,e.normalize=r?e.win32.normalize:e.posix.normalize,e.resolve=r?e.win32.resolve:e.posix.resolve,e.relative=r?e.win32.relative:e.posix.relative,e.dirname=r?e.win32.dirname:e.posix.dirname,e.basename=r?e.win32.basename:e.posix.basename,e.extname=r?e.win32.extname:e.posix.extname,e.sep=r?e.win32.sep:e.posix.sep}),define(_[198],ee([1,0,88,16,9]),function(q,e,C,N,E){"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 I(t){return t===47||t===92}e.isPathSeparator=I;function L(t){return t.replace(/[\\/]/g,C.posix.sep)}e.toSlashes=L;function S(t){return t.indexOf("/")===-1&&(t=L(t)),/^[a-zA-Z]:(\/|$)/.test(t)&&(t="/"+t),t}e.toPosixPath=S;function v(t,n=C.posix.sep){if(!t)return"";const a=t.length,r=t.charCodeAt(0);if(I(r)){if(I(t.charCodeAt(1))&&!I(t.charCodeAt(2))){let d=3;const s=d;for(;d<a&&!I(t.charCodeAt(d));d++);if(s!==d&&!I(t.charCodeAt(d+1))){for(d+=1;d<a;d++)if(I(t.charCodeAt(d)))return t.slice(0,d+1).replace(/[\\/]/g,n)}}return n}else if(g(r)&&t.charCodeAt(1)===58)return I(t.charCodeAt(2))?t.slice(0,2)+n:t.slice(0,2);let c=t.indexOf("://");if(c!==-1){for(c+=3;c<a;c++)if(I(t.charCodeAt(c)))return t.slice(0,c+1)}return""}e.getRoot=v;function f(t,n,a,r=C.sep){if(t===n)return!0;if(!t||!n||n.length>t.length)return!1;if(a){if(!(0,E.startsWithIgnoreCase)(t,n))return!1;if(n.length===t.length)return!0;let d=n.length;return n.charAt(n.length-1)===r&&d--,t.charAt(d)===r}return n.charAt(n.length-1)!==r&&(n+=r),t.indexOf(n)===0}e.isEqualOrParent=f;function g(t){return t>=65&&t<=90||t>=97&&t<=122}e.isWindowsDriveLetter=g;function i(t,n=N.isWindows){return n?g(t.charCodeAt(0))&&t.charCodeAt(1)===58:!1}e.hasDriveLetter=i}),define(_[519],ee([1,0,63,88,16,9]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pieceToQuery=e.prepareQuery=e.scoreFuzzy2=void 0;const L=[void 0,[]];function S(s,l,o=0,u=0){const h=l;return h.values&&h.values.length>1?v(s,h.values,o,u):f(s,l,o,u)}e.scoreFuzzy2=S;function v(s,l,o,u){let h=0;const w=[];for(const m of l){const[p,b]=f(s,m,o,u);if(typeof p!="number")return L;h+=p,w.push(...b)}return[h,i(w)]}function f(s,l,o,u){const h=(0,C.fuzzyScore)(l.original,l.originalLowercase,o,s,s.toLowerCase(),u,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return h?[h[0],(0,C.createMatches)(h)]:L}const g=Object.freeze({score:0});function i(s){const l=s.sort((h,w)=>h.start-w.start),o=[];let u;for(const h of l)!u||!t(u,h)?(u=h,o.push(h)):(u.start=Math.min(u.start,h.start),u.end=Math.max(u.end,h.end));return o}function t(s,l){return!(s.end<l.start||l.end<s.start)}function n(s){return s.startsWith('"')&&s.endsWith('"')}const a=" ";function r(s){typeof s!="string"&&(s="");const l=s.toLowerCase(),{pathNormalized:o,normalized:u,normalizedLowercase:h}=c(s),w=o.indexOf(N.sep)>=0,m=n(s);let p;const b=s.split(a);if(b.length>1)for(const y of b){const k=n(y),{pathNormalized:D,normalized:M,normalizedLowercase:z}=c(y);M&&(p||(p=[]),p.push({original:y,originalLowercase:y.toLowerCase(),pathNormalized:D,normalized:M,normalizedLowercase:z,expectContiguousMatch:k}))}return{original:s,originalLowercase:l,pathNormalized:o,normalized:u,normalizedLowercase:h,values:p,containsPathSeparator:w,expectContiguousMatch:m}}e.prepareQuery=r;function c(s){let l;E.isWindows?l=s.replace(/\//g,N.sep):l=s.replace(/\\/g,N.sep);const o=(0,I.stripWildcards)(l).replace(/\s|"/g,"");return{pathNormalized:l,normalized:o,normalizedLowercase:o.toLowerCase()}}function d(s){return Array.isArray(s)?r(s.map(l=>l.original).join(a)):r(s.original)}e.pieceToQuery=d}),define(_[520],ee([1,0,198,16]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.normalizeDriveLetter=void 0;function E(L,S=N.isWindows){return(0,C.hasDriveLetter)(L,S)?L.charAt(0).toUpperCase()+L.slice(1):L}e.normalizeDriveLetter=E;let I=Object.create(null)}),define(_[60],ee([1,0,16]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StopWatch=void 0;const N=C.globals.performance&&typeof C.globals.performance.now=="function";class E{static create(L=!0){return new E(L)}constructor(L){this.a=N&&L,this.b=this.d(),this.c=-1}stop(){this.c=this.d()}elapsed(){return this.c!==-1?this.c-this.b:this.d()-this.b}d(){return this.a?C.globals.performance.now():Date.now()}}e.StopWatch=E}),define(_[6],ee([1,0,13,92,2,59,60]),function(q,e,C,N,E,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Relay=e.EventBufferer=e.EventMultiplexer=e.MicrotaskEmitter=e.DebounceEmitter=e.PauseableEmitter=e.EventDeliveryQueue=e.Emitter=e.EventProfiling=e.Event=void 0;const S=!1,v=!1;var f;(function(p){p.None=()=>E.Disposable.None;function b(te){if(v){const{onDidAddListener:Z}=te,ae=n.create();let de=0;te.onDidAddListener=()=>{++de===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),ae.print()),Z?.()}}}function y(te,Z){return O(te,()=>{},0,void 0,!0,void 0,Z)}p.defer=y;function k(te){return(Z,ae=null,de)=>{let K=!1,Y;return Y=te(ne=>{if(!K)return Y?Y.dispose():K=!0,Z.call(ae,ne)},null,de),K&&Y.dispose(),Y}}p.once=k;function D(te,Z,ae){return T((de,K=null,Y)=>te(ne=>de.call(K,Z(ne)),null,Y),ae)}p.map=D;function M(te,Z,ae){return T((de,K=null,Y)=>te(ne=>{Z(ne),de.call(K,ne)},null,Y),ae)}p.forEach=M;function z(te,Z,ae){return T((de,K=null,Y)=>te(ne=>Z(ne)&&de.call(K,ne),null,Y),ae)}p.filter=z;function R(te){return te}p.signal=R;function P(...te){return(Z,ae=null,de)=>(0,E.combinedDisposable)(...te.map(K=>K(Y=>Z.call(ae,Y),null,de)))}p.any=P;function A(te,Z,ae,de){let K=ae;return D(te,Y=>(K=Z(K,Y),K),de)}p.reduce=A;function T(te,Z){let ae;const de={onWillAddFirstListener(){ae=te(K.fire,K)},onDidRemoveLastListener(){ae?.dispose()}};Z||b(de);const K=new r(de);return Z?.add(K),K.event}function O(te,Z,ae=100,de=!1,K=!1,Y,ne){let V,H,$,oe=0,re;const X={leakWarningThreshold:Y,onWillAddFirstListener(){V=te(me=>{oe++,H=Z(H,me),de&&!$&&(le.fire(H),H=void 0),re=()=>{const we=H;H=void 0,$=void 0,(!de||oe>1)&&le.fire(we),oe=0},typeof ae=="number"?(clearTimeout($),$=setTimeout(re,ae)):$===void 0&&($=0,queueMicrotask(re))})},onWillRemoveListener(){K&&oe>0&&re?.()},onDidRemoveLastListener(){re=void 0,V.dispose()}};ne||b(X);const le=new r(X);return ne?.add(le),le.event}p.debounce=O;function B(te,Z=0,ae){return p.debounce(te,(de,K)=>de?(de.push(K),de):[K],Z,void 0,!0,void 0,ae)}p.accumulate=B;function W(te,Z=(de,K)=>de===K,ae){let de=!0,K;return z(te,Y=>{const ne=de||!Z(Y,K);return de=!1,K=Y,ne},ae)}p.latch=W;function j(te,Z,ae){return[p.filter(te,Z,ae),p.filter(te,de=>!Z(de),ae)]}p.split=j;function F(te,Z=!1,ae=[]){let de=ae.slice(),K=te(V=>{de?de.push(V):ne.fire(V)});const Y=()=>{de?.forEach(V=>ne.fire(V)),de=null},ne=new r({onWillAddFirstListener(){K||(K=te(V=>ne.fire(V)))},onDidAddFirstListener(){de&&(Z?setTimeout(Y):Y())},onDidRemoveLastListener(){K&&K.dispose(),K=null}});return ne.event}p.buffer=F;class U{constructor(Z){this.event=Z,this.c=new E.DisposableStore}map(Z){return new U(D(this.event,Z,this.c))}forEach(Z){return new U(M(this.event,Z,this.c))}filter(Z){return new U(z(this.event,Z,this.c))}reduce(Z,ae){return new U(A(this.event,Z,ae,this.c))}latch(){return new U(W(this.event,void 0,this.c))}debounce(Z,ae=100,de=!1,K=!1,Y){return new U(O(this.event,Z,ae,de,K,Y,this.c))}on(Z,ae,de){return this.event(Z,ae,de)}once(Z,ae,de){return k(this.event)(Z,ae,de)}dispose(){this.c.dispose()}}function Q(te){return new U(te)}p.chain=Q;function se(te,Z,ae=de=>de){const de=(...V)=>ne.fire(ae(...V)),K=()=>te.on(Z,de),Y=()=>te.removeListener(Z,de),ne=new r({onWillAddFirstListener:K,onDidRemoveLastListener:Y});return ne.event}p.fromNodeEventEmitter=se;function he(te,Z,ae=de=>de){const de=(...V)=>ne.fire(ae(...V)),K=()=>te.addEventListener(Z,de),Y=()=>te.removeEventListener(Z,de),ne=new r({onWillAddFirstListener:K,onDidRemoveLastListener:Y});return ne.event}p.fromDOMEventEmitter=he;function ie(te){return new Promise(Z=>k(te)(Z))}p.toPromise=ie;function ue(te,Z){return Z(void 0),te(ae=>Z(ae))}p.runAndSubscribe=ue;function J(te,Z){let ae=null;function de(Y){ae?.dispose(),ae=new E.DisposableStore,Z(Y,ae)}de(void 0);const K=te(Y=>de(Y));return(0,E.toDisposable)(()=>{K.dispose(),ae?.dispose()})}p.runAndSubscribeWithStore=J;class x{constructor(Z,ae){this.obs=Z,this.c=0,this.d=!1;const de={onWillAddFirstListener:()=>{Z.addObserver(this)},onDidRemoveLastListener:()=>{Z.removeObserver(this)}};ae||b(de),this.emitter=new r(de),ae&&ae.add(this.emitter)}beginUpdate(Z){this.c++}handleChange(Z,ae){this.d=!0}endUpdate(Z){--this.c===0&&this.d&&(this.d=!1,this.emitter.fire(this.obs.get()))}}function G(te,Z){return new x(te,Z).emitter.event}p.fromObservable=G})(f=e.Event||(e.Event={}));class g{constructor(b){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${b}_${g.c++}`,g.all.add(this)}start(b){this.d=new L.StopWatch(!0),this.listenerCount=b}stop(){if(this.d){const b=this.d.elapsed();this.durations.push(b),this.elapsedOverall+=b,this.invocationCount+=1,this.d=void 0}}}g.all=new Set,g.c=0,e.EventProfiling=g;let i=-1;class t{constructor(b,y=Math.random().toString(18).slice(2,5)){this.threshold=b,this.name=y,this.d=0}dispose(){var b;(b=this.c)===null||b===void 0||b.clear()}check(b,y){const k=this.threshold;if(k<=0||y<k)return;this.c||(this.c=new Map);const D=this.c.get(b.value)||0;if(this.c.set(b.value,D+1),this.d-=1,this.d<=0){this.d=k*.5;let M,z=0;for(const[R,P]of this.c)(!M||z<P)&&(M=R,z=P);console.warn(`[${this.name}] potential listener LEAK detected, having ${y} listeners already. MOST frequent listener (${z}):`),console.warn(M)}return()=>{const M=this.c.get(b.value)||0;this.c.set(b.value,M-1)}}}class n{static create(){var b;return new n((b=new Error().stack)!==null&&b!==void 0?b:"")}constructor(b){this.value=b}print(){console.warn(this.value.split(`
|
||
`).slice(2).join(`
|
||
`))}}class a{constructor(b,y,k){this.callback=b,this.callbackThis=y,this.stack=k,this.subscription=new E.SafeDisposable}invoke(b){this.callback.call(this.callbackThis,b)}}class r{constructor(b){var y,k,D,M,z;this.j=!1,this.d=b,this.f=i>0||((y=this.d)===null||y===void 0?void 0:y.leakWarningThreshold)?new t((D=(k=this.d)===null||k===void 0?void 0:k.leakWarningThreshold)!==null&&D!==void 0?D:i):void 0,this.g=!((M=this.d)===null||M===void 0)&&M._profName?new g(this.d._profName):void 0,this.m=(z=this.d)===null||z===void 0?void 0:z.deliveryQueue}dispose(){var b,y,k,D;if(!this.j){if(this.j=!0,this.n){if(S){const M=Array.from(this.n);queueMicrotask(()=>{var z;for(const R of M)R.subscription.isset()&&(R.subscription.unset(),(z=R.stack)===null||z===void 0||z.print())})}this.n.clear()}(b=this.m)===null||b===void 0||b.clear(this),(k=(y=this.d)===null||y===void 0?void 0:y.onDidRemoveLastListener)===null||k===void 0||k.call(y),(D=this.f)===null||D===void 0||D.dispose()}}get event(){return this.l||(this.l=(b,y,k)=>{var D,M,z;if(this.n||(this.n=new I.LinkedList),this.f&&this.n.size>this.f.threshold*3)return console.warn(`[${this.f.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),E.Disposable.None;const R=this.n.isEmpty();R&&((D=this.d)===null||D===void 0?void 0:D.onWillAddFirstListener)&&this.d.onWillAddFirstListener(this);let P,A;this.f&&this.n.size>=Math.ceil(this.f.threshold*.2)&&(A=n.create(),P=this.f.check(A,this.n.size+1)),S&&(A=A??n.create());const T=new a(b,y,A),O=this.n.push(T);R&&((M=this.d)===null||M===void 0?void 0:M.onDidAddFirstListener)&&this.d.onDidAddFirstListener(this),!((z=this.d)===null||z===void 0)&&z.onDidAddListener&&this.d.onDidAddListener(this,b,y);const B=T.subscription.set(()=>{var W,j;P?.(),this.j||((j=(W=this.d)===null||W===void 0?void 0:W.onWillRemoveListener)===null||j===void 0||j.call(W,this),O(),this.d&&this.d.onDidRemoveLastListener&&(this.n&&!this.n.isEmpty()||this.d.onDidRemoveLastListener(this)))});return k instanceof E.DisposableStore?k.add(B):Array.isArray(k)&&k.push(B),B}),this.l}fire(b){var y,k;if(this.n){this.m||(this.m=new d);for(const D of this.n)this.m.push(this,D,b);(y=this.g)===null||y===void 0||y.start(this.m.size),this.m.deliver(),(k=this.g)===null||k===void 0||k.stop()}}hasListeners(){return this.n?!this.n.isEmpty():!1}}e.Emitter=r;class c{constructor(){this.c=new I.LinkedList}get size(){return this.c.size}push(b,y,k){this.c.push(new s(b,y,k))}clear(b){const y=new I.LinkedList;for(const k of this.c)k.emitter!==b&&y.push(k);this.c=y}deliver(){for(;this.c.size>0;){const b=this.c.shift();try{b.listener.invoke(b.event)}catch(y){(0,C.onUnexpectedError)(y)}}}}e.EventDeliveryQueue=c;class d extends c{clear(b){this.c.clear()}}class s{constructor(b,y,k){this.emitter=b,this.listener=y,this.event=k}}class l extends r{constructor(b){super(b),this.c=0,this.h=new I.LinkedList,this.k=b?.merge}pause(){this.c++}resume(){if(this.c!==0&&--this.c===0)if(this.k){if(this.h.size>0){const b=Array.from(this.h);this.h.clear(),super.fire(this.k(b))}}else for(;!this.c&&this.h.size!==0;)super.fire(this.h.shift())}fire(b){this.n&&(this.c!==0?this.h.push(b):super.fire(b))}}e.PauseableEmitter=l;class o extends l{constructor(b){var y;super(b),this.o=(y=b.delay)!==null&&y!==void 0?y:100}fire(b){this.p||(this.pause(),this.p=setTimeout(()=>{this.p=void 0,this.resume()},this.o)),super.fire(b)}}e.DebounceEmitter=o;class u extends r{constructor(b){super(b),this.c=[],this.h=b?.merge}fire(b){!this.hasListeners()||(this.c.push(b),this.c.length===1&&queueMicrotask(()=>{this.h?super.fire(this.h(this.c)):this.c.forEach(y=>super.fire(y)),this.c=[]}))}}e.MicrotaskEmitter=u;class h{constructor(){this.d=!1,this.f=[],this.c=new r({onWillAddFirstListener:()=>this.g(),onDidRemoveLastListener:()=>this.h()})}get event(){return this.c.event}add(b){const y={event:b,listener:null};this.f.push(y),this.d&&this.j(y);const k=()=>{this.d&&this.k(y);const D=this.f.indexOf(y);this.f.splice(D,1)};return(0,E.toDisposable)((0,N.once)(k))}g(){this.d=!0,this.f.forEach(b=>this.j(b))}h(){this.d=!1,this.f.forEach(b=>this.k(b))}j(b){b.listener=b.event(y=>this.c.fire(y))}k(b){b.listener&&b.listener.dispose(),b.listener=null}dispose(){this.c.dispose()}}e.EventMultiplexer=h;class w{constructor(){this.c=[]}wrapEvent(b){return(y,k,D)=>b(M=>{const z=this.c[this.c.length-1];z?z.push(()=>y.call(k,M)):y.call(k,M)},void 0,D)}bufferEvents(b){const y=[];this.c.push(y);const k=b();return this.c.pop(),y.forEach(D=>D()),k}}e.EventBufferer=w;class m{constructor(){this.c=!1,this.d=f.None,this.f=E.Disposable.None,this.g=new r({onDidAddFirstListener:()=>{this.c=!0,this.f=this.d(this.g.fire,this.g)},onDidRemoveLastListener:()=>{this.c=!1,this.f.dispose()}}),this.event=this.g.event}set input(b){this.d=b,this.c&&(this.f.dispose(),this.f=b(this.g.fire,this.g))}dispose(){this.f.dispose(),this.g.dispose()}}e.Relay=m}),define(_[45],ee([1,0,6,2]),function(q,e,C,N){"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 E{constructor(){this.a=1}getZoomFactor(){return this.a}}E.INSTANCE=new E;class I extends N.Disposable{constructor(){super(),this.a=this.q(new C.Emitter),this.onDidChange=this.a.event,this.b=()=>this.g(!0),this.c=null,this.g(!1)}g(a){var r;(r=this.c)===null||r===void 0||r.removeEventListener("change",this.b),this.c=window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),this.c.addEventListener("change",this.b),a&&this.a.fire()}}class L extends N.Disposable{get value(){return this.b}constructor(){super(),this.a=this.q(new C.Emitter),this.onDidChange=this.a.event,this.b=this.c();const a=this.q(new I);this.q(a.onDidChange(()=>{this.b=this.c(),this.a.fire(this.b)}))}c(){const a=document.createElement("canvas").getContext("2d"),r=window.devicePixelRatio||1,c=a.webkitBackingStorePixelRatio||a.mozBackingStorePixelRatio||a.msBackingStorePixelRatio||a.oBackingStorePixelRatio||a.backingStorePixelRatio||1;return r/c}}class S{constructor(){this.a=null}b(){return this.a||(this.a=(0,N.markAsSingleton)(new L)),this.a}get value(){return this.b().value}get onDidChange(){return this.b().onDidChange}}function v(n,a){typeof n=="string"&&(n=window.matchMedia(n)),n.addEventListener("change",a)}e.addMatchMediaChangeListener=v,e.PixelRatio=new S;function f(){return E.INSTANCE.getZoomFactor()}e.getZoomFactor=f;const g=navigator.userAgent;e.isFirefox=g.indexOf("Firefox")>=0,e.isWebKit=g.indexOf("AppleWebKit")>=0,e.isChrome=g.indexOf("Chrome")>=0,e.isSafari=!e.isChrome&&g.indexOf("Safari")>=0,e.isWebkitWebView=!e.isChrome&&!e.isSafari&&e.isWebKit,e.isElectron=g.indexOf("Electron/")>=0,e.isAndroid=g.indexOf("Android")>=0;let i=!1;if(window.matchMedia){const n=window.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),a=window.matchMedia("(display-mode: fullscreen)");i=n.matches,v(n,({matches:r})=>{i&&a.matches||(i=r)})}function t(){return i}e.isStandalone=t}),define(_[199],ee([1,0,45,16]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BrowserFeatures=void 0,e.BrowserFeatures={clipboard:{writeText:N.isNative||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:N.isNative||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:(()=>N.isNative||C.isStandalone()?0:navigator.keyboard||C.isSafari?1:2)(),touch:"ontouchstart"in window||navigator.maxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0)}}),define(_[75],ee([1,0,6]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DomEmitter=void 0;class N{get event(){return this.a.event}constructor(I,L,S){const v=f=>this.a.fire(f);this.a=new C.Emitter({onWillAddFirstListener:()=>I.addEventListener(L,v,S),onDidRemoveLastListener:()=>I.removeEventListener(L,v,S)})}dispose(){this.a.dispose()}}e.DomEmitter=N}),define(_[43],ee([1,0,45,58,110,16]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StandardKeyboardEvent=void 0;function L(t){if(t.charCode){const a=String.fromCharCode(t.charCode).toUpperCase();return N.KeyCodeUtils.fromString(a)}const n=t.keyCode;if(n===3)return 7;if(C.isFirefox){if(n===59)return 80;if(n===107)return 81;if(n===109)return 83;if(I.isMacintosh&&n===224)return 57}else if(C.isWebKit){if(n===91)return 57;if(I.isMacintosh&&n===93)return 57;if(!I.isMacintosh&&n===92)return 57}return N.EVENT_KEY_CODE_MAP[n]||0}const S=I.isMacintosh?256:2048,v=512,f=1024,g=I.isMacintosh?2048:256;class i{constructor(n){this._standardKeyboardEventBrand=!0;const a=n;this.browserEvent=a,this.target=a.target,this.ctrlKey=a.ctrlKey,this.shiftKey=a.shiftKey,this.altKey=a.altKey,this.metaKey=a.metaKey,this.altGraphKey=a.getModifierState("AltGraph"),this.keyCode=L(a),this.code=a.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.a=this.c(),this.b=this.d()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeyCodeChord(){return this.b}equals(n){return this.a===n}c(){let n=0;this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(n=this.keyCode);let a=0;return this.ctrlKey&&(a|=S),this.altKey&&(a|=v),this.shiftKey&&(a|=f),this.metaKey&&(a|=g),a|=n,a}d(){let n=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(n=this.keyCode),new E.KeyCodeChord(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,n)}}e.StandardKeyboardEvent=i}),define(_[66],ee([1,0,45,339,16]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StandardWheelEvent=e.StandardMouseEvent=void 0;class I{constructor(v){this.timestamp=Date.now(),this.browserEvent=v,this.leftButton=v.button===0,this.middleButton=v.button===1,this.rightButton=v.button===2,this.buttons=v.buttons,this.target=v.target,this.detail=v.detail||1,v.type==="dblclick"&&(this.detail=2),this.ctrlKey=v.ctrlKey,this.shiftKey=v.shiftKey,this.altKey=v.altKey,this.metaKey=v.metaKey,typeof v.pageX=="number"?(this.posx=v.pageX,this.posy=v.pageY):(this.posx=v.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=v.clientY+document.body.scrollTop+document.documentElement.scrollTop);const f=N.IframeUtils.getPositionOfChildWindowRelativeToAncestorWindow(self,v.view);this.posx-=f.left,this.posy-=f.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}e.StandardMouseEvent=I;class L{constructor(v,f=0,g=0){if(this.browserEvent=v||null,this.target=v?v.target||v.targetNode||v.srcElement:null,this.deltaY=g,this.deltaX=f,v){const i=v,t=v;if(typeof i.wheelDeltaY<"u")this.deltaY=i.wheelDeltaY/120;else if(typeof t.VERTICAL_AXIS<"u"&&t.axis===t.VERTICAL_AXIS)this.deltaY=-t.detail/3;else if(v.type==="wheel"){const n=v;n.deltaMode===n.DOM_DELTA_LINE?C.isFirefox&&!E.isMacintosh?this.deltaY=-v.deltaY/3:this.deltaY=-v.deltaY:this.deltaY=-v.deltaY/40}if(typeof i.wheelDeltaX<"u")C.isSafari&&E.isWindows?this.deltaX=-(i.wheelDeltaX/120):this.deltaX=i.wheelDeltaX/120;else if(typeof t.HORIZONTAL_AXIS<"u"&&t.axis===t.HORIZONTAL_AXIS)this.deltaX=-v.detail/3;else if(v.type==="wheel"){const n=v;n.deltaMode===n.DOM_DELTA_LINE?C.isFirefox&&!E.isMacintosh?this.deltaX=-v.deltaX/3:this.deltaX=-v.deltaX:this.deltaX=-v.deltaX/40}this.deltaY===0&&this.deltaX===0&&v.wheelDelta&&(this.deltaY=v.wheelDelta/120)}}preventDefault(){var v;(v=this.browserEvent)===null||v===void 0||v.preventDefault()}stopPropagation(){var v;(v=this.browserEvent)===null||v===void 0||v.stopPropagation()}}e.StandardWheelEvent=L}),define(_[41],ee([1,0,6,2,513]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toAction=e.EmptySubmenuAction=e.SubmenuAction=e.Separator=e.ActionRunner=e.Action=void 0;class I extends N.Disposable{constructor(t,n="",a="",r=!0,c){super(),this.a=this.q(new C.Emitter),this.onDidChange=this.a.event,this.i=!0,this.b=t,this.c=n,this.h=a,this.i=r,this.k=c}get id(){return this.b}get label(){return this.c}set label(t){this.l(t)}l(t){this.c!==t&&(this.c=t,this.a.fire({label:t}))}get tooltip(){return this.g||""}set tooltip(t){this.m(t)}m(t){this.g!==t&&(this.g=t,this.a.fire({tooltip:t}))}get class(){return this.h}set class(t){this.n(t)}n(t){this.h!==t&&(this.h=t,this.a.fire({class:t}))}get enabled(){return this.i}set enabled(t){this.p(t)}p(t){this.i!==t&&(this.i=t,this.a.fire({enabled:t}))}get checked(){return this.j}set checked(t){this.r(t)}r(t){this.j!==t&&(this.j=t,this.a.fire({checked:t}))}run(t,n){return ye(this,void 0,void 0,function*(){this.k&&(yield this.k(t))})}}e.Action=I;class L extends N.Disposable{constructor(){super(...arguments),this.b=this.q(new C.Emitter),this.onWillRun=this.b.event,this.c=this.q(new C.Emitter),this.onDidRun=this.c.event}run(t,n){return ye(this,void 0,void 0,function*(){if(!t.enabled)return;this.b.fire({action:t});let a;try{yield this.g(t,n)}catch(r){a=r}this.c.fire({action:t,error:a})})}g(t,n){return ye(this,void 0,void 0,function*(){yield t.run(n)})}}e.ActionRunner=L;class S{constructor(){this.id=S.ID,this.label="",this.tooltip="",this.class="separator",this.enabled=!1,this.checked=!1}static join(...t){let n=[];for(const a of t)a.length&&(n.length?n=[...n,new S,...a]:n=a);return n}run(){return ye(this,void 0,void 0,function*(){})}}S.ID="vs.actions.separator",e.Separator=S;class v{get actions(){return this.a}constructor(t,n,a,r){this.tooltip="",this.enabled=!0,this.checked=void 0,this.id=t,this.label=n,this.class=r,this.a=a}run(){return ye(this,void 0,void 0,function*(){})}}e.SubmenuAction=v;class f extends I{constructor(){super(f.ID,E.localize(0,null),void 0,!1)}}f.ID="vs.actions.empty",e.EmptySubmenuAction=f;function g(i){var t,n;return{id:i.id,label:i.label,class:void 0,enabled:(t=i.enabled)!==null&&t!==void 0?t:!0,checked:(n=i.checked)!==null&&n!==void 0?n:!1,run:()=>ye(this,void 0,void 0,function*(){return i.run()}),tooltip:i.label}}e.toAction=g}),define(_[20],ee([1,0,6]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;const N=Object.freeze(function(S,v){const f=setTimeout(S.bind(v),0);return{dispose(){clearTimeout(f)}}});var E;(function(S){function v(f){return f===S.None||f===S.Cancelled||f instanceof I?!0:!f||typeof f!="object"?!1:typeof f.isCancellationRequested=="boolean"&&typeof f.onCancellationRequested=="function"}S.isCancellationToken=v,S.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:C.Event.None}),S.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:N})})(E=e.CancellationToken||(e.CancellationToken={}));class I{constructor(){this.a=!1,this.b=null}cancel(){this.a||(this.a=!0,this.b&&(this.b.fire(void 0),this.dispose()))}get isCancellationRequested(){return this.a}get onCancellationRequested(){return this.a?N:(this.b||(this.b=new C.Emitter),this.b.event)}dispose(){this.b&&(this.b.dispose(),this.b=null)}}class L{constructor(v){this.a=void 0,this.b=void 0,this.b=v&&v.onCancellationRequested(this.cancel,this)}get token(){return this.a||(this.a=new I),this.a}cancel(){this.a?this.a instanceof I&&this.a.cancel():this.a=E.Cancelled}dispose(v=!1){var f;v&&this.cancel(),(f=this.b)===null||f===void 0||f.dispose(),this.a?this.a instanceof I&&this.a.dispose():this.a=E.None}}e.CancellationTokenSource=L});var St=this&&this.__asyncValues||function(q){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=q[Symbol.asyncIterator],C;return e?e.call(q):(q=typeof __values=="function"?__values(q):q[Symbol.iterator](),C={},N("next"),N("throw"),N("return"),C[Symbol.asyncIterator]=function(){return this},C);function N(I){C[I]=q[I]&&function(L){return new Promise(function(S,v){L=q[I](L),E(S,v,L.done,L.value)})}}function E(I,L,S,v){Promise.resolve(v).then(function(f){I({value:f,done:S})},L)}};define(_[11],ee([1,0,20,13,6,2,16,240]),function(q,e,C,N,E,I,L,S){"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.Throttler=e.raceCancellation=e.createCancelablePromise=e.isThenable=void 0;function v(k){return!!k&&typeof k.then=="function"}e.isThenable=v;function f(k){const D=new C.CancellationTokenSource,M=k(D.token),z=new Promise((R,P)=>{const A=D.token.onCancellationRequested(()=>{A.dispose(),D.dispose(),P(new N.CancellationError)});Promise.resolve(M).then(T=>{A.dispose(),D.dispose(),R(T)},T=>{A.dispose(),D.dispose(),P(T)})});return new class{cancel(){D.cancel()}then(R,P){return z.then(R,P)}catch(R){return this.then(void 0,R)}finally(R){return z.finally(R)}}}e.createCancelablePromise=f;function g(k,D,M){return new Promise((z,R)=>{const P=D.onCancellationRequested(()=>{P.dispose(),z(M)});k.then(z,R).finally(()=>P.dispose())})}e.raceCancellation=g;class i{constructor(){this.a=null,this.b=null,this.d=null}queue(D){if(this.a){if(this.d=D,!this.b){const M=()=>{this.b=null;const z=this.queue(this.d);return this.d=null,z};this.b=new Promise(z=>{this.a.then(M,M).then(z)})}return new Promise((M,z)=>{this.b.then(M,z)})}return this.a=D(),new Promise((M,z)=>{this.a.then(R=>{this.a=null,M(R)},R=>{this.a=null,z(R)})})}}e.Throttler=i;const t=(k,D)=>{let M=!0;const z=setTimeout(()=>{M=!1,D()},k);return{isTriggered:()=>M,dispose:()=>{clearTimeout(z),M=!1}}},n=k=>{let D=!0;return queueMicrotask(()=>{D&&(D=!1,k())}),{isTriggered:()=>D,dispose:()=>{D=!1}}};class a{constructor(D){this.defaultDelay=D,this.a=null,this.b=null,this.d=null,this.f=null,this.g=null}trigger(D,M=this.defaultDelay){this.g=D,this.h(),this.b||(this.b=new Promise((R,P)=>{this.d=R,this.f=P}).then(()=>{if(this.b=null,this.d=null,this.g){const R=this.g;return this.g=null,R()}}));const z=()=>{var R;this.a=null,(R=this.d)===null||R===void 0||R.call(this,null)};return this.a=M===S.MicrotaskDelay?n(z):t(M,z),this.b}isTriggered(){var D;return!!(!((D=this.a)===null||D===void 0)&&D.isTriggered())}cancel(){var D;this.h(),this.b&&((D=this.f)===null||D===void 0||D.call(this,new N.CancellationError),this.b=null)}h(){var D;(D=this.a)===null||D===void 0||D.dispose(),this.a=null}dispose(){this.cancel()}}e.Delayer=a;class r{constructor(D){this.a=new a(D),this.b=new i}trigger(D,M){return this.a.trigger(()=>this.b.queue(D),M)}cancel(){this.a.cancel()}dispose(){this.a.dispose()}}e.ThrottledDelayer=r;function c(k,D){return D?new Promise((M,z)=>{const R=setTimeout(()=>{P.dispose(),M()},k),P=D.onCancellationRequested(()=>{clearTimeout(R),P.dispose(),z(new N.CancellationError)})}):f(M=>c(k,M))}e.timeout=c;function d(k,D=0){const M=setTimeout(k,D);return(0,I.toDisposable)(()=>clearTimeout(M))}e.disposableTimeout=d;function s(k,D=z=>!!z,M=null){let z=0;const R=k.length,P=()=>{if(z>=R)return Promise.resolve(M);const A=k[z++];return Promise.resolve(A()).then(O=>D(O)?Promise.resolve(O):P())};return P()}e.first=s;class l{constructor(D,M){this.a=-1,typeof D=="function"&&typeof M=="number"&&this.setIfNotSet(D,M)}dispose(){this.cancel()}cancel(){this.a!==-1&&(clearTimeout(this.a),this.a=-1)}cancelAndSet(D,M){this.cancel(),this.a=setTimeout(()=>{this.a=-1,D()},M)}setIfNotSet(D,M){this.a===-1&&(this.a=setTimeout(()=>{this.a=-1,D()},M))}}e.TimeoutTimer=l;class o{constructor(){this.a=-1}dispose(){this.cancel()}cancel(){this.a!==-1&&(clearInterval(this.a),this.a=-1)}cancelAndSet(D,M){this.cancel(),this.a=setInterval(()=>{D()},M)}}e.IntervalTimer=o;class u{constructor(D,M){this.b=-1,this.a=D,this.d=M,this.f=this.g.bind(this)}dispose(){this.cancel(),this.a=null}cancel(){this.isScheduled()&&(clearTimeout(this.b),this.b=-1)}schedule(D=this.d){this.cancel(),this.b=setTimeout(this.f,D)}get delay(){return this.d}set delay(D){this.d=D}isScheduled(){return this.b!==-1}g(){this.b=-1,this.a&&this.h()}h(){var D;(D=this.a)===null||D===void 0||D.call(this)}}e.RunOnceScheduler=u,function(){typeof requestIdleCallback!="function"||typeof cancelIdleCallback!="function"?e.runWhenIdle=k=>{(0,L.setTimeout0)(()=>{if(D)return;const M=Date.now()+15;k(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,M-Date.now())}}))});let D=!1;return{dispose(){D||(D=!0)}}}:e.runWhenIdle=(k,D)=>{const M=requestIdleCallback(k,typeof D=="number"?{timeout:D}:void 0);let z=!1;return{dispose(){z||(z=!0,cancelIdleCallback(M))}}}}();class h{constructor(D){this.d=!1,this.a=()=>{try{this.f=D()}catch(M){this.g=M}finally{this.d=!0}},this.b=(0,e.runWhenIdle)(()=>this.a())}dispose(){this.b.dispose()}get value(){if(this.d||(this.b.dispose(),this.a()),this.g)throw this.g;return this.f}get isInitialized(){return this.d}}e.IdleValue=h;class w{get isRejected(){return this.d}get isSettled(){return this.d||this.f}constructor(){this.d=!1,this.f=!1,this.p=new Promise((D,M)=>{this.a=D,this.b=M})}complete(D){return new Promise(M=>{this.a(D),this.f=!0,M()})}cancel(){new Promise(D=>{this.b(new N.CancellationError),this.d=!0,D()})}}e.DeferredPromise=w;var m;(function(k){function D(z){return ye(this,void 0,void 0,function*(){let R;const P=yield Promise.all(z.map(A=>A.then(T=>T,T=>{R||(R=T)})));if(typeof R<"u")throw R;return P})}k.settled=D;function M(z){return new Promise((R,P)=>ye(this,void 0,void 0,function*(){try{yield z(R,P)}catch(A){P(A)}}))}k.withAsyncBody=M})(m=e.Promises||(e.Promises={}));class p{static fromArray(D){return new p(M=>{M.emitMany(D)})}static fromPromise(D){return new p(M=>ye(this,void 0,void 0,function*(){M.emitMany(yield D)}))}static fromPromises(D){return new p(M=>ye(this,void 0,void 0,function*(){yield Promise.all(D.map(z=>ye(this,void 0,void 0,function*(){return M.emitOne(yield z)})))}))}static merge(D){return new p(M=>ye(this,void 0,void 0,function*(){yield Promise.all(D.map(z=>{var R,P,A;return ye(this,void 0,void 0,function*(){var T,O,B,W;try{for(R=!0,P=St(z);A=yield P.next(),T=A.done,!T;){W=A.value,R=!1;try{const j=W;M.emitOne(j)}finally{R=!0}}}catch(j){O={error:j}}finally{try{!R&&!T&&(B=P.return)&&(yield B.call(P))}finally{if(O)throw O.error}}})}))}))}constructor(D){this.a=0,this.b=[],this.d=null,this.f=new E.Emitter,queueMicrotask(()=>ye(this,void 0,void 0,function*(){const M={emitOne:z=>this.g(z),emitMany:z=>this.h(z),reject:z=>this.k(z)};try{yield Promise.resolve(D(M)),this.j()}catch(z){this.k(z)}finally{M.emitOne=void 0,M.emitMany=void 0,M.reject=void 0}}))}[Symbol.asyncIterator](){let D=0;return{next:()=>ye(this,void 0,void 0,function*(){do{if(this.a===2)throw this.d;if(D<this.b.length)return{done:!1,value:this.b[D++]};if(this.a===1)return{done:!0,value:void 0};yield E.Event.toPromise(this.f.event)}while(!0)})}}static map(D,M){return new p(z=>ye(this,void 0,void 0,function*(){var R,P,A,T;try{for(var O=!0,B=St(D),W;W=yield B.next(),R=W.done,!R;){T=W.value,O=!1;try{const j=T;z.emitOne(M(j))}finally{O=!0}}}catch(j){P={error:j}}finally{try{!O&&!R&&(A=B.return)&&(yield A.call(B))}finally{if(P)throw P.error}}}))}map(D){return p.map(this,D)}static filter(D,M){return new p(z=>ye(this,void 0,void 0,function*(){var R,P,A,T;try{for(var O=!0,B=St(D),W;W=yield B.next(),R=W.done,!R;){T=W.value,O=!1;try{const j=T;M(j)&&z.emitOne(j)}finally{O=!0}}}catch(j){P={error:j}}finally{try{!O&&!R&&(A=B.return)&&(yield A.call(B))}finally{if(P)throw P.error}}}))}filter(D){return p.filter(this,D)}static coalesce(D){return p.filter(D,M=>!!M)}coalesce(){return p.coalesce(this)}static toPromise(D){var M,z,R,P,A,T,O;return ye(this,void 0,void 0,function*(){const B=[];try{for(M=!0,z=St(D);R=yield z.next(),P=R.done,!P;){O=R.value,M=!1;try{const W=O;B.push(W)}finally{M=!0}}}catch(W){A={error:W}}finally{try{!M&&!P&&(T=z.return)&&(yield T.call(z))}finally{if(A)throw A.error}}return B})}toPromise(){return p.toPromise(this)}g(D){this.a===0&&(this.b.push(D),this.f.fire())}h(D){this.a===0&&(this.b=this.b.concat(D),this.f.fire())}j(){this.a===0&&(this.a=1,this.f.fire())}k(D){this.a===0&&(this.a=2,this.d=D,this.f.fire())}}p.EMPTY=p.fromArray([]),e.AsyncIterableObject=p;class b extends p{constructor(D,M){super(M),this.l=D}cancel(){this.l.cancel()}}e.CancelableAsyncIterableObject=b;function y(k){const D=new C.CancellationTokenSource,M=k(D.token);return new b(D,z=>ye(this,void 0,void 0,function*(){var R,P,A,T;const O=D.token.onCancellationRequested(()=>{O.dispose(),D.dispose(),z.reject(new N.CancellationError)});try{try{for(var B=!0,W=St(M),j;j=yield W.next(),R=j.done,!R;){T=j.value,B=!1;try{const F=T;if(D.token.isCancellationRequested)return;z.emitOne(F)}finally{B=!0}}}catch(F){P={error:F}}finally{try{!B&&!R&&(A=W.return)&&(yield A.call(W))}finally{if(P)throw P.error}}O.dispose(),D.dispose()}catch(F){O.dispose(),D.dispose(),z.reject(F)}}))}e.createCancelableAsyncIterable=y}),define(_[521],ee([1,0,11,2]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ScrollbarVisibilityController=void 0;class E extends N.Disposable{constructor(L,S,v){super(),this.a=L,this.b=S,this.c=v,this.g=null,this.k=!1,this.j=!1,this.h=!1,this.i=!1,this.l=this.q(new C.TimeoutTimer)}setVisibility(L){this.a!==L&&(this.a=L,this.n())}setShouldBeVisible(L){this.h=L,this.n()}m(){return this.a===2?!1:this.a===3?!0:this.h}n(){const L=this.m();this.i!==L&&(this.i=L,this.ensureVisibility())}setIsNeeded(L){this.j!==L&&(this.j=L,this.ensureVisibility())}setDomNode(L){this.g=L,this.g.setClassName(this.c),this.setShouldBeVisible(!1)}ensureVisibility(){if(!this.j){this.r(!1);return}this.i?this.p():this.r(!0)}p(){this.k||(this.k=!0,this.l.setIfNotSet(()=>{var L;(L=this.g)===null||L===void 0||L.setClassName(this.b)},0))}r(L){var S;this.l.cancel(),this.k&&(this.k=!1,(S=this.g)===null||S===void 0||S.setClassName(this.c+(L?" fade":"")))}}e.ScrollbarVisibilityController=E}),define(_[200],ee([1,0,125,17,11,240,152,6,54]),function(q,e,C,N,E,I,L,S,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndexTreeModel=e.getVisibleState=e.isFilterResult=void 0;function f(n){return typeof n=="object"&&"visibility"in n&&"data"in n}e.isFilterResult=f;function g(n){switch(n){case!0:return 1;case!1:return 0;default:return n}}e.getVisibleState=g;function i(n){return typeof n.collapsible=="boolean"}class t{constructor(a,r,c,d={}){this.o=a,this.p=r,this.rootRef=[],this.d=new S.EventBufferer,this.f=new S.Emitter,this.onDidChangeCollapseState=this.d.wrapEvent(this.f.event),this.g=new S.Emitter,this.onDidChangeRenderNodeCount=this.d.wrapEvent(this.g.event),this.l=new S.Emitter,this.onDidSplice=this.l.event,this.m=new E.Delayer(I.MicrotaskDelay),this.h=typeof d.collapseByDefault>"u"?!1:d.collapseByDefault,this.j=d.filter,this.k=typeof d.autoExpandSingleChildren>"u"?!1:d.autoExpandSingleChildren,this.c={parent:void 0,element:c,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visibility:1,visible:!0,filterData:void 0}}splice(a,r,c=v.Iterable.empty(),d={}){if(a.length===0)throw new C.TreeError(this.o,"Invalid tree location");d.diffIdentityProvider?this.q(d.diffIdentityProvider,a,r,c,d):this.s(a,r,c,d)}q(a,r,c,d,s,l){var o;d===void 0&&(d=v.Iterable.empty()),l===void 0&&(l=(o=s.diffDepth)!==null&&o!==void 0?o:0);const{parentNode:u}=this.G(r);if(!u.lastDiffIds)return this.s(r,c,d,s);const h=[...d],w=r[r.length-1],m=new L.LcsDiff({getElements:()=>u.lastDiffIds},{getElements:()=>[...u.children.slice(0,w),...h,...u.children.slice(w+c)].map(D=>a.getId(D.element).toString())}).ComputeDiff(!1);if(m.quitEarly)return u.lastDiffIds=void 0,this.s(r,c,h,s);const p=r.slice(0,-1),b=(D,M,z)=>{if(l>0)for(let R=0;R<z;R++)D--,M--,this.q(a,[...p,D,0],Number.MAX_SAFE_INTEGER,h[M].children,s,l-1)};let y=Math.min(u.children.length,w+c),k=h.length;for(const D of m.changes.sort((M,z)=>z.originalStart-M.originalStart))b(y,k,y-(D.originalStart+D.originalLength)),y=D.originalStart,k=D.modifiedStart-w,this.s([...p,y],D.originalLength,v.Iterable.slice(h,k,k+D.modifiedLength),s);b(y,k,y)}s(a,r,c=v.Iterable.empty(),{onDidCreateNode:d,onDidDeleteNode:s,diffIdentityProvider:l}){const{parentNode:o,listIndex:u,revealed:h,visible:w}=this.G(a),m=[],p=v.Iterable.map(c,O=>this.w(O,o,o.visible?1:0,h,m,d)),b=a[a.length-1],y=o.children.length>0;let k=0;for(let O=b;O>=0&&O<o.children.length;O--){const B=o.children[O];if(B.visible){k=B.visibleChildIndex;break}}const D=[];let M=0,z=0;for(const O of p)D.push(O),z+=O.renderNodeCount,O.visible&&(O.visibleChildIndex=k+M++);const R=(0,N.splice)(o.children,b,r,D);l?o.lastDiffIds?(0,N.splice)(o.lastDiffIds,b,r,D.map(O=>l.getId(O.element).toString())):o.lastDiffIds=o.children.map(O=>l.getId(O.element).toString()):o.lastDiffIds=void 0;let P=0;for(const O of R)O.visible&&P++;if(P!==0)for(let O=b+D.length;O<o.children.length;O++){const B=o.children[O];B.visible&&(B.visibleChildIndex-=P)}if(o.visibleChildrenCount+=M-P,h&&w){const O=R.reduce((B,W)=>B+(W.visible?W.renderNodeCount:0),0);this.B(o,z-O),this.p.splice(u,O,m)}if(R.length>0&&s){const O=B=>{s(B),B.children.forEach(O)};R.forEach(O)}this.l.fire({insertedNodes:D,deletedNodes:R});const A=o.children.length>0;y!==A&&this.setCollapsible(a.slice(0,-1),A);let T=o;for(;T;){if(T.visibility===2){this.m.trigger(()=>this.refilter());break}T=T.parent}}rerender(a){if(a.length===0)throw new C.TreeError(this.o,"Invalid tree location");const{node:r,listIndex:c,revealed:d}=this.F(a);r.visible&&d&&this.p.splice(c,1,[r])}has(a){return this.D(a)}getListIndex(a){const{listIndex:r,visible:c,revealed:d}=this.F(a);return c&&d?r:-1}getListRenderCount(a){return this.E(a).renderNodeCount}isCollapsible(a){return this.E(a).collapsible}setCollapsible(a,r){const c=this.E(a);typeof r>"u"&&(r=!c.collapsible);const d={collapsible:r};return this.d.bufferEvents(()=>this.t(a,d))}isCollapsed(a){return this.E(a).collapsed}setCollapsed(a,r,c){const d=this.E(a);typeof r>"u"&&(r=!d.collapsed);const s={collapsed:r,recursive:c||!1};return this.d.bufferEvents(()=>this.t(a,s))}t(a,r){const{node:c,listIndex:d,revealed:s}=this.F(a),l=this.u(c,d,s,r);if(c!==this.c&&this.k&&l&&!i(r)&&c.collapsible&&!c.collapsed&&!r.recursive){let o=-1;for(let u=0;u<c.children.length;u++)if(c.children[u].visible)if(o>-1){o=-1;break}else o=u;o>-1&&this.t([...a,o],r)}return l}u(a,r,c,d){const s=this.v(a,d,!1);if(!c||!a.visible||!s)return s;const l=a.renderNodeCount,o=this.x(a),u=l-(r===-1?0:1);return this.p.splice(r+1,u,o.slice(1)),s}v(a,r,c){let d;if(a===this.c?d=!1:(i(r)?(d=a.collapsible!==r.collapsible,a.collapsible=r.collapsible):a.collapsible?(d=a.collapsed!==r.collapsed,a.collapsed=r.collapsed):d=!1,d&&this.f.fire({node:a,deep:c})),!i(r)&&r.recursive)for(const s of a.children)d=this.v(s,r,!0)||d;return d}expandTo(a){this.d.bufferEvents(()=>{let r=this.E(a);for(;r.parent;)r=r.parent,a=a.slice(0,a.length-1),r.collapsed&&this.t(a,{collapsed:!1,recursive:!1})})}refilter(){const a=this.c.renderNodeCount,r=this.z(this.c);this.p.splice(0,a,r),this.m.cancel()}w(a,r,c,d,s,l){const o={parent:r,element:a.element,children:[],depth:r.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:typeof a.collapsible=="boolean"?a.collapsible:typeof a.collapsed<"u",collapsed:typeof a.collapsed>"u"?this.h:a.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},u=this.C(o,c);o.visibility=u,d&&s.push(o);const h=a.children||v.Iterable.empty(),w=d&&u!==0&&!o.collapsed;let m=0,p=1;for(const b of h){const y=this.w(b,o,u,w,s,l);o.children.push(y),p+=y.renderNodeCount,y.visible&&(y.visibleChildIndex=m++)}return o.collapsible=o.collapsible||o.children.length>0,o.visibleChildrenCount=m,o.visible=u===2?m>0:u===1,o.visible?o.collapsed||(o.renderNodeCount=p):(o.renderNodeCount=0,d&&s.pop()),l?.(o),o}x(a){const r=a.renderNodeCount,c=[];return this.y(a,c),this.B(a.parent,c.length-r),c}y(a,r){if(a.visible===!1)return 0;if(r.push(a),a.renderNodeCount=1,!a.collapsed)for(const c of a.children)a.renderNodeCount+=this.y(c,r);return this.g.fire(a),a.renderNodeCount}z(a){const r=a.renderNodeCount,c=[];return this.A(a,a.visible?1:0,c),this.B(a.parent,c.length-r),c}A(a,r,c,d=!0){let s;if(a!==this.c){if(s=this.C(a,r),s===0)return a.visible=!1,a.renderNodeCount=0,!1;d&&c.push(a)}const l=c.length;a.renderNodeCount=a===this.c?0:1;let o=!1;if(!a.collapsed||s!==0){let u=0;for(const h of a.children)o=this.A(h,s,c,d&&!a.collapsed)||o,h.visible&&(h.visibleChildIndex=u++);a.visibleChildrenCount=u}else a.visibleChildrenCount=0;return a!==this.c&&(a.visible=s===2?o:s===1,a.visibility=s),a.visible?a.collapsed||(a.renderNodeCount+=c.length-l):(a.renderNodeCount=0,d&&c.pop()),this.g.fire(a),a.visible}B(a,r){if(r!==0)for(;a;)a.renderNodeCount+=r,this.g.fire(a),a=a.parent}C(a,r){const c=this.j?this.j.filter(a.element,r):1;return typeof c=="boolean"?(a.filterData=void 0,c?1:0):f(c)?(a.filterData=c.data,g(c.visibility)):(a.filterData=void 0,g(c))}D(a,r=this.c){if(!a||a.length===0)return!0;const[c,...d]=a;return c<0||c>r.children.length?!1:this.D(d,r.children[c])}E(a,r=this.c){if(!a||a.length===0)return r;const[c,...d]=a;if(c<0||c>r.children.length)throw new C.TreeError(this.o,"Invalid tree location");return this.E(d,r.children[c])}F(a){if(a.length===0)return{node:this.c,listIndex:-1,revealed:!0,visible:!1};const{parentNode:r,listIndex:c,revealed:d,visible:s}=this.G(a),l=a[a.length-1];if(l<0||l>r.children.length)throw new C.TreeError(this.o,"Invalid tree location");const o=r.children[l];return{node:o,listIndex:c,revealed:d,visible:s&&o.visible}}G(a,r=this.c,c=0,d=!0,s=!0){const[l,...o]=a;if(l<0||l>r.children.length)throw new C.TreeError(this.o,"Invalid tree location");for(let u=0;u<l;u++)c+=r.children[u].renderNodeCount;return d=d&&!r.collapsed,s=s&&r.visible,o.length===0?{parentNode:r,listIndex:c,revealed:d,visible:s}:this.G(o,r.children[l],c+1,d,s)}getNode(a=[]){return this.E(a)}getNodeLocation(a){const r=[];let c=a;for(;c.parent;)r.push(c.parent.children.indexOf(c)),c=c.parent;return r.reverse()}getParentNodeLocation(a){if(a.length!==0)return a.length===1?[]:(0,N.tail2)(a)[0]}getFirstElementChild(a){const r=this.E(a);if(r.children.length!==0)return r.children[0].element}}e.IndexTreeModel=t}),define(_[201],ee([1,0,200,125,54]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ObjectTreeModel=void 0;class I{constructor(S,v,f={}){this.h=S,this.rootRef=null,this.d=new Map,this.e=new Map,this.c=new C.IndexTreeModel(S,v,null,f),this.onDidSplice=this.c.onDidSplice,this.onDidChangeCollapseState=this.c.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.c.onDidChangeRenderNodeCount,f.sorter&&(this.g={compare(g,i){return f.sorter.compare(g.element,i.element)}}),this.f=f.identityProvider}setChildren(S,v=E.Iterable.empty(),f={}){const g=this.k(S);this.i(g,this.j(v),f)}i(S,v=E.Iterable.empty(),f){const g=new Set,i=new Set,t=a=>{var r;if(a.element===null)return;const c=a;if(g.add(c.element),this.d.set(c.element,c),this.f){const d=this.f.getId(c.element).toString();i.add(d),this.e.set(d,c)}(r=f.onDidCreateNode)===null||r===void 0||r.call(f,c)},n=a=>{var r;if(a.element===null)return;const c=a;if(g.has(c.element)||this.d.delete(c.element),this.f){const d=this.f.getId(c.element).toString();i.has(d)||this.e.delete(d)}(r=f.onDidDeleteNode)===null||r===void 0||r.call(f,c)};this.c.splice([...S,0],Number.MAX_VALUE,v,Object.assign(Object.assign({},f),{onDidCreateNode:t,onDidDeleteNode:n}))}j(S=E.Iterable.empty()){return this.g&&(S=[...S].sort(this.g.compare.bind(this.g))),E.Iterable.map(S,v=>{let f=this.d.get(v.element);if(!f&&this.f){const t=this.f.getId(v.element).toString();f=this.e.get(t)}if(!f)return Object.assign(Object.assign({},v),{children:this.j(v.children)});const g=typeof v.collapsible=="boolean"?v.collapsible:f.collapsible,i=typeof v.collapsed<"u"?v.collapsed:f.collapsed;return Object.assign(Object.assign({},v),{collapsible:g,collapsed:i,children:this.j(v.children)})})}rerender(S){const v=this.k(S);this.c.rerender(v)}getFirstElementChild(S=null){const v=this.k(S);return this.c.getFirstElementChild(v)}has(S){return this.d.has(S)}getListIndex(S){const v=this.k(S);return this.c.getListIndex(v)}getListRenderCount(S){const v=this.k(S);return this.c.getListRenderCount(v)}isCollapsible(S){const v=this.k(S);return this.c.isCollapsible(v)}setCollapsible(S,v){const f=this.k(S);return this.c.setCollapsible(f,v)}isCollapsed(S){const v=this.k(S);return this.c.isCollapsed(v)}setCollapsed(S,v,f){const g=this.k(S);return this.c.setCollapsed(g,v,f)}expandTo(S){const v=this.k(S);this.c.expandTo(v)}refilter(){this.c.refilter()}getNode(S=null){if(S===null)return this.c.getNode(this.c.rootRef);const v=this.d.get(S);if(!v)throw new N.TreeError(this.h,`Tree element not found: ${S}`);return v}getNodeLocation(S){return S.element}getParentNodeLocation(S){if(S===null)throw new N.TreeError(this.h,"Invalid getParentNodeLocation call");const v=this.d.get(S);if(!v)throw new N.TreeError(this.h,`Tree element not found: ${S}`);const f=this.c.getNodeLocation(v),g=this.c.getParentNodeLocation(f);return this.c.getNode(g).element}k(S){if(S===null)return[];const v=this.d.get(S);if(!v)throw new N.TreeError(this.h,`Tree element not found: ${S}`);return this.c.getNodeLocation(v)}}e.ObjectTreeModel=I}),define(_[522],ee([1,0,201,125,6,54]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CompressibleObjectTreeModel=e.DefaultElementMapper=e.CompressedObjectTreeModel=e.decompress=e.compress=void 0;function L(s){const l=[s.element],o=s.incompressible||!1;return{element:{elements:l,incompressible:o},children:I.Iterable.map(I.Iterable.from(s.children),L),collapsible:s.collapsible,collapsed:s.collapsed}}function S(s){const l=[s.element],o=s.incompressible||!1;let u,h;for(;[h,u]=I.Iterable.consume(I.Iterable.from(s.children),2),!(h.length!==1||h[0].incompressible);)s=h[0],l.push(s.element);return{element:{elements:l,incompressible:o},children:I.Iterable.map(I.Iterable.concat(h,u),S),collapsible:s.collapsible,collapsed:s.collapsed}}e.compress=S;function v(s,l=0){let o;return l<s.element.elements.length-1?o=[v(s,l+1)]:o=I.Iterable.map(I.Iterable.from(s.children),u=>v(u,0)),l===0&&s.element.incompressible?{element:s.element.elements[l],children:o,incompressible:!0,collapsible:s.collapsible,collapsed:s.collapsed}:{element:s.element.elements[l],children:o,collapsible:s.collapsible,collapsed:s.collapsed}}function f(s){return v(s,0)}e.decompress=f;function g(s,l,o){return s.element===l?Object.assign(Object.assign({},s),{children:o}):Object.assign(Object.assign({},s),{children:I.Iterable.map(I.Iterable.from(s.children),u=>g(u,l,o))})}const i=s=>({getId(l){return l.elements.map(o=>s.getId(o).toString()).join("\0")}});class t{get onDidSplice(){return this.a.onDidSplice}get onDidChangeCollapseState(){return this.a.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.a.onDidChangeRenderNodeCount}constructor(l,o,u={}){this.f=l,this.rootRef=null,this.b=new Map,this.a=new C.ObjectTreeModel(l,o,u),this.c=typeof u.compressionEnabled>"u"?!0:u.compressionEnabled,this.d=u.identityProvider}setChildren(l,o=I.Iterable.empty(),u){const h=u.diffIdentityProvider&&i(u.diffIdentityProvider);if(l===null){const z=I.Iterable.map(o,this.c?S:L);this.g(null,z,{diffIdentityProvider:h,diffDepth:1/0});return}const w=this.b.get(l);if(!w)throw new N.TreeError(this.f,"Unknown compressed tree node");const m=this.a.getNode(w),p=this.a.getParentNodeLocation(w),b=this.a.getNode(p),y=f(m),k=g(y,l,o),D=(this.c?S:L)(k),M=b.children.map(z=>z===m?D:z);this.g(b.element,M,{diffIdentityProvider:h,diffDepth:m.depth-b.depth})}setCompressionEnabled(l){if(l===this.c)return;this.c=l;const u=this.a.getNode().children,h=I.Iterable.map(u,f),w=I.Iterable.map(h,l?S:L);this.g(null,w,{diffIdentityProvider:this.d,diffDepth:1/0})}g(l,o,u){const h=new Set,w=p=>{for(const b of p.element.elements)h.add(b),this.b.set(b,p.element)},m=p=>{for(const b of p.element.elements)h.has(b)||this.b.delete(b)};this.a.setChildren(l,o,Object.assign(Object.assign({},u),{onDidCreateNode:w,onDidDeleteNode:m}))}has(l){return this.b.has(l)}getListIndex(l){const o=this.getCompressedNode(l);return this.a.getListIndex(o)}getListRenderCount(l){const o=this.getCompressedNode(l);return this.a.getListRenderCount(o)}getNode(l){if(typeof l>"u")return this.a.getNode();const o=this.getCompressedNode(l);return this.a.getNode(o)}getNodeLocation(l){const o=this.a.getNodeLocation(l);return o===null?null:o.elements[o.elements.length-1]}getParentNodeLocation(l){const o=this.getCompressedNode(l),u=this.a.getParentNodeLocation(o);return u===null?null:u.elements[u.elements.length-1]}getFirstElementChild(l){const o=this.getCompressedNode(l);return this.a.getFirstElementChild(o)}isCollapsible(l){const o=this.getCompressedNode(l);return this.a.isCollapsible(o)}setCollapsible(l,o){const u=this.getCompressedNode(l);return this.a.setCollapsible(u,o)}isCollapsed(l){const o=this.getCompressedNode(l);return this.a.isCollapsed(o)}setCollapsed(l,o,u){const h=this.getCompressedNode(l);return this.a.setCollapsed(h,o,u)}expandTo(l){const o=this.getCompressedNode(l);this.a.expandTo(o)}rerender(l){const o=this.getCompressedNode(l);this.a.rerender(o)}refilter(){this.a.refilter()}getCompressedNode(l){if(l===null)return null;const o=this.b.get(l);if(!o)throw new N.TreeError(this.f,`Tree element not found: ${l}`);return o}}e.CompressedObjectTreeModel=t;const n=s=>s[s.length-1];e.DefaultElementMapper=n;class a{get element(){return this.b.element===null?null:this.a(this.b.element)}get children(){return this.b.children.map(l=>new a(this.a,l))}get depth(){return this.b.depth}get visibleChildrenCount(){return this.b.visibleChildrenCount}get visibleChildIndex(){return this.b.visibleChildIndex}get collapsible(){return this.b.collapsible}get collapsed(){return this.b.collapsed}get visible(){return this.b.visible}get filterData(){return this.b.filterData}constructor(l,o){this.a=l,this.b=o}}function r(s,l){return{splice(o,u,h){l.splice(o,u,h.map(w=>s.map(w)))},updateElementHeight(o,u){l.updateElementHeight(o,u)}}}function c(s,l){return Object.assign(Object.assign({},l),{identityProvider:l.identityProvider&&{getId(o){return l.identityProvider.getId(s(o))}},sorter:l.sorter&&{compare(o,u){return l.sorter.compare(o.elements[0],u.elements[0])}},filter:l.filter&&{filter(o,u){return l.filter.filter(s(o),u)}}})}class d{get onDidSplice(){return E.Event.map(this.c.onDidSplice,({insertedNodes:l,deletedNodes:o})=>({insertedNodes:l.map(u=>this.b.map(u)),deletedNodes:o.map(u=>this.b.map(u))}))}get onDidChangeCollapseState(){return E.Event.map(this.c.onDidChangeCollapseState,({node:l,deep:o})=>({node:this.b.map(l),deep:o}))}get onDidChangeRenderNodeCount(){return E.Event.map(this.c.onDidChangeRenderNodeCount,l=>this.b.map(l))}constructor(l,o,u={}){this.rootRef=null,this.a=u.elementMapper||e.DefaultElementMapper;const h=w=>this.a(w.elements);this.b=new N.WeakMapper(w=>new a(h,w)),this.c=new t(l,r(this.b,o),c(h,u))}setChildren(l,o=I.Iterable.empty(),u={}){this.c.setChildren(l,o,u)}setCompressionEnabled(l){this.c.setCompressionEnabled(l)}has(l){return this.c.has(l)}getListIndex(l){return this.c.getListIndex(l)}getListRenderCount(l){return this.c.getListRenderCount(l)}getNode(l){return this.b.map(this.c.getNode(l))}getNodeLocation(l){return l.element}getParentNodeLocation(l){return this.c.getParentNodeLocation(l)}getFirstElementChild(l){const o=this.c.getFirstElementChild(l);return o===null||typeof o>"u"?o:this.a(o.elements)}isCollapsible(l){return this.c.isCollapsible(l)}setCollapsible(l,o){return this.c.setCollapsible(l,o)}isCollapsed(l){return this.c.isCollapsed(l)}setCollapsed(l,o,u){return this.c.setCollapsed(l,o,u)}expandTo(l){return this.c.expandTo(l)}rerender(l){return this.c.rerender(l)}refilter(){return this.c.refilter()}getCompressedTreeNode(l=null){return this.c.getNode(l)}}e.CompressibleObjectTreeModel=d}),define(_[271],ee([1,0,11,198,55,88,16,9]),function(q,e,C,N,E,I,L,S){"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 v="[/\\\\]",f="[^/\\\\]",g=/\//g;function i(B,W){switch(B){case 0:return"";case 1:return`${f}*?`;default:return`(?:${v}|${f}+${v}${W?`|${v}${f}+`:""})*?`}}function t(B,W){if(!B)return[];const j=[];let F=!1,U=!1,Q="";for(const se of B){switch(se){case W:if(!F&&!U){j.push(Q),Q="";continue}break;case"{":F=!0;break;case"}":F=!1;break;case"[":U=!0;break;case"]":U=!1;break}Q+=se}return Q&&j.push(Q),j}e.splitGlobAware=t;function n(B){if(!B)return"";let W="";const j=t(B,e.GLOB_SPLIT);if(j.every(F=>F===e.GLOBSTAR))W=".*";else{let F=!1;j.forEach((U,Q)=>{if(U===e.GLOBSTAR){if(F)return;W+=i(2,Q===j.length-1)}else{let se=!1,he="",ie=!1,ue="";for(const J of U){if(J!=="}"&&se){he+=J;continue}if(ie&&(J!=="]"||!ue)){let x;J==="-"?x=J:(J==="^"||J==="!")&&!ue?x="^":J===e.GLOB_SPLIT?x="":x=(0,S.escapeRegExpCharacters)(J),ue+=x;continue}switch(J){case"{":se=!0;continue;case"[":ie=!0;continue;case"}":{W+=`(?:${t(he,",").map(te=>n(te)).join("|")})`,se=!1,he="";break}case"]":{W+="["+ue+"]",ie=!1,ue="";break}case"?":W+=f;continue;case"*":W+=i(1);continue;default:W+=(0,S.escapeRegExpCharacters)(J)}}Q<j.length-1&&(j[Q+1]!==e.GLOBSTAR||Q+2<j.length)&&(W+=v)}F=U===e.GLOBSTAR})}return W}const a=/^\*\*\/\*\.[\w\.-]+$/,r=/^\*\*\/([\w\.-]+)\/?$/,c=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,d=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,s=/^\*\*((\/[\w\.-]+)+)\/?$/,l=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,o=new E.LRUCache(1e4),u=function(){return!1},h=function(){return null};function w(B,W){if(!B)return h;let j;typeof B!="string"?j=B.pattern:j=B,j=j.trim();const F=`${j}_${!!W.trimForExclusions}`;let U=o.get(F);if(U)return m(U,B);let Q;return a.test(j)?U=b(j.substr(4),j):(Q=r.exec(p(j,W)))?U=y(Q[1],j):(W.trimForExclusions?d:c).test(j)?U=k(j,W):(Q=s.exec(p(j,W)))?U=D(Q[1].substr(1),j,!0):(Q=l.exec(p(j,W)))?U=D(Q[1],j,!1):U=M(j),o.set(F,U),m(U,B)}function m(B,W){if(typeof W=="string")return B;const j=function(F,U){return(0,N.isEqualOrParent)(F,W.base,!L.isLinux)?B((0,S.ltrim)(F.substr(W.base.length),I.sep),U):null};return j.allBasenames=B.allBasenames,j.allPaths=B.allPaths,j.basenames=B.basenames,j.patterns=B.patterns,j}function p(B,W){return W.trimForExclusions&&B.endsWith("/**")?B.substr(0,B.length-2):B}function b(B,W){return function(j,F){return typeof j=="string"&&j.endsWith(B)?W:null}}function y(B,W){const j=`/${B}`,F=`\\${B}`,U=function(se,he){return typeof se!="string"?null:he?he===B?W:null:se===B||se.endsWith(j)||se.endsWith(F)?W:null},Q=[B];return U.basenames=Q,U.patterns=[W],U.allBasenames=Q,U}function k(B,W){const j=O(B.slice(1,-1).split(",").map(he=>w(he,W)).filter(he=>he!==h),B),F=j.length;if(!F)return h;if(F===1)return j[0];const U=function(he,ie){for(let ue=0,J=j.length;ue<J;ue++)if(j[ue](he,ie))return B;return null},Q=j.find(he=>!!he.allBasenames);Q&&(U.allBasenames=Q.allBasenames);const se=j.reduce((he,ie)=>ie.allPaths?he.concat(ie.allPaths):he,[]);return se.length&&(U.allPaths=se),U}function D(B,W,j){const F=I.sep===I.posix.sep,U=F?B:B.replace(g,I.sep),Q=I.sep+U,se=I.posix.sep+B;let he;return j?he=function(ie,ue){return typeof ie=="string"&&(ie===U||ie.endsWith(Q)||!F&&(ie===B||ie.endsWith(se)))?W:null}:he=function(ie,ue){return typeof ie=="string"&&(ie===U||!F&&ie===B)?W:null},he.allPaths=[(j?"*/":"./")+B],he}function M(B){try{const W=new RegExp(`^${n(B)}$`);return function(j){return W.lastIndex=0,typeof j=="string"&&W.test(j)?B:null}}catch{return h}}function z(B,W,j){return!B||typeof W!="string"?!1:R(B)(W,void 0,j)}e.match=z;function R(B,W={}){if(!B)return u;if(typeof B=="string"||P(B)){const j=w(B,W);if(j===h)return u;const F=function(U,Q){return!!j(U,Q)};return j.allBasenames&&(F.allBasenames=j.allBasenames),j.allPaths&&(F.allPaths=j.allPaths),F}return A(B,W)}e.parse=R;function P(B){const W=B;return W?typeof W.base=="string"&&typeof W.pattern=="string":!1}e.isRelativePattern=P;function A(B,W){const j=O(Object.getOwnPropertyNames(B).map(he=>T(he,B[he],W)).filter(he=>he!==h)),F=j.length;if(!F)return h;if(!j.some(he=>!!he.requiresSiblings)){if(F===1)return j[0];const he=function(J,x){let G;for(let te=0,Z=j.length;te<Z;te++){const ae=j[te](J,x);if(typeof ae=="string")return ae;(0,C.isThenable)(ae)&&(G||(G=[]),G.push(ae))}return G?(()=>ye(this,void 0,void 0,function*(){for(const te of G){const Z=yield te;if(typeof Z=="string")return Z}return null}))():null},ie=j.find(J=>!!J.allBasenames);ie&&(he.allBasenames=ie.allBasenames);const ue=j.reduce((J,x)=>x.allPaths?J.concat(x.allPaths):J,[]);return ue.length&&(he.allPaths=ue),he}const U=function(he,ie,ue){let J,x;for(let G=0,te=j.length;G<te;G++){const Z=j[G];Z.requiresSiblings&&ue&&(ie||(ie=(0,I.basename)(he)),J||(J=ie.substr(0,ie.length-(0,I.extname)(he).length)));const ae=Z(he,ie,J,ue);if(typeof ae=="string")return ae;(0,C.isThenable)(ae)&&(x||(x=[]),x.push(ae))}return x?(()=>ye(this,void 0,void 0,function*(){for(const G of x){const te=yield G;if(typeof te=="string")return te}return null}))():null},Q=j.find(he=>!!he.allBasenames);Q&&(U.allBasenames=Q.allBasenames);const se=j.reduce((he,ie)=>ie.allPaths?he.concat(ie.allPaths):he,[]);return se.length&&(U.allPaths=se),U}function T(B,W,j){if(W===!1)return h;const F=w(B,j);if(F===h)return h;if(typeof W=="boolean")return F;if(W){const U=W.when;if(typeof U=="string"){const Q=(se,he,ie,ue)=>{if(!ue||!F(se,he))return null;const J=U.replace("$(basename)",()=>ie),x=ue(J);return(0,C.isThenable)(x)?x.then(G=>G?B:null):x?B:null};return Q.requiresSiblings=!0,Q}}return F}function O(B,W){const j=B.filter(he=>!!he.basenames);if(j.length<2)return B;const F=j.reduce((he,ie)=>{const ue=ie.basenames;return ue?he.concat(ue):he},[]);let U;if(W){U=[];for(let he=0,ie=F.length;he<ie;he++)U.push(W)}else U=j.reduce((he,ie)=>{const ue=ie.patterns;return ue?he.concat(ue):he},[]);const Q=function(he,ie){if(typeof he!="string")return null;if(!ie){let J;for(J=he.length;J>0;J--){const x=he.charCodeAt(J-1);if(x===47||x===92)break}ie=he.substr(J)}const ue=F.indexOf(ie);return ue!==-1?U[ue]:null};Q.basenames=F,Q.patterns=U,Q.allBasenames=F;const se=B.filter(he=>!he.basenames);return se.push(Q),se}}),define(_[272],ee([1,0,6]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IME=e.IMEImpl=void 0;class N{constructor(){this.a=new C.Emitter,this.onDidChange=this.a.event,this.b=!0}get enabled(){return this.b}enable(){this.b=!0,this.a.fire()}disable(){this.b=!1,this.a.fire()}}e.IMEImpl=N,e.IME=new N}),define(_[167],ee([1,0,6,2]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SmoothScrollingOperation=e.SmoothScrollingUpdate=e.Scrollable=e.ScrollState=void 0;class E{constructor(n,a,r,c,d,s,l){this.c=n,this._scrollStateBrand=void 0,this.c&&(a=a|0,r=r|0,c=c|0,d=d|0,s=s|0,l=l|0),this.rawScrollLeft=c,this.rawScrollTop=l,a<0&&(a=0),c+a>r&&(c=r-a),c<0&&(c=0),d<0&&(d=0),l+d>s&&(l=s-d),l<0&&(l=0),this.width=a,this.scrollWidth=r,this.scrollLeft=c,this.height=d,this.scrollHeight=s,this.scrollTop=l}equals(n){return this.rawScrollLeft===n.rawScrollLeft&&this.rawScrollTop===n.rawScrollTop&&this.width===n.width&&this.scrollWidth===n.scrollWidth&&this.scrollLeft===n.scrollLeft&&this.height===n.height&&this.scrollHeight===n.scrollHeight&&this.scrollTop===n.scrollTop}withScrollDimensions(n,a){return new E(this.c,typeof n.width<"u"?n.width:this.width,typeof n.scrollWidth<"u"?n.scrollWidth:this.scrollWidth,a?this.rawScrollLeft:this.scrollLeft,typeof n.height<"u"?n.height:this.height,typeof n.scrollHeight<"u"?n.scrollHeight:this.scrollHeight,a?this.rawScrollTop:this.scrollTop)}withScrollPosition(n){return new E(this.c,this.width,this.scrollWidth,typeof n.scrollLeft<"u"?n.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,typeof n.scrollTop<"u"?n.scrollTop:this.rawScrollTop)}createScrollEvent(n,a){const r=this.width!==n.width,c=this.scrollWidth!==n.scrollWidth,d=this.scrollLeft!==n.scrollLeft,s=this.height!==n.height,l=this.scrollHeight!==n.scrollHeight,o=this.scrollTop!==n.scrollTop;return{inSmoothScrolling:a,oldWidth:n.width,oldScrollWidth:n.scrollWidth,oldScrollLeft:n.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:n.height,oldScrollHeight:n.scrollHeight,oldScrollTop:n.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:r,scrollWidthChanged:c,scrollLeftChanged:d,heightChanged:s,scrollHeightChanged:l,scrollTopChanged:o}}}e.ScrollState=E;class I extends N.Disposable{constructor(n){super(),this._scrollableBrand=void 0,this.j=this.q(new C.Emitter),this.onScroll=this.j.event,this.c=n.smoothScrollDuration,this.g=n.scheduleAtNextAnimationFrame,this.h=new E(n.forceIntegerValues,0,0,0,0,0,0),this.i=null}dispose(){this.i&&(this.i.dispose(),this.i=null),super.dispose()}setSmoothScrollDuration(n){this.c=n}validateScrollPosition(n){return this.h.withScrollPosition(n)}getScrollDimensions(){return this.h}setScrollDimensions(n,a){var r;const c=this.h.withScrollDimensions(n,a);this.l(c,Boolean(this.i)),(r=this.i)===null||r===void 0||r.acceptScrollDimensions(this.h)}getFutureScrollPosition(){return this.i?this.i.to:this.h}getCurrentScrollPosition(){return this.h}setScrollPositionNow(n){const a=this.h.withScrollPosition(n);this.i&&(this.i.dispose(),this.i=null),this.l(a,!1)}setScrollPositionSmooth(n,a){if(this.c===0)return this.setScrollPositionNow(n);if(this.i){n={scrollLeft:typeof n.scrollLeft>"u"?this.i.to.scrollLeft:n.scrollLeft,scrollTop:typeof n.scrollTop>"u"?this.i.to.scrollTop:n.scrollTop};const r=this.h.withScrollPosition(n);if(this.i.to.scrollLeft===r.scrollLeft&&this.i.to.scrollTop===r.scrollTop)return;let c;a?c=new f(this.i.from,r,this.i.startTime,this.i.duration):c=this.i.combine(this.h,r,this.c),this.i.dispose(),this.i=c}else{const r=this.h.withScrollPosition(n);this.i=f.start(this.h,r,this.c)}this.i.animationFrameDisposable=this.g(()=>{!this.i||(this.i.animationFrameDisposable=null,this.k())})}k(){if(!this.i)return;const n=this.i.tick(),a=this.h.withScrollPosition(n);if(this.l(a,!0),!!this.i){if(n.isDone){this.i.dispose(),this.i=null;return}this.i.animationFrameDisposable=this.g(()=>{!this.i||(this.i.animationFrameDisposable=null,this.k())})}}l(n,a){const r=this.h;r.equals(n)||(this.h=n,this.j.fire(this.h.createScrollEvent(r,a)))}}e.Scrollable=I;class L{constructor(n,a,r){this.scrollLeft=n,this.scrollTop=a,this.isDone=r}}e.SmoothScrollingUpdate=L;function S(t,n){const a=n-t;return function(r){return t+a*i(r)}}function v(t,n,a){return function(r){return r<a?t(r/a):n((r-a)/(1-a))}}class f{constructor(n,a,r,c){this.from=n,this.to=a,this.duration=c,this.startTime=r,this.animationFrameDisposable=null,this.e()}e(){this.c=this.f(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.d=this.f(this.from.scrollTop,this.to.scrollTop,this.to.height)}f(n,a,r){if(Math.abs(n-a)>2.5*r){let d,s;return n<a?(d=n+.75*r,s=a-.75*r):(d=n-.75*r,s=a+.75*r),v(S(n,d),S(s,a),.33)}return S(n,a)}dispose(){this.animationFrameDisposable!==null&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null)}acceptScrollDimensions(n){this.to=n.withScrollPosition(this.to),this.e()}tick(){return this.g(Date.now())}g(n){const a=(n-this.startTime)/this.duration;if(a<1){const r=this.c(a),c=this.d(a);return new L(r,c,!1)}return new L(this.to.scrollLeft,this.to.scrollTop,!0)}combine(n,a,r){return f.start(n,a,r)}static start(n,a,r){r=r+10;const c=Date.now()-10;return new f(n,a,c,r)}}e.SmoothScrollingOperation=f;function g(t){return Math.pow(t,3)}function i(t){return 1-g(1-t)}}),define(_[21],ee([1,0,88,16]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.uriToFsPath=e.URI=void 0;const E=/^\w[\w\d+.-]*$/,I=/^\//,L=/^\/\//;function S(m,p){if(!m.scheme&&p)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${m.authority}", path: "${m.path}", query: "${m.query}", fragment: "${m.fragment}"}`);if(m.scheme&&!E.test(m.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(m.path){if(m.authority){if(!I.test(m.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(L.test(m.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function v(m,p){return!m&&!p?"file":m}function f(m,p){switch(m){case"https":case"http":case"file":p?p[0]!==i&&(p=i+p):p=i;break}return p}const g="",i="/",t=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class n{static isUri(p){return p instanceof n?!0:p?typeof p.authority=="string"&&typeof p.fragment=="string"&&typeof p.path=="string"&&typeof p.query=="string"&&typeof p.scheme=="string"&&typeof p.fsPath=="string"&&typeof p.with=="function"&&typeof p.toString=="function":!1}constructor(p,b,y,k,D,M=!1){typeof p=="object"?(this.scheme=p.scheme||g,this.authority=p.authority||g,this.path=p.path||g,this.query=p.query||g,this.fragment=p.fragment||g):(this.scheme=v(p,M),this.authority=b||g,this.path=f(this.scheme,y||g),this.query=k||g,this.fragment=D||g,S(this,M))}get fsPath(){return l(this,!1)}with(p){if(!p)return this;let{scheme:b,authority:y,path:k,query:D,fragment:M}=p;return b===void 0?b=this.scheme:b===null&&(b=g),y===void 0?y=this.authority:y===null&&(y=g),k===void 0?k=this.path:k===null&&(k=g),D===void 0?D=this.query:D===null&&(D=g),M===void 0?M=this.fragment:M===null&&(M=g),b===this.scheme&&y===this.authority&&k===this.path&&D===this.query&&M===this.fragment?this:new r(b,y,k,D,M)}static parse(p,b=!1){const y=t.exec(p);return y?new r(y[2]||g,w(y[4]||g),w(y[5]||g),w(y[7]||g),w(y[9]||g),b):new r(g,g,g,g,g)}static file(p){let b=g;if(N.isWindows&&(p=p.replace(/\\/g,i)),p[0]===i&&p[1]===i){const y=p.indexOf(i,2);y===-1?(b=p.substring(2),p=i):(b=p.substring(2,y),p=p.substring(y)||i)}return new r("file",b,p,g,g)}static from(p){const b=new r(p.scheme,p.authority,p.path,p.query,p.fragment);return S(b,!0),b}static joinPath(p,...b){if(!p.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let y;return N.isWindows&&p.scheme==="file"?y=n.file(C.win32.join(l(p,!0),...b)).path:y=C.posix.join(p.path,...b),p.with({path:y})}toString(p=!1){return o(this,p)}toJSON(){return this}static revive(p){if(p){if(p instanceof n)return p;{const b=new r(p);return b._formatted=p.external,b._fsPath=p._sep===a?p.fsPath:null,b}}else return p}}e.URI=n;const a=N.isWindows?1:void 0;class r extends n{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=l(this,!1)),this._fsPath}toString(p=!1){return p?o(this,!0):(this._formatted||(this._formatted=o(this,!1)),this._formatted)}toJSON(){const p={$mid:1};return this._fsPath&&(p.fsPath=this._fsPath,p._sep=a),this._formatted&&(p.external=this._formatted),this.path&&(p.path=this.path),this.scheme&&(p.scheme=this.scheme),this.authority&&(p.authority=this.authority),this.query&&(p.query=this.query),this.fragment&&(p.fragment=this.fragment),p}}const c={[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 d(m,p,b){let y,k=-1;for(let D=0;D<m.length;D++){const M=m.charCodeAt(D);if(M>=97&&M<=122||M>=65&&M<=90||M>=48&&M<=57||M===45||M===46||M===95||M===126||p&&M===47||b&&M===91||b&&M===93||b&&M===58)k!==-1&&(y+=encodeURIComponent(m.substring(k,D)),k=-1),y!==void 0&&(y+=m.charAt(D));else{y===void 0&&(y=m.substr(0,D));const z=c[M];z!==void 0?(k!==-1&&(y+=encodeURIComponent(m.substring(k,D)),k=-1),y+=z):k===-1&&(k=D)}}return k!==-1&&(y+=encodeURIComponent(m.substring(k))),y!==void 0?y:m}function s(m){let p;for(let b=0;b<m.length;b++){const y=m.charCodeAt(b);y===35||y===63?(p===void 0&&(p=m.substr(0,b)),p+=c[y]):p!==void 0&&(p+=m[b])}return p!==void 0?p:m}function l(m,p){let b;return m.authority&&m.path.length>1&&m.scheme==="file"?b=`//${m.authority}${m.path}`:m.path.charCodeAt(0)===47&&(m.path.charCodeAt(1)>=65&&m.path.charCodeAt(1)<=90||m.path.charCodeAt(1)>=97&&m.path.charCodeAt(1)<=122)&&m.path.charCodeAt(2)===58?p?b=m.path.substr(1):b=m.path[1].toLowerCase()+m.path.substr(2):b=m.path,N.isWindows&&(b=b.replace(/\//g,"\\")),b}e.uriToFsPath=l;function o(m,p){const b=p?s:d;let y="",{scheme:k,authority:D,path:M,query:z,fragment:R}=m;if(k&&(y+=k,y+=":"),(D||k==="file")&&(y+=i,y+=i),D){let P=D.indexOf("@");if(P!==-1){const A=D.substr(0,P);D=D.substr(P+1),P=A.lastIndexOf(":"),P===-1?y+=b(A,!1,!1):(y+=b(A.substr(0,P),!1,!1),y+=":",y+=b(A.substr(P+1),!1,!0)),y+="@"}D=D.toLowerCase(),P=D.lastIndexOf(":"),P===-1?y+=b(D,!1,!0):(y+=b(D.substr(0,P),!1,!0),y+=D.substr(P))}if(M){if(M.length>=3&&M.charCodeAt(0)===47&&M.charCodeAt(2)===58){const P=M.charCodeAt(1);P>=65&&P<=90&&(M=`/${String.fromCharCode(P+32)}:${M.substr(3)}`)}else if(M.length>=2&&M.charCodeAt(1)===58){const P=M.charCodeAt(0);P>=65&&P<=90&&(M=`${String.fromCharCode(P+32)}:${M.substr(2)}`)}y+=b(M,!0,!1)}return z&&(y+="?",y+=b(z,!1,!1)),R&&(y+="#",y+=p?R:d(R,!1,!1)),y}function u(m){try{return decodeURIComponent(m)}catch{return m.length>3?m.substr(0,3)+u(m.substr(3)):m}}const h=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function w(m){return m.match(h)?m.replace(h,p=>u(p)):m}}),define(_[202],ee([1,0,126,21]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.revive=e.parse=void 0;function E(L){let S=JSON.parse(L);return S=I(S),S}e.parse=E;function I(L,S=0){if(!L||S>200)return L;if(typeof L=="object"){switch(L.$mid){case 1:return N.URI.revive(L);case 2:return new RegExp(L.source,L.flags);case 16:return new Date(L.source)}if(L instanceof C.VSBuffer||L instanceof Uint8Array)return L;if(Array.isArray(L))for(let v=0;v<L.length;++v)L[v]=I(L[v],S+1);else for(const v in L)Object.hasOwnProperty.call(L,v)&&(L[v]=I(L[v],S+1))}return L}e.revive=I}),define(_[48],ee([1,0,13,16,21]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.COI=e.FileAccess=e.RemoteAuthorities=e.connectionTokenQueryName=e.Schemas=void 0;var I;(function(f){f.inMemory="inmemory",f.vscode="vscode",f.internal="private",f.walkThrough="walkThrough",f.walkThroughSnippet="walkThroughSnippet",f.http="http",f.https="https",f.file="file",f.mailto="mailto",f.untitled="untitled",f.data="data",f.command="command",f.vscodeRemote="vscode-remote",f.vscodeRemoteResource="vscode-remote-resource",f.vscodeUserData="vscode-userdata",f.vscodeCustomEditor="vscode-custom-editor",f.vscodeNotebookCell="vscode-notebook-cell",f.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",f.vscodeNotebookCellOutput="vscode-notebook-cell-output",f.vscodeInteractive="vscode-interactive",f.vscodeInteractiveInput="vscode-interactive-input",f.vscodeSettings="vscode-settings",f.vscodeWorkspaceTrust="vscode-workspace-trust",f.vscodeTerminal="vscode-terminal",f.webviewPanel="webview-panel",f.vscodeWebview="vscode-webview",f.extension="extension",f.vscodeFileResource="vscode-file",f.tmp="tmp",f.vsls="vsls",f.vscodeSourceControl="vscode-scm"})(I=e.Schemas||(e.Schemas={})),e.connectionTokenQueryName="tkn";class L{constructor(){this.a=Object.create(null),this.b=Object.create(null),this.c=Object.create(null),this.d="http",this.e=null,this.f=`/${I.vscodeRemoteResource}`}setPreferredWebSchema(g){this.d=g}rewrite(g){if(this.e)try{return this.e(g)}catch(c){return C.onUnexpectedError(c),g}const i=g.authority;let t=this.a[i];t&&t.indexOf(":")!==-1&&t.indexOf("[")===-1&&(t=`[${t}]`);const n=this.b[i],a=this.c[i];let r=`path=${encodeURIComponent(g.path)}`;return typeof a=="string"&&(r+=`&${e.connectionTokenQueryName}=${encodeURIComponent(a)}`),E.URI.from({scheme:N.isWeb?this.d:I.vscodeRemoteResource,authority:`${t}:${n}`,path:this.f,query:r})}}e.RemoteAuthorities=new L;class S{uriToBrowserUri(g){return g.scheme===I.vscodeRemote?e.RemoteAuthorities.rewrite(g):g.scheme===I.file&&(N.isNative||N.isWebWorker&&N.globals.origin===`${I.vscodeFileResource}://${S.a}`)?g.with({scheme:I.vscodeFileResource,authority:g.authority||S.a,query:null,fragment:null}):g}}S.a="vscode-app",e.FileAccess=new S;var v;(function(f){const g=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);f.CoopAndCoep=Object.freeze(g.get("3"));const i="vscode-coi";function t(a){let r;typeof a=="string"?r=new URL(a).searchParams:a instanceof URL?r=a.searchParams:E.URI.isUri(a)&&(r=new URL(a.toString(!0)).searchParams);const c=r?.get(i);if(!!c)return g.get(c)}f.getHeadersFromQuery=t;function n(a,r,c){if(!globalThis.crossOriginIsolated)return;const d=r&&c?"3":c?"2":"1";a instanceof URLSearchParams?a.set(i,d):a[i]=d}f.addSearchParam=n})(v=e.COI||(e.COI={}))}),define(_[7],ee([1,0,45,199,43,66,13,6,523,2,48,16]),function(q,e,C,N,E,I,L,S,v,f,g,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.h=e.DragAndDropObserver=e.ModifierKeyEmitter=e.basicMarkupHtmlTags=e.hookDomPurifyHrefAndSrcSanitizer=e.asCssValueWithDefault=e.asCSSPropertyValue=e.asCSSUrl=e.animate=e.windowOpenNoOpener=e.computeScreenAwareSize=e.hide=e.show=e.$=e.Namespace=e.reset=e.prepend=e.append=e.trackFocus=e.restoreParentsScrollTop=e.saveParentsScrollTop=e.EventHelper=e.isEventLike=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.getDomNodeZoomLevel=e.getDomNodePagePosition=e.size=e.getTopLeftOffset=e.Dimension=e.getClientArea=e.getComputedStyle=e.scheduleAtNextAnimationFrame=e.runAtThisOrScheduleAtNextAnimationFrame=e.addDisposableGenericMouseUpListener=e.addDisposableGenericMouseDownListener=e.addStandardDisposableGenericMouseUpListener=e.addStandardDisposableGenericMouseDownListener=e.addStandardDisposableListener=e.addDisposableListener=e.isInDOM=e.clearNode=void 0;function t(Ce){for(;Ce.firstChild;)Ce.firstChild.remove()}e.clearNode=t;function n(Ce){var ve;return(ve=Ce?.isConnected)!==null&&ve!==void 0?ve:!1}e.isInDOM=n;class a{constructor(ve,De,Oe,Re){this.f=ve,this.g=De,this.d=Oe,this.j=Re||!1,this.f.addEventListener(this.g,this.d,this.j)}dispose(){!this.d||(this.f.removeEventListener(this.g,this.d,this.j),this.f=null,this.d=null)}}function r(Ce,ve,De,Oe){return new a(Ce,ve,De,Oe)}e.addDisposableListener=r;function c(Ce){return function(ve){return Ce(new I.StandardMouseEvent(ve))}}function d(Ce){return function(ve){return Ce(new E.StandardKeyboardEvent(ve))}}const s=function(ve,De,Oe,Re){let xe=Oe;return De==="click"||De==="mousedown"?xe=c(Oe):(De==="keydown"||De==="keypress"||De==="keyup")&&(xe=d(Oe)),r(ve,De,xe,Re)};e.addStandardDisposableListener=s;const l=function(ve,De,Oe){const Re=c(De);return u(ve,Re,Oe)};e.addStandardDisposableGenericMouseDownListener=l;const o=function(ve,De,Oe){const Re=c(De);return h(ve,Re,Oe)};e.addStandardDisposableGenericMouseUpListener=o;function u(Ce,ve,De){return r(Ce,i.isIOS&&N.BrowserFeatures.pointerEvents?e.EventType.POINTER_DOWN:e.EventType.MOUSE_DOWN,ve,De)}e.addDisposableGenericMouseDownListener=u;function h(Ce,ve,De){return r(Ce,i.isIOS&&N.BrowserFeatures.pointerEvents?e.EventType.POINTER_UP:e.EventType.MOUSE_UP,ve,De)}e.addDisposableGenericMouseUpListener=h;class w{constructor(ve,De=0){this.d=ve,this.priority=De,this.f=!1}dispose(){this.f=!0}execute(){if(!this.f)try{this.d()}catch(ve){(0,L.onUnexpectedError)(ve)}}static sort(ve,De){return De.priority-ve.priority}}(function(){let Ce=[],ve=null,De=!1,Oe=!1;const Re=()=>{for(De=!1,ve=Ce,Ce=[],Oe=!0;ve.length>0;)ve.sort(w.sort),ve.shift().execute();Oe=!1};e.scheduleAtNextAnimationFrame=(xe,Fe=0)=>{const Be=new w(xe,Fe);return Ce.push(Be),De||(De=!0,requestAnimationFrame(Re)),Be},e.runAtThisOrScheduleAtNextAnimationFrame=(xe,Fe)=>{if(Oe){const Be=new w(xe,Fe);return ve.push(Be),Be}else return(0,e.scheduleAtNextAnimationFrame)(xe,Fe)}})();function m(Ce){return document.defaultView.getComputedStyle(Ce,null)}e.getComputedStyle=m;function p(Ce){if(Ce!==document.body)return new y(Ce.clientWidth,Ce.clientHeight);if(i.isIOS&&window.visualViewport)return new y(window.visualViewport.width,window.visualViewport.height);if(window.innerWidth&&window.innerHeight)return new y(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new y(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new y(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}e.getClientArea=p;class b{static d(ve,De){return parseFloat(De)||0}static f(ve,De,Oe){const Re=m(ve),xe=Re?Re.getPropertyValue(De):"0";return b.d(ve,xe)}static getBorderLeftWidth(ve){return b.f(ve,"border-left-width","borderLeftWidth")}static getBorderRightWidth(ve){return b.f(ve,"border-right-width","borderRightWidth")}static getBorderTopWidth(ve){return b.f(ve,"border-top-width","borderTopWidth")}static getBorderBottomWidth(ve){return b.f(ve,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(ve){return b.f(ve,"padding-left","paddingLeft")}static getPaddingRight(ve){return b.f(ve,"padding-right","paddingRight")}static getPaddingTop(ve){return b.f(ve,"padding-top","paddingTop")}static getPaddingBottom(ve){return b.f(ve,"padding-bottom","paddingBottom")}static getMarginLeft(ve){return b.f(ve,"margin-left","marginLeft")}static getMarginTop(ve){return b.f(ve,"margin-top","marginTop")}static getMarginRight(ve){return b.f(ve,"margin-right","marginRight")}static getMarginBottom(ve){return b.f(ve,"margin-bottom","marginBottom")}}class y{constructor(ve,De){this.width=ve,this.height=De}with(ve=this.width,De=this.height){return ve!==this.width||De!==this.height?new y(ve,De):this}static is(ve){return typeof ve=="object"&&typeof ve.height=="number"&&typeof ve.width=="number"}static lift(ve){return ve instanceof y?ve:new y(ve.width,ve.height)}static equals(ve,De){return ve===De?!0:!ve||!De?!1:ve.width===De.width&&ve.height===De.height}}y.None=new y(0,0),e.Dimension=y;function k(Ce){let ve=Ce.offsetParent,De=Ce.offsetTop,Oe=Ce.offsetLeft;for(;(Ce=Ce.parentNode)!==null&&Ce!==document.body&&Ce!==document.documentElement;){De-=Ce.scrollTop;const Re=j(Ce)?null:m(Ce);Re&&(Oe-=Re.direction!=="rtl"?Ce.scrollLeft:-Ce.scrollLeft),Ce===ve&&(Oe+=b.getBorderLeftWidth(Ce),De+=b.getBorderTopWidth(Ce),De+=Ce.offsetTop,Oe+=Ce.offsetLeft,ve=Ce.offsetParent)}return{left:Oe,top:De}}e.getTopLeftOffset=k;function D(Ce,ve,De){typeof ve=="number"&&(Ce.style.width=`${ve}px`),typeof De=="number"&&(Ce.style.height=`${De}px`)}e.size=D;function M(Ce){const ve=Ce.getBoundingClientRect();return{left:ve.left+window.scrollX,top:ve.top+window.scrollY,width:ve.width,height:ve.height}}e.getDomNodePagePosition=M;function z(Ce){let ve=Ce,De=1;do{const Oe=m(ve).zoom;Oe!=null&&Oe!=="1"&&(De*=Oe),ve=ve.parentElement}while(ve!==null&&ve!==document.documentElement);return De}e.getDomNodeZoomLevel=z;function R(Ce){const ve=b.getMarginLeft(Ce)+b.getMarginRight(Ce);return Ce.offsetWidth+ve}e.getTotalWidth=R;function P(Ce){const ve=b.getBorderLeftWidth(Ce)+b.getBorderRightWidth(Ce),De=b.getPaddingLeft(Ce)+b.getPaddingRight(Ce);return Ce.offsetWidth-ve-De}e.getContentWidth=P;function A(Ce){const ve=b.getBorderTopWidth(Ce)+b.getBorderBottomWidth(Ce),De=b.getPaddingTop(Ce)+b.getPaddingBottom(Ce);return Ce.offsetHeight-ve-De}e.getContentHeight=A;function T(Ce){const ve=b.getMarginTop(Ce)+b.getMarginBottom(Ce);return Ce.offsetHeight+ve}e.getTotalHeight=T;function O(Ce,ve){for(;Ce;){if(Ce===ve)return!0;Ce=Ce.parentNode}return!1}e.isAncestor=O;function B(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=B;function W(Ce,ve,De){return!!B(Ce,ve,De)}e.hasParentWithClass=W;function j(Ce){return Ce&&!!Ce.host&&!!Ce.mode}e.isShadowRoot=j;function F(Ce){return!!U(Ce)}e.isInShadowDOM=F;function U(Ce){for(;Ce.parentNode;){if(Ce===document.body)return null;Ce=Ce.parentNode}return j(Ce)?Ce:null}e.getShadowRoot=U;function Q(){let Ce=document.activeElement;for(;Ce?.shadowRoot;)Ce=Ce.shadowRoot.activeElement;return Ce}e.getActiveElement=Q;function se(Ce=document.getElementsByTagName("head")[0]){const ve=document.createElement("style");return ve.type="text/css",ve.media="screen",Ce.appendChild(ve),ve}e.createStyleSheet=se;let he=null;function ie(){return he||(he=se()),he}function ue(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 J(Ce,ve,De=ie()){!De||!ve||De.sheet.insertRule(Ce+"{"+ve+"}",0)}e.createCSSRule=J;function x(Ce,ve=ie()){if(!ve)return;const De=ue(ve),Oe=[];for(let Re=0;Re<De.length;Re++)De[Re].selectorText.indexOf(Ce)!==-1&&Oe.push(Re);for(let Re=Oe.length-1;Re>=0;Re--)ve.sheet.deleteRule(Oe[Re])}e.removeCSSRulesContainingSelector=x;function G(Ce){return typeof HTMLElement=="object"?Ce instanceof HTMLElement:Ce&&typeof Ce=="object"&&Ce.nodeType===1&&typeof Ce.nodeName=="string"}e.isHTMLElement=G,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:C.isWebKit?"webkitAnimationStart":"animationstart",ANIMATION_END:C.isWebKit?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:C.isWebKit?"webkitAnimationIteration":"animationiteration"};function te(Ce){const ve=Ce;return!!(ve&&typeof ve.preventDefault=="function"&&typeof ve.stopPropagation=="function")}e.isEventLike=te,e.EventHelper={stop:(Ce,ve)=>(Ce.preventDefault(),ve&&Ce.stopPropagation(),Ce)};function Z(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=Z;function ae(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=ae;class de extends f.Disposable{static m(ve){const De=U(ve),Oe=De?De.activeElement:document.activeElement;return O(Oe,ve)}constructor(ve){super(),this.g=this.q(new S.Emitter),this.onDidFocus=this.g.event,this.j=this.q(new S.Emitter),this.onDidBlur=this.j.event;let De=de.m(ve),Oe=!1;const Re=()=>{Oe=!1,De||(De=!0,this.g.fire())},xe=()=>{De&&(Oe=!0,window.setTimeout(()=>{Oe&&(Oe=!1,De=!1,this.j.fire())},0))};this.l=()=>{de.m(ve)!==De&&(De?xe():Re())},this.q(r(ve,e.EventType.FOCUS,Re,!0)),this.q(r(ve,e.EventType.BLUR,xe,!0)),this.q(r(ve,e.EventType.FOCUS_IN,()=>this.l())),this.q(r(ve,e.EventType.FOCUS_OUT,()=>this.l()))}}function K(Ce){return new de(Ce)}e.trackFocus=K;function Y(Ce,...ve){if(Ce.append(...ve),ve.length===1&&typeof ve[0]!="string")return ve[0]}e.append=Y;function ne(Ce,ve){return Ce.insertBefore(ve,Ce.firstChild),ve}e.prepend=ne;function V(Ce,...ve){Ce.innerText="",Y(Ce,...ve)}e.reset=V;const H=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;var $;(function(Ce){Ce.HTML="http://www.w3.org/1999/xhtml",Ce.SVG="http://www.w3.org/2000/svg"})($=e.Namespace||(e.Namespace={}));function oe(Ce,ve,De,...Oe){const Re=H.exec(ve);if(!Re)throw new Error("Bad use of emmet");const xe=Re[1]||"div";let Fe;return Ce!==$.HTML?Fe=document.createElementNS(Ce,xe):Fe=document.createElement(xe),Re[3]&&(Fe.id=Re[3]),Re[4]&&(Fe.className=Re[4].replace(/\./g," ").trim()),De&&Object.entries(De).forEach(([Be,Ke])=>{typeof Ke>"u"||(/^on\w+$/.test(Be)?Fe[Be]=Ke:Be==="selected"?Ke&&Fe.setAttribute(Be,"true"):Fe.setAttribute(Be,Ke))}),Fe.append(...Oe),Fe}function re(Ce,ve,...De){return oe($.HTML,Ce,ve,...De)}e.$=re,re.SVG=function(Ce,ve,...De){return oe($.SVG,Ce,ve,...De)};function X(...Ce){for(const ve of Ce)ve.style.display="",ve.removeAttribute("aria-hidden")}e.show=X;function le(...Ce){for(const ve of Ce)ve.style.display="none",ve.setAttribute("aria-hidden","true")}e.hide=le;function me(Ce){const ve=window.devicePixelRatio*Ce;return Math.max(1,Math.floor(ve))/window.devicePixelRatio}e.computeScreenAwareSize=me;function we(Ce){window.open(Ce,"_blank","noopener")}e.windowOpenNoOpener=we;function Le(Ce){const ve=()=>{Ce(),De=(0,e.scheduleAtNextAnimationFrame)(ve)};let De=(0,e.scheduleAtNextAnimationFrame)(ve);return(0,f.toDisposable)(()=>De.dispose())}e.animate=Le,g.RemoteAuthorities.setPreferredWebSchema(/^https:/.test(window.location.href)?"https":"http");function Ee(Ce){return Ce?`url('${g.FileAccess.uriToBrowserUri(Ce).toString(!0).replace(/'/g,"%27")}')`:"url('')"}e.asCSSUrl=Ee;function Me(Ce){return`'${Ce.replace(/'/g,"%27")}'`}e.asCSSPropertyValue=Me;function Ae(Ce,ve){if(Ce!==void 0){const De=Ce.match(/^\s*var\((.+)\)$/);if(De){const Oe=De[1].split(",",2);return Oe.length===2&&(ve=Ae(Oe[1].trim(),ve)),`var(${Oe[0]}, ${ve})`}return Ce}return ve}e.asCssValueWithDefault=Ae;function ke(Ce,ve=!1){const De=document.createElement("a");return v.addHook("afterSanitizeAttributes",Oe=>{for(const Re of["href","src"])if(Oe.hasAttribute(Re)){const xe=Oe.getAttribute(Re);if(Re==="href"&&xe.startsWith("#"))continue;if(De.href=xe,!Ce.includes(De.protocol.replace(/:$/,""))){if(ve&&Re==="src"&&De.href.startsWith("data:"))continue;Oe.removeAttribute(Re)}}}),(0,f.toDisposable)(()=>{v.removeHook("afterSanitizeAttributes")})}e.hookDomPurifyHrefAndSrcSanitizer=ke,e.basicMarkupHtmlTags=Object.freeze(["a","abbr","b","bdo","blockquote","br","caption","cite","code","col","colgroup","dd","del","details","dfn","div","dl","dt","em","figcaption","figure","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","label","li","mark","ol","p","pre","q","rp","rt","ruby","samp","small","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","time","tr","tt","u","ul","var","video","wbr"]);const fe=Object.freeze({ALLOWED_TAGS:["a","button","blockquote","code","div","h1","h2","h3","h4","h5","h6","hr","input","label","li","p","pre","select","small","span","strong","textarea","ul","ol"],ALLOWED_ATTR:["href","data-href","data-command","target","title","name","src","alt","class","id","role","tabindex","style","data-code","width","height","align","x-dispatch","required","checked","placeholder","type","start"],RETURN_DOM:!1,RETURN_DOM_FRAGMENT:!1,RETURN_TRUSTED_TYPE:!0});class pe extends S.Emitter{constructor(){super(),this.p=new f.DisposableStore,this.q={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this.p.add(r(window,"keydown",ve=>{if(ve.defaultPrevented)return;const De=new E.StandardKeyboardEvent(ve);if(!(De.keyCode===6&&ve.repeat)){if(ve.altKey&&!this.q.altKey)this.q.lastKeyPressed="alt";else if(ve.ctrlKey&&!this.q.ctrlKey)this.q.lastKeyPressed="ctrl";else if(ve.metaKey&&!this.q.metaKey)this.q.lastKeyPressed="meta";else if(ve.shiftKey&&!this.q.shiftKey)this.q.lastKeyPressed="shift";else if(De.keyCode!==6)this.q.lastKeyPressed=void 0;else return;this.q.altKey=ve.altKey,this.q.ctrlKey=ve.ctrlKey,this.q.metaKey=ve.metaKey,this.q.shiftKey=ve.shiftKey,this.q.lastKeyPressed&&(this.q.event=ve,this.fire(this.q))}},!0)),this.p.add(r(window,"keyup",ve=>{ve.defaultPrevented||(!ve.altKey&&this.q.altKey?this.q.lastKeyReleased="alt":!ve.ctrlKey&&this.q.ctrlKey?this.q.lastKeyReleased="ctrl":!ve.metaKey&&this.q.metaKey?this.q.lastKeyReleased="meta":!ve.shiftKey&&this.q.shiftKey?this.q.lastKeyReleased="shift":this.q.lastKeyReleased=void 0,this.q.lastKeyPressed!==this.q.lastKeyReleased&&(this.q.lastKeyPressed=void 0),this.q.altKey=ve.altKey,this.q.ctrlKey=ve.ctrlKey,this.q.metaKey=ve.metaKey,this.q.shiftKey=ve.shiftKey,this.q.lastKeyReleased&&(this.q.event=ve,this.fire(this.q)))},!0)),this.p.add(r(document.body,"mousedown",()=>{this.q.lastKeyPressed=void 0},!0)),this.p.add(r(document.body,"mouseup",()=>{this.q.lastKeyPressed=void 0},!0)),this.p.add(r(document.body,"mousemove",ve=>{ve.buttons&&(this.q.lastKeyPressed=void 0)},!0)),this.p.add(r(window,"blur",()=>{this.resetKeyStatus()}))}get keyStatus(){return this.q}resetKeyStatus(){this.t(),this.fire(this.q)}t(){this.q={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return pe.s||(pe.s=new pe),pe.s}dispose(){super.dispose(),this.p.dispose()}}e.ModifierKeyEmitter=pe;class ce extends f.Disposable{constructor(ve,De){super(),this.l=ve,this.m=De,this.g=0,this.j=0,this.n()}n(){this.q(r(this.l,e.EventType.DRAG_ENTER,ve=>{this.g++,this.j=ve.timeStamp,this.m.onDragEnter(ve)})),this.q(r(this.l,e.EventType.DRAG_OVER,ve=>{var De,Oe;ve.preventDefault(),(Oe=(De=this.m).onDragOver)===null||Oe===void 0||Oe.call(De,ve,ve.timeStamp-this.j)})),this.q(r(this.l,e.EventType.DRAG_LEAVE,ve=>{this.g--,this.g===0&&(this.j=0,this.m.onDragLeave(ve))})),this.q(r(this.l,e.EventType.DRAG_END,ve=>{this.g=0,this.j=0,this.m.onDragEnd(ve)})),this.q(r(this.l,e.EventType.DROP,ve=>{this.g=0,this.j=0,this.m.onDrop(ve)}))}}e.DragAndDropObserver=ce;const be=/(?<tag>[\w\-]+)?(?:#(?<id>[\w\-]+))?(?<class>(?:\.(?:[\w\-]+))*)(?:@(?<name>(?:[\w\_])+))?/;function Se(Ce,...ve){let De,Oe;Array.isArray(ve[0])?(De={},Oe=ve[0]):(De=ve[0]||{},Oe=ve[1]);const Re=be.exec(Ce);if(!Re||!Re.groups)throw new Error("Bad use of h");const xe=Re.groups.tag||"div",Fe=document.createElement(xe);Re.groups.id&&(Fe.id=Re.groups.id);const Be=[];if(Re.groups.class)for(const $e of Re.groups.class.split("."))$e!==""&&Be.push($e);if(De.className!==void 0)for(const $e of De.className.split("."))$e!==""&&Be.push($e);Be.length>0&&(Fe.className=Be.join(" "));const Ke={};if(Re.groups.name&&(Ke[Re.groups.name]=Fe),Oe)for(const $e of Oe)$e instanceof HTMLElement?Fe.appendChild($e):typeof $e=="string"?Fe.append($e):(Object.assign(Ke,$e),Fe.appendChild($e.root));for(const[$e,nt]of Object.entries(De))if($e!=="className")if($e==="style")for(const[lt,He]of Object.entries(nt))Fe.style.setProperty(Ie(lt),typeof He=="number"?He+"px":""+He);else $e==="tabIndex"?Fe.tabIndex=nt:Fe.setAttribute(Ie($e),nt.toString());return Ke.root=Fe,Ke}e.h=Se;function Ie(Ce){return Ce.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}}),define(_[203],ee([1,0,7]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createElement=e.renderFormattedText=e.renderText=void 0;function N(i,t={}){const n=I(t);return n.textContent=i,n}e.renderText=N;function E(i,t={}){const n=I(t);return S(n,v(i,!!t.renderCodeSegments),t.actionHandler,t.renderCodeSegments),n}e.renderFormattedText=E;function I(i){const t=i.inline?"span":"div",n=document.createElement(t);return i.className&&(n.className=i.className),n}e.createElement=I;class L{constructor(t){this.b=t,this.c=0}eos(){return this.c>=this.b.length}next(){const t=this.peek();return this.advance(),t}peek(){return this.b[this.c]}advance(){this.c++}}function S(i,t,n,a){let r;if(t.type===2)r=document.createTextNode(t.content||"");else if(t.type===3)r=document.createElement("b");else if(t.type===4)r=document.createElement("i");else if(t.type===7&&a)r=document.createElement("code");else if(t.type===5&&n){const c=document.createElement("a");n.disposables.add(C.addStandardDisposableListener(c,"click",d=>{n.callback(String(t.index),d)})),r=c}else t.type===8?r=document.createElement("br"):t.type===1&&(r=i);r&&i!==r&&i.appendChild(r),r&&Array.isArray(t.children)&&t.children.forEach(c=>{S(r,c,n,a)})}function v(i,t){const n={type:1,children:[]};let a=0,r=n;const c=[],d=new L(i);for(;!d.eos();){let s=d.next();const l=s==="\\"&&g(d.peek(),t)!==0;if(l&&(s=d.next()),!l&&f(s,t)&&s===d.peek()){d.advance(),r.type===2&&(r=c.pop());const o=g(s,t);if(r.type===o||r.type===5&&o===6)r=c.pop();else{const u={type:o,children:[]};o===5&&(u.index=a,a++),r.children.push(u),c.push(r),r=u}}else if(s===`
|
||
`)r.type===2&&(r=c.pop()),r.children.push({type:8});else if(r.type!==2){const o={type:2,content:s};r.children.push(o),c.push(r),r=o}else r.content+=s}return r.type===2&&(r=c.pop()),c.length,n}function f(i,t){return g(i,t)!==0}function g(i,t){switch(i){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return t?7:0;default:return 0}}}),define(_[136],ee([1,0,7,2]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GlobalPointerMoveMonitor=void 0;class E{constructor(){this.a=new N.DisposableStore,this.b=null,this.c=null}dispose(){this.stopMonitoring(!1),this.a.dispose()}stopMonitoring(L,S){if(!this.isMonitoring())return;this.a.clear(),this.b=null;const v=this.c;this.c=null,L&&v&&v(S)}isMonitoring(){return!!this.b}startMonitoring(L,S,v,f,g){this.isMonitoring()&&this.stopMonitoring(!1),this.b=f,this.c=g;let i=L;try{L.setPointerCapture(S),this.a.add((0,N.toDisposable)(()=>{try{L.releasePointerCapture(S)}catch{}}))}catch{i=window}this.a.add(C.addDisposableListener(i,C.EventType.POINTER_MOVE,t=>{if(t.buttons!==v){this.stopMonitoring(!0);return}t.preventDefault(),this.b(t)})),this.a.add(C.addDisposableListener(i,C.EventType.POINTER_UP,t=>this.stopMonitoring(!0)))}}e.GlobalPointerMoveMonitor=E}),define(_[56],ee([1,0,7,17,99,2,59]),function(q,e,C,N,E,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Gesture=e.EventType=void 0;var S;(function(f){f.Tap="-monaco-gesturetap",f.Change="-monaco-gesturechange",f.Start="-monaco-gesturestart",f.End="-monaco-gesturesend",f.Contextmenu="-monaco-gesturecontextmenu"})(S=e.EventType||(e.EventType={}));class v extends I.Disposable{constructor(){super(),this.g=!1,this.h=new L.LinkedList,this.j=new L.LinkedList,this.l={},this.k=null,this.m=0,this.q(C.addDisposableListener(document,"touchstart",g=>this.p(g),{passive:!1})),this.q(C.addDisposableListener(document,"touchend",g=>this.r(g))),this.q(C.addDisposableListener(document,"touchmove",g=>this.w(g),{passive:!1}))}static addTarget(g){if(!v.isTouchDevice())return I.Disposable.None;v.b||(v.b=new v);const i=v.b.h.push(g);return(0,I.toDisposable)(i)}static ignoreTarget(g){if(!v.isTouchDevice())return I.Disposable.None;v.b||(v.b=new v);const i=v.b.j.push(g);return(0,I.toDisposable)(i)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}dispose(){this.k&&(this.k.dispose(),this.k=null),super.dispose()}p(g){const i=Date.now();this.k&&(this.k.dispose(),this.k=null);for(let t=0,n=g.targetTouches.length;t<n;t++){const a=g.targetTouches.item(t);this.l[a.identifier]={id:a.identifier,initialTarget:a.target,initialTimeStamp:i,initialPageX:a.pageX,initialPageY:a.pageY,rollingTimestamps:[i],rollingPageX:[a.pageX],rollingPageY:[a.pageY]};const r=this.s(S.Start,a.target);r.pageX=a.pageX,r.pageY=a.pageY,this.u(r)}this.g&&(g.preventDefault(),g.stopPropagation(),this.g=!1)}r(g){const i=Date.now(),t=Object.keys(this.l).length;for(let n=0,a=g.changedTouches.length;n<a;n++){const r=g.changedTouches.item(n);if(!this.l.hasOwnProperty(String(r.identifier))){console.warn("move of an UNKNOWN touch",r);continue}const c=this.l[r.identifier],d=Date.now()-c.initialTimeStamp;if(d<v.c&&Math.abs(c.initialPageX-N.tail(c.rollingPageX))<30&&Math.abs(c.initialPageY-N.tail(c.rollingPageY))<30){const s=this.s(S.Tap,c.initialTarget);s.pageX=N.tail(c.rollingPageX),s.pageY=N.tail(c.rollingPageY),this.u(s)}else if(d>=v.c&&Math.abs(c.initialPageX-N.tail(c.rollingPageX))<30&&Math.abs(c.initialPageY-N.tail(c.rollingPageY))<30){const s=this.s(S.Contextmenu,c.initialTarget);s.pageX=N.tail(c.rollingPageX),s.pageY=N.tail(c.rollingPageY),this.u(s)}else if(t===1){const s=N.tail(c.rollingPageX),l=N.tail(c.rollingPageY),o=N.tail(c.rollingTimestamps)-c.rollingTimestamps[0],u=s-c.rollingPageX[0],h=l-c.rollingPageY[0],w=[...this.h].filter(m=>c.initialTarget instanceof Node&&m.contains(c.initialTarget));this.v(w,i,Math.abs(u)/o,u>0?1:-1,s,Math.abs(h)/o,h>0?1:-1,l)}this.u(this.s(S.End,c.initialTarget)),delete this.l[r.identifier]}this.g&&(g.preventDefault(),g.stopPropagation(),this.g=!1)}s(g,i){const t=document.createEvent("CustomEvent");return t.initEvent(g,!1,!0),t.initialTarget=i,t.tapCount=0,t}u(g){if(g.type===S.Tap){const i=new Date().getTime();let t=0;i-this.m>v.n?t=1:t=2,this.m=i,g.tapCount=t}else(g.type===S.Change||g.type===S.Contextmenu)&&(this.m=0);if(g.initialTarget instanceof Node){for(const i of this.j)if(i.contains(g.initialTarget))return;for(const i of this.h)i.contains(g.initialTarget)&&(i.dispatchEvent(g),this.g=!0)}}v(g,i,t,n,a,r,c,d){this.k=C.scheduleAtNextAnimationFrame(()=>{const s=Date.now(),l=s-i;let o=0,u=0,h=!0;t+=v.a*l,r+=v.a*l,t>0&&(h=!1,o=n*t*l),r>0&&(h=!1,u=c*r*l);const w=this.s(S.Change);w.translationX=o,w.translationY=u,g.forEach(m=>m.dispatchEvent(w)),h||this.v(g,s,t,n,a+o,r,c,d+u)})}w(g){const i=Date.now();for(let t=0,n=g.changedTouches.length;t<n;t++){const a=g.changedTouches.item(t);if(!this.l.hasOwnProperty(String(a.identifier))){console.warn("end of an UNKNOWN touch",a);continue}const r=this.l[a.identifier],c=this.s(S.Change,r.initialTarget);c.translationX=a.pageX-N.tail(r.rollingPageX),c.translationY=a.pageY-N.tail(r.rollingPageY),c.pageX=a.pageX,c.pageY=a.pageY,this.u(c),r.rollingPageX.length>3&&(r.rollingPageX.shift(),r.rollingPageY.shift(),r.rollingTimestamps.shift()),r.rollingPageX.push(a.pageX),r.rollingPageY.push(a.pageY),r.rollingTimestamps.push(i)}this.g&&(g.preventDefault(),g.stopPropagation(),this.g=!1)}}v.a=-.005,v.c=700,v.n=400,Ne([E.memoize],v,"isTouchDevice",null),e.Gesture=v}),define(_[52],ee([1,0,7,16,351]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.status=e.alert=e.setARIAContainer=void 0;const E=2e4;let I,L,S,v,f;function g(a){I=document.createElement("div"),I.className="monaco-aria-container";const r=()=>{const d=document.createElement("div");return d.className="monaco-alert",d.setAttribute("role","alert"),d.setAttribute("aria-atomic","true"),I.appendChild(d),d};L=r(),S=r();const c=()=>{const d=document.createElement("div");return d.className="monaco-status",d.setAttribute("role","complementary"),d.setAttribute("aria-live","polite"),d.setAttribute("aria-atomic","true"),I.appendChild(d),d};v=c(),f=c(),a.appendChild(I)}e.setARIAContainer=g;function i(a){!I||(L.textContent!==a?(C.clearNode(S),n(L,a)):(C.clearNode(L),n(S,a)))}e.alert=i;function t(a){!I||(N.isMacintosh?i(a):v.textContent!==a?(C.clearNode(f),n(v,a)):(C.clearNode(v),n(f,a)))}e.status=t;function n(a,r){C.clearNode(a),r.length>E&&(r=r.substr(0,E)),a.textContent=r,a.style.visibility="hidden",a.style.visibility="visible"}}),define(_[273],ee([1,0,199,7,2,16,151,355]),function(q,e,C,N,E,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContextView=e.layout=e.LayoutAnchorMode=void 0;var S;(function(i){i[i.AVOID=0]="AVOID",i[i.ALIGN=1]="ALIGN"})(S=e.LayoutAnchorMode||(e.LayoutAnchorMode={}));function v(i,t,n){const a=n.mode===S.ALIGN?n.offset:n.offset+n.size,r=n.mode===S.ALIGN?n.offset+n.size:n.offset;return n.position===0?t<=i-a?a:t<=r?r-t:Math.max(i-t,0):t<=r?r-t:t<=i-a?a:0}e.layout=v;class f extends E.Disposable{constructor(t,n){super(),this.c=null,this.j=null,this.k=E.Disposable.None,this.l=E.Disposable.None,this.m=null,this.n=null,this.g=N.$(".context-view"),this.h=!1,this.i=!1,N.hide(this.g),this.setContainer(t,n),this.q((0,E.toDisposable)(()=>this.setContainer(null,1)))}setContainer(t,n){var a;if(this.c&&(this.l.dispose(),this.m?(this.m.removeChild(this.g),this.m=null,(a=this.n)===null||a===void 0||a.remove(),this.n=null):this.c.removeChild(this.g),this.c=null),t){if(this.c=t,this.h=n!==1,this.i=n===3,this.i){this.n=N.$(".shadow-root-host"),this.c.appendChild(this.n),this.m=this.n.attachShadow({mode:"open"});const c=document.createElement("style");c.textContent=g,this.m.appendChild(c),this.m.appendChild(this.g),this.m.appendChild(N.$("slot"))}else this.c.appendChild(this.g);const r=new E.DisposableStore;f.a.forEach(c=>{r.add(N.addStandardDisposableListener(this.c,c,d=>{this.s(d,!1)}))}),f.b.forEach(c=>{r.add(N.addStandardDisposableListener(this.c,c,d=>{this.s(d,!0)},!0))}),this.l=r}}show(t){var n,a;this.r()&&this.hide(),N.clearNode(this.g),this.g.className="context-view",this.g.style.top="0px",this.g.style.left="0px",this.g.style.zIndex="2575",this.g.style.position=this.h?"fixed":"absolute",N.show(this.g),this.k=t.render(this.g)||E.Disposable.None,this.j=t,this.p(),(a=(n=this.j).focus)===null||a===void 0||a.call(n)}getViewElement(){return this.g}layout(){if(!!this.r()){if(this.j.canRelayout===!1&&!(I.isIOS&&C.BrowserFeatures.pointerEvents)){this.hide();return}this.j.layout&&this.j.layout(),this.p()}}p(){if(!this.r())return;const t=this.j.getAnchor();let n;if(N.isHTMLElement(t)){const h=N.getDomNodePagePosition(t),w=N.getDomNodeZoomLevel(t);n={top:h.top*w,left:h.left*w,width:h.width*w,height:h.height*w}}else n={top:t.y,left:t.x,width:t.width||1,height:t.height||2};const a=N.getTotalWidth(this.g),r=N.getTotalHeight(this.g),c=this.j.anchorPosition||0,d=this.j.anchorAlignment||0,s=this.j.anchorAxisAlignment||0;let l,o;if(s===0){const h={offset:n.top-window.pageYOffset,size:n.height,position:c===0?0:1},w={offset:n.left,size:n.width,position:d===0?0:1,mode:S.ALIGN};l=v(window.innerHeight,r,h)+window.pageYOffset,L.Range.intersects({start:l,end:l+r},{start:h.offset,end:h.offset+h.size})&&(w.mode=S.AVOID),o=v(window.innerWidth,a,w)}else{const h={offset:n.left,size:n.width,position:d===0?0:1},w={offset:n.top,size:n.height,position:c===0?0:1,mode:S.ALIGN};o=v(window.innerWidth,a,h),L.Range.intersects({start:o,end:o+a},{start:h.offset,end:h.offset+h.size})&&(w.mode=S.AVOID),l=v(window.innerHeight,r,w)+window.pageYOffset}this.g.classList.remove("top","bottom","left","right"),this.g.classList.add(c===0?"bottom":"top"),this.g.classList.add(d===0?"left":"right"),this.g.classList.toggle("fixed",this.h);const u=N.getDomNodePagePosition(this.c);this.g.style.top=`${l-(this.h?N.getDomNodePagePosition(this.g).top:u.top)}px`,this.g.style.left=`${o-(this.h?N.getDomNodePagePosition(this.g).left:u.left)}px`,this.g.style.width="initial"}hide(t){const n=this.j;this.j=null,n?.onHide&&n.onHide(t),this.k.dispose(),N.hide(this.g)}r(){return!!this.j}s(t,n){this.j&&(this.j.onDOMEvent?this.j.onDOMEvent(t,document.activeElement):n&&!N.isAncestor(t.target,this.c)&&this.hide())}dispose(){this.hide(),super.dispose()}}f.a=["click","keydown","focus","blur"],f.b=["click"],e.ContextView=f;const g=`
|
||
:host {
|
||
all: initial; /* 1st rule so subsequent properties are reset. */
|
||
}
|
||
|
||
.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(_[274],ee([1,0,7,9,356]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CountBadge=void 0;class E{constructor(L,S,v){this.e=S,this.f=v,this.b=0,this.a=(0,C.append)(L,(0,C.$)(".monaco-count-badge")),this.c=this.e.countFormat||"{0}",this.d=this.e.titleFormat||"",this.setCount(this.e.count||0)}setCount(L){this.b=L,this.g()}setTitleFormat(L){this.d=L,this.g()}g(){var L,S;this.a.textContent=(0,N.format)(this.c,this.b),this.a.title=(0,N.format)(this.d,this.b),this.a.style.backgroundColor=(L=this.f.badgeBackground)!==null&&L!==void 0?L:"",this.a.style.color=(S=this.f.badgeForeground)!==null&&S!==void 0?S:"",this.f.badgeBorder&&(this.a.style.border=`1px solid ${this.f.badgeBorder}`)}}e.CountBadge=E}),define(_[524],ee([1,0,7,43,56,41,6,242]),function(q,e,C,N,E,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DropdownMenu=void 0;class S extends I.ActionRunner{constructor(g,i){super(),this.l=this.q(new L.Emitter),this.onDidChangeVisibility=this.l.event,this.a=(0,C.append)(g,(0,C.$)(".monaco-dropdown")),this.i=(0,C.append)(this.a,(0,C.$)(".dropdown-label"));let t=i.labelRenderer;t||(t=a=>(a.textContent=i.label||"",null));for(const a of[C.EventType.CLICK,C.EventType.MOUSE_DOWN,E.EventType.Tap])this.q((0,C.addDisposableListener)(this.element,a,r=>C.EventHelper.stop(r,!0)));for(const a of[C.EventType.MOUSE_DOWN,E.EventType.Tap])this.q((0,C.addDisposableListener)(this.i,a,r=>{r instanceof MouseEvent&&(r.detail>1||r.button!==0)||(this.k?this.hide():this.show())}));this.q((0,C.addDisposableListener)(this.i,C.EventType.KEY_UP,a=>{const r=new N.StandardKeyboardEvent(a);(r.equals(3)||r.equals(10))&&(C.EventHelper.stop(a,!0),this.k?this.hide():this.show())}));const n=t(this.i);n&&this.q(n),this.q(E.Gesture.addTarget(this.i))}get element(){return this.a}show(){this.k||(this.k=!0,this.l.fire(!0))}hide(){this.k&&(this.k=!1,this.l.fire(!1))}dispose(){super.dispose(),this.hide(),this.h&&(this.h.remove(),this.h=void 0),this.j&&(this.j.remove(),this.j=void 0),this.i&&(this.i.remove(),this.i=void 0)}}class v extends S{constructor(g,i){super(g,i),this.p=[],this.m=i.contextMenuProvider,this.u=i.actions||[],this.r=i.actionProvider,this.s=i.menuClassName||"",this.t=!!i.menuAsChild}set menuOptions(g){this.n=g}get menuOptions(){return this.n}get u(){return this.r?this.r.getActions():this.p}set u(g){this.p=g}show(){super.show(),this.element.classList.add("active"),this.m.showContextMenu({getAnchor:()=>this.element,getActions:()=>this.u,getActionsContext:()=>this.menuOptions?this.menuOptions.context:null,getActionViewItem:(g,i)=>this.menuOptions&&this.menuOptions.actionViewItemProvider?this.menuOptions.actionViewItemProvider(g,i):void 0,getKeyBinding:g=>this.menuOptions&&this.menuOptions.getKeyBinding?this.menuOptions.getKeyBinding(g):void 0,getMenuClassName:()=>this.s,onHide:()=>this.v(),actionRunner:this.menuOptions?this.menuOptions.actionRunner:void 0,anchorAlignment:this.menuOptions?this.menuOptions.anchorAlignment:0,domForShadowRoot:this.t?this.element:void 0})}hide(){super.hide()}v(){this.hide(),this.element.classList.remove("active")}}e.DropdownMenu=v}),define(_[275],ee([1,0,7,11,20,72,111,2,18,507]),function(q,e,C,N,E,I,L,S,v,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setupCustomHover=e.setupNativeHover=void 0;function g(n,a){(0,v.isString)(a)?n.title=(0,L.stripIcons)(a):a?.markdownNotSupportedFallback?n.title=a.markdownNotSupportedFallback:n.removeAttribute("title")}e.setupNativeHover=g;class i{constructor(a,r,c){this.c=a,this.d=r,this.f=c}update(a,r,c){var d;return ye(this,void 0,void 0,function*(){if(this.b&&(this.b.dispose(!0),this.b=void 0),this.isDisposed)return;let s;if(a===void 0||(0,v.isString)(a)||a instanceof HTMLElement)s=a;else if(!(0,v.isFunction)(a.markdown))s=(d=a.markdown)!==null&&d!==void 0?d:a.markdownNotSupportedFallback;else{this.a||this.g((0,f.localize)(0,null),r),this.b=new E.CancellationTokenSource;const l=this.b.token;if(s=yield a.markdown(l),s===void 0&&(s=a.markdownNotSupportedFallback),this.isDisposed||l.isCancellationRequested)return}this.g(s,r,c)})}g(a,r,c){const d=this.a;if(this.h(a)){const s=Object.assign({content:a,target:this.d,showPointer:this.c.placement==="element",hoverPosition:2,skipFadeInAnimation:!this.f||!!d},c);this.a=this.c.showHover(s,r)}d?.dispose()}h(a){return a?(0,I.isMarkdownString)(a)?!!a.value:!0:!1}get isDisposed(){var a;return(a=this.a)===null||a===void 0?void 0:a.isDisposed}dispose(){var a,r;(a=this.a)===null||a===void 0||a.dispose(),(r=this.b)===null||r===void 0||r.dispose(!0),this.b=void 0}}function t(n,a,r,c){let d,s;const l=(m,p)=>{var b;const y=s!==void 0;m&&(s?.dispose(),s=void 0),p&&(d?.dispose(),d=void 0),y&&((b=n.onDidHideHover)===null||b===void 0||b.call(n))},o=(m,p,b)=>new N.TimeoutTimer(()=>ye(this,void 0,void 0,function*(){(!s||s.isDisposed)&&(s=new i(n,b||a,m>0),yield s.update(r,p,c))}),m),u=()=>{if(d)return;const m=new S.DisposableStore,p=k=>l(!1,k.fromElement===a);m.add(C.addDisposableListener(a,C.EventType.MOUSE_LEAVE,p,!0));const b=()=>l(!0,!0);m.add(C.addDisposableListener(a,C.EventType.MOUSE_DOWN,b,!0));const y={targetElements:[a],dispose:()=>{}};if(n.placement===void 0||n.placement==="mouse"){const k=D=>{y.x=D.x+10,D.target instanceof HTMLElement&&D.target.classList.contains("action-label")&&l(!0,!0)};m.add(C.addDisposableListener(a,C.EventType.MOUSE_MOVE,k,!0))}m.add(o(n.delay,!1,y)),d=m},h=C.addDisposableListener(a,C.EventType.MOUSE_OVER,u,!0);return{show:m=>{l(!1,!0),o(0,m)},hide:()=>{l(!0,!0)},update:(m,p)=>ye(this,void 0,void 0,function*(){r=m,yield s?.update(r,void 0,p)}),dispose:()=>{h.dispose(),l(!0,!0)}}}e.setupCustomHover=t}),define(_[137],ee([1,0,7,32]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.renderIcon=e.renderLabelWithIcons=void 0;const E=new RegExp(`(\\\\)?\\$\\((${N.ThemeIcon.iconNameExpression}(?:${N.ThemeIcon.iconModifierExpression})?)\\)`,"g");function I(S){const v=new Array;let f,g=0,i=0;for(;(f=E.exec(S))!==null;){i=f.index||0,g<i&&v.push(S.substring(g,i)),g=(f.index||0)+f[0].length;const[,t,n]=f;v.push(t?`$(${n})`:L({id:n}))}return g<S.length&&v.push(S.substring(g)),v}e.renderLabelWithIcons=I;function L(S){const v=C.$("span");return v.classList.add(...N.ThemeIcon.asClassNameArray(S)),v}e.renderIcon=L}),define(_[525],ee([1,0,7,43,56,137,36,6,2,352]),function(q,e,C,N,E,I,L,S,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Button=e.unthemedButtonStyles=void 0,e.unthemedButtonStyles={buttonBackground:"#0E639C",buttonHoverBackground:"#006BB3",buttonSeparator:L.Color.white.toString(),buttonForeground:L.Color.white.toString(),buttonBorder:void 0,buttonSecondaryBackground:void 0,buttonSecondaryForeground:void 0,buttonSecondaryHoverBackground:void 0};class f extends v.Disposable{get onDidClick(){return this.h.event}constructor(i,t){super(),this.h=this.q(new S.Emitter),this.a=t,this.b=document.createElement("a"),this.b.classList.add("monaco-button"),this.b.tabIndex=0,this.b.setAttribute("role","button");const n=t.secondary?t.buttonSecondaryBackground:t.buttonBackground,a=t.secondary?t.buttonSecondaryForeground:t.buttonForeground;this.b.style.color=a||"",this.b.style.backgroundColor=n||"",t.supportShortLabel&&(this.g=document.createElement("div"),this.g.classList.add("monaco-button-label-short"),this.b.appendChild(this.g),this.c=document.createElement("div"),this.c.classList.add("monaco-button-label"),this.b.appendChild(this.c),this.b.classList.add("monaco-text-button-with-short-label")),i.appendChild(this.b),this.q(E.Gesture.addTarget(this.b)),[C.EventType.CLICK,E.EventType.Tap].forEach(r=>{this.q((0,C.addDisposableListener)(this.b,r,c=>{if(!this.enabled){C.EventHelper.stop(c);return}this.h.fire(c)}))}),this.q((0,C.addDisposableListener)(this.b,C.EventType.KEY_DOWN,r=>{const c=new N.StandardKeyboardEvent(r);let d=!1;this.enabled&&(c.equals(3)||c.equals(10))?(this.h.fire(r),d=!0):c.equals(9)&&(this.b.blur(),d=!0),d&&C.EventHelper.stop(c,!0)})),this.q((0,C.addDisposableListener)(this.b,C.EventType.MOUSE_OVER,r=>{this.b.classList.contains("disabled")||this.k(!0)})),this.q((0,C.addDisposableListener)(this.b,C.EventType.MOUSE_OUT,r=>{this.k(!1)})),this.i=this.q((0,C.trackFocus)(this.b)),this.q(this.i.onDidFocus(()=>{this.enabled&&this.k(!0)})),this.q(this.i.onDidBlur(()=>{this.enabled&&this.k(!1)}))}j(i){const t=[];for(let n of(0,I.renderLabelWithIcons)(i))if(typeof n=="string"){if(n=n.trim(),n==="")continue;const a=document.createElement("span");a.textContent=n,t.push(a)}else t.push(n);return t}k(i){let t;this.a.secondary?t=i?this.a.buttonSecondaryHoverBackground:this.a.buttonSecondaryBackground:t=i?this.a.buttonHoverBackground:this.a.buttonBackground,t&&(this.b.style.backgroundColor=t)}get element(){return this.b}set label(i){this.b.classList.add("monaco-text-button");const t=this.a.supportShortLabel?this.c:this.b;this.a.supportIcons?(0,C.reset)(t,...this.j(i)):t.textContent=i,typeof this.a.title=="string"?this.b.title=this.a.title:this.a.title&&(this.b.title=i)}set enabled(i){i?(this.b.classList.remove("disabled"),this.b.setAttribute("aria-disabled",String(!1)),this.b.tabIndex=0):(this.b.classList.add("disabled"),this.b.setAttribute("aria-disabled",String(!0)))}get enabled(){return!this.b.classList.contains("disabled")}}e.Button=f}),define(_[204],ee([1,0,7,137,46]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HighlightedLabel=void 0;class I{constructor(S,v){var f;this.b="",this.c="",this.d=[],this.f=!1,this.e=(f=v?.supportIcons)!==null&&f!==void 0?f:!1,this.a=C.append(S,C.$("span.monaco-highlighted-label"))}get element(){return this.a}set(S,v=[],f="",g){S||(S=""),g&&(S=I.escapeNewLines(S,v)),!(this.f&&this.b===S&&this.c===f&&E.equals(this.d,v))&&(this.b=S,this.c=f,this.d=v,this.g())}g(){const S=[];let v=0;for(const f of this.d){if(f.end===f.start)continue;if(v<f.start){const t=this.b.substring(v,f.start);this.e?S.push(...(0,N.renderLabelWithIcons)(t)):S.push(t),v=f.start}const g=this.b.substring(v,f.end),i=C.$("span.highlight",void 0,...this.e?(0,N.renderLabelWithIcons)(g):[g]);f.extraClasses&&i.classList.add(...f.extraClasses),S.push(i),v=f.end}if(v<this.b.length){const f=this.b.substring(v);this.e?S.push(...(0,N.renderLabelWithIcons)(f)):S.push(f)}C.reset(this.a,...S),this.c?this.a.title=this.c:this.a.removeAttribute("title"),this.f=!0}static escapeNewLines(S,v){let f=0,g=0;return S.replace(/\r\n|\r|\n/g,(i,t)=>{g=i===`\r
|
||
`?-1:0,t+=f;for(const n of v)n.end<=t||(n.start>=t&&(n.start+=g),n.end>=t&&(n.end+=g));return f+=g,"\u23CE"})}}e.HighlightedLabel=I}),define(_[205],ee([1,0,7,204,275,2,46,151,358]),function(q,e,C,N,E,I,L,S){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IconLabel=void 0;class v{constructor(a){this.e=a}get element(){return this.e}set textContent(a){this.a||a===this.b||(this.b=a,this.e.textContent=a)}set className(a){this.a||a===this.c||(this.c=a,this.e.className=a)}set empty(a){this.a||a===this.d||(this.d=a,this.e.style.marginLeft=a?"0":"")}dispose(){this.a=!0}}class f extends I.Disposable{constructor(a,r){super(),this.k=new Map,this.a=r,this.b=this.q(new v(C.append(a,C.$(".monaco-icon-label")))),this.h=C.append(this.b.element,C.$(".monaco-icon-label-container"));const c=C.append(this.h,C.$("span.monaco-icon-name-container"));r?.supportHighlights||r?.supportIcons?this.c=new t(c,!!r.supportIcons):this.c=new g(c),this.j=r?.hoverDelegate}get element(){return this.b.element}setLabel(a,r,c){const d=["monaco-icon-label"],s=["monaco-icon-label-container"];if(c&&(c.extraClasses&&d.push(...c.extraClasses),c.italic&&d.push("italic"),c.strikethrough&&d.push("strikethrough"),c.disabledCommand&&s.push("disabled")),this.b.className=d.join(" "),this.h.className=s.join(" "),this.n(c?.descriptionTitle?this.h:this.element,c?.title),this.c.setLabel(a,c),r||this.g){const l=this.p();l instanceof N.HighlightedLabel?(l.set(r||"",c?c.descriptionMatches:void 0,void 0,c?.labelEscapeNewLines),this.n(l.element,c?.descriptionTitle)):(l.textContent=r&&c?.labelEscapeNewLines?N.HighlightedLabel.escapeNewLines(r,[]):r||"",this.n(l.element,c?.descriptionTitle||""),l.empty=!r)}}n(a,r){const c=this.k.get(a);if(c&&(c.dispose(),this.k.delete(a)),!r){a.removeAttribute("title");return}if(!this.j)(0,E.setupNativeHover)(a,r);else{const d=(0,E.setupCustomHover)(this.j,a,r);d&&this.k.set(a,d)}}dispose(){super.dispose();for(const a of this.k.values())a.dispose();this.k.clear()}p(){var a;if(!this.g){const r=this.q(new v(C.append(this.h,C.$("span.monaco-icon-description-container"))));!((a=this.a)===null||a===void 0)&&a.supportDescriptionHighlights?this.g=new N.HighlightedLabel(C.append(r.element,C.$("span.label-description")),{supportIcons:!!this.a.supportIcons}):this.g=this.q(new v(C.append(r.element,C.$("span.label-description"))))}return this.g}}e.IconLabel=f;class g{constructor(a){this.d=a,this.a=void 0,this.b=void 0}setLabel(a,r){if(!(this.a===a&&(0,L.equals)(this.c,r)))if(this.a=a,this.c=r,typeof a=="string")this.b||(this.d.innerText="",this.d.classList.remove("multiple"),this.b=C.append(this.d,C.$("a.label-name",{id:r?.domId}))),this.b.textContent=a;else{this.d.innerText="",this.d.classList.add("multiple"),this.b=void 0;for(let c=0;c<a.length;c++){const d=a[c],s=r?.domId&&`${r?.domId}_${c}`;C.append(this.d,C.$("a.label-name",{id:s,"data-icon-label-count":a.length,"data-icon-label-index":c,role:"treeitem"},d)),c<a.length-1&&C.append(this.d,C.$("span.label-separator",void 0,r?.separator||"/"))}}}}function i(n,a,r){if(!r)return;let c=0;return n.map(d=>{const s={start:c,end:c+d.length},l=r.map(o=>S.Range.intersect(s,o)).filter(o=>!S.Range.isEmpty(o)).map(({start:o,end:u})=>({start:o-c,end:u-c}));return c=s.end+a.length,l})}class t{constructor(a,r){this.d=a,this.e=r,this.a=void 0,this.b=void 0}setLabel(a,r){if(!(this.a===a&&(0,L.equals)(this.c,r)))if(this.a=a,this.c=r,typeof a=="string")this.b||(this.d.innerText="",this.d.classList.remove("multiple"),this.b=new N.HighlightedLabel(C.append(this.d,C.$("a.label-name",{id:r?.domId})),{supportIcons:this.e})),this.b.set(a,r?.matches,void 0,r?.labelEscapeNewLines);else{this.d.innerText="",this.d.classList.add("multiple"),this.b=void 0;const c=r?.separator||"/",d=i(a,c,r?.matches);for(let s=0;s<a.length;s++){const l=a[s],o=d?d[s]:void 0,u=r?.domId&&`${r?.domId}_${s}`,h=C.$("a.label-name",{id:u,"data-icon-label-count":a.length,"data-icon-label-index":s,role:"treeitem"});new N.HighlightedLabel(C.append(this.d,h),{supportIcons:this.e}).set(l,o,void 0,r?.labelEscapeNewLines),s<a.length-1&&C.append(h,C.$("span.label-separator",void 0,c))}}}}}),define(_[206],ee([1,0,7,197,46,509,360]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KeybindingLabel=e.unthemedKeybindingLabelOptions=void 0;const L=C.$;e.unthemedKeybindingLabelOptions={keybindingLabelBackground:void 0,keybindingLabelForeground:void 0,keybindingLabelBorder:void 0,keybindingLabelBottomBorder:void 0,keybindingLabelShadow:void 0};class S{constructor(f,g,i){this.i=g,this.e=new Set,this.d=i||Object.create(null);const t=this.d.keybindingLabelForeground;this.c=C.append(f,L(".monaco-keybinding")),t&&(this.c.style.color=t),this.h=!1,f.appendChild(this.c)}get element(){return this.c}set(f,g){this.h&&this.f===f&&S.p(this.g,g)||(this.f=f,this.g=g,this.j())}j(){var f;if(this.k(),this.f){const[g,i]=this.f.getChords();g&&this.l(this.c,g,this.g?this.g.firstPart:null),i&&(C.append(this.c,L("span.monaco-keybinding-key-chord-separator",void 0," ")),this.l(this.c,i,this.g?this.g.chordPart:null));const t=(f=this.d.disableTitle)!==null&&f!==void 0&&f?void 0:this.f.getAriaLabel()||void 0;t!==void 0?this.c.title=t:this.c.removeAttribute("title")}else this.d&&this.d.renderUnboundKeybindings&&this.n(this.c);this.h=!0}k(){C.clearNode(this.c),this.e.clear()}l(f,g,i){const t=N.UILabelProvider.modifierLabels[this.i];g.ctrlKey&&this.m(f,t.ctrlKey,Boolean(i?.ctrlKey),t.separator),g.shiftKey&&this.m(f,t.shiftKey,Boolean(i?.shiftKey),t.separator),g.altKey&&this.m(f,t.altKey,Boolean(i?.altKey),t.separator),g.metaKey&&this.m(f,t.metaKey,Boolean(i?.metaKey),t.separator);const n=g.keyLabel;n&&this.m(f,n,Boolean(i?.keyCode),"")}m(f,g,i,t){C.append(f,this.o(g,i?".highlight":"")),t&&C.append(f,L("span.monaco-keybinding-key-separator",void 0,t))}n(f){C.append(f,this.o((0,I.localize)(0,null)))}o(f,g=""){const i=L("span.monaco-keybinding-key"+g,void 0,f);return this.e.add(i),this.d.keybindingLabelBackground&&(i.style.backgroundColor=this.d.keybindingLabelBackground),this.d.keybindingLabelBorder&&(i.style.borderColor=this.d.keybindingLabelBorder),this.d.keybindingLabelBottomBorder&&(i.style.borderBottomColor=this.d.keybindingLabelBottomBorder),this.d.keybindingLabelShadow&&(i.style.boxShadow=`inset 0 -1px 0 ${this.d.keybindingLabelShadow}`),i}static p(f,g){return f===g||!f&&!g?!0:!!f&&!!g&&(0,E.equals)(f.firstPart,g.firstPart)&&(0,E.equals)(f.chordPart,g.chordPart)}}e.KeybindingLabel=S}),define(_[526],ee([1,0,7]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RowCache=void 0;function N(I){var L;try{(L=I.parentElement)===null||L===void 0||L.removeChild(I)}catch{}}class E{constructor(L){this.d=L,this.a=new Map,this.b=new Set,this.c=!1}alloc(L){let S=this.h(L).pop(),v=!1;if(S)v=this.b.has(S.domNode),v&&this.b.delete(S.domNode);else{const f=(0,C.$)(".monaco-list-row"),i=this.i(L).renderTemplate(f);S={domNode:f,templateId:L,templateData:i}}return{row:S,isReusingConnectedDomNode:v}}release(L){!L||this.f(L)}transact(L){if(this.c)throw new Error("Already in transaction");this.c=!0;try{L()}finally{for(const S of this.b)this.g(S);this.b.clear(),this.c=!1}}f(L){const{domNode:S,templateId:v}=L;S&&(this.c?this.b.add(S):this.g(S)),this.h(v).push(L)}g(L){L.classList.remove("scrolling"),N(L)}h(L){let S=this.a.get(L);return S||(S=[],this.a.set(L,S)),S}dispose(){this.a.forEach((L,S)=>{for(const v of L)this.i(S).disposeTemplate(v.templateData),v.templateData=null}),this.a.clear(),this.b.clear()}i(L){const S=this.d.get(L);if(!S)throw new Error(`No renderer found for ${L}`);return S}}e.RowCache=E}),define(_[527],ee([1,0,7,11,2,362]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ProgressBar=void 0;const I="done",L="active",S="infinite",v="infinite-long-running",f="discrete";class g extends E.Disposable{constructor(t,n){super(),this.b=0,this.i=this.q(new N.RunOnceScheduler(()=>(0,C.show)(this.c),0)),this.j=this.q(new N.RunOnceScheduler(()=>this.n(),g.a)),this.k(t,n)}k(t,n){this.c=document.createElement("div"),this.c.classList.add("monaco-progress-container"),this.c.setAttribute("role","progressbar"),this.c.setAttribute("aria-valuemin","0"),t.appendChild(this.c),this.g=document.createElement("div"),this.g.classList.add("progress-bit"),this.g.style.backgroundColor=n?.progressBarBackground||"#0E70C0",this.c.appendChild(this.g)}l(){this.g.style.width="inherit",this.g.style.opacity="1",this.c.classList.remove(L,S,v,f),this.b=0,this.h=void 0,this.j.cancel()}stop(){return this.m(!1)}m(t){return this.c.classList.add(I),this.c.classList.contains(S)?(this.g.style.opacity="0",t?setTimeout(()=>this.l(),200):this.l()):(this.g.style.width="inherit",t?setTimeout(()=>this.l(),200):this.l()),this}infinite(){return this.g.style.width="2%",this.g.style.opacity="1",this.c.classList.remove(f,I,v),this.c.classList.add(L,S),this.j.schedule(),this}n(){this.c.classList.add(v)}getContainer(){return this.c}}g.a=1e4,e.ProgressBar=g}),define(_[138],ee([1,0,7,75,56,11,99,6,2,16,363]),function(q,e,C,N,E,I,L,S,v,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Sash=e.OrthogonalEdge=void 0;const g=!1;var i;(function(u){u.North="north",u.South="south",u.East="east",u.West="west"})(i=e.OrthogonalEdge||(e.OrthogonalEdge={}));let t=4;const n=new S.Emitter;let a=300;const r=new S.Emitter;class c{constructor(){this.a=new v.DisposableStore}get onPointerMove(){return this.a.add(new N.DomEmitter(window,"mousemove")).event}get onPointerUp(){return this.a.add(new N.DomEmitter(window,"mouseup")).event}dispose(){this.a.dispose()}}Ne([L.memoize],c.prototype,"onPointerMove",null),Ne([L.memoize],c.prototype,"onPointerUp",null);class d{get onPointerMove(){return this.a.add(new N.DomEmitter(this.b,E.EventType.Change)).event}get onPointerUp(){return this.a.add(new N.DomEmitter(this.b,E.EventType.End)).event}constructor(h){this.b=h,this.a=new v.DisposableStore}dispose(){this.a.dispose()}}Ne([L.memoize],d.prototype,"onPointerMove",null),Ne([L.memoize],d.prototype,"onPointerUp",null);class s{get onPointerMove(){return this.a.onPointerMove}get onPointerUp(){return this.a.onPointerUp}constructor(h){this.a=h}dispose(){}}Ne([L.memoize],s.prototype,"onPointerMove",null),Ne([L.memoize],s.prototype,"onPointerUp",null);const l="pointer-events-disabled";class o extends v.Disposable{get state(){return this.j}get orthogonalStartSash(){return this.s}get orthogonalEndSash(){return this.w}set state(h){this.j!==h&&(this.a.classList.toggle("disabled",h===0),this.a.classList.toggle("minimum",h===1),this.a.classList.toggle("maximum",h===2),this.j=h,this.k.fire(h))}set orthogonalStartSash(h){if(this.t.clear(),this.r.clear(),h){const w=m=>{this.t.clear(),m!==0&&(this.u=(0,C.append)(this.a,(0,C.$)(".orthogonal-drag-handle.start")),this.t.add((0,v.toDisposable)(()=>this.u.remove())),this.t.add(new N.DomEmitter(this.u,"mouseenter")).event(()=>o.D(h),void 0,this.t),this.t.add(new N.DomEmitter(this.u,"mouseleave")).event(()=>o.F(h),void 0,this.t))};this.r.add(h.k.event(w,this)),w(h.state)}this.s=h}set orthogonalEndSash(h){if(this.y.clear(),this.v.clear(),h){const w=m=>{this.y.clear(),m!==0&&(this.z=(0,C.append)(this.a,(0,C.$)(".orthogonal-drag-handle.end")),this.y.add((0,v.toDisposable)(()=>this.z.remove())),this.y.add(new N.DomEmitter(this.z,"mouseenter")).event(()=>o.D(h),void 0,this.y),this.y.add(new N.DomEmitter(this.z,"mouseleave")).event(()=>o.F(h),void 0,this.y))};this.v.add(h.k.event(w,this)),w(h.state)}this.w=h}constructor(h,w,m){super(),this.h=a,this.i=this.q(new I.Delayer(this.h)),this.j=3,this.k=this.q(new S.Emitter),this.l=this.q(new S.Emitter),this.m=this.q(new S.Emitter),this.n=this.q(new S.Emitter),this.p=this.q(new S.Emitter),this.r=this.q(new v.DisposableStore),this.t=this.q(new v.DisposableStore),this.v=this.q(new v.DisposableStore),this.y=this.q(new v.DisposableStore),this.onDidStart=this.l.event,this.onDidChange=this.m.event,this.onDidReset=this.n.event,this.onDidEnd=this.p.event,this.linkedSash=void 0,this.a=(0,C.append)(h,(0,C.$)(".monaco-sash")),m.orthogonalEdge&&this.a.classList.add(`orthogonal-edge-${m.orthogonalEdge}`),f.isMacintosh&&this.a.classList.add("mac");const p=this.q(new N.DomEmitter(this.a,"mousedown")).event;this.q(p(R=>this.B(R,new c),this));const b=this.q(new N.DomEmitter(this.a,"dblclick")).event;this.q(b(this.C,this));const y=this.q(new N.DomEmitter(this.a,"mouseenter")).event;this.q(y(()=>o.D(this)));const k=this.q(new N.DomEmitter(this.a,"mouseleave")).event;this.q(k(()=>o.F(this))),this.q(E.Gesture.addTarget(this.a));const D=this.q(new N.DomEmitter(this.a,E.EventType.Start)).event;this.q(D(R=>this.B(R,new d(this.a)),this));const M=this.q(new N.DomEmitter(this.a,E.EventType.Tap)).event;let z;this.q(M(R=>{if(z){clearTimeout(z),z=void 0,this.C(R);return}clearTimeout(z),z=setTimeout(()=>z=void 0,250)},this)),typeof m.size=="number"?(this.g=m.size,m.orientation===0?this.a.style.width=`${this.g}px`:this.a.style.height=`${this.g}px`):(this.g=t,this.q(n.event(R=>{this.g=R,this.layout()}))),this.q(r.event(R=>this.h=R)),this.b=w,this.orthogonalStartSash=m.orthogonalStartSash,this.orthogonalEndSash=m.orthogonalEndSash,this.c=m.orientation||0,this.c===1?(this.a.classList.add("horizontal"),this.a.classList.remove("vertical")):(this.a.classList.remove("horizontal"),this.a.classList.add("vertical")),this.a.classList.toggle("debug",g),this.layout()}B(h,w){C.EventHelper.stop(h);let m=!1;if(!h.__orthogonalSashEvent){const T=this.G(h);T&&(m=!0,h.__orthogonalSashEvent=!0,T.B(h,new s(w)))}if(this.linkedSash&&!h.__linkedSashEvent&&(h.__linkedSashEvent=!0,this.linkedSash.B(h,new s(w))),!this.state)return;const p=document.getElementsByTagName("iframe");for(const T of p)T.classList.add(l);const b=h.pageX,y=h.pageY,k=h.altKey,D={startX:b,currentX:b,startY:y,currentY:y,altKey:k};this.a.classList.add("active"),this.l.fire(D);const M=(0,C.createStyleSheet)(this.a),z=()=>{let T="";m?T="all-scroll":this.c===1?this.state===1?T="s-resize":this.state===2?T="n-resize":T=f.isMacintosh?"row-resize":"ns-resize":this.state===1?T="e-resize":this.state===2?T="w-resize":T=f.isMacintosh?"col-resize":"ew-resize",M.textContent=`* { cursor: ${T} !important; }`},R=new v.DisposableStore;z(),m||this.k.event(z,null,R);const P=T=>{C.EventHelper.stop(T,!1);const O={startX:b,currentX:T.pageX,startY:y,currentY:T.pageY,altKey:k};this.m.fire(O)},A=T=>{C.EventHelper.stop(T,!1),this.a.removeChild(M),this.a.classList.remove("active"),this.p.fire(),R.dispose();for(const O of p)O.classList.remove(l)};w.onPointerMove(P,null,R),w.onPointerUp(A,null,R),R.add(w)}C(h){const w=this.G(h);w&&w.n.fire(),this.linkedSash&&this.linkedSash.n.fire(),this.n.fire()}static D(h,w=!1){h.a.classList.contains("active")?(h.i.cancel(),h.a.classList.add("hover")):h.i.trigger(()=>h.a.classList.add("hover"),h.h).then(void 0,()=>{}),!w&&h.linkedSash&&o.D(h.linkedSash,!0)}static F(h,w=!1){h.i.cancel(),h.a.classList.remove("hover"),!w&&h.linkedSash&&o.F(h.linkedSash,!0)}clearSashHoverState(){o.F(this)}layout(){if(this.c===0){const h=this.b;this.a.style.left=h.getVerticalSashLeft(this)-this.g/2+"px",h.getVerticalSashTop&&(this.a.style.top=h.getVerticalSashTop(this)+"px"),h.getVerticalSashHeight&&(this.a.style.height=h.getVerticalSashHeight(this)+"px")}else{const h=this.b;this.a.style.top=h.getHorizontalSashTop(this)-this.g/2+"px",h.getHorizontalSashLeft&&(this.a.style.left=h.getHorizontalSashLeft(this)+"px"),h.getHorizontalSashWidth&&(this.a.style.width=h.getHorizontalSashWidth(this)+"px")}}G(h){var w;const m=(w=h.initialTarget)!==null&&w!==void 0?w:h.target;if(!(!m||!(m instanceof HTMLElement))&&m.classList.contains("orthogonal-drag-handle"))return m.classList.contains("start")?this.orthogonalStartSash:this.orthogonalEndSash}dispose(){super.dispose(),this.a.remove()}}e.Sash=o}),define(_[276],ee([1,0,7,138,6,2]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ResizableHTMLElement=void 0;class L{constructor(){this.a=new E.Emitter,this.onDidWillResize=this.a.event,this.b=new E.Emitter,this.onDidResize=this.b.event,this.h=new I.DisposableStore,this.i=new C.Dimension(0,0),this.j=new C.Dimension(0,0),this.k=new C.Dimension(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),this.domNode=document.createElement("div"),this.d=new N.Sash(this.domNode,{getVerticalSashLeft:()=>this.i.width},{orientation:0}),this.g=new N.Sash(this.domNode,{getVerticalSashLeft:()=>0},{orientation:0}),this.c=new N.Sash(this.domNode,{getHorizontalSashTop:()=>0},{orientation:1,orthogonalEdge:N.OrthogonalEdge.North}),this.f=new N.Sash(this.domNode,{getHorizontalSashTop:()=>this.i.height},{orientation:1,orthogonalEdge:N.OrthogonalEdge.South}),this.c.orthogonalStartSash=this.g,this.c.orthogonalEndSash=this.d,this.f.orthogonalStartSash=this.g,this.f.orthogonalEndSash=this.d;let v,f=0,g=0;this.h.add(E.Event.any(this.c.onDidStart,this.d.onDidStart,this.f.onDidStart,this.g.onDidStart)(()=>{v===void 0&&(this.a.fire(),v=this.i,f=0,g=0)})),this.h.add(E.Event.any(this.c.onDidEnd,this.d.onDidEnd,this.f.onDidEnd,this.g.onDidEnd)(()=>{v!==void 0&&(v=void 0,f=0,g=0,this.b.fire({dimension:this.i,done:!0}))})),this.h.add(this.d.onDidChange(i=>{v&&(g=i.currentX-i.startX,this.layout(v.height+f,v.width+g),this.b.fire({dimension:this.i,done:!1,east:!0}))})),this.h.add(this.g.onDidChange(i=>{v&&(g=-(i.currentX-i.startX),this.layout(v.height+f,v.width+g),this.b.fire({dimension:this.i,done:!1,west:!0}))})),this.h.add(this.c.onDidChange(i=>{v&&(f=-(i.currentY-i.startY),this.layout(v.height+f,v.width+g),this.b.fire({dimension:this.i,done:!1,north:!0}))})),this.h.add(this.f.onDidChange(i=>{v&&(f=i.currentY-i.startY,this.layout(v.height+f,v.width+g),this.b.fire({dimension:this.i,done:!1,south:!0}))})),this.h.add(E.Event.any(this.d.onDidReset,this.g.onDidReset)(i=>{this.l&&(this.layout(this.i.height,this.l.width),this.b.fire({dimension:this.i,done:!0}))})),this.h.add(E.Event.any(this.c.onDidReset,this.f.onDidReset)(i=>{this.l&&(this.layout(this.l.height,this.i.width),this.b.fire({dimension:this.i,done:!0}))}))}dispose(){this.c.dispose(),this.f.dispose(),this.d.dispose(),this.g.dispose(),this.h.dispose(),this.b.dispose(),this.a.dispose(),this.domNode.remove()}enableSashes(v,f,g,i){this.c.state=v?3:0,this.d.state=f?3:0,this.f.state=g?3:0,this.g.state=i?3:0}layout(v=this.size.height,f=this.size.width){const{height:g,width:i}=this.j,{height:t,width:n}=this.k;v=Math.max(g,Math.min(t,v)),f=Math.max(i,Math.min(n,f));const a=new C.Dimension(f,v);C.Dimension.equals(a,this.i)||(this.domNode.style.height=v+"px",this.domNode.style.width=f+"px",this.i=a,this.c.layout(),this.d.layout(),this.f.layout(),this.g.layout())}clearSashHoverState(){this.d.clearSashHoverState(),this.g.clearSashHoverState(),this.c.clearSashHoverState(),this.f.clearSashHoverState()}get size(){return this.i}set maxSize(v){this.k=v}get maxSize(){return this.k}set minSize(v){this.j=v}get minSize(){return this.j}set preferredSize(v){this.l=v}get preferredSize(){return this.l}}e.ResizableHTMLElement=L}),define(_[528],ee([1,0,7,56,17,6,2,16]),function(q,e,C,N,E,I,L,S){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SelectBoxNative=void 0;class v extends L.Disposable{constructor(g,i,t,n){super(),this.g=0,this.b=n||Object.create(null),this.c=[],this.a=document.createElement("select"),this.a.className="monaco-select-box",typeof this.b.ariaLabel=="string"&&this.a.setAttribute("aria-label",this.b.ariaLabel),typeof this.b.ariaDescription=="string"&&this.a.setAttribute("aria-description",this.b.ariaDescription),this.h=this.q(new I.Emitter),this.i=t,this.j(),this.setOptions(g,i)}j(){this.q(N.Gesture.addTarget(this.a)),[N.EventType.Tap].forEach(g=>{this.q(C.addDisposableListener(this.a,g,i=>{this.a.focus()}))}),this.q(C.addStandardDisposableListener(this.a,"click",g=>{C.EventHelper.stop(g,!0)})),this.q(C.addStandardDisposableListener(this.a,"change",g=>{this.a.title=g.target.value,this.h.fire({index:g.target.selectedIndex,selected:g.target.value})})),this.q(C.addStandardDisposableListener(this.a,"keydown",g=>{let i=!1;S.isMacintosh?(g.keyCode===18||g.keyCode===16||g.keyCode===10)&&(i=!0):(g.keyCode===18&&g.altKey||g.keyCode===10||g.keyCode===3)&&(i=!0),i&&g.stopPropagation()}))}get onDidSelect(){return this.h.event}setOptions(g,i){(!this.c||!E.equals(this.c,g))&&(this.c=g,this.a.options.length=0,this.c.forEach((t,n)=>{this.a.add(this.k(t.text,n,t.isDisabled))})),i!==void 0&&this.select(i)}select(g){this.c.length===0?this.g=0:g>=0&&g<this.c.length?this.g=g:g>this.c.length-1?this.select(this.c.length-1):this.g<0&&(this.g=0),this.a.selectedIndex=this.g,this.g<this.c.length&&typeof this.c[this.g].text=="string"?this.a.title=this.c[this.g].text:this.a.title=""}focus(){this.a&&(this.a.tabIndex=0,this.a.focus())}blur(){this.a&&(this.a.tabIndex=-1,this.a.blur())}setFocusable(g){this.a.tabIndex=g?0:-1}render(g){g.classList.add("select-container"),g.appendChild(this.a),this.setOptions(this.c,this.g),this.applyStyles()}applyStyles(){var g,i,t;this.a&&(this.a.style.backgroundColor=(g=this.i.selectBackground)!==null&&g!==void 0?g:"",this.a.style.color=(i=this.i.selectForeground)!==null&&i!==void 0?i:"",this.a.style.borderColor=(t=this.i.selectBorder)!==null&&t!==void 0?t:"")}k(g,i,t){const n=document.createElement("option");return n.value=g,n.text=g,n.disabled=!!t,n}}e.SelectBoxNative=v}),define(_[67],ee([1,0,7,43,66,56,2]),function(q,e,C,N,E,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Widget=void 0;class S extends L.Disposable{c(f,g){this.q(C.addDisposableListener(f,C.EventType.CLICK,i=>g(new E.StandardMouseEvent(i))))}j(f,g){this.q(C.addDisposableListener(f,C.EventType.MOUSE_DOWN,i=>g(new E.StandardMouseEvent(i))))}k(f,g){this.q(C.addDisposableListener(f,C.EventType.MOUSE_OVER,i=>g(new E.StandardMouseEvent(i))))}m(f,g){this.q(C.addDisposableListener(f,C.EventType.MOUSE_LEAVE,i=>g(new E.StandardMouseEvent(i))))}n(f,g){this.q(C.addDisposableListener(f,C.EventType.KEY_DOWN,i=>g(new N.StandardKeyboardEvent(i))))}p(f,g){this.q(C.addDisposableListener(f,C.EventType.KEY_UP,i=>g(new N.StandardKeyboardEvent(i))))}u(f,g){this.q(C.addDisposableListener(f,C.EventType.INPUT,g))}y(f,g){this.q(C.addDisposableListener(f,C.EventType.BLUR,g))}z(f,g){this.q(C.addDisposableListener(f,C.EventType.FOCUS,g))}B(f){return I.Gesture.ignoreTarget(f)}}e.Widget=S}),define(_[207],ee([1,0,136,67,11,32,7]),function(q,e,C,N,E,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ScrollbarArrow=e.ARROW_IMG_SIZE=void 0,e.ARROW_IMG_SIZE=11;class S extends N.Widget{constructor(f){super(),this.a=f.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=f.bgWidth+"px",this.bgDomNode.style.height=f.bgHeight+"px",typeof f.top<"u"&&(this.bgDomNode.style.top="0px"),typeof f.left<"u"&&(this.bgDomNode.style.left="0px"),typeof f.bottom<"u"&&(this.bgDomNode.style.bottom="0px"),typeof f.right<"u"&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=f.className,this.domNode.classList.add(...I.ThemeIcon.asClassNameArray(f.icon)),this.domNode.style.position="absolute",this.domNode.style.width=e.ARROW_IMG_SIZE+"px",this.domNode.style.height=e.ARROW_IMG_SIZE+"px",typeof f.top<"u"&&(this.domNode.style.top=f.top+"px"),typeof f.left<"u"&&(this.domNode.style.left=f.left+"px"),typeof f.bottom<"u"&&(this.domNode.style.bottom=f.bottom+"px"),typeof f.right<"u"&&(this.domNode.style.right=f.right+"px"),this.h=this.q(new C.GlobalPointerMoveMonitor),this.q(L.addStandardDisposableListener(this.bgDomNode,L.EventType.POINTER_DOWN,g=>this.i(g))),this.q(L.addStandardDisposableListener(this.domNode,L.EventType.POINTER_DOWN,g=>this.i(g))),this.b=this.q(new E.IntervalTimer),this.g=this.q(new E.TimeoutTimer)}i(f){if(!f.target||!(f.target instanceof Element))return;const g=()=>{this.b.cancelAndSet(()=>this.a(),1e3/24)};this.a(),this.b.cancel(),this.g.cancelAndSet(g,200),this.h.startMonitoring(f.target,f.pointerId,f.buttons,i=>{},()=>{this.b.cancel(),this.g.cancel()}),f.preventDefault()}}e.ScrollbarArrow=S}),define(_[277],ee([1,0,7,35,136,207,521,67,16]),function(q,e,C,N,E,I,L,S,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractScrollbar=void 0;const f=140;class g extends S.Widget{constructor(t){super(),this.h=t.lazyRender,this.a=t.host,this.b=t.scrollable,this.g=t.scrollByPage,this.i=t.scrollbarState,this.l=this.q(new L.ScrollbarVisibilityController(t.visibility,"visible scrollbar "+t.extraScrollbarClassName,"invisible scrollbar "+t.extraScrollbarClassName)),this.l.setIsNeeded(this.i.isNeeded()),this.r=this.q(new E.GlobalPointerMoveMonitor),this.s=!0,this.domNode=(0,N.createFastDomNode)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.l.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this.q(C.addDisposableListener(this.domNode.domNode,C.EventType.POINTER_DOWN,n=>this.F(n)))}t(t){const n=this.q(new I.ScrollbarArrow(t));this.domNode.domNode.appendChild(n.bgDomNode),this.domNode.domNode.appendChild(n.domNode)}v(t,n,a,r){this.slider=(0,N.createFastDomNode)(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(t),this.slider.setLeft(n),typeof a=="number"&&this.slider.setWidth(a),typeof r=="number"&&this.slider.setHeight(r),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this.q(C.addDisposableListener(this.slider.domNode,C.EventType.POINTER_DOWN,c=>{c.button===0&&(c.preventDefault(),this.H(c))})),this.c(this.slider.domNode,c=>{c.leftButton&&c.stopPropagation()})}w(t){return this.i.setVisibleSize(t)&&(this.l.setIsNeeded(this.i.isNeeded()),this.s=!0,this.h||this.render()),this.s}C(t){return this.i.setScrollSize(t)&&(this.l.setIsNeeded(this.i.isNeeded()),this.s=!0,this.h||this.render()),this.s}D(t){return this.i.setScrollPosition(t)&&(this.l.setIsNeeded(this.i.isNeeded()),this.s=!0,this.h||this.render()),this.s}beginReveal(){this.l.setShouldBeVisible(!0)}beginHide(){this.l.setShouldBeVisible(!1)}render(){!this.s||(this.s=!1,this.J(this.i.getRectangleLargeSize(),this.i.getRectangleSmallSize()),this.L(this.i.getSliderSize(),this.i.getArrowSize()+this.i.getSliderPosition()))}F(t){t.target===this.domNode.domNode&&this.G(t)}delegatePointerDown(t){const n=this.domNode.domNode.getClientRects()[0].top,a=n+this.i.getSliderPosition(),r=n+this.i.getSliderPosition()+this.i.getSliderSize(),c=this.N(t);a<=c&&c<=r?t.button===0&&(t.preventDefault(),this.H(t)):this.G(t)}G(t){let n,a;if(t.target===this.domNode.domNode&&typeof t.offsetX=="number"&&typeof t.offsetY=="number")n=t.offsetX,a=t.offsetY;else{const c=C.getDomNodePagePosition(this.domNode.domNode);n=t.pageX-c.left,a=t.pageY-c.top}const r=this.M(n,a);this.I(this.g?this.i.getDesiredScrollPositionFromOffsetPaged(r):this.i.getDesiredScrollPositionFromOffset(r)),t.button===0&&(t.preventDefault(),this.H(t))}H(t){if(!t.target||!(t.target instanceof Element))return;const n=this.N(t),a=this.O(t),r=this.i.clone();this.slider.toggleClassName("active",!0),this.r.startMonitoring(t.target,t.pointerId,t.buttons,c=>{const d=this.O(c),s=Math.abs(d-a);if(v.isWindows&&s>f){this.I(r.getScrollPosition());return}const o=this.N(c)-n;this.I(r.getDesiredScrollPositionFromDelta(o))},()=>{this.slider.toggleClassName("active",!1),this.a.onDragEnd()}),this.a.onDragStart()}I(t){const n={};this.writeScrollPosition(n,t),this.b.setScrollPositionNow(n)}updateScrollbarSize(t){this.P(t),this.i.setScrollbarSize(t),this.s=!0,this.h||this.render()}isNeeded(){return this.i.isNeeded()}}e.AbstractScrollbar=g}),define(_[529],ee([1,0,66,277,207,238,29]),function(q,e,C,N,E,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HorizontalScrollbar=void 0;class S extends N.AbstractScrollbar{constructor(f,g,i){const t=f.getScrollDimensions(),n=f.getCurrentScrollPosition();if(super({lazyRender:g.lazyRender,host:i,scrollbarState:new I.ScrollbarState(g.horizontalHasArrows?g.arrowSize:0,g.horizontal===2?0:g.horizontalScrollbarSize,g.vertical===2?0:g.verticalScrollbarSize,t.width,t.scrollWidth,n.scrollLeft),visibility:g.horizontal,extraScrollbarClassName:"horizontal",scrollable:f,scrollByPage:g.scrollByPage}),g.horizontalHasArrows){const a=(g.arrowSize-E.ARROW_IMG_SIZE)/2,r=(g.horizontalScrollbarSize-E.ARROW_IMG_SIZE)/2;this.t({className:"scra",icon:L.Codicon.scrollbarButtonLeft,top:r,left:a,bottom:void 0,right:void 0,bgWidth:g.arrowSize,bgHeight:g.horizontalScrollbarSize,onActivate:()=>this.a.onMouseWheel(new C.StandardWheelEvent(null,1,0))}),this.t({className:"scra",icon:L.Codicon.scrollbarButtonRight,top:r,left:void 0,bottom:void 0,right:a,bgWidth:g.arrowSize,bgHeight:g.horizontalScrollbarSize,onActivate:()=>this.a.onMouseWheel(new C.StandardWheelEvent(null,-1,0))})}this.v(Math.floor((g.horizontalScrollbarSize-g.horizontalSliderSize)/2),0,void 0,g.horizontalSliderSize)}L(f,g){this.slider.setWidth(f),this.slider.setLeft(g)}J(f,g){this.domNode.setWidth(f),this.domNode.setHeight(g),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(f){return this.s=this.C(f.scrollWidth)||this.s,this.s=this.D(f.scrollLeft)||this.s,this.s=this.w(f.width)||this.s,this.s}M(f,g){return f}N(f){return f.pageX}O(f){return f.pageY}P(f){this.slider.setHeight(f)}writeScrollPosition(f,g){f.scrollLeft=g}updateOptions(f){this.updateScrollbarSize(f.horizontal===2?0:f.horizontalScrollbarSize),this.i.setOppositeScrollbarSize(f.vertical===2?0:f.verticalScrollbarSize),this.l.setVisibility(f.horizontal),this.g=f.scrollByPage}}e.HorizontalScrollbar=S}),define(_[530],ee([1,0,66,277,207,238,29]),function(q,e,C,N,E,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VerticalScrollbar=void 0;class S extends N.AbstractScrollbar{constructor(f,g,i){const t=f.getScrollDimensions(),n=f.getCurrentScrollPosition();if(super({lazyRender:g.lazyRender,host:i,scrollbarState:new I.ScrollbarState(g.verticalHasArrows?g.arrowSize:0,g.vertical===2?0:g.verticalScrollbarSize,0,t.height,t.scrollHeight,n.scrollTop),visibility:g.vertical,extraScrollbarClassName:"vertical",scrollable:f,scrollByPage:g.scrollByPage}),g.verticalHasArrows){const a=(g.arrowSize-E.ARROW_IMG_SIZE)/2,r=(g.verticalScrollbarSize-E.ARROW_IMG_SIZE)/2;this.t({className:"scra",icon:L.Codicon.scrollbarButtonUp,top:a,left:r,bottom:void 0,right:void 0,bgWidth:g.verticalScrollbarSize,bgHeight:g.arrowSize,onActivate:()=>this.a.onMouseWheel(new C.StandardWheelEvent(null,0,1))}),this.t({className:"scra",icon:L.Codicon.scrollbarButtonDown,top:void 0,left:r,bottom:a,right:void 0,bgWidth:g.verticalScrollbarSize,bgHeight:g.arrowSize,onActivate:()=>this.a.onMouseWheel(new C.StandardWheelEvent(null,0,-1))})}this.v(0,Math.floor((g.verticalScrollbarSize-g.verticalSliderSize)/2),g.verticalSliderSize,void 0)}L(f,g){this.slider.setHeight(f),this.slider.setTop(g)}J(f,g){this.domNode.setWidth(g),this.domNode.setHeight(f),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(f){return this.s=this.C(f.scrollHeight)||this.s,this.s=this.D(f.scrollTop)||this.s,this.s=this.w(f.height)||this.s,this.s}M(f,g){return g}N(f){return f.pageY}O(f){return f.pageX}P(f){this.slider.setWidth(f)}writeScrollPosition(f,g){f.scrollTop=g}updateOptions(f){this.updateScrollbarSize(f.vertical===2?0:f.verticalScrollbarSize),this.i.setOppositeScrollbarSize(0),this.l.setVisibility(f.vertical),this.g=f.scrollByPage}}e.VerticalScrollbar=S}),define(_[76],ee([1,0,45,7,35,66,529,530,67,11,6,2,16,167,364]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DomScrollableElement=e.SmoothScrollableElement=e.ScrollableElement=e.AbstractScrollableElement=e.MouseWheelClassifier=void 0;const a=500,r=50,c=!0;class d{constructor(p,b,y){this.timestamp=p,this.deltaX=b,this.deltaY=y,this.score=0}}class s{constructor(){this.a=5,this.b=[],this.c=-1,this.d=-1}isPhysicalMouseWheel(){if(this.c===-1&&this.d===-1)return!1;let p=1,b=0,y=1,k=this.d;do{const D=k===this.c?p:Math.pow(2,-y);if(p-=D,b+=this.b[k].score*D,k===this.c)break;k=(this.a+k-1)%this.a,y++}while(!0);return b<=.5}acceptStandardWheelEvent(p){const b=window.devicePixelRatio/(0,C.getZoomFactor)();t.isWindows||t.isLinux?this.accept(Date.now(),p.deltaX/b,p.deltaY/b):this.accept(Date.now(),p.deltaX,p.deltaY)}accept(p,b,y){const k=new d(p,b,y);k.score=this.f(k),this.c===-1&&this.d===-1?(this.b[0]=k,this.c=0,this.d=0):(this.d=(this.d+1)%this.a,this.d===this.c&&(this.c=(this.c+1)%this.a),this.b[this.d]=k)}f(p){if(Math.abs(p.deltaX)>0&&Math.abs(p.deltaY)>0)return 1;let b=.5;const y=this.c===-1&&this.d===-1?null:this.b[this.d];return(!this.g(p.deltaX)||!this.g(p.deltaY))&&(b+=.25),Math.min(Math.max(b,0),1)}g(p){return Math.abs(Math.round(p)-p)<.01}}s.INSTANCE=new s,e.MouseWheelClassifier=s;class l extends v.Widget{get options(){return this.a}constructor(p,b,y){super(),this.H=this.q(new g.Emitter),this.onScroll=this.H.event,this.I=this.q(new g.Emitter),p.style.overflow="hidden",this.a=w(b),this.b=y,this.q(this.b.onScroll(D=>{this.I.fire(D),this.M(D),this.H.fire(D)}));const k={onMouseWheel:D=>this.L(D),onDragStart:()=>this.O(),onDragEnd:()=>this.P()};this.g=this.q(new S.VerticalScrollbar(this.b,this.a,k)),this.h=this.q(new L.HorizontalScrollbar(this.b,this.a,k)),this.i=document.createElement("div"),this.i.className="monaco-scrollable-element "+this.a.className,this.i.setAttribute("role","presentation"),this.i.style.position="relative",this.i.style.overflow="hidden",this.i.appendChild(p),this.i.appendChild(this.h.domNode.domNode),this.i.appendChild(this.g.domNode.domNode),this.a.useShadows?(this.l=(0,E.createFastDomNode)(document.createElement("div")),this.l.setClassName("shadow"),this.i.appendChild(this.l.domNode),this.r=(0,E.createFastDomNode)(document.createElement("div")),this.r.setClassName("shadow"),this.i.appendChild(this.r.domNode),this.s=(0,E.createFastDomNode)(document.createElement("div")),this.s.setClassName("shadow"),this.i.appendChild(this.s.domNode)):(this.l=null,this.r=null,this.s=null),this.t=this.a.listenOnDomNode||this.i,this.v=[],this.J(this.a.handleMouseWheel),this.k(this.t,D=>this.R(D)),this.m(this.t,D=>this.Q(D)),this.D=this.q(new f.TimeoutTimer),this.w=!1,this.C=!1,this.F=!0,this.G=!0}dispose(){this.v=(0,i.dispose)(this.v),super.dispose()}getDomNode(){return this.i}getOverviewRulerLayoutInfo(){return{parent:this.i,insertBefore:this.g.domNode.domNode}}delegateVerticalScrollbarPointerDown(p){this.g.delegatePointerDown(p)}getScrollDimensions(){return this.b.getScrollDimensions()}setScrollDimensions(p){this.b.setScrollDimensions(p,!1)}updateClassName(p){this.a.className=p,t.isMacintosh&&(this.a.className+=" mac"),this.i.className="monaco-scrollable-element "+this.a.className}updateOptions(p){typeof p.handleMouseWheel<"u"&&(this.a.handleMouseWheel=p.handleMouseWheel,this.J(this.a.handleMouseWheel)),typeof p.mouseWheelScrollSensitivity<"u"&&(this.a.mouseWheelScrollSensitivity=p.mouseWheelScrollSensitivity),typeof p.fastScrollSensitivity<"u"&&(this.a.fastScrollSensitivity=p.fastScrollSensitivity),typeof p.scrollPredominantAxis<"u"&&(this.a.scrollPredominantAxis=p.scrollPredominantAxis),typeof p.horizontal<"u"&&(this.a.horizontal=p.horizontal),typeof p.vertical<"u"&&(this.a.vertical=p.vertical),typeof p.horizontalScrollbarSize<"u"&&(this.a.horizontalScrollbarSize=p.horizontalScrollbarSize),typeof p.verticalScrollbarSize<"u"&&(this.a.verticalScrollbarSize=p.verticalScrollbarSize),typeof p.scrollByPage<"u"&&(this.a.scrollByPage=p.scrollByPage),this.h.updateOptions(this.a),this.g.updateOptions(this.a),this.a.lazyRender||this.N()}delegateScrollFromMouseWheelEvent(p){this.L(new I.StandardWheelEvent(p))}J(p){if(this.v.length>0!==p&&(this.v=(0,i.dispose)(this.v),p)){const y=k=>{this.L(new I.StandardWheelEvent(k))};this.v.push(N.addDisposableListener(this.t,N.EventType.MOUSE_WHEEL,y,{passive:!1}))}}L(p){const b=s.INSTANCE;c&&b.acceptStandardWheelEvent(p);let y=!1;if(p.deltaY||p.deltaX){let D=p.deltaY*this.a.mouseWheelScrollSensitivity,M=p.deltaX*this.a.mouseWheelScrollSensitivity;this.a.scrollPredominantAxis&&(Math.abs(D)>=Math.abs(M)?M=0:D=0),this.a.flipAxes&&([D,M]=[M,D]);const z=!t.isMacintosh&&p.browserEvent&&p.browserEvent.shiftKey;(this.a.scrollYToX||z)&&!M&&(M=D,D=0),p.browserEvent&&p.browserEvent.altKey&&(M=M*this.a.fastScrollSensitivity,D=D*this.a.fastScrollSensitivity);const R=this.b.getFutureScrollPosition();let P={};if(D){const A=r*D,T=R.scrollTop-(A<0?Math.floor(A):Math.ceil(A));this.g.writeScrollPosition(P,T)}if(M){const A=r*M,T=R.scrollLeft-(A<0?Math.floor(A):Math.ceil(A));this.h.writeScrollPosition(P,T)}P=this.b.validateScrollPosition(P),(R.scrollLeft!==P.scrollLeft||R.scrollTop!==P.scrollTop)&&(c&&this.a.mouseWheelSmoothScroll&&b.isPhysicalMouseWheel()?this.b.setScrollPositionSmooth(P):this.b.setScrollPositionNow(P),y=!0)}let k=y;!k&&this.a.alwaysConsumeMouseWheel&&(k=!0),!k&&this.a.consumeMouseWheelIfScrollbarIsNeeded&&(this.g.isNeeded()||this.h.isNeeded())&&(k=!0),k&&(p.preventDefault(),p.stopPropagation())}M(p){this.F=this.h.onDidScroll(p)||this.F,this.F=this.g.onDidScroll(p)||this.F,this.a.useShadows&&(this.F=!0),this.G&&this.S(),this.a.lazyRender||this.N()}renderNow(){if(!this.a.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this.N()}N(){if(!!this.F&&(this.F=!1,this.h.render(),this.g.render(),this.a.useShadows)){const p=this.b.getCurrentScrollPosition(),b=p.scrollTop>0,y=p.scrollLeft>0,k=y?" left":"",D=b?" top":"",M=y||b?" top-left-corner":"";this.l.setClassName(`shadow${k}`),this.r.setClassName(`shadow${D}`),this.s.setClassName(`shadow${M}${D}${k}`)}}O(){this.w=!0,this.S()}P(){this.w=!1,this.U()}Q(p){this.C=!1,this.U()}R(p){this.C=!0,this.S()}S(){this.g.beginReveal(),this.h.beginReveal(),this.W()}U(){!this.C&&!this.w&&(this.g.beginHide(),this.h.beginHide())}W(){!this.C&&!this.w&&this.D.cancelAndSet(()=>this.U(),a)}}e.AbstractScrollableElement=l;class o extends l{constructor(p,b){b=b||{},b.mouseWheelSmoothScroll=!1;const y=new n.Scrollable({forceIntegerValues:!0,smoothScrollDuration:0,scheduleAtNextAnimationFrame:k=>N.scheduleAtNextAnimationFrame(k)});super(p,b,y),this.q(y)}setScrollPosition(p){this.b.setScrollPositionNow(p)}}e.ScrollableElement=o;class u extends l{constructor(p,b,y){super(p,b,y)}setScrollPosition(p){p.reuseAnimation?this.b.setScrollPositionSmooth(p,p.reuseAnimation):this.b.setScrollPositionNow(p)}getScrollPosition(){return this.b.getCurrentScrollPosition()}}e.SmoothScrollableElement=u;class h extends l{constructor(p,b){b=b||{},b.mouseWheelSmoothScroll=!1;const y=new n.Scrollable({forceIntegerValues:!1,smoothScrollDuration:0,scheduleAtNextAnimationFrame:k=>N.scheduleAtNextAnimationFrame(k)});super(p,b,y),this.q(y),this.X=p,this.onScroll(k=>{k.scrollTopChanged&&(this.X.scrollTop=k.scrollTop),k.scrollLeftChanged&&(this.X.scrollLeft=k.scrollLeft)}),this.scanDomNode()}setScrollPosition(p){this.b.setScrollPositionNow(p)}getScrollPosition(){return this.b.getCurrentScrollPosition()}scanDomNode(){this.setScrollDimensions({width:this.X.clientWidth,scrollWidth:this.X.scrollWidth,height:this.X.clientHeight,scrollHeight:this.X.scrollHeight}),this.setScrollPosition({scrollLeft:this.X.scrollLeft,scrollTop:this.X.scrollTop})}}e.DomScrollableElement=h;function w(m){const p={lazyRender:typeof m.lazyRender<"u"?m.lazyRender:!1,className:typeof m.className<"u"?m.className:"",useShadows:typeof m.useShadows<"u"?m.useShadows:!0,handleMouseWheel:typeof m.handleMouseWheel<"u"?m.handleMouseWheel:!0,flipAxes:typeof m.flipAxes<"u"?m.flipAxes:!1,consumeMouseWheelIfScrollbarIsNeeded:typeof m.consumeMouseWheelIfScrollbarIsNeeded<"u"?m.consumeMouseWheelIfScrollbarIsNeeded:!1,alwaysConsumeMouseWheel:typeof m.alwaysConsumeMouseWheel<"u"?m.alwaysConsumeMouseWheel:!1,scrollYToX:typeof m.scrollYToX<"u"?m.scrollYToX:!1,mouseWheelScrollSensitivity:typeof m.mouseWheelScrollSensitivity<"u"?m.mouseWheelScrollSensitivity:1,fastScrollSensitivity:typeof m.fastScrollSensitivity<"u"?m.fastScrollSensitivity:5,scrollPredominantAxis:typeof m.scrollPredominantAxis<"u"?m.scrollPredominantAxis:!0,mouseWheelSmoothScroll:typeof m.mouseWheelSmoothScroll<"u"?m.mouseWheelSmoothScroll:!0,arrowSize:typeof m.arrowSize<"u"?m.arrowSize:11,listenOnDomNode:typeof m.listenOnDomNode<"u"?m.listenOnDomNode:null,horizontal:typeof m.horizontal<"u"?m.horizontal:1,horizontalScrollbarSize:typeof m.horizontalScrollbarSize<"u"?m.horizontalScrollbarSize:10,horizontalSliderSize:typeof m.horizontalSliderSize<"u"?m.horizontalSliderSize:0,horizontalHasArrows:typeof m.horizontalHasArrows<"u"?m.horizontalHasArrows:!1,vertical:typeof m.vertical<"u"?m.vertical:1,verticalScrollbarSize:typeof m.verticalScrollbarSize<"u"?m.verticalScrollbarSize:10,verticalHasArrows:typeof m.verticalHasArrows<"u"?m.verticalHasArrows:!1,verticalSliderSize:typeof m.verticalSliderSize<"u"?m.verticalSliderSize:0,scrollByPage:typeof m.scrollByPage<"u"?m.scrollByPage:!1};return p.horizontalSliderSize=typeof m.horizontalSliderSize<"u"?m.horizontalSliderSize:p.horizontalScrollbarSize,p.verticalSliderSize=typeof m.verticalSliderSize<"u"?m.verticalSliderSize:p.verticalScrollbarSize,t.isMacintosh&&(p.className+=" mac"),p}}),define(_[278],ee([1,0,7,43,76,2,357]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HoverAction=e.HoverWidget=void 0;const L=C.$;class S extends I.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.q(new E.DomScrollableElement(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}}e.HoverWidget=S;class v extends I.Disposable{static render(g,i,t){return new v(g,i,t)}constructor(g,i,t){super(),this.a=C.append(g,L("div.action-container")),this.a.setAttribute("tabindex","0"),this.b=C.append(this.a,L("a.action")),this.b.setAttribute("role","button"),i.iconClass&&C.append(this.b,L(`span.icon.${i.iconClass}`));const n=C.append(this.b,L("span"));n.textContent=t?`${i.label} (${t})`:i.label,this.q(C.addDisposableListener(this.a,C.EventType.CLICK,a=>{a.stopPropagation(),a.preventDefault(),i.run(this.a)})),this.q(C.addDisposableListener(this.a,C.EventType.KEY_DOWN,a=>{const r=new N.StandardKeyboardEvent(a);(r.equals(3)||r.equals(10))&&(a.stopPropagation(),a.preventDefault(),i.run(this.a))})),this.setEnabled(!0)}setEnabled(g){g?(this.a.classList.remove("disabled"),this.a.removeAttribute("aria-disabled")):(this.a.classList.add("disabled"),this.a.setAttribute("aria-disabled","true"))}}e.HoverAction=v}),define(_[208],ee([1,0,127,7,75,56,76,17,11,99,6,2,151,167,349,526,13]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ListView=e.NativeDragAndDropData=e.ExternalElementsDragAndDropData=e.ElementsDragAndDropData=void 0;const d={CurrentDragAndDropData:void 0},s={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 l{constructor(b){this.elements=b}update(){}getData(){return this.elements}}e.ElementsDragAndDropData=l;class o{constructor(b){this.elements=b}update(){}getData(){return this.elements}}e.ExternalElementsDragAndDropData=o;class u{constructor(){this.types=[],this.files=[]}update(b){if(b.types&&this.types.splice(0,this.types.length,...b.types),b.files){this.files.splice(0,this.files.length);for(let y=0;y<b.files.length;y++){const k=b.files.item(y);k&&(k.size||k.type)&&this.files.push(k)}}}getData(){return{types:this.types,files:this.files}}}e.NativeDragAndDropData=u;function h(p,b){return Array.isArray(p)&&Array.isArray(b)?(0,S.equals)(p,b):p===b}class w{constructor(b){b?.getSetSize?this.getSetSize=b.getSetSize.bind(b):this.getSetSize=(y,k,D)=>D,b?.getPosInSet?this.getPosInSet=b.getPosInSet.bind(b):this.getPosInSet=(y,k)=>k+1,b?.getRole?this.getRole=b.getRole.bind(b):this.getRole=y=>"listitem",b?.isChecked?this.isChecked=b.isChecked.bind(b):this.isChecked=y=>{}}}class m{get contentHeight(){return this.g.size}get O(){return this.N}set O(b){if(b!==this.N){if(b&&this.B)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");if(this.N=b,this.domNode.classList.toggle("horizontal-scrolling",this.N),this.N){for(const y of this.d)this.X(y);this.U(),this.q.setScrollDimensions({width:(0,N.getContentWidth)(this.domNode)}),this.o.style.width=`${Math.max(this.E||0,this.n)}px`}else this.u.cancel(),this.q.setScrollDimensions({width:this.n,scrollWidth:this.n}),this.o.style.width=""}}constructor(b,y,k,D=s){var M,z,R,P,A,T,O,B,W,j,F,U;if(this.P=y,this.domId=`list_id_${++m.c}`,this.j=new Map,this.n=0,this.s=0,this.t=null,this.u=new v.Delayer(50),this.v=!1,this.x=i.Disposable.None,this.y=0,this.G=!1,this.J=i.Disposable.None,this.K=i.Disposable.None,this.L=new i.DisposableStore,this.M=new g.Emitter,this.N=!1,D.horizontalScrolling&&D.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.d=[],this.f=0,this.g=new a.RangeMap;for(const se of k)this.j.set(se.templateId,se);this.h=this.L.add(new r.RowCache(this.j)),this.k=0,this.m=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 D.mouseSupport=="boolean"?D.mouseSupport:!0),this.N=(M=D.horizontalScrolling)!==null&&M!==void 0?M:s.horizontalScrolling,this.domNode.classList.toggle("horizontal-scrolling",this.N),this.C=typeof D.additionalScrollHeight>"u"?0:D.additionalScrollHeight,this.D=new w(D.accessibilityProvider),this.o=document.createElement("div"),this.o.className="monaco-list-rows",((z=D.transformOptimization)!==null&&z!==void 0?z:s.transformOptimization)&&(this.o.style.transform="translate3d(0px, 0px, 0px)",this.o.style.overflow="hidden",this.o.style.contain="strict"),this.L.add(I.Gesture.addTarget(this.o)),this.p=new n.Scrollable({forceIntegerValues:!0,smoothScrollDuration:(R=D.smoothScrolling)!==null&&R!==void 0&&R?125:0,scheduleAtNextAnimationFrame:se=>(0,N.scheduleAtNextAnimationFrame)(se)}),this.q=this.L.add(new L.SmoothScrollableElement(this.o,{alwaysConsumeMouseWheel:(P=D.alwaysConsumeMouseWheel)!==null&&P!==void 0?P:s.alwaysConsumeMouseWheel,horizontal:1,vertical:(A=D.verticalScrollMode)!==null&&A!==void 0?A:s.verticalScrollMode,useShadows:(T=D.useShadows)!==null&&T!==void 0?T:s.useShadows,mouseWheelScrollSensitivity:D.mouseWheelScrollSensitivity,fastScrollSensitivity:D.fastScrollSensitivity,scrollByPage:D.scrollByPage},this.p)),this.domNode.appendChild(this.q.getDomNode()),b.appendChild(this.domNode),this.q.onScroll(this.fb,this,this.L),this.L.add((0,N.addDisposableListener)(this.o,I.EventType.Change,se=>this.gb(se))),this.L.add((0,N.addDisposableListener)(this.q.getDomNode(),"scroll",se=>se.target.scrollTop=0)),this.L.add((0,N.addDisposableListener)(this.domNode,"dragover",se=>this.ib(this.eb(se)))),this.L.add((0,N.addDisposableListener)(this.domNode,"drop",se=>this.kb(this.eb(se)))),this.L.add((0,N.addDisposableListener)(this.domNode,"dragleave",se=>this.jb(this.eb(se)))),this.L.add((0,N.addDisposableListener)(this.domNode,"dragend",se=>this.lb(se))),this.z=(O=D.setRowLineHeight)!==null&&O!==void 0?O:s.setRowLineHeight,this.A=(B=D.setRowHeight)!==null&&B!==void 0?B:s.setRowHeight,this.B=(W=D.supportDynamicHeights)!==null&&W!==void 0?W:s.supportDynamicHeights,this.F=(j=D.dnd)!==null&&j!==void 0?j:s.dnd,this.layout((F=D.initialSize)===null||F===void 0?void 0:F.height,(U=D.initialSize)===null||U===void 0?void 0:U.width)}updateOptions(b){b.additionalScrollHeight!==void 0&&(this.C=b.additionalScrollHeight,this.q.setScrollDimensions({scrollHeight:this.scrollHeight})),b.smoothScrolling!==void 0&&this.p.setSmoothScrollDuration(b.smoothScrolling?125:0),b.horizontalScrolling!==void 0&&(this.O=b.horizontalScrolling);let y;b.scrollByPage!==void 0&&(y=Object.assign(Object.assign({},y??{}),{scrollByPage:b.scrollByPage})),b.mouseWheelScrollSensitivity!==void 0&&(y=Object.assign(Object.assign({},y??{}),{mouseWheelScrollSensitivity:b.mouseWheelScrollSensitivity})),b.fastScrollSensitivity!==void 0&&(y=Object.assign(Object.assign({},y??{}),{fastScrollSensitivity:b.fastScrollSensitivity})),y&&this.q.updateOptions(y)}splice(b,y,k=[]){if(this.v)throw new Error("Can't run recursive splices.");this.v=!0;try{return this.Q(b,y,k)}finally{this.v=!1,this.M.fire(this.contentHeight)}}Q(b,y,k=[]){const D=this.rb(this.k,this.m),M={start:b,end:b+y},z=t.Range.intersect(D,M),R=new Map;for(let J=z.end-1;J>=z.start;J--){const x=this.d[J];if(x.dragStartDisposable.dispose(),x.checkedDisposable.dispose(),x.row){let G=R.get(x.templateId);G||(G=[],R.set(x.templateId,G));const te=this.j.get(x.templateId);te&&te.disposeElement&&te.disposeElement(x.element,J,x.row.templateData,x.size),G.push(x.row)}x.row=null}const P={start:b+y,end:this.d.length},A=t.Range.intersect(P,D),T=t.Range.relativeComplement(P,D),O=k.map(J=>({id:String(this.f++),element:J,templateId:this.P.getTemplateId(J),size:this.P.getHeight(J),width:void 0,hasDynamicHeight:!!this.P.hasDynamicHeight&&this.P.hasDynamicHeight(J),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:i.Disposable.None,checkedDisposable:i.Disposable.None}));let B;b===0&&y>=this.d.length?(this.g=new a.RangeMap,this.g.splice(0,0,O),B=this.d,this.d=O):(this.g.splice(b,y,O),B=this.d.splice(b,y,...O));const W=k.length-y,j=this.rb(this.k,this.m),F=(0,a.shift)(A,W),U=t.Range.intersect(j,F);for(let J=U.start;J<U.end;J++)this.Y(this.d[J],J);const Q=t.Range.relativeComplement(F,j);for(const J of Q)for(let x=J.start;x<J.end;x++)this.Z(x);const se=T.map(J=>(0,a.shift)(J,W)),ie=[{start:b,end:b+k.length},...se].map(J=>t.Range.intersect(j,J)),ue=this.ub(ie);for(const J of ie)for(let x=J.start;x<J.end;x++){const G=this.d[x],te=R.get(G.templateId),Z=te?.pop();this.W(x,ue,Z)}for(const J of R.values())for(const x of J)this.h.release(x);return this.R(),this.B&&this.sb(this.scrollTop,this.renderHeight),B.map(J=>J.element)}R(){this.s=this.contentHeight,this.o.style.height=`${this.s}px`,this.t||(this.t=(0,N.scheduleAtNextAnimationFrame)(()=>{this.q.setScrollDimensions({scrollHeight:this.scrollHeight}),this.U(),this.t=null}))}S(){if(!this.O){this.u.cancel();return}this.u.trigger(()=>this.U())}U(){if(!this.O)return;let b=0;for(const y of this.d)typeof y.width<"u"&&(b=Math.max(b,y.width));this.E=b,this.q.setScrollDimensions({scrollWidth:b===0?0:b+10})}rerender(){if(!!this.B){for(const b of this.d)b.lastDynamicHeightWidth=void 0;this.sb(this.k,this.m)}}get length(){return this.d.length}get renderHeight(){return this.q.getScrollDimensions().height}get firstVisibleIndex(){const b=this.rb(this.k,this.m),y=this.g.positionAt(b.start),k=this.g.positionAt(b.start+1);return k!==-1&&(k-y)/2+y<this.scrollTop?b.start+1:b.start}element(b){return this.d[b].element}domElement(b){const y=this.d[b].row;return y&&y.domNode}elementHeight(b){return this.d[b].size}elementTop(b){return this.g.positionAt(b)}indexAt(b){return this.g.indexAt(b)}indexAfter(b){return this.g.indexAfter(b)}layout(b,y){const k={height:typeof b=="number"?b:(0,N.getContentHeight)(this.domNode)};this.t&&(this.t.dispose(),this.t=null,k.scrollHeight=this.scrollHeight),this.q.setScrollDimensions(k),typeof y<"u"&&(this.n=y,this.B&&this.sb(this.scrollTop,this.renderHeight)),this.O&&this.q.setScrollDimensions({width:typeof y=="number"?y:(0,N.getContentWidth)(this.domNode)})}V(b,y,k,D,M,z=!1){const R=this.rb(y,k),P=t.Range.relativeComplement(R,b),A=t.Range.relativeComplement(b,R),T=this.ub(P);if(z){const O=t.Range.intersect(b,R);for(let B=O.start;B<O.end;B++)this.Y(this.d[B],B)}this.h.transact(()=>{for(const O of A)for(let B=O.start;B<O.end;B++)this.Z(B);for(const O of P)for(let B=O.start;B<O.end;B++)this.W(B,T)}),D!==void 0&&(this.o.style.left=`-${D}px`),this.o.style.top=`-${y}px`,this.O&&M!==void 0&&(this.o.style.width=`${Math.max(M,this.n)}px`),this.k=y,this.m=k}W(b,y,k){const D=this.d[b];let M=!1;if(!D.row)if(k)D.row=k;else{const T=this.h.alloc(D.templateId);D.row=T.row,M=T.isReusingConnectedDomNode}const z=this.D.getRole(D.element)||"listitem";D.row.domNode.setAttribute("role",z);const R=this.D.isChecked(D.element);if(typeof R=="boolean")D.row.domNode.setAttribute("aria-checked",String(!!R));else if(R){const T=O=>D.row.domNode.setAttribute("aria-checked",String(!!O));T(R.value),D.checkedDisposable=R.onDidChange(T)}(M||!D.row.domNode.parentElement)&&(y?this.o.insertBefore(D.row.domNode,y):this.o.appendChild(D.row.domNode)),this.Y(D,b);const P=this.j.get(D.templateId);if(!P)throw new Error(`No renderer found for template id ${D.templateId}`);P?.renderElement(D.element,b,D.row.templateData,D.size);const A=this.F.getDragURI(D.element);D.dragStartDisposable.dispose(),D.row.domNode.draggable=!!A,A&&(D.dragStartDisposable=(0,N.addDisposableListener)(D.row.domNode,"dragstart",T=>this.hb(D.element,A,T))),this.O&&(this.X(D),this.S())}X(b){if(!b.row||!b.row.domNode)return;b.row.domNode.style.width="fit-content",b.width=(0,N.getContentWidth)(b.row.domNode);const y=window.getComputedStyle(b.row.domNode);y.paddingLeft&&(b.width+=parseFloat(y.paddingLeft)),y.paddingRight&&(b.width+=parseFloat(y.paddingRight)),b.row.domNode.style.width=""}Y(b,y){b.row.domNode.style.top=`${this.elementTop(y)}px`,this.A&&(b.row.domNode.style.height=`${b.size}px`),this.z&&(b.row.domNode.style.lineHeight=`${b.size}px`),b.row.domNode.setAttribute("data-index",`${y}`),b.row.domNode.setAttribute("data-last-element",y===this.length-1?"true":"false"),b.row.domNode.setAttribute("data-parity",y%2===0?"even":"odd"),b.row.domNode.setAttribute("aria-setsize",String(this.D.getSetSize(b.element,y,this.length))),b.row.domNode.setAttribute("aria-posinset",String(this.D.getPosInSet(b.element,y))),b.row.domNode.setAttribute("id",this.getElementDomId(y)),b.row.domNode.classList.toggle("drop-target",b.dropTarget)}Z(b){const y=this.d[b];if(y.dragStartDisposable.dispose(),y.checkedDisposable.dispose(),y.row){const k=this.j.get(y.templateId);k&&k.disposeElement&&k.disposeElement(y.element,b,y.row.templateData,y.size),this.h.release(y.row),y.row=null}this.O&&this.S()}getScrollTop(){return this.q.getScrollPosition().scrollTop}setScrollTop(b,y){this.t&&(this.t.dispose(),this.t=null,this.q.setScrollDimensions({scrollHeight:this.scrollHeight})),this.q.setScrollPosition({scrollTop:b,reuseAnimation:y})}get scrollTop(){return this.getScrollTop()}set scrollTop(b){this.setScrollTop(b)}get scrollHeight(){return this.s+(this.O?10:0)+this.C}get onMouseClick(){return g.Event.map(this.L.add(new E.DomEmitter(this.domNode,"click")).event,b=>this.ab(b),this.L)}get onMouseDblClick(){return g.Event.map(this.L.add(new E.DomEmitter(this.domNode,"dblclick")).event,b=>this.ab(b),this.L)}get onMouseMiddleClick(){return g.Event.filter(g.Event.map(this.L.add(new E.DomEmitter(this.domNode,"auxclick")).event,b=>this.ab(b),this.L),b=>b.browserEvent.button===1,this.L)}get onMouseDown(){return g.Event.map(this.L.add(new E.DomEmitter(this.domNode,"mousedown")).event,b=>this.ab(b),this.L)}get onMouseOver(){return g.Event.map(this.L.add(new E.DomEmitter(this.domNode,"mouseover")).event,b=>this.ab(b),this.L)}get onMouseOut(){return g.Event.map(this.L.add(new E.DomEmitter(this.domNode,"mouseout")).event,b=>this.ab(b),this.L)}get onContextMenu(){return g.Event.any(g.Event.map(this.L.add(new E.DomEmitter(this.domNode,"contextmenu")).event,b=>this.ab(b),this.L),g.Event.map(this.L.add(new E.DomEmitter(this.domNode,I.EventType.Contextmenu)).event,b=>this.db(b),this.L))}get onTouchStart(){return g.Event.map(this.L.add(new E.DomEmitter(this.domNode,"touchstart")).event,b=>this.bb(b),this.L)}get onTap(){return g.Event.map(this.L.add(new E.DomEmitter(this.o,I.EventType.Tap)).event,b=>this.db(b),this.L)}ab(b){const y=this.qb(b.target||null),k=typeof y>"u"?void 0:this.d[y],D=k&&k.element;return{browserEvent:b,index:y,element:D}}bb(b){const y=this.qb(b.target||null),k=typeof y>"u"?void 0:this.d[y],D=k&&k.element;return{browserEvent:b,index:y,element:D}}db(b){const y=this.qb(b.initialTarget||null),k=typeof y>"u"?void 0:this.d[y],D=k&&k.element;return{browserEvent:b,index:y,element:D}}eb(b){const y=this.qb(b.target||null),k=typeof y>"u"?void 0:this.d[y],D=k&&k.element;return{browserEvent:b,index:y,element:D}}fb(b){try{const y=this.rb(this.k,this.m);this.V(y,b.scrollTop,b.height,b.scrollLeft,b.scrollWidth),this.B&&this.sb(b.scrollTop,b.height,b.inSmoothScrolling)}catch(y){throw console.error("Got bad scroll event:",b),y}}gb(b){b.preventDefault(),b.stopPropagation(),this.scrollTop-=b.translationY}hb(b,y,k){var D,M;if(!k.dataTransfer)return;const z=this.F.getDragElements(b);if(k.dataTransfer.effectAllowed="copyMove",k.dataTransfer.setData(C.DataTransfers.TEXT,y),k.dataTransfer.setDragImage){let R;this.F.getDragLabel&&(R=this.F.getDragLabel(z,k)),typeof R>"u"&&(R=String(z.length));const P=(0,N.$)(".monaco-drag-image");P.textContent=R;const T=(O=>{for(;O&&!O.classList.contains("monaco-workbench");)O=O.parentElement;return O||document.body})(this.domNode);T.appendChild(P),k.dataTransfer.setDragImage(P,-10,-10),setTimeout(()=>T.removeChild(P),0)}this.domNode.classList.add("dragging"),this.H=new l(z),d.CurrentDragAndDropData=new o(z),(M=(D=this.F).onDragStart)===null||M===void 0||M.call(D,this.H,k)}ib(b){var y;if(b.browserEvent.preventDefault(),this.K.dispose(),d.CurrentDragAndDropData&&d.CurrentDragAndDropData.getData()==="vscode-ui"||(this.nb(b.browserEvent),!b.browserEvent.dataTransfer))return!1;if(!this.H)if(d.CurrentDragAndDropData)this.H=d.CurrentDragAndDropData;else{if(!b.browserEvent.dataTransfer.types)return!1;this.H=new u}const k=this.F.onDragOver(this.H,b.element,b.index,b.browserEvent);if(this.G=typeof k=="boolean"?k:k.accept,!this.G)return this.I=void 0,this.J.dispose(),!1;b.browserEvent.dataTransfer.dropEffect=typeof k!="boolean"&&k.effect===0?"copy":"move";let D;if(typeof k!="boolean"&&k.feedback?D=k.feedback:typeof b.index>"u"?D=[-1]:D=[b.index],D=(0,S.distinct)(D).filter(M=>M>=-1&&M<this.length).sort((M,z)=>M-z),D=D[0]===-1?[-1]:D,h(this.I,D))return!0;if(this.I=D,this.J.dispose(),D[0]===-1)this.domNode.classList.add("drop-target"),this.o.classList.add("drop-target"),this.J=(0,i.toDisposable)(()=>{this.domNode.classList.remove("drop-target"),this.o.classList.remove("drop-target")});else{for(const M of D){const z=this.d[M];z.dropTarget=!0,(y=z.row)===null||y===void 0||y.domNode.classList.add("drop-target")}this.J=(0,i.toDisposable)(()=>{var M;for(const z of D){const R=this.d[z];R.dropTarget=!1,(M=R.row)===null||M===void 0||M.domNode.classList.remove("drop-target")}})}return!0}jb(b){var y,k;this.K.dispose(),this.K=(0,v.disposableTimeout)(()=>this.mb(),100),this.H&&((k=(y=this.F).onDragLeave)===null||k===void 0||k.call(y,this.H,b.element,b.index,b.browserEvent))}kb(b){if(!this.G)return;const y=this.H;this.pb(),this.mb(),this.domNode.classList.remove("dragging"),this.H=void 0,d.CurrentDragAndDropData=void 0,!(!y||!b.browserEvent.dataTransfer)&&(b.browserEvent.preventDefault(),y.update(b.browserEvent.dataTransfer),this.F.drop(y,b.element,b.index,b.browserEvent))}lb(b){var y,k;this.G=!1,this.pb(),this.mb(),this.domNode.classList.remove("dragging"),this.H=void 0,d.CurrentDragAndDropData=void 0,(k=(y=this.F).onDragEnd)===null||k===void 0||k.call(y,b)}mb(){this.I=void 0,this.J.dispose(),this.J=i.Disposable.None}nb(b){if(!this.w){const y=(0,N.getTopLeftOffset)(this.domNode).top;this.w=(0,N.animate)(this.ob.bind(this,y))}this.x.dispose(),this.x=(0,v.disposableTimeout)(()=>{this.w&&(this.w.dispose(),this.w=void 0)},1e3),this.y=b.pageY}ob(b){if(this.y===void 0)return;const y=this.y-b,k=this.renderHeight-35;y<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(y-35))):y>k&&(this.scrollTop+=Math.min(14,Math.floor(.3*(y-k))))}pb(){this.x.dispose(),this.w&&(this.w.dispose(),this.w=void 0)}qb(b){const y=this.q.getDomNode();let k=b;for(;k instanceof HTMLElement&&k!==this.o&&y.contains(k);){const D=k.getAttribute("data-index");if(D){const M=Number(D);if(!isNaN(M))return M}k=k.parentElement}}rb(b,y){return{start:this.g.indexAt(b),end:this.g.indexAfter(b+y-1)}}sb(b,y,k){const D=this.rb(b,y);let M,z;b===this.elementTop(D.start)?(M=D.start,z=0):D.end-D.start>1&&(M=D.start+1,z=this.elementTop(M)-b);let R=0;for(;;){const P=this.rb(b,y);let A=!1;for(let T=P.start;T<P.end;T++){const O=this.tb(T);O!==0&&this.g.splice(T,1,[this.d[T]]),R+=O,A=A||O!==0}if(!A){R!==0&&this.R();const T=t.Range.relativeComplement(D,P);for(const B of T)for(let W=B.start;W<B.end;W++)this.d[W].row&&this.Z(W);const O=t.Range.relativeComplement(P,D);for(const B of O)for(let W=B.start;W<B.end;W++){const j=W+1,F=j<this.d.length?this.d[j].row:null,U=F?F.domNode:null;this.W(W,U)}for(let B=P.start;B<P.end;B++)this.d[B].row&&this.Y(this.d[B],B);if(typeof M=="number"){const B=this.p.getFutureScrollPosition().scrollTop-b,W=this.elementTop(M)-z+B;this.setScrollTop(W,k)}this.M.fire(this.contentHeight);return}}}tb(b){var y,k,D;const M=this.d[b];if(this.P.getDynamicHeight){const A=this.P.getDynamicHeight(M.element);if(A!==null){const T=M.size;return M.size=A,M.lastDynamicHeightWidth=this.n,A-T}}if(!M.hasDynamicHeight||M.lastDynamicHeightWidth===this.n||!!this.P.hasDynamicHeight&&!this.P.hasDynamicHeight(M.element))return 0;const z=M.size;if(M.row)return M.row.domNode.style.height="",M.size=M.row.domNode.offsetHeight,M.lastDynamicHeightWidth=this.n,M.size-z;const{row:R}=this.h.alloc(M.templateId);R.domNode.style.height="",this.o.appendChild(R.domNode);const P=this.j.get(M.templateId);if(!P)throw new c.BugIndicatingError("Missing renderer for templateId: "+M.templateId);return P.renderElement(M.element,b,R.templateData,void 0),M.size=R.domNode.offsetHeight,(y=P.disposeElement)===null||y===void 0||y.call(P,M.element,b,R.templateData,void 0),(D=(k=this.P).setDynamicHeight)===null||D===void 0||D.call(k,M.element,M.size),M.lastDynamicHeightWidth=this.n,this.o.removeChild(R.domNode),this.h.release(R),M.size-z}ub(b){const y=b[b.length-1];if(!y)return null;const k=this.d[y.end];return!k||!k.row?null:k.row.domNode}getElementDomId(b){return`${this.domId}_${b}`}dispose(){var b;if(this.d){for(const y of this.d)if(y.row){const k=this.j.get(y.row.templateId);k&&((b=k.disposeElement)===null||b===void 0||b.call(k,y.element,-1,y.row.templateData,void 0),k.disposeTemplate(y.row.templateData))}this.d=[]}this.domNode&&this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),(0,i.dispose)(this.L)}}m.c=0,Ne([f.memoize],m.prototype,"onMouseClick",null),Ne([f.memoize],m.prototype,"onMouseDblClick",null),Ne([f.memoize],m.prototype,"onMouseMiddleClick",null),Ne([f.memoize],m.prototype,"onMouseDown",null),Ne([f.memoize],m.prototype,"onMouseOver",null),Ne([f.memoize],m.prototype,"onMouseOut",null),Ne([f.memoize],m.prototype,"onContextMenu",null),Ne([f.memoize],m.prototype,"onTouchStart",null),Ne([f.memoize],m.prototype,"onTap",null),e.ListView=m}),define(_[106],ee([1,0,7,75,43,56,52,341,17,11,36,99,6,63,2,128,16,18,340,208,244]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.List=e.unthemedListStyles=e.DefaultStyleController=e.MouseController=e.isSelectionRangeChangeEvent=e.isSelectionSingleChangeEvent=e.DefaultKeyboardNavigationDelegate=e.TypeNavigationMode=e.isButton=e.isMonacoEditor=e.isInputElement=void 0;class o{constructor(x){this.d=x,this.c=[]}get templateId(){return`template:${this.d.name}`}renderTemplate(x){return x}renderElement(x,G,te){const Z=this.c.findIndex(ae=>ae.templateData===te);if(Z>=0){const ae=this.c[Z];this.d.unrender(te),ae.index=G}else{const ae={index:G,templateData:te};this.c.push(ae)}this.d.renderIndex(G,te)}splice(x,G,te){const Z=[];for(const ae of this.c)ae.index<x?Z.push(ae):ae.index>=x+G&&Z.push({index:ae.index+te-G,templateData:ae.templateData});this.c=Z}renderIndexes(x){for(const{index:G,templateData:te}of this.c)x.indexOf(G)>-1&&this.d.renderIndex(G,te)}disposeTemplate(x){const G=this.c.findIndex(te=>te.templateData===x);G<0||this.c.splice(G,1)}}class u{get name(){return this.h}get renderer(){return new o(this)}constructor(x){this.h=x,this.c=0,this.d=[],this.f=[],this.g=new t.Emitter,this.onChange=this.g.event}splice(x,G,te){var Z;G=Math.max(0,Math.min(G,this.c-x));const ae=te.length-G,de=x+G,K=[...this.f.filter(ne=>ne<x),...te.map((ne,V)=>ne?V+x:-1).filter(ne=>ne!==-1),...this.f.filter(ne=>ne>=de).map(ne=>ne+ae)],Y=this.c+ae;if(this.f.length>0&&K.length===0&&Y>0){const ne=(Z=this.f.find(V=>V>=x))!==null&&Z!==void 0?Z:Y-1;K.push(Math.min(ne,Y-1))}this.renderer.splice(x,G,te.length),this.k(K,K),this.c=Y}renderIndex(x,G){G.classList.toggle(this.h,this.contains(x))}unrender(x){x.classList.remove(this.h)}set(x,G){return this.k(x,[...x].sort(Q),G)}k(x,G,te){const Z=this.d,ae=this.f;this.d=x,this.f=G;const de=F(ae,x);return this.renderer.renderIndexes(de),this.g.fire({indexes:x,browserEvent:te}),Z}get(){return this.d}contains(x){return(0,v.binarySearch)(this.f,x,Q)>=0}dispose(){(0,a.dispose)(this.g)}}Ne([i.memoize],u.prototype,"renderer",null);class h extends u{constructor(x){super("selected"),this.l=x}renderIndex(x,G){super.renderIndex(x,G),this.l&&(this.contains(x)?G.setAttribute("aria-selected","true"):G.setAttribute("aria-selected","false"))}}class w{constructor(x,G,te){this.c=x,this.d=G,this.f=te}splice(x,G,te){if(!this.f)return this.c.splice(x,G,te.map(()=>!1));const Z=this.c.get().map(de=>this.f.getId(this.d.element(de)).toString()),ae=te.map(de=>Z.indexOf(this.f.getId(de).toString())>-1);this.c.splice(x,G,ae)}}function m(J){return J.tagName==="INPUT"||J.tagName==="TEXTAREA"}e.isInputElement=m;function p(J){return J.classList.contains("monaco-editor")?!0:J.classList.contains("monaco-list")||!J.parentElement?!1:p(J.parentElement)}e.isMonacoEditor=p;function b(J){return J.tagName==="A"&&J.classList.contains("monaco-button")||J.tagName==="DIV"&&J.classList.contains("monaco-button-dropdown")?!0:J.classList.contains("monaco-list")||!J.parentElement?!1:b(J.parentElement)}e.isButton=b;class y{get f(){return this.c.add(t.Event.chain(this.c.add(new N.DomEmitter(this.h.domNode,"keydown")).event).filter(x=>!m(x.target)).map(x=>new E.StandardKeyboardEvent(x)))}constructor(x,G,te){this.g=x,this.h=G,this.c=new a.DisposableStore,this.d=new a.DisposableStore,this.f.filter(Z=>Z.keyCode===3).on(this.k,this,this.c),this.f.filter(Z=>Z.keyCode===16).on(this.l,this,this.c),this.f.filter(Z=>Z.keyCode===18).on(this.o,this,this.c),this.f.filter(Z=>Z.keyCode===11).on(this.p,this,this.c),this.f.filter(Z=>Z.keyCode===12).on(this.q,this,this.c),this.f.filter(Z=>Z.keyCode===9).on(this.t,this,this.c),te.multipleSelectionSupport!==!1&&this.f.filter(Z=>(c.isMacintosh?Z.metaKey:Z.ctrlKey)&&Z.keyCode===31).on(this.s,this,this.d)}updateOptions(x){x.multipleSelectionSupport!==void 0&&(this.d.clear(),x.multipleSelectionSupport&&this.f.filter(G=>(c.isMacintosh?G.metaKey:G.ctrlKey)&&G.keyCode===31).on(this.s,this,this.d))}k(x){x.preventDefault(),x.stopPropagation(),this.g.setSelection(this.g.getFocus(),x.browserEvent)}l(x){x.preventDefault(),x.stopPropagation(),this.g.focusPrevious(1,!1,x.browserEvent);const G=this.g.getFocus()[0];this.g.setAnchor(G),this.g.reveal(G),this.h.domNode.focus()}o(x){x.preventDefault(),x.stopPropagation(),this.g.focusNext(1,!1,x.browserEvent);const G=this.g.getFocus()[0];this.g.setAnchor(G),this.g.reveal(G),this.h.domNode.focus()}p(x){x.preventDefault(),x.stopPropagation(),this.g.focusPreviousPage(x.browserEvent);const G=this.g.getFocus()[0];this.g.setAnchor(G),this.g.reveal(G),this.h.domNode.focus()}q(x){x.preventDefault(),x.stopPropagation(),this.g.focusNextPage(x.browserEvent);const G=this.g.getFocus()[0];this.g.setAnchor(G),this.g.reveal(G),this.h.domNode.focus()}s(x){x.preventDefault(),x.stopPropagation(),this.g.setSelection((0,v.range)(this.g.length),x.browserEvent),this.g.setAnchor(void 0),this.h.domNode.focus()}t(x){this.g.getSelection().length&&(x.preventDefault(),x.stopPropagation(),this.g.setSelection([],x.browserEvent),this.g.setAnchor(void 0),this.h.domNode.focus())}dispose(){this.c.dispose(),this.d.dispose()}}Ne([i.memoize],y.prototype,"f",null);var k;(function(J){J[J.Automatic=0]="Automatic",J[J.Trigger=1]="Trigger"})(k=e.TypeNavigationMode||(e.TypeNavigationMode={}));var D;(function(J){J[J.Idle=0]="Idle",J[J.Typing=1]="Typing"})(D||(D={})),e.DefaultKeyboardNavigationDelegate=new class{mightProducePrintableCharacter(J){return J.ctrlKey||J.metaKey||J.altKey?!1:J.keyCode>=31&&J.keyCode<=56||J.keyCode>=21&&J.keyCode<=30||J.keyCode>=93&&J.keyCode<=102||J.keyCode>=80&&J.keyCode<=90}};class M{constructor(x,G,te,Z,ae){this.o=x,this.p=G,this.q=te,this.s=Z,this.t=ae,this.c=!1,this.d=D.Idle,this.f=k.Automatic,this.g=!1,this.h=-1,this.k=new a.DisposableStore,this.l=new a.DisposableStore,this.updateOptions(x.options)}updateOptions(x){var G,te;!((G=x.typeNavigationEnabled)!==null&&G!==void 0)||G?this.u():this.v(),this.f=(te=x.typeNavigationMode)!==null&&te!==void 0?te:k.Automatic}u(){if(this.c)return;let x=!1;const G=this.k.add(t.Event.chain(this.k.add(new N.DomEmitter(this.p.domNode,"keydown")).event)).filter(ae=>!m(ae.target)).filter(()=>this.f===k.Automatic||this.g).map(ae=>new E.StandardKeyboardEvent(ae)).filter(ae=>x||this.s(ae)).filter(ae=>this.t.mightProducePrintableCharacter(ae)).forEach(ae=>C.EventHelper.stop(ae,!0)).map(ae=>ae.browserEvent.key).event,te=t.Event.debounce(G,()=>null,800,void 0,void 0,void 0,this.k);t.Event.reduce(t.Event.any(G,te),(ae,de)=>de===null?null:(ae||"")+de,void 0,this.k)(this.z,this,this.k),te(this.w,this,this.k),G(()=>x=!0,void 0,this.k),te(()=>x=!1,void 0,this.k),this.c=!0,this.g=!1}v(){!this.c||(this.k.clear(),this.c=!1,this.g=!1)}w(){var x;const G=this.o.getFocus();if(G.length>0&&G[0]===this.h){const te=(x=this.o.options.accessibilityProvider)===null||x===void 0?void 0:x.getAriaLabel(this.o.element(G[0]));te&&(0,L.alert)(te)}this.h=-1}z(x){if(!x){this.d=D.Idle,this.g=!1;return}const G=this.o.getFocus(),te=G.length>0?G[0]:0,Z=this.d===D.Idle?1:0;this.d=D.Typing;for(let ae=0;ae<this.o.length;ae++){const de=(te+ae+Z)%this.o.length,K=this.q.getKeyboardNavigationLabel(this.p.element(de)),Y=K&&K.toString();if(typeof Y>"u"||(0,n.matchesPrefix)(x,Y)){this.h=te,this.o.setFocus([de]),this.o.reveal(de);return}}}dispose(){this.v(),this.k.dispose(),this.l.dispose()}}class z{constructor(x,G){this.d=x,this.f=G,this.c=new a.DisposableStore,this.c.add(t.Event.chain(this.c.add(new N.DomEmitter(G.domNode,"keydown")).event)).filter(Z=>!m(Z.target)).map(Z=>new E.StandardKeyboardEvent(Z)).filter(Z=>Z.keyCode===2&&!Z.ctrlKey&&!Z.metaKey&&!Z.shiftKey&&!Z.altKey).on(this.g,this,this.c)}g(x){if(x.target!==this.f.domNode)return;const G=this.d.getFocus();if(G.length===0)return;const te=this.f.domElement(G[0]);if(!te)return;const Z=te.querySelector("[tabIndex]");if(!Z||!(Z instanceof HTMLElement)||Z.tabIndex===-1)return;const ae=window.getComputedStyle(Z);ae.visibility==="hidden"||ae.display==="none"||(x.preventDefault(),x.stopPropagation(),Z.focus())}dispose(){this.c.dispose()}}function R(J){return c.isMacintosh?J.browserEvent.metaKey:J.browserEvent.ctrlKey}e.isSelectionSingleChangeEvent=R;function P(J){return J.browserEvent.shiftKey}e.isSelectionRangeChangeEvent=P;function A(J){return J instanceof MouseEvent&&J.button===2}const T={isSelectionSingleChangeEvent:R,isSelectionRangeChangeEvent:P};class O{constructor(x){this.k=x,this.f=new a.DisposableStore,this.g=new t.Emitter,this.onPointer=this.g.event,x.options.multipleSelectionSupport!==!1&&(this.c=this.k.options.multipleSelectionController||T),this.d=typeof x.options.mouseSupport>"u"||!!x.options.mouseSupport,this.d&&(x.onMouseDown(this.s,this,this.f),x.onContextMenu(this.t,this,this.f),x.onMouseDblClick(this.v,this,this.f),x.onTouchStart(this.s,this,this.f),this.f.add(I.Gesture.addTarget(x.getHTMLElement()))),t.Event.any(x.onMouseClick,x.onMouseMiddleClick,x.onTap)(this.u,this,this.f)}updateOptions(x){x.multipleSelectionSupport!==void 0&&(this.c=void 0,x.multipleSelectionSupport&&(this.c=this.k.options.multipleSelectionController||T))}o(x){return this.c?this.c.isSelectionSingleChangeEvent(x):!1}p(x){return this.c?this.c.isSelectionRangeChangeEvent(x):!1}q(x){return this.o(x)||this.p(x)}s(x){p(x.browserEvent.target)||document.activeElement!==x.browserEvent.target&&this.k.domFocus()}t(x){if(m(x.browserEvent.target)||p(x.browserEvent.target))return;const G=typeof x.index>"u"?[]:[x.index];this.k.setFocus(G,x.browserEvent)}u(x){if(!this.d||m(x.browserEvent.target)||p(x.browserEvent.target))return;const G=x.index;if(typeof G>"u"){this.k.setFocus([],x.browserEvent),this.k.setSelection([],x.browserEvent),this.k.setAnchor(void 0);return}if(this.p(x))return this.w(x);if(this.q(x))return this.w(x);this.k.setFocus([G],x.browserEvent),this.k.setAnchor(G),A(x.browserEvent)||this.k.setSelection([G],x.browserEvent),this.g.fire(x)}v(x){if(m(x.browserEvent.target)||p(x.browserEvent.target)||this.q(x))return;const G=this.k.getFocus();this.k.setSelection(G,x.browserEvent)}w(x){const G=x.index;let te=this.k.getAnchor();if(this.p(x)){if(typeof te>"u"){const V=this.k.getFocus()[0];te=V??G,this.k.setAnchor(te)}const Z=Math.min(te,G),ae=Math.max(te,G),de=(0,v.range)(Z,ae+1),K=this.k.getSelection(),Y=j(F(K,[te]),te);if(Y.length===0)return;const ne=F(de,U(K,Y));this.k.setSelection(ne,x.browserEvent),this.k.setFocus([G],x.browserEvent)}else if(this.o(x)){const Z=this.k.getSelection(),ae=Z.filter(de=>de!==G);this.k.setFocus([G]),this.k.setAnchor(G),Z.length===ae.length?this.k.setSelection([...ae,G],x.browserEvent):this.k.setSelection(ae,x.browserEvent)}}dispose(){this.f.dispose()}}e.MouseController=O;class B{constructor(x,G){this.c=x,this.d=G}style(x){var G,te;const Z=this.d&&`.${this.d}`,ae=[];x.listBackground&&ae.push(`.monaco-list${Z} .monaco-list-rows { background: ${x.listBackground}; }`),x.listFocusBackground&&(ae.push(`.monaco-list${Z}:focus .monaco-list-row.focused { background-color: ${x.listFocusBackground}; }`),ae.push(`.monaco-list${Z}:focus .monaco-list-row.focused:hover { background-color: ${x.listFocusBackground}; }`)),x.listFocusForeground&&ae.push(`.monaco-list${Z}:focus .monaco-list-row.focused { color: ${x.listFocusForeground}; }`),x.listActiveSelectionBackground&&(ae.push(`.monaco-list${Z}:focus .monaco-list-row.selected { background-color: ${x.listActiveSelectionBackground}; }`),ae.push(`.monaco-list${Z}:focus .monaco-list-row.selected:hover { background-color: ${x.listActiveSelectionBackground}; }`)),x.listActiveSelectionForeground&&ae.push(`.monaco-list${Z}:focus .monaco-list-row.selected { color: ${x.listActiveSelectionForeground}; }`),x.listActiveSelectionIconForeground&&ae.push(`.monaco-list${Z}:focus .monaco-list-row.selected .codicon { color: ${x.listActiveSelectionIconForeground}; }`),x.listFocusAndSelectionBackground&&ae.push(`
|
||
.monaco-drag-image,
|
||
.monaco-list${Z}:focus .monaco-list-row.selected.focused { background-color: ${x.listFocusAndSelectionBackground}; }
|
||
`),x.listFocusAndSelectionForeground&&ae.push(`
|
||
.monaco-drag-image,
|
||
.monaco-list${Z}:focus .monaco-list-row.selected.focused { color: ${x.listFocusAndSelectionForeground}; }
|
||
`),x.listInactiveFocusForeground&&(ae.push(`.monaco-list${Z} .monaco-list-row.focused { color: ${x.listInactiveFocusForeground}; }`),ae.push(`.monaco-list${Z} .monaco-list-row.focused:hover { color: ${x.listInactiveFocusForeground}; }`)),x.listInactiveSelectionIconForeground&&ae.push(`.monaco-list${Z} .monaco-list-row.focused .codicon { color: ${x.listInactiveSelectionIconForeground}; }`),x.listInactiveFocusBackground&&(ae.push(`.monaco-list${Z} .monaco-list-row.focused { background-color: ${x.listInactiveFocusBackground}; }`),ae.push(`.monaco-list${Z} .monaco-list-row.focused:hover { background-color: ${x.listInactiveFocusBackground}; }`)),x.listInactiveSelectionBackground&&(ae.push(`.monaco-list${Z} .monaco-list-row.selected { background-color: ${x.listInactiveSelectionBackground}; }`),ae.push(`.monaco-list${Z} .monaco-list-row.selected:hover { background-color: ${x.listInactiveSelectionBackground}; }`)),x.listInactiveSelectionForeground&&ae.push(`.monaco-list${Z} .monaco-list-row.selected { color: ${x.listInactiveSelectionForeground}; }`),x.listHoverBackground&&ae.push(`.monaco-list${Z}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: ${x.listHoverBackground}; }`),x.listHoverForeground&&ae.push(`.monaco-list${Z}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { color: ${x.listHoverForeground}; }`);const de=(0,C.asCssValueWithDefault)(x.listFocusAndSelectionOutline,(0,C.asCssValueWithDefault)(x.listSelectionOutline,(G=x.listFocusOutline)!==null&&G!==void 0?G:""));de&&ae.push(`.monaco-list${Z}:focus .monaco-list-row.focused.selected { outline: 1px solid ${de}; outline-offset: -1px;}`),x.listFocusOutline&&ae.push(`
|
||
.monaco-drag-image,
|
||
.monaco-list${Z}:focus .monaco-list-row.focused { outline: 1px solid ${x.listFocusOutline}; outline-offset: -1px; }
|
||
.monaco-workbench.context-menu-visible .monaco-list${Z}.last-focused .monaco-list-row.focused { outline: 1px solid ${x.listFocusOutline}; outline-offset: -1px; }
|
||
`);const K=(0,C.asCssValueWithDefault)(x.listSelectionOutline,(te=x.listInactiveFocusOutline)!==null&&te!==void 0?te:"");K&&ae.push(`.monaco-list${Z} .monaco-list-row.focused.selected { outline: 1px dotted ${K}; outline-offset: -1px; }`),x.listSelectionOutline&&ae.push(`.monaco-list${Z} .monaco-list-row.selected { outline: 1px dotted ${x.listSelectionOutline}; outline-offset: -1px; }`),x.listInactiveFocusOutline&&ae.push(`.monaco-list${Z} .monaco-list-row.focused { outline: 1px dotted ${x.listInactiveFocusOutline}; outline-offset: -1px; }`),x.listHoverOutline&&ae.push(`.monaco-list${Z} .monaco-list-row:hover { outline: 1px dashed ${x.listHoverOutline}; outline-offset: -1px; }`),x.listDropBackground&&ae.push(`
|
||
.monaco-list${Z}.drop-target,
|
||
.monaco-list${Z} .monaco-list-rows.drop-target,
|
||
.monaco-list${Z} .monaco-list-row.drop-target { background-color: ${x.listDropBackground} !important; color: inherit !important; }
|
||
`),x.tableColumnsBorder&&ae.push(`
|
||
.monaco-table > .monaco-split-view2,
|
||
.monaco-table > .monaco-split-view2 .monaco-sash.vertical::before,
|
||
.monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2,
|
||
.monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2 .monaco-sash.vertical::before {
|
||
border-color: ${x.tableColumnsBorder};
|
||
}
|
||
|
||
.monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2,
|
||
.monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2 .monaco-sash.vertical::before {
|
||
border-color: transparent;
|
||
}
|
||
`),x.tableOddRowsBackgroundColor&&ae.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: ${x.tableOddRowsBackgroundColor};
|
||
}
|
||
`),this.c.textContent=ae.join(`
|
||
`)}}e.DefaultStyleController=B,e.unthemedListStyles={listFocusBackground:"#7FB0D0",listActiveSelectionBackground:"#0E639C",listActiveSelectionForeground:"#FFFFFF",listActiveSelectionIconForeground:"#FFFFFF",listFocusAndSelectionOutline:"#90C2F9",listFocusAndSelectionBackground:"#094771",listFocusAndSelectionForeground:"#FFFFFF",listInactiveSelectionBackground:"#3F3F46",listInactiveSelectionIconForeground:"#FFFFFF",listHoverBackground:"#2A2D2E",listDropBackground:"#383B3D",treeIndentGuidesStroke:"#a9a9a9",treeInactiveIndentGuidesStroke:g.Color.fromHex("#a9a9a9").transparent(.4).toString(),tableColumnsBorder:g.Color.fromHex("#cccccc").transparent(.2).toString(),tableOddRowsBackgroundColor:g.Color.fromHex("#cccccc").transparent(.04).toString(),listBackground:void 0,listFocusForeground:void 0,listInactiveSelectionForeground:void 0,listInactiveFocusForeground:void 0,listInactiveFocusBackground:void 0,listHoverForeground:void 0,listFocusOutline:void 0,listInactiveFocusOutline:void 0,listSelectionOutline:void 0,listHoverOutline:void 0};const W={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){}}};function j(J,x){const G=J.indexOf(x);if(G===-1)return[];const te=[];let Z=G-1;for(;Z>=0&&J[Z]===x-(G-Z);)te.push(J[Z--]);for(te.reverse(),Z=G;Z<J.length&&J[Z]===x+(Z-G);)te.push(J[Z++]);return te}function F(J,x){const G=[];let te=0,Z=0;for(;te<J.length||Z<x.length;)if(te>=J.length)G.push(x[Z++]);else if(Z>=x.length)G.push(J[te++]);else if(J[te]===x[Z]){G.push(J[te]),te++,Z++;continue}else J[te]<x[Z]?G.push(J[te++]):G.push(x[Z++]);return G}function U(J,x){const G=[];let te=0,Z=0;for(;te<J.length||Z<x.length;)if(te>=J.length)G.push(x[Z++]);else if(Z>=x.length)G.push(J[te++]);else if(J[te]===x[Z]){te++,Z++;continue}else J[te]<x[Z]?G.push(J[te++]):Z++;return G}const Q=(J,x)=>J-x;class se{constructor(x,G){this.c=x,this.d=G}get templateId(){return this.c}renderTemplate(x){return this.d.map(G=>G.renderTemplate(x))}renderElement(x,G,te,Z){let ae=0;for(const de of this.d)de.renderElement(x,G,te[ae++],Z)}disposeElement(x,G,te,Z){var ae;let de=0;for(const K of this.d)(ae=K.disposeElement)===null||ae===void 0||ae.call(K,x,G,te[de],Z),de+=1}disposeTemplate(x){let G=0;for(const te of this.d)te.disposeTemplate(x[G++])}}class he{constructor(x){this.c=x,this.templateId="a18n"}renderTemplate(x){return x}renderElement(x,G,te){const Z=this.c.getAriaLabel(x);Z?te.setAttribute("aria-label",Z):te.removeAttribute("aria-label");const ae=this.c.getAriaLevel&&this.c.getAriaLevel(x);typeof ae=="number"?te.setAttribute("aria-level",`${ae}`):te.removeAttribute("aria-level")}disposeTemplate(x){}}class ie{constructor(x,G){this.c=x,this.d=G}getDragElements(x){const G=this.c.getSelectedElements();return G.indexOf(x)>-1?G:[x]}getDragURI(x){return this.d.getDragURI(x)}getDragLabel(x,G){if(this.d.getDragLabel)return this.d.getDragLabel(x,G)}onDragStart(x,G){var te,Z;(Z=(te=this.d).onDragStart)===null||Z===void 0||Z.call(te,x,G)}onDragOver(x,G,te,Z){return this.d.onDragOver(x,G,te,Z)}onDragLeave(x,G,te,Z){var ae,de;(de=(ae=this.d).onDragLeave)===null||de===void 0||de.call(ae,x,G,te,Z)}onDragEnd(x){var G,te;(te=(G=this.d).onDragEnd)===null||te===void 0||te.call(G,x)}drop(x,G,te,Z){this.d.drop(x,G,te,Z)}}class ue{get onDidChangeFocus(){return t.Event.map(this.g.wrapEvent(this.c.onChange),x=>this.G(x),this.w)}get onDidChangeSelection(){return t.Event.map(this.g.wrapEvent(this.d.onChange),x=>this.G(x),this.w)}get domId(){return this.k.domId}get onMouseClick(){return this.k.onMouseClick}get onMouseDblClick(){return this.k.onMouseDblClick}get onMouseMiddleClick(){return this.k.onMouseMiddleClick}get onPointer(){return this.u.onPointer}get onMouseDown(){return this.k.onMouseDown}get onMouseOver(){return this.k.onMouseOver}get onMouseOut(){return this.k.onMouseOut}get onTouchStart(){return this.k.onTouchStart}get onTap(){return this.k.onTap}get onContextMenu(){let x=!1;const G=this.w.add(t.Event.chain(this.w.add(new N.DomEmitter(this.k.domNode,"keydown")).event)).map(ae=>new E.StandardKeyboardEvent(ae)).filter(ae=>x=ae.keyCode===58||ae.shiftKey&&ae.keyCode===68).map(ae=>C.EventHelper.stop(ae,!0)).filter(()=>!1).event,te=this.w.add(t.Event.chain(this.w.add(new N.DomEmitter(this.k.domNode,"keyup")).event)).forEach(()=>x=!1).map(ae=>new E.StandardKeyboardEvent(ae)).filter(ae=>ae.keyCode===58||ae.shiftKey&&ae.keyCode===68).map(ae=>C.EventHelper.stop(ae,!0)).map(({browserEvent:ae})=>{const de=this.getFocus(),K=de.length?de[0]:void 0,Y=typeof K<"u"?this.k.element(K):void 0,ne=typeof K<"u"?this.k.domElement(K):this.k.domNode;return{index:K,element:Y,anchor:ne,browserEvent:ae}}).event,Z=this.w.add(t.Event.chain(this.k.onContextMenu)).filter(ae=>!x).map(({element:ae,index:de,browserEvent:K})=>({element:ae,index:de,anchor:{x:K.pageX+1,y:K.pageY},browserEvent:K})).event;return t.Event.any(G,te,Z)}get onKeyDown(){return this.w.add(new N.DomEmitter(this.k.domNode,"keydown")).event}get onDidFocus(){return t.Event.signal(this.w.add(new N.DomEmitter(this.k.domNode,"focus",!0)).event)}constructor(x,G,te,Z,ae=W){var de,K,Y,ne;this.A=x,this.B=ae,this.c=new u("focused"),this.f=new u("anchor"),this.g=new t.EventBufferer,this.v="",this.w=new a.DisposableStore,this.z=new t.Emitter,this.onDidDispose=this.z.event;const V=this.B.accessibilityProvider&&this.B.accessibilityProvider.getWidgetRole?(de=this.B.accessibilityProvider)===null||de===void 0?void 0:de.getWidgetRole():"list";this.d=new h(V!=="listbox");const H=[this.c.renderer,this.d.renderer];this.s=ae.accessibilityProvider,this.s&&(H.push(new he(this.s)),(Y=(K=this.s).onDidChangeActiveDescendant)===null||Y===void 0||Y.call(K,this.I,this,this.w)),Z=Z.map(oe=>new se(oe.templateId,[...H,oe]));const $=Object.assign(Object.assign({},ae),{dnd:ae.dnd&&new ie(this,ae.dnd)});if(this.k=this.C(G,te,Z,$),this.k.domNode.setAttribute("role",V),ae.styleController)this.p=ae.styleController(this.k.domId);else{const oe=(0,C.createStyleSheet)(this.k.domNode);this.p=new B(oe,this.k.domId)}if(this.o=new S.CombinedSpliceable([new w(this.c,this.k,ae.identityProvider),new w(this.d,this.k,ae.identityProvider),new w(this.f,this.k,ae.identityProvider),this.k]),this.w.add(this.c),this.w.add(this.d),this.w.add(this.f),this.w.add(this.k),this.w.add(this.z),this.w.add(new z(this,this.k)),(typeof ae.keyboardSupport!="boolean"||ae.keyboardSupport)&&(this.t=new y(this,this.k,ae),this.w.add(this.t)),ae.keyboardNavigationLabelProvider){const oe=ae.keyboardNavigationDelegate||e.DefaultKeyboardNavigationDelegate;this.q=new M(this,this.k,ae.keyboardNavigationLabelProvider,(ne=ae.keyboardNavigationEventFilter)!==null&&ne!==void 0?ne:()=>!0,oe),this.w.add(this.q)}this.u=this.D(ae),this.w.add(this.u),this.onDidChangeFocus(this.H,this,this.w),this.onDidChangeSelection(this.J,this,this.w),this.s&&(this.ariaLabel=this.s.getWidgetAriaLabel()),this.B.multipleSelectionSupport!==!1&&this.k.domNode.setAttribute("aria-multiselectable","true")}C(x,G,te,Z){return new l.ListView(x,G,te,Z)}D(x){return new O(this)}updateOptions(x={}){var G,te;this.B=Object.assign(Object.assign({},this.B),x),(G=this.q)===null||G===void 0||G.updateOptions(this.B),this.B.multipleSelectionController!==void 0&&(this.B.multipleSelectionSupport?this.k.domNode.setAttribute("aria-multiselectable","true"):this.k.domNode.removeAttribute("aria-multiselectable")),this.u.updateOptions(x),(te=this.t)===null||te===void 0||te.updateOptions(x),this.k.updateOptions(x)}get options(){return this.B}splice(x,G,te=[]){if(x<0||x>this.k.length)throw new s.ListError(this.A,`Invalid start index: ${x}`);if(G<0)throw new s.ListError(this.A,`Invalid delete count: ${G}`);G===0&&te.length===0||this.g.bufferEvents(()=>this.o.splice(x,G,te))}rerender(){this.k.rerender()}element(x){return this.k.element(x)}get length(){return this.k.length}get contentHeight(){return this.k.contentHeight}get scrollTop(){return this.k.getScrollTop()}set scrollTop(x){this.k.setScrollTop(x)}get scrollHeight(){return this.k.scrollHeight}get firstVisibleIndex(){return this.k.firstVisibleIndex}get ariaLabel(){return this.v}set ariaLabel(x){this.v=x,this.k.domNode.setAttribute("aria-label",x)}domFocus(){this.k.domNode.focus({preventScroll:!0})}layout(x,G){this.k.layout(x,G)}setSelection(x,G){for(const te of x)if(te<0||te>=this.length)throw new s.ListError(this.A,`Invalid index ${te}`);this.d.set(x,G)}getSelection(){return this.d.get()}getSelectedElements(){return this.getSelection().map(x=>this.k.element(x))}setAnchor(x){if(typeof x>"u"){this.f.set([]);return}if(x<0||x>=this.length)throw new s.ListError(this.A,`Invalid index ${x}`);this.f.set([x])}getAnchor(){return(0,v.firstOrDefault)(this.f.get(),void 0)}getAnchorElement(){const x=this.getAnchor();return typeof x>"u"?void 0:this.element(x)}setFocus(x,G){for(const te of x)if(te<0||te>=this.length)throw new s.ListError(this.A,`Invalid index ${te}`);this.c.set(x,G)}focusNext(x=1,G=!1,te,Z){if(this.length===0)return;const ae=this.c.get(),de=this.E(ae.length>0?ae[0]+x:0,G,Z);de>-1&&this.setFocus([de],te)}focusPrevious(x=1,G=!1,te,Z){if(this.length===0)return;const ae=this.c.get(),de=this.F(ae.length>0?ae[0]-x:0,G,Z);de>-1&&this.setFocus([de],te)}focusNextPage(x,G){return ye(this,void 0,void 0,function*(){let te=this.k.indexAt(this.k.getScrollTop()+this.k.renderHeight);te=te===0?0:te-1;const Z=this.getFocus()[0];if(Z!==te&&(Z===void 0||te>Z)){const ae=this.F(te,!1,G);ae>-1&&Z!==ae?this.setFocus([ae],x):this.setFocus([te],x)}else{const ae=this.k.getScrollTop();let de=ae+this.k.renderHeight;te>Z&&(de-=this.k.elementHeight(te)),this.k.setScrollTop(de),this.k.getScrollTop()!==ae&&(this.setFocus([]),yield(0,f.timeout)(0),yield this.focusNextPage(x,G))}})}focusPreviousPage(x,G){return ye(this,void 0,void 0,function*(){let te;const Z=this.k.getScrollTop();Z===0?te=this.k.indexAt(Z):te=this.k.indexAfter(Z-1);const ae=this.getFocus()[0];if(ae!==te&&(ae===void 0||ae>=te)){const de=this.E(te,!1,G);de>-1&&ae!==de?this.setFocus([de],x):this.setFocus([te],x)}else{const de=Z;this.k.setScrollTop(Z-this.k.renderHeight),this.k.getScrollTop()!==de&&(this.setFocus([]),yield(0,f.timeout)(0),yield this.focusPreviousPage(x,G))}})}focusLast(x,G){if(this.length===0)return;const te=this.F(this.length-1,!1,G);te>-1&&this.setFocus([te],x)}focusFirst(x,G){this.focusNth(0,x,G)}focusNth(x,G,te){if(this.length===0)return;const Z=this.E(x,!1,te);Z>-1&&this.setFocus([Z],G)}E(x,G=!1,te){for(let Z=0;Z<this.length;Z++){if(x>=this.length&&!G)return-1;if(x=x%this.length,!te||te(this.element(x)))return x;x++}return-1}F(x,G=!1,te){for(let Z=0;Z<this.length;Z++){if(x<0&&!G)return-1;if(x=(this.length+x%this.length)%this.length,!te||te(this.element(x)))return x;x--}return-1}getFocus(){return this.c.get()}getFocusedElements(){return this.getFocus().map(x=>this.k.element(x))}reveal(x,G){if(x<0||x>=this.length)throw new s.ListError(this.A,`Invalid index ${x}`);const te=this.k.getScrollTop(),Z=this.k.elementTop(x),ae=this.k.elementHeight(x);if((0,d.isNumber)(G)){const de=ae-this.k.renderHeight;this.k.setScrollTop(de*(0,r.clamp)(G,0,1)+Z)}else{const de=Z+ae,K=te+this.k.renderHeight;Z<te&&de>=K||(Z<te||de>=K&&ae>=this.k.renderHeight?this.k.setScrollTop(Z):de>=K&&this.k.setScrollTop(de-this.k.renderHeight))}}getHTMLElement(){return this.k.domNode}getElementID(x){return this.k.getElementDomId(x)}style(x){this.p.style(x)}G({indexes:x,browserEvent:G}){return{indexes:x,elements:x.map(te=>this.k.element(te)),browserEvent:G}}H(){const x=this.c.get();this.k.domNode.classList.toggle("element-focused",x.length>0),this.I()}I(){var x;const G=this.c.get();if(G.length>0){let te;!((x=this.s)===null||x===void 0)&&x.getActiveDescendantId&&(te=this.s.getActiveDescendantId(this.k.element(G[0]))),this.k.domNode.setAttribute("aria-activedescendant",te||this.k.getElementDomId(G[0]))}else this.k.domNode.removeAttribute("aria-activedescendant")}J(){const x=this.d.get();this.k.domNode.classList.toggle("selection-none",x.length===0),this.k.domNode.classList.toggle("selection-single",x.length===1),this.k.domNode.classList.toggle("selection-multiple",x.length>1)}dispose(){this.z.fire(),this.w.dispose(),this.z.dispose()}}Ne([i.memoize],ue.prototype,"onDidChangeFocus",null),Ne([i.memoize],ue.prototype,"onDidChangeSelection",null),Ne([i.memoize],ue.prototype,"onContextMenu",null),Ne([i.memoize],ue.prototype,"onKeyDown",null),Ne([i.memoize],ue.prototype,"onDidFocus",null),e.List=ue}),define(_[531],ee([1,0,17,20,6,2,106,244]),function(q,e,C,N,E,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PagedList=void 0;class S{get templateId(){return this.a.templateId}constructor(t,n){this.a=t,this.b=n}renderTemplate(t){return{data:this.a.renderTemplate(t),disposable:I.Disposable.None}}renderElement(t,n,a,r){var c;if((c=a.disposable)===null||c===void 0||c.dispose(),!a.data)return;const d=this.b();if(d.isResolved(t))return this.a.renderElement(d.get(t),t,a.data,r);const s=new N.CancellationTokenSource,l=d.resolve(t,s.token);a.disposable={dispose:()=>s.cancel()},this.a.renderPlaceholder(t,a.data),l.then(o=>this.a.renderElement(o,t,a.data,r))}disposeTemplate(t){t.disposable&&(t.disposable.dispose(),t.disposable=void 0),t.data&&(this.a.disposeTemplate(t.data),t.data=void 0)}}class v{constructor(t,n){this.a=t,this.b=n}getWidgetAriaLabel(){return this.b.getWidgetAriaLabel()}getAriaLabel(t){const n=this.a();return n.isResolved(t)?this.b.getAriaLabel(n.get(t)):null}}function f(i,t){return Object.assign(Object.assign({},t),{accessibilityProvider:t.accessibilityProvider&&new v(i,t.accessibilityProvider)})}class g{constructor(t,n,a,r,c={}){const d=()=>this.model,s=r.map(l=>new S(l,d));this.a=new L.List(t,n,a,s,f(d,c))}updateOptions(t){this.a.updateOptions(t)}getHTMLElement(){return this.a.getHTMLElement()}get onDidFocus(){return this.a.onDidFocus}get onDidDispose(){return this.a.onDidDispose}get onMouseDblClick(){return E.Event.map(this.a.onMouseDblClick,({element:t,index:n,browserEvent:a})=>({element:t===void 0?void 0:this.b.get(t),index:n,browserEvent:a}))}get onPointer(){return E.Event.map(this.a.onPointer,({element:t,index:n,browserEvent:a})=>({element:t===void 0?void 0:this.b.get(t),index:n,browserEvent:a}))}get onDidChangeSelection(){return E.Event.map(this.a.onDidChangeSelection,({elements:t,indexes:n,browserEvent:a})=>({elements:t.map(r=>this.b.get(r)),indexes:n,browserEvent:a}))}get model(){return this.b}set model(t){this.b=t,this.a.splice(0,this.a.length,(0,C.range)(t.length))}getFocus(){return this.a.getFocus()}getSelection(){return this.a.getSelection()}getSelectedElements(){return this.getSelection().map(t=>this.model.get(t))}style(t){this.a.style(t)}dispose(){this.a.dispose()}}e.PagedList=g}),define(_[279],ee([1,0,7,75,138,76,17,36,6,2,128,167,18,367]),function(q,e,C,N,E,I,L,S,v,f,g,i,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SplitView=e.Sizing=void 0;const n={separatorBorder:S.Color.transparent};class a{set size(u){this.a=u}get size(){return this.a}get visible(){return typeof this.b>"u"}setVisible(u,h){var w,m;u!==this.visible&&(u?(this.size=(0,g.clamp)(this.b,this.viewMinimumSize,this.viewMaximumSize),this.b=void 0):(this.b=typeof h=="number"?h:this.size,this.size=0),this.c.classList.toggle("visible",u),(m=(w=this.d).setVisible)===null||m===void 0||m.call(w,u))}get minimumSize(){return this.visible?this.d.minimumSize:0}get viewMinimumSize(){return this.d.minimumSize}get maximumSize(){return this.visible?this.d.maximumSize:0}get viewMaximumSize(){return this.d.maximumSize}get priority(){return this.d.priority}get proportionalLayout(){var u;return(u=this.d.proportionalLayout)!==null&&u!==void 0?u:!0}get snap(){return!!this.d.snap}set enabled(u){this.c.style.pointerEvents=u?"":"none"}constructor(u,h,w,m){this.c=u,this.d=h,this.f=m,this.b=void 0,typeof w=="number"?(this.a=w,this.b=void 0,u.classList.add("visible")):(this.a=0,this.b=w.cachedVisibleSize)}layout(u,h){this.layoutContainer(u),this.d.layout(this.size,u,h)}dispose(){return this.f.dispose(),this.d}}class r extends a{layoutContainer(u){this.c.style.top=`${u}px`,this.c.style.height=`${this.size}px`}}class c extends a{layoutContainer(u){this.c.style.left=`${u}px`,this.c.style.width=`${this.size}px`}}var d;(function(o){o[o.Idle=0]="Idle",o[o.Busy=1]="Busy"})(d||(d={}));var s;(function(o){o.Distribute={type:"distribute"};function u(w){return{type:"split",index:w}}o.Split=u;function h(w){return{type:"invisible",cachedVisibleSize:w}}o.Invisible=h})(s=e.Sizing||(e.Sizing={}));class l extends f.Disposable{get orthogonalStartSash(){return this.z}get orthogonalEndSash(){return this.B}get startSnappingEnabled(){return this.C}get endSnappingEnabled(){return this.D}set orthogonalStartSash(u){for(const h of this.sashItems)h.sash.orthogonalStartSash=u;this.z=u}set orthogonalEndSash(u){for(const h of this.sashItems)h.sash.orthogonalEndSash=u;this.B=u}set startSnappingEnabled(u){this.C!==u&&(this.C=u,this.R())}set endSnappingEnabled(u){this.D!==u&&(this.D=u,this.R())}constructor(u,h={}){var w,m,p,b,y;super(),this.h=0,this.k=0,this.l=void 0,this.m=[],this.sashItems=[],this.p=d.Idle,this.w=this.q(new v.Emitter),this.y=this.q(new v.Emitter),this.C=!0,this.D=!0,this.onDidSashChange=this.w.event,this.onDidSashReset=this.y.event,this.orientation=(w=h.orientation)!==null&&w!==void 0?w:0,this.t=(m=h.inverseAltBehavior)!==null&&m!==void 0?m:!1,this.u=(p=h.proportionalLayout)!==null&&p!==void 0?p:!0,this.v=h.getSashOrthogonalSize,this.el=document.createElement("div"),this.el.classList.add("monaco-split-view2"),this.el.classList.add(this.orientation===0?"vertical":"horizontal"),u.appendChild(this.el),this.a=(0,C.append)(this.el,(0,C.$)(".sash-container")),this.b=(0,C.$)(".split-view-container"),this.c=new i.Scrollable({forceIntegerValues:!0,smoothScrollDuration:125,scheduleAtNextAnimationFrame:C.scheduleAtNextAnimationFrame}),this.g=this.q(new I.SmoothScrollableElement(this.b,{vertical:this.orientation===0?(b=h.scrollbarVisibility)!==null&&b!==void 0?b:1:2,horizontal:this.orientation===1?(y=h.scrollbarVisibility)!==null&&y!==void 0?y:1:2},this.c));const k=this.q(new N.DomEmitter(this.b,"scroll")).event;this.q(k(D=>{const M=this.g.getScrollPosition(),z=Math.abs(this.b.scrollLeft-M.scrollLeft)<=1?void 0:this.b.scrollLeft,R=Math.abs(this.b.scrollTop-M.scrollTop)<=1?void 0:this.b.scrollTop;(z!==void 0||R!==void 0)&&this.g.setScrollPosition({scrollLeft:z,scrollTop:R})})),this.onDidScroll=this.g.onScroll,this.q(this.onDidScroll(D=>{D.scrollTopChanged&&(this.b.scrollTop=D.scrollTop),D.scrollLeftChanged&&(this.b.scrollLeft=D.scrollLeft)})),(0,C.append)(this.el,this.g.getDomNode()),this.style(h.styles||n),h.descriptor&&(this.h=h.descriptor.size,h.descriptor.views.forEach((D,M)=>{const z=t.isUndefined(D.visible)||D.visible?D.size:{type:"invisible",cachedVisibleSize:D.size},R=D.view;this.L(R,z,M,!0)}),this.k=this.m.reduce((D,M)=>D+M.size,0),this.F())}style(u){u.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",u.separatorBorder.toString()))}addView(u,h,w=this.m.length,m){this.L(u,h,w,m)}layout(u,h){const w=Math.max(this.h,this.k);if(this.h=u,this.j=h,this.l){let m=0;for(let p=0;p<this.m.length;p++){const b=this.m[p],y=this.l[p];typeof y=="number"?m+=y:u-=b.size}for(let p=0;p<this.m.length;p++){const b=this.m[p],y=this.l[p];typeof y=="number"&&(b.size=(0,g.clamp)(Math.round(y*u/m),b.minimumSize,b.maximumSize))}}else{const m=(0,L.range)(this.m.length),p=m.filter(y=>this.m[y].priority===1),b=m.filter(y=>this.m[y].priority===2);this.N(this.m.length-1,u-w,void 0,p,b)}this.O(),this.P()}F(){this.u&&this.k>0&&(this.l=this.m.map(u=>u.proportionalLayout?u.size/this.k:void 0))}G({sash:u,start:h,alt:w}){for(const y of this.m)y.enabled=!1;const m=this.sashItems.findIndex(y=>y.sash===u),p=(0,f.combinedDisposable)((0,C.addDisposableListener)(document.body,"keydown",y=>b(this.n.current,y.altKey)),(0,C.addDisposableListener)(document.body,"keyup",()=>b(this.n.current,!1))),b=(y,k)=>{const D=this.m.map(A=>A.size);let M=Number.NEGATIVE_INFINITY,z=Number.POSITIVE_INFINITY;if(this.t&&(k=!k),k)if(m===this.sashItems.length-1){const T=this.m[m];M=(T.minimumSize-T.size)/2,z=(T.maximumSize-T.size)/2}else{const T=this.m[m+1];M=(T.size-T.maximumSize)/2,z=(T.size-T.minimumSize)/2}let R,P;if(!k){const A=(0,L.range)(m,-1),T=(0,L.range)(m+1,this.m.length),O=A.reduce((he,ie)=>he+(this.m[ie].minimumSize-D[ie]),0),B=A.reduce((he,ie)=>he+(this.m[ie].viewMaximumSize-D[ie]),0),W=T.length===0?Number.POSITIVE_INFINITY:T.reduce((he,ie)=>he+(D[ie]-this.m[ie].minimumSize),0),j=T.length===0?Number.NEGATIVE_INFINITY:T.reduce((he,ie)=>he+(D[ie]-this.m[ie].viewMaximumSize),0),F=Math.max(O,j),U=Math.min(W,B),Q=this.U(A),se=this.U(T);if(typeof Q=="number"){const he=this.m[Q],ie=Math.floor(he.viewMinimumSize/2);R={index:Q,limitDelta:he.visible?F-ie:F+ie,size:he.size}}if(typeof se=="number"){const he=this.m[se],ie=Math.floor(he.viewMinimumSize/2);P={index:se,limitDelta:he.visible?U+ie:U-ie,size:he.size}}}this.n={start:y,current:y,index:m,sizes:D,minDelta:M,maxDelta:z,alt:k,snapBefore:R,snapAfter:P,disposable:p}};b(h,w)}H({current:u}){const{index:h,start:w,sizes:m,alt:p,minDelta:b,maxDelta:y,snapBefore:k,snapAfter:D}=this.n;this.n.current=u;const M=u-w,z=this.N(h,M,m,void 0,void 0,b,y,k,D);if(p){const R=h===this.sashItems.length-1,P=this.m.map(j=>j.size),A=R?h:h+1,T=this.m[A],O=T.size-T.maximumSize,B=T.size-T.minimumSize,W=R?h-1:h+1;this.N(W,-z,P,void 0,void 0,O,B)}this.O(),this.P()}I(u){this.w.fire(u),this.n.disposable.dispose(),this.F();for(const h of this.m)h.enabled=!0}J(u,h){const w=this.m.indexOf(u);w<0||w>=this.m.length||(h=typeof h=="number"?h:u.size,h=(0,g.clamp)(h,u.minimumSize,u.maximumSize),this.t&&w>0?(this.N(w-1,Math.floor((u.size-h)/2)),this.O(),this.P()):(u.size=h,this.M([w],void 0)))}resizeView(u,h){if(this.p!==d.Idle)throw new Error("Cant modify splitview");if(this.p=d.Busy,u<0||u>=this.m.length)return;const w=(0,L.range)(this.m.length).filter(y=>y!==u),m=[...w.filter(y=>this.m[y].priority===1),u],p=w.filter(y=>this.m[y].priority===2),b=this.m[u];h=Math.round(h),h=(0,g.clamp)(h,b.minimumSize,Math.min(b.maximumSize,this.h)),b.size=h,this.M(m,p),this.p=d.Idle}distributeViewSizes(){const u=[];let h=0;for(const y of this.m)y.maximumSize-y.minimumSize>0&&(u.push(y),h+=y.size);const w=Math.floor(h/u.length);for(const y of u)y.size=(0,g.clamp)(w,y.minimumSize,y.maximumSize);const m=(0,L.range)(this.m.length),p=m.filter(y=>this.m[y].priority===1),b=m.filter(y=>this.m[y].priority===2);this.M(p,b)}getViewSize(u){return u<0||u>=this.m.length?-1:this.m[u].size}L(u,h,w=this.m.length,m){if(this.p!==d.Idle)throw new Error("Cant modify splitview");this.p=d.Busy;const p=(0,C.$)(".split-view-view");w===this.m.length?this.b.appendChild(p):this.b.insertBefore(p,this.b.children.item(w));const b=u.onDidChange(R=>this.J(M,R)),y=(0,f.toDisposable)(()=>this.b.removeChild(p)),k=(0,f.combinedDisposable)(b,y);let D;typeof h=="number"?D=h:h.type==="split"?D=this.getViewSize(h.index)/2:h.type==="invisible"?D={cachedVisibleSize:h.cachedVisibleSize}:D=u.minimumSize;const M=this.orientation===0?new r(p,u,D,k):new c(p,u,D,k);if(this.m.splice(w,0,M),this.m.length>1){const R={orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash},P=this.orientation===0?new E.Sash(this.a,{getHorizontalSashTop:he=>this.S(he),getHorizontalSashWidth:this.v},Object.assign(Object.assign({},R),{orientation:1})):new E.Sash(this.a,{getVerticalSashLeft:he=>this.S(he),getVerticalSashHeight:this.v},Object.assign(Object.assign({},R),{orientation:0})),A=this.orientation===0?he=>({sash:P,start:he.startY,current:he.currentY,alt:he.altKey}):he=>({sash:P,start:he.startX,current:he.currentX,alt:he.altKey}),O=v.Event.map(P.onDidStart,A)(this.G,this),W=v.Event.map(P.onDidChange,A)(this.H,this),F=v.Event.map(P.onDidEnd,()=>this.sashItems.findIndex(he=>he.sash===P))(this.I,this),U=P.onDidReset(()=>{const he=this.sashItems.findIndex(G=>G.sash===P),ie=(0,L.range)(he,-1),ue=(0,L.range)(he+1,this.m.length),J=this.U(ie),x=this.U(ue);typeof J=="number"&&!this.m[J].visible||typeof x=="number"&&!this.m[x].visible||this.y.fire(he)}),Q=(0,f.combinedDisposable)(O,W,F,U,P),se={sash:P,disposable:Q};this.sashItems.splice(w-1,0,se)}p.appendChild(u.element);let z;typeof h!="number"&&h.type==="split"&&(z=[h.index]),m||this.M([w],z),this.p=d.Idle,!m&&typeof h!="number"&&h.type==="distribute"&&this.distributeViewSizes()}M(u,h){const w=this.m.reduce((m,p)=>m+p.size,0);this.N(this.m.length-1,this.h-w,void 0,u,h),this.O(),this.P(),this.F()}N(u,h,w=this.m.map(M=>M.size),m,p,b=Number.NEGATIVE_INFINITY,y=Number.POSITIVE_INFINITY,k,D){if(u<0||u>=this.m.length)return 0;const M=(0,L.range)(u,-1),z=(0,L.range)(u+1,this.m.length);if(p)for(const se of p)(0,L.pushToStart)(M,se),(0,L.pushToStart)(z,se);if(m)for(const se of m)(0,L.pushToEnd)(M,se),(0,L.pushToEnd)(z,se);const R=M.map(se=>this.m[se]),P=M.map(se=>w[se]),A=z.map(se=>this.m[se]),T=z.map(se=>w[se]),O=M.reduce((se,he)=>se+(this.m[he].minimumSize-w[he]),0),B=M.reduce((se,he)=>se+(this.m[he].maximumSize-w[he]),0),W=z.length===0?Number.POSITIVE_INFINITY:z.reduce((se,he)=>se+(w[he]-this.m[he].minimumSize),0),j=z.length===0?Number.NEGATIVE_INFINITY:z.reduce((se,he)=>se+(w[he]-this.m[he].maximumSize),0),F=Math.max(O,j,b),U=Math.min(W,B,y);let Q=!1;if(k){const se=this.m[k.index],he=h>=k.limitDelta;Q=he!==se.visible,se.setVisible(he,k.size)}if(!Q&&D){const se=this.m[D.index],he=h<D.limitDelta;Q=he!==se.visible,se.setVisible(he,D.size)}if(Q)return this.N(u,h,w,m,p,b,y);h=(0,g.clamp)(h,F,U);for(let se=0,he=h;se<R.length;se++){const ie=R[se],ue=(0,g.clamp)(P[se]+he,ie.minimumSize,ie.maximumSize);he-=ue-P[se],ie.size=ue}for(let se=0,he=h;se<A.length;se++){const ie=A[se],ue=(0,g.clamp)(T[se]-he,ie.minimumSize,ie.maximumSize);he+=ue-T[se],ie.size=ue}return h}O(u){const h=this.m.reduce((y,k)=>y+k.size,0);let w=this.h-h;const m=(0,L.range)(this.m.length-1,-1),p=m.filter(y=>this.m[y].priority===1),b=m.filter(y=>this.m[y].priority===2);for(const y of b)(0,L.pushToStart)(m,y);for(const y of p)(0,L.pushToEnd)(m,y);typeof u=="number"&&(0,L.pushToEnd)(m,u);for(let y=0;w!==0&&y<m.length;y++){const k=this.m[m[y]],D=(0,g.clamp)(k.size+w,k.minimumSize,k.maximumSize);w-=D-k.size,k.size=D}}P(){this.k=this.m.reduce((h,w)=>h+w.size,0);let u=0;for(const h of this.m)h.layout(u,this.j),u+=h.size;this.sashItems.forEach(h=>h.sash.layout()),this.R(),this.Q()}Q(){this.orientation===0?this.g.setScrollDimensions({height:this.h,scrollHeight:this.k}):this.g.setScrollDimensions({width:this.h,scrollWidth:this.k})}R(){let u=!1;const h=this.m.map(k=>u=k.size-k.minimumSize>0||u);u=!1;const w=this.m.map(k=>u=k.maximumSize-k.size>0||u),m=[...this.m].reverse();u=!1;const p=m.map(k=>u=k.size-k.minimumSize>0||u).reverse();u=!1;const b=m.map(k=>u=k.maximumSize-k.size>0||u).reverse();let y=0;for(let k=0;k<this.sashItems.length;k++){const{sash:D}=this.sashItems[k];y+=this.m[k].size;const z=!(h[k]&&b[k+1]),R=!(w[k]&&p[k+1]);if(z&&R){const P=(0,L.range)(k,-1),A=(0,L.range)(k+1,this.m.length),T=this.U(P),O=this.U(A),B=typeof T=="number"&&!this.m[T].visible,W=typeof O=="number"&&!this.m[O].visible;B&&p[k]&&(y>0||this.startSnappingEnabled)?D.state=1:W&&h[k]&&(y<this.k||this.endSnappingEnabled)?D.state=2:D.state=0}else z&&!R?D.state=1:!z&&R?D.state=2:D.state=3}}S(u){let h=0;for(let w=0;w<this.sashItems.length;w++)if(h+=this.m[w].size,this.sashItems[w].sash===u)return h;return 0}U(u){for(const h of u){const w=this.m[h];if(!!w.visible&&w.snap)return h}for(const h of u){const w=this.m[h];if(w.visible&&w.maximumSize-w.minimumSize>0)return;if(!w.visible&&w.snap)return h}}dispose(){super.dispose(),(0,f.dispose)(this.m),this.m=[],this.sashItems.forEach(u=>u.disposable.dispose()),this.sashItems=[]}}e.SplitView=l}),define(_[532],ee([1,0,7,106,279,6,2,368]),function(q,e,C,N,E,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Table=void 0;class S{constructor(t,n,a){this.f=t,this.g=a,this.templateId=S.TemplateId,this.e=new Set;const r=new Map(n.map(c=>[c.templateId,c]));this.d=[];for(const c of t){const d=r.get(c.templateId);if(!d)throw new Error(`Table cell renderer for template id ${c.templateId} not found.`);this.d.push(d)}}renderTemplate(t){const n=(0,C.append)(t,(0,C.$)(".monaco-table-tr")),a=[],r=[];for(let d=0;d<this.f.length;d++){const s=this.d[d],l=(0,C.append)(n,(0,C.$)(".monaco-table-td",{"data-col-index":d}));l.style.width=`${this.g(d)}px`,a.push(l),r.push(s.renderTemplate(l))}const c={container:t,cellContainers:a,cellTemplateData:r};return this.e.add(c),c}renderElement(t,n,a,r){for(let c=0;c<this.f.length;c++){const s=this.f[c].project(t);this.d[c].renderElement(s,n,a.cellTemplateData[c],r)}}disposeElement(t,n,a,r){for(let c=0;c<this.f.length;c++){const d=this.d[c];if(d.disposeElement){const l=this.f[c].project(t);d.disposeElement(l,n,a.cellTemplateData[c],r)}}}disposeTemplate(t){for(let n=0;n<this.f.length;n++)this.d[n].disposeTemplate(t.cellTemplateData[n]);(0,C.clearNode)(t.container),this.e.delete(t)}layoutColumn(t,n){for(const{cellContainers:a}of this.e)a[t].style.width=`${n}px`}}S.TemplateId="row";function v(i){return{getHeight(t){return i.getHeight(t)},getTemplateId(){return S.TemplateId}}}class f{get minimumSize(){var t;return(t=this.column.minimumWidth)!==null&&t!==void 0?t:120}get maximumSize(){var t;return(t=this.column.maximumWidth)!==null&&t!==void 0?t:Number.POSITIVE_INFINITY}get onDidChange(){var t;return(t=this.column.onDidChangeWidthConstraints)!==null&&t!==void 0?t:I.Event.None}constructor(t,n){this.column=t,this.e=n,this.d=new I.Emitter,this.onDidLayout=this.d.event,this.element=(0,C.$)(".monaco-table-th",{"data-col-index":n,title:t.tooltip},t.label)}layout(t){this.d.fire([this.e,t])}}class g{get onDidChangeFocus(){return this.g.onDidChangeFocus}get onDidChangeSelection(){return this.g.onDidChangeSelection}get onMouseDblClick(){return this.g.onMouseDblClick}get onPointer(){return this.g.onPointer}get onDidFocus(){return this.g.onDidFocus}get onDidDispose(){return this.g.onDidDispose}constructor(t,n,a,r,c,d){this.o=a,this.domId=`table_id_${++g.d}`,this.k=new L.DisposableStore,this.m=0,this.n=0,this.domNode=(0,C.append)(n,(0,C.$)(`.monaco-table.${this.domId}`));const s=r.map((u,h)=>new f(u,h)),l={size:s.reduce((u,h)=>u+h.column.weight,0),views:s.map(u=>({size:u.column.weight,view:u}))};this.f=this.k.add(new E.SplitView(this.domNode,{orientation:1,scrollbarVisibility:2,getSashOrthogonalSize:()=>this.n,descriptor:l})),this.f.el.style.height=`${a.headerRowHeight}px`,this.f.el.style.lineHeight=`${a.headerRowHeight}px`;const o=new S(r,c,u=>this.f.getViewSize(u));this.g=this.k.add(new N.List(t,this.domNode,v(a),[o],d)),I.Event.any(...s.map(u=>u.onDidLayout))(([u,h])=>o.layoutColumn(u,h),null,this.k),this.f.onDidSashReset(u=>{const h=r.reduce((m,p)=>m+p.weight,0),w=r[u].weight/h*this.m;this.f.resizeView(u,w)},null,this.k),this.j=(0,C.createStyleSheet)(this.domNode),this.style(N.unthemedListStyles)}updateOptions(t){this.g.updateOptions(t)}splice(t,n,a=[]){this.g.splice(t,n,a)}getHTMLElement(){return this.domNode}style(t){const n=[];n.push(`.monaco-table.${this.domId} > .monaco-split-view2 .monaco-sash.vertical::before {
|
||
top: ${this.o.headerRowHeight+1}px;
|
||
height: calc(100% - ${this.o.headerRowHeight}px);
|
||
}`),this.j.textContent=n.join(`
|
||
`),this.g.style(t)}getSelectedElements(){return this.g.getSelectedElements()}getSelection(){return this.g.getSelection()}getFocus(){return this.g.getFocus()}dispose(){this.k.dispose()}}g.d=0,e.Table=g}),define(_[139],ee([1,0,67,32,6,369]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Toggle=e.unthemedToggleStyles=void 0,e.unthemedToggleStyles={inputActiveOptionBorder:"#007ACC00",inputActiveOptionForeground:"#FFFFFF",inputActiveOptionBackground:"#0E639C50"};class I extends C.Widget{constructor(S){super(),this.a=this.q(new E.Emitter),this.onChange=this.a.event,this.b=this.q(new E.Emitter),this.onKeyDown=this.b.event,this.g=S,this.t=this.g.isChecked;const v=["monaco-custom-toggle"];this.g.icon&&(this.s=this.g.icon,v.push(...N.ThemeIcon.asClassNameArray(this.s))),this.g.actionClassName&&v.push(...this.g.actionClassName.split(" ")),this.t&&v.push("checked"),this.domNode=document.createElement("div"),this.domNode.title=this.g.title,this.domNode.classList.add(...v),this.g.notFocusable||(this.domNode.tabIndex=0),this.domNode.setAttribute("role","checkbox"),this.domNode.setAttribute("aria-checked",String(this.t)),this.domNode.setAttribute("aria-label",this.g.title),this.v(),this.c(this.domNode,f=>{this.enabled&&(this.checked=!this.t,this.a.fire(!1),f.preventDefault())}),this.q(this.B(this.domNode)),this.n(this.domNode,f=>{if(f.keyCode===10||f.keyCode===3){this.checked=!this.t,this.a.fire(!0),f.preventDefault(),f.stopPropagation();return}this.b.fire(f)})}get enabled(){return this.domNode.getAttribute("aria-disabled")!=="true"}focus(){this.domNode.focus()}get checked(){return this.t}set checked(S){this.t=S,this.domNode.setAttribute("aria-checked",String(this.t)),this.domNode.classList.toggle("checked",this.t),this.v()}width(){return 2+2+2+16}v(){this.domNode&&(this.domNode.style.borderColor=this.t&&this.g.inputActiveOptionBorder||"",this.domNode.style.color=this.t&&this.g.inputActiveOptionForeground||"inherit",this.domNode.style.backgroundColor=this.t&&this.g.inputActiveOptionBackground||"")}enable(){this.domNode.setAttribute("aria-disabled",String(!1))}disable(){this.domNode.setAttribute("aria-disabled",String(!0))}}e.Toggle=I}),define(_[280],ee([1,0,139,29,505]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RegexToggle=e.WholeWordsToggle=e.CaseSensitiveToggle=void 0;const I=E.localize(0,null),L=E.localize(1,null),S=E.localize(2,null);class v extends C.Toggle{constructor(t){super({icon:N.Codicon.caseSensitive,title:I+t.appendTitle,isChecked:t.isChecked,inputActiveOptionBorder:t.inputActiveOptionBorder,inputActiveOptionForeground:t.inputActiveOptionForeground,inputActiveOptionBackground:t.inputActiveOptionBackground})}}e.CaseSensitiveToggle=v;class f extends C.Toggle{constructor(t){super({icon:N.Codicon.wholeWord,title:L+t.appendTitle,isChecked:t.isChecked,inputActiveOptionBorder:t.inputActiveOptionBorder,inputActiveOptionForeground:t.inputActiveOptionForeground,inputActiveOptionBackground:t.inputActiveOptionBackground})}}e.WholeWordsToggle=f;class g extends C.Toggle{constructor(t){super({icon:N.Codicon.regex,title:S+t.appendTitle,isChecked:t.isChecked,inputActiveOptionBorder:t.inputActiveOptionBorder,inputActiveOptionForeground:t.inputActiveOptionForeground,inputActiveOptionBackground:t.inputActiveOptionBackground})}}e.RegexToggle=g}),define(_[44],ee([1,0,198,48,88,16,9,21]),function(q,e,C,N,E,I,L,S){"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 v(i){return(0,S.uriToFsPath)(i,!0)}e.originalFSPath=v;class f{constructor(t){this.a=t}compare(t,n,a=!1){return t===n?0:(0,L.compare)(this.getComparisonKey(t,a),this.getComparisonKey(n,a))}isEqual(t,n,a=!1){return t===n?!0:!t||!n?!1:this.getComparisonKey(t,a)===this.getComparisonKey(n,a)}getComparisonKey(t,n=!1){return t.with({path:this.a(t)?t.path.toLowerCase():void 0,fragment:n?null:void 0}).toString()}isEqualOrParent(t,n,a=!1){if(t.scheme===n.scheme){if(t.scheme===N.Schemas.file)return C.isEqualOrParent(v(t),v(n),this.a(t))&&t.query===n.query&&(a||t.fragment===n.fragment);if((0,e.isEqualAuthority)(t.authority,n.authority))return C.isEqualOrParent(t.path,n.path,this.a(t),"/")&&t.query===n.query&&(a||t.fragment===n.fragment)}return!1}joinPath(t,...n){return S.URI.joinPath(t,...n)}basenameOrAuthority(t){return(0,e.basename)(t)||t.authority}basename(t){return E.posix.basename(t.path)}extname(t){return E.posix.extname(t.path)}dirname(t){if(t.path.length===0)return t;let n;return t.scheme===N.Schemas.file?n=S.URI.file(E.dirname(v(t))).path:(n=E.posix.dirname(t.path),t.authority&&n.length&&n.charCodeAt(0)!==47&&(console.error(`dirname("${t.toString})) resulted in a relative path`),n="/")),t.with({path:n})}normalizePath(t){if(!t.path.length)return t;let n;return t.scheme===N.Schemas.file?n=S.URI.file(E.normalize(v(t))).path:n=E.posix.normalize(t.path),t.with({path:n})}relativePath(t,n){if(t.scheme!==n.scheme||!(0,e.isEqualAuthority)(t.authority,n.authority))return;if(t.scheme===N.Schemas.file){const c=E.relative(v(t),v(n));return I.isWindows?C.toSlashes(c):c}let a=t.path||"/";const r=n.path||"/";if(this.a(t)){let c=0;for(const d=Math.min(a.length,r.length);c<d&&!(a.charCodeAt(c)!==r.charCodeAt(c)&&a.charAt(c).toLowerCase()!==r.charAt(c).toLowerCase());c++);a=r.substr(0,c)+a.substr(c)}return E.posix.relative(a,r)}resolvePath(t,n){if(t.scheme===N.Schemas.file){const a=S.URI.file(E.resolve(v(t),n));return t.with({authority:a.authority,path:a.path})}return n=C.toPosixPath(n),t.with({path:E.posix.resolve(t.path,n)})}isAbsolutePath(t){return!!t.path&&t.path[0]==="/"}isEqualAuthority(t,n){return t===n||t!==void 0&&n!==void 0&&(0,L.equalsIgnoreCase)(t,n)}hasTrailingPathSeparator(t,n=E.sep){if(t.scheme===N.Schemas.file){const a=v(t);return a.length>C.getRoot(a).length&&a[a.length-1]===n}else{const a=t.path;return a.length>1&&a.charCodeAt(a.length-1)===47&&!/^[a-zA-Z]:(\/$|\\$)/.test(t.fsPath)}}removeTrailingPathSeparator(t,n=E.sep){return(0,e.hasTrailingPathSeparator)(t,n)?t.with({path:t.path.substr(0,t.path.length-1)}):t}addTrailingPathSeparator(t,n=E.sep){let a=!1;if(t.scheme===N.Schemas.file){const r=v(t);a=r!==void 0&&r.length===C.getRoot(r).length&&r[r.length-1]===n}else{n="/";const r=t.path;a=r.length===1&&r.charCodeAt(r.length-1)===47}return!a&&!(0,e.hasTrailingPathSeparator)(t,n)?t.with({path:t.path+"/"}):t}}e.ExtUri=f,e.extUri=new f(()=>!1),e.extUriBiasedIgnorePathCase=new f(i=>i.scheme===N.Schemas.file?!I.isLinux:!0),e.extUriIgnorePathCase=new f(i=>!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 g;(function(i){i.META_DATA_LABEL="label",i.META_DATA_DESCRIPTION="description",i.META_DATA_SIZE="size",i.META_DATA_MIME="mime";function t(n){const a=new Map;n.path.substring(n.path.indexOf(";")+1,n.path.lastIndexOf(";")).split(";").forEach(d=>{const[s,l]=d.split(":");s&&l&&a.set(s,l)});const c=n.path.substring(0,n.path.indexOf(";"));return c&&a.set(i.META_DATA_MIME,c),a}i.parseMetaData=t})(g=e.DataUri||(e.DataUri={}))}),define(_[281],ee([1,0,7,523,75,203,43,66,137,13,6,72,111,150,100,2,346,202,48,46,44,9,21]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s,l,o,u,h){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.allowedMarkdownAttr=e.renderMarkdown=void 0;const w=Object.freeze({image:(z,R,P)=>{let A=[],T=[];return z&&({href:z,dimensions:A}=(0,i.parseHrefAndDimensions)(z),T.push(`src="${(0,i.escapeDoubleQuotes)(z)}"`)),P&&T.push(`alt="${(0,i.escapeDoubleQuotes)(P)}"`),R&&T.push(`title="${(0,i.escapeDoubleQuotes)(R)}"`),A.length&&(T=T.concat(A)),"<img "+T.join(" ")+">"},paragraph:z=>`<p>${z}</p>`,link:(z,R,P)=>typeof z!="string"?"":(z===P&&(P=(0,i.removeMarkdownEscapes)(P)),R=typeof R=="string"?(0,i.escapeDoubleQuotes)((0,i.removeMarkdownEscapes)(R)):"",z=(0,i.removeMarkdownEscapes)(z),z=z.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),`<a href="${z}" title="${R||z}">${P}</a>`)});function m(z,R={},P={}){var A;const T=new r.DisposableStore;let O=!1;const B=(0,I.createElement)(R),W=function(ue){let J;try{J=(0,d.parse)(decodeURIComponent(ue))}catch{}return J?(J=(0,l.cloneAndChange)(J,x=>{if(z.uris&&z.uris[x])return h.URI.revive(z.uris[x])}),encodeURIComponent(JSON.stringify(J))):ue},j=function(ue,J){const x=z.uris&&z.uris[ue];let G=h.URI.revive(x);return J?ue.startsWith(s.Schemas.data+":")?ue:(G||(G=h.URI.parse(ue)),s.FileAccess.uriToBrowserUri(G).toString(!0)):!G||h.URI.parse(ue).toString()===G.toString()?ue:(G.query&&(G=G.with({query:W(G.query)})),G.toString())},F=new c.marked.Renderer;F.image=w.image,F.link=w.link,F.paragraph=w.paragraph;const U=[];if(R.codeBlockRenderer&&(F.code=(ue,J)=>{const x=n.defaultGenerator.nextId(),G=R.codeBlockRenderer(p(J),ue);return U.push(G.then(te=>[x,te])),`<div class="code" data-code="${x}">${(0,u.escape)(ue)}</div>`}),R.actionHandler){const ue=function(G){let te=G.target;if(!(te.tagName!=="A"&&(te=te.parentElement,!te||te.tagName!=="A")))try{let Z=te.dataset.href;Z&&(z.baseUri&&(Z=b(h.URI.from(z.baseUri),Z)),R.actionHandler.callback(Z,G))}catch(Z){(0,f.onUnexpectedError)(Z)}finally{G.preventDefault()}},J=R.actionHandler.disposables.add(new E.DomEmitter(B,"click")),x=R.actionHandler.disposables.add(new E.DomEmitter(B,"auxclick"));R.actionHandler.disposables.add(g.Event.any(J.event,x.event)(G=>{const te=new S.StandardMouseEvent(G);!te.leftButton&&!te.middleButton||ue(te)})),R.actionHandler.disposables.add(C.addDisposableListener(B,"keydown",G=>{const te=new L.StandardKeyboardEvent(G);!te.equals(10)&&!te.equals(3)||ue(te)}))}z.supportHtml||(P.sanitizer=ue=>(z.isTrusted?ue.match(/^(<span[^>]+>)|(<\/\s*span>)$/):void 0)?ue:"",P.sanitize=!0,P.silent=!0),P.renderer=F;let Q=(A=z.value)!==null&&A!==void 0?A:"";Q.length>1e5&&(Q=`${Q.substr(0,1e5)}\u2026`),z.supportThemeIcons&&(Q=(0,t.markdownEscapeEscapedIcons)(Q));let se=c.marked.parse(Q,P);z.supportThemeIcons&&(se=(0,v.renderLabelWithIcons)(se).map(J=>typeof J=="string"?J:J.outerHTML).join(""));const ie=new DOMParser().parseFromString(y(z,se),"text/html");if(ie.body.querySelectorAll("img").forEach(ue=>{const J=ue.getAttribute("src");if(J){let x=J;try{z.baseUri&&(x=b(h.URI.from(z.baseUri),x))}catch{}ue.src=j(x,!0)}}),ie.body.querySelectorAll("a").forEach(ue=>{const J=ue.getAttribute("href");if(ue.setAttribute("href",""),!J||/^data:|javascript:/i.test(J)||/^command:/i.test(J)&&!z.isTrusted||/^command:(\/\/\/)?_workbench\.downloadResource/i.test(J))ue.replaceWith(...ue.childNodes);else{let x=j(J,!1);z.baseUri&&(x=b(h.URI.from(z.baseUri),J)),ue.dataset.href=x}}),B.innerHTML=y(z,ie.body.innerHTML),U.length>0&&Promise.all(U).then(ue=>{var J,x;if(O)return;const G=new Map(ue),te=B.querySelectorAll("div[data-code]");for(const Z of te){const ae=G.get((J=Z.dataset.code)!==null&&J!==void 0?J:"");ae&&C.reset(Z,ae)}(x=R.asyncRenderCallback)===null||x===void 0||x.call(R)}),R.asyncRenderCallback)for(const ue of B.getElementsByTagName("img")){const J=T.add(C.addDisposableListener(ue,"load",()=>{J.dispose(),R.asyncRenderCallback()}))}return{element:B,dispose:()=>{O=!0,T.dispose()}}}e.renderMarkdown=m;function p(z){if(!z)return"";const R=z.split(/[\s+|:|,|\{|\?]/,1);return R.length?R[0]:z}function b(z,R){return/^\w[\w\d+.-]*:/.test(R)?R:z.path.endsWith("/")?(0,o.resolvePath)(z,R).toString():(0,o.resolvePath)((0,o.dirname)(z),R).toString()}function y(z,R){const{config:P,allowedSchemes:A}=k(z);N.addHook("uponSanitizeAttribute",(O,B)=>{if(B.attrName==="style"||B.attrName==="class"){if(O.tagName==="SPAN"){if(B.attrName==="style"){B.keepAttr=/^(color\:#[0-9a-fA-F]+;)?(background-color\:#[0-9a-fA-F]+;)?$/.test(B.attrValue);return}else if(B.attrName==="class"){B.keepAttr=/^codicon codicon-[a-z\-]+( codicon-modifier-[a-z\-]+)?$/.test(B.attrValue);return}}B.keepAttr=!1;return}});const T=C.hookDomPurifyHrefAndSrcSanitizer(A);try{return N.sanitize(R,Object.assign(Object.assign({},P),{RETURN_TRUSTED_TYPE:!0}))}finally{N.removeHook("uponSanitizeAttribute"),T.dispose()}}e.allowedMarkdownAttr=["align","autoplay","alt","class","controls","data-code","data-href","height","href","loop","muted","playsinline","poster","src","style","target","title","width","start"];function k(z){const R=[s.Schemas.http,s.Schemas.https,s.Schemas.mailto,s.Schemas.data,s.Schemas.file,s.Schemas.vscodeFileResource,s.Schemas.vscodeRemote,s.Schemas.vscodeRemoteResource];return z.isTrusted&&R.push(s.Schemas.command),{config:{ALLOWED_TAGS:[...C.basicMarkupHtmlTags],ALLOWED_ATTR:e.allowedMarkdownAttr,ALLOW_UNKNOWN_PROTOCOLS:!0},allowedSchemes:R}}const D=new Map([[""",'"'],[" "," "],["&","&"],["'","'"],["<","<"],[">",">"]]),M=new a.Lazy(()=>{const z=new c.marked.Renderer;return z.code=R=>R,z.blockquote=R=>R,z.html=R=>"",z.heading=(R,P,A)=>R+`
|
||
`,z.hr=()=>"",z.list=(R,P)=>R,z.listitem=R=>R+`
|
||
`,z.paragraph=R=>R+`
|
||
`,z.table=(R,P)=>R+P+`
|
||
`,z.tablerow=R=>R,z.tablecell=(R,P)=>R+" ",z.strong=R=>R,z.em=R=>R,z.codespan=R=>R,z.br=()=>`
|
||
`,z.del=R=>R,z.image=(R,P,A)=>"",z.text=R=>R,z.link=(R,P,A)=>A,z})}),define(_[533],ee([1,0,7,75,43,281,106,17,6,58,2,16,510,366]),function(q,e,C,N,E,I,L,S,v,f,g,i,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SelectBoxList=void 0;const n=C.$,a="selectOption.entry.template";class r{get templateId(){return a}renderTemplate(s){const l=Object.create(null);return l.root=s,l.text=C.append(s,n(".option-text")),l.detail=C.append(s,n(".option-detail")),l.decoratorRight=C.append(s,n(".option-decorator-right")),l}renderElement(s,l,o){const u=o,h=s.text,w=s.detail,m=s.decoratorRight,p=s.isDisabled;u.text.textContent=h,u.detail.textContent=w||"",u.decoratorRight.innerText=m||"",p?u.root.classList.add("option-disabled"):u.root.classList.remove("option-disabled")}disposeTemplate(s){}}class c extends g.Disposable{constructor(s,l,o,u,h){super(),this.l=[],this.z=0,this.C=!1,this.F=!1,this.H=!1,this.g=!1,this.p=u,this.h=h||Object.create(null),typeof this.h.minBottomMargin!="number"?this.h.minBottomMargin=c.a:this.h.minBottomMargin<0&&(this.h.minBottomMargin=0),this.j=document.createElement("select"),this.j.className="monaco-select-box monaco-select-box-dropdown-padding",typeof this.h.ariaLabel=="string"&&this.j.setAttribute("aria-label",this.h.ariaLabel),typeof this.h.ariaDescription=="string"&&this.j.setAttribute("aria-description",this.h.ariaDescription),this.n=new v.Emitter,this.q(this.n),this.J(),this.I(o),this.m=l||0,s&&this.setOptions(s,l),this.M()}getHeight(){return 22}getTemplateId(){return a}I(s){this.s=s,this.t=C.$(".monaco-select-box-dropdown-container"),this.t.classList.add("monaco-select-box-dropdown-padding"),this.D=C.append(this.t,n(".select-box-details-pane"));const l=C.append(this.t,n(".select-box-dropdown-container-width-control")),o=C.append(l,n(".width-control-div"));this.y=document.createElement("span"),this.y.className="option-text-width-control",C.append(o,this.y),this.B=0,this.u=C.createStyleSheet(this.t),this.t.setAttribute("draggable","true"),this.q(C.addDisposableListener(this.t,C.EventType.DRAG_START,u=>{C.EventHelper.stop(u,!0)}))}J(){this.q(C.addStandardDisposableListener(this.j,"change",l=>{this.m=l.target.selectedIndex,this.n.fire({index:l.target.selectedIndex,selected:l.target.value}),!!this.l[this.m]&&!!this.l[this.m].text&&(this.j.title=this.l[this.m].text)})),this.q(C.addDisposableListener(this.j,C.EventType.CLICK,l=>{C.EventHelper.stop(l),this.g?this.R(!0):this.Q()})),this.q(C.addDisposableListener(this.j,C.EventType.MOUSE_DOWN,l=>{C.EventHelper.stop(l)}));let s;this.q(C.addDisposableListener(this.j,"touchstart",l=>{s=this.g})),this.q(C.addDisposableListener(this.j,"touchend",l=>{C.EventHelper.stop(l),s?this.R(!0):this.Q()})),this.q(C.addDisposableListener(this.j,C.EventType.KEY_DOWN,l=>{const o=new E.StandardKeyboardEvent(l);let u=!1;i.isMacintosh?(o.keyCode===18||o.keyCode===16||o.keyCode===10||o.keyCode===3)&&(u=!0):(o.keyCode===18&&o.altKey||o.keyCode===16&&o.altKey||o.keyCode===10||o.keyCode===3)&&(u=!0),u&&(this.Q(),C.EventHelper.stop(l,!0))}))}get onDidSelect(){return this.n.event}setOptions(s,l){S.equals(this.l,s)||(this.l=s,this.j.options.length=0,this.C=!1,this.G=void 0,this.l.forEach((o,u)=>{this.j.add(this.P(o.text,u,o.isDisabled)),typeof o.description=="string"&&(this.C=!0)})),l!==void 0&&(this.select(l),this.z=this.m)}L(){var s;(s=this.v)===null||s===void 0||s.splice(0,this.v.length,this.l)}select(s){s>=0&&s<this.l.length?this.m=s:s>this.l.length-1?this.select(this.l.length-1):this.m<0&&(this.m=0),this.j.selectedIndex=this.m,!!this.l[this.m]&&!!this.l[this.m].text&&(this.j.title=this.l[this.m].text)}focus(){this.j&&(this.j.tabIndex=0,this.j.focus())}blur(){this.j&&(this.j.tabIndex=-1,this.j.blur())}setFocusable(s){this.j.tabIndex=s?0:-1}render(s){this.k=s,s.classList.add("select-container"),s.appendChild(this.j),this.N()}M(){const s=[];this.p.listFocusBackground&&s.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { background-color: ${this.p.listFocusBackground} !important; }`),this.p.listFocusForeground&&s.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { color: ${this.p.listFocusForeground} !important; }`),this.p.decoratorRightForeground&&s.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.focused) .option-decorator-right { color: ${this.p.decoratorRightForeground}; }`),this.p.selectBackground&&this.p.selectBorder&&this.p.selectBorder!==this.p.selectBackground?(s.push(`.monaco-select-box-dropdown-container { border: 1px solid ${this.p.selectBorder} } `),s.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid ${this.p.selectBorder} } `),s.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid ${this.p.selectBorder} } `)):this.p.selectListBorder&&(s.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid ${this.p.selectListBorder} } `),s.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid ${this.p.selectListBorder} } `)),this.p.listHoverForeground&&s.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { color: ${this.p.listHoverForeground} !important; }`),this.p.listHoverBackground&&s.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { background-color: ${this.p.listHoverBackground} !important; }`),this.p.listFocusOutline&&s.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { outline: 1.6px dotted ${this.p.listFocusOutline} !important; outline-offset: -1.6px !important; }`),this.p.listHoverOutline&&s.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { outline: 1.6px dashed ${this.p.listHoverOutline} !important; outline-offset: -1.6px !important; }`),s.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled.focused { background-color: transparent !important; color: inherit !important; outline: none !important; }"),s.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled:hover { background-color: transparent !important; color: inherit !important; outline: none !important; }"),this.u.textContent=s.join(`
|
||
`)}N(){var s,l,o;const u=(s=this.p.selectBackground)!==null&&s!==void 0?s:"",h=(l=this.p.selectForeground)!==null&&l!==void 0?l:"",w=(o=this.p.selectBorder)!==null&&o!==void 0?o:"";this.j.style.backgroundColor=u,this.j.style.color=h,this.j.style.borderColor=w}O(){var s,l;const o=(s=this.p.selectBackground)!==null&&s!==void 0?s:"",u=C.asCssValueWithDefault(this.p.selectListBackground,o);this.w.style.backgroundColor=u,this.D.style.backgroundColor=u;const h=(l=this.p.focusBorder)!==null&&l!==void 0?l:"";this.t.style.outlineColor=h,this.t.style.outlineOffset="-1px",this.v.style(this.p)}P(s,l,o){const u=document.createElement("option");return u.value=s,u.text=s,u.disabled=!!o,u}Q(){this.D.innerText="",!(!this.s||this.g)&&(this.Y(this.t),this.L(),this.s.showContextView({getAnchor:()=>this.j,render:s=>this.S(s,!0),layout:()=>{this.W()},onHide:()=>{this.t.classList.remove("visible"),this.j.classList.remove("synthetic-focus")},anchorPosition:this.B},this.h.optionsAsChildren?this.k:void 0),this.g=!0,this.R(!1),this.s.showContextView({getAnchor:()=>this.j,render:s=>this.S(s),layout:()=>this.W(),onHide:()=>{this.t.classList.remove("visible"),this.j.classList.remove("synthetic-focus")},anchorPosition:this.B},this.h.optionsAsChildren?this.k:void 0),this.z=this.m,this.g=!0,this.j.setAttribute("aria-expanded","true"))}R(s){!this.s||!this.g||(this.g=!1,this.j.setAttribute("aria-expanded","false"),s&&this.j.focus(),this.s.hideContextView())}S(s,l){return s.appendChild(this.t),this.W(l),{dispose:()=>{try{s.removeChild(this.t)}catch{}}}}U(){let s=0;return this.l.forEach((l,o)=>{this.db(o),this.D.offsetHeight>s&&(s=this.D.offsetHeight)}),s}W(s){if(this.F)return!1;if(this.v){this.t.classList.add("visible");const l=C.getDomNodePagePosition(this.j),o=getComputedStyle(this.j),u=parseFloat(o.getPropertyValue("--dropdown-padding-top"))+parseFloat(o.getPropertyValue("--dropdown-padding-bottom")),h=window.innerHeight-l.top-l.height-(this.h.minBottomMargin||0),w=l.top-c.b,m=this.j.offsetWidth,p=this.X(this.y),b=Math.max(p,Math.round(m)).toString()+"px";this.t.style.width=b,this.v.getHTMLElement().style.height="",this.v.layout();let y=this.v.contentHeight;this.C&&this.G===void 0&&(this.G=this.U());const k=this.C?this.G:0,D=y+u+k,M=Math.floor((h-u-k)/this.getHeight()),z=Math.floor((w-u-k)/this.getHeight());if(s)return l.top+l.height>window.innerHeight-22||l.top<c.b||M<1&&z<1?!1:(M<c.c&&z>M&&this.l.length>M?(this.B=1,this.t.removeChild(this.w),this.t.removeChild(this.D),this.t.appendChild(this.D),this.t.appendChild(this.w),this.D.classList.remove("border-top"),this.D.classList.add("border-bottom")):(this.B=0,this.t.removeChild(this.w),this.t.removeChild(this.D),this.t.appendChild(this.w),this.t.appendChild(this.D),this.D.classList.remove("border-bottom"),this.D.classList.add("border-top")),!0);if(l.top+l.height>window.innerHeight-22||l.top<c.b||this.B===0&&M<1||this.B===1&&z<1)return this.R(!0),!1;if(this.B===0){if(this.g&&M+z<1)return this.R(!0),!1;D>h&&(y=M*this.getHeight())}else D>w&&(y=z*this.getHeight());return this.v.layout(y),this.v.domFocus(),this.v.length>0&&(this.v.setFocus([this.m||0]),this.v.reveal(this.v.getFocus()[0]||0)),this.C?(this.v.getHTMLElement().style.height=y+u+"px",this.t.style.height=""):this.t.style.height=y+u+"px",this.db(this.m),this.t.style.width=b,this.w.setAttribute("tabindex","0"),this.j.classList.add("synthetic-focus"),this.t.classList.add("synthetic-focus"),!0}else return!1}X(s){let l=0;if(s){let o=0,u=0;this.l.forEach((h,w)=>{const m=h.detail?h.detail.length:0,p=h.decoratorRight?h.decoratorRight.length:0,b=h.text.length+m+p;b>u&&(o=w,u=b)}),s.textContent=this.l[o].text+(this.l[o].decoratorRight?this.l[o].decoratorRight+" ":""),l=C.getTotalWidth(s)}return l}Y(s){if(this.v)return;this.w=C.append(s,n(".select-box-dropdown-list-container")),this.r=new r,this.v=new L.List("SelectBoxCustom",this.w,this,[this.r],{useShadows:!1,verticalScrollMode:3,keyboardSupport:!1,mouseSupport:!1,accessibilityProvider:{getAriaLabel:u=>{let h=u.text;return u.detail&&(h+=`. ${u.detail}`),u.decoratorRight&&(h+=`. ${u.decoratorRight}`),u.description&&(h+=`. ${u.description}`),h},getWidgetAriaLabel:()=>(0,t.localize)(0,null),getRole:()=>"option",getWidgetRole:()=>"listbox"}}),this.h.ariaLabel&&(this.v.ariaLabel=this.h.ariaLabel);const l=this.q(new N.DomEmitter(this.w,"keydown")),o=v.Event.chain(l.event).filter(()=>this.v.length>0).map(u=>new E.StandardKeyboardEvent(u));this.q(o.filter(u=>u.keyCode===3).on(u=>this.fb(u),this)),this.q(o.filter(u=>u.keyCode===2).on(u=>this.fb(u),this)),this.q(o.filter(u=>u.keyCode===9).on(u=>this.eb(u),this)),this.q(o.filter(u=>u.keyCode===16).on(u=>this.hb(u),this)),this.q(o.filter(u=>u.keyCode===18).on(u=>this.gb(u),this)),this.q(o.filter(u=>u.keyCode===12).on(this.jb,this)),this.q(o.filter(u=>u.keyCode===11).on(this.ib,this)),this.q(o.filter(u=>u.keyCode===14).on(this.kb,this)),this.q(o.filter(u=>u.keyCode===13).on(this.lb,this)),this.q(o.filter(u=>u.keyCode>=21&&u.keyCode<=56||u.keyCode>=80&&u.keyCode<=108).on(this.mb,this)),this.q(C.addDisposableListener(this.v.getHTMLElement(),C.EventType.POINTER_UP,u=>this.Z(u))),this.q(this.v.onMouseOver(u=>typeof u.index<"u"&&this.v.setFocus([u.index]))),this.q(this.v.onDidChangeFocus(u=>this.cb(u))),this.q(C.addDisposableListener(this.t,C.EventType.FOCUS_OUT,u=>{!this.g||C.isAncestor(u.relatedTarget,this.t)||this.ab()})),this.v.getHTMLElement().setAttribute("aria-label",this.h.ariaLabel||""),this.v.getHTMLElement().setAttribute("aria-expanded","true"),this.O()}Z(s){if(!this.v.length)return;C.EventHelper.stop(s);const l=s.target;if(!l||l.classList.contains("slider"))return;const o=l.closest(".monaco-list-row");if(!o)return;const u=Number(o.getAttribute("data-index")),h=o.classList.contains("option-disabled");u>=0&&u<this.l.length&&!h&&(this.m=u,this.select(this.m),this.v.setFocus([this.m]),this.v.reveal(this.v.getFocus()[0]),this.m!==this.z&&(this.z=this.m,this.n.fire({index:this.j.selectedIndex,selected:this.l[this.m].text}),!!this.l[this.m]&&!!this.l[this.m].text&&(this.j.title=this.l[this.m].text)),this.R(!0))}ab(){this.H||(this.m!==this.z&&this.select(this.z),this.R(!1))}bb(s,l){const o=h=>{for(let w=0;w<h.childNodes.length;w++){const m=h.childNodes.item(w);(m.tagName&&m.tagName.toLowerCase())==="img"?h.removeChild(m):o(m)}},u=(0,I.renderMarkdown)({value:s,supportThemeIcons:!0},{actionHandler:l});return u.element.classList.add("select-box-description-markdown"),o(u.element),u.element}cb(s){!this.g||!this.C||this.db(s.indexes[0])}db(s){var l,o;this.D.innerText="";const u=this.l[s],h=(l=u?.description)!==null&&l!==void 0?l:"",w=(o=u?.descriptionIsMarkdown)!==null&&o!==void 0?o:!1;if(h){if(w){const m=u.descriptionMarkdownActionHandler;this.D.appendChild(this.bb(h,m))}else this.D.innerText=h;this.D.style.display="block"}else this.D.style.display="none";this.F=!0,this.s.layout(),this.F=!1}eb(s){C.EventHelper.stop(s),this.select(this.z),this.R(!0)}fb(s){C.EventHelper.stop(s),this.m!==this.z&&(this.z=this.m,this.n.fire({index:this.j.selectedIndex,selected:this.l[this.m].text}),!!this.l[this.m]&&!!this.l[this.m].text&&(this.j.title=this.l[this.m].text)),this.R(!0)}gb(s){if(this.m<this.l.length-1){C.EventHelper.stop(s,!0);const l=this.l[this.m+1].isDisabled;if(l&&this.l.length>this.m+2)this.m+=2;else{if(l)return;this.m++}this.select(this.m),this.v.setFocus([this.m]),this.v.reveal(this.v.getFocus()[0])}}hb(s){this.m>0&&(C.EventHelper.stop(s,!0),this.l[this.m-1].isDisabled&&this.m>1?this.m-=2:this.m--,this.select(this.m),this.v.setFocus([this.m]),this.v.reveal(this.v.getFocus()[0]))}ib(s){C.EventHelper.stop(s),this.v.focusPreviousPage(),setTimeout(()=>{this.m=this.v.getFocus()[0],this.l[this.m].isDisabled&&this.m<this.l.length-1&&(this.m++,this.v.setFocus([this.m])),this.v.reveal(this.m),this.select(this.m)},1)}jb(s){C.EventHelper.stop(s),this.v.focusNextPage(),setTimeout(()=>{this.m=this.v.getFocus()[0],this.l[this.m].isDisabled&&this.m>0&&(this.m--,this.v.setFocus([this.m])),this.v.reveal(this.m),this.select(this.m)},1)}kb(s){C.EventHelper.stop(s),!(this.l.length<2)&&(this.m=0,this.l[this.m].isDisabled&&this.m>1&&this.m++,this.v.setFocus([this.m]),this.v.reveal(this.m),this.select(this.m))}lb(s){C.EventHelper.stop(s),!(this.l.length<2)&&(this.m=this.l.length-1,this.l[this.m].isDisabled&&this.m>1&&this.m--,this.v.setFocus([this.m]),this.v.reveal(this.m),this.select(this.m))}mb(s){const l=f.KeyCodeUtils.toString(s.keyCode);let o=-1;for(let u=0;u<this.l.length-1;u++)if(o=(u+this.m+1)%this.l.length,this.l[o].text.charAt(0).toUpperCase()===l&&!this.l[o].isDisabled){this.select(o),this.v.setFocus([o]),this.v.reveal(this.v.getFocus()[0]),C.EventHelper.stop(s);break}}dispose(){this.R(!1),super.dispose()}}c.a=32,c.b=2,c.c=3,e.SelectBoxList=c}),define(_[534],ee([1,0,533,528,67,16,365]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SelectBox=void 0;class L extends E.Widget{constructor(v,f,g,i,t){super(),I.isMacintosh&&!t?.useCustomDrawn?this.a=new N.SelectBoxNative(v,f,i,t):this.a=new C.SelectBoxList(v,f,g,i,t),this.q(this.a)}get onDidSelect(){return this.a.onDidSelect}setOptions(v,f){this.a.setOptions(v,f)}select(v){this.a.select(v)}focus(){this.a.focus()}blur(){this.a.blur()}setFocusable(v){this.a.setFocusable(v)}render(v){this.a.render(v)}}e.SelectBox=L}),define(_[140],ee([1,0,45,127,7,56,275,534,41,2,16,18,503,241]),function(q,e,C,N,E,I,L,S,v,f,g,i,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SelectActionViewItem=e.ActionViewItem=e.BaseActionViewItem=void 0;class n extends f.Disposable{get action(){return this._action}constructor(d,s,l={}){super(),this.l=l,this._context=d||this,this._action=s,s instanceof v.Action&&this.q(s.onDidChange(o=>{!this.element||this.m(o)}))}m(d){d.enabled!==void 0&&this.n(),d.checked!==void 0&&this.w(),d.class!==void 0&&this.v(),d.label!==void 0&&(this.p(),this.t()),d.tooltip!==void 0&&this.t()}get actionRunner(){return this.j||(this.j=this.q(new v.ActionRunner)),this.j}set actionRunner(d){this.j=d}isEnabled(){return this._action.enabled}setActionContext(d){this._context=d}render(d){const s=this.element=d;this.q(I.Gesture.addTarget(d));const l=this.l&&this.l.draggable;l&&(d.draggable=!0,C.isFirefox&&this.q((0,E.addDisposableListener)(d,E.EventType.DRAG_START,o=>{var u;return(u=o.dataTransfer)===null||u===void 0?void 0:u.setData(N.DataTransfers.TEXT,this._action.label)}))),this.q((0,E.addDisposableListener)(s,I.EventType.Tap,o=>this.onClick(o,!0))),this.q((0,E.addDisposableListener)(s,E.EventType.MOUSE_DOWN,o=>{l||E.EventHelper.stop(o,!0),this._action.enabled&&o.button===0&&s.classList.add("active")})),g.isMacintosh&&this.q((0,E.addDisposableListener)(s,E.EventType.CONTEXT_MENU,o=>{o.button===0&&o.ctrlKey===!0&&this.onClick(o)})),this.q((0,E.addDisposableListener)(s,E.EventType.CLICK,o=>{E.EventHelper.stop(o,!0),this.l&&this.l.isMenu||this.onClick(o)})),this.q((0,E.addDisposableListener)(s,E.EventType.DBLCLICK,o=>{E.EventHelper.stop(o,!0)})),[E.EventType.MOUSE_UP,E.EventType.MOUSE_OUT].forEach(o=>{this.q((0,E.addDisposableListener)(s,o,u=>{E.EventHelper.stop(u),s.classList.remove("active")}))})}onClick(d,s=!1){var l;E.EventHelper.stop(d,!0);const o=i.isUndefinedOrNull(this._context)?!((l=this.l)===null||l===void 0)&&l.useEventAsContext?d:{preserveFocus:s}:this._context;this.actionRunner.run(this._action,o)}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(d){this.element&&(this.element.tabIndex=d?0:-1)}get trapsArrowNavigation(){return!1}n(){}p(){}r(){return this.action.tooltip}t(){var d;if(!this.element)return;const s=(d=this.r())!==null&&d!==void 0?d:"";this.u(),this.l.hoverDelegate?(this.element.title="",this.b?this.b.update(s):(this.b=(0,L.setupCustomHover)(this.l.hoverDelegate,this.element,s),this.f.add(this.b))):this.element.title=s}u(){var d;if(this.element){const s=(d=this.r())!==null&&d!==void 0?d:"";this.element.setAttribute("aria-label",s)}}v(){}w(){}dispose(){this.element&&(this.element.remove(),this.element=void 0),this._context=void 0,super.dispose()}}e.BaseActionViewItem=n;class a extends n{constructor(d,s,l){super(d,s,l),this.l=l,this.l.icon=l.icon!==void 0?l.icon:!1,this.l.label=l.label!==void 0?l.label:!0,this.z=""}render(d){super.render(d),this.element&&(this.s=(0,E.append)(this.element,(0,E.$)("a.action-label"))),this.s&&(this._action.id===v.Separator.ID?this.s.setAttribute("role","presentation"):this.l.isMenu?this.s.setAttribute("role","menuitem"):this.s.setAttribute("role","button")),this.l.label&&this.l.keybinding&&this.element&&((0,E.append)(this.element,(0,E.$)("span.keybinding")).textContent=this.l.keybinding),this.v(),this.p(),this.t(),this.n(),this.w()}focus(){this.s&&(this.s.tabIndex=0,this.s.focus())}blur(){this.s&&(this.s.tabIndex=-1)}setFocusable(d){this.s&&(this.s.tabIndex=d?0:-1)}p(){this.l.label&&this.s&&(this.s.textContent=this.action.label)}r(){let d=null;return this.action.tooltip?d=this.action.tooltip:!this.l.label&&this.action.label&&this.l.icon&&(d=this.action.label,this.l.keybinding&&(d=t.localize(0,null,d,this.l.keybinding))),d??void 0}v(){var d;this.z&&this.s&&this.s.classList.remove(...this.z.split(" ")),this.l.icon?(this.z=this.action.class,this.s&&(this.s.classList.add("codicon"),this.z&&this.s.classList.add(...this.z.split(" "))),this.n()):(d=this.s)===null||d===void 0||d.classList.remove("codicon")}n(){var d,s;this.action.enabled?(this.s&&(this.s.removeAttribute("aria-disabled"),this.s.classList.remove("disabled")),(d=this.element)===null||d===void 0||d.classList.remove("disabled")):(this.s&&(this.s.setAttribute("aria-disabled","true"),this.s.classList.add("disabled")),(s=this.element)===null||s===void 0||s.classList.add("disabled"))}u(){var d;if(this.s){const s=(d=this.r())!==null&&d!==void 0?d:"";this.s.setAttribute("aria-label",s)}}w(){this.s&&(this.action.checked?this.s.classList.add("checked"):this.s.classList.remove("checked"))}}e.ActionViewItem=a;class r extends n{constructor(d,s,l,o,u,h,w){super(d,s),this.c=new S.SelectBox(l,o,u,h,w),this.c.setFocusable(!1),this.q(this.c),this.g()}select(d){this.c.select(d)}g(){this.q(this.c.onDidSelect(d=>this.h(d.selected,d.index)))}h(d,s){this.actionRunner.run(this._action,this.i(d,s))}i(d,s){return d}setFocusable(d){this.c.setFocusable(d)}focus(){var d;(d=this.c)===null||d===void 0||d.focus()}blur(){var d;(d=this.c)===null||d===void 0||d.blur()}render(d){this.c.render(d)}}e.SelectActionViewItem=r}),define(_[68],ee([1,0,7,43,140,41,6,2,18,241]),function(q,e,C,N,E,I,L,S,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ActionBar=void 0;class f extends S.Disposable{constructor(i,t={}){var n,a,r,c,d,s;super(),this.h=this.q(new S.DisposableStore),this.m=this.q(new S.DisposableMap),this.s=!1,this.t=!0,this.v=this.q(new L.Emitter),this.onDidBlur=this.v.event,this.w=this.q(new L.Emitter({onWillAddFirstListener:()=>this.y=!0})),this.onDidCancel=this.w.event,this.y=!1,this.z=this.q(new L.Emitter),this.onDidRun=this.z.event,this.B=this.q(new L.Emitter),this.onWillRun=this.B.event,this.b=t,this.j=(n=t.context)!==null&&n!==void 0?n:null,this.k=(a=this.b.orientation)!==null&&a!==void 0?a:0,this.l={keyDown:(c=(r=this.b.triggerKeys)===null||r===void 0?void 0:r.keyDown)!==null&&c!==void 0?c:!1,keys:(s=(d=this.b.triggerKeys)===null||d===void 0?void 0:d.keys)!==null&&s!==void 0?s:[3,10]},this.b.actionRunner?this.g=this.b.actionRunner:(this.g=new I.ActionRunner,this.h.add(this.g)),this.h.add(this.g.onDidRun(u=>this.z.fire(u))),this.h.add(this.g.onWillRun(u=>this.B.fire(u))),this.viewItems=[],this.p=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar",t.animated!==!1&&this.domNode.classList.add("animated");let l,o;switch(this.k){case 0:l=[15],o=[17];break;case 1:l=[16],o=[18],this.domNode.className+=" vertical";break}this.q(C.addDisposableListener(this.domNode,C.EventType.KEY_DOWN,u=>{const h=new N.StandardKeyboardEvent(u);let w=!0;const m=typeof this.p=="number"?this.viewItems[this.p]:void 0;l&&(h.equals(l[0])||h.equals(l[1]))?w=this.J():o&&(h.equals(o[0])||h.equals(o[1]))?w=this.I():h.equals(9)&&this.y?this.w.fire():h.equals(14)?w=this.G():h.equals(13)?w=this.H():h.equals(2)&&m instanceof E.BaseActionViewItem&&m.trapsArrowNavigation?w=this.I():this.D(h)?this.l.keyDown?this.M(h):this.s=!0:w=!1,w&&(h.preventDefault(),h.stopPropagation())})),this.q(C.addDisposableListener(this.domNode,C.EventType.KEY_UP,u=>{const h=new N.StandardKeyboardEvent(u);this.D(h)?(!this.l.keyDown&&this.s&&(this.s=!1,this.M(h)),h.preventDefault(),h.stopPropagation()):(h.equals(2)||h.equals(1026))&&this.F()})),this.r=this.q(C.trackFocus(this.domNode)),this.q(this.r.onDidBlur(()=>{(C.getActiveElement()===this.domNode||!C.isAncestor(C.getActiveElement(),this.domNode))&&(this.v.fire(),this.p=void 0,this.n=void 0,this.s=!1)})),this.q(this.r.onDidFocus(()=>this.F())),this.u=document.createElement("ul"),this.u.className="actions-container",this.u.setAttribute("role",this.b.ariaRole||"toolbar"),this.b.ariaLabel&&this.u.setAttribute("aria-label",this.b.ariaLabel),this.domNode.appendChild(this.u),i.appendChild(this.domNode)}C(){this.length()>=2?this.u.setAttribute("role",this.b.ariaRole||"toolbar"):this.u.setAttribute("role","presentation")}setFocusable(i){if(this.t=i,this.t){const t=this.viewItems.find(n=>n instanceof E.BaseActionViewItem&&n.isEnabled());t instanceof E.BaseActionViewItem&&t.setFocusable(!0)}else this.viewItems.forEach(t=>{t instanceof E.BaseActionViewItem&&t.setFocusable(!1)})}D(i){let t=!1;return this.l.keys.forEach(n=>{t=t||i.equals(n)}),t}F(){for(let i=0;i<this.u.children.length;i++){const t=this.u.children[i];if(C.isAncestor(C.getActiveElement(),t)){this.p=i;break}}}get context(){return this.j}set context(i){this.j=i,this.viewItems.forEach(t=>t.setActionContext(i))}get actionRunner(){return this.g}set actionRunner(i){this.g=i,this.h.clear(),this.h.add(this.g.onDidRun(t=>this.z.fire(t))),this.h.add(this.g.onWillRun(t=>this.B.fire(t))),this.viewItems.forEach(t=>t.actionRunner=i)}getContainer(){return this.domNode}getAction(i){var t;if(typeof i=="number")return(t=this.viewItems[i])===null||t===void 0?void 0:t.action;if(i instanceof HTMLElement){for(;i.parentElement!==this.u;){if(!i.parentElement)return;i=i.parentElement}for(let n=0;n<this.u.childNodes.length;n++)if(this.u.childNodes[n]===i)return this.viewItems[n].action}}push(i,t={}){const n=Array.isArray(i)?i:[i];let a=v.isNumber(t.index)?t.index:null;n.forEach(r=>{const c=document.createElement("li");c.className="action-item",c.setAttribute("role","presentation");let d;const s=Object.assign({hoverDelegate:this.b.hoverDelegate},t);this.b.actionViewItemProvider&&(d=this.b.actionViewItemProvider(r,s)),d||(d=new E.ActionViewItem(this.context,r,s)),this.b.allowContextMenu||this.m.set(d,C.addDisposableListener(c,C.EventType.CONTEXT_MENU,l=>{C.EventHelper.stop(l,!0)})),d.actionRunner=this.g,d.setActionContext(this.context),d.render(c),this.t&&d instanceof E.BaseActionViewItem&&this.viewItems.length===0&&d.setFocusable(!0),a===null||a<0||a>=this.u.children.length?(this.u.appendChild(c),this.viewItems.push(d)):(this.u.insertBefore(c,this.u.children[a]),this.viewItems.splice(a,0,d),a++)}),typeof this.p=="number"&&this.focus(this.p),this.C()}clear(){this.isEmpty()||(this.viewItems=(0,S.dispose)(this.viewItems),this.m.clearAndDisposeAll(),C.clearNode(this.u),this.C())}length(){return this.viewItems.length}isEmpty(){return this.viewItems.length===0}focus(i){let t=!1,n;if(i===void 0?t=!0:typeof i=="number"?n=i:typeof i=="boolean"&&(t=i),t&&typeof this.p>"u"){const a=this.viewItems.findIndex(r=>r.isEnabled());this.p=a===-1?void 0:a,this.L(void 0,void 0,!0)}else n!==void 0&&(this.p=n),this.L(void 0,void 0,!0)}G(){return this.p=this.length()-1,this.I(!0)}H(){return this.p=0,this.J(!0)}I(i){if(typeof this.p>"u")this.p=this.viewItems.length-1;else if(this.viewItems.length<=1)return!1;const t=this.p;let n;do{if(!i&&this.b.preventLoopNavigation&&this.p+1>=this.viewItems.length)return this.p=t,!1;this.p=(this.p+1)%this.viewItems.length,n=this.viewItems[this.p]}while(this.p!==t&&(this.b.focusOnlyEnabledItems&&!n.isEnabled()||n.action.id===I.Separator.ID));return this.L(),!0}J(i){if(typeof this.p>"u")this.p=0;else if(this.viewItems.length<=1)return!1;const t=this.p;let n;do{if(this.p=this.p-1,this.p<0){if(!i&&this.b.preventLoopNavigation)return this.p=t,!1;this.p=this.viewItems.length-1}n=this.viewItems[this.p]}while(this.p!==t&&(this.b.focusOnlyEnabledItems&&!n.isEnabled()||n.action.id===I.Separator.ID));return this.L(!0),!0}L(i,t,n=!1){var a;typeof this.p>"u"&&this.u.focus({preventScroll:t}),this.n!==void 0&&this.n!==this.p&&((a=this.viewItems[this.n])===null||a===void 0||a.blur());const r=this.p!==void 0&&this.viewItems[this.p];if(r){let c=!0;v.isFunction(r.focus)||(c=!1),this.b.focusOnlyEnabledItems&&v.isFunction(r.isEnabled)&&!r.isEnabled()&&(c=!1),r.action.id===I.Separator.ID&&(c=!1),c?(n||this.n!==this.p)&&(r.focus(i),this.n=this.p):(this.u.focus({preventScroll:t}),this.n=void 0)}}M(i){if(typeof this.p>"u")return;const t=this.viewItems[this.p];if(t instanceof E.BaseActionViewItem){const n=t._context===null||t._context===void 0?i:t._context;this.run(t._action,n)}}run(i,t){return ye(this,void 0,void 0,function*(){yield this.g.run(i,t)})}dispose(){this.j=void 0,this.viewItems=(0,S.dispose)(this.viewItems),this.getContainer().remove(),super.dispose()}}e.ActionBar=f}),define(_[282],ee([1,0,7,140,524,6,242]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DropdownMenuActionViewItem=void 0;class L extends N.BaseActionViewItem{constructor(v,f,g,i=Object.create(null)){super(null,v,i),this.k=null,this.y=this.q(new I.Emitter),this.onDidChangeVisibility=this.y.event,this.g=f,this.i=g,this.l=i,this.l.actionRunner&&(this.actionRunner=this.l.actionRunner)}render(v){this.k=v;const f=t=>{this.element=(0,C.append)(t,(0,C.$)("a.action-label"));let n=[];return typeof this.l.classNames=="string"?n=this.l.classNames.split(/\s+/g).filter(a=>!!a):this.l.classNames&&(n=this.l.classNames),n.find(a=>a==="icon")||n.push("codicon"),this.element.classList.add(...n),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},g=Array.isArray(this.g),i={contextMenuProvider:this.i,labelRenderer:f,menuAsChild:this.l.menuAsChild,actions:g?this.g:void 0,actionProvider:g?void 0:this.g};if(this.h=this.q(new E.DropdownMenu(v,i)),this.q(this.h.onDidChangeVisibility(t=>{var n;(n=this.element)===null||n===void 0||n.setAttribute("aria-expanded",`${t}`),this.y.fire(t)})),this.h.menuOptions={actionViewItemProvider:this.l.actionViewItemProvider,actionRunner:this.actionRunner,getKeyBinding:this.l.keybindingProvider,context:this._context},this.l.anchorAlignmentProvider){const t=this;this.h.menuOptions=Object.assign(Object.assign({},this.h.menuOptions),{get anchorAlignment(){return t.l.anchorAlignmentProvider()}})}this.t(),this.n()}r(){let v=null;return this.action.tooltip?v=this.action.tooltip:this.action.label&&(v=this.action.label),v??void 0}setActionContext(v){super.setActionContext(v),this.h&&(this.h.menuOptions?this.h.menuOptions.context=v:this.h.menuOptions={context:v})}show(){var v;(v=this.h)===null||v===void 0||v.show()}n(){var v,f;const g=!this.action.enabled;(v=this.k)===null||v===void 0||v.classList.toggle("disabled",g),(f=this.element)===null||f===void 0||f.classList.toggle("disabled",g)}}e.DropdownMenuActionViewItem=L}),define(_[209],ee([1,0,7,75,203,68,52,76,67,6,348,508,359]),function(q,e,C,N,E,I,L,S,v,f,g,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HistoryInputBox=e.InputBox=e.unthemedInboxStyles=void 0;const t=C.$;e.unthemedInboxStyles={inputBackground:"#3C3C3C",inputForeground:"#CCCCCC",inputValidationInfoBorder:"#55AAFF",inputValidationInfoBackground:"#063B49",inputValidationWarningBorder:"#B89500",inputValidationWarningBackground:"#352A05",inputValidationErrorBorder:"#BE1100",inputValidationErrorBackground:"#5A1D1D",inputBorder:void 0,inputValidationErrorForeground:void 0,inputValidationInfoForeground:void 0,inputValidationWarningForeground:void 0};class n extends v.Widget{constructor(c,d,s){var l;super(),this.v="idle",this.F=Number.POSITIVE_INFINITY,this.H=this.q(new f.Emitter),this.onDidChange=this.H.event,this.I=this.q(new f.Emitter),this.onDidHeightChange=this.I.event,this.a=d,this.h=s,this.i=null,this.l=this.h.placeholder||"",this.r=(l=this.h.tooltip)!==null&&l!==void 0?l:this.l||"",this.s=this.h.ariaLabel||"",this.h.validationOptions&&(this.t=this.h.validationOptions.validation),this.element=C.append(c,t(".monaco-inputbox.idle"));const o=this.h.flexibleHeight?"textarea":"input",u=C.append(this.element,t(".ibwrapper"));if(this.b=C.append(u,t(o+".input.empty")),this.b.setAttribute("autocorrect","off"),this.b.setAttribute("autocapitalize","off"),this.b.setAttribute("spellcheck","false"),this.z(this.b,()=>this.element.classList.add("synthetic-focus")),this.y(this.b,()=>this.element.classList.remove("synthetic-focus")),this.h.flexibleHeight){this.F=typeof this.h.flexibleMaxHeight=="number"?this.h.flexibleMaxHeight:Number.POSITIVE_INFINITY,this.w=C.append(u,t("div.mirror")),this.w.innerText="\xA0",this.G=new S.ScrollableElement(this.element,{vertical:1}),this.h.flexibleWidth&&(this.b.setAttribute("wrap","off"),this.w.style.whiteSpace="pre",this.w.style.wordWrap="initial"),C.append(c,this.G.getDomNode()),this.q(this.G),this.q(this.G.onScroll(m=>this.b.scrollTop=m.scrollTop));const h=this.q(new N.DomEmitter(document,"selectionchange")),w=f.Event.filter(h.event,()=>{const m=document.getSelection();return m?.anchorNode===u});this.q(w(this.M,this)),this.q(this.onDidHeightChange(this.M,this))}else this.b.type=this.h.type||"text",this.b.setAttribute("wrap","off");this.s&&this.b.setAttribute("aria-label",this.s),this.l&&!this.h.showPlaceholderOnFocus&&this.setPlaceHolder(this.l),this.r&&this.setTooltip(this.r),this.u(this.b,()=>this.Q()),this.y(this.b,()=>this.J()),this.z(this.b,()=>this.L()),this.q(this.B(this.b)),setTimeout(()=>this.R(),0),this.h.actions&&(this.g=this.q(new I.ActionBar(this.element)),this.g.push(this.h.actions,{icon:!0,label:!1})),this.S()}J(){this.P(),this.h.showPlaceholderOnFocus&&this.b.setAttribute("placeholder","")}L(){this.O(),this.h.showPlaceholderOnFocus&&this.b.setAttribute("placeholder",this.l||"")}setPlaceHolder(c){this.l=c,this.b.setAttribute("placeholder",c)}setTooltip(c){this.r=c,this.b.title=c}setAriaLabel(c){this.s=c,c?this.b.setAttribute("aria-label",this.s):this.b.removeAttribute("aria-label")}getAriaLabel(){return this.s}get inputElement(){return this.b}get value(){return this.b.value}set value(c){this.b.value!==c&&(this.b.value=c,this.Q())}get height(){return typeof this.C=="number"?this.C:C.getTotalHeight(this.element)}focus(){this.b.focus()}blur(){this.b.blur()}hasFocus(){return document.activeElement===this.b}select(c=null){this.b.select(),c&&(this.b.setSelectionRange(c.start,c.end),c.end===this.b.value.length&&(this.b.scrollLeft=this.b.scrollWidth))}isSelectionAtEnd(){return this.b.selectionEnd===this.b.value.length&&this.b.selectionStart===this.b.selectionEnd}enable(){this.b.removeAttribute("disabled")}disable(){this.blur(),this.b.disabled=!0,this.P()}set paddingRight(c){this.b.style.width=`calc(100% - ${c}px)`,this.w&&(this.w.style.paddingRight=c+"px")}M(){if(typeof this.D!="number"||typeof this.C!="number"||!this.G)return;const c=this.D,d=this.C,s=this.b.scrollTop;this.G.setScrollDimensions({scrollHeight:c,height:d}),this.G.setScrollPosition({scrollTop:s})}showMessage(c,d){this.i=c,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.N(c.type));const s=this.stylesForType(this.i.type);this.element.style.border=`1px solid ${C.asCssValueWithDefault(s.border,"transparent")}`,this.i.content&&(this.hasFocus()||d)&&this.O()}hideMessage(){this.i=null,this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add("idle"),this.P(),this.S()}validate(){let c=null;return this.t&&(c=this.t(this.value),c?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(c)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),c?.type}stylesForType(c){const d=this.h.inputBoxStyles;switch(c){case 1:return{border:d.inputValidationInfoBorder,background:d.inputValidationInfoBackground,foreground:d.inputValidationInfoForeground};case 2:return{border:d.inputValidationWarningBorder,background:d.inputValidationWarningBackground,foreground:d.inputValidationWarningForeground};default:return{border:d.inputValidationErrorBorder,background:d.inputValidationErrorBackground,foreground:d.inputValidationErrorForeground}}}N(c){switch(c){case 1:return"info";case 2:return"warning";default:return"error"}}O(){if(!this.a||!this.i)return;let c;const d=()=>c.style.width=C.getTotalWidth(this.element)+"px";this.a.showContextView({getAnchor:()=>this.element,anchorAlignment:1,render:l=>{var o,u;if(!this.i)return null;c=C.append(l,t(".monaco-inputbox-container")),d();const h={inline:!0,className:"monaco-inputbox-message"},w=this.i.formatContent?(0,E.renderFormattedText)(this.i.content,h):(0,E.renderText)(this.i.content,h);w.classList.add(this.N(this.i.type));const m=this.stylesForType(this.i.type);return w.style.backgroundColor=(o=m.background)!==null&&o!==void 0?o:"",w.style.color=(u=m.foreground)!==null&&u!==void 0?u:"",w.style.border=m.border?`1px solid ${m.border}`:"",C.append(c,w),null},onHide:()=>{this.v="closed"},layout:d});let s;this.i.type===3?s=i.localize(0,null,this.i.content):this.i.type===2?s=i.localize(1,null,this.i.content):s=i.localize(2,null,this.i.content),L.alert(s),this.v="open"}P(){!this.a||(this.v==="open"&&this.a.hideContextView(),this.v="idle")}Q(){this.H.fire(this.value),this.validate(),this.R(),this.b.classList.toggle("empty",!this.value),this.v==="open"&&this.a&&this.a.layout()}R(){if(!this.w)return;const c=this.value,s=c.charCodeAt(c.length-1)===10?" ":"";(c+s).replace(/\u000c/g,"")?this.w.textContent=c+s:this.w.innerText="\xA0",this.layout()}S(){var c,d,s;const l=this.h.inputBoxStyles,o=(c=l.inputBackground)!==null&&c!==void 0?c:"",u=(d=l.inputForeground)!==null&&d!==void 0?d:"",h=(s=l.inputBorder)!==null&&s!==void 0?s:"";this.element.style.backgroundColor=o,this.element.style.color=u,this.b.style.backgroundColor="inherit",this.b.style.color=u,this.element.style.border=`1px solid ${C.asCssValueWithDefault(h,"transparent")}`}layout(){if(!this.w)return;const c=this.D;this.D=C.getTotalHeight(this.w),c!==this.D&&(this.C=Math.min(this.D,this.F),this.b.style.height=this.C+"px",this.I.fire(this.D))}insertAtCursor(c){const d=this.inputElement,s=d.selectionStart,l=d.selectionEnd,o=d.value;s!==null&&l!==null&&(this.value=o.substr(0,s)+c+o.substr(l),d.setSelectionRange(s+1,s+1),this.layout())}dispose(){var c;this.P(),this.i=null,(c=this.g)===null||c===void 0||c.dispose(),super.dispose()}}e.InputBox=n;class a extends n{constructor(c,d,s){const l=i.localize(3,null),o=` or \u21C5 ${l}`,u=` (\u21C5 ${l})`;super(c,d,s),this.X=this.q(new f.Emitter),this.onDidFocus=this.X.event,this.Y=this.q(new f.Emitter),this.onDidBlur=this.Y.event,this.U=new g.HistoryNavigator(s.history,100);const h=()=>{if(s.showHistoryHint&&s.showHistoryHint()&&!this.l.endsWith(o)&&!this.l.endsWith(u)&&this.U.getHistory().length){const w=this.l.endsWith(")")?o:u,m=this.l+w;s.showPlaceholderOnFocus&&document.activeElement!==this.b?this.l=m:this.setPlaceHolder(m)}};this.W=new MutationObserver((w,m)=>{w.forEach(p=>{p.target.textContent||h()})}),this.W.observe(this.b,{attributeFilter:["class"]}),this.z(this.b,()=>h()),this.y(this.b,()=>{const w=m=>{if(this.l.endsWith(m)){const p=this.l.slice(0,this.l.length-m.length);return s.showPlaceholderOnFocus?this.l=p:this.setPlaceHolder(p),!0}else return!1};w(u)||w(o)})}dispose(){super.dispose(),this.W&&(this.W.disconnect(),this.W=void 0)}addToHistory(c){this.value&&(c||this.value!==this.bb())&&this.U.add(this.value)}isAtLastInHistory(){return this.U.isLast()}isNowhereInHistory(){return this.U.isNowhere()}showNextValue(){this.U.has(this.value)||this.addToHistory();let c=this.db();c&&(c=c===this.value?this.db():c),c&&(this.value=c,L.status(this.value))}showPreviousValue(){this.U.has(this.value)||this.addToHistory();let c=this.cb();c&&(c=c===this.value?this.cb():c),c&&(this.value=c,L.status(this.value))}J(){super.J(),this.Y.fire()}L(){super.L(),this.X.fire()}bb(){let c=this.U.current();return c||(c=this.U.last(),this.U.next()),c}cb(){return this.U.previous()||this.U.first()}db(){return this.U.next()||this.U.last()}}e.HistoryInputBox=a}),define(_[210],ee([1,0,7,280,209,67,6,504,2,243]),function(q,e,C,N,E,I,L,S,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FindInput=void 0;const f=S.localize(0,null);class g extends I.Widget{constructor(t,n,a){super(),this.i=!0,this.l=!1,this.s=new v.DisposableStore,this.F=[],this.G=this.q(new L.Emitter),this.onDidOptionChange=this.G.event,this.H=this.q(new L.Emitter),this.onKeyDown=this.H.event,this.I=this.q(new L.Emitter),this.onMouseDown=this.I.event,this.J=this.q(new L.Emitter),this.L=this.q(new L.Emitter),this.M=this.q(new L.Emitter),this.onCaseSensitiveKeyDown=this.M.event,this.N=this.q(new L.Emitter),this.onRegexKeyDown=this.N.event,this.O=0,this.a=a.placeholder||"",this.b=a.validation,this.g=a.label||f,this.h=!!a.showCommonFindToggles;const r=a.appendCaseSensitiveLabel||"",c=a.appendWholeWordsLabel||"",d=a.appendRegexLabel||"",s=a.history||[],l=!!a.flexibleHeight,o=!!a.flexibleWidth,u=a.flexibleMaxHeight;if(this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this.q(new E.HistoryInputBox(this.domNode,n,{placeholder:this.a||"",ariaLabel:this.g||"",validationOptions:{validation:this.b},history:s,showHistoryHint:a.showHistoryHint,flexibleHeight:l,flexibleWidth:o,flexibleMaxHeight:u,inputBoxStyles:a.inputBoxStyles})),this.h){this.w=this.q(new N.RegexToggle(Object.assign({appendTitle:d,isChecked:!1},a.toggleStyles))),this.q(this.w.onChange(w=>{this.G.fire(w),!w&&this.i&&this.inputBox.focus(),this.validate()})),this.q(this.w.onKeyDown(w=>{this.N.fire(w)})),this.C=this.q(new N.WholeWordsToggle(Object.assign({appendTitle:c,isChecked:!1},a.toggleStyles))),this.q(this.C.onChange(w=>{this.G.fire(w),!w&&this.i&&this.inputBox.focus(),this.validate()})),this.D=this.q(new N.CaseSensitiveToggle(Object.assign({appendTitle:r,isChecked:!1},a.toggleStyles))),this.q(this.D.onChange(w=>{this.G.fire(w),!w&&this.i&&this.inputBox.focus(),this.validate()})),this.q(this.D.onKeyDown(w=>{this.M.fire(w)}));const h=[this.D.domNode,this.C.domNode,this.w.domNode];this.n(this.domNode,w=>{if(w.equals(15)||w.equals(17)||w.equals(9)){const m=h.indexOf(document.activeElement);if(m>=0){let p=-1;w.equals(17)?p=(m+1)%h.length:w.equals(15)&&(m===0?p=h.length-1:p=m-1),w.equals(9)?(h[m].blur(),this.inputBox.focus()):p>=0&&h[p].focus(),C.EventHelper.stop(w,!0)}}})}this.v=document.createElement("div"),this.v.className="controls",this.v.style.display=this.h?"block":"none",this.D&&this.v.append(this.D.domNode),this.C&&this.v.appendChild(this.C.domNode),this.w&&this.v.appendChild(this.w.domNode),this.setAdditionalToggles(a?.additionalToggles),this.v&&this.domNode.appendChild(this.v),t?.appendChild(this.domNode),this.q(C.addDisposableListener(this.inputBox.inputElement,"compositionstart",h=>{this.l=!0})),this.q(C.addDisposableListener(this.inputBox.inputElement,"compositionend",h=>{this.l=!1,this.J.fire()})),this.n(this.inputBox.inputElement,h=>this.H.fire(h)),this.p(this.inputBox.inputElement,h=>this.L.fire(h)),this.u(this.inputBox.inputElement,h=>this.J.fire()),this.j(this.inputBox.inputElement,h=>this.I.fire(h))}get onDidChange(){return this.inputBox.onDidChange}enable(){var t,n,a;this.domNode.classList.remove("disabled"),this.inputBox.enable(),(t=this.w)===null||t===void 0||t.enable(),(n=this.C)===null||n===void 0||n.enable(),(a=this.D)===null||a===void 0||a.enable();for(const r of this.F)r.enable()}disable(){var t,n,a;this.domNode.classList.add("disabled"),this.inputBox.disable(),(t=this.w)===null||t===void 0||t.disable(),(n=this.C)===null||n===void 0||n.disable(),(a=this.D)===null||a===void 0||a.disable();for(const r of this.F)r.disable()}setFocusInputOnOptionClick(t){this.i=t}setEnabled(t){t?this.enable():this.disable()}setAdditionalToggles(t){var n,a,r,c,d,s;for(const l of this.F)l.domNode.remove();this.F=[],this.s.dispose(),this.s=new v.DisposableStore;for(const l of t??[])this.s.add(l),this.v.appendChild(l.domNode),this.s.add(l.onChange(o=>{this.G.fire(o),!o&&this.i&&this.inputBox.focus()})),this.F.push(l);this.F.length>0&&(this.v.style.display="block"),this.inputBox.paddingRight=((a=(n=this.D)===null||n===void 0?void 0:n.width())!==null&&a!==void 0?a:0)+((c=(r=this.C)===null||r===void 0?void 0:r.width())!==null&&c!==void 0?c:0)+((s=(d=this.w)===null||d===void 0?void 0:d.width())!==null&&s!==void 0?s:0)+this.F.reduce((l,o)=>l+o.width(),0)}getValue(){return this.inputBox.value}setValue(t){this.inputBox.value!==t&&(this.inputBox.value=t)}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getCaseSensitive(){var t,n;return(n=(t=this.D)===null||t===void 0?void 0:t.checked)!==null&&n!==void 0?n:!1}setCaseSensitive(t){this.D&&(this.D.checked=t)}getWholeWords(){var t,n;return(n=(t=this.C)===null||t===void 0?void 0:t.checked)!==null&&n!==void 0?n:!1}setWholeWords(t){this.C&&(this.C.checked=t)}getRegex(){var t,n;return(n=(t=this.w)===null||t===void 0?void 0:t.checked)!==null&&n!==void 0?n:!1}setRegex(t){this.w&&(this.w.checked=t,this.validate())}focusOnCaseSensitive(){var t;(t=this.D)===null||t===void 0||t.focus()}highlightFindOptions(){this.domNode.classList.remove("highlight-"+this.O),this.O=1-this.O,this.domNode.classList.add("highlight-"+this.O)}validate(){this.inputBox.validate()}showMessage(t){this.inputBox.showMessage(t)}clearMessage(){this.inputBox.hideMessage()}}e.FindInput=g}),define(_[535],ee([1,0,7,139,209,67,29,6,506,243]),function(q,e,C,N,E,I,L,S,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ReplaceInput=void 0;const f=v.localize(0,null),g=v.localize(1,null);class i extends N.Toggle{constructor(a){super({icon:L.Codicon.preserveCase,title:g+a.appendTitle,isChecked:a.isChecked,inputActiveOptionBorder:a.inputActiveOptionBorder,inputActiveOptionForeground:a.inputActiveOptionForeground,inputActiveOptionBackground:a.inputActiveOptionBackground})}}class t extends I.Widget{constructor(a,r,c,d){super(),this.F=c,this.i=!0,this.r=0,this.s=this.q(new S.Emitter),this.onDidOptionChange=this.s.event,this.t=this.q(new S.Emitter),this.onKeyDown=this.t.event,this.v=this.q(new S.Emitter),this.w=this.q(new S.Emitter),this.C=this.q(new S.Emitter),this.D=this.q(new S.Emitter),this.onPreserveCaseKeyDown=this.D.event,this.a=r,this.b=d.placeholder||"",this.g=d.validation,this.h=d.label||f;const s=d.appendPreserveCaseLabel||"",l=d.history||[],o=!!d.flexibleHeight,u=!!d.flexibleWidth,h=d.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this.q(new E.HistoryInputBox(this.domNode,this.a,{ariaLabel:this.h||"",placeholder:this.b||"",validationOptions:{validation:this.g},history:l,showHistoryHint:d.showHistoryHint,flexibleHeight:o,flexibleWidth:u,flexibleMaxHeight:h,inputBoxStyles:d.inputBoxStyles})),this.l=this.q(new i(Object.assign({appendTitle:s,isChecked:!1},d.toggleStyles))),this.q(this.l.onChange(p=>{this.s.fire(p),!p&&this.i&&this.inputBox.focus(),this.validate()})),this.q(this.l.onKeyDown(p=>{this.D.fire(p)})),this.F?this.r=this.l.width():this.r=0;const w=[this.l.domNode];this.n(this.domNode,p=>{if(p.equals(15)||p.equals(17)||p.equals(9)){const b=w.indexOf(document.activeElement);if(b>=0){let y=-1;p.equals(17)?y=(b+1)%w.length:p.equals(15)&&(b===0?y=w.length-1:y=b-1),p.equals(9)?(w[b].blur(),this.inputBox.focus()):y>=0&&w[y].focus(),C.EventHelper.stop(p,!0)}}});const m=document.createElement("div");m.className="controls",m.style.display=this.F?"block":"none",m.appendChild(this.l.domNode),this.domNode.appendChild(m),a?.appendChild(this.domNode),this.n(this.inputBox.inputElement,p=>this.t.fire(p)),this.p(this.inputBox.inputElement,p=>this.C.fire(p)),this.u(this.inputBox.inputElement,p=>this.w.fire()),this.j(this.inputBox.inputElement,p=>this.v.fire(p))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.l.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.l.disable()}setEnabled(a){a?this.enable():this.disable()}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getPreserveCase(){return this.l.checked}setPreserveCase(a){this.l.checked=a}focusOnPreserve(){this.l.focus()}validate(){var a;(a=this.inputBox)===null||a===void 0||a.validate()}set width(a){this.inputBox.paddingRight=this.r,this.domNode.style.width=a+"px"}dispose(){super.dispose()}}e.ReplaceInput=t}),define(_[536],ee([1,0,45,56,7,43,66,68,140,273,76,41,11,29,32,111,2,16,9]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.formatRule=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 l;(function(y){y[y.Right=0]="Right",y[y.Left=1]="Left"})(l=e.Direction||(e.Direction={}));class o extends S.ActionBar{constructor(k,D,M,z){k.classList.add("monaco-menu-container"),k.setAttribute("role","presentation");const R=document.createElement("div");R.classList.add("monaco-menu"),R.setAttribute("role","presentation"),super(R,{orientation:1,actionViewItemProvider:T=>this.ab(T,M,P),context:M.context,actionRunner:M.actionRunner,ariaLabel:M.ariaLabel,ariaRole:"menu",focusOnlyEnabledItems:!0,triggerKeys:{keys:[3,...d.isMacintosh||d.isLinux?[10]:[]],keyDown:!0}}),this.S=z,this.Q=R,this.u.tabIndex=0,this.O=this.q(new c.DisposableStore),this.U(k,z),this.q(N.Gesture.addTarget(R)),(0,E.addDisposableListener)(R,E.EventType.KEY_DOWN,T=>{new I.StandardKeyboardEvent(T).equals(2)&&T.preventDefault()}),M.enableMnemonics&&this.O.add((0,E.addDisposableListener)(R,E.EventType.KEY_DOWN,T=>{const O=T.key.toLocaleLowerCase();if(this.N.has(O)){E.EventHelper.stop(T,!0);const B=this.N.get(O);if(B.length===1&&(B[0]instanceof h&&B[0].container&&this.X(B[0].container),B[0].onClick(T)),B.length>1){const W=B.shift();W&&W.container&&(this.X(W.container),B.push(W)),this.N.set(O,B)}}})),d.isLinux&&this.q((0,E.addDisposableListener)(R,E.EventType.KEY_DOWN,T=>{const O=new I.StandardKeyboardEvent(T);O.equals(14)||O.equals(11)?(this.p=this.viewItems.length-1,this.I(),E.EventHelper.stop(T,!0)):(O.equals(13)||O.equals(12))&&(this.p=0,this.J(),E.EventHelper.stop(T,!0))})),this.q((0,E.addDisposableListener)(this.domNode,E.EventType.MOUSE_OUT,T=>{const O=T.relatedTarget;(0,E.isAncestor)(O,this.domNode)||(this.p=void 0,this.L(),T.stopPropagation())})),this.q((0,E.addDisposableListener)(this.u,E.EventType.MOUSE_OVER,T=>{let O=T.target;if(!(!O||!(0,E.isAncestor)(O,this.u)||O===this.u)){for(;O.parentElement!==this.u&&O.parentElement!==null;)O=O.parentElement;if(O.classList.contains("action-item")){const B=this.p;this.Y(O),B!==this.p&&this.L()}}})),this.q(N.Gesture.addTarget(this.u)),this.q((0,E.addDisposableListener)(this.u,N.EventType.Tap,T=>{let O=T.initialTarget;if(!(!O||!(0,E.isAncestor)(O,this.u)||O===this.u)){for(;O.parentElement!==this.u&&O.parentElement!==null;)O=O.parentElement;if(O.classList.contains("action-item")){const B=this.p;this.Y(O),B!==this.p&&this.L()}}}));const P={parent:this};this.N=new Map,this.P=this.q(new g.DomScrollableElement(R,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));const A=this.P.getDomNode();A.style.position="",this.W(A,z),this.q((0,E.addDisposableListener)(R,N.EventType.Change,T=>{E.EventHelper.stop(T,!0);const O=this.P.getScrollPosition().scrollTop;this.P.setScrollPosition({scrollTop:O-T.translationY})})),this.q((0,E.addDisposableListener)(A,E.EventType.MOUSE_UP,T=>{T.preventDefault()})),R.style.maxHeight=`${Math.max(10,window.innerHeight-k.getBoundingClientRect().top-35)}px`,D=D.filter(T=>{var O;return!((O=M.submenuIds)===null||O===void 0)&&O.has(T.id)?(console.warn(`Found submenu cycle: ${T.id}`),!1):!0}),this.push(D,{icon:!0,label:!0,isMenu:!0}),k.appendChild(this.P.getDomNode()),this.P.scanDomNode(),this.viewItems.filter(T=>!(T instanceof w)).forEach((T,O,B)=>{T.updatePositionInSet(O+1,B.length)})}U(k,D){this.R||((0,E.isInShadowDOM)(k)?this.R=(0,E.createStyleSheet)(k):(o.globalStyleSheet||(o.globalStyleSheet=(0,E.createStyleSheet)()),this.R=o.globalStyleSheet)),this.R.textContent=b(D,(0,E.isInShadowDOM)(k))}W(k,D){var M,z;const R=(M=D.foregroundColor)!==null&&M!==void 0?M:"",P=(z=D.backgroundColor)!==null&&z!==void 0?z:"",A=D.borderColor?`1px solid ${D.borderColor}`:"",T="5px",O=D.shadowColor?`0 2px 8px ${D.shadowColor}`:"";k.style.outline=A,k.style.borderRadius=T,k.style.color=R,k.style.backgroundColor=P,k.style.boxShadow=O}getContainer(){return this.P.getDomNode()}get onScroll(){return this.P.onScroll}X(k){const D=this.p;this.Y(k),D!==this.p&&this.L()}Y(k){for(let D=0;D<this.u.children.length;D++){const M=this.u.children[D];if(k===M){this.p=D;break}}}L(k){super.L(k,!0,!0),typeof this.p<"u"&&this.P.setScrollPosition({scrollTop:Math.round(this.Q.scrollTop)})}ab(k,D,M){if(k instanceof i.Separator)return new w(D.context,k,{icon:!0},this.S);if(k instanceof i.SubmenuAction){const z=new h(k,k.actions,M,Object.assign(Object.assign({},D),{submenuIds:new Set([...D.submenuIds||[],k.id])}),this.S);if(D.enableMnemonics){const R=z.getMnemonic();if(R&&z.isEnabled()){let P=[];this.N.has(R)&&(P=this.N.get(R)),P.push(z),this.N.set(R,P)}}return z}else{const z={enableMnemonics:D.enableMnemonics,useEventAsContext:D.useEventAsContext};if(D.getKeyBinding){const P=D.getKeyBinding(k);if(P){const A=P.getLabel();A&&(z.keybinding=A)}}const R=new u(D.context,k,z,this.S);if(D.enableMnemonics){const P=R.getMnemonic();if(P&&R.isEnabled()){let A=[];this.N.has(P)&&(A=this.N.get(P)),A.push(R),this.N.set(P,A)}}return R}}}e.Menu=o;class u extends v.BaseActionViewItem{constructor(k,D,M,z){if(M.isMenu=!0,super(D,D,M),this.C=z,this.l=M,this.l.icon=M.icon!==void 0?M.icon:!1,this.l.label=M.label!==void 0?M.label:!0,this.B="",this.l.label&&M.enableMnemonics){const R=this.action.label;if(R){const P=e.MENU_MNEMONIC_REGEX.exec(R);P&&(this.z=(P[1]?P[1]:P[3]).toLocaleLowerCase())}}this.k=new t.RunOnceScheduler(()=>{!this.element||(this.q((0,E.addDisposableListener)(this.element,E.EventType.MOUSE_UP,R=>{if(E.EventHelper.stop(R,!0),C.isFirefox){if(new L.StandardMouseEvent(R).rightButton)return;this.onClick(R)}else setTimeout(()=>{this.onClick(R)},0)})),this.q((0,E.addDisposableListener)(this.element,E.EventType.CONTEXT_MENU,R=>{E.EventHelper.stop(R,!0)})))},100),this.q(this.k)}render(k){super.render(k),this.element&&(this.container=k,this.h=(0,E.append)(this.element,(0,E.$)("a.action-menu-item")),this._action.id===i.Separator.ID?this.h.setAttribute("role","presentation"):(this.h.setAttribute("role","menuitem"),this.z&&this.h.setAttribute("aria-keyshortcuts",`${this.z}`)),this.y=(0,E.append)(this.h,(0,E.$)("span.menu-item-check"+a.ThemeIcon.asCSSSelector(n.Codicon.menuSelection))),this.y.setAttribute("role","none"),this.s=(0,E.append)(this.h,(0,E.$)("span.action-label")),this.l.label&&this.l.keybinding&&((0,E.append)(this.h,(0,E.$)("span.keybinding")).textContent=this.l.keybinding),this.k.schedule(),this.v(),this.p(),this.t(),this.n(),this.w(),this.J())}blur(){super.blur(),this.J()}focus(){var k;super.focus(),(k=this.h)===null||k===void 0||k.focus(),this.J()}updatePositionInSet(k,D){this.h&&(this.h.setAttribute("aria-posinset",`${k}`),this.h.setAttribute("aria-setsize",`${D}`))}p(){var k;if(!!this.s&&this.l.label){(0,E.clearNode)(this.s);let D=(0,r.stripIcons)(this.action.label);if(D){const M=m(D);this.l.enableMnemonics||(D=M),this.s.setAttribute("aria-label",M.replace(/&&/g,"&"));const z=e.MENU_MNEMONIC_REGEX.exec(D);if(z){D=s.escape(D),e.MENU_ESCAPED_MNEMONIC_REGEX.lastIndex=0;let R=e.MENU_ESCAPED_MNEMONIC_REGEX.exec(D);for(;R&&R[1];)R=e.MENU_ESCAPED_MNEMONIC_REGEX.exec(D);const P=A=>A.replace(/&&/g,"&");R?this.s.append(s.ltrim(P(D.substr(0,R.index))," "),(0,E.$)("u",{"aria-hidden":"true"},R[3]),s.rtrim(P(D.substr(R.index+R[0].length))," ")):this.s.innerText=P(D).trim(),(k=this.h)===null||k===void 0||k.setAttribute("aria-keyshortcuts",(z[1]?z[1]:z[3]).toLocaleLowerCase())}else this.s.innerText=D.replace(/&&/g,"&").trim()}}}t(){}v(){this.B&&this.h&&this.h.classList.remove(...this.B.split(" ")),this.l.icon&&this.s?(this.B=this.action.class||"",this.s.classList.add("icon"),this.B&&this.s.classList.add(...this.B.split(" ")),this.n()):this.s&&this.s.classList.remove("icon")}n(){this.action.enabled?(this.element&&(this.element.classList.remove("disabled"),this.element.removeAttribute("aria-disabled")),this.h&&(this.h.classList.remove("disabled"),this.h.removeAttribute("aria-disabled"),this.h.tabIndex=0)):(this.element&&(this.element.classList.add("disabled"),this.element.setAttribute("aria-disabled","true")),this.h&&(this.h.classList.add("disabled"),this.h.setAttribute("aria-disabled","true")))}w(){if(!this.h)return;const k=this.action.checked;this.h.classList.toggle("checked",!!k),k!==void 0?(this.h.setAttribute("role","menuitemcheckbox"),this.h.setAttribute("aria-checked",k?"true":"false")):(this.h.setAttribute("role","menuitem"),this.h.setAttribute("aria-checked",""))}getMnemonic(){return this.z}J(){const k=this.element&&this.element.classList.contains("focused"),D=k&&this.C.selectionForegroundColor?this.C.selectionForegroundColor:this.C.foregroundColor,M=k&&this.C.selectionBackgroundColor?this.C.selectionBackgroundColor:void 0,z=k&&this.C.selectionBorderColor?`1px solid ${this.C.selectionBorderColor}`:"",R=k&&this.C.selectionBorderColor?"-1px":"";this.h&&(this.h.style.color=D??"",this.h.style.backgroundColor=M??"",this.h.style.outline=z,this.h.style.outlineOffset=R),this.y&&(this.y.style.color=D??"")}}class h extends u{constructor(k,D,M,z,R){super(k,k,z,R),this.U=D,this.W=M,this.X=z,this.L=null,this.O=this.q(new c.DisposableStore),this.P=!1,this.S=z&&z.expandDirection!==void 0?z.expandDirection:l.Right,this.Q=new t.RunOnceScheduler(()=>{this.P&&(this.Z(!1),this.bb(!1))},250),this.R=new t.RunOnceScheduler(()=>{this.element&&!(0,E.isAncestor)((0,E.getActiveElement)(),this.element)&&this.W.submenu===this.L&&(this.W.parent.focus(!1),this.Z(!0))},750)}render(k){super.render(k),this.element&&(this.h&&(this.h.classList.add("monaco-submenu-item"),this.h.tabIndex=0,this.h.setAttribute("aria-haspopup","true"),this.cb("false"),this.N=(0,E.append)(this.h,(0,E.$)("span.submenu-indicator"+a.ThemeIcon.asCSSSelector(n.Codicon.menuSubmenu))),this.N.setAttribute("aria-hidden","true")),this.q((0,E.addDisposableListener)(this.element,E.EventType.KEY_UP,D=>{const M=new I.StandardKeyboardEvent(D);(M.equals(17)||M.equals(3))&&(E.EventHelper.stop(D,!0),this.bb(!0))})),this.q((0,E.addDisposableListener)(this.element,E.EventType.KEY_DOWN,D=>{const M=new I.StandardKeyboardEvent(D);(0,E.getActiveElement)()===this.h&&(M.equals(17)||M.equals(3))&&E.EventHelper.stop(D,!0)})),this.q((0,E.addDisposableListener)(this.element,E.EventType.MOUSE_OVER,D=>{this.P||(this.P=!0,this.Q.schedule())})),this.q((0,E.addDisposableListener)(this.element,E.EventType.MOUSE_LEAVE,D=>{this.P=!1})),this.q((0,E.addDisposableListener)(this.element,E.EventType.FOCUS_OUT,D=>{this.element&&!(0,E.isAncestor)((0,E.getActiveElement)(),this.element)&&this.R.schedule()})),this.q(this.W.parent.onScroll(()=>{this.W.submenu===this.L&&(this.W.parent.focus(!1),this.Z(!0))})))}n(){}onClick(k){E.EventHelper.stop(k,!0),this.Z(!1),this.bb(!0)}Z(k){if(this.W.submenu&&(k||this.W.submenu!==this.L)){try{this.W.submenu.dispose()}catch{}this.W.submenu=void 0,this.cb("false"),this.M&&(this.O.clear(),this.M=void 0)}}ab(k,D,M,z){const R={top:0,left:0};return R.left=(0,f.layout)(k.width,D.width,{position:z===l.Right?0:1,offset:M.left,size:M.width}),R.left>=M.left&&R.left<M.left+M.width&&(M.left+10+D.width<=k.width&&(R.left=M.left+10),M.top+=10,M.height=0),R.top=(0,f.layout)(k.height,D.height,{position:0,offset:M.top,size:0}),R.top+D.height===M.top&&R.top+M.height+D.height<=k.height&&(R.top+=M.height),R}bb(k=!0){if(!!this.element)if(this.W.submenu)this.W.submenu.focus(!1);else{this.cb("true"),this.M=(0,E.append)(this.element,(0,E.$)("div.monaco-submenu")),this.M.classList.add("menubar-menu-items-holder","context-view");const D=getComputedStyle(this.W.parent.domNode),M=parseFloat(D.paddingTop||"0")||0;this.M.style.zIndex="1",this.M.style.position="fixed",this.M.style.top="0",this.M.style.left="0",this.W.submenu=new o(this.M,this.U.length?this.U:[new i.EmptySubmenuAction],this.X,this.C);const z=this.element.getBoundingClientRect(),R={top:z.top-M,left:z.left,height:z.height+2*M,width:z.width},P=this.M.getBoundingClientRect(),{top:A,left:T}=this.ab(new E.Dimension(window.innerWidth,window.innerHeight),E.Dimension.lift(P),R,this.S);this.M.style.left=`${T-P.left}px`,this.M.style.top=`${A-P.top}px`,this.O.add((0,E.addDisposableListener)(this.M,E.EventType.KEY_UP,O=>{new I.StandardKeyboardEvent(O).equals(15)&&(E.EventHelper.stop(O,!0),this.W.parent.focus(),this.Z(!0))})),this.O.add((0,E.addDisposableListener)(this.M,E.EventType.KEY_DOWN,O=>{new I.StandardKeyboardEvent(O).equals(15)&&E.EventHelper.stop(O,!0)})),this.O.add(this.W.submenu.onDidCancel(()=>{this.W.parent.focus(),this.Z(!0)})),this.W.submenu.focus(k),this.L=this.W.submenu}}cb(k){var D;this.h&&((D=this.h)===null||D===void 0||D.setAttribute("aria-expanded",k))}J(){super.J();const D=this.element&&this.element.classList.contains("focused")&&this.C.selectionForegroundColor?this.C.selectionForegroundColor:this.C.foregroundColor;this.N&&(this.N.style.color=D??"")}dispose(){super.dispose(),this.R.dispose(),this.L&&(this.L.dispose(),this.L=null),this.M&&(this.M=void 0)}}class w extends v.ActionViewItem{constructor(k,D,M,z){super(k,D,M),this.g=z}render(k){super.render(k),this.s&&(this.s.style.borderBottomColor=this.g.separatorColor?`${this.g.separatorColor}`:"")}}function m(y){const k=e.MENU_MNEMONIC_REGEX,D=k.exec(y);if(!D)return y;const M=!D[1];return y.replace(k,M?"$2$3":"").trim()}e.cleanMnemonic=m;function p(y){const k=(0,n.getCodiconFontCharacters)()[y.id];return`.codicon-${y.id}:before { content: '\\${k.toString(16)}'; }`}e.formatRule=p;function b(y,k){let D=`
|
||
.monaco-menu {
|
||
font-size: 13px;
|
||
border-radius: 5px;
|
||
min-width: 160px;
|
||
}
|
||
|
||
${p(n.Codicon.menuSelection)}
|
||
${p(n.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;
|
||
margin: 0 4px;
|
||
border-radius: 4px;
|
||
}
|
||
|
||
.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: 4px 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(k){D+=`
|
||
/* 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 M=y.scrollbarShadow;M&&(D+=`
|
||
.monaco-scrollable-element > .shadow.top {
|
||
box-shadow: ${M} 0 6px 6px -6px inset;
|
||
}
|
||
|
||
.monaco-scrollable-element > .shadow.left {
|
||
box-shadow: ${M} 6px 0 6px -6px inset;
|
||
}
|
||
|
||
.monaco-scrollable-element > .shadow.top.left {
|
||
box-shadow: ${M} 6px 6px 6px -6px inset;
|
||
}
|
||
`);const z=y.scrollbarSliderBackground;z&&(D+=`
|
||
.monaco-scrollable-element > .scrollbar > .slider {
|
||
background: ${z};
|
||
}
|
||
`);const R=y.scrollbarSliderHoverBackground;R&&(D+=`
|
||
.monaco-scrollable-element > .scrollbar > .slider:hover {
|
||
background: ${R};
|
||
}
|
||
`);const P=y.scrollbarSliderActiveBackground;P&&(D+=`
|
||
.monaco-scrollable-element > .scrollbar > .slider.active {
|
||
background: ${P};
|
||
}
|
||
`)}return D}}),define(_[537],ee([1,0,68,282,41,29,32,6,2,18,511,370]),function(q,e,C,N,E,I,L,S,v,f,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ToggleMenuAction=e.ToolBar=void 0;class i extends v.Disposable{constructor(a,r,c={orientation:0}){super(),this.m=[],this.n=!1,this.s=this.q(new S.EventMultiplexer),this.onDidChangeDropdownVisibility=this.s.event,this.t=new v.DisposableStore,this.a=c,this.p=typeof this.a.getKeyBinding=="function",this.j=this.q(new t(()=>{var d;return(d=this.l)===null||d===void 0?void 0:d.show()},c.toggleMenuTitle)),this.r=document.createElement("div"),this.r.className="monaco-toolbar",a.appendChild(this.r),this.b=this.q(new C.ActionBar(this.r,{orientation:c.orientation,ariaLabel:c.ariaLabel,actionRunner:c.actionRunner,allowContextMenu:c.allowContextMenu,actionViewItemProvider:(d,s)=>{var l;if(d.id===t.ID)return this.l=new N.DropdownMenuActionViewItem(d,d.menuActions,r,{actionViewItemProvider:this.a.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.a.getKeyBinding,classNames:L.ThemeIcon.asClassNameArray((l=c.moreIcon)!==null&&l!==void 0?l:I.Codicon.toolBarMore),anchorAlignmentProvider:this.a.anchorAlignmentProvider,menuAsChild:!!this.a.renderDropdownAsChildElement}),this.l.setActionContext(this.b.context),this.t.add(this.s.add(this.l.onDidChangeVisibility)),this.l;if(c.actionViewItemProvider){const o=c.actionViewItemProvider(d,s);if(o)return o}if(d instanceof E.SubmenuAction){const o=new N.DropdownMenuActionViewItem(d,d.actions,r,{actionViewItemProvider:this.a.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.a.getKeyBinding,classNames:d.class,anchorAlignmentProvider:this.a.anchorAlignmentProvider,menuAsChild:!!this.a.renderDropdownAsChildElement});return o.setActionContext(this.b.context),this.m.push(o),this.t.add(this.s.add(o.onDidChangeVisibility)),o}}}))}set actionRunner(a){this.b.actionRunner=a}get actionRunner(){return this.b.actionRunner}getElement(){return this.r}getItemAction(a){return this.b.getAction(a)}setActions(a,r){this.v();const c=a?a.slice(0):[];this.n=!!(r&&r.length>0),this.n&&r&&(this.j.menuActions=r.slice(0),c.push(this.j)),c.forEach(d=>{this.b.push(d,{icon:!0,label:!1,keybinding:this.u(d)})})}u(a){var r,c;const d=this.p?(c=(r=this.a).getKeyBinding)===null||c===void 0?void 0:c.call(r,a):void 0;return(0,f.withNullAsUndefined)(d?.getLabel())}v(){this.m=[],this.t.clear(),this.b.clear()}dispose(){this.v(),super.dispose()}}e.ToolBar=i;class t extends E.Action{constructor(a,r){r=r||g.localize(0,null),super(t.ID,r,void 0,!0),this.s=[],this.t=a}run(){return ye(this,void 0,void 0,function*(){this.t()})}get menuActions(){return this.s}set menuActions(a){this.s=a}}t.ID="toolbar.toggle.more",e.ToggleMenuAction=t}),define(_[168],ee([1,0,7,75,43,68,210,209,208,106,139,200,125,41,17,11,29,32,342,6,63,2,128,18,512,371]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s,l,o,u,h,w,m){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractTree=e.TreeFindMatchType=e.TreeFindMode=e.FuzzyToggle=e.ModeToggle=e.RenderIndentGuides=e.ComposedTreeDelegate=void 0;class p extends v.ElementsDragAndDropData{constructor(x){super(x.elements.map(G=>G.element)),this.c=x}}function b(J){return J instanceof v.ElementsDragAndDropData?new p(J):J}class y{constructor(x,G){this.c=x,this.d=G,this.b=u.Disposable.None}getDragURI(x){return this.d.getDragURI(x.element)}getDragLabel(x,G){if(this.d.getDragLabel)return this.d.getDragLabel(x.map(te=>te.element),G)}onDragStart(x,G){var te,Z;(Z=(te=this.d).onDragStart)===null||Z===void 0||Z.call(te,b(x),G)}onDragOver(x,G,te,Z,ae=!0){const de=this.d.onDragOver(b(x),G&&G.element,te,Z),K=this.a!==G;if(K&&(this.b.dispose(),this.a=G),typeof G>"u")return de;if(K&&typeof de!="boolean"&&de.autoExpand&&(this.b=(0,r.disposableTimeout)(()=>{const $=this.c(),oe=$.getNodeLocation(G);$.isCollapsed(oe)&&$.setCollapsed(oe,!1),this.a=void 0},500)),typeof de=="boolean"||!de.accept||typeof de.bubble>"u"||de.feedback){if(!ae){const $=typeof de=="boolean"?de:de.accept,oe=typeof de=="boolean"?void 0:de.effect;return{accept:$,effect:oe,feedback:[te]}}return de}if(de.bubble===1){const $=this.c(),oe=$.getNodeLocation(G),re=$.getParentNodeLocation(oe),X=$.getNode(re),le=re&&$.getListIndex(re);return this.onDragOver(x,X,le,Z,!1)}const Y=this.c(),ne=Y.getNodeLocation(G),V=Y.getListIndex(ne),H=Y.getListRenderCount(ne);return Object.assign(Object.assign({},de),{feedback:(0,a.range)(V,V+H)})}drop(x,G,te,Z){this.b.dispose(),this.a=void 0,this.d.drop(b(x),G&&G.element,te,Z)}onDragEnd(x){var G,te;(te=(G=this.d).onDragEnd)===null||te===void 0||te.call(G,x)}}function k(J,x){return x&&Object.assign(Object.assign({},x),{identityProvider:x.identityProvider&&{getId(G){return x.identityProvider.getId(G.element)}},dnd:x.dnd&&new y(J,x.dnd),multipleSelectionController:x.multipleSelectionController&&{isSelectionSingleChangeEvent(G){return x.multipleSelectionController.isSelectionSingleChangeEvent(Object.assign(Object.assign({},G),{element:G.element}))},isSelectionRangeChangeEvent(G){return x.multipleSelectionController.isSelectionRangeChangeEvent(Object.assign(Object.assign({},G),{element:G.element}))}},accessibilityProvider:x.accessibilityProvider&&Object.assign(Object.assign({},x.accessibilityProvider),{getSetSize(G){const te=J(),Z=te.getNodeLocation(G),ae=te.getParentNodeLocation(Z);return te.getNode(ae).visibleChildrenCount},getPosInSet(G){return G.visibleChildIndex+1},isChecked:x.accessibilityProvider&&x.accessibilityProvider.isChecked?G=>x.accessibilityProvider.isChecked(G.element):void 0,getRole:x.accessibilityProvider&&x.accessibilityProvider.getRole?G=>x.accessibilityProvider.getRole(G.element):()=>"treeitem",getAriaLabel(G){return x.accessibilityProvider.getAriaLabel(G.element)},getWidgetAriaLabel(){return x.accessibilityProvider.getWidgetAriaLabel()},getWidgetRole:x.accessibilityProvider&&x.accessibilityProvider.getWidgetRole?()=>x.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:x.accessibilityProvider&&x.accessibilityProvider.getAriaLevel?G=>x.accessibilityProvider.getAriaLevel(G.element):G=>G.depth,getActiveDescendantId:x.accessibilityProvider.getActiveDescendantId&&(G=>x.accessibilityProvider.getActiveDescendantId(G.element))}),keyboardNavigationLabelProvider:x.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},x.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel(G){return x.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(G.element)}})})}class D{constructor(x){this.a=x}getHeight(x){return this.a.getHeight(x.element)}getTemplateId(x){return this.a.getTemplateId(x.element)}hasDynamicHeight(x){return!!this.a.hasDynamicHeight&&this.a.hasDynamicHeight(x.element)}setDynamicHeight(x,G){var te,Z;(Z=(te=this.a).setDynamicHeight)===null||Z===void 0||Z.call(te,x.element,G)}}e.ComposedTreeDelegate=D;var M;(function(J){J.None="none",J.OnHover="onHover",J.Always="always"})(M=e.RenderIndentGuides||(e.RenderIndentGuides={}));class z{get elements(){return this.b}constructor(x,G=[]){this.b=G,this.a=new u.DisposableStore,this.onDidChange=l.Event.forEach(x,te=>this.b=te,this.a)}dispose(){this.a.dispose()}}class R{constructor(x,G,te,Z,ae,de={}){var K;this.n=x,this.o=G,this.p=Z,this.q=ae,this.b=new Map,this.c=new Map,this.d=R.a,this.f=!1,this.g=!1,this.j=new Set,this.k=u.Disposable.None,this.m=new u.DisposableStore,this.templateId=x.templateId,this.updateOptions(de),l.Event.map(te,Y=>Y.node)(this.t,this,this.m),(K=x.onDidChangeTwistieState)===null||K===void 0||K.call(x,this.s,this,this.m)}updateOptions(x={}){if(typeof x.indent<"u"){const G=(0,h.clamp)(x.indent,0,40);if(G!==this.d){this.d=G;for(const[te,Z]of this.c)this.u(te,Z)}}if(typeof x.renderIndentGuides<"u"){const G=x.renderIndentGuides!==M.None;if(G!==this.g){this.g=G;for(const[te,Z]of this.c)this.v(te,Z);if(this.k.dispose(),G){const te=new u.DisposableStore;this.p.onDidChange(this.w,this,te),this.k=te,this.w(this.p.elements)}}}typeof x.hideTwistiesOfChildlessElements<"u"&&(this.f=x.hideTwistiesOfChildlessElements)}renderTemplate(x){const G=(0,C.append)(x,(0,C.$)(".monaco-tl-row")),te=(0,C.append)(G,(0,C.$)(".monaco-tl-indent")),Z=(0,C.append)(G,(0,C.$)(".monaco-tl-twistie")),ae=(0,C.append)(G,(0,C.$)(".monaco-tl-contents")),de=this.n.renderTemplate(ae);return{container:x,indent:te,twistie:Z,indentGuidesDisposable:u.Disposable.None,templateData:de}}renderElement(x,G,te,Z){this.c.set(x,te),this.b.set(x.element,x),this.u(x,te),this.n.renderElement(x,G,te.templateData,Z)}disposeElement(x,G,te,Z){var ae,de;te.indentGuidesDisposable.dispose(),(de=(ae=this.n).disposeElement)===null||de===void 0||de.call(ae,x,G,te.templateData,Z),typeof Z=="number"&&(this.c.delete(x),this.b.delete(x.element))}disposeTemplate(x){this.n.disposeTemplate(x.templateData)}s(x){const G=this.b.get(x);!G||this.t(G)}t(x){const G=this.c.get(x);!G||(this.w(this.p.elements),this.u(x,G))}u(x,G){const te=R.a+(x.depth-1)*this.d;G.twistie.style.paddingLeft=`${te}px`,G.indent.style.width=`${te+this.d-16}px`,x.collapsible?G.container.setAttribute("aria-expanded",String(!x.collapsed)):G.container.removeAttribute("aria-expanded"),G.twistie.classList.remove(...d.ThemeIcon.asClassNameArray(c.Codicon.treeItemExpanded));let Z=!1;this.n.renderTwistie&&(Z=this.n.renderTwistie(x.element,G.twistie)),x.collapsible&&(!this.f||x.visibleChildrenCount>0)?(Z||G.twistie.classList.add(...d.ThemeIcon.asClassNameArray(c.Codicon.treeItemExpanded)),G.twistie.classList.add("collapsible"),G.twistie.classList.toggle("collapsed",x.collapsed)):G.twistie.classList.remove("collapsible","collapsed"),this.v(x,G)}v(x,G){if((0,C.clearNode)(G.indent),G.indentGuidesDisposable.dispose(),!this.g)return;const te=new u.DisposableStore,Z=this.o();for(;;){const ae=Z.getNodeLocation(x),de=Z.getParentNodeLocation(ae);if(!de)break;const K=Z.getNode(de),Y=(0,C.$)(".indent-guide",{style:`width: ${this.d}px`});this.j.has(K)&&Y.classList.add("active"),G.indent.childElementCount===0?G.indent.appendChild(Y):G.indent.insertBefore(Y,G.indent.firstElementChild),this.q.add(K,Y),te.add((0,u.toDisposable)(()=>this.q.delete(K,Y))),x=K}G.indentGuidesDisposable=te}w(x){if(!this.g)return;const G=new Set,te=this.o();x.forEach(Z=>{const ae=te.getNodeLocation(Z);try{const de=te.getParentNodeLocation(ae);Z.collapsible&&Z.children.length>0&&!Z.collapsed?G.add(Z):de&&G.add(te.getNode(de))}catch{}}),this.j.forEach(Z=>{G.has(Z)||this.q.forEach(Z,ae=>ae.classList.remove("active"))}),G.forEach(Z=>{this.j.has(Z)||this.q.forEach(Z,ae=>ae.classList.add("active"))}),this.j=G}dispose(){this.c.clear(),this.b.clear(),this.k.dispose(),(0,u.dispose)(this.m)}}R.a=8;class P{get totalCount(){return this.a}get matchCount(){return this.b}constructor(x,G,te){this.g=x,this.j=G,this.k=te,this.a=0,this.b=0,this.c="",this.d="",this.f=new u.DisposableStore,x.onWillRefilter(this.m,this,this.f)}filter(x,G){let te=1;if(this.k){const de=this.k.filter(x,G);if(typeof de=="boolean"?te=de?1:0:(0,i.isFilterResult)(de)?te=(0,i.getVisibleState)(de.visibility):te=de,te===0)return!1}if(this.a++,!this.c)return this.b++,{data:o.FuzzyScore.Default,visibility:te};const Z=this.j.getKeyboardNavigationLabel(x),ae=Array.isArray(Z)?Z:[Z];for(const de of ae){const K=de&&de.toString();if(typeof K>"u")return{data:o.FuzzyScore.Default,visibility:te};let Y;if(this.g.findMatchType===W.Contiguous){const ne=K.toLowerCase().indexOf(this.d);if(ne>-1){Y=[Number.MAX_SAFE_INTEGER,0];for(let V=this.d.length;V>0;V--)Y.push(ne+V-1)}}else Y=(0,o.fuzzyScore)(this.c,this.d,0,K,K.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});if(Y)return this.b++,ae.length===1?{data:Y,visibility:te}:{data:{label:K,score:Y},visibility:te}}return this.g.findMode===B.Filter?typeof this.g.options.defaultFindVisibility=="number"?this.g.options.defaultFindVisibility:this.g.options.defaultFindVisibility?this.g.options.defaultFindVisibility(x):2:{data:o.FuzzyScore.Default,visibility:te}}m(){this.a=0,this.b=0}dispose(){(0,u.dispose)(this.f)}}class A extends g.Toggle{constructor(x){var G;super({icon:c.Codicon.listFilter,title:(0,m.localize)(0,null),isChecked:(G=x.isChecked)!==null&&G!==void 0?G:!1,inputActiveOptionBorder:x.inputActiveOptionBorder,inputActiveOptionForeground:x.inputActiveOptionForeground,inputActiveOptionBackground:x.inputActiveOptionBackground})}}e.ModeToggle=A;class T extends g.Toggle{constructor(x){var G;super({icon:c.Codicon.searchFuzzy,title:(0,m.localize)(1,null),isChecked:(G=x.isChecked)!==null&&G!==void 0?G:!1,inputActiveOptionBorder:x.inputActiveOptionBorder,inputActiveOptionForeground:x.inputActiveOptionForeground,inputActiveOptionBackground:x.inputActiveOptionBackground})}}e.FuzzyToggle=T;const O={inputBoxStyles:S.unthemedInboxStyles,toggleStyles:g.unthemedToggleStyles,listFilterWidgetBackground:void 0,listFilterWidgetNoMatchesOutline:void 0,listFilterWidgetOutline:void 0,listFilterWidgetShadow:void 0};var B;(function(J){J[J.Highlight=0]="Highlight",J[J.Filter=1]="Filter"})(B=e.TreeFindMode||(e.TreeFindMode={}));var W;(function(J){J[J.Fuzzy=0]="Fuzzy",J[J.Contiguous=1]="Contiguous"})(W=e.TreeFindMatchType||(e.TreeFindMatchType={}));class j extends u.Disposable{set mode(x){this.b.checked=x===B.Filter,this.g.inputBox.setPlaceHolder(x===B.Filter?(0,m.localize)(2,null):(0,m.localize)(3,null))}set matchType(x){this.c.checked=x===W.Fuzzy}constructor(x,G,te,Z,ae,de){var K;super(),this.p=G,this.a=(0,C.h)(".monaco-tree-type-filter",[(0,C.h)(".monaco-tree-type-filter-grab.codicon.codicon-debug-gripper@grab",{tabIndex:0}),(0,C.h)(".monaco-tree-type-filter-input@findInput"),(0,C.h)(".monaco-tree-type-filter-actionbar@actionbar")]),this.k=0,this.m=0,this.n=0,this._onDidDisable=new l.Emitter,x.appendChild(this.a.root),this.q((0,u.toDisposable)(()=>x.removeChild(this.a.root)));const Y=(K=de?.styles)!==null&&K!==void 0?K:O;Y.listFilterWidgetBackground&&(this.a.root.style.backgroundColor=Y.listFilterWidgetBackground),Y.listFilterWidgetShadow&&(this.a.root.style.boxShadow=`0 0 8px 2px ${Y.listFilterWidgetShadow}`),this.b=this.q(new A(Object.assign(Object.assign({},Y.toggleStyles),{isChecked:Z===B.Filter}))),this.c=this.q(new T(Object.assign(Object.assign({},Y.toggleStyles),{isChecked:ae===W.Fuzzy}))),this.onDidChangeMode=l.Event.map(this.b.onChange,()=>this.b.checked?B.Filter:B.Highlight,this.f),this.onDidChangeMatchType=l.Event.map(this.c.onChange,()=>this.c.checked?W.Fuzzy:W.Contiguous,this.f),this.g=this.q(new L.FindInput(this.a.findInput,te,{label:(0,m.localize)(4,null),additionalToggles:[this.b,this.c],showCommonFindToggles:!1,inputBoxStyles:Y.inputBoxStyles,toggleStyles:Y.toggleStyles,history:de?.history})),this.j=this.q(new I.ActionBar(this.a.actionbar)),this.mode=Z;const ne=this.q(new N.DomEmitter(this.g.inputBox.inputElement,"keydown")),V=this.q(l.Event.chain(ne.event)).map(re=>new E.StandardKeyboardEvent(re)).event;this.q(V(re=>{if(re.equals(3)){re.preventDefault(),re.stopPropagation(),this.g.inputBox.addToHistory(),this.p.domFocus();return}if(re.equals(18)){re.preventDefault(),re.stopPropagation(),this.g.inputBox.isAtLastInHistory()||this.g.inputBox.isNowhereInHistory()?(this.g.inputBox.addToHistory(),this.p.domFocus()):this.g.inputBox.showNextValue();return}if(re.equals(16)){re.preventDefault(),re.stopPropagation(),this.g.inputBox.showPreviousValue();return}}));const H=this.q(new n.Action("close",(0,m.localize)(5,null),"codicon codicon-close",!0,()=>this.dispose()));this.j.push(H,{icon:!0,label:!1});const $=this.q(new N.DomEmitter(this.a.grab,"mousedown"));this.q($.event(re=>{const X=new u.DisposableStore,le=X.add(new N.DomEmitter(window,"mousemove")),me=X.add(new N.DomEmitter(window,"mouseup")),we=this.m,Le=re.pageX,Ee=this.n,Me=re.pageY;this.a.grab.classList.add("grabbing");const Ae=this.a.root.style.transition;this.a.root.style.transition="unset";const ke=fe=>{const pe=fe.pageX-Le;this.m=we-pe;const ce=fe.pageY-Me;this.n=Ee+ce,this.layout()};X.add(le.event(ke)),X.add(me.event(fe=>{ke(fe),this.a.grab.classList.remove("grabbing"),this.a.root.style.transition=Ae,X.dispose()}))}));const oe=this.q(l.Event.chain(this.q(new N.DomEmitter(this.a.grab,"keydown")).event)).map(re=>new E.StandardKeyboardEvent(re)).event;this.q(oe(re=>{let X,le;if(re.keyCode===15?X=Number.POSITIVE_INFINITY:re.keyCode===17?X=0:re.keyCode===10&&(X=this.m===0?Number.POSITIVE_INFINITY:0),re.keyCode===16?le=0:re.keyCode===18&&(le=Number.POSITIVE_INFINITY),X!==void 0&&(re.preventDefault(),re.stopPropagation(),this.m=X,this.layout()),le!==void 0){re.preventDefault(),re.stopPropagation(),this.n=le;const me=this.a.root.style.transition;this.a.root.style.transition="unset",this.layout(),setTimeout(()=>{this.a.root.style.transition=me},0)}})),this.onDidChangeValue=this.g.onDidChange}layout(x=this.k){this.k=x,this.m=(0,h.clamp)(this.m,0,Math.max(0,x-212)),this.a.root.style.right=`${this.m}px`,this.n=(0,h.clamp)(this.n,0,24),this.a.root.style.top=`${this.n}px`}showMessage(x){this.g.showMessage(x)}clearMessage(){this.g.clearMessage()}dispose(){const x=Object.create(null,{dispose:{get:()=>super.dispose}});return ye(this,void 0,void 0,function*(){this._onDidDisable.fire(),this.a.root.classList.add("disabled"),yield(0,r.timeout)(300),x.dispose.call(this)})}}class F{get pattern(){return this.b}get mode(){return this.c}set mode(x){x!==this.c&&(this.c=x,this.f&&(this.f.mode=this.c),this.q.refilter(),this.x(),this.j.fire(x))}get matchType(){return this.d}set matchType(x){x!==this.d&&(this.d=x,this.f&&(this.f.matchType=this.d),this.q.refilter(),this.x(),this.k.fire(x))}constructor(x,G,te,Z,ae,de={}){var K,Y;this.q=x,this.s=te,this.t=Z,this.u=ae,this.v=de,this.b="",this.g=0,this.j=new l.Emitter,this.onDidChangeMode=this.j.event,this.k=new l.Emitter,this.onDidChangeMatchType=this.k.event,this.m=new l.Emitter,this.n=new l.Emitter,this.onDidChangeOpenState=this.n.event,this.o=new u.DisposableStore,this.p=new u.DisposableStore,this.c=(K=x.options.defaultFindMode)!==null&&K!==void 0?K:B.Highlight,this.d=(Y=x.options.defaultFindMatchType)!==null&&Y!==void 0?Y:W.Fuzzy,G.onDidSplice(this.w,this,this.p)}updateOptions(x={}){x.defaultFindMode!==void 0&&(this.mode=x.defaultFindMode),x.defaultFindMatchType!==void 0&&(this.matchType=x.defaultFindMatchType)}w(){!this.f||this.pattern.length===0||(this.q.refilter(),this.x())}x(){var x,G,te,Z;const ae=this.t.totalCount>0&&this.t.matchCount===0;this.pattern&&ae?!((x=this.q.options.showNotFoundMessage)!==null&&x!==void 0)||x?(G=this.f)===null||G===void 0||G.showMessage({type:2,content:(0,m.localize)(6,null)}):(te=this.f)===null||te===void 0||te.showMessage({type:2}):(Z=this.f)===null||Z===void 0||Z.clearMessage()}shouldAllowFocus(x){return!this.f||!this.pattern||this.c===B.Filter||this.t.totalCount>0&&this.t.matchCount<=1?!0:!o.FuzzyScore.isDefault(x.filterData)}layout(x){var G;this.g=x,(G=this.f)===null||G===void 0||G.layout(x)}dispose(){this.a=void 0,this.m.dispose(),this.o.dispose(),this.p.dispose()}}function U(J){let x=t.TreeMouseEventTarget.Unknown;return(0,C.hasParentWithClass)(J.browserEvent.target,"monaco-tl-twistie","monaco-tl-row")?x=t.TreeMouseEventTarget.Twistie:(0,C.hasParentWithClass)(J.browserEvent.target,"monaco-tl-contents","monaco-tl-row")?x=t.TreeMouseEventTarget.Element:(0,C.hasParentWithClass)(J.browserEvent.target,"monaco-tree-type-filter","monaco-list")&&(x=t.TreeMouseEventTarget.Filter),{browserEvent:J.browserEvent,element:J.element?J.element.element:null,target:x}}function Q(J,x){x(J),J.children.forEach(G=>Q(G,x))}class se{get f(){return this.d||(this.d=this.m()),this.d}constructor(x,G){this.g=x,this.j=G,this.a=[],this.c=new l.Emitter,this.onDidChange=this.c.event}set(x,G){!G?.__forceEvent&&(0,a.equals)(this.a,x)||this.k(x,!1,G)}k(x,G,te){if(this.a=[...x],this.b=void 0,this.d=void 0,!G){const Z=this;this.c.fire({get elements(){return Z.get()},browserEvent:te})}}get(){return this.b||(this.b=this.a.map(x=>x.element)),[...this.b]}getNodes(){return this.a}has(x){return this.f.has(x)}onDidModelSplice({insertedNodes:x,deletedNodes:G}){if(!this.j){const Y=this.m(),ne=V=>Y.delete(V);G.forEach(V=>Q(V,ne)),this.set([...Y.values()]);return}const te=new Set,Z=Y=>te.add(this.j.getId(Y.element).toString());G.forEach(Y=>Q(Y,Z));const ae=new Map,de=Y=>ae.set(this.j.getId(Y.element).toString(),Y);x.forEach(Y=>Q(Y,de));const K=[];for(const Y of this.a){const ne=this.j.getId(Y.element).toString();if(!te.has(ne))K.push(Y);else{const H=ae.get(ne);H&&K.push(H)}}if(this.a.length>0&&K.length===0){const Y=this.g();Y&&K.push(Y)}this.k(K,!0)}m(){const x=new Set;for(const G of this.a)x.add(G);return x}}class he extends f.MouseController{constructor(x,G){super(x),this.z=G}u(x){if((0,f.isButton)(x.browserEvent.target)||(0,f.isInputElement)(x.browserEvent.target)||(0,f.isMonacoEditor)(x.browserEvent.target))return;const G=x.element;if(!G)return super.u(x);if(this.p(x)||this.o(x))return super.u(x);const te=x.browserEvent.target,Z=te.classList.contains("monaco-tl-twistie")||te.classList.contains("monaco-icon-label")&&te.classList.contains("folder-icon")&&x.browserEvent.offsetX<16;let ae=!1;if(typeof this.z.expandOnlyOnTwistieClick=="function"?ae=this.z.expandOnlyOnTwistieClick(G.element):ae=!!this.z.expandOnlyOnTwistieClick,ae&&!Z&&x.browserEvent.detail!==2)return super.u(x);if(!this.z.expandOnDoubleClick&&x.browserEvent.detail===2)return super.u(x);if(G.collapsible){const de=this.z.getNodeLocation(G),K=x.browserEvent.altKey;if(this.z.setFocus([de]),this.z.toggleCollapsed(de,K),ae&&Z)return}super.u(x)}v(x){x.browserEvent.target.classList.contains("monaco-tl-twistie")||!this.z.expandOnDoubleClick||super.v(x)}}class ie extends f.List{constructor(x,G,te,Z,ae,de,K,Y){super(x,G,te,Z,Y),this.K=ae,this.L=de,this.M=K}D(x){return new he(this,x.tree)}splice(x,G,te=[]){if(super.splice(x,G,te),te.length===0)return;const Z=[],ae=[];let de;te.forEach((K,Y)=>{this.K.has(K)&&Z.push(x+Y),this.L.has(K)&&ae.push(x+Y),this.M.has(K)&&(de=x+Y)}),Z.length>0&&super.setFocus((0,a.distinct)([...super.getFocus(),...Z])),ae.length>0&&super.setSelection((0,a.distinct)([...super.getSelection(),...ae])),typeof de=="number"&&super.setAnchor(de)}setFocus(x,G,te=!1){super.setFocus(x,G),te||this.K.set(x.map(Z=>this.element(Z)),G)}setSelection(x,G,te=!1){super.setSelection(x,G),te||this.L.set(x.map(Z=>this.element(Z)),G)}setAnchor(x,G=!1){super.setAnchor(x),G||(typeof x>"u"?this.M.set([]):this.M.set([this.element(x)]))}}class ue{get onDidChangeFocus(){return this.j.wrapEvent(this.d.onDidChange)}get onDidChangeSelection(){return this.j.wrapEvent(this.f.onDidChange)}get onMouseDblClick(){return l.Event.filter(l.Event.map(this.a.onMouseDblClick,U),x=>x.target!==t.TreeMouseEventTarget.Filter)}get onPointer(){return l.Event.map(this.a.onPointer,U)}get onDidFocus(){return this.a.onDidFocus}get onDidChangeModel(){return l.Event.signal(this.c.onDidSplice)}get onDidChangeCollapseState(){return this.c.onDidChangeCollapseState}get findMode(){var x,G;return(G=(x=this.k)===null||x===void 0?void 0:x.mode)!==null&&G!==void 0?G:B.Highlight}set findMode(x){this.k&&(this.k.mode=x)}get findMatchType(){var x,G;return(G=(x=this.k)===null||x===void 0?void 0:x.matchType)!==null&&G!==void 0?G:W.Fuzzy}set findMatchType(x){this.k&&(this.k.matchType=x)}get expandOnDoubleClick(){return typeof this.t.expandOnDoubleClick>"u"?!0:this.t.expandOnDoubleClick}get expandOnlyOnTwistieClick(){return typeof this.t.expandOnlyOnTwistieClick>"u"?!0:this.t.expandOnlyOnTwistieClick}get onDidDispose(){return this.a.onDidDispose}constructor(x,G,te,Z,ae={}){var de;this.s=x,this.t=ae,this.j=new l.EventBufferer,this.onDidChangeFindOpenState=l.Event.None,this.o=new u.DisposableStore,this.p=new l.Emitter,this.onWillRefilter=this.p.event,this.q=new l.Emitter;const K=new D(te),Y=new l.Relay,ne=new l.Relay,V=this.o.add(new z(ne.event)),H=new s.SetMap;this.b=Z.map(re=>new R(re,()=>this.c,Y.event,V,H,ae));for(const re of this.b)this.o.add(re);let $;ae.keyboardNavigationLabelProvider&&($=new P(this,ae.keyboardNavigationLabelProvider,ae.filter),ae=Object.assign(Object.assign({},ae),{filter:$}),this.o.add($)),this.d=new se(()=>this.a.getFocusedElements()[0],ae.identityProvider),this.f=new se(()=>this.a.getSelectedElements()[0],ae.identityProvider),this.g=new se(()=>this.a.getAnchorElement(),ae.identityProvider),this.a=new ie(x,G,K,this.b,this.d,this.f,this.g,Object.assign(Object.assign({},k(()=>this.c,ae)),{tree:this})),this.c=this.x(x,this.a,ae),Y.input=this.c.onDidChangeCollapseState;const oe=l.Event.forEach(this.c.onDidSplice,re=>{this.j.bufferEvents(()=>{this.d.onDidModelSplice(re),this.f.onDidModelSplice(re)})},this.o);if(oe(()=>null,null,this.o),ne.input=l.Event.chain(l.Event.any(oe,this.d.onDidChange,this.f.onDidChange)).debounce(()=>null,0).map(()=>{const re=new Set;for(const X of this.d.getNodes())re.add(X);for(const X of this.f.getNodes())re.add(X);return[...re.values()]}).event,ae.keyboardSupport!==!1){const re=l.Event.chain(this.a.onKeyDown).filter(X=>!(0,f.isInputElement)(X.target)).map(X=>new E.StandardKeyboardEvent(X));re.filter(X=>X.keyCode===15).on(this.u,this,this.o),re.filter(X=>X.keyCode===17).on(this.v,this,this.o),re.filter(X=>X.keyCode===10).on(this.w,this,this.o)}if(((de=ae.findWidgetEnabled)!==null&&de!==void 0?de:!0)&&ae.keyboardNavigationLabelProvider&&ae.contextViewProvider){const re=this.options.findWidgetStyles?{styles:this.options.findWidgetStyles}:void 0;this.k=new F(this,this.c,this.a,$,ae.contextViewProvider,re),this.m=X=>this.k.shouldAllowFocus(X),this.onDidChangeFindOpenState=this.k.onDidChangeOpenState,this.o.add(this.k),this.onDidChangeFindMode=this.k.onDidChangeMode,this.onDidChangeFindMatchType=this.k.onDidChangeMatchType}else this.onDidChangeFindMode=l.Event.None,this.onDidChangeFindMatchType=l.Event.None;this.n=(0,C.createStyleSheet)(this.a.getHTMLElement()),this.getHTMLElement().classList.toggle("always",this.t.renderIndentGuides===M.Always)}updateOptions(x={}){var G;this.t=Object.assign(Object.assign({},this.t),x);for(const te of this.b)te.updateOptions(x);this.a.updateOptions(this.t),(G=this.k)===null||G===void 0||G.updateOptions(x),this.q.fire(this.t),this.getHTMLElement().classList.toggle("always",this.t.renderIndentGuides===M.Always)}get options(){return this.t}getHTMLElement(){return this.a.getHTMLElement()}get scrollTop(){return this.a.scrollTop}set scrollTop(x){this.a.scrollTop=x}domFocus(){this.a.domFocus()}layout(x,G){var te;this.a.layout(x,G),(0,w.isNumber)(G)&&((te=this.k)===null||te===void 0||te.layout(G))}style(x){const G=`.${this.a.domId}`,te=[];x.treeIndentGuidesStroke&&(te.push(`.monaco-list${G}:hover .monaco-tl-indent > .indent-guide, .monaco-list${G}.always .monaco-tl-indent > .indent-guide { border-color: ${x.treeInactiveIndentGuidesStroke}; }`),te.push(`.monaco-list${G} .monaco-tl-indent > .indent-guide.active { border-color: ${x.treeIndentGuidesStroke}; }`)),this.n.textContent=te.join(`
|
||
`),this.a.style(x)}getParentElement(x){const G=this.c.getParentNodeLocation(x);return this.c.getNode(G).element}getFirstElementChild(x){return this.c.getFirstElementChild(x)}getNode(x){return this.c.getNode(x)}getNodeLocation(x){return this.c.getNodeLocation(x)}collapse(x,G=!1){return this.c.setCollapsed(x,!0,G)}expand(x,G=!1){return this.c.setCollapsed(x,!1,G)}toggleCollapsed(x,G=!1){return this.c.setCollapsed(x,void 0,G)}isCollapsible(x){return this.c.isCollapsible(x)}setCollapsible(x,G){return this.c.setCollapsible(x,G)}isCollapsed(x){return this.c.isCollapsed(x)}refilter(){this.p.fire(void 0),this.c.refilter()}setSelection(x,G){const te=x.map(ae=>this.c.getNode(ae));this.f.set(te,G);const Z=x.map(ae=>this.c.getListIndex(ae)).filter(ae=>ae>-1);this.a.setSelection(Z,G,!0)}getSelection(){return this.f.get()}setFocus(x,G){const te=x.map(ae=>this.c.getNode(ae));this.d.set(te,G);const Z=x.map(ae=>this.c.getListIndex(ae)).filter(ae=>ae>-1);this.a.setFocus(Z,G,!0)}getFocus(){return this.d.get()}reveal(x,G){this.c.expandTo(x);const te=this.c.getListIndex(x);te!==-1&&this.a.reveal(te,G)}u(x){x.preventDefault(),x.stopPropagation();const G=this.a.getFocusedElements();if(G.length===0)return;const te=G[0],Z=this.c.getNodeLocation(te);if(!this.c.setCollapsed(Z,!0)){const de=this.c.getParentNodeLocation(Z);if(!de)return;const K=this.c.getListIndex(de);this.a.reveal(K),this.a.setFocus([K])}}v(x){x.preventDefault(),x.stopPropagation();const G=this.a.getFocusedElements();if(G.length===0)return;const te=G[0],Z=this.c.getNodeLocation(te);if(!this.c.setCollapsed(Z,!1)){if(!te.children.some(Y=>Y.visible))return;const[de]=this.a.getFocus(),K=de+1;this.a.reveal(K),this.a.setFocus([K])}}w(x){x.preventDefault(),x.stopPropagation();const G=this.a.getFocusedElements();if(G.length===0)return;const te=G[0],Z=this.c.getNodeLocation(te),ae=x.browserEvent.altKey;this.c.setCollapsed(Z,void 0,ae)}dispose(){(0,u.dispose)(this.o),this.a.dispose()}}e.AbstractTree=ue}),define(_[538],ee([1,0,168,201]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DataTree=void 0;class E extends C.AbstractTree{constructor(L,S,v,f,g,i={}){super(L,S,v,f,i),this.A=L,this.B=g,this.z=i.identityProvider}x(L,S,v){return new N.ObjectTreeModel(L,S,v)}}e.DataTree=E}),define(_[283],ee([1,0,168,522,201,99,54]),function(q,e,C,N,E,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CompressibleObjectTree=e.ObjectTree=void 0;class S extends C.AbstractTree{get onDidChangeCollapseState(){return this.c.onDidChangeCollapseState}constructor(t,n,a,r,c={}){super(t,n,a,r,c),this.z=t}setChildren(t,n=L.Iterable.empty(),a){this.c.setChildren(t,n,a)}rerender(t){if(t===void 0){this.a.rerender();return}this.c.rerender(t)}hasElement(t){return this.c.has(t)}x(t,n,a){return new E.ObjectTreeModel(t,n,a)}}e.ObjectTree=S;class v{get a(){return this.b()}constructor(t,n){this.b=t,this.c=n,this.templateId=n.templateId,n.onDidChangeTwistieState&&(this.onDidChangeTwistieState=n.onDidChangeTwistieState)}renderTemplate(t){const n=this.c.renderTemplate(t);return{compressedTreeNode:void 0,data:n}}renderElement(t,n,a,r){const c=this.a.getCompressedTreeNode(t.element);c.element.elements.length===1?(a.compressedTreeNode=void 0,this.c.renderElement(t,n,a.data,r)):(a.compressedTreeNode=c,this.c.renderCompressedElements(c,n,a.data,r))}disposeElement(t,n,a,r){var c,d,s,l;a.compressedTreeNode?(d=(c=this.c).disposeCompressedElements)===null||d===void 0||d.call(c,a.compressedTreeNode,n,a.data,r):(l=(s=this.c).disposeElement)===null||l===void 0||l.call(s,t,n,a.data,r)}disposeTemplate(t){this.c.disposeTemplate(t.data)}renderTwistie(t,n){return this.c.renderTwistie?this.c.renderTwistie(t,n):!1}}Ne([I.memoize],v.prototype,"a",null);function f(i,t){return t&&Object.assign(Object.assign({},t),{keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel(n){let a;try{a=i().getCompressedTreeNode(n)}catch{return t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(n)}return a.element.elements.length===1?t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(n):t.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(a.element.elements)}}})}class g extends S{constructor(t,n,a,r,c={}){const d=()=>this,s=r.map(l=>new v(d,l));super(t,n,a,s,f(d,c))}setChildren(t,n=L.Iterable.empty(),a){this.c.setChildren(t,n,a)}x(t,n,a){return new N.CompressibleObjectTreeModel(t,n,a)}updateOptions(t={}){super.updateOptions(t),typeof t.compressionEnabled<"u"&&this.c.setCompressionEnabled(t.compressionEnabled)}getCompressedTreeNode(t=null){return this.c.getCompressedTreeNode(t)}}e.CompressibleObjectTree=g}),define(_[539],ee([1,0,208,168,200,283,125,11,29,32,13,6,54,2,18]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CompressibleAsyncDataTree=e.AsyncDataTree=void 0;function r(P){return Object.assign(Object.assign({},P),{children:[],refreshPromise:void 0,stale:!0,slow:!1,collapsedByDefault:void 0})}function c(P,A){return A.parent?A.parent===P?!0:c(P,A.parent):!1}function d(P,A){return P===A||c(P,A)||c(A,P)}class s{get element(){return this.a.element.element}get children(){return this.a.children.map(A=>new s(A))}get depth(){return this.a.depth}get visibleChildrenCount(){return this.a.visibleChildrenCount}get visibleChildIndex(){return this.a.visibleChildIndex}get collapsible(){return this.a.collapsible}get collapsed(){return this.a.collapsed}get visible(){return this.a.visible}get filterData(){return this.a.filterData}constructor(A){this.a=A}}class l{constructor(A,T,O){this.b=A,this.d=T,this.onDidChangeTwistieState=O,this.a=new Map,this.templateId=A.templateId}renderTemplate(A){return{templateData:this.b.renderTemplate(A)}}renderElement(A,T,O,B){this.b.renderElement(this.d.map(A),T,O.templateData,B)}renderTwistie(A,T){return A.slow?(T.classList.add(...f.ThemeIcon.asClassNameArray(v.Codicon.treeItemLoading)),!0):(T.classList.remove(...f.ThemeIcon.asClassNameArray(v.Codicon.treeItemLoading)),!1)}disposeElement(A,T,O,B){var W,j;(j=(W=this.b).disposeElement)===null||j===void 0||j.call(W,this.d.map(A),T,O.templateData,B)}disposeTemplate(A){this.b.disposeTemplate(A.templateData)}dispose(){this.a.clear()}}function o(P){return{browserEvent:P.browserEvent,elements:P.elements.map(A=>A.element)}}function u(P){return{browserEvent:P.browserEvent,element:P.element&&P.element.element,target:P.target}}class h extends C.ElementsDragAndDropData{constructor(A){super(A.elements.map(T=>T.element)),this.d=A}}function w(P){return P instanceof C.ElementsDragAndDropData?new h(P):P}class m{constructor(A){this.a=A}getDragURI(A){return this.a.getDragURI(A.element)}getDragLabel(A,T){if(this.a.getDragLabel)return this.a.getDragLabel(A.map(O=>O.element),T)}onDragStart(A,T){var O,B;(B=(O=this.a).onDragStart)===null||B===void 0||B.call(O,w(A),T)}onDragOver(A,T,O,B,W=!0){return this.a.onDragOver(w(A),T&&T.element,O,B)}drop(A,T,O,B){this.a.drop(w(A),T&&T.element,O,B)}onDragEnd(A){var T,O;(O=(T=this.a).onDragEnd)===null||O===void 0||O.call(T,A)}}function p(P){return P&&Object.assign(Object.assign({},P),{collapseByDefault:!0,identityProvider:P.identityProvider&&{getId(A){return P.identityProvider.getId(A.element)}},dnd:P.dnd&&new m(P.dnd),multipleSelectionController:P.multipleSelectionController&&{isSelectionSingleChangeEvent(A){return P.multipleSelectionController.isSelectionSingleChangeEvent(Object.assign(Object.assign({},A),{element:A.element}))},isSelectionRangeChangeEvent(A){return P.multipleSelectionController.isSelectionRangeChangeEvent(Object.assign(Object.assign({},A),{element:A.element}))}},accessibilityProvider:P.accessibilityProvider&&Object.assign(Object.assign({},P.accessibilityProvider),{getPosInSet:void 0,getSetSize:void 0,getRole:P.accessibilityProvider.getRole?A=>P.accessibilityProvider.getRole(A.element):()=>"treeitem",isChecked:P.accessibilityProvider.isChecked?A=>{var T;return!!(!((T=P.accessibilityProvider)===null||T===void 0)&&T.isChecked(A.element))}:void 0,getAriaLabel(A){return P.accessibilityProvider.getAriaLabel(A.element)},getWidgetAriaLabel(){return P.accessibilityProvider.getWidgetAriaLabel()},getWidgetRole:P.accessibilityProvider.getWidgetRole?()=>P.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:P.accessibilityProvider.getAriaLevel&&(A=>P.accessibilityProvider.getAriaLevel(A.element)),getActiveDescendantId:P.accessibilityProvider.getActiveDescendantId&&(A=>P.accessibilityProvider.getActiveDescendantId(A.element))}),filter:P.filter&&{filter(A,T){return P.filter.filter(A.element,T)}},keyboardNavigationLabelProvider:P.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},P.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel(A){return P.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(A.element)}}),sorter:void 0,expandOnlyOnTwistieClick:typeof P.expandOnlyOnTwistieClick>"u"?void 0:typeof P.expandOnlyOnTwistieClick!="function"?P.expandOnlyOnTwistieClick:A=>P.expandOnlyOnTwistieClick(A.element),defaultFindVisibility:A=>A.hasChildren&&A.stale?1:typeof P.defaultFindVisibility=="number"?P.defaultFindVisibility:typeof P.defaultFindVisibility>"u"?2:P.defaultFindVisibility(A.element)})}function b(P,A){A(P),P.children.forEach(T=>b(T,A))}class y{get onDidChangeFocus(){return i.Event.map(this.a.onDidChangeFocus,o)}get onDidChangeSelection(){return i.Event.map(this.a.onDidChangeSelection,o)}get onMouseDblClick(){return i.Event.map(this.a.onMouseDblClick,u)}get onPointer(){return i.Event.map(this.a.onPointer,u)}get onDidFocus(){return this.a.onDidFocus}get onDidChangeModel(){return this.a.onDidChangeModel}get onDidChangeCollapseState(){return this.a.onDidChangeCollapseState}get onDidChangeFindOpenState(){return this.a.onDidChangeFindOpenState}get onDidDispose(){return this.a.onDidDispose}constructor(A,T,O,B,W,j={}){this.t=A,this.u=W,this.d=new Map,this.h=new Map,this.j=new Map,this.o=new i.Emitter,this.p=new i.Emitter,this.q=new L.WeakMapper(F=>new s(F)),this.s=new n.DisposableStore,this.k=j.identityProvider,this.m=typeof j.autoExpandSingleChildren>"u"?!1:j.autoExpandSingleChildren,this.f=j.sorter,this.g=j.collapseByDefault,this.a=this.v(A,T,O,B,j),this.onDidChangeFindMode=this.a.onDidChangeFindMode,this.b=r({element:void 0,parent:null,hasChildren:!0}),this.k&&(this.b=Object.assign(Object.assign({},this.b),{id:null})),this.d.set(null,this.b),this.a.onDidChangeCollapseState(this.D,this,this.s)}v(A,T,O,B,W){const j=new N.ComposedTreeDelegate(O),F=B.map(Q=>new l(Q,this.q,this.p.event)),U=p(W)||{};return new I.ObjectTree(A,T,j,F,U)}updateOptions(A={}){this.a.updateOptions(A)}getHTMLElement(){return this.a.getHTMLElement()}get scrollTop(){return this.a.scrollTop}set scrollTop(A){this.a.scrollTop=A}domFocus(){this.a.domFocus()}layout(A,T){this.a.layout(A,T)}style(A){this.a.style(A)}getInput(){return this.b.element}setInput(A,T){return ye(this,void 0,void 0,function*(){this.j.forEach(B=>B.cancel()),this.j.clear(),this.b.element=A;const O=T&&{viewState:T,focus:[],selection:[]};yield this.w(A,!0,!1,O),O&&(this.a.setFocus(O.focus),this.a.setSelection(O.selection)),T&&typeof T.scrollTop=="number"&&(this.scrollTop=T.scrollTop)})}w(A=this.b.element,T=!0,O=!1,B,W){return ye(this,void 0,void 0,function*(){if(typeof this.b.element>"u")throw new L.TreeError(this.t,"Tree input not set");this.b.refreshPromise&&(yield this.b.refreshPromise,yield i.Event.toPromise(this.o.event));const j=this.x(A);if(yield this.y(j,T,B,W),O)try{this.a.rerender(j)}catch{}})}rerender(A){if(A===void 0||A===this.b.element){this.a.rerender();return}const T=this.x(A);this.a.rerender(T)}getNode(A=this.b.element){const T=this.x(A),O=this.a.getNode(T===this.b?null:T);return this.q.map(O)}collapse(A,T=!1){const O=this.x(A);return this.a.collapse(O===this.b?null:O,T)}expand(A,T=!1){return ye(this,void 0,void 0,function*(){if(typeof this.b.element>"u")throw new L.TreeError(this.t,"Tree input not set");this.b.refreshPromise&&(yield this.b.refreshPromise,yield i.Event.toPromise(this.o.event));const O=this.x(A);if(this.a.hasElement(O)&&!this.a.isCollapsible(O)||(O.refreshPromise&&(yield this.b.refreshPromise,yield i.Event.toPromise(this.o.event)),O!==this.b&&!O.refreshPromise&&!this.a.isCollapsed(O)))return!1;const B=this.a.expand(O===this.b?null:O,T);return O.refreshPromise&&(yield this.b.refreshPromise,yield i.Event.toPromise(this.o.event)),B})}setSelection(A,T){const O=A.map(B=>this.x(B));this.a.setSelection(O,T)}getSelection(){return this.a.getSelection().map(T=>T.element)}setFocus(A,T){const O=A.map(B=>this.x(B));this.a.setFocus(O,T)}getFocus(){return this.a.getFocus().map(T=>T.element)}reveal(A,T){this.a.reveal(this.x(A),T)}getParentElement(A){const T=this.a.getParentElement(this.x(A));return T&&T.element}getFirstElementChild(A=this.b.element){const T=this.x(A),O=this.a.getFirstElementChild(T===this.b?null:T);return O&&O.element}x(A){const T=this.d.get(A===this.b.element?null:A);if(!T)throw new L.TreeError(this.t,`Data tree node not found: ${A}`);return T}y(A,T,O,B){return ye(this,void 0,void 0,function*(){yield this.z(A,T,O),this.F(A,O,B)})}z(A,T,O){return ye(this,void 0,void 0,function*(){let B;if(this.h.forEach((W,j)=>{!B&&d(j,A)&&(B=W.then(()=>this.z(A,T,O)))}),B)return B;if(A!==this.b&&this.a.getNode(A).collapsed){A.hasChildren=!!this.u.hasChildren(A.element),A.stale=!0;return}return this.A(A,T,O)})}A(A,T,O){return ye(this,void 0,void 0,function*(){let B;A.refreshPromise=new Promise(W=>B=W),this.h.set(A,A.refreshPromise),A.refreshPromise.finally(()=>{A.refreshPromise=void 0,this.h.delete(A)});try{const W=yield this.B(A,T,O);A.stale=!1,yield S.Promises.settled(W.map(j=>this.A(j,T,O)))}finally{B()}})}B(A,T,O){return ye(this,void 0,void 0,function*(){A.hasChildren=!!this.u.hasChildren(A.element);let B;if(!A.hasChildren)B=Promise.resolve(t.Iterable.empty());else{const W=this.C(A);if((0,a.isIterable)(W))B=Promise.resolve(W);else{const j=(0,S.timeout)(800);j.then(()=>{A.slow=!0,this.p.fire(A)},F=>null),B=W.finally(()=>j.cancel())}}try{const W=yield B;return this.E(A,W,T,O)}catch(W){if(A!==this.b&&this.a.hasElement(A)&&this.a.collapse(A),(0,g.isCancellationError)(W))return[];throw W}finally{A.slow&&(A.slow=!1,this.p.fire(A))}})}C(A){let T=this.j.get(A);if(T)return T;const O=this.u.getChildren(A.element);return(0,a.isIterable)(O)?this.H(O):(T=(0,S.createCancelablePromise)(()=>ye(this,void 0,void 0,function*(){return this.H(yield O)})),this.j.set(A,T),T.finally(()=>{this.j.delete(A)}))}D({node:A,deep:T}){A.element!==null&&!A.collapsed&&A.element.stale&&(T?this.collapse(A.element.element):this.y(A.element,!1).catch(g.onUnexpectedError))}E(A,T,O,B){const W=[...T];if(A.children.length===0&&W.length===0)return[];const j=new Map,F=new Map;for(const se of A.children)if(j.set(se.element,se),this.k){const he=this.a.isCollapsed(se);F.set(se.id,{node:se,collapsed:he})}const U=[],Q=W.map(se=>{const he=!!this.u.hasChildren(se);if(!this.k){const x=r({element:se,parent:A,hasChildren:he});return he&&this.g&&!this.g(se)&&(x.collapsedByDefault=!1,U.push(x)),x}const ie=this.k.getId(se).toString(),ue=F.get(ie);if(ue){const x=ue.node;return j.delete(x.element),this.d.delete(x.element),this.d.set(se,x),x.element=se,x.hasChildren=he,O?ue.collapsed?(x.children.forEach(G=>b(G,te=>this.d.delete(te.element))),x.children.splice(0,x.children.length),x.stale=!0):U.push(x):he&&this.g&&!this.g(se)&&(x.collapsedByDefault=!1,U.push(x)),x}const J=r({element:se,parent:A,id:ie,hasChildren:he});return B&&B.viewState.focus&&B.viewState.focus.indexOf(ie)>-1&&B.focus.push(J),B&&B.viewState.selection&&B.viewState.selection.indexOf(ie)>-1&&B.selection.push(J),B&&B.viewState.expanded&&B.viewState.expanded.indexOf(ie)>-1?U.push(J):he&&this.g&&!this.g(se)&&(J.collapsedByDefault=!1,U.push(J)),J});for(const se of j.values())b(se,he=>this.d.delete(he.element));for(const se of Q)this.d.set(se.element,se);return A.children.splice(0,A.children.length,...Q),A!==this.b&&this.m&&Q.length===1&&U.length===0&&(Q[0].collapsedByDefault=!1,U.push(Q[0])),U}F(A,T,O){const B=A.children.map(j=>this.G(j,T)),W=O&&Object.assign(Object.assign({},O),{diffIdentityProvider:O.diffIdentityProvider&&{getId(j){return O.diffIdentityProvider.getId(j.element)}}});this.a.setChildren(A===this.b?null:A,B,W),A!==this.b&&this.a.setCollapsible(A,A.hasChildren),this.o.fire()}G(A,T){if(A.stale)return{element:A,collapsible:A.hasChildren,collapsed:!0};let O;return T&&T.viewState.expanded&&A.id&&T.viewState.expanded.indexOf(A.id)>-1?O=!1:O=A.collapsedByDefault,A.collapsedByDefault=void 0,{element:A,children:A.hasChildren?t.Iterable.map(A.children,B=>this.G(B,T)):[],collapsible:A.hasChildren,collapsed:O}}H(A){return this.f&&(A=[...A].sort(this.f.compare.bind(this.f))),A}dispose(){this.s.dispose()}}e.AsyncDataTree=y;class k{get element(){return{elements:this.a.element.elements.map(A=>A.element),incompressible:this.a.element.incompressible}}get children(){return this.a.children.map(A=>new k(A))}get depth(){return this.a.depth}get visibleChildrenCount(){return this.a.visibleChildrenCount}get visibleChildIndex(){return this.a.visibleChildIndex}get collapsible(){return this.a.collapsible}get collapsed(){return this.a.collapsed}get visible(){return this.a.visible}get filterData(){return this.a.filterData}constructor(A){this.a=A}}class D{constructor(A,T,O,B){this.d=A,this.f=T,this.g=O,this.onDidChangeTwistieState=B,this.a=new Map,this.b=[],this.templateId=A.templateId}renderTemplate(A){return{templateData:this.d.renderTemplate(A)}}renderElement(A,T,O,B){this.d.renderElement(this.f.map(A),T,O.templateData,B)}renderCompressedElements(A,T,O,B){this.d.renderCompressedElements(this.g().map(A),T,O.templateData,B)}renderTwistie(A,T){return A.slow?(T.classList.add(...f.ThemeIcon.asClassNameArray(v.Codicon.treeItemLoading)),!0):(T.classList.remove(...f.ThemeIcon.asClassNameArray(v.Codicon.treeItemLoading)),!1)}disposeElement(A,T,O,B){var W,j;(j=(W=this.d).disposeElement)===null||j===void 0||j.call(W,this.f.map(A),T,O.templateData,B)}disposeCompressedElements(A,T,O,B){var W,j;(j=(W=this.d).disposeCompressedElements)===null||j===void 0||j.call(W,this.g().map(A),T,O.templateData,B)}disposeTemplate(A){this.d.disposeTemplate(A.templateData)}dispose(){this.a.clear(),this.b=(0,n.dispose)(this.b)}}function M(P){const A=P&&p(P);return A&&Object.assign(Object.assign({},A),{keyboardNavigationLabelProvider:A.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},A.keyboardNavigationLabelProvider),{getCompressedNodeKeyboardNavigationLabel(T){return P.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(T.map(O=>O.element))}})})}class z extends y{constructor(A,T,O,B,W,j,F={}){super(A,T,O,W,j,F),this.L=B,this.J=new L.WeakMapper(U=>new k(U)),this.K=F.filter}v(A,T,O,B,W){const j=new N.ComposedTreeDelegate(O),F=B.map(Q=>new D(Q,this.q,()=>this.J,this.p.event)),U=M(W)||{};return new I.CompressibleObjectTree(A,T,j,F,U)}G(A,T){return Object.assign({incompressible:this.L.isIncompressible(A.element)},super.G(A,T))}updateOptions(A={}){this.a.updateOptions(A)}F(A,T){if(!this.k)return super.F(A,T);const O=ie=>this.k.getId(ie).toString(),B=ie=>{const ue=new Set;for(const J of ie){const x=this.a.getCompressedTreeNode(J===this.b?null:J);if(!!x.element)for(const G of x.element.elements)ue.add(O(G.element))}return ue},W=B(this.a.getSelection()),j=B(this.a.getFocus());super.F(A,T);const F=this.getSelection();let U=!1;const Q=this.getFocus();let se=!1;const he=ie=>{const ue=ie.element;if(ue)for(let J=0;J<ue.elements.length;J++){const x=O(ue.elements[J].element),G=ue.elements[ue.elements.length-1].element;W.has(x)&&F.indexOf(G)===-1&&(F.push(G),U=!0),j.has(x)&&Q.indexOf(G)===-1&&(Q.push(G),se=!0)}ie.children.forEach(he)};he(this.a.getCompressedTreeNode(A===this.b?null:A)),U&&this.setSelection(F),se&&this.setFocus(Q)}H(A){return this.K&&(A=t.Iterable.filter(A,T=>{const O=this.K.filter(T,1),B=R(O);if(B===2)throw new Error("Recursive tree visibility not supported in async data compressed trees");return B===1})),super.H(A)}}e.CompressibleAsyncDataTree=z;function R(P){return typeof P=="boolean"?P?1:0:(0,E.isFilterResult)(P)?(0,E.getVisibleState)(P.visibility):(0,E.getVisibleState)(P)}}),define(_[284],ee([1,0,13,6,2,46,16,9]),function(q,e,C,N,E,I,L,S){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.create=e.SimpleWorkerServer=e.SimpleWorkerClient=e.logOnceWebWorkerWarning=void 0;const v="$initialize";let f=!1;function g(w){!L.isWeb||(f||(f=!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(w.message))}e.logOnceWebWorkerWarning=g;class i{constructor(m,p,b,y){this.vsWorker=m,this.req=p,this.method=b,this.args=y,this.type=0}}class t{constructor(m,p,b,y){this.vsWorker=m,this.seq=p,this.res=b,this.err=y,this.type=1}}class n{constructor(m,p,b,y){this.vsWorker=m,this.req=p,this.eventName=b,this.arg=y,this.type=2}}class a{constructor(m,p,b){this.vsWorker=m,this.req=p,this.event=b,this.type=3}}class r{constructor(m,p){this.vsWorker=m,this.req=p,this.type=4}}class c{constructor(m){this.a=-1,this.g=m,this.b=0,this.c=Object.create(null),this.d=new Map,this.f=new Map}setWorkerId(m){this.a=m}sendMessage(m,p){const b=String(++this.b);return new Promise((y,k)=>{this.c[b]={resolve:y,reject:k},this.o(new i(this.a,b,m,p))})}listen(m,p){let b=null;const y=new N.Emitter({onWillAddFirstListener:()=>{b=String(++this.b),this.d.set(b,y),this.o(new n(this.a,b,m,p))},onDidRemoveLastListener:()=>{this.d.delete(b),this.o(new r(this.a,b)),b=null}});return y.event}handleMessage(m){!m||!m.vsWorker||this.a!==-1&&m.vsWorker!==this.a||this.h(m)}h(m){switch(m.type){case 1:return this.j(m);case 0:return this.k(m);case 2:return this.l(m);case 3:return this.m(m);case 4:return this.n(m)}}j(m){if(!this.c[m.seq]){console.warn("Got reply to unknown seq");return}const p=this.c[m.seq];if(delete this.c[m.seq],m.err){let b=m.err;m.err.$isError&&(b=new Error,b.name=m.err.name,b.message=m.err.message,b.stack=m.err.stack),p.reject(b);return}p.resolve(m.res)}k(m){const p=m.req;this.g.handleMessage(m.method,m.args).then(y=>{this.o(new t(this.a,p,y,void 0))},y=>{y.detail instanceof Error&&(y.detail=(0,C.transformErrorForSerialization)(y.detail)),this.o(new t(this.a,p,void 0,(0,C.transformErrorForSerialization)(y)))})}l(m){const p=m.req,b=this.g.handleEvent(m.eventName,m.arg)(y=>{this.o(new a(this.a,p,y))});this.f.set(p,b)}m(m){if(!this.d.has(m.req)){console.warn("Got event for unknown req");return}this.d.get(m.req).fire(m.event)}n(m){if(!this.f.has(m.req)){console.warn("Got unsubscribe for unknown req");return}this.f.get(m.req).dispose(),this.f.delete(m.req)}o(m){const p=[];if(m.type===0)for(let b=0;b<m.args.length;b++)m.args[b]instanceof ArrayBuffer&&p.push(m.args[b]);else m.type===1&&m.res instanceof ArrayBuffer&&p.push(m.res);this.g.sendMessage(m,p)}}class d extends E.Disposable{constructor(m,p,b){super();let y=null;this.a=this.q(m.create("vs/base/common/worker/simpleWorker",R=>{this.c.handleMessage(R)},R=>{y?.(R)})),this.c=new c({sendMessage:(R,P)=>{this.a.postMessage(R,P)},handleMessage:(R,P)=>{if(typeof b[R]!="function")return Promise.reject(new Error("Missing method "+R+" on main thread host."));try{return Promise.resolve(b[R].apply(b,P))}catch(A){return Promise.reject(A)}},handleEvent:(R,P)=>{if(l(R)){const A=b[R].call(b,P);if(typeof A!="function")throw new Error(`Missing dynamic event ${R} on main thread host.`);return A}if(s(R)){const A=b[R];if(typeof A!="function")throw new Error(`Missing event ${R} on main thread host.`);return A}throw new Error(`Malformed event name ${R}`)}}),this.c.setWorkerId(this.a.getId());let k=null;typeof L.globals.require<"u"&&typeof L.globals.require.getConfig=="function"?k=L.globals.require.getConfig():typeof L.globals.requirejs<"u"&&(k=L.globals.requirejs.s.contexts._.config);const D=(0,I.getAllMethodNames)(b);this.b=this.c.sendMessage(v,[this.a.getId(),JSON.parse(JSON.stringify(k)),p,D]);const M=(R,P)=>this.h(R,P),z=(R,P)=>this.c.listen(R,P);this.g=new Promise((R,P)=>{y=P,this.b.then(A=>{R(o(A,M,z))},A=>{P(A),this.j("Worker failed to load "+p,A)})})}getProxyObject(){return this.g}h(m,p){return new Promise((b,y)=>{this.b.then(()=>{this.c.sendMessage(m,p).then(b,y)},y)})}j(m,p){console.error(m),console.info(p)}}e.SimpleWorkerClient=d;function s(w){return w[0]==="o"&&w[1]==="n"&&S.isUpperAsciiLetter(w.charCodeAt(2))}function l(w){return/^onDynamic/.test(w)&&S.isUpperAsciiLetter(w.charCodeAt(9))}function o(w,m,p){const b=D=>function(){const M=Array.prototype.slice.call(arguments,0);return m(D,M)},y=D=>function(M){return p(D,M)},k={};for(const D of w){if(l(D)){k[D]=y(D);continue}if(s(D)){k[D]=p(D,void 0);continue}k[D]=b(D)}return k}class u{constructor(m,p){this.a=p,this.b=null,this.c=new c({sendMessage:(b,y)=>{m(b,y)},handleMessage:(b,y)=>this.d(b,y),handleEvent:(b,y)=>this.f(b,y)})}onmessage(m){this.c.handleMessage(m)}d(m,p){if(m===v)return this.g(p[0],p[1],p[2],p[3]);if(!this.b||typeof this.b[m]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+m));try{return Promise.resolve(this.b[m].apply(this.b,p))}catch(b){return Promise.reject(b)}}f(m,p){if(!this.b)throw new Error("Missing requestHandler");if(l(m)){const b=this.b[m].call(this.b,p);if(typeof b!="function")throw new Error(`Missing dynamic event ${m} on request handler.`);return b}if(s(m)){const b=this.b[m];if(typeof b!="function")throw new Error(`Missing event ${m} on request handler.`);return b}throw new Error(`Malformed event name ${m}`)}g(m,p,b,y){this.c.setWorkerId(m);const M=o(y,(z,R)=>this.c.sendMessage(z,R),(z,R)=>this.c.listen(z,R));return this.a?(this.b=this.a(M),Promise.resolve((0,I.getAllMethodNames)(this.b))):(p&&(typeof p.baseUrl<"u"&&delete p.baseUrl,typeof p.paths<"u"&&typeof p.paths.vs<"u"&&delete p.paths.vs,typeof p.trustedTypesPolicy!==void 0&&delete p.trustedTypesPolicy,p.catchError=!0,L.globals.require.config(p)),new Promise((z,R)=>{(L.globals.require||q)([b],A=>{if(this.b=A.create(M),!this.b){R(new Error("No RequestHandler!"));return}z((0,I.getAllMethodNames)(this.b))},R)}))}}e.SimpleWorkerServer=u;function h(w){return new u(w,null)}e.create=h}),define(_[540],ee([1,0,48,16,284]),function(q,e,C,N,E){"use strict";var I;Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultWorkerFactory=e.getWorkerBootstrapUrl=void 0;const L=(I=window.trustedTypes)===null||I===void 0?void 0:I.createPolicy("defaultWorkerFactory",{createScriptURL:t=>t});function S(t){if(N.globals.MonacoEnvironment){if(typeof N.globals.MonacoEnvironment.getWorker=="function")return N.globals.MonacoEnvironment.getWorker("workerMain.js",t);if(typeof N.globals.MonacoEnvironment.getWorkerUrl=="function"){const n=N.globals.MonacoEnvironment.getWorkerUrl("workerMain.js",t);return new Worker(L?L.createScriptURL(n):n,{name:t})}}if(typeof q=="function"){const n=q.toUrl("vs/base/worker/workerMain.js"),a=v(n,t);return new Worker(L?L.createScriptURL(a):a,{name:t})}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function v(t,n){if(/^((http:)|(https:)|(file:))/.test(t)&&t.substring(0,self.origin.length)!==self.origin){const s="vs/base/worker/defaultWorkerFactory.js",l=q.toUrl(s).slice(0,-s.length),o=`/*${n}*/self.MonacoEnvironment={baseUrl: '${l}'};const ttPolicy = self.trustedTypes?.createPolicy('defaultWorkerFactory', { createScriptURL: value => value });importScripts(ttPolicy?.createScriptURL('${t}') ?? '${t}');/*${n}*/`,u=new Blob([o],{type:"application/javascript"});return URL.createObjectURL(u)}const a=t.lastIndexOf("?"),r=t.lastIndexOf("#",a),c=a>0?new URLSearchParams(t.substring(a+1,~r?r:void 0)):new URLSearchParams;return C.COI.addSearchParam(c,!0,!0),c.toString()?`${t}?${c.toString()}#${n}`:`${t}#${n}`}e.getWorkerBootstrapUrl=v;function f(t){return typeof t.then=="function"}class g{constructor(n,a,r,c,d){this.a=a;const s=S(r);f(s)?this.b=s:this.b=Promise.resolve(s),this.postMessage(n,[]),this.b.then(l=>{l.onmessage=function(o){c(o.data)},l.onmessageerror=d,typeof l.addEventListener=="function"&&l.addEventListener("error",d)})}getId(){return this.a}postMessage(n,a){var r;(r=this.b)===null||r===void 0||r.then(c=>c.postMessage(n,a))}dispose(){var n;(n=this.b)===null||n===void 0||n.then(a=>a.terminate()),this.b=null}}class i{constructor(n){this.b=n,this.c=!1}create(n,a,r){const c=++i.a;if(this.c)throw this.c;return new g(n,c,this.b||"anonymous"+c,a,d=>{(0,E.logOnceWebWorkerWarning)(d),this.c=d,r(d)})}}i.a=0,e.DefaultWorkerFactory=i}),define(_[541],ee([1,0,11,6,2,18]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InMemoryStorageDatabase=e.Storage=e.StorageState=e.StorageHint=void 0;var L;(function(g){g[g.STORAGE_DOES_NOT_EXIST=0]="STORAGE_DOES_NOT_EXIST",g[g.STORAGE_IN_MEMORY=1]="STORAGE_IN_MEMORY"})(L=e.StorageHint||(e.StorageHint={}));var S;(function(g){g[g.None=0]="None",g[g.Initialized=1]="Initialized",g[g.Closed=2]="Closed"})(S=e.StorageState||(e.StorageState={}));class v extends E.Disposable{constructor(i,t=Object.create(null)){super(),this.l=i,this.m=t,this.b=this.q(new N.Emitter),this.onDidChangeStorage=this.b.event,this.c=S.None,this.g=new Map,this.h=new C.ThrottledDelayer(v.a),this.i=new Set,this.j=new Map,this.k=[],this.n()}n(){this.q(this.l.onDidChangeItemsExternal(i=>this.p(i)))}p(i){var t,n;(t=i.changed)===null||t===void 0||t.forEach((a,r)=>this.r(r,a)),(n=i.deleted)===null||n===void 0||n.forEach(a=>this.r(a,void 0))}r(i,t){if(this.c===S.Closed)return;let n=!1;(0,I.isUndefinedOrNull)(t)?n=this.g.delete(i):this.g.get(i)!==t&&(this.g.set(i,t),n=!0),n&&this.b.fire(i)}get(i,t){const n=this.g.get(i);return(0,I.isUndefinedOrNull)(n)?t:n}getBoolean(i,t){const n=this.get(i);return(0,I.isUndefinedOrNull)(n)?t:n==="true"}getNumber(i,t){const n=this.get(i);return(0,I.isUndefinedOrNull)(n)?t:parseInt(n,10)}set(i,t){return ye(this,void 0,void 0,function*(){if(this.c===S.Closed)return;if((0,I.isUndefinedOrNull)(t))return this.delete(i);const n=String(t);if(this.g.get(i)!==n)return this.g.set(i,n),this.j.set(i,n),this.i.delete(i),this.b.fire(i),this.u()})}delete(i){return ye(this,void 0,void 0,function*(){if(!(this.c===S.Closed||!this.g.delete(i)))return this.i.has(i)||this.i.add(i),this.j.delete(i),this.b.fire(i),this.u()})}get s(){return this.j.size>0||this.i.size>0}t(){return ye(this,void 0,void 0,function*(){if(!this.s)return;const i={insert:this.j,delete:this.i};return this.i=new Set,this.j=new Map,this.l.updateItems(i).finally(()=>{var t;if(!this.s)for(;this.k.length;)(t=this.k.pop())===null||t===void 0||t()})})}u(i){return ye(this,void 0,void 0,function*(){return this.h.trigger(()=>this.t(),i)})}dispose(){this.h.dispose(),super.dispose()}}v.a=100,e.Storage=v;class f{constructor(){this.onDidChangeItemsExternal=N.Event.None,this.a=new Map}updateItems(i){var t,n;return ye(this,void 0,void 0,function*(){(t=i.insert)===null||t===void 0||t.forEach((a,r)=>this.a.set(r,a)),(n=i.delete)===null||n===void 0||n.forEach(a=>this.a.delete(a))})}}e.InMemoryStorageDatabase=f}),define(_[285],ee([1,0,2,6]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ElementSizeObserver=void 0;class E extends C.Disposable{constructor(L,S){super(),this.a=this.q(new N.Emitter),this.onDidChange=this.a.event,this.b=L,this.c=-1,this.g=-1,this.h=null,this.i(!1,S)}dispose(){this.stopObserving(),super.dispose()}getWidth(){return this.c}getHeight(){return this.g}startObserving(){!this.h&&this.b&&(this.h=new ResizeObserver(L=>{L&&L[0]&&L[0].contentRect?this.observe({width:L[0].contentRect.width,height:L[0].contentRect.height}):this.observe()}),this.h.observe(this.b))}stopObserving(){this.h&&(this.h.disconnect(),this.h=null)}observe(L){this.i(!0,L)}i(L,S){let v=0,f=0;S?(v=S.width,f=S.height):this.b&&(v=this.b.clientWidth,f=this.b.clientHeight),v=Math.max(5,v),f=Math.max(5,f),(this.c!==v||this.g!==f)&&(this.c=v,this.g=f,L&&this.a.fire())}}e.ElementSizeObserver=E}),define(_[211],ee([1,0,6]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TabFocus=void 0;class N{constructor(){this.a=!1,this.b=!1,this.c=new C.Emitter,this.onDidChangeTabFocus=this.c.event}getTabFocusMode(I){return I==="terminalFocus"?this.a:this.b}setTabFocusMode(I,L){L==="terminalFocus"?this.a=I:this.b=I,this.c.fire()}}e.TabFocus=new N}),define(_[212],ee([1,0,45,7,75,43,237,11,6,2,101,9,248,22]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextAreaWrapper=e.TextAreaInput=e.InMemoryClipboardMetadataManager=e.CopyOptions=e.TextAreaSyntethicEvents=void 0;var a;(function(o){o.Tap="-monaco-textarea-synthetic-tap"})(a=e.TextAreaSyntethicEvents||(e.TextAreaSyntethicEvents={})),e.CopyOptions={forceCopyWithSyntaxHighlighting:!1};class r{constructor(){this.a=null}set(u,h){this.a={lastCopiedValue:u,data:h}}get(u){return this.a&&this.a.lastCopiedValue===u?this.a.data:(this.a=null,null)}}r.INSTANCE=new r,e.InMemoryClipboardMetadataManager=r;class c{constructor(){this.a=0}handleCompositionUpdate(u){u=u||"";const h={text:u,replacePrevCharCnt:this.a,replaceNextCharCnt:0,positionDelta:0};return this.a=u.length,h}}class d extends f.Disposable{get textAreaState(){return this.s}constructor(u,h,w,m){super(),this.w=u,this.y=h,this.z=w,this.B=m,this.a=this.q(new v.Emitter),this.onFocus=this.a.event,this.b=this.q(new v.Emitter),this.onBlur=this.b.event,this.c=this.q(new v.Emitter),this.onKeyDown=this.c.event,this.g=this.q(new v.Emitter),this.onKeyUp=this.g.event,this.h=this.q(new v.Emitter),this.onCut=this.h.event,this.i=this.q(new v.Emitter),this.onPaste=this.i.event,this.j=this.q(new v.Emitter),this.onType=this.j.event,this.k=this.q(new v.Emitter),this.onCompositionStart=this.k.event,this.l=this.q(new v.Emitter),this.onCompositionUpdate=this.l.event,this.m=this.q(new v.Emitter),this.onCompositionEnd=this.m.event,this.n=this.q(new v.Emitter),this.onSelectionChangeRequest=this.n.event,this.p=this.q(new S.RunOnceScheduler(()=>this.h.fire(),0)),this.r=this.q(new S.RunOnceScheduler(()=>this.writeScreenReaderContent("asyncFocusGain"),0)),this.s=t.TextAreaState.EMPTY,this.t=null,this.writeScreenReaderContent("ctor"),this.u=!1,this.v=null;let p=null;this.q(this.y.onKeyDown(b=>{const y=new I.StandardKeyboardEvent(b);(y.keyCode===109||this.v&&y.keyCode===1)&&y.stopPropagation(),y.equals(9)&&y.preventDefault(),p=y,this.c.fire(y)})),this.q(this.y.onKeyUp(b=>{const y=new I.StandardKeyboardEvent(b);this.g.fire(y)})),this.q(this.y.onCompositionStart(b=>{t._debugComposition&&console.log("[compositionstart]",b);const y=new c;if(this.v){this.v=y;return}if(this.v=y,this.z===2&&p&&p.equals(109)&&this.s.selectionStart===this.s.selectionEnd&&this.s.selectionStart>0&&this.s.value.substr(this.s.selectionStart-1,1)===b.data&&(p.code==="ArrowRight"||p.code==="ArrowLeft")){t._debugComposition&&console.log("[compositionstart] Handling long press case on macOS + arrow key",b),y.handleCompositionUpdate("x"),this.k.fire({data:b.data});return}if(this.B.isAndroid){this.k.fire({data:b.data});return}this.k.fire({data:b.data})})),this.q(this.y.onCompositionUpdate(b=>{t._debugComposition&&console.log("[compositionupdate]",b);const y=this.v;if(!y)return;if(this.B.isAndroid){const D=t.TextAreaState.readFromTextArea(this.y,this.s),M=t.TextAreaState.deduceAndroidCompositionInput(this.s,D);this.s=D,this.j.fire(M),this.l.fire(b);return}const k=y.handleCompositionUpdate(b.data);this.s=t.TextAreaState.readFromTextArea(this.y,this.s),this.j.fire(k),this.l.fire(b)})),this.q(this.y.onCompositionEnd(b=>{t._debugComposition&&console.log("[compositionend]",b);const y=this.v;if(!y)return;if(this.v=null,this.B.isAndroid){const D=t.TextAreaState.readFromTextArea(this.y,this.s),M=t.TextAreaState.deduceAndroidCompositionInput(this.s,D);this.s=D,this.j.fire(M),this.m.fire();return}const k=y.handleCompositionUpdate(b.data);this.s=t.TextAreaState.readFromTextArea(this.y,this.s),this.j.fire(k),this.m.fire()})),this.q(this.y.onInput(b=>{if(t._debugComposition&&console.log("[input]",b),this.y.setIgnoreSelectionChangeTime("received input event"),this.v)return;const y=t.TextAreaState.readFromTextArea(this.y,this.s),k=t.TextAreaState.deduceInput(this.s,y,this.z===2);k.replacePrevCharCnt===0&&k.text.length===1&&(i.isHighSurrogate(k.text.charCodeAt(0))||k.text.charCodeAt(0)===127)||(this.s=y,(k.text!==""||k.replacePrevCharCnt!==0||k.replaceNextCharCnt!==0||k.positionDelta!==0)&&this.j.fire(k))})),this.q(this.y.onCut(b=>{this.y.setIgnoreSelectionChangeTime("received cut event"),this.G(b),this.p.schedule()})),this.q(this.y.onCopy(b=>{this.G(b)})),this.q(this.y.onPaste(b=>{if(this.y.setIgnoreSelectionChangeTime("received paste event"),b.preventDefault(),!b.clipboardData)return;let[y,k]=s.getTextData(b.clipboardData);!y||(k=k||r.INSTANCE.get(y),this.i.fire({text:y,metadata:k}))})),this.q(this.y.onFocus(()=>{const b=this.u;this.D(!0),this.B.isSafari&&!b&&this.u&&this.r.schedule()})),this.q(this.y.onBlur(()=>{this.v&&(this.v=null,this.writeScreenReaderContent("blurWithoutCompositionEnd"),this.m.fire()),this.D(!1)})),this.q(this.y.onSyntheticTap(()=>{this.B.isAndroid&&this.v&&(this.v=null,this.writeScreenReaderContent("tapWithoutCompositionEnd"),this.m.fire())}))}C(){let u=0;return N.addDisposableListener(document,"selectionchange",h=>{if(L.inputLatency.onSelectionChange(),!this.u||this.v||!this.B.isChrome)return;const w=Date.now(),m=w-u;if(u=w,m<5)return;const p=w-this.y.getIgnoreSelectionChangeTime();if(this.y.resetSelectionChangeTime(),p<100||!this.s.selection)return;const b=this.y.getValue();if(this.s.value!==b)return;const y=this.y.getSelectionStart(),k=this.y.getSelectionEnd();if(this.s.selectionStart===y&&this.s.selectionEnd===k)return;const D=this.s.deduceEditorPosition(y),M=this.w.deduceModelPosition(D[0],D[1],D[2]),z=this.s.deduceEditorPosition(k),R=this.w.deduceModelPosition(z[0],z[1],z[2]),P=new n.Selection(M.lineNumber,M.column,R.lineNumber,R.column);this.n.fire(P)})}dispose(){super.dispose(),this.t&&(this.t.dispose(),this.t=null)}focusTextArea(){this.D(!0),this.refreshFocusState()}isFocused(){return this.u}refreshFocusState(){this.D(this.y.hasFocus())}D(u){this.u!==u&&(this.u=u,this.t&&(this.t.dispose(),this.t=null),this.u&&(this.t=this.C()),this.u&&this.writeScreenReaderContent("focusgain"),this.u?this.a.fire():this.b.fire())}F(u,h){this.u||(h=h.collapseSelection()),h.writeToTextArea(u,this.y,this.u),this.s=h}writeScreenReaderContent(u){this.v||this.F(u,this.w.getScreenReaderContent())}G(u){const h=this.w.getDataToCopy(),w={version:1,isFromEmptySelection:h.isFromEmptySelection,multicursorText:h.multicursorText,mode:h.mode};r.INSTANCE.set(this.B.isFirefox?h.text.replace(/\r\n/g,`
|
||
`):h.text,w),u.preventDefault(),u.clipboardData&&s.setTextData(u.clipboardData,h.text,h.html,w)}}e.TextAreaInput=d;class s{static getTextData(u){const h=u.getData(g.Mimes.text);let w=null;const m=u.getData("vscode-editor-data");if(typeof m=="string")try{w=JSON.parse(m),w.version!==1&&(w=null)}catch{}return h.length===0&&w===null&&u.files.length>0?[Array.prototype.slice.call(u.files,0).map(b=>b.name).join(`
|
||
`),null]:[h,w]}static setTextData(u,h,w,m){u.setData(g.Mimes.text,h),typeof w=="string"&&u.setData("text/html",w),u.setData("vscode-editor-data",JSON.stringify(m))}}class l extends f.Disposable{constructor(u){super(),this.c=u,this.onKeyDown=this.q(new E.DomEmitter(this.c,"keydown")).event,this.onKeyUp=this.q(new E.DomEmitter(this.c,"keyup")).event,this.onCompositionStart=this.q(new E.DomEmitter(this.c,"compositionstart")).event,this.onCompositionUpdate=this.q(new E.DomEmitter(this.c,"compositionupdate")).event,this.onCompositionEnd=this.q(new E.DomEmitter(this.c,"compositionend")).event,this.onBeforeInput=this.q(new E.DomEmitter(this.c,"beforeinput")).event,this.onInput=this.q(new E.DomEmitter(this.c,"input")).event,this.onCut=this.q(new E.DomEmitter(this.c,"cut")).event,this.onCopy=this.q(new E.DomEmitter(this.c,"copy")).event,this.onPaste=this.q(new E.DomEmitter(this.c,"paste")).event,this.onFocus=this.q(new E.DomEmitter(this.c,"focus")).event,this.onBlur=this.q(new E.DomEmitter(this.c,"blur")).event,this.a=this.q(new v.Emitter),this.onSyntheticTap=this.a.event,this.b=0,this.q(this.onKeyDown(()=>L.inputLatency.onKeyDown())),this.q(this.onBeforeInput(()=>L.inputLatency.onBeforeInput())),this.q(this.onInput(()=>L.inputLatency.onInput())),this.q(this.onKeyUp(()=>L.inputLatency.onKeyUp())),this.q(N.addDisposableListener(this.c,a.Tap,()=>this.a.fire()))}hasFocus(){const u=N.getShadowRoot(this.c);return u?u.activeElement===this.c:N.isInDOM(this.c)?document.activeElement===this.c:!1}setIgnoreSelectionChangeTime(u){this.b=Date.now()}getIgnoreSelectionChangeTime(){return this.b}resetSelectionChangeTime(){this.b=0}getValue(){return this.c.value}setValue(u,h){const w=this.c;w.value!==h&&(this.setIgnoreSelectionChangeTime("setValue"),w.value=h)}getSelectionStart(){return this.c.selectionDirection==="backward"?this.c.selectionEnd:this.c.selectionStart}getSelectionEnd(){return this.c.selectionDirection==="backward"?this.c.selectionStart:this.c.selectionEnd}setSelectionRange(u,h,w){const m=this.c;let p=null;const b=N.getShadowRoot(m);b?p=b.activeElement:p=document.activeElement;const y=p===m,k=m.selectionStart,D=m.selectionEnd;if(y&&k===h&&D===w){C.isFirefox&&window.parent!==window&&m.focus();return}if(y){this.setIgnoreSelectionChangeTime("setSelectionRange"),m.setSelectionRange(h,w),C.isFirefox&&window.parent!==window&&m.focus();return}try{const M=N.saveParentsScrollTop(m);this.setIgnoreSelectionChangeTime("setSelectionRange"),m.focus(),m.setSelectionRange(h,w),N.restoreParentsScrollTop(m,M)}catch{}}}e.TextAreaWrapper=l}),define(_[542],ee([1,0,7,35,51]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewContentWidgets=void 0;class I extends E.ViewPart{constructor(t,n){super(t),this.a=n,this.b={},this.domNode=(0,N.createFastDomNode)(document.createElement("div")),E.PartFingerprints.write(this.domNode,1),this.domNode.setClassName("contentWidgets"),this.domNode.setPosition("absolute"),this.domNode.setTop(0),this.overflowingContentWidgetsDomNode=(0,N.createFastDomNode)(document.createElement("div")),E.PartFingerprints.write(this.overflowingContentWidgetsDomNode,2),this.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets")}dispose(){super.dispose(),this.b={}}onConfigurationChanged(t){const n=Object.keys(this.b);for(const a of n)this.b[a].onConfigurationChanged(t);return!0}onDecorationsChanged(t){return!0}onFlushed(t){return!0}onLineMappingChanged(t){return this.c(),!0}onLinesChanged(t){return this.c(),!0}onLinesDeleted(t){return this.c(),!0}onLinesInserted(t){return this.c(),!0}onScrollChanged(t){return!0}onZonesChanged(t){return!0}c(){const t=Object.keys(this.b);for(const n of t)this.b[n].updateAnchorViewPosition()}addWidget(t){const n=new L(this._context,this.a,t);this.b[n.id]=n,n.allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(n.domNode):this.domNode.appendChild(n.domNode),this.l()}setWidgetPosition(t,n,a,r,c){this.b[t.getId()].setPosition(n,a,r,c),this.l()}removeWidget(t){const n=t.getId();if(this.b.hasOwnProperty(n)){const a=this.b[n];delete this.b[n];const r=a.domNode.domNode;r.parentNode.removeChild(r),r.removeAttribute("monaco-visible-content-widget"),this.l()}}shouldSuppressMouseDownOnWidget(t){return this.b.hasOwnProperty(t)?this.b[t].suppressMouseDown:!1}onBeforeRender(t){const n=Object.keys(this.b);for(const a of n)this.b[a].onBeforeRender(t)}prepareRender(t){const n=Object.keys(this.b);for(const a of n)this.b[a].prepareRender(t)}render(t){const n=Object.keys(this.b);for(const a of n)this.b[a].render(t)}}e.ViewContentWidgets=I;class L{constructor(t,n,a){this.i=new S(null,null),this.j=new S(null,null),this.a=t,this.b=n,this.c=a,this.domNode=(0,N.createFastDomNode)(this.c.getDomNode()),this.id=this.c.getId(),this.allowEditorOverflow=this.c.allowEditorOverflow||!1,this.suppressMouseDown=this.c.suppressMouseDown||!1;const r=this.a.configuration.options,c=r.get(138);this.d=r.get(39),this.f=c.contentWidth,this.g=c.contentLeft,this.h=r.get(63),this.k=null,this.l=[],this.m=-1,this.n=-1,this.o=this.s(),this.p=!1,this.q=null,this.domNode.setPosition(this.d&&this.allowEditorOverflow?"fixed":"absolute"),this.domNode.setDisplay("none"),this.domNode.setVisibility("hidden"),this.domNode.setAttribute("widgetId",this.id),this.domNode.setMaxWidth(this.o)}onConfigurationChanged(t){const n=this.a.configuration.options;if(this.h=n.get(63),t.hasChanged(138)){const a=n.get(138);this.g=a.contentLeft,this.f=a.contentWidth,this.o=this.s()}}updateAnchorViewPosition(){this.r(this.k,this.i.modelPosition,this.j.modelPosition)}r(t,n,a){this.k=t,this.i=r(n,this.a.viewModel,this.k),this.j=r(a,this.a.viewModel,this.k);function r(c,d,s){if(!c)return new S(null,null);const l=d.model.validatePosition(c);if(d.coordinatesConverter.modelPositionIsVisible(l)){const o=d.coordinatesConverter.convertModelPositionToViewPosition(l,s??void 0);return new S(c,o)}return new S(c,null)}}s(){return this.allowEditorOverflow?window.innerWidth||document.documentElement.offsetWidth||document.body.offsetWidth:this.f}setPosition(t,n,a,r){this.r(r,t,n),this.l=a,this.i.viewPosition&&this.l&&this.l.length>0?this.domNode.setDisplay("block"):this.domNode.setDisplay("none"),this.m=-1,this.n=-1}t(t,n,a,r){const c=t.top,d=c,s=t.top+t.height,l=r.viewportHeight-s,o=c-a,u=d>=a,h=s,w=l>=a;let m=t.left;return m+n>r.scrollLeft+r.viewportWidth&&(m=r.scrollLeft+r.viewportWidth-n),m<r.scrollLeft&&(m=r.scrollLeft),{fitsAbove:u,aboveTop:o,fitsBelow:w,belowTop:h,left:m}}u(t,n,a,r){const s=Math.max(15,n.left-r),l=Math.min(n.left+n.width+r,t.width-15);let o=n.left+a-window.scrollX;if(o+r>l){const u=o-(l-r);o-=u,a-=u}if(o<s){const u=o-s;o-=u,a-=u}return[a,o]}v(t,n,a,r){const c=t.top-a,d=t.top+t.height,s=C.getDomNodePagePosition(this.b.domNode),l=s.top+c-window.scrollY,o=s.top+d-window.scrollY,u=C.getClientArea(document.body),[h,w]=this.u(u,s,t.left-r.scrollLeft+this.g,n),m=22,p=22,b=l>=m,y=o+a<=u.height-p;return this.d?{fitsAbove:b,aboveTop:Math.max(l,m),fitsBelow:y,belowTop:o,left:w}:{fitsAbove:b,aboveTop:c,fitsBelow:y,belowTop:d,left:h}}w(t){return new v(t.top,t.left+this.g)}x(t){var n,a;const r=s(this.i.viewPosition,this.k,this.h),c=((n=this.j.viewPosition)===null||n===void 0?void 0:n.lineNumber)===((a=this.i.viewPosition)===null||a===void 0?void 0:a.lineNumber)?this.j.viewPosition:null,d=s(c,this.k,this.h);return{primary:r,secondary:d};function s(l,o,u){if(!l)return null;const h=t.visibleRangeForPosition(l);if(!h)return null;const w=l.column===1&&o===3?0:h.left,m=t.getVerticalOffsetForLineNumber(l.lineNumber)-t.scrollTop;return new f(m,w,u)}}y(t,n,a){if(!n)return t;const r=this.a.configuration.options.get(47);let c=n.left;return c<t.left?c=Math.max(c,t.left-a+r.typicalFullwidthCharacterWidth):c=Math.min(c,t.left+a-r.typicalFullwidthCharacterWidth),new f(t.top,c,t.height)}z(t){if(!this.l||this.l.length===0)return null;const{primary:n,secondary:a}=this.x(t);if(!n)return null;if(this.m===-1||this.n===-1){let d=null;if(typeof this.c.beforeRender=="function"&&(d=g(this.c.beforeRender,this.c)),d)this.m=d.width,this.n=d.height;else{const l=this.domNode.domNode.getBoundingClientRect();this.m=Math.round(l.width),this.n=Math.round(l.height)}}const r=this.y(n,a,this.m);let c;this.allowEditorOverflow?c=this.v(r,this.m,this.n,t):c=this.t(r,this.m,this.n,t);for(let d=1;d<=2;d++)for(const s of this.l)if(s===1){if(!c)return null;if(d===2||c.fitsAbove)return{coordinate:new v(c.aboveTop,c.left),position:1}}else if(s===2){if(!c)return null;if(d===2||c.fitsBelow)return{coordinate:new v(c.belowTop,c.left),position:2}}else return this.allowEditorOverflow?{coordinate:this.w(new v(r.top,r.left)),position:0}:{coordinate:new v(r.top,r.left),position:0};return null}onBeforeRender(t){!this.i.viewPosition||!this.l||this.i.viewPosition.lineNumber<t.startLineNumber||this.i.viewPosition.lineNumber>t.endLineNumber||this.domNode.setMaxWidth(this.o)}prepareRender(t){this.q=this.z(t)}render(t){if(!this.q){this.p&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this.p=!1,this.domNode.setVisibility("hidden")),typeof this.c.afterRender=="function"&&g(this.c.afterRender,this.c,null);return}this.allowEditorOverflow?(this.domNode.setTop(this.q.coordinate.top),this.domNode.setLeft(this.q.coordinate.left)):(this.domNode.setTop(this.q.coordinate.top+t.scrollTop-t.bigNumbersDelta),this.domNode.setLeft(this.q.coordinate.left)),this.p||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this.p=!0),typeof this.c.afterRender=="function"&&g(this.c.afterRender,this.c,this.q.position)}}class S{constructor(t,n){this.modelPosition=t,this.viewPosition=n}}class v{constructor(t,n){this.top=t,this.left=n,this._coordinateBrand=void 0}}class f{constructor(t,n,a){this.top=t,this.left=n,this.height=a,this._anchorCoordinateBrand=void 0}}function g(i,t,...n){try{return i.call(t,...n)}catch{return null}}}),define(_[543],ee([1,0,11,13,2]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CodeEditorContributions=void 0;class I extends E.Disposable{constructor(){super(),this.a=null,this.b=null,this.c=this.q(new E.DisposableMap),this.g=new Map,this.h=[],this.h[0]=!1,this.h[1]=!1,this.h[2]=!1,this.h[3]=!1}initialize(S,v,f){this.a=S,this.b=f;for(const g of v){if(this.g.has(g.id)){(0,N.onUnexpectedError)(new Error(`Cannot have two contributions with the same id ${g.id}`));continue}this.g.set(g.id,g)}this.i(0),this.q((0,C.runWhenIdle)(()=>{this.i(1)})),this.q((0,C.runWhenIdle)(()=>{this.i(2)})),this.q((0,C.runWhenIdle)(()=>{this.i(3)},5e3))}saveViewState(){const S={};for(const[v,f]of this.c)typeof f.saveViewState=="function"&&(S[v]=f.saveViewState());return S}restoreViewState(S){for(const[v,f]of this.c)typeof f.restoreViewState=="function"&&f.restoreViewState(S[v])}get(S){return this.k(S),this.c.get(S)||null}onBeforeInteractionEvent(){this.i(2)}onAfterModelAttached(){this.q((0,C.runWhenIdle)(()=>{this.i(1)},50))}i(S){if(this.h[S])return;this.h[S]=!0;const v=this.j(S);for(const f of v)this.k(f.id)}j(S){const v=[];for(const[,f]of this.g)f.instantiation===S&&v.push(f);return v}k(S){const v=this.g.get(S);if(!!v){if(this.g.delete(S),!this.b||!this.a)throw new Error("Cannot instantiate contributions before being initialized!");try{const f=this.b.createInstance(v.ctor,this.a);this.c.set(v.id,f),typeof f.restoreViewState=="function"&&v.instantiation!==0&&console.warn(`Editor contribution '${v.id}' should be eager instantiated because it uses saveViewState / restoreViewState.`)}catch(f){(0,N.onUnexpectedError)(f)}}}}e.CodeEditorContributions=I}),define(_[169],ee([1,0,6]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorZoom=void 0,e.EditorZoom=new class{constructor(){this.a=0,this.b=new C.Emitter,this.onDidChangeZoomLevel=this.b.event}getZoomLevel(){return this.a}setZoomLevel(N){N=Math.min(Math.max(-5,N),20),this.a!==N&&(this.a=N,this.b.fire(this.a))}}}),define(_[95],ee([1,0,9,16,126]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StringBuilder=e.decodeUTF16LE=e.getPlatformTextDecoder=void 0;let I;function L(){return I||(I=new TextDecoder("UTF-16LE")),I}let S;function v(){return S||(S=new TextDecoder("UTF-16BE")),S}let f;function g(){return f||(f=N.isLittleEndian()?L():v()),f}e.getPlatformTextDecoder=g;function i(a,r,c){const d=new Uint16Array(a.buffer,r,c);return c>0&&(d[0]===65279||d[0]===65534)?t(a,r,c):L().decode(d)}e.decodeUTF16LE=i;function t(a,r,c){const d=[];let s=0;for(let l=0;l<c;l++){const o=E.readUInt16LE(a,r);r+=2,d[s++]=String.fromCharCode(o)}return d.join("")}class n{constructor(r){this.a=r|0,this.b=new Uint16Array(this.a),this.c=null,this.d=0}reset(){this.c=null,this.d=0}build(){return this.c!==null?(this.f(),this.c.join("")):this.e()}e(){if(this.d===0)return"";const r=new Uint16Array(this.b.buffer,0,this.d);return g().decode(r)}f(){const r=this.e();this.d=0,this.c===null?this.c=[r]:this.c[this.c.length]=r}appendCharCode(r){const c=this.a-this.d;c<=1&&(c===0||C.isHighSurrogate(r))&&this.f(),this.b[this.d++]=r}appendASCIICharCode(r){this.d===this.a&&this.f(),this.b[this.d++]=r}appendString(r){const c=r.length;if(this.d+c>=this.a){this.f(),this.c[this.c.length]=r;return}for(let d=0;d<c;d++)this.b[this.d++]=r.charCodeAt(d)}}e.StringBuilder=n}),define(_[544],ee([1,0,95,9,73,104,258]),function(q,e,C,N,E,I,L){"use strict";var S;Object.defineProperty(e,"__esModule",{value:!0}),e.DOMLineBreaksComputerFactory=void 0;const v=(S=window.trustedTypes)===null||S===void 0?void 0:S.createPolicy("domLineBreaksComputer",{createHTML:r=>r});class f{static create(){return new f}constructor(){}createLineBreaksComputer(c,d,s,l,o){const u=[],h=[];return{addRequest:(w,m,p)=>{u.push(w),h.push(m)},finalize:()=>g(u,c,d,s,l,o,h)}}}e.DOMLineBreaksComputerFactory=f;function g(r,c,d,s,l,o,u){var h;function w(F){const U=u[F];if(U){const Q=I.LineInjectedText.applyInjectedText(r[F],U),se=U.map(ie=>ie.options),he=U.map(ie=>ie.column-1);return new L.ModelLineProjectionData(he,se,[Q.length],[],0)}else return null}if(s===-1){const F=[];for(let U=0,Q=r.length;U<Q;U++)F[U]=w(U);return F}const m=Math.round(s*c.typicalHalfwidthCharacterWidth),b=Math.round(d*(l===3?2:l===2?1:0)),y=Math.ceil(c.spaceWidth*b),k=document.createElement("div");(0,E.applyFontInfo)(k,c);const D=new C.StringBuilder(1e4),M=[],z=[],R=[],P=[],A=[];for(let F=0;F<r.length;F++){const U=I.LineInjectedText.applyInjectedText(r[F],u[F]);let Q=0,se=0,he=m;if(l!==0)if(Q=N.firstNonWhitespaceIndex(U),Q===-1)Q=0;else{for(let x=0;x<Q;x++)se+=U.charCodeAt(x)===9?d-se%d:1;const J=Math.ceil(c.spaceWidth*se);J+c.typicalFullwidthCharacterWidth>m?(Q=0,se=0):he=m-J}const ie=U.substr(Q),ue=i(ie,se,d,he,D,y);M[F]=Q,z[F]=se,R[F]=ie,P[F]=ue[0],A[F]=ue[1]}const T=D.build(),O=(h=v?.createHTML(T))!==null&&h!==void 0?h:T;k.innerHTML=O,k.style.position="absolute",k.style.top="10000",o==="keepAll"?(k.style.wordBreak="keep-all",k.style.overflowWrap="anywhere"):(k.style.wordBreak="inherit",k.style.overflowWrap="break-word"),document.body.appendChild(k);const B=document.createRange(),W=Array.prototype.slice.call(k.children,0),j=[];for(let F=0;F<r.length;F++){const U=W[F],Q=t(B,U,R[F],P[F]);if(Q===null){j[F]=w(F);continue}const se=M[F],he=z[F]+b,ie=A[F],ue=[];for(let te=0,Z=Q.length;te<Z;te++)ue[te]=ie[Q[te]];if(se!==0)for(let te=0,Z=Q.length;te<Z;te++)Q[te]+=se;let J,x;const G=u[F];G?(J=G.map(te=>te.options),x=G.map(te=>te.column-1)):(J=null,x=null),j[F]=new L.ModelLineProjectionData(x,J,Q,ue,he)}return document.body.removeChild(k),j}function i(r,c,d,s,l,o){if(o!==0){const y=String(o);l.appendString('<div style="text-indent: -'),l.appendString(y),l.appendString("px; padding-left: "),l.appendString(y),l.appendString("px; box-sizing: border-box; width:")}else l.appendString('<div style="width:');l.appendString(String(s)),l.appendString('px;">');const u=r.length;let h=c,w=0;const m=[],p=[];let b=0<u?r.charCodeAt(0):0;l.appendString("<span>");for(let y=0;y<u;y++){y!==0&&y%16384===0&&l.appendString("</span><span>"),m[y]=w,p[y]=h;const k=b;b=y+1<u?r.charCodeAt(y+1):0;let D=1,M=1;switch(k){case 9:D=d-h%d,M=D;for(let z=1;z<=D;z++)z<D?l.appendCharCode(160):l.appendASCIICharCode(32);break;case 32:b===32?l.appendCharCode(160):l.appendASCIICharCode(32);break;case 60:l.appendString("<");break;case 62:l.appendString(">");break;case 38:l.appendString("&");break;case 0:l.appendString("�");break;case 65279:case 8232:case 8233:case 133:l.appendCharCode(65533);break;default:N.isFullWidthCharacter(k)&&M++,k<32?l.appendCharCode(9216+k):l.appendCharCode(k)}w+=D,h+=M}return l.appendString("</span>"),m[r.length]=w,p[r.length]=h,l.appendString("</div>"),[m,p]}function t(r,c,d,s){if(d.length<=1)return null;const l=Array.prototype.slice.call(c.children,0),o=[];try{n(r,l,s,0,null,d.length-1,null,o)}catch(u){return console.log(u),null}return o.length===0?null:(o.push(d.length),o)}function n(r,c,d,s,l,o,u,h){if(s===o||(l=l||a(r,c,d[s],d[s+1]),u=u||a(r,c,d[o],d[o+1]),Math.abs(l[0].top-u[0].top)<=.1))return;if(s+1===o){h.push(o);return}const w=s+(o-s)/2|0,m=a(r,c,d[w],d[w+1]);n(r,c,d,s,l,w,m,h),n(r,c,d,w,m,o,u,h)}function a(r,c,d,s){return r.setStart(c[d/16384|0].firstChild,d%16384),r.setEnd(c[s/16384|0].firstChild,s%16384),r.getClientRects()}}),define(_[213],ee([1,0,35,95]),function(q,e,C,N){"use strict";var E;Object.defineProperty(e,"__esModule",{value:!0}),e.VisibleLinesCollection=e.RenderedLinesCollection=void 0;class I{constructor(f){this.a=f,this._set(1,[])}flush(){this._set(1,[])}_set(f,g){this.b=g,this.c=f}_get(){return{rendLineNumberStart:this.c,lines:this.b}}getStartLineNumber(){return this.c}getEndLineNumber(){return this.c+this.b.length-1}getCount(){return this.b.length}getLine(f){const g=f-this.c;if(g<0||g>=this.b.length)throw new Error("Illegal value for lineNumber");return this.b[g]}onLinesDeleted(f,g){if(this.getCount()===0)return null;const i=this.getStartLineNumber(),t=this.getEndLineNumber();if(g<i){const c=g-f+1;return this.c-=c,null}if(f>t)return null;let n=0,a=0;for(let c=i;c<=t;c++){const d=c-this.c;f<=c&&c<=g&&(a===0?(n=d,a=1):a++)}if(f<i){let c=0;g<i?c=g-f+1:c=i-f,this.c-=c}return this.b.splice(n,a)}onLinesChanged(f,g){const i=f+g-1;if(this.getCount()===0)return!1;const t=this.getStartLineNumber(),n=this.getEndLineNumber();let a=!1;for(let r=f;r<=i;r++)r>=t&&r<=n&&(this.b[r-this.c].onContentChanged(),a=!0);return a}onLinesInserted(f,g){if(this.getCount()===0)return null;const i=g-f+1,t=this.getStartLineNumber(),n=this.getEndLineNumber();if(f<=t)return this.c+=i,null;if(f>n)return null;if(i+f>n)return this.b.splice(f-this.c,n-f+1);const a=[];for(let l=0;l<i;l++)a[l]=this.a();const r=f-this.c,c=this.b.slice(0,r),d=this.b.slice(r,this.b.length-i),s=this.b.slice(this.b.length-i,this.b.length);return this.b=c.concat(a).concat(d),s}onTokensChanged(f){if(this.getCount()===0)return!1;const g=this.getStartLineNumber(),i=this.getEndLineNumber();let t=!1;for(let n=0,a=f.length;n<a;n++){const r=f[n];if(r.toLineNumber<g||r.fromLineNumber>i)continue;const c=Math.max(g,r.fromLineNumber),d=Math.min(i,r.toLineNumber);for(let s=c;s<=d;s++){const l=s-this.c;this.b[l].onTokensChanged(),t=!0}}return t}}e.RenderedLinesCollection=I;class L{constructor(f){this.a=f,this.domNode=this.c(),this.b=new I(()=>this.a.createVisibleLine())}c(){const f=(0,C.createFastDomNode)(document.createElement("div"));return f.setClassName("view-layer"),f.setPosition("absolute"),f.domNode.setAttribute("role","presentation"),f.domNode.setAttribute("aria-hidden","true"),f}onConfigurationChanged(f){return!!f.hasChanged(138)}onFlushed(f){return this.b.flush(),!0}onLinesChanged(f){return this.b.onLinesChanged(f.fromLineNumber,f.count)}onLinesDeleted(f){const g=this.b.onLinesDeleted(f.fromLineNumber,f.toLineNumber);if(g)for(let i=0,t=g.length;i<t;i++){const n=g[i].getDomNode();n&&this.domNode.domNode.removeChild(n)}return!0}onLinesInserted(f){const g=this.b.onLinesInserted(f.fromLineNumber,f.toLineNumber);if(g)for(let i=0,t=g.length;i<t;i++){const n=g[i].getDomNode();n&&this.domNode.domNode.removeChild(n)}return!0}onScrollChanged(f){return f.scrollTopChanged}onTokensChanged(f){return this.b.onTokensChanged(f.ranges)}onZonesChanged(f){return!0}getStartLineNumber(){return this.b.getStartLineNumber()}getEndLineNumber(){return this.b.getEndLineNumber()}getVisibleLine(f){return this.b.getLine(f)}renderLines(f){const g=this.b._get(),i=new S(this.domNode.domNode,this.a,f),t={rendLineNumberStart:g.rendLineNumberStart,lines:g.lines,linesLength:g.lines.length},n=i.render(t,f.startLineNumber,f.endLineNumber,f.relativeVerticalOffset);this.b._set(n.rendLineNumberStart,n.lines)}}e.VisibleLinesCollection=L;class S{constructor(f,g,i){this.domNode=f,this.host=g,this.viewportData=i}render(f,g,i,t){const n={rendLineNumberStart:f.rendLineNumberStart,lines:f.lines.slice(0),linesLength:f.linesLength};if(n.rendLineNumberStart+n.linesLength-1<g||i<n.rendLineNumberStart){n.rendLineNumberStart=g,n.linesLength=i-g+1,n.lines=[];for(let a=g;a<=i;a++)n.lines[a-g]=this.host.createVisibleLine();return this.l(n,!0,t),n}if(this.b(n,Math.max(g-n.rendLineNumberStart,0),Math.min(i-n.rendLineNumberStart,n.linesLength-1),t,g),n.rendLineNumberStart>g){const a=g,r=Math.min(i,n.rendLineNumberStart-1);a<=r&&(this.c(n,a,r,t,g),n.linesLength+=r-a+1)}else if(n.rendLineNumberStart<g){const a=Math.min(n.linesLength,g-n.rendLineNumberStart);a>0&&(this.d(n,a),n.linesLength-=a)}if(n.rendLineNumberStart=g,n.rendLineNumberStart+n.linesLength-1<i){const a=n.rendLineNumberStart+n.linesLength,r=i;a<=r&&(this.f(n,a,r,t,g),n.linesLength+=r-a+1)}else if(n.rendLineNumberStart+n.linesLength-1>i){const a=Math.max(0,i-n.rendLineNumberStart+1),c=n.linesLength-1-a+1;c>0&&(this.g(n,c),n.linesLength-=c)}return this.l(n,!1,t),n}b(f,g,i,t,n){const a=f.rendLineNumberStart,r=f.lines;for(let c=g;c<=i;c++){const d=a+c;r[c].layoutLine(d,t[d-n])}}c(f,g,i,t,n){const a=[];let r=0;for(let c=g;c<=i;c++)a[r++]=this.host.createVisibleLine();f.lines=a.concat(f.lines)}d(f,g){for(let i=0;i<g;i++){const t=f.lines[i].getDomNode();t&&this.domNode.removeChild(t)}f.lines.splice(0,g)}f(f,g,i,t,n){const a=[];let r=0;for(let c=g;c<=i;c++)a[r++]=this.host.createVisibleLine();f.lines=f.lines.concat(a)}g(f,g){const i=f.linesLength-g;for(let t=0;t<g;t++){const n=f.lines[i+t].getDomNode();n&&this.domNode.removeChild(n)}f.lines.splice(i,g)}h(f,g,i,t){S.a&&(i=S.a.createHTML(i));const n=this.domNode.lastChild;g||!n?this.domNode.innerHTML=i:n.insertAdjacentHTML("afterend",i);let a=this.domNode.lastChild;for(let r=f.linesLength-1;r>=0;r--){const c=f.lines[r];t[r]&&(c.setDomNode(a),a=a.previousSibling)}}j(f,g,i){const t=document.createElement("div");S.a&&(g=S.a.createHTML(g)),t.innerHTML=g;for(let n=0;n<f.linesLength;n++){const a=f.lines[n];if(i[n]){const r=t.firstChild,c=a.getDomNode();c.parentNode.replaceChild(r,c),a.setDomNode(r)}}}l(f,g,i){const t=S.k,n=f.linesLength,a=f.lines,r=f.rendLineNumberStart,c=[];{t.reset();let d=!1;for(let s=0;s<n;s++){const l=a[s];c[s]=!1,!(l.getDomNode()||!l.renderLine(s+r,i[s],this.viewportData,t))&&(c[s]=!0,d=!0)}d&&this.h(f,g,t.build(),c)}{t.reset();let d=!1;const s=[];for(let l=0;l<n;l++){const o=a[l];s[l]=!1,!(c[l]||!o.renderLine(l+r,i[l],this.viewportData,t))&&(s[l]=!0,d=!0)}d&&this.j(f,t.build(),s)}}}S.a=(E=window.trustedTypes)===null||E===void 0?void 0:E.createPolicy("editorViewLayer",{createHTML:v=>v}),S.k=new N.StringBuilder(1e5)}),define(_[545],ee([1,0,35,73,213,51]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MarginViewOverlays=e.ContentViewOverlays=e.ViewOverlayLine=e.ViewOverlays=void 0;class L extends I.ViewPart{constructor(i){super(i),this.a=new E.VisibleLinesCollection(this),this.b=this.a.domNode;const n=this._context.configuration.options.get(47);(0,N.applyFontInfo)(this.b,n),this.c=[],this.g=!1,this.b.setClassName("view-overlays")}shouldRender(){if(super.shouldRender())return!0;for(let i=0,t=this.c.length;i<t;i++)if(this.c[i].shouldRender())return!0;return!1}dispose(){super.dispose();for(let i=0,t=this.c.length;i<t;i++)this.c[i].dispose();this.c=[]}getDomNode(){return this.b}createVisibleLine(){return new S(this._context.configuration,this.c)}addDynamicOverlay(i){this.c.push(i)}onConfigurationChanged(i){this.a.onConfigurationChanged(i);const t=this.a.getStartLineNumber(),n=this.a.getEndLineNumber();for(let c=t;c<=n;c++)this.a.getVisibleLine(c).onConfigurationChanged(i);const r=this._context.configuration.options.get(47);return(0,N.applyFontInfo)(this.b,r),!0}onFlushed(i){return this.a.onFlushed(i)}onFocusChanged(i){return this.g=i.isFocused,!0}onLinesChanged(i){return this.a.onLinesChanged(i)}onLinesDeleted(i){return this.a.onLinesDeleted(i)}onLinesInserted(i){return this.a.onLinesInserted(i)}onScrollChanged(i){return this.a.onScrollChanged(i)||!0}onTokensChanged(i){return this.a.onTokensChanged(i)}onZonesChanged(i){return this.a.onZonesChanged(i)}prepareRender(i){const t=this.c.filter(n=>n.shouldRender());for(let n=0,a=t.length;n<a;n++){const r=t[n];r.prepareRender(i),r.onDidRender()}}render(i){this._viewOverlaysRender(i),this.b.toggleClassName("focused",this.g)}_viewOverlaysRender(i){this.a.renderLines(i.viewportData)}}e.ViewOverlays=L;class S{constructor(i,t){this.a=i,this.f=this.a.options.get(63),this.b=t,this.c=null,this.d=null}getDomNode(){return this.c?this.c.domNode:null}setDomNode(i){this.c=(0,C.createFastDomNode)(i)}onContentChanged(){}onTokensChanged(){}onConfigurationChanged(i){this.f=this.a.options.get(63)}renderLine(i,t,n,a){let r="";for(let c=0,d=this.b.length;c<d;c++)r+=this.b[c].render(n.startLineNumber,i);return this.d===r?!1:(this.d=r,a.appendString('<div style="position:absolute;top:'),a.appendString(String(t)),a.appendString("px;width:100%;height:"),a.appendString(String(this.f)),a.appendString('px;">'),a.appendString(r),a.appendString("</div>"),!0)}layoutLine(i,t){this.c&&(this.c.setTop(t),this.c.setHeight(this.f))}}e.ViewOverlayLine=S;class v extends L{constructor(i){super(i);const n=this._context.configuration.options.get(138);this.j=n.contentWidth,this.b.setHeight(0)}onConfigurationChanged(i){const n=this._context.configuration.options.get(138);return this.j=n.contentWidth,super.onConfigurationChanged(i)||!0}onScrollChanged(i){return super.onScrollChanged(i)||i.scrollWidthChanged}_viewOverlaysRender(i){super._viewOverlaysRender(i),this.b.setWidth(Math.max(i.scrollWidth,this.j))}}e.ContentViewOverlays=v;class f extends L{constructor(i){super(i);const t=this._context.configuration.options,n=t.get(138);this.j=n.contentLeft,this.b.setClassName("margin-view-overlays"),this.b.setWidth(1),(0,N.applyFontInfo)(this.b,t.get(47))}onConfigurationChanged(i){const t=this._context.configuration.options;(0,N.applyFontInfo)(this.b,t.get(47));const n=t.get(138);return this.j=n.contentLeft,super.onConfigurationChanged(i)||!0}onScrollChanged(i){return super.onScrollChanged(i)||i.scrollHeightChanged}_viewOverlaysRender(i){super._viewOverlaysRender(i);const t=Math.min(i.scrollHeight,1e6);this.b.setHeight(t),this.b.setWidth(this.j)}}e.MarginViewOverlays=f}),define(_[286],ee([1,0,126,95]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.compressConsecutiveTextChanges=e.TextChange=void 0;function E(v){return v.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class 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}constructor(f,g,i,t){this.oldPosition=f,this.oldText=g,this.newPosition=i,this.newText=t}toString(){return this.oldText.length===0?`(insert@${this.oldPosition} "${E(this.newText)}")`:this.newText.length===0?`(delete@${this.oldPosition} "${E(this.oldText)}")`:`(replace@${this.oldPosition} "${E(this.oldText)}" with "${E(this.newText)}")`}static a(f){return 4+2*f.length}static c(f,g,i){const t=g.length;C.writeUInt32BE(f,t,i),i+=4;for(let n=0;n<t;n++)C.writeUInt16LE(f,g.charCodeAt(n),i),i+=2;return i}static d(f,g){const i=C.readUInt32BE(f,g);return g+=4,(0,N.decodeUTF16LE)(f,g,i)}writeSize(){return 4+4+I.a(this.oldText)+I.a(this.newText)}write(f,g){return C.writeUInt32BE(f,this.oldPosition,g),g+=4,C.writeUInt32BE(f,this.newPosition,g),g+=4,g=I.c(f,this.oldText,g),g=I.c(f,this.newText,g),g}static read(f,g,i){const t=C.readUInt32BE(f,g);g+=4;const n=C.readUInt32BE(f,g);g+=4;const a=I.d(f,g);g+=I.a(a);const r=I.d(f,g);return g+=I.a(r),i.push(new I(t,a,n,r)),g}}e.TextChange=I;function L(v,f){return v===null||v.length===0?f:new S(v,f).compress()}e.compressConsecutiveTextChanges=L;class S{constructor(f,g){this.a=f,this.c=g,this.d=[],this.e=0,this.f=this.a.length,this.g=0,this.h=this.c.length,this.j=0}compress(){let f=0,g=0,i=this.n(f),t=this.l(g);for(;f<this.f||g<this.h;){if(i===null){this.k(t),t=this.l(++g);continue}if(t===null){this.m(i),i=this.n(++f);continue}if(t.oldEnd<=i.newPosition){this.k(t),t=this.l(++g);continue}if(i.newEnd<=t.oldPosition){this.m(i),i=this.n(++f);continue}if(t.oldPosition<i.newPosition){const[d,s]=S.r(t,i.newPosition-t.oldPosition);this.k(d),t=s;continue}if(i.newPosition<t.oldPosition){const[d,s]=S.q(i,t.oldPosition-i.newPosition);this.m(d),i=s;continue}let r,c;if(t.oldEnd===i.newEnd)r=i,c=t,i=this.n(++f),t=this.l(++g);else if(t.oldEnd<i.newEnd){const[d,s]=S.q(i,t.oldLength);r=d,c=t,i=s,t=this.l(++g)}else{const[d,s]=S.r(t,i.newLength);r=i,c=d,i=this.n(++f),t=s}this.d[this.e++]=new I(r.oldPosition,r.oldText,c.newPosition,c.newText),this.g+=r.newLength-r.oldLength,this.j+=c.newLength-c.oldLength}const n=S.s(this.d);return S.t(n)}k(f){this.d[this.e++]=S.o(this.g,f),this.j+=f.newLength-f.oldLength}l(f){return f<this.h?this.c[f]:null}m(f){this.d[this.e++]=S.p(this.j,f),this.g+=f.newLength-f.oldLength}n(f){return f<this.f?this.a[f]:null}static o(f,g){return new I(g.oldPosition-f,g.oldText,g.newPosition,g.newText)}static p(f,g){return new I(g.oldPosition,g.oldText,g.newPosition+f,g.newText)}static q(f,g){const i=f.newText.substr(0,g),t=f.newText.substr(g);return[new I(f.oldPosition,f.oldText,f.newPosition,i),new I(f.oldEnd,"",f.newPosition+g,t)]}static r(f,g){const i=f.oldText.substr(0,g),t=f.oldText.substr(g);return[new I(f.oldPosition,i,f.newPosition,f.newText),new I(f.oldPosition+g,t,f.newEnd,"")]}static s(f){if(f.length===0)return f;const g=[];let i=0,t=f[0];for(let n=1;n<f.length;n++){const a=f[n];t.oldEnd===a.oldPosition?t=new I(t.oldPosition,t.oldText+a.oldText,t.newPosition,t.newText+a.newText):(g[i++]=t,t=a)}return g[i++]=t,g}static t(f){if(f.length===0)return f;const g=[];let i=0;for(let t=0;t<f.length;t++){const n=f[t];n.oldText!==n.newText&&(g[i++]=n)}return g}}}),define(_[546],ee([1,0,271,88]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.score=void 0;function E(I,L,S,v,f,g){if(Array.isArray(I)){let i=0;for(const t of I){const n=E(t,L,S,v,f,g);if(n===10)return n;n>i&&(i=n)}return i}else{if(typeof I=="string")return v?I==="*"?5:I===S?10:0:0;if(I){const{language:i,pattern:t,scheme:n,hasAccessToAllModels:a,notebookType:r}=I;if(!v&&!a)return 0;r&&f&&(L=f);let c=0;if(n)if(n===L.scheme)c=10;else if(n==="*")c=5;else return 0;if(i)if(i===S)c=10;else if(i==="*")c=Math.max(c,5);else return 0;if(r)if(r===g)c=10;else if(r==="*"&&g!==void 0)c=Math.max(c,5);else return 0;if(t){let d;if(typeof t=="string"?d=t:d=Object.assign(Object.assign({},t),{base:(0,N.normalize)(t.base)}),d===L.fsPath||(0,C.match)(d,L.fsPath))c=10;else return 0}return c}else return 0}}e.score=E}),define(_[547],ee([1,0,6,2,47,546]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LanguageFeatureRegistry=void 0;function L(f){return typeof f=="string"?!1:Array.isArray(f)?f.every(L):!!f.exclusive}class S{constructor(g,i,t,n){this.uri=g,this.languageId=i,this.notebookUri=t,this.notebookType=n}equals(g){var i,t;return this.notebookType===g.notebookType&&this.languageId===g.languageId&&this.uri.toString()===g.uri.toString()&&((i=this.notebookUri)===null||i===void 0?void 0:i.toString())===((t=g.notebookUri)===null||t===void 0?void 0:t.toString())}}class v{constructor(g){this.f=g,this.c=0,this.d=[],this.e=new C.Emitter,this.onDidChange=this.e.event}register(g,i){let t={selector:g,provider:i,_score:-1,_time:this.c++};return this.d.push(t),this.h=void 0,this.e.fire(this.d.length),(0,N.toDisposable)(()=>{if(t){const n=this.d.indexOf(t);n>=0&&(this.d.splice(n,1),this.h=void 0,this.e.fire(this.d.length),t=void 0)}})}has(g){return this.all(g).length>0}all(g){if(!g)return[];this.i(g);const i=[];for(const t of this.d)t._score>0&&i.push(t.provider);return i}ordered(g){const i=[];return this.g(g,t=>i.push(t.provider)),i}orderedGroups(g){const i=[];let t,n;return this.g(g,a=>{t&&n===a._score?t.push(a.provider):(n=a._score,t=[a.provider],i.push(t))}),i}g(g,i){this.i(g);for(const t of this.d)t._score>0&&i(t)}i(g){var i,t;const n=(i=this.f)===null||i===void 0?void 0:i.call(this,g.uri),a=n?new S(g.uri,g.getLanguageId(),n.uri,n.type):new S(g.uri,g.getLanguageId(),void 0,void 0);if(!(!((t=this.h)===null||t===void 0)&&t.equals(a))){this.h=a;for(const r of this.d)if(r._score=(0,I.score)(r.selector,a.uri,a.languageId,(0,E.shouldSynchronizeModel)(g),a.notebookUri,a.notebookType),L(r.selector)&&r._score>0){for(const c of this.d)c._score=0;r._score=1e3;break}this.d.sort(v.j)}}static j(g,i){return g._score<i._score?1:g._score>i._score?-1:g._time<i._time?1:g._time>i._time?-1:0}}e.LanguageFeatureRegistry=v}),define(_[214],ee([1,0,9,95,4]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BracketsUtils=e.RichEditBrackets=e.RichEditBracket=void 0;class I{constructor(o,u,h,w,m,p){this._richEditBracketBrand=void 0,this.languageId=o,this.index=u,this.open=h,this.close=w,this.forwardRegex=m,this.reversedRegex=p,this.c=I.e(this.open),this.d=I.e(this.close)}isOpen(o){return this.c.has(o)}isClose(o){return this.d.has(o)}static e(o){const u=new Set;for(const h of o)u.add(h);return u}}e.RichEditBracket=I;function L(l){const o=l.length;l=l.map(p=>[p[0].toLowerCase(),p[1].toLowerCase()]);const u=[];for(let p=0;p<o;p++)u[p]=p;const h=(p,b)=>{const[y,k]=p,[D,M]=b;return y===D||y===M||k===D||k===M},w=(p,b)=>{const y=Math.min(p,b),k=Math.max(p,b);for(let D=0;D<o;D++)u[D]===k&&(u[D]=y)};for(let p=0;p<o;p++){const b=l[p];for(let y=p+1;y<o;y++){const k=l[y];h(b,k)&&w(u[p],u[y])}}const m=[];for(let p=0;p<o;p++){const b=[],y=[];for(let k=0;k<o;k++)if(u[k]===p){const[D,M]=l[k];b.push(D),y.push(M)}b.length>0&&m.push({open:b,close:y})}return m}class S{constructor(o,u){this._richEditBracketsBrand=void 0;const h=L(u);this.brackets=h.map((w,m)=>new I(o,m,w.open,w.close,i(w.open,w.close,h,m),t(w.open,w.close,h,m))),this.forwardRegex=n(this.brackets),this.reversedRegex=a(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const w of this.brackets){for(const m of w.open)this.textIsBracket[m]=w,this.textIsOpenBracket[m]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,m.length);for(const m of w.close)this.textIsBracket[m]=w,this.textIsOpenBracket[m]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,m.length)}}}e.RichEditBrackets=S;function v(l,o,u,h){for(let w=0,m=o.length;w<m;w++){if(w===u)continue;const p=o[w];for(const b of p.open)b.indexOf(l)>=0&&h.push(b);for(const b of p.close)b.indexOf(l)>=0&&h.push(b)}}function f(l,o){return l.length-o.length}function g(l){if(l.length<=1)return l;const o=[],u=new Set;for(const h of l)u.has(h)||(o.push(h),u.add(h));return o}function i(l,o,u,h){let w=[];w=w.concat(l),w=w.concat(o);for(let m=0,p=w.length;m<p;m++)v(w[m],u,h,w);return w=g(w),w.sort(f),w.reverse(),c(w)}function t(l,o,u,h){let w=[];w=w.concat(l),w=w.concat(o);for(let m=0,p=w.length;m<p;m++)v(w[m],u,h,w);return w=g(w),w.sort(f),w.reverse(),c(w.map(d))}function n(l){let o=[];for(const u of l){for(const h of u.open)o.push(h);for(const h of u.close)o.push(h)}return o=g(o),c(o)}function a(l){let o=[];for(const u of l){for(const h of u.open)o.push(h);for(const h of u.close)o.push(h)}return o=g(o),c(o.map(d))}function r(l){const o=/^[\w ]+$/.test(l);return l=C.escapeRegExpCharacters(l),o?`\\b${l}\\b`:l}function c(l){const o=`(${l.map(r).join(")|(")})`;return C.createRegExp(o,!0)}const d=function(){function l(h){const w=new Uint16Array(h.length);let m=0;for(let p=h.length-1;p>=0;p--)w[m++]=h.charCodeAt(p);return N.getPlatformTextDecoder().decode(w)}let o=null,u=null;return function(w){return o!==w&&(o=w,u=l(o)),u}}();class s{static c(o,u,h,w){const m=h.match(o);if(!m)return null;const p=h.length-(m.index||0),b=m[0].length,y=w+p;return new E.Range(u,y-b+1,u,y+1)}static findPrevBracketInRange(o,u,h,w,m){const b=d(h).substring(h.length-m,h.length-w);return this.c(o,u,b,w)}static findNextBracketInText(o,u,h,w){const m=h.match(o);if(!m)return null;const p=m.index||0,b=m[0].length;if(b===0)return null;const y=w+p;return new E.Range(u,y+1,u,y+1+b)}static findNextBracketInRange(o,u,h,w,m){const p=h.substring(w,m);return this.findNextBracketInText(o,u,p,w)}}e.BracketsUtils=s}),define(_[548],ee([1,0,17,116,214]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BracketElectricCharacterSupport=void 0;class I{constructor(S){this.a=S}getElectricCharacters(){const S=[];if(this.a)for(const v of this.a.brackets)for(const f of v.close){const g=f.charAt(f.length-1);S.push(g)}return(0,C.distinct)(S)}onElectricCharacter(S,v,f){if(!this.a||this.a.brackets.length===0)return null;const g=v.findTokenIndexAtOffset(f-1);if((0,N.ignoreBracketsInToken)(v.getStandardTokenType(g)))return null;const i=this.a.reversedRegex,t=v.getLineContent().substring(0,f-1)+S,n=E.BracketsUtils.findPrevBracketInRange(i,1,t,0,t.length);if(!n)return null;const a=t.substring(n.startColumn-1,n.endColumn-1).toLowerCase();if(this.a.textIsOpenBracket[a])return null;const c=v.getActualLineContentBefore(n.startColumn-1);return/^\s*$/.test(c)?{matchOpenBracket:a}:null}}e.BracketElectricCharacterSupport=I}),define(_[549],ee([1,0,6,2,4,467,189,254,86,253,117,190,17,459]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BracketPairsTree=void 0;class a extends N.Disposable{didLanguageChange(u){return this.j.didLanguageChange(u)}constructor(u,h){if(super(),this.m=u,this.n=h,this.a=new C.Emitter,this.h=new g.DenseKeyProvider,this.j=new S.LanguageAgnosticBracketTokens(this.h,this.n),this.onDidChange=this.a.event,this.k=[],this.l=[],u.tokenization.hasTokens)u.tokenization.backgroundTokenizationState===2?(this.b=void 0,this.g=this.t([],void 0,!1)):(this.b=this.t([],void 0,!0),this.g=this.b);else{const w=this.j.getSingleLanguageBracketTokens(this.m.getLanguageId()),m=new i.FastTokenizer(this.m.getValue(),w);this.b=(0,f.parseDocument)(m,[],void 0,!0),this.g=this.b}}handleDidChangeBackgroundTokenizationState(){if(this.m.tokenization.backgroundTokenizationState===2){const u=this.b===void 0;this.b=void 0,u||this.a.fire()}}handleDidChangeTokens({ranges:u}){const h=u.map(w=>new L.TextEditInfo((0,v.toLength)(w.fromLineNumber-1,0),(0,v.toLength)(w.toLineNumber,0),(0,v.toLength)(w.toLineNumber-w.fromLineNumber+1,0)));this.p(h,!0),this.b||this.a.fire()}handleContentChanged(u){const h=u.changes.map(w=>{const m=E.Range.lift(w.range);return new L.TextEditInfo((0,v.positionToLength)(m.getStartPosition()),(0,v.positionToLength)(m.getEndPosition()),(0,v.lengthOfString)(w.text))}).reverse();this.p(h,!1)}p(u,h){const w=(0,n.combineTextEditInfos)(this.l,u);this.l=w,this.b&&!h&&(this.k=(0,n.combineTextEditInfos)(this.k,u))}s(){this.l.length>0&&(this.g=this.t(this.l,this.g,!1),this.l=[]),this.k.length>0&&(this.b&&(this.b=this.t(this.k,this.b,!1)),this.k=[])}t(u,h,w){const p=h,b=new i.TextBufferTokenizer(this.m,this.j);return(0,f.parseDocument)(b,u,p,w)}getBracketsInRange(u,h){this.s();const w=(0,v.toLength)(u.startLineNumber-1,u.startColumn-1),m=(0,v.toLength)(u.endLineNumber-1,u.endColumn-1);return new t.CallbackIterable(p=>{const b=this.b||this.g;d(b,v.lengthZero,b.length,w,m,p,0,0,new Map,h)})}getBracketPairsInRange(u,h){this.s();const w=(0,v.positionToLength)(u.getStartPosition()),m=(0,v.positionToLength)(u.getEndPosition());return new t.CallbackIterable(p=>{const b=this.b||this.g,y=new s(p,h,this.m);l(b,v.lengthZero,b.length,w,m,y,0,new Map)})}getFirstBracketAfter(u){this.s();const h=this.b||this.g;return c(h,v.lengthZero,h.length,(0,v.positionToLength)(u))}getFirstBracketBefore(u){this.s();const h=this.b||this.g;return r(h,v.lengthZero,h.length,(0,v.positionToLength)(u))}}e.BracketPairsTree=a;function r(o,u,h,w){if(o.kind===4||o.kind===2){const m=[];for(const p of o.children)h=(0,v.lengthAdd)(u,p.length),m.push({nodeOffsetStart:u,nodeOffsetEnd:h}),u=h;for(let p=m.length-1;p>=0;p--){const{nodeOffsetStart:b,nodeOffsetEnd:y}=m[p];if((0,v.lengthLessThan)(b,w)){const k=r(o.children[p],b,y,w);if(k)return k}}return null}else{if(o.kind===3)return null;if(o.kind===1){const m=(0,v.lengthsToRange)(u,h);return{bracketInfo:o.bracketInfo,range:m}}}return null}function c(o,u,h,w){if(o.kind===4||o.kind===2){for(const m of o.children){if(h=(0,v.lengthAdd)(u,m.length),(0,v.lengthLessThan)(w,h)){const p=c(m,u,h,w);if(p)return p}u=h}return null}else{if(o.kind===3)return null;if(o.kind===1){const m=(0,v.lengthsToRange)(u,h);return{bracketInfo:o.bracketInfo,range:m}}}return null}function d(o,u,h,w,m,p,b,y,k,D,M=!1){if(b>200)return!0;e:for(;;)switch(o.kind){case 4:{const z=o.childrenLength;for(let R=0;R<z;R++){const P=o.getChild(R);if(!!P){if(h=(0,v.lengthAdd)(u,P.length),(0,v.lengthLessThanEqual)(u,m)&&(0,v.lengthGreaterThanEqual)(h,w)){if((0,v.lengthGreaterThanEqual)(h,m)){o=P;continue e}if(!d(P,u,h,w,m,p,b,0,k,D))return!1}u=h}}return!0}case 2:{const z=!D||!o.closingBracket||o.closingBracket.bracketInfo.closesColorized(o.openingBracket.bracketInfo);let R=0;if(k){let A=k.get(o.openingBracket.text);A===void 0&&(A=0),R=A,z&&(A++,k.set(o.openingBracket.text,A))}const P=o.childrenLength;for(let A=0;A<P;A++){const T=o.getChild(A);if(!!T){if(h=(0,v.lengthAdd)(u,T.length),(0,v.lengthLessThanEqual)(u,m)&&(0,v.lengthGreaterThanEqual)(h,w)){if((0,v.lengthGreaterThanEqual)(h,m)&&T.kind!==1){o=T,z?(b++,y=R+1):y=R;continue e}if((z||T.kind!==1||!o.closingBracket)&&!d(T,u,h,w,m,p,z?b+1:b,z?R+1:R,k,D,!o.closingBracket))return!1}u=h}}return k?.set(o.openingBracket.text,R),!0}case 3:{const z=(0,v.lengthsToRange)(u,h);return p(new I.BracketInfo(z,b-1,0,!0))}case 1:{const z=(0,v.lengthsToRange)(u,h);return p(new I.BracketInfo(z,b-1,y-1,M))}case 0:return!0}}class s{constructor(u,h,w){this.push=u,this.includeMinIndentation=h,this.textModel=w}}function l(o,u,h,w,m,p,b,y){var k;if(b>200)return!0;let D=!0;if(o.kind===2){let M=0;if(y){let P=y.get(o.openingBracket.text);P===void 0&&(P=0),M=P,P++,y.set(o.openingBracket.text,P)}const z=(0,v.lengthAdd)(u,o.openingBracket.length);let R=-1;if(p.includeMinIndentation&&(R=o.computeMinIndentation(u,p.textModel)),D=p.push(new I.BracketPairWithMinIndentationInfo((0,v.lengthsToRange)(u,h),(0,v.lengthsToRange)(u,z),o.closingBracket?(0,v.lengthsToRange)((0,v.lengthAdd)(z,((k=o.child)===null||k===void 0?void 0:k.length)||v.lengthZero),h):void 0,b,M,o,R)),u=z,D&&o.child){const P=o.child;if(h=(0,v.lengthAdd)(u,P.length),(0,v.lengthLessThanEqual)(u,m)&&(0,v.lengthGreaterThanEqual)(h,w)&&(D=l(P,u,h,w,m,p,b+1,y),!D))return!1}y?.set(o.openingBracket.text,M)}else{let M=u;for(const z of o.children){const R=M;if(M=(0,v.lengthAdd)(M,z.length),(0,v.lengthLessThanEqual)(R,m)&&(0,v.lengthLessThanEqual)(w,M)&&(D=l(z,R,M,w,m,p,b,y),!D))return!1}}return D}}),define(_[550],ee([1,0,17,6,2,4,116,214,549]),function(q,e,C,N,E,I,L,S,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BracketPairsTextModelPart=void 0;class f extends E.Disposable{get g(){return this.j.getValueLength()<=5e6}constructor(r,c){super(),this.j=r,this.k=c,this.a=this.q(new E.MutableDisposable),this.c=new N.Emitter,this.onDidChange=this.c.event,this.h=!1,this.q(this.k.onDidChange(d=>{var s;(!d.languageId||((s=this.a.value)===null||s===void 0?void 0:s.object.didLanguageChange(d.languageId)))&&(this.a.clear(),this.l())}))}handleDidChangeOptions(r){this.a.clear(),this.l()}handleDidChangeLanguage(r){this.a.clear(),this.l()}handleDidChangeContent(r){var c;(c=this.a.value)===null||c===void 0||c.object.handleContentChanged(r)}handleDidChangeBackgroundTokenizationState(){var r;(r=this.a.value)===null||r===void 0||r.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(r){var c;(c=this.a.value)===null||c===void 0||c.object.handleDidChangeTokens(r)}l(){if(this.h&&this.g){if(!this.a.value){const r=new E.DisposableStore;this.a.value=g(r.add(new v.BracketPairsTree(this.j,c=>this.k.getLanguageConfiguration(c))),r),r.add(this.a.value.object.onDidChange(c=>this.c.fire(c))),this.c.fire()}}else this.a.value&&(this.a.clear(),this.c.fire())}getBracketPairsInRange(r){var c;return this.h=!0,this.l(),((c=this.a.value)===null||c===void 0?void 0:c.object.getBracketPairsInRange(r,!1))||C.CallbackIterable.empty}getBracketPairsInRangeWithMinIndentation(r){var c;return this.h=!0,this.l(),((c=this.a.value)===null||c===void 0?void 0:c.object.getBracketPairsInRange(r,!0))||C.CallbackIterable.empty}getBracketsInRange(r,c=!1){var d;return this.h=!0,this.l(),((d=this.a.value)===null||d===void 0?void 0:d.object.getBracketsInRange(r,c))||C.CallbackIterable.empty}findMatchingBracketUp(r,c,d){const s=this.j.validatePosition(c),l=this.j.getLanguageIdAtPosition(s.lineNumber,s.column);if(this.g){const o=this.k.getLanguageConfiguration(l).bracketsNew.getClosingBracketInfo(r);if(!o)return null;const u=this.getBracketPairsInRange(I.Range.fromPositions(c,c)).findLast(h=>o.closes(h.openingBracketInfo));return u?u.openingBracketRange:null}else{const o=r.toLowerCase(),u=this.k.getLanguageConfiguration(l).brackets;if(!u)return null;const h=u.textIsBracket[o];return h?n(this.s(h,s,i(d))):null}}matchBracket(r,c){if(this.g){const d=this.getBracketPairsInRange(I.Range.fromPositions(r,r)).filter(s=>s.closingBracketRange!==void 0&&(s.openingBracketRange.containsPosition(r)||s.closingBracketRange.containsPosition(r))).findLastMaxBy((0,C.compareBy)(s=>s.openingBracketRange.containsPosition(r)?s.openingBracketRange:s.closingBracketRange,I.Range.compareRangesUsingStarts));return d?[d.openingBracketRange,d.closingBracketRange]:null}else{const d=i(c);return this.n(this.j.validatePosition(r),d)}}m(r,c,d,s){const l=c.getCount(),o=c.getLanguageId(s);let u=Math.max(0,r.column-1-d.maxBracketLength);for(let w=s-1;w>=0;w--){const m=c.getEndOffset(w);if(m<=u)break;if((0,L.ignoreBracketsInToken)(c.getStandardTokenType(w))||c.getLanguageId(w)!==o){u=m;break}}let h=Math.min(c.getLineContent().length,r.column-1+d.maxBracketLength);for(let w=s+1;w<l;w++){const m=c.getStartOffset(w);if(m>=h)break;if((0,L.ignoreBracketsInToken)(c.getStandardTokenType(w))||c.getLanguageId(w)!==o){h=m;break}}return{searchStartOffset:u,searchEndOffset:h}}n(r,c){const d=r.lineNumber,s=this.j.tokenization.getLineTokens(d),l=this.j.getLineContent(d),o=s.findTokenIndexAtOffset(r.column-1);if(o<0)return null;const u=this.k.getLanguageConfiguration(s.getLanguageId(o)).brackets;if(u&&!(0,L.ignoreBracketsInToken)(s.getStandardTokenType(o))){let{searchStartOffset:h,searchEndOffset:w}=this.m(r,s,u,o),m=null;for(;;){const p=S.BracketsUtils.findNextBracketInRange(u.forwardRegex,d,l,h,w);if(!p)break;if(p.startColumn<=r.column&&r.column<=p.endColumn){const b=l.substring(p.startColumn-1,p.endColumn-1).toLowerCase(),y=this.p(p,u.textIsBracket[b],u.textIsOpenBracket[b],c);if(y){if(y instanceof t)return null;m=y}}h=p.endColumn-1}if(m)return m}if(o>0&&s.getStartOffset(o)===r.column-1){const h=o-1,w=this.k.getLanguageConfiguration(s.getLanguageId(h)).brackets;if(w&&!(0,L.ignoreBracketsInToken)(s.getStandardTokenType(h))){const{searchStartOffset:m,searchEndOffset:p}=this.m(r,s,w,h),b=S.BracketsUtils.findPrevBracketInRange(w.reversedRegex,d,l,m,p);if(b&&b.startColumn<=r.column&&r.column<=b.endColumn){const y=l.substring(b.startColumn-1,b.endColumn-1).toLowerCase(),k=this.p(b,w.textIsBracket[y],w.textIsOpenBracket[y],c);if(k)return k instanceof t?null:k}}}return null}p(r,c,d,s){if(!c)return null;const l=d?this.t(c,r.getEndPosition(),s):this.s(c,r.getStartPosition(),s);return l?l instanceof t?l:[r,l]:null}s(r,c,d){const s=r.languageId,l=r.reversedRegex;let o=-1,u=0;const h=(w,m,p,b)=>{for(;;){if(d&&++u%100===0&&!d())return t.INSTANCE;const y=S.BracketsUtils.findPrevBracketInRange(l,w,m,p,b);if(!y)break;const k=m.substring(y.startColumn-1,y.endColumn-1).toLowerCase();if(r.isOpen(k)?o++:r.isClose(k)&&o--,o===0)return y;b=y.startColumn-1}return null};for(let w=c.lineNumber;w>=1;w--){const m=this.j.tokenization.getLineTokens(w),p=m.getCount(),b=this.j.getLineContent(w);let y=p-1,k=b.length,D=b.length;w===c.lineNumber&&(y=m.findTokenIndexAtOffset(c.column-1),k=c.column-1,D=c.column-1);let M=!0;for(;y>=0;y--){const z=m.getLanguageId(y)===s&&!(0,L.ignoreBracketsInToken)(m.getStandardTokenType(y));if(z)M?k=m.getStartOffset(y):(k=m.getStartOffset(y),D=m.getEndOffset(y));else if(M&&k!==D){const R=h(w,b,k,D);if(R)return R}M=z}if(M&&k!==D){const z=h(w,b,k,D);if(z)return z}}return null}t(r,c,d){const s=r.languageId,l=r.forwardRegex;let o=1,u=0;const h=(m,p,b,y)=>{for(;;){if(d&&++u%100===0&&!d())return t.INSTANCE;const k=S.BracketsUtils.findNextBracketInRange(l,m,p,b,y);if(!k)break;const D=p.substring(k.startColumn-1,k.endColumn-1).toLowerCase();if(r.isOpen(D)?o++:r.isClose(D)&&o--,o===0)return k;b=k.endColumn-1}return null},w=this.j.getLineCount();for(let m=c.lineNumber;m<=w;m++){const p=this.j.tokenization.getLineTokens(m),b=p.getCount(),y=this.j.getLineContent(m);let k=0,D=0,M=0;m===c.lineNumber&&(k=p.findTokenIndexAtOffset(c.column-1),D=c.column-1,M=c.column-1);let z=!0;for(;k<b;k++){const R=p.getLanguageId(k)===s&&!(0,L.ignoreBracketsInToken)(p.getStandardTokenType(k));if(R)z||(D=p.getStartOffset(k)),M=p.getEndOffset(k);else if(z&&D!==M){const P=h(m,y,D,M);if(P)return P}z=R}if(z&&D!==M){const R=h(m,y,D,M);if(R)return R}}return null}findPrevBracket(r){var c;const d=this.j.validatePosition(r);if(this.g)return this.h=!0,this.l(),((c=this.a.value)===null||c===void 0?void 0:c.object.getFirstBracketBefore(d))||null;let s=null,l=null,o=null;for(let u=d.lineNumber;u>=1;u--){const h=this.j.tokenization.getLineTokens(u),w=h.getCount(),m=this.j.getLineContent(u);let p=w-1,b=m.length,y=m.length;if(u===d.lineNumber){p=h.findTokenIndexAtOffset(d.column-1),b=d.column-1,y=d.column-1;const D=h.getLanguageId(p);s!==D&&(s=D,l=this.k.getLanguageConfiguration(s).brackets,o=this.k.getLanguageConfiguration(s).bracketsNew)}let k=!0;for(;p>=0;p--){const D=h.getLanguageId(p);if(s!==D){if(l&&o&&k&&b!==y){const z=S.BracketsUtils.findPrevBracketInRange(l.reversedRegex,u,m,b,y);if(z)return this.u(o,z);k=!1}s=D,l=this.k.getLanguageConfiguration(s).brackets,o=this.k.getLanguageConfiguration(s).bracketsNew}const M=!!l&&!(0,L.ignoreBracketsInToken)(h.getStandardTokenType(p));if(M)k?b=h.getStartOffset(p):(b=h.getStartOffset(p),y=h.getEndOffset(p));else if(o&&l&&k&&b!==y){const z=S.BracketsUtils.findPrevBracketInRange(l.reversedRegex,u,m,b,y);if(z)return this.u(o,z)}k=M}if(o&&l&&k&&b!==y){const D=S.BracketsUtils.findPrevBracketInRange(l.reversedRegex,u,m,b,y);if(D)return this.u(o,D)}}return null}findNextBracket(r){var c;const d=this.j.validatePosition(r);if(this.g)return this.h=!0,this.l(),((c=this.a.value)===null||c===void 0?void 0:c.object.getFirstBracketAfter(d))||null;const s=this.j.getLineCount();let l=null,o=null,u=null;for(let h=d.lineNumber;h<=s;h++){const w=this.j.tokenization.getLineTokens(h),m=w.getCount(),p=this.j.getLineContent(h);let b=0,y=0,k=0;if(h===d.lineNumber){b=w.findTokenIndexAtOffset(d.column-1),y=d.column-1,k=d.column-1;const M=w.getLanguageId(b);l!==M&&(l=M,o=this.k.getLanguageConfiguration(l).brackets,u=this.k.getLanguageConfiguration(l).bracketsNew)}let D=!0;for(;b<m;b++){const M=w.getLanguageId(b);if(l!==M){if(u&&o&&D&&y!==k){const R=S.BracketsUtils.findNextBracketInRange(o.forwardRegex,h,p,y,k);if(R)return this.u(u,R);D=!1}l=M,o=this.k.getLanguageConfiguration(l).brackets,u=this.k.getLanguageConfiguration(l).bracketsNew}const z=!!o&&!(0,L.ignoreBracketsInToken)(w.getStandardTokenType(b));if(z)D||(y=w.getStartOffset(b)),k=w.getEndOffset(b);else if(u&&o&&D&&y!==k){const R=S.BracketsUtils.findNextBracketInRange(o.forwardRegex,h,p,y,k);if(R)return this.u(u,R)}D=z}if(u&&o&&D&&y!==k){const M=S.BracketsUtils.findNextBracketInRange(o.forwardRegex,h,p,y,k);if(M)return this.u(u,M)}}return null}findEnclosingBrackets(r,c){const d=this.j.validatePosition(r);if(this.g){const y=I.Range.fromPositions(d),k=this.getBracketPairsInRange(I.Range.fromPositions(d,d)).findLast(D=>D.closingBracketRange!==void 0&&D.range.strictContainsRange(y));return k?[k.openingBracketRange,k.closingBracketRange]:null}const s=i(c),l=this.j.getLineCount(),o=new Map;let u=[];const h=(y,k)=>{if(!o.has(y)){const D=[];for(let M=0,z=k?k.brackets.length:0;M<z;M++)D[M]=0;o.set(y,D)}u=o.get(y)};let w=0;const m=(y,k,D,M,z)=>{for(;;){if(s&&++w%100===0&&!s())return t.INSTANCE;const R=S.BracketsUtils.findNextBracketInRange(y.forwardRegex,k,D,M,z);if(!R)break;const P=D.substring(R.startColumn-1,R.endColumn-1).toLowerCase(),A=y.textIsBracket[P];if(A&&(A.isOpen(P)?u[A.index]++:A.isClose(P)&&u[A.index]--,u[A.index]===-1))return this.p(R,A,!1,s);M=R.endColumn-1}return null};let p=null,b=null;for(let y=d.lineNumber;y<=l;y++){const k=this.j.tokenization.getLineTokens(y),D=k.getCount(),M=this.j.getLineContent(y);let z=0,R=0,P=0;if(y===d.lineNumber){z=k.findTokenIndexAtOffset(d.column-1),R=d.column-1,P=d.column-1;const T=k.getLanguageId(z);p!==T&&(p=T,b=this.k.getLanguageConfiguration(p).brackets,h(p,b))}let A=!0;for(;z<D;z++){const T=k.getLanguageId(z);if(p!==T){if(b&&A&&R!==P){const B=m(b,y,M,R,P);if(B)return n(B);A=!1}p=T,b=this.k.getLanguageConfiguration(p).brackets,h(p,b)}const O=!!b&&!(0,L.ignoreBracketsInToken)(k.getStandardTokenType(z));if(O)A||(R=k.getStartOffset(z)),P=k.getEndOffset(z);else if(b&&A&&R!==P){const B=m(b,y,M,R,P);if(B)return n(B)}A=O}if(b&&A&&R!==P){const T=m(b,y,M,R,P);if(T)return n(T)}}return null}u(r,c){if(!c)return null;let d=this.j.getValueInRange(c);d=d.toLowerCase();const s=r.getBracketInfo(d);return s?{range:c,bracketInfo:s}:null}}e.BracketPairsTextModelPart=f;function g(a,r){return{object:a,dispose:()=>r?.dispose()}}function i(a){if(typeof a>"u")return()=>!0;{const r=Date.now();return()=>Date.now()-r<=a}}class t{constructor(){this._searchCanceledBrand=void 0}}t.INSTANCE=new t;function n(a){return a instanceof t?null:a}}),define(_[287],ee([1,0,6,9,4,47,257,131,286,2]),function(q,e,C,N,E,I,L,S,v,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PieceTreeTextBuffer=void 0;class g extends f.Disposable{constructor(t,n,a,r,c,d,s){super(),this.l=this.q(new C.Emitter),this.g=n,this.k=!d,this.h=r,this.j=c,this.c=new L.PieceTreeBase(t,a,s)}mightContainRTL(){return this.h}mightContainUnusualLineTerminators(){return this.j}resetMightContainUnusualLineTerminators(){this.j=!1}mightContainNonBasicASCII(){return this.k}getBOM(){return this.g}getEOL(){return this.c.getEOL()}createSnapshot(t){return this.c.createSnapshot(t?this.g:"")}getOffsetAt(t,n){return this.c.getOffsetAt(t,n)}getPositionAt(t){return this.c.getPositionAt(t)}getRangeAt(t,n){const a=t+n,r=this.getPositionAt(t),c=this.getPositionAt(a);return new E.Range(r.lineNumber,r.column,c.lineNumber,c.column)}getValueInRange(t,n=0){if(t.isEmpty())return"";const a=this.m(n);return this.c.getValueInRange(t,a)}getValueLengthInRange(t,n=0){if(t.isEmpty())return 0;if(t.startLineNumber===t.endLineNumber)return t.endColumn-t.startColumn;const a=this.getOffsetAt(t.startLineNumber,t.startColumn),r=this.getOffsetAt(t.endLineNumber,t.endColumn);let c=0;const d=this.m(n),s=this.getEOL();if(d.length!==s.length){const l=d.length-s.length,o=t.endLineNumber-t.startLineNumber;c=l*o}return r-a+c}getCharacterCountInRange(t,n=0){if(this.k){let a=0;const r=t.startLineNumber,c=t.endLineNumber;for(let d=r;d<=c;d++){const s=this.getLineContent(d),l=d===r?t.startColumn-1:0,o=d===c?t.endColumn-1:s.length;for(let u=l;u<o;u++)N.isHighSurrogate(s.charCodeAt(u))?(a=a+1,u=u+1):a=a+1}return a+=this.m(n).length*(c-r),a}return this.getValueLengthInRange(t,n)}getLength(){return this.c.getLength()}getLineCount(){return this.c.getLineCount()}getLinesContent(){return this.c.getLinesContent()}getLineContent(t){return this.c.getLineContent(t)}getLineCharCode(t,n){return this.c.getLineCharCode(t,n)}getLineLength(t){return this.c.getLineLength(t)}getLineFirstNonWhitespaceColumn(t){const n=N.firstNonWhitespaceIndex(this.getLineContent(t));return n===-1?0:n+1}getLineLastNonWhitespaceColumn(t){const n=N.lastNonWhitespaceIndex(this.getLineContent(t));return n===-1?0:n+2}m(t){switch(t){case 1:return`
|
||
`;case 2:return`\r
|
||
`;case 0:return this.getEOL();default:throw new Error("Unknown EOL preference")}}setEOL(t){this.c.setEOL(t)}applyEdits(t,n,a){let r=this.h,c=this.j,d=this.k,s=!0,l=[];for(let b=0;b<t.length;b++){const y=t[b];s&&y._isTracked&&(s=!1);const k=y.range;if(y.text){let P=!0;d||(P=!N.isBasicASCII(y.text),d=P),!r&&P&&(r=N.containsRTL(y.text)),!c&&P&&(c=N.containsUnusualLineTerminators(y.text))}let D="",M=0,z=0,R=0;if(y.text){let P;[M,z,R,P]=(0,S.countEOL)(y.text);const A=this.getEOL();P===0||P===(A===`\r
|
||
`?2:1)?D=y.text:D=y.text.replace(/\r\n|\r|\n/g,A)}l[b]={sortIndex:b,identifier:y.identifier||null,range:k,rangeOffset:this.getOffsetAt(k.startLineNumber,k.startColumn),rangeLength:this.getValueLengthInRange(k),text:D,eolCount:M,firstLineLength:z,lastLineLength:R,forceMoveMarkers:Boolean(y.forceMoveMarkers),isAutoWhitespaceEdit:y.isAutoWhitespaceEdit||!1}}l.sort(g.s);let o=!1;for(let b=0,y=l.length-1;b<y;b++){const k=l[b].range.getEndPosition(),D=l[b+1].range.getStartPosition();if(D.isBeforeOrEqual(k)){if(D.isBefore(k))throw new Error("Overlapping ranges are not allowed!");o=!0}}s&&(l=this.n(l));const u=a||n?g._getInverseEditRanges(l):[],h=[];if(n)for(let b=0;b<l.length;b++){const y=l[b],k=u[b];if(y.isAutoWhitespaceEdit&&y.range.isEmpty())for(let D=k.startLineNumber;D<=k.endLineNumber;D++){let M="";D===k.startLineNumber&&(M=this.getLineContent(y.range.startLineNumber),N.firstNonWhitespaceIndex(M)!==-1)||h.push({lineNumber:D,oldContent:M})}}let w=null;if(a){let b=0;w=[];for(let y=0;y<l.length;y++){const k=l[y],D=u[y],M=this.getValueInRange(k.range),z=k.rangeOffset+b;b+=k.text.length-M.length,w[y]={sortIndex:k.sortIndex,identifier:k.identifier,range:D,text:M,textChange:new v.TextChange(k.rangeOffset,M,z,k.text)}}o||w.sort((y,k)=>y.sortIndex-k.sortIndex)}this.h=r,this.j=c,this.k=d;const m=this.p(l);let p=null;if(n&&h.length>0){h.sort((b,y)=>y.lineNumber-b.lineNumber),p=[];for(let b=0,y=h.length;b<y;b++){const k=h[b].lineNumber;if(b>0&&h[b-1].lineNumber===k)continue;const D=h[b].oldContent,M=this.getLineContent(k);M.length===0||M===D||N.firstNonWhitespaceIndex(M)!==-1||p.push(k)}}return this.l.fire(),new I.ApplyEditsResult(w,m,p)}n(t){return t.length<1e3?t:[this._toSingleEditOperation(t)]}_toSingleEditOperation(t){let n=!1;const a=t[0].range,r=t[t.length-1].range,c=new E.Range(a.startLineNumber,a.startColumn,r.endLineNumber,r.endColumn);let d=a.startLineNumber,s=a.startColumn;const l=[];for(let m=0,p=t.length;m<p;m++){const b=t[m],y=b.range;n=n||b.forceMoveMarkers,l.push(this.getValueInRange(new E.Range(d,s,y.startLineNumber,y.startColumn))),b.text.length>0&&l.push(b.text),d=y.endLineNumber,s=y.endColumn}const o=l.join(""),[u,h,w]=(0,S.countEOL)(o);return{sortIndex:0,identifier:t[0].identifier,range:c,rangeOffset:this.getOffsetAt(c.startLineNumber,c.startColumn),rangeLength:this.getValueLengthInRange(c,0),text:o,eolCount:u,firstLineLength:h,lastLineLength:w,forceMoveMarkers:n,isAutoWhitespaceEdit:!1}}p(t){t.sort(g.t);const n=[];for(let a=0;a<t.length;a++){const r=t[a],c=r.range.startLineNumber,d=r.range.startColumn,s=r.range.endLineNumber,l=r.range.endColumn;if(c===s&&d===l&&r.text.length===0)continue;r.text?(this.c.delete(r.rangeOffset,r.rangeLength),this.c.insert(r.rangeOffset,r.text,!0)):this.c.delete(r.rangeOffset,r.rangeLength);const o=new E.Range(c,d,s,l);n.push({range:o,rangeLength:r.rangeLength,text:r.text,rangeOffset:r.rangeOffset,forceMoveMarkers:r.forceMoveMarkers})}return n}findMatchesLineByLine(t,n,a,r){return this.c.findMatchesLineByLine(t,n,a,r)}static _getInverseEditRanges(t){const n=[];let a=0,r=0,c=null;for(let d=0,s=t.length;d<s;d++){const l=t[d];let o,u;c?c.range.endLineNumber===l.range.startLineNumber?(o=a,u=r+(l.range.startColumn-c.range.endColumn)):(o=a+(l.range.startLineNumber-c.range.endLineNumber),u=l.range.startColumn):(o=l.range.startLineNumber,u=l.range.startColumn);let h;if(l.text.length>0){const w=l.eolCount+1;w===1?h=new E.Range(o,u,o,u+l.firstLineLength):h=new E.Range(o,u,o+w-1,l.lastLineLength+1)}else h=new E.Range(o,u,o,u);a=h.endLineNumber,r=h.endColumn,n.push(h),c=l}return n}static s(t,n){const a=E.Range.compareRangesUsingEnds(t.range,n.range);return a===0?t.sortIndex-n.sortIndex:a}static t(t,n){const a=E.Range.compareRangesUsingEnds(t.range,n.range);return a===0?n.sortIndex-t.sortIndex:-a}}e.PieceTreeTextBuffer=g}),define(_[551],ee([1,0,9,257,287]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PieceTreeTextBufferBuilder=void 0;class I{constructor(v,f,g,i,t,n,a,r,c){this.a=v,this.b=f,this.c=g,this.d=i,this.e=t,this.f=n,this.g=a,this.h=r,this.j=c}k(v){const f=this.c+this.d+this.e,g=this.c+this.e;return f===0?v===1?`
|
||
`:`\r
|
||
`:g>f/2?`\r
|
||
`:`
|
||
`}create(v){const f=this.k(v),g=this.a;if(this.j&&(f===`\r
|
||
`&&(this.c>0||this.d>0)||f===`
|
||
`&&(this.c>0||this.e>0)))for(let t=0,n=g.length;t<n;t++){const a=g[t].buffer.replace(/\r\n|\r|\n/g,f),r=(0,N.createLineStartsFast)(a);g[t]=new N.StringBuffer(a,r)}const i=new E.PieceTreeTextBuffer(g,this.b,f,this.f,this.g,this.h,this.j);return{textBuffer:i,disposable:i}}}class L{constructor(){this.a=[],this.b="",this.c=!1,this.d=0,this.e=[],this.f=0,this.g=0,this.h=0,this.j=!1,this.k=!1,this.l=!0}acceptChunk(v){if(v.length===0)return;this.a.length===0&&C.startsWithUTF8BOM(v)&&(this.b=C.UTF8_BOM_CHARACTER,v=v.substr(1));const f=v.charCodeAt(v.length-1);f===13||f>=55296&&f<=56319?(this.m(v.substr(0,v.length-1),!1),this.c=!0,this.d=f):(this.m(v,!1),this.c=!1,this.d=f)}m(v,f){!f&&v.length===0||(this.c?this.n(String.fromCharCode(this.d)+v):this.n(v))}n(v){const f=(0,N.createLineStarts)(this.e,v);this.a.push(new N.StringBuffer(v,f.lineStarts)),this.f+=f.cr,this.g+=f.lf,this.h+=f.crlf,f.isBasicASCII||(this.l=!1,this.j||(this.j=C.containsRTL(v)),this.k||(this.k=C.containsUnusualLineTerminators(v)))}finish(v=!0){return this.o(),new I(this.a,this.b,this.f,this.g,this.h,this.j,this.k,this.l,v)}o(){if(this.a.length===0&&this.m("",!0),this.c){this.c=!1;const v=this.a[this.a.length-1];v.buffer+=String.fromCharCode(this.d);const f=(0,N.createLineStartsFast)(v.buffer);v.lineStarts=f,this.d===13&&this.f++}}}e.PieceTreeTextBufferBuilder=L}),define(_[552],ee([1,0,126,16]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encodeSemanticTokensDto=void 0;function E(v){for(let f=0,g=v.length;f<g;f+=4){const i=v[f+0],t=v[f+1],n=v[f+2],a=v[f+3];v[f+0]=a,v[f+1]=n,v[f+2]=t,v[f+3]=i}}function I(v){const f=new Uint8Array(v.buffer,v.byteOffset,v.length*4);return N.isLittleEndian()||E(f),C.VSBuffer.wrap(f)}function L(v){const f=new Uint32Array(S(v));let g=0;if(f[g++]=v.id,v.type==="full")f[g++]=1,f[g++]=v.data.length,f.set(v.data,g),g+=v.data.length;else{f[g++]=2,f[g++]=v.deltas.length;for(const i of v.deltas)f[g++]=i.start,f[g++]=i.deleteCount,i.data?(f[g++]=i.data.length,f.set(i.data,g),g+=i.data.length):f[g++]=0}return I(f)}e.encodeSemanticTokensDto=L;function S(v){let f=0;if(f+=1+1,v.type==="full")f+=1+v.data.length;else{f+=1,f+=(1+1+1)*v.deltas.length;for(const g of v.deltas)g.data&&(f+=g.data.length)}return f}}),define(_[553],ee([1,0,6,2]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenizationRegistry=void 0;class E{constructor(){this.a=new Map,this.b=new Map,this.c=new C.Emitter,this.onDidChange=this.c.event,this.d=null}fire(S){this.c.fire({changedLanguages:S,changedColorMap:!1})}register(S,v){return this.a.set(S,v),this.fire([S]),(0,N.toDisposable)(()=>{this.a.get(S)===v&&(this.a.delete(S),this.fire([S]))})}registerFactory(S,v){var f;(f=this.b.get(S))===null||f===void 0||f.dispose();const g=new I(this,S,v);return this.b.set(S,g),(0,N.toDisposable)(()=>{const i=this.b.get(S);!i||i!==g||(this.b.delete(S),i.dispose())})}getOrCreate(S){return ye(this,void 0,void 0,function*(){const v=this.get(S);if(v)return v;const f=this.b.get(S);return!f||f.isResolved?null:(yield f.resolve(),this.get(S))})}get(S){return this.a.get(S)||null}isResolved(S){if(this.get(S))return!0;const f=this.b.get(S);return!!(!f||f.isResolved)}setColorMap(S){this.d=S,this.c.fire({changedLanguages:Array.from(this.a.keys()),changedColorMap:!0})}getColorMap(){return this.d}getDefaultBackground(){return this.d&&this.d.length>2?this.d[2]:null}}e.TokenizationRegistry=E;class I extends N.Disposable{get isResolved(){return this.c}constructor(S,v,f){super(),this.g=S,this.h=v,this.i=f,this.a=!1,this.b=null,this.c=!1}dispose(){this.a=!0,super.dispose()}resolve(){return ye(this,void 0,void 0,function*(){return this.b||(this.b=this.j()),this.b})}j(){return ye(this,void 0,void 0,function*(){const S=yield Promise.resolve(this.i.createTokenizationSupport());this.c=!0,S&&!this.a&&this.q(this.g.register(this.h,S))})}}}),define(_[26],ee([1,0,29,21,4,553]),function(q,e,C,N,E,I){"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 L{constructor(l,o,u){this.offset=l,this.type=o,this.language=u,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}e.Token=L;class S{constructor(l,o){this.tokens=l,this.endState=o,this._tokenizationResultBrand=void 0}}e.TokenizationResult=S;class v{constructor(l,o){this.tokens=l,this.endState=o,this._encodedTokenizationResultBrand=void 0}}e.EncodedTokenizationResult=v;var f;(function(s){const l=new Map;l.set(0,C.Codicon.symbolMethod),l.set(1,C.Codicon.symbolFunction),l.set(2,C.Codicon.symbolConstructor),l.set(3,C.Codicon.symbolField),l.set(4,C.Codicon.symbolVariable),l.set(5,C.Codicon.symbolClass),l.set(6,C.Codicon.symbolStruct),l.set(7,C.Codicon.symbolInterface),l.set(8,C.Codicon.symbolModule),l.set(9,C.Codicon.symbolProperty),l.set(10,C.Codicon.symbolEvent),l.set(11,C.Codicon.symbolOperator),l.set(12,C.Codicon.symbolUnit),l.set(13,C.Codicon.symbolValue),l.set(15,C.Codicon.symbolEnum),l.set(14,C.Codicon.symbolConstant),l.set(15,C.Codicon.symbolEnum),l.set(16,C.Codicon.symbolEnumMember),l.set(17,C.Codicon.symbolKeyword),l.set(27,C.Codicon.symbolSnippet),l.set(18,C.Codicon.symbolText),l.set(19,C.Codicon.symbolColor),l.set(20,C.Codicon.symbolFile),l.set(21,C.Codicon.symbolReference),l.set(22,C.Codicon.symbolCustomColor),l.set(23,C.Codicon.symbolFolder),l.set(24,C.Codicon.symbolTypeParameter),l.set(25,C.Codicon.account),l.set(26,C.Codicon.issues);function o(w){let m=l.get(w);return m||(console.info("No codicon found for CompletionItemKind "+w),m=C.Codicon.symbolProperty),m}s.toIcon=o;const u=new Map;u.set("method",0),u.set("function",1),u.set("constructor",2),u.set("field",3),u.set("variable",4),u.set("class",5),u.set("struct",6),u.set("interface",7),u.set("module",8),u.set("property",9),u.set("event",10),u.set("operator",11),u.set("unit",12),u.set("value",13),u.set("constant",14),u.set("enum",15),u.set("enum-member",16),u.set("enumMember",16),u.set("keyword",17),u.set("snippet",27),u.set("text",18),u.set("color",19),u.set("file",20),u.set("reference",21),u.set("customcolor",22),u.set("folder",23),u.set("type-parameter",24),u.set("typeParameter",24),u.set("account",25),u.set("issue",26);function h(w,m){let p=u.get(w);return typeof p>"u"&&!m&&(p=9),p}s.fromString=h})(f=e.CompletionItemKinds||(e.CompletionItemKinds={}));var g;(function(s){s[s.Automatic=0]="Automatic",s[s.Explicit=1]="Explicit"})(g=e.InlineCompletionTriggerKind||(e.InlineCompletionTriggerKind={}));var i;(function(s){s[s.Invoke=1]="Invoke",s[s.TriggerCharacter=2]="TriggerCharacter",s[s.ContentChange=3]="ContentChange"})(i=e.SignatureHelpTriggerKind||(e.SignatureHelpTriggerKind={}));var t;(function(s){s[s.Text=0]="Text",s[s.Read=1]="Read",s[s.Write=2]="Write"})(t=e.DocumentHighlightKind||(e.DocumentHighlightKind={}));function n(s){return s&&N.URI.isUri(s.uri)&&E.Range.isIRange(s.range)&&(E.Range.isIRange(s.originSelectionRange)||E.Range.isIRange(s.targetSelectionRange))}e.isLocationLink=n;var a;(function(s){const l=new Map;l.set(0,C.Codicon.symbolFile),l.set(1,C.Codicon.symbolModule),l.set(2,C.Codicon.symbolNamespace),l.set(3,C.Codicon.symbolPackage),l.set(4,C.Codicon.symbolClass),l.set(5,C.Codicon.symbolMethod),l.set(6,C.Codicon.symbolProperty),l.set(7,C.Codicon.symbolField),l.set(8,C.Codicon.symbolConstructor),l.set(9,C.Codicon.symbolEnum),l.set(10,C.Codicon.symbolInterface),l.set(11,C.Codicon.symbolFunction),l.set(12,C.Codicon.symbolVariable),l.set(13,C.Codicon.symbolConstant),l.set(14,C.Codicon.symbolString),l.set(15,C.Codicon.symbolNumber),l.set(16,C.Codicon.symbolBoolean),l.set(17,C.Codicon.symbolArray),l.set(18,C.Codicon.symbolObject),l.set(19,C.Codicon.symbolKey),l.set(20,C.Codicon.symbolNull),l.set(21,C.Codicon.symbolEnumMember),l.set(22,C.Codicon.symbolStruct),l.set(23,C.Codicon.symbolEvent),l.set(24,C.Codicon.symbolOperator),l.set(25,C.Codicon.symbolTypeParameter);function o(u){let h=l.get(u);return h||(console.info("No codicon found for SymbolKind "+u),h=C.Codicon.symbolProperty),h}s.toIcon=o})(a=e.SymbolKinds||(e.SymbolKinds={}));class r{static fromValue(l){switch(l){case"comment":return r.Comment;case"imports":return r.Imports;case"region":return r.Region}return new r(l)}constructor(l){this.value=l}}r.Comment=new r("comment"),r.Imports=new r("imports"),r.Region=new r("region"),e.FoldingRangeKind=r;var c;(function(s){function l(o){return!o||typeof o!="object"?!1:typeof o.id=="string"&&typeof o.title=="string"}s.is=l})(c=e.Command||(e.Command={}));var d;(function(s){s[s.Type=1]="Type",s[s.Parameter=2]="Parameter"})(d=e.InlayHintKind||(e.InlayHintKind={})),e.TokenizationRegistry=new I.TokenizationRegistry}),define(_[141],ee([1,0,26]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.nullTokenizeEncoded=e.nullTokenize=e.NullState=void 0,e.NullState=new class{clone(){return this}equals(I){return this===I}};function N(I,L){return new C.TokenizationResult([new C.Token(0,"",I)],L)}e.nullTokenize=N;function E(I,L){const S=new Uint32Array(2);return S[0]=0,S[1]=(I<<0|0<<8|0<<11|1<<15|2<<24)>>>0,new C.EncodedTokenizationResult(S,L===null?e.NullState:L)}e.nullTokenizeEncoded=E}),define(_[288],ee([1,0,9,87,26,141]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._tokenizeToString=e.tokenizeLineToHTML=e.tokenizeToString=void 0;const L={getInitialState:()=>I.NullState,tokenizeEncoded:(g,i,t)=>(0,I.nullTokenizeEncoded)(0,t)};function S(g,i,t){return ye(this,void 0,void 0,function*(){if(!t)return f(i,g.languageIdCodec,L);const n=yield E.TokenizationRegistry.getOrCreate(t);return f(i,g.languageIdCodec,n||L)})}e.tokenizeToString=S;function v(g,i,t,n,a,r,c){let d="<div>",s=n,l=0,o=!0;for(let u=0,h=i.getCount();u<h;u++){const w=i.getEndOffset(u);if(w<=n)continue;let m="";for(;s<w&&s<a;s++){const p=g.charCodeAt(s);switch(p){case 9:{let b=r-(s+l)%r;for(l+=b-1;b>0;)c&&o?(m+=" ",o=!1):(m+=" ",o=!0),b--;break}case 60:m+="<",o=!1;break;case 62:m+=">",o=!1;break;case 38:m+="&",o=!1;break;case 0:m+="�",o=!1;break;case 65279:case 8232:case 8233:case 133:m+="\uFFFD",o=!1;break;case 13:m+="​",o=!1;break;case 32:c&&o?(m+=" ",o=!1):(m+=" ",o=!0);break;default:m+=String.fromCharCode(p),o=!1}}if(d+=`<span style="${i.getInlineStyle(u,t)}">${m}</span>`,w>a||s>=a)break}return d+="</div>",d}e.tokenizeLineToHTML=v;function f(g,i,t){let n='<div class="monaco-tokenized-source">';const a=C.splitLines(g);let r=t.getInitialState();for(let c=0,d=a.length;c<d;c++){const s=a[c];c>0&&(n+="<br/>");const l=t.tokenizeEncoded(s,!0,r);N.LineTokens.convertToEndOffset(l.tokens,s.length);const u=new N.LineTokens(l.tokens,s,i).inflate();let h=0;for(let w=0,m=u.getCount();w<m;w++){const p=u.getClassName(w),b=u.getEndOffset(w);n+=`<span class="${p}">${C.escape(s.substring(h,b))}</span>`,h=b}r=l.endState}return n+="</div>",n}e._tokenizeToString=f}),define(_[554],ee([1,0,17,11,13,2,16,60,131,26,141,469,87]),function(q,e,C,N,E,I,L,S,v,f,g,i,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextModelTokenization=e.TokenizationStateStore=e.ContiguousGrowingArray=void 0;class n{constructor(o){this.c=o,this.a=[]}get(o){return o<this.a.length?this.a[o]:this.c}set(o,u){for(;o>=this.a.length;)this.a[this.a.length]=this.c;this.a[o]=u}delete(o,u){u===0||o>=this.a.length||this.a.splice(o,u)}insert(o,u){if(u===0||o>=this.a.length)return;const h=[];for(let w=0;w<u;w++)h[w]=this.c;this.a=C.arrayInsert(this.a,o,h)}}e.ContiguousGrowingArray=n;class a{get invalidLineStartIndex(){return this.d}constructor(o,u){this.tokenizationSupport=o,this.initialState=u,this.a=new n(null),this.c=new n(!0),this.d=0,this.a.set(0,this.initialState)}markMustBeTokenized(o){this.c.set(o,!0),this.d=Math.min(this.d,o)}getBeginState(o){return this.a.get(o)}setEndState(o,u,h){if(this.c.set(u,!1),this.d=u+1,u===o-1)return!1;const w=this.a.get(u+1);if(w===null||!h.equals(w))return this.a.set(u+1,h),this.markMustBeTokenized(u+1),!0;let m=u+1;for(;m<o&&!this.c.get(m);)m++;return this.d=m,!1}applyEdits(o,u){this.markMustBeTokenized(o.startLineNumber-1),this.a.delete(o.startLineNumber,o.endLineNumber-o.startLineNumber),this.c.delete(o.startLineNumber,o.endLineNumber-o.startLineNumber),this.a.insert(o.startLineNumber,u),this.c.insert(o.startLineNumber,u)}updateTokensUntilLine(o,u,h,w){const m=o.getLanguageId(),p=o.getLineCount(),b=w-1;for(let y=this.invalidLineStartIndex;y<=b;y++){const k=o.getLineContent(y+1),D=this.getBeginState(y),M=d(u,m,this.tokenizationSupport,k,!0,D);h.add(y+1,M.tokens),this.setEndState(p,y,M.endState),y=this.invalidLineStartIndex-1}}isTokenizationComplete(o){return this.invalidLineStartIndex>=o.getLineCount()}}e.TokenizationStateStore=a;class r extends I.Disposable{constructor(o,u,h){super(),this.h=o,this.j=u,this.k=h,this.a=null,this.c=null,this.g=this.q(new I.MutableDisposable),this.q(f.TokenizationRegistry.onDidChange(w=>{const m=this.h.getLanguageId();w.changedLanguages.indexOf(m)!==-1&&(this.l(),this.j.clearTokens())})),this.l()}handleDidChangeContent(o){var u;if(o.isFlush){this.l();return}if(this.a)for(let h=0,w=o.changes.length;h<w;h++){const m=o.changes[h],[p]=(0,v.countEOL)(m.text);this.a.applyEdits(m.range,p)}(u=this.c)===null||u===void 0||u.handleChanges()}handleDidChangeAttached(){var o;(o=this.c)===null||o===void 0||o.handleChanges()}handleDidChangeLanguage(o){this.l(),this.j.clearTokens()}l(){const[o,u]=c(this.h,this.j);if(o&&u?this.a=new a(o,u):this.a=null,this.g.clear(),this.c=null,this.a){const h={setTokens:w=>{this.j.setTokens(w)},backgroundTokenizationFinished:()=>{this.j.handleBackgroundTokenizationFinished()},setEndState:(w,m)=>{var p,b;if(!m)throw new E.BugIndicatingError;const y=(p=this.a)===null||p===void 0?void 0:p.invalidLineStartIndex;y!==void 0&&w-1>=y&&((b=this.a)===null||b===void 0||b.setEndState(this.h.getLineCount(),w-1,m))}};o&&o.createBackgroundTokenizer&&(this.g.value=o.createBackgroundTokenizer(this.h,h)),this.g.value||(this.g.value=this.c=new s(this.h,this.a,h,this.k),this.c.handleChanges())}}tokenizeViewport(o,u){var h;const w=new i.ContiguousMultilineTokensBuilder;this.m(w,o,u),this.j.setTokens(w.finalize()),(h=this.c)===null||h===void 0||h.checkFinished()}reset(){this.l(),this.j.clearTokens()}forceTokenization(o){var u,h;const w=new i.ContiguousMultilineTokensBuilder;(u=this.a)===null||u===void 0||u.updateTokensUntilLine(this.h,this.k,w,o),this.j.setTokens(w.finalize()),(h=this.c)===null||h===void 0||h.checkFinished()}getTokenTypeIfInsertingCharacter(o,u){if(!this.a)return 0;this.forceTokenization(o.lineNumber);const h=this.a.getBeginState(o.lineNumber-1);if(!h)return 0;const w=this.h.getLanguageId(),m=this.h.getLineContent(o.lineNumber),p=m.substring(0,o.column-1)+u+m.substring(o.column-1),b=d(this.k,w,this.a.tokenizationSupport,p,!0,h),y=new t.LineTokens(b.tokens,p,this.k);if(y.getCount()===0)return 0;const k=y.findTokenIndexAtOffset(o.column-1);return y.getStandardTokenType(k)}tokenizeLineWithEdit(o,u,h){const w=o.lineNumber,m=o.column;if(!this.a)return null;this.forceTokenization(w);const p=this.a.getBeginState(w-1);if(!p)return null;const b=this.h.getLineContent(w),y=b.substring(0,m-1)+h+b.substring(m-1+u),k=this.h.getLanguageIdAtPosition(w,0),D=d(this.k,k,this.a.tokenizationSupport,y,!0,p);return new t.LineTokens(D.tokens,y,this.k)}isCheapToTokenize(o){if(!this.a)return!0;const u=this.a.invalidLineStartIndex+1;return o>u?!1:o<u||this.h.getLineLength(o)<2048}m(o,u,h){var w;if(!this.a||h<=this.a.invalidLineStartIndex)return;if(u<=this.a.invalidLineStartIndex){this.a.updateTokensUntilLine(this.h,this.k,o,h);return}let m=this.n(u);const p=this.h.getLanguageId();for(let b=u;b<=h;b++){const y=this.h.getLineContent(b),k=d(this.k,p,this.a.tokenizationSupport,y,!0,m);o.add(b,k.tokens),m=k.endState}(w=this.g.value)===null||w===void 0||w.requestTokens(u,h+1)}n(o){let u=this.h.getLineFirstNonWhitespaceColumn(o);const h=[];let w=null;for(let b=o-1;u>1&&b>=1;b--){const y=this.h.getLineFirstNonWhitespaceColumn(b);if(y!==0&&y<u&&(h.push(this.h.getLineContent(b)),u=y,w=this.a.getBeginState(b-1),w))break}w||(w=this.a.initialState),h.reverse();const m=this.h.getLanguageId();let p=w;for(const b of h)p=d(this.k,m,this.a.tokenizationSupport,b,!1,p).endState;return p}}e.TextModelTokenization=r;function c(l,o){if(l.isTooLargeForTokenization())return[null,null];const u=f.TokenizationRegistry.get(o.getLanguageId());if(!u)return[null,null];let h;try{h=u.getInitialState()}catch(w){return(0,E.onUnexpectedError)(w),[null,null]}return[u,h]}function d(l,o,u,h,w,m){let p=null;if(u)try{p=u.tokenizeEncoded(h,w,m.clone())}catch(b){(0,E.onUnexpectedError)(b)}return p||(p=(0,g.nullTokenizeEncoded)(l.encodeLanguageId(o),m)),t.LineTokens.convertToEndOffset(p.tokens,h.length),p}class s{constructor(o,u,h,w){this.c=o,this.d=u,this.f=h,this.g=w,this.a=!1,this.h=!1}dispose(){this.a=!0}handleChanges(){this.j()}j(){this.h||!this.c.isAttachedToEditor()||!this.m()||(this.h=!0,(0,N.runWhenIdle)(o=>{this.h=!1,this.k(o)}))}k(o){const u=Date.now()+o.timeRemaining(),h=()=>{this.a||!this.c.isAttachedToEditor()||!this.m()||(this.l(),Date.now()<u?(0,L.setTimeout0)(h):this.j())};h()}l(){const o=this.c.getLineCount(),u=new i.ContiguousMultilineTokensBuilder,h=S.StopWatch.create(!1);do if(h.elapsed()>1||this.n(u)>=o)break;while(this.m());this.f.setTokens(u.finalize()),this.checkFinished()}m(){return this.d?this.d.invalidLineStartIndex<this.c.getLineCount():!1}n(o){if(!this.d||!this.m())return this.c.getLineCount()+1;const u=this.d.invalidLineStartIndex+1;return this.d.updateTokensUntilLine(this.c,this.g,o,u),u}checkFinished(){this.a||this.d.isTokenizationComplete(this.c)&&this.f.backgroundTokenizationFinished()}requestTokens(o,u){for(let h=o;h<u;h++)this.d.markMustBeTokenized(h-1)}}}),define(_[555],ee([1,0,6,12,133,256,554,471,473]),function(q,e,C,N,E,I,L,S,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenizationTextModelPart=void 0;class f extends I.TextModelPart{constructor(i,t,n,a,r){super(),this.m=i,this.n=t,this.p=n,this.r=a,this.s=r,this.a=this.q(new C.Emitter),this.onDidChangeLanguage=this.a.event,this.b=this.q(new C.Emitter),this.onDidChangeLanguageConfiguration=this.b.event,this.h=this.q(new C.Emitter),this.onDidChangeTokens=this.h.event,this.t=1,this.j=new S.ContiguousTokensStore(this.m.languageIdCodec),this.k=new v.SparseTokensStore(this.m.languageIdCodec),this.l=this.q(new L.TextModelTokenization(n,this,this.m.languageIdCodec)),this.q(this.n.onDidChange(c=>{c.affects(this.s)&&this.b.fire({})}))}acceptEdit(i,t,n,a,r){this.j.acceptEdit(i,n,a),this.k.acceptEdit(i,n,a,r,t.length>0?t.charCodeAt(0):0)}handleDidChangeAttached(){this.l.handleDidChangeAttached()}flush(){this.j.flush(),this.k.flush()}handleDidChangeContent(i){this.l.handleDidChangeContent(i)}get backgroundTokenizationState(){return this.t}handleBackgroundTokenizationFinished(){if(this.t===2)return;const i=2;this.t=i,this.r.handleDidChangeBackgroundTokenizationState()}get hasTokens(){return this.j.hasTokens}setTokens(i){if(i.length===0)return;const t=[];for(let n=0,a=i.length;n<a;n++){const r=i[n];let c=0,d=0,s=!1;for(let l=r.startLineNumber;l<=r.endLineNumber;l++)s?(this.j.setTokens(this.s,l-1,this.p.getLineLength(l),r.getLineTokens(l),!1),d=l):this.j.setTokens(this.s,l-1,this.p.getLineLength(l),r.getLineTokens(l),!0)&&(s=!0,c=l,d=l);s&&t.push({fromLineNumber:c,toLineNumber:d})}t.length>0&&this.u({tokenizationSupportChanged:!1,semanticTokensApplied:!1,ranges:t})}setSemanticTokens(i,t){this.k.set(i,t),this.u({tokenizationSupportChanged:!1,semanticTokensApplied:i!==null,ranges:[{fromLineNumber:1,toLineNumber:this.p.getLineCount()}]})}hasCompleteSemanticTokens(){return this.k.isComplete()}hasSomeSemanticTokens(){return!this.k.isEmpty()}setPartialSemanticTokens(i,t){if(this.hasCompleteSemanticTokens())return;const n=this.p.validateRange(this.k.setPartial(i,t));this.u({tokenizationSupportChanged:!1,semanticTokensApplied:!0,ranges:[{fromLineNumber:n.startLineNumber,toLineNumber:n.endLineNumber}]})}tokenizeViewport(i,t){i=Math.max(1,i),t=Math.min(this.p.getLineCount(),t),this.l.tokenizeViewport(i,t)}clearTokens(){this.j.flush(),this.u({tokenizationSupportChanged:!0,semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this.p.getLineCount()}]})}u(i){this.p._isDisposing()||(this.r.handleDidChangeTokens(i),this.h.fire(i))}resetTokenization(){this.l.reset()}forceTokenization(i){if(i<1||i>this.p.getLineCount())throw new Error("Illegal value for lineNumber");this.l.forceTokenization(i)}isCheapToTokenize(i){return this.l.isCheapToTokenize(i)}tokenizeIfCheap(i){this.isCheapToTokenize(i)&&this.forceTokenization(i)}getLineTokens(i){if(i<1||i>this.p.getLineCount())throw new Error("Illegal value for lineNumber");return this.v(i)}v(i){const t=this.p.getLineContent(i),n=this.j.getTokens(this.s,i-1,t);return this.k.addSparseTokens(i,n)}getTokenTypeIfInsertingCharacter(i,t,n){const a=this.p.validatePosition(new N.Position(i,t));return this.l.getTokenTypeIfInsertingCharacter(a,n)}tokenizeLineWithEdit(i,t,n){const a=this.p.validatePosition(i);return this.l.tokenizeLineWithEdit(a,t,n)}w(i){return this.n.getLanguageConfiguration(i)}getWordAtPosition(i){this.g();const t=this.p.validatePosition(i),n=this.p.getLineContent(t.lineNumber),a=this.v(t.lineNumber),r=a.findTokenIndexAtOffset(t.column-1),[c,d]=f.y(a,r),s=(0,E.getWordAtText)(t.column,this.w(a.getLanguageId(r)).getWordDefinition(),n.substring(c,d),c);if(s&&s.startColumn<=i.column&&i.column<=s.endColumn)return s;if(r>0&&c===t.column-1){const[l,o]=f.y(a,r-1),u=(0,E.getWordAtText)(t.column,this.w(a.getLanguageId(r-1)).getWordDefinition(),n.substring(l,o),l);if(u&&u.startColumn<=i.column&&i.column<=u.endColumn)return u}return null}static y(i,t){const n=i.getLanguageId(t);let a=0;for(let c=t;c>=0&&i.getLanguageId(c)===n;c--)a=i.getStartOffset(c);let r=i.getLineContent().length;for(let c=t,d=i.getCount();c<d&&i.getLanguageId(c)===n;c++)r=i.getEndOffset(c);return[a,r]}getWordUntilPosition(i){const t=this.getWordAtPosition(i);return t?{word:t.word.substr(0,i.column-t.startColumn),startColumn:t.startColumn,endColumn:i.column}:{word:"",startColumn:i.column,endColumn:i.column}}getLanguageId(){return this.s}getLanguageIdAtPosition(i,t){const n=this.p.validatePosition(new N.Position(i,t)),a=this.getLineTokens(n.lineNumber);return a.getLanguageId(a.findTokenIndexAtOffset(n.column-1))}setLanguageId(i,t="api"){if(this.s===i)return;const n={oldLanguage:this.s,newLanguage:i,source:t};this.s=i,this.r.handleDidChangeLanguage(n),this.l.handleDidChangeLanguage(n),this.a.fire(n),this.b.fire({})}}e.TokenizationTextModelPart=f}),define(_[289],ee([1,0,20,6,58,21,12,4,22,26,165]),function(q,e,C,N,E,I,L,S,v,f,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createMonacoBaseAPI=e.KeyMod=void 0;class i{static chord(a,r){return(0,E.KeyChord)(a,r)}}i.CtrlCmd=2048,i.Shift=1024,i.Alt=512,i.WinCtrl=256,e.KeyMod=i;function t(){return{editor:void 0,languages:void 0,CancellationTokenSource:C.CancellationTokenSource,Emitter:N.Emitter,KeyCode:g.KeyCode,KeyMod:i,Position:L.Position,Range:S.Range,Selection:v.Selection,SelectionDirection:g.SelectionDirection,MarkerSeverity:g.MarkerSeverity,MarkerTag:g.MarkerTag,Uri:I.URI,Token:f.Token}}e.createMonacoBaseAPI=t}),define(_[556],ee([1,0,152,16,21,12,4,466,133,449,455,289,60,259,447,46]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.create=e.EditorSimpleWorker=void 0;class c extends S.MirrorTextModel{get uri(){return this.c}get eol(){return this.f}getValue(){return this.getText()}getLinesContent(){return this.d.slice(0)}getLineCount(){return this.d.length}getLineContent(o){return this.d[o-1]}getWordAtPosition(o,u){const h=(0,v.getWordAtText)(o.column,(0,v.ensureValidWordDefinition)(u),this.d[o.lineNumber-1],0);return h?new L.Range(o.lineNumber,h.startColumn,o.lineNumber,h.endColumn):null}words(o){const u=this.d,h=this.p.bind(this);let w=0,m="",p=0,b=[];return{*[Symbol.iterator](){for(;;)if(p<b.length){const y=m.substring(b[p].start,b[p].end);p+=1,yield y}else if(w<u.length)m=u[w],b=h(m,o),p=0,w+=1;else break}}}getLineWords(o,u){const h=this.d[o-1],w=this.p(h,u),m=[];for(const p of w)m.push({word:h.substring(p.start,p.end),startColumn:p.start+1,endColumn:p.end+1});return m}p(o,u){const h=[];let w;for(u.lastIndex=0;(w=u.exec(o))&&w[0].length!==0;)h.push({start:w.index,end:w.index+w[0].length});return h}getValueInRange(o){if(o=this.q(o),o.startLineNumber===o.endLineNumber)return this.d[o.startLineNumber-1].substring(o.startColumn-1,o.endColumn-1);const u=this.f,h=o.startLineNumber-1,w=o.endLineNumber-1,m=[];m.push(this.d[h].substring(o.startColumn-1));for(let p=h+1;p<w;p++)m.push(this.d[p]);return m.push(this.d[w].substring(0,o.endColumn-1)),m.join(u)}offsetAt(o){return o=this.r(o),this.k(),this.h.getPrefixSum(o.lineNumber-2)+(o.column-1)}positionAt(o){o=Math.floor(o),o=Math.max(0,o),this.k();const u=this.h.getIndexOf(o),h=this.d[u.index].length;return{lineNumber:1+u.index,column:1+Math.min(u.remainder,h)}}q(o){const u=this.r({lineNumber:o.startLineNumber,column:o.startColumn}),h=this.r({lineNumber:o.endLineNumber,column:o.endColumn});return u.lineNumber!==o.startLineNumber||u.column!==o.startColumn||h.lineNumber!==o.endLineNumber||h.column!==o.endColumn?{startLineNumber:u.lineNumber,startColumn:u.column,endLineNumber:h.lineNumber,endColumn:h.column}:o}r(o){if(!I.Position.isIPosition(o))throw new Error("bad position");let{lineNumber:u,column:h}=o,w=!1;if(u<1)u=1,h=1,w=!0;else if(u>this.d.length)u=this.d.length,h=this.d[u-1].length+1,w=!0;else{const m=this.d[u-1].length+1;h<1?(h=1,w=!0):h>m&&(h=m,w=!0)}return w?{lineNumber:u,column:h}:o}}class d{constructor(o,u){this.c=o,this.d=Object.create(null),this.f=u,this.g=null}dispose(){this.d=Object.create(null)}h(o){return this.d[o]}j(){const o=[];return Object.keys(this.d).forEach(u=>o.push(this.d[u])),o}acceptNewModel(o){this.d[o.url]=new c(E.URI.parse(o.url),o.lines,o.EOL,o.versionId)}acceptModelChanged(o,u){if(!this.d[o])return;this.d[o].onEvents(u)}acceptRemovedModel(o){!this.d[o]||delete this.d[o]}computeUnicodeHighlights(o,u,h){return ye(this,void 0,void 0,function*(){const w=this.h(o);return w?n.UnicodeTextModelHighlighter.computeUnicodeHighlights(w,u,h):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}})}computeDiff(o,u,h,w){return ye(this,void 0,void 0,function*(){const m=this.h(o),p=this.h(u);return!m||!p?null:d.k(m,p,h,w)})}static k(o,u,h,w){const m=w==="experimental"?a.linesDiffComputers.experimental:a.linesDiffComputers.smart,p=o.getLinesContent(),b=u.getLinesContent(),y=m.computeDiff(p,b,h);return{identical:y.changes.length>0?!1:this.l(o,u),quitEarly:y.quitEarly,changes:y.changes.map(D=>{var M;return[D.originalRange.startLineNumber,D.originalRange.endLineNumberExclusive,D.modifiedRange.startLineNumber,D.modifiedRange.endLineNumberExclusive,(M=D.innerChanges)===null||M===void 0?void 0:M.map(z=>[z.originalRange.startLineNumber,z.originalRange.startColumn,z.originalRange.endLineNumber,z.originalRange.endColumn,z.modifiedRange.startLineNumber,z.modifiedRange.startColumn,z.modifiedRange.endLineNumber,z.modifiedRange.endColumn])]})}}static l(o,u){const h=o.getLineCount(),w=u.getLineCount();if(h!==w)return!1;for(let m=1;m<=h;m++){const p=o.getLineContent(m),b=u.getLineContent(m);if(p!==b)return!1}return!0}computeMoreMinimalEdits(o,u){return ye(this,void 0,void 0,function*(){const h=this.h(o);if(!h)return u;const w=[];let m;u=u.slice(0).sort((p,b)=>{if(p.range&&b.range)return L.Range.compareRangesUsingStarts(p.range,b.range);const y=p.range?0:1,k=b.range?0:1;return y-k});for(let{range:p,text:b,eol:y}of u){if(typeof y=="number"&&(m=y),L.Range.isEmpty(p)&&!b)continue;const k=h.getValueInRange(p);if(b=b.replace(/\r\n|\n|\r/g,h.eol),k===b)continue;if(Math.max(b.length,k.length)>d.n){w.push({range:p,text:b});continue}const D=(0,C.stringDiff)(k,b,!1),M=h.offsetAt(L.Range.lift(p).getStartPosition());for(const z of D){const R=h.positionAt(M+z.originalStart),P=h.positionAt(M+z.originalStart+z.originalLength),A={text:b.substr(z.modifiedStart,z.modifiedLength),range:{startLineNumber:R.lineNumber,startColumn:R.column,endLineNumber:P.lineNumber,endColumn:P.column}};h.getValueInRange(A.range)!==A.text&&w.push(A)}}return typeof m=="number"&&w.push({eol:m,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),w})}computeLinks(o){return ye(this,void 0,void 0,function*(){const u=this.h(o);return u?(0,f.computeLinks)(u):null})}textualSuggest(o,u,h,w){return ye(this,void 0,void 0,function*(){const m=new t.StopWatch(!0),p=new RegExp(h,w),b=new Set;e:for(const y of o){const k=this.h(y);if(!!k){for(const D of k.words(p))if(!(D===u||!isNaN(Number(D)))&&(b.add(D),b.size>d.o))break e}}return{words:Array.from(b),duration:m.elapsed()}})}computeWordRanges(o,u,h,w){return ye(this,void 0,void 0,function*(){const m=this.h(o);if(!m)return Object.create(null);const p=new RegExp(h,w),b=Object.create(null);for(let y=u.startLineNumber;y<u.endLineNumber;y++){const k=m.getLineWords(y,p);for(const D of k){if(!isNaN(Number(D.word)))continue;let M=b[D.word];M||(M=[],b[D.word]=M),M.push({startLineNumber:y,startColumn:D.startColumn,endLineNumber:y,endColumn:D.endColumn})}}return b})}navigateValueSet(o,u,h,w,m){return ye(this,void 0,void 0,function*(){const p=this.h(o);if(!p)return null;const b=new RegExp(w,m);u.startColumn===u.endColumn&&(u={startLineNumber:u.startLineNumber,startColumn:u.startColumn,endLineNumber:u.endLineNumber,endColumn:u.endColumn+1});const y=p.getValueInRange(u),k=p.getWordAtPosition({lineNumber:u.startLineNumber,column:u.startColumn},b);if(!k)return null;const D=p.getValueInRange(k);return g.BasicInplaceReplace.INSTANCE.navigateValueSet(u,y,k,D,h)})}loadForeignModule(o,u,h){const w=(b,y)=>this.c.fhr(b,y),p={host:(0,r.createProxyObject)(h,w),getMirrorModels:()=>this.j()};return this.f?(this.g=this.f(p,u),Promise.resolve((0,r.getAllMethodNames)(this.g))):new Promise((b,y)=>{q([o],k=>{this.g=k.create(p,u),b((0,r.getAllMethodNames)(this.g))},y)})}fmr(o,u){if(!this.g||typeof this.g[o]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+o));try{return Promise.resolve(this.g[o].apply(this.g,u))}catch(h){return Promise.reject(h)}}}d.n=1e5,d.o=1e4,e.EditorSimpleWorker=d;function s(l){return new d(l,null)}e.create=s,typeof importScripts=="function"&&(N.globals.monaco=(0,i.createMonacoBaseAPI)())}),define(_[290],ee([1,0,6,2,249,26]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MinimapTokensColorTracker=void 0;class L extends N.Disposable{static getInstance(){return this.c||(this.c=(0,N.markAsSingleton)(new L)),this.c}constructor(){super(),this.j=new C.Emitter,this.onDidChange=this.j.event,this.k(),this.q(I.TokenizationRegistry.onDidChange(v=>{v.changedColorMap&&this.k()}))}k(){const v=I.TokenizationRegistry.getColorMap();if(!v){this.h=[E.RGBA8.Empty],this.i=!0;return}this.h=[E.RGBA8.Empty];for(let g=1;g<v.length;g++){const i=v[g].rgba;this.h[g]=new E.RGBA8(i.r,i.g,i.b,Math.round(i.a*255))}const f=v[2].getRelativeLuminance();this.i=f>=.5,this.j.fire(void 0)}getColor(v){return(v<1||v>=this.h.length)&&(v=2),this.h[v]}backgroundIsLight(){return this.i}}L.c=null,e.MinimapTokensColorTracker=L}),define(_[215],ee([1,0,6,2]),function(q,e,C,N){"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 E extends N.Disposable{constructor(){super(),this.c=this.q(new C.Emitter),this.onEvent=this.c.event,this.g=[],this.h=null,this.j=!1,this.k=null,this.l=0,this.m=[]}emitOutgoingEvent(o){this.n(o),this.p()}n(o){for(let u=0,h=this.m.length;u<h;u++){const w=this.m[u].kind===o.kind?this.m[u].attemptToMerge(o):null;if(w){this.m[u]=w;return}}this.m.push(o)}p(){for(;this.m.length>0;){if(this.k||this.j)return;const o=this.m.shift();o.isNoOp()||this.c.fire(o)}}addViewEventHandler(o){for(let u=0,h=this.g.length;u<h;u++)this.g[u]===o&&console.warn("Detected duplicate listener in ViewEventDispatcher",o);this.g.push(o)}removeViewEventHandler(o){for(let u=0;u<this.g.length;u++)if(this.g[u]===o){this.g.splice(u,1);break}}beginEmitViewEvents(){return this.l++,this.l===1&&(this.k=new I),this.k}endEmitViewEvents(){if(this.l--,this.l===0){const o=this.k.outgoingEvents,u=this.k.viewEvents;this.k=null;for(const h of o)this.n(h);u.length>0&&this.r(u)}this.p()}emitSingleViewEvent(o){try{this.beginEmitViewEvents().emitViewEvent(o)}finally{this.endEmitViewEvents()}}r(o){this.h?this.h=this.h.concat(o):this.h=o,this.j||this.s()}s(){try{this.j=!0,this.t()}finally{this.j=!1}}t(){for(;this.h;){const o=this.h;this.h=null;const u=this.g.slice(0);for(const h of u)h.handleEvents(o)}}}e.ViewModelEventDispatcher=E;class I{constructor(){this.viewEvents=[],this.outgoingEvents=[]}emitViewEvent(o){this.viewEvents.push(o)}emitOutgoingEvent(o){this.outgoingEvents.push(o)}}e.ViewModelEventsCollector=I;class L{constructor(o,u,h,w){this.kind=0,this.c=o,this.d=u,this.contentWidth=h,this.contentHeight=w,this.contentWidthChanged=this.c!==this.contentWidth,this.contentHeightChanged=this.d!==this.contentHeight}isNoOp(){return!this.contentWidthChanged&&!this.contentHeightChanged}attemptToMerge(o){return o.kind!==this.kind?null:new L(this.c,this.d,o.contentWidth,o.contentHeight)}}e.ContentSizeChangedEvent=L;class S{constructor(o,u){this.kind=1,this.oldHasFocus=o,this.hasFocus=u}isNoOp(){return this.oldHasFocus===this.hasFocus}attemptToMerge(o){return o.kind!==this.kind?null:new S(this.oldHasFocus,o.hasFocus)}}e.FocusChangedEvent=S;class v{constructor(o,u,h,w,m,p,b,y){this.kind=2,this.c=o,this.d=u,this.f=h,this.g=w,this.scrollWidth=m,this.scrollLeft=p,this.scrollHeight=b,this.scrollTop=y,this.scrollWidthChanged=this.c!==this.scrollWidth,this.scrollLeftChanged=this.d!==this.scrollLeft,this.scrollHeightChanged=this.f!==this.scrollHeight,this.scrollTopChanged=this.g!==this.scrollTop}isNoOp(){return!this.scrollWidthChanged&&!this.scrollLeftChanged&&!this.scrollHeightChanged&&!this.scrollTopChanged}attemptToMerge(o){return o.kind!==this.kind?null:new v(this.c,this.d,this.f,this.g,o.scrollWidth,o.scrollLeft,o.scrollHeight,o.scrollTop)}}e.ScrollChangedEvent=v;class f{constructor(){this.kind=3}isNoOp(){return!1}attemptToMerge(o){return o.kind!==this.kind?null:this}}e.ViewZonesChangedEvent=f;class g{constructor(){this.kind=4}isNoOp(){return!1}attemptToMerge(o){return o.kind!==this.kind?null:this}}e.HiddenAreasChangedEvent=g;class i{constructor(o,u,h,w,m,p,b){this.kind=6,this.oldSelections=o,this.selections=u,this.oldModelVersionId=h,this.modelVersionId=w,this.source=m,this.reason=p,this.reachedMaxCursorCount=b}static c(o,u){if(!o&&!u)return!0;if(!o||!u)return!1;const h=o.length,w=u.length;if(h!==w)return!1;for(let m=0;m<h;m++)if(!o[m].equalsSelection(u[m]))return!1;return!0}isNoOp(){return i.c(this.oldSelections,this.selections)&&this.oldModelVersionId===this.modelVersionId}attemptToMerge(o){return o.kind!==this.kind?null:new i(this.oldSelections,o.selections,this.oldModelVersionId,o.modelVersionId,o.source,o.reason,this.reachedMaxCursorCount||o.reachedMaxCursorCount)}}e.CursorStateChangedEvent=i;class t{constructor(){this.kind=5}isNoOp(){return!1}attemptToMerge(o){return o.kind!==this.kind?null:this}}e.ReadOnlyEditAttemptEvent=t;class n{constructor(o){this.event=o,this.kind=7}isNoOp(){return!1}attemptToMerge(o){return null}}e.ModelDecorationsChangedEvent=n;class a{constructor(o){this.event=o,this.kind=8}isNoOp(){return!1}attemptToMerge(o){return null}}e.ModelLanguageChangedEvent=a;class r{constructor(o){this.event=o,this.kind=9}isNoOp(){return!1}attemptToMerge(o){return null}}e.ModelLanguageConfigurationChangedEvent=r;class c{constructor(o){this.event=o,this.kind=10}isNoOp(){return!1}attemptToMerge(o){return null}}e.ModelContentChangedEvent=c;class d{constructor(o){this.event=o,this.kind=11}isNoOp(){return!1}attemptToMerge(o){return null}}e.ModelOptionsChangedEvent=d;class s{constructor(o){this.event=o,this.kind=12}isNoOp(){return!1}attemptToMerge(o){return null}}e.ModelTokensChangedEvent=s}),define(_[557],ee([1,0,6,2,167,483,82,215]),function(q,e,C,N,E,I,L,S){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewLayout=void 0;const v=125;class f{constructor(n,a,r,c){n=n|0,a=a|0,r=r|0,c=c|0,n<0&&(n=0),a<0&&(a=0),r<0&&(r=0),c<0&&(c=0),this.width=n,this.contentWidth=a,this.scrollWidth=Math.max(n,a),this.height=r,this.contentHeight=c,this.scrollHeight=Math.max(r,c)}equals(n){return this.width===n.width&&this.contentWidth===n.contentWidth&&this.height===n.height&&this.contentHeight===n.contentHeight}}class g extends N.Disposable{constructor(n,a){super(),this.c=this.q(new C.Emitter),this.onDidContentSizeChange=this.c.event,this.b=new f(0,0,0,0),this.a=this.q(new E.Scrollable({forceIntegerValues:!0,smoothScrollDuration:n,scheduleAtNextAnimationFrame:a})),this.onDidScroll=this.a.onScroll}getScrollable(){return this.a}setSmoothScrollDuration(n){this.a.setSmoothScrollDuration(n)}validateScrollPosition(n){return this.a.validateScrollPosition(n)}getScrollDimensions(){return this.b}setScrollDimensions(n){if(this.b.equals(n))return;const a=this.b;this.b=n,this.a.setScrollDimensions({width:n.width,scrollWidth:n.scrollWidth,height:n.height,scrollHeight:n.scrollHeight},!0);const r=a.contentWidth!==n.contentWidth,c=a.contentHeight!==n.contentHeight;(r||c)&&this.c.fire(new S.ContentSizeChangedEvent(a.contentWidth,a.contentHeight,n.contentWidth,n.contentHeight))}getFutureScrollPosition(){return this.a.getFutureScrollPosition()}getCurrentScrollPosition(){return this.a.getCurrentScrollPosition()}setScrollPositionNow(n){this.a.setScrollPositionNow(n)}setScrollPositionSmooth(n){this.a.setScrollPositionSmooth(n)}}class i extends N.Disposable{constructor(n,a,r){super(),this.a=n;const c=this.a.options,d=c.get(138),s=c.get(80);this.b=new I.LinesLayout(a,c.get(63),s.top,s.bottom),this.c=this.q(new g(0,r)),this.g(),this.c.setScrollDimensions(new f(d.contentWidth,0,d.height,0)),this.onDidScroll=this.c.onDidScroll,this.onDidContentSizeChange=this.c.onDidContentSizeChange,this.j()}dispose(){super.dispose()}getScrollable(){return this.c.getScrollable()}onHeightMaybeChanged(){this.j()}g(){this.c.setSmoothScrollDuration(this.a.options.get(108)?v:0)}onConfigurationChanged(n){const a=this.a.options;if(n.hasChanged(63)&&this.b.setLineHeight(a.get(63)),n.hasChanged(80)){const r=a.get(80);this.b.setPadding(r.top,r.bottom)}if(n.hasChanged(138)){const r=a.get(138),c=r.contentWidth,d=r.height,s=this.c.getScrollDimensions(),l=s.contentWidth;this.c.setScrollDimensions(new f(c,s.contentWidth,d,this.i(c,d,l)))}else this.j();n.hasChanged(108)&&this.g()}onFlushed(n){this.b.onFlushed(n)}onLinesDeleted(n,a){this.b.onLinesDeleted(n,a)}onLinesInserted(n,a){this.b.onLinesInserted(n,a)}h(n,a){const c=this.a.options.get(97);return c.horizontal===2||n>=a?0:c.horizontalScrollbarSize}i(n,a,r){const c=this.a.options;let d=this.b.getLinesTotalHeight();return c.get(99)?d+=Math.max(0,a-c.get(63)-c.get(80).bottom):d+=this.h(n,r),d}j(){const n=this.c.getScrollDimensions(),a=n.width,r=n.height,c=n.contentWidth;this.c.setScrollDimensions(new f(a,n.contentWidth,r,this.i(a,r,c)))}getCurrentViewport(){const n=this.c.getScrollDimensions(),a=this.c.getCurrentScrollPosition();return new L.Viewport(a.scrollTop,a.scrollLeft,n.width,n.height)}getFutureViewport(){const n=this.c.getScrollDimensions(),a=this.c.getFutureScrollPosition();return new L.Viewport(a.scrollTop,a.scrollLeft,n.width,n.height)}k(n){const a=this.a.options,r=a.get(139),c=a.get(47),d=a.get(138);if(r.isViewportWrapping){const s=a.get(69);return n>d.contentWidth+c.typicalHalfwidthCharacterWidth&&s.enabled&&s.side==="right"?n+d.verticalScrollbarWidth:n}else{const s=a.get(98)*c.typicalHalfwidthCharacterWidth,l=this.b.getWhitespaceMinWidth();return Math.max(n+s+d.verticalScrollbarWidth,l)}}setMaxLineWidth(n){const a=this.c.getScrollDimensions();this.c.setScrollDimensions(new f(a.width,this.k(n),a.height,a.contentHeight)),this.j()}saveState(){const n=this.c.getFutureScrollPosition(),a=n.scrollTop,r=this.b.getLineNumberAtOrAfterVerticalOffset(a),c=this.b.getWhitespaceAccumulatedHeightBeforeLineNumber(r);return{scrollTop:a,scrollTopWithoutViewZones:a-c,scrollLeft:n.scrollLeft}}changeWhitespace(n){const a=this.b.changeWhitespace(n);return a&&this.onHeightMaybeChanged(),a}getVerticalOffsetForLineNumber(n,a=!1){return this.b.getVerticalOffsetForLineNumber(n,a)}getVerticalOffsetAfterLineNumber(n,a=!1){return this.b.getVerticalOffsetAfterLineNumber(n,a)}isAfterLines(n){return this.b.isAfterLines(n)}isInTopPadding(n){return this.b.isInTopPadding(n)}isInBottomPadding(n){return this.b.isInBottomPadding(n)}getLineNumberAtVerticalOffset(n){return this.b.getLineNumberAtOrAfterVerticalOffset(n)}getWhitespaceAtVerticalOffset(n){return this.b.getWhitespaceAtVerticalOffset(n)}getLinesViewportData(){const n=this.getCurrentViewport();return this.b.getLinesViewportData(n.top,n.top+n.height)}getLinesViewportDataAtScrollTop(n){const a=this.c.getScrollDimensions();return n+a.height>a.scrollHeight&&(n=a.scrollHeight-a.height),n<0&&(n=0),this.b.getLinesViewportData(n,n+a.height)}getWhitespaceViewportData(){const n=this.getCurrentViewport();return this.b.getWhitespaceViewportData(n.top,n.top+n.height)}getWhitespaces(){return this.b.getWhitespaces()}getContentWidth(){return this.c.getScrollDimensions().contentWidth}getScrollWidth(){return this.c.getScrollDimensions().scrollWidth}getContentHeight(){return this.c.getScrollDimensions().contentHeight}getScrollHeight(){return this.c.getScrollDimensions().scrollHeight}getCurrentScrollLeft(){return this.c.getCurrentScrollPosition().scrollLeft}getCurrentScrollTop(){return this.c.getCurrentScrollPosition().scrollTop}validateScrollPosition(n){return this.c.validateScrollPosition(n)}setScrollPosition(n,a){a===1?this.c.setScrollPositionNow(n):this.c.setScrollPositionSmooth(n)}deltaScrollNow(n,a){const r=this.c.getCurrentScrollPosition();this.c.setScrollPositionNow({scrollLeft:r.scrollLeft+n,scrollTop:r.scrollTop+a})}}e.ViewLayout=i}),define(_[558],ee([1,0,6]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColorPickerModel=void 0;class N{get color(){return this.a}set color(I){this.a.equals(I)||(this.a=I,this.d.fire(I))}get presentation(){return this.colorPresentations[this.f]}get colorPresentations(){return this.b}set colorPresentations(I){this.b=I,this.f>I.length-1&&(this.f=0),this.e.fire(this.presentation)}constructor(I,L,S){this.f=S,this.c=new C.Emitter,this.onColorFlushed=this.c.event,this.d=new C.Emitter,this.onDidChangeColor=this.d.event,this.e=new C.Emitter,this.onDidChangePresentation=this.e.event,this.originalColor=I,this.a=I,this.b=L}selectNextColorPresentation(){this.f=(this.f+1)%this.colorPresentations.length,this.flushColor(),this.e.fire(this.presentation)}guessColorPresentation(I,L){let S=-1;for(let v=0;v<this.colorPresentations.length;v++)if(L.toLowerCase()===this.colorPresentations[v].label){S=v;break}if(S===-1){const v=L.split("(")[0].toLowerCase();for(let f=0;f<this.colorPresentations.length;f++)if(this.colorPresentations[f].label.toLowerCase().startsWith(v)){S=f;break}}S!==-1&&S!==this.f&&(this.f=S,this.e.fire(this.presentation))}flushColor(){this.c.fire(this.a)}}e.ColorPickerModel=N}),define(_[559],ee([1,0,6,166,129]),function(q,e,C,N,E){"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 I{get regions(){return this.c}get textModel(){return this.a}constructor(s,l){this.e=new C.Emitter,this.onDidChange=this.e.event,this.a=s,this.b=l,this.c=new N.FoldingRegions(new Uint32Array(0),new Uint32Array(0)),this.d=[]}toggleCollapseState(s){if(!s.length)return;s=s.sort((o,u)=>o.regionIndex-u.regionIndex);const l={};this.b.changeDecorations(o=>{let u=0,h=-1,w=-1;const m=p=>{for(;u<p;){const b=this.c.getEndLineNumber(u),y=this.c.isCollapsed(u);if(b<=h){const k=this.regions.getSource(u)!==0;o.changeDecorationOptions(this.d[u],this.b.getDecorationOption(y,b<=w,k))}y&&b>w&&(w=b),u++}};for(const p of s){const b=p.regionIndex,y=this.d[b];if(y&&!l[y]){l[y]=!0,m(b);const k=!this.c.isCollapsed(b);this.c.setCollapsed(b,k),h=Math.max(h,this.c.getEndLineNumber(b))}}m(this.c.length)}),this.e.fire({model:this,collapseStateChanged:s})}removeManualRanges(s){const l=new Array,o=u=>{for(const h of s)if(!(h.startLineNumber>u.endLineNumber||u.startLineNumber>h.endLineNumber))return!0;return!1};for(let u=0;u<this.c.length;u++){const h=this.c.toFoldRange(u);(h.source===0||!o(h))&&l.push(h)}this.updatePost(N.FoldingRegions.fromFoldRanges(l))}update(s,l=[]){const o=this.f(l),u=N.FoldingRegions.sanitizeAndMerge(s,o,this.a.getLineCount());this.updatePost(N.FoldingRegions.fromFoldRanges(u))}updatePost(s){const l=[];let o=-1;for(let u=0,h=s.length;u<h;u++){const w=s.getStartLineNumber(u),m=s.getEndLineNumber(u),p=s.isCollapsed(u),b=s.getSource(u)!==0,y={startLineNumber:w,startColumn:this.a.getLineMaxColumn(w),endLineNumber:m,endColumn:this.a.getLineMaxColumn(m)+1};l.push({range:y,options:this.b.getDecorationOption(p,m<=o,b)}),p&&m>o&&(o=m)}this.b.changeDecorations(u=>this.d=u.deltaDecorations(this.d,l)),this.c=s,this.e.fire({model:this})}f(s=[]){const l=(u,h)=>{for(const w of s)if(u<w&&w<=h)return!0;return!1},o=[];for(let u=0,h=this.c.length;u<h;u++){let w=this.regions.isCollapsed(u);const m=this.regions.getSource(u);if(w||m!==0){const p=this.c.toFoldRange(u),b=this.a.getDecorationRange(this.d[u]);b&&(w&&l(b.startLineNumber,b.endLineNumber)&&(w=!1),o.push({startLineNumber:b.startLineNumber,endLineNumber:b.endLineNumber,type:p.type,isCollapsed:w,source:m}))}}return o}getMemento(){const s=this.f(),l=[],o=this.a.getLineCount();for(let u=0,h=s.length;u<h;u++){const w=s[u];if(w.startLineNumber>=w.endLineNumber||w.startLineNumber<1||w.endLineNumber>o)continue;const m=this.g(w.startLineNumber+1,w.endLineNumber);l.push({startLineNumber:w.startLineNumber,endLineNumber:w.endLineNumber,isCollapsed:w.isCollapsed,source:w.source,checksum:m})}return l.length>0?l:void 0}applyMemento(s){var l,o;if(!Array.isArray(s))return;const u=[],h=this.a.getLineCount();for(const m of s){if(m.startLineNumber>=m.endLineNumber||m.startLineNumber<1||m.endLineNumber>h)continue;const p=this.g(m.startLineNumber+1,m.endLineNumber);(!m.checksum||p===m.checksum)&&u.push({startLineNumber:m.startLineNumber,endLineNumber:m.endLineNumber,type:void 0,isCollapsed:(l=m.isCollapsed)!==null&&l!==void 0?l:!0,source:(o=m.source)!==null&&o!==void 0?o:0})}const w=N.FoldingRegions.sanitizeAndMerge(this.c,u,h);this.updatePost(N.FoldingRegions.fromFoldRanges(w))}g(s,l){return(0,E.hash)(this.a.getLineContent(s)+this.a.getLineContent(l))%1e6}dispose(){this.b.removeDecorations(this.d)}getAllRegionsAtLine(s,l){const o=[];if(this.c){let u=this.c.findRange(s),h=1;for(;u>=0;){const w=this.c.toRegion(u);(!l||l(w,h))&&o.push(w),h++,u=w.parentIndex}}return o}getRegionAtLine(s){if(this.c){const l=this.c.findRange(s);if(l>=0)return this.c.toRegion(l)}return null}getRegionsInside(s,l){const o=[],u=s?s.regionIndex+1:0,h=s?s.endLineNumber:Number.MAX_VALUE;if(l&&l.length===2){const w=[];for(let m=u,p=this.c.length;m<p;m++){const b=this.c.toRegion(m);if(this.c.getStartLineNumber(m)<h){for(;w.length>0&&!b.containedBy(w[w.length-1]);)w.pop();w.push(b),l(b,w.length)&&o.push(b)}else break}}else for(let w=u,m=this.c.length;w<m;w++){const p=this.c.toRegion(w);if(this.c.getStartLineNumber(w)<h)(!l||l(p))&&o.push(p);else break}return o}}e.FoldingModel=I;function L(d,s,l){const o=[];for(const u of l){const h=d.getRegionAtLine(u);if(h){const w=!h.isCollapsed;if(o.push(h),s>1){const m=d.getRegionsInside(h,(p,b)=>p.isCollapsed!==w&&b<s);o.push(...m)}}}d.toggleCollapseState(o)}e.toggleCollapseState=L;function S(d,s,l=Number.MAX_VALUE,o){const u=[];if(o&&o.length>0)for(const h of o){const w=d.getRegionAtLine(h);if(w&&(w.isCollapsed!==s&&u.push(w),l>1)){const m=d.getRegionsInside(w,(p,b)=>p.isCollapsed!==s&&b<l);u.push(...m)}}else{const h=d.getRegionsInside(null,(w,m)=>w.isCollapsed!==s&&m<l);u.push(...h)}d.toggleCollapseState(u)}e.setCollapseStateLevelsDown=S;function v(d,s,l,o){const u=[];for(const h of o){const w=d.getAllRegionsAtLine(h,(m,p)=>m.isCollapsed!==s&&p<=l);u.push(...w)}d.toggleCollapseState(u)}e.setCollapseStateLevelsUp=v;function f(d,s,l){const o=[];for(const u of l){const h=d.getAllRegionsAtLine(u,w=>w.isCollapsed!==s);h.length>0&&o.push(h[0])}d.toggleCollapseState(o)}e.setCollapseStateUp=f;function g(d,s,l,o){const u=(w,m)=>m===s&&w.isCollapsed!==l&&!o.some(p=>w.containsLine(p)),h=d.getRegionsInside(null,u);d.toggleCollapseState(h)}e.setCollapseStateAtLevel=g;function i(d,s,l){const o=[];for(const w of l){const m=d.getAllRegionsAtLine(w,void 0);m.length>0&&o.push(m[0])}const u=w=>o.every(m=>!m.containedBy(w)&&!w.containedBy(m))&&w.isCollapsed!==s,h=d.getRegionsInside(null,u);d.toggleCollapseState(h)}e.setCollapseStateForRest=i;function t(d,s,l){const o=d.textModel,u=d.regions,h=[];for(let w=u.length-1;w>=0;w--)if(l!==u.isCollapsed(w)){const m=u.getStartLineNumber(w);s.test(o.getLineContent(m))&&h.push(u.toRegion(w))}d.toggleCollapseState(h)}e.setCollapseStateForMatchingLines=t;function n(d,s,l){const o=d.regions,u=[];for(let h=o.length-1;h>=0;h--)l!==o.isCollapsed(h)&&s===o.getType(h)&&u.push(o.toRegion(h));d.toggleCollapseState(u)}e.setCollapseStateForType=n;function a(d,s){let l=null;const o=s.getRegionAtLine(d);if(o!==null&&(l=o.startLineNumber,d===l)){const u=o.parentIndex;u!==-1?l=s.regions.getStartLineNumber(u):l=null}return l}e.getParentFoldLine=a;function r(d,s){let l=s.getRegionAtLine(d);if(l!==null&&l.startLineNumber===d){if(d!==l.startLineNumber)return l.startLineNumber;{const o=l.parentIndex;let u=0;for(o!==-1&&(u=s.regions.getStartLineNumber(l.parentIndex));l!==null;)if(l.regionIndex>0){if(l=s.regions.toRegion(l.regionIndex-1),l.startLineNumber<=u)return null;if(l.parentIndex===o)return l.startLineNumber}else return null}}else if(s.regions.length>0)for(l=s.regions.toRegion(s.regions.length-1);l!==null;){if(l.startLineNumber<d)return l.startLineNumber;l.regionIndex>0?l=s.regions.toRegion(l.regionIndex-1):l=null}return null}e.getPreviousFoldLine=r;function c(d,s){let l=s.getRegionAtLine(d);if(l!==null&&l.startLineNumber===d){const o=l.parentIndex;let u=0;if(o!==-1)u=s.regions.getEndLineNumber(l.parentIndex);else{if(s.regions.length===0)return null;u=s.regions.getEndLineNumber(s.regions.length-1)}for(;l!==null;)if(l.regionIndex<s.regions.length){if(l=s.regions.toRegion(l.regionIndex+1),l.startLineNumber>=u)return null;if(l.parentIndex===o)return l.startLineNumber}else return null}else if(s.regions.length>0)for(l=s.regions.toRegion(0);l!==null;){if(l.startLineNumber>d)return l.startLineNumber;l.regionIndex<s.regions.length?l=s.regions.toRegion(l.regionIndex+1):l=null}return null}e.getNextFoldLine=c}),define(_[560],ee([1,0,17,6,4,131]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HiddenRangeModel=void 0;class L{get onDidChange(){return this.d.event}get hiddenRanges(){return this.b}constructor(g){this.d=new N.Emitter,this.f=!1,this.a=g,this.c=g.onDidChange(i=>this.g()),this.b=[],g.regions.length&&this.g()}notifyChangeModelContent(g){this.b.length&&!this.f&&(this.f=g.changes.some(i=>i.range.endLineNumber!==i.range.startLineNumber||(0,I.countEOL)(i.text)[0]!==0))}g(){let g=!1;const i=[];let t=0,n=0,a=Number.MAX_VALUE,r=-1;const c=this.a.regions;for(;t<c.length;t++){if(!c.isCollapsed(t))continue;const d=c.getStartLineNumber(t)+1,s=c.getEndLineNumber(t);a<=d&&s<=r||(!g&&n<this.b.length&&this.b[n].startLineNumber===d&&this.b[n].endLineNumber===s?(i.push(this.b[n]),n++):(g=!0,i.push(new E.Range(d,1,s,1))),a=d,r=s)}(this.f||g||n<this.b.length)&&this.h(i)}h(g){this.b=g,this.f=!1,this.d.fire(g)}hasRanges(){return this.b.length>0}isHidden(g){return v(this.b,g)!==null}adjustSelections(g){let i=!1;const t=this.a.textModel;let n=null;const a=r=>((!n||!S(r,n))&&(n=v(this.b,r)),n?n.startLineNumber-1:null);for(let r=0,c=g.length;r<c;r++){let d=g[r];const s=a(d.startLineNumber);s&&(d=d.setStartPosition(s,t.getLineMaxColumn(s)),i=!0);const l=a(d.endLineNumber);l&&(d=d.setEndPosition(l,t.getLineMaxColumn(l)),i=!0),g[r]=d}return i}dispose(){this.hiddenRanges.length>0&&(this.b=[],this.d.fire(this.b)),this.c&&(this.c.dispose(),this.c=null)}}e.HiddenRangeModel=L;function S(f,g){return f>=g.startLineNumber&&f<=g.endLineNumber}function v(f,g){const i=(0,C.findFirstInSorted)(f,t=>g<t.startLineNumber)-1;return i>=0&&f[i].endLineNumber>=g?f[i]:null}}),define(_[170],ee([1,0,6,2,16]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ClickLinkGesture=e.ClickLinkOptions=e.ClickLinkKeyboardEvent=e.ClickLinkMouseEvent=void 0;function I(i,t){return!!i[t]}class L{constructor(t,n){this.target=t.target,this.isLeftClick=t.event.leftButton,this.isMiddleClick=t.event.middleButton,this.isRightClick=t.event.rightButton,this.hasTriggerModifier=I(t.event,n.triggerModifier),this.hasSideBySideModifier=I(t.event,n.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=t.event.detail<=1}}e.ClickLinkMouseEvent=L;class S{constructor(t,n){this.keyCodeIsTriggerKey=t.keyCode===n.triggerKey,this.keyCodeIsSideBySideKey=t.keyCode===n.triggerSideBySideKey,this.hasTriggerModifier=I(t,n.triggerModifier)}}e.ClickLinkKeyboardEvent=S;class v{constructor(t,n,a,r){this.triggerKey=t,this.triggerModifier=n,this.triggerSideBySideKey=a,this.triggerSideBySideModifier=r}equals(t){return this.triggerKey===t.triggerKey&&this.triggerModifier===t.triggerModifier&&this.triggerSideBySideKey===t.triggerSideBySideKey&&this.triggerSideBySideModifier===t.triggerSideBySideModifier}}e.ClickLinkOptions=v;function f(i){return i==="altKey"?E.isMacintosh?new v(57,"metaKey",6,"altKey"):new v(5,"ctrlKey",6,"altKey"):E.isMacintosh?new v(6,"altKey",57,"metaKey"):new v(6,"altKey",5,"ctrlKey")}class g extends N.Disposable{constructor(t,n){super(),this.a=this.q(new C.Emitter),this.onMouseMoveOrRelevantKeyDown=this.a.event,this.b=this.q(new C.Emitter),this.onExecute=this.b.event,this.c=this.q(new C.Emitter),this.onCancel=this.c.event,this.g=t,this.h=n,this.i=f(this.g.getOption(74)),this.j=null,this.k=!1,this.l=0,this.q(this.g.onDidChangeConfiguration(a=>{if(a.hasChanged(74)){const r=f(this.g.getOption(74));if(this.i.equals(r))return;this.i=r,this.j=null,this.k=!1,this.l=0,this.c.fire()}})),this.q(this.g.onMouseMove(a=>this.n(new L(a,this.i)))),this.q(this.g.onMouseDown(a=>this.p(new L(a,this.i)))),this.q(this.g.onMouseUp(a=>this.r(new L(a,this.i)))),this.q(this.g.onKeyDown(a=>this.s(new S(a,this.i)))),this.q(this.g.onKeyUp(a=>this.t(new S(a,this.i)))),this.q(this.g.onMouseDrag(()=>this.u())),this.q(this.g.onDidChangeCursorSelection(a=>this.m(a))),this.q(this.g.onDidChangeModel(a=>this.u())),this.q(this.g.onDidChangeModelContent(()=>this.u())),this.q(this.g.onDidScrollChange(a=>{(a.scrollTopChanged||a.scrollLeftChanged)&&this.u()}))}m(t){t.selection&&t.selection.startColumn!==t.selection.endColumn&&this.u()}n(t){this.j=t,this.a.fire([t,null])}p(t){this.k=t.hasTriggerModifier,this.l=t.target.position?t.target.position.lineNumber:0}r(t){const n=t.target.position?t.target.position.lineNumber:0;(this.k&&this.l&&this.l===n||this.h)&&this.b.fire(t)}s(t){this.j&&(t.keyCodeIsTriggerKey||t.keyCodeIsSideBySideKey&&t.hasTriggerModifier)?this.a.fire([this.j,t]):t.hasTriggerModifier&&this.c.fire()}t(t){t.keyCodeIsTriggerKey&&this.c.fire()}u(){this.j=null,this.k=!1,this.c.fire()}}e.ClickLinkGesture=g});var St=this&&this.__asyncValues||function(q){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=q[Symbol.asyncIterator],C;return e?e.call(q):(q=typeof __values=="function"?__values(q):q[Symbol.iterator](),C={},N("next"),N("throw"),N("return"),C[Symbol.asyncIterator]=function(){return this},C);function N(I){C[I]=q[I]&&function(L){return new Promise(function(S,v){L=q[I](L),E(S,v,L.done,L.value)})}}function E(I,L,S,v){Promise.resolve(v).then(function(f){I({value:f,done:S})},L)}};define(_[291],ee([1,0,11,13,6,2]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HoverOperation=e.HoverResult=void 0;class L{constructor(f,g,i){this.value=f,this.isComplete=g,this.hasLoadingMessage=i}}e.HoverResult=L;class S extends I.Disposable{constructor(f,g){super(),this.l=f,this.m=g,this.a=this.q(new E.Emitter),this.onResult=this.a.event,this.b=this.q(new C.RunOnceScheduler(()=>this.u(),0)),this.c=this.q(new C.RunOnceScheduler(()=>this.v(),0)),this.g=this.q(new C.RunOnceScheduler(()=>this.w(),0)),this.h=0,this.i=null,this.j=!1,this.k=[]}dispose(){this.i&&(this.i.cancel(),this.i=null),super.dispose()}get n(){return this.l.getOption(57).delay}get p(){return this.n/2}get r(){return this.n-this.p}get s(){return 3*this.n}t(f,g=!0){this.h=f,g&&this.y()}u(){this.t(2),this.c.schedule(this.r),this.m.computeAsync?(this.j=!1,this.i=(0,C.createCancelableAsyncIterable)(f=>this.m.computeAsync(f)),ye(this,void 0,void 0,function*(){var f,g,i,t;try{try{for(var n=!0,a=St(this.i),r;r=yield a.next(),f=r.done,!f;){t=r.value,n=!1;try{const c=t;c&&(this.k.push(c),this.y())}finally{n=!0}}}catch(c){g={error:c}}finally{try{!n&&!f&&(i=a.return)&&(yield i.call(a))}finally{if(g)throw g.error}}this.j=!0,(this.h===3||this.h===4)&&this.t(0)}catch(c){(0,N.onUnexpectedError)(c)}})):this.j=!0}v(){this.m.computeSync&&(this.k=this.k.concat(this.m.computeSync())),this.t(this.j?0:3)}w(){this.h===3&&this.t(4)}y(){if(this.h===1||this.h===2)return;const f=this.h===0,g=this.h===4;this.a.fire(new L(this.k.slice(0),f,g))}start(f){if(f===0)this.h===0&&(this.t(1),this.b.schedule(this.p),this.g.schedule(this.s));else switch(this.h){case 0:this.u(),this.c.cancel(),this.v();break;case 2:this.c.cancel(),this.v();break}}cancel(){this.b.cancel(),this.c.cancel(),this.g.cancel(),this.i&&(this.i.cancel(),this.i=null),this.k=[],this.t(0,!1)}}e.HoverOperation=S}),define(_[292],ee([1,0,13,2,12,4,48,21]),function(q,e,C,N,E,I,L,S){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.asCommandLink=e.InlayHintsFragments=e.InlayHintItem=e.InlayHintAnchor=void 0;class v{constructor(n,a){this.range=n,this.direction=a}}e.InlayHintAnchor=v;class f{constructor(n,a,r){this.hint=n,this.anchor=a,this.provider=r,this.c=!1}with(n){const a=new f(this.hint,n.anchor,this.provider);return a.c=this.c,a.d=this.d,a}resolve(n){return ye(this,void 0,void 0,function*(){if(typeof this.provider.resolveInlayHint=="function"){if(this.d)return yield this.d,n.isCancellationRequested?void 0:this.resolve(n);this.c||(this.d=this.e(n).finally(()=>this.d=void 0)),yield this.d}})}e(n){var a,r;return ye(this,void 0,void 0,function*(){try{const c=yield Promise.resolve(this.provider.resolveInlayHint(this.hint,n));this.hint.tooltip=(a=c?.tooltip)!==null&&a!==void 0?a:this.hint.tooltip,this.hint.label=(r=c?.label)!==null&&r!==void 0?r:this.hint.label,this.c=!0}catch(c){(0,C.onUnexpectedExternalError)(c),this.c=!1}})}}e.InlayHintItem=f;class g{static create(n,a,r,c){return ye(this,void 0,void 0,function*(){const d=[],s=n.ordered(a).reverse().map(l=>r.map(o=>ye(this,void 0,void 0,function*(){try{const u=yield l.provideInlayHints(a,o,c);u?.hints.length&&d.push([u,l])}catch(u){(0,C.onUnexpectedExternalError)(u)}})));if(yield Promise.all(s.flat()),c.isCancellationRequested||a.isDisposed())throw new C.CancellationError;return new g(r,d,a)})}constructor(n,a,r){this.c=new N.DisposableStore,this.ranges=n,this.provider=new Set;const c=[];for(const[d,s]of a){this.c.add(d),this.provider.add(s);for(const l of d.hints){const o=r.validatePosition(l.position);let u="before";const h=g.d(r,o);let w;h.getStartPosition().isBefore(o)?(w=I.Range.fromPositions(h.getStartPosition(),o),u="after"):(w=I.Range.fromPositions(o,h.getEndPosition()),u="before"),c.push(new f(l,new v(w,u),s))}}this.items=c.sort((d,s)=>E.Position.compare(d.hint.position,s.hint.position))}dispose(){this.c.dispose()}static d(n,a){const r=a.lineNumber,c=n.getWordAtPosition(a);if(c)return new I.Range(r,c.startColumn,r,c.endColumn);n.tokenization.tokenizeIfCheap(r);const d=n.tokenization.getLineTokens(r),s=a.column-1,l=d.findTokenIndexAtOffset(s);let o=d.getStartOffset(l),u=d.getEndOffset(l);return u-o===1&&(o===s&&l>1?(o=d.getStartOffset(l-1),u=d.getEndOffset(l-1)):u===s&&l<d.getCount()-1&&(o=d.getStartOffset(l+1),u=d.getEndOffset(l+1))),new I.Range(r,o+1,r,u+1)}}e.InlayHintsFragments=g;function i(t){return S.URI.from({scheme:L.Schemas.command,path:t.id,query:t.arguments&&encodeURIComponent(JSON.stringify(t.arguments))}).toString()}e.asCommandLink=i}),define(_[171],ee([1,0,6,2,196]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BaseGhostTextWidgetModel=e.GhostTextReplacement=e.GhostTextPart=e.GhostText=void 0;class I{constructor(g,i,t=0){this.lineNumber=g,this.parts=i,this.additionalReservedLineCount=t}renderForScreenReader(g){if(this.parts.length===0)return"";const i=this.parts[this.parts.length-1],t=g.substr(0,i.column-1);return(0,E.applyEdits)(t,this.parts.map(a=>({range:{startLineNumber:1,endLineNumber:1,startColumn:a.column,endColumn:a.column},text:a.lines.join(`
|
||
`)}))).substring(this.parts[0].column-1)}isEmpty(){return this.parts.every(g=>g.lines.length===0)}}e.GhostText=I;class L{constructor(g,i,t){this.column=g,this.lines=i,this.preview=t}}e.GhostTextPart=L;class S{constructor(g,i,t,n,a=0){this.lineNumber=g,this.columnStart=i,this.length=t,this.newLines=n,this.additionalReservedLineCount=a,this.parts=[new L(this.columnStart+this.length,this.newLines,!1)]}renderForScreenReader(g){return this.newLines.join(`
|
||
`)}}e.GhostTextReplacement=S;class v extends N.Disposable{constructor(g){super(),this.j=g,this.g=void 0,this.h=new C.Emitter,this.onDidChange=this.h.event,this.q(g.onDidChangeConfiguration(i=>{i.hasChanged(112)&&this.g===void 0&&this.h.fire()}))}setExpanded(g){this.g=!0,this.h.fire()}}e.BaseGhostTextWidgetModel=v}),define(_[216],ee([1,0,152,9,4,171]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.inlineCompletionToGhostText=e.normalizedInlineCompletionsEquals=e.minimizeInlineCompletion=void 0;function L(n,a){if(!a)return a;const r=n.getValueInRange(a.range),c=N.commonPrefixLength(r,a.insertText),d=n.getOffsetAt(a.range.getStartPosition())+c,s=n.getPositionAt(d),l=r.substr(c),o=N.commonSuffixLength(l,a.insertText),u=n.getPositionAt(Math.max(d,n.getOffsetAt(a.range.getEndPosition())-o));return{range:E.Range.fromPositions(s,u),insertText:a.insertText.substr(c,a.insertText.length-c-o),snippetInfo:a.snippetInfo,filterText:a.filterText,additionalTextEdits:a.additionalTextEdits}}e.minimizeInlineCompletion=L;function S(n,a){return n===a?!0:!n||!a?!1:n.range.equalsRange(a.range)&&n.insertText===a.insertText&&n.command===a.command}e.normalizedInlineCompletionsEquals=S;function v(n,a,r,c,d=0){if(n.range.startLineNumber!==n.range.endLineNumber)return;const s=a.getLineContent(n.range.startLineNumber),l=N.getLeadingWhitespace(s).length;if(n.range.startColumn-1<=l){const b=N.getLeadingWhitespace(n.insertText).length,y=s.substring(n.range.startColumn-1,l),k=E.Range.fromPositions(n.range.getStartPosition().delta(0,y.length),n.range.getEndPosition()),D=n.insertText.startsWith(y)?n.insertText.substring(y.length):n.insertText.substring(b);n={range:k,insertText:D,command:n.command,snippetInfo:void 0,filterText:n.filterText,additionalTextEdits:n.additionalTextEdits}}const u=a.getValueInRange(n.range),h=g(u,n.insertText);if(!h)return;const w=n.range.startLineNumber,m=new Array;if(r==="prefix"){const b=h.filter(y=>y.originalLength===0);if(b.length>1||b.length===1&&b[0].originalStart!==u.length)return}const p=n.insertText.length-d;for(const b of h){const y=n.range.startColumn+b.originalStart+b.originalLength;if(r==="subwordSmart"&&c&&c.lineNumber===n.range.startLineNumber&&y<c.column||b.originalLength>0)return;if(b.modifiedLength===0)continue;const k=b.modifiedStart+b.modifiedLength,D=Math.max(b.modifiedStart,Math.min(k,p)),M=n.insertText.substring(b.modifiedStart,D),z=n.insertText.substring(D,Math.max(b.modifiedStart,k));if(M.length>0){const R=N.splitLines(M);m.push(new I.GhostTextPart(y,R,!1))}if(z.length>0){const R=N.splitLines(z);m.push(new I.GhostTextPart(y,R,!0))}}return new I.GhostText(w,m,0)}e.inlineCompletionToGhostText=v;let f;function g(n,a){if(f?.originalValue===n&&f?.newValue===a)return f?.changes;{let r=t(n,a,!0);if(r){const c=i(r);if(c>0){const d=t(n,a,!1);d&&i(d)<c&&(r=d)}}return f={originalValue:n,newValue:a,changes:r},r}}function i(n){let a=0;for(const r of n)a+=r.originalLength;return a}function t(n,a,r){if(n.length>5e3||a.length>5e3)return;function c(h){let w=0;for(let m=0,p=h.length;m<p;m++){const b=h.charCodeAt(m);b>w&&(w=b)}return w}const d=Math.max(c(n),c(a));function s(h){if(h<0)throw new Error("unexpected");return d+h+1}function l(h){let w=0,m=0;const p=new Int32Array(h.length);for(let b=0,y=h.length;b<y;b++)if(r&&h[b]==="("){const k=m*100+w;p[b]=s(2*k),w++}else if(r&&h[b]===")"){w=Math.max(w-1,0);const k=m*100+w;p[b]=s(2*k+1),w===0&&m++}else p[b]=h.charCodeAt(b);return p}const o=l(n),u=l(a);return new C.LcsDiff({getElements:()=>o},{getElements:()=>u}).ComputeDiff(!1).changes}}),define(_[561],ee([3,5]),function(q,e){return q.create("vs/editor/browser/controller/textAreaHandler",e)}),define(_[562],ee([3,5]),function(q,e){return q.create("vs/editor/browser/coreCommands",e)}),define(_[563],ee([3,5]),function(q,e){return q.create("vs/editor/browser/editorExtensions",e)}),define(_[564],ee([3,5]),function(q,e){return q.create("vs/editor/browser/widget/codeEditorWidget",e)}),define(_[565],ee([3,5]),function(q,e){return q.create("vs/editor/browser/widget/diffEditorWidget",e)}),define(_[566],ee([3,5]),function(q,e){return q.create("vs/editor/browser/widget/diffReview",e)}),define(_[567],ee([3,5]),function(q,e){return q.create("vs/editor/browser/widget/inlineDiffMargin",e)}),define(_[568],ee([1,0,567,7,41,2,4,29,32]),function(q,e,C,N,E,I,L,S,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InlineDiffMargin=void 0;class f extends I.Disposable{get visibility(){return this.b}set visibility(i){this.b!==i&&(this.b=i,i?this.a.style.visibility="visible":this.a.style.visibility="hidden")}constructor(i,t,n,a,r,c){super(),this.c=i,this.g=t,this.editor=n,this.diff=a,this.h=r,this.j=c,this.b=!1,this.g.style.zIndex="10",this.a=document.createElement("div"),this.a.className=v.ThemeIcon.asClassName(S.Codicon.lightBulb)+" lightbulb-glyph",this.a.style.position="absolute";const d=n.getOption(63),s=n.getModel().getEOL();this.a.style.right="0px",this.a.style.visibility="hidden",this.a.style.height=`${d}px`,this.a.style.lineHeight=`${d}px`,this.g.appendChild(this.a);const l=[],o=a.modifiedEndLineNumber===0;l.push(new E.Action("diff.clipboard.copyDeletedContent",o?a.originalEndLineNumber>a.modifiedStartLineNumber?C.localize(0,null):C.localize(1,null):a.originalEndLineNumber>a.modifiedStartLineNumber?C.localize(2,null):C.localize(3,null),void 0,!0,()=>ye(this,void 0,void 0,function*(){const p=new L.Range(a.originalStartLineNumber,1,a.originalEndLineNumber+1,1),b=a.originalModel.getValueInRange(p);yield this.j.writeText(b)})));let u=0,h;a.originalEndLineNumber>a.modifiedStartLineNumber&&(h=new E.Action("diff.clipboard.copyDeletedLineContent",o?C.localize(4,null,a.originalStartLineNumber):C.localize(5,null,a.originalStartLineNumber),void 0,!0,()=>ye(this,void 0,void 0,function*(){const p=a.originalModel.getLineContent(a.originalStartLineNumber+u);if(p===""){const b=a.originalModel.getEndOfLineSequence();yield this.j.writeText(b===0?`
|
||
`:`\r
|
||
`)}else yield this.j.writeText(p)})),l.push(h)),n.getOption(86)||l.push(new E.Action("diff.inline.revertChange",C.localize(6,null),void 0,!0,()=>ye(this,void 0,void 0,function*(){const p=new L.Range(a.originalStartLineNumber,1,a.originalEndLineNumber,a.originalModel.getLineMaxColumn(a.originalEndLineNumber)),b=a.originalModel.getValueInRange(p);if(a.modifiedEndLineNumber===0){const y=n.getModel().getLineMaxColumn(a.modifiedStartLineNumber);n.executeEdits("diffEditor",[{range:new L.Range(a.modifiedStartLineNumber,y,a.modifiedStartLineNumber,y),text:s+b}])}else{const y=n.getModel().getLineMaxColumn(a.modifiedEndLineNumber);n.executeEdits("diffEditor",[{range:new L.Range(a.modifiedStartLineNumber,1,a.modifiedEndLineNumber,y),text:b}])}})));const m=(p,b)=>{this.h.showContextMenu({getAnchor:()=>({x:p,y:b}),getActions:()=>(h&&(h.label=o?C.localize(7,null,a.originalStartLineNumber+u):C.localize(8,null,a.originalStartLineNumber+u)),l),autoSelectFirstItem:!0})};this.q(N.addStandardDisposableListener(this.a,"mousedown",p=>{const{top:b,height:y}=N.getDomNodePagePosition(this.a),k=Math.floor(d/3);p.preventDefault(),m(p.posx,b+y+k)})),this.q(n.onMouseMove(p=>{p.target.type===8||p.target.type===5?p.target.detail.viewZoneId===this.c?(this.visibility=!0,u=this.k(this.g,p.event.browserEvent.y,d)):this.visibility=!1:this.visibility=!1})),this.q(n.onMouseDown(p=>{!p.event.rightButton||(p.target.type===8||p.target.type===5)&&p.target.detail.viewZoneId===this.c&&(p.event.preventDefault(),u=this.k(this.g,p.event.browserEvent.y,d),m(p.event.posx,p.event.posy+d))}))}k(i,t,n){const{top:a}=N.getDomNodePagePosition(i),r=t-a,c=Math.floor(r/n),d=c*n;if(this.a.style.top=`${d}px`,this.diff.viewLineCounts){let s=0;for(let l=0;l<this.diff.viewLineCounts.length;l++)if(s+=this.diff.viewLineCounts[l],c<s)return l}return c}}e.InlineDiffMargin=f}),define(_[569],ee([3,5]),function(q,e){return q.create("vs/editor/common/config/editorConfigurationSchema",e)}),define(_[570],ee([3,5]),function(q,e){return q.create("vs/editor/common/config/editorOptions",e)}),define(_[40],ee([1,0,570,16,133,17,46,157]),function(q,e,C,N,E,I,L,S){"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.EditorFontVariations=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 v{constructor(ce){this.c=ce}hasChanged(ce){return this.c[ce]}}e.ConfigurationChangedEvent=v;class f{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}e.ComputeOptionsMemory=f;class g{constructor(ce,be,Se,Ie){this.id=ce,this.name=be,this.defaultValue=Se,this.schema=Ie}applyUpdate(ce,be){return t(ce,be)}compute(ce,be,Se){return Se}}class i{constructor(ce,be){this.newValue=ce,this.didChange=be}}e.ApplyUpdateResult=i;function t(pe,ce){if(typeof pe!="object"||typeof ce!="object"||!pe||!ce)return new i(ce,pe!==ce);if(Array.isArray(pe)||Array.isArray(ce)){const Se=Array.isArray(pe)&&Array.isArray(ce)&&I.equals(pe,ce);return new i(ce,!Se)}let be=!1;for(const Se in ce)if(ce.hasOwnProperty(Se)){const Ie=t(pe[Se],ce[Se]);Ie.didChange&&(pe[Se]=Ie.newValue,be=!0)}return new i(pe,be)}class n{constructor(ce){this.schema=void 0,this.id=ce,this.name="_never_",this.defaultValue=void 0}applyUpdate(ce,be){return t(ce,be)}validate(ce){return this.defaultValue}}class a{constructor(ce,be,Se,Ie){this.id=ce,this.name=be,this.defaultValue=Se,this.schema=Ie}applyUpdate(ce,be){return t(ce,be)}validate(ce){return typeof ce>"u"?this.defaultValue:ce}compute(ce,be,Se){return Se}}function r(pe,ce){return typeof pe>"u"?ce:pe==="false"?!1:Boolean(pe)}e.boolean=r;class c extends a{constructor(ce,be,Se,Ie=void 0){typeof Ie<"u"&&(Ie.type="boolean",Ie.default=Se),super(ce,be,Se,Ie)}validate(ce){return r(ce,this.defaultValue)}}function d(pe,ce,be,Se){if(typeof pe>"u")return ce;let Ie=parseInt(pe,10);return isNaN(Ie)?ce:(Ie=Math.max(be,Ie),Ie=Math.min(Se,Ie),Ie|0)}e.clampedInt=d;class s extends a{static clampedInt(ce,be,Se,Ie){return d(ce,be,Se,Ie)}constructor(ce,be,Se,Ie,Ce,ve=void 0){typeof ve<"u"&&(ve.type="integer",ve.default=Se,ve.minimum=Ie,ve.maximum=Ce),super(ce,be,Se,ve),this.minimum=Ie,this.maximum=Ce}validate(ce){return s.clampedInt(ce,this.defaultValue,this.minimum,this.maximum)}}class l extends a{static clamp(ce,be,Se){return ce<be?be:ce>Se?Se:ce}static float(ce,be){if(typeof ce=="number")return ce;if(typeof ce>"u")return be;const Se=parseFloat(ce);return isNaN(Se)?be:Se}constructor(ce,be,Se,Ie,Ce){typeof Ce<"u"&&(Ce.type="number",Ce.default=Se),super(ce,be,Se,Ce),this.validationFn=Ie}validate(ce){return this.validationFn(l.float(ce,this.defaultValue))}}class o extends a{static string(ce,be){return typeof ce!="string"?be:ce}constructor(ce,be,Se,Ie=void 0){typeof Ie<"u"&&(Ie.type="string",Ie.default=Se),super(ce,be,Se,Ie)}validate(ce){return o.string(ce,this.defaultValue)}}function u(pe,ce,be){return typeof pe!="string"||be.indexOf(pe)===-1?ce:pe}e.stringSet=u;class h extends a{constructor(ce,be,Se,Ie,Ce=void 0){typeof Ce<"u"&&(Ce.type="string",Ce.enum=Ie,Ce.default=Se),super(ce,be,Se,Ce),this.c=Ie}validate(ce){return u(ce,this.defaultValue,this.c)}}class w extends g{constructor(ce,be,Se,Ie,Ce,ve,De=void 0){typeof De<"u"&&(De.type="string",De.enum=Ce,De.default=Ie),super(ce,be,Se,De),this.c=Ce,this.d=ve}validate(ce){return typeof ce!="string"?this.defaultValue:this.c.indexOf(ce)===-1?this.defaultValue:this.d(ce)}}function m(pe){switch(pe){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class p extends g{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[C.localize(0,null),C.localize(1,null),C.localize(2,null)],default:"auto",tags:["accessibility"],description:C.localize(3,null)})}validate(ce){switch(ce){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(ce,be,Se){return Se===0?ce.accessibilitySupport:Se}}class b extends g{constructor(){const ce={insertSpace:!0,ignoreEmptyLines:!0};super(20,"comments",ce,{"editor.comments.insertSpace":{type:"boolean",default:ce.insertSpace,description:C.localize(4,null)},"editor.comments.ignoreEmptyLines":{type:"boolean",default:ce.ignoreEmptyLines,description:C.localize(5,null)}})}validate(ce){if(!ce||typeof ce!="object")return this.defaultValue;const be=ce;return{insertSpace:r(be.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:r(be.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function y(pe){switch(pe){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var k;(function(pe){pe[pe.Line=1]="Line",pe[pe.Block=2]="Block",pe[pe.Underline=3]="Underline",pe[pe.LineThin=4]="LineThin",pe[pe.BlockOutline=5]="BlockOutline",pe[pe.UnderlineThin=6]="UnderlineThin"})(k=e.TextEditorCursorStyle||(e.TextEditorCursorStyle={}));function D(pe){switch(pe){case"line":return k.Line;case"block":return k.Block;case"underline":return k.Underline;case"line-thin":return k.LineThin;case"block-outline":return k.BlockOutline;case"underline-thin":return k.UnderlineThin}}class M extends n{constructor(){super(135)}compute(ce,be,Se){const Ie=["monaco-editor"];return be.get(36)&&Ie.push(be.get(36)),ce.extraEditorClassName&&Ie.push(ce.extraEditorClassName),be.get(70)==="default"?Ie.push("mouse-default"):be.get(70)==="copy"&&Ie.push("mouse-copy"),be.get(105)&&Ie.push("showUnused"),be.get(133)&&Ie.push("showDeprecated"),Ie.join(" ")}}class z extends c{constructor(){super(34,"emptySelectionClipboard",!0,{description:C.localize(6,null)})}compute(ce,be,Se){return Se&&ce.emptySelectionClipboard}}class R extends g{constructor(){const ce={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(38,"find",ce,{"editor.find.cursorMoveOnType":{type:"boolean",default:ce.cursorMoveOnType,description:C.localize(7,null)},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:ce.seedSearchStringFromSelection,enumDescriptions:[C.localize(8,null),C.localize(9,null),C.localize(10,null)],description:C.localize(11,null)},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:ce.autoFindInSelection,enumDescriptions:[C.localize(12,null),C.localize(13,null),C.localize(14,null)],description:C.localize(15,null)},"editor.find.globalFindClipboard":{type:"boolean",default:ce.globalFindClipboard,description:C.localize(16,null),included:N.isMacintosh},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:ce.addExtraSpaceOnTop,description:C.localize(17,null)},"editor.find.loop":{type:"boolean",default:ce.loop,description:C.localize(18,null)}})}validate(ce){if(!ce||typeof ce!="object")return this.defaultValue;const be=ce;return{cursorMoveOnType:r(be.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof ce.seedSearchStringFromSelection=="boolean"?ce.seedSearchStringFromSelection?"always":"never":u(be.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof ce.autoFindInSelection=="boolean"?ce.autoFindInSelection?"always":"never":u(be.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:r(be.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:r(be.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:r(be.loop,this.defaultValue.loop)}}}class P extends g{constructor(){super(48,"fontLigatures",P.OFF,{anyOf:[{type:"boolean",description:C.localize(19,null)},{type:"string",description:C.localize(20,null)}],description:C.localize(21,null),default:!1})}validate(ce){return typeof ce>"u"?this.defaultValue:typeof ce=="string"?ce==="false"?P.OFF:ce==="true"?P.ON:ce:Boolean(ce)?P.ON:P.OFF}}P.OFF='"liga" off, "calt" off',P.ON='"liga" on, "calt" on',e.EditorFontLigatures=P;class A extends g{constructor(){super(51,"fontVariations",A.OFF,{anyOf:[{type:"boolean",description:C.localize(22,null)},{type:"string",description:C.localize(23,null)}],description:C.localize(24,null),default:!1})}validate(ce){return typeof ce>"u"?this.defaultValue:typeof ce=="string"?ce==="false"?A.OFF:ce==="true"?A.TRANSLATE:ce:Boolean(ce)?A.TRANSLATE:A.OFF}compute(ce,be,Se){return ce.fontInfo.fontVariationSettings}}A.OFF="normal",A.TRANSLATE="translate",e.EditorFontVariations=A;class T extends n{constructor(){super(47)}compute(ce,be,Se){return ce.fontInfo}}class O extends a{constructor(){super(49,"fontSize",e.EDITOR_FONT_DEFAULTS.fontSize,{type:"number",minimum:6,maximum:100,default:e.EDITOR_FONT_DEFAULTS.fontSize,description:C.localize(25,null)})}validate(ce){const be=l.float(ce,this.defaultValue);return be===0?e.EDITOR_FONT_DEFAULTS.fontSize:l.clamp(be,6,100)}compute(ce,be,Se){return ce.fontInfo.fontSize}}class B extends g{constructor(){super(50,"fontWeight",e.EDITOR_FONT_DEFAULTS.fontWeight,{anyOf:[{type:"number",minimum:B.d,maximum:B.e,errorMessage:C.localize(26,null)},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:B.c}],default:e.EDITOR_FONT_DEFAULTS.fontWeight,description:C.localize(27,null)})}validate(ce){return ce==="normal"||ce==="bold"?ce:String(s.clampedInt(ce,e.EDITOR_FONT_DEFAULTS.fontWeight,B.d,B.e))}}B.c=["normal","bold","100","200","300","400","500","600","700","800","900"],B.d=1,B.e=1e3;class W extends g{constructor(){const ce={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:""},be={type:"string",enum:["peek","gotoAndPeek","goto"],default:ce.multiple,enumDescriptions:[C.localize(28,null),C.localize(29,null),C.localize(30,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(55,"gotoLocation",ce,{"editor.gotoLocation.multiple":{deprecationMessage:C.localize(31,null)},"editor.gotoLocation.multipleDefinitions":Object.assign({description:C.localize(32,null)},be),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:C.localize(33,null)},be),"editor.gotoLocation.multipleDeclarations":Object.assign({description:C.localize(34,null)},be),"editor.gotoLocation.multipleImplementations":Object.assign({description:C.localize(35,null)},be),"editor.gotoLocation.multipleReferences":Object.assign({description:C.localize(36,null)},be),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:ce.alternativeDefinitionCommand,enum:Se,description:C.localize(37,null)},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:ce.alternativeTypeDefinitionCommand,enum:Se,description:C.localize(38,null)},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:ce.alternativeDeclarationCommand,enum:Se,description:C.localize(39,null)},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:ce.alternativeImplementationCommand,enum:Se,description:C.localize(40,null)},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:ce.alternativeReferenceCommand,enum:Se,description:C.localize(41,null)}})}validate(ce){var be,Se,Ie,Ce,ve;if(!ce||typeof ce!="object")return this.defaultValue;const De=ce;return{multiple:u(De.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(be=De.multipleDefinitions)!==null&&be!==void 0?be:u(De.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(Se=De.multipleTypeDefinitions)!==null&&Se!==void 0?Se:u(De.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(Ie=De.multipleDeclarations)!==null&&Ie!==void 0?Ie:u(De.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(Ce=De.multipleImplementations)!==null&&Ce!==void 0?Ce:u(De.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(ve=De.multipleReferences)!==null&&ve!==void 0?ve:u(De.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:o.string(De.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:o.string(De.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:o.string(De.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:o.string(De.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:o.string(De.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class j extends g{constructor(){const ce={enabled:!0,delay:300,sticky:!0,above:!0};super(57,"hover",ce,{"editor.hover.enabled":{type:"boolean",default:ce.enabled,description:C.localize(42,null)},"editor.hover.delay":{type:"number",default:ce.delay,minimum:0,maximum:1e4,description:C.localize(43,null)},"editor.hover.sticky":{type:"boolean",default:ce.sticky,description:C.localize(44,null)},"editor.hover.above":{type:"boolean",default:ce.above,description:C.localize(45,null)}})}validate(ce){if(!ce||typeof ce!="object")return this.defaultValue;const be=ce;return{enabled:r(be.enabled,this.defaultValue.enabled),delay:s.clampedInt(be.delay,this.defaultValue.delay,0,1e4),sticky:r(be.sticky,this.defaultValue.sticky),above:r(be.above,this.defaultValue.above)}}}class F extends n{constructor(){super(138)}compute(ce,be,Se){return F.computeLayout(be,{memory:ce.memory,outerWidth:ce.outerWidth,outerHeight:ce.outerHeight,isDominatedByLongLines:ce.isDominatedByLongLines,lineHeight:ce.fontInfo.lineHeight,viewLineCount:ce.viewLineCount,lineNumbersDigitCount:ce.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:ce.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:ce.fontInfo.maxDigitWidth,pixelRatio:ce.pixelRatio})}static computeContainedMinimapLineCount(ce){const be=ce.height/ce.lineHeight,Se=Math.floor(ce.paddingTop/ce.lineHeight);let Ie=Math.floor(ce.paddingBottom/ce.lineHeight);ce.scrollBeyondLastLine&&(Ie=Math.max(Ie,be-1));const Ce=(Se+ce.viewLineCount+Ie)/(ce.pixelRatio*ce.height),ve=Math.floor(ce.viewLineCount/Ce);return{typicalViewportLineCount:be,extraLinesBeforeFirstLine:Se,extraLinesBeyondLastLine:Ie,desiredRatio:Ce,minimapLineCount:ve}}static c(ce,be){const Se=ce.outerWidth,Ie=ce.outerHeight,Ce=ce.pixelRatio;if(!ce.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(Ce*Ie),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:Ie};const ve=be.stableMinimapLayoutInput,De=ve&&ce.outerHeight===ve.outerHeight&&ce.lineHeight===ve.lineHeight&&ce.typicalHalfwidthCharacterWidth===ve.typicalHalfwidthCharacterWidth&&ce.pixelRatio===ve.pixelRatio&&ce.scrollBeyondLastLine===ve.scrollBeyondLastLine&&ce.paddingTop===ve.paddingTop&&ce.paddingBottom===ve.paddingBottom&&ce.minimap.enabled===ve.minimap.enabled&&ce.minimap.side===ve.minimap.side&&ce.minimap.size===ve.minimap.size&&ce.minimap.showSlider===ve.minimap.showSlider&&ce.minimap.renderCharacters===ve.minimap.renderCharacters&&ce.minimap.maxColumn===ve.minimap.maxColumn&&ce.minimap.scale===ve.minimap.scale&&ce.verticalScrollbarWidth===ve.verticalScrollbarWidth&&ce.isViewportWrapping===ve.isViewportWrapping,Oe=ce.lineHeight,Re=ce.typicalHalfwidthCharacterWidth,xe=ce.scrollBeyondLastLine,Fe=ce.minimap.renderCharacters;let Be=Ce>=2?Math.round(ce.minimap.scale*2):ce.minimap.scale;const Ke=ce.minimap.maxColumn,$e=ce.minimap.size,nt=ce.minimap.side,lt=ce.verticalScrollbarWidth,He=ce.viewLineCount,Te=ce.remainingWidth,ze=ce.isViewportWrapping,Ve=Fe?2:3;let Ge=Math.floor(Ce*Ie);const qe=Ge/Ce;let Ze=!1,Je=!1,it=Ve*Be,ct=Be/Ce,Ye=1;if($e==="fill"||$e==="fit"){const{typicalViewportLineCount:je,extraLinesBeforeFirstLine:Ue,extraLinesBeyondLastLine:et,desiredRatio:Qe,minimapLineCount:tt}=F.computeContainedMinimapLineCount({viewLineCount:He,scrollBeyondLastLine:xe,paddingTop:ce.paddingTop,paddingBottom:ce.paddingBottom,height:Ie,lineHeight:Oe,pixelRatio:Ce});if(He/tt>1)Ze=!0,Je=!0,Be=1,it=1,ct=Be/Ce;else{let ot=!1,Lt=Be+1;if($e==="fit"){const bt=Math.ceil((Ue+He+et)*it);ze&&De&&Te<=be.stableFitRemainingWidth?(ot=!0,Lt=be.stableFitMaxMinimapScale):ot=bt>Ge}if($e==="fill"||ot){Ze=!0;const bt=Be;it=Math.min(Oe*Ce,Math.max(1,Math.floor(1/Qe))),ze&&De&&Te<=be.stableFitRemainingWidth&&(Lt=be.stableFitMaxMinimapScale),Be=Math.min(Lt,Math.max(1,Math.floor(it/Ve))),Be>bt&&(Ye=Math.min(2,Be/bt)),ct=Be/Ce/Ye,Ge=Math.ceil(Math.max(je,Ue+He+et)*it),ze?(be.stableMinimapLayoutInput=ce,be.stableFitRemainingWidth=Te,be.stableFitMaxMinimapScale=Be):(be.stableMinimapLayoutInput=null,be.stableFitRemainingWidth=0)}}}const at=Math.floor(Ke*ct),ht=Math.min(at,Math.max(0,Math.floor((Te-lt-2)*ct/(Re+ct)))+e.MINIMAP_GUTTER_WIDTH);let st=Math.floor(Ce*ht);const Xe=st/Ce;st=Math.floor(st*Ye);const Pe=Fe?1:2,We=nt==="left"?0:Se-ht-lt;return{renderMinimap:Pe,minimapLeft:We,minimapWidth:ht,minimapHeightIsEditorHeight:Ze,minimapIsSampling:Je,minimapScale:Be,minimapLineHeight:it,minimapCanvasInnerWidth:st,minimapCanvasInnerHeight:Ge,minimapCanvasOuterWidth:Xe,minimapCanvasOuterHeight:qe}}static computeLayout(ce,be){const Se=be.outerWidth|0,Ie=be.outerHeight|0,Ce=be.lineHeight|0,ve=be.lineNumbersDigitCount|0,De=be.typicalHalfwidthCharacterWidth,Oe=be.maxDigitWidth,Re=be.pixelRatio,xe=be.viewLineCount,Fe=ce.get(130),Be=Fe==="inherit"?ce.get(129):Fe,Ke=Be==="inherit"?ce.get(125):Be,$e=ce.get(128),nt=be.isDominatedByLongLines,lt=ce.get(54),He=ce.get(64).renderType!==0,Te=ce.get(65),ze=ce.get(99),Ve=ce.get(80),Ge=ce.get(69),qe=ce.get(97),Ze=qe.verticalScrollbarSize,Je=qe.verticalHasArrows,it=qe.arrowSize,ct=qe.horizontalScrollbarSize,Ye=ce.get(40),at=ce.get(104)!=="never";let ht=ce.get(62);Ye&&at&&(ht+=16);let st=0;if(He){const ft=Math.max(ve,Te);st=Math.round(ft*Oe)}let Xe=0;lt&&(Xe=Ce);let Pe=0,We=Pe+Xe,je=We+st,Ue=je+ht;const et=Se-Xe-st-ht;let Qe=!1,tt=!1,rt=-1;Be==="inherit"&&nt?(Qe=!0,tt=!0):Ke==="on"||Ke==="bounded"?tt=!0:Ke==="wordWrapColumn"&&(rt=$e);const ot=F.c({outerWidth:Se,outerHeight:Ie,lineHeight:Ce,typicalHalfwidthCharacterWidth:De,pixelRatio:Re,scrollBeyondLastLine:ze,paddingTop:Ve.top,paddingBottom:Ve.bottom,minimap:Ge,verticalScrollbarWidth:Ze,viewLineCount:xe,remainingWidth:et,isViewportWrapping:tt},be.memory||new f);ot.renderMinimap!==0&&ot.minimapLeft===0&&(Pe+=ot.minimapWidth,We+=ot.minimapWidth,je+=ot.minimapWidth,Ue+=ot.minimapWidth);const Lt=et-ot.minimapWidth,bt=Math.max(1,Math.floor((Lt-Ze-2)/De)),Kt=Je?it:0;return tt&&(rt=Math.max(1,bt),Ke==="bounded"&&(rt=Math.min(rt,$e))),{width:Se,height:Ie,glyphMarginLeft:Pe,glyphMarginWidth:Xe,lineNumbersLeft:We,lineNumbersWidth:st,decorationsLeft:je,decorationsWidth:ht,contentLeft:Ue,contentWidth:Lt,minimap:ot,viewportColumn:bt,isWordWrapMinified:Qe,isViewportWrapping:tt,wrappingColumn:rt,verticalScrollbarWidth:Ze,horizontalScrollbarHeight:ct,overviewRuler:{top:Kt,width:Ze,height:Ie-2*Kt,right:0}}}}e.EditorLayoutInfoComputer=F;class U extends g{constructor(){super(132,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[C.localize(46,null),C.localize(47,null)],type:"string",enum:["simple","advanced"],default:"simple",description:C.localize(48,null)}})}validate(ce){return u(ce,"simple",["simple","advanced"])}compute(ce,be,Se){return be.get(2)===2?"advanced":Se}}class Q extends g{constructor(){const ce={enabled:!0};super(61,"lightbulb",ce,{"editor.lightbulb.enabled":{type:"boolean",default:ce.enabled,description:C.localize(49,null)}})}validate(ce){return!ce||typeof ce!="object"?this.defaultValue:{enabled:r(ce.enabled,this.defaultValue.enabled)}}}class se extends g{constructor(){const ce={enabled:!1,maxLineCount:5};super(109,"stickyScroll",ce,{"editor.stickyScroll.enabled":{type:"boolean",default:ce.enabled,description:C.localize(50,null)},"editor.stickyScroll.maxLineCount":{type:"number",default:ce.maxLineCount,minimum:1,maximum:10,description:C.localize(51,null)}})}validate(ce){if(!ce||typeof ce!="object")return this.defaultValue;const be=ce;return{enabled:r(be.enabled,this.defaultValue.enabled),maxLineCount:s.clampedInt(be.maxLineCount,this.defaultValue.maxLineCount,1,10)}}}class he extends g{constructor(){const ce={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(134,"inlayHints",ce,{"editor.inlayHints.enabled":{type:"string",default:ce.enabled,description:C.localize(52,null),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[C.localize(53,null),C.localize(54,null,N.isMacintosh?"Ctrl+Option":"Ctrl+Alt"),C.localize(55,null,N.isMacintosh?"Ctrl+Option":"Ctrl+Alt"),C.localize(56,null)]},"editor.inlayHints.fontSize":{type:"number",default:ce.fontSize,markdownDescription:C.localize(57,null,"`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:ce.fontFamily,markdownDescription:C.localize(58,null,"`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:ce.padding,description:C.localize(59,null)}})}validate(ce){if(!ce||typeof ce!="object")return this.defaultValue;const be=ce;return typeof be.enabled=="boolean"&&(be.enabled=be.enabled?"on":"off"),{enabled:u(be.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:s.clampedInt(be.fontSize,this.defaultValue.fontSize,0,100),fontFamily:o.string(be.fontFamily,this.defaultValue.fontFamily),padding:r(be.padding,this.defaultValue.padding)}}}class ie extends g{constructor(){super(62,"lineDecorationsWidth",10)}validate(ce){return typeof ce=="string"&&/^\d+(\.\d+)?ch$/.test(ce)?-parseFloat(ce.substring(0,ce.length-2)):s.clampedInt(ce,this.defaultValue,0,1e3)}compute(ce,be,Se){return Se<0?s.clampedInt(-Se*ce.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):Se}}class ue extends l{constructor(){super(63,"lineHeight",e.EDITOR_FONT_DEFAULTS.lineHeight,ce=>l.clamp(ce,0,150),{markdownDescription:C.localize(60,null)})}compute(ce,be,Se){return ce.fontInfo.lineHeight}}class J extends g{constructor(){const ce={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1};super(69,"minimap",ce,{"editor.minimap.enabled":{type:"boolean",default:ce.enabled,description:C.localize(61,null)},"editor.minimap.autohide":{type:"boolean",default:ce.autohide,description:C.localize(62,null)},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[C.localize(63,null),C.localize(64,null),C.localize(65,null)],default:ce.size,description:C.localize(66,null)},"editor.minimap.side":{type:"string",enum:["left","right"],default:ce.side,description:C.localize(67,null)},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:ce.showSlider,description:C.localize(68,null)},"editor.minimap.scale":{type:"number",default:ce.scale,minimum:1,maximum:3,enum:[1,2,3],description:C.localize(69,null)},"editor.minimap.renderCharacters":{type:"boolean",default:ce.renderCharacters,description:C.localize(70,null)},"editor.minimap.maxColumn":{type:"number",default:ce.maxColumn,description:C.localize(71,null)}})}validate(ce){if(!ce||typeof ce!="object")return this.defaultValue;const be=ce;return{enabled:r(be.enabled,this.defaultValue.enabled),autohide:r(be.autohide,this.defaultValue.autohide),size:u(be.size,this.defaultValue.size,["proportional","fill","fit"]),side:u(be.side,this.defaultValue.side,["right","left"]),showSlider:u(be.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:r(be.renderCharacters,this.defaultValue.renderCharacters),scale:s.clampedInt(be.scale,1,1,3),maxColumn:s.clampedInt(be.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}function x(pe){return pe==="ctrlCmd"?N.isMacintosh?"metaKey":"ctrlKey":"altKey"}class G extends g{constructor(){super(80,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:C.localize(72,null)},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:C.localize(73,null)}})}validate(ce){if(!ce||typeof ce!="object")return this.defaultValue;const be=ce;return{top:s.clampedInt(be.top,0,0,1e3),bottom:s.clampedInt(be.bottom,0,0,1e3)}}}class te extends g{constructor(){const ce={enabled:!0,cycle:!0};super(81,"parameterHints",ce,{"editor.parameterHints.enabled":{type:"boolean",default:ce.enabled,description:C.localize(74,null)},"editor.parameterHints.cycle":{type:"boolean",default:ce.cycle,description:C.localize(75,null)}})}validate(ce){if(!ce||typeof ce!="object")return this.defaultValue;const be=ce;return{enabled:r(be.enabled,this.defaultValue.enabled),cycle:r(be.cycle,this.defaultValue.cycle)}}}class Z extends n{constructor(){super(136)}compute(ce,be,Se){return ce.pixelRatio}}class ae extends g{constructor(){const ce={other:"on",comments:"off",strings:"off"},be=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[C.localize(76,null),C.localize(77,null),C.localize(78,null)]}];super(84,"quickSuggestions",ce,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:be,default:ce.strings,description:C.localize(79,null)},comments:{anyOf:be,default:ce.comments,description:C.localize(80,null)},other:{anyOf:be,default:ce.other,description:C.localize(81,null)}},default:ce,markdownDescription:C.localize(82,null,"#editor.suggestOnTriggerCharacters#")}),this.defaultValue=ce}validate(ce){if(typeof ce=="boolean"){const Re=ce?"on":"off";return{comments:Re,strings:Re,other:Re}}if(!ce||typeof ce!="object")return this.defaultValue;const{other:be,comments:Se,strings:Ie}=ce,Ce=["on","inline","off"];let ve,De,Oe;return typeof be=="boolean"?ve=be?"on":"off":ve=u(be,this.defaultValue.other,Ce),typeof Se=="boolean"?De=Se?"on":"off":De=u(Se,this.defaultValue.comments,Ce),typeof Ie=="boolean"?Oe=Ie?"on":"off":Oe=u(Ie,this.defaultValue.strings,Ce),{other:ve,comments:De,strings:Oe}}}class de extends g{constructor(){super(64,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[C.localize(83,null),C.localize(84,null),C.localize(85,null),C.localize(86,null)],default:"on",description:C.localize(87,null)})}validate(ce){let be=this.defaultValue.renderType,Se=this.defaultValue.renderFn;return typeof ce<"u"&&(typeof ce=="function"?(be=4,Se=ce):ce==="interval"?be=3:ce==="relative"?be=2:ce==="on"?be=1:be=0),{renderType:be,renderFn:Se}}}function K(pe){const ce=pe.get(92);return ce==="editable"?pe.get(86):ce!=="on"}e.filterValidationDecorations=K;class Y extends g{constructor(){const ce=[],be={type:"number",description:C.localize(88,null)};super(96,"rulers",ce,{type:"array",items:{anyOf:[be,{type:["object"],properties:{column:be,color:{type:"string",description:C.localize(89,null),format:"color-hex"}}}]},default:ce,description:C.localize(90,null)})}validate(ce){if(Array.isArray(ce)){const be=[];for(const Se of ce)if(typeof Se=="number")be.push({column:s.clampedInt(Se,0,0,1e4),color:null});else if(Se&&typeof Se=="object"){const Ie=Se;be.push({column:s.clampedInt(Ie.column,0,0,1e4),color:Ie.color})}return be.sort((Se,Ie)=>Se.column-Ie.column),be}return this.defaultValue}}function ne(pe,ce){if(typeof pe!="string")return ce;switch(pe){case"hidden":return 2;case"visible":return 3;default:return 1}}class V extends g{constructor(){const ce={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(97,"scrollbar",ce,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[C.localize(91,null),C.localize(92,null),C.localize(93,null)],default:"auto",description:C.localize(94,null)},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[C.localize(95,null),C.localize(96,null),C.localize(97,null)],default:"auto",description:C.localize(98,null)},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:ce.verticalScrollbarSize,description:C.localize(99,null)},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:ce.horizontalScrollbarSize,description:C.localize(100,null)},"editor.scrollbar.scrollByPage":{type:"boolean",default:ce.scrollByPage,description:C.localize(101,null)}})}validate(ce){if(!ce||typeof ce!="object")return this.defaultValue;const be=ce,Se=s.clampedInt(be.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),Ie=s.clampedInt(be.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:s.clampedInt(be.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:ne(be.vertical,this.defaultValue.vertical),horizontal:ne(be.horizontal,this.defaultValue.horizontal),useShadows:r(be.useShadows,this.defaultValue.useShadows),verticalHasArrows:r(be.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:r(be.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:r(be.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:r(be.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:Se,horizontalSliderSize:s.clampedInt(be.horizontalSliderSize,Se,0,1e3),verticalScrollbarSize:Ie,verticalSliderSize:s.clampedInt(be.verticalSliderSize,Ie,0,1e3),scrollByPage:r(be.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 H extends g{constructor(){const ce={nonBasicASCII:e.inUntrustedWorkspace,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:e.inUntrustedWorkspace,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(119,"unicodeHighlight",ce,{[e.unicodeHighlightConfigKeys.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,e.inUntrustedWorkspace],default:ce.nonBasicASCII,description:C.localize(102,null)},[e.unicodeHighlightConfigKeys.invisibleCharacters]:{restricted:!0,type:"boolean",default:ce.invisibleCharacters,description:C.localize(103,null)},[e.unicodeHighlightConfigKeys.ambiguousCharacters]:{restricted:!0,type:"boolean",default:ce.ambiguousCharacters,description:C.localize(104,null)},[e.unicodeHighlightConfigKeys.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,e.inUntrustedWorkspace],default:ce.includeComments,description:C.localize(105,null)},[e.unicodeHighlightConfigKeys.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,e.inUntrustedWorkspace],default:ce.includeStrings,description:C.localize(106,null)},[e.unicodeHighlightConfigKeys.allowedCharacters]:{restricted:!0,type:"object",default:ce.allowedCharacters,description:C.localize(107,null),additionalProperties:{type:"boolean"}},[e.unicodeHighlightConfigKeys.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:ce.allowedLocales,description:C.localize(108,null)}})}applyUpdate(ce,be){let Se=!1;be.allowedCharacters&&ce&&(L.equals(ce.allowedCharacters,be.allowedCharacters)||(ce=Object.assign(Object.assign({},ce),{allowedCharacters:be.allowedCharacters}),Se=!0)),be.allowedLocales&&ce&&(L.equals(ce.allowedLocales,be.allowedLocales)||(ce=Object.assign(Object.assign({},ce),{allowedLocales:be.allowedLocales}),Se=!0));const Ie=super.applyUpdate(ce,be);return Se?new i(Ie.newValue,!0):Ie}validate(ce){if(!ce||typeof ce!="object")return this.defaultValue;const be=ce;return{nonBasicASCII:X(be.nonBasicASCII,e.inUntrustedWorkspace,[!0,!1,e.inUntrustedWorkspace]),invisibleCharacters:r(be.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:r(be.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:X(be.includeComments,e.inUntrustedWorkspace,[!0,!1,e.inUntrustedWorkspace]),includeStrings:X(be.includeStrings,e.inUntrustedWorkspace,[!0,!1,e.inUntrustedWorkspace]),allowedCharacters:this.c(ce.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.c(ce.allowedLocales,this.defaultValue.allowedLocales)}}c(ce,be){if(typeof ce!="object"||!ce)return be;const Se={};for(const[Ie,Ce]of Object.entries(ce))Ce===!0&&(Se[Ie]=!0);return Se}}class $ extends g{constructor(){const ce={enabled:!0,mode:"subwordSmart",showToolbar:"onHover"};super(59,"inlineSuggest",ce,{"editor.inlineSuggest.enabled":{type:"boolean",default:ce.enabled,description:C.localize(109,null)},"editor.inlineSuggest.showToolbar":{type:"string",default:ce.showToolbar,enum:["always","onHover"],enumDescriptions:[C.localize(110,null),C.localize(111,null)],description:C.localize(112,null)}})}validate(ce){if(!ce||typeof ce!="object")return this.defaultValue;const be=ce;return{enabled:r(be.enabled,this.defaultValue.enabled),mode:u(be.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:u(be.showToolbar,this.defaultValue.showToolbar,["always","onHover"])}}}class oe extends g{constructor(){const ce={enabled:S.EDITOR_MODEL_DEFAULTS.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:S.EDITOR_MODEL_DEFAULTS.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(12,"bracketPairColorization",ce,{"editor.bracketPairColorization.enabled":{type:"boolean",default:ce.enabled,markdownDescription:C.localize(113,null,"`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:ce.independentColorPoolPerBracketType,description:C.localize(114,null)}})}validate(ce){if(!ce||typeof ce!="object")return this.defaultValue;const be=ce;return{enabled:r(be.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:r(be.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}class re extends g{constructor(){const ce={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(13,"guides",ce,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[C.localize(115,null),C.localize(116,null),C.localize(117,null)],default:ce.bracketPairs,description:C.localize(118,null)},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[C.localize(119,null),C.localize(120,null),C.localize(121,null)],default:ce.bracketPairsHorizontal,description:C.localize(122,null)},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:ce.highlightActiveBracketPair,description:C.localize(123,null)},"editor.guides.indentation":{type:"boolean",default:ce.indentation,description:C.localize(124,null)},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[C.localize(125,null),C.localize(126,null),C.localize(127,null)],default:ce.highlightActiveIndentation,description:C.localize(128,null)}})}validate(ce){if(!ce||typeof ce!="object")return this.defaultValue;const be=ce;return{bracketPairs:X(be.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:X(be.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:r(be.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:r(be.indentation,this.defaultValue.indentation),highlightActiveIndentation:X(be.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}function X(pe,ce,be){const Se=be.indexOf(pe);return Se===-1?ce:be[Se]}class le extends g{constructor(){const ce={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(112,"suggest",ce,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[C.localize(129,null),C.localize(130,null)],default:ce.insertMode,description:C.localize(131,null)},"editor.suggest.filterGraceful":{type:"boolean",default:ce.filterGraceful,description:C.localize(132,null)},"editor.suggest.localityBonus":{type:"boolean",default:ce.localityBonus,description:C.localize(133,null)},"editor.suggest.shareSuggestSelections":{type:"boolean",default:ce.shareSuggestSelections,markdownDescription:C.localize(134,null)},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[C.localize(135,null),C.localize(136,null),C.localize(137,null),C.localize(138,null)],default:ce.selectionMode,markdownDescription:C.localize(139,null)},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:ce.snippetsPreventQuickSuggestions,description:C.localize(140,null)},"editor.suggest.showIcons":{type:"boolean",default:ce.showIcons,description:C.localize(141,null)},"editor.suggest.showStatusBar":{type:"boolean",default:ce.showStatusBar,description:C.localize(142,null)},"editor.suggest.preview":{type:"boolean",default:ce.preview,description:C.localize(143,null)},"editor.suggest.showInlineDetails":{type:"boolean",default:ce.showInlineDetails,description:C.localize(144,null)},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:C.localize(145,null)},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:C.localize(146,null)},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:C.localize(147,null)},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:C.localize(148,null)},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:C.localize(149,null)},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:C.localize(150,null)},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:C.localize(151,null)},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:C.localize(152,null)},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:C.localize(153,null)},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:C.localize(154,null)},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:C.localize(155,null)},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:C.localize(156,null)},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:C.localize(157,null)},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:C.localize(158,null)},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:C.localize(159,null)},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:C.localize(160,null)},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:C.localize(161,null)},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:C.localize(162,null)},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:C.localize(163,null)},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:C.localize(164,null)},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:C.localize(165,null)},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:C.localize(166,null)},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:C.localize(167,null)},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:C.localize(168,null)},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:C.localize(169,null)},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:C.localize(170,null)},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:C.localize(171,null)},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:C.localize(172,null)},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:C.localize(173,null)},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:C.localize(174,null)},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:C.localize(175,null)},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:C.localize(176,null)}})}validate(ce){if(!ce||typeof ce!="object")return this.defaultValue;const be=ce;return{insertMode:u(be.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:r(be.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:r(be.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:r(be.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:r(be.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:u(be.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:r(be.showIcons,this.defaultValue.showIcons),showStatusBar:r(be.showStatusBar,this.defaultValue.showStatusBar),preview:r(be.preview,this.defaultValue.preview),previewMode:u(be.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:r(be.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:r(be.showMethods,this.defaultValue.showMethods),showFunctions:r(be.showFunctions,this.defaultValue.showFunctions),showConstructors:r(be.showConstructors,this.defaultValue.showConstructors),showDeprecated:r(be.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:r(be.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:r(be.showFields,this.defaultValue.showFields),showVariables:r(be.showVariables,this.defaultValue.showVariables),showClasses:r(be.showClasses,this.defaultValue.showClasses),showStructs:r(be.showStructs,this.defaultValue.showStructs),showInterfaces:r(be.showInterfaces,this.defaultValue.showInterfaces),showModules:r(be.showModules,this.defaultValue.showModules),showProperties:r(be.showProperties,this.defaultValue.showProperties),showEvents:r(be.showEvents,this.defaultValue.showEvents),showOperators:r(be.showOperators,this.defaultValue.showOperators),showUnits:r(be.showUnits,this.defaultValue.showUnits),showValues:r(be.showValues,this.defaultValue.showValues),showConstants:r(be.showConstants,this.defaultValue.showConstants),showEnums:r(be.showEnums,this.defaultValue.showEnums),showEnumMembers:r(be.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:r(be.showKeywords,this.defaultValue.showKeywords),showWords:r(be.showWords,this.defaultValue.showWords),showColors:r(be.showColors,this.defaultValue.showColors),showFiles:r(be.showFiles,this.defaultValue.showFiles),showReferences:r(be.showReferences,this.defaultValue.showReferences),showFolders:r(be.showFolders,this.defaultValue.showFolders),showTypeParameters:r(be.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:r(be.showSnippets,this.defaultValue.showSnippets),showUsers:r(be.showUsers,this.defaultValue.showUsers),showIssues:r(be.showIssues,this.defaultValue.showIssues)}}}class me extends g{constructor(){super(107,"smartSelect",{selectLeadingAndTrailingWhitespace:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:C.localize(177,null),default:!0,type:"boolean"}})}validate(ce){return!ce||typeof ce!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:r(ce.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace)}}}class we extends g{constructor(){super(131,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[C.localize(178,null),C.localize(179,null),C.localize(180,null),C.localize(181,null)],description:C.localize(182,null),default:"same"}})}validate(ce){switch(ce){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(ce,be,Se){return be.get(2)===2?0:Se}}class Le extends n{constructor(){super(139)}compute(ce,be,Se){const Ie=be.get(138);return{isDominatedByLongLines:ce.isDominatedByLongLines,isWordWrapMinified:Ie.isWordWrapMinified,isViewportWrapping:Ie.isViewportWrapping,wrappingColumn:Ie.wrappingColumn}}}class Ee extends g{constructor(){const ce={enabled:!0};super(33,"dropIntoEditor",ce,{"editor.dropIntoEditor.enabled":{type:"boolean",default:ce.enabled,markdownDescription:C.localize(183,null)}})}validate(ce){return!ce||typeof ce!="object"?this.defaultValue:{enabled:r(ce.enabled,this.defaultValue.enabled)}}}const Me="Consolas, 'Courier New', monospace",Ae="Menlo, Monaco, 'Courier New', monospace",ke="'Droid Sans Mono', 'monospace', monospace";e.EDITOR_FONT_DEFAULTS={fontFamily:N.isMacintosh?Ae:N.isLinux?ke:Me,fontWeight:"normal",fontSize:N.isMacintosh?12:14,lineHeight:0,letterSpacing:0},e.editorOptionsRegistry=[];function fe(pe){return e.editorOptionsRegistry[pe.id]=pe,pe}e.EditorOptions={acceptSuggestionOnCommitCharacter:fe(new c(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:C.localize(184,null)})),acceptSuggestionOnEnter:fe(new h(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",C.localize(185,null),""],markdownDescription:C.localize(186,null)})),accessibilitySupport:fe(new p),accessibilityPageSize:fe(new s(3,"accessibilityPageSize",10,1,1073741824,{description:C.localize(187,null),tags:["accessibility"]})),ariaLabel:fe(new o(4,"ariaLabel",C.localize(188,null))),autoClosingBrackets:fe(new h(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",C.localize(189,null),C.localize(190,null),""],description:C.localize(191,null)})),autoClosingDelete:fe(new h(6,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",C.localize(192,null),""],description:C.localize(193,null)})),autoClosingOvertype:fe(new h(7,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",C.localize(194,null),""],description:C.localize(195,null)})),autoClosingQuotes:fe(new h(8,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",C.localize(196,null),C.localize(197,null),""],description:C.localize(198,null)})),autoIndent:fe(new w(9,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],m,{enumDescriptions:[C.localize(199,null),C.localize(200,null),C.localize(201,null),C.localize(202,null),C.localize(203,null)],description:C.localize(204,null)})),automaticLayout:fe(new c(10,"automaticLayout",!1)),autoSurround:fe(new h(11,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[C.localize(205,null),C.localize(206,null),C.localize(207,null),""],description:C.localize(208,null)})),bracketPairColorization:fe(new oe),bracketPairGuides:fe(new re),stickyTabStops:fe(new c(110,"stickyTabStops",!1,{description:C.localize(209,null)})),codeLens:fe(new c(14,"codeLens",!0,{description:C.localize(210,null)})),codeLensFontFamily:fe(new o(15,"codeLensFontFamily","",{description:C.localize(211,null)})),codeLensFontSize:fe(new s(16,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:C.localize(212,null)})),colorDecorators:fe(new c(17,"colorDecorators",!0,{description:C.localize(213,null)})),colorDecoratorsLimit:fe(new s(18,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:C.localize(214,null)})),columnSelection:fe(new c(19,"columnSelection",!1,{description:C.localize(215,null)})),comments:fe(new b),contextmenu:fe(new c(21,"contextmenu",!0)),copyWithSyntaxHighlighting:fe(new c(22,"copyWithSyntaxHighlighting",!0,{description:C.localize(216,null)})),cursorBlinking:fe(new w(23,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],y,{description:C.localize(217,null)})),cursorSmoothCaretAnimation:fe(new h(24,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[C.localize(218,null),C.localize(219,null),C.localize(220,null)],description:C.localize(221,null)})),cursorStyle:fe(new w(25,"cursorStyle",k.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],D,{description:C.localize(222,null)})),cursorSurroundingLines:fe(new s(26,"cursorSurroundingLines",0,0,1073741824,{description:C.localize(223,null)})),cursorSurroundingLinesStyle:fe(new h(27,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[C.localize(224,null),C.localize(225,null)],description:C.localize(226,null)})),cursorWidth:fe(new s(28,"cursorWidth",0,0,1073741824,{markdownDescription:C.localize(227,null)})),disableLayerHinting:fe(new c(29,"disableLayerHinting",!1)),disableMonospaceOptimizations:fe(new c(30,"disableMonospaceOptimizations",!1)),domReadOnly:fe(new c(31,"domReadOnly",!1)),dragAndDrop:fe(new c(32,"dragAndDrop",!0,{description:C.localize(228,null)})),emptySelectionClipboard:fe(new z),dropIntoEditor:fe(new Ee),stickyScroll:fe(new se),experimentalWhitespaceRendering:fe(new h(35,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[C.localize(229,null),C.localize(230,null),C.localize(231,null)],description:C.localize(232,null)})),extraEditorClassName:fe(new o(36,"extraEditorClassName","")),fastScrollSensitivity:fe(new l(37,"fastScrollSensitivity",5,pe=>pe<=0?5:pe,{markdownDescription:C.localize(233,null)})),find:fe(new R),fixedOverflowWidgets:fe(new c(39,"fixedOverflowWidgets",!1)),folding:fe(new c(40,"folding",!0,{description:C.localize(234,null)})),foldingStrategy:fe(new h(41,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[C.localize(235,null),C.localize(236,null)],description:C.localize(237,null)})),foldingHighlight:fe(new c(42,"foldingHighlight",!0,{description:C.localize(238,null)})),foldingImportsByDefault:fe(new c(43,"foldingImportsByDefault",!1,{description:C.localize(239,null)})),foldingMaximumRegions:fe(new s(44,"foldingMaximumRegions",5e3,10,65e3,{description:C.localize(240,null)})),unfoldOnClickAfterEndOfLine:fe(new c(45,"unfoldOnClickAfterEndOfLine",!1,{description:C.localize(241,null)})),fontFamily:fe(new o(46,"fontFamily",e.EDITOR_FONT_DEFAULTS.fontFamily,{description:C.localize(242,null)})),fontInfo:fe(new T),fontLigatures2:fe(new P),fontSize:fe(new O),fontWeight:fe(new B),fontVariations:fe(new A),formatOnPaste:fe(new c(52,"formatOnPaste",!1,{description:C.localize(243,null)})),formatOnType:fe(new c(53,"formatOnType",!1,{description:C.localize(244,null)})),glyphMargin:fe(new c(54,"glyphMargin",!0,{description:C.localize(245,null)})),gotoLocation:fe(new W),hideCursorInOverviewRuler:fe(new c(56,"hideCursorInOverviewRuler",!1,{description:C.localize(246,null)})),hover:fe(new j),inDiffEditor:fe(new c(58,"inDiffEditor",!1)),letterSpacing:fe(new l(60,"letterSpacing",e.EDITOR_FONT_DEFAULTS.letterSpacing,pe=>l.clamp(pe,-5,20),{description:C.localize(247,null)})),lightbulb:fe(new Q),lineDecorationsWidth:fe(new ie),lineHeight:fe(new ue),lineNumbers:fe(new de),lineNumbersMinChars:fe(new s(65,"lineNumbersMinChars",5,1,300)),linkedEditing:fe(new c(66,"linkedEditing",!1,{description:C.localize(248,null)})),links:fe(new c(67,"links",!0,{description:C.localize(249,null)})),matchBrackets:fe(new h(68,"matchBrackets","always",["always","near","never"],{description:C.localize(250,null)})),minimap:fe(new J),mouseStyle:fe(new h(70,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:fe(new l(71,"mouseWheelScrollSensitivity",1,pe=>pe===0?1:pe,{markdownDescription:C.localize(251,null)})),mouseWheelZoom:fe(new c(72,"mouseWheelZoom",!1,{markdownDescription:C.localize(252,null)})),multiCursorMergeOverlapping:fe(new c(73,"multiCursorMergeOverlapping",!0,{description:C.localize(253,null)})),multiCursorModifier:fe(new w(74,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],x,{markdownEnumDescriptions:[C.localize(254,null),C.localize(255,null)],markdownDescription:C.localize(256,null)})),multiCursorPaste:fe(new h(75,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[C.localize(257,null),C.localize(258,null)],markdownDescription:C.localize(259,null)})),multiCursorLimit:fe(new s(76,"multiCursorLimit",1e4,1,1e5,{markdownDescription:C.localize(260,null)})),occurrencesHighlight:fe(new c(77,"occurrencesHighlight",!0,{description:C.localize(261,null)})),overviewRulerBorder:fe(new c(78,"overviewRulerBorder",!0,{description:C.localize(262,null)})),overviewRulerLanes:fe(new s(79,"overviewRulerLanes",3,0,3)),padding:fe(new G),parameterHints:fe(new te),peekWidgetDefaultFocus:fe(new h(82,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[C.localize(263,null),C.localize(264,null)],description:C.localize(265,null)})),definitionLinkOpensInPeek:fe(new c(83,"definitionLinkOpensInPeek",!1,{description:C.localize(266,null)})),quickSuggestions:fe(new ae),quickSuggestionsDelay:fe(new s(85,"quickSuggestionsDelay",10,0,1073741824,{description:C.localize(267,null)})),readOnly:fe(new c(86,"readOnly",!1)),renameOnType:fe(new c(87,"renameOnType",!1,{description:C.localize(268,null),markdownDeprecationMessage:C.localize(269,null)})),renderControlCharacters:fe(new c(88,"renderControlCharacters",!0,{description:C.localize(270,null),restricted:!0})),renderFinalNewline:fe(new h(89,"renderFinalNewline",N.isLinux?"dimmed":"on",["off","on","dimmed"],{description:C.localize(271,null)})),renderLineHighlight:fe(new h(90,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",C.localize(272,null)],description:C.localize(273,null)})),renderLineHighlightOnlyWhenFocus:fe(new c(91,"renderLineHighlightOnlyWhenFocus",!1,{description:C.localize(274,null)})),renderValidationDecorations:fe(new h(92,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:fe(new h(93,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",C.localize(275,null),C.localize(276,null),C.localize(277,null),""],description:C.localize(278,null)})),revealHorizontalRightPadding:fe(new s(94,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:fe(new c(95,"roundedSelection",!0,{description:C.localize(279,null)})),rulers:fe(new Y),scrollbar:fe(new V),scrollBeyondLastColumn:fe(new s(98,"scrollBeyondLastColumn",4,0,1073741824,{description:C.localize(280,null)})),scrollBeyondLastLine:fe(new c(99,"scrollBeyondLastLine",!0,{description:C.localize(281,null)})),scrollPredominantAxis:fe(new c(100,"scrollPredominantAxis",!0,{description:C.localize(282,null)})),selectionClipboard:fe(new c(101,"selectionClipboard",!0,{description:C.localize(283,null),included:N.isLinux})),selectionHighlight:fe(new c(102,"selectionHighlight",!0,{description:C.localize(284,null)})),selectOnLineNumbers:fe(new c(103,"selectOnLineNumbers",!0)),showFoldingControls:fe(new h(104,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[C.localize(285,null),C.localize(286,null),C.localize(287,null)],description:C.localize(288,null)})),showUnused:fe(new c(105,"showUnused",!0,{description:C.localize(289,null)})),showDeprecated:fe(new c(133,"showDeprecated",!0,{description:C.localize(290,null)})),inlayHints:fe(new he),snippetSuggestions:fe(new h(106,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[C.localize(291,null),C.localize(292,null),C.localize(293,null),C.localize(294,null)],description:C.localize(295,null)})),smartSelect:fe(new me),smoothScrolling:fe(new c(108,"smoothScrolling",!1,{description:C.localize(296,null)})),stopRenderingLineAfter:fe(new s(111,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:fe(new le),inlineSuggest:fe(new $),suggestFontSize:fe(new s(113,"suggestFontSize",0,0,1e3,{markdownDescription:C.localize(297,null,"`0`","`#editor.fontSize#`")})),suggestLineHeight:fe(new s(114,"suggestLineHeight",0,0,1e3,{markdownDescription:C.localize(298,null,"`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:fe(new c(115,"suggestOnTriggerCharacters",!0,{description:C.localize(299,null)})),suggestSelection:fe(new h(116,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[C.localize(300,null),C.localize(301,null),C.localize(302,null)],description:C.localize(303,null)})),tabCompletion:fe(new h(117,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[C.localize(304,null),C.localize(305,null),C.localize(306,null)],description:C.localize(307,null)})),tabIndex:fe(new s(118,"tabIndex",0,-1,1073741824)),unicodeHighlight:fe(new H),unusualLineTerminators:fe(new h(120,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[C.localize(308,null),C.localize(309,null),C.localize(310,null)],description:C.localize(311,null)})),useShadowDOM:fe(new c(121,"useShadowDOM",!0)),useTabStops:fe(new c(122,"useTabStops",!0,{description:C.localize(312,null)})),wordBreak:fe(new h(123,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[C.localize(313,null),C.localize(314,null)],description:C.localize(315,null)})),wordSeparators:fe(new o(124,"wordSeparators",E.USUAL_WORD_SEPARATORS,{description:C.localize(316,null)})),wordWrap:fe(new h(125,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[C.localize(317,null),C.localize(318,null),C.localize(319,null),C.localize(320,null)],description:C.localize(321,null)})),wordWrapBreakAfterCharacters:fe(new o(126,"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 o(127,"wordWrapBreakBeforeCharacters","([{\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\xA3\xA5\uFF04\uFFE1\uFFE5+\uFF0B")),wordWrapColumn:fe(new s(128,"wordWrapColumn",80,1,1073741824,{markdownDescription:C.localize(322,null)})),wordWrapOverride1:fe(new h(129,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:fe(new h(130,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:fe(new M),pixelRatio:fe(new Z),tabFocusMode:fe(new c(137,"tabFocusMode",!1,{markdownDescription:C.localize(323,null)})),layoutInfo:fe(new F),wrappingInfo:fe(new Le),wrappingIndent:fe(new we),wrappingStrategy:fe(new U)}}),define(_[571],ee([1,0,7,35,9,73,40,12,4,155]),function(q,e,C,N,E,I,L,S,v,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewCursor=void 0;class g{constructor(n,a,r,c,d,s,l){this.top=n,this.left=a,this.paddingLeft=r,this.width=c,this.height=d,this.textContent=s,this.textContentClassName=l}}class i{constructor(n){this.a=n;const a=this.a.configuration.options,r=a.get(47);this.c=a.get(25),this.f=a.get(63),this.g=r.typicalHalfwidthCharacterWidth,this.d=Math.min(a.get(28),this.g),this.h=!0,this.b=(0,N.createFastDomNode)(document.createElement("div")),this.b.setClassName(`cursor ${f.MOUSE_CURSOR_TEXT_CSS_CLASS_NAME}`),this.b.setHeight(this.f),this.b.setTop(0),this.b.setLeft(0),(0,I.applyFontInfo)(this.b,r),this.b.setDisplay("none"),this.i=new S.Position(1,1),this.j="",this.k=null}getDomNode(){return this.b}getPosition(){return this.i}show(){this.h||(this.b.setVisibility("inherit"),this.h=!0)}hide(){this.h&&(this.b.setVisibility("hidden"),this.h=!1)}onConfigurationChanged(n){const a=this.a.configuration.options,r=a.get(47);return this.c=a.get(25),this.f=a.get(63),this.g=r.typicalHalfwidthCharacterWidth,this.d=Math.min(a.get(28),this.g),(0,I.applyFontInfo)(this.b,r),!0}onCursorPositionChanged(n,a){return a?this.b.domNode.style.transitionProperty="none":this.b.domNode.style.transitionProperty="",this.i=n,!0}l(){const{lineNumber:n,column:a}=this.i,r=this.a.viewModel.getLineContent(n),[c,d]=E.getCharContainingOffset(r,a-1);return[new S.Position(n,c+1),r.substring(c,d)]}m(n){let a="",r="";const[c,d]=this.l();if(this.c===L.TextEditorCursorStyle.Line||this.c===L.TextEditorCursorStyle.LineThin){const m=n.visibleRangeForPosition(c);if(!m||m.outsideRenderedLine)return null;let p;this.c===L.TextEditorCursorStyle.Line?(p=C.computeScreenAwareSize(this.d>0?this.d:2),p>2&&(a=d,r=this.n(c))):p=C.computeScreenAwareSize(1);let b=m.left,y=0;p>=2&&b>=1&&(y=1,b-=y);const k=n.getVerticalOffsetForLineNumber(c.lineNumber)-n.bigNumbersDelta;return new g(k,b,y,p,this.f,a,r)}const s=n.linesVisibleRangesForRange(new v.Range(c.lineNumber,c.column,c.lineNumber,c.column+d.length),!1);if(!s||s.length===0)return null;const l=s[0];if(l.outsideRenderedLine||l.ranges.length===0)return null;const o=l.ranges[0],u=d===" "?this.g:o.width<1?this.g:o.width;this.c===L.TextEditorCursorStyle.Block&&(a=d,r=this.n(c));let h=n.getVerticalOffsetForLineNumber(c.lineNumber)-n.bigNumbersDelta,w=this.f;return(this.c===L.TextEditorCursorStyle.Underline||this.c===L.TextEditorCursorStyle.UnderlineThin)&&(h+=this.f-2,w=2),new g(h,o.left,0,u,w,a,r)}n(n){const a=this.a.viewModel.getViewLineData(n.lineNumber),r=a.tokens.findTokenIndexAtOffset(n.column-1);return a.tokens.getClassName(r)}prepareRender(n){this.k=this.m(n)}render(n){return this.k?(this.j!==this.k.textContent&&(this.j=this.k.textContent,this.b.domNode.textContent=this.j),this.b.setClassName(`cursor ${f.MOUSE_CURSOR_TEXT_CSS_CLASS_NAME} ${this.k.textContentClassName}`),this.b.setDisplay("block"),this.b.setTop(this.k.top),this.b.setLeft(this.k.left),this.b.setPaddingLeft(this.k.paddingLeft),this.b.setWidth(this.k.width),this.b.setLineHeight(this.k.height),this.b.setHeight(this.k.height),{domNode:this.b.domNode,position:this.i,contentLeft:this.k.left,height:this.k.height,width:2}):(this.b.setDisplay("none"),null)}}e.ViewCursor=i}),define(_[217],ee([1,0,16,40,169]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FontInfo=e.SERIALIZED_FONT_INFO_VERSION=e.BareFontInfo=void 0;const I=C.isMacintosh?1.5:1.35,L=8;class S{static createFromValidatedSettings(g,i,t){const n=g.get(46),a=g.get(50),r=g.get(49),c=g.get(48),d=g.get(51),s=g.get(63),l=g.get(60);return S.a(n,a,r,c,d,s,l,i,t)}static a(g,i,t,n,a,r,c,d,s){r===0?r=I*t:r<L&&(r=r*t),r=Math.round(r),r<L&&(r=L);const l=1+(s?0:E.EditorZoom.getZoomLevel()*.1);return t*=l,r*=l,a===N.EditorFontVariations.TRANSLATE&&(i==="normal"||i==="bold"?a=N.EditorFontVariations.OFF:(a=`'wght' ${parseInt(i,10)}`,i="normal")),new S({pixelRatio:d,fontFamily:g,fontWeight:i,fontSize:t,fontFeatureSettings:n,fontVariationSettings:a,lineHeight:r,letterSpacing:c})}constructor(g){this._bareFontInfoBrand=void 0,this.pixelRatio=g.pixelRatio,this.fontFamily=String(g.fontFamily),this.fontWeight=String(g.fontWeight),this.fontSize=g.fontSize,this.fontFeatureSettings=g.fontFeatureSettings,this.fontVariationSettings=g.fontVariationSettings,this.lineHeight=g.lineHeight|0,this.letterSpacing=g.letterSpacing}getId(){return`${this.pixelRatio}-${this.fontFamily}-${this.fontWeight}-${this.fontSize}-${this.fontFeatureSettings}-${this.fontVariationSettings}-${this.lineHeight}-${this.letterSpacing}`}getMassagedFontFamily(){const g=N.EDITOR_FONT_DEFAULTS.fontFamily,i=S.b(this.fontFamily);return g&&this.fontFamily!==g?`${i}, ${g}`:i}static b(g){return/[,"']/.test(g)?g:/[+ ]/.test(g)?`"${g}"`:g}}e.BareFontInfo=S,e.SERIALIZED_FONT_INFO_VERSION=2;class v extends S{constructor(g,i){super(g),this._editorStylingBrand=void 0,this.version=e.SERIALIZED_FONT_INFO_VERSION,this.isTrusted=i,this.isMonospace=g.isMonospace,this.typicalHalfwidthCharacterWidth=g.typicalHalfwidthCharacterWidth,this.typicalFullwidthCharacterWidth=g.typicalFullwidthCharacterWidth,this.canUseHalfwidthRightwardsArrow=g.canUseHalfwidthRightwardsArrow,this.spaceWidth=g.spaceWidth,this.middotWidth=g.middotWidth,this.wsmiddotWidth=g.wsmiddotWidth,this.maxDigitWidth=g.maxDigitWidth}equals(g){return this.fontFamily===g.fontFamily&&this.fontWeight===g.fontWeight&&this.fontSize===g.fontSize&&this.fontFeatureSettings===g.fontFeatureSettings&&this.fontVariationSettings===g.fontVariationSettings&&this.lineHeight===g.lineHeight&&this.letterSpacing===g.letterSpacing&&this.typicalHalfwidthCharacterWidth===g.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===g.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===g.canUseHalfwidthRightwardsArrow&&this.spaceWidth===g.spaceWidth&&this.middotWidth===g.middotWidth&&this.wsmiddotWidth===g.wsmiddotWidth&&this.maxDigitWidth===g.maxDigitWidth}}e.FontInfo=v}),define(_[293],ee([1,0,45,6,2,431,40,217]),function(q,e,C,N,E,I,L,S){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FontMeasurements=e.FontMeasurementsImpl=void 0;class v extends E.Disposable{constructor(){super(),this.c=this.q(new N.Emitter),this.onDidChange=this.c.event,this.a=new f,this.b=-1}dispose(){this.b!==-1&&(window.clearTimeout(this.b),this.b=-1),super.dispose()}clearAllFontInfos(){this.a=new f,this.c.fire()}g(i,t){this.a.put(i,t),!t.isTrusted&&this.b===-1&&(this.b=window.setTimeout(()=>{this.b=-1,this.h()},5e3))}h(){const i=this.a.getValues();let t=!1;for(const n of i)n.isTrusted||(t=!0,this.a.remove(n));t&&this.c.fire()}readFontInfo(i){if(!this.a.has(i)){let t=this.k(i);(t.typicalHalfwidthCharacterWidth<=2||t.typicalFullwidthCharacterWidth<=2||t.spaceWidth<=2||t.maxDigitWidth<=2)&&(t=new S.FontInfo({pixelRatio:C.PixelRatio.value,fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,fontVariationSettings:t.fontVariationSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:t.isMonospace,typicalHalfwidthCharacterWidth:Math.max(t.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(t.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:t.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(t.spaceWidth,5),middotWidth:Math.max(t.middotWidth,5),wsmiddotWidth:Math.max(t.wsmiddotWidth,5),maxDigitWidth:Math.max(t.maxDigitWidth,5)},!1)),this.g(i,t)}return this.a.get(i)}j(i,t,n,a){const r=new I.CharWidthRequest(i,t);return n.push(r),a?.push(r),r}k(i){const t=[],n=[],a=this.j("n",0,t,n),r=this.j("\uFF4D",0,t,null),c=this.j(" ",0,t,n),d=this.j("0",0,t,n),s=this.j("1",0,t,n),l=this.j("2",0,t,n),o=this.j("3",0,t,n),u=this.j("4",0,t,n),h=this.j("5",0,t,n),w=this.j("6",0,t,n),m=this.j("7",0,t,n),p=this.j("8",0,t,n),b=this.j("9",0,t,n),y=this.j("\u2192",0,t,n),k=this.j("\uFFEB",0,t,null),D=this.j("\xB7",0,t,n),M=this.j(String.fromCharCode(11825),0,t,null),z="|/-_ilm%";for(let O=0,B=z.length;O<B;O++)this.j(z.charAt(O),0,t,n),this.j(z.charAt(O),1,t,n),this.j(z.charAt(O),2,t,n);(0,I.readCharWidths)(i,t);const R=Math.max(d.width,s.width,l.width,o.width,u.width,h.width,w.width,m.width,p.width,b.width);let P=i.fontFeatureSettings===L.EditorFontLigatures.OFF;const A=n[0].width;for(let O=1,B=n.length;P&&O<B;O++){const W=A-n[O].width;if(W<-.001||W>.001){P=!1;break}}let T=!0;return P&&k.width!==A&&(T=!1),k.width>y.width&&(T=!1),new S.FontInfo({pixelRatio:C.PixelRatio.value,fontFamily:i.fontFamily,fontWeight:i.fontWeight,fontSize:i.fontSize,fontFeatureSettings:i.fontFeatureSettings,fontVariationSettings:i.fontVariationSettings,lineHeight:i.lineHeight,letterSpacing:i.letterSpacing,isMonospace:P,typicalHalfwidthCharacterWidth:a.width,typicalFullwidthCharacterWidth:r.width,canUseHalfwidthRightwardsArrow:T,spaceWidth:c.width,middotWidth:D.width,wsmiddotWidth:M.width,maxDigitWidth:R},!0)}}e.FontMeasurementsImpl=v;class f{constructor(){this.a=Object.create(null),this.b=Object.create(null)}has(i){const t=i.getId();return!!this.b[t]}get(i){const t=i.getId();return this.b[t]}put(i,t){const n=i.getId();this.a[n]=i,this.b[n]=t}remove(i){const t=i.getId();delete this.a[t],delete this.b[t]}getValues(){return Object.keys(this.a).map(i=>this.b[i])}}e.FontMeasurements=new v}),define(_[294],ee([1,0,12,4,82,40]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isModelDecorationInString=e.isModelDecorationInComment=e.isModelDecorationVisible=e.ViewModelDecorations=void 0;class L{constructor(t,n,a,r,c){this.k=null,this.a=t,this.b=n,this.c=a,this.d=r,this.e=c,this.f=Object.create(null),this.g=null,this.h=null}l(){this.g=null,this.h=null}dispose(){this.f=Object.create(null),this.l()}reset(){this.f=Object.create(null),this.l()}onModelDecorationsChanged(){this.f=Object.create(null),this.l()}onLineMappingChanged(){this.f=Object.create(null),this.l()}m(t){const n=t.id;let a=this.f[n];if(!a){const r=t.range,c=t.options;let d;if(c.isWholeLine){const s=this.e.convertModelPositionToViewPosition(new C.Position(r.startLineNumber,1),0),l=this.e.convertModelPositionToViewPosition(new C.Position(r.endLineNumber,this.b.getLineMaxColumn(r.endLineNumber)),1);d=new N.Range(s.lineNumber,s.column,l.lineNumber,l.column)}else d=this.e.convertModelRangeToViewRange(r,1);a=new E.ViewModelDecoration(d,c),this.f[n]=a}return a}getDecorationsViewportData(t,n=!1){let a=this.g!==null;return a=a&&t.equalsRange(this.h),a=a&&this.k===n,a||(this.g=this.n(t,n),this.h=t,this.k=n),this.g}getInlineDecorationsOnLine(t,n=!1){const a=new N.Range(t,this.d.getViewLineMinColumn(t),t,this.d.getViewLineMaxColumn(t));return this.n(a,n).inlineDecorations[0]}n(t,n){const a=this.d.getDecorationsInRange(t,this.a,(0,I.filterValidationDecorations)(this.c.options),n),r=t.startLineNumber,c=t.endLineNumber,d=[];let s=0;const l=[];for(let o=r;o<=c;o++)l[o-r]=[];for(let o=0,u=a.length;o<u;o++){const h=a[o],w=h.options;if(!S(this.b,h))continue;const m=this.m(h),p=m.range;if(d[s++]=m,w.inlineClassName){const b=new E.InlineDecoration(p,w.inlineClassName,w.inlineClassNameAffectsLetterSpacing?3:0),y=Math.max(r,p.startLineNumber),k=Math.min(c,p.endLineNumber);for(let D=y;D<=k;D++)l[D-r].push(b)}if(w.beforeContentClassName&&r<=p.startLineNumber&&p.startLineNumber<=c){const b=new E.InlineDecoration(new N.Range(p.startLineNumber,p.startColumn,p.startLineNumber,p.startColumn),w.beforeContentClassName,1);l[p.startLineNumber-r].push(b)}if(w.afterContentClassName&&r<=p.endLineNumber&&p.endLineNumber<=c){const b=new E.InlineDecoration(new N.Range(p.endLineNumber,p.endColumn,p.endLineNumber,p.endColumn),w.afterContentClassName,2);l[p.endLineNumber-r].push(b)}}return{decorations:d,inlineDecorations:l}}}e.ViewModelDecorations=L;function S(i,t){return!(t.options.hideInCommentTokens&&v(i,t)||t.options.hideInStringTokens&&f(i,t))}e.isModelDecorationVisible=S;function v(i,t){return g(i,t.range,n=>n===1)}e.isModelDecorationInComment=v;function f(i,t){return g(i,t.range,n=>n===2)}e.isModelDecorationInString=f;function g(i,t,n){for(let a=t.startLineNumber;a<=t.endLineNumber;a++){const r=i.tokenization.getLineTokens(a),c=a===t.startLineNumber,d=a===t.endLineNumber;let s=c?r.findTokenIndexAtOffset(t.startColumn-1):0;for(;s<r.getCount()&&!(d&&r.getStartOffset(s)>t.endColumn-1);){if(!n(r.getStandardTokenType(s)))return!1;s++}}return!0}}),define(_[572],ee([3,5]),function(q,e){return q.create("vs/editor/common/core/editorColorRegistry",e)}),define(_[573],ee([3,5]),function(q,e){return q.create("vs/editor/common/editorContextKeys",e)}),define(_[574],ee([3,5]),function(q,e){return q.create("vs/editor/common/languages/modesRegistry",e)}),define(_[575],ee([3,5]),function(q,e){return q.create("vs/editor/common/model/editStack",e)}),define(_[295],ee([1,0,575,13,22,21,286,126,44]),function(q,e,C,N,E,I,L,S,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditStack=e.isEditStackElement=e.MultiModelEditStackElement=e.SingleModelEditStackElement=e.SingleModelEditStackData=void 0;function f(c){return c.toString()}class g{static create(d,s){const l=d.getAlternativeVersionId(),o=n(d);return new g(l,l,o,o,s,s,[])}constructor(d,s,l,o,u,h,w){this.beforeVersionId=d,this.afterVersionId=s,this.beforeEOL=l,this.afterEOL=o,this.beforeCursorState=u,this.afterCursorState=h,this.changes=w}append(d,s,l,o,u){s.length>0&&(this.changes=(0,L.compressConsecutiveTextChanges)(this.changes,s)),this.afterEOL=l,this.afterVersionId=o,this.afterCursorState=u}static c(d){return 4+4*4*(d?d.length:0)}static d(d,s,l){if(S.writeUInt32BE(d,s?s.length:0,l),l+=4,s)for(const o of s)S.writeUInt32BE(d,o.selectionStartLineNumber,l),l+=4,S.writeUInt32BE(d,o.selectionStartColumn,l),l+=4,S.writeUInt32BE(d,o.positionLineNumber,l),l+=4,S.writeUInt32BE(d,o.positionColumn,l),l+=4;return l}static f(d,s,l){const o=S.readUInt32BE(d,s);s+=4;for(let u=0;u<o;u++){const h=S.readUInt32BE(d,s);s+=4;const w=S.readUInt32BE(d,s);s+=4;const m=S.readUInt32BE(d,s);s+=4;const p=S.readUInt32BE(d,s);s+=4,l.push(new E.Selection(h,w,m,p))}return s}serialize(){let d=10+g.c(this.beforeCursorState)+g.c(this.afterCursorState)+4;for(const o of this.changes)d+=o.writeSize();const s=new Uint8Array(d);let l=0;S.writeUInt32BE(s,this.beforeVersionId,l),l+=4,S.writeUInt32BE(s,this.afterVersionId,l),l+=4,S.writeUInt8(s,this.beforeEOL,l),l+=1,S.writeUInt8(s,this.afterEOL,l),l+=1,l=g.d(s,this.beforeCursorState,l),l=g.d(s,this.afterCursorState,l),S.writeUInt32BE(s,this.changes.length,l),l+=4;for(const o of this.changes)l=o.write(s,l);return s.buffer}static deserialize(d){const s=new Uint8Array(d);let l=0;const o=S.readUInt32BE(s,l);l+=4;const u=S.readUInt32BE(s,l);l+=4;const h=S.readUInt8(s,l);l+=1;const w=S.readUInt8(s,l);l+=1;const m=[];l=g.f(s,l,m);const p=[];l=g.f(s,l,p);const b=S.readUInt32BE(s,l);l+=4;const y=[];for(let k=0;k<b;k++)l=L.TextChange.read(s,l,y);return new g(o,u,h,w,m,p,y)}}e.SingleModelEditStackData=g;class i{get type(){return 0}get resource(){return I.URI.isUri(this.model)?this.model:this.model.uri}constructor(d,s,l,o){this.label=d,this.code=s,this.model=l,this.c=g.create(l,o)}toString(){return(this.c instanceof g?this.c:g.deserialize(this.c)).changes.map(s=>s.toString()).join(", ")}matchesResource(d){return(I.URI.isUri(this.model)?this.model:this.model.uri).toString()===d.toString()}setModel(d){this.model=d}canAppend(d){return this.model===d&&this.c instanceof g}append(d,s,l,o,u){this.c instanceof g&&this.c.append(d,s,l,o,u)}close(){this.c instanceof g&&(this.c=this.c.serialize())}open(){this.c instanceof g||(this.c=g.deserialize(this.c))}undo(){if(I.URI.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this.c instanceof g&&(this.c=this.c.serialize());const d=g.deserialize(this.c);this.model._applyUndo(d.changes,d.beforeEOL,d.beforeVersionId,d.beforeCursorState)}redo(){if(I.URI.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this.c instanceof g&&(this.c=this.c.serialize());const d=g.deserialize(this.c);this.model._applyRedo(d.changes,d.afterEOL,d.afterVersionId,d.afterCursorState)}heapSize(){return this.c instanceof g&&(this.c=this.c.serialize()),this.c.byteLength+168}}e.SingleModelEditStackElement=i;class t{get resources(){return this.d.map(d=>d.resource)}constructor(d,s,l){this.label=d,this.code=s,this.type=1,this.c=!0,this.d=l.slice(0),this.f=new Map;for(const o of this.d){const u=f(o.resource);this.f.set(u,o)}this.g=null}prepareUndoRedo(){if(this.g)return this.g.prepareUndoRedo(this)}matchesResource(d){const s=f(d);return this.f.has(s)}setModel(d){const s=f(I.URI.isUri(d)?d:d.uri);this.f.has(s)&&this.f.get(s).setModel(d)}canAppend(d){if(!this.c)return!1;const s=f(d.uri);return this.f.has(s)?this.f.get(s).canAppend(d):!1}append(d,s,l,o,u){const h=f(d.uri);this.f.get(h).append(d,s,l,o,u)}close(){this.c=!1}open(){}undo(){this.c=!1;for(const d of this.d)d.undo()}redo(){for(const d of this.d)d.redo()}heapSize(d){const s=f(d);return this.f.has(s)?this.f.get(s).heapSize():0}split(){return this.d}toString(){const d=[];for(const s of this.d)d.push(`${(0,v.basename)(s.resource)}: ${s}`);return`{${d.join(", ")}}`}}e.MultiModelEditStackElement=t;function n(c){return c.getEOL()===`
|
||
`?0:1}function a(c){return c?c instanceof i||c instanceof t:!1}e.isEditStackElement=a;class r{constructor(d,s){this.c=d,this.d=s}pushStackElement(){const d=this.d.getLastElement(this.c.uri);a(d)&&d.close()}popStackElement(){const d=this.d.getLastElement(this.c.uri);a(d)&&d.open()}clear(){this.d.removeElements(this.c.uri)}f(d,s){const l=this.d.getLastElement(this.c.uri);if(a(l)&&l.canAppend(this.c))return l;const o=new i(C.localize(0,null),"undoredo.textBufferEdit",this.c,d);return this.d.pushElement(o,s),o}pushEOL(d){const s=this.f(null,void 0);this.c.setEOL(d),s.append(this.c,[],n(this.c),this.c.getAlternativeVersionId(),null)}pushEditOperation(d,s,l,o){const u=this.f(d,o),h=this.c.applyEdits(s,!0),w=r.g(l,h),m=h.map((p,b)=>({index:b,textChange:p.textChange}));return m.sort((p,b)=>p.textChange.oldPosition===b.textChange.oldPosition?p.index-b.index:p.textChange.oldPosition-b.textChange.oldPosition),u.append(this.c,m.map(p=>p.textChange),n(this.c),this.c.getAlternativeVersionId(),w),w}static g(d,s){try{return d?d(s):null}catch(l){return(0,N.onUnexpectedError)(l),null}}}e.EditStack=r}),define(_[576],ee([3,5]),function(q,e){return q.create("vs/editor/common/standaloneStrings",e)}),define(_[83],ee([1,0,576]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StandaloneServicesNLS=e.ToggleHighContrastNLS=e.StandaloneCodeEditorNLS=e.QuickOutlineNLS=e.QuickCommandNLS=e.QuickHelpNLS=e.GoToLineNLS=e.InspectTokensNLS=e.AccessibilityHelpNLS=void 0;var N;(function(t){t.noSelection=C.localize(0,null),t.singleSelectionRange=C.localize(1,null),t.singleSelection=C.localize(2,null),t.multiSelectionRange=C.localize(3,null),t.multiSelection=C.localize(4,null),t.emergencyConfOn=C.localize(5,null),t.openingDocs=C.localize(6,null),t.readonlyDiffEditor=C.localize(7,null),t.editableDiffEditor=C.localize(8,null),t.readonlyEditor=C.localize(9,null),t.editableEditor=C.localize(10,null),t.changeConfigToOnMac=C.localize(11,null),t.changeConfigToOnWinLinux=C.localize(12,null),t.auto_on=C.localize(13,null),t.auto_off=C.localize(14,null),t.tabFocusModeOnMsg=C.localize(15,null),t.tabFocusModeOnMsgNoKb=C.localize(16,null),t.tabFocusModeOffMsg=C.localize(17,null),t.tabFocusModeOffMsgNoKb=C.localize(18,null),t.openDocMac=C.localize(19,null),t.openDocWinLinux=C.localize(20,null),t.outroMsg=C.localize(21,null),t.showAccessibilityHelpAction=C.localize(22,null)})(N=e.AccessibilityHelpNLS||(e.AccessibilityHelpNLS={}));var E;(function(t){t.inspectTokensAction=C.localize(23,null)})(E=e.InspectTokensNLS||(e.InspectTokensNLS={}));var I;(function(t){t.gotoLineActionLabel=C.localize(24,null)})(I=e.GoToLineNLS||(e.GoToLineNLS={}));var L;(function(t){t.helpQuickAccessActionLabel=C.localize(25,null)})(L=e.QuickHelpNLS||(e.QuickHelpNLS={}));var S;(function(t){t.quickCommandActionLabel=C.localize(26,null),t.quickCommandHelp=C.localize(27,null)})(S=e.QuickCommandNLS||(e.QuickCommandNLS={}));var v;(function(t){t.quickOutlineActionLabel=C.localize(28,null),t.quickOutlineByCategoryActionLabel=C.localize(29,null)})(v=e.QuickOutlineNLS||(e.QuickOutlineNLS={}));var f;(function(t){t.editorViewAccessibleLabel=C.localize(30,null),t.accessibilityHelpMessage=C.localize(31,null)})(f=e.StandaloneCodeEditorNLS||(e.StandaloneCodeEditorNLS={}));var g;(function(t){t.toggleHighContrast=C.localize(32,null)})(g=e.ToggleHighContrastNLS||(e.ToggleHighContrastNLS={}));var i;(function(t){t.bulkEditServiceSummary=C.localize(33,null)})(i=e.StandaloneServicesNLS||(e.StandaloneServicesNLS={}))}),define(_[577],ee([3,5]),function(q,e){return q.create("vs/editor/common/viewLayout/viewLineRenderer",e)}),define(_[107],ee([1,0,577,9,95,135,482]),function(q,e,C,N,E,I,L){"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 S{constructor(y,k){this.startOffset=y,this.endOffset=k}equals(y){return this.startOffset===y.startOffset&&this.endOffset===y.endOffset}}e.LineRange=S;class v{constructor(y,k,D,M,z,R,P,A,T,O,B,W,j,F,U,Q,se,he,ie){this.useMonospaceOptimizations=y,this.canUseHalfwidthRightwardsArrow=k,this.lineContent=D,this.continuesWithWrappedLine=M,this.isBasicASCII=z,this.containsRTL=R,this.fauxIndentLength=P,this.lineTokens=A,this.lineDecorations=T.sort(I.LineDecoration.compare),this.tabSize=O,this.startVisibleColumn=B,this.spaceWidth=W,this.stopRenderingLineAfter=U,this.renderWhitespace=Q==="all"?4:Q==="boundary"?1:Q==="selection"?2:Q==="trailing"?3:0,this.renderControlCharacters=se,this.fontLigatures=he,this.selectionsOnLine=ie&&ie.sort((x,G)=>x.startOffset<G.startOffset?-1:1);const ue=Math.abs(F-W),J=Math.abs(j-W);ue<J?(this.renderSpaceWidth=F,this.renderSpaceCharCode=11825):(this.renderSpaceWidth=j,this.renderSpaceCharCode=183)}c(y){if(this.selectionsOnLine===null)return y===null;if(y===null||y.length!==this.selectionsOnLine.length)return!1;for(let k=0;k<this.selectionsOnLine.length;k++)if(!this.selectionsOnLine[k].equals(y[k]))return!1;return!0}equals(y){return this.useMonospaceOptimizations===y.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===y.canUseHalfwidthRightwardsArrow&&this.lineContent===y.lineContent&&this.continuesWithWrappedLine===y.continuesWithWrappedLine&&this.isBasicASCII===y.isBasicASCII&&this.containsRTL===y.containsRTL&&this.fauxIndentLength===y.fauxIndentLength&&this.tabSize===y.tabSize&&this.startVisibleColumn===y.startVisibleColumn&&this.spaceWidth===y.spaceWidth&&this.renderSpaceWidth===y.renderSpaceWidth&&this.renderSpaceCharCode===y.renderSpaceCharCode&&this.stopRenderingLineAfter===y.stopRenderingLineAfter&&this.renderWhitespace===y.renderWhitespace&&this.renderControlCharacters===y.renderControlCharacters&&this.fontLigatures===y.fontLigatures&&I.LineDecoration.equalsArr(this.lineDecorations,y.lineDecorations)&&this.lineTokens.equals(y.lineTokens)&&this.c(y.selectionsOnLine)}}e.RenderLineInput=v;class f{constructor(y,k){this.partIndex=y,this.charIndex=k}}e.DomPosition=f;class g{static c(y){return(y&4294901760)>>>16}static d(y){return(y&65535)>>>0}constructor(y,k){this.length=y,this.e=new Uint32Array(this.length),this.f=new Uint32Array(this.length)}setColumnInfo(y,k,D,M){const z=(k<<16|D<<0)>>>0;this.e[y-1]=z,this.f[y-1]=M}getHorizontalOffset(y){return this.f.length===0?0:this.f[y-1]}g(y){return this.length===0?0:y<0?this.e[0]:y>=this.length?this.e[this.length-1]:this.e[y]}getDomPosition(y){const k=this.g(y-1),D=g.c(k),M=g.d(k);return new f(D,M)}getColumn(y,k){return this.h(y.partIndex,k,y.charIndex)+1}h(y,k,D){if(this.length===0)return 0;const M=(y<<16|D<<0)>>>0;let z=0,R=this.length-1;for(;z+1<R;){const U=z+R>>>1,Q=this.e[U];if(Q===M)return U;Q>M?R=U:z=U}if(z===R)return z;const P=this.e[z],A=this.e[R];if(P===M)return z;if(A===M)return R;const T=g.c(P),O=g.d(P),B=g.c(A);let W;T!==B?W=k:W=g.d(A);const j=D-O,F=W-D;return j<=F?z:R}}e.CharacterMapping=g;class i{constructor(y,k,D){this._renderLineOutputBrand=void 0,this.characterMapping=y,this.containsRTL=k,this.containsForeignElements=D}}e.RenderLineOutput=i;function t(b,y){if(b.lineContent.length===0){if(b.lineDecorations.length>0){y.appendString("<span>");let k=0,D=0,M=0;for(const R of b.lineDecorations)(R.type===1||R.type===2)&&(y.appendString('<span class="'),y.appendString(R.className),y.appendString('"></span>'),R.type===1&&(M|=1,k++),R.type===2&&(M|=2,D++));y.appendString("</span>");const z=new g(1,k+D);return z.setColumnInfo(1,k,0,0),new i(z,!1,M)}return y.appendString("<span><span></span></span>"),new i(new g(0,0),!1,0)}return w(c(b),y)}e.renderViewLine=t;class n{constructor(y,k,D,M){this.characterMapping=y,this.html=k,this.containsRTL=D,this.containsForeignElements=M}}e.RenderLineOutput2=n;function a(b){const y=new E.StringBuilder(1e4),k=t(b,y);return new n(k.characterMapping,y.build(),k.containsRTL,k.containsForeignElements)}e.renderViewLine2=a;class r{constructor(y,k,D,M,z,R,P,A,T,O,B,W,j,F,U,Q){this.fontIsMonospace=y,this.canUseHalfwidthRightwardsArrow=k,this.lineContent=D,this.len=M,this.isOverflowing=z,this.overflowingCharCount=R,this.parts=P,this.containsForeignElements=A,this.fauxIndentLength=T,this.tabSize=O,this.startVisibleColumn=B,this.containsRTL=W,this.spaceWidth=j,this.renderSpaceCharCode=F,this.renderWhitespace=U,this.renderControlCharacters=Q}}function c(b){const y=b.lineContent;let k,D,M;b.stopRenderingLineAfter!==-1&&b.stopRenderingLineAfter<y.length?(k=!0,D=y.length-b.stopRenderingLineAfter,M=b.stopRenderingLineAfter):(k=!1,D=0,M=y.length);let z=d(y,b.containsRTL,b.lineTokens,b.fauxIndentLength,M);b.renderControlCharacters&&!b.isBasicASCII&&(z=o(y,z)),(b.renderWhitespace===4||b.renderWhitespace===1||b.renderWhitespace===2&&!!b.selectionsOnLine||b.renderWhitespace===3&&!b.continuesWithWrappedLine)&&(z=u(b,y,M,z));let R=0;if(b.lineDecorations.length>0){for(let P=0,A=b.lineDecorations.length;P<A;P++){const T=b.lineDecorations[P];T.type===3||T.type===1?R|=1:T.type===2&&(R|=2)}z=h(y,M,z,b.lineDecorations)}return b.containsRTL||(z=s(y,z,!b.isBasicASCII||b.fontLigatures)),new r(b.useMonospaceOptimizations,b.canUseHalfwidthRightwardsArrow,y,M,k,D,z,R,b.fauxIndentLength,b.tabSize,b.startVisibleColumn,b.containsRTL,b.spaceWidth,b.renderSpaceCharCode,b.renderWhitespace,b.renderControlCharacters)}function d(b,y,k,D,M){const z=[];let R=0;D>0&&(z[R++]=new L.LinePart(D,"",0,!1));let P=D;for(let A=0,T=k.getCount();A<T;A++){const O=k.getEndOffset(A);if(O<=D)continue;const B=k.getClassName(A);if(O>=M){const j=y?N.containsRTL(b.substring(P,M)):!1;z[R++]=new L.LinePart(M,B,0,j);break}const W=y?N.containsRTL(b.substring(P,O)):!1;z[R++]=new L.LinePart(O,B,0,W),P=O}return z}function s(b,y,k){let D=0;const M=[];let z=0;if(k)for(let R=0,P=y.length;R<P;R++){const A=y[R],T=A.endIndex;if(D+50<T){const O=A.type,B=A.metadata,W=A.containsRTL;let j=-1,F=D;for(let U=D;U<T;U++)b.charCodeAt(U)===32&&(j=U),j!==-1&&U-F>=50&&(M[z++]=new L.LinePart(j+1,O,B,W),F=j+1,j=-1);F!==T&&(M[z++]=new L.LinePart(T,O,B,W))}else M[z++]=A;D=T}else for(let R=0,P=y.length;R<P;R++){const A=y[R],T=A.endIndex,O=T-D;if(O>50){const B=A.type,W=A.metadata,j=A.containsRTL,F=Math.ceil(O/50);for(let U=1;U<F;U++){const Q=D+U*50;M[z++]=new L.LinePart(Q,B,W,j)}M[z++]=new L.LinePart(T,B,W,j)}else M[z++]=A;D=T}return M}function l(b){return b<32?b!==9:b===127||b>=8234&&b<=8238||b>=8294&&b<=8297||b>=8206&&b<=8207||b===1564}function o(b,y){const k=[];let D=new L.LinePart(0,"",0,!1),M=0;for(const z of y){const R=z.endIndex;for(;M<R;M++){const P=b.charCodeAt(M);l(P)&&(M>D.endIndex&&(D=new L.LinePart(M,z.type,z.metadata,z.containsRTL),k.push(D)),D=new L.LinePart(M+1,"mtkcontrol",z.metadata,!1),k.push(D))}M>D.endIndex&&(D=new L.LinePart(R,z.type,z.metadata,z.containsRTL),k.push(D))}return k}function u(b,y,k,D){const M=b.continuesWithWrappedLine,z=b.fauxIndentLength,R=b.tabSize,P=b.startVisibleColumn,A=b.useMonospaceOptimizations,T=b.selectionsOnLine,O=b.renderWhitespace===1,B=b.renderWhitespace===3,W=b.renderSpaceWidth!==b.spaceWidth,j=[];let F=0,U=0,Q=D[U].type,se=D[U].containsRTL,he=D[U].endIndex;const ie=D.length;let ue=!1,J=N.firstNonWhitespaceIndex(y),x;J===-1?(ue=!0,J=k,x=k):x=N.lastNonWhitespaceIndex(y);let G=!1,te=0,Z=T&&T[te],ae=P%R;for(let K=z;K<k;K++){const Y=y.charCodeAt(K);Z&&K>=Z.endOffset&&(te++,Z=T&&T[te]);let ne;if(K<J||K>x)ne=!0;else if(Y===9)ne=!0;else if(Y===32)if(O)if(G)ne=!0;else{const V=K+1<k?y.charCodeAt(K+1):0;ne=V===32||V===9}else ne=!0;else ne=!1;if(ne&&T&&(ne=!!Z&&Z.startOffset<=K&&Z.endOffset>K),ne&&B&&(ne=ue||K>x),ne&&se&&K>=J&&K<=x&&(ne=!1),G){if(!ne||!A&&ae>=R){if(W){const V=F>0?j[F-1].endIndex:z;for(let H=V+1;H<=K;H++)j[F++]=new L.LinePart(H,"mtkw",1,!1)}else j[F++]=new L.LinePart(K,"mtkw",1,!1);ae=ae%R}}else(K===he||ne&&K>z)&&(j[F++]=new L.LinePart(K,Q,0,se),ae=ae%R);for(Y===9?ae=R:N.isFullWidthCharacter(Y)?ae+=2:ae++,G=ne;K===he&&(U++,U<ie);)Q=D[U].type,se=D[U].containsRTL,he=D[U].endIndex}let de=!1;if(G)if(M&&O){const K=k>0?y.charCodeAt(k-1):0,Y=k>1?y.charCodeAt(k-2):0;K===32&&Y!==32&&Y!==9||(de=!0)}else de=!0;if(de)if(W){const K=F>0?j[F-1].endIndex:z;for(let Y=K+1;Y<=k;Y++)j[F++]=new L.LinePart(Y,"mtkw",1,!1)}else j[F++]=new L.LinePart(k,"mtkw",1,!1);else j[F++]=new L.LinePart(k,Q,0,se);return j}function h(b,y,k,D){D.sort(I.LineDecoration.compare);const M=I.LineDecorationsNormalizer.normalize(b,D),z=M.length;let R=0;const P=[];let A=0,T=0;for(let B=0,W=k.length;B<W;B++){const j=k[B],F=j.endIndex,U=j.type,Q=j.metadata,se=j.containsRTL;for(;R<z&&M[R].startOffset<F;){const he=M[R];if(he.startOffset>T&&(T=he.startOffset,P[A++]=new L.LinePart(T,U,Q,se)),he.endOffset+1<=F)T=he.endOffset+1,P[A++]=new L.LinePart(T,U+" "+he.className,Q|he.metadata,se),R++;else{T=F,P[A++]=new L.LinePart(T,U+" "+he.className,Q|he.metadata,se);break}}F>T&&(T=F,P[A++]=new L.LinePart(T,U,Q,se))}const O=k[k.length-1].endIndex;if(R<z&&M[R].startOffset===O)for(;R<z&&M[R].startOffset===O;){const B=M[R];P[A++]=new L.LinePart(T,B.className,B.metadata,!1),R++}return P}function w(b,y){const k=b.fontIsMonospace,D=b.canUseHalfwidthRightwardsArrow,M=b.containsForeignElements,z=b.lineContent,R=b.len,P=b.isOverflowing,A=b.overflowingCharCount,T=b.parts,O=b.fauxIndentLength,B=b.tabSize,W=b.startVisibleColumn,j=b.containsRTL,F=b.spaceWidth,U=b.renderSpaceCharCode,Q=b.renderWhitespace,se=b.renderControlCharacters,he=new g(R+1,T.length);let ie=!1,ue=0,J=W,x=0,G=0,te=0;j?y.appendString('<span dir="ltr">'):y.appendString("<span>");for(let Z=0,ae=T.length;Z<ae;Z++){const de=T[Z],K=de.endIndex,Y=de.type,ne=de.containsRTL,V=Q!==0&&de.isWhitespace(),H=V&&!k&&(Y==="mtkw"||!M),$=ue===K&&de.isPseudoAfter();if(x=0,y.appendString("<span "),ne&&y.appendString('style="unicode-bidi:isolate" '),y.appendString('class="'),y.appendString(H?"mtkz":Y),y.appendASCIICharCode(34),V){let oe=0;{let re=ue,X=J;for(;re<K;re++){const me=(z.charCodeAt(re)===9?B-X%B:1)|0;oe+=me,re>=O&&(X+=me)}}for(H&&(y.appendString(' style="width:'),y.appendString(String(F*oe)),y.appendString('px"')),y.appendASCIICharCode(62);ue<K;ue++){he.setColumnInfo(ue+1,Z-te,x,G),te=0;const re=z.charCodeAt(ue);let X,le;if(re===9){X=B-J%B|0,le=X,!D||le>1?y.appendCharCode(8594):y.appendCharCode(65515);for(let me=2;me<=le;me++)y.appendCharCode(160)}else X=2,le=1,y.appendCharCode(U),y.appendCharCode(8204);x+=X,G+=le,ue>=O&&(J+=le)}}else for(y.appendASCIICharCode(62);ue<K;ue++){he.setColumnInfo(ue+1,Z-te,x,G),te=0;const oe=z.charCodeAt(ue);let re=1,X=1;switch(oe){case 9:re=B-J%B,X=re;for(let le=1;le<=re;le++)y.appendCharCode(160);break;case 32:y.appendCharCode(160);break;case 60:y.appendString("<");break;case 62:y.appendString(">");break;case 38:y.appendString("&");break;case 0:se?y.appendCharCode(9216):y.appendString("�");break;case 65279:case 8232:case 8233:case 133:y.appendCharCode(65533);break;default:N.isFullWidthCharacter(oe)&&X++,se&&oe<32?y.appendCharCode(9216+oe):se&&oe===127?y.appendCharCode(9249):se&&l(oe)?(y.appendString("[U+"),y.appendString(m(oe)),y.appendString("]"),re=8,X=re):y.appendCharCode(oe)}x+=re,G+=X,ue>=O&&(J+=X)}$?te++:te=0,ue>=R&&!ie&&de.isPseudoAfter()&&(ie=!0,he.setColumnInfo(ue+1,Z,x,G)),y.appendString("</span>")}return ie||he.setColumnInfo(R+1,T.length-1,x,G),P&&(y.appendString('<span class="mtkoverflow">'),y.appendString(C.localize(0,null,p(A))),y.appendString("</span>")),y.appendString("</span>"),new i(he,j,M)}function m(b){return b.toString(16).toUpperCase().padStart(4,"0")}function p(b){return b<1024?C.localize(1,null,b):b<1024*1024?`${(b/1024).toFixed(1)} KB`:`${(b/1024/1024).toFixed(1)} MB`}}),define(_[578],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/anchorSelect/browser/anchorSelect",e)}),define(_[579],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/bracketMatching/browser/bracketMatching",e)}),define(_[580],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/caretOperations/browser/caretOperations",e)}),define(_[581],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/caretOperations/browser/transpose",e)}),define(_[582],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/clipboard/browser/clipboard",e)}),define(_[583],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/codeAction/browser/codeAction",e)}),define(_[584],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/codeAction/browser/codeActionCommands",e)}),define(_[585],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/codeAction/browser/codeActionContributions",e)}),define(_[586],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/codeAction/browser/codeActionMenu",e)}),define(_[587],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/codeAction/browser/codeActionUi",e)}),define(_[588],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/codeAction/browser/lightBulbWidget",e)}),define(_[589],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/codelens/browser/codelensController",e)}),define(_[590],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/colorPicker/browser/colorPickerWidget",e)}),define(_[591],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/comment/browser/comment",e)}),define(_[592],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/contextmenu/browser/contextmenu",e)}),define(_[593],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/copyPaste/browser/copyPasteContribution",e)}),define(_[594],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/copyPaste/browser/copyPasteController",e)}),define(_[595],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/cursorUndo/browser/cursorUndo",e)}),define(_[596],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/dropIntoEditor/browser/dropIntoEditorContribution",e)}),define(_[597],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/editorState/browser/keybindingCancellation",e)}),define(_[598],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/find/browser/findController",e)}),define(_[599],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/find/browser/findWidget",e)}),define(_[600],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/folding/browser/folding",e)}),define(_[601],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/folding/browser/foldingDecorations",e)}),define(_[602],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/fontZoom/browser/fontZoom",e)}),define(_[603],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/format/browser/format",e)}),define(_[604],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/format/browser/formatActions",e)}),define(_[605],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/gotoError/browser/gotoError",e)}),define(_[606],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/gotoError/browser/gotoErrorWidget",e)}),define(_[607],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/gotoSymbol/browser/goToCommands",e)}),define(_[608],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition",e)}),define(_[609],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/gotoSymbol/browser/peek/referencesController",e)}),define(_[610],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/gotoSymbol/browser/peek/referencesTree",e)}),define(_[611],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget",e)}),define(_[612],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/gotoSymbol/browser/referencesModel",e)}),define(_[142],ee([1,0,13,6,150,2,55,44,9,4,612]),function(q,e,C,N,E,I,L,S,v,f,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ReferencesModel=e.FileReferences=e.FilePreview=e.OneReference=void 0;class i{constructor(c,d,s,l){this.isProviderFirst=c,this.parent=d,this.link=s,this.d=l,this.id=E.defaultGenerator.nextId()}get uri(){return this.link.uri}get range(){var c,d;return(d=(c=this.c)!==null&&c!==void 0?c:this.link.targetSelectionRange)!==null&&d!==void 0?d:this.link.range}set range(c){this.c=c,this.d(this)}get ariaMessage(){var c;const d=(c=this.parent.getPreview(this))===null||c===void 0?void 0:c.preview(this.range);return d?(0,g.localize)(1,null,(0,S.basename)(this.uri),this.range.startLineNumber,this.range.startColumn,d.value):(0,g.localize)(0,null,(0,S.basename)(this.uri),this.range.startLineNumber,this.range.startColumn)}}e.OneReference=i;class t{constructor(c){this.c=c}dispose(){this.c.dispose()}preview(c,d=8){const s=this.c.object.textEditorModel;if(!s)return;const{startLineNumber:l,startColumn:o,endLineNumber:u,endColumn:h}=c,w=s.getWordUntilPosition({lineNumber:l,column:o-d}),m=new f.Range(l,w.startColumn,l,o),p=new f.Range(u,h,u,1073741824),b=s.getValueInRange(m).replace(/^\s+/,""),y=s.getValueInRange(c),k=s.getValueInRange(p).replace(/\s+$/,"");return{value:b+y+k,highlight:{start:b.length,end:b.length+y.length}}}}e.FilePreview=t;class n{constructor(c,d){this.parent=c,this.uri=d,this.children=[],this.c=new L.ResourceMap}dispose(){(0,I.dispose)(this.c.values()),this.c.clear()}getPreview(c){return this.c.get(c.uri)}get ariaMessage(){const c=this.children.length;return c===1?(0,g.localize)(2,null,(0,S.basename)(this.uri),this.uri.fsPath):(0,g.localize)(3,null,c,(0,S.basename)(this.uri),this.uri.fsPath)}resolve(c){return ye(this,void 0,void 0,function*(){if(this.c.size!==0)return this;for(const d of this.children)if(!this.c.has(d.uri))try{const s=yield c.createModelReference(d.uri);this.c.set(d.uri,new t(s))}catch(s){(0,C.onUnexpectedError)(s)}return this})}}e.FileReferences=n;class a{constructor(c,d){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new N.Emitter,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this.c=c,this.d=d;const[s]=c;c.sort(a.e);let l;for(const o of c)if((!l||!S.extUri.isEqual(l.uri,o.uri,!0))&&(l=new n(this,o.uri),this.groups.push(l)),l.children.length===0||a.e(o,l.children[l.children.length-1])!==0){const u=new i(s===o,l,o,h=>this._onDidChangeReferenceRange.fire(h));this.references.push(u),l.children.push(u)}}dispose(){(0,I.dispose)(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new a(this.c,this.d)}get title(){return this.d}get isEmpty(){return this.groups.length===0}get ariaMessage(){return this.isEmpty?(0,g.localize)(4,null):this.references.length===1?(0,g.localize)(5,null,this.references[0].uri.fsPath):this.groups.length===1?(0,g.localize)(6,null,this.references.length,this.groups[0].uri.fsPath):(0,g.localize)(7,null,this.references.length,this.groups.length)}nextOrPreviousReference(c,d){const{parent:s}=c;let l=s.children.indexOf(c);const o=s.children.length,u=s.parent.groups.length;return u===1||d&&l+1<o||!d&&l>0?(d?l=(l+1)%o:l=(l+o-1)%o,s.children[l]):(l=s.parent.groups.indexOf(s),d?(l=(l+1)%u,s.parent.groups[l].children[0]):(l=(l+u-1)%u,s.parent.groups[l].children[s.parent.groups[l].children.length-1]))}nearestReference(c,d){const s=this.references.map((l,o)=>({idx:o,prefixLen:v.commonPrefixLength(l.uri.toString(),c.toString()),offsetDist:Math.abs(l.range.startLineNumber-d.lineNumber)*100+Math.abs(l.range.startColumn-d.column)})).sort((l,o)=>l.prefixLen>o.prefixLen?-1:l.prefixLen<o.prefixLen?1:l.offsetDist<o.offsetDist?-1:l.offsetDist>o.offsetDist?1:0)[0];if(s)return this.references[s.idx]}referenceAt(c,d){for(const s of this.references)if(s.uri.toString()===c.toString()&&f.Range.containsPosition(s.range,d))return s}firstReference(){for(const c of this.references)if(c.isProviderFirst)return c;return this.references[0]}static e(c,d){return S.extUri.compare(c.uri,d.uri)||f.Range.compareRangesUsingStarts(c.range,d.range)}}e.ReferencesModel=a}),define(_[613],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/gotoSymbol/browser/symbolNavigation",e)}),define(_[614],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/hover/browser/hover",e)}),define(_[615],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/hover/browser/markdownHoverParticipant",e)}),define(_[616],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/hover/browser/markerHoverParticipant",e)}),define(_[617],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace",e)}),define(_[618],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/indentation/browser/indentation",e)}),define(_[619],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/inlayHints/browser/inlayHintsHover",e)}),define(_[620],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/inlineCompletions/browser/ghostTextController",e)}),define(_[621],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/inlineCompletions/browser/ghostTextHoverParticipant",e)}),define(_[622],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/inlineCompletions/browser/inlineSuggestionHintsWidget",e)}),define(_[623],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/lineSelection/browser/lineSelection",e)}),define(_[624],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/linesOperations/browser/linesOperations",e)}),define(_[625],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/linkedEditing/browser/linkedEditing",e)}),define(_[626],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/links/browser/links",e)}),define(_[627],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/message/browser/messageController",e)}),define(_[628],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/multicursor/browser/multicursor",e)}),define(_[629],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/parameterHints/browser/parameterHints",e)}),define(_[630],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/parameterHints/browser/parameterHintsWidget",e)}),define(_[631],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/peekView/browser/peekView",e)}),define(_[632],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess",e)}),define(_[633],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess",e)}),define(_[634],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/readOnlyMessage/browser/contribution",e)}),define(_[635],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/rename/browser/rename",e)}),define(_[636],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/rename/browser/renameInputField",e)}),define(_[637],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/smartSelect/browser/smartSelect",e)}),define(_[638],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/snippet/browser/snippetController2",e)}),define(_[639],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/snippet/browser/snippetVariables",e)}),define(_[640],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/stickyScroll/browser/stickyScrollActions",e)}),define(_[641],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/suggest/browser/suggest",e)}),define(_[642],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/suggest/browser/suggestController",e)}),define(_[643],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/suggest/browser/suggestWidget",e)}),define(_[644],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/suggest/browser/suggestWidgetDetails",e)}),define(_[645],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/suggest/browser/suggestWidgetRenderer",e)}),define(_[646],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/suggest/browser/suggestWidgetStatus",e)}),define(_[647],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/symbolIcons/browser/symbolIcons",e)}),define(_[648],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode",e)}),define(_[649],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/tokenization/browser/tokenization",e)}),define(_[650],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter",e)}),define(_[651],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators",e)}),define(_[652],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/wordHighlighter/browser/highlightDecorations",e)}),define(_[653],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/wordHighlighter/browser/wordHighlighter",e)}),define(_[654],ee([3,5]),function(q,e){return q.create("vs/editor/contrib/wordOperations/browser/wordOperations",e)}),define(_[655],ee([3,5]),function(q,e){return q.create("vs/platform/action/common/actionCommonCategories",e)}),define(_[656],ee([3,5]),function(q,e){return q.create("vs/platform/actionWidget/browser/actionList",e)}),define(_[657],ee([3,5]),function(q,e){return q.create("vs/platform/actionWidget/browser/actionWidget",e)}),define(_[658],ee([3,5]),function(q,e){return q.create("vs/platform/actions/browser/menuEntryActionViewItem",e)}),define(_[659],ee([3,5]),function(q,e){return q.create("vs/platform/actions/browser/toolbar",e)}),define(_[660],ee([3,5]),function(q,e){return q.create("vs/platform/actions/common/menuService",e)}),define(_[661],ee([3,5]),function(q,e){return q.create("vs/platform/audioCues/browser/audioCueService",e)}),define(_[662],ee([3,5]),function(q,e){return q.create("vs/platform/configuration/common/configurationRegistry",e)}),define(_[663],ee([3,5]),function(q,e){return q.create("vs/platform/contextkey/browser/contextKeyService",e)}),define(_[664],ee([3,5]),function(q,e){return q.create("vs/platform/contextkey/common/contextkeys",e)}),define(_[665],ee([3,5]),function(q,e){return q.create("vs/platform/history/browser/contextScopedHistoryWidget",e)}),define(_[666],ee([3,5]),function(q,e){return q.create("vs/platform/keybinding/common/abstractKeybindingService",e)}),define(_[667],ee([3,5]),function(q,e){return q.create("vs/platform/list/browser/listService",e)}),define(_[668],ee([3,5]),function(q,e){return q.create("vs/platform/markers/common/markers",e)}),define(_[669],ee([3,5]),function(q,e){return q.create("vs/platform/quickinput/browser/commandsQuickAccess",e)}),define(_[670],ee([3,5]),function(q,e){return q.create("vs/platform/quickinput/browser/helpQuickAccess",e)}),define(_[671],ee([3,5]),function(q,e){return q.create("vs/platform/quickinput/browser/quickInput",e)}),define(_[672],ee([3,5]),function(q,e){return q.create("vs/platform/quickinput/browser/quickInputList",e)}),define(_[673],ee([3,5]),function(q,e){return q.create("vs/platform/quickinput/browser/quickInputUtils",e)}),define(_[674],ee([3,5]),function(q,e){return q.create("vs/platform/theme/common/colorRegistry",e)}),define(_[675],ee([3,5]),function(q,e){return q.create("vs/platform/theme/common/iconRegistry",e)}),define(_[676],ee([3,5]),function(q,e){return q.create("vs/platform/undoRedo/common/undoRedoService",e)}),define(_[677],ee([3,5]),function(q,e){return q.create("vs/platform/workspace/common/workspace",e)}),define(_[678],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isICommandActionToggleInfo=void 0;function C(N){return N?N.condition!==void 0:!1}e.isICommandActionToggleInfo=C}),define(_[679],ee([1,0,655]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Categories=void 0,e.Categories=Object.freeze({View:{value:(0,C.localize)(0,null),original:"View"},Help:{value:(0,C.localize)(1,null),original:"Help"},Test:{value:(0,C.localize)(2,null),original:"Test"},Preferences:{value:(0,C.localize)(3,null),original:"Preferences"},Developer:{value:(0,C.localize)(4,null),original:"Developer"}})}),define(_[680],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorOpenSource=void 0;var C;(function(N){N[N.API=0]="API",N[N.USER=1]="USER"})(C=e.EditorOpenSource||(e.EditorOpenSource={}))}),define(_[681],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionIdentifier=void 0;class C{constructor(E){this.value=E,this.a=E.toLowerCase()}static toKey(E){return typeof E=="string"?E.toLowerCase():E.a}}e.ExtensionIdentifier=C}),define(_[296],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FileKind=void 0;var C;(function(N){N[N.FILE=0]="FILE",N[N.FOLDER=1]="FOLDER",N[N.ROOT_FOLDER=2]="ROOT_FOLDER"})(C=e.FileKind||(e.FileKind={}))}),define(_[682],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.showHistoryKeybindingHint=void 0;function C(N){var E,I;return((E=N.lookupKeybinding("history.showPrevious"))===null||E===void 0?void 0:E.getElectronAccelerator())==="Up"&&((I=N.lookupKeybinding("history.showNext"))===null||I===void 0?void 0:I.getElectronAccelerator())==="Down"}e.showHistoryKeybindingHint=C}),define(_[218],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SyncDescriptor=void 0;class C{constructor(E,I=[],L=!1){this.ctor=E,this.staticArguments=I,this.supportsDelayedInstantiation=L}}e.SyncDescriptor=C}),define(_[49],ee([1,0,218]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSingletonServiceDescriptors=e.registerSingleton=void 0;const N=[];function E(L,S,v){S instanceof C.SyncDescriptor||(S=new C.SyncDescriptor(S,[],Boolean(v))),N.push([L,S])}e.registerSingleton=E;function I(){return N}e.getSingletonServiceDescriptors=I}),define(_[683],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Graph=e.Node=void 0;class C{constructor(I,L){this.key=I,this.data=L,this.incoming=new Map,this.outgoing=new Map}}e.Node=C;class N{constructor(I){this.b=I,this.a=new Map}roots(){const I=[];for(const L of this.a.values())L.outgoing.size===0&&I.push(L);return I}insertEdge(I,L){const S=this.lookupOrInsertNode(I),v=this.lookupOrInsertNode(L);S.outgoing.set(v.key,v),v.incoming.set(S.key,S)}removeNode(I){const L=this.b(I);this.a.delete(L);for(const S of this.a.values())S.outgoing.delete(L),S.incoming.delete(L)}lookupOrInsertNode(I){const L=this.b(I);let S=this.a.get(L);return S||(S=new C(L,I),this.a.set(L,S)),S}isEmpty(){return this.a.size===0}toString(){const I=[];for(const[L,S]of this.a)I.push(`${L}
|
||
(-> incoming)[${[...S.incoming.keys()].join(", ")}]
|
||
(outgoing ->)[${[...S.outgoing.keys()].join(",")}]
|
||
`);return I.join(`
|
||
`)}findCycleSlow(){for(const[I,L]of this.a){const S=new Set([I]),v=this.c(L,S);if(v)return v}}c(I,L){for(const[S,v]of I.outgoing){if(L.has(S))return[...L,S].join(" -> ");L.add(S);const f=this.c(v,L);if(f)return f;L.delete(S)}}}e.Graph=N}),define(_[8],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createDecorator=e.IInstantiationService=e._util=void 0;var C;(function(I){I.serviceIds=new Map,I.DI_TARGET="$di$target",I.DI_DEPENDENCIES="$di$dependencies";function L(S){return S[I.DI_DEPENDENCIES]||[]}I.getServiceDependencies=L})(C=e._util||(e._util={})),e.IInstantiationService=E("instantiationService");function N(I,L,S){L[C.DI_TARGET]===L?L[C.DI_DEPENDENCIES].push({id:I,index:S}):(L[C.DI_DEPENDENCIES]=[{id:I,index:S}],L[C.DI_TARGET]=L)}function E(I){if(C.serviceIds.has(I))return C.serviceIds.get(I);const L=function(S,v,f){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");N(L,S,f)};return L.toString=()=>I,C.serviceIds.set(I,L),L}e.createDecorator=E}),define(_[143],ee([1,0,8,21,18]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ResourceFileEdit=e.ResourceTextEdit=e.ResourceEdit=e.IBulkEditService=void 0,e.IBulkEditService=(0,C.createDecorator)("IWorkspaceEditService");class I{constructor(f){this.metadata=f}static convert(f){return f.edits.map(g=>{if(L.is(g))return L.lift(g);if(S.is(g))return S.lift(g);throw new Error("Unsupported edit")})}}e.ResourceEdit=I;class L extends I{static is(f){return f instanceof L?!0:(0,E.isObject)(f)&&N.URI.isUri(f.resource)&&(0,E.isObject)(f.textEdit)}static lift(f){return f instanceof L?f:new L(f.resource,f.textEdit,f.versionId,f.metadata)}constructor(f,g,i=void 0,t){super(t),this.resource=f,this.textEdit=g,this.versionId=i}}e.ResourceTextEdit=L;class S extends I{static is(f){return f instanceof S?!0:(0,E.isObject)(f)&&(Boolean(f.newResource)||Boolean(f.oldResource))}static lift(f){return f instanceof S?f:new S(f.oldResource,f.newResource,f.options,f.metadata)}constructor(f,g,i={},t){super(t),this.oldResource=f,this.newResource=g,this.options=i}}e.ResourceFileEdit=S}),define(_[30],ee([1,0,8]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ICodeEditorService=void 0,e.ICodeEditorService=(0,C.createDecorator)("codeEditorService")}),define(_[37],ee([1,0,8]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ILanguageService=void 0,e.ILanguageService=(0,C.createDecorator)("languageService")}),define(_[108],ee([1,0,8]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IEditorWorkerService=void 0,e.IEditorWorkerService=(0,C.createDecorator)("editorWorkerService")});var ge=this&&this.__param||function(q,e){return function(C,N){e(C,N,q)}};define(_[684],ee([1,0,6,108]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WorkerBasedDocumentDiffProvider=void 0;let E=class{constructor(L,S){this.d=S,this.a=new C.Emitter,this.onDidChange=this.a.event,this.b="smart",this.c=void 0,this.setOptions(L)}dispose(){var L;(L=this.c)===null||L===void 0||L.dispose()}computeDiff(L,S,v){return ye(this,void 0,void 0,function*(){if(typeof this.b!="string")return this.b.computeDiff(L,S,v);const f=yield this.d.computeDiff(L.uri,S.uri,v,this.b);if(!f)throw new Error("no diff result available");return f})}setOptions(L){var S;let v=!1;L.diffAlgorithm&&this.b!==L.diffAlgorithm&&((S=this.c)===null||S===void 0||S.dispose(),this.c=void 0,this.b=L.diffAlgorithm,typeof L.diffAlgorithm!="string"&&(this.c=L.diffAlgorithm.onDidChange(()=>this.a.fire())),v=!0),v&&this.a.fire()}};E=Ne([ge(1,N.IEditorWorkerService)],E),e.WorkerBasedDocumentDiffProvider=E}),define(_[19],ee([1,0,8]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ILanguageFeaturesService=void 0,e.ILanguageFeaturesService=(0,C.createDecorator)("ILanguageFeaturesService")}),define(_[685],ee([1,0,547,19,49]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LanguageFeaturesService=void 0;class I{constructor(){this.referenceProvider=new C.LanguageFeatureRegistry(this.b.bind(this)),this.renameProvider=new C.LanguageFeatureRegistry(this.b.bind(this)),this.codeActionProvider=new C.LanguageFeatureRegistry(this.b.bind(this)),this.definitionProvider=new C.LanguageFeatureRegistry(this.b.bind(this)),this.typeDefinitionProvider=new C.LanguageFeatureRegistry(this.b.bind(this)),this.declarationProvider=new C.LanguageFeatureRegistry(this.b.bind(this)),this.implementationProvider=new C.LanguageFeatureRegistry(this.b.bind(this)),this.documentSymbolProvider=new C.LanguageFeatureRegistry(this.b.bind(this)),this.inlayHintsProvider=new C.LanguageFeatureRegistry(this.b.bind(this)),this.colorProvider=new C.LanguageFeatureRegistry(this.b.bind(this)),this.codeLensProvider=new C.LanguageFeatureRegistry(this.b.bind(this)),this.documentFormattingEditProvider=new C.LanguageFeatureRegistry(this.b.bind(this)),this.documentRangeFormattingEditProvider=new C.LanguageFeatureRegistry(this.b.bind(this)),this.onTypeFormattingEditProvider=new C.LanguageFeatureRegistry(this.b.bind(this)),this.signatureHelpProvider=new C.LanguageFeatureRegistry(this.b.bind(this)),this.hoverProvider=new C.LanguageFeatureRegistry(this.b.bind(this)),this.documentHighlightProvider=new C.LanguageFeatureRegistry(this.b.bind(this)),this.selectionRangeProvider=new C.LanguageFeatureRegistry(this.b.bind(this)),this.foldingRangeProvider=new C.LanguageFeatureRegistry(this.b.bind(this)),this.linkProvider=new C.LanguageFeatureRegistry(this.b.bind(this)),this.inlineCompletionsProvider=new C.LanguageFeatureRegistry(this.b.bind(this)),this.completionProvider=new C.LanguageFeatureRegistry(this.b.bind(this)),this.linkedEditingRangeProvider=new C.LanguageFeatureRegistry(this.b.bind(this)),this.documentRangeSemanticTokensProvider=new C.LanguageFeatureRegistry(this.b.bind(this)),this.documentSemanticTokensProvider=new C.LanguageFeatureRegistry(this.b.bind(this)),this.documentOnDropEditProvider=new C.LanguageFeatureRegistry(this.b.bind(this)),this.documentPasteEditProvider=new C.LanguageFeatureRegistry(this.b.bind(this))}b(S){var v;return(v=this.a)===null||v===void 0?void 0:v.call(this,S)}}e.LanguageFeaturesService=I,(0,E.registerSingleton)(N.ILanguageFeaturesService,I,1)}),define(_[219],ee([1,0,8]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IMarkerDecorationsService=void 0,e.IMarkerDecorationsService=(0,C.createDecorator)("markerDecorationsService")}),define(_[53],ee([1,0,8]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IModelService=void 0,e.IModelService=(0,C.createDecorator)("modelService")}),define(_[61],ee([1,0,8]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ITextModelService=void 0,e.ITextModelService=(0,C.createDecorator)("textModelService")}),define(_[220],ee([1,0,8]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ISemanticTokensStylingService=void 0,e.ISemanticTokensStylingService=(0,C.createDecorator)("semanticTokensStylingService")}),define(_[172],ee([1,0,8]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ITextResourcePropertiesService=e.ITextResourceConfigurationService=void 0,e.ITextResourceConfigurationService=(0,C.createDecorator)("textResourceConfigurationService"),e.ITextResourcePropertiesService=(0,C.createDecorator)("textResourcePropertiesService")}),define(_[686],ee([1,0,7,2,9,73,40,87,12,4,95,47,37,135,107,171,8,407]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c){"use strict";var d;Object.defineProperty(e,"__esModule",{value:!0}),e.GhostTextWidget=void 0;const s=(d=window.trustedTypes)===null||d===void 0?void 0:d.createPolicy("editorGhostText",{createHTML:p=>p});let l=class extends N.Disposable{constructor(b,y,k,D){super(),this.h=b,this.j=y,this.k=k,this.l=D,this.a=!1,this.b=this.q(this.k.createInstance(u,this.h)),this.c=this.q(new h(this.h,this.l.languageIdCodec)),this.g=void 0,this.m=this.q(new o(this.h)),this.q(this.h.onDidChangeConfiguration(M=>{(M.hasChanged(30)||M.hasChanged(111)||M.hasChanged(93)||M.hasChanged(88)||M.hasChanged(48)||M.hasChanged(47)||M.hasChanged(63))&&this.n()})),this.q((0,N.toDisposable)(()=>{var M;this.a=!0,this.n(),(M=this.g)===null||M===void 0||M.dispose(),this.g=void 0})),this.q(y.onDidChange(()=>{this.n()})),this.n()}shouldShowHoverAtViewZone(b){return this.c.viewZoneId===b}n(){var b;const y=this.j.ghostText;if(!this.h.hasModel()||!y||this.a){this.b.clear(),this.c.clear(),this.m.clear();return}const k=new Array,D=new Array;function M(A,T){if(D.length>0){const O=D[D.length-1];T&&O.decorations.push(new n.LineDecoration(O.content.length+1,O.content.length+1+A[0].length,T,0)),O.content+=A[0],A=A.slice(1)}for(const O of A)D.push({content:O,decorations:T?[new n.LineDecoration(1,O.length+1,T,0)]:[]})}y instanceof r.GhostTextReplacement?this.m.setDecorations([{range:new f.Range(y.lineNumber,y.columnStart,y.lineNumber,y.columnStart+y.length),options:{inlineClassName:"inline-completion-text-to-replace",description:"GhostTextReplacement"}}]):this.m.setDecorations([]);const z=this.h.getModel().getLineContent(y.lineNumber);let R,P=0;for(const A of y.parts){let T=A.lines;R===void 0?(k.push({column:A.column,text:T[0],preview:A.preview}),T=T.slice(1)):M([z.substring(P,A.column-1)],void 0),T.length>0&&(M(T,"ghost-text"),R===void 0&&A.column<=z.length&&(R=A.column)),P=A.column-1}R!==void 0&&M([z.substring(P)],void 0),this.b.setParts(y.lineNumber,k,R!==void 0?{column:R,length:z.length+1-R}:void 0),this.c.updateLines(y.lineNumber,D,y.additionalReservedLineCount),0<0?this.g=this.r(new v.Position(y.lineNumber,this.h.getModel().getLineMaxColumn(y.lineNumber)),"",0):((b=this.g)===null||b===void 0||b.dispose(),this.g=void 0)}r(b,y,k){const D=this.h.getOption(47),M=document.createElement("div");M.className="suggest-preview-additional-widget",(0,I.applyFontInfo)(M,D);const z=document.createElement("span");z.className="content-spacer",z.append(y),M.append(z);const R=document.createElement("span");R.className="content-newline suggest-preview-text",R.append("\u23CE "),M.append(R);const P=new N.DisposableStore,A=document.createElement("div");return A.className="button suggest-preview-text",A.append(`+${k} lines\u2026`),P.add(C.addStandardDisposableListener(A,"mousedown",T=>{var O;(O=this.j)===null||O===void 0||O.setExpanded(!0),T.preventDefault(),this.h.focus()})),M.append(A),new m(this.h,b,M,P)}};l=Ne([ge(2,c.IInstantiationService),ge(3,t.ILanguageService)],l),e.GhostTextWidget=l;class o{constructor(b){this.b=b,this.a=[]}setDecorations(b){this.b.changeDecorations(y=>{this.a=y.deltaDecorations(this.a,b)})}clear(){this.setDecorations([])}dispose(){this.clear()}}class u{constructor(b){this.b=b,this.a=[]}dispose(){this.clear()}clear(){this.b.changeDecorations(b=>{this.a=b.deltaDecorations(this.a,[])})}setParts(b,y,k){if(!this.b.getModel())return;const M=new Array;k&&M.push({range:f.Range.fromPositions(new v.Position(b,k.column),new v.Position(b,k.column+k.length)),options:{inlineClassName:"ghost-text-hidden",description:"ghost-text-hidden"}}),this.b.changeDecorations(z=>{this.a=z.deltaDecorations(this.a,y.map(R=>({range:f.Range.fromPositions(new v.Position(b,R.column)),options:{description:"ghost-text",after:{content:R.text,inlineClassName:R.preview?"ghost-text-decoration-preview":"ghost-text-decoration",cursorStops:i.InjectedTextCursorStops.Left},showIfCollapsed:!0}})).concat(M))})}}class h{get viewZoneId(){return this.a}constructor(b,y){this.b=b,this.c=y,this.a=void 0}dispose(){this.clear()}clear(){this.b.changeViewZones(b=>{this.a&&(b.removeZone(this.a),this.a=void 0)})}updateLines(b,y,k){const D=this.b.getModel();if(!D)return;const{tabSize:M}=D.getOptions();this.b.changeViewZones(z=>{this.a&&(z.removeZone(this.a),this.a=void 0);const R=Math.max(y.length,k);if(R>0){const P=document.createElement("div");w(P,M,y,this.b.getOptions(),this.c),this.a=z.addZone({afterLineNumber:b,heightInLines:R,domNode:P,afterColumnAffinity:1})}})}}function w(p,b,y,k,D){const M=k.get(30),z=k.get(111),R="none",P=k.get(88),A=k.get(48),T=k.get(47),O=k.get(63),B=new g.StringBuilder(1e4);B.appendString('<div class="suggest-preview-text">');for(let F=0,U=y.length;F<U;F++){const Q=y[F],se=Q.content;B.appendString('<div class="view-line'),B.appendString('" style="top:'),B.appendString(String(F*O)),B.appendString('px;width:1000000px;">');const he=E.isBasicASCII(se),ie=E.containsRTL(se),ue=S.LineTokens.createEmpty(se,D);(0,a.renderViewLine)(new a.RenderLineInput(T.isMonospace&&!M,T.canUseHalfwidthRightwardsArrow,se,!1,he,ie,0,ue,Q.decorations,b,0,T.spaceWidth,T.middotWidth,T.wsmiddotWidth,z,R,P,A!==L.EditorFontLigatures.OFF,null),B),B.appendString("</div>")}B.appendString("</div>"),(0,I.applyFontInfo)(p,T);const W=B.build(),j=s?s.createHTML(W):W;p.innerHTML=j}class m extends N.Disposable{constructor(b,y,k,D){super(),this.a=b,this.b=y,this.c=k,this.allowEditorOverflow=!1,this.suppressMouseDown=!1,this.q(D),this.q((0,N.toDisposable)(()=>{this.a.removeContentWidget(this)})),this.a.addContentWidget(this)}getId(){return"editor.widget.viewMoreLinesWidget"}getDomNode(){return this.c}getPosition(){return{position:this.b,preference:[0]}}}}),define(_[119],ee([1,0,8]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IStandaloneThemeService=void 0,e.IStandaloneThemeService=(0,C.createDecorator)("themeService")}),define(_[221],ee([1,0,8,661]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AudioCue=e.Sound=e.IAudioCueService=void 0,e.IAudioCueService=(0,C.createDecorator)("audioCue");class E{static a(S){return new E(S.fileName)}constructor(S){this.fileName=S}}E.error=E.a({fileName:"error.mp3"}),E.warning=E.a({fileName:"warning.mp3"}),E.foldedArea=E.a({fileName:"foldedAreas.mp3"}),E.break=E.a({fileName:"break.mp3"}),E.quickFixes=E.a({fileName:"quickFixes.mp3"}),E.taskCompleted=E.a({fileName:"taskCompleted.mp3"}),E.taskFailed=E.a({fileName:"taskFailed.mp3"}),E.terminalBell=E.a({fileName:"terminalBell.mp3"}),E.diffLineInserted=E.a({fileName:"diffLineInserted.mp3"}),E.diffLineDeleted=E.a({fileName:"diffLineDeleted.mp3"}),E.diffLineModified=E.a({fileName:"diffLineModified.mp3"}),e.Sound=E;class I{static b(S){const v=new I(S.sound,S.name,S.settingsKey);return I.a.add(v),v}constructor(S,v,f){this.sound=S,this.name=v,this.settingsKey=f}}I.a=new Set,I.error=I.b({name:(0,N.localize)(0,null),sound:E.error,settingsKey:"audioCues.lineHasError"}),I.warning=I.b({name:(0,N.localize)(1,null),sound:E.warning,settingsKey:"audioCues.lineHasWarning"}),I.foldedArea=I.b({name:(0,N.localize)(2,null),sound:E.foldedArea,settingsKey:"audioCues.lineHasFoldedArea"}),I.break=I.b({name:(0,N.localize)(3,null),sound:E.break,settingsKey:"audioCues.lineHasBreakpoint"}),I.inlineSuggestion=I.b({name:(0,N.localize)(4,null),sound:E.quickFixes,settingsKey:"audioCues.lineHasInlineSuggestion"}),I.terminalQuickFix=I.b({name:(0,N.localize)(5,null),sound:E.quickFixes,settingsKey:"audioCues.terminalQuickFix"}),I.onDebugBreak=I.b({name:(0,N.localize)(6,null),sound:E.break,settingsKey:"audioCues.onDebugBreak"}),I.noInlayHints=I.b({name:(0,N.localize)(7,null),sound:E.error,settingsKey:"audioCues.noInlayHints"}),I.taskCompleted=I.b({name:(0,N.localize)(8,null),sound:E.taskCompleted,settingsKey:"audioCues.taskCompleted"}),I.taskFailed=I.b({name:(0,N.localize)(9,null),sound:E.taskFailed,settingsKey:"audioCues.taskFailed"}),I.terminalCommandFailed=I.b({name:(0,N.localize)(10,null),sound:E.taskFailed,settingsKey:"audioCues.terminalCommandFailed"}),I.terminalBell=I.b({name:(0,N.localize)(11,null),sound:E.terminalBell,settingsKey:"audioCues.terminalBell"}),I.notebookCellCompleted=I.b({name:(0,N.localize)(12,null),sound:E.taskCompleted,settingsKey:"audioCues.notebookCellCompleted"}),I.notebookCellFailed=I.b({name:(0,N.localize)(13,null),sound:E.taskFailed,settingsKey:"audioCues.notebookCellFailed"}),I.diffLineInserted=I.b({name:(0,N.localize)(14,null),sound:E.diffLineInserted,settingsKey:"audioCues.diffLineInserted"}),I.diffLineDeleted=I.b({name:(0,N.localize)(15,null),sound:E.diffLineDeleted,settingsKey:"audioCues.diffLineDeleted"}),I.diffLineModified=I.b({name:(0,N.localize)(16,null),sound:E.diffLineModified,settingsKey:"audioCues.diffLineModified"}),e.AudioCue=I}),define(_[96],ee([1,0,8]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IClipboardService=void 0,e.IClipboardService=(0,C.createDecorator)("clipboardService")}),define(_[25],ee([1,0,6,54,2,59,18,8]),function(q,e,C,N,E,I,L,S){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CommandsRegistry=e.ICommandService=void 0,e.ICommandService=(0,S.createDecorator)("commandService"),e.CommandsRegistry=new class{constructor(){this.a=new Map,this.b=new C.Emitter,this.onDidRegisterCommand=this.b.event}registerCommand(v,f){if(!v)throw new Error("invalid command");if(typeof v=="string"){if(!f)throw new Error("invalid command");return this.registerCommand({id:v,handler:f})}if(v.description){const a=[];for(const c of v.description.args)a.push(c.constraint);const r=v.handler;v.handler=function(c,...d){return(0,L.validateConstraints)(d,a),r(c,...d)}}const{id:g}=v;let i=this.a.get(g);i||(i=new I.LinkedList,this.a.set(g,i));const t=i.unshift(v),n=(0,E.toDisposable)(()=>{t();const a=this.a.get(g);a?.isEmpty()&&this.a.delete(g)});return this.b.fire(g),n}registerCommandAlias(v,f){return e.CommandsRegistry.registerCommand(v,(g,...i)=>g.get(e.ICommandService).executeCommand(f,...i))}getCommand(v){const f=this.a.get(v);if(!(!f||f.isEmpty()))return N.Iterable.first(f)}getCommands(){const v=new Map;for(const f of this.a.keys()){const g=this.getCommand(f);g&&v.set(f,g)}return v}},e.CommandsRegistry.registerCommand("noop",()=>{})}),define(_[297],ee([1,0,20,13,2,18,21,53,25,19]),function(q,e,C,N,E,I,L,S,v,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCodeLensModel=e.CodeLensModel=void 0;class g{constructor(){this.lenses=[],this.c=new E.DisposableStore}dispose(){this.c.dispose()}get isDisposed(){return this.c.isDisposed}add(n,a){this.c.add(n);for(const r of n.lenses)this.lenses.push({symbol:r,provider:a})}}e.CodeLensModel=g;function i(t,n,a){return ye(this,void 0,void 0,function*(){const r=t.ordered(n),c=new Map,d=new g,s=r.map((l,o)=>ye(this,void 0,void 0,function*(){c.set(l,o);try{const u=yield Promise.resolve(l.provideCodeLenses(n,a));u&&d.add(u,l)}catch(u){(0,N.onUnexpectedExternalError)(u)}}));return yield Promise.all(s),d.lenses=d.lenses.sort((l,o)=>l.symbol.range.startLineNumber<o.symbol.range.startLineNumber?-1:l.symbol.range.startLineNumber>o.symbol.range.startLineNumber?1:c.get(l.provider)<c.get(o.provider)?-1:c.get(l.provider)>c.get(o.provider)?1:l.symbol.range.startColumn<o.symbol.range.startColumn?-1:l.symbol.range.startColumn>o.symbol.range.startColumn?1:0),d})}e.getCodeLensModel=i,v.CommandsRegistry.registerCommand("_executeCodeLensProvider",function(t,...n){let[a,r]=n;(0,I.assertType)(L.URI.isUri(a)),(0,I.assertType)(typeof r=="number"||!r);const{codeLensProvider:c}=t.get(f.ILanguageFeaturesService),d=t.get(S.IModelService).getModel(a);if(!d)throw(0,N.illegalArgument)();const s=[],l=new E.DisposableStore;return i(c,d,C.CancellationToken.None).then(o=>{l.add(o);const u=[];for(const h of o.lenses)r==null||Boolean(h.symbol.command)?s.push(h.symbol):r-- >0&&h.provider.resolveCodeLens&&u.push(Promise.resolve(h.provider.resolveCodeLens(d,h.symbol,C.CancellationToken.None)).then(w=>s.push(w||h.symbol)));return Promise.all(u)}).then(()=>s).finally(()=>{setTimeout(()=>l.dispose(),100)})})}),define(_[298],ee([1,0,20,13,21,4,53,25,19]),function(q,e,C,N,E,I,L,S,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getColorPresentations=e.getColors=void 0;function f(i,t,n){const a=[],c=i.ordered(t).reverse().map(d=>Promise.resolve(d.provideDocumentColors(t,n)).then(s=>{if(Array.isArray(s))for(const l of s)a.push({colorInfo:l,provider:d})}));return Promise.all(c).then(()=>a)}e.getColors=f;function g(i,t,n,a){return Promise.resolve(n.provideColorPresentations(i,t,a))}e.getColorPresentations=g,S.CommandsRegistry.registerCommand("_executeDocumentColorProvider",function(i,...t){const[n]=t;if(!(n instanceof E.URI))throw(0,N.illegalArgument)();const{colorProvider:a}=i.get(v.ILanguageFeaturesService),r=i.get(L.IModelService).getModel(n);if(!r)throw(0,N.illegalArgument)();const c=[],s=a.ordered(r).reverse().map(l=>Promise.resolve(l.provideDocumentColors(r,C.CancellationToken.None)).then(o=>{if(Array.isArray(o))for(const u of o)c.push({range:u.range,color:[u.color.red,u.color.green,u.color.blue,u.color.alpha]})}));return Promise.all(s).then(()=>c)}),S.CommandsRegistry.registerCommand("_executeColorPresentationProvider",function(i,...t){const[n,a]=t,{uri:r,range:c}=a;if(!(r instanceof E.URI)||!Array.isArray(n)||n.length!==4||!I.Range.isIRange(c))throw(0,N.illegalArgument)();const[d,s,l,o]=n,{colorProvider:u}=i.get(v.ILanguageFeaturesService),h=i.get(L.IModelService).getModel(r);if(!h)throw(0,N.illegalArgument)();const w={range:c,color:{red:d,green:s,blue:l,alpha:o}},m=[],b=u.ordered(h).reverse().map(y=>Promise.resolve(y.provideColorPresentations(h,w,C.CancellationToken.None)).then(k=>{Array.isArray(k)&&m.push(...k)}));return Promise.all(b).then(()=>m)})}),define(_[687],ee([1,0,17,20,13,2,18,21,4,53,25,19]),function(q,e,C,N,E,I,L,S,v,f,g,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLinks=e.LinksList=e.Link=void 0;class t{constructor(c,d){this.a=c,this.b=d}toJSON(){return{range:this.range,url:this.url,tooltip:this.tooltip}}get range(){return this.a.range}get url(){return this.a.url}get tooltip(){return this.a.tooltip}resolve(c){return ye(this,void 0,void 0,function*(){return this.a.url?this.a.url:typeof this.b.resolveLink=="function"?Promise.resolve(this.b.resolveLink(this.a,c)).then(d=>(this.a=d||this.a,this.a.url?this.resolve(c):Promise.reject(new Error("missing")))):Promise.reject(new Error("missing"))})}}e.Link=t;class n{constructor(c){this.a=new I.DisposableStore;let d=[];for(const[s,l]of c){const o=s.links.map(u=>new t(u,l));d=n.b(d,o),(0,I.isDisposable)(s)&&this.a.add(s)}this.links=d}dispose(){this.a.dispose(),this.links.length=0}static b(c,d){const s=[];let l,o,u,h;for(l=0,u=0,o=c.length,h=d.length;l<o&&u<h;){const w=c[l],m=d[u];if(v.Range.areIntersectingOrTouching(w.range,m.range)){l++;continue}v.Range.compareRangesUsingStarts(w.range,m.range)<0?(s.push(w),l++):(s.push(m),u++)}for(;l<o;l++)s.push(c[l]);for(;u<h;u++)s.push(d[u]);return s}}e.LinksList=n;function a(r,c,d){const s=[],l=r.ordered(c).reverse().map((o,u)=>Promise.resolve(o.provideLinks(c,d)).then(h=>{h&&(s[u]=[h,o])},E.onUnexpectedExternalError));return Promise.all(l).then(()=>{const o=new n((0,C.coalesce)(s));return d.isCancellationRequested?(o.dispose(),new n([])):o})}e.getLinks=a,g.CommandsRegistry.registerCommand("_executeLinkProvider",(r,...c)=>ye(void 0,void 0,void 0,function*(){let[d,s]=c;(0,L.assertType)(d instanceof S.URI),typeof s!="number"&&(s=0);const{linkProvider:l}=r.get(i.ILanguageFeaturesService),o=r.get(f.IModelService).getModel(d);if(!o)return[];const u=yield a(l,o,N.CancellationToken.None);if(!u)return[];for(let w=0;w<Math.min(s,u.links.length);w++)yield u.links[w].resolve(N.CancellationToken.None);const h=u.links.slice(0);return u.dispose(),h}))}),define(_[299],ee([1,0,20,13,21,53,25,18,552,4,19]),function(q,e,C,N,E,I,L,S,v,f,g){"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 i(h){return h&&!!h.data}e.isSemanticTokens=i;function t(h){return h&&Array.isArray(h.edits)}e.isSemanticTokensEdits=t;class n{constructor(w,m,p){this.provider=w,this.tokens=m,this.error=p}}e.DocumentSemanticTokensResult=n;function a(h,w){return h.has(w)}e.hasDocumentSemanticTokensProvider=a;function r(h,w){const m=h.orderedGroups(w);return m.length>0?m[0]:[]}function c(h,w,m,p,b){return ye(this,void 0,void 0,function*(){const y=r(h,w),k=yield Promise.all(y.map(D=>ye(this,void 0,void 0,function*(){let M,z=null;try{M=yield D.provideDocumentSemanticTokens(w,D===m?p:null,b)}catch(R){z=R,M=null}return(!M||!i(M)&&!t(M))&&(M=null),new n(D,M,z)})));for(const D of k){if(D.error)throw D.error;if(D.tokens)return D}return k.length>0?k[0]:null})}e.getDocumentSemanticTokens=c;function d(h,w){const m=h.orderedGroups(w);return m.length>0?m[0]:null}class s{constructor(w,m){this.provider=w,this.tokens=m}}function l(h,w){return h.has(w)}e.hasDocumentRangeSemanticTokensProvider=l;function o(h,w){const m=h.orderedGroups(w);return m.length>0?m[0]:[]}function u(h,w,m,p){return ye(this,void 0,void 0,function*(){const b=o(h,w),y=yield Promise.all(b.map(k=>ye(this,void 0,void 0,function*(){let D;try{D=yield k.provideDocumentRangeSemanticTokens(w,m,p)}catch(M){(0,N.onUnexpectedExternalError)(M),D=null}return(!D||!i(D))&&(D=null),new s(k,D)})));for(const k of y)if(k.tokens)return k;return y.length>0?y[0]:null})}e.getDocumentRangeSemanticTokens=u,L.CommandsRegistry.registerCommand("_provideDocumentSemanticTokensLegend",(h,...w)=>ye(void 0,void 0,void 0,function*(){const[m]=w;(0,S.assertType)(m instanceof E.URI);const p=h.get(I.IModelService).getModel(m);if(!p)return;const{documentSemanticTokensProvider:b}=h.get(g.ILanguageFeaturesService),y=d(b,p);return y?y[0].getLegend():h.get(L.ICommandService).executeCommand("_provideDocumentRangeSemanticTokensLegend",m)})),L.CommandsRegistry.registerCommand("_provideDocumentSemanticTokens",(h,...w)=>ye(void 0,void 0,void 0,function*(){const[m]=w;(0,S.assertType)(m instanceof E.URI);const p=h.get(I.IModelService).getModel(m);if(!p)return;const{documentSemanticTokensProvider:b}=h.get(g.ILanguageFeaturesService);if(!a(b,p))return h.get(L.ICommandService).executeCommand("_provideDocumentRangeSemanticTokens",m,p.getFullModelRange());const y=yield c(b,p,null,null,C.CancellationToken.None);if(!y)return;const{provider:k,tokens:D}=y;if(!D||!i(D))return;const M=(0,v.encodeSemanticTokensDto)({id:0,type:"full",data:D.data});return D.resultId&&k.releaseDocumentSemanticTokens(D.resultId),M})),L.CommandsRegistry.registerCommand("_provideDocumentRangeSemanticTokensLegend",(h,...w)=>ye(void 0,void 0,void 0,function*(){const[m,p]=w;(0,S.assertType)(m instanceof E.URI);const b=h.get(I.IModelService).getModel(m);if(!b)return;const{documentRangeSemanticTokensProvider:y}=h.get(g.ILanguageFeaturesService),k=o(y,b);if(k.length===0)return;if(k.length===1)return k[0].getLegend();if(!p||!f.Range.isIRange(p))return console.warn("provideDocumentRangeSemanticTokensLegend might be out-of-sync with provideDocumentRangeSemanticTokens unless a range argument is passed in"),k[0].getLegend();const D=yield u(y,b,f.Range.lift(p),C.CancellationToken.None);if(!!D)return D.provider.getLegend()})),L.CommandsRegistry.registerCommand("_provideDocumentRangeSemanticTokens",(h,...w)=>ye(void 0,void 0,void 0,function*(){const[m,p]=w;(0,S.assertType)(m instanceof E.URI),(0,S.assertType)(f.Range.isIRange(p));const b=h.get(I.IModelService).getModel(m);if(!b)return;const{documentRangeSemanticTokensProvider:y}=h.get(g.ILanguageFeaturesService),k=yield u(y,b,f.Range.lift(p),C.CancellationToken.None);if(!(!k||!k.tokens))return(0,v.encodeSemanticTokensDto)({id:0,type:"full",data:k.tokens.data})}))}),define(_[27],ee([1,0,8]),function(q,e,C){"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,C.createDecorator)("configurationService");function N(f,g){const i=Object.create(null);for(const t in f)E(i,t,f[t],g);return i}e.toValuesTree=N;function E(f,g,i,t){const n=g.split("."),a=n.pop();let r=f;for(let c=0;c<n.length;c++){const d=n[c];let s=r[d];switch(typeof s){case"undefined":s=r[d]=Object.create(null);break;case"object":break;default:t(`Ignoring ${g} as ${n.slice(0,c+1).join(".")} is ${JSON.stringify(s)}`);return}r=s}if(typeof r=="object"&&r!==null)try{r[a]=i}catch{t(`Ignoring ${g} as ${n.join(".")} is ${JSON.stringify(r)}`)}else t(`Ignoring ${g} as ${n.join(".")} is ${JSON.stringify(r)}`)}e.addToValueTree=E;function I(f,g){const i=g.split(".");L(f,i)}e.removeFromValueTree=I;function L(f,g){const i=g.shift();if(g.length===0){delete f[i];return}if(Object.keys(f).indexOf(i)!==-1){const t=f[i];typeof t=="object"&&!Array.isArray(t)&&(L(t,g),Object.keys(t).length===0&&delete f[i])}}function S(f,g,i){function t(r,c){let d=r;for(const s of c){if(typeof d!="object"||d===null)return;d=d[s]}return d}const n=g.split("."),a=t(f,n);return typeof a>"u"?i:a}e.getConfigurationValue=S;function v(f){return f.replace(/[\[\]]/g,"")}e.getLanguageTagSettingPlainKey=v}),define(_[300],ee([1,0,26,141,270,27]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MonarchTokenizer=void 0;const L=5;class S{static create(d,s){return this.d.create(d,s)}constructor(d){this.f=d,this.g=Object.create(null)}create(d,s){if(d!==null&&d.depth>=this.f)return new v(d,s);let l=v.getStackElementId(d);l.length>0&&(l+="|"),l+=s;let o=this.g[l];return o||(o=new v(d,s),this.g[l]=o,o)}}S.d=new S(L);class v{constructor(d,s){this.parent=d,this.state=s,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(d){let s="";for(;d!==null;)s.length>0&&(s+="|"),s+=d.state,d=d.parent;return s}static d(d,s){for(;d!==null&&s!==null;){if(d===s)return!0;if(d.state!==s.state)return!1;d=d.parent,s=s.parent}return d===null&&s===null}equals(d){return v.d(this,d)}push(d){return S.create(this,d)}pop(){return this.parent}popall(){let d=this;for(;d.parent;)d=d.parent;return d}switchTo(d){return S.create(this.parent,d)}}class f{constructor(d,s){this.languageId=d,this.state=s}equals(d){return this.languageId===d.languageId&&this.state.equals(d.state)}clone(){return this.state.clone()===this.state?this:new f(this.languageId,this.state)}}class g{static create(d,s){return this.d.create(d,s)}constructor(d){this.f=d,this.g=Object.create(null)}create(d,s){if(s!==null)return new i(d,s);if(d!==null&&d.depth>=this.f)return new i(d,s);const l=v.getStackElementId(d);let o=this.g[l];return o||(o=new i(d,null),this.g[l]=o,o)}}g.d=new g(L);class i{constructor(d,s){this.stack=d,this.embeddedLanguageData=s}clone(){return(this.embeddedLanguageData?this.embeddedLanguageData.clone():null)===this.embeddedLanguageData?this:g.create(this.stack,this.embeddedLanguageData)}equals(d){return!(d instanceof i)||!this.stack.equals(d.stack)?!1:this.embeddedLanguageData===null&&d.embeddedLanguageData===null?!0:this.embeddedLanguageData===null||d.embeddedLanguageData===null?!1:this.embeddedLanguageData.equals(d.embeddedLanguageData)}}class t{constructor(){this.d=[],this.f=null,this.g=null,this.h=null}enterLanguage(d){this.f=d}emit(d,s){this.g===s&&this.h===this.f||(this.g=s,this.h=this.f,this.d.push(new C.Token(d,s,this.f)))}nestedLanguageTokenize(d,s,l,o){const u=l.languageId,h=l.state,w=C.TokenizationRegistry.get(u);if(!w)return this.enterLanguage(u),this.emit(o,""),h;const m=w.tokenize(d,s,h);if(o!==0)for(const p of m.tokens)this.d.push(new C.Token(p.offset+o,p.type,p.language));else this.d=this.d.concat(m.tokens);return this.g=null,this.h=null,this.f=null,m.endState}finalize(d){return new C.TokenizationResult(this.d,d)}}class n{constructor(d,s){this.d=d,this.f=s,this.g=null,this.h=[],this.j=0,this.k=0}enterLanguage(d){this.j=this.d.languageIdCodec.encodeLanguageId(d)}emit(d,s){const l=this.f.match(this.j,s)|1024;this.k!==l&&(this.k=l,this.h.push(d),this.h.push(l))}static l(d,s,l){const o=d!==null?d.length:0,u=s.length,h=l!==null?l.length:0;if(o===0&&u===0&&h===0)return new Uint32Array(0);if(o===0&&u===0)return l;if(u===0&&h===0)return d;const w=new Uint32Array(o+u+h);d!==null&&w.set(d);for(let m=0;m<u;m++)w[o+m]=s[m];return l!==null&&w.set(l,o+u),w}nestedLanguageTokenize(d,s,l,o){const u=l.languageId,h=l.state,w=C.TokenizationRegistry.get(u);if(!w)return this.enterLanguage(u),this.emit(o,""),h;const m=w.tokenizeEncoded(d,s,h);if(o!==0)for(let p=0,b=m.tokens.length;p<b;p+=2)m.tokens[p]+=o;return this.g=n.l(this.g,this.h,m.tokens),this.h=[],this.j=0,this.k=0,m.endState}finalize(d){return new C.EncodedTokenizationResult(n.l(this.g,this.h,null),d)}}let a=class Ai{constructor(d,s,l,o,u){this.m=u,this.d=d,this.f=s,this.g=l,this.h=o,this.j=Object.create(null),this.embeddedLoaded=Promise.resolve(void 0);let h=!1;this.k=C.TokenizationRegistry.onDidChange(w=>{if(h)return;let m=!1;for(let p=0,b=w.changedLanguages.length;p<b;p++){const y=w.changedLanguages[p];if(this.j[y]){m=!0;break}}m&&(h=!0,C.TokenizationRegistry.fire([this.g]),h=!1)}),this.l=this.m.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this.g}),this.m.onDidChangeConfiguration(w=>{w.affectsConfiguration("editor.maxTokenizationLineLength")&&(this.l=this.m.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this.g}))})}dispose(){this.k.dispose()}getLoadStatus(){const d=[];for(const s in this.j){const l=C.TokenizationRegistry.get(s);if(l){if(l instanceof Ai){const o=l.getLoadStatus();o.loaded===!1&&d.push(o.promise)}continue}C.TokenizationRegistry.isResolved(s)||d.push(C.TokenizationRegistry.getOrCreate(s))}return d.length===0?{loaded:!0}:{loaded:!1,promise:Promise.all(d).then(s=>{})}}getInitialState(){const d=S.create(null,this.h.start);return g.create(d,null)}tokenize(d,s,l){if(d.length>=this.l)return(0,N.nullTokenize)(this.g,l);const o=new t,u=this.n(d,s,l,o);return o.finalize(u)}tokenizeEncoded(d,s,l){if(d.length>=this.l)return(0,N.nullTokenizeEncoded)(this.d.languageIdCodec.encodeLanguageId(this.g),l);const o=new n(this.d,this.f.getColorTheme().tokenTheme),u=this.n(d,s,l,o);return o.finalize(u)}n(d,s,l,o){return l.embeddedLanguageData?this.p(d,s,l,0,o):this.r(d,s,l,0,o)}o(d,s){let l=this.h.tokenizer[s.stack.state];if(!l&&(l=E.findRules(this.h,s.stack.state),!l))throw E.createError(this.h,"tokenizer state is not defined: "+s.stack.state);let o=-1,u=!1;for(const h of l){if(!E.isIAction(h.action)||h.action.nextEmbedded!=="@pop")continue;u=!0;let w=h.regex;const m=h.regex.source;if(m.substr(0,4)==="^(?:"&&m.substr(m.length-1,1)===")"){const b=(w.ignoreCase?"i":"")+(w.unicode?"u":"");w=new RegExp(m.substr(4,m.length-5),b)}const p=d.search(w);p===-1||p!==0&&h.matchOnlyAtLineStart||(o===-1||p<o)&&(o=p)}if(!u)throw E.createError(this.h,'no rule containing nextEmbedded: "@pop" in tokenizer embedded state: '+s.stack.state);return o}p(d,s,l,o,u){const h=this.o(d,l);if(h===-1){const p=u.nestedLanguageTokenize(d,s,l.embeddedLanguageData,o);return g.create(l.stack,new f(l.embeddedLanguageData.languageId,p))}const w=d.substring(0,h);w.length>0&&u.nestedLanguageTokenize(w,!1,l.embeddedLanguageData,o);const m=d.substring(h);return this.r(m,s,l,o+h,u)}q(d){return d?d.name:"(unknown)"}r(d,s,l,o,u){u.enterLanguage(this.g);const h=d.length,w=s&&this.h.includeLF?d+`
|
||
`:d,m=w.length;let p=l.embeddedLanguageData,b=l.stack,y=0,k=null,D=!0;for(;D||y<m;){const M=y,z=b.depth,R=k?k.groups.length:0,P=b.state;let A=null,T=null,O=null,B=null,W=null;if(k){A=k.matches;const U=k.groups.shift();T=U.matched,O=U.action,B=k.rule,k.groups.length===0&&(k=null)}else{if(!D&&y>=m)break;D=!1;let U=this.h.tokenizer[P];if(!U&&(U=E.findRules(this.h,P),!U))throw E.createError(this.h,"tokenizer state is not defined: "+P);const Q=w.substr(y);for(const se of U)if((y===0||!se.matchOnlyAtLineStart)&&(A=Q.match(se.regex),A)){T=A[0],O=se.action;break}}if(A||(A=[""],T=""),O||(y<m&&(A=[w.charAt(y)],T=A[0]),O=this.h.defaultToken),T===null)break;for(y+=T.length;E.isFuzzyAction(O)&&E.isIAction(O)&&O.test;)O=O.test(T,A,P,y===m);let j=null;if(typeof O=="string"||Array.isArray(O))j=O;else if(O.group)j=O.group;else if(O.token!==null&&O.token!==void 0){if(O.tokenSubst?j=E.substituteMatches(this.h,O.token,T,A,P):j=O.token,O.nextEmbedded)if(O.nextEmbedded==="@pop"){if(!p)throw E.createError(this.h,"cannot pop embedded language if not inside one");p=null}else{if(p)throw E.createError(this.h,"cannot enter embedded language from within an embedded language");W=E.substituteMatches(this.h,O.nextEmbedded,T,A,P)}if(O.goBack&&(y=Math.max(0,y-O.goBack)),O.switchTo&&typeof O.switchTo=="string"){let U=E.substituteMatches(this.h,O.switchTo,T,A,P);if(U[0]==="@"&&(U=U.substr(1)),E.findRules(this.h,U))b=b.switchTo(U);else throw E.createError(this.h,"trying to switch to a state '"+U+"' that is undefined in rule: "+this.q(B))}else{if(O.transform&&typeof O.transform=="function")throw E.createError(this.h,"action.transform not supported");if(O.next)if(O.next==="@push"){if(b.depth>=this.h.maxStack)throw E.createError(this.h,"maximum tokenizer stack size reached: ["+b.state+","+b.parent.state+",...]");b=b.push(P)}else if(O.next==="@pop"){if(b.depth<=1)throw E.createError(this.h,"trying to pop an empty stack in rule: "+this.q(B));b=b.pop()}else if(O.next==="@popall")b=b.popall();else{let U=E.substituteMatches(this.h,O.next,T,A,P);if(U[0]==="@"&&(U=U.substr(1)),E.findRules(this.h,U))b=b.push(U);else throw E.createError(this.h,"trying to set a next state '"+U+"' that is undefined in rule: "+this.q(B))}}O.log&&typeof O.log=="string"&&E.log(this.h,this.h.languageId+": "+E.substituteMatches(this.h,O.log,T,A,P))}if(j===null)throw E.createError(this.h,"lexer rule has no well-defined action in rule: "+this.q(B));const F=U=>{const Q=this.d.getLanguageIdByLanguageName(U)||this.d.getLanguageIdByMimeType(U)||U,se=this.s(Q);if(y<m){const he=d.substr(y);return this.p(he,s,g.create(b,se),o+y,u)}else return g.create(b,se)};if(Array.isArray(j)){if(k&&k.groups.length>0)throw E.createError(this.h,"groups cannot be nested: "+this.q(B));if(A.length!==j.length+1)throw E.createError(this.h,"matched number of groups does not match the number of actions in rule: "+this.q(B));let U=0;for(let Q=1;Q<A.length;Q++)U+=A[Q].length;if(U!==T.length)throw E.createError(this.h,"with groups, all characters should be matched in consecutive groups in rule: "+this.q(B));k={rule:B,matches:A,groups:[]};for(let Q=0;Q<j.length;Q++)k.groups[Q]={action:j[Q],matched:A[Q+1]};y-=T.length;continue}else{if(j==="@rematch"&&(y-=T.length,T="",A=null,j="",W!==null))return F(W);if(T.length===0){if(m===0||z!==b.depth||P!==b.state||(k?k.groups.length:0)!==R)continue;throw E.createError(this.h,"no progress in tokenizer in rule: "+this.q(B))}let U=null;if(E.isString(j)&&j.indexOf("@brackets")===0){const Q=j.substr(9),se=r(this.h,T);if(!se)throw E.createError(this.h,"@brackets token returned but no bracket defined as: "+T);U=E.sanitize(se.token+Q)}else{const Q=j===""?"":j+this.h.tokenPostfix;U=E.sanitize(Q)}M<h&&u.emit(M+o,U)}if(W!==null)return F(W)}return g.create(b,p)}s(d){if(!this.d.isRegisteredLanguageId(d))return new f(d,N.NullState);d!==this.g&&(C.TokenizationRegistry.getOrCreate(d),this.j[d]=!0);const s=C.TokenizationRegistry.get(d);return s?new f(d,s.getInitialState()):new f(d,N.NullState)}};a=Ne([ge(4,I.IConfigurationService)],a),e.MonarchTokenizer=a;function r(c,d){if(!d)return null;d=E.fixCase(c,d);const s=c.brackets;for(const l of s){if(l.open===d)return{token:l.token,bracketType:1};if(l.close===d)return{token:l.token,bracketType:-1}}return null}}),define(_[688],ee([1,0,9,87,26,107,82,300]),function(q,e,C,N,E,I,L,S){"use strict";var v;Object.defineProperty(e,"__esModule",{value:!0}),e.Colorizer=void 0;const f=(v=window.trustedTypes)===null||v===void 0?void 0:v.createPolicy("standaloneColorizer",{createHTML:a=>a});class g{static colorizeElement(r,c,d,s){s=s||{};const l=s.theme||"vs",o=s.mimeType||d.getAttribute("lang")||d.getAttribute("data-lang");if(!o)return console.error("Mode not detected"),Promise.resolve();const u=c.getLanguageIdByMimeType(o)||o;r.setTheme(l);const h=d.firstChild?d.firstChild.nodeValue:"";d.className+=" "+l;const w=m=>{var p;const b=(p=f?.createHTML(m))!==null&&p!==void 0?p:m;d.innerHTML=b};return this.colorize(c,h||"",u,s).then(w,m=>console.error(m))}static colorize(r,c,d,s){return ye(this,void 0,void 0,function*(){const l=r.languageIdCodec;let o=4;s&&typeof s.tabSize=="number"&&(o=s.tabSize),C.startsWithUTF8BOM(c)&&(c=c.substr(1));const u=C.splitLines(c);if(!r.isRegisteredLanguageId(d))return t(u,o,l);const h=yield E.TokenizationRegistry.getOrCreate(d);return h?i(u,o,h,l):t(u,o,l)})}static colorizeLine(r,c,d,s,l=4){const o=L.ViewLineRenderingData.isBasicASCII(r,c),u=L.ViewLineRenderingData.containsRTL(r,o,d);return(0,I.renderViewLine2)(new I.RenderLineInput(!1,!0,r,!1,o,u,0,s,[],l,0,0,0,0,-1,"none",!1,!1,null)).html}static colorizeModelLine(r,c,d=4){const s=r.getLineContent(c);r.tokenization.forceTokenization(c);const o=r.tokenization.getLineTokens(c).inflate();return this.colorizeLine(s,r.mightContainNonBasicASCII(),r.mightContainRTL(),o,d)}}e.Colorizer=g;function i(a,r,c,d){return new Promise((s,l)=>{const o=()=>{const u=n(a,r,c,d);if(c instanceof S.MonarchTokenizer){const h=c.getLoadStatus();if(h.loaded===!1){h.promise.then(o,l);return}}s(u)};o()})}function t(a,r,c){let d=[];const l=new Uint32Array(2);l[0]=0,l[1]=33587200;for(let o=0,u=a.length;o<u;o++){const h=a[o];l[0]=h.length;const w=new N.LineTokens(l,h,c),m=L.ViewLineRenderingData.isBasicASCII(h,!0),p=L.ViewLineRenderingData.containsRTL(h,m,!0),b=(0,I.renderViewLine2)(new I.RenderLineInput(!1,!0,h,!1,m,p,0,w,[],r,0,0,0,0,-1,"none",!1,!1,null));d=d.concat(b.html),d.push("<br/>")}return d.join("")}function n(a,r,c,d){let s=[],l=c.getInitialState();for(let o=0,u=a.length;o<u;o++){const h=a[o],w=c.tokenizeEncoded(h,!0,l);N.LineTokens.convertToEndOffset(w.tokens,h.length);const m=new N.LineTokens(w.tokens,h,d),p=L.ViewLineRenderingData.isBasicASCII(h,!0),b=L.ViewLineRenderingData.containsRTL(h,p,!0),y=(0,I.renderViewLine2)(new I.RenderLineInput(!1,!0,h,!1,p,b,0,m.inflate(),[],r,0,0,0,0,-1,"none",!1,!1,null));s=s.concat(y.html),s.push("<br/>"),l=w.endState}return s.join("")}}),define(_[15],ee([1,0,16,9,8]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.implies=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 I=new Map;I.set("false",!1),I.set("true",!0),I.set("isMac",C.isMacintosh),I.set("isLinux",C.isLinux),I.set("isWindows",C.isWindows),I.set("isWeb",C.isWeb),I.set("isMacNative",C.isMacintosh&&!C.isWeb),I.set("isEdge",C.isEdge),I.set("isFirefox",C.isFirefox),I.set("isChrome",C.isChrome),I.set("isSafari",C.isSafari);const L=Object.prototype.hasOwnProperty;class S{static has(T){return t.create(T)}static equals(T,O){return n.create(T,O)}static regex(T,O){return w.create(T,O)}static not(T){return d.create(T)}static and(...T){return b.create(T,null,!0)}static or(...T){return y.create(T,null,!0)}static deserialize(T){if(!!T)return this.c(T)}static c(T){const O=T.split("||");return y.create(O.map(B=>this.d(B)),null,!0)}static d(T){const O=T.split("&&");return b.create(O.map(B=>this.f(B)),null,!0)}static f(T){if(T=T.trim(),T.indexOf("!=")>=0){const O=T.split("!=");return c.create(O[0].trim(),this.g(O[1]))}if(T.indexOf("==")>=0){const O=T.split("==");return n.create(O[0].trim(),this.g(O[1]))}if(T.indexOf("=~")>=0){const O=T.split("=~");return w.create(O[0].trim(),this.h(O[1]))}if(T.indexOf(" not in ")>=0){const O=T.split(" not in ");return r.create(O[0].trim(),this.g(O[1]))}if(T.indexOf(" in ")>=0){const O=T.split(" in ");return a.create(O[0].trim(),this.g(O[1]))}if(/^[^<=>]+>=[^<=>]+$/.test(T)){const O=T.split(">=");return o.create(O[0].trim(),O[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(T)){const O=T.split(">");return l.create(O[0].trim(),O[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(T)){const O=T.split("<=");return h.create(O[0].trim(),O[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(T)){const O=T.split("<");return u.create(O[0].trim(),O[1].trim())}return/^\!\s*/.test(T)?d.create(T.substr(1).trim()):t.create(T)}static g(T){if(T=T.trim(),T==="true")return!0;if(T==="false")return!1;const O=/^'([^']*)'$/.exec(T);return O?O[1].trim():T}static h(T){if((0,N.isFalsyOrWhitespace)(T))return null;const O=T.indexOf("/"),B=T.lastIndexOf("/");if(O===B||O<0)return null;const W=T.slice(O+1,B),j=T[B+1]==="i"?"i":"";try{return new RegExp(W,j)}catch{return null}}}e.ContextKeyExpr=S;function v(A,T){const O=A?A.substituteConstants():void 0,B=T?T.substituteConstants():void 0;return!O&&!B?!0:!O||!B?!1:O.equals(B)}e.expressionsAreEqualWithConstantSubstitution=v;function f(A,T){return A.cmp(T)}class g{constructor(){this.type=0}cmp(T){return this.type-T.type}equals(T){return T.type===this.type}substituteConstants(){return this}evaluate(T){return!1}serialize(){return"false"}keys(){return[]}negate(){return i.INSTANCE}}g.INSTANCE=new g,e.ContextKeyFalseExpr=g;class i{constructor(){this.type=1}cmp(T){return this.type-T.type}equals(T){return T.type===this.type}substituteConstants(){return this}evaluate(T){return!0}serialize(){return"true"}keys(){return[]}negate(){return g.INSTANCE}}i.INSTANCE=new i,e.ContextKeyTrueExpr=i;class t{static create(T,O=null){const B=I.get(T);return typeof B=="boolean"?B?i.INSTANCE:g.INSTANCE:new t(T,O)}constructor(T,O){this.key=T,this.c=O,this.type=2}cmp(T){return T.type!==this.type?this.type-T.type:D(this.key,T.key)}equals(T){return T.type===this.type?this.key===T.key:!1}substituteConstants(){const T=I.get(this.key);return typeof T=="boolean"?T?i.INSTANCE:g.INSTANCE:this}evaluate(T){return!!T.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.c||(this.c=d.create(this.key,this)),this.c}}e.ContextKeyDefinedExpr=t;class n{static create(T,O,B=null){if(typeof O=="boolean")return O?t.create(T,B):d.create(T,B);const W=I.get(T);return typeof W=="boolean"?O===(W?"true":"false")?i.INSTANCE:g.INSTANCE:new n(T,O,B)}constructor(T,O,B){this.c=T,this.d=O,this.f=B,this.type=4}cmp(T){return T.type!==this.type?this.type-T.type:M(this.c,this.d,T.c,T.d)}equals(T){return T.type===this.type?this.c===T.c&&this.d===T.d:!1}substituteConstants(){const T=I.get(this.c);if(typeof T=="boolean"){const O=T?"true":"false";return this.d===O?i.INSTANCE:g.INSTANCE}return this}evaluate(T){return T.getValue(this.c)==this.d}serialize(){return`${this.c} == '${this.d}'`}keys(){return[this.c]}negate(){return this.f||(this.f=c.create(this.c,this.d,this)),this.f}}e.ContextKeyEqualsExpr=n;class a{static create(T,O){return new a(T,O)}constructor(T,O){this.d=T,this.f=O,this.type=10,this.c=null}cmp(T){return T.type!==this.type?this.type-T.type:M(this.d,this.f,T.d,T.f)}equals(T){return T.type===this.type?this.d===T.d&&this.f===T.f:!1}substituteConstants(){return this}evaluate(T){const O=T.getValue(this.f),B=T.getValue(this.d);return Array.isArray(O)?O.includes(B):typeof B=="string"&&typeof O=="object"&&O!==null?L.call(O,B):!1}serialize(){return`${this.d} in '${this.f}'`}keys(){return[this.d,this.f]}negate(){return this.c||(this.c=r.create(this.d,this.f)),this.c}}e.ContextKeyInExpr=a;class r{static create(T,O){return new r(T,O)}constructor(T,O){this.d=T,this.f=O,this.type=11,this.c=a.create(T,O)}cmp(T){return T.type!==this.type?this.type-T.type:this.c.cmp(T.c)}equals(T){return T.type===this.type?this.c.equals(T.c):!1}substituteConstants(){return this}evaluate(T){return!this.c.evaluate(T)}serialize(){return`${this.d} not in '${this.f}'`}keys(){return this.c.keys()}negate(){return this.c}}e.ContextKeyNotInExpr=r;class c{static create(T,O,B=null){if(typeof O=="boolean")return O?d.create(T,B):t.create(T,B);const W=I.get(T);return typeof W=="boolean"?O===(W?"true":"false")?g.INSTANCE:i.INSTANCE:new c(T,O,B)}constructor(T,O,B){this.c=T,this.d=O,this.f=B,this.type=5}cmp(T){return T.type!==this.type?this.type-T.type:M(this.c,this.d,T.c,T.d)}equals(T){return T.type===this.type?this.c===T.c&&this.d===T.d:!1}substituteConstants(){const T=I.get(this.c);if(typeof T=="boolean"){const O=T?"true":"false";return this.d===O?g.INSTANCE:i.INSTANCE}return this}evaluate(T){return T.getValue(this.c)!=this.d}serialize(){return`${this.c} != '${this.d}'`}keys(){return[this.c]}negate(){return this.f||(this.f=n.create(this.c,this.d,this)),this.f}}e.ContextKeyNotEqualsExpr=c;class d{static create(T,O=null){const B=I.get(T);return typeof B=="boolean"?B?g.INSTANCE:i.INSTANCE:new d(T,O)}constructor(T,O){this.c=T,this.d=O,this.type=3}cmp(T){return T.type!==this.type?this.type-T.type:D(this.c,T.c)}equals(T){return T.type===this.type?this.c===T.c:!1}substituteConstants(){const T=I.get(this.c);return typeof T=="boolean"?T?g.INSTANCE:i.INSTANCE:this}evaluate(T){return!T.getValue(this.c)}serialize(){return`!${this.c}`}keys(){return[this.c]}negate(){return this.d||(this.d=t.create(this.c,this)),this.d}}e.ContextKeyNotExpr=d;function s(A,T){if(typeof A=="string"){const O=parseFloat(A);isNaN(O)||(A=O)}return typeof A=="string"||typeof A=="number"?T(A):g.INSTANCE}class l{static create(T,O,B=null){return s(O,W=>new l(T,W,B))}constructor(T,O,B){this.c=T,this.d=O,this.f=B,this.type=12}cmp(T){return T.type!==this.type?this.type-T.type:M(this.c,this.d,T.c,T.d)}equals(T){return T.type===this.type?this.c===T.c&&this.d===T.d:!1}substituteConstants(){return this}evaluate(T){return typeof this.d=="string"?!1:parseFloat(T.getValue(this.c))>this.d}serialize(){return`${this.c} > ${this.d}`}keys(){return[this.c]}negate(){return this.f||(this.f=h.create(this.c,this.d,this)),this.f}}e.ContextKeyGreaterExpr=l;class o{static create(T,O,B=null){return s(O,W=>new o(T,W,B))}constructor(T,O,B){this.c=T,this.d=O,this.f=B,this.type=13}cmp(T){return T.type!==this.type?this.type-T.type:M(this.c,this.d,T.c,T.d)}equals(T){return T.type===this.type?this.c===T.c&&this.d===T.d:!1}substituteConstants(){return this}evaluate(T){return typeof this.d=="string"?!1:parseFloat(T.getValue(this.c))>=this.d}serialize(){return`${this.c} >= ${this.d}`}keys(){return[this.c]}negate(){return this.f||(this.f=u.create(this.c,this.d,this)),this.f}}e.ContextKeyGreaterEqualsExpr=o;class u{static create(T,O,B=null){return s(O,W=>new u(T,W,B))}constructor(T,O,B){this.c=T,this.d=O,this.f=B,this.type=14}cmp(T){return T.type!==this.type?this.type-T.type:M(this.c,this.d,T.c,T.d)}equals(T){return T.type===this.type?this.c===T.c&&this.d===T.d:!1}substituteConstants(){return this}evaluate(T){return typeof this.d=="string"?!1:parseFloat(T.getValue(this.c))<this.d}serialize(){return`${this.c} < ${this.d}`}keys(){return[this.c]}negate(){return this.f||(this.f=o.create(this.c,this.d,this)),this.f}}e.ContextKeySmallerExpr=u;class h{static create(T,O,B=null){return s(O,W=>new h(T,W,B))}constructor(T,O,B){this.c=T,this.d=O,this.f=B,this.type=15}cmp(T){return T.type!==this.type?this.type-T.type:M(this.c,this.d,T.c,T.d)}equals(T){return T.type===this.type?this.c===T.c&&this.d===T.d:!1}substituteConstants(){return this}evaluate(T){return typeof this.d=="string"?!1:parseFloat(T.getValue(this.c))<=this.d}serialize(){return`${this.c} <= ${this.d}`}keys(){return[this.c]}negate(){return this.f||(this.f=l.create(this.c,this.d,this)),this.f}}e.ContextKeySmallerEqualsExpr=h;class w{static create(T,O){return new w(T,O)}constructor(T,O){this.d=T,this.f=O,this.type=7,this.c=null}cmp(T){if(T.type!==this.type)return this.type-T.type;if(this.d<T.d)return-1;if(this.d>T.d)return 1;const O=this.f?this.f.source:"",B=T.f?T.f.source:"";return O<B?-1:O>B?1:0}equals(T){if(T.type===this.type){const O=this.f?this.f.source:"",B=T.f?T.f.source:"";return this.d===T.d&&O===B}return!1}substituteConstants(){return this}evaluate(T){const O=T.getValue(this.d);return this.f?this.f.test(O):!1}serialize(){const T=this.f?`/${this.f.source}/${this.f.flags}`:"/invalid/";return`${this.d} =~ ${T}`}keys(){return[this.d]}negate(){return this.c||(this.c=m.create(this)),this.c}}e.ContextKeyRegexExpr=w;class m{static create(T){return new m(T)}constructor(T){this.c=T,this.type=8}cmp(T){return T.type!==this.type?this.type-T.type:this.c.cmp(T.c)}equals(T){return T.type===this.type?this.c.equals(T.c):!1}substituteConstants(){return this}evaluate(T){return!this.c.evaluate(T)}serialize(){throw new Error("Method not implemented.")}keys(){return this.c.keys()}negate(){return this.c}}e.ContextKeyNotRegexExpr=m;function p(A){let T=null;for(let O=0,B=A.length;O<B;O++){const W=A[O].substituteConstants();if(A[O]!==W&&T===null){T=[];for(let j=0;j<O;j++)T[j]=A[j]}T!==null&&(T[O]=W)}return T===null?A:T}class b{static create(T,O,B){return b.d(T,O,B)}constructor(T,O){this.expr=T,this.c=O,this.type=6}cmp(T){if(T.type!==this.type)return this.type-T.type;if(this.expr.length<T.expr.length)return-1;if(this.expr.length>T.expr.length)return 1;for(let O=0,B=this.expr.length;O<B;O++){const W=f(this.expr[O],T.expr[O]);if(W!==0)return W}return 0}equals(T){if(T.type===this.type){if(this.expr.length!==T.expr.length)return!1;for(let O=0,B=this.expr.length;O<B;O++)if(!this.expr[O].equals(T.expr[O]))return!1;return!0}return!1}substituteConstants(){const T=p(this.expr);return T===this.expr?this:b.create(T,this.c,!1)}evaluate(T){for(let O=0,B=this.expr.length;O<B;O++)if(!this.expr[O].evaluate(T))return!1;return!0}static d(T,O,B){const W=[];let j=!1;for(const F of T)if(!!F){if(F.type===1){j=!0;continue}if(F.type===0)return g.INSTANCE;if(F.type===6){W.push(...F.expr);continue}W.push(F)}if(W.length===0&&j)return i.INSTANCE;if(W.length!==0){if(W.length===1)return W[0];W.sort(f);for(let F=1;F<W.length;F++)W[F-1].equals(W[F])&&(W.splice(F,1),F--);if(W.length===1)return W[0];for(;W.length>1;){const F=W[W.length-1];if(F.type!==9)break;W.pop();const U=W.pop(),Q=W.length===0,se=y.create(F.expr.map(he=>b.create([he,U],null,B)),null,Q);se&&(W.push(se),W.sort(f))}if(W.length===1)return W[0];if(B){for(let F=0;F<W.length;F++)for(let U=F+1;U<W.length;U++)if(W[F].negate().equals(W[U]))return g.INSTANCE;if(W.length===1)return W[0]}return new b(W,O)}}serialize(){return this.expr.map(T=>T.serialize()).join(" && ")}keys(){const T=[];for(const O of this.expr)T.push(...O.keys());return T}negate(){if(!this.c){const T=[];for(const O of this.expr)T.push(O.negate());this.c=y.create(T,this,!0)}return this.c}}class y{static create(T,O,B){return y.d(T,O,B)}constructor(T,O){this.expr=T,this.c=O,this.type=9}cmp(T){if(T.type!==this.type)return this.type-T.type;if(this.expr.length<T.expr.length)return-1;if(this.expr.length>T.expr.length)return 1;for(let O=0,B=this.expr.length;O<B;O++){const W=f(this.expr[O],T.expr[O]);if(W!==0)return W}return 0}equals(T){if(T.type===this.type){if(this.expr.length!==T.expr.length)return!1;for(let O=0,B=this.expr.length;O<B;O++)if(!this.expr[O].equals(T.expr[O]))return!1;return!0}return!1}substituteConstants(){const T=p(this.expr);return T===this.expr?this:y.create(T,this.c,!1)}evaluate(T){for(let O=0,B=this.expr.length;O<B;O++)if(this.expr[O].evaluate(T))return!0;return!1}static d(T,O,B){let W=[],j=!1;if(T){for(let F=0,U=T.length;F<U;F++){const Q=T[F];if(!!Q){if(Q.type===0){j=!0;continue}if(Q.type===1)return i.INSTANCE;if(Q.type===9){W=W.concat(Q.expr);continue}W.push(Q)}}if(W.length===0&&j)return g.INSTANCE;W.sort(f)}if(W.length!==0){if(W.length===1)return W[0];for(let F=1;F<W.length;F++)W[F-1].equals(W[F])&&(W.splice(F,1),F--);if(W.length===1)return W[0];if(B){for(let F=0;F<W.length;F++)for(let U=F+1;U<W.length;U++)if(W[F].negate().equals(W[U]))return i.INSTANCE;if(W.length===1)return W[0]}return new y(W,O)}}serialize(){return this.expr.map(T=>T.serialize()).join(" || ")}keys(){const T=[];for(const O of this.expr)T.push(...O.keys());return T}negate(){if(!this.c){const T=[];for(const O of this.expr)T.push(O.negate());for(;T.length>1;){const O=T.shift(),B=T.shift(),W=[];for(const j of P(O))for(const F of P(B))W.push(b.create([j,F],null,!1));T.unshift(y.create(W,null,!1))}this.c=y.create(T,this,!0)}return this.c}}class k extends t{static all(){return k.d.values()}constructor(T,O,B){super(T,null),this.f=O,typeof B=="object"?k.d.push(Object.assign(Object.assign({},B),{key:T})):B!==!0&&k.d.push({key:T,description:B,type:O!=null?typeof O:void 0})}bindTo(T){return T.createKey(this.key,this.f)}getValue(T){return T.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(T){return n.create(this.key,T)}}k.d=[],e.RawContextKey=k,e.IContextKeyService=(0,E.createDecorator)("contextKeyService");function D(A,T){return A<T?-1:A>T?1:0}function M(A,T,O,B){return A<O?-1:A>O?1:T<B?-1:T>B?1:0}function z(A,T){if(A.type===0||T.type===1)return!0;if(A.type===9)return T.type===9?R(A.expr,T.expr):!1;if(T.type===9){for(const O of T.expr)if(z(A,O))return!0;return!1}if(A.type===6){if(T.type===6)return R(T.expr,A.expr);for(const O of A.expr)if(z(O,T))return!0;return!1}return A.equals(T)}e.implies=z;function R(A,T){let O=0,B=0;for(;O<A.length&&B<T.length;){const W=A[O].cmp(T[B]);if(W<0)return!1;W===0&&O++,B++}return O===A.length}function P(A){return A.type===9?A.expr:[A]}}),define(_[24],ee([1,0,573,15]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorContextKeys=void 0;var E;(function(I){I.editorSimpleInput=new N.RawContextKey("editorSimpleInput",!1,!0),I.editorTextFocus=new N.RawContextKey("editorTextFocus",!1,C.localize(0,null)),I.focus=new N.RawContextKey("editorFocus",!1,C.localize(1,null)),I.textInputFocus=new N.RawContextKey("textInputFocus",!1,C.localize(2,null)),I.readOnly=new N.RawContextKey("editorReadonly",!1,C.localize(3,null)),I.inDiffEditor=new N.RawContextKey("inDiffEditor",!1,C.localize(4,null)),I.columnSelection=new N.RawContextKey("editorColumnSelection",!1,C.localize(5,null)),I.writable=I.readOnly.toNegated(),I.hasNonEmptySelection=new N.RawContextKey("editorHasSelection",!1,C.localize(6,null)),I.hasOnlyEmptySelection=I.hasNonEmptySelection.toNegated(),I.hasMultipleSelections=new N.RawContextKey("editorHasMultipleSelections",!1,C.localize(7,null)),I.hasSingleSelection=I.hasMultipleSelections.toNegated(),I.tabMovesFocus=new N.RawContextKey("editorTabMovesFocus",!1,C.localize(8,null)),I.tabDoesNotMoveFocus=I.tabMovesFocus.toNegated(),I.isInWalkThroughSnippet=new N.RawContextKey("isInEmbeddedEditor",!1,!0),I.canUndo=new N.RawContextKey("canUndo",!1,!0),I.canRedo=new N.RawContextKey("canRedo",!1,!0),I.hoverVisible=new N.RawContextKey("editorHoverVisible",!1,C.localize(9,null)),I.inCompositeEditor=new N.RawContextKey("inCompositeEditor",void 0,C.localize(10,null)),I.notInCompositeEditor=I.inCompositeEditor.toNegated(),I.languageId=new N.RawContextKey("editorLangId","",C.localize(11,null)),I.hasCompletionItemProvider=new N.RawContextKey("editorHasCompletionItemProvider",!1,C.localize(12,null)),I.hasCodeActionsProvider=new N.RawContextKey("editorHasCodeActionsProvider",!1,C.localize(13,null)),I.hasCodeLensProvider=new N.RawContextKey("editorHasCodeLensProvider",!1,C.localize(14,null)),I.hasDefinitionProvider=new N.RawContextKey("editorHasDefinitionProvider",!1,C.localize(15,null)),I.hasDeclarationProvider=new N.RawContextKey("editorHasDeclarationProvider",!1,C.localize(16,null)),I.hasImplementationProvider=new N.RawContextKey("editorHasImplementationProvider",!1,C.localize(17,null)),I.hasTypeDefinitionProvider=new N.RawContextKey("editorHasTypeDefinitionProvider",!1,C.localize(18,null)),I.hasHoverProvider=new N.RawContextKey("editorHasHoverProvider",!1,C.localize(19,null)),I.hasDocumentHighlightProvider=new N.RawContextKey("editorHasDocumentHighlightProvider",!1,C.localize(20,null)),I.hasDocumentSymbolProvider=new N.RawContextKey("editorHasDocumentSymbolProvider",!1,C.localize(21,null)),I.hasReferenceProvider=new N.RawContextKey("editorHasReferenceProvider",!1,C.localize(22,null)),I.hasRenameProvider=new N.RawContextKey("editorHasRenameProvider",!1,C.localize(23,null)),I.hasSignatureHelpProvider=new N.RawContextKey("editorHasSignatureHelpProvider",!1,C.localize(24,null)),I.hasInlayHintsProvider=new N.RawContextKey("editorHasInlayHintsProvider",!1,C.localize(25,null)),I.hasDocumentFormattingProvider=new N.RawContextKey("editorHasDocumentFormattingProvider",!1,C.localize(26,null)),I.hasDocumentSelectionFormattingProvider=new N.RawContextKey("editorHasDocumentSelectionFormattingProvider",!1,C.localize(27,null)),I.hasMultipleDocumentFormattingProvider=new N.RawContextKey("editorHasMultipleDocumentFormattingProvider",!1,C.localize(28,null)),I.hasMultipleDocumentSelectionFormattingProvider=new N.RawContextKey("editorHasMultipleDocumentSelectionFormattingProvider",!1,C.localize(29,null))})(E=e.EditorContextKeys||(e.EditorContextKeys={}))}),define(_[222],ee([1,0,20,13,18,21,12,26,19,61,25,15]),function(q,e,C,N,E,I,L,S,v,f,g,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.provideSignatureHelp=e.Context=void 0,e.Context={Visible:new i.RawContextKey("parameterHintsVisible",!1),MultipleSignatures:new i.RawContextKey("parameterHintsMultipleSignatures",!1)};function t(n,a,r,c,d){return ye(this,void 0,void 0,function*(){const s=n.ordered(a);for(const l of s)try{const o=yield l.provideSignatureHelp(a,r,d,c);if(o)return o}catch(o){(0,N.onUnexpectedExternalError)(o)}})}e.provideSignatureHelp=t,g.CommandsRegistry.registerCommand("_executeSignatureHelpProvider",(n,...a)=>ye(void 0,void 0,void 0,function*(){const[r,c,d]=a;(0,E.assertType)(I.URI.isUri(r)),(0,E.assertType)(L.Position.isIPosition(c)),(0,E.assertType)(typeof d=="string"||!d);const s=n.get(v.ILanguageFeaturesService),l=yield n.get(f.ITextModelService).createModelReference(r);try{const o=yield t(s.signatureHelpProvider,l.object.textEditorModel,L.Position.lift(c),{triggerKind:S.SignatureHelpTriggerKind.Invoke,isRetrigger:!1,triggerCharacter:d},C.CancellationToken.None);return o?(setTimeout(()=>o.dispose(),0),o.value):void 0}finally{l.dispose()}}))}),define(_[689],ee([1,0,11,13,6,2,113,26,222]),function(q,e,C,N,E,I,L,S,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ParameterHintsModel=void 0;var f;(function(t){t.Default={type:0};class n{constructor(c,d){this.request=c,this.previouslyActiveHints=d,this.type=2}}t.Pending=n;class a{constructor(c){this.hints=c,this.type=1}}t.Active=a})(f||(f={}));class g extends I.Disposable{constructor(n,a,r=g.a){super(),this.b=this.q(new E.Emitter),this.onChangedHints=this.b.event,this.h=!1,this.i=f.Default,this.j=[],this.k=this.q(new I.MutableDisposable),this.l=new L.CharacterSet,this.m=new L.CharacterSet,this.p=0,this.c=n,this.g=a,this.n=new C.Delayer(r),this.q(this.c.onDidBlurEditorWidget(()=>this.cancel())),this.q(this.c.onDidChangeConfiguration(()=>this.C())),this.q(this.c.onDidChangeModel(c=>this.w())),this.q(this.c.onDidChangeModelLanguage(c=>this.w())),this.q(this.c.onDidChangeCursorSelection(c=>this.z(c))),this.q(this.c.onDidChangeModelContent(c=>this.B())),this.q(this.g.onDidChange(this.w,this)),this.q(this.c.onDidType(c=>this.y(c))),this.C(),this.w()}get r(){return this.i}set r(n){this.i.type===2&&this.i.request.cancel(),this.i=n}cancel(n=!1){this.r=f.Default,this.n.cancel(),n||this.b.fire(void 0)}trigger(n,a){const r=this.c.getModel();if(!r||!this.g.has(r))return;const c=++this.p;this.j.push(n),this.n.trigger(()=>this.t(c),a).catch(N.onUnexpectedError)}next(){if(this.r.type!==1)return;const n=this.r.hints.signatures.length,a=this.r.hints.activeSignature,r=a%n===n-1,c=this.c.getOption(81).cycle;if((n<2||r)&&!c){this.cancel();return}this.s(r&&c?0:a+1)}previous(){if(this.r.type!==1)return;const n=this.r.hints.signatures.length,a=this.r.hints.activeSignature,r=a===0,c=this.c.getOption(81).cycle;if((n<2||r)&&!c){this.cancel();return}this.s(r&&c?n-1:a-1)}s(n){this.r.type===1&&(this.r=new f.Active(Object.assign(Object.assign({},this.r.hints),{activeSignature:n})),this.b.fire(this.r.hints))}t(n){return ye(this,void 0,void 0,function*(){const a=this.r.type===1||this.r.type===2,r=this.u();if(this.cancel(!0),this.j.length===0)return!1;const c=this.j.reduce(i);this.j=[];const d={triggerKind:c.triggerKind,triggerCharacter:c.triggerCharacter,isRetrigger:a,activeSignatureHelp:r};if(!this.c.hasModel())return!1;const s=this.c.getModel(),l=this.c.getPosition();this.r=new f.Pending((0,C.createCancelablePromise)(o=>(0,v.provideSignatureHelp)(this.g,s,l,d,o)),r);try{const o=yield this.r.request;return n!==this.p?(o?.dispose(),!1):!o||!o.value.signatures||o.value.signatures.length===0?(o?.dispose(),this.k.clear(),this.cancel(),!1):(this.r=new f.Active(o.value),this.k.value=o,this.b.fire(this.r.hints),!0)}catch(o){return n===this.p&&(this.r=f.Default),(0,N.onUnexpectedError)(o),!1}})}u(){switch(this.r.type){case 1:return this.r.hints;case 2:return this.r.previouslyActiveHints;default:return}}get v(){return this.r.type===1||this.r.type===2||this.n.isTriggered()}w(){this.cancel(),this.l.clear(),this.m.clear();const n=this.c.getModel();if(!!n)for(const a of this.g.ordered(n)){for(const r of a.signatureHelpTriggerCharacters||[])if(r.length){const c=r.charCodeAt(0);this.l.add(c),this.m.add(c)}for(const r of a.signatureHelpRetriggerCharacters||[])r.length&&this.m.add(r.charCodeAt(0))}}y(n){if(!this.h)return;const a=n.length-1,r=n.charCodeAt(a);(this.l.has(r)||this.v&&this.m.has(r))&&this.trigger({triggerKind:S.SignatureHelpTriggerKind.TriggerCharacter,triggerCharacter:n.charAt(a)})}z(n){n.source==="mouse"?this.cancel():this.v&&this.trigger({triggerKind:S.SignatureHelpTriggerKind.ContentChange})}B(){this.v&&this.trigger({triggerKind:S.SignatureHelpTriggerKind.ContentChange})}C(){this.h=this.c.getOption(81).enabled,this.h||this.cancel()}dispose(){this.cancel(!0),super.dispose()}}g.a=120,e.ParameterHintsModel=g;function i(t,n){switch(n.triggerKind){case S.SignatureHelpTriggerKind.Invoke:return n;case S.SignatureHelpTriggerKind.ContentChange:return t;case S.SignatureHelpTriggerKind.TriggerCharacter:default:return n}}}),define(_[690],ee([1,0,15]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SuggestAlternatives=void 0;let N=class $t{constructor(I,L){this.g=I,this.b=0,this.a=$t.OtherSuggestions.bindTo(L)}dispose(){this.reset()}reset(){var I;this.a.reset(),(I=this.e)===null||I===void 0||I.dispose(),this.c=void 0,this.d=void 0,this.f=!1}set({model:I,index:L},S){if(I.items.length===0){this.reset();return}if($t.h(!0,I,L)===L){this.reset();return}this.d=S,this.c=I,this.b=L,this.e=this.g.onDidChangeCursorPosition(()=>{this.f||this.reset()}),this.a.set(!0)}static h(I,L,S){let v=S;for(;v=(v+L.items.length+(I?1:-1))%L.items.length,!(v===S||!L.items[v].completion.additionalTextEdits););return v}next(){this.i(!0)}prev(){this.i(!1)}i(I){if(!!this.c)try{this.f=!0,this.b=$t.h(I,this.c,this.b),this.d({index:this.b,item:this.c.items[this.b],model:this.c})}finally{this.f=!1}}};N.OtherSuggestions=new C.RawContextKey("hasOtherSuggestions",!1),N=Ne([ge(1,C.IContextKeyService)],N),e.SuggestAlternatives=N}),define(_[691],ee([1,0,15]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WordContextKey=void 0;let N=class Pi{constructor(I,L){this.f=I,this.c=!1,this.a=Pi.AtEnd.bindTo(L),this.b=this.f.onDidChangeConfiguration(S=>S.hasChanged(117)&&this.g()),this.g()}dispose(){var I;this.b.dispose(),(I=this.d)===null||I===void 0||I.dispose(),this.a.reset()}g(){const I=this.f.getOption(117)==="on";if(this.c!==I)if(this.c=I,this.c){const L=()=>{if(!this.f.hasModel()){this.a.set(!1);return}const S=this.f.getModel(),v=this.f.getSelection(),f=S.getWordAtPosition(v.getStartPosition());if(!f){this.a.set(!1);return}this.a.set(f.endColumn===v.getStartPosition().column)};this.d=this.f.onDidChangeCursorSelection(L),L()}else this.d&&(this.a.reset(),this.d.dispose(),this.d=void 0)}};N.AtEnd=new C.RawContextKey("atEndOfWord",!1),N=Ne([ge(1,C.IContextKeyService)],N),e.WordContextKey=N}),define(_[77],ee([1,0,15,8]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CONTEXT_ACCESSIBILITY_MODE_ENABLED=e.IAccessibilityService=void 0,e.IAccessibilityService=(0,N.createDecorator)("accessibilityService"),e.CONTEXT_ACCESSIBILITY_MODE_ENABLED=new C.RawContextKey("accessibilityModeEnabled",!1)}),define(_[692],ee([1,0,45,17,6,2,46,16,285,293,432,211,40,169,217,77]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ComputedEditorOptions=e.EditorConfiguration=void 0;let c=class extends I.Disposable{constructor(m,p,b,y){super(),this.t=y,this.c=this.q(new E.Emitter),this.onDidChange=this.c.event,this.g=this.q(new E.Emitter),this.onDidChangeFast=this.g.event,this.i=!1,this.j=1,this.k=1,this.l=0,this.m=new t.ComputeOptionsMemory,this.isSimpleWidget=m,this.h=this.q(new v.ElementSizeObserver(b,p.dimension)),this.p=h(p),this.s=u.validateOptions(this.p),this.options=this.v(),this.options.get(10)&&this.h.startObserving(),this.q(n.EditorZoom.onDidChangeZoomLevel(()=>this.u())),this.q(i.TabFocus.onDidChangeTabFocus(()=>this.u())),this.q(this.h.onDidChange(()=>this.u())),this.q(f.FontMeasurements.onDidChange(()=>this.u())),this.q(C.PixelRatio.onDidChange(()=>this.u())),this.q(this.t.onDidChangeScreenReaderOptimized(()=>this.u()))}u(){const m=this.v(),p=u.checkEquals(this.options,m);p!==null&&(this.options=m,this.g.fire(p),this.c.fire(p))}v(){const m=this.w(),p=a.BareFontInfo.createFromValidatedSettings(this.s,m.pixelRatio,this.isSimpleWidget),b=this.y(p),y={memory:this.m,outerWidth:m.outerWidth,outerHeight:m.outerHeight-this.l,fontInfo:b,extraEditorClassName:m.extraEditorClassName,isDominatedByLongLines:this.i,viewLineCount:this.j,lineNumbersDigitCount:this.k,emptySelectionClipboard:m.emptySelectionClipboard,pixelRatio:m.pixelRatio,tabFocusMode:i.TabFocus.getTabFocusMode("editorFocus"),accessibilitySupport:m.accessibilitySupport};return u.computeOptions(this.s,y)}w(){return{extraEditorClassName:s(),outerWidth:this.h.getWidth(),outerHeight:this.h.getHeight(),emptySelectionClipboard:C.isWebKit||C.isFirefox,pixelRatio:C.PixelRatio.value,accessibilitySupport:this.t.isScreenReaderOptimized()?2:this.t.getAccessibilitySupport()}}y(m){return f.FontMeasurements.readFontInfo(m)}getRawOptions(){return this.p}updateOptions(m){const p=h(m);!u.applyUpdate(this.p,p)||(this.s=u.validateOptions(this.p),this.u())}observeContainer(m){this.h.observe(m)}setIsDominatedByLongLines(m){this.i!==m&&(this.i=m,this.u())}setModelLineCount(m){const p=d(m);this.k!==p&&(this.k=p,this.u())}setViewLineCount(m){this.j!==m&&(this.j=m,this.u())}setReservedHeight(m){this.l!==m&&(this.l=m,this.u())}};c=Ne([ge(3,r.IAccessibilityService)],c),e.EditorConfiguration=c;function d(w){let m=0;for(;w;)w=Math.floor(w/10),m++;return m||1}function s(){let w="";return!C.isSafari&&!C.isWebkitWebView&&(w+="no-user-select "),C.isSafari&&(w+="no-minimap-shadow ",w+="enable-user-select "),S.isMacintosh&&(w+="mac "),w}class l{constructor(){this.c=[]}_read(m){return this.c[m]}get(m){return this.c[m]}_write(m,p){this.c[m]=p}}class o{constructor(){this.c=[]}_read(m){if(m>=this.c.length)throw new Error("Cannot read uninitialized value");return this.c[m]}get(m){return this._read(m)}_write(m,p){this.c[m]=p}}e.ComputedEditorOptions=o;class u{static validateOptions(m){const p=new l;for(const b of t.editorOptionsRegistry){const y=b.name==="_never_"?void 0:m[b.name];p._write(b.id,b.validate(y))}return p}static computeOptions(m,p){const b=new o;for(const y of t.editorOptionsRegistry)b._write(y.id,y.compute(p,b,m._read(y.id)));return b}static c(m,p){if(typeof m!="object"||typeof p!="object"||!m||!p)return m===p;if(Array.isArray(m)||Array.isArray(p))return Array.isArray(m)&&Array.isArray(p)?N.equals(m,p):!1;if(Object.keys(m).length!==Object.keys(p).length)return!1;for(const b in m)if(!u.c(m[b],p[b]))return!1;return!0}static checkEquals(m,p){const b=[];let y=!1;for(const k of t.editorOptionsRegistry){const D=!u.c(m._read(k.id),p._read(k.id));b[k.id]=D,D&&(y=!0)}return y?new t.ConfigurationChangedEvent(b):null}static applyUpdate(m,p){let b=!1;for(const y of t.editorOptionsRegistry)if(p.hasOwnProperty(y.name)){const k=y.applyUpdate(m[y.name],p[y.name]);m[y.name]=k.newValue,b=b||k.didChange}return b}}function h(w){const m=L.deepClone(w);return(0,g.migrateOptions)(m),m}}),define(_[301],ee([1,0,85,6,2,46,4,221,30,77]),function(q,e,C,N,E,I,L,S,v,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DiffNavigator=void 0;const g={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0,findResultLoop:!0};let i=class extends E.Disposable{constructor(n,a={},r,c,d){super(),this.n=r,this.p=c,this.r=d,this.c=this.q(new N.Emitter),this.a=n,this.b=I.mixin(a,g,!1),this.g=!1,this.j=-1,this.k=[],this.m=!1,this.h=Boolean(this.b.alwaysRevealFirst),this.q(this.a.onDidDispose(()=>this.dispose())),this.q(this.a.onDidUpdateDiff(()=>this.t())),this.b.followsCaret&&this.q(this.a.getModifiedEditor().onDidChangeCursorPosition(s=>{this.m||(this._updateAccessibilityState(s.position.lineNumber),this.j=-1)})),this.b.alwaysRevealFirst&&this.q(this.a.getModifiedEditor().onDidChangeModel(s=>{this.h=!0})),this.s()}s(){this.a.getLineChanges()}t(){this.s(),this.u(this.a.getLineChanges()),this.h&&this.a.getLineChanges()!==null&&(this.h=!1,this.j=-1,this.next(1))}u(n){this.k=[],n&&n.forEach(a=>{!this.b.ignoreCharChanges&&a.charChanges?a.charChanges.forEach(r=>{this.k.push({rhs:!0,range:new L.Range(r.modifiedStartLineNumber,r.modifiedStartColumn,r.modifiedEndLineNumber,r.modifiedEndColumn)})}):a.modifiedEndLineNumber===0?this.k.push({rhs:!0,range:new L.Range(a.modifiedStartLineNumber,1,a.modifiedStartLineNumber+1,1)}):this.k.push({rhs:!0,range:new L.Range(a.modifiedStartLineNumber,1,a.modifiedEndLineNumber+1,1)})}),this.k.sort((a,r)=>L.Range.compareRangesUsingStarts(a.range,r.range)),this.c.fire(this)}v(n){let a=!1;const r=this.a.getPosition();if(!r){this.j=0;return}for(let c=0,d=this.k.length;c<d&&!a;c++){const s=this.k[c].range;r.isBeforeOrEqual(s.getStartPosition())&&(this.j=c+(n?0:-1),a=!0)}a||(this.j=n?0:this.k.length-1),this.j<0&&(this.j=this.k.length-1)}w(n,a){if(C.ok(!this.g,"Illegal State - diff navigator has been disposed"),!this.canNavigate())return;this.j===-1?this.v(n):n?(this.j+=1,this.j>=this.k.length&&(this.j=0)):(this.j-=1,this.j<0&&(this.j=this.k.length-1));const r=this.k[this.j];this.m=!0;try{const c=r.range.getStartPosition();this.a.setPosition(c),this.a.revealRangeInCenter(r.range,a),this._updateAccessibilityState(c.lineNumber,!0)}finally{this.m=!1}}_updateAccessibilityState(n,a){var r;const c=(r=this.a.getModel())===null||r===void 0?void 0:r.modified;if(!c)return;const d=c.getLineDecorations(n).find(l=>l.options.className==="line-insert");if(d)this.n.playAudioCue(S.AudioCue.diffLineModified,!0);else if(a)this.n.playAudioCue(S.AudioCue.diffLineDeleted,!0);else return;const s=this.p.getActiveCodeEditor();a&&s&&d&&this.r.isScreenReaderOptimized()&&(s.setSelection({startLineNumber:n,startColumn:0,endLineNumber:n,endColumn:Number.MAX_VALUE}),s.writeScreenReaderContent("diff-navigation"))}canNavigate(){return this.k&&this.k.length>0}next(n=0){!this.canNavigateNext()||this.w(!0,n)}previous(n=0){!this.canNavigatePrevious()||this.w(!1,n)}canNavigateNext(){return this.canNavigateLoop()||this.j<this.k.length-1}canNavigatePrevious(){return this.canNavigateLoop()||this.j!==0}canNavigateLoop(){return Boolean(this.b.findResultLoop)}dispose(){super.dispose(),this.k=[],this.g=!0}};i=Ne([ge(2,S.IAudioCueService),ge(3,v.ICodeEditorService),ge(4,f.IAccessibilityService)],i),e.DiffNavigator=i}),define(_[693],ee([1,0,6,54,2,46,182,21,663,25,27,15]),function(q,e,C,N,E,I,L,S,v,f,g,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setContext=e.ContextKeyService=e.AbstractContextKeyService=e.Context=void 0;const t="data-keybinding-context";class n{constructor(k,D){this.f=k,this.c=D,this.d=Object.create(null),this.d._contextId=k}get value(){return Object.assign({},this.d)}setValue(k,D){return this.d[k]!==D?(this.d[k]=D,!0):!1}removeValue(k){return k in this.d?(delete this.d[k],!0):!1}getValue(k){const D=this.d[k];return typeof D>"u"&&this.c?this.c.getValue(k):D}}e.Context=n;class a extends n{constructor(){super(-1,null)}setValue(k,D){return!1}removeValue(k){return!1}getValue(k){}}a.INSTANCE=new a;class r extends n{constructor(k,D,M){super(k,null),this.j=D,this.h=L.TernarySearchTree.forConfigKeys(),this.i=this.j.onDidChangeConfiguration(z=>{if(z.source===7){const R=Array.from(this.h,([P])=>P);this.h.clear(),M.fire(new s(R))}else{const R=[];for(const P of z.affectedKeys){const A=`config.${P}`,T=this.h.findSuperstr(A);T!==void 0&&(R.push(...N.Iterable.map(T,([O])=>O)),this.h.deleteSuperstr(A)),this.h.has(A)&&(R.push(A),this.h.delete(A))}M.fire(new s(R))}})}dispose(){this.i.dispose()}getValue(k){if(k.indexOf(r.g)!==0)return super.getValue(k);if(this.h.has(k))return this.h.get(k);const D=k.substr(r.g.length),M=this.j.getValue(D);let z;switch(typeof M){case"number":case"boolean":case"string":z=M;break;default:Array.isArray(M)?z=JSON.stringify(M):z=M}return this.h.set(k,z),z}setValue(k,D){return super.setValue(k,D)}removeValue(k){return super.removeValue(k)}}r.g="config.";class c{constructor(k,D,M){this.c=k,this.d=D,this.f=M,this.reset()}set(k){this.c.setContext(this.d,k)}reset(){typeof this.f>"u"?this.c.removeContext(this.d):this.c.setContext(this.d,this.f)}get(){return this.c.getContextKeyValue(this.d)}}class d{constructor(k){this.key=k}affectsSome(k){return k.has(this.key)}allKeysContainedIn(k){return this.affectsSome(k)}}class s{constructor(k){this.keys=k}affectsSome(k){for(const D of this.keys)if(k.has(D))return!0;return!1}allKeysContainedIn(k){return this.keys.every(D=>k.has(D))}}class l{constructor(k){this.events=k}affectsSome(k){for(const D of this.events)if(D.affectsSome(k))return!0;return!1}allKeysContainedIn(k){return this.events.every(D=>D.allKeysContainedIn(k))}}function o(y,k){return y.allKeysContainedIn(new Set(Object.keys(k)))}class u{constructor(k){this.f=new C.PauseableEmitter({merge:D=>new l(D)}),this.onDidChangeContext=this.f.event,this.c=!1,this.d=k}createKey(k,D){if(this.c)throw new Error("AbstractContextKeyService has been disposed");return new c(this,k,D)}bufferChangeEvents(k){this.f.pause();try{k()}finally{this.f.resume()}}createScoped(k){if(this.c)throw new Error("AbstractContextKeyService has been disposed");return new w(this,k)}contextMatchesRules(k){if(this.c)throw new Error("AbstractContextKeyService has been disposed");const D=this.getContextValuesContainer(this.d);return k?k.evaluate(D):!0}getContextKeyValue(k){if(!this.c)return this.getContextValuesContainer(this.d).getValue(k)}setContext(k,D){if(this.c)return;const M=this.getContextValuesContainer(this.d);!M||M.setValue(k,D)&&this.f.fire(new d(k))}removeContext(k){this.c||this.getContextValuesContainer(this.d).removeValue(k)&&this.f.fire(new d(k))}getContext(k){return this.c?a.INSTANCE:this.getContextValuesContainer(m(k))}}e.AbstractContextKeyService=u;let h=class extends u{constructor(k){super(0),this.h=new Map,this.i=new E.DisposableStore,this.g=0;const D=new r(this.d,k,this.f);this.h.set(this.d,D),this.i.add(D)}dispose(){this.f.dispose(),this.c=!0,this.i.dispose()}getContextValuesContainer(k){return this.c?a.INSTANCE:this.h.get(k)||a.INSTANCE}createChildContext(k=this.d){if(this.c)throw new Error("ContextKeyService has been disposed");const D=++this.g;return this.h.set(D,new n(D,this.getContextValuesContainer(k))),D}disposeContext(k){this.c||this.h.delete(k)}};h=Ne([ge(0,g.IConfigurationService)],h),e.ContextKeyService=h;class w extends u{constructor(k,D){if(super(k.createChildContext()),this.i=new E.MutableDisposable,this.g=k,this.j(),this.h=D,this.h.hasAttribute(t)){let M="";this.h.classList&&(M=Array.from(this.h.classList.values()).join(", ")),console.error(`Element already has context attribute${M?": "+M:""}`)}this.h.setAttribute(t,String(this.d))}j(){this.i.value=this.g.onDidChangeContext(k=>{const M=this.g.getContextValuesContainer(this.d).value;o(k,M)||this.f.fire(k)})}dispose(){this.c||(this.f.dispose(),this.g.disposeContext(this.d),this.i.dispose(),this.h.removeAttribute(t),this.c=!0)}getContextValuesContainer(k){return this.c?a.INSTANCE:this.g.getContextValuesContainer(k)}createChildContext(k=this.d){if(this.c)throw new Error("ScopedContextKeyService has been disposed");return this.g.createChildContext(k)}disposeContext(k){this.c||this.g.disposeContext(k)}}function m(y){for(;y;){if(y.hasAttribute(t)){const k=y.getAttribute(t);return k?parseInt(k,10):NaN}y=y.parentElement}return 0}function p(y,k,D){y.get(i.IContextKeyService).createKey(String(k),b(D))}e.setContext=p;function b(y){return(0,I.cloneAndChange)(y,k=>{if(typeof k=="object"&&k.$mid===1)return S.URI.revive(k).toString();if(k instanceof S.URI)return k.toString()})}f.CommandsRegistry.registerCommand("_setContext",p),f.CommandsRegistry.registerCommand({id:"getContextKeyInfo",handler(){return[...i.RawContextKey.all()].sort((y,k)=>y.key.localeCompare(k.key))},description:{description:(0,v.localize)(0,null),args:[]}}),f.CommandsRegistry.registerCommand("_generateContextKeyInfo",function(){const y=[],k=new Set;for(const D of i.RawContextKey.all())k.has(D.key)||(k.add(D.key),y.push(D));y.sort((D,M)=>D.key.localeCompare(M.key)),console.log(JSON.stringify(y,void 0,2))})}),define(_[302],ee([1,0,16,664,15]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InputFocusedContext=e.InputFocusedContextKey=e.ProductQualityContext=e.IsDevelopmentContext=e.IsMobileContext=e.IsIOSContext=e.IsMacNativeContext=e.IsWebContext=e.IsWindowsContext=e.IsLinuxContext=e.IsMacContext=void 0,e.IsMacContext=new E.RawContextKey("isMac",C.isMacintosh,(0,N.localize)(0,null)),e.IsLinuxContext=new E.RawContextKey("isLinux",C.isLinux,(0,N.localize)(1,null)),e.IsWindowsContext=new E.RawContextKey("isWindows",C.isWindows,(0,N.localize)(2,null)),e.IsWebContext=new E.RawContextKey("isWeb",C.isWeb,(0,N.localize)(3,null)),e.IsMacNativeContext=new E.RawContextKey("isMacNative",C.isMacintosh&&!C.isWeb,(0,N.localize)(4,null)),e.IsIOSContext=new E.RawContextKey("isIOS",C.isIOS,(0,N.localize)(5,null)),e.IsMobileContext=new E.RawContextKey("isMobile",C.isMobile,(0,N.localize)(6,null)),e.IsDevelopmentContext=new E.RawContextKey("isDevelopment",!1,!0),e.ProductQualityContext=new E.RawContextKey("productQualityType","",(0,N.localize)(7,null)),e.InputFocusedContextKey="inputFocus",e.InputFocusedContext=new E.RawContextKey(e.InputFocusedContextKey,!1,(0,N.localize)(8,null))}),define(_[57],ee([1,0,8]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IContextMenuService=e.IContextViewService=void 0,e.IContextViewService=(0,C.createDecorator)("contextViewService"),e.IContextMenuService=(0,C.createDecorator)("contextMenuService")}),define(_[144],ee([1,0,8]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IDialogService=void 0,e.IDialogService=(0,C.createDecorator)("dialogService")}),define(_[173],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ServiceCollection=void 0;class C{constructor(...E){this.a=new Map;for(const[I,L]of E)this.set(I,L)}set(E,I){const L=this.a.get(E);return this.a.set(E,I),L}get(E){return this.a.get(E)}}e.ServiceCollection=C}),define(_[694],ee([1,0,11,13,2,218,683,8,173,59]),function(q,e,C,N,E,I,L,S,v,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Trace=e.InstantiationService=void 0;const g=!1;class i extends Error{constructor(r){var c;super("cyclic dependency between services"),this.message=(c=r.findCycleSlow())!==null&&c!==void 0?c:`UNABLE to detect cycle, dumping graph:
|
||
${r.toString()}`}}class t{constructor(r=new v.ServiceCollection,c=!1,d,s=g){var l;this.f=r,this.g=c,this.h=d,this.i=s,this.o=new Set,this.f.set(S.IInstantiationService,this),this._globalGraph=s?(l=d?._globalGraph)!==null&&l!==void 0?l:new L.Graph(o=>o):void 0}createChild(r){return new t(r,this.g,this,this.i)}invokeFunction(r,...c){const d=n.traceInvocation(this.i,r);let s=!1;try{return r({get:o=>{if(s)throw(0,N.illegalState)("service accessor is only valid during the invocation of its target method");const u=this.m(o,d);if(!u)throw new Error(`[invokeFunction] unknown service '${o}'`);return u}},...c)}finally{s=!0,d.stop()}}createInstance(r,...c){let d,s;return r instanceof I.SyncDescriptor?(d=n.traceCreation(this.i,r.ctor),s=this.j(r.ctor,r.staticArguments.concat(c),d)):(d=n.traceCreation(this.i,r),s=this.j(r,c,d)),d.stop(),s}j(r,c=[],d){const s=S._util.getServiceDependencies(r).sort((u,h)=>u.index-h.index),l=[];for(const u of s){const h=this.m(u.id,d);h||this.u(`[createInstance] ${r.name} depends on UNKNOWN service ${u.id}.`,!1),l.push(h)}const o=s.length>0?s[0].index:c.length;if(c.length!==o){console.trace(`[createInstance] First service dependency of ${r.name} at position ${o+1} conflicts with ${c.length} static arguments`);const u=o-c.length;u>0?c=c.concat(new Array(u)):c=c.slice(0,o)}return Reflect.construct(r,c.concat(l))}k(r,c){if(this.f.get(r)instanceof I.SyncDescriptor)this.f.set(r,c);else if(this.h)this.h.k(r,c);else throw new Error("illegalState - setting UNKNOWN service instance")}l(r){const c=this.f.get(r);return!c&&this.h?this.h.l(r):c}m(r,c){this._globalGraph&&this.c&&this._globalGraph.insertEdge(this.c,String(r));const d=this.l(r);return d instanceof I.SyncDescriptor?this.q(r,d,c.branch(r,!0)):(c.branch(r,!1),d)}q(r,c,d){if(this.o.has(r))throw new Error(`illegal state - RECURSIVELY instantiating service '${r}'`);this.o.add(r);try{return this.r(r,c,d)}finally{this.o.delete(r)}}r(r,c,d){var s;const l=new L.Graph(h=>h.id.toString());let o=0;const u=[{id:r,desc:c,_trace:d}];for(;u.length;){const h=u.pop();if(l.lookupOrInsertNode(h),o++>1e3)throw new i(l);for(const w of S._util.getServiceDependencies(h.desc.ctor)){const m=this.l(w.id);if(m||this.u(`[createInstance] ${r} depends on ${w.id} which is NOT registered.`,!0),(s=this._globalGraph)===null||s===void 0||s.insertEdge(String(h.id),String(w.id)),m instanceof I.SyncDescriptor){const p={id:w.id,desc:m,_trace:h._trace.branch(w.id,!0)};l.insertEdge(h,p),u.push(p)}}}for(;;){const h=l.roots();if(h.length===0){if(!l.isEmpty())throw new i(l);break}for(const{data:w}of h){if(this.l(w.id)instanceof I.SyncDescriptor){const p=this.s(w.id,w.desc.ctor,w.desc.staticArguments,w.desc.supportsDelayedInstantiation,w._trace);this.k(w.id,p)}l.removeNode(w)}}return this.l(r)}s(r,c,d=[],s,l){if(this.f.get(r)instanceof I.SyncDescriptor)return this.t(r,c,d,s,l);if(this.h)return this.h.s(r,c,d,s,l);throw new Error(`illegalState - creating UNKNOWN service instance ${c.name}`)}t(r,c,d=[],s,l){if(s){const o=new t(void 0,this.g,this,this.i);o.c=String(r);const u=new Map,h=new C.IdleValue(()=>{const w=o.j(c,d,l);for(const[m,p]of u){const b=w[m];if(typeof b=="function")for(const y of p)b.apply(w,y)}return u.clear(),w});return new Proxy(Object.create(null),{get(w,m){if(!h.isInitialized&&typeof m=="string"&&(m.startsWith("onDid")||m.startsWith("onWill"))){let y=u.get(m);return y||(y=new f.LinkedList,u.set(m,y)),(D,M,z)=>{const R=y.push([D,M,z]);return(0,E.toDisposable)(R)}}if(m in w)return w[m];const p=h.value;let b=p[m];return typeof b!="function"||(b=b.bind(p),w[m]=b),b},set(w,m,p){return h.value[m]=p,!0},getPrototypeOf(w){return c.prototype}})}else return this.j(c,d,l)}u(r,c){if(c&&console.warn(r),this.g)throw new Error(r)}}e.InstantiationService=t;class n{static traceInvocation(r,c){return r?new n(2,c.name||new Error().stack.split(`
|
||
`).slice(3,4).join(`
|
||
`)):n.c}static traceCreation(r,c){return r?new n(1,c.name):n.c}constructor(r,c){this.type=r,this.name=c,this.g=Date.now(),this.h=[]}branch(r,c){const d=new n(3,r.toString());return this.h.push([r,c,d]),d}stop(){const r=Date.now()-this.g;n.f+=r;let c=!1;function d(l,o){const u=[],h=new Array(l+1).join(" ");for(const[w,m,p]of o.h)if(m&&p){c=!0,u.push(`${h}CREATES -> ${w}`);const b=d(l+1,p);b&&u.push(b)}else u.push(`${h}uses -> ${w}`);return u.join(`
|
||
`)}const s=[`${this.type===1?"CREATE":"CALL"} ${this.name}`,`${d(1,this)}`,`DONE, took ${r.toFixed(2)}ms (grand total ${n.f.toFixed(2)}ms)`];(r>2||c)&&n.all.add(s.join(`
|
||
`))}}n.all=new Set,n.c=new class extends n{constructor(){super(0,null)}stop(){}branch(){return this}},n.f=0,e.Trace=n}),define(_[695],ee([1,0,11,6,2,666,272]),function(q,e,C,N,E,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractKeybindingService=void 0;const S=/^(cursor|delete|undo|redo|tab|editor\.action\.clipboard)/;class v extends E.Disposable{get onDidUpdateKeybindings(){return this.a?this.a.event:N.Event.None}constructor(i,t,n,a,r){super(),this.m=i,this.n=t,this.p=n,this.s=a,this.t=r,this.a=this.q(new N.Emitter),this.b=null,this.c=new C.IntervalTimer,this.g=null,this.h=f.EMPTY,this.j=null,this.k=new C.TimeoutTimer,this.l=!1}dispose(){super.dispose()}w(i){this.l&&this.t.info(`[KeybindingService]: ${i}`)}getKeybindings(){return this.u().getKeybindings()}lookupKeybinding(i,t){const n=this.u().lookupPrimaryKeybinding(i,t||this.m);if(!!n)return n.resolvedKeybinding}dispatchEvent(i,t){return this.B(i,t)}softDispatch(i,t){this.w("/ Soft dispatching keyboard event");const n=this.resolveKeyboardEvent(i);if(n.hasMultipleChords())return console.warn("Unexpected keyboard event mapped to multiple chords"),null;const[a]=n.getDispatchChords();if(a===null)return this.w("\\ Keyboard event cannot be dispatched"),null;const r=this.m.getContext(t),c=this.b?this.b.keypress:null;return this.u().resolve(r,c,a)}y(i,t){this.b={keypress:i,label:t},this.g=this.s.status(I.localize(0,null,t));const n=Date.now();this.c.cancelAndSet(()=>{if(!this.v()){this.z();return}Date.now()-n>5e3&&this.z()},500),L.IME.disable()}z(){this.g&&(this.g.dispose(),this.g=null),this.c.cancel(),this.b=null,L.IME.enable()}B(i,t){return this.F(this.resolveKeyboardEvent(i),t,!1)}D(i,t){const n=this.resolveKeyboardEvent(i),[a]=n.getSingleModifierDispatchChords();if(a)return this.h.has(a)?(this.w(`+ Ignoring single modifier ${a} due to it being pressed together with other keys.`),this.h=f.EMPTY,this.k.cancel(),this.j=null,!1):(this.h=f.EMPTY,this.j===null?(this.w(`+ Storing single modifier for possible chord ${a}.`),this.j=a,this.k.cancelAndSet(()=>{this.w("+ Clearing single modifier due to 300ms elapsed."),this.j=null},300),!1):a===this.j?(this.w(`/ Dispatching single modifier chord ${a} ${a}`),this.k.cancel(),this.j=null,this.F(n,t,!0)):(this.w(`+ Clearing single modifier due to modifier mismatch: ${this.j} ${a}`),this.k.cancel(),this.j=null,!1));const[r]=n.getChords();return this.h=new f(r),this.j!==null&&this.w("+ Clearing single modifier due to other key up."),this.k.cancel(),this.j=null,!1}F(i,t,n=!1){let a=!1;if(i.hasMultipleChords())return console.warn("Unexpected keyboard event mapped to multiple chords"),!1;let r=null,c=null;if(n){const[o]=i.getSingleModifierDispatchChords();r=o,c=o}else[r]=i.getDispatchChords(),c=this.b?this.b.keypress:null;if(r===null)return this.w("\\ Keyboard event cannot be dispatched in keydown phase."),a;const d=this.m.getContext(t),s=i.getLabel(),l=this.u().resolve(d,c,r);return this.t.trace("KeybindingService#dispatch",s,l?.commandId),l&&l.enterMultiChord?(a=!0,this.y(r,s),this.w("+ Entering chord mode..."),a):(this.b&&(!l||!l.commandId)&&(this.w(`+ Leaving chord mode: Nothing bound to "${this.b.label} ${s}".`),this.s.status(I.localize(1,null,this.b.label,s),{hideAfter:10*1e3}),a=!0),this.z(),l&&l.commandId&&(l.bubble||(a=!0),this.w(`+ Invoking command ${l.commandId}.`),typeof l.commandArgs>"u"?this.n.executeCommand(l.commandId).then(void 0,o=>this.s.warn(o)):this.n.executeCommand(l.commandId,l.commandArgs).then(void 0,o=>this.s.warn(o)),S.test(l.commandId)||this.p.publicLog2("workbenchActionExecuted",{id:l.commandId,from:"keybinding"})),a)}mightProducePrintableCharacter(i){return i.ctrlKey||i.metaKey?!1:i.keyCode>=31&&i.keyCode<=56||i.keyCode>=21&&i.keyCode<=30}}e.AbstractKeybindingService=v;class f{constructor(i){this.a=i?i.ctrlKey:!1,this.b=i?i.shiftKey:!1,this.c=i?i.altKey:!1,this.d=i?i.metaKey:!1}has(i){switch(i){case"ctrl":return this.a;case"shift":return this.b;case"alt":return this.c;case"meta":return this.d}}}f.EMPTY=new f(null)}),define(_[696],ee([1,0,13,197,110]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BaseResolvedKeybinding=void 0;class I extends E.ResolvedKeybinding{constructor(S,v){if(super(),v.length===0)throw(0,C.illegalArgument)("chords");this.a=S,this.b=v}getLabel(){return N.UILabelProvider.toLabel(this.a,this.b,S=>this.d(S))}getAriaLabel(){return N.AriaLabelProvider.toLabel(this.a,this.b,S=>this.e(S))}getElectronAccelerator(){return this.b.length>1||this.b[0].isDuplicateModifierCase()?null:N.ElectronAcceleratorLabelProvider.toLabel(this.a,this.b,S=>this.f(S))}hasMultipleChords(){return this.b.length>1}getChords(){return this.b.map(S=>this.c(S))}c(S){return new E.ResolvedChord(S.ctrlKey,S.shiftKey,S.altKey,S.metaKey,this.d(S),this.e(S))}getDispatchChords(){return this.b.map(S=>this.g(S))}getSingleModifierDispatchChords(){return this.b.map(S=>this.h(S))}}e.BaseResolvedKeybinding=I}),define(_[38],ee([1,0,8]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IKeybindingService=void 0,e.IKeybindingService=(0,C.createDecorator)("keybindingService")}),define(_[697],ee([1,0,7,56,29,32,6,2,18,191,588,38,395]),function(q,e,C,N,E,I,L,S,v,f,g,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LightBulbWidget=void 0;var t;(function(a){a.Hidden={type:0};class r{constructor(d,s,l,o){this.actions=d,this.trigger=s,this.editorPosition=l,this.widgetPosition=o,this.type=1}}a.Showing=r})(t||(t={}));let n=class Oi extends S.Disposable{constructor(r,c,d,s){super(),this.j=r,this.c=this.q(new L.Emitter),this.onClick=this.c.event,this.g=t.Hidden,this.b=C.$("div.lightBulbWidget"),this.q(N.Gesture.ignoreTarget(this.b)),this.j.addContentWidget(this),this.q(this.j.onDidChangeModelContent(l=>{const o=this.j.getModel();(this.k.type!==1||!o||this.k.editorPosition.lineNumber>=o.getLineCount())&&this.hide()})),this.q(C.addStandardDisposableGenericMouseDownListener(this.b,l=>{if(this.k.type!==1)return;this.j.focus(),l.preventDefault();const{top:o,height:u}=C.getDomNodePagePosition(this.b),h=this.j.getOption(63);let w=Math.floor(h/3);this.k.widgetPosition.position!==null&&this.k.widgetPosition.position.lineNumber<this.k.editorPosition.lineNumber&&(w+=h),this.c.fire({x:l.posx,y:o+u+w,actions:this.k.actions,trigger:this.k.trigger})})),this.q(C.addDisposableListener(this.b,"mouseenter",l=>{(l.buttons&1)===1&&this.hide()})),this.q(this.j.onDidChangeConfiguration(l=>{l.hasChanged(61)&&!this.j.getOption(61).enabled&&this.hide()})),this.q(L.Event.runAndSubscribe(s.onDidUpdateKeybindings,()=>{var l,o;this.h=(0,v.withNullAsUndefined)((l=s.lookupKeybinding(d))===null||l===void 0?void 0:l.getLabel()),this.i=(0,v.withNullAsUndefined)((o=s.lookupKeybinding(c))===null||o===void 0?void 0:o.getLabel()),this.l()}))}dispose(){super.dispose(),this.j.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this.b}getPosition(){return this.g.type===1?this.g.widgetPosition:null}update(r,c,d){if(r.validActions.length<=0)return this.hide();const s=this.j.getOptions();if(!s.get(61).enabled)return this.hide();const l=this.j.getModel();if(!l)return this.hide();const{lineNumber:o,column:u}=l.validatePosition(d),h=l.getOptions().tabSize,w=s.get(47),m=l.getLineContent(o),p=(0,f.computeIndentLevel)(m,h),b=w.spaceWidth*p>22,y=D=>D>2&&this.j.getTopForLineNumber(D)===this.j.getTopForLineNumber(D-1);let k=o;if(!b){if(o>1&&!y(o-1))k-=1;else if(!y(o+1))k+=1;else if(u*w.spaceWidth<22)return this.hide()}this.k=new t.Showing(r,c,d,{position:{lineNumber:k,column:1},preference:Oi.a}),this.j.layoutContentWidget(this)}hide(){this.k!==t.Hidden&&(this.k=t.Hidden,this.j.layoutContentWidget(this))}get k(){return this.g}set k(r){this.g=r,this.l()}l(){if(this.k.type===1&&this.k.actions.hasAutoFix&&(this.b.classList.remove(...I.ThemeIcon.asClassNameArray(E.Codicon.lightBulb)),this.b.classList.add(...I.ThemeIcon.asClassNameArray(E.Codicon.lightbulbAutofix)),this.h)){this.m=g.localize(0,null,this.h);return}this.b.classList.remove(...I.ThemeIcon.asClassNameArray(E.Codicon.lightbulbAutofix)),this.b.classList.add(...I.ThemeIcon.asClassNameArray(E.Codicon.lightBulb)),this.i?this.m=g.localize(1,null,this.i):this.m=g.localize(2,null)}set m(r){this.b.title=r}};n.a=[0],n=Ne([ge(3,i.IKeybindingService)],n),e.LightBulbWidget=n}),define(_[698],ee([1,0,15]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KeybindingResolver=void 0;class N{constructor(S,v,f){this.c=f,this.d=S,this.f=new Map;for(const g of S){const i=g.command;i&&i.charAt(0)!=="-"&&this.f.set(i,!0)}this.g=new Map,this.h=new Map,this.e=N.handleRemovals([].concat(S).concat(v));for(let g=0,i=this.e.length;g<i;g++){const t=this.e[g];t.chords.length!==0&&(t.when&&t.when.type===0||this.l(t.chords[0],t))}}static j(S,v,f,g){return!(v&&S.chords[0]!==v||f&&S.chords[1]!==f||g&&g.type!==1&&(!S.when||!(0,C.expressionsAreEqualWithConstantSubstitution)(g,S.when)))}static handleRemovals(S){const v=new Map;for(let g=0,i=S.length;g<i;g++){const t=S[g];if(t.command&&t.command.charAt(0)==="-"){const n=t.command.substring(1);v.has(n)?v.get(n).push(t):v.set(n,[t])}}if(v.size===0)return S;const f=[];for(let g=0,i=S.length;g<i;g++){const t=S[g];if(!t.command||t.command.length===0){f.push(t);continue}if(t.command.charAt(0)==="-")continue;const n=v.get(t.command);if(!n||!t.isDefault){f.push(t);continue}let a=!1;for(const r of n){const c=r.chords[0],d=r.chords[1],s=r.when;if(this.j(t,c,d,s)){a=!0;break}}if(!a){f.push(t);continue}}return f}l(S,v){const f=this.g.get(S);if(typeof f>"u"){this.g.set(S,[v]),this.m(v);return}for(let g=f.length-1;g>=0;g--){const i=f[g];if(i.command===v.command)continue;const t=i.chords.length>1,n=v.chords.length>1;t&&n&&i.chords[1]!==v.chords[1]||N.whenIsEntirelyIncluded(i.when,v.when)&&this.n(i)}f.push(v),this.m(v)}m(S){if(!S.command)return;let v=this.h.get(S.command);typeof v>"u"?(v=[S],this.h.set(S.command,v)):v.push(S)}n(S){if(!S.command)return;const v=this.h.get(S.command);if(!(typeof v>"u")){for(let f=0,g=v.length;f<g;f++)if(v[f]===S){v.splice(f,1);return}}}static whenIsEntirelyIncluded(S,v){return!v||v.type===1?!0:!S||S.type===1?!1:(0,C.implies)(S,v)}getKeybindings(){return this.e}lookupPrimaryKeybinding(S,v){const f=this.h.get(S);if(typeof f>"u"||f.length===0)return null;if(f.length===1)return f[0];for(let g=f.length-1;g>=0;g--){const i=f[g];if(v.contextMatchesRules(i.when))return i}return f[f.length-1]}resolve(S,v,f){this.c(`| Resolving ${f}${v?` chorded from ${v}`:""}`);let g=null;if(v!==null){const t=this.g.get(v);if(typeof t>"u")return this.c("\\ No keybinding entries."),null;g=[];for(let n=0,a=t.length;n<a;n++){const r=t[n];r.chords[1]===f&&g.push(r)}}else{const t=this.g.get(f);if(typeof t>"u")return this.c("\\ No keybinding entries."),null;g=t}const i=this.o(S,g);return i?v===null&&i.chords.length>1&&i.chords[1]!==null?(this.c(`\\ From ${g.length} keybinding entries, matched chord, when: ${E(i.when)}, source: ${I(i)}.`),{enterMultiChord:!0,leaveMultiChord:!1,commandId:null,commandArgs:null,bubble:!1}):(this.c(`\\ From ${g.length} keybinding entries, matched ${i.command}, when: ${E(i.when)}, source: ${I(i)}.`),{enterMultiChord:!1,leaveMultiChord:i.chords.length>1,commandId:i.command,commandArgs:i.commandArgs,bubble:i.bubble}):(this.c(`\\ From ${g.length} keybinding entries, no when clauses matched the context.`),null)}o(S,v){for(let f=v.length-1;f>=0;f--){const g=v[f];if(!!N.p(S,g.when))return g}return null}static p(S,v){return v?v.evaluate(S):!0}}e.KeybindingResolver=N;function E(L){return L?`${L.serialize()}`:"no when condition"}function I(L){return L.extensionId?L.isBuiltinExtension?`built-in extension ${L.extensionId}`:`user extension ${L.extensionId}`:L.isDefault?"built-in":"user"}}),define(_[303],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toEmptyArrayIfContainsNull=e.ResolvedKeybindingItem=void 0;class C{constructor(I,L,S,v,f,g,i){this._resolvedKeybindingItemBrand=void 0,this.resolvedKeybinding=I,this.chords=I?N(I.getDispatchChords()):[],I&&this.chords.length===0&&(this.chords=N(I.getSingleModifierDispatchChords())),this.bubble=L?L.charCodeAt(0)===94:!1,this.command=this.bubble?L.substr(1):L,this.commandArgs=S,this.when=v,this.isDefault=f,this.extensionId=g,this.isBuiltinExtension=i}}e.ResolvedKeybindingItem=C;function N(E){const I=[];for(let L=0,S=E.length;L<S;L++){const v=E[L];if(!v)return[];I.push(v)}return I}e.toEmptyArrayIfContainsNull=N}),define(_[699],ee([1,0,58,110,696,303]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.USLayoutResolvedKeybinding=void 0;class L extends E.BaseResolvedKeybinding{constructor(v,f){super(f,v)}i(v){if(this.a===2)switch(v){case 15:return"\u2190";case 16:return"\u2191";case 17:return"\u2192";case 18:return"\u2193"}return C.KeyCodeUtils.toString(v)}d(v){return v.isDuplicateModifierCase()?"":this.i(v.keyCode)}e(v){return v.isDuplicateModifierCase()?"":C.KeyCodeUtils.toString(v.keyCode)}f(v){return C.KeyCodeUtils.toElectronAccelerator(v.keyCode)}g(v){return L.getDispatchStr(v)}static getDispatchStr(v){if(v.isModifierKey())return null;let f="";return v.ctrlKey&&(f+="ctrl+"),v.shiftKey&&(f+="shift+"),v.altKey&&(f+="alt+"),v.metaKey&&(f+="meta+"),f+=C.KeyCodeUtils.toString(v.keyCode),f}h(v){return v.keyCode===5&&!v.shiftKey&&!v.altKey&&!v.metaKey?"ctrl":v.keyCode===4&&!v.ctrlKey&&!v.altKey&&!v.metaKey?"shift":v.keyCode===6&&!v.ctrlKey&&!v.shiftKey&&!v.metaKey?"alt":v.keyCode===57&&!v.ctrlKey&&!v.shiftKey&&!v.altKey?"meta":null}static o(v){const f=C.IMMUTABLE_CODE_TO_KEY_CODE[v];if(f!==-1)return f;switch(v){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 p(v){if(!v)return null;if(v instanceof N.KeyCodeChord)return v;const f=this.o(v.scanCode);return f===0?null:new N.KeyCodeChord(v.ctrlKey,v.shiftKey,v.altKey,v.metaKey,f)}static resolveKeybinding(v,f){const g=(0,I.toEmptyArrayIfContainsNull)(v.chords.map(i=>this.p(i)));return g.length>0?[new L(g,f)]:[]}}e.USLayoutResolvedKeybinding=L}),define(_[145],ee([1,0,8]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ILabelService=void 0,e.ILabelService=(0,C.createDecorator)("labelService")}),define(_[120],ee([1,0,8]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ILayoutService=void 0,e.ILayoutService=(0,C.createDecorator)("layoutService")}),define(_[304],ee([1,0,7,6,120,30,49]),function(q,e,C,N,E,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorScopedLayoutService=void 0;let S=class{get dimension(){return this.a||(this.a=C.getClientArea(window.document.body)),this.a}get hasContainer(){return!1}get container(){throw new Error("ILayoutService.container is not available in the standalone editor!")}focus(){var g;(g=this.b.getFocusedCodeEditor())===null||g===void 0||g.focus()}constructor(g){this.b=g,this.onDidLayout=N.Event.None,this.offset={top:0,quickPickTop:0}}};S=Ne([ge(0,I.ICodeEditorService)],S);let v=class extends S{get hasContainer(){return!1}get container(){return this.c}constructor(g,i){super(i),this.c=g}};v=Ne([ge(1,I.ICodeEditorService)],v),e.EditorScopedLayoutService=v,(0,L.registerSingleton)(E.ILayoutService,S,1)}),define(_[700],ee([1,0,7,6,2,77,27,15,120]),function(q,e,C,N,E,I,L,S,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AccessibilityService=void 0;let f=class extends E.Disposable{constructor(i,t,n){super(),this.j=i,this.k=t,this.l=n,this.b=0,this.c=new N.Emitter,this.i=new N.Emitter,this.a=I.CONTEXT_ACCESSIBILITY_MODE_ENABLED.bindTo(this.j);const a=()=>this.a.set(this.isScreenReaderOptimized());this.q(this.l.onDidChangeConfiguration(c=>{c.affectsConfiguration("editor.accessibilitySupport")&&(a(),this.c.fire()),c.affectsConfiguration("workbench.reduceMotion")&&(this.g=this.l.getValue("workbench.reduceMotion"),this.i.fire())})),a(),this.q(this.onDidChangeScreenReaderOptimized(()=>a()));const r=window.matchMedia("(prefers-reduced-motion: reduce)");this.h=r.matches,this.g=this.l.getValue("workbench.reduceMotion"),this.m(r)}m(i){if(!this.k.hasContainer)return;this.q((0,C.addDisposableListener)(i,"change",()=>{this.h=i.matches,this.g==="auto"&&this.i.fire()}));const t=()=>{const n=this.isMotionReduced();this.k.container.classList.toggle("reduce-motion",n),this.k.container.classList.toggle("enable-motion",!n)};t(),this.q(this.onDidChangeReducedMotion(()=>t()))}get onDidChangeScreenReaderOptimized(){return this.c.event}isScreenReaderOptimized(){const i=this.l.getValue("editor.accessibilitySupport");return i==="on"||i==="auto"&&this.b===2}get onDidChangeReducedMotion(){return this.i.event}isMotionReduced(){const i=this.g;return i==="on"||i==="auto"&&this.h}getAccessibilitySupport(){return this.b}};f=Ne([ge(0,S.IContextKeyService),ge(1,v.ILayoutService),ge(2,L.IConfigurationService)],f),e.AccessibilityService=f}),define(_[701],ee([1,0,273,2,120]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContextViewService=void 0;let I=class extends N.Disposable{constructor(S){super(),this.h=S,this.a=N.Disposable.None,this.c=S.hasContainer?S.container:null,this.b=this.q(new C.ContextView(this.c,1)),this.layout(),this.q(S.onDidLayout(()=>this.layout()))}j(S,v){this.b.setContainer(S,v||1)}showContextView(S,v,f){v?(v!==this.c||this.g!==f)&&(this.c=v,this.j(v,f?3:2)):this.h.hasContainer&&this.c!==this.h.container&&(this.c=this.h.container,this.j(this.c,1)),this.g=f,this.b.show(S);const g=(0,N.toDisposable)(()=>{this.a===g&&this.hideContextView()});return this.a=g,g}getContextViewElement(){return this.b.getViewElement()}layout(){this.b.layout()}hideContextView(S){this.b.hide(S)}};I=Ne([ge(0,E.ILayoutService)],I),e.ContextViewService=I}),define(_[62],ee([1,0,6,2,8]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MultiplexLogger=e.ConsoleLogger=e.AbstractLogger=e.DEFAULT_LOG_LEVEL=e.LogLevel=e.ILogService=void 0,e.ILogService=(0,E.createDecorator)("logService");var I;(function(f){f[f.Off=0]="Off",f[f.Trace=1]="Trace",f[f.Debug=2]="Debug",f[f.Info=3]="Info",f[f.Warning=4]="Warning",f[f.Error=5]="Error"})(I=e.LogLevel||(e.LogLevel={})),e.DEFAULT_LOG_LEVEL=I.Info;class L extends N.Disposable{constructor(){super(...arguments),this.a=e.DEFAULT_LOG_LEVEL,this.b=this.q(new C.Emitter),this.onDidChangeLogLevel=this.b.event}setLevel(g){this.a!==g&&(this.a=g,this.b.fire(this.a))}getLevel(){return this.a}c(g){return this.a!==I.Off&&this.a<=g}}e.AbstractLogger=L;class S extends L{constructor(g=e.DEFAULT_LOG_LEVEL){super(),this.setLevel(g)}trace(g,...i){this.c(I.Trace)&&console.log("%cTRACE","color: #888",g,...i)}debug(g,...i){this.c(I.Debug)&&console.log("%cDEBUG","background: #eee; color: #888",g,...i)}info(g,...i){this.c(I.Info)&&console.log("%c INFO","color: #33f",g,...i)}error(g,...i){this.c(I.Error)&&console.log("%c ERR","color: #f33",g,...i)}dispose(){}}e.ConsoleLogger=S;class v extends L{constructor(g){super(),this.g=g,g.length&&this.setLevel(g[0].getLevel())}setLevel(g){for(const i of this.g)i.setLevel(g);super.setLevel(g)}trace(g,...i){for(const t of this.g)t.trace(g,...i)}debug(g,...i){for(const t of this.g)t.debug(g,...i)}info(g,...i){for(const t of this.g)t.info(g,...i)}error(g,...i){for(const t of this.g)t.error(g,...i)}dispose(){for(const g of this.g)g.dispose()}}e.MultiplexLogger=v}),define(_[702],ee([1,0,45,7,11,2,120,62]),function(q,e,C,N,E,I,L,S){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BrowserClipboardService=void 0;let v=class extends I.Disposable{constructor(g,i){super(),this.b=g,this.c=i,this.a=new Map,this.i="",this.j=[],(C.isSafari||C.isWebkitWebView)&&this.h()}h(){const g=()=>{const i=new E.DeferredPromise;this.g&&!this.g.isSettled&&this.g.cancel(),this.g=i,navigator.clipboard.write([new ClipboardItem({"text/plain":i.p})]).catch(t=>ye(this,void 0,void 0,function*(){(!(t instanceof Error)||t.name!=="NotAllowedError"||!i.isRejected)&&this.c.error(t)}))};this.b.hasContainer&&(this.q((0,N.addDisposableListener)(this.b.container,"click",g)),this.q((0,N.addDisposableListener)(this.b.container,"keydown",g)))}writeText(g,i){return ye(this,void 0,void 0,function*(){if(i){this.a.set(i,g);return}if(this.g)return this.g.complete(g);try{return yield navigator.clipboard.writeText(g)}catch(a){console.error(a)}const t=document.activeElement,n=document.body.appendChild((0,N.$)("textarea",{"aria-hidden":!0}));n.style.height="1px",n.style.width="1px",n.style.position="absolute",n.value=g,n.focus(),n.select(),document.execCommand("copy"),t instanceof HTMLElement&&t.focus(),document.body.removeChild(n)})}readText(g){return ye(this,void 0,void 0,function*(){if(g)return this.a.get(g)||"";try{return yield navigator.clipboard.readText()}catch(i){return console.error(i),""}})}readFindText(){return ye(this,void 0,void 0,function*(){return this.i})}writeFindText(g){return ye(this,void 0,void 0,function*(){this.i=g})}readResources(){return ye(this,void 0,void 0,function*(){return this.j})}};v=Ne([ge(0,L.ILayoutService),ge(1,S.ILogService)],v),e.BrowserClipboardService=v}),define(_[703],ee([1,0,2,62]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LogService=void 0;class E extends C.Disposable{constructor(L,S=[]){super(),this.a=new N.MultiplexLogger([L,...S]),this.q(L.onDidChangeLogLevel(v=>this.setLevel(v)))}get onDidChangeLogLevel(){return this.a.onDidChangeLogLevel}setLevel(L){this.a.setLevel(L)}getLevel(){return this.a.getLevel()}trace(L,...S){this.a.trace(L,...S)}debug(L,...S){this.a.debug(L,...S)}info(L,...S){this.a.info(L,...S)}error(L,...S){this.a.error(L,...S)}}e.LogService=E}),define(_[89],ee([1,0,102,668,8]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IMarkerService=e.IMarkerData=e.MarkerSeverity=void 0;var I;(function(S){S[S.Hint=1]="Hint",S[S.Info=2]="Info",S[S.Warning=4]="Warning",S[S.Error=8]="Error"})(I=e.MarkerSeverity||(e.MarkerSeverity={})),function(S){function v(n,a){return a-n}S.compare=v;const f=Object.create(null);f[S.Error]=(0,N.localize)(0,null),f[S.Warning]=(0,N.localize)(1,null),f[S.Info]=(0,N.localize)(2,null);function g(n){return f[n]||""}S.toString=g;function i(n){switch(n){case C.default.Error:return S.Error;case C.default.Warning:return S.Warning;case C.default.Info:return S.Info;case C.default.Ignore:return S.Hint}}S.fromSeverity=i;function t(n){switch(n){case S.Error:return C.default.Error;case S.Warning:return C.default.Warning;case S.Info:return C.default.Info;case S.Hint:return C.default.Ignore}}S.toSeverity=t}(I=e.MarkerSeverity||(e.MarkerSeverity={}));var L;(function(S){const v="";function f(i){return g(i,!0)}S.makeKey=f;function g(i,t){const n=[v];return i.source?n.push(i.source.replace("\xA6","\\\xA6")):n.push(v),i.code?typeof i.code=="string"?n.push(i.code.replace("\xA6","\\\xA6")):n.push(i.code.value.replace("\xA6","\\\xA6")):n.push(v),i.severity!==void 0&&i.severity!==null?n.push(I.toString(i.severity)):n.push(v),i.message&&t?n.push(i.message.replace("\xA6","\\\xA6")):n.push(v),i.startLineNumber!==void 0&&i.startLineNumber!==null?n.push(i.startLineNumber.toString()):n.push(v),i.startColumn!==void 0&&i.startColumn!==null?n.push(i.startColumn.toString()):n.push(v),i.endLineNumber!==void 0&&i.endLineNumber!==null?n.push(i.endLineNumber.toString()):n.push(v),i.endColumn!==void 0&&i.endColumn!==null?n.push(i.endColumn.toString()):n.push(v),n.push(v),n.join("\xA6")}S.makeKeyOptionalMessage=g})(L=e.IMarkerData||(e.IMarkerData={})),e.IMarkerService=(0,E.createDecorator)("markerService")}),define(_[704],ee([1,0,17,6,2,59,9,21,4,49,8,89,27]),function(q,e,C,N,E,I,L,S,v,f,g,i,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IMarkerNavigationService=e.MarkerList=e.MarkerCoordinate=void 0;class n{constructor(d,s,l){this.marker=d,this.index=s,this.total=l}}e.MarkerCoordinate=n;let a=class{constructor(d,s,l){this.h=s,this.j=l,this.c=new N.Emitter,this.onDidChange=this.c.event,this.e=new E.DisposableStore,this.f=[],this.g=-1,S.URI.isUri(d)?this.d=w=>w.toString()===d.toString():d&&(this.d=d);const o=this.j.getValue("problems.sortOrder"),u=(w,m)=>{let p=(0,L.compare)(w.resource.toString(),m.resource.toString());return p===0&&(o==="position"?p=v.Range.compareRangesUsingStarts(w,m)||i.MarkerSeverity.compare(w.severity,m.severity):p=i.MarkerSeverity.compare(w.severity,m.severity)||v.Range.compareRangesUsingStarts(w,m)),p},h=()=>{this.f=this.h.read({resource:S.URI.isUri(d)?d:void 0,severities:i.MarkerSeverity.Error|i.MarkerSeverity.Warning|i.MarkerSeverity.Info}),typeof d=="function"&&(this.f=this.f.filter(w=>this.d(w.resource))),this.f.sort(u)};h(),this.e.add(s.onMarkerChanged(w=>{(!this.d||w.some(m=>this.d(m)))&&(h(),this.g=-1,this.c.fire())}))}dispose(){this.e.dispose(),this.c.dispose()}matches(d){return!this.d&&!d?!0:!this.d||!d?!1:this.d(d)}get selected(){const d=this.f[this.g];return d&&new n(d,this.g+1,this.f.length)}k(d,s,l){let o=!1,u=this.f.findIndex(h=>h.resource.toString()===d.uri.toString());u<0&&(u=(0,C.binarySearch)(this.f,{resource:d.uri},(h,w)=>(0,L.compare)(h.resource.toString(),w.resource.toString())),u<0&&(u=~u));for(let h=u;h<this.f.length;h++){let w=v.Range.lift(this.f[h]);if(w.isEmpty()){const m=d.getWordAtPosition(w.getStartPosition());m&&(w=new v.Range(w.startLineNumber,m.startColumn,w.startLineNumber,m.endColumn))}if(s&&(w.containsPosition(s)||s.isBeforeOrEqual(w.getStartPosition()))){this.g=h,o=!0;break}if(this.f[h].resource.toString()!==d.uri.toString())break}o||(this.g=l?0:this.f.length-1),this.g<0&&(this.g=this.f.length-1)}resetIndex(){this.g=-1}move(d,s,l){if(this.f.length===0)return!1;const o=this.g;return this.g===-1?this.k(s,l,d):d?this.g=(this.g+1)%this.f.length:d||(this.g=(this.g-1+this.f.length)%this.f.length),o!==this.g}find(d,s){let l=this.f.findIndex(o=>o.resource.toString()===d.toString());if(!(l<0)){for(;l<this.f.length;l++)if(v.Range.containsPosition(this.f[l],s))return new n(this.f[l],l+1,this.f.length)}}};a=Ne([ge(1,i.IMarkerService),ge(2,t.IConfigurationService)],a),e.MarkerList=a,e.IMarkerNavigationService=(0,g.createDecorator)("IMarkerNavigationService");let r=class{constructor(d,s){this.d=d,this.e=s,this.c=new I.LinkedList}getMarkerList(d){for(const s of this.c){const l=s.getMarkerList(d);if(l)return l}return new a(d,this.d,this.e)}};r=Ne([ge(0,i.IMarkerService),ge(1,t.IConfigurationService)],r),(0,f.registerSingleton)(e.IMarkerNavigationService,r,1)}),define(_[705],ee([1,0,17,6,54,55,48,21,89]),function(q,e,C,N,E,I,L,S,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MarkerService=e.unsupportedSchemas=void 0,e.unsupportedSchemas=new Set([L.Schemas.inMemory,L.Schemas.vscodeSourceControl,L.Schemas.walkThrough,L.Schemas.walkThroughSnippet]);class f{constructor(){this.a=new I.ResourceMap,this.b=new Map}set(n,a,r){let c=this.a.get(n);c||(c=new Map,this.a.set(n,c)),c.set(a,r);let d=this.b.get(a);d||(d=new I.ResourceMap,this.b.set(a,d)),d.set(n,r)}get(n,a){const r=this.a.get(n);return r?.get(a)}delete(n,a){let r=!1,c=!1;const d=this.a.get(n);d&&(r=d.delete(a));const s=this.b.get(a);if(s&&(c=s.delete(n)),r!==c)throw new Error("illegal state");return r&&c}values(n){var a,r,c,d;return typeof n=="string"?(r=(a=this.b.get(n))===null||a===void 0?void 0:a.values())!==null&&r!==void 0?r:E.Iterable.empty():S.URI.isUri(n)?(d=(c=this.a.get(n))===null||c===void 0?void 0:c.values())!==null&&d!==void 0?d:E.Iterable.empty():E.Iterable.map(E.Iterable.concat(...this.b.values()),s=>s[1])}}class g{constructor(n){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this.a=new I.ResourceMap,this.b=n,this.c=n.onMarkerChanged(this.d,this)}dispose(){this.c.dispose()}d(n){for(const a of n){const r=this.a.get(a);r&&this.f(r);const c=this.e(a);this.g(c),this.a.set(a,c)}}e(n){const a={errors:0,warnings:0,infos:0,unknowns:0};if(e.unsupportedSchemas.has(n.scheme))return a;for(const{severity:r}of this.b.read({resource:n}))r===v.MarkerSeverity.Error?a.errors+=1:r===v.MarkerSeverity.Warning?a.warnings+=1:r===v.MarkerSeverity.Info?a.infos+=1:a.unknowns+=1;return a}f(n){this.errors-=n.errors,this.warnings-=n.warnings,this.infos-=n.infos,this.unknowns-=n.unknowns}g(n){this.errors+=n.errors,this.warnings+=n.warnings,this.infos+=n.infos,this.unknowns+=n.unknowns}}class i{constructor(){this.a=new N.DebounceEmitter({delay:0,merge:i.f}),this.onMarkerChanged=this.a.event,this.b=new f,this.c=new g(this)}dispose(){this.c.dispose(),this.a.dispose()}remove(n,a){for(const r of a||[])this.changeOne(n,r,[])}changeOne(n,a,r){if((0,C.isFalsyOrEmpty)(r))this.b.delete(a,n)&&this.a.fire([a]);else{const c=[];for(const d of r){const s=i.d(n,a,d);s&&c.push(s)}this.b.set(a,n,c),this.a.fire([a])}}static d(n,a,r){let{code:c,severity:d,message:s,source:l,startLineNumber:o,startColumn:u,endLineNumber:h,endColumn:w,relatedInformation:m,tags:p}=r;if(!!s)return o=o>0?o:1,u=u>0?u:1,h=h>=o?h:o,w=w>0?w:u,{resource:a,owner:n,code:c,severity:d,message:s,source:l,startLineNumber:o,startColumn:u,endLineNumber:h,endColumn:w,relatedInformation:m,tags:p}}changeAll(n,a){const r=[],c=this.b.values(n);if(c)for(const d of c){const s=E.Iterable.first(d);s&&(r.push(s.resource),this.b.delete(s.resource,n))}if((0,C.isNonEmptyArray)(a)){const d=new I.ResourceMap;for(const{resource:s,marker:l}of a){const o=i.d(n,s,l);if(!o)continue;const u=d.get(s);u?u.push(o):(d.set(s,[o]),r.push(s))}for(const[s,l]of d)this.b.set(s,n,l)}r.length>0&&this.a.fire(r)}read(n=Object.create(null)){let{owner:a,resource:r,severities:c,take:d}=n;if((!d||d<0)&&(d=-1),a&&r){const s=this.b.get(r,a);if(s){const l=[];for(const o of s)if(i.e(o,c)){const u=l.push(o);if(d>0&&u===d)break}return l}else return[]}else if(!a&&!r){const s=[];for(const l of this.b.values())for(const o of l)if(i.e(o,c)){const u=s.push(o);if(d>0&&u===d)return s}return s}else{const s=this.b.values(r??a),l=[];for(const o of s)for(const u of o)if(i.e(u,c)){const h=l.push(u);if(d>0&&h===d)return l}return l}}static e(n,a){return a===void 0||(a&n.severity)===n.severity}static f(n){const a=new I.ResourceMap;for(const r of n)for(const c of r)a.set(c,!0);return Array.from(a.keys())}}e.MarkerService=i}),define(_[42],ee([1,0,102,8]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NoOpNotification=e.INotificationService=e.Severity=void 0,e.Severity=C.default,e.INotificationService=(0,N.createDecorator)("notificationService");class E{}e.NoOpNotification=E}),define(_[50],ee([1,0,9,21,8]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.extractSelection=e.matchesSomeScheme=e.matchesScheme=e.IOpenerService=void 0,e.IOpenerService=(0,E.createDecorator)("openerService");function I(v,f){return N.URI.isUri(v)?(0,C.equalsIgnoreCase)(v.scheme,f):(0,C.startsWithIgnoreCase)(v,f+":")}e.matchesScheme=I;function L(v,...f){return f.some(g=>I(v,g))}e.matchesSomeScheme=L;function S(v){let f;const g=/^L?(\d+)(?:,(\d+))?(-L?(\d+)(?:,(\d+))?)?/.exec(v.fragment);return g&&(f={startLineNumber:parseInt(g[1]),startColumn:g[2]?parseInt(g[2]):1,endLineNumber:g[4]?parseInt(g[4]):void 0,endColumn:g[4]?g[5]?parseInt(g[5]):1:void 0},v=v.with({fragment:""})),{selection:f,uri:v}}e.extractSelection=S}),define(_[706],ee([1,0,7,20,59,55,202,48,44,21,30,25,680,50]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OpenerService=void 0;let a=class{constructor(s){this.a=s}open(s,l){return ye(this,void 0,void 0,function*(){if(!(0,n.matchesScheme)(s,S.Schemas.command))return!1;if(!l?.allowCommands||(typeof s=="string"&&(s=f.URI.parse(s)),Array.isArray(l.allowCommands)&&!l.allowCommands.includes(s.path)))return!0;let o=[];try{o=(0,L.parse)(decodeURIComponent(s.query))}catch{try{o=(0,L.parse)(s.query)}catch{}}return Array.isArray(o)||(o=[o]),yield this.a.executeCommand(s.path,...o),!0})}};a=Ne([ge(0,i.ICommandService)],a);let r=class{constructor(s){this.a=s}open(s,l){return ye(this,void 0,void 0,function*(){typeof s=="string"&&(s=f.URI.parse(s));const{selection:o,uri:u}=(0,n.extractSelection)(s);return s=u,s.scheme===S.Schemas.file&&(s=(0,v.normalizePath)(s)),yield this.a.openCodeEditor({resource:s,options:Object.assign({selection:o,source:l?.fromUserGesture?t.EditorOpenSource.USER:t.EditorOpenSource.API},l?.editorOptions)},this.a.getFocusedCodeEditor(),l?.openToSide),!0})}};r=Ne([ge(0,g.ICodeEditorService)],r);let c=class{constructor(s,l){this.a=new E.LinkedList,this.b=new E.LinkedList,this.c=new E.LinkedList,this.d=new I.ResourceMap(o=>o.with({path:null,fragment:null,query:null}).toString()),this.f=new E.LinkedList,this.e={openExternal:o=>ye(this,void 0,void 0,function*(){return(0,n.matchesSomeScheme)(o,S.Schemas.http,S.Schemas.https)?C.windowOpenNoOpener(o):window.location.href=o,!0})},this.a.push({open:(o,u)=>ye(this,void 0,void 0,function*(){return u?.openExternal||(0,n.matchesSomeScheme)(o,S.Schemas.mailto,S.Schemas.http,S.Schemas.https,S.Schemas.vsls)?(yield this.g(o,u),!0):!1})}),this.a.push(new a(l)),this.a.push(new r(s))}open(s,l){var o;return ye(this,void 0,void 0,function*(){const u=typeof s=="string"?f.URI.parse(s):s,h=(o=this.d.get(u))!==null&&o!==void 0?o:s;for(const w of this.b)if(!(yield w.shouldOpen(h,l)))return!1;for(const w of this.a)if(yield w.open(s,l))return!0;return!1})}resolveExternalUri(s,l){return ye(this,void 0,void 0,function*(){for(const o of this.c)try{const u=yield o.resolveExternalUri(s,l);if(u)return this.d.has(u.resolved)||this.d.set(u.resolved,s),u}catch{}throw new Error("Could not resolve external URI: "+s.toString())})}g(s,l){return ye(this,void 0,void 0,function*(){const o=typeof s=="string"?f.URI.parse(s):s;let u;try{u=(yield this.resolveExternalUri(o,l)).resolved}catch{u=o}let h;if(typeof s=="string"&&o.toString()===u.toString()?h=s:h=encodeURI(u.toString(!0)),l?.allowContributedOpeners){const w=typeof l?.allowContributedOpeners=="string"?l?.allowContributedOpeners:void 0;for(const m of this.f)if(yield m.openExternal(h,{sourceUri:o,preferredOpenerId:w},N.CancellationToken.None))return!0}return this.e.openExternal(h,{sourceUri:o},N.CancellationToken.None)})}dispose(){this.b.clear()}};c=Ne([ge(0,g.ICodeEditorService),ge(1,i.ICommandService)],c),e.OpenerService=c}),define(_[78],ee([1,0,129,55,128,49,8,62,50]),function(q,e,C,N,E,I,L,S,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LanguageFeatureDebounceService=e.ILanguageFeatureDebounceService=void 0,e.ILanguageFeatureDebounceService=(0,L.createDecorator)("ILanguageFeatureDebounceService");var f;(function(t){const n=new WeakMap;let a=0;function r(c){let d=n.get(c);return d===void 0&&(d=++a,n.set(c,d)),d}t.of=r})(f||(f={}));class g{constructor(n,a,r,c,d,s){this.b=n,this.c=a,this.d=r,this.e=c,this.f=d,this.g=s,this.a=new N.LRUCache(50,.7)}h(n){return n.id+this.d.all(n).reduce((a,r)=>(0,C.doHash)(f.of(r),a),0)}get(n){const a=this.h(n),r=this.a.get(a);return r?(0,E.clamp)(r.value,this.f,this.g):this.default()}update(n,a){const r=this.h(n);let c=this.a.get(r);c||(c=new E.SlidingWindowAverage(6),this.a.set(r,c));const d=(0,E.clamp)(c.update(a),this.f,this.g);return(0,v.matchesScheme)(n.uri,"output")||this.b.trace(`[DEBOUNCE: ${this.c}] for ${n.uri.toString()} is ${d}ms`),d}i(){const n=new E.MovingAverage;for(const[,a]of this.a)n.update(a.value);return n.value}default(){const n=this.i()|0||this.e;return(0,E.clamp)(n,this.f,this.g)}}let i=class{constructor(n){this.b=n,this.a=new Map}for(n,a,r){var c,d,s;const l=(c=r?.min)!==null&&c!==void 0?c:50,o=(d=r?.max)!==null&&d!==void 0?d:Math.pow(l,2),u=(s=r?.key)!==null&&s!==void 0?s:void 0,h=`${f.of(n)},${l}${u?","+u:""}`;let w=this.a.get(h);return w||(w=new g(this.b,a,n,this.c()|0||l*1.5,l,o),this.a.set(h,w)),w}c(){const n=new E.MovingAverage;for(const a of this.a.values())n.update(a.default());return n.value}};i=Ne([ge(0,S.ILogService)],i),e.LanguageFeatureDebounceService=i,(0,I.registerSingleton)(e.ILanguageFeatureDebounceService,i,1)}),define(_[174],ee([1,0,17,20,13,54,55,12,4,78,8,49,53,2,19]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OutlineModelService=e.IOutlineModelService=e.OutlineModel=e.OutlineGroup=e.OutlineElement=e.TreeElement=void 0;class r{remove(){var u;(u=this.parent)===null||u===void 0||u.children.delete(this.id)}static findId(u,h){let w;typeof u=="string"?w=`${h.id}/${u}`:(w=`${h.id}/${u.name}`,h.children.get(w)!==void 0&&(w=`${h.id}/${u.name}_${u.range.startLineNumber}_${u.range.startColumn}`));let m=w;for(let p=0;h.children.get(m)!==void 0;p++)m=`${w}_${p}`;return m}static empty(u){return u.children.size===0}}e.TreeElement=r;class c extends r{constructor(u,h,w){super(),this.id=u,this.parent=h,this.symbol=w,this.children=new Map}}e.OutlineElement=c;class d extends r{constructor(u,h,w,m){super(),this.id=u,this.parent=h,this.label=w,this.order=m,this.children=new Map}}e.OutlineGroup=d;class s extends r{static create(u,h,w){const m=new N.CancellationTokenSource(w),p=new s(h.uri),b=u.ordered(h),y=b.map((D,M)=>{var z;const R=r.findId(`provider_${M}`,p),P=new d(R,p,(z=D.displayName)!==null&&z!==void 0?z:"Unknown Outline Provider",M);return Promise.resolve(D.provideDocumentSymbols(h,m.token)).then(A=>{for(const T of A||[])s.c(T,P);return P},A=>((0,E.onUnexpectedExternalError)(A),P)).then(A=>{r.empty(A)?A.remove():p.d.set(R,A)})}),k=u.onDidChange(()=>{const D=u.ordered(h);(0,C.equals)(D,b)||m.cancel()});return Promise.all(y).then(()=>m.token.isCancellationRequested&&!w.isCancellationRequested?s.create(u,h,w):p.e()).finally(()=>{k.dispose()})}static c(u,h){const w=r.findId(u,h),m=new c(w,h,u);if(u.children)for(const p of u.children)s.c(p,m);h.children.set(m.id,m)}constructor(u){super(),this.uri=u,this.id="root",this.parent=void 0,this.d=new Map,this.children=new Map,this.id="root",this.parent=void 0}e(){let u=0;for(const[h,w]of this.d)w.children.size===0?this.d.delete(h):u+=1;if(u!==1)this.children=this.d;else{const h=I.Iterable.first(this.d.values());for(const[,w]of h.children)w.parent=this,this.children.set(w.id,w)}return this}getTopLevelSymbols(){const u=[];for(const h of this.children.values())h instanceof c?u.push(h.symbol):u.push(...I.Iterable.map(h.children.values(),w=>w.symbol));return u.sort((h,w)=>v.Range.compareRangesUsingStarts(h.range,w.range))}asListOfDocumentSymbols(){const u=this.getTopLevelSymbols(),h=[];return s.f(h,u,""),h.sort((w,m)=>S.Position.compare(v.Range.getStartPosition(w.range),v.Range.getStartPosition(m.range))||S.Position.compare(v.Range.getEndPosition(m.range),v.Range.getEndPosition(w.range)))}static f(u,h,w){for(const m of h)u.push({kind:m.kind,tags:m.tags,name:m.name,detail:m.detail,containerName:m.containerName||w,range:m.range,selectionRange:m.selectionRange,children:void 0}),m.children&&s.f(u,m.children,m.name)}}e.OutlineModel=s,e.IOutlineModelService=(0,g.createDecorator)("IOutlineModelService");let l=class{constructor(u,h,w){this.f=u,this.c=new n.DisposableStore,this.e=new L.LRUCache(10,.7),this.d=h.for(u.documentSymbolProvider,"DocumentSymbols",{min:350}),this.c.add(w.onModelRemoved(m=>{this.e.delete(m.id)}))}dispose(){this.c.dispose()}getOrCreate(u,h){return ye(this,void 0,void 0,function*(){const w=this.f.documentSymbolProvider,m=w.ordered(u);let p=this.e.get(u.id);if(!p||p.versionId!==u.getVersionId()||!(0,C.equals)(p.provider,m)){const y=new N.CancellationTokenSource;p={versionId:u.getVersionId(),provider:m,promiseCnt:0,source:y,promise:s.create(w,u,y.token),model:void 0},this.e.set(u.id,p);const k=Date.now();p.promise.then(D=>{p.model=D,this.d.update(u,Date.now()-k)}).catch(D=>{this.e.delete(u.id)})}if(p.model)return p.model;p.promiseCnt+=1;const b=h.onCancellationRequested(()=>{--p.promiseCnt===0&&(p.source.cancel(),this.e.delete(u.id))});try{return yield p.promise}finally{b.dispose()}})}};l=Ne([ge(0,a.ILanguageFeaturesService),ge(1,f.ILanguageFeatureDebounceService),ge(2,t.IModelService)],l),e.OutlineModelService=l,(0,i.registerSingleton)(e.IOutlineModelService,l,1)}),define(_[707],ee([1,0,20,18,21,61,174,25]),function(q,e,C,N,E,I,L,S){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),S.CommandsRegistry.registerCommand("_executeDocumentSymbolProvider",function(v,...f){return ye(this,void 0,void 0,function*(){const[g]=f;(0,N.assertType)(E.URI.isUri(g));const i=v.get(L.IOutlineModelService),n=yield v.get(I.ITextModelService).createModelReference(g);try{return(yield i.getOrCreate(n.object.textEditorModel,C.CancellationToken.None)).getTopLevelSymbols()}finally{n.dispose()}})})}),define(_[708],ee([1,0,7,75,43,56,6,2,50,429]),function(q,e,C,N,E,I,L,S,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Link=void 0;let f=class extends S.Disposable{get enabled(){return this.b}set enabled(i){i?(this.a.setAttribute("aria-disabled","false"),this.a.tabIndex=0,this.a.style.pointerEvents="auto",this.a.style.opacity="1",this.a.style.cursor="pointer",this.b=!1):(this.a.setAttribute("aria-disabled","true"),this.a.tabIndex=-1,this.a.style.pointerEvents="none",this.a.style.opacity="0.4",this.a.style.cursor="default",this.b=!0),this.b=i}constructor(i,t,n={},a){var r;super(),this.c=t,this.b=!0,this.a=(0,C.append)(i,(0,C.$)("a.monaco-link",{tabIndex:(r=t.tabIndex)!==null&&r!==void 0?r:0,href:t.href,title:t.title},t.label)),this.a.setAttribute("role","button");const c=this.q(new N.DomEmitter(this.a,"click")),d=this.q(new N.DomEmitter(this.a,"keypress")),s=L.Event.chain(d.event).map(u=>new E.StandardKeyboardEvent(u)).filter(u=>u.keyCode===3).event,l=this.q(new N.DomEmitter(this.a,I.EventType.Tap)).event;this.q(I.Gesture.addTarget(this.a));const o=L.Event.any(c.event,s,l);this.q(o(u=>{!this.enabled||(C.EventHelper.stop(u,!0),n?.opener?n.opener(this.c.href):a.open(this.c.href,{allowCommands:!0}))})),this.enabled=!0}};f=Ne([ge(3,v.IOpenerService)],f),e.Link=f}),define(_[69],ee([1,0,8]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IEditorProgressService=e.Progress=e.emptyProgressRunner=e.IProgressService=void 0,e.IProgressService=(0,C.createDecorator)("progressService"),e.emptyProgressRunner=Object.freeze({total(){},worked(){},done(){}});class N{constructor(I){this.b=I}report(I){this.a=I,this.b(this.a)}}N.None=Object.freeze({report(){}}),e.Progress=N,e.IEditorProgressService=(0,C.createDecorator)("editorProgressService")}),define(_[709],ee([1,0,11,20,2]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PickerQuickAccessProvider=e.TriggerAction=void 0;var I;(function(f){f[f.NO_ACTION=0]="NO_ACTION",f[f.CLOSE_PICKER=1]="CLOSE_PICKER",f[f.REFRESH_PICKER=2]="REFRESH_PICKER",f[f.REMOVE_ITEM=3]="REMOVE_ITEM"})(I=e.TriggerAction||(e.TriggerAction={}));function L(f){const g=f;return Array.isArray(g.items)}function S(f){const g=f;return!!g.picks&&g.additionalPicks instanceof Promise}class v extends E.Disposable{constructor(g,i){super(),this.g=g,this.h=i}provide(g,i,t){var n;const a=new E.DisposableStore;g.canAcceptInBackground=!!(!((n=this.h)===null||n===void 0)&&n.canAcceptInBackground),g.matchOnLabel=g.matchOnDescription=g.matchOnDetail=g.sortByLabel=!1;let r;const c=a.add(new E.MutableDisposable),d=()=>ye(this,void 0,void 0,function*(){const s=c.value=new E.DisposableStore;r?.dispose(!0),g.busy=!1,r=new N.CancellationTokenSource(i);const l=r.token,o=g.value.substr(this.g.length).trim(),u=this.j(o,s,l,t),h=(w,m)=>{var p;let b,y;if(L(w)?(b=w.items,y=w.active):b=w,b.length===0){if(m)return!1;o.length>0&&((p=this.h)===null||p===void 0?void 0:p.noResultsPick)&&(b=[this.h.noResultsPick])}return g.items=b,y&&(g.activeItems=[y]),!0};if(u!==null)if(S(u)){let w=!1,m=!1;yield Promise.all([(()=>ye(this,void 0,void 0,function*(){yield(0,C.timeout)(v.c),!l.isCancellationRequested&&(m||(w=h(u.picks,!0)))}))(),(()=>ye(this,void 0,void 0,function*(){g.busy=!0;try{const p=yield u.additionalPicks;if(l.isCancellationRequested)return;let b,y;L(u.picks)?(b=u.picks.items,y=u.picks.active):b=u.picks;let k,D;if(L(p)?(k=p.items,D=p.active):k=p,k.length>0||!w){let M;if(!y&&!D){const z=g.activeItems[0];z&&b.indexOf(z)!==-1&&(M=z)}h({items:[...b,...k],active:y||D||M})}}finally{l.isCancellationRequested||(g.busy=!1),m=!0}}))()])}else if(!(u instanceof Promise))h(u);else{g.busy=!0;try{const w=yield u;if(l.isCancellationRequested)return;h(w)}finally{l.isCancellationRequested||(g.busy=!1)}}});return a.add(g.onDidChangeValue(()=>d())),d(),a.add(g.onDidAccept(s=>{const[l]=g.selectedItems;typeof l?.accept=="function"&&(s.inBackground||g.hide(),l.accept(g.keyMods,s))})),a.add(g.onDidTriggerItemButton(({button:s,item:l})=>ye(this,void 0,void 0,function*(){var o,u;if(typeof l.trigger=="function"){const h=(u=(o=l.buttons)===null||o===void 0?void 0:o.indexOf(s))!==null&&u!==void 0?u:-1;if(h>=0){const w=l.trigger(h,g.keyMods),m=typeof w=="number"?w:yield w;if(i.isCancellationRequested)return;switch(m){case I.NO_ACTION:break;case I.CLOSE_PICKER:g.hide();break;case I.REFRESH_PICKER:d();break;case I.REMOVE_ITEM:{const p=g.items.indexOf(l);if(p!==-1){const b=g.items.slice(),y=b.splice(p,1),k=g.activeItems.filter(M=>M!==y[0]),D=g.keepScrollPosition;g.keepScrollPosition=!0,g.items=b,k&&(g.activeItems=k),g.keepScrollPosition=D}break}}}}}))),a}}v.c=200,e.PickerQuickAccessProvider=v}),define(_[710],ee([1,0,7,43,66,210,2,102,156]),function(q,e,C,N,E,I,L,S){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.QuickInputBox=void 0;const v=C.$;class f extends L.Disposable{constructor(i,t,n){super(),this.c=i,this.onKeyDown=a=>C.addDisposableListener(this.b.inputBox.inputElement,C.EventType.KEY_DOWN,r=>{a(new N.StandardKeyboardEvent(r))}),this.onMouseDown=a=>C.addDisposableListener(this.b.inputBox.inputElement,C.EventType.MOUSE_DOWN,r=>{a(new E.StandardMouseEvent(r))}),this.onDidChange=a=>this.b.onDidChange(a),this.a=C.append(this.c,v(".quick-input-box")),this.b=this.q(new I.FindInput(this.a,void 0,{label:"",inputBoxStyles:t,toggleStyles:n}))}get value(){return this.b.getValue()}set value(i){this.b.setValue(i)}select(i=null){this.b.inputBox.select(i)}isSelectionAtEnd(){return this.b.inputBox.isSelectionAtEnd()}get placeholder(){return this.b.inputBox.inputElement.getAttribute("placeholder")||""}set placeholder(i){this.b.inputBox.setPlaceHolder(i)}get ariaLabel(){return this.b.inputBox.getAriaLabel()}set ariaLabel(i){this.b.inputBox.setAriaLabel(i)}get password(){return this.b.inputBox.inputElement.type==="password"}set password(i){this.b.inputBox.inputElement.type=i?"password":"text"}set enabled(i){this.b.inputBox.inputElement.toggleAttribute("readonly",!i)}set toggles(i){this.b.setAdditionalToggles(i)}setAttribute(i,t){this.b.inputBox.inputElement.setAttribute(i,t)}removeAttribute(i){this.b.inputBox.inputElement.removeAttribute(i)}showDecoration(i){i===S.default.Ignore?this.b.clearMessage():this.b.showMessage({type:i===S.default.Info?1:i===S.default.Warning?2:3,content:""})}stylesForType(i){return this.b.inputBox.stylesForType(i===S.default.Info?1:i===S.default.Warning?2:3)}setFocus(){this.b.focus()}layout(){this.b.inputBox.layout()}}e.QuickInputBox=f}),define(_[305],ee([1,0,7,75,6,43,56,137,150,345,673,156]),function(q,e,C,N,E,I,L,S,v,f,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.renderQuickInputDescription=e.getIconClass=void 0;const i={},t=new v.IdGenerator("quick-input-button-icon-");function n(r){if(!r)return;let c;const d=r.dark.toString();return i[d]?c=i[d]:(c=t.nextId(),C.createCSSRule(`.${c}, .hc-light .${c}`,`background-image: ${C.asCSSUrl(r.light||r.dark)}`),C.createCSSRule(`.vs-dark .${c}, .hc-black .${c}`,`background-image: ${C.asCSSUrl(r.dark)}`),i[d]=c),c}e.getIconClass=n;function a(r,c,d){C.reset(c);const s=(0,f.parseLinkedText)(r);let l=0;for(const o of s.nodes)if(typeof o=="string")c.append(...(0,S.renderLabelWithIcons)(o));else{let u=o.title;!u&&o.href.startsWith("command:")?u=(0,g.localize)(0,null,o.href.substring(8)):u||(u=o.href);const h=C.$("a",{href:o.href,title:u,tabIndex:l++},o.label);h.style.textDecoration="underline";const w=k=>{C.isEventLike(k)&&C.EventHelper.stop(k,!0),d.callback(o.href)},m=d.disposables.add(new N.DomEmitter(h,C.EventType.CLICK)).event,p=d.disposables.add(new N.DomEmitter(h,C.EventType.KEY_DOWN)).event,b=d.disposables.add(E.Event.chain(p)).filter(k=>{const D=new I.StandardKeyboardEvent(k);return D.equals(10)||D.equals(3)}).event;d.disposables.add(L.Gesture.addTarget(h));const y=d.disposables.add(new N.DomEmitter(h,L.EventType.Tap)).event;E.Event.any(m,y,b)(w,null,d.disposables),c.appendChild(h)}}e.renderQuickInputDescription=a}),define(_[711],ee([1,0,7,43,68,205,206,17,11,344,99,6,111,2,16,9,18,672,305,156]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.QuickInputList=e.QuickInputListFocus=void 0;const l=C.$;class o{get checked(){return!!this._checked}set checked(M){M!==this._checked&&(this._checked=M,this.c.fire(M))}constructor(M){this.hidden=!1,this.c=new i.Emitter,this.onChecked=this.c.event,Object.assign(this,M)}dispose(){this.c.dispose()}}class u{get templateId(){return u.ID}renderTemplate(M){const z=Object.create(null);z.toDisposeElement=[],z.toDisposeTemplate=[],z.entry=C.append(M,l(".quick-input-list-entry"));const R=C.append(z.entry,l("label.quick-input-list-label"));z.toDisposeTemplate.push(C.addStandardDisposableListener(R,C.EventType.CLICK,W=>{z.checkbox.offsetParent||W.preventDefault()})),z.checkbox=C.append(R,l("input.quick-input-list-checkbox")),z.checkbox.type="checkbox",z.toDisposeTemplate.push(C.addStandardDisposableListener(z.checkbox,C.EventType.CHANGE,W=>{z.element.checked=z.checkbox.checked}));const P=C.append(R,l(".quick-input-list-rows")),A=C.append(P,l(".quick-input-list-row")),T=C.append(P,l(".quick-input-list-row"));z.label=new I.IconLabel(A,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0});const O=C.append(A,l(".quick-input-list-entry-keybinding"));z.keybinding=new L.KeybindingLabel(O,a.OS);const B=C.append(T,l(".quick-input-list-label-meta"));return z.detail=new I.IconLabel(B,{supportHighlights:!0,supportIcons:!0}),z.separator=C.append(z.entry,l(".quick-input-list-separator")),z.actionBar=new E.ActionBar(z.entry),z.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),z.toDisposeTemplate.push(z.actionBar),z}renderElement(M,z,R){R.element=M,M.element=(0,c.withNullAsUndefined)(R.entry);const P=M.item?M.item:M.separator;R.checkbox.checked=M.checked,R.toDisposeElement.push(M.onChecked(j=>R.checkbox.checked=j));const{labelHighlights:A,descriptionHighlights:T,detailHighlights:O}=M,B=Object.create(null);B.matches=A||[],B.descriptionTitle=M.saneDescription,B.descriptionMatches=T||[],P.type!=="separator"?(B.extraClasses=P.iconClasses,B.italic=P.italic,B.strikethrough=P.strikethrough,R.entry.classList.remove("quick-input-list-separator-as-item")):R.entry.classList.add("quick-input-list-separator-as-item"),R.label.setLabel(M.saneLabel,M.saneDescription,B),R.keybinding.set(P.type==="separator"?void 0:P.keybinding),M.saneDetail&&R.detail.setLabel(M.saneDetail,void 0,{matches:O,title:M.saneDetail}),M.item&&M.separator&&M.separator.label?(R.separator.textContent=M.separator.label,R.separator.style.display=""):R.separator.style.display="none",R.entry.classList.toggle("quick-input-list-separator-border",!!M.separator);const W=P.buttons;W&&W.length?(R.actionBar.push(W.map((j,F)=>{let U=j.iconClass||(j.iconPath?(0,s.getIconClass)(j.iconPath):void 0);return j.alwaysVisible&&(U=U?`${U} always-visible`:"always-visible"),{id:`id-${F}`,class:U,enabled:!0,label:"",tooltip:j.tooltip||"",run:()=>{P.type!=="separator"?M.fireButtonTriggered({button:j,item:P}):M.fireSeparatorButtonTriggered({button:j,separator:P})}}}),{icon:!0,label:!1}),R.entry.classList.add("has-actions")):R.entry.classList.remove("has-actions")}disposeElement(M,z,R){R.toDisposeElement=(0,n.dispose)(R.toDisposeElement),R.actionBar.clear()}disposeTemplate(M){M.toDisposeElement=(0,n.dispose)(M.toDisposeElement),M.toDisposeTemplate=(0,n.dispose)(M.toDisposeTemplate)}}u.ID="listelement";class h{getHeight(M){return M.item?M.saneDetail?44:22:24}getTemplateId(M){return u.ID}}var w;(function(D){D[D.First=1]="First",D[D.Second=2]="Second",D[D.Last=3]="Last",D[D.Next=4]="Next",D[D.Previous=5]="Previous",D[D.NextPage=6]="NextPage",D[D.PreviousPage=7]="PreviousPage"})(w=e.QuickInputListFocus||(e.QuickInputListFocus={}));class m{constructor(M,z,R){this.A=M,this.B=R,this.f=[],this.g=[],this.h=new Map,this.matchOnDescription=!1,this.matchOnDetail=!1,this.matchOnLabel=!0,this.matchOnLabelMode="fuzzy",this.matchOnMeta=!0,this.sortByLabel=!0,this.j=new i.Emitter,this.onChangedAllVisibleChecked=this.j.event,this.k=new i.Emitter,this.onChangedCheckedCount=this.k.event,this.l=new i.Emitter,this.onChangedVisibleCount=this.l.event,this.m=new i.Emitter,this.onChangedCheckedElements=this.m.event,this.o=new i.Emitter,this.onButtonTriggered=this.o.event,this.p=new i.Emitter,this.onSeparatorButtonTriggered=this.p.event,this.q=new i.Emitter,this.onKeyDown=this.q.event,this.r=new i.Emitter,this.onLeave=this.r.event,this.t=!0,this.u=[],this.v=[],this.id=z,this.c=C.append(this.A,l(".quick-input-list"));const P=new h,A=new k;this.d=R.createList("QuickInput",this.c,P,[new u],{identityProvider:{getId:O=>O.saneLabel},setRowLineHeight:!1,multipleSelectionSupport:!1,horizontalScrolling:!1,accessibilityProvider:A}),this.d.getHTMLElement().id=z,this.v.push(this.d),this.v.push(this.d.onKeyDown(O=>{const B=new N.StandardKeyboardEvent(O);switch(B.keyCode){case 10:this.toggleCheckbox();break;case 31:(a.isMacintosh?O.metaKey:O.ctrlKey)&&this.d.setFocus((0,S.range)(this.d.length));break;case 16:{const W=this.d.getFocus();W.length===1&&W[0]===0&&this.r.fire();break}case 18:{const W=this.d.getFocus();W.length===1&&W[0]===this.d.length-1&&this.r.fire();break}}this.q.fire(B)})),this.v.push(this.d.onMouseDown(O=>{O.browserEvent.button!==2&&O.browserEvent.preventDefault()})),this.v.push(C.addDisposableListener(this.c,C.EventType.CLICK,O=>{(O.x||O.y)&&this.r.fire()})),this.v.push(this.d.onMouseMiddleClick(O=>{this.r.fire()})),this.v.push(this.d.onContextMenu(O=>{typeof O.index=="number"&&(O.browserEvent.preventDefault(),this.d.setSelection([O.index]))}));const T=new v.ThrottledDelayer(R.hoverDelegate.delay);this.v.push(this.d.onMouseOver(O=>ye(this,void 0,void 0,function*(){var B;if(O.browserEvent.target instanceof HTMLAnchorElement){T.cancel();return}!(O.browserEvent.relatedTarget instanceof HTMLAnchorElement)&&C.isAncestor(O.browserEvent.relatedTarget,(B=O.element)===null||B===void 0?void 0:B.element)||(yield T.trigger(()=>ye(this,void 0,void 0,function*(){O.element&&this.D(O.element)})))}))),this.v.push(this.d.onMouseOut(O=>{var B;C.isAncestor(O.browserEvent.relatedTarget,(B=O.element)===null||B===void 0?void 0:B.element)||T.cancel()})),this.v.push(this.j,this.k,this.l,this.m,this.o,this.p,this.r,this.q,T)}get onDidChangeFocus(){return i.Event.map(this.d.onDidChangeFocus,M=>M.elements.map(z=>z.item))}get onDidChangeSelection(){return i.Event.map(this.d.onDidChangeSelection,M=>({items:M.elements.map(z=>z.item),event:M.browserEvent}))}get scrollTop(){return this.d.scrollTop}set scrollTop(M){this.d.scrollTop=M}getAllVisibleChecked(){return this.C(this.g,!1)}C(M,z=!0){for(let R=0,P=M.length;R<P;R++){const A=M[R];if(!A.hidden)if(A.checked)z=!0;else return!1}return z}getCheckedCount(){let M=0;const z=this.g;for(let R=0,P=z.length;R<P;R++)z[R].checked&&M++;return M}getVisibleCount(){let M=0;const z=this.g;for(let R=0,P=z.length;R<P;R++)z[R].hidden||M++;return M}setAllVisibleChecked(M){try{this.t=!1,this.g.forEach(z=>{z.hidden||(z.checked=M)})}finally{this.t=!0,this.E()}}setElements(M){this.u=(0,n.dispose)(this.u);const z=P=>this.F(P),R=P=>this.G(P);this.f=M,this.g=M.reduce((P,A,T)=>{var O,B,W;const j=T&&M[T-1],F=A.label?A.label.replace(/\r?\n/g," "):"",U=(0,t.parseLabelWithIcons)(F).text.trim();let Q,se,he,ie,ue,J,x;A.type!=="separator"&&(Q=A.meta&&A.meta.replace(/\r?\n/g," "),se=A.description&&A.description.replace(/\r?\n/g," "),he=A.detail&&A.detail.replace(/\r?\n/g," "),ie=(O=A.highlights)===null||O===void 0?void 0:O.label,ue=(B=A.highlights)===null||B===void 0?void 0:B.description,J=(W=A.highlights)===null||W===void 0?void 0:W.detail,x=A.tooltip);const G=A.ariaLabel||[F,se,he].map(de=>(0,t.getCodiconAriaLabel)(de)).filter(de=>!!de).join(", "),te=this.A.classList.contains("show-checkboxes");let Z;if(A.type==="separator"){if(!A.buttons)return P;Z=A}else j&&j.type==="separator"&&!j.buttons&&(Z=j);const ae=new o({hasCheckbox:te,index:T,item:A.type!=="separator"?A:void 0,saneLabel:F,saneSortLabel:U,saneMeta:Q,saneAriaLabel:G,saneDescription:se,saneDetail:he,saneTooltip:x,labelHighlights:ie,descriptionHighlights:ue,detailHighlights:J,checked:!1,separator:Z,fireButtonTriggered:z,fireSeparatorButtonTriggered:R});return this.u.push(ae),this.u.push(ae.onChecked(()=>this.E())),P.push(ae),P},[]),this.h=this.g.reduce((P,A,T)=>{var O;return P.set((O=A.item)!==null&&O!==void 0?O:A.separator,T),P},new Map),this.d.splice(0,this.d.length),this.d.splice(0,this.d.length,this.g),this.l.fire(this.g.length)}getFocusedElements(){return this.d.getFocusedElements().map(M=>M.item)}setFocusedElements(M){if(this.d.setFocus(M.filter(z=>this.h.has(z)).map(z=>this.h.get(z))),M.length>0){const z=this.d.getFocus()[0];typeof z=="number"&&this.d.reveal(z)}}getActiveDescendant(){return this.d.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(M){this.d.setSelection(M.filter(z=>this.h.has(z)).map(z=>this.h.get(z)))}getCheckedElements(){return this.g.filter(M=>M.checked).map(M=>M.item).filter(M=>!!M)}setCheckedElements(M){try{this.t=!1;const z=new Set;for(const R of M)z.add(R);for(const R of this.g)R.checked=z.has(R.item)}finally{this.t=!0,this.E()}}set enabled(M){this.d.getHTMLElement().style.pointerEvents=M?"":"none"}focus(M){if(!this.d.length)return;switch(M===w.Second&&this.d.length<2&&(M=w.First),M){case w.First:this.d.scrollTop=0,this.d.focusFirst(void 0,R=>!!R.item);break;case w.Second:this.d.scrollTop=0,this.d.focusNth(1,void 0,R=>!!R.item);break;case w.Last:this.d.scrollTop=this.d.scrollHeight,this.d.focusLast(void 0,R=>!!R.item);break;case w.Next:{this.d.focusNext(void 0,!0,void 0,P=>!!P.item);const R=this.d.getFocus()[0];R!==0&&!this.g[R-1].item&&this.d.firstVisibleIndex>R-1&&this.d.reveal(R-1);break}case w.Previous:{this.d.focusPrevious(void 0,!0,void 0,P=>!!P.item);const R=this.d.getFocus()[0];R!==0&&!this.g[R-1].item&&this.d.firstVisibleIndex>R-1&&this.d.reveal(R-1);break}case w.NextPage:this.d.focusNextPage(void 0,R=>!!R.item);break;case w.PreviousPage:this.d.focusPreviousPage(void 0,R=>!!R.item);break}const z=this.d.getFocus()[0];typeof z=="number"&&this.d.reveal(z)}clearFocus(){this.d.setFocus([])}domFocus(){this.d.domFocus()}D(M){var z,R,P;this.w&&!this.w.isDisposed&&((R=(z=this.B.hoverDelegate).onDidHideHover)===null||R===void 0||R.call(z),(P=this.w)===null||P===void 0||P.dispose()),!(!M.element||!M.saneTooltip)&&(this.w=this.B.hoverDelegate.showHover({content:M.saneTooltip,target:M.element,linkHandler:A=>{this.B.linkOpenerDelegate(A)},showPointer:!0,container:this.c,hoverPosition:1},!1))}layout(M){this.d.getHTMLElement().style.maxHeight=M?`calc(${Math.floor(M/44)*44}px)`:"",this.d.layout()}filter(M){if(!(this.sortByLabel||this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))return this.d.layout(),!1;const z=M;if(M=M.trim(),!M||!(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))this.g.forEach(P=>{P.labelHighlights=void 0,P.descriptionHighlights=void 0,P.detailHighlights=void 0,P.hidden=!1;const A=P.index&&this.f[P.index-1];P.item&&(P.separator=A&&A.type==="separator"&&!A.buttons?A:void 0)});else{let P;this.g.forEach(A=>{let T;this.matchOnLabelMode==="fuzzy"?T=this.matchOnLabel?(0,c.withNullAsUndefined)((0,t.matchesFuzzyIconAware)(M,(0,t.parseLabelWithIcons)(A.saneLabel))):void 0:T=this.matchOnLabel?(0,c.withNullAsUndefined)(p(z,(0,t.parseLabelWithIcons)(A.saneLabel))):void 0;const O=this.matchOnDescription?(0,c.withNullAsUndefined)((0,t.matchesFuzzyIconAware)(M,(0,t.parseLabelWithIcons)(A.saneDescription||""))):void 0,B=this.matchOnDetail?(0,c.withNullAsUndefined)((0,t.matchesFuzzyIconAware)(M,(0,t.parseLabelWithIcons)(A.saneDetail||""))):void 0,W=this.matchOnMeta?(0,c.withNullAsUndefined)((0,t.matchesFuzzyIconAware)(M,(0,t.parseLabelWithIcons)(A.saneMeta||""))):void 0;if(T||O||B||W?(A.labelHighlights=T,A.descriptionHighlights=O,A.detailHighlights=B,A.hidden=!1):(A.labelHighlights=void 0,A.descriptionHighlights=void 0,A.detailHighlights=void 0,A.hidden=A.item?!A.item.alwaysShow:!0),!this.sortByLabel){const j=A.index&&this.f[A.index-1];P=j&&j.type==="separator"?j:P,P&&!A.hidden&&(A.separator=P,P=void 0)}})}const R=this.g.filter(P=>!P.hidden);if(this.sortByLabel&&M){const P=M.toLowerCase();R.sort((A,T)=>y(A,T,P))}return this.h=R.reduce((P,A,T)=>{var O;return P.set((O=A.item)!==null&&O!==void 0?O:A.separator,T),P},new Map),this.d.splice(0,this.d.length,R),this.d.setFocus([]),this.d.layout(),this.j.fire(this.getAllVisibleChecked()),this.l.fire(R.length),!0}toggleCheckbox(){try{this.t=!1;const M=this.d.getFocusedElements(),z=this.C(M);for(const R of M)R.checked=!z}finally{this.t=!0,this.E()}}display(M){this.c.style.display=M?"":"none"}isDisplayed(){return this.c.style.display!=="none"}dispose(){this.u=(0,n.dispose)(this.u),this.v=(0,n.dispose)(this.v)}E(){this.t&&(this.j.fire(this.getAllVisibleChecked()),this.k.fire(this.getCheckedCount()),this.m.fire(this.getCheckedElements()))}F(M){this.o.fire(M)}G(M){this.p.fire(M)}style(M){this.d.style(M)}toggleHover(){if(!this.d.getFocusedElements()[0].saneTooltip)return;if(this.w&&!this.w.isDisposed){this.w.dispose();return}const z=this.d.getFocusedElements()[0];if(!z)return;this.D(z);const R=new n.DisposableStore;R.add(this.d.onDidChangeFocus(P=>{P.indexes.length&&this.D(P.elements[0])})),this.w&&R.add(this.w),this.z=R,this.u.push(this.z)}}Ne([g.memoize],m.prototype,"onDidChangeFocus",null),Ne([g.memoize],m.prototype,"onDidChangeSelection",null),e.QuickInputList=m;function p(D,M){const{text:z,iconOffsets:R}=M;if(!R||R.length===0)return b(D,z);const P=(0,r.ltrim)(z," "),A=z.length-P.length,T=b(D,P);if(T)for(const O of T){const B=R[O.start+A]+A;O.start+=B,O.end+=B}return T}function b(D,M){const z=M.toLowerCase().indexOf(D.toLowerCase());return z!==-1?[{start:z,end:z+D.length}]:null}function y(D,M,z){const R=D.labelHighlights||[],P=M.labelHighlights||[];return R.length&&!P.length?-1:!R.length&&P.length?1:R.length===0&&P.length===0?0:(0,f.compareAnything)(D.saneSortLabel,M.saneSortLabel,z)}class k{getWidgetAriaLabel(){return(0,d.localize)(0,null)}getAriaLabel(M){var z;return!((z=M.separator)===null||z===void 0)&&z.label?`${M.saneAriaLabel}, ${M.separator.label}`:M.saneAriaLabel}getWidgetRole(){return"listbox"}getRole(M){return M.hasCheckbox?"checkbox":"option"}isChecked(M){if(!!M.hasCheckbox)return{value:M.checked,onDidChange:M.onChecked}}}}),define(_[79],ee([1,0,8]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IQuickInputService=e.quickPickItemScorerAccessor=e.QuickPickItemScorerAccessor=e.ItemActivation=e.QuickInputHideReason=e.NO_KEY_MODS=void 0,e.NO_KEY_MODS={ctrlCmd:!1,alt:!1};var N;(function(L){L[L.Blur=1]="Blur",L[L.Gesture=2]="Gesture",L[L.Other=3]="Other"})(N=e.QuickInputHideReason||(e.QuickInputHideReason={}));var E;(function(L){L[L.NONE=0]="NONE",L[L.FIRST=1]="FIRST",L[L.SECOND=2]="SECOND",L[L.LAST=3]="LAST"})(E=e.ItemActivation||(e.ItemActivation={}));class I{constructor(S){this.a=S}}e.QuickPickItemScorerAccessor=I,e.quickPickItemScorerAccessor=new I,e.IQuickInputService=(0,C.createDecorator)("quickInputService")}),define(_[712],ee([1,0,7,43,68,525,274,527,139,41,17,11,20,29,6,2,16,102,32,18,671,79,710,711,305,156]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s,l,o,u,h,w,m){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.QuickInputController=void 0;const p=C.$,b={iconClass:s.ThemeIcon.asClassName(n.Codicon.quickInputBack),tooltip:(0,o.localize)(0,null),handle:-1};class y extends r.Disposable{constructor(R){super(),this.M=R,this.m=!1,this.n=!0,this.r=!1,this.s=!1,this.t=[],this.u=!1,this.v=[],this.w=!1,this.z=y.g,this.D=d.default.Ignore,this.G=this.q(new a.Emitter),this.H=this.q(new a.Emitter),this.I=this.q(new a.Emitter),this.J=this.q(new r.DisposableStore),this.onDidHide=this.H.event}get title(){return this.h}set title(R){this.h=R,this.N()}get description(){return this.i}set description(R){this.i=R,this.N()}get step(){return this.j}set step(R){this.j=R,this.N()}get totalSteps(){return this.l}set totalSteps(R){this.l=R,this.N()}get enabled(){return this.n}set enabled(R){this.n=R,this.N()}get contextKey(){return this.p}set contextKey(R){this.p=R,this.N()}get busy(){return this.r}set busy(R){this.r=R,this.N()}get ignoreFocusOut(){return this.s}set ignoreFocusOut(R){const P=this.s!==R&&!c.isIOS;this.s=R&&!c.isIOS,P&&this.N()}get buttons(){return this.t}set buttons(R){this.t=R,this.u=!0,this.N()}get toggles(){return this.v}set toggles(R){this.v=R??[],this.w=!0,this.N()}get validationMessage(){return this.B}set validationMessage(R){this.B=R,this.N()}get severity(){return this.D}set severity(R){this.D=R,this.N()}show(){this.m||(this.J.add(this.M.onDidTriggerButton(R=>{this.buttons.indexOf(R)!==-1&&this.G.fire(R)})),this.M.show(this),this.m=!0,this.C=void 0,this.F=void 0,this.buttons.length&&(this.u=!0),this.toggles.length&&(this.w=!0),this.N())}hide(){!this.m||this.M.hide()}didHide(R=u.QuickInputHideReason.Other){this.m=!1,this.J.clear(),this.H.fire({reason:R})}N(){var R,P;if(!this.m)return;const A=this.Q();A&&this.M.title.textContent!==A?this.M.title.textContent=A:!A&&this.M.title.innerHTML!==" "&&(this.M.title.innerText="\xA0");const T=this.S();if(this.M.description1.textContent!==T&&(this.M.description1.textContent=T),this.M.description2.textContent!==T&&(this.M.description2.textContent=T),this.busy&&!this.L&&(this.L=new i.TimeoutTimer,this.L.setIfNotSet(()=>{this.m&&this.M.progressBar.infinite()},800)),!this.busy&&this.L&&(this.M.progressBar.stop(),this.L.cancel(),this.L=void 0),this.u){this.u=!1,this.M.leftActionBar.clear();const B=this.buttons.filter(j=>j===b);this.M.leftActionBar.push(B.map((j,F)=>{const U=new f.Action(`id-${F}`,"",j.iconClass||(0,m.getIconClass)(j.iconPath),!0,()=>ye(this,void 0,void 0,function*(){this.G.fire(j)}));return U.tooltip=j.tooltip||"",U}),{icon:!0,label:!1}),this.M.rightActionBar.clear();const W=this.buttons.filter(j=>j!==b);this.M.rightActionBar.push(W.map((j,F)=>{const U=new f.Action(`id-${F}`,"",j.iconClass||(0,m.getIconClass)(j.iconPath),!0,()=>ye(this,void 0,void 0,function*(){this.G.fire(j)}));return U.tooltip=j.tooltip||"",U}),{icon:!0,label:!1})}if(this.w){this.w=!1;const B=(P=(R=this.toggles)===null||R===void 0?void 0:R.filter(W=>W instanceof v.Toggle))!==null&&P!==void 0?P:[];this.M.inputBox.toggles=B}this.M.ignoreFocusOut=this.ignoreFocusOut,this.M.setEnabled(this.enabled),this.M.setContextKey(this.contextKey);const O=this.validationMessage||this.z;this.C!==O&&(this.C=O,C.reset(this.M.message),(0,m.renderQuickInputDescription)(O,this.M.message,{callback:B=>{this.M.linkOpenerDelegate(B)},disposables:this.J})),this.F!==this.severity&&(this.F=this.severity,this.W(this.severity))}Q(){return this.title&&this.step?`${this.title} (${this.U()})`:this.title?this.title:this.step?this.U():""}S(){return this.description||""}U(){return this.step&&this.totalSteps?(0,o.localize)(2,null,this.step,this.totalSteps):this.step?String(this.step):""}W(R){if(this.M.inputBox.showDecoration(R),R!==d.default.Ignore){const P=this.M.inputBox.stylesForType(R);this.M.message.style.color=P.foreground?`${P.foreground}`:"",this.M.message.style.backgroundColor=P.background?`${P.background}`:"",this.M.message.style.border=P.border?`1px solid ${P.border}`:"",this.M.message.style.marginBottom="-2px"}else this.M.message.style.color="",this.M.message.style.backgroundColor="",this.M.message.style.border="",this.M.message.style.marginBottom=""}dispose(){this.hide(),this.I.fire(),super.dispose()}}y.g=(0,o.localize)(1,null);class k extends y{constructor(){super(...arguments),this.Y="",this.bb=this.q(new a.Emitter),this.cb=this.q(new a.Emitter),this.db=this.q(new a.Emitter),this.eb=this.q(new a.Emitter),this.fb=[],this.gb=!1,this.hb=!1,this.ib=!1,this.jb=!1,this.kb=!1,this.lb=!0,this.mb="fuzzy",this.nb=!0,this.ob=!0,this.pb=!1,this.qb=this.M.isScreenReaderOptimized()?u.ItemActivation.NONE:u.ItemActivation.FIRST,this.rb=[],this.sb=!1,this.tb=[],this.ub=this.q(new a.Emitter),this.vb=[],this.wb=!1,this.xb=[],this.yb=this.q(new a.Emitter),this.zb=this.q(new a.Emitter),this.Ab=this.q(new a.Emitter),this.Cb=!0,this.Db="default",this.Eb=!1,this.filterValue=R=>R,this.onDidChangeValue=this.bb.event,this.onWillAccept=this.cb.event,this.onDidAccept=this.db.event,this.onDidChangeActive=this.ub.event,this.onDidChangeSelection=this.yb.event,this.onDidTriggerItemButton=this.zb.event,this.onDidTriggerSeparatorButton=this.Ab.event}get quickNavigate(){return this.Hb}set quickNavigate(R){this.Hb=R,this.N()}get value(){return this.Y}set value(R){this.Kb(R)}Kb(R,P){this.Y!==R&&(this.Y=R,P||this.N(),this.m&&this.M.list.filter(this.filterValue(this.Y))&&this.Mb(),this.bb.fire(this.Y))}set ariaLabel(R){this.Z=R,this.N()}get ariaLabel(){return this.Z}get placeholder(){return this.ab}set placeholder(R){this.ab=R,this.N()}get items(){return this.fb}get Lb(){return this.M.list.scrollTop}set Lb(R){this.M.list.scrollTop=R}set items(R){this.fb=R,this.gb=!0,this.N()}get canSelectMany(){return this.hb}set canSelectMany(R){this.hb=R,this.N()}get canAcceptInBackground(){return this.ib}set canAcceptInBackground(R){this.ib=R}get matchOnDescription(){return this.jb}set matchOnDescription(R){this.jb=R,this.N()}get matchOnDetail(){return this.kb}set matchOnDetail(R){this.kb=R,this.N()}get matchOnLabel(){return this.lb}set matchOnLabel(R){this.lb=R,this.N()}get matchOnLabelMode(){return this.mb}set matchOnLabelMode(R){this.mb=R,this.N()}get sortByLabel(){return this.nb}set sortByLabel(R){this.nb=R,this.N()}get autoFocusOnList(){return this.ob}set autoFocusOnList(R){this.ob=R,this.N()}get keepScrollPosition(){return this.pb}set keepScrollPosition(R){this.pb=R}get itemActivation(){return this.qb}set itemActivation(R){this.qb=R}get activeItems(){return this.rb}set activeItems(R){this.rb=R,this.sb=!0,this.N()}get selectedItems(){return this.vb}set selectedItems(R){this.vb=R,this.wb=!0,this.N()}get keyMods(){return this.Hb?u.NO_KEY_MODS:this.M.keyMods}set valueSelection(R){this.Bb=R,this.Cb=!0,this.N()}get customButton(){return this.Eb}set customButton(R){this.Eb=R,this.N()}get customLabel(){return this.Fb}set customLabel(R){this.Fb=R,this.N()}get customHover(){return this.Gb}set customHover(R){this.Gb=R,this.N()}get ok(){return this.Db}set ok(R){this.Db=R,this.N()}get hideInput(){return!!this.Ib}set hideInput(R){this.Ib=R,this.N()}Mb(){this.autoFocusOnList&&(this.canSelectMany||this.M.list.focus(w.QuickInputListFocus.First))}show(){this.m||(this.J.add(this.M.inputBox.onDidChange(R=>{this.Kb(R,!0)})),this.J.add(this.M.inputBox.onMouseDown(R=>{this.autoFocusOnList||this.M.list.clearFocus()})),this.J.add((this.Ib?this.M.list:this.M.inputBox).onKeyDown(R=>{switch(R.keyCode){case 18:this.M.list.focus(w.QuickInputListFocus.Next),this.canSelectMany&&this.M.list.domFocus(),C.EventHelper.stop(R,!0);break;case 16:this.M.list.getFocusedElements().length?this.M.list.focus(w.QuickInputListFocus.Previous):this.M.list.focus(w.QuickInputListFocus.Last),this.canSelectMany&&this.M.list.domFocus(),C.EventHelper.stop(R,!0);break;case 12:this.M.list.focus(w.QuickInputListFocus.NextPage),this.canSelectMany&&this.M.list.domFocus(),C.EventHelper.stop(R,!0);break;case 11:this.M.list.focus(w.QuickInputListFocus.PreviousPage),this.canSelectMany&&this.M.list.domFocus(),C.EventHelper.stop(R,!0);break;case 17:if(!this.ib||!this.M.inputBox.isSelectionAtEnd())return;this.activeItems[0]&&(this.vb=[this.activeItems[0]],this.yb.fire(this.selectedItems),this.Nb(!0));break;case 14:(R.ctrlKey||R.metaKey)&&!R.shiftKey&&!R.altKey&&(this.M.list.focus(w.QuickInputListFocus.First),C.EventHelper.stop(R,!0));break;case 13:(R.ctrlKey||R.metaKey)&&!R.shiftKey&&!R.altKey&&(this.M.list.focus(w.QuickInputListFocus.Last),C.EventHelper.stop(R,!0));break}})),this.J.add(this.M.onDidAccept(()=>{this.canSelectMany?this.M.list.getCheckedElements().length||(this.vb=[],this.yb.fire(this.selectedItems)):this.activeItems[0]&&(this.vb=[this.activeItems[0]],this.yb.fire(this.selectedItems)),this.Nb(!1)})),this.J.add(this.M.onDidCustom(()=>{this.eb.fire()})),this.J.add(this.M.list.onDidChangeFocus(R=>{this.sb||this.tb!==this.rb&&(0,g.equals)(R,this.rb,(P,A)=>P===A)||(this.rb=R,this.ub.fire(R))})),this.J.add(this.M.list.onDidChangeSelection(({items:R,event:P})=>{if(this.canSelectMany){R.length&&this.M.list.setSelectedElements([]);return}this.xb!==this.vb&&(0,g.equals)(R,this.vb,(A,T)=>A===T)||(this.vb=R,this.yb.fire(R),R.length&&this.Nb(P instanceof MouseEvent&&P.button===1))})),this.J.add(this.M.list.onChangedCheckedElements(R=>{!this.canSelectMany||this.xb!==this.vb&&(0,g.equals)(R,this.vb,(P,A)=>P===A)||(this.vb=R,this.yb.fire(R))})),this.J.add(this.M.list.onButtonTriggered(R=>this.zb.fire(R))),this.J.add(this.M.list.onSeparatorButtonTriggered(R=>this.Ab.fire(R))),this.J.add(this.Ob()),this.Cb=!0),super.show()}Nb(R){let P=!1;this.cb.fire({veto:()=>P=!0}),P||this.db.fire({inBackground:R})}Ob(){return C.addDisposableListener(this.M.container,C.EventType.KEY_UP,R=>{if(this.canSelectMany||!this.Hb)return;const P=new N.StandardKeyboardEvent(R),A=P.keyCode;this.Hb.keybindings.some(B=>{const[W,j]=B.getChords();return j?!1:W.shiftKey&&A===4?!(P.ctrlKey||P.altKey||P.metaKey):!!(W.altKey&&A===6||W.ctrlKey&&A===5||W.metaKey&&A===57)})&&(this.activeItems[0]&&(this.vb=[this.activeItems[0]],this.yb.fire(this.selectedItems),this.Nb(!1)),this.Hb=void 0)})}N(){if(!this.m)return;const R=this.keepScrollPosition?this.Lb:0,P=!!this.description,A={title:!!this.title||!!this.step||!!this.buttons.length,description:P,checkAll:this.canSelectMany&&!this.Jb,checkBox:this.canSelectMany,inputBox:!this.Ib,progressBar:!this.Ib||P,visibleCount:!0,count:this.canSelectMany,ok:this.ok==="default"?this.canSelectMany:this.ok,list:!0,message:!!this.validationMessage,customButton:this.customButton};this.M.setVisibilities(A),super.N(),this.M.inputBox.value!==this.value&&(this.M.inputBox.value=this.value),this.Cb&&(this.Cb=!1,this.M.inputBox.select(this.Bb&&{start:this.Bb[0],end:this.Bb[1]})),this.M.inputBox.placeholder!==(this.placeholder||"")&&(this.M.inputBox.placeholder=this.placeholder||"");let T=this.ariaLabel;if(T||(T=this.placeholder||k.X,this.title&&(T+=` - ${this.title}`)),this.M.inputBox.ariaLabel!==T&&(this.M.inputBox.ariaLabel=T),this.M.list.matchOnDescription=this.matchOnDescription,this.M.list.matchOnDetail=this.matchOnDetail,this.M.list.matchOnLabel=this.matchOnLabel,this.M.list.matchOnLabelMode=this.matchOnLabelMode,this.M.list.sortByLabel=this.sortByLabel,this.gb)switch(this.gb=!1,this.M.list.setElements(this.items),this.M.list.filter(this.filterValue(this.M.inputBox.value)),this.M.checkAll.checked=this.M.list.getAllVisibleChecked(),this.M.visibleCount.setCount(this.M.list.getVisibleCount()),this.M.count.setCount(this.M.list.getCheckedCount()),this.qb){case u.ItemActivation.NONE:this.qb=u.ItemActivation.FIRST;break;case u.ItemActivation.SECOND:this.M.list.focus(w.QuickInputListFocus.Second),this.qb=u.ItemActivation.FIRST;break;case u.ItemActivation.LAST:this.M.list.focus(w.QuickInputListFocus.Last),this.qb=u.ItemActivation.FIRST;break;default:this.Mb();break}this.M.container.classList.contains("show-checkboxes")!==!!this.canSelectMany&&(this.canSelectMany?this.M.list.clearFocus():this.Mb()),this.sb&&(this.sb=!1,this.tb=this.rb,this.M.list.setFocusedElements(this.activeItems),this.tb===this.rb&&(this.tb=null)),this.wb&&(this.wb=!1,this.xb=this.vb,this.canSelectMany?this.M.list.setCheckedElements(this.selectedItems):this.M.list.setSelectedElements(this.selectedItems),this.xb===this.vb&&(this.xb=null)),this.M.customButton.label=this.customLabel||"",this.M.customButton.element.title=this.customHover||"",this.M.setComboboxAccessibility(!0),A.inputBox||(this.M.list.domFocus(),this.canSelectMany&&this.M.list.focus(w.QuickInputListFocus.First)),this.keepScrollPosition&&(this.Lb=R)}}k.X=(0,o.localize)(3,null);class D extends y{constructor(){super(...arguments),this.X="",this.Z=!0,this.bb=!1,this.cb=this.q(new a.Emitter),this.db=this.q(new a.Emitter),this.onDidChangeValue=this.cb.event,this.onDidAccept=this.db.event}get value(){return this.X}set value(R){this.X=R||"",this.N()}get placeholder(){return this.ab}set placeholder(R){this.ab=R,this.N()}get password(){return this.bb}set password(R){this.bb=R,this.N()}show(){this.m||(this.J.add(this.M.inputBox.onDidChange(R=>{R!==this.value&&(this.X=R,this.cb.fire(R))})),this.J.add(this.M.onDidAccept(()=>this.db.fire())),this.Z=!0),super.show()}N(){if(!this.m)return;this.M.container.classList.remove("hidden-input");const R={title:!!this.title||!!this.step||!!this.buttons.length,description:!!this.description||!!this.step,inputBox:!0,message:!0};this.M.setVisibilities(R),super.N(),this.M.inputBox.value!==this.value&&(this.M.inputBox.value=this.value),this.Z&&(this.Z=!1,this.M.inputBox.select(this.Y&&{start:this.Y[0],end:this.Y[1]})),this.M.inputBox.placeholder!==(this.placeholder||"")&&(this.M.inputBox.placeholder=this.placeholder||""),this.M.inputBox.password!==this.password&&(this.M.inputBox.password=this.password)}}class M extends r.Disposable{constructor(R){super(),this.D=R,this.m=!1,this.n=!0,this.p=this.q(new a.Emitter),this.r=this.q(new a.Emitter),this.s=this.q(new a.Emitter),this.t={ctrlCmd:!1,alt:!1},this.u=null,this.z=this.q(new a.Emitter),this.onShow=this.z.event,this.B=this.q(new a.Emitter),this.onHide=this.B.event,this.h=R.idPrefix,this.v=R.container,this.w=R.styles,this.F()}F(){const R=P=>{this.t.ctrlCmd=P.ctrlKey||P.metaKey,this.t.alt=P.altKey};this.q(C.addDisposableListener(window,C.EventType.KEY_DOWN,R,!0)),this.q(C.addDisposableListener(window,C.EventType.KEY_UP,R,!0)),this.q(C.addDisposableListener(window,C.EventType.MOUSE_DOWN,R,!0))}G(){if(this.i)return this.i;const R=C.append(this.v,p(".quick-input-widget.show-file-icons"));R.tabIndex=-1,R.style.display="none";const P=C.createStyleSheet(R),A=C.append(R,p(".quick-input-titlebar")),T=this.q(new E.ActionBar(A));T.domNode.classList.add("quick-input-left-action-bar");const O=C.append(A,p(".quick-input-title")),B=this.q(new E.ActionBar(A));B.domNode.classList.add("quick-input-right-action-bar");const W=C.append(R,p(".quick-input-description")),j=C.append(R,p(".quick-input-header")),F=C.append(j,p("input.quick-input-check-all"));F.type="checkbox",F.setAttribute("aria-label",(0,o.localize)(4,null)),this.q(C.addStandardDisposableListener(F,C.EventType.CHANGE,V=>{const H=F.checked;Y.setAllVisibleChecked(H)})),this.q(C.addDisposableListener(F,C.EventType.CLICK,V=>{(V.x||V.y)&&he.setFocus()}));const U=C.append(j,p(".quick-input-description")),Q=C.append(j,p(".quick-input-and-message")),se=C.append(Q,p(".quick-input-filter")),he=this.q(new h.QuickInputBox(se,this.w.inputBox,this.w.toggle));he.setAttribute("aria-describedby",`${this.h}message`);const ie=C.append(se,p(".quick-input-visible-count"));ie.setAttribute("aria-live","polite"),ie.setAttribute("aria-atomic","true");const ue=new L.CountBadge(ie,{countFormat:(0,o.localize)(5,null)},this.w.countBadge),J=C.append(se,p(".quick-input-count"));J.setAttribute("aria-live","polite");const x=new L.CountBadge(J,{countFormat:(0,o.localize)(6,null)},this.w.countBadge),G=C.append(j,p(".quick-input-action")),te=new I.Button(G,this.w.button);te.label=(0,o.localize)(7,null),this.q(te.onDidClick(V=>{this.p.fire()}));const Z=C.append(j,p(".quick-input-action")),ae=new I.Button(Z,this.w.button);ae.label=(0,o.localize)(8,null),this.q(ae.onDidClick(V=>{this.r.fire()}));const de=C.append(Q,p(`#${this.h}message.quick-input-message`)),K=new S.ProgressBar(R,this.w.progressBar);K.getContainer().classList.add("quick-input-progress");const Y=this.q(new w.QuickInputList(R,this.h+"list",this.D));this.q(Y.onChangedAllVisibleChecked(V=>{F.checked=V})),this.q(Y.onChangedVisibleCount(V=>{ue.setCount(V)})),this.q(Y.onChangedCheckedCount(V=>{x.setCount(V)})),this.q(Y.onLeave(()=>{setTimeout(()=>{he.setFocus(),this.u instanceof k&&this.u.canSelectMany&&Y.clearFocus()},0)})),this.q(Y.onDidChangeFocus(()=>{this.m&&this.G().inputBox.setAttribute("aria-activedescendant",this.G().list.getActiveDescendant()||"")}));const ne=C.trackFocus(R);return this.q(ne),this.q(C.addDisposableListener(R,C.EventType.FOCUS,V=>{this.C=V.relatedTarget instanceof HTMLElement?V.relatedTarget:void 0},!0)),this.q(ne.onDidBlur(()=>{!this.G().ignoreFocusOut&&!this.D.ignoreFocusOut()&&this.hide(u.QuickInputHideReason.Blur),this.C=void 0})),this.q(C.addDisposableListener(R,C.EventType.FOCUS,V=>{he.setFocus()})),this.q(C.addDisposableListener(R,C.EventType.KEY_DOWN,V=>{const H=new N.StandardKeyboardEvent(V);switch(H.keyCode){case 3:C.EventHelper.stop(V,!0),this.n&&this.p.fire();break;case 9:C.EventHelper.stop(V,!0),this.hide(u.QuickInputHideReason.Gesture);break;case 2:if(!H.altKey&&!H.ctrlKey&&!H.metaKey){const $=[".action-label.codicon"];R.classList.contains("show-checkboxes")?$.push("input"):$.push("input[type=text]"),this.G().list.isDisplayed()&&$.push(".monaco-list"),this.G().message&&$.push(".quick-input-message a");const oe=R.querySelectorAll($.join(", "));H.shiftKey&&H.target===oe[0]?(C.EventHelper.stop(V,!0),oe[oe.length-1].focus()):!H.shiftKey&&H.target===oe[oe.length-1]&&(C.EventHelper.stop(V,!0),oe[0].focus())}break;case 10:H.ctrlKey&&(C.EventHelper.stop(V,!0),this.G().list.toggleHover());break}})),this.i={container:R,styleSheet:P,leftActionBar:T,titleBar:A,title:O,description1:W,description2:U,rightActionBar:B,checkAll:F,filterContainer:se,inputBox:he,visibleCountContainer:ie,visibleCount:ue,countContainer:J,count:x,okContainer:G,ok:te,message:de,customButtonContainer:Z,customButton:ae,list:Y,progressBar:K,onDidAccept:this.p.event,onDidCustom:this.r.event,onDidTriggerButton:this.s.event,ignoreFocusOut:!1,keyMods:this.t,isScreenReaderOptimized:()=>this.D.isScreenReaderOptimized(),show:V=>this.H(V),hide:()=>this.hide(),setVisibilities:V=>this.I(V),setComboboxAccessibility:V=>this.J(V),setEnabled:V=>this.L(V),setContextKey:V=>this.D.setContextKey(V),linkOpenerDelegate:V=>this.D.linkOpenerDelegate(V)},this.N(),this.i}pick(R,P={},A=t.CancellationToken.None){return new Promise((T,O)=>{let B=U=>{var Q;B=T,(Q=P.onKeyMods)===null||Q===void 0||Q.call(P,W.keyMods),T(U)};if(A.isCancellationRequested){B(void 0);return}const W=this.createQuickPick();let j;const F=[W,W.onDidAccept(()=>{if(W.canSelectMany)B(W.selectedItems.slice()),W.hide();else{const U=W.activeItems[0];U&&(B(U),W.hide())}}),W.onDidChangeActive(U=>{const Q=U[0];Q&&P.onDidFocus&&P.onDidFocus(Q)}),W.onDidChangeSelection(U=>{if(!W.canSelectMany){const Q=U[0];Q&&(B(Q),W.hide())}}),W.onDidTriggerItemButton(U=>P.onDidTriggerItemButton&&P.onDidTriggerItemButton(Object.assign(Object.assign({},U),{removeItem:()=>{const Q=W.items.indexOf(U.item);if(Q!==-1){const se=W.items.slice(),he=se.splice(Q,1),ie=W.activeItems.filter(J=>J!==he[0]),ue=W.keepScrollPosition;W.keepScrollPosition=!0,W.items=se,ie&&(W.activeItems=ie),W.keepScrollPosition=ue}}}))),W.onDidTriggerSeparatorButton(U=>{var Q;return(Q=P.onDidTriggerSeparatorButton)===null||Q===void 0?void 0:Q.call(P,U)}),W.onDidChangeValue(U=>{j&&!U&&(W.activeItems.length!==1||W.activeItems[0]!==j)&&(W.activeItems=[j])}),A.onCancellationRequested(()=>{W.hide()}),W.onDidHide(()=>{(0,r.dispose)(F),B(void 0)})];W.title=P.title,W.canSelectMany=!!P.canPickMany,W.placeholder=P.placeHolder,W.ignoreFocusOut=!!P.ignoreFocusLost,W.matchOnDescription=!!P.matchOnDescription,W.matchOnDetail=!!P.matchOnDetail,W.matchOnLabel=P.matchOnLabel===void 0||P.matchOnLabel,W.autoFocusOnList=P.autoFocusOnList===void 0||P.autoFocusOnList,W.quickNavigate=P.quickNavigate,W.hideInput=!!P.hideInput,W.contextKey=P.contextKey,W.busy=!0,Promise.all([R,P.activeItem]).then(([U,Q])=>{j=Q,W.busy=!1,W.items=U,W.canSelectMany&&(W.selectedItems=U.filter(se=>se.type!=="separator"&&se.picked)),j&&(W.activeItems=[j])}),W.show(),Promise.resolve(R).then(void 0,U=>{O(U),W.hide()})})}createQuickPick(){const R=this.G();return new k(R)}createInputBox(){const R=this.G();return new D(R)}H(R){const P=this.G();this.z.fire();const A=this.u;this.u=R,A?.didHide(),this.L(!0),P.leftActionBar.clear(),P.title.textContent="",P.description1.textContent="",P.description2.textContent="",P.rightActionBar.clear(),P.checkAll.checked=!1,P.inputBox.placeholder="",P.inputBox.password=!1,P.inputBox.showDecoration(d.default.Ignore),P.visibleCount.setCount(0),P.count.setCount(0),C.reset(P.message),P.progressBar.stop(),P.list.setElements([]),P.list.matchOnDescription=!1,P.list.matchOnDetail=!1,P.list.matchOnLabel=!0,P.list.sortByLabel=!0,P.ignoreFocusOut=!1,this.J(!1),P.inputBox.ariaLabel="",P.inputBox.toggles=void 0;const T=this.D.backKeybindingLabel();b.tooltip=T?(0,o.localize)(9,null,T):(0,o.localize)(10,null),P.container.style.display="",this.M(),P.inputBox.setFocus()}I(R){const P=this.G();P.title.style.display=R.title?"":"none",P.description1.style.display=R.description&&(R.inputBox||R.checkAll)?"":"none",P.description2.style.display=R.description&&!(R.inputBox||R.checkAll)?"":"none",P.checkAll.style.display=R.checkAll?"":"none",P.filterContainer.style.display=R.inputBox?"":"none",P.visibleCountContainer.style.display=R.visibleCount?"":"none",P.countContainer.style.display=R.count?"":"none",P.okContainer.style.display=R.ok?"":"none",P.customButtonContainer.style.display=R.customButton?"":"none",P.message.style.display=R.message?"":"none",P.progressBar.getContainer().style.display=R.progressBar?"":"none",P.list.display(!!R.list),P.container.classList.toggle("show-checkboxes",!!R.checkBox),P.container.classList.toggle("hidden-input",!R.inputBox&&!R.description),this.M()}J(R){if(R!==this.m){const P=this.G();this.m=R,this.m?(P.inputBox.setAttribute("role","combobox"),P.inputBox.setAttribute("aria-haspopup","true"),P.inputBox.setAttribute("aria-autocomplete","list"),P.inputBox.setAttribute("aria-activedescendant",P.list.getActiveDescendant()||"")):(P.inputBox.removeAttribute("role"),P.inputBox.removeAttribute("aria-haspopup"),P.inputBox.removeAttribute("aria-autocomplete"),P.inputBox.removeAttribute("aria-activedescendant"))}}L(R){if(R!==this.n){this.n=R;for(const P of this.G().leftActionBar.viewItems)P.action.enabled=R;for(const P of this.G().rightActionBar.viewItems)P.action.enabled=R;this.G().checkAll.disabled=!R,this.G().inputBox.enabled=R,this.G().ok.enabled=R,this.G().list.enabled=R}}hide(R){var P;const A=this.u;if(A){const T=!(!((P=this.i)===null||P===void 0)&&P.container.contains(document.activeElement));if(this.u=null,this.B.fire(),this.G().container.style.display="none",!T){let O=this.C;for(;O&&!O.offsetParent;)O=(0,l.withNullAsUndefined)(O.parentElement);O?.offsetParent?(O.focus(),this.C=void 0):this.D.returnFocus()}A.didHide(R)}}layout(R,P){this.j=R,this.l=P,this.M()}M(){if(this.i&&this.Q()){this.i.container.style.top=`${this.l}px`;const R=this.i.container.style,P=Math.min(this.j.width*.62,M.g);R.width=P+"px",R.marginLeft="-"+P/2+"px",this.i.inputBox.layout(),this.i.list.layout(this.j&&this.j.height*.4)}}applyStyles(R){this.w=R,this.N()}N(){if(this.i){const{quickInputTitleBackground:R,quickInputBackground:P,quickInputForeground:A,widgetBorder:T,widgetShadow:O}=this.w.widget;this.i.titleBar.style.backgroundColor=R??"",this.i.container.style.backgroundColor=P??"",this.i.container.style.color=A??"",this.i.container.style.border=T?`1px solid ${T}`:"",this.i.container.style.boxShadow=O?`0 0 8px 2px ${O}`:"",this.i.list.style(this.w.list);const B=[];this.w.pickerGroup.pickerGroupBorder&&B.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.w.pickerGroup.pickerGroupBorder}; }`),this.w.pickerGroup.pickerGroupForeground&&B.push(`.quick-input-list .quick-input-list-separator { color: ${this.w.pickerGroup.pickerGroupForeground}; }`),this.w.pickerGroup.pickerGroupForeground&&B.push(`.quick-input-list .quick-input-list-separator-as-item { color: ${this.w.pickerGroup.pickerGroupForeground}; }`),(this.w.keybindingLabel.keybindingLabelBackground||this.w.keybindingLabel.keybindingLabelBorder||this.w.keybindingLabel.keybindingLabelBottomBorder||this.w.keybindingLabel.keybindingLabelShadow||this.w.keybindingLabel.keybindingLabelForeground)&&(B.push(".quick-input-list .monaco-keybinding > .monaco-keybinding-key {"),this.w.keybindingLabel.keybindingLabelBackground&&B.push(`background-color: ${this.w.keybindingLabel.keybindingLabelBackground};`),this.w.keybindingLabel.keybindingLabelBorder&&B.push(`border-color: ${this.w.keybindingLabel.keybindingLabelBorder};`),this.w.keybindingLabel.keybindingLabelBottomBorder&&B.push(`border-bottom-color: ${this.w.keybindingLabel.keybindingLabelBottomBorder};`),this.w.keybindingLabel.keybindingLabelShadow&&B.push(`box-shadow: inset 0 -1px 0 ${this.w.keybindingLabel.keybindingLabelShadow};`),this.w.keybindingLabel.keybindingLabelForeground&&B.push(`color: ${this.w.keybindingLabel.keybindingLabelForeground};`),B.push("}"));const W=B.join(`
|
||
`);W!==this.i.styleSheet.textContent&&(this.i.styleSheet.textContent=W)}}Q(){return this.i&&this.i.container.style.display!=="none"}}M.g=600,e.QuickInputController=M}),define(_[33],ee([1,0,85,18]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Registry=void 0;class E{constructor(){this.a=new Map}add(L,S){C.ok(N.isString(L)),C.ok(N.isObject(S)),C.ok(!this.a.has(L),"There is already an extension with this id"),this.a.set(L,S)}as(L){return this.a.get(L)||null}}e.Registry=new E}),define(_[713],ee([1,0,127,55,202,21,50,33]),function(q,e,C,N,E,I,L,S){"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 v(i){var t;const n=[];if(i.dataTransfer&&i.dataTransfer.types.length>0){const c=i.dataTransfer.getData(e.CodeDataTransfers.EDITORS);if(c)try{n.push(...(0,E.parse)(c))}catch{}else try{const l=i.dataTransfer.getData(C.DataTransfers.RESOURCES);n.push(...f(l))}catch{}if(!((t=i.dataTransfer)===null||t===void 0)&&t.files)for(let l=0;l<i.dataTransfer.files.length;l++){const o=i.dataTransfer.files[l];if(o&&o.path)try{n.push({resource:I.URI.file(o.path),isExternal:!0,allowWorkspaceOpen:!0})}catch{}}const d=i.dataTransfer.getData(e.CodeDataTransfers.FILES);if(d)try{const l=JSON.parse(d);for(const o of l)n.push({resource:I.URI.file(o),isExternal:!0,allowWorkspaceOpen:!0})}catch{}const s=S.Registry.as(e.Extensions.DragAndDropContribution).getAll();for(const l of s){const o=i.dataTransfer.getData(l.dataFormatKey);if(o)try{n.push(...l.getEditorInputs(o))}catch{}}}const a=[],r=new N.ResourceMap;for(const c of n)c.resource?r.has(c.resource)||(a.push(c),r.set(c.resource,!0)):a.push(c);return a}e.extractEditorsDropData=v;function f(i){const t=[];if(i){const n=JSON.parse(i);for(const a of n)if(a.indexOf(":")>0){const{selection:r,uri:c}=(0,L.extractSelection)(I.URI.parse(a));t.push({resource:c,options:{selection:r}})}}return t}e.createDraggedEditorInputFromRawResourcesData=f;class g{constructor(){this.a=new Map}getAll(){return this.a.values()}}e.Extensions={DragAndDropContribution:"workbench.contributions.dragAndDrop"},S.Registry.add(e.Extensions.DragAndDropContribution,new g)}),define(_[306],ee([1,0,127,184,101,21,713]),function(q,e,C,N,E,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addExternalEditorsDropData=e.toVSDataTransfer=void 0;function S(i){const t=new N.VSDataTransfer;for(const n of i.items){const a=n.type;if(n.kind==="string"){const r=new Promise(c=>n.getAsString(c));t.append(a,(0,N.createStringDataTransferItem)(r))}else if(n.kind==="file"){const r=n.getAsFile();r&&t.append(a,v(r))}}return t}e.toVSDataTransfer=S;function v(i){const t=i.path?I.URI.parse(i.path):void 0;return(0,N.createFileDataTransferItem)(i.name,t,()=>ye(this,void 0,void 0,function*(){return new Uint8Array(yield i.arrayBuffer())}))}const f=Object.freeze([L.CodeDataTransfers.EDITORS,L.CodeDataTransfers.FILES,C.DataTransfers.RESOURCES]);function g(i,t,n=!1){var a;if(t.dataTransfer&&(n||!i.has(E.Mimes.uriList))){const r=(0,L.extractEditorsDropData)(t).filter(c=>c.resource).map(c=>c.resource.toString());for(const c of(a=t.dataTransfer)===null||a===void 0?void 0:a.items){const d=c.getAsFile();d&&r.push(d.path?I.URI.file(d.path).toString():d.name)}r.length&&i.replace(E.Mimes.uriList,(0,N.createStringDataTransferItem)(N.UriList.create(r)))}for(const r of f)i.delete(r)}e.addExternalEditorsDropData=g}),define(_[223],ee([1,0,6,33]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Extensions=void 0,e.Extensions={JSONContribution:"base.contributions.json"};function E(S){return S.length>0&&S.charAt(S.length-1)==="#"?S.substring(0,S.length-1):S}class I{constructor(){this.b=new C.Emitter,this.a={}}registerSchema(v,f){this.a[E(v)]=f,this.b.fire(v)}notifySchemaChanged(v){this.b.fire(v)}}const L=new I;N.Registry.add(e.Extensions.JSONContribution,L)}),define(_[90],ee([1,0,17,6,18,662,27,223,33]),function(q,e,C,N,E,I,L,S,v){"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 f=v.Registry.as(S.Extensions.JSONContribution);class g{constructor(){this.h=new Set,this.i=new N.Emitter,this.j=new N.Emitter,this.a=new Map,this.b={id:"defaultOverrides",title:I.localize(0,null),properties:{}},this.c=[this.b],this.g={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.d={},this.e=new Map,this.f={},f.registerSchema(e.resourceLanguageSettingsSchemaId,this.g),this.r()}registerConfiguration(s,l=!0){this.registerConfigurations([s],l)}registerConfigurations(s,l=!0){const o=new Set;this.m(s,l,o),f.registerSchema(e.resourceLanguageSettingsSchemaId,this.g),this.i.fire(),this.j.fire({properties:o})}registerDefaultConfigurations(s){const l=new Set;this.k(s,l),this.i.fire(),this.j.fire({properties:l,defaultsOverrides:!0})}k(s,l){var o;const u=[];for(const{overrides:h,source:w}of s)for(const m in h)if(l.add(m),e.OVERRIDE_PROPERTY_REGEX.test(m)){const p=this.a.get(m),b=(o=p?.valuesSources)!==null&&o!==void 0?o:new Map;if(w)for(const M of Object.keys(h[m]))b.set(M,w);const y=Object.assign(Object.assign({},p?.value||{}),h[m]);this.a.set(m,{source:w,value:y,valuesSources:b});const k=(0,L.getLanguageTagSettingPlainKey)(m),D={type:"object",default:y,description:I.localize(1,null,k),$ref:e.resourceLanguageSettingsSchemaId,defaultDefaultValue:y,source:E.isString(w)?void 0:w,defaultValueSource:w};u.push(...n(m)),this.d[m]=D,this.b.properties[m]=D}else{this.a.set(m,{value:h[m],source:w});const p=this.d[m];p&&(this.s(m,p),this.p(m,p))}this.l(u)}registerOverrideIdentifiers(s){this.l(s),this.i.fire()}l(s){for(const l of s)this.h.add(l);this.q()}m(s,l,o){s.forEach(u=>{this.n(u,l,u.extensionInfo,u.restrictedProperties,void 0,o),this.c.push(u),this.o(u)})}n(s,l=!0,o,u,h=3,w){var m;h=E.isUndefinedOrNull(s.scope)?h:s.scope;const p=s.properties;if(p)for(const y in p){const k=p[y];if(l&&c(y,k)){delete p[y];continue}if(k.source=o,k.defaultDefaultValue=p[y].default,this.s(y,k),e.OVERRIDE_PROPERTY_REGEX.test(y)?k.scope=void 0:(k.scope=E.isUndefinedOrNull(k.scope)?h:k.scope,k.restricted=E.isUndefinedOrNull(k.restricted)?!!u?.includes(y):k.restricted),p[y].hasOwnProperty("included")&&!p[y].included){this.f[y]=p[y],delete p[y];continue}else this.d[y]=p[y],!((m=p[y].policy)===null||m===void 0)&&m.name&&this.e.set(p[y].policy.name,y);!p[y].deprecationMessage&&p[y].markdownDeprecationMessage&&(p[y].deprecationMessage=p[y].markdownDeprecationMessage),w.add(y)}const b=s.allOf;if(b)for(const y of b)this.n(y,l,o,u,h,w)}getConfigurationProperties(){return this.d}getPolicyConfigurations(){return this.e}o(s){const l=o=>{const u=o.properties;if(u)for(const w in u)this.p(w,u[w]);const h=o.allOf;h?.forEach(l)};l(s)}p(s,l){switch(e.allSettings.properties[s]=l,l.scope){case 1:e.applicationSettings.properties[s]=l;break;case 2:e.machineSettings.properties[s]=l;break;case 6:e.machineOverridableSettings.properties[s]=l;break;case 3:e.windowSettings.properties[s]=l;break;case 4:e.resourceSettings.properties[s]=l;break;case 5:e.resourceSettings.properties[s]=l,this.g.properties[s]=l;break}}q(){for(const s of this.h.values()){const l=`[${s}]`,o={type:"object",description:I.localize(2,null),errorMessage:I.localize(3,null),$ref:e.resourceLanguageSettingsSchemaId};this.s(l,o),e.allSettings.properties[l]=o,e.applicationSettings.properties[l]=o,e.machineSettings.properties[l]=o,e.machineOverridableSettings.properties[l]=o,e.windowSettings.properties[l]=o,e.resourceSettings.properties[l]=o}}r(){const s={type:"object",description:I.localize(4,null),errorMessage:I.localize(5,null),$ref:e.resourceLanguageSettingsSchemaId};e.allSettings.patternProperties[e.OVERRIDE_PROPERTY_PATTERN]=s,e.applicationSettings.patternProperties[e.OVERRIDE_PROPERTY_PATTERN]=s,e.machineSettings.patternProperties[e.OVERRIDE_PROPERTY_PATTERN]=s,e.machineOverridableSettings.patternProperties[e.OVERRIDE_PROPERTY_PATTERN]=s,e.windowSettings.patternProperties[e.OVERRIDE_PROPERTY_PATTERN]=s,e.resourceSettings.patternProperties[e.OVERRIDE_PROPERTY_PATTERN]=s,this.i.fire()}s(s,l){const o=this.a.get(s);let u=o?.value,h=o?.source;E.isUndefined(u)&&(u=l.defaultDefaultValue,h=void 0),E.isUndefined(u)&&(u=a(l.type)),l.default=u,l.defaultValueSource=h}}const i="\\[([^\\]]+)\\]",t=new RegExp(i,"g");e.OVERRIDE_PROPERTY_PATTERN=`^(${i})+$`,e.OVERRIDE_PROPERTY_REGEX=new RegExp(e.OVERRIDE_PROPERTY_PATTERN);function n(d){const s=[];if(e.OVERRIDE_PROPERTY_REGEX.test(d)){let l=t.exec(d);for(;l?.length;){const o=l[1].trim();o&&s.push(o),l=t.exec(d)}}return(0,C.distinct)(s)}e.overrideIdentifiersFromKey=n;function a(d){switch(Array.isArray(d)?d[0]:d){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}e.getDefaultValue=a;const r=new g;v.Registry.add(e.Extensions.Configuration,r);function c(d,s){var l,o,u,h;return d.trim()?e.OVERRIDE_PROPERTY_REGEX.test(d)?I.localize(7,null,d):r.getConfigurationProperties()[d]!==void 0?I.localize(8,null,d):((l=s.policy)===null||l===void 0?void 0:l.name)&&r.getPolicyConfigurations().get((o=s.policy)===null||o===void 0?void 0:o.name)!==void 0?I.localize(9,null,d,(u=s.policy)===null||u===void 0?void 0:u.name,r.getPolicyConfigurations().get((h=s.policy)===null||h===void 0?void 0:h.name)):null:I.localize(6,null)}e.validateProperty=c}),define(_[224],ee([1,0,40,157,569,90,33]),function(q,e,C,N,E,I,L){"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:E.localize(0,null),scope:5});const S=Object.assign(Object.assign({},e.editorConfigurationBaseNode),{properties:{"editor.tabSize":{type:"number",default:N.EDITOR_MODEL_DEFAULTS.tabSize,minimum:1,markdownDescription:E.localize(1,null,"`#editor.detectIndentation#`")},"editor.indentSize":{anyOf:[{type:"string",enum:["tabSize"]},{type:"number",minimum:1}],default:"tabSize",markdownDescription:E.localize(2,null)},"editor.insertSpaces":{type:"boolean",default:N.EDITOR_MODEL_DEFAULTS.insertSpaces,markdownDescription:E.localize(3,null,"`#editor.detectIndentation#`")},"editor.detectIndentation":{type:"boolean",default:N.EDITOR_MODEL_DEFAULTS.detectIndentation,markdownDescription:E.localize(4,null,"`#editor.tabSize#`","`#editor.insertSpaces#`")},"editor.trimAutoWhitespace":{type:"boolean",default:N.EDITOR_MODEL_DEFAULTS.trimAutoWhitespace,description:E.localize(5,null)},"editor.largeFileOptimizations":{type:"boolean",default:N.EDITOR_MODEL_DEFAULTS.largeFileOptimizations,description:E.localize(6,null)},"editor.wordBasedSuggestions":{type:"boolean",default:!0,description:E.localize(7,null)},"editor.wordBasedSuggestionsMode":{enum:["currentDocument","matchingDocuments","allDocuments"],default:"matchingDocuments",enumDescriptions:[E.localize(8,null),E.localize(9,null),E.localize(10,null)],description:E.localize(11,null)},"editor.semanticHighlighting.enabled":{enum:[!0,!1,"configuredByTheme"],enumDescriptions:[E.localize(12,null),E.localize(13,null),E.localize(14,null)],default:"configuredByTheme",description:E.localize(15,null)},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:E.localize(16,null)},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:E.localize(17,null)},"editor.experimental.asyncTokenization":{type:"boolean",default:!1,description:E.localize(18,null),tags:["experimental"]},"editor.language.brackets":{type:["array","null"],default:null,description:E.localize(19,null),items:{type:"array",items:[{type:"string",description:E.localize(20,null)},{type:"string",description:E.localize(21,null)}]}},"editor.language.colorizedBracketPairs":{type:["array","null"],default:null,description:E.localize(22,null),items:{type:"array",items:[{type:"string",description:E.localize(23,null)},{type:"string",description:E.localize(24,null)}]}},"diffEditor.maxComputationTime":{type:"number",default:5e3,description:E.localize(25,null)},"diffEditor.maxFileSize":{type:"number",default:50,description:E.localize(26,null)},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:E.localize(27,null)},"diffEditor.renderMarginRevertIcon":{type:"boolean",default:!0,description:E.localize(28,null)},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:E.localize(29,null)},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:E.localize(30,null)},"diffEditor.codeLens":{type:"boolean",default:!1,description:E.localize(31,null)},"diffEditor.wordWrap":{type:"string",enum:["off","on","inherit"],default:"inherit",markdownEnumDescriptions:[E.localize(32,null),E.localize(33,null),E.localize(34,null,"`#editor.wordWrap#`")]},"diffEditor.diffAlgorithm":{type:"string",enum:["smart","experimental"],default:"smart",markdownEnumDescriptions:[E.localize(35,null),E.localize(36,null)]}}});function v(a){return typeof a.type<"u"||typeof a.anyOf<"u"}for(const a of C.editorOptionsRegistry){const r=a.schema;if(typeof r<"u")if(v(r))S.properties[`editor.${a.name}`]=r;else for(const c in r)Object.hasOwnProperty.call(r,c)&&(S.properties[c]=r[c])}let f=null;function g(){return f===null&&(f=Object.create(null),Object.keys(S.properties).forEach(a=>{f[a]=!0})),f}function i(a){return g()[`editor.${a}`]||!1}e.isEditorConfigurationKey=i;function t(a){return g()[`diffEditor.${a}`]||!1}e.isDiffEditorConfigurationKey=t,L.Registry.as(I.Extensions.Configuration).registerConfiguration(S)}),define(_[70],ee([1,0,574,6,33,101,90]),function(q,e,C,N,E,I,L){"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 S{constructor(){this.b=new N.Emitter,this.onDidChangeLanguages=this.b.event,this.a=[]}registerLanguage(f){return this.a.push(f),this.b.fire(void 0),{dispose:()=>{for(let g=0,i=this.a.length;g<i;g++)if(this.a[g]===f){this.a.splice(g,1);return}}}}getLanguages(){return this.a}}e.EditorModesRegistry=S,e.ModesRegistry=new S,E.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:[C.localize(0,null),"text"],mimetypes:[I.Mimes.text]}),E.Registry.as(L.Extensions.Configuration).registerDefaultConfigurations([{overrides:{"[plaintext]":{"editor.unicodeHighlight.ambiguousCharacters":!1,"editor.unicodeHighlight.invisibleCharacters":!1}}}])}),define(_[34],ee([1,0,6,2,9,133,103,116,453,548,454,457,214,8,27,37,49,70,456]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s){"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 l{constructor(A){this.languageId=A}affects(A){return this.languageId?this.languageId===A:!0}}e.LanguageConfigurationServiceChangeEvent=l,e.ILanguageConfigurationService=(0,n.createDecorator)("languageConfigurationService");let o=class extends N.Disposable{constructor(A,T){super(),this.j=A,this.l=T,this.c=this.q(new z),this.g=this.q(new C.Emitter),this.onDidChange=this.g.event,this.h=new Map;const O=new Set(Object.values(h));this.q(this.j.onDidChangeConfiguration(B=>{const W=B.change.keys.some(F=>O.has(F)),j=B.change.overrides.filter(([F,U])=>U.some(Q=>O.has(Q))).map(([F])=>F);if(W)this.h.clear(),this.g.fire(new l(void 0));else for(const F of j)this.l.isRegisteredLanguageId(F)&&(this.h.delete(F),this.g.fire(new l(F)))})),this.q(this.c.onDidChange(B=>{this.h.delete(B.languageId),this.g.fire(new l(B.languageId))}))}register(A,T,O){return this.c.register(A,T,O)}getLanguageConfiguration(A){let T=this.h.get(A);return T||(T=u(A,this.c,this.j,this.l),this.h.set(A,T)),T}};o=Ne([ge(0,a.IConfigurationService),ge(1,r.ILanguageService)],o),e.LanguageConfigurationService=o;function u(P,A,T,O){let B=A.getLanguageConfiguration(P);if(!B){if(!O.isRegisteredLanguageId(P))return new R(P,{});B=new R(P,{})}const W=w(B.languageId,T),j=k([B.underlyingConfig,W]);return new R(B.languageId,j)}const h={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function w(P,A){const T=A.getValue(h.brackets,{overrideIdentifier:P}),O=A.getValue(h.colorizedBracketPairs,{overrideIdentifier:P});return{brackets:m(T),colorizedBracketPairs:m(O)}}function m(P){if(!!Array.isArray(P))return P.map(A=>{if(!(!Array.isArray(A)||A.length!==2))return[A[0],A[1]]}).filter(A=>!!A)}function p(P,A,T){const O=P.getLineContent(A);let B=E.getLeadingWhitespace(O);return B.length>T-1&&(B=B.substring(0,T-1)),B}e.getIndentationAtPosition=p;function b(P,A,T){P.tokenization.forceTokenization(A);const O=P.tokenization.getLineTokens(A),B=typeof T>"u"?P.getLineMaxColumn(A)-1:T-1;return(0,S.createScopedLineTokens)(O,B)}e.getScopedLineTokens=b;class y{constructor(A){this.languageId=A,this.f=null,this.c=[],this.d=0,this.f=null}register(A,T){const O=new D(A,T,++this.d);return this.c.push(O),this.f=null,(0,N.toDisposable)(()=>{for(let B=0;B<this.c.length;B++)if(this.c[B]===O){this.c.splice(B,1),this.f=null;break}})}getResolvedConfiguration(){if(!this.f){const A=this.g();A&&(this.f=new R(this.languageId,A))}return this.f}g(){return this.c.length===0?null:(this.c.sort(D.cmp),k(this.c.map(A=>A.configuration)))}}function k(P){let A={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 T of P)A={comments:T.comments||A.comments,brackets:T.brackets||A.brackets,wordPattern:T.wordPattern||A.wordPattern,indentationRules:T.indentationRules||A.indentationRules,onEnterRules:T.onEnterRules||A.onEnterRules,autoClosingPairs:T.autoClosingPairs||A.autoClosingPairs,surroundingPairs:T.surroundingPairs||A.surroundingPairs,autoCloseBefore:T.autoCloseBefore||A.autoCloseBefore,folding:T.folding||A.folding,colorizedBracketPairs:T.colorizedBracketPairs||A.colorizedBracketPairs,__electricCharacterSupport:T.__electricCharacterSupport||A.__electricCharacterSupport};return A}class D{constructor(A,T,O){this.configuration=A,this.priority=T,this.order=O}static cmp(A,T){return A.priority===T.priority?A.order-T.order:A.priority-T.priority}}class M{constructor(A){this.languageId=A}}e.LanguageConfigurationChangeEvent=M;class z extends N.Disposable{constructor(){super(),this.c=new Map,this.g=this.q(new C.Emitter),this.onDidChange=this.g.event,this.q(this.register(d.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(A,T,O=0){let B=this.c.get(A);B||(B=new y(A),this.c.set(A,B));const W=B.register(T,O);return this.g.fire(new M(A)),(0,N.toDisposable)(()=>{W.dispose(),this.g.fire(new M(A))})}getLanguageConfiguration(A){const T=this.c.get(A);return T?.getResolvedConfiguration()||null}}e.LanguageConfigurationRegistry=z;class R{constructor(A,T){this.languageId=A,this.underlyingConfig=T,this.c=null,this.d=null,this.f=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new i.OnEnterSupport(this.underlyingConfig):null,this.comments=R.g(this.underlyingConfig),this.characterPair=new v.CharacterPairSupport(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||I.DEFAULT_WORD_REGEXP,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new g.IndentRulesSupport(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new s.LanguageBracketsConfiguration(A,this.underlyingConfig)}getWordDefinition(){return(0,I.ensureValidWordDefinition)(this.wordDefinition)}get brackets(){return!this.c&&this.underlyingConfig.brackets&&(this.c=new t.RichEditBrackets(this.languageId,this.underlyingConfig.brackets)),this.c}get electricCharacter(){return this.d||(this.d=new f.BracketElectricCharacterSupport(this.brackets)),this.d}onEnter(A,T,O,B){return this.f?this.f.onEnter(A,T,O,B):null}getAutoClosingPairs(){return new L.AutoClosingPairs(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(A){return this.characterPair.getAutoCloseBeforeSet(A)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static g(A){const T=A.comments;if(!T)return null;const O={};if(T.lineComment&&(O.lineCommentToken=T.lineComment),T.blockComment){const[B,W]=T.blockComment;O.blockCommentStartToken=B,O.blockCommentEndToken=W}return O}}e.ResolvedLanguageConfiguration=R,(0,c.registerSingleton)(e.ILanguageConfigurationService,o,1)}),define(_[307],ee([1,0,11,2,284,540,4,34,556,53,172,9,17,62,60,13,19,159]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorWorkerClient=e.EditorWorkerHost=e.EditorWorkerService=void 0;const s=60*1e3,l=5*60*1e3;function o(k,D){const M=k.getModel(D);return!(!M||M.isTooLargeForSyncing())}let u=class extends N.Disposable{constructor(D,M,z,R,P){super(),this.a=D,this.b=this.q(new w(this.a,R)),this.g=z,this.q(P.linkProvider.register({language:"*",hasAccessToAllModels:!0},{provideLinks:(A,T)=>o(this.a,A.uri)?this.b.withWorker().then(O=>O.computeLinks(A.uri)).then(O=>O&&{links:O}):Promise.resolve({links:[]})})),this.q(P.completionProvider.register("*",new h(this.b,M,this.a,R)))}dispose(){super.dispose()}canComputeUnicodeHighlights(D){return o(this.a,D)}computedUnicodeHighlights(D,M,z){return this.b.withWorker().then(R=>R.computedUnicodeHighlights(D,M,z))}computeDiff(D,M,z,R){return ye(this,void 0,void 0,function*(){const P=yield this.b.withWorker().then(T=>T.computeDiff(D,M,z,R));return P?{identical:P.identical,quitEarly:P.quitEarly,changes:P.changes.map(T=>{var O;return new d.LineRangeMapping(new d.LineRange(T[0],T[1]),new d.LineRange(T[2],T[3]),(O=T[4])===null||O===void 0?void 0:O.map(B=>new d.RangeMapping(new L.Range(B[0],B[1],B[2],B[3]),new L.Range(B[4],B[5],B[6],B[7]))))})}:null})}computeMoreMinimalEdits(D,M){if((0,t.isNonEmptyArray)(M)){if(!o(this.a,D))return Promise.resolve(M);const z=a.StopWatch.create(!0),R=this.b.withWorker().then(P=>P.computeMoreMinimalEdits(D,M));return R.finally(()=>this.g.trace("FORMAT#computeMoreMinimalEdits",D.toString(!0),z.elapsed())),Promise.race([R,(0,C.timeout)(1e3).then(()=>M)])}else return Promise.resolve(void 0)}canNavigateValueSet(D){return o(this.a,D)}navigateValueSet(D,M,z){return this.b.withWorker().then(R=>R.navigateValueSet(D,M,z))}canComputeWordRanges(D){return o(this.a,D)}computeWordRanges(D,M){return this.b.withWorker().then(z=>z.computeWordRanges(D,M))}};u=Ne([ge(0,f.IModelService),ge(1,g.ITextResourceConfigurationService),ge(2,n.ILogService),ge(3,S.ILanguageConfigurationService),ge(4,c.ILanguageFeaturesService)],u),e.EditorWorkerService=u;class h{constructor(D,M,z,R){this.f=R,this._debugDisplayName="wordbasedCompletions",this.a=D,this.b=M,this.d=z}provideCompletionItems(D,M){return ye(this,void 0,void 0,function*(){const z=this.b.getValue(D.uri,M,"editor");if(!z.wordBasedSuggestions)return;const R=[];if(z.wordBasedSuggestionsMode==="currentDocument")o(this.d,D.uri)&&R.push(D.uri);else for(const j of this.d.getModels())!o(this.d,j.uri)||(j===D?R.unshift(j.uri):(z.wordBasedSuggestionsMode==="allDocuments"||j.getLanguageId()===D.getLanguageId())&&R.push(j.uri));if(R.length===0)return;const P=this.f.getLanguageConfiguration(D.getLanguageId()).getWordDefinition(),A=D.getWordAtPosition(M),T=A?new L.Range(M.lineNumber,A.startColumn,M.lineNumber,A.endColumn):L.Range.fromPositions(M),O=T.setEndPosition(M.lineNumber,M.column),W=yield(yield this.a.withWorker()).textualSuggest(R,A?.word,P);if(!!W)return{duration:W.duration,suggestions:W.words.map(j=>({kind:18,label:j,insertText:j,range:{insert:O,replace:T}}))}})}}class w extends N.Disposable{constructor(D,M){super(),this.h=M,this.a=D,this.b=null,this.g=new Date().getTime(),this.q(new C.IntervalTimer).cancelAndSet(()=>this.j(),Math.round(l/2)),this.q(this.a.onModelRemoved(R=>this.i()))}dispose(){this.b&&(this.b.dispose(),this.b=null),super.dispose()}i(){if(!this.b)return;this.a.getModels().length===0&&(this.b.dispose(),this.b=null)}j(){if(!this.b)return;new Date().getTime()-this.g>l&&(this.b.dispose(),this.b=null)}withWorker(){return this.g=new Date().getTime(),this.b||(this.b=new y(this.a,!1,"editorWorkerService",this.h)),Promise.resolve(this.b)}}class m extends N.Disposable{constructor(D,M,z){if(super(),this.g=Object.create(null),this.h=Object.create(null),this.a=D,this.b=M,!z){const R=new C.IntervalTimer;R.cancelAndSet(()=>this.i(),Math.round(s/2)),this.q(R)}}dispose(){for(const D in this.g)(0,N.dispose)(this.g[D]);this.g=Object.create(null),this.h=Object.create(null),super.dispose()}ensureSyncedResources(D,M){for(const z of D){const R=z.toString();this.g[R]||this.j(z,M),this.g[R]&&(this.h[R]=new Date().getTime())}}i(){const D=new Date().getTime(),M=[];for(const z in this.h)D-this.h[z]>s&&M.push(z);for(const z of M)this.k(z)}j(D,M){const z=this.b.getModel(D);if(!z||!M&&z.isTooLargeForSyncing())return;const R=D.toString();this.a.acceptNewModel({url:z.uri.toString(),lines:z.getLinesContent(),EOL:z.getEOL(),versionId:z.getVersionId()});const P=new N.DisposableStore;P.add(z.onDidChangeContent(A=>{this.a.acceptModelChanged(R.toString(),A)})),P.add(z.onWillDispose(()=>{this.k(R)})),P.add((0,N.toDisposable)(()=>{this.a.acceptRemovedModel(R)})),this.g[R]=P}k(D){const M=this.g[D];delete this.g[D],delete this.h[D],(0,N.dispose)(M)}}class p{constructor(D){this.a=D,this.b=Promise.resolve(this.a)}dispose(){this.a.dispose()}getProxyObject(){return this.b}}class b{constructor(D){this.a=D}fhr(D,M){return this.a.fhr(D,M)}}e.EditorWorkerHost=b;class y extends N.Disposable{constructor(D,M,z,R){super(),this.k=R,this.j=!1,this.a=D,this.b=M,this.h=new I.DefaultWorkerFactory(z),this.g=null,this.i=null}fhr(D,M){throw new Error("Not implemented!")}l(){if(!this.g)try{this.g=this.q(new E.SimpleWorkerClient(this.h,"vs/editor/common/services/editorSimpleWorker",new b(this)))}catch(D){(0,E.logOnceWebWorkerWarning)(D),this.g=new p(new v.EditorSimpleWorker(new b(this),null))}return this.g}m(){return this.l().getProxyObject().then(void 0,D=>((0,E.logOnceWebWorkerWarning)(D),this.g=new p(new v.EditorSimpleWorker(new b(this),null)),this.l().getProxyObject()))}n(D){return this.i||(this.i=this.q(new m(D,this.a,this.b))),this.i}p(D,M=!1){return ye(this,void 0,void 0,function*(){return this.j?Promise.reject((0,r.canceled)()):this.m().then(z=>(this.n(z).ensureSyncedResources(D,M),z))})}computedUnicodeHighlights(D,M,z){return this.p([D]).then(R=>R.computeUnicodeHighlights(D.toString(),M,z))}computeDiff(D,M,z,R){return this.p([D,M],!0).then(P=>P.computeDiff(D.toString(),M.toString(),z,R))}computeMoreMinimalEdits(D,M){return this.p([D]).then(z=>z.computeMoreMinimalEdits(D.toString(),M))}computeLinks(D){return this.p([D]).then(M=>M.computeLinks(D.toString()))}textualSuggest(D,M,z){return ye(this,void 0,void 0,function*(){const R=yield this.p(D),P=z.source,A=(0,i.regExpFlags)(z);return R.textualSuggest(D.map(T=>T.toString()),M,P,A)})}computeWordRanges(D,M){return this.p([D]).then(z=>{const R=this.a.getModel(D);if(!R)return Promise.resolve(null);const P=this.k.getLanguageConfiguration(R.getLanguageId()).getWordDefinition(),A=P.source,T=(0,i.regExpFlags)(P);return z.computeWordRanges(D.toString(),M,A,T)})}navigateValueSet(D,M,z){return this.p([D]).then(R=>{const P=this.a.getModel(D);if(!P)return null;const A=this.k.getLanguageConfiguration(P.getLanguageId()).getWordDefinition(),T=A.source,O=(0,i.regExpFlags)(A);return R.navigateValueSet(D.toString(),M,z,T,O)})}dispose(){super.dispose(),this.j=!0}}e.EditorWorkerClient=y}),define(_[714],ee([1,0,46,307]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createWebWorker=void 0;function E(L,S,v){return new I(L,S,v)}e.createWebWorker=E;class I extends N.EditorWorkerClient{constructor(S,v,f){super(S,f.keepIdleModels||!1,f.label,v),this.s=f.moduleId,this.u=f.createData||null,this.t=f.host||null,this.v=null}fhr(S,v){if(!this.t||typeof this.t[S]!="function")return Promise.reject(new Error("Missing method "+S+" or missing main thread foreign host."));try{return Promise.resolve(this.t[S].apply(this.t,v))}catch(f){return Promise.reject(f)}}w(){return this.v||(this.v=this.m().then(S=>{const v=this.t?(0,C.getAllMethodNames)(this.t):[];return S.loadForeignModule(this.s,this.u,v).then(f=>{this.u=null;const g=(n,a)=>S.fmr(n,a),i=(n,a)=>function(){const r=Array.prototype.slice.call(arguments,0);return a(n,r)},t={};for(const n of f)t[n]=i(n,g);return t})})),this.v}getProxy(){return this.w()}withSyncedResources(S){return this.p(S).then(v=>this.getProxy())}}}),define(_[225],ee([1,0,9,103,116,34]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getIndentMetadata=e.getIndentActionForType=e.getIndentForEnter=e.getGoodIndentForLine=e.getInheritIndentForLine=void 0;function L(t,n,a){const r=t.tokenization.getLanguageIdAtPosition(n,0);if(n>1){let c,d=-1;for(c=n-1;c>=1;c--){if(t.tokenization.getLanguageIdAtPosition(c,0)!==r)return d;const s=t.getLineContent(c);if(a.shouldIgnore(s)||/^\s+$/.test(s)||s===""){d=c;continue}return c}}return-1}function S(t,n,a,r=!0,c){if(t<4)return null;const d=c.getLanguageConfiguration(n.tokenization.getLanguageId()).indentRulesSupport;if(!d)return null;if(a<=1)return{indentation:"",action:null};for(let o=a-1;o>0&&n.getLineContent(o)==="";o--)if(o===1)return{indentation:"",action:null};const s=L(n,a,d);if(s<0)return null;if(s<1)return{indentation:"",action:null};const l=n.getLineContent(s);if(d.shouldIncrease(l)||d.shouldIndentNextLine(l))return{indentation:C.getLeadingWhitespace(l),action:N.IndentAction.Indent,line:s};if(d.shouldDecrease(l))return{indentation:C.getLeadingWhitespace(l),action:null,line:s};{if(s===1)return{indentation:C.getLeadingWhitespace(n.getLineContent(s)),action:null,line:s};const o=s-1,u=d.getIndentMetadata(n.getLineContent(o));if(!(u&3)&&u&4){let h=0;for(let w=o-1;w>0;w--)if(!d.shouldIndentNextLine(n.getLineContent(w))){h=w;break}return{indentation:C.getLeadingWhitespace(n.getLineContent(h+1)),action:null,line:h+1}}if(r)return{indentation:C.getLeadingWhitespace(n.getLineContent(s)),action:null,line:s};for(let h=s;h>0;h--){const w=n.getLineContent(h);if(d.shouldIncrease(w))return{indentation:C.getLeadingWhitespace(w),action:N.IndentAction.Indent,line:h};if(d.shouldIndentNextLine(w)){let m=0;for(let p=h-1;p>0;p--)if(!d.shouldIndentNextLine(n.getLineContent(h))){m=p;break}return{indentation:C.getLeadingWhitespace(n.getLineContent(m+1)),action:null,line:m+1}}else if(d.shouldDecrease(w))return{indentation:C.getLeadingWhitespace(w),action:null,line:h}}return{indentation:C.getLeadingWhitespace(n.getLineContent(1)),action:null,line:1}}}e.getInheritIndentForLine=S;function v(t,n,a,r,c,d){if(t<4)return null;const s=d.getLanguageConfiguration(a);if(!s)return null;const l=d.getLanguageConfiguration(a).indentRulesSupport;if(!l)return null;const o=S(t,n,r,void 0,d),u=n.getLineContent(r);if(o){const h=o.line;if(h!==void 0){let w=!0;for(let m=h;m<r-1;m++)if(!/^\s*$/.test(n.getLineContent(m))){w=!1;break}if(w){const m=s.onEnter(t,"",n.getLineContent(h),"");if(m){let p=C.getLeadingWhitespace(n.getLineContent(h));return m.removeText&&(p=p.substring(0,p.length-m.removeText)),m.indentAction===N.IndentAction.Indent||m.indentAction===N.IndentAction.IndentOutdent?p=c.shiftIndent(p):m.indentAction===N.IndentAction.Outdent&&(p=c.unshiftIndent(p)),l.shouldDecrease(u)&&(p=c.unshiftIndent(p)),m.appendText&&(p+=m.appendText),C.getLeadingWhitespace(p)}}}return l.shouldDecrease(u)?o.action===N.IndentAction.Indent?o.indentation:c.unshiftIndent(o.indentation):o.action===N.IndentAction.Indent?c.shiftIndent(o.indentation):o.indentation}return null}e.getGoodIndentForLine=v;function f(t,n,a,r,c){if(t<4)return null;n.tokenization.forceTokenization(a.startLineNumber);const d=n.tokenization.getLineTokens(a.startLineNumber),s=(0,E.createScopedLineTokens)(d,a.startColumn-1),l=s.getLineContent();let o=!1,u;s.firstCharOffset>0&&d.getLanguageId(0)!==s.languageId?(o=!0,u=l.substr(0,a.startColumn-1-s.firstCharOffset)):u=d.getLineContent().substring(0,a.startColumn-1);let h;a.isEmpty()?h=l.substr(a.startColumn-1-s.firstCharOffset):h=(0,I.getScopedLineTokens)(n,a.endLineNumber,a.endColumn).getLineContent().substr(a.endColumn-1-s.firstCharOffset);const w=c.getLanguageConfiguration(s.languageId).indentRulesSupport;if(!w)return null;const m=u,p=C.getLeadingWhitespace(u),b={tokenization:{getLineTokens:M=>n.tokenization.getLineTokens(M),getLanguageId:()=>n.getLanguageId(),getLanguageIdAtPosition:(M,z)=>n.getLanguageIdAtPosition(M,z)},getLineContent:M=>M===a.startLineNumber?m:n.getLineContent(M)},y=C.getLeadingWhitespace(d.getLineContent()),k=S(t,b,a.startLineNumber+1,void 0,c);if(!k){const M=o?y:p;return{beforeEnter:M,afterEnter:M}}let D=o?y:k.indentation;return k.action===N.IndentAction.Indent&&(D=r.shiftIndent(D)),w.shouldDecrease(h)&&(D=r.unshiftIndent(D)),{beforeEnter:o?y:p,afterEnter:D}}e.getIndentForEnter=f;function g(t,n,a,r,c,d){if(t<4)return null;const s=(0,I.getScopedLineTokens)(n,a.startLineNumber,a.startColumn);if(s.firstCharOffset)return null;const l=d.getLanguageConfiguration(s.languageId).indentRulesSupport;if(!l)return null;const o=s.getLineContent(),u=o.substr(0,a.startColumn-1-s.firstCharOffset);let h;if(a.isEmpty()?h=o.substr(a.startColumn-1-s.firstCharOffset):h=(0,I.getScopedLineTokens)(n,a.endLineNumber,a.endColumn).getLineContent().substr(a.endColumn-1-s.firstCharOffset),!l.shouldDecrease(u+h)&&l.shouldDecrease(u+r+h)){const w=S(t,n,a.startLineNumber,!1,d);if(!w)return null;let m=w.indentation;return w.action!==N.IndentAction.Indent&&(m=c.unshiftIndent(m)),m}return null}e.getIndentActionForType=g;function i(t,n,a){const r=a.getLanguageConfiguration(t.getLanguageId()).indentRulesSupport;return!r||n<1||n>t.getLineCount()?null:r.getIndentMetadata(t.getLineContent(n))}e.getIndentMetadata=i}),define(_[226],ee([1,0,103,34]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getEnterAction=void 0;function E(I,L,S,v){const f=(0,N.getScopedLineTokens)(L,S.startLineNumber,S.startColumn),g=v.getLanguageConfiguration(f.languageId);if(!g)return null;const i=f.getLineContent(),t=i.substr(0,S.startColumn-1-f.firstCharOffset);let n;S.isEmpty()?n=i.substr(S.startColumn-1-f.firstCharOffset):n=(0,N.getScopedLineTokens)(L,S.endLineNumber,S.endColumn).getLineContent().substr(S.endColumn-1-f.firstCharOffset);let a="";if(S.startLineNumber>1&&f.firstCharOffset===0){const o=(0,N.getScopedLineTokens)(L,S.startLineNumber-1);o.languageId===f.languageId&&(a=o.getLineContent())}const r=g.onEnter(I,a,t,n);if(!r)return null;const c=r.indentAction;let d=r.appendText;const s=r.removeText||0;d?c===C.IndentAction.Indent&&(d=" "+d):c===C.IndentAction.Indent||c===C.IndentAction.IndentOutdent?d=" ":d="";let l=(0,N.getIndentationAtPosition)(L,S.startLineNumber,S.startColumn);return s&&(l=l.substring(0,l.length-s)),{indentAction:c,appendText:d,removeText:s,indentation:l}}e.getEnterAction=E}),define(_[227],ee([1,0,9,74,4,22,226,34]),function(q,e,C,N,E,I,L,S){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ShiftCommand=void 0;const v=Object.create(null);function f(i,t){if(t<=0)return"";v[i]||(v[i]=["",i]);const n=v[i];for(let a=n.length;a<=t;a++)n[a]=n[a-1]+i;return n[t]}let g=class oi{static unshiftIndent(t,n,a,r,c){const d=N.CursorColumns.visibleColumnFromColumn(t,n,a);if(c){const s=f(" ",r),o=N.CursorColumns.prevIndentTabStop(d,r)/r;return f(s,o)}else{const s=" ",o=N.CursorColumns.prevRenderTabStop(d,a)/a;return f(s,o)}}static shiftIndent(t,n,a,r,c){const d=N.CursorColumns.visibleColumnFromColumn(t,n,a);if(c){const s=f(" ",r),o=N.CursorColumns.nextIndentTabStop(d,r)/r;return f(s,o)}else{const s=" ",o=N.CursorColumns.nextRenderTabStop(d,a)/a;return f(s,o)}}constructor(t,n,a){this.f=a,this.a=n,this.b=t,this.c=null,this.d=!1,this.e=!1}g(t,n,a){this.d?t.addTrackedEditOperation(n,a):t.addEditOperation(n,a)}getEditOperations(t,n){const a=this.b.startLineNumber;let r=this.b.endLineNumber;this.b.endColumn===1&&a!==r&&(r=r-1);const{tabSize:c,indentSize:d,insertSpaces:s}=this.a,l=a===r;if(this.a.useTabStops){this.b.isEmpty()&&/^\s*$/.test(t.getLineContent(a))&&(this.d=!0);let o=0,u=0;for(let h=a;h<=r;h++,o=u){u=0;const w=t.getLineContent(h);let m=C.firstNonWhitespaceIndex(w);if(this.a.isUnshift&&(w.length===0||m===0)||!l&&!this.a.isUnshift&&w.length===0)continue;if(m===-1&&(m=w.length),h>1&&N.CursorColumns.visibleColumnFromColumn(w,m+1,c)%d!==0&&t.tokenization.isCheapToTokenize(h-1)){const y=(0,L.getEnterAction)(this.a.autoIndent,t,new E.Range(h-1,t.getLineMaxColumn(h-1),h-1,t.getLineMaxColumn(h-1)),this.f);if(y){if(u=o,y.appendText)for(let k=0,D=y.appendText.length;k<D&&u<d&&y.appendText.charCodeAt(k)===32;k++)u++;y.removeText&&(u=Math.max(0,u-y.removeText));for(let k=0;k<u&&!(m===0||w.charCodeAt(m-1)!==32);k++)m--}}if(this.a.isUnshift&&m===0)continue;let p;this.a.isUnshift?p=oi.unshiftIndent(w,m+1,c,d,s):p=oi.shiftIndent(w,m+1,c,d,s),this.g(n,new E.Range(h,1,h,m+1),p),h===a&&!this.b.isEmpty()&&(this.e=this.b.startColumn<=m+1)}}else{!this.a.isUnshift&&this.b.isEmpty()&&t.getLineLength(a)===0&&(this.d=!0);const o=s?f(" ",d):" ";for(let u=a;u<=r;u++){const h=t.getLineContent(u);let w=C.firstNonWhitespaceIndex(h);if(!(this.a.isUnshift&&(h.length===0||w===0))&&!(!l&&!this.a.isUnshift&&h.length===0)&&(w===-1&&(w=h.length),!(this.a.isUnshift&&w===0)))if(this.a.isUnshift){w=Math.min(w,d);for(let m=0;m<w;m++)if(h.charCodeAt(m)===9){w=m+1;break}this.g(n,new E.Range(u,1,u,w+1),"")}else this.g(n,new E.Range(u,1,u,1),o),u===a&&!this.b.isEmpty()&&(this.e=this.b.startColumn===1)}}this.c=n.trackSelection(this.b)}computeCursorState(t,n){if(this.d){const r=n.getInverseEditOperations()[0];return new I.Selection(r.range.endLineNumber,r.range.endColumn,r.range.endLineNumber,r.range.endColumn)}const a=n.getTrackedSelection(this.c);if(this.e){const r=this.b.startColumn;return a.startColumn<=r?a:a.getDirection()===0?new I.Selection(a.startLineNumber,r,a.endLineNumber,a.endColumn):new I.Selection(a.endLineNumber,a.endColumn,a.startLineNumber,r)}return a}};g=Ne([ge(2,S.ILanguageConfigurationService)],g),e.ShiftCommand=g}),define(_[228],ee([1,0,13,9,114,227,439,65,132,4,12,103,34,116,225,226]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CompositionOutcome=e.TypeWithAutoClosingCommand=e.TypeOperations=void 0;class c{static indent(m,p,b){if(p===null||b===null)return[];const y=[];for(let k=0,D=b.length;k<D;k++)y[k]=new I.ShiftCommand(b[k],{isUnshift:!1,tabSize:m.tabSize,indentSize:m.indentSize,insertSpaces:m.insertSpaces,useTabStops:m.useTabStops,autoIndent:m.autoIndent},m.languageConfigurationService);return y}static outdent(m,p,b){const y=[];for(let k=0,D=b.length;k<D;k++)y[k]=new I.ShiftCommand(b[k],{isUnshift:!0,tabSize:m.tabSize,indentSize:m.indentSize,insertSpaces:m.insertSpaces,useTabStops:m.useTabStops,autoIndent:m.autoIndent},m.languageConfigurationService);return y}static shiftIndent(m,p,b){return b=b||1,I.ShiftCommand.shiftIndent(p,p.length+b,m.tabSize,m.indentSize,m.insertSpaces)}static unshiftIndent(m,p,b){return b=b||1,I.ShiftCommand.unshiftIndent(p,p.length+b,m.tabSize,m.indentSize,m.insertSpaces)}static a(m,p,b,y){const k=[];for(let D=0,M=b.length;D<M;D++)k[D]=new E.ReplaceCommand(b[D],y[D]);return new S.EditOperationResult(0,k,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static b(m,p,b,y,k){const D=[];for(let M=0,z=b.length;M<z;M++){const R=b[M],P=R.getPosition();if(k&&!R.isEmpty()&&(k=!1),k&&y.indexOf(`
|
||
`)!==y.length-1&&(k=!1),k){const A=new f.Range(P.lineNumber,1,P.lineNumber,1);D[M]=new E.ReplaceCommandThatPreservesSelection(A,y,R,!0)}else D[M]=new E.ReplaceCommand(R,y)}return new S.EditOperationResult(0,D,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static c(m,p,b,y,k){if(y||p.length===1)return null;if(k&&k.length===p.length)return k;if(m.multiCursorPaste==="spread"){b.charCodeAt(b.length-1)===10&&(b=b.substr(0,b.length-1)),b.charCodeAt(b.length-1)===13&&(b=b.substr(0,b.length-1));const D=N.splitLines(b);if(D.length===p.length)return D}return null}static paste(m,p,b,y,k,D){const M=this.c(m,b,y,k,D);return M?(b=b.sort(f.Range.compareRangesUsingStarts),this.a(m,p,b,M)):this.b(m,p,b,y,k)}static d(m,p,b){let y=null,k="";const D=(0,a.getInheritIndentForLine)(m.autoIndent,p,b,!1,m.languageConfigurationService);if(D)y=D.action,k=D.indentation;else if(b>1){let M;for(M=b-1;M>=1;M--){const P=p.getLineContent(M);if(N.lastNonWhitespaceIndex(P)>=0)break}if(M<1)return null;const z=p.getLineMaxColumn(M),R=(0,r.getEnterAction)(m.autoIndent,p,new f.Range(M,z,M,z),m.languageConfigurationService);R&&(k=R.indentation+R.appendText)}return y&&(y===i.IndentAction.Indent&&(k=c.shiftIndent(m,k)),y===i.IndentAction.Outdent&&(k=c.unshiftIndent(m,k)),k=m.normalizeIndentation(k)),k||null}static f(m,p,b,y){let k="";const D=b.getStartPosition();if(m.insertSpaces){const M=m.visibleColumnFromColumn(p,D),z=m.indentSize,R=z-M%z;for(let P=0;P<R;P++)k+=" "}else k=" ";return new E.ReplaceCommand(b,k,y)}static tab(m,p,b){const y=[];for(let k=0,D=b.length;k<D;k++){const M=b[k];if(M.isEmpty()){const z=p.getLineContent(M.startLineNumber);if(/^\s*$/.test(z)&&p.tokenization.isCheapToTokenize(M.startLineNumber)){let R=this.d(m,p,M.startLineNumber);R=R||" ";const P=m.normalizeIndentation(R);if(!z.startsWith(P)){y[k]=new E.ReplaceCommand(new f.Range(M.startLineNumber,1,M.startLineNumber,z.length+1),P,!0);continue}}y[k]=this.f(m,p,M,!0)}else{if(M.startLineNumber===M.endLineNumber){const z=p.getLineMaxColumn(M.startLineNumber);if(M.startColumn!==1||M.endColumn!==z){y[k]=this.f(m,p,M,!1);continue}}y[k]=new I.ShiftCommand(M,{isUnshift:!1,tabSize:m.tabSize,indentSize:m.indentSize,insertSpaces:m.insertSpaces,useTabStops:m.useTabStops,autoIndent:m.autoIndent},m.languageConfigurationService)}}return y}static compositionType(m,p,b,y,k,D,M,z){const R=y.map(P=>this.g(b,P,k,D,M,z));return new S.EditOperationResult(4,R,{shouldPushStackElementBefore:o(m,4),shouldPushStackElementAfter:!1})}static g(m,p,b,y,k,D){if(!p.isEmpty())return null;const M=p.getPosition(),z=Math.max(1,M.column-y),R=Math.min(m.getLineMaxColumn(M.lineNumber),M.column+k),P=new f.Range(M.lineNumber,z,M.lineNumber,R);return m.getValueInRange(P)===b&&D===0?null:new E.ReplaceCommandWithOffsetCursorState(P,b,0,D)}static h(m,p,b){return b?new E.ReplaceCommandWithoutChangingPosition(m,p,!0):new E.ReplaceCommand(m,p,!0)}static k(m,p,b,y){if(m.autoIndent===0)return c.h(y,`
|
||
`,b);if(!p.tokenization.isCheapToTokenize(y.getStartPosition().lineNumber)||m.autoIndent===1){const z=p.getLineContent(y.startLineNumber),R=N.getLeadingWhitespace(z).substring(0,y.startColumn-1);return c.h(y,`
|
||
`+m.normalizeIndentation(R),b)}const k=(0,r.getEnterAction)(m.autoIndent,p,y,m.languageConfigurationService);if(k){if(k.indentAction===i.IndentAction.None)return c.h(y,`
|
||
`+m.normalizeIndentation(k.indentation+k.appendText),b);if(k.indentAction===i.IndentAction.Indent)return c.h(y,`
|
||
`+m.normalizeIndentation(k.indentation+k.appendText),b);if(k.indentAction===i.IndentAction.IndentOutdent){const z=m.normalizeIndentation(k.indentation),R=m.normalizeIndentation(k.indentation+k.appendText),P=`
|
||
`+R+`
|
||
`+z;return b?new E.ReplaceCommandWithoutChangingPosition(y,P,!0):new E.ReplaceCommandWithOffsetCursorState(y,P,-1,R.length-z.length,!0)}else if(k.indentAction===i.IndentAction.Outdent){const z=c.unshiftIndent(m,k.indentation);return c.h(y,`
|
||
`+m.normalizeIndentation(z+k.appendText),b)}}const D=p.getLineContent(y.startLineNumber),M=N.getLeadingWhitespace(D).substring(0,y.startColumn-1);if(m.autoIndent>=4){const z=(0,a.getIndentForEnter)(m.autoIndent,p,y,{unshiftIndent:R=>c.unshiftIndent(m,R),shiftIndent:R=>c.shiftIndent(m,R),normalizeIndentation:R=>m.normalizeIndentation(R)},m.languageConfigurationService);if(z){let R=m.visibleColumnFromColumn(p,y.getEndPosition());const P=y.endColumn,A=p.getLineContent(y.endLineNumber),T=N.firstNonWhitespaceIndex(A);if(T>=0?y=y.setEndPosition(y.endLineNumber,Math.max(y.endColumn,T+1)):y=y.setEndPosition(y.endLineNumber,p.getLineMaxColumn(y.endLineNumber)),b)return new E.ReplaceCommandWithoutChangingPosition(y,`
|
||
`+m.normalizeIndentation(z.afterEnter),!0);{let O=0;return P<=T+1&&(m.insertSpaces||(R=Math.ceil(R/m.indentSize)),O=Math.min(R+1-m.normalizeIndentation(z.afterEnter).length-1,0)),new E.ReplaceCommandWithOffsetCursorState(y,`
|
||
`+m.normalizeIndentation(z.afterEnter),0,O,!0)}}}return c.h(y,`
|
||
`+m.normalizeIndentation(M),b)}static l(m,p,b){if(m.autoIndent<4)return!1;for(let y=0,k=b.length;y<k;y++)if(!p.tokenization.isCheapToTokenize(b[y].getEndPosition().lineNumber))return!1;return!0}static m(m,p,b,y){const k=(0,t.getIndentationAtPosition)(p,b.startLineNumber,b.startColumn),D=(0,a.getIndentActionForType)(m.autoIndent,p,b,y,{shiftIndent:M=>c.shiftIndent(m,M),unshiftIndent:M=>c.unshiftIndent(m,M)},m.languageConfigurationService);if(D===null)return null;if(D!==m.normalizeIndentation(k)){const M=p.getLineFirstNonWhitespaceColumn(b.startLineNumber);return M===0?c.h(new f.Range(b.startLineNumber,1,b.endLineNumber,b.endColumn),m.normalizeIndentation(D)+y,!1):c.h(new f.Range(b.startLineNumber,1,b.endLineNumber,b.endColumn),m.normalizeIndentation(D)+p.getLineContent(b.startLineNumber).substring(M-1,b.startColumn-1)+y,!1)}return null}static n(m,p,b,y,k){if(m.autoClosingOvertype==="never"||!m.autoClosingPairs.autoClosingPairsCloseSingleChar.has(k))return!1;for(let D=0,M=b.length;D<M;D++){const z=b[D];if(!z.isEmpty())return!1;const R=z.getPosition(),P=p.getLineContent(R.lineNumber);if(P.charAt(R.column-1)!==k)return!1;const T=(0,S.isQuote)(k);if((R.column>2?P.charCodeAt(R.column-2):0)===92&&T)return!1;if(m.autoClosingOvertype==="auto"){let B=!1;for(let W=0,j=y.length;W<j;W++){const F=y[W];if(R.lineNumber===F.startLineNumber&&R.column===F.startColumn){B=!0;break}}if(!B)return!1}}return!0}static o(m,p,b,y,k){const D=[];for(let M=0,z=y.length;M<z;M++){const P=y[M].getPosition(),A=new f.Range(P.lineNumber,P.column,P.lineNumber,P.column+1);D[M]=new E.ReplaceCommand(A,k)}return new S.EditOperationResult(4,D,{shouldPushStackElementBefore:o(m,4),shouldPushStackElementAfter:!1})}static q(m,p){const b=p.charAt(0),y=m.autoClosingPairs.autoClosingPairsOpenByStart.get(b)||[],k=m.autoClosingPairs.autoClosingPairsCloseByStart.get(b)||[],D=y.some(z=>p.startsWith(z.open)),M=k.some(z=>p.startsWith(z.close));return!D&&M}static t(m,p,b,y){const k=m.autoClosingPairs.autoClosingPairsOpenByEnd.get(y);if(!k)return null;let D=null;for(const M of k)if(D===null||M.open.length>D.open.length){let z=!0;for(const R of b)if(p.getValueInRange(new f.Range(R.lineNumber,R.column-M.open.length+1,R.lineNumber,R.column))+y!==M.open){z=!1;break}z&&(D=M)}return D}static u(m,p){if(p.open.length<=1)return null;const b=p.close.charAt(p.close.length-1),y=m.autoClosingPairs.autoClosingPairsCloseByEnd.get(b)||[];let k=null;for(const D of y)D.open!==p.open&&p.open.includes(D.open)&&p.close.endsWith(D.close)&&(!k||D.open.length>k.open.length)&&(k=D);return k}static v(m,p,b,y,k){const D=(0,S.isQuote)(y),M=D?m.autoClosingQuotes:m.autoClosingBrackets,z=D?m.shouldAutoCloseBefore.quote:m.shouldAutoCloseBefore.bracket;if(M==="never")return null;for(const B of b)if(!B.isEmpty())return null;const R=b.map(B=>{const W=B.getPosition();return k?{lineNumber:W.lineNumber,beforeColumn:W.column-y.length,afterColumn:W.column}:{lineNumber:W.lineNumber,beforeColumn:W.column,afterColumn:W.column}}),P=this.t(m,p,R.map(B=>new g.Position(B.lineNumber,B.beforeColumn)),y);if(!P)return null;const A=this.u(m,P),T=A?A.close:"";let O=!0;for(const B of R){const{lineNumber:W,beforeColumn:j,afterColumn:F}=B,U=p.getLineContent(W),Q=U.substring(0,j-1),se=U.substring(F-1);if(se.startsWith(T)||(O=!1),se.length>0){const J=se.charAt(0);if(!c.q(m,se)&&!z(J))return null}if(P.open.length===1&&(y==="'"||y==='"')&&M!=="always"){const J=(0,v.getMapForWordSeparators)(m.wordSeparators);if(Q.length>0){const x=Q.charCodeAt(Q.length-1);if(J.get(x)===0)return null}}if(!p.tokenization.isCheapToTokenize(W))return null;p.tokenization.forceTokenization(W);const he=p.tokenization.getLineTokens(W),ie=(0,n.createScopedLineTokens)(he,j-1);if(!P.shouldAutoClose(ie,j-ie.firstCharOffset))return null;const ue=P.findNeutralCharacter();if(ue){const J=p.tokenization.getTokenTypeIfInsertingCharacter(W,j,ue);if(!P.isOK(J))return null}}return O?P.close.substring(0,P.close.length-T.length):P.close}static w(m,p,b,y,k,D,M){const z=[];for(let R=0,P=y.length;R<P;R++){const A=y[R];z[R]=new d(A,k,!D,M)}return new S.EditOperationResult(4,z,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}static y(m,p){return(0,S.isQuote)(p)?m.autoSurround==="quotes"||m.autoSurround==="languageDefined":m.autoSurround==="brackets"||m.autoSurround==="languageDefined"}static z(m,p,b,y){if(!c.y(m,y)||!m.surroundingPairs.hasOwnProperty(y))return!1;const k=(0,S.isQuote)(y);for(const D of b){if(D.isEmpty())return!1;let M=!0;for(let z=D.startLineNumber;z<=D.endLineNumber;z++){const R=p.getLineContent(z),P=z===D.startLineNumber?D.startColumn-1:0,A=z===D.endLineNumber?D.endColumn-1:R.length,T=R.substring(P,A);if(/[^ \t]/.test(T)){M=!1;break}}if(M)return!1;if(k&&D.startLineNumber===D.endLineNumber&&D.startColumn+1===D.endColumn){const z=p.getValueInRange(D);if((0,S.isQuote)(z))return!1}}return!0}static A(m,p,b,y,k){const D=[];for(let M=0,z=y.length;M<z;M++){const R=y[M],P=p.surroundingPairs[k];D[M]=new L.SurroundSelectionCommand(R,k,P)}return new S.EditOperationResult(0,D,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static B(m,p,b){return!!(b.length===1&&p.tokenization.isCheapToTokenize(b[0].getEndPosition().lineNumber))}static C(m,p,b,y,k){if(!p.electricChars.hasOwnProperty(k)||!y.isEmpty())return null;const D=y.getPosition();b.tokenization.forceTokenization(D.lineNumber);const M=b.tokenization.getLineTokens(D.lineNumber);let z;try{z=p.onElectricCharacter(k,M,D.column)}catch(R){return(0,C.onUnexpectedError)(R),null}if(!z)return null;if(z.matchOpenBracket){const R=(M.getLineContent()+k).lastIndexOf(z.matchOpenBracket)+1,P=b.bracketPairs.findMatchingBracketUp(z.matchOpenBracket,{lineNumber:D.lineNumber,column:R},500);if(P){if(P.startLineNumber===D.lineNumber)return null;const A=b.getLineContent(P.startLineNumber),T=N.getLeadingWhitespace(A),O=p.normalizeIndentation(T),B=b.getLineContent(D.lineNumber),W=b.getLineFirstNonWhitespaceColumn(D.lineNumber)||D.column,j=B.substring(W-1,D.column-1),F=O+j+k,U=new f.Range(D.lineNumber,1,D.lineNumber,D.column),Q=new E.ReplaceCommand(U,F);return new S.EditOperationResult(l(F,m),[Q],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!0})}}return null}static compositionEndWithInterceptors(m,p,b,y,k,D){if(!y)return null;let M=null;for(const A of y)if(M===null)M=A.insertedText;else if(M!==A.insertedText)return null;if(!M||M.length!==1)return null;const z=M;let R=!1;for(const A of y)if(A.deletedText.length!==0){R=!0;break}if(R){if(!c.y(p,z)||!p.surroundingPairs.hasOwnProperty(z))return null;const A=(0,S.isQuote)(z);for(const B of y)if(B.deletedSelectionStart!==0||B.deletedSelectionEnd!==B.deletedText.length||/^[ \t]+$/.test(B.deletedText)||A&&(0,S.isQuote)(B.deletedText))return null;const T=[];for(const B of k){if(!B.isEmpty())return null;T.push(B.getPosition())}if(T.length!==y.length)return null;const O=[];for(let B=0,W=T.length;B<W;B++)O.push(new L.CompositionSurroundSelectionCommand(T[B],y[B].deletedText,p.surroundingPairs[z]));return new S.EditOperationResult(4,O,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this.n(p,b,k,D,z)){const A=k.map(T=>new E.ReplaceCommand(new f.Range(T.positionLineNumber,T.positionColumn,T.positionLineNumber,T.positionColumn+1),"",!1));return new S.EditOperationResult(4,A,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}const P=this.v(p,b,k,z,!0);return P!==null?this.w(m,p,b,k,z,!0,P):null}static typeWithInterceptors(m,p,b,y,k,D,M){if(!m&&M===`
|
||
`){const P=[];for(let A=0,T=k.length;A<T;A++)P[A]=c.k(b,y,!1,k[A]);return new S.EditOperationResult(4,P,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(!m&&this.l(b,y,k)){const P=[];let A=!1;for(let T=0,O=k.length;T<O;T++)if(P[T]=this.m(b,y,k[T],M),!P[T]){A=!0;break}if(!A)return new S.EditOperationResult(4,P,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this.n(b,y,k,D,M))return this.o(p,b,y,k,M);if(!m){const P=this.v(b,y,k,M,!1);if(P)return this.w(p,b,y,k,M,!1,P)}if(!m&&this.z(b,y,k,M))return this.A(p,b,y,k,M);if(!m&&this.B(b,y,k)){const P=this.C(p,b,y,k[0],M);if(P)return P}const z=[];for(let P=0,A=k.length;P<A;P++)z[P]=new E.ReplaceCommand(k[P],M);const R=l(M,p);return new S.EditOperationResult(R,z,{shouldPushStackElementBefore:o(p,R),shouldPushStackElementAfter:!1})}static typeWithoutInterceptors(m,p,b,y,k){const D=[];for(let z=0,R=y.length;z<R;z++)D[z]=new E.ReplaceCommand(y[z],k);const M=l(k,m);return new S.EditOperationResult(M,D,{shouldPushStackElementBefore:o(m,M),shouldPushStackElementAfter:!1})}static lineInsertBefore(m,p,b){if(p===null||b===null)return[];const y=[];for(let k=0,D=b.length;k<D;k++){let M=b[k].positionLineNumber;if(M===1)y[k]=new E.ReplaceCommandWithoutChangingPosition(new f.Range(1,1,1,1),`
|
||
`);else{M--;const z=p.getLineMaxColumn(M);y[k]=this.k(m,p,!1,new f.Range(M,z,M,z))}}return y}static lineInsertAfter(m,p,b){if(p===null||b===null)return[];const y=[];for(let k=0,D=b.length;k<D;k++){const M=b[k].positionLineNumber,z=p.getLineMaxColumn(M);y[k]=this.k(m,p,!1,new f.Range(M,z,M,z))}return y}static lineBreakInsert(m,p,b){const y=[];for(let k=0,D=b.length;k<D;k++)y[k]=this.k(m,p,!0,b[k]);return y}}e.TypeOperations=c;class d extends E.ReplaceCommandWithOffsetCursorState{constructor(m,p,b,y){super(m,(b?p:"")+y,0,-y.length),this.f=p,this.g=y,this.closeCharacterRange=null,this.enclosingRange=null}computeCursorState(m,p){const y=p.getInverseEditOperations()[0].range;return this.closeCharacterRange=new f.Range(y.startLineNumber,y.endColumn-this.g.length,y.endLineNumber,y.endColumn),this.enclosingRange=new f.Range(y.startLineNumber,y.endColumn-this.f.length-this.g.length,y.endLineNumber,y.endColumn),super.computeCursorState(m,p)}}e.TypeWithAutoClosingCommand=d;class s{constructor(m,p,b,y,k,D){this.deletedText=m,this.deletedSelectionStart=p,this.deletedSelectionEnd=b,this.insertedText=y,this.insertedSelectionStart=k,this.insertedSelectionEnd=D}}e.CompositionOutcome=s;function l(w,m){return w===" "?m===5||m===6?6:5:4}function o(w,m){return h(w)&&!h(m)?!0:w===5?!1:u(w)!==u(m)}function u(w){return w===6||w===5?"space":w}function h(w){return w===4||w===5||w===6}}),define(_[715],ee([1,0,13,9,452,65,440,187,228,4,22,104,194,2,215]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CursorsController=void 0;class r extends n.Disposable{constructor(h,w,m,p){super(),this.c=h,this.g=this.c.getVersionId(),this.h=w,this.k=m,this.context=new L.CursorContext(this.c,this.h,this.k,p),this.n=new E.CursorCollection(this.context),this.p=!1,this.t=!1,this.u=null,this.v=null,this.w=[],this.y=0}dispose(){this.n.dispose(),this.w=(0,n.dispose)(this.w),super.dispose()}updateConfiguration(h){this.context=new L.CursorContext(this.c,this.h,this.k,h),this.n.updateContext(this.context)}onLineMappingChanged(h){this.g===this.c.getVersionId()&&this.setStates(h,"viewModel",0,this.getCursorStates())}setHasFocus(h){this.p=h}z(){if(this.w.length>0){const h=this.n.getSelections();for(let w=0;w<this.w.length;w++){const m=this.w[w];m.isValid(h)||(m.dispose(),this.w.splice(w,1),w--)}}}getPrimaryCursorState(){return this.n.getPrimaryCursor()}getLastAddedCursorIndex(){return this.n.getLastAddedCursorIndex()}getCursorStates(){return this.n.getAll()}setStates(h,w,m,p){let b=!1;const y=this.context.cursorConfig.multiCursorLimit;p!==null&&p.length>y&&(p=p.slice(0,y),b=!0);const k=c.from(this.c,this);return this.n.setStates(p),this.n.normalize(),this.v=null,this.z(),this.F(h,w,m,k,b)}setCursorColumnSelectData(h){this.v=h}revealPrimary(h,w,m,p,b,y){const k=this.n.getViewPositions();let D=null,M=null;k.length>1?M=this.n.getViewSelections():D=f.Range.fromPositions(k[0],k[0]),h.emitViewEvent(new t.ViewRevealRangeRequestEvent(w,m,D,M,p,b,y))}saveState(){const h=[],w=this.n.getSelections();for(let m=0,p=w.length;m<p;m++){const b=w[m];h.push({inSelectionMode:!b.isEmpty(),selectionStart:{lineNumber:b.selectionStartLineNumber,column:b.selectionStartColumn},position:{lineNumber:b.positionLineNumber,column:b.positionColumn}})}return h}restoreState(h,w){const m=[];for(let p=0,b=w.length;p<b;p++){const y=w[p];let k=1,D=1;y.position&&y.position.lineNumber&&(k=y.position.lineNumber),y.position&&y.position.column&&(D=y.position.column);let M=k,z=D;y.selectionStart&&y.selectionStart.lineNumber&&(M=y.selectionStart.lineNumber),y.selectionStart&&y.selectionStart.column&&(z=y.selectionStart.column),m.push({selectionStartLineNumber:M,selectionStartColumn:z,positionLineNumber:k,positionColumn:D})}this.setStates(h,"restoreState",0,I.CursorState.fromModelSelections(m)),this.revealPrimary(h,"restoreState",!1,0,!0,1)}onModelContentChanged(h,w){if(w instanceof i.ModelInjectedTextChangedEvent){if(this.t)return;this.t=!0;try{this.setStates(h,"modelChange",0,this.getCursorStates())}finally{this.t=!1}}else{const m=w.rawContentChangedEvent;if(this.g=m.versionId,this.t)return;const p=m.containsEvent(1);if(this.y=0,p)this.n.dispose(),this.n=new E.CursorCollection(this.context),this.z(),this.F(h,"model",1,null,!1);else if(this.p&&m.resultingSelection&&m.resultingSelection.length>0){const b=I.CursorState.fromModelSelections(m.resultingSelection);this.setStates(h,"modelChange",m.isUndoing?5:m.isRedoing?6:2,b)&&this.revealPrimary(h,"modelChange",!1,0,!0,0)}else{const b=this.n.readSelectionFromMarkers();this.setStates(h,"modelChange",2,I.CursorState.fromModelSelections(b))}}}getSelection(){return this.n.getPrimaryCursor().modelState.selection}getTopMostViewPosition(){return this.n.getTopMostViewPosition()}getBottomMostViewPosition(){return this.n.getBottomMostViewPosition()}getCursorColumnSelectData(){if(this.v)return this.v;const h=this.n.getPrimaryCursor(),w=h.viewState.selectionStart.getStartPosition(),m=h.viewState.position;return{isReal:!1,fromViewLineNumber:w.lineNumber,fromViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this.h,w),toViewLineNumber:m.lineNumber,toViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this.h,m)}}getSelections(){return this.n.getSelections()}setSelections(h,w,m,p){this.setStates(h,w,p,I.CursorState.fromModelSelections(m))}getPrevEditOperationType(){return this.y}setPrevEditOperationType(h){this.y=h}B(h,w){const m=[],p=[];for(let k=0,D=h.length;k<D;k++)m.push({range:h[k],options:{description:"auto-closed-character",inlineClassName:"auto-closed-character",stickiness:1}}),p.push({range:w[k],options:{description:"auto-closed-enclosing",stickiness:1}});const b=this.c.deltaDecorations([],m),y=this.c.deltaDecorations([],p);this.w.push(new d(this.c,b,y))}C(h){if(!h)return;h.shouldPushStackElementBefore&&this.c.pushStackElement();const w=s.executeCommands(this.c,this.n.getSelections(),h.commands);if(w){this.D(w);const m=[],p=[];for(let b=0;b<h.commands.length;b++){const y=h.commands[b];y instanceof v.TypeWithAutoClosingCommand&&y.enclosingRange&&y.closeCharacterRange&&(m.push(y.closeCharacterRange),p.push(y.enclosingRange))}m.length>0&&this.B(m,p),this.y=h.type}h.shouldPushStackElementAfter&&this.c.pushStackElement()}D(h){(!h||h.length===0)&&(h=this.n.readSelectionFromMarkers()),this.v=null,this.n.setSelections(h),this.n.normalize()}F(h,w,m,p,b){const y=c.from(this.c,this);if(y.equals(p))return!1;const k=this.n.getSelections(),D=this.n.getViewSelections();if(h.emitViewEvent(new t.ViewCursorStateChangedEvent(D,k,m)),!p||p.cursorState.length!==y.cursorState.length||y.cursorState.some((M,z)=>!M.modelState.equals(p.cursorState[z].modelState))){const M=p?p.cursorState.map(R=>R.modelState.selection):null,z=p?p.modelVersionId:0;h.emitOutgoingEvent(new a.CursorStateChangedEvent(M,k,z,y.modelVersionId,w||"keyboard",m,b))}return!0}G(h){if(!h.length)return null;const w=[];for(let m=0,p=h.length;m<p;m++){const b=h[m];if(!b.text||b.text.indexOf(`
|
||
`)>=0)return null;const y=b.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!y)return null;const k=y[1],D=this.context.cursorConfig.autoClosingPairs.autoClosingPairsCloseSingleChar.get(k);if(!D||D.length!==1)return null;const M=D[0].open,z=b.text.length-y[2].length-1,R=b.text.lastIndexOf(M,z-1);if(R===-1)return null;w.push([R,z])}return w}executeEdits(h,w,m,p){let b=null;w==="snippet"&&(b=this.G(m)),b&&(m[0]._isTracked=!0);const y=[],k=[],D=this.c.pushEditOperations(this.getSelections(),m,M=>{if(b)for(let R=0,P=b.length;R<P;R++){const[A,T]=b[R],O=M[R],B=O.range.startLineNumber,W=O.range.startColumn-1+A,j=O.range.startColumn-1+T;y.push(new f.Range(B,j+1,B,j+2)),k.push(new f.Range(B,W+1,B,j+2))}const z=p(M);return z&&(this.t=!0),z});D&&(this.t=!1,this.setSelections(h,w,D,0)),y.length>0&&this.B(y,k)}H(h,w,m,p=0){if(this.context.cursorConfig.readOnly)return;const b=c.from(this.c,this);this.n.stopTrackingSelections(),this.t=!0;try{this.n.ensureValidState(),h()}catch(y){(0,C.onUnexpectedError)(y)}this.t=!1,this.n.startTrackingSelections(),this.z(),this.F(w,m,p,b,!1)&&this.revealPrimary(w,m,!1,0,!0,0)}getAutoClosedCharacters(){return d.getAllAutoClosedCharacters(this.w)}startComposition(h){this.u=new o(this.c,this.getSelections())}endComposition(h,w){const m=this.u?this.u.deduceOutcome(this.c,this.getSelections()):null;this.u=null,this.H(()=>{w==="keyboard"&&this.C(v.TypeOperations.compositionEndWithInterceptors(this.y,this.context.cursorConfig,this.c,m,this.getSelections(),this.getAutoClosedCharacters()))},h,w)}type(h,w,m){this.H(()=>{if(m==="keyboard"){const p=w.length;let b=0;for(;b<p;){const y=N.nextCharLength(w,b),k=w.substr(b,y);this.C(v.TypeOperations.typeWithInterceptors(!!this.u,this.y,this.context.cursorConfig,this.c,this.getSelections(),this.getAutoClosedCharacters(),k)),b+=y}}else this.C(v.TypeOperations.typeWithoutInterceptors(this.y,this.context.cursorConfig,this.c,this.getSelections(),w))},h,m)}compositionType(h,w,m,p,b,y){if(w.length===0&&m===0&&p===0){if(b!==0){const k=this.getSelections().map(D=>{const M=D.getPosition();return new g.Selection(M.lineNumber,M.column+b,M.lineNumber,M.column+b)});this.setSelections(h,y,k,0)}return}this.H(()=>{this.C(v.TypeOperations.compositionType(this.y,this.context.cursorConfig,this.c,this.getSelections(),w,m,p,b))},h,y)}paste(h,w,m,p,b){this.H(()=>{this.C(v.TypeOperations.paste(this.context.cursorConfig,this.c,this.getSelections(),w,m,p||[]))},h,b,4)}cut(h,w){this.H(()=>{this.C(S.DeleteOperations.cut(this.context.cursorConfig,this.c,this.getSelections()))},h,w)}executeCommand(h,w,m){this.H(()=>{this.n.killSecondaryCursors(),this.C(new I.EditOperationResult(0,[w],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},h,m)}executeCommands(h,w,m){this.H(()=>{this.C(new I.EditOperationResult(0,w,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},h,m)}}e.CursorsController=r;class c{static from(h,w){return new c(h.getVersionId(),w.getCursorStates())}constructor(h,w){this.modelVersionId=h,this.cursorState=w}equals(h){if(!h||this.modelVersionId!==h.modelVersionId||this.cursorState.length!==h.cursorState.length)return!1;for(let w=0,m=this.cursorState.length;w<m;w++)if(!this.cursorState[w].equals(h.cursorState[w]))return!1;return!0}}class d{static getAllAutoClosedCharacters(h){let w=[];for(const m of h)w=w.concat(m.getAutoClosedCharactersRanges());return w}constructor(h,w,m){this.c=h,this.d=w,this.f=m}dispose(){this.d=this.c.deltaDecorations(this.d,[]),this.f=this.c.deltaDecorations(this.f,[])}getAutoClosedCharactersRanges(){const h=[];for(let w=0;w<this.d.length;w++){const m=this.c.getDecorationRange(this.d[w]);m&&h.push(m)}return h}isValid(h){const w=[];for(let m=0;m<this.f.length;m++){const p=this.c.getDecorationRange(this.f[m]);if(p&&(w.push(p),p.startLineNumber!==p.endLineNumber))return!1}w.sort(f.Range.compareRangesUsingStarts),h.sort(f.Range.compareRangesUsingStarts);for(let m=0;m<h.length;m++)if(m>=w.length||!w[m].strictContainsRange(h[m]))return!1;return!0}}class s{static executeCommands(h,w,m){const p={model:h,selectionsBefore:w,trackedRanges:[],trackedRangesDirection:[]},b=this.c(p,m);for(let y=0,k=p.trackedRanges.length;y<k;y++)p.model._setTrackedRange(p.trackedRanges[y],null,0);return b}static c(h,w){if(this.d(w))return null;const m=this.f(h,w);if(m.operations.length===0)return null;const p=m.operations,b=this.h(p);if(b.hasOwnProperty("0"))return console.warn("Ignoring commands"),null;const y=[];for(let M=0,z=p.length;M<z;M++)b.hasOwnProperty(p[M].identifier.major.toString())||y.push(p[M]);m.hadTrackedEditOperation&&y.length>0&&(y[0]._isTracked=!0);let k=h.model.pushEditOperations(h.selectionsBefore,y,M=>{const z=[];for(let A=0;A<h.selectionsBefore.length;A++)z[A]=[];for(const A of M)!A.identifier||z[A.identifier.major].push(A);const R=(A,T)=>A.identifier.minor-T.identifier.minor,P=[];for(let A=0;A<h.selectionsBefore.length;A++)z[A].length>0?(z[A].sort(R),P[A]=w[A].computeCursorState(h.model,{getInverseEditOperations:()=>z[A],getTrackedSelection:T=>{const O=parseInt(T,10),B=h.model._getTrackedRange(h.trackedRanges[O]);return h.trackedRangesDirection[O]===0?new g.Selection(B.startLineNumber,B.startColumn,B.endLineNumber,B.endColumn):new g.Selection(B.endLineNumber,B.endColumn,B.startLineNumber,B.startColumn)}})):P[A]=h.selectionsBefore[A];return P});k||(k=h.selectionsBefore);const D=[];for(const M in b)b.hasOwnProperty(M)&&D.push(parseInt(M,10));D.sort((M,z)=>z-M);for(const M of D)k.splice(M,1);return k}static d(h){for(let w=0,m=h.length;w<m;w++)if(h[w])return!1;return!0}static f(h,w){let m=[],p=!1;for(let b=0,y=w.length;b<y;b++){const k=w[b];if(k){const D=this.g(h,b,k);m=m.concat(D.operations),p=p||D.hadTrackedEditOperation}}return{operations:m,hadTrackedEditOperation:p}}static g(h,w,m){const p=[];let b=0;const y=(R,P,A=!1)=>{f.Range.isEmpty(R)&&P===""||p.push({identifier:{major:w,minor:b++},range:R,text:P,forceMoveMarkers:A,isAutoWhitespaceEdit:m.insertsAutoWhitespace})};let k=!1;const z={addEditOperation:y,addTrackedEditOperation:(R,P,A)=>{k=!0,y(R,P,A)},trackSelection:(R,P)=>{const A=g.Selection.liftSelection(R);let T;if(A.isEmpty())if(typeof P=="boolean")P?T=2:T=3;else{const W=h.model.getLineMaxColumn(A.startLineNumber);A.startColumn===W?T=2:T=3}else T=1;const O=h.trackedRanges.length,B=h.model._setTrackedRange(null,A,T);return h.trackedRanges[O]=B,h.trackedRangesDirection[O]=A.getDirection(),O.toString()}};try{m.getEditOperations(h.model,z)}catch(R){return(0,C.onUnexpectedError)(R),{operations:[],hadTrackedEditOperation:!1}}return{operations:p,hadTrackedEditOperation:k}}static h(h){h=h.slice(0),h.sort((m,p)=>-f.Range.compareRangesUsingEnds(m.range,p.range));const w={};for(let m=1;m<h.length;m++){const p=h[m-1],b=h[m];if(f.Range.getStartPosition(p.range).isBefore(f.Range.getEndPosition(b.range))){let y;p.identifier.major>b.identifier.major?y=p.identifier.major:y=b.identifier.major,w[y.toString()]=!0;for(let k=0;k<h.length;k++)h[k].identifier.major===y&&(h.splice(k,1),k<m&&m--,k--);m>0&&m--}}return w}}class l{constructor(h,w,m){this.text=h,this.startSelection=w,this.endSelection=m}}class o{static d(h,w){const m=[];for(const p of w){if(p.startLineNumber!==p.endLineNumber)return null;m.push(new l(h.getLineContent(p.startLineNumber),p.startColumn-1,p.endColumn-1))}return m}constructor(h,w){this.c=o.d(h,w)}deduceOutcome(h,w){if(!this.c)return null;const m=o.d(h,w);if(!m||this.c.length!==m.length)return null;const p=[];for(let b=0,y=this.c.length;b<y;b++)p.push(o.f(this.c[b],m[b]));return p}static f(h,w){const m=Math.min(h.startSelection,w.startSelection,N.commonPrefixLength(h.text,w.text)),p=Math.min(h.text.length-h.endSelection,w.text.length-w.endSelection,N.commonSuffixLength(h.text,w.text)),b=h.text.substring(m,h.text.length-p),y=w.text.substring(m,w.text.length-p);return new v.CompositionOutcome(b,h.startSelection-m,h.endSelection-m,y,w.startSelection-m,w.endSelection-m)}}}),define(_[716],ee([1,0,48,44,70,296]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getIconClasses=void 0;const L=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function S(g,i,t,n){const a=n===I.FileKind.ROOT_FOLDER?["rootfolder-icon"]:n===I.FileKind.FOLDER?["folder-icon"]:["file-icon"];if(t){let r;if(t.scheme===C.Schemas.data)r=N.DataUri.parseMetaData(t).get(N.DataUri.META_DATA_LABEL);else{const c=t.path.match(L);c?(r=f(c[2].toLowerCase()),c[1]&&a.push(`${f(c[1].toLowerCase())}-name-dir-icon`)):r=f(t.authority.toLowerCase())}if(n===I.FileKind.FOLDER)a.push(`${r}-name-folder-icon`);else{if(r){if(a.push(`${r}-name-file-icon`),a.push("name-file-icon"),r.length<=255){const d=r.split(".");for(let s=1;s<d.length;s++)a.push(`${d.slice(s).join(".")}-ext-file-icon`)}a.push("ext-file-icon")}const c=v(g,i,t);c&&a.push(`${f(c)}-lang-file-icon`)}}return a}e.getIconClasses=S;function v(g,i,t){if(!t)return null;let n=null;if(t.scheme===C.Schemas.data){const r=N.DataUri.parseMetaData(t).get(N.DataUri.META_DATA_MIME);r&&(n=i.getLanguageIdByMimeType(r))}else{const a=g.getModel(t);a&&(n=a.getLanguageId())}return n&&n!==E.PLAINTEXT_LANGUAGE_ID?n:i.guessLanguageIdByFilepathOrFirstLine(t)}function f(g){return g.replace(/[\11\12\14\15\40]/g,"/")}}),define(_[717],ee([1,0,271,101,48,88,44,9,70]),function(q,e,C,N,E,I,L,S,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLanguageIds=e.clearPlatformLanguageAssociations=e.registerPlatformLanguageAssociation=void 0;let f=[],g=[],i=[];function t(o,u=!1){n(o,!1,u)}e.registerPlatformLanguageAssociation=t;function n(o,u,h){const w=a(o,u);f.push(w),w.userConfigured?i.push(w):g.push(w),h&&!w.userConfigured&&f.forEach(m=>{m.mime===w.mime||m.userConfigured||(w.extension&&m.extension===w.extension&&console.warn(`Overwriting extension <<${w.extension}>> to now point to mime <<${w.mime}>>`),w.filename&&m.filename===w.filename&&console.warn(`Overwriting filename <<${w.filename}>> to now point to mime <<${w.mime}>>`),w.filepattern&&m.filepattern===w.filepattern&&console.warn(`Overwriting filepattern <<${w.filepattern}>> to now point to mime <<${w.mime}>>`),w.firstline&&m.firstline===w.firstline&&console.warn(`Overwriting firstline <<${w.firstline}>> to now point to mime <<${w.mime}>>`))})}function a(o,u){return{id:o.id,mime:o.mime,filename:o.filename,extension:o.extension,filepattern:o.filepattern,firstline:o.firstline,userConfigured:u,filenameLowercase:o.filename?o.filename.toLowerCase():void 0,extensionLowercase:o.extension?o.extension.toLowerCase():void 0,filepatternLowercase:o.filepattern?(0,C.parse)(o.filepattern.toLowerCase()):void 0,filepatternOnPath:o.filepattern?o.filepattern.indexOf(I.posix.sep)>=0:!1}}function r(){f=f.filter(o=>o.userConfigured),g=[]}e.clearPlatformLanguageAssociations=r;function c(o,u){return d(o,u).map(h=>h.id)}e.getLanguageIds=c;function d(o,u){let h;if(o)switch(o.scheme){case E.Schemas.file:h=o.fsPath;break;case E.Schemas.data:{h=L.DataUri.parseMetaData(o).get(L.DataUri.META_DATA_LABEL);break}case E.Schemas.vscodeNotebookCell:h=void 0;break;default:h=o.path}if(!h)return[{id:"unknown",mime:N.Mimes.unknown}];h=h.toLowerCase();const w=(0,I.basename)(h),m=s(h,w,i);if(m)return[m,{id:v.PLAINTEXT_LANGUAGE_ID,mime:N.Mimes.text}];const p=s(h,w,g);if(p)return[p,{id:v.PLAINTEXT_LANGUAGE_ID,mime:N.Mimes.text}];if(u){const b=l(u);if(b)return[b,{id:v.PLAINTEXT_LANGUAGE_ID,mime:N.Mimes.text}]}return[{id:"unknown",mime:N.Mimes.unknown}]}function s(o,u,h){var w;let m,p,b;for(let y=h.length-1;y>=0;y--){const k=h[y];if(u===k.filenameLowercase){m=k;break}if(k.filepattern&&(!p||k.filepattern.length>p.filepattern.length)){const D=k.filepatternOnPath?o:u;!((w=k.filepatternLowercase)===null||w===void 0)&&w.call(k,D)&&(p=k)}k.extension&&(!b||k.extension.length>b.extension.length)&&u.endsWith(k.extensionLowercase)&&(b=k)}if(m)return m;if(p)return p;if(b)return b}function l(o){if((0,S.startsWithUTF8BOM)(o)&&(o=o.substr(1)),o.length>0)for(let u=f.length-1;u>=0;u--){const h=f[u];if(!h.firstline)continue;const w=o.match(h.firstline);if(w&&w.length>0)return h}}}),define(_[718],ee([1,0,6,2,9,717,70,90,33]),function(q,e,C,N,E,I,L,S,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LanguagesRegistry=e.LanguageIdCodec=void 0;const f=Object.prototype.hasOwnProperty,g="vs.editor.nullLanguage";class i{constructor(){this.b=[],this.c=new Map,this.e(g,0),this.e(L.PLAINTEXT_LANGUAGE_ID,1),this.a=2}e(a,r){this.b[r]=a,this.c.set(a,r)}register(a){if(this.c.has(a))return;const r=this.a++;this.e(a,r)}encodeLanguageId(a){return this.c.get(a)||0}decodeLanguageId(a){return this.b[a]||g}}e.LanguageIdCodec=i;class t extends N.Disposable{constructor(a=!0,r=!1){super(),this.a=this.q(new C.Emitter),this.onDidChange=this.a.event,t.instanceCount++,this.b=r,this.languageIdCodec=new i,this.c=[],this.g={},this.h={},this.i={},this.j={},a&&(this.k(),this.q(L.ModesRegistry.onDidChangeLanguages(c=>{this.k()})))}dispose(){t.instanceCount--,super.dispose()}k(){this.g={},this.h={},this.i={},this.j={},(0,I.clearPlatformLanguageAssociations)();const a=[].concat(L.ModesRegistry.getLanguages()).concat(this.c);this._registerLanguages(a)}_registerLanguages(a){for(const r of a)this.l(r);this.h={},this.i={},this.j={},Object.keys(this.g).forEach(r=>{const c=this.g[r];c.name&&(this.i[c.name]=c.identifier),c.aliases.forEach(d=>{this.j[d.toLowerCase()]=c.identifier}),c.mimetypes.forEach(d=>{this.h[d]=c.identifier})}),v.Registry.as(S.Extensions.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this.a.fire()}l(a){const r=a.id;let c;f.call(this.g,r)?c=this.g[r]:(this.languageIdCodec.register(r),c={identifier:r,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this.g[r]=c),this.n(c,a)}n(a,r){const c=r.id;let d=null;if(Array.isArray(r.mimetypes)&&r.mimetypes.length>0&&(a.mimetypes.push(...r.mimetypes),d=r.mimetypes[0]),d||(d=`text/x-${c}`,a.mimetypes.push(d)),Array.isArray(r.extensions)){r.configuration?a.extensions=r.extensions.concat(a.extensions):a.extensions=a.extensions.concat(r.extensions);for(const o of r.extensions)(0,I.registerPlatformLanguageAssociation)({id:c,mime:d,extension:o},this.b)}if(Array.isArray(r.filenames))for(const o of r.filenames)(0,I.registerPlatformLanguageAssociation)({id:c,mime:d,filename:o},this.b),a.filenames.push(o);if(Array.isArray(r.filenamePatterns))for(const o of r.filenamePatterns)(0,I.registerPlatformLanguageAssociation)({id:c,mime:d,filepattern:o},this.b);if(typeof r.firstLine=="string"&&r.firstLine.length>0){let o=r.firstLine;o.charAt(0)!=="^"&&(o="^"+o);try{const u=new RegExp(o);(0,E.regExpLeadsToEndlessLoop)(u)||(0,I.registerPlatformLanguageAssociation)({id:c,mime:d,firstline:u},this.b)}catch(u){console.warn(`[${r.id}]: Invalid regular expression \`${o}\`: `,u)}}a.aliases.push(c);let s=null;if(typeof r.aliases<"u"&&Array.isArray(r.aliases)&&(r.aliases.length===0?s=[null]:s=r.aliases),s!==null)for(const o of s)!o||o.length===0||a.aliases.push(o);const l=s!==null&&s.length>0;if(!(l&&s[0]===null)){const o=(l?s[0]:null)||c;(l||!a.name)&&(a.name=o)}r.configuration&&a.configurationFiles.push(r.configuration),r.icon&&a.icons.push(r.icon)}isRegisteredLanguageId(a){return a?f.call(this.g,a):!1}getRegisteredLanguageIds(){return Object.keys(this.g)}getLanguageIdByLanguageName(a){const r=a.toLowerCase();return f.call(this.j,r)?this.j[r]:null}getLanguageIdByMimeType(a){return a&&f.call(this.h,a)?this.h[a]:null}guessLanguageIdByFilepathOrFirstLine(a,r){return!a&&!r?[]:(0,I.getLanguageIds)(a,r)}}t.instanceCount=0,e.LanguagesRegistry=t}),define(_[719],ee([1,0,6,2,718,17,26,70]),function(q,e,C,N,E,I,L,S){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LanguageService=void 0;class v extends N.Disposable{constructor(i=!1){super(),this.c=this.q(new C.Emitter),this.onDidEncounterLanguage=this.c.event,this.g=this.q(new C.Emitter({leakWarningThreshold:200})),this.onDidChange=this.g.event,v.instanceCount++,this.a=new Set,this.b=this.q(new E.LanguagesRegistry(!0,i)),this.languageIdCodec=this.b.languageIdCodec,this.q(this.b.onDidChange(()=>this.g.fire()))}dispose(){v.instanceCount--,super.dispose()}isRegisteredLanguageId(i){return this.b.isRegisteredLanguageId(i)}getLanguageIdByLanguageName(i){return this.b.getLanguageIdByLanguageName(i)}getLanguageIdByMimeType(i){return this.b.getLanguageIdByMimeType(i)}guessLanguageIdByFilepathOrFirstLine(i,t){const n=this.b.guessLanguageIdByFilepathOrFirstLine(i,t);return(0,I.firstOrDefault)(n,null)}createById(i){return new f(this.onDidChange,()=>this.h(i))}createByFilepathOrFirstLine(i,t){return new f(this.onDidChange,()=>{const n=this.guessLanguageIdByFilepathOrFirstLine(i,t);return this.h(n)})}h(i){return(!i||!this.isRegisteredLanguageId(i))&&(i=S.PLAINTEXT_LANGUAGE_ID),this.a.has(i)||(this.a.add(i),L.TokenizationRegistry.getOrCreate(i),this.c.fire(i)),i}}v.instanceCount=0,e.LanguageService=v;class f{constructor(i,t){this.c=i,this.d=t,this.a=null,this.b=null,this.languageId=this.d()}e(){this.a&&(this.a.dispose(),this.a=null),this.b&&(this.b.dispose(),this.b=null)}get onDidChange(){return this.a||(this.a=this.c(()=>this.f())),this.b||(this.b=new C.Emitter({onDidRemoveLastListener:()=>{this.e()}})),this.b.event}f(){var i;const t=this.d();t!==this.languageId&&(this.languageId=t,(i=this.b)===null||i===void 0||i.fire(this.languageId))}}}),define(_[720],ee([1,0,9,227,4,22,103,34,265,225,226]),function(q,e,C,N,E,I,L,S,v,f,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MoveLinesCommand=void 0;let i=class{constructor(n,a,r,c){this.g=c,this.a=n,this.b=a,this.c=r,this.d=null,this.f=!1}getEditOperations(n,a){const r=n.getLineCount();if(this.b&&this.a.endLineNumber===r){this.d=a.trackSelection(this.a);return}if(!this.b&&this.a.startLineNumber===1){this.d=a.trackSelection(this.a);return}this.e=!1;let c=this.a;c.startLineNumber<c.endLineNumber&&c.endColumn===1&&(this.e=!0,c=c.setEndPosition(c.endLineNumber-1,n.getLineMaxColumn(c.endLineNumber-1)));const{tabSize:d,indentSize:s,insertSpaces:l}=n.getOptions(),o=this.h(d,s,l),u={tokenization:{getLineTokens:h=>n.tokenization.getLineTokens(h),getLanguageId:()=>n.getLanguageId(),getLanguageIdAtPosition:(h,w)=>n.getLanguageIdAtPosition(h,w)},getLineContent:null};if(c.startLineNumber===c.endLineNumber&&n.getLineMaxColumn(c.startLineNumber)===1){const h=c.startLineNumber,w=this.b?h+1:h-1;n.getLineMaxColumn(w)===1?a.addEditOperation(new E.Range(1,1,1,1),null):(a.addEditOperation(new E.Range(h,1,h,1),n.getLineContent(w)),a.addEditOperation(new E.Range(w,1,w,n.getLineMaxColumn(w)),null)),c=new I.Selection(w,1,w,1)}else{let h,w;if(this.b){h=c.endLineNumber+1,w=n.getLineContent(h),a.addEditOperation(new E.Range(h-1,n.getLineMaxColumn(h-1),h,n.getLineMaxColumn(h)),null);let m=w;if(this.n(n,c)){const p=this.l(n,o,d,h,c.startLineNumber-1);if(p!==null){const y=C.getLeadingWhitespace(n.getLineContent(h)),k=p+v.getSpaceCnt(y,d);m=v.generateIndent(k,d,l)+this.m(w)}else{u.getLineContent=k=>k===c.startLineNumber?n.getLineContent(h):n.getLineContent(k);const y=(0,f.getGoodIndentForLine)(this.c,u,n.getLanguageIdAtPosition(h,1),c.startLineNumber,o,this.g);if(y!==null){const k=C.getLeadingWhitespace(n.getLineContent(h)),D=v.getSpaceCnt(y,d),M=v.getSpaceCnt(k,d);D!==M&&(m=v.generateIndent(D,d,l)+this.m(w))}}a.addEditOperation(new E.Range(c.startLineNumber,1,c.startLineNumber,1),m+`
|
||
`);const b=this.k(n,o,d,c.startLineNumber,h,m);if(b!==null)b!==0&&this.o(n,a,c,d,l,b);else{u.getLineContent=k=>k===c.startLineNumber?m:k>=c.startLineNumber+1&&k<=c.endLineNumber+1?n.getLineContent(k-1):n.getLineContent(k);const y=(0,f.getGoodIndentForLine)(this.c,u,n.getLanguageIdAtPosition(h,1),c.startLineNumber+1,o,this.g);if(y!==null){const k=C.getLeadingWhitespace(n.getLineContent(c.startLineNumber)),D=v.getSpaceCnt(y,d),M=v.getSpaceCnt(k,d);if(D!==M){const z=D-M;this.o(n,a,c,d,l,z)}}}}else a.addEditOperation(new E.Range(c.startLineNumber,1,c.startLineNumber,1),m+`
|
||
`)}else if(h=c.startLineNumber-1,w=n.getLineContent(h),a.addEditOperation(new E.Range(h,1,h+1,1),null),a.addEditOperation(new E.Range(c.endLineNumber,n.getLineMaxColumn(c.endLineNumber),c.endLineNumber,n.getLineMaxColumn(c.endLineNumber)),`
|
||
`+w),this.n(n,c)){u.getLineContent=p=>p===h?n.getLineContent(c.startLineNumber):n.getLineContent(p);const m=this.l(n,o,d,c.startLineNumber,c.startLineNumber-2);if(m!==null)m!==0&&this.o(n,a,c,d,l,m);else{const p=(0,f.getGoodIndentForLine)(this.c,u,n.getLanguageIdAtPosition(c.startLineNumber,1),h,o,this.g);if(p!==null){const b=C.getLeadingWhitespace(n.getLineContent(c.startLineNumber)),y=v.getSpaceCnt(p,d),k=v.getSpaceCnt(b,d);if(y!==k){const D=y-k;this.o(n,a,c,d,l,D)}}}}}this.d=a.trackSelection(c)}h(n,a,r){return{shiftIndent:c=>N.ShiftCommand.shiftIndent(c,c.length+1,n,a,r),unshiftIndent:c=>N.ShiftCommand.unshiftIndent(c,c.length+1,n,a,r)}}j(n,a,r,c,d){if(d){let s=d.indentation;d.indentAction===L.IndentAction.None||d.indentAction===L.IndentAction.Indent?s=d.indentation+d.appendText:d.indentAction===L.IndentAction.IndentOutdent?s=d.indentation:d.indentAction===L.IndentAction.Outdent&&(s=a.unshiftIndent(d.indentation)+d.appendText);const l=n.getLineContent(c);if(this.m(l).indexOf(this.m(s))>=0){const o=C.getLeadingWhitespace(n.getLineContent(c));let u=C.getLeadingWhitespace(s);const h=(0,f.getIndentMetadata)(n,c,this.g);h!==null&&h&2&&(u=a.unshiftIndent(u));const w=v.getSpaceCnt(u,r),m=v.getSpaceCnt(o,r);return w-m}}return null}k(n,a,r,c,d,s){if(C.lastNonWhitespaceIndex(s)>=0){const l=n.getLineMaxColumn(d),o=(0,g.getEnterAction)(this.c,n,new E.Range(d,l,d,l),this.g);return this.j(n,a,r,c,o)}else{let l=c-1;for(;l>=1;){const h=n.getLineContent(l);if(C.lastNonWhitespaceIndex(h)>=0)break;l--}if(l<1||c>n.getLineCount())return null;const o=n.getLineMaxColumn(l),u=(0,g.getEnterAction)(this.c,n,new E.Range(l,o,l,o),this.g);return this.j(n,a,r,c,u)}}l(n,a,r,c,d,s){let l=d;for(;l>=1;){let h;if(l===d&&s!==void 0?h=s:h=n.getLineContent(l),C.lastNonWhitespaceIndex(h)>=0)break;l--}if(l<1||c>n.getLineCount())return null;const o=n.getLineMaxColumn(l),u=(0,g.getEnterAction)(this.c,n,new E.Range(l,o,l,o),this.g);return this.j(n,a,r,c,u)}m(n){return n.replace(/^\s+/,"")}n(n,a){if(this.c<4||!n.tokenization.isCheapToTokenize(a.startLineNumber))return!1;const r=n.getLanguageIdAtPosition(a.startLineNumber,1),c=n.getLanguageIdAtPosition(a.endLineNumber,1);return!(r!==c||this.g.getLanguageConfiguration(r).indentRulesSupport===null)}o(n,a,r,c,d,s){for(let l=r.startLineNumber;l<=r.endLineNumber;l++){const o=n.getLineContent(l),u=C.getLeadingWhitespace(o),w=v.getSpaceCnt(u,c)+s,m=v.generateIndent(w,c,d);m!==u&&(a.addEditOperation(new E.Range(l,1,l,u.length+1),m),l===r.endLineNumber&&r.endColumn<=u.length+1&&m===""&&(this.f=!0))}}computeCursorState(n,a){let r=a.getTrackedSelection(this.d);return this.e&&(r=r.setEndPosition(r.endLineNumber+1,1)),this.f&&r.startLineNumber<r.endLineNumber&&(r=r.setEndPosition(r.endLineNumber,2)),r}};i=Ne([ge(3,S.ILanguageConfigurationService)],i),e.MoveLinesCommand=i}),define(_[121],ee([1,0,281,13,6,2,73,37,70,288,50]),function(q,e,C,N,E,I,L,S,v,f,g){"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),e.openLinkFromMarkdown=e.MarkdownRenderer=void 0;let t=class Ri{constructor(c,d,s){this.c=c,this.d=d,this.f=s,this.b=new E.Emitter,this.onDidRenderAsync=this.b.event}dispose(){this.b.dispose()}render(c,d,s){if(!c)return{element:document.createElement("span"),dispose:()=>{}};const l=new I.DisposableStore;return{element:l.add((0,C.renderMarkdown)(c,Object.assign(Object.assign({},this.g(c,l)),d),s)).element,dispose:()=>l.dispose()}}g(c,d){return{codeBlockRenderer:(s,l)=>ye(this,void 0,void 0,function*(){var o,u,h;let w;s?w=this.d.getLanguageIdByLanguageName(s):this.c.editor&&(w=(o=this.c.editor.getModel())===null||o===void 0?void 0:o.getLanguageId()),w||(w=v.PLAINTEXT_LANGUAGE_ID);const m=yield(0,f.tokenizeToString)(this.d,l,w),p=document.createElement("span");if(p.innerHTML=(h=(u=Ri.a)===null||u===void 0?void 0:u.createHTML(m))!==null&&h!==void 0?h:m,this.c.editor){const b=this.c.editor.getOption(47);(0,L.applyFontInfo)(p,b)}else this.c.codeBlockFontFamily&&(p.style.fontFamily=this.c.codeBlockFontFamily);return this.c.codeBlockFontSize!==void 0&&(p.style.fontSize=this.c.codeBlockFontSize),p}),asyncRenderCallback:()=>this.b.fire(),actionHandler:{callback:s=>n(this.f,s,c.isTrusted),disposables:d}}}};t.a=(i=window.trustedTypes)===null||i===void 0?void 0:i.createPolicy("tokenizeToString",{createHTML(r){return r}}),t=Ne([ge(1,S.ILanguageService),ge(2,g.IOpenerService)],t),e.MarkdownRenderer=t;function n(r,c,d){return ye(this,void 0,void 0,function*(){try{return yield r.open(c,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:a(d)})}catch(s){return(0,N.onUnexpectedError)(s),!1}})}e.openLinkFromMarkdown=n;function a(r){return r===!0?!0:r&&Array.isArray(r.enabledCommands)?r.enabledCommands:!1}}),define(_[721],ee([1,0,7,17,72,2,121,291,278]),function(q,e,C,N,E,I,L,S,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MarginHoverWidget=void 0;const f=C.$;class g extends I.Disposable{constructor(n,a,r){super(),this.k=this.q(new I.DisposableStore),this.a=n,this.c=!1,this.g=[],this.b=this.q(new v.HoverWidget),this.b.containerDomNode.classList.toggle("hidden",!this.c),this.h=this.q(new L.MarkdownRenderer({editor:this.a},a,r)),this.i=new i(this.a),this.j=this.q(new S.HoverOperation(this.a,this.i)),this.q(this.j.onResult(c=>{this.n(c.value)})),this.q(this.a.onDidChangeModelDecorations(()=>this.m())),this.q(this.a.onDidChangeConfiguration(c=>{c.hasChanged(47)&&this.l()})),this.a.addOverlayWidget(this)}dispose(){this.a.removeOverlayWidget(this),super.dispose()}getId(){return g.ID}getDomNode(){return this.b.containerDomNode}getPosition(){return null}l(){Array.prototype.slice.call(this.b.contentsDomNode.getElementsByClassName("code")).forEach(a=>this.a.applyFontInfo(a))}m(){this.c&&(this.j.cancel(),this.j.start(0))}startShowingAt(n){this.i.lineNumber!==n&&(this.j.cancel(),this.hide(),this.i.lineNumber=n,this.j.start(0))}hide(){this.i.lineNumber=-1,this.j.cancel(),this.c&&(this.c=!1,this.b.containerDomNode.classList.toggle("hidden",!this.c))}n(n){this.g=n,this.g.length>0?this.p(this.i.lineNumber,this.g):this.hide()}p(n,a){this.k.clear();const r=document.createDocumentFragment();for(const c of a){const d=f("div.hover-row.markdown-hover"),s=C.append(d,f("div.hover-contents")),l=this.k.add(this.h.render(c.value));s.appendChild(l.element),r.appendChild(d)}this.r(r),this.s(n)}r(n){this.b.contentsDomNode.textContent="",this.b.contentsDomNode.appendChild(n),this.l()}s(n){this.c||(this.c=!0,this.b.containerDomNode.classList.toggle("hidden",!this.c));const a=this.a.getLayoutInfo(),r=this.a.getTopForLineNumber(n),c=this.a.getScrollTop(),d=this.a.getOption(63),s=this.b.containerDomNode.clientHeight,l=r-c-(s-d)/2;this.b.containerDomNode.style.left=`${a.glyphMarginLeft+a.glyphMarginWidth}px`,this.b.containerDomNode.style.top=`${Math.max(Math.round(l),0)}px`}}g.ID="editor.contrib.modesGlyphHoverWidget",e.MarginHoverWidget=g;class i{get lineNumber(){return this.a}set lineNumber(n){this.a=n}constructor(n){this.b=n,this.a=-1}computeSync(){const n=c=>({value:c}),a=this.b.getLineDecorations(this.a),r=[];if(!a)return r;for(const c of a){if(!c.options.glyphMarginClassName)continue;const d=c.options.glyphMarginHoverMessage;!d||(0,E.isEmptyMarkdownString)(d)||r.push(...(0,N.asArray)(d).map(n))}return r}}}),define(_[308],ee([1,0,7,76,29,32,6,72,2,121,276,644,8]),function(q,e,C,N,E,I,L,S,v,f,g,i,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SuggestDetailsOverlay=e.SuggestDetailsWidget=e.canExpandCompletionItem=void 0;function n(c){return!!c&&Boolean(c.completion.documentation||c.completion.detail&&c.completion.detail!==c.completion.label)}e.canExpandCompletionItem=n;let a=class{constructor(d,s){this.r=d,this.c=new L.Emitter,this.onDidClose=this.c.event,this.d=new L.Emitter,this.onDidChangeContents=this.d.event,this.l=new v.DisposableStore,this.n=new v.DisposableStore,this.o=1,this.q=new C.Dimension(330,0),this.domNode=C.$(".suggest-details"),this.domNode.classList.add("no-docs"),this.m=s.createInstance(f.MarkdownRenderer,{editor:d}),this.h=C.$(".body"),this.g=new N.DomScrollableElement(this.h,{alwaysConsumeMouseWheel:!0}),C.append(this.domNode,this.g.getDomNode()),this.l.add(this.g),this.i=C.append(this.h,C.$(".header")),this.f=C.append(this.i,C.$("span"+I.ThemeIcon.asCSSSelector(E.Codicon.close))),this.f.title=i.localize(0,null),this.j=C.append(this.i,C.$("p.type")),this.k=C.append(this.h,C.$("p.docs")),this.s(),this.l.add(this.r.onDidChangeConfiguration(l=>{l.hasChanged(47)&&this.s()}))}dispose(){this.l.dispose(),this.n.dispose()}s(){const d=this.r.getOptions(),s=d.get(47),l=s.getMassagedFontFamily(),o=d.get(113)||s.fontSize,u=d.get(114)||s.lineHeight,h=s.fontWeight,w=`${o}px`,m=`${u}px`;this.domNode.style.fontSize=w,this.domNode.style.lineHeight=`${u/o}`,this.domNode.style.fontWeight=h,this.domNode.style.fontFeatureSettings=s.fontFeatureSettings,this.j.style.fontFamily=l,this.f.style.height=m,this.f.style.width=m}getLayoutInfo(){const d=this.r.getOption(114)||this.r.getOption(47).lineHeight,s=this.o,l=s*2;return{lineHeight:d,borderWidth:s,borderHeight:l,verticalPadding:22,horizontalPadding:14}}renderLoading(){this.j.textContent=i.localize(1,null),this.k.textContent="",this.domNode.classList.remove("no-docs","no-type"),this.layout(this.size.width,this.getLayoutInfo().lineHeight*2),this.d.fire(this)}renderItem(d,s){var l,o;this.n.clear();let{detail:u,documentation:h}=d.completion;if(s){let w="";w+=`score: ${d.score[0]}
|
||
`,w+=`prefix: ${(l=d.word)!==null&&l!==void 0?l:"(no prefix)"}
|
||
`,w+=`word: ${d.completion.filterText?d.completion.filterText+" (filterText)":d.textLabel}
|
||
`,w+=`distance: ${d.distance} (localityBonus-setting)
|
||
`,w+=`index: ${d.idx}, based on ${d.completion.sortText&&`sortText: "${d.completion.sortText}"`||"label"}
|
||
`,w+=`commit_chars: ${(o=d.completion.commitCharacters)===null||o===void 0?void 0:o.join("")}
|
||
`,h=new S.MarkdownString().appendCodeblock("empty",w),u=`Provider: ${d.provider._debugDisplayName}`}if(!s&&!n(d)){this.clearContents();return}if(this.domNode.classList.remove("no-docs","no-type"),u){const w=u.length>1e5?`${u.substr(0,1e5)}\u2026`:u;this.j.textContent=w,this.j.title=w,C.show(this.j),this.j.classList.toggle("auto-wrap",!/\r?\n^\s+/gmi.test(w))}else C.clearNode(this.j),this.j.title="",C.hide(this.j),this.domNode.classList.add("no-type");if(C.clearNode(this.k),typeof h=="string")this.k.classList.remove("markdown-docs"),this.k.textContent=h;else if(h){this.k.classList.add("markdown-docs"),C.clearNode(this.k);const w=this.m.render(h);this.k.appendChild(w.element),this.n.add(w),this.n.add(this.m.onDidRenderAsync(()=>{this.layout(this.q.width,this.j.clientHeight+this.k.clientHeight),this.d.fire(this)}))}this.domNode.style.userSelect="text",this.domNode.tabIndex=-1,this.f.onmousedown=w=>{w.preventDefault(),w.stopPropagation()},this.f.onclick=w=>{w.preventDefault(),w.stopPropagation(),this.c.fire()},this.h.scrollTop=0,this.layout(this.q.width,this.j.clientHeight+this.k.clientHeight),this.d.fire(this)}clearContents(){this.domNode.classList.add("no-docs"),this.j.textContent="",this.k.textContent=""}get size(){return this.q}layout(d,s){const l=new C.Dimension(d,s);C.Dimension.equals(l,this.q)||(this.q=l,C.size(this.domNode,d,s)),this.g.scanDomNode()}scrollDown(d=8){this.h.scrollTop+=d}scrollUp(d=8){this.h.scrollTop-=d}scrollTop(){this.h.scrollTop=0}scrollBottom(){this.h.scrollTop=this.h.scrollHeight}pageDown(){this.scrollDown(80)}pageUp(){this.scrollUp(80)}set borderWidth(d){this.o=d}get borderWidth(){return this.o}};a=Ne([ge(1,t.IInstantiationService)],a),e.SuggestDetailsWidget=a;class r{constructor(d,s){this.widget=d,this.k=s,this.c=new v.DisposableStore,this.f=!1,this.h=!0,this.d=new g.ResizableHTMLElement,this.d.domNode.classList.add("suggest-details-container"),this.d.domNode.appendChild(d.domNode),this.d.enableSashes(!1,!0,!0,!1);let l,o,u=0,h=0;this.c.add(this.d.onDidWillResize(()=>{l=this.j,o=this.d.size})),this.c.add(this.d.onDidResize(w=>{if(l&&o){this.widget.layout(w.dimension.width,w.dimension.height);let m=!1;w.west&&(h=o.width-w.dimension.width,m=!0),w.north&&(u=o.height-w.dimension.height,m=!0),m&&this.l({top:l.top+u,left:l.left+h})}w.done&&(l=void 0,o=void 0,u=0,h=0,this.i=w.dimension)})),this.c.add(this.widget.onDidChangeContents(()=>{var w;this.g&&this._placeAtAnchor(this.g,(w=this.i)!==null&&w!==void 0?w:this.widget.size,this.h)}))}dispose(){this.d.dispose(),this.c.dispose(),this.hide()}getId(){return"suggest.details"}getDomNode(){return this.d.domNode}getPosition(){return null}show(){this.f||(this.k.addOverlayWidget(this),this.getDomNode().style.position="fixed",this.f=!0)}hide(d=!1){this.d.clearSashHoverState(),this.f&&(this.k.removeOverlayWidget(this),this.f=!1,this.g=void 0,this.j=void 0),d&&(this.i=void 0,this.widget.clearContents())}placeAtAnchor(d,s){var l;const o=d.getBoundingClientRect();this.g=o,this.h=s,this._placeAtAnchor(this.g,(l=this.i)!==null&&l!==void 0?l:this.widget.size,s)}_placeAtAnchor(d,s,l){var o;const u=C.getClientArea(document.body),h=this.widget.getLayoutInfo(),w=new C.Dimension(220,2*h.lineHeight),m=d.top,p=function(){const T=u.width-(d.left+d.width+h.borderWidth+h.horizontalPadding),O=-h.borderWidth+d.left+d.width,B=new C.Dimension(T,u.height-d.top-h.borderHeight-h.verticalPadding),W=B.with(void 0,d.top+d.height-h.borderHeight-h.verticalPadding);return{top:m,left:O,fit:T-s.width,maxSizeTop:B,maxSizeBottom:W,minSize:w.with(Math.min(T,w.width))}}(),b=function(){const T=d.left-h.borderWidth-h.horizontalPadding,O=Math.max(h.horizontalPadding,d.left-s.width-h.borderWidth),B=new C.Dimension(T,u.height-d.top-h.borderHeight-h.verticalPadding),W=B.with(void 0,d.top+d.height-h.borderHeight-h.verticalPadding);return{top:m,left:O,fit:T-s.width,maxSizeTop:B,maxSizeBottom:W,minSize:w.with(Math.min(T,w.width))}}(),y=function(){const T=d.left,O=-h.borderWidth+d.top+d.height,B=new C.Dimension(d.width-h.borderHeight,u.height-d.top-d.height-h.verticalPadding);return{top:O,left:T,fit:B.height-s.height,maxSizeBottom:B,maxSizeTop:B,minSize:w.with(B.width)}}(),k=[p,b,y],D=(o=k.find(T=>T.fit>=0))!==null&&o!==void 0?o:k.sort((T,O)=>O.fit-T.fit)[0],M=d.top+d.height-h.borderHeight;let z,R=s.height;const P=Math.max(D.maxSizeTop.height,D.maxSizeBottom.height);R>P&&(R=P);let A;l?R<=D.maxSizeTop.height?(z=!0,A=D.maxSizeTop):(z=!1,A=D.maxSizeBottom):R<=D.maxSizeBottom.height?(z=!1,A=D.maxSizeBottom):(z=!0,A=D.maxSizeTop),this.l({left:D.left,top:z?D.top:M-R}),this.getDomNode().style.position="fixed",this.d.enableSashes(!z,D===p,z,D!==p),this.d.minSize=D.minSize,this.d.maxSize=A,this.d.layout(R,Math.min(A.width,s.width)),this.widget.layout(this.d.size.width,this.d.size.height)}l(d){this.j=d,this.getDomNode().style.left=`${this.j.left}px`,this.getDomNode().style.top=`${this.j.top}px`}}e.SuggestDetailsOverlay=r}),define(_[309],ee([1,0,17,55,46,18,21,27,90,33]),function(q,e,C,N,E,I,L,S,v,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConfigurationChangeEvent=e.Configuration=e.ConfigurationModelParser=e.ConfigurationModel=void 0;function g(c){return Object.isFrozen(c)?c:E.deepFreeze(c)}class i{constructor(d={},s=[],l=[],o){this.b=d,this.c=s,this.d=l,this.raw=o,this.a=new Map}get rawConfiguration(){var d;if(!this.f)if(!((d=this.raw)===null||d===void 0)&&d.length){const s=this.raw.map(l=>{if(l instanceof i)return l;const o=new t("");return o.parseRaw(l),o.configurationModel});this.f=s.reduce((l,o)=>o===l?o:l.merge(o),s[0])}else this.f=this;return this.f}get contents(){return this.b}get overrides(){return this.d}get keys(){return this.c}isEmpty(){return this.c.length===0&&Object.keys(this.b).length===0&&this.d.length===0}getValue(d){return d?(0,S.getConfigurationValue)(this.contents,d):this.contents}inspect(d,s){const l=this.rawConfiguration.getValue(d),o=s?this.rawConfiguration.getOverrideValue(d,s):void 0,u=s?this.rawConfiguration.override(s).getValue(d):l;return{value:l,override:o,merged:u}}getOverrideValue(d,s){const l=this.i(s);return l?d?(0,S.getConfigurationValue)(l,d):l:void 0}override(d){let s=this.a.get(d);return s||(s=this.g(d),this.a.set(d,s)),s}merge(...d){var s,l;const o=E.deepClone(this.contents),u=E.deepClone(this.overrides),h=[...this.keys],w=!((s=this.raw)===null||s===void 0)&&s.length?[...this.raw]:[this];for(const m of d)if(w.push(...!((l=m.raw)===null||l===void 0)&&l.length?m.raw:[m]),!m.isEmpty()){this.h(o,m.contents);for(const p of m.overrides){const[b]=u.filter(y=>C.equals(y.identifiers,p.identifiers));b?(this.h(b.contents,p.contents),b.keys.push(...p.keys),b.keys=C.distinct(b.keys)):u.push(E.deepClone(p))}for(const p of m.keys)h.indexOf(p)===-1&&h.push(p)}return new i(o,h,u,w.every(m=>m instanceof i)?void 0:w)}g(d){const s=this.i(d);if(!s||typeof s!="object"||!Object.keys(s).length)return this;const l={};for(const o of C.distinct([...Object.keys(this.contents),...Object.keys(s)])){let u=this.contents[o];const h=s[o];h&&(typeof u=="object"&&typeof h=="object"?(u=E.deepClone(u),this.h(u,h)):u=h),l[o]=u}return new i(l,this.keys,this.overrides)}h(d,s){for(const l of Object.keys(s)){if(l in d&&I.isObject(d[l])&&I.isObject(s[l])){this.h(d[l],s[l]);continue}d[l]=E.deepClone(s[l])}}i(d){let s=null,l=null;const o=u=>{u&&(l?this.h(l,u):l=E.deepClone(u))};for(const u of this.overrides)C.equals(u.identifiers,[d])?s=u.contents:u.identifiers.includes(d)&&o(u.contents);return o(s),l}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}addValue(d,s){this.j(d,s,!0)}setValue(d,s){this.j(d,s,!1)}removeValue(d){const s=this.keys.indexOf(d);s!==-1&&(this.keys.splice(s,1),(0,S.removeFromValueTree)(this.contents,d),v.OVERRIDE_PROPERTY_REGEX.test(d)&&this.overrides.splice(this.overrides.findIndex(l=>C.equals(l.identifiers,(0,v.overrideIdentifiersFromKey)(d))),1))}j(d,s,l){(0,S.addToValueTree)(this.contents,d,s,o=>console.error(o)),l=l||this.keys.indexOf(d)===-1,l&&this.keys.push(d),v.OVERRIDE_PROPERTY_REGEX.test(d)&&this.overrides.push({identifiers:(0,v.overrideIdentifiersFromKey)(d),keys:Object.keys(this.contents[d]),contents:(0,S.toValuesTree)(this.contents[d],o=>console.error(o))})}}e.ConfigurationModel=i;class t{constructor(d){this.d=d,this.a=null,this.b=null,this.c=[]}get configurationModel(){return this.b||new i}parseRaw(d,s){this.a=d;const{contents:l,keys:o,overrides:u,restricted:h,hasExcludedProperties:w}=this.f(d,s);this.b=new i(l,o,u,w?[d]:void 0),this.c=h||[]}f(d,s){const l=f.Registry.as(v.Extensions.Configuration).getConfigurationProperties(),o=this.g(d,l,!0,s);d=o.raw;const u=(0,S.toValuesTree)(d,m=>console.error(`Conflict in settings file ${this.d}: ${m}`)),h=Object.keys(d),w=this.h(d,m=>console.error(`Conflict in settings file ${this.d}: ${m}`));return{contents:u,keys:h,overrides:w,restricted:o.restricted,hasExcludedProperties:o.hasExcludedProperties}}g(d,s,l,o){let u=!1;if(!o?.scopes&&!o?.skipRestricted)return{raw:d,restricted:[],hasExcludedProperties:u};const h={},w=[];for(const m in d)if(v.OVERRIDE_PROPERTY_REGEX.test(m)&&l){const p=this.g(d[m],s,!1,o);h[m]=p.raw,u=u||p.hasExcludedProperties,w.push(...p.restricted)}else{const p=s[m],b=p?typeof p.scope<"u"?p.scope:3:void 0;p?.restricted&&w.push(m),(b===void 0||o.scopes===void 0||o.scopes.includes(b))&&!(o.skipRestricted&&p?.restricted)?h[m]=d[m]:u=!0}return{raw:h,restricted:w,hasExcludedProperties:u}}h(d,s){const l=[];for(const o of Object.keys(d))if(v.OVERRIDE_PROPERTY_REGEX.test(o)){const u={};for(const h in d[o])u[h]=d[o][h];l.push({identifiers:(0,v.overrideIdentifiersFromKey)(o),keys:Object.keys(u),contents:(0,S.toValuesTree)(u,s)})}return l}}e.ConfigurationModelParser=t;class n{constructor(d,s,l,o,u,h,w,m,p,b,y,k,D){this.a=d,this.b=s,this.c=l,this.overrideIdentifiers=o,this.d=u,this.f=h,this.g=w,this.h=m,this.i=p,this.j=b,this.k=y,this.l=k,this.m=D}n(d,s,l){const o=d.inspect(s,l);return{get value(){return g(o.value)},get override(){return g(o.override)},get merged(){return g(o.merged)}}}get q(){return this.p||(this.p=this.n(this.h,this.a,this.b.overrideIdentifier)),this.p}get user(){return this.q.value!==void 0||this.q.override!==void 0?{value:this.q.value,override:this.q.override}:void 0}}class a{constructor(d,s,l,o,u=new i,h=new i,w=new N.ResourceMap,m=new i,p=new N.ResourceMap){this.c=d,this.d=s,this.f=l,this.g=o,this.h=u,this.i=h,this.j=w,this.k=m,this.l=p,this.a=null,this.b=new N.ResourceMap,this.m=null}getValue(d,s,l){return this.n(d,s,l).getValue(d)}updateValue(d,s,l={}){let o;l.resource?(o=this.l.get(l.resource),o||(o=new i,this.l.set(l.resource,o))):o=this.k,s===void 0?o.removeValue(d):o.setValue(d,s),l.resource||(this.a=null)}inspect(d,s,l){const o=this.n(d,s,l),u=this.s(s.resource,l),h=s.resource?this.l.get(s.resource)||this.k:this.k,w=new Set;for(const m of o.overrides)for(const p of m.identifiers)o.getOverrideValue(d,p)!==void 0&&w.add(p);return new n(d,s,o.getValue(d),w.size?[...w]:void 0,this.c,this.d.isEmpty()?void 0:this.d,this.applicationConfiguration.isEmpty()?void 0:this.applicationConfiguration,this.userConfiguration,this.localUserConfiguration,this.remoteUserConfiguration,l?this.i:void 0,u||void 0,h)}get applicationConfiguration(){return this.f}get userConfiguration(){return this.m||(this.m=this.h.isEmpty()?this.g:this.g.merge(this.h)),this.m}get localUserConfiguration(){return this.g}get remoteUserConfiguration(){return this.h}n(d,s,l){let o=this.p(s,l);return s.overrideIdentifier&&(o=o.override(s.overrideIdentifier)),!this.d.isEmpty()&&this.d.getValue(d)!==void 0&&(o=o.merge(this.d)),o}p({resource:d},s){let l=this.q();if(s&&d){const o=s.getFolder(d);o&&(l=this.r(o.uri)||l);const u=this.l.get(d);u&&(l=l.merge(u))}return l}q(){return this.a||(this.a=this.c.merge(this.applicationConfiguration,this.userConfiguration,this.i,this.k)),this.a}r(d){let s=this.b.get(d);if(!s){const l=this.q(),o=this.j.get(d);o?(s=l.merge(o),this.b.set(d,s)):s=l}return s}s(d,s){if(s&&d){const l=s.getFolder(d);if(l)return this.j.get(l.uri)}}toData(){return{defaults:{contents:this.c.contents,overrides:this.c.overrides,keys:this.c.keys},policy:{contents:this.d.contents,overrides:this.d.overrides,keys:this.d.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.i.contents,overrides:this.i.overrides,keys:this.i.keys},folders:[...this.j.keys()].reduce((d,s)=>{const{contents:l,overrides:o,keys:u}=this.j.get(s);return d.push([s,{contents:l,overrides:o,keys:u}]),d},[])}}static parse(d){const s=this.t(d.defaults),l=this.t(d.policy),o=this.t(d.application),u=this.t(d.user),h=this.t(d.workspace),w=d.folders.reduce((m,p)=>(m.set(L.URI.revive(p[0]),this.t(p[1])),m),new N.ResourceMap);return new a(s,l,o,u,new i,h,w,new i,new N.ResourceMap)}static t(d){return new i(d.contents,d.keys,d.overrides)}}e.Configuration=a;class r{constructor(d,s,l,o){this.change=d,this.f=s,this.g=l,this.h=o,this.a=`
|
||
`,this.b=this.a.charCodeAt(0),this.c=".".charCodeAt(0),this.affectedKeys=new Set,this.i=void 0;for(const u of d.keys)this.affectedKeys.add(u);for(const[,u]of d.overrides)for(const h of u)this.affectedKeys.add(h);this.d=this.a;for(const u of this.affectedKeys)this.d+=u+this.a}get previousConfiguration(){return!this.i&&this.f&&(this.i=a.parse(this.f.data)),this.i}affectsConfiguration(d,s){var l;const o=this.a+d,u=this.d.indexOf(o);if(u<0)return!1;const h=u+o.length;if(h>=this.d.length)return!1;const w=this.d.charCodeAt(h);if(w!==this.b&&w!==this.c)return!1;if(s){const m=this.previousConfiguration?this.previousConfiguration.getValue(d,s,(l=this.f)===null||l===void 0?void 0:l.workspace):void 0,p=this.g.getValue(d,s,this.h);return!E.equals(m,p)}return!0}}e.ConfigurationChangeEvent=r}),define(_[722],ee([1,0,2,309,90,33]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultConfiguration=void 0;class L extends C.Disposable{constructor(){super(...arguments),this.a=new N.ConfigurationModel}get configurationModel(){return this.a}reload(){return this.c(),this.configurationModel}b(){return{}}c(){this.a=new N.ConfigurationModel;const v=I.Registry.as(E.Extensions.Configuration).getConfigurationProperties();this.g(Object.keys(v),v)}g(v,f){const g=this.b();for(const i of v){const t=g[i],n=f[i];t!==void 0?this.a.addValue(i,t):n?this.a.addValue(i,n.default):this.a.removeValue(i)}}}e.DefaultConfiguration=L}),define(_[109],ee([1,0,110,16,25,33,2,59]),function(q,e,C,N,E,I,L,S){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Extensions=e.KeybindingsRegistry=void 0;class v{constructor(){this.c=new S.LinkedList,this.d=[],this.e=null}static f(i){if(N.OS===1){if(i&&i.win)return i.win}else if(N.OS===2){if(i&&i.mac)return i.mac}else if(i&&i.linux)return i.linux;return i}registerKeybindingRule(i){const t=v.f(i),n=new L.DisposableStore;if(t&&t.primary){const a=(0,C.decodeKeybinding)(t.primary,N.OS);a&&n.add(this.g(a,i.id,i.args,i.weight,0,i.when))}if(t&&Array.isArray(t.secondary))for(let a=0,r=t.secondary.length;a<r;a++){const c=t.secondary[a],d=(0,C.decodeKeybinding)(c,N.OS);d&&n.add(this.g(d,i.id,i.args,i.weight,-a-1,i.when))}return n}registerCommandAndKeybindingRule(i){return(0,L.combinedDisposable)(this.registerKeybindingRule(i),E.CommandsRegistry.registerCommand(i))}g(i,t,n,a,r,c){const d=this.c.push({keybinding:i,command:t,commandArgs:n,when:c,weight1:a,weight2:r,extensionId:null,isBuiltinExtension:!1});return this.e=null,(0,L.toDisposable)(()=>{d(),this.e=null})}getDefaultKeybindings(){return this.e||(this.e=Array.from(this.c).concat(this.d),this.e.sort(f)),this.e.slice(0)}}e.KeybindingsRegistry=new v,e.Extensions={EditorModes:"platform.keybindingsRegistry"},I.Registry.add(e.Extensions.EditorModes,e.KeybindingsRegistry);function f(g,i){if(g.weight1!==i.weight1)return g.weight1-i.weight1;if(g.command&&i.command){if(g.command<i.command)return-1;if(g.command>i.command)return 1}return g.weight2-i.weight2}});var Mn=this&&this.__rest||function(q,e){var C={};for(var N in q)Object.prototype.hasOwnProperty.call(q,N)&&e.indexOf(N)<0&&(C[N]=q[N]);if(q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,N=Object.getOwnPropertySymbols(q);E<N.length;E++)e.indexOf(N[E])<0&&Object.prototype.propertyIsEnumerable.call(q,N[E])&&(C[N[E]]=q[N[E]]);return C};define(_[28],ee([1,0,41,32,6,2,59,25,15,8,109]),function(q,e,C,N,E,I,L,S,v,f,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerAction2=e.Action2=e.MenuItemAction=e.SubmenuItemAction=e.MenuRegistry=e.IMenuService=e.MenuId=e.isISubmenuItem=e.isIMenuItem=void 0;function i(l){return l.command!==void 0}e.isIMenuItem=i;function t(l){return l.submenu!==void 0}e.isISubmenuItem=t;class n{constructor(o){if(n.a.has(o))throw new TypeError(`MenuId with identifier '${o}' already exists. Use MenuId.for(ident) or a unique identifier`);n.a.set(o,this),this.id=o}}n.a=new Map,n.CommandPalette=new n("CommandPalette"),n.DebugBreakpointsContext=new n("DebugBreakpointsContext"),n.DebugCallStackContext=new n("DebugCallStackContext"),n.DebugConsoleContext=new n("DebugConsoleContext"),n.DebugVariablesContext=new n("DebugVariablesContext"),n.DebugWatchContext=new n("DebugWatchContext"),n.DebugToolBar=new n("DebugToolBar"),n.DebugToolBarStop=new n("DebugToolBarStop"),n.EditorContext=new n("EditorContext"),n.SimpleEditorContext=new n("SimpleEditorContext"),n.EditorContent=new n("EditorContent"),n.EditorContextCopy=new n("EditorContextCopy"),n.EditorContextPeek=new n("EditorContextPeek"),n.EditorContextShare=new n("EditorContextShare"),n.EditorTitle=new n("EditorTitle"),n.EditorTitleRun=new n("EditorTitleRun"),n.EditorTitleContext=new n("EditorTitleContext"),n.EmptyEditorGroup=new n("EmptyEditorGroup"),n.EmptyEditorGroupContext=new n("EmptyEditorGroupContext"),n.ExplorerContext=new n("ExplorerContext"),n.ExtensionContext=new n("ExtensionContext"),n.GlobalActivity=new n("GlobalActivity"),n.CommandCenter=new n("CommandCenter"),n.LayoutControlMenuSubmenu=new n("LayoutControlMenuSubmenu"),n.LayoutControlMenu=new n("LayoutControlMenu"),n.MenubarMainMenu=new n("MenubarMainMenu"),n.MenubarAppearanceMenu=new n("MenubarAppearanceMenu"),n.MenubarDebugMenu=new n("MenubarDebugMenu"),n.MenubarEditMenu=new n("MenubarEditMenu"),n.MenubarCopy=new n("MenubarCopy"),n.MenubarFileMenu=new n("MenubarFileMenu"),n.MenubarGoMenu=new n("MenubarGoMenu"),n.MenubarHelpMenu=new n("MenubarHelpMenu"),n.MenubarLayoutMenu=new n("MenubarLayoutMenu"),n.MenubarNewBreakpointMenu=new n("MenubarNewBreakpointMenu"),n.PanelAlignmentMenu=new n("PanelAlignmentMenu"),n.PanelPositionMenu=new n("PanelPositionMenu"),n.MenubarPreferencesMenu=new n("MenubarPreferencesMenu"),n.MenubarRecentMenu=new n("MenubarRecentMenu"),n.MenubarSelectionMenu=new n("MenubarSelectionMenu"),n.MenubarShare=new n("MenubarShare"),n.MenubarSwitchEditorMenu=new n("MenubarSwitchEditorMenu"),n.MenubarSwitchGroupMenu=new n("MenubarSwitchGroupMenu"),n.MenubarTerminalMenu=new n("MenubarTerminalMenu"),n.MenubarViewMenu=new n("MenubarViewMenu"),n.MenubarHomeMenu=new n("MenubarHomeMenu"),n.OpenEditorsContext=new n("OpenEditorsContext"),n.ProblemsPanelContext=new n("ProblemsPanelContext"),n.SCMChangeContext=new n("SCMChangeContext"),n.SCMResourceContext=new n("SCMResourceContext"),n.SCMResourceFolderContext=new n("SCMResourceFolderContext"),n.SCMResourceGroupContext=new n("SCMResourceGroupContext"),n.SCMSourceControl=new n("SCMSourceControl"),n.SCMTitle=new n("SCMTitle"),n.SearchContext=new n("SearchContext"),n.SearchActionMenu=new n("SearchActionContext"),n.StatusBarWindowIndicatorMenu=new n("StatusBarWindowIndicatorMenu"),n.StatusBarRemoteIndicatorMenu=new n("StatusBarRemoteIndicatorMenu"),n.StickyScrollContext=new n("StickyScrollContext"),n.TestItem=new n("TestItem"),n.TestItemGutter=new n("TestItemGutter"),n.TestPeekElement=new n("TestPeekElement"),n.TestPeekTitle=new n("TestPeekTitle"),n.TouchBarContext=new n("TouchBarContext"),n.TitleBarContext=new n("TitleBarContext"),n.TitleBarTitleContext=new n("TitleBarTitleContext"),n.TunnelContext=new n("TunnelContext"),n.TunnelPrivacy=new n("TunnelPrivacy"),n.TunnelProtocol=new n("TunnelProtocol"),n.TunnelPortInline=new n("TunnelInline"),n.TunnelTitle=new n("TunnelTitle"),n.TunnelLocalAddressInline=new n("TunnelLocalAddressInline"),n.TunnelOriginInline=new n("TunnelOriginInline"),n.ViewItemContext=new n("ViewItemContext"),n.ViewContainerTitle=new n("ViewContainerTitle"),n.ViewContainerTitleContext=new n("ViewContainerTitleContext"),n.ViewTitle=new n("ViewTitle"),n.ViewTitleContext=new n("ViewTitleContext"),n.CommentEditorActions=new n("CommentEditorActions"),n.CommentThreadTitle=new n("CommentThreadTitle"),n.CommentThreadActions=new n("CommentThreadActions"),n.CommentThreadAdditionalActions=new n("CommentThreadAdditionalActions"),n.CommentThreadTitleContext=new n("CommentThreadTitleContext"),n.CommentThreadCommentContext=new n("CommentThreadCommentContext"),n.CommentTitle=new n("CommentTitle"),n.CommentActions=new n("CommentActions"),n.InteractiveToolbar=new n("InteractiveToolbar"),n.InteractiveCellTitle=new n("InteractiveCellTitle"),n.InteractiveCellDelete=new n("InteractiveCellDelete"),n.InteractiveCellExecute=new n("InteractiveCellExecute"),n.InteractiveInputExecute=new n("InteractiveInputExecute"),n.NotebookToolbar=new n("NotebookToolbar"),n.NotebookCellTitle=new n("NotebookCellTitle"),n.NotebookCellDelete=new n("NotebookCellDelete"),n.NotebookCellInsert=new n("NotebookCellInsert"),n.NotebookCellBetween=new n("NotebookCellBetween"),n.NotebookCellListTop=new n("NotebookCellTop"),n.NotebookCellExecute=new n("NotebookCellExecute"),n.NotebookCellExecutePrimary=new n("NotebookCellExecutePrimary"),n.NotebookDiffCellInputTitle=new n("NotebookDiffCellInputTitle"),n.NotebookDiffCellMetadataTitle=new n("NotebookDiffCellMetadataTitle"),n.NotebookDiffCellOutputsTitle=new n("NotebookDiffCellOutputsTitle"),n.NotebookOutputToolbar=new n("NotebookOutputToolbar"),n.NotebookEditorLayoutConfigure=new n("NotebookEditorLayoutConfigure"),n.NotebookKernelSource=new n("NotebookKernelSource"),n.BulkEditTitle=new n("BulkEditTitle"),n.BulkEditContext=new n("BulkEditContext"),n.TimelineItemContext=new n("TimelineItemContext"),n.TimelineTitle=new n("TimelineTitle"),n.TimelineTitleContext=new n("TimelineTitleContext"),n.TimelineFilterSubMenu=new n("TimelineFilterSubMenu"),n.AccountsContext=new n("AccountsContext"),n.PanelTitle=new n("PanelTitle"),n.AuxiliaryBarTitle=new n("AuxiliaryBarTitle"),n.TerminalInstanceContext=new n("TerminalInstanceContext"),n.TerminalEditorInstanceContext=new n("TerminalEditorInstanceContext"),n.TerminalNewDropdownContext=new n("TerminalNewDropdownContext"),n.TerminalTabContext=new n("TerminalTabContext"),n.TerminalTabEmptyAreaContext=new n("TerminalTabEmptyAreaContext"),n.TerminalInlineTabContext=new n("TerminalInlineTabContext"),n.WebviewContext=new n("WebviewContext"),n.InlineCompletionsActions=new n("InlineCompletionsActions"),n.NewFile=new n("NewFile"),n.MergeInput1Toolbar=new n("MergeToolbar1Toolbar"),n.MergeInput2Toolbar=new n("MergeToolbar2Toolbar"),n.MergeBaseToolbar=new n("MergeBaseToolbar"),n.MergeInputResultToolbar=new n("MergeToolbarResultToolbar"),n.InlineSuggestionToolbar=new n("InlineSuggestionToolbar"),e.MenuId=n,e.IMenuService=(0,f.createDecorator)("menuService");class a{static for(o){let u=this.a.get(o);return u||(u=new a(o),this.a.set(o,u)),u}static merge(o){const u=new Set;for(const h of o)h instanceof a&&u.add(h.b);return u}constructor(o){this.b=o,this.has=u=>u===o}}a.a=new Map,e.MenuRegistry=new class{constructor(){this.a=new Map,this.b=new Map,this.c=new E.MicrotaskEmitter({merge:a.merge}),this.onDidChangeMenu=this.c.event}addCommand(l){return this.a.set(l.id,l),this.c.fire(a.for(n.CommandPalette)),(0,I.toDisposable)(()=>{this.a.delete(l.id)&&this.c.fire(a.for(n.CommandPalette))})}getCommand(l){return this.a.get(l)}getCommands(){const l=new Map;return this.a.forEach((o,u)=>l.set(u,o)),l}appendMenuItem(l,o){let u=this.b.get(l);u||(u=new L.LinkedList,this.b.set(l,u));const h=u.push(o);return this.c.fire(a.for(l)),(0,I.toDisposable)(h)}appendMenuItems(l){const o=new I.DisposableStore;for(const{id:u,item:h}of l)o.add(this.appendMenuItem(u,h));return o}getMenuItems(l){let o;return this.b.has(l)?o=[...this.b.get(l)]:o=[],l===n.CommandPalette&&this.d(o),o}d(l){const o=new Set;for(const u of l)i(u)&&(o.add(u.command.id),u.alt&&o.add(u.alt.id));this.a.forEach((u,h)=>{o.has(h)||l.push({command:u})})}};class r extends C.SubmenuAction{constructor(o,u,h){super(`submenuitem.${o.submenu.id}`,typeof o.title=="string"?o.title:o.title.value,h,"submenu"),this.item=o,this.hideActions=u}}e.SubmenuItemAction=r;let c=class ai{static label(o,u){return u?.renderShortTitle&&o.shortTitle?typeof o.shortTitle=="string"?o.shortTitle:o.shortTitle.value:typeof o.title=="string"?o.title:o.title.value}constructor(o,u,h,w,m,p){var b,y;if(this.hideActions=w,this.b=p,this.id=o.id,this.label=ai.label(o,h),this.tooltip=(y=typeof o.tooltip=="string"?o.tooltip:(b=o.tooltip)===null||b===void 0?void 0:b.value)!==null&&y!==void 0?y:"",this.enabled=!o.precondition||m.contextMatchesRules(o.precondition),this.checked=void 0,o.toggled){const k=o.toggled.condition?o.toggled:{condition:o.toggled};this.checked=m.contextMatchesRules(k.condition),this.checked&&k.tooltip&&(this.tooltip=typeof k.tooltip=="string"?k.tooltip:k.tooltip.value),k.title&&(this.label=typeof k.title=="string"?k.title:k.title.value)}this.item=o,this.alt=u?new ai(u,void 0,h,w,m,p):void 0,this.a=h,N.ThemeIcon.isThemeIcon(o.icon)&&(this.class=N.ThemeIcon.asClassName(o.icon))}run(...o){var u,h;let w=[];return!((u=this.a)===null||u===void 0)&&u.arg&&(w=[...w,this.a.arg]),!((h=this.a)===null||h===void 0)&&h.shouldForwardArgs&&(w=[...w,...o]),this.b.executeCommand(this.id,...w)}};c=Ne([ge(4,v.IContextKeyService),ge(5,S.ICommandService)],c),e.MenuItemAction=c;class d{constructor(o){this.desc=o}}e.Action2=d;function s(l){const o=new I.DisposableStore,u=new l,h=u.desc,{f1:w,menu:m,keybinding:p,description:b}=h,y=Mn(h,["f1","menu","keybinding","description"]);if(o.add(S.CommandsRegistry.registerCommand({id:y.id,handler:(k,...D)=>u.run(k,...D),description:b})),Array.isArray(m))for(const k of m)o.add(e.MenuRegistry.appendMenuItem(k.id,Object.assign({command:Object.assign(Object.assign({},y),{precondition:k.precondition===null?void 0:y.precondition})},k)));else m&&o.add(e.MenuRegistry.appendMenuItem(m.id,Object.assign({command:Object.assign(Object.assign({},y),{precondition:m.precondition===null?void 0:y.precondition})},m)));if(w&&(o.add(e.MenuRegistry.appendMenuItem(n.CommandPalette,{command:y,when:y.precondition})),o.add(e.MenuRegistry.addCommand(y))),Array.isArray(p))for(const k of p)o.add(g.KeybindingsRegistry.registerKeybindingRule(Object.assign(Object.assign({},k),{id:y.id,when:y.precondition?v.ContextKeyExpr.and(y.precondition,k.when):k.when})));else p&&o.add(g.KeybindingsRegistry.registerKeybindingRule(Object.assign(Object.assign({},p),{id:y.id,when:y.precondition?v.ContextKeyExpr.and(y.precondition,p.when):p.when})));return o}e.registerAction2=s}),define(_[723],ee([1,0,640,679,28,27,15]),function(q,e,C,N,E,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ToggleStickyScroll=void 0;class S extends E.Action2{constructor(){super({id:"editor.action.toggleStickyScroll",title:{value:(0,C.localize)(0,null),mnemonicTitle:(0,C.localize)(1,null),original:"Toggle Sticky Scroll"},category:N.Categories.View,toggled:{condition:L.ContextKeyExpr.equals("config.editor.stickyScroll.enabled",!0),title:(0,C.localize)(2,null),mnemonicTitle:(0,C.localize)(3,null)},menu:[{id:E.MenuId.CommandPalette},{id:E.MenuId.MenubarViewMenu,group:"5_editor",order:2},{id:E.MenuId.StickyScrollContext}]})}run(f){return ye(this,void 0,void 0,function*(){const g=f.get(I.IConfigurationService),i=!g.getValue("editor.stickyScroll.enabled");return g.updateValue("editor.stickyScroll.enabled",i)})}}e.ToggleStickyScroll=S}),define(_[310],ee([1,0,52,211,648,28,15]),function(q,e,C,N,E,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ToggleTabFocusModeAction=void 0;class S extends I.Action2{constructor(){super({id:S.ID,title:{value:E.localize(0,null),original:"Toggle Tab Key Moves Focus"},precondition:void 0,keybinding:{primary:2091,mac:{primary:1323},weight:100},f1:!0})}run(f){const g=f.get(L.IContextKeyService).getContextKeyValue("focusedView")==="terminal"?"terminalFocus":"editorFocus",t=!N.TabFocus.getTabFocusMode(g);N.TabFocus.setTabFocusMode(t,g),t?(0,C.alert)(E.localize(1,null)):(0,C.alert)(E.localize(2,null))}}S.ID="editor.action.toggleTabFocusMode",e.ToggleTabFocusModeAction=S,(0,I.registerAction2)(S)}),define(_[311],ee([1,0,210,535,15,109,665,2]),function(q,e,C,N,E,I,L,S){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContextScopedReplaceInput=e.ContextScopedFindInput=e.registerAndCreateHistoryNavigationContext=e.historyNavigationVisible=void 0,e.historyNavigationVisible=new E.RawContextKey("suggestWidgetVisible",!1,(0,L.localize)(0,null));const v="historyNavigationWidgetFocus",f="historyNavigationForwardsEnabled",g="historyNavigationBackwardsEnabled";let i;const t=[];function n(c,d){if(t.includes(d))throw new Error("Cannot register the same widget multiple times");t.push(d);const s=new S.DisposableStore,l=new E.RawContextKey(v,!1).bindTo(c),o=new E.RawContextKey(f,!0).bindTo(c),u=new E.RawContextKey(g,!0).bindTo(c),h=()=>{l.set(!0),i=d},w=()=>{l.set(!1),i===d&&(i=void 0)};return d.element===document.activeElement&&h(),s.add(d.onDidFocus(()=>h())),s.add(d.onDidBlur(()=>w())),s.add((0,S.toDisposable)(()=>{t.splice(t.indexOf(d),1),w()})),{historyNavigationForwardsEnablement:o,historyNavigationBackwardsEnablement:u,dispose(){s.dispose()}}}e.registerAndCreateHistoryNavigationContext=n;let a=class extends C.FindInput{constructor(d,s,l,o){super(d,s,l);const u=this.q(o.createScoped(this.inputBox.element));this.q(n(u,this.inputBox))}};a=Ne([ge(3,E.IContextKeyService)],a),e.ContextScopedFindInput=a;let r=class extends N.ReplaceInput{constructor(d,s,l,o,u=!1){super(d,s,u,l);const h=this.q(o.createScoped(this.inputBox.element));this.q(n(h,this.inputBox))}};r=Ne([ge(3,E.IContextKeyService)],r),e.ContextScopedReplaceInput=r,I.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:E.ContextKeyExpr.and(E.ContextKeyExpr.has(v),E.ContextKeyExpr.equals(g,!0),e.historyNavigationVisible.isEqualTo(!1)),primary:16,secondary:[528],handler:c=>{i?.showPreviousValue()}}),I.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:E.ContextKeyExpr.and(E.ContextKeyExpr.has(v),E.ContextKeyExpr.equals(f,!0),e.historyNavigationVisible.isEqualTo(!1)),primary:18,secondary:[530],handler:c=>{i?.showNextValue()}})}),define(_[122],ee([1,0,20,13,63,2,60,18,21,12,4,61,94,641,28,25,15,19,311]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s){"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:s.historyNavigationVisible,HasFocusedSuggestion:new c.RawContextKey("suggestWidgetHasFocusedSuggestion",!1,(0,n.localize)(0,null)),DetailsVisible:new c.RawContextKey("suggestWidgetDetailsVisible",!1,(0,n.localize)(1,null)),MultipleSuggestions:new c.RawContextKey("suggestWidgetMultipleSuggestions",!1,(0,n.localize)(2,null)),MakesTextEdit:new c.RawContextKey("suggestionMakesTextEdit",!0,(0,n.localize)(3,null)),AcceptSuggestionsOnEnter:new c.RawContextKey("acceptSuggestionOnEnter",!0,(0,n.localize)(4,null)),HasInsertAndReplaceRange:new c.RawContextKey("suggestionHasInsertAndReplaceRange",!1,(0,n.localize)(5,null)),InsertMode:new c.RawContextKey("suggestionInsertMode",void 0,{type:"string",description:(0,n.localize)(6,null)}),CanResolve:new c.RawContextKey("suggestionCanResolve",!1,(0,n.localize)(7,null))},e.suggestWidgetStatusbarMenu=new a.MenuId("suggestWidgetStatusBar");class l{constructor(P,A,T,O){this.position=P,this.completion=A,this.container=T,this.provider=O,this.isInvalid=!1,this.score=E.FuzzyScore.Default,this.distance=0,this.textLabel=typeof A.label=="string"?A.label:A.label.label,this.labelLow=this.textLabel.toLowerCase(),this.isInvalid=!this.textLabel,this.sortTextLow=A.sortText&&A.sortText.toLowerCase(),this.filterTextLow=A.filterText&&A.filterText.toLowerCase(),this.extensionId=A.extensionId,g.Range.isIRange(A.range)?(this.editStart=new f.Position(A.range.startLineNumber,A.range.startColumn),this.editInsertEnd=new f.Position(A.range.endLineNumber,A.range.endColumn),this.editReplaceEnd=new f.Position(A.range.endLineNumber,A.range.endColumn),this.isInvalid=this.isInvalid||g.Range.spansMultipleLines(A.range)||A.range.startLineNumber!==P.lineNumber):(this.editStart=new f.Position(A.range.insert.startLineNumber,A.range.insert.startColumn),this.editInsertEnd=new f.Position(A.range.insert.endLineNumber,A.range.insert.endColumn),this.editReplaceEnd=new f.Position(A.range.replace.endLineNumber,A.range.replace.endColumn),this.isInvalid=this.isInvalid||g.Range.spansMultipleLines(A.range.insert)||g.Range.spansMultipleLines(A.range.replace)||A.range.insert.startLineNumber!==P.lineNumber||A.range.replace.startLineNumber!==P.lineNumber||A.range.insert.startColumn!==A.range.replace.startColumn),typeof O.resolveCompletionItem!="function"&&(this.d=Promise.resolve(),this.c=!0)}get isResolved(){return!!this.c}resolve(P){return ye(this,void 0,void 0,function*(){if(!this.d){const A=P.onCancellationRequested(()=>{this.d=void 0,this.c=!1});this.d=Promise.resolve(this.provider.resolveCompletionItem(this.completion,P)).then(T=>{Object.assign(this.completion,T),this.c=!0,A.dispose()},T=>{(0,N.isCancellationError)(T)&&(this.d=void 0,this.c=!1)})}return this.d})}}e.CompletionItem=l;class o{constructor(P=2,A=new Set,T=new Set,O=new Map,B=!0){this.snippetSortOrder=P,this.kindFilter=A,this.providerFilter=T,this.providerItemsToReuse=O,this.showDeprecated=B}}o.default=new o,e.CompletionOptions=o;let u;function h(){return u}e.getSnippetSuggestSupport=h;class w{constructor(P,A,T,O){this.items=P,this.needsClipboard=A,this.durations=T,this.disposable=O}}e.CompletionItemModel=w;function m(R,P,A,T=o.default,O={triggerKind:0},B=C.CancellationToken.None){return ye(this,void 0,void 0,function*(){const W=new L.StopWatch(!0);A=A.clone();const j=P.getWordAtPosition(A),F=j?new g.Range(A.lineNumber,j.startColumn,A.lineNumber,j.endColumn):g.Range.fromPositions(A),U={replace:F,insert:F.setEndPosition(A.lineNumber,A.column)},Q=[],se=new I.DisposableStore,he=[];let ie=!1;const ue=(x,G,te)=>{var Z,ae,de;let K=!1;if(!G)return K;for(const Y of G.suggestions)if(!T.kindFilter.has(Y.kind)){if(!T.showDeprecated&&((Z=Y?.tags)===null||Z===void 0?void 0:Z.includes(1)))continue;Y.range||(Y.range=U),Y.sortText||(Y.sortText=typeof Y.label=="string"?Y.label:Y.label.label),!ie&&Y.insertTextRules&&Y.insertTextRules&4&&(ie=t.SnippetParser.guessNeedsClipboard(Y.insertText)),Q.push(new l(A,Y,G,x)),K=!0}return(0,I.isDisposable)(G)&&se.add(G),he.push({providerName:(ae=x._debugDisplayName)!==null&&ae!==void 0?ae:"unknown_provider",elapsedProvider:(de=G.duration)!==null&&de!==void 0?de:-1,elapsedOverall:te.elapsed()}),K},J=(()=>ye(this,void 0,void 0,function*(){if(!u||T.kindFilter.has(27))return;const x=T.providerItemsToReuse.get(u);if(x){x.forEach(Z=>Q.push(Z));return}if(T.providerFilter.size>0&&!T.providerFilter.has(u))return;const G=new L.StopWatch(!0),te=yield u.provideCompletionItems(P,A,O,B);ue(u,te,G)}))();for(const x of R.orderedGroups(P)){let G=!1;if(yield Promise.all(x.map(te=>ye(this,void 0,void 0,function*(){if(T.providerItemsToReuse.has(te)){const Z=T.providerItemsToReuse.get(te);Z.forEach(ae=>Q.push(ae)),G=G||Z.length>0;return}if(!(T.providerFilter.size>0&&!T.providerFilter.has(te)))try{const Z=new L.StopWatch(!0),ae=yield te.provideCompletionItems(P,A,O,B);G=ue(te,ae,Z)||G}catch(Z){(0,N.onUnexpectedExternalError)(Z)}}))),G||B.isCancellationRequested)break}return yield J,B.isCancellationRequested?(se.dispose(),Promise.reject(new N.CancellationError)):new w(Q.sort(D(T.snippetSortOrder)),ie,{entries:he,elapsed:W.elapsed()},se)})}e.provideSuggestionItems=m;function p(R,P){if(R.sortTextLow&&P.sortTextLow){if(R.sortTextLow<P.sortTextLow)return-1;if(R.sortTextLow>P.sortTextLow)return 1}return R.textLabel<P.textLabel?-1:R.textLabel>P.textLabel?1:R.completion.kind-P.completion.kind}function b(R,P){if(R.completion.kind!==P.completion.kind){if(R.completion.kind===27)return-1;if(P.completion.kind===27)return 1}return p(R,P)}function y(R,P){if(R.completion.kind!==P.completion.kind){if(R.completion.kind===27)return 1;if(P.completion.kind===27)return-1}return p(R,P)}const k=new Map;k.set(0,b),k.set(2,y),k.set(1,p);function D(R){return k.get(R)}e.getSuggestionComparator=D,r.CommandsRegistry.registerCommand("_executeCompletionItemProvider",(R,...P)=>ye(void 0,void 0,void 0,function*(){const[A,T,O,B]=P;(0,S.assertType)(v.URI.isUri(A)),(0,S.assertType)(f.Position.isIPosition(T)),(0,S.assertType)(typeof O=="string"||!O),(0,S.assertType)(typeof B=="number"||!B);const{completionProvider:W}=R.get(d.ILanguageFeaturesService),j=yield R.get(i.ITextModelService).createModelReference(A);try{const F={incomplete:!1,suggestions:[]},U=[],Q=yield m(W,j.object.textEditorModel,f.Position.lift(T),void 0,{triggerCharacter:O??void 0,triggerKind:O?1:0});for(const se of Q.items)U.length<(B??0)&&U.push(se.resolve(C.CancellationToken.None)),F.incomplete=F.incomplete||se.container.incomplete,F.suggestions.push(se.completion);try{return yield Promise.all(U),F}finally{setTimeout(()=>Q.disposable.dispose(),100)}}finally{j.dispose()}}));function M(R,P){var A;(A=R.getContribution("editor.contrib.suggestController"))===null||A===void 0||A.triggerSuggest(new Set().add(P),void 0,!0)}e.showSimpleSuggestions=M;class z{static isAllOff(P){return P.other==="off"&&P.comments==="off"&&P.strings==="off"}static isAllOn(P){return P.other==="on"&&P.comments==="on"&&P.strings==="on"}static valueFor(P,A){switch(A){case 1:return P.comments;case 2:return P.strings;default:return P.other}}}e.QuickSuggestionsOptions=z}),define(_[123],ee([1,0,17,2,33]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.QuickAccessRegistry=e.Extensions=e.DefaultQuickAccessFilterValue=void 0;var I;(function(S){S[S.PRESERVE=0]="PRESERVE",S[S.LAST=1]="LAST"})(I=e.DefaultQuickAccessFilterValue||(e.DefaultQuickAccessFilterValue={})),e.Extensions={Quickaccess:"workbench.contributions.quickaccess"};class L{constructor(){this.a=[],this.b=void 0}registerQuickAccessProvider(v){return v.prefix.length===0?this.b=v:this.a.push(v),this.a.sort((f,g)=>g.prefix.length-f.prefix.length),(0,N.toDisposable)(()=>{this.a.splice(this.a.indexOf(v),1),this.b===v&&(this.b=void 0)})}getQuickAccessProviders(){return(0,C.coalesce)([this.b,...this.a])}getQuickAccessProvider(v){return v&&this.a.find(g=>v.startsWith(g.prefix))||void 0||this.b}}e.QuickAccessRegistry=L,E.Registry.add(e.Extensions.Quickaccess,new L)}),define(_[724],ee([1,0,670,33,2,38,123,79]),function(q,e,C,N,E,I,L,S){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HelpQuickAccessProvider=void 0;let v=class Gt{constructor(g,i){this.b=g,this.c=i,this.a=N.Registry.as(L.Extensions.Quickaccess)}provide(g){const i=new E.DisposableStore;return i.add(g.onDidAccept(()=>{const[t]=g.selectedItems;t&&this.b.quickAccess.show(t.prefix,{preserveValue:!0})})),i.add(g.onDidChangeValue(t=>{const n=this.a.getQuickAccessProvider(t.substr(Gt.PREFIX.length));n&&n.prefix&&n.prefix!==Gt.PREFIX&&this.b.quickAccess.show(n.prefix,{preserveValue:!0})})),g.items=this.getQuickAccessProviders().filter(t=>t.prefix!==Gt.PREFIX),i}getQuickAccessProviders(){return this.a.getQuickAccessProviders().sort((i,t)=>i.prefix.localeCompare(t.prefix)).flatMap(i=>this.d(i))}d(g){return g.helpEntries.map(i=>{const t=i.prefix||g.prefix,n=t||"\u2026";return{prefix:t,label:n,keybinding:i.commandId?this.c.lookupKeybinding(i.commandId):void 0,ariaLabel:(0,C.localize)(0,null,n,i.description),description:i.description}})}};v.PREFIX="?",v=Ne([ge(0,S.IQuickInputService),ge(1,I.IKeybindingService)],v),e.HelpQuickAccessProvider=v}),define(_[725],ee([1,0,33,123,83,724]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),C.Registry.as(N.Extensions.Quickaccess).registerQuickAccessProvider({ctor:I.HelpQuickAccessProvider,prefix:"",helpEntries:[{description:E.QuickHelpNLS.helpQuickAccessActionLabel}]})}),define(_[726],ee([1,0,11,20,92,2,8,123,79,33]),function(q,e,C,N,E,I,L,S,v,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.QuickAccessController=void 0;let g=class extends I.Disposable{constructor(t,n){super(),this.h=t,this.i=n,this.a=f.Registry.as(S.Extensions.Quickaccess),this.b=new Map,this.c=new Map,this.g=void 0}show(t="",n){this.j(t,!1,n)}j(t,n,a){var r;const[c,d]=this.m(t),s=this.g,l=s?.descriptor;if(s&&d&&l===d){t!==d.prefix&&!a?.preserveValue&&(s.picker.value=t),this.k(s.picker,d,a);return}if(d&&!a?.preserveValue){let m;if(s&&l&&l!==d){const p=s.value.substr(l.prefix.length);p&&(m=`${d.prefix}${p}`)}if(!m){const p=c?.defaultFilterValue;p===S.DefaultQuickAccessFilterValue.LAST?m=this.c.get(d):typeof p=="string"&&(m=`${d.prefix}${p}`)}typeof m=="string"&&(t=m)}const o=new I.DisposableStore,u=o.add(this.h.createQuickPick());u.value=t,this.k(u,d,a),u.placeholder=d?.placeholder,u.quickNavigate=a?.quickNavigateConfiguration,u.hideInput=!!u.quickNavigate&&!s,(typeof a?.itemActivation=="number"||a?.quickNavigateConfiguration)&&(u.itemActivation=(r=a?.itemActivation)!==null&&r!==void 0?r:v.ItemActivation.SECOND),u.contextKey=d?.contextKey,u.filterValue=m=>m.substring(d?d.prefix.length:0),d?.placeholder&&(u.ariaLabel=d?.placeholder);let h;n&&(h=new C.DeferredPromise,o.add((0,E.once)(u.onWillAccept)(m=>{m.veto(),u.hide()}))),o.add(this.l(u,c,d,t,a?.providerOptions));const w=o.add(new N.CancellationTokenSource);if(c&&o.add(c.provide(u,w.token,a?.providerOptions)),(0,E.once)(u.onDidHide)(()=>{u.selectedItems.length===0&&w.cancel(),o.dispose(),h?.complete(u.selectedItems.slice(0))}),u.show(),n)return h?.p}k(t,n,a){var r;let c;a?.preserveValue?c=[t.value.length,t.value.length]:c=[(r=n?.prefix.length)!==null&&r!==void 0?r:0,t.value.length],t.valueSelection=c}l(t,n,a,r,c){const d=new I.DisposableStore,s=this.g={picker:t,descriptor:a,value:r};return d.add((0,I.toDisposable)(()=>{s===this.g&&(this.g=void 0)})),d.add(t.onDidChangeValue(l=>{const[o]=this.m(l);o!==n?this.show(l,{preserveValue:!0,providerOptions:c}):s.value=l})),a&&d.add(t.onDidAccept(()=>{this.c.set(a,t.value)})),d}m(t){const n=this.a.getQuickAccessProvider(t);if(!n)return[void 0,void 0];let a=this.b.get(n);return a||(a=this.i.createInstance(n.ctor),this.b.set(n,a)),[a,n]}};g=Ne([ge(0,v.IQuickInputService),ge(1,L.IInstantiationService)],g),e.QuickAccessController=g}),define(_[727],ee([1,0,29,32,102,430]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SeverityIcon=void 0;var I;(function(L){function S(v){switch(v){case E.default.Ignore:return"severity-ignore "+N.ThemeIcon.asClassName(C.Codicon.info);case E.default.Info:return N.ThemeIcon.asClassName(C.Codicon.info);case E.default.Warning:return N.ThemeIcon.asClassName(C.Codicon.warning);case E.default.Error:return N.ThemeIcon.asClassName(C.Codicon.error);default:return""}}L.className=S})(I=e.SeverityIcon||(e.SeverityIcon={}))}),define(_[84],ee([1,0,6,2,18,541,8]),function(q,e,C,N,E,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InMemoryStorageService=e.AbstractStorageService=e.loadKeyTargets=e.WillSaveStateReason=e.IStorageService=e.TARGET_KEY=void 0,e.TARGET_KEY="__$__targetStorageMarker",e.IStorageService=(0,L.createDecorator)("storageService");var S;(function(i){i[i.NONE=0]="NONE",i[i.SHUTDOWN=1]="SHUTDOWN"})(S=e.WillSaveStateReason||(e.WillSaveStateReason={}));function v(i){const t=i.get(e.TARGET_KEY);if(t)try{return JSON.parse(t)}catch{}return Object.create(null)}e.loadKeyTargets=v;class f extends N.Disposable{constructor(t={flushInterval:f.a}){super(),this.h=t,this.b=this.q(new C.PauseableEmitter),this.onDidChangeValue=this.b.event,this.c=this.q(new C.PauseableEmitter),this.g=this.q(new C.Emitter),this.onWillSaveState=this.g.event,this.l=void 0,this.n=void 0,this.r=void 0}i(t,n){if(n===e.TARGET_KEY){switch(t){case-1:this.r=void 0;break;case 0:this.n=void 0;break;case 1:this.l=void 0;break}this.c.fire({scope:t})}else this.b.fire({scope:t,key:n,target:this.t(t)[n]})}get(t,n,a){var r;return(r=this.v(n))===null||r===void 0?void 0:r.get(t,a)}getBoolean(t,n,a){var r;return(r=this.v(n))===null||r===void 0?void 0:r.getBoolean(t,a)}getNumber(t,n,a){var r;return(r=this.v(n))===null||r===void 0?void 0:r.getNumber(t,a)}store(t,n,a,r){if((0,E.isUndefinedOrNull)(n)){this.remove(t,a);return}this.j(()=>{var c;this.k(t,a,r),(c=this.v(a))===null||c===void 0||c.set(t,n)})}remove(t,n){this.j(()=>{var a;this.k(t,n,void 0),(a=this.v(n))===null||a===void 0||a.delete(t)})}j(t){this.b.pause(),this.c.pause();try{t()}finally{this.b.resume(),this.c.resume()}}k(t,n,a){var r,c;const d=this.t(n);typeof a=="number"?d[t]!==a&&(d[t]=a,(r=this.v(n))===null||r===void 0||r.set(e.TARGET_KEY,JSON.stringify(d))):typeof d[t]=="number"&&(delete d[t],(c=this.v(n))===null||c===void 0||c.set(e.TARGET_KEY,JSON.stringify(d)))}get m(){return this.l||(this.l=this.u(1)),this.l}get p(){return this.n||(this.n=this.u(0)),this.n}get s(){return this.r||(this.r=this.u(-1)),this.r}t(t){switch(t){case-1:return this.s;case 0:return this.p;default:return this.m}}u(t){const n=this.v(t);return n?v(n):Object.create(null)}}f.a=60*1e3,e.AbstractStorageService=f;class g extends f{constructor(){super(),this.w=this.q(new I.Storage(new I.InMemoryStorageDatabase,{hint:I.StorageHint.STORAGE_IN_MEMORY})),this.y=this.q(new I.Storage(new I.InMemoryStorageDatabase,{hint:I.StorageHint.STORAGE_IN_MEMORY})),this.z=this.q(new I.Storage(new I.InMemoryStorageDatabase,{hint:I.StorageHint.STORAGE_IN_MEMORY})),this.q(this.z.onDidChangeStorage(t=>this.i(1,t))),this.q(this.y.onDidChangeStorage(t=>this.i(0,t))),this.q(this.w.onDidChangeStorage(t=>this.i(-1,t)))}v(t){switch(t){case-1:return this.w;case 0:return this.y;default:return this.z}}}e.InMemoryStorageService=g}),define(_[728],ee([1,0,11,92,55,4,297,49,8,84]),function(q,e,C,N,E,I,L,S,v,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CodeLensCache=e.ICodeLensCache=void 0,e.ICodeLensCache=(0,v.createDecorator)("ICodeLensCache");class g{constructor(n,a){this.lineCount=n,this.data=a}}let i=class{constructor(n){this.a=new class{provideCodeLenses(){throw new Error("not supported")}},this.b=new E.LRUCache(20,.75);const a="codelens/cache";(0,C.runWhenIdle)(()=>n.remove(a,1));const r="codelens/cache2",c=n.get(r,1,"{}");this.f(c),(0,N.once)(n.onWillSaveState)(d=>{d.reason===f.WillSaveStateReason.SHUTDOWN&&n.store(r,this.c(),1,1)})}put(n,a){const r=a.lenses.map(s=>{var l;return{range:s.symbol.range,command:s.symbol.command&&{id:"",title:(l=s.symbol.command)===null||l===void 0?void 0:l.title}}}),c=new L.CodeLensModel;c.add({lenses:r,dispose:()=>{}},this.a);const d=new g(n.getLineCount(),c);this.b.set(n.uri.toString(),d)}get(n){const a=this.b.get(n.uri.toString());return a&&a.lineCount===n.getLineCount()?a.data:void 0}delete(n){this.b.delete(n.uri.toString())}c(){const n=Object.create(null);for(const[a,r]of this.b){const c=new Set;for(const d of r.data.lenses)c.add(d.symbol.range.startLineNumber);n[a]={lineCount:r.lineCount,lines:[...c.values()]}}return JSON.stringify(n)}f(n){try{const a=JSON.parse(n);for(const r in a){const c=a[r],d=[];for(const l of c.lines)d.push({range:new I.Range(l,1,l,11)});const s=new L.CodeLensModel;s.add({lenses:d,dispose(){}},this.a),this.b.set(r,new g(c.lineCount,s))}}catch{}}};i=Ne([ge(0,f.IStorageService)],i),e.CodeLensCache=i,(0,S.registerSingleton)(e.ICodeLensCache,i,1)}),define(_[312],ee([1,0,11,2,55,182,26,27,49,8,84]),function(q,e,C,N,E,I,L,S,v,f,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ISuggestMemoryService=e.SuggestMemoryService=e.PrefixMemory=e.LRUMemory=e.NoMemory=e.Memory=void 0;class i{constructor(d){this.name=d}select(d,s,l){if(l.length===0)return 0;const o=l[0].score[0];for(let u=0;u<l.length;u++){const{score:h,completion:w}=l[u];if(h[0]!==o)break;if(w.preselect)return u}return 0}}e.Memory=i;class t extends i{constructor(){super("first")}memorize(d,s,l){}toJSON(){}fromJSON(){}}e.NoMemory=t;class n extends i{constructor(){super("recentlyUsed"),this.c=new E.LRUCache(300,.66),this.d=0}memorize(d,s,l){const o=`${d.getLanguageId()}/${l.textLabel}`;this.c.set(o,{touch:this.d++,type:l.completion.kind,insertText:l.completion.insertText})}select(d,s,l){if(l.length===0)return 0;const o=d.getLineContent(s.lineNumber).substr(s.column-10,s.column-1);if(/\s$/.test(o))return super.select(d,s,l);const u=l[0].score[0];let h=-1,w=-1,m=-1;for(let p=0;p<l.length&&l[p].score[0]===u;p++){const b=`${d.getLanguageId()}/${l[p].textLabel}`,y=this.c.peek(b);if(y&&y.touch>m&&y.type===l[p].completion.kind&&y.insertText===l[p].completion.insertText&&(m=y.touch,w=p),l[p].completion.preselect&&h===-1)return h=p}return w!==-1?w:h!==-1?h:0}toJSON(){return this.c.toJSON()}fromJSON(d){this.c.clear();const s=0;for(const[l,o]of d)o.touch=s,o.type=typeof o.type=="number"?o.type:L.CompletionItemKinds.fromString(o.type),this.c.set(l,o);this.d=this.c.size}}e.LRUMemory=n;class a extends i{constructor(){super("recentlyUsedByPrefix"),this.c=I.TernarySearchTree.forStrings(),this.d=0}memorize(d,s,l){const{word:o}=d.getWordUntilPosition(s),u=`${d.getLanguageId()}/${o}`;this.c.set(u,{type:l.completion.kind,insertText:l.completion.insertText,touch:this.d++})}select(d,s,l){const{word:o}=d.getWordUntilPosition(s);if(!o)return super.select(d,s,l);const u=`${d.getLanguageId()}/${o}`;let h=this.c.get(u);if(h||(h=this.c.findSubstr(u)),h)for(let w=0;w<l.length;w++){const{kind:m,insertText:p}=l[w].completion;if(m===h.type&&p===h.insertText)return w}return super.select(d,s,l)}toJSON(){const d=[];return this.c.forEach((s,l)=>d.push([l,s])),d.sort((s,l)=>-(s[1].touch-l[1].touch)).forEach((s,l)=>s[1].touch=l),d.slice(0,200)}fromJSON(d){if(this.c.clear(),d.length>0){this.d=d[0][1].touch+1;for(const[s,l]of d)l.type=typeof l.type=="number"?l.type:L.CompletionItemKinds.fromString(l.type),this.c.set(s,l)}}}e.PrefixMemory=a;let r=class Yt{constructor(d,s){this.j=d,this.k=s,this.g=new N.DisposableStore,this.f=new C.RunOnceScheduler(()=>this.m(),500),this.g.add(d.onWillSaveState(l=>{l.reason===g.WillSaveStateReason.SHUTDOWN&&this.m()}))}dispose(){this.g.dispose(),this.f.dispose()}memorize(d,s,l){this.l(d,s).memorize(d,s,l),this.f.schedule()}select(d,s,l){return this.l(d,s).select(d,s,l)}l(d,s){var l;const o=this.k.getValue("editor.suggestSelection",{overrideIdentifier:d.getLanguageIdAtPosition(s.lineNumber,s.column),resource:d.uri});if(((l=this.h)===null||l===void 0?void 0:l.name)!==o){this.m();const u=Yt.c.get(o)||t;this.h=new u;try{const w=this.k.getValue("editor.suggest.shareSuggestSelections")?0:1,m=this.j.get(`${Yt.d}/${o}`,w);m&&this.h.fromJSON(JSON.parse(m))}catch{}}return this.h}m(){if(this.h){const s=this.k.getValue("editor.suggest.shareSuggestSelections")?0:1,l=JSON.stringify(this.h);this.j.store(`${Yt.d}/${this.h.name}`,l,s,1)}}};r.c=new Map([["recentlyUsedByPrefix",a],["recentlyUsed",n],["first",t]]),r.d="suggest/memories",r=Ne([ge(0,g.IStorageService),ge(1,S.IConfigurationService)],r),e.SuggestMemoryService=r,e.ISuggestMemoryService=(0,f.createDecorator)("ISuggestMemories"),(0,v.registerSingleton)(e.ISuggestMemoryService,r,1)}),define(_[729],ee([1,0,11,6,2,28,25,15,41,84,17,660]),function(q,e,C,N,E,I,L,S,v,f,g,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MenuService=void 0;let t=class{constructor(s,l){this.d=s,this.c=new n(l)}createMenu(s,l,o){return new r(s,this.c,Object.assign({emitEventsForSubmenuChanges:!1,eventDebounceDelay:50},o),this.d,l)}resetHiddenStates(s){this.c.reset(s)}};t=Ne([ge(0,L.ICommandService),ge(1,f.IStorageService)],t),e.MenuService=t;let n=class zt{constructor(s){this.k=s,this.d=new E.DisposableStore,this.f=new N.Emitter,this.onDidChange=this.f.event,this.h=!1,this.j=new Map;try{const l=s.get(zt.c,0,"{}");this.i=JSON.parse(l)}catch{this.i=Object.create(null)}this.d.add(s.onDidChangeValue(l=>{if(l.key===zt.c){if(!this.h)try{const o=s.get(zt.c,0,"{}");this.i=JSON.parse(o)}catch(o){console.log("FAILED to read storage after UPDATE",o)}this.f.fire()}}))}dispose(){this.f.dispose(),this.d.dispose()}l(s,l){var o;return(o=this.j.get(`${s.id}/${l}`))!==null&&o!==void 0?o:!1}setDefaultState(s,l,o){this.j.set(`${s.id}/${l}`,o)}isHidden(s,l){var o,u;const h=this.l(s,l),w=(u=(o=this.i[s.id])===null||o===void 0?void 0:o.includes(l))!==null&&u!==void 0?u:!1;return h?!w:w}updateHidden(s,l,o){this.l(s,l)&&(o=!o);const h=this.i[s.id];if(o)h?h.indexOf(l)<0&&h.push(l):this.i[s.id]=[l];else if(h){const w=h.indexOf(l);w>=0&&(0,g.removeFastWithoutKeepingOrder)(h,w),h.length===0&&delete this.i[s.id]}this.m()}reset(s){if(s===void 0)this.i=Object.create(null),this.m();else{for(const{id:l}of s)this.i[l]&&delete this.i[l];this.m()}}m(){try{this.h=!0;const s=JSON.stringify(this.i);this.k.store(zt.c,s,0,0)}finally{this.h=!1}}};n.c="menu.hiddenCommands",n=Ne([ge(0,f.IStorageService)],n);let a=class Nt{constructor(s,l,o,u,h){this.i=s,this.j=l,this.k=o,this.l=u,this.m=h,this.c=[],this.d=new Set,this.f=new Set,this.h=new Set,this.refresh()}get structureContextKeys(){return this.d}get preconditionContextKeys(){return this.f}get toggledContextKeys(){return this.h}refresh(){this.c.length=0,this.d.clear(),this.f.clear(),this.h.clear();const s=I.MenuRegistry.getMenuItems(this.i);let l;s.sort(Nt.p);for(const o of s){const u=o.group||"";(!l||l[0]!==u)&&(l=[u,[]],this.c.push(l)),l[1].push(o),this.n(o)}}n(s){if(Nt.o(s.when,this.d),(0,I.isIMenuItem)(s)){if(s.command.precondition&&Nt.o(s.command.precondition,this.f),s.command.toggled){const l=s.command.toggled.condition||s.command.toggled;Nt.o(l,this.h)}}else this.k&&I.MenuRegistry.getMenuItems(s.submenu).forEach(this.n,this)}createActionGroups(s){const l=[];for(const o of this.c){const[u,h]=o,w=[];for(const m of h)if(this.m.contextMatchesRules(m.when)){const p=(0,I.isIMenuItem)(m);p&&this.j.setDefaultState(this.i,m.command.id,!!m.isHiddenByDefault);const b=c(this.i,p?m.command:m,this.j);if(p)w.push(new I.MenuItemAction(m.command,m.alt,s,b,this.m,this.l));else{const y=new Nt(m.submenu,this.j,this.k,this.l,this.m).createActionGroups(s),k=v.Separator.join(...y.map(D=>D[1]));k.length>0&&w.push(new I.SubmenuItemAction(m,b,k))}}w.length>0&&l.push([u,w])}return l}static o(s,l){if(s)for(const o of s.keys())l.add(o)}static p(s,l){const o=s.group,u=l.group;if(o!==u){if(o){if(!u)return-1}else return 1;if(o==="navigation")return-1;if(u==="navigation")return 1;const m=o.localeCompare(u);if(m!==0)return m}const h=s.order||0,w=l.order||0;return h<w?-1:h>w?1:Nt.q((0,I.isIMenuItem)(s)?s.command.title:s.title,(0,I.isIMenuItem)(l)?l.command.title:l.title)}static q(s,l){const o=typeof s=="string"?s:s.original,u=typeof l=="string"?l:l.original;return o.localeCompare(u)}};a=Ne([ge(3,L.ICommandService),ge(4,S.IContextKeyService)],a);let r=class{constructor(s,l,o,u,h){this.d=new E.DisposableStore,this.c=new a(s,l,o.emitEventsForSubmenuChanges,u,h);const w=new C.RunOnceScheduler(()=>{this.c.refresh(),this.f.fire({menu:this,isStructuralChange:!0,isEnablementChange:!0,isToggleChange:!0})},o.eventDebounceDelay);this.d.add(w),this.d.add(I.MenuRegistry.onDidChangeMenu(y=>{y.has(s)&&w.schedule()}));const m=this.d.add(new E.DisposableStore),p=y=>{let k=!1,D=!1,M=!1;for(const z of y)if(k=k||z.isStructuralChange,D=D||z.isEnablementChange,M=M||z.isToggleChange,k&&D&&M)break;return{menu:this,isStructuralChange:k,isEnablementChange:D,isToggleChange:M}},b=()=>{m.add(h.onDidChangeContext(y=>{const k=y.affectsSome(this.c.structureContextKeys),D=y.affectsSome(this.c.preconditionContextKeys),M=y.affectsSome(this.c.toggledContextKeys);(k||D||M)&&this.f.fire({menu:this,isStructuralChange:k,isEnablementChange:D,isToggleChange:M})})),m.add(l.onDidChange(y=>{this.f.fire({menu:this,isStructuralChange:!0,isEnablementChange:!1,isToggleChange:!1})}))};this.f=new N.DebounceEmitter({onWillAddFirstListener:b,onDidRemoveLastListener:m.clear.bind(m),delay:o.eventDebounceDelay,merge:p}),this.onDidChange=this.f.event}getActions(s){return this.c.createActionGroups(s)}dispose(){this.d.dispose(),this.f.dispose()}};r=Ne([ge(3,L.ICommandService),ge(4,S.IContextKeyService)],r);function c(d,s,l){const o=(0,I.isISubmenuItem)(s)?s.submenu.id:s.id,u=typeof s.title=="string"?s.title:s.title.value,h=(0,v.toAction)({id:`hide/${d.id}/${o}`,label:(0,i.localize)(0,null,u),run(){l.updateHidden(d,o,!0)}}),w=(0,v.toAction)({id:`toggle/${d.id}/${o}`,label:u,get checked(){return!l.isHidden(d,o)},run(){l.updateHidden(d,o,!!this.checked)}});return{hide:h,toggle:w,get isHidden(){return!w.checked}}}}),define(_[80],ee([1,0,8]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ITelemetryService=void 0,e.ITelemetryService=(0,C.createDecorator)("telemetryService")}),define(_[14],ee([1,0,563,21,30,12,53,61,28,25,15,8,109,33,80,18,62]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c){"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.EditorAction2=e.MultiEditorAction=e.EditorAction=e.EditorCommand=e.ProxyCommand=e.MultiCommand=e.Command=void 0;class d{constructor(T){this.id=T.id,this.precondition=T.precondition,this.f=T.kbOpts,this.g=T.menuOpts,this.k=T.description}register(){if(Array.isArray(this.g)?this.g.forEach(this.o,this):this.g&&this.o(this.g),this.f){const T=Array.isArray(this.f)?this.f:[this.f];for(const O of T){let B=O.kbExpr;this.precondition&&(B?B=g.ContextKeyExpr.and(B,this.precondition):B=this.precondition);const W={id:this.id,weight:O.weight,args:O.args,when:B,primary:O.primary,secondary:O.secondary,win:O.win,linux:O.linux,mac:O.mac};t.KeybindingsRegistry.registerKeybindingRule(W)}}f.CommandsRegistry.registerCommand({id:this.id,handler:(T,O)=>this.runCommand(T,O),description:this.k})}o(T){v.MenuRegistry.appendMenuItem(T.menuId,{group:T.group,command:{id:this.id,title:T.title,icon:T.icon,precondition:this.precondition},when:T.when,order:T.order})}}e.Command=d;class s extends d{constructor(){super(...arguments),this.d=[]}addImplementation(T,O,B){return this.d.push({priority:T,name:O,implementation:B}),this.d.sort((W,j)=>j.priority-W.priority),{dispose:()=>{for(let W=0;W<this.d.length;W++)if(this.d[W].implementation===B){this.d.splice(W,1);return}}}}runCommand(T,O){const B=T.get(c.ILogService);B.trace(`Executing Command '${this.id}' which has ${this.d.length} bound.`);for(const W of this.d){const j=W.implementation(T,O);if(j)return B.trace(`Command '${this.id}' was handled by '${W.name}'.`),typeof j=="boolean"?void 0:j}B.trace(`The Command '${this.id}' was not handled by any implementation.`)}}e.MultiCommand=s;class l extends d{constructor(T,O){super(O),this.d=T}runCommand(T,O){return this.d.runCommand(T,O)}}e.ProxyCommand=l;class o extends d{static bindToContribution(T){return class extends o{constructor(B){super(B),this.d=B.handler}runEditorCommand(B,W,j){const F=T(W);F&&this.d(F,j)}}}static runEditorCommand(T,O,B,W){const j=T.get(E.ICodeEditorService),F=j.getFocusedCodeEditor()||j.getActiveCodeEditor();if(!!F)return F.invokeWithinContext(U=>{if(!!U.get(g.IContextKeyService).contextMatchesRules((0,r.withNullAsUndefined)(B)))return W(U,F,O)})}runCommand(T,O){return o.runEditorCommand(T,O,this.precondition,(B,W,j)=>this.runEditorCommand(B,W,j))}}e.EditorCommand=o;class u extends o{static p(T){let O;Array.isArray(T.menuOpts)?O=T.menuOpts:T.menuOpts?O=[T.menuOpts]:O=[];function B(W){return W.menuId||(W.menuId=v.MenuId.EditorContext),W.title||(W.title=T.label),W.when=g.ContextKeyExpr.and(T.precondition,W.when),W}return Array.isArray(T.contextMenuOpts)?O.push(...T.contextMenuOpts.map(B)):T.contextMenuOpts&&O.push(B(T.contextMenuOpts)),T.menuOpts=O,T}constructor(T){super(u.p(T)),this.label=T.label,this.alias=T.alias}runEditorCommand(T,O,B){return this.q(T,O),this.run(T,O,B||{})}q(T,O){T.get(a.ITelemetryService).publicLog2("editorActionInvoked",{name:this.label,id:this.id})}}e.EditorAction=u;class h extends u{constructor(){super(...arguments),this.d=[]}addImplementation(T,O){return this.d.push([T,O]),this.d.sort((B,W)=>W[0]-B[0]),{dispose:()=>{for(let B=0;B<this.d.length;B++)if(this.d[B][1]===O){this.d.splice(B,1);return}}}}run(T,O,B){for(const W of this.d){const j=W[1](T,O,B);if(j)return typeof j=="boolean"?void 0:j}}}e.MultiEditorAction=h;class w extends v.Action2{run(T,...O){const B=T.get(E.ICodeEditorService),W=B.getFocusedCodeEditor()||B.getActiveCodeEditor();if(!!W)return W.invokeWithinContext(j=>{if(j.get(g.IContextKeyService).contextMatchesRules((0,r.withNullAsUndefined)(this.desc.precondition)))return this.runEditorCommand(j,W,...O)})}}e.EditorAction2=w;function m(A,T){f.CommandsRegistry.registerCommand(A,function(O,...B){const W=O.get(i.IInstantiationService),[j,F]=B;(0,r.assertType)(N.URI.isUri(j)),(0,r.assertType)(I.Position.isIPosition(F));const U=O.get(L.IModelService).getModel(j);if(U){const Q=I.Position.lift(F);return W.invokeFunction(T,U,Q,...B.slice(2))}return O.get(S.ITextModelService).createModelReference(j).then(Q=>new Promise((se,he)=>{try{const ie=W.invokeFunction(T,Q.object.textEditorModel,I.Position.lift(F),B.slice(2));se(ie)}catch(ie){he(ie)}}).finally(()=>{Q.dispose()}))})}e.registerModelAndPositionCommand=m;function p(A){return R.INSTANCE.registerEditorCommand(A),A}e.registerEditorCommand=p;function b(A){const T=new A;return R.INSTANCE.registerEditorAction(T),T}e.registerEditorAction=b;function y(A){return R.INSTANCE.registerEditorAction(A),A}e.registerMultiEditorAction=y;function k(A){R.INSTANCE.registerEditorAction(A)}e.registerInstantiatedEditorAction=k;function D(A,T,O){R.INSTANCE.registerEditorContribution(A,T,O)}e.registerEditorContribution=D;var M;(function(A){function T(F){return R.INSTANCE.getEditorCommand(F)}A.getEditorCommand=T;function O(){return R.INSTANCE.getEditorActions()}A.getEditorActions=O;function B(){return R.INSTANCE.getEditorContributions()}A.getEditorContributions=B;function W(F){return R.INSTANCE.getEditorContributions().filter(U=>F.indexOf(U.id)>=0)}A.getSomeEditorContributions=W;function j(){return R.INSTANCE.getDiffEditorContributions()}A.getDiffEditorContributions=j})(M=e.EditorExtensionsRegistry||(e.EditorExtensionsRegistry={}));const z={EditorCommonContributions:"editor.contributions"};class R{constructor(){this.d=[],this.e=[],this.f=[],this.g=Object.create(null)}registerEditorContribution(T,O,B){this.d.push({id:T,ctor:O,instantiation:B})}getEditorContributions(){return this.d.slice(0)}getDiffEditorContributions(){return this.e.slice(0)}registerEditorAction(T){T.register(),this.f.push(T)}getEditorActions(){return this.f}registerEditorCommand(T){T.register(),this.g[T.id]=T}getEditorCommand(T){return this.g[T]||null}}R.INSTANCE=new R,n.Registry.add(z.EditorCommonContributions,R.INSTANCE);function P(A){return A.register(),A}e.UndoCommand=P(new s({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:v.MenuId.MenubarEditMenu,group:"1_do",title:C.localize(0,null),order:1},{menuId:v.MenuId.CommandPalette,group:"",title:C.localize(1,null),order:1}]})),P(new l(e.UndoCommand,{id:"default:undo",precondition:void 0})),e.RedoCommand=P(new s({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:v.MenuId.MenubarEditMenu,group:"1_do",title:C.localize(2,null),order:2},{menuId:v.MenuId.CommandPalette,group:"",title:C.localize(3,null),order:1}]})),P(new l(e.RedoCommand,{id:"default:redo",precondition:void 0})),e.SelectAllCommand=P(new s({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:v.MenuId.MenubarSelectionMenu,group:"1_basic",title:C.localize(4,null),order:1},{menuId:v.MenuId.CommandPalette,group:"",title:C.localize(5,null),order:1}]}))}),define(_[175],ee([1,0,562,45,18,52,14,30,450,65,187,188,228,12,4,24,15,109]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CoreEditingCommands=e.CoreNavigationCommands=e.RevealLine_=e.EditorScroll_=e.CoreEditorCommand=void 0;const s=0;class l extends L.EditorCommand{runEditorCommand(z,R,P){const A=R._getViewModel();!A||this.runCoreEditorCommand(A,P||{})}}e.CoreEditorCommand=l;var o;(function(M){const z=function(P){if(!E.isObject(P))return!1;const A=P;return!(!E.isString(A.to)||!E.isUndefined(A.by)&&!E.isString(A.by)||!E.isUndefined(A.value)&&!E.isNumber(A.value)||!E.isUndefined(A.revealCursor)&&!E.isBoolean(A.revealCursor))};M.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:z,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"}}}}]},M.RawDirection={Up:"up",Right:"right",Down:"down",Left:"left"},M.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage",Editor:"editor",Column:"column"};function R(P){let A;switch(P.to){case M.RawDirection.Up:A=1;break;case M.RawDirection.Right:A=2;break;case M.RawDirection.Down:A=3;break;case M.RawDirection.Left:A=4;break;default:return null}let T;switch(P.by){case M.RawUnit.Line:T=1;break;case M.RawUnit.WrappedLine:T=2;break;case M.RawUnit.Page:T=3;break;case M.RawUnit.HalfPage:T=4;break;case M.RawUnit.Editor:T=5;break;case M.RawUnit.Column:T=6;break;default:T=2}const O=Math.floor(P.value||1),B=!!P.revealCursor;return{direction:A,unit:T,value:O,revealCursor:B,select:!!P.select}}M.parse=R})(o=e.EditorScroll_||(e.EditorScroll_={}));var u;(function(M){const z=function(R){if(!E.isObject(R))return!1;const P=R;return!(!E.isNumber(P.lineNumber)&&!E.isString(P.lineNumber)||!E.isUndefined(P.at)&&!E.isString(P.at))};M.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:z,schema:{type:"object",required:["lineNumber"],properties:{lineNumber:{type:["number","string"]},at:{type:"string",enum:["top","center","bottom"]}}}}]},M.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"}})(u=e.RevealLine_||(e.RevealLine_={}));class h{constructor(z){z.addImplementation(1e4,"code-editor",(R,P)=>{const A=R.get(S.ICodeEditorService).getFocusedCodeEditor();return A&&A.hasTextFocus()?this._runEditorCommand(R,A,P):!1}),z.addImplementation(1e3,"generic-dom-input-textarea",(R,P)=>{const A=document.activeElement;return A&&["input","textarea"].indexOf(A.tagName.toLowerCase())>=0?(this.runDOMCommand(),!0):!1}),z.addImplementation(0,"generic-dom",(R,P)=>{const A=R.get(S.ICodeEditorService).getActiveCodeEditor();return A?(A.focus(),this._runEditorCommand(R,A,P)):!1})}_runEditorCommand(z,R,P){const A=this.runEditorCommand(z,R,P);return A||!0}}var w;(function(M){class z extends l{constructor(x){super(x),this.d=x.inSelectionMode}runCoreEditorCommand(x,G){if(!G.position)return;x.model.pushStackElement(),x.setCursorStates(G.source,3,[i.CursorMoveCommands.moveTo(x,x.getPrimaryCursorState(),this.d,G.position,G.viewPosition)])&&G.revealType!==2&&x.revealPrimaryCursor(G.source,!0,!0)}}M.MoveTo=(0,L.registerEditorCommand)(new z({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),M.MoveToSelect=(0,L.registerEditorCommand)(new z({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));class R extends l{runCoreEditorCommand(x,G){x.model.pushStackElement();const te=this.d(x,x.getPrimaryCursorState(),x.getCursorColumnSelectData(),G);te!==null&&(x.setCursorStates(G.source,3,te.viewStates.map(Z=>f.CursorState.fromViewState(Z))),x.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:te.fromLineNumber,fromViewVisualColumn:te.fromVisualColumn,toViewLineNumber:te.toLineNumber,toViewVisualColumn:te.toVisualColumn}),te.reversed?x.revealTopMostCursor(G.source):x.revealBottomMostCursor(G.source))}}M.ColumnSelect=(0,L.registerEditorCommand)(new class extends R{constructor(){super({id:"columnSelect",precondition:void 0})}d(J,x,G,te){if(typeof te.position>"u"||typeof te.viewPosition>"u"||typeof te.mouseColumn>"u")return null;const Z=J.model.validatePosition(te.position),ae=J.coordinatesConverter.validateViewPosition(new n.Position(te.viewPosition.lineNumber,te.viewPosition.column),Z),de=te.doColumnSelect?G.fromViewLineNumber:ae.lineNumber,K=te.doColumnSelect?G.fromViewVisualColumn:te.mouseColumn-1;return v.ColumnSelection.columnSelect(J.cursorConfig,J,de,K,ae.lineNumber,te.mouseColumn-1)}}),M.CursorColumnSelectLeft=(0,L.registerEditorCommand)(new class extends R{constructor(){super({id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:s,kbExpr:r.EditorContextKeys.textInputFocus,primary:3599,linux:{primary:0}}})}d(J,x,G,te){return v.ColumnSelection.columnSelectLeft(J.cursorConfig,J,G)}}),M.CursorColumnSelectRight=(0,L.registerEditorCommand)(new class extends R{constructor(){super({id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:s,kbExpr:r.EditorContextKeys.textInputFocus,primary:3601,linux:{primary:0}}})}d(J,x,G,te){return v.ColumnSelection.columnSelectRight(J.cursorConfig,J,G)}});class P extends R{constructor(x){super(x),this.e=x.isPaged}d(x,G,te,Z){return v.ColumnSelection.columnSelectUp(x.cursorConfig,x,te,this.e)}}M.CursorColumnSelectUp=(0,L.registerEditorCommand)(new P({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:s,kbExpr:r.EditorContextKeys.textInputFocus,primary:3600,linux:{primary:0}}})),M.CursorColumnSelectPageUp=(0,L.registerEditorCommand)(new P({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:s,kbExpr:r.EditorContextKeys.textInputFocus,primary:3595,linux:{primary:0}}}));class A extends R{constructor(x){super(x),this.e=x.isPaged}d(x,G,te,Z){return v.ColumnSelection.columnSelectDown(x.cursorConfig,x,te,this.e)}}M.CursorColumnSelectDown=(0,L.registerEditorCommand)(new A({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:s,kbExpr:r.EditorContextKeys.textInputFocus,primary:3602,linux:{primary:0}}})),M.CursorColumnSelectPageDown=(0,L.registerEditorCommand)(new A({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:s,kbExpr:r.EditorContextKeys.textInputFocus,primary:3596,linux:{primary:0}}}));class T extends l{constructor(){super({id:"cursorMove",precondition:void 0,description:i.CursorMove.description})}runCoreEditorCommand(x,G){const te=i.CursorMove.parse(G);!te||this.d(x,G.source,te)}d(x,G,te){x.model.pushStackElement(),x.setCursorStates(G,3,T.e(x,x.getCursorStates(),te)),x.revealPrimaryCursor(G,!0)}static e(x,G,te){const Z=te.select,ae=te.value;switch(te.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:return i.CursorMoveCommands.simpleMove(x,G,te.direction,Z,ae,te.unit);case 11:case 13:case 12:case 14:return i.CursorMoveCommands.viewportMove(x,G,te.direction,Z,ae);default:return null}}}M.CursorMoveImpl=T,M.CursorMove=(0,L.registerEditorCommand)(new T);class O extends l{constructor(x){super(x),this.d=x.args}runCoreEditorCommand(x,G){let te=this.d;this.d.value===-1&&(te={direction:this.d.direction,unit:this.d.unit,select:this.d.select,value:G.pageSize||x.cursorConfig.pageSize}),x.model.pushStackElement(),x.setCursorStates(G.source,3,i.CursorMoveCommands.simpleMove(x,x.getCursorStates(),te.direction,te.select,te.value,te.unit)),x.revealPrimaryCursor(G.source,!0)}}M.CursorLeft=(0,L.registerEditorCommand)(new O({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:s,kbExpr:r.EditorContextKeys.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),M.CursorLeftSelect=(0,L.registerEditorCommand)(new O({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:s,kbExpr:r.EditorContextKeys.textInputFocus,primary:1039}})),M.CursorRight=(0,L.registerEditorCommand)(new O({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:s,kbExpr:r.EditorContextKeys.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),M.CursorRightSelect=(0,L.registerEditorCommand)(new O({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:s,kbExpr:r.EditorContextKeys.textInputFocus,primary:1041}})),M.CursorUp=(0,L.registerEditorCommand)(new O({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:s,kbExpr:r.EditorContextKeys.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),M.CursorUpSelect=(0,L.registerEditorCommand)(new O({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:s,kbExpr:r.EditorContextKeys.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),M.CursorPageUp=(0,L.registerEditorCommand)(new O({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:s,kbExpr:r.EditorContextKeys.textInputFocus,primary:11}})),M.CursorPageUpSelect=(0,L.registerEditorCommand)(new O({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:s,kbExpr:r.EditorContextKeys.textInputFocus,primary:1035}})),M.CursorDown=(0,L.registerEditorCommand)(new O({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:s,kbExpr:r.EditorContextKeys.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),M.CursorDownSelect=(0,L.registerEditorCommand)(new O({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:s,kbExpr:r.EditorContextKeys.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),M.CursorPageDown=(0,L.registerEditorCommand)(new O({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:s,kbExpr:r.EditorContextKeys.textInputFocus,primary:12}})),M.CursorPageDownSelect=(0,L.registerEditorCommand)(new O({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:s,kbExpr:r.EditorContextKeys.textInputFocus,primary:1036}})),M.CreateCursor=(0,L.registerEditorCommand)(new class extends l{constructor(){super({id:"createCursor",precondition:void 0})}runCoreEditorCommand(J,x){if(!x.position)return;let G;x.wholeLine?G=i.CursorMoveCommands.line(J,J.getPrimaryCursorState(),!1,x.position,x.viewPosition):G=i.CursorMoveCommands.moveTo(J,J.getPrimaryCursorState(),!1,x.position,x.viewPosition);const te=J.getCursorStates();if(te.length>1){const Z=G.modelState?G.modelState.position:null,ae=G.viewState?G.viewState.position:null;for(let de=0,K=te.length;de<K;de++){const Y=te[de];if(!(Z&&!Y.modelState.selection.containsPosition(Z))&&!(ae&&!Y.viewState.selection.containsPosition(ae))){te.splice(de,1),J.model.pushStackElement(),J.setCursorStates(x.source,3,te);return}}}te.push(G),J.model.pushStackElement(),J.setCursorStates(x.source,3,te)}}),M.LastCursorMoveToSelect=(0,L.registerEditorCommand)(new class extends l{constructor(){super({id:"_lastCursorMoveToSelect",precondition:void 0})}runCoreEditorCommand(J,x){if(!x.position)return;const G=J.getLastAddedCursorIndex(),te=J.getCursorStates(),Z=te.slice(0);Z[G]=i.CursorMoveCommands.moveTo(J,te[G],!0,x.position,x.viewPosition),J.model.pushStackElement(),J.setCursorStates(x.source,3,Z)}});class B extends l{constructor(x){super(x),this.d=x.inSelectionMode}runCoreEditorCommand(x,G){x.model.pushStackElement(),x.setCursorStates(G.source,3,i.CursorMoveCommands.moveToBeginningOfLine(x,x.getCursorStates(),this.d)),x.revealPrimaryCursor(G.source,!0)}}M.CursorHome=(0,L.registerEditorCommand)(new B({inSelectionMode:!1,id:"cursorHome",precondition:void 0,kbOpts:{weight:s,kbExpr:r.EditorContextKeys.textInputFocus,primary:14,mac:{primary:14,secondary:[2063]}}})),M.CursorHomeSelect=(0,L.registerEditorCommand)(new B({inSelectionMode:!0,id:"cursorHomeSelect",precondition:void 0,kbOpts:{weight:s,kbExpr:r.EditorContextKeys.textInputFocus,primary:1038,mac:{primary:1038,secondary:[3087]}}}));class W extends l{constructor(x){super(x),this.d=x.inSelectionMode}runCoreEditorCommand(x,G){x.model.pushStackElement(),x.setCursorStates(G.source,3,this.e(x.getCursorStates())),x.revealPrimaryCursor(G.source,!0)}e(x){const G=[];for(let te=0,Z=x.length;te<Z;te++){const ae=x[te],de=ae.modelState.position.lineNumber;G[te]=f.CursorState.fromModelState(ae.modelState.move(this.d,de,1,0))}return G}}M.CursorLineStart=(0,L.registerEditorCommand)(new W({inSelectionMode:!1,id:"cursorLineStart",precondition:void 0,kbOpts:{weight:s,kbExpr:r.EditorContextKeys.textInputFocus,primary:0,mac:{primary:287}}})),M.CursorLineStartSelect=(0,L.registerEditorCommand)(new W({inSelectionMode:!0,id:"cursorLineStartSelect",precondition:void 0,kbOpts:{weight:s,kbExpr:r.EditorContextKeys.textInputFocus,primary:0,mac:{primary:1311}}}));class j extends l{constructor(x){super(x),this.d=x.inSelectionMode}runCoreEditorCommand(x,G){x.model.pushStackElement(),x.setCursorStates(G.source,3,i.CursorMoveCommands.moveToEndOfLine(x,x.getCursorStates(),this.d,G.sticky||!1)),x.revealPrimaryCursor(G.source,!0)}}M.CursorEnd=(0,L.registerEditorCommand)(new j({inSelectionMode:!1,id:"cursorEnd",precondition:void 0,kbOpts:{args:{sticky:!1},weight:s,kbExpr:r.EditorContextKeys.textInputFocus,primary:13,mac:{primary:13,secondary:[2065]}},description:{description:"Go to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:C.localize(0,null),type:"boolean",default:!1}}}}]}})),M.CursorEndSelect=(0,L.registerEditorCommand)(new j({inSelectionMode:!0,id:"cursorEndSelect",precondition:void 0,kbOpts:{args:{sticky:!1},weight:s,kbExpr:r.EditorContextKeys.textInputFocus,primary:1037,mac:{primary:1037,secondary:[3089]}},description:{description:"Select to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:C.localize(1,null),type:"boolean",default:!1}}}}]}}));class F extends l{constructor(x){super(x),this.d=x.inSelectionMode}runCoreEditorCommand(x,G){x.model.pushStackElement(),x.setCursorStates(G.source,3,this.e(x,x.getCursorStates())),x.revealPrimaryCursor(G.source,!0)}e(x,G){const te=[];for(let Z=0,ae=G.length;Z<ae;Z++){const de=G[Z],K=de.modelState.position.lineNumber,Y=x.model.getLineMaxColumn(K);te[Z]=f.CursorState.fromModelState(de.modelState.move(this.d,K,Y,0))}return te}}M.CursorLineEnd=(0,L.registerEditorCommand)(new F({inSelectionMode:!1,id:"cursorLineEnd",precondition:void 0,kbOpts:{weight:s,kbExpr:r.EditorContextKeys.textInputFocus,primary:0,mac:{primary:291}}})),M.CursorLineEndSelect=(0,L.registerEditorCommand)(new F({inSelectionMode:!0,id:"cursorLineEndSelect",precondition:void 0,kbOpts:{weight:s,kbExpr:r.EditorContextKeys.textInputFocus,primary:0,mac:{primary:1315}}}));class U extends l{constructor(x){super(x),this.d=x.inSelectionMode}runCoreEditorCommand(x,G){x.model.pushStackElement(),x.setCursorStates(G.source,3,i.CursorMoveCommands.moveToBeginningOfBuffer(x,x.getCursorStates(),this.d)),x.revealPrimaryCursor(G.source,!0)}}M.CursorTop=(0,L.registerEditorCommand)(new U({inSelectionMode:!1,id:"cursorTop",precondition:void 0,kbOpts:{weight:s,kbExpr:r.EditorContextKeys.textInputFocus,primary:2062,mac:{primary:2064}}})),M.CursorTopSelect=(0,L.registerEditorCommand)(new U({inSelectionMode:!0,id:"cursorTopSelect",precondition:void 0,kbOpts:{weight:s,kbExpr:r.EditorContextKeys.textInputFocus,primary:3086,mac:{primary:3088}}}));class Q extends l{constructor(x){super(x),this.d=x.inSelectionMode}runCoreEditorCommand(x,G){x.model.pushStackElement(),x.setCursorStates(G.source,3,i.CursorMoveCommands.moveToEndOfBuffer(x,x.getCursorStates(),this.d)),x.revealPrimaryCursor(G.source,!0)}}M.CursorBottom=(0,L.registerEditorCommand)(new Q({inSelectionMode:!1,id:"cursorBottom",precondition:void 0,kbOpts:{weight:s,kbExpr:r.EditorContextKeys.textInputFocus,primary:2061,mac:{primary:2066}}})),M.CursorBottomSelect=(0,L.registerEditorCommand)(new Q({inSelectionMode:!0,id:"cursorBottomSelect",precondition:void 0,kbOpts:{weight:s,kbExpr:r.EditorContextKeys.textInputFocus,primary:3085,mac:{primary:3090}}}));class se extends l{constructor(){super({id:"editorScroll",precondition:void 0,description:o.description})}determineScrollMethod(x){const G=[6],te=[1,2,3,4,5,6],Z=[4,2],ae=[1,3];return G.includes(x.unit)&&Z.includes(x.direction)?this._runHorizontalEditorScroll.bind(this):te.includes(x.unit)&&ae.includes(x.direction)?this._runVerticalEditorScroll.bind(this):null}runCoreEditorCommand(x,G){const te=o.parse(G);if(!te)return;const Z=this.determineScrollMethod(te);!Z||Z(x,G.source,te)}_runVerticalEditorScroll(x,G,te){const Z=this.d(x,te);if(te.revealCursor){const ae=x.getCompletelyVisibleViewRangeAtScrollTop(Z);x.setCursorStates(G,3,[i.CursorMoveCommands.findPositionInViewportIfOutside(x,x.getPrimaryCursorState(),ae,te.select)])}x.viewLayout.setScrollPosition({scrollTop:Z},0)}d(x,G){if(G.unit===1){const ae=x.viewLayout.getFutureViewport(),de=x.getCompletelyVisibleViewRangeAtScrollTop(ae.top),K=x.coordinatesConverter.convertViewRangeToModelRange(de);let Y;G.direction===1?Y=Math.max(1,K.startLineNumber-G.value):Y=Math.min(x.model.getLineCount(),K.startLineNumber+G.value);const ne=x.coordinatesConverter.convertModelPositionToViewPosition(new n.Position(Y,1));return x.viewLayout.getVerticalOffsetForLineNumber(ne.lineNumber)}if(G.unit===5){let ae=0;return G.direction===3&&(ae=x.model.getLineCount()-x.cursorConfig.pageSize),x.viewLayout.getVerticalOffsetForLineNumber(ae)}let te;G.unit===3?te=x.cursorConfig.pageSize*G.value:G.unit===4?te=Math.round(x.cursorConfig.pageSize/2)*G.value:te=G.value;const Z=(G.direction===1?-1:1)*te;return x.viewLayout.getCurrentScrollTop()+Z*x.cursorConfig.lineHeight}_runHorizontalEditorScroll(x,G,te){const Z=this._computeDesiredScrollLeft(x,te);x.viewLayout.setScrollPosition({scrollLeft:Z},0)}_computeDesiredScrollLeft(x,G){const te=(G.direction===4?-1:1)*G.value;return x.viewLayout.getCurrentScrollLeft()+te*x.cursorConfig.typicalHalfwidthCharacterWidth}}M.EditorScrollImpl=se,M.EditorScroll=(0,L.registerEditorCommand)(new se),M.ScrollLineUp=(0,L.registerEditorCommand)(new class extends l{constructor(){super({id:"scrollLineUp",precondition:void 0,kbOpts:{weight:s,kbExpr:r.EditorContextKeys.textInputFocus,primary:2064,mac:{primary:267}}})}runCoreEditorCommand(J,x){M.EditorScroll.runCoreEditorCommand(J,{to:o.RawDirection.Up,by:o.RawUnit.WrappedLine,value:1,revealCursor:!1,select:!1,source:x.source})}}),M.ScrollPageUp=(0,L.registerEditorCommand)(new class extends l{constructor(){super({id:"scrollPageUp",precondition:void 0,kbOpts:{weight:s,kbExpr:r.EditorContextKeys.textInputFocus,primary:2059,win:{primary:523},linux:{primary:523}}})}runCoreEditorCommand(J,x){M.EditorScroll.runCoreEditorCommand(J,{to:o.RawDirection.Up,by:o.RawUnit.Page,value:1,revealCursor:!1,select:!1,source:x.source})}}),M.ScrollEditorTop=(0,L.registerEditorCommand)(new class extends l{constructor(){super({id:"scrollEditorTop",precondition:void 0,kbOpts:{weight:s,kbExpr:r.EditorContextKeys.textInputFocus}})}runCoreEditorCommand(J,x){M.EditorScroll.runCoreEditorCommand(J,{to:o.RawDirection.Up,by:o.RawUnit.Editor,value:1,revealCursor:!1,select:!1,source:x.source})}}),M.ScrollLineDown=(0,L.registerEditorCommand)(new class extends l{constructor(){super({id:"scrollLineDown",precondition:void 0,kbOpts:{weight:s,kbExpr:r.EditorContextKeys.textInputFocus,primary:2066,mac:{primary:268}}})}runCoreEditorCommand(J,x){M.EditorScroll.runCoreEditorCommand(J,{to:o.RawDirection.Down,by:o.RawUnit.WrappedLine,value:1,revealCursor:!1,select:!1,source:x.source})}}),M.ScrollPageDown=(0,L.registerEditorCommand)(new class extends l{constructor(){super({id:"scrollPageDown",precondition:void 0,kbOpts:{weight:s,kbExpr:r.EditorContextKeys.textInputFocus,primary:2060,win:{primary:524},linux:{primary:524}}})}runCoreEditorCommand(J,x){M.EditorScroll.runCoreEditorCommand(J,{to:o.RawDirection.Down,by:o.RawUnit.Page,value:1,revealCursor:!1,select:!1,source:x.source})}}),M.ScrollEditorBottom=(0,L.registerEditorCommand)(new class extends l{constructor(){super({id:"scrollEditorBottom",precondition:void 0,kbOpts:{weight:s,kbExpr:r.EditorContextKeys.textInputFocus}})}runCoreEditorCommand(J,x){M.EditorScroll.runCoreEditorCommand(J,{to:o.RawDirection.Down,by:o.RawUnit.Editor,value:1,revealCursor:!1,select:!1,source:x.source})}}),M.ScrollLeft=(0,L.registerEditorCommand)(new class extends l{constructor(){super({id:"scrollLeft",precondition:void 0,kbOpts:{weight:s,kbExpr:r.EditorContextKeys.textInputFocus}})}runCoreEditorCommand(J,x){M.EditorScroll.runCoreEditorCommand(J,{to:o.RawDirection.Left,by:o.RawUnit.Column,value:2,revealCursor:!1,select:!1,source:x.source})}}),M.ScrollRight=(0,L.registerEditorCommand)(new class extends l{constructor(){super({id:"scrollRight",precondition:void 0,kbOpts:{weight:s,kbExpr:r.EditorContextKeys.textInputFocus}})}runCoreEditorCommand(J,x){M.EditorScroll.runCoreEditorCommand(J,{to:o.RawDirection.Right,by:o.RawUnit.Column,value:2,revealCursor:!1,select:!1,source:x.source})}});class he extends l{constructor(x){super(x),this.d=x.inSelectionMode}runCoreEditorCommand(x,G){!G.position||(x.model.pushStackElement(),x.setCursorStates(G.source,3,[i.CursorMoveCommands.word(x,x.getPrimaryCursorState(),this.d,G.position)]),G.revealType!==2&&x.revealPrimaryCursor(G.source,!0,!0))}}M.WordSelect=(0,L.registerEditorCommand)(new he({inSelectionMode:!1,id:"_wordSelect",precondition:void 0})),M.WordSelectDrag=(0,L.registerEditorCommand)(new he({inSelectionMode:!0,id:"_wordSelectDrag",precondition:void 0})),M.LastCursorWordSelect=(0,L.registerEditorCommand)(new class extends l{constructor(){super({id:"lastCursorWordSelect",precondition:void 0})}runCoreEditorCommand(J,x){if(!x.position)return;const G=J.getLastAddedCursorIndex(),te=J.getCursorStates(),Z=te.slice(0),ae=te[G];Z[G]=i.CursorMoveCommands.word(J,ae,ae.modelState.hasSelection(),x.position),J.model.pushStackElement(),J.setCursorStates(x.source,3,Z)}});class ie extends l{constructor(x){super(x),this.d=x.inSelectionMode}runCoreEditorCommand(x,G){!G.position||(x.model.pushStackElement(),x.setCursorStates(G.source,3,[i.CursorMoveCommands.line(x,x.getPrimaryCursorState(),this.d,G.position,G.viewPosition)]),G.revealType!==2&&x.revealPrimaryCursor(G.source,!1,!0))}}M.LineSelect=(0,L.registerEditorCommand)(new ie({inSelectionMode:!1,id:"_lineSelect",precondition:void 0})),M.LineSelectDrag=(0,L.registerEditorCommand)(new ie({inSelectionMode:!0,id:"_lineSelectDrag",precondition:void 0}));class ue extends l{constructor(x){super(x),this.d=x.inSelectionMode}runCoreEditorCommand(x,G){if(!G.position)return;const te=x.getLastAddedCursorIndex(),Z=x.getCursorStates(),ae=Z.slice(0);ae[te]=i.CursorMoveCommands.line(x,Z[te],this.d,G.position,G.viewPosition),x.model.pushStackElement(),x.setCursorStates(G.source,3,ae)}}M.LastCursorLineSelect=(0,L.registerEditorCommand)(new ue({inSelectionMode:!1,id:"lastCursorLineSelect",precondition:void 0})),M.LastCursorLineSelectDrag=(0,L.registerEditorCommand)(new ue({inSelectionMode:!0,id:"lastCursorLineSelectDrag",precondition:void 0})),M.CancelSelection=(0,L.registerEditorCommand)(new class extends l{constructor(){super({id:"cancelSelection",precondition:r.EditorContextKeys.hasNonEmptySelection,kbOpts:{weight:s,kbExpr:r.EditorContextKeys.textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(J,x){J.model.pushStackElement(),J.setCursorStates(x.source,3,[i.CursorMoveCommands.cancelSelection(J,J.getPrimaryCursorState())]),J.revealPrimaryCursor(x.source,!0)}}),M.RemoveSecondaryCursors=(0,L.registerEditorCommand)(new class extends l{constructor(){super({id:"removeSecondaryCursors",precondition:r.EditorContextKeys.hasMultipleSelections,kbOpts:{weight:s+1,kbExpr:r.EditorContextKeys.textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(J,x){J.model.pushStackElement(),J.setCursorStates(x.source,3,[J.getPrimaryCursorState()]),J.revealPrimaryCursor(x.source,!0),(0,I.status)(C.localize(2,null))}}),M.RevealLine=(0,L.registerEditorCommand)(new class extends l{constructor(){super({id:"revealLine",precondition:void 0,description:u.description})}runCoreEditorCommand(J,x){const G=x,te=G.lineNumber||0;let Z=typeof te=="number"?te+1:parseInt(te)+1;Z<1&&(Z=1);const ae=J.model.getLineCount();Z>ae&&(Z=ae);const de=new a.Range(Z,1,Z,J.model.getLineMaxColumn(Z));let K=0;if(G.at)switch(G.at){case u.RawAtArgument.Top:K=3;break;case u.RawAtArgument.Center:K=1;break;case u.RawAtArgument.Bottom:K=4;break;default:break}const Y=J.coordinatesConverter.convertModelRangeToViewRange(de);J.revealRange(x.source,!1,Y,K,0)}}),M.SelectAll=new class extends h{constructor(){super(L.SelectAllCommand)}runDOMCommand(){N.isFirefox&&(document.activeElement.focus(),document.activeElement.select()),document.execCommand("selectAll")}runEditorCommand(J,x,G){const te=x._getViewModel();!te||this.runCoreEditorCommand(te,G)}runCoreEditorCommand(J,x){J.model.pushStackElement(),J.setCursorStates("keyboard",3,[i.CursorMoveCommands.selectAll(J,J.getPrimaryCursorState())])}},M.SetSelection=(0,L.registerEditorCommand)(new class extends l{constructor(){super({id:"setSelection",precondition:void 0})}runCoreEditorCommand(J,x){!x.selection||(J.model.pushStackElement(),J.setCursorStates(x.source,3,[f.CursorState.fromModelSelection(x.selection)]))}})})(w=e.CoreNavigationCommands||(e.CoreNavigationCommands={}));const m=c.ContextKeyExpr.and(r.EditorContextKeys.textInputFocus,r.EditorContextKeys.columnSelection);function p(M,z){d.KeybindingsRegistry.registerKeybindingRule({id:M,primary:z,when:m,weight:s+1})}p(w.CursorColumnSelectLeft.id,1039),p(w.CursorColumnSelectRight.id,1041),p(w.CursorColumnSelectUp.id,1040),p(w.CursorColumnSelectPageUp.id,1035),p(w.CursorColumnSelectDown.id,1042),p(w.CursorColumnSelectPageDown.id,1036);function b(M){return M.register(),M}var y;(function(M){class z extends L.EditorCommand{runEditorCommand(P,A,T){const O=A._getViewModel();!O||this.runCoreEditingCommand(A,O,T||{})}}M.CoreEditingCommand=z,M.LineBreakInsert=(0,L.registerEditorCommand)(new class extends z{constructor(){super({id:"lineBreakInsert",precondition:r.EditorContextKeys.writable,kbOpts:{weight:s,kbExpr:r.EditorContextKeys.textInputFocus,primary:0,mac:{primary:301}}})}runCoreEditingCommand(R,P,A){R.pushUndoStop(),R.executeCommands(this.id,t.TypeOperations.lineBreakInsert(P.cursorConfig,P.model,P.getCursorStates().map(T=>T.modelState.selection)))}}),M.Outdent=(0,L.registerEditorCommand)(new class extends z{constructor(){super({id:"outdent",precondition:r.EditorContextKeys.writable,kbOpts:{weight:s,kbExpr:c.ContextKeyExpr.and(r.EditorContextKeys.editorTextFocus,r.EditorContextKeys.tabDoesNotMoveFocus),primary:1026}})}runCoreEditingCommand(R,P,A){R.pushUndoStop(),R.executeCommands(this.id,t.TypeOperations.outdent(P.cursorConfig,P.model,P.getCursorStates().map(T=>T.modelState.selection))),R.pushUndoStop()}}),M.Tab=(0,L.registerEditorCommand)(new class extends z{constructor(){super({id:"tab",precondition:r.EditorContextKeys.writable,kbOpts:{weight:s,kbExpr:c.ContextKeyExpr.and(r.EditorContextKeys.editorTextFocus,r.EditorContextKeys.tabDoesNotMoveFocus),primary:2}})}runCoreEditingCommand(R,P,A){R.pushUndoStop(),R.executeCommands(this.id,t.TypeOperations.tab(P.cursorConfig,P.model,P.getCursorStates().map(T=>T.modelState.selection))),R.pushUndoStop()}}),M.DeleteLeft=(0,L.registerEditorCommand)(new class extends z{constructor(){super({id:"deleteLeft",precondition:void 0,kbOpts:{weight:s,kbExpr:r.EditorContextKeys.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}runCoreEditingCommand(R,P,A){const[T,O]=g.DeleteOperations.deleteLeft(P.getPrevEditOperationType(),P.cursorConfig,P.model,P.getCursorStates().map(B=>B.modelState.selection),P.getCursorAutoClosedCharacters());T&&R.pushUndoStop(),R.executeCommands(this.id,O),P.setPrevEditOperationType(2)}}),M.DeleteRight=(0,L.registerEditorCommand)(new class extends z{constructor(){super({id:"deleteRight",precondition:void 0,kbOpts:{weight:s,kbExpr:r.EditorContextKeys.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}runCoreEditingCommand(R,P,A){const[T,O]=g.DeleteOperations.deleteRight(P.getPrevEditOperationType(),P.cursorConfig,P.model,P.getCursorStates().map(B=>B.modelState.selection));T&&R.pushUndoStop(),R.executeCommands(this.id,O),P.setPrevEditOperationType(3)}}),M.Undo=new class extends h{constructor(){super(L.UndoCommand)}runDOMCommand(){document.execCommand("undo")}runEditorCommand(R,P,A){if(!(!P.hasModel()||P.getOption(86)===!0))return P.getModel().undo()}},M.Redo=new class extends h{constructor(){super(L.RedoCommand)}runDOMCommand(){document.execCommand("redo")}runEditorCommand(R,P,A){if(!(!P.hasModel()||P.getOption(86)===!0))return P.getModel().redo()}}})(y=e.CoreEditingCommands||(e.CoreEditingCommands={}));class k extends L.Command{constructor(z,R,P){super({id:z,precondition:void 0,description:P}),this.d=R}runCommand(z,R){const P=z.get(S.ICodeEditorService).getFocusedCodeEditor();!P||P.trigger("keyboard",this.d,R)}}function D(M,z){b(new k("default:"+M,M)),b(new k(M,M,z))}D("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),D("replacePreviousChar"),D("compositionType"),D("compositionStart"),D("compositionEnd"),D("paste"),D("cut")}),define(_[730],ee([1,0,219,14]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MarkerDecorationsContribution=void 0;let E=class{constructor(L,S){}dispose(){}};E.ID="editor.contrib.markerDecorations",E=Ne([ge(1,C.IMarkerDecorationsService)],E),e.MarkerDecorationsContribution=E,(0,N.registerEditorContribution)(E.ID,E,0)}),define(_[731],ee([1,0,175,12,16]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewController=void 0;class I{constructor(S,v,f,g){this.a=S,this.b=v,this.c=f,this.d=g}paste(S,v,f,g){this.d.paste(S,v,f,g)}type(S){this.d.type(S)}compositionType(S,v,f,g){this.d.compositionType(S,v,f,g)}compositionStart(){this.d.startComposition()}compositionEnd(){this.d.endComposition()}cut(){this.d.cut()}setSelection(S){C.CoreNavigationCommands.SetSelection.runCoreEditorCommand(this.b,{source:"keyboard",selection:S})}f(S){const v=this.b.getLineMinColumn(S.lineNumber);return S.column<v?new N.Position(S.lineNumber,v):S}g(S){switch(this.a.options.get(74)){case"altKey":return S.altKey;case"ctrlKey":return S.ctrlKey;case"metaKey":return S.metaKey;default:return!1}}h(S){switch(this.a.options.get(74)){case"altKey":return S.ctrlKey||S.metaKey;case"ctrlKey":return S.altKey||S.metaKey;case"metaKey":return S.ctrlKey||S.altKey;default:return!1}}dispatchMouse(S){const v=this.a.options,f=E.isLinux&&v.get(101),g=v.get(19);S.middleButton&&!f?this.k(S.position,S.mouseColumn,S.inSelectionMode):S.startedOnLineNumbers?this.g(S)?S.inSelectionMode?this.s(S.position,S.revealType):this.l(S.position,!0):S.inSelectionMode?this.r(S.position,S.revealType):this.q(S.position,S.revealType):S.mouseDownCount>=4?this.u():S.mouseDownCount===3?this.g(S)?S.inSelectionMode?this.t(S.position,S.revealType):this.s(S.position,S.revealType):S.inSelectionMode?this.r(S.position,S.revealType):this.q(S.position,S.revealType):S.mouseDownCount===2?S.onInjectedText||(this.g(S)?this.p(S.position,S.revealType):S.inSelectionMode?this.o(S.position,S.revealType):this.n(S.position,S.revealType)):this.g(S)?this.h(S)||(S.shiftKey?this.k(S.position,S.mouseColumn,!0):S.inSelectionMode?this.m(S.position,S.revealType):this.l(S.position,!1)):S.inSelectionMode?S.altKey?this.k(S.position,S.mouseColumn,!0):g?this.k(S.position,S.mouseColumn,!0):this.j(S.position,S.revealType):this.moveTo(S.position,S.revealType)}i(S,v){return S=this.f(S),{source:"mouse",position:this.v(S),viewPosition:S,revealType:v}}moveTo(S,v){C.CoreNavigationCommands.MoveTo.runCoreEditorCommand(this.b,this.i(S,v))}j(S,v){C.CoreNavigationCommands.MoveToSelect.runCoreEditorCommand(this.b,this.i(S,v))}k(S,v,f){S=this.f(S),C.CoreNavigationCommands.ColumnSelect.runCoreEditorCommand(this.b,{source:"mouse",position:this.v(S),viewPosition:S,mouseColumn:v,doColumnSelect:f})}l(S,v){S=this.f(S),C.CoreNavigationCommands.CreateCursor.runCoreEditorCommand(this.b,{source:"mouse",position:this.v(S),viewPosition:S,wholeLine:v})}m(S,v){C.CoreNavigationCommands.LastCursorMoveToSelect.runCoreEditorCommand(this.b,this.i(S,v))}n(S,v){C.CoreNavigationCommands.WordSelect.runCoreEditorCommand(this.b,this.i(S,v))}o(S,v){C.CoreNavigationCommands.WordSelectDrag.runCoreEditorCommand(this.b,this.i(S,v))}p(S,v){C.CoreNavigationCommands.LastCursorWordSelect.runCoreEditorCommand(this.b,this.i(S,v))}q(S,v){C.CoreNavigationCommands.LineSelect.runCoreEditorCommand(this.b,this.i(S,v))}r(S,v){C.CoreNavigationCommands.LineSelectDrag.runCoreEditorCommand(this.b,this.i(S,v))}s(S,v){C.CoreNavigationCommands.LastCursorLineSelect.runCoreEditorCommand(this.b,this.i(S,v))}t(S,v){C.CoreNavigationCommands.LastCursorLineSelectDrag.runCoreEditorCommand(this.b,this.i(S,v))}u(){C.CoreNavigationCommands.SelectAll.runCoreEditorCommand(this.b,{source:"mouse"})}v(S){return this.b.coordinatesConverter.convertViewPositionToModelPosition(S)}emitKeyDown(S){this.c.emitKeyDown(S)}emitKeyUp(S){this.c.emitKeyUp(S)}emitContextMenu(S){this.c.emitContextMenu(S)}emitMouseMove(S){this.c.emitMouseMove(S)}emitMouseLeave(S){this.c.emitMouseLeave(S)}emitMouseUp(S){this.c.emitMouseUp(S)}emitMouseDown(S){this.c.emitMouseDown(S)}emitMouseDrag(S){this.c.emitMouseDrag(S)}emitMouseDrop(S){this.c.emitMouseDrop(S)}emitMouseDropCanceled(){this.c.emitMouseDropCanceled()}emitMouseWheel(S){this.c.emitMouseWheel(S)}}e.ViewController=I}),define(_[732],ee([1,0,52,72,58,14,22,24,578,15,393]),function(q,e,C,N,E,I,L,S,v,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SelectionAnchorSet=void 0,e.SelectionAnchorSet=new f.RawContextKey("selectionAnchorSet",!1);let g=class Fi{static get(c){return c.getContribution(Fi.ID)}constructor(c,d){this.d=c,this.b=e.SelectionAnchorSet.bindTo(d),this.c=c.onDidChangeModel(()=>this.b.reset())}setSelectionAnchor(){if(this.d.hasModel()){const c=this.d.getPosition();this.d.changeDecorations(d=>{this.a&&d.removeDecoration(this.a),this.a=d.addDecoration(L.Selection.fromPositions(c,c),{description:"selection-anchor",stickiness:1,hoverMessage:new N.MarkdownString().appendText((0,v.localize)(0,null)),className:"selection-anchor"})}),this.b.set(!!this.a),(0,C.alert)((0,v.localize)(1,null,c.lineNumber,c.column))}}goToSelectionAnchor(){if(this.d.hasModel()&&this.a){const c=this.d.getModel().getDecorationRange(this.a);c&&this.d.setPosition(c.getStartPosition())}}selectFromAnchorToCursor(){if(this.d.hasModel()&&this.a){const c=this.d.getModel().getDecorationRange(this.a);if(c){const d=this.d.getPosition();this.d.setSelection(L.Selection.fromPositions(c.getStartPosition(),d)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.a){const c=this.a;this.d.changeDecorations(d=>{d.removeDecoration(c),this.a=void 0}),this.b.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.c.dispose()}};g.ID="editor.contrib.selectionAnchorController",g=Ne([ge(1,f.IContextKeyService)],g);class i extends I.EditorAction{constructor(){super({id:"editor.action.setSelectionAnchor",label:(0,v.localize)(2,null),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:S.EditorContextKeys.editorTextFocus,primary:(0,E.KeyChord)(2089,2080),weight:100}})}run(c,d){var s;return ye(this,void 0,void 0,function*(){(s=g.get(d))===null||s===void 0||s.setSelectionAnchor()})}}class t extends I.EditorAction{constructor(){super({id:"editor.action.goToSelectionAnchor",label:(0,v.localize)(3,null),alias:"Go to Selection Anchor",precondition:e.SelectionAnchorSet})}run(c,d){var s;return ye(this,void 0,void 0,function*(){(s=g.get(d))===null||s===void 0||s.goToSelectionAnchor()})}}class n extends I.EditorAction{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:(0,v.localize)(4,null),alias:"Select from Anchor to Cursor",precondition:e.SelectionAnchorSet,kbOpts:{kbExpr:S.EditorContextKeys.editorTextFocus,primary:(0,E.KeyChord)(2089,2089),weight:100}})}run(c,d){var s;return ye(this,void 0,void 0,function*(){(s=g.get(d))===null||s===void 0||s.selectFromAnchorToCursor()})}}class a extends I.EditorAction{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:(0,v.localize)(5,null),alias:"Cancel Selection Anchor",precondition:e.SelectionAnchorSet,kbOpts:{kbExpr:S.EditorContextKeys.editorTextFocus,primary:9,weight:100}})}run(c,d){var s;return ye(this,void 0,void 0,function*(){(s=g.get(d))===null||s===void 0||s.cancelSelectionAnchor()})}}(0,I.registerEditorContribution)(g.ID,g,4),(0,I.registerEditorAction)(i),(0,I.registerEditorAction)(t),(0,I.registerEditorAction)(n),(0,I.registerEditorAction)(a)}),define(_[733],ee([1,0,14,24,489,580]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class L extends C.EditorAction{constructor(g,i){super(i),this.d=g}run(g,i){if(!i.hasModel())return;const t=[],n=i.getSelections();for(const a of n)t.push(new E.MoveCaretCommand(a,this.d));i.pushUndoStop(),i.executeCommands(this.id,t),i.pushUndoStop()}}class S extends L{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:I.localize(0,null),alias:"Move Selected Text Left",precondition:N.EditorContextKeys.writable})}}class v extends L{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:I.localize(1,null),alias:"Move Selected Text Right",precondition:N.EditorContextKeys.writable})}}(0,C.registerEditorAction)(S),(0,C.registerEditorAction)(v)}),define(_[734],ee([1,0,14,114,186,4,24,581]),function(q,e,C,N,E,I,L,S){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class v extends C.EditorAction{constructor(){super({id:"editor.action.transposeLetters",label:S.localize(0,null),alias:"Transpose Letters",precondition:L.EditorContextKeys.writable,kbOpts:{kbExpr:L.EditorContextKeys.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(g,i){if(!i.hasModel())return;const t=i.getModel(),n=[],a=i.getSelections();for(const r of a){if(!r.isEmpty())continue;const c=r.startLineNumber,d=r.startColumn,s=t.getLineMaxColumn(c);if(c===1&&(d===1||d===2&&s===2))continue;const l=d===s?r.getPosition():E.MoveOperations.rightPosition(t,r.getPosition().lineNumber,r.getPosition().column),o=E.MoveOperations.leftPosition(t,l),u=E.MoveOperations.leftPosition(t,o),h=t.getValueInRange(I.Range.fromPositions(u,o)),w=t.getValueInRange(I.Range.fromPositions(o,l)),m=I.Range.fromPositions(u,l);n.push(new N.ReplaceCommand(m,w+h))}n.length>0&&(i.pushUndoStop(),i.executeCommands(this.id,n),i.pushUndoStop())}}(0,C.registerEditorAction)(v)}),define(_[735],ee([1,0,45,16,212,14,30,24,582,28,96]),function(q,e,C,N,E,I,L,S,v,f,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PasteAction=e.CopyAction=e.CutAction=void 0;const i="9_cutcopypaste",t=N.isNative||document.queryCommandSupported("cut"),n=N.isNative||document.queryCommandSupported("copy"),a=typeof navigator.clipboard>"u"||C.isFirefox?document.queryCommandSupported("paste"):!0;function r(s){return s.register(),s}e.CutAction=t?r(new I.MultiCommand({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:N.isNative?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:f.MenuId.MenubarEditMenu,group:"2_ccp",title:v.localize(0,null),order:1},{menuId:f.MenuId.EditorContext,group:i,title:v.localize(1,null),when:S.EditorContextKeys.writable,order:1},{menuId:f.MenuId.CommandPalette,group:"",title:v.localize(2,null),order:1},{menuId:f.MenuId.SimpleEditorContext,group:i,title:v.localize(3,null),when:S.EditorContextKeys.writable,order:1}]})):void 0,e.CopyAction=n?r(new I.MultiCommand({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:N.isNative?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:f.MenuId.MenubarEditMenu,group:"2_ccp",title:v.localize(4,null),order:2},{menuId:f.MenuId.EditorContext,group:i,title:v.localize(5,null),order:2},{menuId:f.MenuId.CommandPalette,group:"",title:v.localize(6,null),order:1},{menuId:f.MenuId.SimpleEditorContext,group:i,title:v.localize(7,null),order:2}]})):void 0,f.MenuRegistry.appendMenuItem(f.MenuId.MenubarEditMenu,{submenu:f.MenuId.MenubarCopy,title:{value:v.localize(8,null),original:"Copy As"},group:"2_ccp",order:3}),f.MenuRegistry.appendMenuItem(f.MenuId.EditorContext,{submenu:f.MenuId.EditorContextCopy,title:{value:v.localize(9,null),original:"Copy As"},group:i,order:3}),f.MenuRegistry.appendMenuItem(f.MenuId.EditorContext,{submenu:f.MenuId.EditorContextShare,title:{value:v.localize(10,null),original:"Share"},group:"11_share",order:-1}),e.PasteAction=a?r(new I.MultiCommand({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:N.isNative?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:f.MenuId.MenubarEditMenu,group:"2_ccp",title:v.localize(11,null),order:4},{menuId:f.MenuId.EditorContext,group:i,title:v.localize(12,null),when:S.EditorContextKeys.writable,order:4},{menuId:f.MenuId.CommandPalette,group:"",title:v.localize(13,null),order:1},{menuId:f.MenuId.SimpleEditorContext,group:i,title:v.localize(14,null),when:S.EditorContextKeys.writable,order:4}]})):void 0;class c extends I.EditorAction{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:v.localize(15,null),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:S.EditorContextKeys.textInputFocus,primary:0,weight:100}})}run(l,o){!o.hasModel()||!o.getOption(34)&&o.getSelection().isEmpty()||(E.CopyOptions.forceCopyWithSyntaxHighlighting=!0,o.focus(),document.execCommand("copy"),E.CopyOptions.forceCopyWithSyntaxHighlighting=!1)}}function d(s,l){!s||(s.addImplementation(1e4,"code-editor",(o,u)=>{const h=o.get(L.ICodeEditorService).getFocusedCodeEditor();if(h&&h.hasTextFocus()){const w=h.getOption(34),m=h.getSelection();return m&&m.isEmpty()&&!w||document.execCommand(l),!0}return!1}),s.addImplementation(0,"generic-dom",(o,u)=>(document.execCommand(l),!0)))}d(e.CutAction,"cut"),d(e.CopyAction,"copy"),e.PasteAction&&(e.PasteAction.addImplementation(1e4,"code-editor",(s,l)=>{const o=s.get(L.ICodeEditorService),u=s.get(g.IClipboardService),h=o.getFocusedCodeEditor();return h&&h.hasTextFocus()?!document.execCommand("paste")&&N.isWeb?(()=>ye(void 0,void 0,void 0,function*(){const m=yield u.readText();if(m!==""){const p=E.InMemoryClipboardMetadataManager.INSTANCE.get(m);let b=!1,y=null,k=null;p&&(b=h.getOption(34)&&!!p.isFromEmptySelection,y=typeof p.multicursorText<"u"?p.multicursorText:null,k=p.mode),h.trigger("keyboard","paste",{text:m,pasteOnNewLine:b,multicursorText:y,mode:k})}}))():!0:!1}),e.PasteAction.addImplementation(0,"generic-dom",(s,l)=>(document.execCommand("paste"),!0))),n&&(0,I.registerEditorAction)(c)}),define(_[736],ee([1,0,58,14,4,24,34,263,490,591,28]),function(q,e,C,N,E,I,L,S,v,f,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class i extends N.EditorAction{constructor(d,s){super(s),this.d=d}run(d,s){const l=d.get(L.ILanguageConfigurationService);if(!s.hasModel())return;const o=s.getModel(),u=[],h=o.getOptions(),w=s.getOption(20),m=s.getSelections().map((b,y)=>({selection:b,index:y,ignoreFirstLine:!1}));m.sort((b,y)=>E.Range.compareRangesUsingStarts(b.selection,y.selection));let p=m[0];for(let b=1;b<m.length;b++){const y=m[b];p.selection.endLineNumber===y.selection.startLineNumber&&(p.index<y.index?y.ignoreFirstLine=!0:(p.ignoreFirstLine=!0,p=y))}for(const b of m)u.push(new v.LineCommentCommand(l,b.selection,h.tabSize,this.d,w.insertSpace,w.ignoreEmptyLines,b.ignoreFirstLine));s.pushUndoStop(),s.executeCommands(this.id,u),s.pushUndoStop()}}class t extends i{constructor(){super(0,{id:"editor.action.commentLine",label:f.localize(0,null),alias:"Toggle Line Comment",precondition:I.EditorContextKeys.writable,kbOpts:{kbExpr:I.EditorContextKeys.editorTextFocus,primary:2133,weight:100},menuOpts:{menuId:g.MenuId.MenubarEditMenu,group:"5_insert",title:f.localize(1,null),order:1}})}}class n extends i{constructor(){super(1,{id:"editor.action.addCommentLine",label:f.localize(2,null),alias:"Add Line Comment",precondition:I.EditorContextKeys.writable,kbOpts:{kbExpr:I.EditorContextKeys.editorTextFocus,primary:(0,C.KeyChord)(2089,2081),weight:100}})}}class a extends i{constructor(){super(2,{id:"editor.action.removeCommentLine",label:f.localize(3,null),alias:"Remove Line Comment",precondition:I.EditorContextKeys.writable,kbOpts:{kbExpr:I.EditorContextKeys.editorTextFocus,primary:(0,C.KeyChord)(2089,2099),weight:100}})}}class r extends N.EditorAction{constructor(){super({id:"editor.action.blockComment",label:f.localize(4,null),alias:"Toggle Block Comment",precondition:I.EditorContextKeys.writable,kbOpts:{kbExpr:I.EditorContextKeys.editorTextFocus,primary:1567,linux:{primary:3103},weight:100},menuOpts:{menuId:g.MenuId.MenubarEditMenu,group:"5_insert",title:f.localize(5,null),order:2}})}run(d,s){const l=d.get(L.ILanguageConfigurationService);if(!s.hasModel())return;const o=s.getOption(20),u=[],h=s.getSelections();for(const w of h)u.push(new S.BlockCommentCommand(w,o.insertSpace,l));s.pushUndoStop(),s.executeCommands(this.id,u),s.pushUndoStop()}}(0,N.registerEditorAction)(t),(0,N.registerEditorAction)(n),(0,N.registerEditorAction)(a),(0,N.registerEditorAction)(r)}),define(_[737],ee([1,0,7,140,41,2,16,14,24,592,28,15,57,38,27]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContextMenuController=void 0;let r=class Bi{static get(s){return s.getContribution(Bi.ID)}constructor(s,l,o,u,h,w,m){this.d=l,this.f=o,this.g=u,this.h=h,this.i=w,this.j=m,this.a=new I.DisposableStore,this.b=0,this.c=s,this.a.add(this.c.onContextMenu(p=>this.k(p))),this.a.add(this.c.onMouseWheel(p=>{if(this.b>0){const b=this.f.getContextViewElement(),y=p.srcElement;y.shadowRoot&&C.getShadowRoot(b)===y.shadowRoot||this.f.hideContextView()}})),this.a.add(this.c.onKeyDown(p=>{!this.c.getOption(21)||p.keyCode===58&&(p.preventDefault(),p.stopPropagation(),this.showContextMenu())}))}k(s){if(!this.c.hasModel())return;if(!this.c.getOption(21)){this.c.focus(),s.target.position&&!this.c.getSelection().containsPosition(s.target.position)&&this.c.setPosition(s.target.position);return}if(s.target.type===12||s.target.type===6&&s.target.detail.injectedText)return;if(s.event.preventDefault(),s.event.stopPropagation(),s.target.type===11)return this.n({x:s.event.posx-1,width:2,y:s.event.posy-1,height:2});if(s.target.type!==6&&s.target.type!==7&&s.target.type!==1)return;if(this.c.focus(),s.target.position){let o=!1;for(const u of this.c.getSelections())if(u.containsPosition(s.target.position)){o=!0;break}o||this.c.setPosition(s.target.position)}let l=null;s.target.type!==1&&(l={x:s.event.posx-1,width:2,y:s.event.posy-1,height:2}),this.showContextMenu(l)}showContextMenu(s){if(!this.c.getOption(21)||!this.c.hasModel())return;const l=this.l(this.c.getModel(),this.c.isSimpleWidget?g.MenuId.SimpleEditorContext:g.MenuId.EditorContext);l.length>0&&this.m(l,s)}l(s,l){const o=[],u=this.i.createMenu(l,this.g),h=u.getActions({arg:s.uri});u.dispose();for(const w of h){const[,m]=w;let p=0;for(const b of m)if(b instanceof g.SubmenuItemAction){const y=this.l(s,b.item.submenu);y.length>0&&(o.push(new E.SubmenuAction(b.id,b.label,y)),p++)}else o.push(b),p++;p&&o.push(new E.Separator)}return o.length&&o.pop(),o}m(s,l=null){if(!this.c.hasModel())return;const o=this.c.getOption(57);if(this.c.updateOptions({hover:{enabled:!1}}),!l){this.c.revealPosition(this.c.getPosition(),1),this.c.render();const h=this.c.getScrolledVisiblePosition(this.c.getPosition()),w=C.getDomNodePagePosition(this.c.getDomNode()),m=w.left+h.left,p=w.top+h.top+h.height;l={x:m,y:p}}const u=this.c.getOption(121)&&!L.isIOS;this.b++,this.d.showContextMenu({domForShadowRoot:u?this.c.getDomNode():void 0,getAnchor:()=>l,getActions:()=>s,getActionViewItem:h=>{const w=this.o(h);if(w)return new N.ActionViewItem(h,h,{label:!0,keybinding:w.getLabel(),isMenu:!0});const m=h;return typeof m.getActionViewItem=="function"?m.getActionViewItem():new N.ActionViewItem(h,h,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:h=>this.o(h),onHide:h=>{this.b--,this.c.updateOptions({hover:o})}})}n(s){if(!this.c.hasModel())return;const l=this.c.getOption(69);let o=0;const u=b=>({id:`menu-action-${++o}`,label:b.label,tooltip:"",class:void 0,enabled:typeof b.enabled>"u"?!0:b.enabled,checked:b.checked,run:b.run}),h=(b,y)=>new E.SubmenuAction(`menu-action-${++o}`,b,y,void 0),w=(b,y,k,D,M)=>{if(!y)return u({label:b,enabled:y,run:()=>{}});const z=P=>()=>{this.j.updateValue(k,P)},R=[];for(const P of M)R.push(u({label:P.label,checked:D===P.value,run:z(P.value)}));return h(b,R)},m=[];m.push(u({label:f.localize(0,null),checked:l.enabled,run:()=>{this.j.updateValue("editor.minimap.enabled",!l.enabled)}})),m.push(new E.Separator),m.push(u({label:f.localize(1,null),enabled:l.enabled,checked:l.renderCharacters,run:()=>{this.j.updateValue("editor.minimap.renderCharacters",!l.renderCharacters)}})),m.push(w(f.localize(2,null),l.enabled,"editor.minimap.size",l.size,[{label:f.localize(3,null),value:"proportional"},{label:f.localize(4,null),value:"fill"},{label:f.localize(5,null),value:"fit"}])),m.push(w(f.localize(6,null),l.enabled,"editor.minimap.showSlider",l.showSlider,[{label:f.localize(7,null),value:"mouseover"},{label:f.localize(8,null),value:"always"}]));const p=this.c.getOption(121)&&!L.isIOS;this.b++,this.d.showContextMenu({domForShadowRoot:p?this.c.getDomNode():void 0,getAnchor:()=>s,getActions:()=>m,onHide:b=>{this.b--,this.c.focus()}})}o(s){return this.h.lookupKeybinding(s.id)}dispose(){this.b>0&&this.f.hideContextView(),this.a.dispose()}};r.ID="editor.contrib.contextmenu",r=Ne([ge(1,t.IContextMenuService),ge(2,t.IContextViewService),ge(3,i.IContextKeyService),ge(4,n.IKeybindingService),ge(5,g.IMenuService),ge(6,a.IConfigurationService)],r),e.ContextMenuController=r;class c extends S.EditorAction{constructor(){super({id:"editor.action.showContextMenu",label:f.localize(9,null),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:v.EditorContextKeys.textInputFocus,primary:1092,weight:100}})}run(s,l){var o;(o=r.get(l))===null||o===void 0||o.showContextMenu()}}(0,S.registerEditorContribution)(r.ID,r,2),(0,S.registerEditorAction)(c)}),define(_[738],ee([1,0,2,14,24,595]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CursorRedo=e.CursorUndo=e.CursorUndoRedoController=void 0;class L{constructor(t){this.selections=t}equals(t){const n=this.selections.length,a=t.selections.length;if(n!==a)return!1;for(let r=0;r<n;r++)if(!this.selections[r].equalsSelection(t.selections[r]))return!1;return!0}}class S{constructor(t,n,a){this.cursorState=t,this.scrollTop=n,this.scrollLeft=a}}class v extends C.Disposable{static get(t){return t.getContribution(v.ID)}constructor(t){super(),this.a=t,this.b=!1,this.c=[],this.g=[],this.q(t.onDidChangeModel(n=>{this.c=[],this.g=[]})),this.q(t.onDidChangeModelContent(n=>{this.c=[],this.g=[]})),this.q(t.onDidChangeCursorSelection(n=>{if(this.b||!n.oldSelections||n.oldModelVersionId!==n.modelVersionId)return;const a=new L(n.oldSelections);this.c.length>0&&this.c[this.c.length-1].cursorState.equals(a)||(this.c.push(new S(a,t.getScrollTop(),t.getScrollLeft())),this.g=[],this.c.length>50&&this.c.shift())}))}cursorUndo(){!this.a.hasModel()||this.c.length===0||(this.g.push(new S(new L(this.a.getSelections()),this.a.getScrollTop(),this.a.getScrollLeft())),this.h(this.c.pop()))}cursorRedo(){!this.a.hasModel()||this.g.length===0||(this.c.push(new S(new L(this.a.getSelections()),this.a.getScrollTop(),this.a.getScrollLeft())),this.h(this.g.pop()))}h(t){this.b=!0,this.a.setSelections(t.cursorState.selections),this.a.setScrollPosition({scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),this.b=!1}}v.ID="editor.contrib.cursorUndoRedoController",e.CursorUndoRedoController=v;class f extends N.EditorAction{constructor(){super({id:"cursorUndo",label:I.localize(0,null),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:E.EditorContextKeys.textInputFocus,primary:2099,weight:100}})}run(t,n,a){var r;(r=v.get(n))===null||r===void 0||r.cursorUndo()}}e.CursorUndo=f;class g extends N.EditorAction{constructor(){super({id:"cursorRedo",label:I.localize(1,null),alias:"Cursor Redo",precondition:void 0})}run(t,n,a){var r;(r=v.get(n))===null||r===void 0||r.cursorRedo()}}e.CursorRedo=g,(0,N.registerEditorContribution)(v.ID,v,0),(0,N.registerEditorAction)(f),(0,N.registerEditorAction)(g)}),define(_[739],ee([1,0,14,15,20,59,8,49,597]),function(q,e,C,N,E,I,L,S,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorKeybindingCancellationTokenSource=void 0;const f=(0,L.createDecorator)("IEditorCancelService"),g=new N.RawContextKey("cancellableOperation",!1,(0,v.localize)(0,null));(0,S.registerSingleton)(f,class{constructor(){this.a=new WeakMap}add(t,n){let a=this.a.get(t);a||(a=t.invokeWithinContext(c=>{const d=g.bindTo(c.get(N.IContextKeyService)),s=new I.LinkedList;return{key:d,tokens:s}}),this.a.set(t,a));let r;return a.key.set(!0),r=a.tokens.push(n),()=>{r&&(r(),a.key.set(!a.tokens.isEmpty()),r=void 0)}}cancel(t){const n=this.a.get(t);if(!n)return;const a=n.tokens.pop();a&&(a.cancel(),n.key.set(!n.tokens.isEmpty()))}},1);class i extends E.CancellationTokenSource{constructor(n,a){super(a),this.editor=n,this.c=n.invokeWithinContext(r=>r.get(f).add(n,this))}dispose(){this.c(),super.dispose()}}e.EditorKeybindingCancellationTokenSource=i,(0,C.registerEditorCommand)(new class extends C.EditorCommand{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:g})}runEditorCommand(t,n){t.get(f).cancel(n)}})}),define(_[97],ee([1,0,9,4,20,2,739]),function(q,e,C,N,E,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextModelCancellationTokenSource=e.EditorStateCancellationTokenSource=e.EditorState=void 0;class S{constructor(i,t){if(this.a=t,(this.a&1)!==0){const n=i.getModel();this.d=n?C.format("{0}#{1}",n.uri.toString(),n.getVersionId()):null}else this.d=null;(this.a&4)!==0?this.b=i.getPosition():this.b=null,(this.a&2)!==0?this.c=i.getSelection():this.c=null,(this.a&8)!==0?(this.f=i.getScrollLeft(),this.g=i.getScrollTop()):(this.f=-1,this.g=-1)}h(i){if(!(i instanceof S))return!1;const t=i;return!(this.d!==t.d||this.f!==t.f||this.g!==t.g||!this.b&&t.b||this.b&&!t.b||this.b&&t.b&&!this.b.equals(t.b)||!this.c&&t.c||this.c&&!t.c||this.c&&t.c&&!this.c.equalsRange(t.c))}validate(i){return this.h(new S(i,this.a))}}e.EditorState=S;class v extends L.EditorKeybindingCancellationTokenSource{constructor(i,t,n,a){super(i,a),this.d=new I.DisposableStore,t&4&&this.d.add(i.onDidChangeCursorPosition(r=>{(!n||!N.Range.containsPosition(n,r.position))&&this.cancel()})),t&2&&this.d.add(i.onDidChangeCursorSelection(r=>{(!n||!N.Range.containsRange(n,r.selection))&&this.cancel()})),t&8&&this.d.add(i.onDidScrollChange(r=>this.cancel())),t&1&&(this.d.add(i.onDidChangeModel(r=>this.cancel())),this.d.add(i.onDidChangeModelContent(r=>this.cancel())))}dispose(){this.d.dispose(),super.dispose()}}e.EditorStateCancellationTokenSource=v;class f extends E.CancellationTokenSource{constructor(i,t){super(t),this.c=i.onDidChangeContent(()=>this.cancel())}dispose(){this.c.dispose(),super.dispose()}}e.TextModelCancellationTokenSource=f}),define(_[176],ee([1,0,17,20,13,2,21,143,4,22,19,53,97,583,25,42,69,80,118]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.applyCodeAction=e.ApplyCodeActionReason=e.getCodeActions=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 l extends I.Disposable{static c(D,M){return D.isPreferred&&!M.isPreferred?-1:!D.isPreferred&&M.isPreferred?1:0}static g({action:D},{action:M}){return(0,C.isNonEmptyArray)(D.diagnostics)?(0,C.isNonEmptyArray)(M.diagnostics)?l.c(D,M):-1:(0,C.isNonEmptyArray)(M.diagnostics)?1:l.c(D,M)}constructor(D,M,z){super(),this.documentation=M,this.q(z),this.allActions=[...D].sort(l.g),this.validActions=this.allActions.filter(({action:R})=>!R.disabled)}get hasAutoFix(){return this.validActions.some(({action:D})=>!!D.kind&&s.CodeActionKind.QuickFix.contains(new s.CodeActionKind(D.kind))&&!!D.isPreferred)}}const o={actions:[],documentation:void 0};function u(k,D,M,z,R,P){var A;return ye(this,void 0,void 0,function*(){const T=z.filter||{},O={only:(A=T.include)===null||A===void 0?void 0:A.value,trigger:z.type},B=new t.TextModelCancellationTokenSource(D,P),W=h(k,D,T),j=new I.DisposableStore,F=W.map(Q=>ye(this,void 0,void 0,function*(){try{R.report(Q);const se=yield Q.provideCodeActions(D,M,O,B.token);if(se&&j.add(se),B.token.isCancellationRequested)return o;const he=(se?.actions||[]).filter(ue=>ue&&(0,s.filtersAction)(T,ue)),ie=m(Q,he,T.include);return{actions:he.map(ue=>new s.CodeActionItem(ue,Q)),documentation:ie}}catch(se){if((0,E.isCancellationError)(se))throw se;return(0,E.onUnexpectedExternalError)(se),o}})),U=k.onDidChange(()=>{const Q=k.all(D);(0,C.equals)(Q,W)||B.cancel()});try{const Q=yield Promise.all(F),se=Q.map(ie=>ie.actions).flat(),he=[...(0,C.coalesce)(Q.map(ie=>ie.documentation)),...w(k,D,z,se)];return new l(se,he,j)}finally{U.dispose(),B.dispose()}})}e.getCodeActions=u;function h(k,D,M){return k.all(D).filter(z=>z.providedCodeActionKinds?z.providedCodeActionKinds.some(R=>(0,s.mayIncludeActionsOfKind)(M,new s.CodeActionKind(R))):!0)}function*w(k,D,M,z){var R,P,A;if(D&&z.length)for(const T of k.all(D))T._getAdditionalMenuItems&&(yield*(R=T._getAdditionalMenuItems)===null||R===void 0?void 0:R.call(T,{trigger:M.type,only:(A=(P=M.filter)===null||P===void 0?void 0:P.include)===null||A===void 0?void 0:A.value},z.map(O=>O.action)))}function m(k,D,M){if(!k.documentation)return;const z=k.documentation.map(R=>({kind:new s.CodeActionKind(R.kind),command:R.command}));if(M){let R;for(const P of z)P.kind.contains(M)&&(R?R.kind.contains(P.kind)&&(R=P):R=P);if(R)return R?.command}for(const R of D)if(!!R.kind){for(const P of z)if(P.kind.contains(new s.CodeActionKind(R.kind)))return P.command}}var p;(function(k){k.OnSave="onSave",k.FromProblemsView="fromProblemsView",k.FromCodeActions="fromCodeActions"})(p=e.ApplyCodeActionReason||(e.ApplyCodeActionReason={}));function b(k,D,M,z,R=N.CancellationToken.None){var P;return ye(this,void 0,void 0,function*(){const A=k.get(S.IBulkEditService),T=k.get(a.ICommandService),O=k.get(d.ITelemetryService),B=k.get(r.INotificationService);if(O.publicLog2("codeAction.applyCodeAction",{codeActionTitle:D.action.title,codeActionKind:D.action.kind,codeActionIsPreferred:!!D.action.isPreferred,reason:M}),yield D.resolve(R),!R.isCancellationRequested&&!(!((P=D.action.edit)===null||P===void 0)&&P.edits.length&&!(yield A.apply(D.action.edit,{editor:z?.editor,label:D.action.title,quotableLabel:D.action.title,code:"undoredo.codeAction",respectAutoSaveConfig:M!==p.OnSave,showPreview:z?.preview})).isApplied)&&D.action.command)try{yield T.executeCommand(D.action.command.id,...D.action.command.arguments||[])}catch(W){const j=y(W);B.error(typeof j=="string"?j:n.localize(0,null))}})}e.applyCodeAction=b;function y(k){return typeof k=="string"?k:k instanceof Error&&typeof k.message=="string"?k.message:void 0}a.CommandsRegistry.registerCommand("_executeCodeActionProvider",function(k,D,M,z,R){return ye(this,void 0,void 0,function*(){if(!(D instanceof L.URI))throw(0,E.illegalArgument)();const{codeActionProvider:P}=k.get(g.ILanguageFeaturesService),A=k.get(i.IModelService).getModel(D);if(!A)throw(0,E.illegalArgument)();const T=f.Selection.isISelection(M)?f.Selection.liftSelection(M):v.Range.isIRange(M)?A.validateRange(M):void 0;if(!T)throw(0,E.illegalArgument)();const O=typeof z=="string"?new s.CodeActionKind(z):void 0,B=yield u(P,A,T,{type:1,triggerAction:s.CodeActionTriggerSource.Default,filter:{includeSourceActions:!0,include:O}},c.Progress.None,N.CancellationToken.None),W=[],j=Math.min(B.validActions.length,typeof R=="number"?R:0);for(let F=0;F<j;F++)W.push(B.validActions[F].resolve(N.CancellationToken.None));try{return yield Promise.all(W),B.validActions.map(F=>F.action)}finally{setTimeout(()=>B.dispose(),100)}})})}),define(_[740],ee([1,0,100,176,118,38]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CodeActionKeybindingResolver=void 0;let L=class zi{constructor(v){this.b=v}getResolver(){const v=new C.Lazy(()=>this.b.getKeybindings().filter(f=>zi.a.indexOf(f.command)>=0).filter(f=>f.resolvedKeybinding).map(f=>{let g=f.commandArgs;return f.command===N.organizeImportsCommandId?g={kind:E.CodeActionKind.SourceOrganizeImports.value}:f.command===N.fixAllCommandId&&(g={kind:E.CodeActionKind.SourceFixAll.value}),Object.assign({resolvedKeybinding:f.resolvedKeybinding},E.CodeActionCommandArgs.fromUser(g,{kind:E.CodeActionKind.None,apply:"never"}))}));return f=>{if(f.kind){const g=this.c(f,v.value);return g?.resolvedKeybinding}}}c(v,f){if(!v.kind)return;const g=new E.CodeActionKind(v.kind);return f.filter(i=>i.kind.contains(g)).filter(i=>i.preferred?v.isPreferred:!0).reduceRight((i,t)=>i?i.kind.contains(t.kind)?t:i:t,void 0)}};L.a=[N.refactorCommandId,N.codeActionCommandId,N.sourceActionCommandId,N.organizeImportsCommandId,N.fixAllCommandId],L=Ne([ge(0,I.IKeybindingService)],L),e.CodeActionKeybindingResolver=L});var Bt=this&&this.__classPrivateFieldGet||function(q,e,C,N){if(C==="a"&&!N)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?q!==e||!N:!e.has(q))throw new TypeError("Cannot read private member from an object whose class did not declare it");return C==="m"?N:C==="a"?N.call(q):N?N.value:e.get(q)},ri=this&&this.__classPrivateFieldSet||function(q,e,C,N,E){if(N==="m")throw new TypeError("Private method is not writable");if(N==="a"&&!E)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?q!==e||!E:!e.has(q))throw new TypeError("Cannot write private member to an object whose class did not declare it");return N==="a"?E.call(q,C):E?E.value=C:e.set(q,C),C};define(_[741],ee([1,0,11,13,6,2,44,15,69,176,118]),function(q,e,C,N,E,I,L,S,v,f,g){"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 S.RawContextKey("supportedCodeAction","");class t extends I.Disposable{constructor(d,s,l,o=250){super(),this.b=d,this.c=s,this.g=l,this.h=o,this.a=this.q(new C.TimeoutTimer),this.q(this.c.onMarkerChanged(u=>this.i(u))),this.q(this.b.onDidChangeCursorPosition(()=>this.j()))}trigger(d){const s=this.k(d);return this.l(d,s)}i(d){const s=this.b.getModel();!s||d.some(l=>(0,L.isEqual)(l,s.uri))&&this.a.cancelAndSet(()=>{this.trigger({type:2,triggerAction:g.CodeActionTriggerSource.Default})},this.h)}j(){this.a.cancelAndSet(()=>{this.trigger({type:2,triggerAction:g.CodeActionTriggerSource.Default})},this.h)}k(d){if(!this.b.hasModel())return;const s=this.b.getModel(),l=this.b.getSelection();if(l.isEmpty()&&d.type===2){const{lineNumber:o,column:u}=l.getPosition(),h=s.getLineContent(o);if(h.length===0)return;if(u===1){if(/\s/.test(h[0]))return}else if(u===s.getLineMaxColumn(o)){if(/\s/.test(h[h.length-1]))return}else if(/\s/.test(h[u-2])&&/\s/.test(h[u-1]))return}return l}l(d,s){const l=this.b.getModel();if(!s||!l){this.g(void 0);return}const o={trigger:d,selection:s,position:s.getStartPosition()};return this.g(o),o}}var n;(function(c){c.Empty={type:0};class d{constructor(l,o,u,h){this.trigger=l,this.rangeOrSelection=o,this.position=u,this.a=h,this.type=1,this.actions=h.catch(w=>{if((0,N.isCancellationError)(w))return a;throw w})}cancel(){this.a.cancel()}}c.Triggered=d})(n=e.CodeActionsState||(e.CodeActionsState={}));const a={allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1};class r extends I.Disposable{constructor(d,s,l,o,u){super(),this.h=d,this.i=s,this.j=l,this.k=u,this.a=this.q(new I.MutableDisposable),this.b=n.Empty,this.g=this.q(new E.Emitter),this.onDidChangeState=this.g.event,i.set(this,!1),this.c=e.SUPPORTED_CODE_ACTIONS.bindTo(o),this.q(this.h.onDidChangeModel(()=>this.l())),this.q(this.h.onDidChangeModelLanguage(()=>this.l())),this.q(this.i.onDidChange(()=>this.l())),this.l()}dispose(){Bt(this,i,"f")||(ri(this,i,!0,"f"),super.dispose(),this.m(n.Empty,!0))}l(){if(Bt(this,i,"f"))return;this.a.value=void 0,this.m(n.Empty);const d=this.h.getModel();if(d&&this.i.has(d)&&!this.h.getOption(86)){const s=[];for(const l of this.i.all(d))Array.isArray(l.providedCodeActionKinds)&&s.push(...l.providedCodeActionKinds);this.c.set(s.join(" ")),this.a.value=new t(this.h,this.j,l=>{var o;if(!l){this.m(n.Empty);return}const u=(0,C.createCancelablePromise)(h=>(0,f.getCodeActions)(this.i,d,l.selection,l.trigger,v.Progress.None,h));l.trigger.type===1&&((o=this.k)===null||o===void 0||o.showWhile(u,250)),this.m(new n.Triggered(l.trigger,l.selection,l.position,u))},void 0),this.a.value.trigger({type:2,triggerAction:g.CodeActionTriggerSource.Default})}else this.c.reset()}trigger(d){var s;(s=this.a.value)===null||s===void 0||s.trigger(d)}m(d,s){d!==this.b&&(this.b.type===1&&this.b.cancel(),this.b=d,!s&&!Bt(this,i,"f")&&this.g.fire(d))}}e.CodeActionModel=r,i=new WeakMap}),define(_[742],ee([1,0,127,7,11,184,2,101,48,183,306,143,4,22,19,97,94,594,96,27,69]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s,l,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CopyPasteController=void 0;const u="application/vnd.code.copyMetadata";let h=class extends L.Disposable{constructor(p,b,y,k,D,M){super(),this.c=b,this.g=y,this.h=k,this.i=D,this.j=M,this.a=p;const z=p.getContainerDomNode();this.q((0,N.addDisposableListener)(z,"copy",R=>this.l(R))),this.q((0,N.addDisposableListener)(z,"cut",R=>this.l(R))),this.q((0,N.addDisposableListener)(z,"paste",R=>this.n(R),!0))}k(p){return this.h.getValue("editor.experimental.pasteActions.enabled",{resource:p.uri})?!0:p.uri.scheme===v.Schemas.vscodeNotebookCell}l(p){var b;if(!p.clipboardData||!this.a.hasTextFocus())return;const y=this.a.getModel(),k=this.a.getSelections();if(!y||!k?.length||!this.k(y))return;const D=[...k],M=k[0],z=M.isEmpty();if(z){if(!this.a.getOption(34))return;D[0]=new t.Range(M.startLineNumber,0,M.startLineNumber,y.getLineLength(M.startLineNumber))}const R=this.i.documentPasteEditProvider.ordered(y).filter(O=>!!O.prepareDocumentPaste);if(!R.length){this.m(p.clipboardData,{wasFromEmptySelection:z});return}const P=(0,g.toVSDataTransfer)(p.clipboardData),A=(0,f.generateUuid)();this.m(p.clipboardData,{id:A,wasFromEmptySelection:z});const T=(0,E.createCancelablePromise)(O=>ye(this,void 0,void 0,function*(){const B=yield Promise.all(R.map(W=>W.prepareDocumentPaste(y,D,P,O)));for(const W of B)W?.forEach((j,F)=>{P.replace(F,j)});return P}));(b=this.b)===null||b===void 0||b.dataTransferPromise.cancel(),this.b={handle:A,dataTransferPromise:T}}m(p,b){p.setData(u,JSON.stringify(b))}n(p){var b,y,k,D;return ye(this,void 0,void 0,function*(){if(!p.clipboardData||!this.a.hasTextFocus())return;const M=this.a.getSelections();if(!M?.length||!this.a.hasModel())return;const z=this.a.getModel();if(!this.k(z))return;let R;const P=(b=p.clipboardData)===null||b===void 0?void 0:b.getData(u);P&&typeof P=="string"&&(R=JSON.parse(P));const A=this.i.documentPasteEditProvider.ordered(z);if(!A.length)return;p.preventDefault(),p.stopImmediatePropagation();const T=new r.EditorStateCancellationTokenSource(this.a,3);try{const O=(0,g.toVSDataTransfer)(p.clipboardData);if(R?.id&&((y=this.b)===null||y===void 0?void 0:y.handle)===R.id){const W=yield this.b.dataTransferPromise;if(T.token.isCancellationRequested)return;W.forEach((j,F)=>{O.replace(F,j)})}if(!O.has(S.Mimes.uriList)){const W=yield this.g.readResources();if(T.token.isCancellationRequested)return;W.length&&O.append(S.Mimes.uriList,(0,I.createStringDataTransferItem)(I.UriList.create(W)))}O.delete(u);const B=yield this.j.withProgress({location:15,delay:750,title:(0,d.localize)(0,null),cancellable:!0},()=>this.p(A,O,z,M,T.token),()=>T.cancel());if(T.token.isCancellationRequested)return;if(B){const W=typeof B.insertText=="string"?c.SnippetParser.escape(B.insertText):B.insertText.snippet,j={edits:[new i.ResourceTextEdit(z.uri,{range:n.Selection.liftSelection(this.a.getSelection()),text:W,insertAsSnippet:!0}),...(D=(k=B.additionalEdit)===null||k===void 0?void 0:k.edits)!==null&&D!==void 0?D:[]]};yield this.c.apply(j,{editor:this.a});return}yield this.r(O,R,T.token)}finally{T.dispose()}})}p(p,b,y,k,D){return(0,E.raceCancellation)((()=>ye(this,void 0,void 0,function*(){for(const M of p){if(D.isCancellationRequested)return;if(!w(M,b))continue;const z=yield M.provideDocumentPasteEdits(y,k,b,D);if(z)return z}}))(),D)}r(p,b,y){var k;return ye(this,void 0,void 0,function*(){const D=(k=p.get(S.Mimes.text))!==null&&k!==void 0?k:p.get("text");if(!D)return;const M=yield D.asString();y.isCancellationRequested||this.a.trigger("keyboard","paste",{text:M,pasteOnNewLine:b?.wasFromEmptySelection,multicursorText:null})})}};h.ID="editor.contrib.copyPasteActionController",h=Ne([ge(1,i.IBulkEditService),ge(2,s.IClipboardService),ge(3,l.IConfigurationService),ge(4,a.ILanguageFeaturesService),ge(5,o.IProgressService)],h),e.CopyPasteController=h;function w(m,p){return m.pasteMimeTypes.some(b=>b.toLowerCase()===C.DataTransfers.FILES.toLowerCase()?[...p.values()].some(y=>y.asFile()):p.has(b))}}),define(_[743],ee([1,0,14,224,742,593,90,33]),function(q,e,C,N,E,I,L,S){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(0,C.registerEditorContribution)(E.CopyPasteController.ID,E.CopyPasteController,0),S.Registry.as(L.Extensions.Configuration).registerConfiguration(Object.assign(Object.assign({},N.editorConfigurationBaseNode),{properties:{"editor.experimental.pasteActions.enabled":{type:"boolean",scope:5,description:I.localize(0,null),default:!1}}}))}),define(_[744],ee([1,0,14,169,602]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class I extends C.EditorAction{constructor(){super({id:"editor.action.fontZoomIn",label:E.localize(0,null),alias:"Editor Font Zoom In",precondition:void 0})}run(f,g){N.EditorZoom.setZoomLevel(N.EditorZoom.getZoomLevel()+1)}}class L extends C.EditorAction{constructor(){super({id:"editor.action.fontZoomOut",label:E.localize(1,null),alias:"Editor Font Zoom Out",precondition:void 0})}run(f,g){N.EditorZoom.setZoomLevel(N.EditorZoom.getZoomLevel()-1)}}class S extends C.EditorAction{constructor(){super({id:"editor.action.fontZoomReset",label:E.localize(2,null),alias:"Editor Font Zoom Reset",precondition:void 0})}run(f,g){N.EditorZoom.setZoomLevel(0)}}(0,C.registerEditorAction)(I),(0,C.registerEditorAction)(L),(0,C.registerEditorAction)(S)}),define(_[313],ee([1,0,52,17,20,13,54,59,18,21,97,161,12,4,22,108,61,264,603,25,681,8,19,62]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s,l,o,u,h,w){"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 m(A){if(A=A.filter(W=>W.range),!A.length)return;let{range:T}=A[0];for(let W=1;W<A.length;W++)T=n.Range.plusRange(T,A[W].range);const{startLineNumber:O,endLineNumber:B}=T;O===B?A.length===1?(0,C.alert)(s.localize(0,null,O)):(0,C.alert)(s.localize(1,null,A.length,O)):A.length===1?(0,C.alert)(s.localize(2,null,O,B)):(0,C.alert)(s.localize(3,null,A.length,O,B))}e.alertFormattingEdits=m;function p(A,T,O){const B=[],W=new Set,j=A.ordered(O);for(const U of j)B.push(U),U.extensionId&&W.add(o.ExtensionIdentifier.toKey(U.extensionId));const F=T.ordered(O);for(const U of F){if(U.extensionId){if(W.has(o.ExtensionIdentifier.toKey(U.extensionId)))continue;W.add(o.ExtensionIdentifier.toKey(U.extensionId))}B.push({displayName:U.displayName,extensionId:U.extensionId,provideDocumentFormattingEdits(Q,se,he){return U.provideDocumentRangeFormattingEdits(Q,Q.getFullModelRange(),se,he)}})}return B}e.getRealAndSyntheticDocumentFormattersOrdered=p;class b{static setFormatterSelector(T){return{dispose:b.c.unshift(T)}}static select(T,O,B){return ye(this,void 0,void 0,function*(){if(T.length===0)return;const W=L.Iterable.first(b.c);if(W)return yield W(T,O,B)})}}b.c=new S.LinkedList,e.FormattingConflicts=b;function y(A,T,O,B,W,j){return ye(this,void 0,void 0,function*(){const F=A.get(u.IInstantiationService),{documentRangeFormattingEditProvider:U}=A.get(h.ILanguageFeaturesService),Q=(0,i.isCodeEditor)(T)?T.getModel():T,se=U.ordered(Q),he=yield b.select(se,Q,B);he&&(W.report(he),yield F.invokeFunction(k,he,T,O,j))})}e.formatDocumentRangesWithSelectedProvider=y;function k(A,T,O,B,W){return ye(this,void 0,void 0,function*(){const j=A.get(r.IEditorWorkerService),F=A.get(w.ILogService);let U,Q;(0,i.isCodeEditor)(O)?(U=O.getModel(),Q=new g.EditorStateCancellationTokenSource(O,5,void 0,W)):(U=O,Q=new g.TextModelCancellationTokenSource(O,W));const se=[];let he=0;for(const G of(0,N.asArray)(B).sort(n.Range.compareRangesUsingStarts))he>0&&n.Range.areIntersectingOrTouching(se[he-1],G)?se[he-1]=n.Range.fromPositions(se[he-1].getStartPosition(),G.getEndPosition()):he=se.push(G);const ie=G=>ye(this,void 0,void 0,function*(){var te,Z;F.trace("[format][provideDocumentRangeFormattingEdits] (request)",(te=T.extensionId)===null||te===void 0?void 0:te.value,G);const ae=(yield T.provideDocumentRangeFormattingEdits(U,G,U.getFormattingOptions(),Q.token))||[];return F.trace("[format][provideDocumentRangeFormattingEdits] (response)",(Z=T.extensionId)===null||Z===void 0?void 0:Z.value,ae),ae}),ue=(G,te)=>{if(!G.length||!te.length)return!1;const Z=G.reduce((ae,de)=>n.Range.plusRange(ae,de.range),G[0].range);if(!te.some(ae=>n.Range.intersectRanges(Z,ae.range)))return!1;for(const ae of G)for(const de of te)if(n.Range.intersectRanges(ae.range,de.range))return!0;return!1},J=[],x=[];try{for(const G of se){if(Q.token.isCancellationRequested)return!0;x.push(yield ie(G))}for(let G=0;G<se.length;++G)for(let te=G+1;te<se.length;++te){if(Q.token.isCancellationRequested)return!0;if(ue(x[G],x[te])){const Z=n.Range.plusRange(se[G],se[te]),ae=yield ie(Z);se.splice(te,1),se.splice(G,1),se.push(Z),x.splice(te,1),x.splice(G,1),x.push(ae),G=0,te=0}}for(const G of x){if(Q.token.isCancellationRequested)return!0;const te=yield j.computeMoreMinimalEdits(U.uri,G);te&&J.push(...te)}}finally{Q.dispose()}if(J.length===0)return!1;if((0,i.isCodeEditor)(O))d.FormattingEdit.execute(O,J,!0),m(J),O.revealPositionInCenterIfOutsideViewport(O.getPosition(),1);else{const[{range:G}]=J,te=new a.Selection(G.startLineNumber,G.startColumn,G.endLineNumber,G.endColumn);U.pushEditOperations([te],J.map(Z=>({text:Z.text,range:n.Range.lift(Z.range),forceMoveMarkers:!0})),Z=>{for(const{range:ae}of Z)if(n.Range.areIntersectingOrTouching(ae,te))return[new a.Selection(ae.startLineNumber,ae.startColumn,ae.endLineNumber,ae.endColumn)];return null})}return!0})}e.formatDocumentRangesWithProvider=k;function D(A,T,O,B,W){return ye(this,void 0,void 0,function*(){const j=A.get(u.IInstantiationService),F=A.get(h.ILanguageFeaturesService),U=(0,i.isCodeEditor)(T)?T.getModel():T,Q=p(F.documentFormattingEditProvider,F.documentRangeFormattingEditProvider,U),se=yield b.select(Q,U,O);se&&(B.report(se),yield j.invokeFunction(M,se,T,O,W))})}e.formatDocumentWithSelectedProvider=D;function M(A,T,O,B,W){return ye(this,void 0,void 0,function*(){const j=A.get(r.IEditorWorkerService);let F,U;(0,i.isCodeEditor)(O)?(F=O.getModel(),U=new g.EditorStateCancellationTokenSource(O,5,void 0,W)):(F=O,U=new g.TextModelCancellationTokenSource(O,W));let Q;try{const se=yield T.provideDocumentFormattingEdits(F,F.getFormattingOptions(),U.token);if(Q=yield j.computeMoreMinimalEdits(F.uri,se),U.token.isCancellationRequested)return!0}finally{U.dispose()}if(!Q||Q.length===0)return!1;if((0,i.isCodeEditor)(O))d.FormattingEdit.execute(O,Q,B!==2),B!==2&&(m(Q),O.revealPositionInCenterIfOutsideViewport(O.getPosition(),1));else{const[{range:se}]=Q,he=new a.Selection(se.startLineNumber,se.startColumn,se.endLineNumber,se.endColumn);F.pushEditOperations([he],Q.map(ie=>({text:ie.text,range:n.Range.lift(ie.range),forceMoveMarkers:!0})),ie=>{for(const{range:ue}of ie)if(n.Range.areIntersectingOrTouching(ue,he))return[new a.Selection(ue.startLineNumber,ue.startColumn,ue.endLineNumber,ue.endColumn)];return null})}return!0})}e.formatDocumentWithProvider=M;function z(A,T,O,B,W,j){return ye(this,void 0,void 0,function*(){const F=T.documentRangeFormattingEditProvider.ordered(O);for(const U of F){const Q=yield Promise.resolve(U.provideDocumentRangeFormattingEdits(O,B,W,j)).catch(I.onUnexpectedExternalError);if((0,N.isNonEmptyArray)(Q))return yield A.computeMoreMinimalEdits(O.uri,Q)}})}e.getDocumentRangeFormattingEditsUntilResult=z;function R(A,T,O,B,W){return ye(this,void 0,void 0,function*(){const j=p(T.documentFormattingEditProvider,T.documentRangeFormattingEditProvider,O);for(const F of j){const U=yield Promise.resolve(F.provideDocumentFormattingEdits(O,B,W)).catch(I.onUnexpectedExternalError);if((0,N.isNonEmptyArray)(U))return yield A.computeMoreMinimalEdits(O.uri,U)}})}e.getDocumentFormattingEditsUntilResult=R;function P(A,T,O,B,W,j,F){const U=T.onTypeFormattingEditProvider.ordered(O);return U.length===0||U[0].autoFormatTriggerCharacters.indexOf(W)<0?Promise.resolve(void 0):Promise.resolve(U[0].provideOnTypeFormattingEdits(O,B,W,j,F)).catch(I.onUnexpectedExternalError).then(Q=>A.computeMoreMinimalEdits(O.uri,Q))}e.getOnTypeFormattingEdits=P,l.CommandsRegistry.registerCommand("_executeFormatRangeProvider",function(A,...T){return ye(this,void 0,void 0,function*(){const[O,B,W]=T;(0,v.assertType)(f.URI.isUri(O)),(0,v.assertType)(n.Range.isIRange(B));const j=A.get(c.ITextModelService),F=A.get(r.IEditorWorkerService),U=A.get(h.ILanguageFeaturesService),Q=yield j.createModelReference(O);try{return z(F,U,Q.object.textEditorModel,n.Range.lift(B),W,E.CancellationToken.None)}finally{Q.dispose()}})}),l.CommandsRegistry.registerCommand("_executeFormatDocumentProvider",function(A,...T){return ye(this,void 0,void 0,function*(){const[O,B]=T;(0,v.assertType)(f.URI.isUri(O));const W=A.get(c.ITextModelService),j=A.get(r.IEditorWorkerService),F=A.get(h.ILanguageFeaturesService),U=yield W.createModelReference(O);try{return R(j,F,U.object.textEditorModel,B,E.CancellationToken.None)}finally{U.dispose()}})}),l.CommandsRegistry.registerCommand("_executeFormatOnTypeProvider",function(A,...T){return ye(this,void 0,void 0,function*(){const[O,B,W,j]=T;(0,v.assertType)(f.URI.isUri(O)),(0,v.assertType)(t.Position.isIPosition(B)),(0,v.assertType)(typeof W=="string");const F=A.get(c.ITextModelService),U=A.get(r.IEditorWorkerService),Q=A.get(h.ILanguageFeaturesService),se=yield F.createModelReference(O);try{return P(U,Q,se.object.textEditorModel,t.Position.lift(B),W,j,E.CancellationToken.None)}finally{se.dispose()}})})}),define(_[745],ee([1,0,17,20,13,58,2,14,30,113,4,24,108,19,313,264,604,25,15,8,69]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s,l,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let u=class{constructor(b,y,k){this.c=b,this.d=y,this.f=k,this.a=new L.DisposableStore,this.b=new L.DisposableStore,this.a.add(y.onTypeFormattingEditProvider.onDidChange(this.g,this)),this.a.add(b.onDidChangeModel(()=>this.g())),this.a.add(b.onDidChangeModelLanguage(()=>this.g())),this.a.add(b.onDidChangeConfiguration(D=>{D.hasChanged(53)&&this.g()})),this.g()}dispose(){this.a.dispose(),this.b.dispose()}g(){if(this.b.clear(),!this.c.getOption(53)||!this.c.hasModel())return;const b=this.c.getModel(),[y]=this.d.onTypeFormattingEditProvider.ordered(b);if(!y||!y.autoFormatTriggerCharacters)return;const k=new f.CharacterSet;for(const D of y.autoFormatTriggerCharacters)k.add(D.charCodeAt(0));this.b.add(this.c.onDidType(D=>{const M=D.charCodeAt(D.length-1);k.has(M)&&this.h(String.fromCharCode(M))}))}h(b){if(!this.c.hasModel()||this.c.getSelections().length>1||!this.c.getSelection().isEmpty())return;const y=this.c.getModel(),k=this.c.getPosition(),D=new N.CancellationTokenSource,M=this.c.onDidChangeModelContent(z=>{if(z.isFlush){D.cancel(),M.dispose();return}for(let R=0,P=z.changes.length;R<P;R++)if(z.changes[R].range.endLineNumber<=k.lineNumber){D.cancel(),M.dispose();return}});(0,a.getOnTypeFormattingEdits)(this.f,this.d,y,k,b,y.getFormattingOptions(),D.token).then(z=>{D.token.isCancellationRequested||(0,C.isNonEmptyArray)(z)&&(r.FormattingEdit.execute(this.c,z,!0),(0,a.alertFormattingEdits)(z))}).finally(()=>{M.dispose()})}};u.ID="editor.contrib.autoFormat",u=Ne([ge(1,n.ILanguageFeaturesService),ge(2,t.IEditorWorkerService)],u);let h=class{constructor(b,y,k){this.c=b,this.d=y,this.f=k,this.a=new L.DisposableStore,this.b=new L.DisposableStore,this.a.add(b.onDidChangeConfiguration(()=>this.g())),this.a.add(b.onDidChangeModel(()=>this.g())),this.a.add(b.onDidChangeModelLanguage(()=>this.g())),this.a.add(y.documentRangeFormattingEditProvider.onDidChange(this.g,this))}dispose(){this.a.dispose(),this.b.dispose()}g(){this.b.clear(),this.c.getOption(52)&&(!this.c.hasModel()||!this.d.documentRangeFormattingEditProvider.has(this.c.getModel())||this.b.add(this.c.onDidPaste(({range:b})=>this.h(b))))}h(b){!this.c.hasModel()||this.c.getSelections().length>1||this.f.invokeFunction(a.formatDocumentRangesWithSelectedProvider,this.c,b,2,o.Progress.None,N.CancellationToken.None).catch(E.onUnexpectedError)}};h.ID="editor.contrib.formatOnPaste",h=Ne([ge(1,n.ILanguageFeaturesService),ge(2,l.IInstantiationService)],h);class w extends S.EditorAction{constructor(){super({id:"editor.action.formatDocument",label:c.localize(0,null),alias:"Format Document",precondition:s.ContextKeyExpr.and(i.EditorContextKeys.notInCompositeEditor,i.EditorContextKeys.writable,i.EditorContextKeys.hasDocumentFormattingProvider),kbOpts:{kbExpr:i.EditorContextKeys.editorTextFocus,primary:1572,linux:{primary:3111},weight:100},contextMenuOpts:{group:"1_modification",order:1.3}})}run(b,y){return ye(this,void 0,void 0,function*(){if(y.hasModel()){const k=b.get(l.IInstantiationService);yield b.get(o.IEditorProgressService).showWhile(k.invokeFunction(a.formatDocumentWithSelectedProvider,y,1,o.Progress.None,N.CancellationToken.None),250)}})}}class m extends S.EditorAction{constructor(){super({id:"editor.action.formatSelection",label:c.localize(1,null),alias:"Format Selection",precondition:s.ContextKeyExpr.and(i.EditorContextKeys.writable,i.EditorContextKeys.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:i.EditorContextKeys.editorTextFocus,primary:(0,I.KeyChord)(2089,2084),weight:100},contextMenuOpts:{when:i.EditorContextKeys.hasNonEmptySelection,group:"1_modification",order:1.31}})}run(b,y){return ye(this,void 0,void 0,function*(){if(!y.hasModel())return;const k=b.get(l.IInstantiationService),D=y.getModel(),M=y.getSelections().map(R=>R.isEmpty()?new g.Range(R.startLineNumber,1,R.startLineNumber,D.getLineMaxColumn(R.startLineNumber)):R);yield b.get(o.IEditorProgressService).showWhile(k.invokeFunction(a.formatDocumentRangesWithSelectedProvider,y,M,1,o.Progress.None,N.CancellationToken.None),250)})}}(0,S.registerEditorContribution)(u.ID,u,2),(0,S.registerEditorContribution)(h.ID,h,2),(0,S.registerEditorAction)(w),(0,S.registerEditorAction)(m),d.CommandsRegistry.registerCommand("editor.action.format",p=>ye(void 0,void 0,void 0,function*(){const b=p.get(v.ICodeEditorService).getFocusedCodeEditor();if(!b||!b.hasModel())return;const y=p.get(d.ICommandService);b.getSelection().isEmpty()?yield y.executeCommand("editor.action.formatDocument"):yield y.executeCommand("editor.action.formatSelection")}))}),define(_[229],ee([1,0,17,20,13,14,19,142]),function(q,e,C,N,E,I,L,S){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getReferencesAtPosition=e.getTypeDefinitionsAtPosition=e.getImplementationsAtPosition=e.getDeclarationsAtPosition=e.getDefinitionsAtPosition=void 0;function v(r,c,d,s){return ye(this,void 0,void 0,function*(){const o=d.ordered(r).map(h=>Promise.resolve(s(h,r,c)).then(void 0,w=>{(0,E.onUnexpectedExternalError)(w)})),u=yield Promise.all(o);return(0,C.coalesce)(u.flat())})}function f(r,c,d,s){return v(c,d,r,(l,o,u)=>l.provideDefinition(o,u,s))}e.getDefinitionsAtPosition=f;function g(r,c,d,s){return v(c,d,r,(l,o,u)=>l.provideDeclaration(o,u,s))}e.getDeclarationsAtPosition=g;function i(r,c,d,s){return v(c,d,r,(l,o,u)=>l.provideImplementation(o,u,s))}e.getImplementationsAtPosition=i;function t(r,c,d,s){return v(c,d,r,(l,o,u)=>l.provideTypeDefinition(o,u,s))}e.getTypeDefinitionsAtPosition=t;function n(r,c,d,s,l){return v(c,d,r,(o,u,h)=>ye(this,void 0,void 0,function*(){const w=yield o.provideReferences(u,h,{includeDeclaration:!0},l);if(!s||!w||w.length!==2)return w;const m=yield o.provideReferences(u,h,{includeDeclaration:!1},l);return m&&m.length===1?m:w}))}e.getReferencesAtPosition=n;function a(r){return ye(this,void 0,void 0,function*(){const c=yield r(),d=new S.ReferencesModel(c,""),s=d.references.map(l=>l.link);return d.dispose(),s})}(0,I.registerModelAndPositionCommand)("_executeDefinitionProvider",(r,c,d)=>{const s=r.get(L.ILanguageFeaturesService),l=f(s.definitionProvider,c,d,N.CancellationToken.None);return a(()=>l)}),(0,I.registerModelAndPositionCommand)("_executeTypeDefinitionProvider",(r,c,d)=>{const s=r.get(L.ILanguageFeaturesService),l=t(s.typeDefinitionProvider,c,d,N.CancellationToken.None);return a(()=>l)}),(0,I.registerModelAndPositionCommand)("_executeDeclarationProvider",(r,c,d)=>{const s=r.get(L.ILanguageFeaturesService),l=g(s.declarationProvider,c,d,N.CancellationToken.None);return a(()=>l)}),(0,I.registerModelAndPositionCommand)("_executeReferenceProvider",(r,c,d)=>{const s=r.get(L.ILanguageFeaturesService),l=n(s.referenceProvider,c,d,!1,N.CancellationToken.None);return a(()=>l)}),(0,I.registerModelAndPositionCommand)("_executeImplementationProvider",(r,c,d)=>{const s=r.get(L.ILanguageFeaturesService),l=i(s.implementationProvider,c,d,N.CancellationToken.None);return a(()=>l)})}),define(_[746],ee([1,0,6,2,44,14,30,4,613,15,49,8,38,109,42]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ISymbolNavigationService=e.ctxHasSymbols=void 0,e.ctxHasSymbols=new f.RawContextKey("hasSymbols",!1,(0,v.localize)(0,null)),e.ISymbolNavigationService=(0,i.createDecorator)("ISymbolNavigationService");let r=class{constructor(s,l,o,u){this.g=l,this.h=o,this.i=u,this.b=void 0,this.c=-1,this.f=!1,this.a=e.ctxHasSymbols.bindTo(s)}reset(){var s,l;this.a.reset(),(s=this.d)===null||s===void 0||s.dispose(),(l=this.e)===null||l===void 0||l.dispose(),this.b=void 0,this.c=-1}put(s){const l=s.parent.parent;if(l.references.length<=1){this.reset();return}this.b=l,this.c=l.references.indexOf(s),this.a.set(!0),this.j();const o=new c(this.g),u=o.onDidChange(h=>{if(this.f)return;const w=this.g.getActiveCodeEditor();if(!w)return;const m=w.getModel(),p=w.getPosition();if(!m||!p)return;let b=!1,y=!1;for(const k of l.references)if((0,E.isEqual)(k.uri,m.uri))b=!0,y=y||S.Range.containsPosition(k.range,p);else if(b)break;(!b||!y)&&this.reset()});this.d=(0,N.combinedDisposable)(o,u)}revealNext(s){if(!this.b)return Promise.resolve();this.c+=1,this.c%=this.b.references.length;const l=this.b.references[this.c];return this.j(),this.f=!0,this.g.openCodeEditor({resource:l.uri,options:{selection:S.Range.collapseToStart(l.range),selectionRevealType:3}},s).finally(()=>{this.f=!1})}j(){var s;(s=this.e)===null||s===void 0||s.dispose();const l=this.i.lookupKeybinding("editor.gotoNextSymbolFromResult"),o=l?(0,v.localize)(1,null,this.c+1,this.b.references.length,l.getLabel()):(0,v.localize)(2,null,this.c+1,this.b.references.length);this.e=this.h.status(o)}};r=Ne([ge(0,f.IContextKeyService),ge(1,L.ICodeEditorService),ge(2,a.INotificationService),ge(3,t.IKeybindingService)],r),(0,g.registerSingleton)(e.ISymbolNavigationService,r,1),(0,I.registerEditorCommand)(new class extends I.EditorCommand{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:e.ctxHasSymbols,kbOpts:{weight:100,primary:70}})}runEditorCommand(d,s){return d.get(e.ISymbolNavigationService).revealNext(s)}}),n.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:e.ctxHasSymbols,primary:9,handler(d){d.get(e.ISymbolNavigationService).reset()}});let c=class{constructor(s){this.a=new Map,this.b=new N.DisposableStore,this.c=new C.Emitter,this.onDidChange=this.c.event,this.b.add(s.onCodeEditorRemove(this.e,this)),this.b.add(s.onCodeEditorAdd(this.d,this)),s.listCodeEditors().forEach(this.d,this)}dispose(){this.b.dispose(),this.c.dispose(),(0,N.dispose)(this.a.values())}d(s){this.a.set(s,(0,N.combinedDisposable)(s.onDidChangeCursorPosition(l=>this.c.fire({editor:s})),s.onDidChangeModelContent(l=>this.c.fire({editor:s}))))}e(s){var l;(l=this.a.get(s))===null||l===void 0||l.dispose(),this.a.delete(s)}};c=Ne([ge(0,L.ICodeEditorService)],c)}),define(_[314],ee([1,0,11,20,13,14,19]),function(q,e,C,N,E,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getHoverPromise=e.getHover=e.HoverProviderResult=void 0;class S{constructor(n,a,r){this.provider=n,this.hover=a,this.ordinal=r}}e.HoverProviderResult=S;function v(t,n,a,r,c){return ye(this,void 0,void 0,function*(){try{const d=yield Promise.resolve(t.provideHover(a,r,c));if(d&&i(d))return new S(t,d,n)}catch(d){(0,E.onUnexpectedExternalError)(d)}})}function f(t,n,a,r){const d=t.ordered(n).map((s,l)=>v(s,l,n,a,r));return C.AsyncIterableObject.fromPromises(d).coalesce()}e.getHover=f;function g(t,n,a,r){return f(t,n,a,r).map(c=>c.hover).toPromise()}e.getHoverPromise=g,(0,I.registerModelAndPositionCommand)("_executeHoverProvider",(t,n,a)=>{const r=t.get(L.ILanguageFeaturesService);return g(r.hoverProvider,n,a,N.CancellationToken.None)});function i(t){const n=typeof t.range<"u",a=typeof t.contents<"u"&&t.contents&&t.contents.length>0;return n&&a}}),define(_[230],ee([1,0,7,17,11,72,2,121,12,4,37,314,615,27,50,19]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.renderMarkdownHovers=e.MarkdownHoverParticipant=e.MarkdownHover=void 0;const c=C.$;class d{constructor(u,h,w,m,p){this.owner=u,this.range=h,this.contents=w,this.isBeforeContent=m,this.ordinal=p}isValidForHoverAnchor(u){return u.type===1&&this.range.startColumn<=u.range.startColumn&&this.range.endColumn>=u.range.endColumn}}e.MarkdownHover=d;let s=class{constructor(u,h,w,m,p){this.c=u,this.e=h,this.f=w,this.g=m,this.h=p,this.hoverOrdinal=2}createLoadingMessage(u){return new d(this,u.range,[new I.MarkdownString().appendText(t.localize(0,null))],!1,2e3)}computeSync(u,h){if(!this.c.hasModel()||u.type!==1)return[];const w=this.c.getModel(),m=u.range.startLineNumber,p=w.getLineMaxColumn(m),b=[];let y=1e3;const k=w.getLineLength(m),D=w.getLanguageIdAtPosition(u.range.startLineNumber,u.range.startColumn),M=this.c.getOption(111),z=this.g.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:D});let R=!1;M>=0&&k>M&&u.range.startColumn>=M&&(R=!0,b.push(new d(this,u.range,[{value:t.localize(1,null)}],!1,y++))),!R&&typeof z=="number"&&k>=z&&b.push(new d(this,u.range,[{value:t.localize(2,null)}],!1,y++));let P=!1;for(const A of h){const T=A.range.startLineNumber===m?A.range.startColumn:1,O=A.range.endLineNumber===m?A.range.endColumn:p,B=A.options.hoverMessage;if(!B||(0,I.isEmptyMarkdownString)(B))continue;A.options.beforeContentClassName&&(P=!0);const W=new f.Range(u.range.startLineNumber,T,u.range.startLineNumber,O);b.push(new d(this,W,(0,N.asArray)(B),P,y++))}return b}computeAsync(u,h,w){if(!this.c.hasModel()||u.type!==1)return E.AsyncIterableObject.EMPTY;const m=this.c.getModel();if(!this.h.hoverProvider.has(m))return E.AsyncIterableObject.EMPTY;const p=new v.Position(u.range.startLineNumber,u.range.startColumn);return(0,i.getHover)(this.h.hoverProvider,m,p,w).filter(b=>!(0,I.isEmptyMarkdownString)(b.hover.contents)).map(b=>{const y=b.hover.range?f.Range.lift(b.hover.range):u.range;return new d(this,y,b.hover.contents,!1,b.ordinal)})}renderHoverParts(u,h){return l(u,h,this.c,this.e,this.f)}};s=Ne([ge(1,g.ILanguageService),ge(2,a.IOpenerService),ge(3,n.IConfigurationService),ge(4,r.ILanguageFeaturesService)],s),e.MarkdownHoverParticipant=s;function l(o,u,h,w,m){u.sort((b,y)=>b.ordinal-y.ordinal);const p=new L.DisposableStore;for(const b of u)for(const y of b.contents){if((0,I.isEmptyMarkdownString)(y))continue;const k=c("div.hover-row.markdown-hover"),D=C.append(k,c("div.hover-contents")),M=p.add(new S.MarkdownRenderer({editor:h},w,m));p.add(M.onDidRenderAsync(()=>{D.className="hover-contents code-hover-contents",o.onContentsChanged()}));const z=p.add(M.render(y));D.appendChild(z.element),o.fragment.appendChild(k)}return p}e.renderMarkdownHovers=l}),define(_[747],ee([1,0,2,9,14,227,64,4,22,24,34,53,265,618,79,185,225]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndentationToTabsCommand=e.IndentationToSpacesCommand=e.AutoIndentOnPaste=e.AutoIndentOnPasteCommand=e.ReindentSelectedLinesAction=e.ReindentLinesAction=e.DetectIndentation=e.ChangeTabDisplaySize=e.IndentUsingSpaces=e.IndentUsingTabs=e.ChangeIndentationSizeAction=e.IndentationToTabsAction=e.IndentationToSpacesAction=e.getReindentEditOperations=void 0;function d(R,P,A,T,O){if(R.getLineCount()===1&&R.getLineMaxColumn(1)===1)return[];const B=P.getLanguageConfiguration(R.getLanguageId()).indentationRules;if(!B)return[];for(T=Math.min(T,R.getLineCount());A<=T&&B.unIndentedLinePattern;){const x=R.getLineContent(A);if(!B.unIndentedLinePattern.test(x))break;A++}if(A>T-1)return[];const{tabSize:W,indentSize:j,insertSpaces:F}=R.getOptions(),U=(x,G)=>(G=G||1,I.ShiftCommand.shiftIndent(x,x.length+G,W,j,F)),Q=(x,G)=>(G=G||1,I.ShiftCommand.unshiftIndent(x,x.length+G,W,j,F)),se=[];let he;const ie=R.getLineContent(A);let ue=ie;if(O!=null){he=O;const x=N.getLeadingWhitespace(ie);ue=he+ie.substring(x.length),B.decreaseIndentPattern&&B.decreaseIndentPattern.test(ue)&&(he=Q(he),ue=he+ie.substring(x.length)),ie!==ue&&se.push(L.EditOperation.replaceMove(new v.Selection(A,1,A,x.length+1),(0,r.normalizeIndentation)(he,j,F)))}else he=N.getLeadingWhitespace(ie);let J=he;B.increaseIndentPattern&&B.increaseIndentPattern.test(ue)?(J=U(J),he=U(he)):B.indentNextLinePattern&&B.indentNextLinePattern.test(ue)&&(J=U(J)),A++;for(let x=A;x<=T;x++){const G=R.getLineContent(x),te=N.getLeadingWhitespace(G),Z=J+G.substring(te.length);B.decreaseIndentPattern&&B.decreaseIndentPattern.test(Z)&&(J=Q(J),he=Q(he)),te!==J&&se.push(L.EditOperation.replaceMove(new v.Selection(x,1,x,te.length+1),(0,r.normalizeIndentation)(J,j,F))),!(B.unIndentedLinePattern&&B.unIndentedLinePattern.test(G))&&(B.increaseIndentPattern&&B.increaseIndentPattern.test(Z)?(he=U(he),J=he):B.indentNextLinePattern&&B.indentNextLinePattern.test(Z)?J=U(J):J=he)}return se}e.getReindentEditOperations=d;class s extends E.EditorAction{constructor(){super({id:s.ID,label:n.localize(0,null),alias:"Convert Indentation to Spaces",precondition:f.EditorContextKeys.writable})}run(P,A){const T=A.getModel();if(!T)return;const O=T.getOptions(),B=A.getSelection();if(!B)return;const W=new M(B,O.tabSize);A.pushUndoStop(),A.executeCommands(this.id,[W]),A.pushUndoStop(),T.updateOptions({insertSpaces:!0})}}s.ID="editor.action.indentationToSpaces",e.IndentationToSpacesAction=s;class l extends E.EditorAction{constructor(){super({id:l.ID,label:n.localize(1,null),alias:"Convert Indentation to Tabs",precondition:f.EditorContextKeys.writable})}run(P,A){const T=A.getModel();if(!T)return;const O=T.getOptions(),B=A.getSelection();if(!B)return;const W=new z(B,O.tabSize);A.pushUndoStop(),A.executeCommands(this.id,[W]),A.pushUndoStop(),T.updateOptions({insertSpaces:!1})}}l.ID="editor.action.indentationToTabs",e.IndentationToTabsAction=l;class o extends E.EditorAction{constructor(P,A,T){super(T),this.d=P,this.e=A}run(P,A){const T=P.get(a.IQuickInputService),O=P.get(i.IModelService),B=A.getModel();if(!B)return;const W=O.getCreationOptions(B.getLanguageId(),B.uri,B.isForSimpleWidget),j=B.getOptions(),F=[1,2,3,4,5,6,7,8].map(Q=>({id:Q.toString(),label:Q.toString(),description:Q===W.tabSize&&Q===j.tabSize?n.localize(2,null):Q===W.tabSize?n.localize(3,null):Q===j.tabSize?n.localize(4,null):void 0})),U=Math.min(B.getOptions().tabSize-1,7);setTimeout(()=>{T.pick(F,{placeHolder:n.localize(5,null),activeItem:F[U]}).then(Q=>{if(Q&&B&&!B.isDisposed()){const se=parseInt(Q.label,10);this.e?B.updateOptions({tabSize:se}):B.updateOptions({tabSize:se,indentSize:se,insertSpaces:this.d})}})},50)}}e.ChangeIndentationSizeAction=o;class u extends o{constructor(){super(!1,!1,{id:u.ID,label:n.localize(6,null),alias:"Indent Using Tabs",precondition:void 0})}}u.ID="editor.action.indentUsingTabs",e.IndentUsingTabs=u;class h extends o{constructor(){super(!0,!1,{id:h.ID,label:n.localize(7,null),alias:"Indent Using Spaces",precondition:void 0})}}h.ID="editor.action.indentUsingSpaces",e.IndentUsingSpaces=h;class w extends o{constructor(){super(!0,!0,{id:w.ID,label:n.localize(8,null),alias:"Change Tab Display Size",precondition:void 0})}}w.ID="editor.action.changeTabDisplaySize",e.ChangeTabDisplaySize=w;class m extends E.EditorAction{constructor(){super({id:m.ID,label:n.localize(9,null),alias:"Detect Indentation from Content",precondition:void 0})}run(P,A){const T=P.get(i.IModelService),O=A.getModel();if(!O)return;const B=T.getCreationOptions(O.getLanguageId(),O.uri,O.isForSimpleWidget);O.detectIndentation(B.insertSpaces,B.tabSize)}}m.ID="editor.action.detectIndentation",e.DetectIndentation=m;class p extends E.EditorAction{constructor(){super({id:"editor.action.reindentlines",label:n.localize(10,null),alias:"Reindent Lines",precondition:f.EditorContextKeys.writable})}run(P,A){const T=P.get(g.ILanguageConfigurationService),O=A.getModel();if(!O)return;const B=d(O,T,1,O.getLineCount());B.length>0&&(A.pushUndoStop(),A.executeEdits(this.id,B),A.pushUndoStop())}}e.ReindentLinesAction=p;class b extends E.EditorAction{constructor(){super({id:"editor.action.reindentselectedlines",label:n.localize(11,null),alias:"Reindent Selected Lines",precondition:f.EditorContextKeys.writable})}run(P,A){const T=P.get(g.ILanguageConfigurationService),O=A.getModel();if(!O)return;const B=A.getSelections();if(B===null)return;const W=[];for(const j of B){let F=j.startLineNumber,U=j.endLineNumber;if(F!==U&&j.endColumn===1&&U--,F===1){if(F===U)continue}else F--;const Q=d(O,T,F,U);W.push(...Q)}W.length>0&&(A.pushUndoStop(),A.executeEdits(this.id,W),A.pushUndoStop())}}e.ReindentSelectedLinesAction=b;class y{constructor(P,A){this.b=A,this.a=[],this.c=null;for(const T of P)T.range&&typeof T.text=="string"&&this.a.push(T)}getEditOperations(P,A){for(const O of this.a)A.addEditOperation(S.Range.lift(O.range),O.text);let T=!1;Array.isArray(this.a)&&this.a.length===1&&this.b.isEmpty()&&(this.a[0].range.startColumn===this.b.endColumn&&this.a[0].range.startLineNumber===this.b.endLineNumber?(T=!0,this.c=A.trackSelection(this.b,!0)):this.a[0].range.endColumn===this.b.startColumn&&this.a[0].range.endLineNumber===this.b.startLineNumber&&(T=!0,this.c=A.trackSelection(this.b,!1))),T||(this.c=A.trackSelection(this.b))}computeCursorState(P,A){return A.getTrackedSelection(this.c)}}e.AutoIndentOnPasteCommand=y;let k=class{constructor(P,A){this.c=P,this.d=A,this.a=new C.DisposableStore,this.b=new C.DisposableStore,this.a.add(P.onDidChangeConfiguration(()=>this.e())),this.a.add(P.onDidChangeModel(()=>this.e())),this.a.add(P.onDidChangeModelLanguage(()=>this.e()))}e(){this.b.clear(),!(this.c.getOption(9)<4||this.c.getOption(52))&&(!this.c.hasModel()||this.b.add(this.c.onDidPaste(({range:P})=>{this.trigger(P)})))}trigger(P){const A=this.c.getSelections();if(A===null||A.length>1)return;const T=this.c.getModel();if(!T||!T.tokenization.isCheapToTokenize(P.getStartPosition().lineNumber))return;const O=this.c.getOption(9),{tabSize:B,indentSize:W,insertSpaces:j}=T.getOptions(),F=[],U={shiftIndent:ie=>I.ShiftCommand.shiftIndent(ie,ie.length+1,B,W,j),unshiftIndent:ie=>I.ShiftCommand.unshiftIndent(ie,ie.length+1,B,W,j)};let Q=P.startLineNumber;for(;Q<=P.endLineNumber;){if(this.f(T,Q)){Q++;continue}break}if(Q>P.endLineNumber)return;let se=T.getLineContent(Q);if(!/\S/.test(se.substring(0,P.startColumn-1))){const ie=(0,c.getGoodIndentForLine)(O,T,T.getLanguageId(),Q,U,this.d);if(ie!==null){const ue=N.getLeadingWhitespace(se),J=t.getSpaceCnt(ie,B),x=t.getSpaceCnt(ue,B);if(J!==x){const G=t.generateIndent(J,B,j);F.push({range:new S.Range(Q,1,Q,ue.length+1),text:G}),se=G+se.substr(ue.length)}else{const G=(0,c.getIndentMetadata)(T,Q,this.d);if(G===0||G===8)return}}}const he=Q;for(;Q<P.endLineNumber;){if(!/\S/.test(T.getLineContent(Q+1))){Q++;continue}break}if(Q!==P.endLineNumber){const ie={tokenization:{getLineTokens:J=>T.tokenization.getLineTokens(J),getLanguageId:()=>T.getLanguageId(),getLanguageIdAtPosition:(J,x)=>T.getLanguageIdAtPosition(J,x)},getLineContent:J=>J===he?se:T.getLineContent(J)},ue=(0,c.getGoodIndentForLine)(O,ie,T.getLanguageId(),Q+1,U,this.d);if(ue!==null){const J=t.getSpaceCnt(ue,B),x=t.getSpaceCnt(N.getLeadingWhitespace(T.getLineContent(Q+1)),B);if(J!==x){const G=J-x;for(let te=Q+1;te<=P.endLineNumber;te++){const Z=T.getLineContent(te),ae=N.getLeadingWhitespace(Z),K=t.getSpaceCnt(ae,B)+G,Y=t.generateIndent(K,B,j);Y!==ae&&F.push({range:new S.Range(te,1,te,ae.length+1),text:Y})}}}}if(F.length>0){this.c.pushUndoStop();const ie=new y(F,this.c.getSelection());this.c.executeCommand("autoIndentOnPaste",ie),this.c.pushUndoStop()}}f(P,A){P.tokenization.forceTokenization(A);const T=P.getLineFirstNonWhitespaceColumn(A);if(T===0)return!0;const O=P.tokenization.getLineTokens(A);if(O.getCount()>0){const B=O.findTokenIndexAtOffset(T);if(B>=0&&O.getStandardTokenType(B)===1)return!0}return!1}dispose(){this.a.dispose(),this.b.dispose()}};k.ID="editor.contrib.autoIndentOnPaste",k=Ne([ge(1,g.ILanguageConfigurationService)],k),e.AutoIndentOnPaste=k;function D(R,P,A,T){if(R.getLineCount()===1&&R.getLineMaxColumn(1)===1)return;let O="";for(let W=0;W<A;W++)O+=" ";const B=new RegExp(O,"gi");for(let W=1,j=R.getLineCount();W<=j;W++){let F=R.getLineFirstNonWhitespaceColumn(W);if(F===0&&(F=R.getLineMaxColumn(W)),F===1)continue;const U=new S.Range(W,1,W,F),Q=R.getValueInRange(U),se=T?Q.replace(/\t/ig,O):Q.replace(B," ");P.addEditOperation(U,se)}}class M{constructor(P,A){this.b=P,this.c=A,this.a=null}getEditOperations(P,A){this.a=A.trackSelection(this.b),D(P,A,this.c,!0)}computeCursorState(P,A){return A.getTrackedSelection(this.a)}}e.IndentationToSpacesCommand=M;class z{constructor(P,A){this.b=P,this.c=A,this.a=null}getEditOperations(P,A){this.a=A.trackSelection(this.b),D(P,A,this.c,!1)}computeCursorState(P,A){return A.getTrackedSelection(this.a)}}e.IndentationToTabsCommand=z,(0,E.registerEditorContribution)(k.ID,k,2),(0,E.registerEditorAction)(s),(0,E.registerEditorAction)(l),(0,E.registerEditorAction)(u),(0,E.registerEditorAction)(h),(0,E.registerEditorAction)(w),(0,E.registerEditorAction)(m),(0,E.registerEditorAction)(p),(0,E.registerEditorAction)(b)}),define(_[748],ee([1,0,14,188,24,623]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExpandLineSelectionAction=void 0;class L extends C.EditorAction{constructor(){super({id:"expandLineSelection",label:I.localize(0,null),alias:"Expand Line Selection",precondition:void 0,kbOpts:{weight:0,kbExpr:E.EditorContextKeys.textInputFocus,primary:2090}})}run(v,f,g){if(g=g||{},!f.hasModel())return;const i=f._getViewModel();i.model.pushStackElement(),i.setCursorStates(g.source,3,N.CursorMoveCommands.expandLineSelection(i,i.getCursorStates())),i.revealPrimaryCursor(g.source,!0)}}e.ExpandLineSelectionAction=L,(0,C.registerEditorAction)(L)}),define(_[749],ee([1,0,58,175,14,114,438,228,64,12,4,22,24,497,720,498,624,28,34]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KebabCaseAction=e.CamelCaseAction=e.SnakeCaseAction=e.TitleCaseAction=e.LowerCaseAction=e.UpperCaseAction=e.AbstractCaseAction=e.TransposeAction=e.JoinLinesAction=e.DeleteAllRightAction=e.DeleteAllLeftAction=e.AbstractDeleteAllToBoundaryAction=e.InsertLineAfterAction=e.InsertLineBeforeAction=e.IndentLinesAction=e.DeleteLinesAction=e.TrimTrailingWhitespaceAction=e.DeleteDuplicateLinesAction=e.SortLinesDescendingAction=e.SortLinesAscendingAction=e.AbstractSortLinesAction=e.DuplicateSelectionAction=void 0;class l extends E.EditorAction{constructor(te,Z){super(Z),this.d=te}run(te,Z){if(!Z.hasModel())return;const ae=Z.getSelections().map((Y,ne)=>({selection:Y,index:ne,ignore:!1}));ae.sort((Y,ne)=>g.Range.compareRangesUsingStarts(Y.selection,ne.selection));let de=ae[0];for(let Y=1;Y<ae.length;Y++){const ne=ae[Y];de.selection.endLineNumber===ne.selection.startLineNumber&&(de.index<ne.index?ne.ignore=!0:(de.ignore=!0,de=ne))}const K=[];for(const Y of ae)K.push(new n.CopyLinesCommand(Y.selection,this.d,Y.ignore));Z.pushUndoStop(),Z.executeCommands(this.id,K),Z.pushUndoStop()}}class o extends l{constructor(){super(!1,{id:"editor.action.copyLinesUpAction",label:c.localize(0,null),alias:"Copy Line Up",precondition:t.EditorContextKeys.writable,kbOpts:{kbExpr:t.EditorContextKeys.editorTextFocus,primary:1552,linux:{primary:3600},weight:100},menuOpts:{menuId:d.MenuId.MenubarSelectionMenu,group:"2_line",title:c.localize(1,null),order:1}})}}class u extends l{constructor(){super(!0,{id:"editor.action.copyLinesDownAction",label:c.localize(2,null),alias:"Copy Line Down",precondition:t.EditorContextKeys.writable,kbOpts:{kbExpr:t.EditorContextKeys.editorTextFocus,primary:1554,linux:{primary:3602},weight:100},menuOpts:{menuId:d.MenuId.MenubarSelectionMenu,group:"2_line",title:c.localize(3,null),order:2}})}}class h extends E.EditorAction{constructor(){super({id:"editor.action.duplicateSelection",label:c.localize(4,null),alias:"Duplicate Selection",precondition:t.EditorContextKeys.writable,menuOpts:{menuId:d.MenuId.MenubarSelectionMenu,group:"2_line",title:c.localize(5,null),order:5}})}run(te,Z,ae){if(!Z.hasModel())return;const de=[],K=Z.getSelections(),Y=Z.getModel();for(const ne of K)if(ne.isEmpty())de.push(new n.CopyLinesCommand(ne,!0));else{const V=new i.Selection(ne.endLineNumber,ne.endColumn,ne.endLineNumber,ne.endColumn);de.push(new I.ReplaceCommandThatSelectsText(V,Y.getValueInRange(ne)))}Z.pushUndoStop(),Z.executeCommands(this.id,de),Z.pushUndoStop()}}e.DuplicateSelectionAction=h;class w extends E.EditorAction{constructor(te,Z){super(Z),this.d=te}run(te,Z){const ae=te.get(s.ILanguageConfigurationService),de=[],K=Z.getSelections()||[],Y=Z.getOption(9);for(const ne of K)de.push(new a.MoveLinesCommand(ne,this.d,Y,ae));Z.pushUndoStop(),Z.executeCommands(this.id,de),Z.pushUndoStop()}}class m extends w{constructor(){super(!1,{id:"editor.action.moveLinesUpAction",label:c.localize(6,null),alias:"Move Line Up",precondition:t.EditorContextKeys.writable,kbOpts:{kbExpr:t.EditorContextKeys.editorTextFocus,primary:528,linux:{primary:528},weight:100},menuOpts:{menuId:d.MenuId.MenubarSelectionMenu,group:"2_line",title:c.localize(7,null),order:3}})}}class p extends w{constructor(){super(!0,{id:"editor.action.moveLinesDownAction",label:c.localize(8,null),alias:"Move Line Down",precondition:t.EditorContextKeys.writable,kbOpts:{kbExpr:t.EditorContextKeys.editorTextFocus,primary:530,linux:{primary:530},weight:100},menuOpts:{menuId:d.MenuId.MenubarSelectionMenu,group:"2_line",title:c.localize(9,null),order:4}})}}class b extends E.EditorAction{constructor(te,Z){super(Z),this.d=te}run(te,Z){const ae=Z.getSelections()||[];for(const K of ae)if(!r.SortLinesCommand.canRun(Z.getModel(),K,this.d))return;const de=[];for(let K=0,Y=ae.length;K<Y;K++)de[K]=new r.SortLinesCommand(ae[K],this.d);Z.pushUndoStop(),Z.executeCommands(this.id,de),Z.pushUndoStop()}}e.AbstractSortLinesAction=b;class y extends b{constructor(){super(!1,{id:"editor.action.sortLinesAscending",label:c.localize(10,null),alias:"Sort Lines Ascending",precondition:t.EditorContextKeys.writable})}}e.SortLinesAscendingAction=y;class k extends b{constructor(){super(!0,{id:"editor.action.sortLinesDescending",label:c.localize(11,null),alias:"Sort Lines Descending",precondition:t.EditorContextKeys.writable})}}e.SortLinesDescendingAction=k;class D extends E.EditorAction{constructor(){super({id:"editor.action.removeDuplicateLines",label:c.localize(12,null),alias:"Delete Duplicate Lines",precondition:t.EditorContextKeys.writable})}run(te,Z){if(!Z.hasModel())return;const ae=Z.getModel();if(ae.getLineCount()===1&&ae.getLineMaxColumn(1)===1)return;const de=[],K=[];let Y=0;for(const ne of Z.getSelections()){const V=new Set,H=[];for(let X=ne.startLineNumber;X<=ne.endLineNumber;X++){const le=ae.getLineContent(X);V.has(le)||(H.push(le),V.add(le))}const $=new i.Selection(ne.startLineNumber,1,ne.endLineNumber,ae.getLineMaxColumn(ne.endLineNumber)),oe=ne.startLineNumber-Y,re=new i.Selection(oe,1,oe+H.length-1,H[H.length-1].length);de.push(v.EditOperation.replace($,H.join(`
|
||
`))),K.push(re),Y+=ne.endLineNumber-ne.startLineNumber+1-H.length}Z.pushUndoStop(),Z.executeEdits(this.id,de,K),Z.pushUndoStop()}}e.DeleteDuplicateLinesAction=D;class M extends E.EditorAction{constructor(){super({id:M.ID,label:c.localize(13,null),alias:"Trim Trailing Whitespace",precondition:t.EditorContextKeys.writable,kbOpts:{kbExpr:t.EditorContextKeys.editorTextFocus,primary:(0,C.KeyChord)(2089,2102),weight:100}})}run(te,Z,ae){let de=[];ae.reason==="auto-save"&&(de=(Z.getSelections()||[]).map(ne=>new f.Position(ne.positionLineNumber,ne.positionColumn)));const K=Z.getSelection();if(K===null)return;const Y=new L.TrimTrailingWhitespaceCommand(K,de);Z.pushUndoStop(),Z.executeCommands(this.id,[Y]),Z.pushUndoStop()}}M.ID="editor.action.trimTrailingWhitespace",e.TrimTrailingWhitespaceAction=M;class z extends E.EditorAction{constructor(){super({id:"editor.action.deleteLines",label:c.localize(14,null),alias:"Delete Line",precondition:t.EditorContextKeys.writable,kbOpts:{kbExpr:t.EditorContextKeys.textInputFocus,primary:3113,weight:100}})}run(te,Z){if(!Z.hasModel())return;const ae=this.d(Z),de=Z.getModel();if(de.getLineCount()===1&&de.getLineMaxColumn(1)===1)return;let K=0;const Y=[],ne=[];for(let V=0,H=ae.length;V<H;V++){const $=ae[V];let oe=$.startLineNumber,re=$.endLineNumber,X=1,le=de.getLineMaxColumn(re);re<de.getLineCount()?(re+=1,le=1):oe>1&&(oe-=1,X=de.getLineMaxColumn(oe)),Y.push(v.EditOperation.replace(new i.Selection(oe,X,re,le),"")),ne.push(new i.Selection(oe-K,$.positionColumn,oe-K,$.positionColumn)),K+=$.endLineNumber-$.startLineNumber+1}Z.pushUndoStop(),Z.executeEdits(this.id,Y,ne),Z.pushUndoStop()}d(te){const Z=te.getSelections().map(K=>{let Y=K.endLineNumber;return K.startLineNumber<K.endLineNumber&&K.endColumn===1&&(Y-=1),{startLineNumber:K.startLineNumber,selectionStartColumn:K.selectionStartColumn,endLineNumber:Y,positionColumn:K.positionColumn}});Z.sort((K,Y)=>K.startLineNumber===Y.startLineNumber?K.endLineNumber-Y.endLineNumber:K.startLineNumber-Y.startLineNumber);const ae=[];let de=Z[0];for(let K=1;K<Z.length;K++)de.endLineNumber+1>=Z[K].startLineNumber?de.endLineNumber=Z[K].endLineNumber:(ae.push(de),de=Z[K]);return ae.push(de),ae}}e.DeleteLinesAction=z;class R extends E.EditorAction{constructor(){super({id:"editor.action.indentLines",label:c.localize(15,null),alias:"Indent Line",precondition:t.EditorContextKeys.writable,kbOpts:{kbExpr:t.EditorContextKeys.editorTextFocus,primary:2137,weight:100}})}run(te,Z){const ae=Z._getViewModel();!ae||(Z.pushUndoStop(),Z.executeCommands(this.id,S.TypeOperations.indent(ae.cursorConfig,Z.getModel(),Z.getSelections())),Z.pushUndoStop())}}e.IndentLinesAction=R;class P extends E.EditorAction{constructor(){super({id:"editor.action.outdentLines",label:c.localize(16,null),alias:"Outdent Line",precondition:t.EditorContextKeys.writable,kbOpts:{kbExpr:t.EditorContextKeys.editorTextFocus,primary:2135,weight:100}})}run(te,Z){N.CoreEditingCommands.Outdent.runEditorCommand(te,Z,null)}}class A extends E.EditorAction{constructor(){super({id:"editor.action.insertLineBefore",label:c.localize(17,null),alias:"Insert Line Above",precondition:t.EditorContextKeys.writable,kbOpts:{kbExpr:t.EditorContextKeys.editorTextFocus,primary:3075,weight:100}})}run(te,Z){const ae=Z._getViewModel();!ae||(Z.pushUndoStop(),Z.executeCommands(this.id,S.TypeOperations.lineInsertBefore(ae.cursorConfig,Z.getModel(),Z.getSelections())))}}e.InsertLineBeforeAction=A;class T extends E.EditorAction{constructor(){super({id:"editor.action.insertLineAfter",label:c.localize(18,null),alias:"Insert Line Below",precondition:t.EditorContextKeys.writable,kbOpts:{kbExpr:t.EditorContextKeys.editorTextFocus,primary:2051,weight:100}})}run(te,Z){const ae=Z._getViewModel();!ae||(Z.pushUndoStop(),Z.executeCommands(this.id,S.TypeOperations.lineInsertAfter(ae.cursorConfig,Z.getModel(),Z.getSelections())))}}e.InsertLineAfterAction=T;class O extends E.EditorAction{run(te,Z){if(!Z.hasModel())return;const ae=Z.getSelection(),de=this.e(Z),K=[];for(let V=0,H=de.length-1;V<H;V++){const $=de[V],oe=de[V+1];g.Range.intersectRanges($,oe)===null?K.push($):de[V+1]=g.Range.plusRange($,oe)}K.push(de[de.length-1]);const Y=this.d(ae,K),ne=K.map(V=>v.EditOperation.replace(V,""));Z.pushUndoStop(),Z.executeEdits(this.id,ne,Y),Z.pushUndoStop()}}e.AbstractDeleteAllToBoundaryAction=O;class B extends O{constructor(){super({id:"deleteAllLeft",label:c.localize(19,null),alias:"Delete All Left",precondition:t.EditorContextKeys.writable,kbOpts:{kbExpr:t.EditorContextKeys.textInputFocus,primary:0,mac:{primary:2049},weight:100}})}d(te,Z){let ae=null;const de=[];let K=0;return Z.forEach(Y=>{let ne;if(Y.endColumn===1&&K>0){const V=Y.startLineNumber-K;ne=new i.Selection(V,Y.startColumn,V,Y.startColumn)}else ne=new i.Selection(Y.startLineNumber,Y.startColumn,Y.startLineNumber,Y.startColumn);K+=Y.endLineNumber-Y.startLineNumber,Y.intersectRanges(te)?ae=ne:de.push(ne)}),ae&&de.unshift(ae),de}e(te){const Z=te.getSelections();if(Z===null)return[];let ae=Z;const de=te.getModel();return de===null?[]:(ae.sort(g.Range.compareRangesUsingStarts),ae=ae.map(K=>{if(K.isEmpty())if(K.startColumn===1){const Y=Math.max(1,K.startLineNumber-1),ne=K.startLineNumber===1?1:de.getLineContent(Y).length+1;return new g.Range(Y,ne,K.startLineNumber,1)}else return new g.Range(K.startLineNumber,1,K.startLineNumber,K.startColumn);else return new g.Range(K.startLineNumber,1,K.endLineNumber,K.endColumn)}),ae)}}e.DeleteAllLeftAction=B;class W extends O{constructor(){super({id:"deleteAllRight",label:c.localize(20,null),alias:"Delete All Right",precondition:t.EditorContextKeys.writable,kbOpts:{kbExpr:t.EditorContextKeys.textInputFocus,primary:0,mac:{primary:297,secondary:[2068]},weight:100}})}d(te,Z){let ae=null;const de=[];for(let K=0,Y=Z.length,ne=0;K<Y;K++){const V=Z[K],H=new i.Selection(V.startLineNumber-ne,V.startColumn,V.startLineNumber-ne,V.startColumn);V.intersectRanges(te)?ae=H:de.push(H)}return ae&&de.unshift(ae),de}e(te){const Z=te.getModel();if(Z===null)return[];const ae=te.getSelections();if(ae===null)return[];const de=ae.map(K=>{if(K.isEmpty()){const Y=Z.getLineMaxColumn(K.startLineNumber);return K.startColumn===Y?new g.Range(K.startLineNumber,K.startColumn,K.startLineNumber+1,1):new g.Range(K.startLineNumber,K.startColumn,K.startLineNumber,Y)}return K});return de.sort(g.Range.compareRangesUsingStarts),de}}e.DeleteAllRightAction=W;class j extends E.EditorAction{constructor(){super({id:"editor.action.joinLines",label:c.localize(21,null),alias:"Join Lines",precondition:t.EditorContextKeys.writable,kbOpts:{kbExpr:t.EditorContextKeys.editorTextFocus,primary:0,mac:{primary:296},weight:100}})}run(te,Z){const ae=Z.getSelections();if(ae===null)return;let de=Z.getSelection();if(de===null)return;ae.sort(g.Range.compareRangesUsingStarts);const K=[],Y=ae.reduce((re,X)=>re.isEmpty()?re.endLineNumber===X.startLineNumber?(de.equalsSelection(re)&&(de=X),X):X.startLineNumber>re.endLineNumber+1?(K.push(re),X):new i.Selection(re.startLineNumber,re.startColumn,X.endLineNumber,X.endColumn):X.startLineNumber>re.endLineNumber?(K.push(re),X):new i.Selection(re.startLineNumber,re.startColumn,X.endLineNumber,X.endColumn));K.push(Y);const ne=Z.getModel();if(ne===null)return;const V=[],H=[];let $=de,oe=0;for(let re=0,X=K.length;re<X;re++){const le=K[re],me=le.startLineNumber,we=1;let Le=0,Ee,Me;const Ae=ne.getLineContent(le.endLineNumber).length-le.endColumn;if(le.isEmpty()||le.startLineNumber===le.endLineNumber){const pe=le.getStartPosition();pe.lineNumber<ne.getLineCount()?(Ee=me+1,Me=ne.getLineMaxColumn(Ee)):(Ee=pe.lineNumber,Me=ne.getLineMaxColumn(pe.lineNumber))}else Ee=le.endLineNumber,Me=ne.getLineMaxColumn(Ee);let ke=ne.getLineContent(me);for(let pe=me+1;pe<=Ee;pe++){const ce=ne.getLineContent(pe),be=ne.getLineFirstNonWhitespaceColumn(pe);if(be>=1){let Se=!0;ke===""&&(Se=!1),Se&&(ke.charAt(ke.length-1)===" "||ke.charAt(ke.length-1)===" ")&&(Se=!1,ke=ke.replace(/[\s\uFEFF\xA0]+$/g," "));const Ie=ce.substr(be-1);ke+=(Se?" ":"")+Ie,Se?Le=Ie.length+1:Le=Ie.length}else Le=0}const fe=new g.Range(me,we,Ee,Me);if(!fe.isEmpty()){let pe;le.isEmpty()?(V.push(v.EditOperation.replace(fe,ke)),pe=new i.Selection(fe.startLineNumber-oe,ke.length-Le+1,me-oe,ke.length-Le+1)):le.startLineNumber===le.endLineNumber?(V.push(v.EditOperation.replace(fe,ke)),pe=new i.Selection(le.startLineNumber-oe,le.startColumn,le.endLineNumber-oe,le.endColumn)):(V.push(v.EditOperation.replace(fe,ke)),pe=new i.Selection(le.startLineNumber-oe,le.startColumn,le.startLineNumber-oe,ke.length-Ae)),g.Range.intersectRanges(fe,de)!==null?$=pe:H.push(pe)}oe+=fe.endLineNumber-fe.startLineNumber}H.unshift($),Z.pushUndoStop(),Z.executeEdits(this.id,V,H),Z.pushUndoStop()}}e.JoinLinesAction=j;class F extends E.EditorAction{constructor(){super({id:"editor.action.transpose",label:c.localize(22,null),alias:"Transpose characters around the cursor",precondition:t.EditorContextKeys.writable})}run(te,Z){const ae=Z.getSelections();if(ae===null)return;const de=Z.getModel();if(de===null)return;const K=[];for(let Y=0,ne=ae.length;Y<ne;Y++){const V=ae[Y];if(!V.isEmpty())continue;const H=V.getStartPosition(),$=de.getLineMaxColumn(H.lineNumber);if(H.column>=$){if(H.lineNumber===de.getLineCount())continue;const oe=new g.Range(H.lineNumber,Math.max(1,H.column-1),H.lineNumber+1,1),re=de.getValueInRange(oe).split("").reverse().join("");K.push(new I.ReplaceCommand(new i.Selection(H.lineNumber,Math.max(1,H.column-1),H.lineNumber+1,1),re))}else{const oe=new g.Range(H.lineNumber,Math.max(1,H.column-1),H.lineNumber,H.column+1),re=de.getValueInRange(oe).split("").reverse().join("");K.push(new I.ReplaceCommandThatPreservesSelection(oe,re,new i.Selection(H.lineNumber,H.column+1,H.lineNumber,H.column+1)))}}Z.pushUndoStop(),Z.executeCommands(this.id,K),Z.pushUndoStop()}}e.TransposeAction=F;class U extends E.EditorAction{run(te,Z){const ae=Z.getSelections();if(ae===null)return;const de=Z.getModel();if(de===null)return;const K=Z.getOption(124),Y=[];for(const ne of ae)if(ne.isEmpty()){const V=ne.getStartPosition(),H=Z.getConfiguredWordAtPosition(V);if(!H)continue;const $=new g.Range(V.lineNumber,H.startColumn,V.lineNumber,H.endColumn),oe=de.getValueInRange($);Y.push(v.EditOperation.replace($,this.d(oe,K)))}else{const V=de.getValueInRange(ne);Y.push(v.EditOperation.replace(ne,this.d(V,K)))}Z.pushUndoStop(),Z.executeEdits(this.id,Y),Z.pushUndoStop()}}e.AbstractCaseAction=U;class Q extends U{constructor(){super({id:"editor.action.transformToUppercase",label:c.localize(23,null),alias:"Transform to Uppercase",precondition:t.EditorContextKeys.writable})}d(te,Z){return te.toLocaleUpperCase()}}e.UpperCaseAction=Q;class se extends U{constructor(){super({id:"editor.action.transformToLowercase",label:c.localize(24,null),alias:"Transform to Lowercase",precondition:t.EditorContextKeys.writable})}d(te,Z){return te.toLocaleLowerCase()}}e.LowerCaseAction=se;class he{constructor(te,Z){this.e=te,this.f=Z,this.c=null,this.d=!1}get(){if(!this.d){this.d=!0;try{this.c=new RegExp(this.e,this.f)}catch{}}return this.c}isSupported(){return this.get()!==null}}class ie extends U{constructor(){super({id:"editor.action.transformToTitlecase",label:c.localize(25,null),alias:"Transform to Title Case",precondition:t.EditorContextKeys.writable})}d(te,Z){const ae=ie.titleBoundary.get();return ae?te.toLocaleLowerCase().replace(ae,de=>de.toLocaleUpperCase()):te}}ie.titleBoundary=new he("(^|[^\\p{L}\\p{N}']|((^|\\P{L})'))\\p{L}","gmu"),e.TitleCaseAction=ie;class ue extends U{constructor(){super({id:"editor.action.transformToSnakecase",label:c.localize(26,null),alias:"Transform to Snake Case",precondition:t.EditorContextKeys.writable})}d(te,Z){const ae=ue.caseBoundary.get(),de=ue.singleLetters.get();return!ae||!de?te:te.replace(ae,"$1_$2").replace(de,"$1_$2$3").toLocaleLowerCase()}}ue.caseBoundary=new he("(\\p{Ll})(\\p{Lu})","gmu"),ue.singleLetters=new he("(\\p{Lu}|\\p{N})(\\p{Lu})(\\p{Ll})","gmu"),e.SnakeCaseAction=ue;class J extends U{constructor(){super({id:"editor.action.transformToCamelcase",label:c.localize(27,null),alias:"Transform to Camel Case",precondition:t.EditorContextKeys.writable})}d(te,Z){const ae=J.wordBoundary.get();if(!ae)return te;const de=te.split(ae);return de.shift()+de.map(Y=>Y.substring(0,1).toLocaleUpperCase()+Y.substring(1)).join("")}}J.wordBoundary=new he("[_\\s-]","gm"),e.CamelCaseAction=J;class x extends U{static isSupported(){return[this.e,this.h,this.j].every(Z=>Z.isSupported())}constructor(){super({id:"editor.action.transformToKebabcase",label:c.localize(28,null),alias:"Transform to Kebab Case",precondition:t.EditorContextKeys.writable})}d(te,Z){const ae=x.e.get(),de=x.h.get(),K=x.j.get();return!ae||!de||!K?te:te.replace(K,"$1-$3").replace(ae,"$1-$2").replace(de,"$1-$2").toLocaleLowerCase()}}x.e=new he("(\\p{Ll})(\\p{Lu})","gmu"),x.h=new he("(\\p{Lu}|\\p{N})(\\p{Lu}\\p{Ll})","gmu"),x.j=new he("(\\S)(_)(\\S)","gm"),e.KebabCaseAction=x,(0,E.registerEditorAction)(o),(0,E.registerEditorAction)(u),(0,E.registerEditorAction)(h),(0,E.registerEditorAction)(m),(0,E.registerEditorAction)(p),(0,E.registerEditorAction)(y),(0,E.registerEditorAction)(k),(0,E.registerEditorAction)(D),(0,E.registerEditorAction)(M),(0,E.registerEditorAction)(z),(0,E.registerEditorAction)(R),(0,E.registerEditorAction)(P),(0,E.registerEditorAction)(A),(0,E.registerEditorAction)(T),(0,E.registerEditorAction)(B),(0,E.registerEditorAction)(W),(0,E.registerEditorAction)(j),(0,E.registerEditorAction)(F),(0,E.registerEditorAction)(Q),(0,E.registerEditorAction)(se),ue.caseBoundary.isSupported()&&ue.singleLetters.isSupported()&&(0,E.registerEditorAction)(ue),J.wordBoundary.isSupported()&&(0,E.registerEditorAction)(J),ie.titleBoundary.isSupported()&&(0,E.registerEditorAction)(ie),x.isSupported()&&(0,E.registerEditorAction)(x)}),define(_[750],ee([1,0,2,14]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class E extends C.Disposable{constructor(L){super(),this.a=L,this.q(this.a.onMouseDown(S=>{const v=this.a.getOption(111);v>=0&&S.target.type===6&&S.target.position.column>=v&&this.a.updateOptions({stopRenderingLineAfter:-1})}))}}E.ID="editor.contrib.longLinesHelper",(0,N.registerEditorContribution)(E.ID,E,2)}),define(_[146],ee([1,0,52,11,2,14,4,627,15,411]),function(q,e,C,N,E,I,L,S,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MessageController=void 0;let f=class li{static get(n){return n.getContribution(li.ID)}constructor(n,a){this.d=new E.MutableDisposable,this.f=new E.DisposableStore,this.a=n,this.b=li.MESSAGE_VISIBLE.bindTo(a)}dispose(){this.f.dispose(),this.d.dispose(),this.b.reset()}showMessage(n,a){(0,C.alert)(n),this.b.set(!0),this.d.clear(),this.f.clear(),this.d.value=new i(this.a,a,n),this.f.add(this.a.onDidBlurEditorText(()=>this.closeMessage())),this.f.add(this.a.onDidChangeCursorPosition(()=>this.closeMessage())),this.f.add(this.a.onDidDispose(()=>this.closeMessage())),this.f.add(this.a.onDidChangeModel(()=>this.closeMessage())),this.f.add(new N.TimeoutTimer(()=>this.closeMessage(),3e3));let r;this.f.add(this.a.onMouseMove(c=>{!c.target.position||(r?r.containsPosition(c.target.position)||this.closeMessage():r=new L.Range(a.lineNumber-3,1,c.target.position.lineNumber+3,1))}))}closeMessage(){this.b.reset(),this.f.clear(),this.d.value&&this.f.add(i.fadeOut(this.d.value))}};f.ID="editor.contrib.messageController",f.MESSAGE_VISIBLE=new v.RawContextKey("messageVisible",!1,S.localize(0,null)),f=Ne([ge(1,v.IContextKeyService)],f),e.MessageController=f;const g=I.EditorCommand.bindToContribution(f.get);(0,I.registerEditorCommand)(new g({id:"leaveEditorMessage",precondition:f.MESSAGE_VISIBLE,handler:t=>t.closeMessage(),kbOpts:{weight:100+30,primary:9}}));class i{static fadeOut(n){const a=()=>{n.dispose(),clearTimeout(r),n.getDomNode().removeEventListener("animationend",a)},r=setTimeout(a,110);return n.getDomNode().addEventListener("animationend",a),n.getDomNode().classList.add("fadeOut"),{dispose:a}}constructor(n,{lineNumber:a,column:r},c){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.a=n,this.a.revealLinesInCenterIfOutsideViewport(a,a,0),this.b={lineNumber:a,column:r},this.d=document.createElement("div"),this.d.classList.add("monaco-editor-overlaymessage"),this.d.style.marginLeft="-6px";const d=document.createElement("div");d.classList.add("anchor","top"),this.d.appendChild(d);const s=document.createElement("div");s.classList.add("message"),s.textContent=c,this.d.appendChild(s);const l=document.createElement("div");l.classList.add("anchor","below"),this.d.appendChild(l),this.a.addContentWidget(this),this.d.classList.add("fadeIn")}dispose(){this.a.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this.d}getPosition(){return{position:this.b,preference:[1,2],positionAffinity:1}}afterRender(n){this.d.classList.toggle("below",n===2)}}(0,I.registerEditorContribution)(f.ID,f,4)}),define(_[751],ee([1,0,2,14,146,634]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ReadOnlyMessageController=void 0;class L extends C.Disposable{constructor(v){super(),this.a=v,this.q(this.a.onDidAttemptReadOnlyEdit(()=>this.b()))}b(){const v=E.MessageController.get(this.a);v&&this.a.hasModel()&&(this.a.isSimpleWidget?v.showMessage(I.localize(0,null),this.a.getPosition()):v.showMessage(I.localize(1,null),this.a.getPosition()))}}L.ID="editor.contrib.readOnlyMessageController",e.ReadOnlyMessageController=L,(0,N.registerEditorContribution)(L.ID,L,2)}),define(_[752],ee([1,0,17,20,13,14,12,4,22,24,267,499,637,28,25,19,61,18,21]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.provideSelectionRanges=void 0;class l{constructor(b,y){this.index=b,this.ranges=y}mov(b){const y=this.index+(b?1:-1);if(y<0||y>=this.ranges.length)return this;const k=new l(y,this.ranges);return k.ranges[y].equalsRange(this.ranges[this.index])?k.mov(b):k}}let o=class Wi{static get(b){return b.getContribution(Wi.ID)}constructor(b,y){this.f=b,this.g=y,this.e=!1}dispose(){var b;(b=this.d)===null||b===void 0||b.dispose()}run(b){return ye(this,void 0,void 0,function*(){if(!this.f.hasModel())return;const y=this.f.getSelections(),k=this.f.getModel();if(this.c||(yield m(this.g.selectionRangeProvider,k,y.map(M=>M.getPosition()),this.f.getOption(107),N.CancellationToken.None).then(M=>{var z;if(!(!C.isNonEmptyArray(M)||M.length!==y.length)&&!(!this.f.hasModel()||!C.equals(this.f.getSelections(),y,(R,P)=>R.equalsSelection(P)))){for(let R=0;R<M.length;R++)M[R]=M[R].filter(P=>P.containsPosition(y[R].getStartPosition())&&P.containsPosition(y[R].getEndPosition())),M[R].unshift(y[R]);this.c=M.map(R=>new l(0,R)),(z=this.d)===null||z===void 0||z.dispose(),this.d=this.f.onDidChangeCursorPosition(()=>{var R;this.e||((R=this.d)===null||R===void 0||R.dispose(),this.c=void 0)})}})),!this.c)return;this.c=this.c.map(M=>M.mov(b));const D=this.c.map(M=>v.Selection.fromPositions(M.ranges[M.index].getStartPosition(),M.ranges[M.index].getEndPosition()));this.e=!0;try{this.f.setSelections(D)}finally{this.e=!1}})}};o.ID="editor.contrib.smartSelectController",o=Ne([ge(1,r.ILanguageFeaturesService)],o);class u extends I.EditorAction{constructor(b,y){super(y),this.d=b}run(b,y){return ye(this,void 0,void 0,function*(){const k=o.get(y);k&&(yield k.run(this.d))})}}class h extends u{constructor(){super(!0,{id:"editor.action.smartSelect.expand",label:t.localize(0,null),alias:"Expand Selection",precondition:void 0,kbOpts:{kbExpr:f.EditorContextKeys.editorTextFocus,primary:1553,mac:{primary:3345,secondary:[1297]},weight:100},menuOpts:{menuId:n.MenuId.MenubarSelectionMenu,group:"1_basic",title:t.localize(1,null),order:2}})}}a.CommandsRegistry.registerCommandAlias("editor.action.smartSelect.grow","editor.action.smartSelect.expand");class w extends u{constructor(){super(!1,{id:"editor.action.smartSelect.shrink",label:t.localize(2,null),alias:"Shrink Selection",precondition:void 0,kbOpts:{kbExpr:f.EditorContextKeys.editorTextFocus,primary:1551,mac:{primary:3343,secondary:[1295]},weight:100},menuOpts:{menuId:n.MenuId.MenubarSelectionMenu,group:"1_basic",title:t.localize(3,null),order:3}})}}(0,I.registerEditorContribution)(o.ID,o,4),(0,I.registerEditorAction)(h),(0,I.registerEditorAction)(w);function m(p,b,y,k,D){return ye(this,void 0,void 0,function*(){const M=p.all(b).concat(new i.WordSelectionRangeProvider);M.length===1&&M.unshift(new g.BracketSelectionRangeProvider);const z=[],R=[];for(const P of M)z.push(Promise.resolve(P.provideSelectionRanges(b,y,D)).then(A=>{if(C.isNonEmptyArray(A)&&A.length===y.length)for(let T=0;T<y.length;T++){R[T]||(R[T]=[]);for(const O of A[T])S.Range.isIRange(O.range)&&S.Range.containsPosition(O.range,y[T])&&R[T].push(S.Range.lift(O.range))}},E.onUnexpectedExternalError));return yield Promise.all(z),R.map(P=>{if(P.length===0)return[];P.sort((B,W)=>L.Position.isBefore(B.getStartPosition(),W.getStartPosition())?1:L.Position.isBefore(W.getStartPosition(),B.getStartPosition())||L.Position.isBefore(B.getEndPosition(),W.getEndPosition())?-1:L.Position.isBefore(W.getEndPosition(),B.getEndPosition())?1:0);const A=[];let T;for(const B of P)(!T||S.Range.containsRange(B,T)&&!S.Range.equalsRange(B,T))&&(A.push(B),T=B);if(!k.selectLeadingAndTrailingWhitespace)return A;const O=[A[0]];for(let B=1;B<A.length;B++){const W=A[B-1],j=A[B];if(j.startLineNumber!==W.startLineNumber||j.endLineNumber!==W.endLineNumber){const F=new S.Range(W.startLineNumber,b.getLineFirstNonWhitespaceColumn(W.startLineNumber),W.endLineNumber,b.getLineLastNonWhitespaceColumn(W.endLineNumber));F.containsRange(W)&&!F.equalsRange(W)&&j.containsRange(F)&&!j.equalsRange(F)&&O.push(F);const U=new S.Range(W.startLineNumber,1,W.endLineNumber,b.getLineMaxColumn(W.endLineNumber));U.containsRange(W)&&!U.equalsRange(F)&&j.containsRange(U)&&!j.equalsRange(U)&&O.push(U)}O.push(j)}return O})})}e.provideSelectionRanges=m,a.CommandsRegistry.registerCommand("_executeSelectionRangeProvider",function(p,...b){return ye(this,void 0,void 0,function*(){const[y,k]=b;(0,d.assertType)(s.URI.isUri(y));const D=p.get(r.ILanguageFeaturesService).selectionRangeProvider,M=yield p.get(c.ITextModelService).createModelReference(y);try{return m(D,M.object.textEditorModel,k,{selectLeadingAndTrailingWhitespace:!0},N.CancellationToken.None)}finally{M.dispose()}})})}),define(_[753],ee([1,0,20,63,54,2,14,30,4,19,165,268,122,312,269,96,8]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SuggestInlineCompletions=void 0;class d{constructor(h,w,m,p,b,y){this.range=h,this.insertText=w,this.filterText=m,this.additionalTextEdits=p,this.command=b,this.completion=y}}let s=class extends I.RefCountedDisposable{constructor(h,w,m,p,b,y){super(b.disposable),this.model=h,this.line=w,this.word=m,this.completionModel=p,this.c=y}canBeReused(h,w,m){return this.model===h&&this.line===w&&this.word.word.length>0&&this.word.startColumn===m.startColumn&&this.word.endColumn<m.endColumn&&this.completionModel.getIncompleteProvider().size===0}get items(){var h;const w=[],{items:m}=this.completionModel,p=this.c.select(this.model,{lineNumber:this.line,column:this.word.endColumn+this.completionModel.lineContext.characterCountDelta},m),b=E.Iterable.slice(m,p),y=E.Iterable.slice(m,0,p);let k=5;for(const D of E.Iterable.concat(b,y)){if(D.score===N.FuzzyScore.Default)continue;const M=new v.Range(D.editStart.lineNumber,D.editStart.column,D.editInsertEnd.lineNumber,D.editInsertEnd.column+this.completionModel.lineContext.characterCountDelta),z=D.completion.insertTextRules&&D.completion.insertTextRules&g.CompletionItemInsertTextRule.InsertAsSnippet?{snippet:D.completion.insertText}:D.completion.insertText;w.push(new d(M,z,(h=D.filterTextLow)!==null&&h!==void 0?h:D.labelLow,D.completion.additionalTextEdits,D.completion.command,D)),k-->=0&&D.resolve(C.CancellationToken.None)}return w}};s=Ne([ge(5,n.ISuggestMemoryService)],s);let l=class{constructor(h,w,m,p){this.b=h,this.c=w,this.d=m,this.e=p}provideInlineCompletions(h,w,m,p){var b;return ye(this,void 0,void 0,function*(){if(m.selectedSuggestionInfo)return;const y=this.b(84,h);if(t.QuickSuggestionsOptions.isAllOff(y))return;h.tokenization.tokenizeIfCheap(w.lineNumber);const k=h.tokenization.getLineTokens(w.lineNumber),D=k.getStandardTokenType(k.findTokenIndexAtOffset(Math.max(w.column-1-1,0)));if(t.QuickSuggestionsOptions.valueFor(y,D)!=="inline")return;let M=h.getWordAtPosition(w),z;if(M?.word||(z=this.f(h,w)),!M?.word&&!z||(M||(M=h.getWordUntilPosition(w)),M.endColumn!==w.column))return;let R;const P=h.getValueInRange(new v.Range(w.lineNumber,1,w.lineNumber,w.column));if(!z&&((b=this.a)===null||b===void 0?void 0:b.canBeReused(h,w.lineNumber,M))){const A=new i.LineContext(P,w.column-this.a.word.endColumn);this.a.completionModel.lineContext=A,this.a.acquire(),R=this.a}else{const A=yield(0,t.provideSuggestionItems)(this.c.completionProvider,h,w,new t.CompletionOptions(void 0,void 0,z?.providers),z&&{triggerKind:1,triggerCharacter:z.ch},p);let T;A.needsClipboard&&(T=yield this.d.readText());const O=new i.CompletionModel(A.items,w.column,new i.LineContext(P,0),a.WordDistance.None,this.b(112,h),this.b(106,h),{boostFullMatch:!1,firstMatchCanBeWeak:!1},T);R=new s(h,w.lineNumber,M,O,A,this.e)}return this.a=R,R})}handleItemDidShow(h,w){w.completion.resolve(C.CancellationToken.None)}freeInlineCompletions(h){h.release()}f(h,w){var m;const p=h.getValueInRange(v.Range.fromPositions({lineNumber:w.lineNumber,column:w.column-1},w)),b=new Set;for(const y of this.c.completionProvider.all(h))!((m=y.triggerCharacters)===null||m===void 0)&&m.includes(p)&&b.add(y);if(b.size!==0)return{providers:b,ch:p}}};l=Ne([ge(1,f.ILanguageFeaturesService),ge(2,r.IClipboardService),ge(3,n.ISuggestMemoryService)],l),e.SuggestInlineCompletions=l;let o=class Pt{constructor(h,w,m,p){if(++Pt.a===1){const b=p.createInstance(l,(y,k)=>{var D;return((D=m.listCodeEditors().find(z=>z.getModel()===k))!==null&&D!==void 0?D:h).getOption(y)});Pt.b=w.inlineCompletionsProvider.register("*",b)}}dispose(){var h;--Pt.a===0&&((h=Pt.b)===null||h===void 0||h.dispose(),Pt.b=void 0)}};o.a=0,o=Ne([ge(1,f.ILanguageFeaturesService),ge(2,S.ICodeEditorService),ge(3,c.IInstantiationService)],o),(0,L.registerEditorContribution)("suggest.inlineCompletionsProvider",o,0)}),define(_[754],ee([1,0,11,20,13,6,2,9,22,108,269,96,27,15,62,80,268,122,19,63,18]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s,l,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SuggestModel=e.LineContext=void 0;class u{static shouldAutoTrigger(y){if(!y.hasModel())return!1;const k=y.getModel(),D=y.getPosition();k.tokenization.tokenizeIfCheap(D.lineNumber);const M=k.getWordAtPosition(D);return!(!M||M.endColumn!==D.column||!isNaN(Number(M.word)))}constructor(y,k,D){this.leadingLineContent=y.getLineContent(k.lineNumber).substr(0,k.column-1),this.leadingWord=y.getWordUntilPosition(k),this.lineNumber=k.lineNumber,this.column=k.column,this.triggerOptions=D}}e.LineContext=u;function h(b){return b.getOption(112).preview}function w(b,y,k){var D,M;if(!Boolean(y.getContextKeyValue("inlineSuggestionVisible")))return!0;const z=k.getValue("editor.inlineSuggest.allowQuickSuggestions",{overrideIdentifier:(D=b.getModel())===null||D===void 0?void 0:D.getLanguageId(),resource:(M=b.getModel())===null||M===void 0?void 0:M.uri});return z!==void 0?Boolean(z):!1}function m(b,y,k){var D,M;if(!Boolean(y.getContextKeyValue("inlineSuggestionVisible")))return!0;const z=k.getValue("editor.inlineSuggest.allowSuggestOnTriggerCharacters",{overrideIdentifier:(D=b.getModel())===null||D===void 0?void 0:D.getLanguageId(),resource:(M=b.getModel())===null||M===void 0?void 0:M.uri});return z!==void 0?Boolean(z):!1}let p=class xi{constructor(y,k,D,M,z,R,P,A){this.n=y,this.o=k,this.p=D,this.q=M,this.r=z,this.s=R,this.t=P,this.u=A,this.a=new L.DisposableStore,this.b=new L.DisposableStore,this.c=new C.TimeoutTimer,this.d=void 0,this.j=new L.DisposableStore,this.k=new I.Emitter,this.l=new I.Emitter,this.m=new I.Emitter,this.onDidCancel=this.k.event,this.onDidTrigger=this.l.event,this.onDidSuggest=this.m.event,this.B=0,this.h=this.n.getSelection()||new v.Selection(1,1,1,1),this.a.add(this.n.onDidChangeModel(()=>{this.v(),this.cancel()})),this.a.add(this.n.onDidChangeModelLanguage(()=>{this.v(),this.cancel()})),this.a.add(this.n.onDidChangeConfiguration(()=>{this.v()})),this.a.add(this.u.completionProvider.onDidChange(()=>{this.v(),this.w()}));let T=!1;this.a.add(this.n.onDidCompositionStart(()=>{T=!0})),this.a.add(this.n.onDidCompositionEnd(()=>{T=!1,this.y()})),this.a.add(this.n.onDidChangeCursorSelection(O=>{T||this.x(O)})),this.a.add(this.n.onDidChangeModelContent(()=>{!T&&this.d!==void 0&&this.A()})),this.v()}dispose(){(0,L.dispose)(this.b),(0,L.dispose)([this.k,this.m,this.l,this.c]),this.a.dispose(),this.j.dispose(),this.cancel()}v(){if(this.b.clear(),this.n.getOption(86)||!this.n.hasModel()||!this.n.getOption(115))return;const y=new Map;for(const D of this.u.completionProvider.all(this.n.getModel()))for(const M of D.triggerCharacters||[]){let z=y.get(M);z||(z=new Set,z.add((0,d.getSnippetSuggestSupport)()),y.set(M,z)),z.add(D)}const k=D=>{var M;if(!m(this.n,this.s,this.t)||u.shouldAutoTrigger(this.n))return;if(!D){const P=this.n.getPosition();D=this.n.getModel().getLineContent(P.lineNumber).substr(0,P.column-1)}let z="";(0,S.isLowSurrogate)(D.charCodeAt(D.length-1))?(0,S.isHighSurrogate)(D.charCodeAt(D.length-2))&&(z=D.substr(D.length-2)):z=D.charAt(D.length-1);const R=y.get(z);if(R){const P=new Map;if(this.i)for(const[A,T]of this.i.getItemsByProvider())R.has(A)||P.set(A,T);this.trigger({auto:!0,triggerKind:1,triggerCharacter:z,retrigger:Boolean(this.i),clipboardText:(M=this.i)===null||M===void 0?void 0:M.clipboardText,completionOptions:{providerFilter:R,providerItemsToReuse:P}})}};this.b.add(this.n.onDidType(k)),this.b.add(this.n.onDidCompositionEnd(()=>k()))}get state(){return this.d?this.d.auto?2:1:0}cancel(y=!1){var k;this.d!==void 0&&(this.c.cancel(),(k=this.f)===null||k===void 0||k.cancel(),this.f=void 0,this.d=void 0,this.i=void 0,this.g=void 0,this.k.fire({retrigger:y}))}clear(){this.j.clear()}w(){this.d!==void 0&&(!this.n.hasModel()||!this.u.completionProvider.has(this.n.getModel())?this.cancel():this.trigger({auto:this.d.auto,retrigger:!0}))}x(y){if(!this.n.hasModel())return;const k=this.h;if(this.h=this.n.getSelection(),!y.selection.isEmpty()||y.reason!==0&&y.reason!==3||y.source!=="keyboard"&&y.source!=="deleteLeft"){this.cancel();return}this.d===void 0&&y.reason===0?(k.containsRange(this.h)||k.getEndPosition().isBeforeOrEqual(this.h.getPosition()))&&this.z():this.d!==void 0&&y.reason===3&&this.A()}y(){this.d===void 0?this.z():this.A()}z(){d.QuickSuggestionsOptions.isAllOff(this.n.getOption(84))||(this.cancel(),this.c.cancelAndSet(()=>{if(this.d!==void 0||!u.shouldAutoTrigger(this.n)||!this.n.hasModel()||!this.n.hasWidgetFocus())return;const y=this.n.getModel(),k=this.n.getPosition(),D=this.n.getOption(84);if(!d.QuickSuggestionsOptions.isAllOff(D)){if(!d.QuickSuggestionsOptions.isAllOn(D)){y.tokenization.tokenizeIfCheap(k.lineNumber);const M=y.tokenization.getLineTokens(k.lineNumber),z=M.getStandardTokenType(M.findTokenIndexAtOffset(Math.max(k.column-1-1,0)));if(d.QuickSuggestionsOptions.valueFor(D,z)!=="on")return}!w(this.n,this.s,this.t)||!this.u.completionProvider.has(y)||this.trigger({auto:!0})}},this.n.getOption(85)))}A(){(0,o.assertType)(this.n.hasModel()),(0,o.assertType)(this.d!==void 0);const y=this.n.getModel(),k=this.n.getPosition(),D=new u(y,k,Object.assign(Object.assign({},this.d),{refilter:!0}));this.E(D)}trigger(y){var k,D,M,z,R,P;if(!this.n.hasModel())return;const A=this.n.getModel(),T=new u(A,this.n.getPosition(),y);this.cancel(y.retrigger),this.d=y,this.l.fire({auto:y.auto,shy:(k=y.shy)!==null&&k!==void 0?k:!1,position:this.n.getPosition()}),this.g=T;let O={triggerKind:(D=y.triggerKind)!==null&&D!==void 0?D:0};y.triggerCharacter&&(O={triggerKind:1,triggerCharacter:y.triggerCharacter}),this.f=new N.CancellationTokenSource;const B=this.n.getOption(106);let W=1;switch(B){case"top":W=0;break;case"bottom":W=2;break}const{itemKind:j,showDeprecated:F}=xi.D(this.n),U=new d.CompletionOptions(W,(z=(M=y.completionOptions)===null||M===void 0?void 0:M.kindFilter)!==null&&z!==void 0?z:j,(R=y.completionOptions)===null||R===void 0?void 0:R.providerFilter,(P=y.completionOptions)===null||P===void 0?void 0:P.providerItemsToReuse,F),Q=g.WordDistance.create(this.o,this.n),se=(0,d.provideSuggestionItems)(this.u.completionProvider,A,this.n.getPosition(),U,O,this.f.token);Promise.all([se,Q]).then(([he,ie])=>ye(this,void 0,void 0,function*(){var ue;if((ue=this.f)===null||ue===void 0||ue.dispose(),!this.n.hasModel())return;let J=y?.clipboardText;if(!J&&he.needsClipboard&&(J=yield this.p.readText()),this.d===void 0)return;const x=this.n.getModel(),G=new u(x,this.n.getPosition(),y),te=Object.assign(Object.assign({},l.FuzzyScoreOptions.default),{firstMatchCanBeWeak:!this.n.getOption(112).matchOnWordStartOnly});this.i=new c.CompletionModel(he.items,this.g.column,{leadingLineContent:G.leadingLineContent,characterCountDelta:G.column-this.g.column},ie,this.n.getOption(112),this.n.getOption(106),te,J),this.j.add(he.disposable),this.E(G),this.C(he.durations)})).catch(E.onUnexpectedError)}C(y){this.B++%230===0&&setTimeout(()=>{this.q.publicLog2("suggest.durations.json",{data:JSON.stringify(y)}),this.r.debug("suggest.durations.json",y)})}static D(y){const k=new Set;y.getOption(106)==="none"&&k.add(27);const M=y.getOption(112);return M.showMethods||k.add(0),M.showFunctions||k.add(1),M.showConstructors||k.add(2),M.showFields||k.add(3),M.showVariables||k.add(4),M.showClasses||k.add(5),M.showStructs||k.add(6),M.showInterfaces||k.add(7),M.showModules||k.add(8),M.showProperties||k.add(9),M.showEvents||k.add(10),M.showOperators||k.add(11),M.showUnits||k.add(12),M.showValues||k.add(13),M.showConstants||k.add(14),M.showEnums||k.add(15),M.showEnumMembers||k.add(16),M.showKeywords||k.add(17),M.showWords||k.add(18),M.showColors||k.add(19),M.showFiles||k.add(20),M.showReferences||k.add(21),M.showColors||k.add(22),M.showFolders||k.add(23),M.showTypeParameters||k.add(24),M.showSnippets||k.add(27),M.showUsers||k.add(25),M.showIssues||k.add(26),{itemKind:k,showDeprecated:M.showDeprecated}}E(y){if(!!this.g){if(y.lineNumber!==this.g.lineNumber){this.cancel();return}if((0,S.getLeadingWhitespace)(y.leadingLineContent)!==(0,S.getLeadingWhitespace)(this.g.leadingLineContent)){this.cancel();return}if(y.column<this.g.column){y.leadingWord.word?this.trigger({auto:this.g.triggerOptions.auto,retrigger:!0}):this.cancel();return}if(!!this.i){if(y.leadingWord.word.length!==0&&y.leadingWord.startColumn>this.g.leadingWord.startColumn){if(u.shouldAutoTrigger(this.n)&&this.g){const D=this.i.getItemsByProvider();this.trigger({auto:this.g.triggerOptions.auto,retrigger:!0,clipboardText:this.i.clipboardText,completionOptions:{providerItemsToReuse:D}})}return}if(y.column>this.g.column&&this.i.getIncompleteProvider().size>0&&y.leadingWord.word.length!==0){const k=new Map,D=new Set;for(const[M,z]of this.i.getItemsByProvider())z.length>0&&z[0].container.incomplete?D.add(M):k.set(M,z);this.trigger({auto:this.g.triggerOptions.auto,triggerKind:2,retrigger:!0,clipboardText:this.i.clipboardText,completionOptions:{providerFilter:D,providerItemsToReuse:k}})}else{const k=this.i.lineContext;let D=!1;if(this.i.lineContext={leadingLineContent:y.leadingLineContent,characterCountDelta:y.column-this.g.column},this.i.items.length===0){const M=u.shouldAutoTrigger(this.n);if(!this.g){this.cancel();return}if(M&&this.g.leadingWord.endColumn<y.leadingWord.startColumn){this.trigger({auto:this.g.triggerOptions.auto,retrigger:!0});return}if(this.g.triggerOptions.auto){this.cancel();return}else if(this.i.lineContext=k,D=this.i.items.length>0,D&&y.leadingWord.word.length===0){this.cancel();return}}this.m.fire({completionModel:this.i,triggerOptions:y.triggerOptions,isFrozen:D})}}}}};p=Ne([ge(1,f.IEditorWorkerService),ge(2,i.IClipboardService),ge(3,r.ITelemetryService),ge(4,a.ILogService),ge(5,n.IContextKeyService),ge(6,t.IConfigurationService),ge(7,s.ILanguageFeaturesService)],p),e.SuggestModel=p}),define(_[755],ee([1,0,60,14,649]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class I extends N.EditorAction{constructor(){super({id:"editor.action.forceRetokenize",label:E.localize(0,null),alias:"Developer: Force Retokenize",precondition:void 0})}run(S,v){if(!v.hasModel())return;const f=v.getModel();f.tokenization.resetTokenization();const g=new C.StopWatch(!0);f.tokenization.forceTokenization(f.getLineCount()),g.stop(),console.log(`tokenization took ${g.elapsed()}`)}}(0,N.registerEditorAction)(I)}),define(_[756],ee([1,0,2,44,14,30,651,144]),function(q,e,C,N,E,I,L,S){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UnusualLineTerminatorsDetector=void 0;const v="ignoreUnusualLineTerminators";function f(t,n,a){t.setModelProperty(n.uri,v,a)}function g(t,n){return t.getModelProperty(n.uri,v)}let i=class extends C.Disposable{constructor(n,a,r){super(),this.c=n,this.g=a,this.h=r,this.b=!1,this.a=this.c.getOption(120),this.q(this.c.onDidChangeConfiguration(c=>{c.hasChanged(120)&&(this.a=this.c.getOption(120),this.i())})),this.q(this.c.onDidChangeModel(()=>{this.i()})),this.q(this.c.onDidChangeModelContent(c=>{c.isUndoing||this.i()})),this.i()}i(){return ye(this,void 0,void 0,function*(){if(this.a==="off"||!this.c.hasModel())return;const n=this.c.getModel();if(!n.mightContainUnusualLineTerminators()||g(this.h,n)===!0||this.c.getOption(86))return;if(this.a==="auto"){n.removeUnusualLineTerminators(this.c.getSelections());return}if(this.b)return;let r;try{this.b=!0,r=yield this.g.confirm({title:L.localize(0,null),message:L.localize(1,null),detail:L.localize(2,null,(0,N.basename)(n.uri)),primaryButton:L.localize(3,null),cancelButton:L.localize(4,null)})}finally{this.b=!1}if(!r.confirmed){f(this.h,n,!0);return}n.removeUnusualLineTerminators(this.c.getSelections())})}};i.ID="editor.contrib.unusualLineTerminatorsDetector",i=Ne([ge(1,S.IDialogService),ge(2,I.ICodeEditorService)],i),e.UnusualLineTerminatorsDetector=i,(0,E.registerEditorContribution)(i.ID,i,1)}),define(_[315],ee([1,0,14,114,40,65,162,132,12,4,22,24,34,654,77,15,302]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c){"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 d extends C.EditorCommand{constructor(J){super(J),this.d=J.inSelectionMode,this.e=J.wordNavigationType}runEditorCommand(J,x,G){if(!x.hasModel())return;const te=(0,S.getMapForWordSeparators)(x.getOption(124)),Z=x.getModel(),de=x.getSelections().map(K=>{const Y=new v.Position(K.positionLineNumber,K.positionColumn),ne=this.j(te,Z,Y,this.e);return this.h(K,ne,this.d)});if(Z.pushStackElement(),x._getViewModel().setCursorStates("moveWordCommand",3,de.map(K=>I.CursorState.fromModelSelection(K))),de.length===1){const K=new v.Position(de[0].positionLineNumber,de[0].positionColumn);x.revealPosition(K,0)}}h(J,x,G){return G?new g.Selection(J.selectionStartLineNumber,J.selectionStartColumn,x.lineNumber,x.column):new g.Selection(x.lineNumber,x.column,x.lineNumber,x.column)}}e.MoveWordCommand=d;class s extends d{j(J,x,G,te){return L.WordOperations.moveWordLeft(J,x,G,te)}}e.WordLeftCommand=s;class l extends d{j(J,x,G,te){return L.WordOperations.moveWordRight(J,x,G,te)}}e.WordRightCommand=l;class o extends s{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0})}}e.CursorWordStartLeft=o;class u extends s{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})}}e.CursorWordEndLeft=u;class h extends s{constructor(){var J;super({inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0,kbOpts:{kbExpr:r.ContextKeyExpr.and(i.EditorContextKeys.textInputFocus,(J=r.ContextKeyExpr.and(a.CONTEXT_ACCESSIBILITY_MODE_ENABLED,c.IsWindowsContext))===null||J===void 0?void 0:J.negate()),primary:2063,mac:{primary:527},weight:100}})}}e.CursorWordLeft=h;class w extends s{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0})}}e.CursorWordStartLeftSelect=w;class m extends s{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})}}e.CursorWordEndLeftSelect=m;class p extends s{constructor(){var J;super({inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0,kbOpts:{kbExpr:r.ContextKeyExpr.and(i.EditorContextKeys.textInputFocus,(J=r.ContextKeyExpr.and(a.CONTEXT_ACCESSIBILITY_MODE_ENABLED,c.IsWindowsContext))===null||J===void 0?void 0:J.negate()),primary:3087,mac:{primary:1551},weight:100}})}}e.CursorWordLeftSelect=p;class b extends s{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0})}j(J,x,G,te){return super.j((0,S.getMapForWordSeparators)(E.EditorOptions.wordSeparators.defaultValue),x,G,te)}}e.CursorWordAccessibilityLeft=b;class y extends s{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0})}j(J,x,G,te){return super.j((0,S.getMapForWordSeparators)(E.EditorOptions.wordSeparators.defaultValue),x,G,te)}}e.CursorWordAccessibilityLeftSelect=y;class k extends l{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})}}e.CursorWordStartRight=k;class D extends l{constructor(){var J;super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:r.ContextKeyExpr.and(i.EditorContextKeys.textInputFocus,(J=r.ContextKeyExpr.and(a.CONTEXT_ACCESSIBILITY_MODE_ENABLED,c.IsWindowsContext))===null||J===void 0?void 0:J.negate()),primary:2065,mac:{primary:529},weight:100}})}}e.CursorWordEndRight=D;class M extends l{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})}}e.CursorWordRight=M;class z extends l{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})}}e.CursorWordStartRightSelect=z;class R extends l{constructor(){var J;super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:r.ContextKeyExpr.and(i.EditorContextKeys.textInputFocus,(J=r.ContextKeyExpr.and(a.CONTEXT_ACCESSIBILITY_MODE_ENABLED,c.IsWindowsContext))===null||J===void 0?void 0:J.negate()),primary:3089,mac:{primary:1553},weight:100}})}}e.CursorWordEndRightSelect=R;class P extends l{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})}}e.CursorWordRightSelect=P;class A extends l{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0})}j(J,x,G,te){return super.j((0,S.getMapForWordSeparators)(E.EditorOptions.wordSeparators.defaultValue),x,G,te)}}e.CursorWordAccessibilityRight=A;class T extends l{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0})}j(J,x,G,te){return super.j((0,S.getMapForWordSeparators)(E.EditorOptions.wordSeparators.defaultValue),x,G,te)}}e.CursorWordAccessibilityRightSelect=T;class O extends C.EditorCommand{constructor(J){super(J),this.d=J.whitespaceHeuristics,this.e=J.wordNavigationType}runEditorCommand(J,x,G){const te=J.get(t.ILanguageConfigurationService);if(!x.hasModel())return;const Z=(0,S.getMapForWordSeparators)(x.getOption(124)),ae=x.getModel(),de=x.getSelections(),K=x.getOption(5),Y=x.getOption(8),ne=te.getLanguageConfiguration(ae.getLanguageId()).getAutoClosingPairs(),V=x._getViewModel(),H=de.map($=>{const oe=this.h({wordSeparators:Z,model:ae,selection:$,whitespaceHeuristics:this.d,autoClosingDelete:x.getOption(6),autoClosingBrackets:K,autoClosingQuotes:Y,autoClosingPairs:ne,autoClosedCharacters:V.getCursorAutoClosedCharacters()},this.e);return new N.ReplaceCommand(oe,"")});x.pushUndoStop(),x.executeCommands(this.id,H),x.pushUndoStop()}}e.DeleteWordCommand=O;class B extends O{h(J,x){const G=L.WordOperations.deleteWordLeft(J,x);return G||new f.Range(1,1,1,1)}}e.DeleteWordLeftCommand=B;class W extends O{h(J,x){const G=L.WordOperations.deleteWordRight(J,x);if(G)return G;const te=J.model.getLineCount(),Z=J.model.getLineMaxColumn(te);return new f.Range(te,Z,te,Z)}}e.DeleteWordRightCommand=W;class j extends B{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:i.EditorContextKeys.writable})}}e.DeleteWordStartLeft=j;class F extends B{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:i.EditorContextKeys.writable})}}e.DeleteWordEndLeft=F;class U extends B{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:i.EditorContextKeys.writable,kbOpts:{kbExpr:i.EditorContextKeys.textInputFocus,primary:2049,mac:{primary:513},weight:100}})}}e.DeleteWordLeft=U;class Q extends W{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:i.EditorContextKeys.writable})}}e.DeleteWordStartRight=Q;class se extends W{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:i.EditorContextKeys.writable})}}e.DeleteWordEndRight=se;class he extends W{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:i.EditorContextKeys.writable,kbOpts:{kbExpr:i.EditorContextKeys.textInputFocus,primary:2068,mac:{primary:532},weight:100}})}}e.DeleteWordRight=he;class ie extends C.EditorAction{constructor(){super({id:"deleteInsideWord",precondition:i.EditorContextKeys.writable,label:n.localize(0,null),alias:"Delete Word"})}run(J,x,G){if(!x.hasModel())return;const te=(0,S.getMapForWordSeparators)(x.getOption(124)),Z=x.getModel(),de=x.getSelections().map(K=>{const Y=L.WordOperations.deleteInsideWord(te,Z,K);return new N.ReplaceCommand(Y,"")});x.pushUndoStop(),x.executeCommands(this.id,de),x.pushUndoStop()}}e.DeleteInsideWord=ie,(0,C.registerEditorCommand)(new o),(0,C.registerEditorCommand)(new u),(0,C.registerEditorCommand)(new h),(0,C.registerEditorCommand)(new w),(0,C.registerEditorCommand)(new m),(0,C.registerEditorCommand)(new p),(0,C.registerEditorCommand)(new k),(0,C.registerEditorCommand)(new D),(0,C.registerEditorCommand)(new M),(0,C.registerEditorCommand)(new z),(0,C.registerEditorCommand)(new R),(0,C.registerEditorCommand)(new P),(0,C.registerEditorCommand)(new b),(0,C.registerEditorCommand)(new y),(0,C.registerEditorCommand)(new A),(0,C.registerEditorCommand)(new T),(0,C.registerEditorCommand)(new j),(0,C.registerEditorCommand)(new F),(0,C.registerEditorCommand)(new U),(0,C.registerEditorCommand)(new Q),(0,C.registerEditorCommand)(new se),(0,C.registerEditorCommand)(new he),(0,C.registerEditorAction)(ie)}),define(_[757],ee([1,0,14,162,4,24,315,25]),function(q,e,C,N,E,I,L,S){"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 v extends L.DeleteWordCommand{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:I.EditorContextKeys.writable,kbOpts:{kbExpr:I.EditorContextKeys.textInputFocus,primary:0,mac:{primary:769},weight:100}})}h(d,s){const l=N.WordPartOperations.deleteWordPartLeft(d);return l||new E.Range(1,1,1,1)}}e.DeleteWordPartLeft=v;class f extends L.DeleteWordCommand{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:I.EditorContextKeys.writable,kbOpts:{kbExpr:I.EditorContextKeys.textInputFocus,primary:0,mac:{primary:788},weight:100}})}h(d,s){const l=N.WordPartOperations.deleteWordPartRight(d);if(l)return l;const o=d.model.getLineCount(),u=d.model.getLineMaxColumn(o);return new E.Range(o,u,o,u)}}e.DeleteWordPartRight=f;class g extends L.MoveWordCommand{j(d,s,l,o){return N.WordPartOperations.moveWordPartLeft(d,s,l)}}e.WordPartLeftCommand=g;class i extends g{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:I.EditorContextKeys.textInputFocus,primary:0,mac:{primary:783},weight:100}})}}e.CursorWordPartLeft=i,S.CommandsRegistry.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");class t extends g{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:I.EditorContextKeys.textInputFocus,primary:0,mac:{primary:1807},weight:100}})}}e.CursorWordPartLeftSelect=t,S.CommandsRegistry.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");class n extends L.MoveWordCommand{j(d,s,l,o){return N.WordPartOperations.moveWordPartRight(d,s,l)}}e.WordPartRightCommand=n;class a extends n{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:I.EditorContextKeys.textInputFocus,primary:0,mac:{primary:785},weight:100}})}}e.CursorWordPartRight=a;class r extends n{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:I.EditorContextKeys.textInputFocus,primary:0,mac:{primary:1809},weight:100}})}}e.CursorWordPartRightSelect=r,(0,C.registerEditorCommand)(new v),(0,C.registerEditorCommand)(new f),(0,C.registerEditorCommand)(new i),(0,C.registerEditorCommand)(new t),(0,C.registerEditorCommand)(new a),(0,C.registerEditorCommand)(new r)}),define(_[758],ee([1,0,7,35,203,52,67,2,16,9,21,14,24,310,15,8,38,50,83,423]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const l=new a.RawContextKey("accessibilityHelpWidgetVisible",!1);let o=class Vi extends S.Disposable{static get(b){return b.getContribution(Vi.ID)}constructor(b,y){super(),this.a=b,this.b=this.q(y.createInstance(h,this.a))}show(){this.b.show()}hide(){this.b.hide()}};o.ID="editor.contrib.accessibilityHelpController",o=Ne([ge(1,r.IInstantiationService)],o);function u(p,b){return!p||p.length===0?s.AccessibilityHelpNLS.noSelection:p.length===1?b?f.format(s.AccessibilityHelpNLS.singleSelectionRange,p[0].positionLineNumber,p[0].positionColumn,b):f.format(s.AccessibilityHelpNLS.singleSelection,p[0].positionLineNumber,p[0].positionColumn):b?f.format(s.AccessibilityHelpNLS.multiSelectionRange,p.length,b):p.length>0?f.format(s.AccessibilityHelpNLS.multiSelection,p.length):""}let h=class Xt extends L.Widget{constructor(b,y,k,D){super(),this.v=y,this.C=k,this.D=D,this.i=b,this.t=l.bindTo(this.v),this.l=(0,N.createFastDomNode)(document.createElement("div")),this.l.setClassName("accessibilityHelpWidget"),this.l.setDisplay("none"),this.l.setAttribute("role","dialog"),this.l.setAttribute("aria-hidden","true"),this.r=(0,N.createFastDomNode)(document.createElement("div")),this.r.setAttribute("role","document"),this.l.appendChild(this.r),this.s=!1,this.q(this.i.onDidLayoutChange(()=>{this.s&&this.H()})),this.q(C.addStandardDisposableListener(this.r.domNode,"keydown",M=>{if(!!this.s&&(M.equals(2083)&&((0,I.alert)(s.AccessibilityHelpNLS.emergencyConfOn),this.i.updateOptions({accessibilitySupport:"on"}),C.clearNode(this.r.domNode),this.G(),this.r.domNode.focus(),M.preventDefault(),M.stopPropagation()),M.equals(2086))){(0,I.alert)(s.AccessibilityHelpNLS.openingDocs);let z=this.i.getRawOptions().accessibilityHelpUrl;typeof z>"u"&&(z="https://go.microsoft.com/fwlink/?linkid=852450"),this.D.open(g.URI.parse(z)),M.preventDefault(),M.stopPropagation()}})),this.y(this.r.domNode,()=>{this.hide()}),this.i.addOverlayWidget(this)}dispose(){this.i.removeOverlayWidget(this),super.dispose()}getId(){return Xt.a}getDomNode(){return this.l.domNode}getPosition(){return{preference:null}}show(){this.s||(this.s=!0,this.t.set(!0),this.H(),this.l.setDisplay("block"),this.l.setAttribute("aria-hidden","false"),this.r.domNode.tabIndex=0,this.G(),this.r.domNode.focus())}F(b,y,k){const D=this.C.lookupKeybinding(b);return D?f.format(y,D.getAriaLabel()):f.format(k,b)}G(){const b=this.i.getOptions(),y=this.i.getSelections();let k=0;if(y){const R=this.i.getModel();R&&y.forEach(P=>{k+=R.getValueLengthInRange(P)})}let D=u(y,k);b.get(58)?b.get(86)?D+=s.AccessibilityHelpNLS.readonlyDiffEditor:D+=s.AccessibilityHelpNLS.editableDiffEditor:b.get(86)?D+=s.AccessibilityHelpNLS.readonlyEditor:D+=s.AccessibilityHelpNLS.editableEditor;const M=v.isMacintosh?s.AccessibilityHelpNLS.changeConfigToOnMac:s.AccessibilityHelpNLS.changeConfigToOnWinLinux;switch(b.get(2)){case 0:D+=`
|
||
|
||
- `+M;break;case 2:D+=`
|
||
|
||
- `+s.AccessibilityHelpNLS.auto_on;break;case 1:D+=`
|
||
|
||
- `+s.AccessibilityHelpNLS.auto_off,D+=" "+M;break}b.get(137)?D+=`
|
||
|
||
- `+this.F(n.ToggleTabFocusModeAction.ID,s.AccessibilityHelpNLS.tabFocusModeOnMsg,s.AccessibilityHelpNLS.tabFocusModeOnMsgNoKb):D+=`
|
||
|
||
- `+this.F(n.ToggleTabFocusModeAction.ID,s.AccessibilityHelpNLS.tabFocusModeOffMsg,s.AccessibilityHelpNLS.tabFocusModeOffMsgNoKb);const z=v.isMacintosh?s.AccessibilityHelpNLS.openDocMac:s.AccessibilityHelpNLS.openDocWinLinux;D+=`
|
||
|
||
- `+z,D+=`
|
||
|
||
`+s.AccessibilityHelpNLS.outroMsg,this.r.domNode.appendChild((0,E.renderFormattedText)(D)),this.r.domNode.setAttribute("aria-label",D)}hide(){!this.s||(this.s=!1,this.t.reset(),this.l.setDisplay("none"),this.l.setAttribute("aria-hidden","true"),this.r.domNode.tabIndex=-1,C.clearNode(this.r.domNode),this.i.focus())}H(){const b=this.i.getLayoutInfo(),y=Math.max(5,Math.min(Xt.b,b.width-40)),k=Math.max(5,Math.min(Xt.g,b.height-40));this.l.setWidth(y),this.l.setHeight(k);const D=Math.round((b.height-k)/2);this.l.setTop(D);const M=Math.round((b.width-y)/2);this.l.setLeft(M)}};h.a="editor.contrib.accessibilityHelpWidget",h.b=500,h.g=300,h=Ne([ge(1,a.IContextKeyService),ge(2,c.IKeybindingService),ge(3,d.IOpenerService)],h);class w extends i.EditorAction{constructor(){super({id:"editor.action.showAccessibilityHelp",label:s.AccessibilityHelpNLS.showAccessibilityHelpAction,alias:"Show Accessibility Help",precondition:void 0,kbOpts:{primary:571,weight:100,linux:{primary:1595,secondary:[571]}}})}run(b,y){const k=o.get(y);k?.show()}}(0,i.registerEditorContribution)(o.ID,o,4),(0,i.registerEditorAction)(w);const m=i.EditorCommand.bindToContribution(o.get);(0,i.registerEditorCommand)(new m({id:"closeAccessibilityHelp",precondition:l,handler:p=>p.hide(),kbOpts:{weight:100+100,kbExpr:t.EditorContextKeys.focus,primary:9,secondary:[1033]}}))}),define(_[759],ee([1,0,7,2,14,16,424]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IPadShowKeyboard=void 0;class L extends N.Disposable{constructor(f){super(),this.a=f,this.b=null,I.isIOS&&(this.q(f.onDidChangeConfiguration(()=>this.c())),this.c())}c(){const f=!this.a.getOption(86);!this.b&&f?this.b=new S(this.a):this.b&&!f&&(this.b.dispose(),this.b=null)}dispose(){super.dispose(),this.b&&(this.b.dispose(),this.b=null)}}L.ID="editor.contrib.iPadShowKeyboard",e.IPadShowKeyboard=L;class S extends N.Disposable{constructor(f){super(),this.b=f,this.c=document.createElement("textarea"),this.c.className="iPadShowKeyboard",this.q(C.addDisposableListener(this.c,"touchstart",g=>{this.b.focus()})),this.q(C.addDisposableListener(this.c,"focus",g=>{this.b.focus()})),this.b.addOverlayWidget(this)}dispose(){this.b.removeOverlayWidget(this),super.dispose()}getId(){return S.a}getDomNode(){return this.c}getPosition(){return{preference:1}}}S.a="editor.contrib.ShowKeyboardWidget",(0,E.registerEditorContribution)(L.ID,L,3)}),define(_[760],ee([1,0,7,36,2,14,26,115,141,37,119,83,425]),function(q,e,C,N,E,I,L,S,v,f,g,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let t=class Hi extends E.Disposable{static get(s){return s.getContribution(Hi.ID)}constructor(s,l,o){super(),this.a=s,this.b=o,this.c=null,this.q(this.a.onDidChangeModel(u=>this.stop())),this.q(this.a.onDidChangeModelLanguage(u=>this.stop())),this.q(L.TokenizationRegistry.onDidChange(u=>this.stop())),this.q(this.a.onKeyUp(u=>u.keyCode===9&&this.stop()))}dispose(){this.stop(),super.dispose()}launch(){this.c||!this.a.hasModel()||(this.c=new c(this.a,this.b))}stop(){this.c&&(this.c.dispose(),this.c=null)}};t.ID="editor.contrib.inspectTokens",t=Ne([ge(1,g.IStandaloneThemeService),ge(2,f.ILanguageService)],t);class n extends I.EditorAction{constructor(){super({id:"editor.action.inspectTokens",label:i.InspectTokensNLS.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})}run(s,l){const o=t.get(l);o?.launch()}}function a(d){let s="";for(let l=0,o=d.length;l<o;l++){const u=d.charCodeAt(l);switch(u){case 9:s+="\u2192";break;case 32:s+="\xB7";break;default:s+=String.fromCharCode(u)}}return s}function r(d,s){const l=L.TokenizationRegistry.get(s);if(l)return l;const o=d.encodeLanguageId(s);return{getInitialState:()=>v.NullState,tokenize:(u,h,w)=>(0,v.nullTokenize)(s,w),tokenizeEncoded:(u,h,w)=>(0,v.nullTokenizeEncoded)(o,w)}}class c extends E.Disposable{constructor(s,l){super(),this.allowEditorOverflow=!0,this.b=s,this.c=l,this.h=this.b.getModel(),this.j=document.createElement("div"),this.j.className="tokens-inspect-widget",this.g=r(this.c.languageIdCodec,this.h.getLanguageId()),this.k(this.b.getPosition()),this.q(this.b.onDidChangeCursorPosition(o=>this.k(this.b.getPosition()))),this.b.addContentWidget(this)}dispose(){this.b.removeContentWidget(this),super.dispose()}getId(){return c.a}k(s){const l=this.p(s.lineNumber);let o=0;for(let p=l.tokens1.length-1;p>=0;p--){const b=l.tokens1[p];if(s.column-1>=b.offset){o=p;break}}let u=0;for(let p=l.tokens2.length>>>1;p>=0;p--)if(s.column-1>=l.tokens2[p<<1]){u=p;break}const h=this.h.getLineContent(s.lineNumber);let w="";if(o<l.tokens1.length){const p=l.tokens1[o].offset,b=o+1<l.tokens1.length?l.tokens1[o+1].offset:h.length;w=h.substring(p,b)}(0,C.reset)(this.j,(0,C.$)("h2.tm-token",void 0,a(w),(0,C.$)("span.tm-token-length",void 0,`${w.length} ${w.length===1?"char":"chars"}`))),(0,C.append)(this.j,(0,C.$)("hr.tokens-inspect-separator",{style:"clear:both"}));const m=(u<<1)+1<l.tokens2.length?this.l(l.tokens2[(u<<1)+1]):null;(0,C.append)(this.j,(0,C.$)("table.tm-metadata-table",void 0,(0,C.$)("tbody",void 0,(0,C.$)("tr",void 0,(0,C.$)("td.tm-metadata-key",void 0,"language"),(0,C.$)("td.tm-metadata-value",void 0,`${m?m.languageId:"-?-"}`)),(0,C.$)("tr",void 0,(0,C.$)("td.tm-metadata-key",void 0,"token type"),(0,C.$)("td.tm-metadata-value",void 0,`${m?this.m(m.tokenType):"-?-"}`)),(0,C.$)("tr",void 0,(0,C.$)("td.tm-metadata-key",void 0,"font style"),(0,C.$)("td.tm-metadata-value",void 0,`${m?this.n(m.fontStyle):"-?-"}`)),(0,C.$)("tr",void 0,(0,C.$)("td.tm-metadata-key",void 0,"foreground"),(0,C.$)("td.tm-metadata-value",void 0,`${m?N.Color.Format.CSS.formatHex(m.foreground):"-?-"}`)),(0,C.$)("tr",void 0,(0,C.$)("td.tm-metadata-key",void 0,"background"),(0,C.$)("td.tm-metadata-value",void 0,`${m?N.Color.Format.CSS.formatHex(m.background):"-?-"}`))))),(0,C.append)(this.j,(0,C.$)("hr.tokens-inspect-separator")),o<l.tokens1.length&&(0,C.append)(this.j,(0,C.$)("span.tm-token-type",void 0,l.tokens1[o].type)),this.b.layoutContentWidget(this)}l(s){const l=L.TokenizationRegistry.getColorMap(),o=S.TokenMetadata.getLanguageId(s),u=S.TokenMetadata.getTokenType(s),h=S.TokenMetadata.getFontStyle(s),w=S.TokenMetadata.getForeground(s),m=S.TokenMetadata.getBackground(s);return{languageId:this.c.languageIdCodec.decodeLanguageId(o),tokenType:u,fontStyle:h,foreground:l[w],background:l[m]}}m(s){switch(s){case 0:return"Other";case 1:return"Comment";case 2:return"String";case 3:return"RegEx";default:return"??"}}n(s){let l="";return s&1&&(l+="italic "),s&2&&(l+="bold "),s&4&&(l+="underline "),s&8&&(l+="strikethrough "),l.length===0&&(l="---"),l}p(s){const l=this.s(s),o=this.g.tokenize(this.h.getLineContent(s),!0,l),u=this.g.tokenizeEncoded(this.h.getLineContent(s),!0,l);return{startState:l,tokens1:o.tokens,tokens2:u.tokens,endState:o.endState}}s(s){let l=this.g.getInitialState();for(let o=1;o<s;o++)l=this.g.tokenize(this.h.getLineContent(o),!0,l).endState;return l}getDomNode(){return this.j}getPosition(){return{position:this.b.getPosition(),preference:[2,1]}}}c.a="editor.contrib.inspectTokensWidget",(0,I.registerEditorContribution)(t.ID,t,4),(0,I.registerEditorAction)(n)}),define(_[761],ee([1,0,7,537,41,17,2,659,28,15,57,38,80]),function(q,e,C,N,E,I,L,S,v,f,g,i,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WorkbenchToolBar=void 0;let n=class extends N.ToolBar{constructor(r,c,d,s,l,o,u){super(r,l,Object.assign(Object.assign({getKeyBinding:h=>{var w;return(w=o.lookupKeybinding(h.id))!==null&&w!==void 0?w:void 0}},c),{allowContextMenu:!0})),this.y=c,this.z=d,this.B=s,this.C=l,this.w=this.f.add(new L.DisposableStore),c?.telemetrySource&&this.f.add(this.b.onDidRun(h=>u.publicLog2("workbenchActionExecuted",{id:h.action.id,from:c.telemetrySource})))}setActions(r,c=[],d){var s,l,o;this.w.clear();const u=r.slice(),h=c.slice(),w=[];let m=0;const p=[];let b=!1;if(((s=this.y)===null||s===void 0?void 0:s.hiddenItemStrategy)!==-1)for(let y=0;y<u.length;y++){const k=u[y];!(k instanceof v.MenuItemAction)&&!(k instanceof v.SubmenuItemAction)||!k.hideActions||(w.push(k.hideActions.toggle),k.hideActions.toggle.checked&&m++,k.hideActions.isHidden&&(b=!0,u[y]=void 0,((l=this.y)===null||l===void 0?void 0:l.hiddenItemStrategy)!==0&&(p[y]=k)))}if(((o=this.y)===null||o===void 0?void 0:o.maxNumberOfItems)!==void 0){let y=0;for(let k=0;k<u.length;k++){const D=u[k];!D||++y>=this.y.maxNumberOfItems&&(u[k]=void 0,p[k]=D)}}(0,I.coalesceInPlace)(u),(0,I.coalesceInPlace)(p),super.setActions(u,E.Separator.join(p,h)),w.length>0&&this.w.add((0,C.addDisposableListener)(this.getElement(),"contextmenu",y=>{var k,D,M,z;const R=this.getItemAction(y.target);if(!R)return;y.preventDefault(),y.stopPropagation();let P=!1;if(m===1&&((k=this.y)===null||k===void 0?void 0:k.hiddenItemStrategy)===0){P=!0;for(let O=0;O<w.length;O++)if(w[O].checked){w[O]=(0,E.toAction)({id:R.id,label:R.label,checked:!0,enabled:!1,run(){}});break}}let A;if(!P&&(R instanceof v.MenuItemAction||R instanceof v.SubmenuItemAction)){if(!R.hideActions)return;A=R.hideActions.hide}else A=(0,E.toAction)({id:"label",label:(0,S.localize)(0,null),enabled:!1,run(){}});const T=E.Separator.join([A],w);((D=this.y)===null||D===void 0?void 0:D.resetMenu)&&!d&&(d=[this.y.resetMenu]),b&&d&&(T.push(new E.Separator),T.push((0,E.toAction)({id:"resetThisMenu",label:(0,S.localize)(1,null),run:()=>this.z.resetHiddenStates(d)}))),this.C.showContextMenu({getAnchor:()=>y,getActions:()=>T,menuId:(M=this.y)===null||M===void 0?void 0:M.contextMenu,menuActionOptions:Object.assign({renderShortTitle:!0},(z=this.y)===null||z===void 0?void 0:z.menuOptions),contextKeyService:this.B})}))}};n=Ne([ge(2,v.IMenuService),ge(3,f.IContextKeyService),ge(4,g.IContextMenuService),ge(5,i.IKeybindingService),ge(6,t.ITelemetryService)],n),e.WorkbenchToolBar=n}),define(_[762],ee([1,0,515,13,63,2,55,18,669,25,27,144,8,38,709,84,80]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CommandsHistory=e.AbstractCommandsQuickAccessProvider=void 0;let d=class Qt extends a.PickerQuickAccessProvider{constructor(o,u,h,w,m,p){super(Qt.PREFIX,o),this.n=u,this.p=h,this.r=w,this.s=m,this.t=p,this.l=this.q(this.n.createInstance(s)),this.h=o}j(o,u,h,w){var m,p;return ye(this,void 0,void 0,function*(){const b=yield this.v(h);if(h.isCancellationRequested)return[];const y=[];for(const R of b){const P=(0,S.withNullAsUndefined)(Qt.k(o,R.label)),A=R.commandAlias?(0,S.withNullAsUndefined)(Qt.k(o,R.commandAlias)):void 0;P||A?(R.highlights={label:P,detail:this.h.showAlias?A:void 0},y.push(R)):o===R.commandId&&y.push(R)}const k=new Map;for(const R of y){const P=k.get(R.label);P?(R.description=R.commandId,P.description=P.commandId):k.set(R.label,R)}y.sort((R,P)=>{const A=this.l.peek(R.commandId),T=this.l.peek(P.commandId);if(A&&T)return A>T?-1:1;if(A)return-1;if(T)return 1;if(this.h.suggestedCommandIds){const O=this.h.suggestedCommandIds.has(R.commandId),B=this.h.suggestedCommandIds.has(P.commandId);if(O&&B)return 0;if(O)return-1;if(B)return 1}return R.label.localeCompare(P.label)});const D=[];let M=!1,z=!!this.h.suggestedCommandIds;for(let R=0;R<y.length;R++){const P=y[R],A=this.p.lookupKeybinding(P.commandId),T=A?(0,v.localize)(0,null,P.label,A.getAriaLabel()):P.label;R===0&&this.l.peek(P.commandId)&&(D.push({type:"separator",label:(0,v.localize)(1,null)}),M=!0),z&&!this.l.peek(P.commandId)&&((m=this.h.suggestedCommandIds)===null||m===void 0?void 0:m.has(P.commandId))&&(D.push({type:"separator",label:(0,v.localize)(2,null)}),M=!0,z=!1),M&&!this.l.peek(P.commandId)&&!(!((p=this.h.suggestedCommandIds)===null||p===void 0)&&p.has(P.commandId))&&(D.push({type:"separator",label:(0,v.localize)(3,null)}),M=!1),D.push(Object.assign(Object.assign({},P),{ariaLabel:T,detail:this.h.showAlias&&P.commandAlias!==P.label?P.commandAlias:void 0,keybinding:A,accept:()=>ye(this,void 0,void 0,function*(){var O;this.l.push(P.commandId),this.s.publicLog2("workbenchActionExecuted",{id:P.commandId,from:(O=w?.from)!==null&&O!==void 0?O:"quick open"});try{yield this.r.executeCommand(P.commandId)}catch(B){(0,N.isCancellationError)(B)||this.t.error((0,v.localize)(4,null,P.label),(0,C.toErrorMessage)(B))}})}))}return D})}};d.PREFIX=">",d.k=(0,E.or)(E.matchesPrefix,E.matchesWords,E.matchesContiguousSubString),d=Ne([ge(1,t.IInstantiationService),ge(2,n.IKeybindingService),ge(3,f.ICommandService),ge(4,c.ITelemetryService),ge(5,i.IDialogService)],d),e.AbstractCommandsQuickAccessProvider=d;let s=class ut extends I.Disposable{constructor(o,u){super(),this.l=o,this.m=u,this.k=0,this.p(),this.r(),this.n()}n(){this.q(this.m.onDidChangeConfiguration(o=>this.p(o)))}p(o){o&&!o.affectsConfiguration("workbench.commandPalette.history")||(this.k=ut.getConfiguredCommandHistoryLength(this.m),ut.h&&ut.h.limit!==this.k&&(ut.h.limit=this.k,ut.saveState(this.l)))}r(){const o=this.l.get(ut.c,0);let u;if(o)try{u=JSON.parse(o)}catch{}const h=ut.h=new L.LRUCache(this.k,1);if(u){let w;u.usesLRU?w=u.entries:w=u.entries.sort((m,p)=>m.value-p.value),w.forEach(m=>h.set(m.key,m.value))}ut.j=this.l.getNumber(ut.g,0,ut.j)}push(o){!ut.h||(ut.h.set(o,ut.j++),ut.saveState(this.l))}peek(o){var u;return(u=ut.h)===null||u===void 0?void 0:u.peek(o)}static saveState(o){if(!ut.h)return;const u={usesLRU:!0,entries:[]};ut.h.forEach((h,w)=>u.entries.push({key:w,value:h})),o.store(ut.c,JSON.stringify(u),0,0),o.store(ut.g,ut.j,0,0)}static getConfiguredCommandHistoryLength(o){var u,h;const m=(h=(u=o.getValue().workbench)===null||u===void 0?void 0:u.commandPalette)===null||h===void 0?void 0:h.history;return typeof m=="number"?m:ut.DEFAULT_COMMANDS_HISTORY_LENGTH}};s.DEFAULT_COMMANDS_HISTORY_LENGTH=50,s.c="commandPalette.mru.cache",s.g="commandPalette.mru.counter",s.j=1,s=Ne([ge(0,r.IStorageService),ge(1,g.IConfigurationService)],s),e.CommandsHistory=s}),define(_[763],ee([1,0,111,762]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractEditorCommandsQuickAccessProvider=void 0;class E extends N.AbstractCommandsQuickAccessProvider{constructor(L,S,v,f,g,i){super(L,S,v,f,g,i)}y(){const L=this.w;if(!L)return[];const S=[];for(const v of L.getSupportedActions())S.push({commandId:v.id,commandAlias:v.alias,label:(0,C.stripIcons)(v.label)||v.id});return S}}e.AbstractEditorCommandsQuickAccessProvider=E}),define(_[764],ee([1,0,33,123,83,30,763,18,8,38,25,80,144,14,24,79]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GotoLineAction=e.StandaloneCommandsQuickAccessProvider=void 0;let c=class extends L.AbstractEditorCommandsQuickAccessProvider{get w(){return(0,S.withNullAsUndefined)(this.B.getFocusedCodeEditor())}constructor(l,o,u,h,w,m){super({showAlias:!1},l,u,h,w,m),this.B=o}v(){return ye(this,void 0,void 0,function*(){return this.y()})}};c=Ne([ge(0,v.IInstantiationService),ge(1,I.ICodeEditorService),ge(2,f.IKeybindingService),ge(3,g.ICommandService),ge(4,i.ITelemetryService),ge(5,t.IDialogService)],c),e.StandaloneCommandsQuickAccessProvider=c;class d extends n.EditorAction{constructor(){super({id:d.ID,label:E.QuickCommandNLS.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:a.EditorContextKeys.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(l){l.get(r.IQuickInputService).quickAccess.show(c.PREFIX)}}d.ID="editor.action.quickCommand",e.GotoLineAction=d,(0,n.registerEditorAction)(d),C.Registry.as(N.Extensions.Quickaccess).registerQuickAccessProvider({ctor:c,prefix:c.PREFIX,helpEntries:[{description:E.QuickCommandNLS.quickCommandHelp,commandId:d.ID}]})}),define(_[31],ee([1,0,11,36,6,85,674,223,33]),function(q,e,C,N,E,I,L,S,v){"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.checkboxSelectBorder=e.checkboxBorder=e.checkboxForeground=e.checkboxSelectBackground=e.checkboxBackground=e.listDeemphasizedForeground=e.tableOddRowsBackgroundColor=e.tableColumnsBorder=e.treeInactiveIndentGuidesStroke=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.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.widgetBorder=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.asCssVariableWithDefault=e.asCssVariable=e.asCssVariableName=void 0;function f(R){return`--vscode-${R.replace(/\./g,"-")}`}e.asCssVariableName=f;function g(R){return`var(${f(R)})`}e.asCssVariable=g;function i(R,P){return`var(${f(R)}, ${P})`}e.asCssVariableWithDefault=i,e.Extensions={ColorContribution:"base.contributions.colors"};class t{constructor(){this.c=new E.Emitter,this.onDidChangeSchema=this.c.event,this.e={type:"object",properties:{}},this.f={type:"string",enum:[],enumDescriptions:[]},this.d={}}registerColor(P,A,T,O=!1,B){const W={id:P,description:T,defaults:A,needsTransparency:O,deprecationMessage:B};this.d[P]=W;const j={type:"string",description:T,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return B&&(j.deprecationMessage=B),this.e.properties[P]=j,this.f.enum.push(P),this.f.enumDescriptions.push(T),this.c.fire(),P}getColors(){return Object.keys(this.d).map(P=>this.d[P])}resolveDefaultColor(P,A){const T=this.d[P];if(T&&T.defaults){const O=T.defaults[A.type];return D(O,A)}}getColorSchema(){return this.e}toString(){const P=(A,T)=>{const O=A.indexOf(".")===-1?0:1,B=T.indexOf(".")===-1?0:1;return O!==B?O-B:A.localeCompare(T)};return Object.keys(this.d).sort(P).map(A=>`- \`${A}\`: ${this.d[A].description}`).join(`
|
||
`)}}const n=new t;v.Registry.add(e.Extensions.ColorContribution,n);function a(R){return R===null||typeof R.hcLight>"u"&&(R.hcDark===null||typeof R.hcDark=="string"?R.hcLight=R.hcDark:R.hcLight=R.light),R}function r(R,P,A,T,O){return n.registerColor(R,a(P),A,T,O)}e.registerColor=r,e.foreground=r("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},L.localize(0,null)),e.disabledForeground=r("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},L.localize(1,null)),e.errorForeground=r("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},L.localize(2,null)),e.descriptionForeground=r("descriptionForeground",{light:"#717171",dark:p(e.foreground,.7),hcDark:p(e.foreground,.7),hcLight:p(e.foreground,.7)},L.localize(3,null)),e.iconForeground=r("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},L.localize(4,null)),e.focusBorder=r("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#006BBD"},L.localize(5,null)),e.contrastBorder=r("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},L.localize(6,null)),e.activeContrastBorder=r("contrastActiveBorder",{light:null,dark:null,hcDark:e.focusBorder,hcLight:e.focusBorder},L.localize(7,null)),e.selectionBackground=r("selection.background",{light:null,dark:null,hcDark:null,hcLight:null},L.localize(8,null)),e.textSeparatorForeground=r("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:N.Color.black,hcLight:"#292929"},L.localize(9,null)),e.textLinkForeground=r("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#3794FF",hcLight:"#0F4A85"},L.localize(10,null)),e.textLinkActiveForeground=r("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#3794FF",hcLight:"#0F4A85"},L.localize(11,null)),e.textPreformatForeground=r("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#D7BA7D",hcLight:"#292929"},L.localize(12,null)),e.textBlockQuoteBackground=r("textBlockQuote.background",{light:"#7f7f7f1a",dark:"#7f7f7f1a",hcDark:null,hcLight:"#F2F2F2"},L.localize(13,null)),e.textBlockQuoteBorder=r("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:N.Color.white,hcLight:"#292929"},L.localize(14,null)),e.textCodeBlockBackground=r("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:N.Color.black,hcLight:"#F2F2F2"},L.localize(15,null)),e.widgetShadow=r("widget.shadow",{dark:p(N.Color.black,.36),light:p(N.Color.black,.16),hcDark:null,hcLight:null},L.localize(16,null)),e.widgetBorder=r("widget.border",{dark:null,light:null,hcDark:e.contrastBorder,hcLight:e.contrastBorder},L.localize(17,null)),e.inputBackground=r("input.background",{dark:"#3C3C3C",light:N.Color.white,hcDark:N.Color.black,hcLight:N.Color.white},L.localize(18,null)),e.inputForeground=r("input.foreground",{dark:e.foreground,light:e.foreground,hcDark:e.foreground,hcLight:e.foreground},L.localize(19,null)),e.inputBorder=r("input.border",{dark:null,light:null,hcDark:e.contrastBorder,hcLight:e.contrastBorder},L.localize(20,null)),e.inputActiveOptionBorder=r("inputOption.activeBorder",{dark:"#007ACC",light:"#007ACC",hcDark:e.contrastBorder,hcLight:e.contrastBorder},L.localize(21,null)),e.inputActiveOptionHoverBackground=r("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},L.localize(22,null)),e.inputActiveOptionBackground=r("inputOption.activeBackground",{dark:p(e.focusBorder,.4),light:p(e.focusBorder,.2),hcDark:N.Color.transparent,hcLight:N.Color.transparent},L.localize(23,null)),e.inputActiveOptionForeground=r("inputOption.activeForeground",{dark:N.Color.white,light:N.Color.black,hcDark:e.foreground,hcLight:e.foreground},L.localize(24,null)),e.inputPlaceholderForeground=r("input.placeholderForeground",{light:p(e.foreground,.5),dark:p(e.foreground,.5),hcDark:p(e.foreground,.7),hcLight:p(e.foreground,.7)},L.localize(25,null)),e.inputValidationInfoBackground=r("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:N.Color.black,hcLight:N.Color.white},L.localize(26,null)),e.inputValidationInfoForeground=r("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:e.foreground},L.localize(27,null)),e.inputValidationInfoBorder=r("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:e.contrastBorder,hcLight:e.contrastBorder},L.localize(28,null)),e.inputValidationWarningBackground=r("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:N.Color.black,hcLight:N.Color.white},L.localize(29,null)),e.inputValidationWarningForeground=r("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:e.foreground},L.localize(30,null)),e.inputValidationWarningBorder=r("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:e.contrastBorder,hcLight:e.contrastBorder},L.localize(31,null)),e.inputValidationErrorBackground=r("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:N.Color.black,hcLight:N.Color.white},L.localize(32,null)),e.inputValidationErrorForeground=r("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:e.foreground},L.localize(33,null)),e.inputValidationErrorBorder=r("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:e.contrastBorder,hcLight:e.contrastBorder},L.localize(34,null)),e.selectBackground=r("dropdown.background",{dark:"#3C3C3C",light:N.Color.white,hcDark:N.Color.black,hcLight:N.Color.white},L.localize(35,null)),e.selectListBackground=r("dropdown.listBackground",{dark:null,light:null,hcDark:N.Color.black,hcLight:N.Color.white},L.localize(36,null)),e.selectForeground=r("dropdown.foreground",{dark:"#F0F0F0",light:e.foreground,hcDark:N.Color.white,hcLight:e.foreground},L.localize(37,null)),e.selectBorder=r("dropdown.border",{dark:e.selectBackground,light:"#CECECE",hcDark:e.contrastBorder,hcLight:e.contrastBorder},L.localize(38,null)),e.buttonForeground=r("button.foreground",{dark:N.Color.white,light:N.Color.white,hcDark:N.Color.white,hcLight:N.Color.white},L.localize(39,null)),e.buttonSeparator=r("button.separator",{dark:p(e.buttonForeground,.4),light:p(e.buttonForeground,.4),hcDark:p(e.buttonForeground,.4),hcLight:p(e.buttonForeground,.4)},L.localize(40,null)),e.buttonBackground=r("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},L.localize(41,null)),e.buttonHoverBackground=r("button.hoverBackground",{dark:m(e.buttonBackground,.2),light:w(e.buttonBackground,.2),hcDark:e.buttonBackground,hcLight:e.buttonBackground},L.localize(42,null)),e.buttonBorder=r("button.border",{dark:e.contrastBorder,light:e.contrastBorder,hcDark:e.contrastBorder,hcLight:e.contrastBorder},L.localize(43,null)),e.buttonSecondaryForeground=r("button.secondaryForeground",{dark:N.Color.white,light:N.Color.white,hcDark:N.Color.white,hcLight:e.foreground},L.localize(44,null)),e.buttonSecondaryBackground=r("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:N.Color.white},L.localize(45,null)),e.buttonSecondaryHoverBackground=r("button.secondaryHoverBackground",{dark:m(e.buttonSecondaryBackground,.2),light:w(e.buttonSecondaryBackground,.2),hcDark:null,hcLight:null},L.localize(46,null)),e.badgeBackground=r("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:N.Color.black,hcLight:"#0F4A85"},L.localize(47,null)),e.badgeForeground=r("badge.foreground",{dark:N.Color.white,light:"#333",hcDark:N.Color.white,hcLight:N.Color.white},L.localize(48,null)),e.scrollbarShadow=r("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},L.localize(49,null)),e.scrollbarSliderBackground=r("scrollbarSlider.background",{dark:N.Color.fromHex("#797979").transparent(.4),light:N.Color.fromHex("#646464").transparent(.4),hcDark:p(e.contrastBorder,.6),hcLight:p(e.contrastBorder,.4)},L.localize(50,null)),e.scrollbarSliderHoverBackground=r("scrollbarSlider.hoverBackground",{dark:N.Color.fromHex("#646464").transparent(.7),light:N.Color.fromHex("#646464").transparent(.7),hcDark:p(e.contrastBorder,.8),hcLight:p(e.contrastBorder,.8)},L.localize(51,null)),e.scrollbarSliderActiveBackground=r("scrollbarSlider.activeBackground",{dark:N.Color.fromHex("#BFBFBF").transparent(.4),light:N.Color.fromHex("#000000").transparent(.6),hcDark:e.contrastBorder,hcLight:e.contrastBorder},L.localize(52,null)),e.progressBarBackground=r("progressBar.background",{dark:N.Color.fromHex("#0E70C0"),light:N.Color.fromHex("#0E70C0"),hcDark:e.contrastBorder,hcLight:e.contrastBorder},L.localize(53,null)),e.editorErrorBackground=r("editorError.background",{dark:null,light:null,hcDark:null,hcLight:null},L.localize(54,null),!0),e.editorErrorForeground=r("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},L.localize(55,null)),e.editorErrorBorder=r("editorError.border",{dark:null,light:null,hcDark:N.Color.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},L.localize(56,null)),e.editorWarningBackground=r("editorWarning.background",{dark:null,light:null,hcDark:null,hcLight:null},L.localize(57,null),!0),e.editorWarningForeground=r("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD37",hcLight:"#895503"},L.localize(58,null)),e.editorWarningBorder=r("editorWarning.border",{dark:null,light:null,hcDark:N.Color.fromHex("#FFCC00").transparent(.8),hcLight:"#"},L.localize(59,null)),e.editorInfoBackground=r("editorInfo.background",{dark:null,light:null,hcDark:null,hcLight:null},L.localize(60,null),!0),e.editorInfoForeground=r("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},L.localize(61,null)),e.editorInfoBorder=r("editorInfo.border",{dark:null,light:null,hcDark:N.Color.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},L.localize(62,null)),e.editorHintForeground=r("editorHint.foreground",{dark:N.Color.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},L.localize(63,null)),e.editorHintBorder=r("editorHint.border",{dark:null,light:null,hcDark:N.Color.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},L.localize(64,null)),e.sashHoverBorder=r("sash.hoverBorder",{dark:e.focusBorder,light:e.focusBorder,hcDark:e.focusBorder,hcLight:e.focusBorder},L.localize(65,null)),e.editorBackground=r("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:N.Color.black,hcLight:N.Color.white},L.localize(66,null)),e.editorForeground=r("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:N.Color.white,hcLight:e.foreground},L.localize(67,null)),e.editorStickyScrollBackground=r("editorStickyScroll.background",{light:e.editorBackground,dark:e.editorBackground,hcDark:e.editorBackground,hcLight:e.editorBackground},L.localize(68,null)),e.editorStickyScrollHoverBackground=r("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:N.Color.fromHex("#0F4A85").transparent(.1)},L.localize(69,null)),e.editorWidgetBackground=r("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:N.Color.white},L.localize(70,null)),e.editorWidgetForeground=r("editorWidget.foreground",{dark:e.foreground,light:e.foreground,hcDark:e.foreground,hcLight:e.foreground},L.localize(71,null)),e.editorWidgetBorder=r("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:e.contrastBorder,hcLight:e.contrastBorder},L.localize(72,null)),e.editorWidgetResizeBorder=r("editorWidget.resizeBorder",{light:null,dark:null,hcDark:null,hcLight:null},L.localize(73,null)),e.quickInputBackground=r("quickInput.background",{dark:e.editorWidgetBackground,light:e.editorWidgetBackground,hcDark:e.editorWidgetBackground,hcLight:e.editorWidgetBackground},L.localize(74,null)),e.quickInputForeground=r("quickInput.foreground",{dark:e.editorWidgetForeground,light:e.editorWidgetForeground,hcDark:e.editorWidgetForeground,hcLight:e.editorWidgetForeground},L.localize(75,null)),e.quickInputTitleBackground=r("quickInputTitle.background",{dark:new N.Color(new N.RGBA(255,255,255,.105)),light:new N.Color(new N.RGBA(0,0,0,.06)),hcDark:"#000000",hcLight:N.Color.white},L.localize(76,null)),e.pickerGroupForeground=r("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:N.Color.white,hcLight:"#0F4A85"},L.localize(77,null)),e.pickerGroupBorder=r("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:N.Color.white,hcLight:"#0F4A85"},L.localize(78,null)),e.keybindingLabelBackground=r("keybindingLabel.background",{dark:new N.Color(new N.RGBA(128,128,128,.17)),light:new N.Color(new N.RGBA(221,221,221,.4)),hcDark:N.Color.transparent,hcLight:N.Color.transparent},L.localize(79,null)),e.keybindingLabelForeground=r("keybindingLabel.foreground",{dark:N.Color.fromHex("#CCCCCC"),light:N.Color.fromHex("#555555"),hcDark:N.Color.white,hcLight:e.foreground},L.localize(80,null)),e.keybindingLabelBorder=r("keybindingLabel.border",{dark:new N.Color(new N.RGBA(51,51,51,.6)),light:new N.Color(new N.RGBA(204,204,204,.4)),hcDark:new N.Color(new N.RGBA(111,195,223)),hcLight:e.contrastBorder},L.localize(81,null)),e.keybindingLabelBottomBorder=r("keybindingLabel.bottomBorder",{dark:new N.Color(new N.RGBA(68,68,68,.6)),light:new N.Color(new N.RGBA(187,187,187,.4)),hcDark:new N.Color(new N.RGBA(111,195,223)),hcLight:e.foreground},L.localize(82,null)),e.editorSelectionBackground=r("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},L.localize(83,null)),e.editorSelectionForeground=r("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:N.Color.white},L.localize(84,null)),e.editorInactiveSelection=r("editor.inactiveSelectionBackground",{light:p(e.editorSelectionBackground,.5),dark:p(e.editorSelectionBackground,.5),hcDark:p(e.editorSelectionBackground,.7),hcLight:p(e.editorSelectionBackground,.5)},L.localize(85,null),!0),e.editorSelectionHighlight=r("editor.selectionHighlightBackground",{light:k(e.editorSelectionBackground,e.editorBackground,.3,.6),dark:k(e.editorSelectionBackground,e.editorBackground,.3,.6),hcDark:null,hcLight:null},L.localize(86,null),!0),e.editorSelectionHighlightBorder=r("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:e.activeContrastBorder,hcLight:e.activeContrastBorder},L.localize(87,null)),e.editorFindMatch=r("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},L.localize(88,null)),e.editorFindMatchHighlight=r("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},L.localize(89,null),!0),e.editorFindRangeHighlight=r("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},L.localize(90,null),!0),e.editorFindMatchBorder=r("editor.findMatchBorder",{light:null,dark:null,hcDark:e.activeContrastBorder,hcLight:e.activeContrastBorder},L.localize(91,null)),e.editorFindMatchHighlightBorder=r("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:e.activeContrastBorder,hcLight:e.activeContrastBorder},L.localize(92,null)),e.editorFindRangeHighlightBorder=r("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:p(e.activeContrastBorder,.4),hcLight:p(e.activeContrastBorder,.4)},L.localize(93,null),!0),e.searchEditorFindMatch=r("searchEditor.findMatchBackground",{light:p(e.editorFindMatchHighlight,.66),dark:p(e.editorFindMatchHighlight,.66),hcDark:e.editorFindMatchHighlight,hcLight:e.editorFindMatchHighlight},L.localize(94,null)),e.searchEditorFindMatchBorder=r("searchEditor.findMatchBorder",{light:p(e.editorFindMatchHighlightBorder,.66),dark:p(e.editorFindMatchHighlightBorder,.66),hcDark:e.editorFindMatchHighlightBorder,hcLight:e.editorFindMatchHighlightBorder},L.localize(95,null)),e.editorHoverHighlight=r("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},L.localize(96,null),!0),e.editorHoverBackground=r("editorHoverWidget.background",{light:e.editorWidgetBackground,dark:e.editorWidgetBackground,hcDark:e.editorWidgetBackground,hcLight:e.editorWidgetBackground},L.localize(97,null)),e.editorHoverForeground=r("editorHoverWidget.foreground",{light:e.editorWidgetForeground,dark:e.editorWidgetForeground,hcDark:e.editorWidgetForeground,hcLight:e.editorWidgetForeground},L.localize(98,null)),e.editorHoverBorder=r("editorHoverWidget.border",{light:e.editorWidgetBorder,dark:e.editorWidgetBorder,hcDark:e.editorWidgetBorder,hcLight:e.editorWidgetBorder},L.localize(99,null)),e.editorHoverStatusBarBackground=r("editorHoverWidget.statusBarBackground",{dark:m(e.editorHoverBackground,.2),light:w(e.editorHoverBackground,.05),hcDark:e.editorWidgetBackground,hcLight:e.editorWidgetBackground},L.localize(100,null)),e.editorActiveLinkForeground=r("editorLink.activeForeground",{dark:"#4E94CE",light:N.Color.blue,hcDark:N.Color.cyan,hcLight:"#292929"},L.localize(101,null)),e.editorInlayHintForeground=r("editorInlayHint.foreground",{dark:e.badgeForeground,light:e.badgeForeground,hcDark:N.Color.black,hcLight:e.badgeForeground},L.localize(102,null)),e.editorInlayHintBackground=r("editorInlayHint.background",{dark:p(e.badgeBackground,.8),light:p(e.badgeBackground,.6),hcDark:"#f38518",hcLight:e.badgeBackground},L.localize(103,null)),e.editorInlayHintTypeForeground=r("editorInlayHint.typeForeground",{dark:e.editorInlayHintForeground,light:e.editorInlayHintForeground,hcDark:e.editorInlayHintForeground,hcLight:e.editorInlayHintForeground},L.localize(104,null)),e.editorInlayHintTypeBackground=r("editorInlayHint.typeBackground",{dark:e.editorInlayHintBackground,light:e.editorInlayHintBackground,hcDark:e.editorInlayHintBackground,hcLight:e.editorInlayHintBackground},L.localize(105,null)),e.editorInlayHintParameterForeground=r("editorInlayHint.parameterForeground",{dark:e.editorInlayHintForeground,light:e.editorInlayHintForeground,hcDark:e.editorInlayHintForeground,hcLight:e.editorInlayHintForeground},L.localize(106,null)),e.editorInlayHintParameterBackground=r("editorInlayHint.parameterBackground",{dark:e.editorInlayHintBackground,light:e.editorInlayHintBackground,hcDark:e.editorInlayHintBackground,hcLight:e.editorInlayHintBackground},L.localize(107,null)),e.editorLightBulbForeground=r("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},L.localize(108,null)),e.editorLightBulbAutoFixForeground=r("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},L.localize(109,null)),e.defaultInsertColor=new N.Color(new N.RGBA(155,185,85,.2)),e.defaultRemoveColor=new N.Color(new N.RGBA(255,0,0,.2)),e.diffInserted=r("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c40",hcDark:null,hcLight:null},L.localize(110,null),!0),e.diffRemoved=r("diffEditor.removedTextBackground",{dark:"#ff000033",light:"#ff000033",hcDark:null,hcLight:null},L.localize(111,null),!0),e.diffInsertedLine=r("diffEditor.insertedLineBackground",{dark:e.defaultInsertColor,light:e.defaultInsertColor,hcDark:null,hcLight:null},L.localize(112,null),!0),e.diffRemovedLine=r("diffEditor.removedLineBackground",{dark:e.defaultRemoveColor,light:e.defaultRemoveColor,hcDark:null,hcLight:null},L.localize(113,null),!0),e.diffInsertedLineGutter=r("diffEditorGutter.insertedLineBackground",{dark:null,light:null,hcDark:null,hcLight:null},L.localize(114,null)),e.diffRemovedLineGutter=r("diffEditorGutter.removedLineBackground",{dark:null,light:null,hcDark:null,hcLight:null},L.localize(115,null)),e.diffOverviewRulerInserted=r("diffEditorOverview.insertedForeground",{dark:null,light:null,hcDark:null,hcLight:null},L.localize(116,null)),e.diffOverviewRulerRemoved=r("diffEditorOverview.removedForeground",{dark:null,light:null,hcDark:null,hcLight:null},L.localize(117,null)),e.diffInsertedOutline=r("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},L.localize(118,null)),e.diffRemovedOutline=r("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},L.localize(119,null)),e.diffBorder=r("diffEditor.border",{dark:null,light:null,hcDark:e.contrastBorder,hcLight:e.contrastBorder},L.localize(120,null)),e.diffDiagonalFill=r("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},L.localize(121,null)),e.listFocusBackground=r("list.focusBackground",{dark:null,light:null,hcDark:null,hcLight:null},L.localize(122,null)),e.listFocusForeground=r("list.focusForeground",{dark:null,light:null,hcDark:null,hcLight:null},L.localize(123,null)),e.listFocusOutline=r("list.focusOutline",{dark:e.focusBorder,light:e.focusBorder,hcDark:e.activeContrastBorder,hcLight:e.activeContrastBorder},L.localize(124,null)),e.listFocusAndSelectionOutline=r("list.focusAndSelectionOutline",{dark:null,light:null,hcDark:null,hcLight:null},L.localize(125,null)),e.listActiveSelectionBackground=r("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:N.Color.fromHex("#0F4A85").transparent(.1)},L.localize(126,null)),e.listActiveSelectionForeground=r("list.activeSelectionForeground",{dark:N.Color.white,light:N.Color.white,hcDark:null,hcLight:null},L.localize(127,null)),e.listActiveSelectionIconForeground=r("list.activeSelectionIconForeground",{dark:null,light:null,hcDark:null,hcLight:null},L.localize(128,null)),e.listInactiveSelectionBackground=r("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:N.Color.fromHex("#0F4A85").transparent(.1)},L.localize(129,null)),e.listInactiveSelectionForeground=r("list.inactiveSelectionForeground",{dark:null,light:null,hcDark:null,hcLight:null},L.localize(130,null)),e.listInactiveSelectionIconForeground=r("list.inactiveSelectionIconForeground",{dark:null,light:null,hcDark:null,hcLight:null},L.localize(131,null)),e.listInactiveFocusBackground=r("list.inactiveFocusBackground",{dark:null,light:null,hcDark:null,hcLight:null},L.localize(132,null)),e.listInactiveFocusOutline=r("list.inactiveFocusOutline",{dark:null,light:null,hcDark:null,hcLight:null},L.localize(133,null)),e.listHoverBackground=r("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:N.Color.white.transparent(.1),hcLight:N.Color.fromHex("#0F4A85").transparent(.1)},L.localize(134,null)),e.listHoverForeground=r("list.hoverForeground",{dark:null,light:null,hcDark:null,hcLight:null},L.localize(135,null)),e.listDropBackground=r("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},L.localize(136,null)),e.listHighlightForeground=r("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:e.focusBorder,hcLight:e.focusBorder},L.localize(137,null)),e.listFocusHighlightForeground=r("list.focusHighlightForeground",{dark:e.listHighlightForeground,light:y(e.listActiveSelectionBackground,e.listHighlightForeground,"#BBE7FF"),hcDark:e.listHighlightForeground,hcLight:e.listHighlightForeground},L.localize(138,null)),e.listInvalidItemForeground=r("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},L.localize(139,null)),e.listErrorForeground=r("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},L.localize(140,null)),e.listWarningForeground=r("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},L.localize(141,null)),e.listFilterWidgetBackground=r("listFilterWidget.background",{light:w(e.editorWidgetBackground,0),dark:m(e.editorWidgetBackground,0),hcDark:e.editorWidgetBackground,hcLight:e.editorWidgetBackground},L.localize(142,null)),e.listFilterWidgetOutline=r("listFilterWidget.outline",{dark:N.Color.transparent,light:N.Color.transparent,hcDark:"#f38518",hcLight:"#007ACC"},L.localize(143,null)),e.listFilterWidgetNoMatchesOutline=r("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:e.contrastBorder,hcLight:e.contrastBorder},L.localize(144,null)),e.listFilterWidgetShadow=r("listFilterWidget.shadow",{dark:e.widgetShadow,light:e.widgetShadow,hcDark:e.widgetShadow,hcLight:e.widgetShadow},L.localize(145,null)),e.listFilterMatchHighlight=r("list.filterMatchBackground",{dark:e.editorFindMatchHighlight,light:e.editorFindMatchHighlight,hcDark:null,hcLight:null},L.localize(146,null)),e.listFilterMatchHighlightBorder=r("list.filterMatchBorder",{dark:e.editorFindMatchHighlightBorder,light:e.editorFindMatchHighlightBorder,hcDark:e.contrastBorder,hcLight:e.activeContrastBorder},L.localize(147,null)),e.treeIndentGuidesStroke=r("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},L.localize(148,null)),e.treeInactiveIndentGuidesStroke=r("tree.inactiveIndentGuidesStroke",{dark:p(e.treeIndentGuidesStroke,.4),light:p(e.treeIndentGuidesStroke,.4),hcDark:p(e.treeIndentGuidesStroke,.4),hcLight:p(e.treeIndentGuidesStroke,.4)},L.localize(149,null)),e.tableColumnsBorder=r("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},L.localize(150,null)),e.tableOddRowsBackgroundColor=r("tree.tableOddRowsBackground",{dark:p(e.foreground,.04),light:p(e.foreground,.04),hcDark:null,hcLight:null},L.localize(151,null)),e.listDeemphasizedForeground=r("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},L.localize(152,null)),e.checkboxBackground=r("checkbox.background",{dark:e.selectBackground,light:e.selectBackground,hcDark:e.selectBackground,hcLight:e.selectBackground},L.localize(153,null)),e.checkboxSelectBackground=r("checkbox.selectBackground",{dark:e.editorWidgetBackground,light:e.editorWidgetBackground,hcDark:e.editorWidgetBackground,hcLight:e.editorWidgetBackground},L.localize(154,null)),e.checkboxForeground=r("checkbox.foreground",{dark:e.selectForeground,light:e.selectForeground,hcDark:e.selectForeground,hcLight:e.selectForeground},L.localize(155,null)),e.checkboxBorder=r("checkbox.border",{dark:e.selectBorder,light:e.selectBorder,hcDark:e.selectBorder,hcLight:e.selectBorder},L.localize(156,null)),e.checkboxSelectBorder=r("checkbox.selectBorder",{dark:e.editorWidgetBackground,light:e.editorWidgetBackground,hcDark:e.editorWidgetBackground,hcLight:e.editorWidgetBackground},L.localize(157,null)),e._deprecatedQuickInputListFocusBackground=r("quickInput.list.focusBackground",{dark:null,light:null,hcDark:null,hcLight:null},"",void 0,L.localize(158,null)),e.quickInputListFocusForeground=r("quickInputList.focusForeground",{dark:e.listActiveSelectionForeground,light:e.listActiveSelectionForeground,hcDark:e.listActiveSelectionForeground,hcLight:e.listActiveSelectionForeground},L.localize(159,null)),e.quickInputListFocusIconForeground=r("quickInputList.focusIconForeground",{dark:e.listActiveSelectionIconForeground,light:e.listActiveSelectionIconForeground,hcDark:e.listActiveSelectionIconForeground,hcLight:e.listActiveSelectionIconForeground},L.localize(160,null)),e.quickInputListFocusBackground=r("quickInputList.focusBackground",{dark:b(e._deprecatedQuickInputListFocusBackground,e.listActiveSelectionBackground),light:b(e._deprecatedQuickInputListFocusBackground,e.listActiveSelectionBackground),hcDark:null,hcLight:null},L.localize(161,null)),e.menuBorder=r("menu.border",{dark:null,light:null,hcDark:e.contrastBorder,hcLight:e.contrastBorder},L.localize(162,null)),e.menuForeground=r("menu.foreground",{dark:e.selectForeground,light:e.selectForeground,hcDark:e.selectForeground,hcLight:e.selectForeground},L.localize(163,null)),e.menuBackground=r("menu.background",{dark:e.selectBackground,light:e.selectBackground,hcDark:e.selectBackground,hcLight:e.selectBackground},L.localize(164,null)),e.menuSelectionForeground=r("menu.selectionForeground",{dark:e.listActiveSelectionForeground,light:e.listActiveSelectionForeground,hcDark:e.listActiveSelectionForeground,hcLight:e.listActiveSelectionForeground},L.localize(165,null)),e.menuSelectionBackground=r("menu.selectionBackground",{dark:e.listActiveSelectionBackground,light:e.listActiveSelectionBackground,hcDark:e.listActiveSelectionBackground,hcLight:e.listActiveSelectionBackground},L.localize(166,null)),e.menuSelectionBorder=r("menu.selectionBorder",{dark:null,light:null,hcDark:e.activeContrastBorder,hcLight:e.activeContrastBorder},L.localize(167,null)),e.menuSeparatorBackground=r("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:e.contrastBorder,hcLight:e.contrastBorder},L.localize(168,null)),e.toolbarHoverBackground=r("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},L.localize(169,null)),e.toolbarHoverOutline=r("toolbar.hoverOutline",{dark:null,light:null,hcDark:e.activeContrastBorder,hcLight:e.activeContrastBorder},L.localize(170,null)),e.toolbarActiveBackground=r("toolbar.activeBackground",{dark:m(e.toolbarHoverBackground,.1),light:w(e.toolbarHoverBackground,.1),hcDark:null,hcLight:null},L.localize(171,null)),e.snippetTabstopHighlightBackground=r("editor.snippetTabstopHighlightBackground",{dark:new N.Color(new N.RGBA(124,124,124,.3)),light:new N.Color(new N.RGBA(10,50,100,.2)),hcDark:new N.Color(new N.RGBA(124,124,124,.3)),hcLight:new N.Color(new N.RGBA(10,50,100,.2))},L.localize(172,null)),e.snippetTabstopHighlightBorder=r("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hcDark:null,hcLight:null},L.localize(173,null)),e.snippetFinalTabstopHighlightBackground=r("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hcDark:null,hcLight:null},L.localize(174,null)),e.snippetFinalTabstopHighlightBorder=r("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new N.Color(new N.RGBA(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},L.localize(175,null)),e.breadcrumbsForeground=r("breadcrumb.foreground",{light:p(e.foreground,.8),dark:p(e.foreground,.8),hcDark:p(e.foreground,.8),hcLight:p(e.foreground,.8)},L.localize(176,null)),e.breadcrumbsBackground=r("breadcrumb.background",{light:e.editorBackground,dark:e.editorBackground,hcDark:e.editorBackground,hcLight:e.editorBackground},L.localize(177,null)),e.breadcrumbsFocusForeground=r("breadcrumb.focusForeground",{light:w(e.foreground,.2),dark:m(e.foreground,.1),hcDark:m(e.foreground,.1),hcLight:m(e.foreground,.1)},L.localize(178,null)),e.breadcrumbsActiveSelectionForeground=r("breadcrumb.activeSelectionForeground",{light:w(e.foreground,.2),dark:m(e.foreground,.1),hcDark:m(e.foreground,.1),hcLight:m(e.foreground,.1)},L.localize(179,null)),e.breadcrumbsPickerBackground=r("breadcrumbPicker.background",{light:e.editorWidgetBackground,dark:e.editorWidgetBackground,hcDark:e.editorWidgetBackground,hcLight:e.editorWidgetBackground},L.localize(180,null));const c=.5,d=N.Color.fromHex("#40C8AE").transparent(c),s=N.Color.fromHex("#40A6FF").transparent(c),l=N.Color.fromHex("#606060").transparent(.4),o=.4,u=1;e.mergeCurrentHeaderBackground=r("merge.currentHeaderBackground",{dark:d,light:d,hcDark:null,hcLight:null},L.localize(181,null),!0),e.mergeCurrentContentBackground=r("merge.currentContentBackground",{dark:p(e.mergeCurrentHeaderBackground,o),light:p(e.mergeCurrentHeaderBackground,o),hcDark:p(e.mergeCurrentHeaderBackground,o),hcLight:p(e.mergeCurrentHeaderBackground,o)},L.localize(182,null),!0),e.mergeIncomingHeaderBackground=r("merge.incomingHeaderBackground",{dark:s,light:s,hcDark:null,hcLight:null},L.localize(183,null),!0),e.mergeIncomingContentBackground=r("merge.incomingContentBackground",{dark:p(e.mergeIncomingHeaderBackground,o),light:p(e.mergeIncomingHeaderBackground,o),hcDark:p(e.mergeIncomingHeaderBackground,o),hcLight:p(e.mergeIncomingHeaderBackground,o)},L.localize(184,null),!0),e.mergeCommonHeaderBackground=r("merge.commonHeaderBackground",{dark:l,light:l,hcDark:null,hcLight:null},L.localize(185,null),!0),e.mergeCommonContentBackground=r("merge.commonContentBackground",{dark:p(e.mergeCommonHeaderBackground,o),light:p(e.mergeCommonHeaderBackground,o),hcDark:p(e.mergeCommonHeaderBackground,o),hcLight:p(e.mergeCommonHeaderBackground,o)},L.localize(186,null),!0),e.mergeBorder=r("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},L.localize(187,null)),e.overviewRulerCurrentContentForeground=r("editorOverviewRuler.currentContentForeground",{dark:p(e.mergeCurrentHeaderBackground,u),light:p(e.mergeCurrentHeaderBackground,u),hcDark:e.mergeBorder,hcLight:e.mergeBorder},L.localize(188,null)),e.overviewRulerIncomingContentForeground=r("editorOverviewRuler.incomingContentForeground",{dark:p(e.mergeIncomingHeaderBackground,u),light:p(e.mergeIncomingHeaderBackground,u),hcDark:e.mergeBorder,hcLight:e.mergeBorder},L.localize(189,null)),e.overviewRulerCommonContentForeground=r("editorOverviewRuler.commonContentForeground",{dark:p(e.mergeCommonHeaderBackground,u),light:p(e.mergeCommonHeaderBackground,u),hcDark:e.mergeBorder,hcLight:e.mergeBorder},L.localize(190,null)),e.overviewRulerFindMatchForeground=r("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:""},L.localize(191,null),!0),e.overviewRulerSelectionHighlightForeground=r("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hcDark:"#A0A0A0CC",hcLight:"#A0A0A0CC"},L.localize(192,null),!0),e.minimapFindMatch=r("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},L.localize(193,null),!0),e.minimapSelectionOccurrenceHighlight=r("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},L.localize(194,null),!0),e.minimapSelection=r("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},L.localize(195,null),!0),e.minimapError=r("minimap.errorHighlight",{dark:new N.Color(new N.RGBA(255,18,18,.7)),light:new N.Color(new N.RGBA(255,18,18,.7)),hcDark:new N.Color(new N.RGBA(255,50,50,1)),hcLight:"#B5200D"},L.localize(196,null)),e.minimapWarning=r("minimap.warningHighlight",{dark:e.editorWarningForeground,light:e.editorWarningForeground,hcDark:e.editorWarningBorder,hcLight:e.editorWarningBorder},L.localize(197,null)),e.minimapBackground=r("minimap.background",{dark:null,light:null,hcDark:null,hcLight:null},L.localize(198,null)),e.minimapForegroundOpacity=r("minimap.foregroundOpacity",{dark:N.Color.fromHex("#000f"),light:N.Color.fromHex("#000f"),hcDark:N.Color.fromHex("#000f"),hcLight:N.Color.fromHex("#000f")},L.localize(199,null)),e.minimapSliderBackground=r("minimapSlider.background",{light:p(e.scrollbarSliderBackground,.5),dark:p(e.scrollbarSliderBackground,.5),hcDark:p(e.scrollbarSliderBackground,.5),hcLight:p(e.scrollbarSliderBackground,.5)},L.localize(200,null)),e.minimapSliderHoverBackground=r("minimapSlider.hoverBackground",{light:p(e.scrollbarSliderHoverBackground,.5),dark:p(e.scrollbarSliderHoverBackground,.5),hcDark:p(e.scrollbarSliderHoverBackground,.5),hcLight:p(e.scrollbarSliderHoverBackground,.5)},L.localize(201,null)),e.minimapSliderActiveBackground=r("minimapSlider.activeBackground",{light:p(e.scrollbarSliderActiveBackground,.5),dark:p(e.scrollbarSliderActiveBackground,.5),hcDark:p(e.scrollbarSliderActiveBackground,.5),hcLight:p(e.scrollbarSliderActiveBackground,.5)},L.localize(202,null)),e.problemsErrorIconForeground=r("problemsErrorIcon.foreground",{dark:e.editorErrorForeground,light:e.editorErrorForeground,hcDark:e.editorErrorForeground,hcLight:e.editorErrorForeground},L.localize(203,null)),e.problemsWarningIconForeground=r("problemsWarningIcon.foreground",{dark:e.editorWarningForeground,light:e.editorWarningForeground,hcDark:e.editorWarningForeground,hcLight:e.editorWarningForeground},L.localize(204,null)),e.problemsInfoIconForeground=r("problemsInfoIcon.foreground",{dark:e.editorInfoForeground,light:e.editorInfoForeground,hcDark:e.editorInfoForeground,hcLight:e.editorInfoForeground},L.localize(205,null)),e.chartsForeground=r("charts.foreground",{dark:e.foreground,light:e.foreground,hcDark:e.foreground,hcLight:e.foreground},L.localize(206,null)),e.chartsLines=r("charts.lines",{dark:p(e.foreground,.5),light:p(e.foreground,.5),hcDark:p(e.foreground,.5),hcLight:p(e.foreground,.5)},L.localize(207,null)),e.chartsRed=r("charts.red",{dark:e.editorErrorForeground,light:e.editorErrorForeground,hcDark:e.editorErrorForeground,hcLight:e.editorErrorForeground},L.localize(208,null)),e.chartsBlue=r("charts.blue",{dark:e.editorInfoForeground,light:e.editorInfoForeground,hcDark:e.editorInfoForeground,hcLight:e.editorInfoForeground},L.localize(209,null)),e.chartsYellow=r("charts.yellow",{dark:e.editorWarningForeground,light:e.editorWarningForeground,hcDark:e.editorWarningForeground,hcLight:e.editorWarningForeground},L.localize(210,null)),e.chartsOrange=r("charts.orange",{dark:e.minimapFindMatch,light:e.minimapFindMatch,hcDark:e.minimapFindMatch,hcLight:e.minimapFindMatch},L.localize(211,null)),e.chartsGreen=r("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},L.localize(212,null)),e.chartsPurple=r("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},L.localize(213,null));function h(R,P){var A,T,O,B;switch(R.op){case 0:return(A=D(R.value,P))===null||A===void 0?void 0:A.darken(R.factor);case 1:return(T=D(R.value,P))===null||T===void 0?void 0:T.lighten(R.factor);case 2:return(O=D(R.value,P))===null||O===void 0?void 0:O.transparent(R.factor);case 3:{const W=D(R.background,P);return W?(B=D(R.value,P))===null||B===void 0?void 0:B.makeOpaque(W):D(R.value,P)}case 4:for(const W of R.values){const j=D(W,P);if(j)return j}return;case 6:return D(P.defines(R.if)?R.then:R.else,P);case 5:{const W=D(R.value,P);if(!W)return;const j=D(R.background,P);return j?W.isDarkerThan(j)?N.Color.getLighterColor(W,j,R.factor).transparent(R.transparency):N.Color.getDarkerColor(W,j,R.factor).transparent(R.transparency):W.transparent(R.factor*R.transparency)}default:throw(0,I.assertNever)(R)}}e.executeTransform=h;function w(R,P){return{op:0,value:R,factor:P}}e.darken=w;function m(R,P){return{op:1,value:R,factor:P}}e.lighten=m;function p(R,P){return{op:2,value:R,factor:P}}e.transparent=p;function b(...R){return{op:4,values:R}}e.oneOf=b;function y(R,P,A){return{op:6,if:R,then:P,else:A}}e.ifDefinedThenElse=y;function k(R,P,A,T){return{op:5,value:R,background:P,factor:A,transparency:T}}function D(R,P){if(R!==null){if(typeof R=="string")return R[0]==="#"?N.Color.fromHex(R):P.getColor(R);if(R instanceof N.Color)return R;if(typeof R=="object")return h(R,P)}}e.resolveColorValue=D,e.workbenchColorsSchemaId="vscode://schemas/workbench-colors";const M=v.Registry.as(S.Extensions.JSONContribution);M.registerSchema(e.workbenchColorsSchemaId,n.getColorSchema());const z=new C.RunOnceScheduler(()=>M.notifySchemaChanged(e.workbenchColorsSchemaId),200);n.onDidChangeSchema(()=>{z.isScheduled()||z.schedule()})}),define(_[147],ee([1,0,7,136,66,11,2,31]),function(q,e,C,N,E,I,L,S){"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 v{constructor(h,w){this.x=h,this.y=w,this._pageCoordinatesBrand=void 0}toClientCoordinates(){return new f(this.x-window.scrollX,this.y-window.scrollY)}}e.PageCoordinates=v;class f{constructor(h,w){this.clientX=h,this.clientY=w,this._clientCoordinatesBrand=void 0}toPageCoordinates(){return new v(this.clientX+window.scrollX,this.clientY+window.scrollY)}}e.ClientCoordinates=f;class g{constructor(h,w,m,p){this.x=h,this.y=w,this.width=m,this.height=p,this._editorPagePositionBrand=void 0}}e.EditorPagePosition=g;class i{constructor(h,w){this.x=h,this.y=w,this._positionRelativeToEditorBrand=void 0}}e.CoordinatesRelativeToEditor=i;function t(u){const h=C.getDomNodePagePosition(u);return new g(h.left,h.top,h.width,h.height)}e.createEditorPagePosition=t;function n(u,h,w){const m=h.width/u.offsetWidth,p=h.height/u.offsetHeight,b=(w.x-h.x)/m,y=(w.y-h.y)/p;return new i(b,y)}e.createCoordinatesRelativeToEditor=n;class a extends E.StandardMouseEvent{constructor(h,w,m){super(h),this._editorMouseEventBrand=void 0,this.isFromPointerCapture=w,this.pos=new v(this.posx,this.posy),this.editorPos=t(m),this.relativePos=n(m,this.editorPos,this.pos)}}e.EditorMouseEvent=a;class r{constructor(h){this.a=h}b(h){return new a(h,!1,this.a)}onContextMenu(h,w){return C.addDisposableListener(h,"contextmenu",m=>{w(this.b(m))})}onMouseUp(h,w){return C.addDisposableListener(h,"mouseup",m=>{w(this.b(m))})}onMouseDown(h,w){return C.addDisposableListener(h,C.EventType.MOUSE_DOWN,m=>{w(this.b(m))})}onPointerDown(h,w){return C.addDisposableListener(h,C.EventType.POINTER_DOWN,m=>{w(this.b(m),m.pointerId)})}onMouseLeave(h,w){return C.addDisposableListener(h,C.EventType.MOUSE_LEAVE,m=>{w(this.b(m))})}onMouseMove(h,w){return C.addDisposableListener(h,"mousemove",m=>w(this.b(m)))}}e.EditorMouseEventFactory=r;class c{constructor(h){this.a=h}b(h){return new a(h,!1,this.a)}onPointerUp(h,w){return C.addDisposableListener(h,"pointerup",m=>{w(this.b(m))})}onPointerDown(h,w){return C.addDisposableListener(h,C.EventType.POINTER_DOWN,m=>{w(this.b(m),m.pointerId)})}onPointerLeave(h,w){return C.addDisposableListener(h,C.EventType.POINTER_LEAVE,m=>{w(this.b(m))})}onPointerMove(h,w){return C.addDisposableListener(h,"pointermove",m=>w(this.b(m)))}}e.EditorPointerEventFactory=c;class d extends L.Disposable{constructor(h){super(),this.a=h,this.b=this.q(new N.GlobalPointerMoveMonitor),this.c=null}startMonitoring(h,w,m,p,b){this.c=C.addStandardDisposableListener(document,"keydown",y=>{y.toKeyCodeChord().isModifierKey()||this.b.stopMonitoring(!0,y.browserEvent)},!0),this.b.startMonitoring(h,w,m,y=>{p(new a(y,!0,this.a))},y=>{this.c.dispose(),b(y)})}stopMonitoring(){this.b.stopMonitoring(!0)}}e.GlobalEditorPointerMoveMonitor=d;class s{constructor(h){this.g=h,this.b=++s.a,this.c=0,this.d=new Map,this.f=new I.RunOnceScheduler(()=>this.j(),1e3)}createClassNameRef(h){const w=this.h(h);return w.increaseRefCount(),{className:w.className,dispose:()=>{w.decreaseRefCount(),this.f.schedule()}}}h(h){const w=this.i(h);let m=this.d.get(w);if(!m){const p=this.c++;m=new l(w,`dyn-rule-${this.b}-${p}`,C.isInShadowDOM(this.g.getContainerDomNode())?this.g.getContainerDomNode():void 0,h),this.d.set(w,m)}return m}i(h){return JSON.stringify(h)}j(){for(const h of this.d.values())h.hasReferences()||(this.d.delete(h.key),h.dispose())}}s.a=0,e.DynamicCssRules=s;class l{constructor(h,w,m,p){this.key=h,this.className=w,this.properties=p,this.a=0,this.b=C.createStyleSheet(m),this.b.textContent=this.c(this.className,this.properties)}c(h,w){let m=`.${h} {`;for(const p in w){const b=w[p];let y;typeof b=="object"?y=(0,S.asCssVariable)(b.id):y=b,m+=`
|
||
${o(p)}: ${y};`}return m+=`
|
||
}`,m}dispose(){this.b.remove()}increaseRefCount(){this.a++}decreaseRefCount(){this.a--}hasReferences(){return this.a>0}}function o(u){return u.replace(/(^[A-Z])/,([h])=>h.toLowerCase()).replace(/([A-Z])/g,([h])=>`-${h.toLowerCase()}`)}}),define(_[765],ee([1,0,7,35,136,2,16,9,213,51,40,4,249,290,82,31,22,56,437,47,92,383]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s,l,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Minimap=void 0;const u=140,h=2;class w{constructor(P,A,T){const O=P.options,B=O.get(136),W=O.get(138),j=W.minimap,F=O.get(47),U=O.get(69);this.renderMinimap=j.renderMinimap,this.size=U.size,this.minimapHeightIsEditorHeight=j.minimapHeightIsEditorHeight,this.scrollBeyondLastLine=O.get(99),this.paddingTop=O.get(80).top,this.paddingBottom=O.get(80).bottom,this.showSlider=U.showSlider,this.autohide=U.autohide,this.pixelRatio=B,this.typicalHalfwidthCharacterWidth=F.typicalHalfwidthCharacterWidth,this.lineHeight=O.get(63),this.minimapLeft=j.minimapLeft,this.minimapWidth=j.minimapWidth,this.minimapHeight=W.height,this.canvasInnerWidth=j.minimapCanvasInnerWidth,this.canvasInnerHeight=j.minimapCanvasInnerHeight,this.canvasOuterWidth=j.minimapCanvasOuterWidth,this.canvasOuterHeight=j.minimapCanvasOuterHeight,this.isSampling=j.minimapIsSampling,this.editorHeight=W.height,this.fontScale=j.minimapScale,this.minimapLineHeight=j.minimapLineHeight,this.minimapCharWidth=1*this.fontScale,this.charRenderer=(0,o.once)(()=>s.MinimapCharRendererFactory.create(this.fontScale,F.fontFamily)),this.defaultBackgroundColor=T.getColor(2),this.backgroundColor=w.c(A,this.defaultBackgroundColor),this.foregroundAlpha=w.d(A)}static c(P,A){const T=P.getColor(r.minimapBackground);return T?new t.RGBA8(T.rgba.r,T.rgba.g,T.rgba.b,Math.round(255*T.rgba.a)):A}static d(P){const A=P.getColor(r.minimapForegroundOpacity);return A?t.RGBA8._clamp(Math.round(255*A.rgba.a)):255}equals(P){return this.renderMinimap===P.renderMinimap&&this.size===P.size&&this.minimapHeightIsEditorHeight===P.minimapHeightIsEditorHeight&&this.scrollBeyondLastLine===P.scrollBeyondLastLine&&this.paddingTop===P.paddingTop&&this.paddingBottom===P.paddingBottom&&this.showSlider===P.showSlider&&this.autohide===P.autohide&&this.pixelRatio===P.pixelRatio&&this.typicalHalfwidthCharacterWidth===P.typicalHalfwidthCharacterWidth&&this.lineHeight===P.lineHeight&&this.minimapLeft===P.minimapLeft&&this.minimapWidth===P.minimapWidth&&this.minimapHeight===P.minimapHeight&&this.canvasInnerWidth===P.canvasInnerWidth&&this.canvasInnerHeight===P.canvasInnerHeight&&this.canvasOuterWidth===P.canvasOuterWidth&&this.canvasOuterHeight===P.canvasOuterHeight&&this.isSampling===P.isSampling&&this.editorHeight===P.editorHeight&&this.fontScale===P.fontScale&&this.minimapLineHeight===P.minimapLineHeight&&this.minimapCharWidth===P.minimapCharWidth&&this.defaultBackgroundColor&&this.defaultBackgroundColor.equals(P.defaultBackgroundColor)&&this.backgroundColor&&this.backgroundColor.equals(P.backgroundColor)&&this.foregroundAlpha===P.foregroundAlpha}}class m{constructor(P,A,T,O,B,W,j,F,U){this.scrollTop=P,this.scrollHeight=A,this.sliderNeeded=T,this.c=O,this.sliderTop=B,this.sliderHeight=W,this.topPaddingLineCount=j,this.startLineNumber=F,this.endLineNumber=U}getDesiredScrollTopFromDelta(P){return Math.round(this.scrollTop+P/this.c)}getDesiredScrollTopFromTouchLocation(P){return Math.round((P-this.sliderHeight/2)/this.c)}intersectWithViewport(P){const A=Math.max(this.startLineNumber,P.startLineNumber),T=Math.min(this.endLineNumber,P.endLineNumber);return A>T?null:[A,T]}getYForLineNumber(P,A){return+(P-this.startLineNumber+this.topPaddingLineCount)*A}static create(P,A,T,O,B,W,j,F,U,Q,se){const he=P.pixelRatio,ie=P.minimapLineHeight,ue=Math.floor(P.canvasInnerHeight/ie),J=P.lineHeight;if(P.minimapHeightIsEditorHeight){let K=F*P.lineHeight+P.paddingTop+P.paddingBottom;P.scrollBeyondLastLine&&(K+=Math.max(0,B-P.lineHeight-P.paddingBottom));const Y=Math.max(1,Math.floor(B*B/K)),ne=Math.max(0,P.minimapHeight-Y),V=ne/(Q-B),H=U*V,$=ne>0,oe=Math.floor(P.canvasInnerHeight/P.minimapLineHeight),re=Math.floor(P.paddingTop/P.lineHeight);return new m(U,Q,$,V,H,Y,re,1,Math.min(j,oe))}let x;if(W&&T!==j){const K=T-A+1;x=Math.floor(K*ie/he)}else{const K=B/J;x=Math.floor(K*ie/he)}const G=Math.floor(P.paddingTop/J);let te=Math.floor(P.paddingBottom/J);if(P.scrollBeyondLastLine){const K=B/J;te=Math.max(te,K-1)}let Z;if(te>0){const K=B/J;Z=(G+j+te-K-1)*ie/he}else Z=Math.max(0,(G+j)*ie/he-x);Z=Math.min(P.minimapHeight-x,Z);const ae=Z/(Q-B),de=U*ae;if(ue>=G+j+te){const K=Z>0;return new m(U,Q,K,ae,de,x,G,1,j)}else{let K;A>1?K=A+G:K=Math.max(1,U/J);let Y,ne=Math.max(1,Math.floor(K-de*he/ie));ne<G?(Y=G-ne+1,ne=1):(Y=0,ne=Math.max(1,ne-G)),se&&se.scrollHeight===Q&&(se.scrollTop>U&&(ne=Math.min(ne,se.startLineNumber),Y=Math.max(Y,se.topPaddingLineCount)),se.scrollTop<U&&(ne=Math.max(ne,se.startLineNumber),Y=Math.min(Y,se.topPaddingLineCount)));const V=Math.min(j,ne-Y+ue-1),H=(U-O)/J;let $;return U>P.paddingTop?$=(A-ne+Y+H)*ie/he:$=U/P.paddingTop*(Y+H)*ie/he,new m(U,Q,!0,ae,$,x,Y,ne,V)}}}class p{constructor(P){this.dy=P}onContentChanged(){this.dy=-1}onTokensChanged(){this.dy=-1}}p.INVALID=new p(-1);class b{constructor(P,A,T){this.renderedLayout=P,this.c=A,this.d=new v.RenderedLinesCollection(()=>p.INVALID),this.d._set(P.startLineNumber,T)}linesEquals(P){if(!this.scrollEquals(P))return!1;const T=this.d._get().lines;for(let O=0,B=T.length;O<B;O++)if(T[O].dy===-1)return!1;return!0}scrollEquals(P){return this.renderedLayout.startLineNumber===P.startLineNumber&&this.renderedLayout.endLineNumber===P.endLineNumber}_get(){const P=this.d._get();return{imageData:this.c,rendLineNumberStart:P.rendLineNumberStart,lines:P.lines}}onLinesChanged(P,A){return this.d.onLinesChanged(P,A)}onLinesDeleted(P,A){this.d.onLinesDeleted(P,A)}onLinesInserted(P,A){this.d.onLinesInserted(P,A)}onTokensChanged(P){return this.d.onTokensChanged(P)}}class y{constructor(P,A,T,O){this.c=y.h(A,T,O),this.d=[P.createImageData(A,T),P.createImageData(A,T)],this.f=0}getBuffer(){this.f=1-this.f;const P=this.d[this.f];return P.data.set(this.c),P}static h(P,A,T){const O=T.r,B=T.g,W=T.b,j=T.a,F=new Uint8ClampedArray(P*A*4);let U=0;for(let Q=0;Q<A;Q++)for(let se=0;se<P;se++)F[U]=O,F[U+1]=B,F[U+2]=W,F[U+3]=j,U+=4;return F}}class k{static compute(P,A,T){if(P.renderMinimap===0||!P.isSampling)return[null,[]];const{minimapLineCount:O}=g.EditorLayoutInfoComputer.computeContainedMinimapLineCount({viewLineCount:A,scrollBeyondLastLine:P.scrollBeyondLastLine,paddingTop:P.paddingTop,paddingBottom:P.paddingBottom,height:P.editorHeight,lineHeight:P.lineHeight,pixelRatio:P.pixelRatio}),B=A/O,W=B/2;if(!T||T.minimapLines.length===0){const x=[];if(x[0]=1,O>1){for(let G=0,te=O-1;G<te;G++)x[G]=Math.round(G*B+W);x[O-1]=A}return[new k(B,x),[]]}const j=T.minimapLines,F=j.length,U=[];let Q=0,se=0,he=1;const ie=10;let ue=[],J=null;for(let x=0;x<O;x++){const G=Math.max(he,Math.round(x*B)),te=Math.max(G,Math.round((x+1)*B));for(;Q<F&&j[Q]<G;){if(ue.length<ie){const ae=Q+1+se;J&&J.type==="deleted"&&J._oldIndex===Q-1?J.deleteToLineNumber++:(J={type:"deleted",_oldIndex:Q,deleteFromLineNumber:ae,deleteToLineNumber:ae},ue.push(J)),se--}Q++}let Z;if(Q<F&&j[Q]<=te)Z=j[Q],Q++;else if(x===0?Z=1:x+1===O?Z=A:Z=Math.round(x*B+W),ue.length<ie){const ae=Q+1+se;J&&J.type==="inserted"&&J._i===x-1?J.insertToLineNumber++:(J={type:"inserted",_i:x,insertFromLineNumber:ae,insertToLineNumber:ae},ue.push(J)),se++}U[x]=Z,he=Z}if(ue.length<ie)for(;Q<F;){const x=Q+1+se;J&&J.type==="deleted"&&J._oldIndex===Q-1?J.deleteToLineNumber++:(J={type:"deleted",_oldIndex:Q,deleteFromLineNumber:x,deleteToLineNumber:x},ue.push(J)),se--,Q++}else ue=[{type:"flush"}];return[new k(B,U),ue]}constructor(P,A){this.samplingRatio=P,this.minimapLines=A}modelLineToMinimapLine(P){return Math.min(this.minimapLines.length,Math.max(1,Math.round(P/this.samplingRatio)))}modelLineRangeToMinimapLineRange(P,A){let T=this.modelLineToMinimapLine(P)-1;for(;T>0&&this.minimapLines[T-1]>=P;)T--;let O=this.modelLineToMinimapLine(A)-1;for(;O+1<this.minimapLines.length&&this.minimapLines[O+1]<=A;)O++;if(T===O){const B=this.minimapLines[T];if(B<P||B>A)return null}return[T+1,O+1]}decorationLineRangeToMinimapLineRange(P,A){let T=this.modelLineToMinimapLine(P),O=this.modelLineToMinimapLine(A);return P!==A&&O===T&&(O===this.minimapLines.length?T>1&&T--:O++),[T,O]}onLinesDeleted(P){const A=P.toLineNumber-P.fromLineNumber+1;let T=this.minimapLines.length,O=0;for(let B=this.minimapLines.length-1;B>=0&&!(this.minimapLines[B]<P.fromLineNumber);B--)this.minimapLines[B]<=P.toLineNumber?(this.minimapLines[B]=Math.max(1,P.fromLineNumber-1),T=Math.min(T,B),O=Math.max(O,B)):this.minimapLines[B]-=A;return[T,O]}onLinesInserted(P){const A=P.toLineNumber-P.fromLineNumber+1;for(let T=this.minimapLines.length-1;T>=0&&!(this.minimapLines[T]<P.fromLineNumber);T--)this.minimapLines[T]+=A}}class D extends f.ViewPart{constructor(P){super(P),this.tokensColorTracker=n.MinimapTokensColorTracker.getInstance(),this.c=[],this.k=null,this.options=new w(this._context.configuration,this._context.theme,this.tokensColorTracker);const[A]=k.compute(this.options,this._context.viewModel.getLineCount(),null);this.m=A,this.n=!1,this.p=new M(P.theme,this)}dispose(){this.p.dispose(),super.dispose()}getDomNode(){return this.p.getDomNode()}s(){const P=new w(this._context.configuration,this._context.theme,this.tokensColorTracker);return this.options.equals(P)?!1:(this.options=P,this.t(),this.p.onDidChangeOptions(),!0)}onConfigurationChanged(P){return this.s()}onCursorStateChanged(P){return this.c=P.selections,this.k=null,this.p.onSelectionChanged()}onDecorationsChanged(P){return P.affectsMinimap?this.p.onDecorationsChanged():!1}onFlushed(P){return this.m&&(this.n=!0),this.p.onFlushed()}onLinesChanged(P){if(this.m){const A=this.m.modelLineRangeToMinimapLineRange(P.fromLineNumber,P.fromLineNumber+P.count-1);return A?this.p.onLinesChanged(A[0],A[1]-A[0]+1):!1}else return this.p.onLinesChanged(P.fromLineNumber,P.count)}onLinesDeleted(P){if(this.m){const[A,T]=this.m.onLinesDeleted(P);return A<=T&&this.p.onLinesChanged(A+1,T-A+1),this.n=!0,!0}else return this.p.onLinesDeleted(P.fromLineNumber,P.toLineNumber)}onLinesInserted(P){return this.m?(this.m.onLinesInserted(P),this.n=!0,!0):this.p.onLinesInserted(P.fromLineNumber,P.toLineNumber)}onScrollChanged(P){return this.p.onScrollChanged()}onThemeChanged(P){return this.p.onThemeChanged(),this.s(),!0}onTokensChanged(P){if(this.m){const A=[];for(const T of P.ranges){const O=this.m.modelLineRangeToMinimapLineRange(T.fromLineNumber,T.toLineNumber);O&&A.push({fromLineNumber:O[0],toLineNumber:O[1]})}return A.length?this.p.onTokensChanged(A):!1}else return this.p.onTokensChanged(P.ranges)}onTokensColorsChanged(P){return this.s(),this.p.onTokensColorsChanged()}onZonesChanged(P){return this.p.onZonesChanged()}prepareRender(P){this.n&&(this.n=!1,this.t())}render(P){let A=P.visibleRange.startLineNumber,T=P.visibleRange.endLineNumber;this.m&&(A=this.m.modelLineToMinimapLine(A),T=this.m.modelLineToMinimapLine(T));const O={viewportContainsWhitespaceGaps:P.viewportData.whitespaceViewportData.length>0,scrollWidth:P.scrollWidth,scrollHeight:P.scrollHeight,viewportStartLineNumber:A,viewportEndLineNumber:T,viewportStartLineNumberVerticalOffset:P.getVerticalOffsetForLineNumber(A),scrollTop:P.scrollTop,scrollLeft:P.scrollLeft,viewportWidth:P.viewportWidth,viewportHeight:P.viewportHeight};this.p.render(O)}t(){this.k=null;const P=Boolean(this.m),[A,T]=k.compute(this.options,this._context.viewModel.getLineCount(),this.m);if(this.m=A,P&&this.m)for(const O of T)switch(O.type){case"deleted":this.p.onLinesDeleted(O.deleteFromLineNumber,O.deleteToLineNumber);break;case"inserted":this.p.onLinesInserted(O.insertFromLineNumber,O.insertToLineNumber);break;case"flush":this.p.onFlushed();break}}getLineCount(){return this.m?this.m.minimapLines.length:this._context.viewModel.getLineCount()}getRealLineCount(){return this._context.viewModel.getLineCount()}getLineContent(P){return this.m?this._context.viewModel.getLineContent(this.m.minimapLines[P-1]):this._context.viewModel.getLineContent(P)}getLineMaxColumn(P){return this.m?this._context.viewModel.getLineMaxColumn(this.m.minimapLines[P-1]):this._context.viewModel.getLineMaxColumn(P)}getMinimapLinesRenderingData(P,A,T){if(this.m){const O=[];for(let B=0,W=A-P+1;B<W;B++)T[B]?O[B]=this._context.viewModel.getViewLineData(this.m.minimapLines[P+B-1]):O[B]=null;return O}return this._context.viewModel.getMinimapLinesRenderingData(P,A,T).data}getSelections(){if(this.k===null)if(this.m){this.k=[];for(const P of this.c){const[A,T]=this.m.decorationLineRangeToMinimapLineRange(P.startLineNumber,P.endLineNumber);this.k.push(new c.Selection(A,P.startColumn,T,P.endColumn))}}else this.k=this.c;return this.k}getMinimapDecorationsInViewport(P,A){let T;if(this.m){const B=this.m.minimapLines[P-1],W=this.m.minimapLines[A-1];T=new i.Range(B,1,W,this._context.viewModel.getLineMaxColumn(W))}else T=new i.Range(P,1,A,this._context.viewModel.getLineMaxColumn(A));const O=this._context.viewModel.getDecorationsInViewport(T,!0);if(this.m){const B=[];for(const W of O){if(!W.options.minimap)continue;const j=W.range,F=this.m.modelLineToMinimapLine(j.startLineNumber),U=this.m.modelLineToMinimapLine(j.endLineNumber);B.push(new a.ViewModelDecoration(new i.Range(F,j.startColumn,U,j.endColumn),W.options))}return B}return O}getOptions(){return this._context.viewModel.model.getOptions()}revealLineNumber(P){this.m&&(P=this.m.minimapLines[P-1]),this._context.viewModel.revealRange("mouse",!1,new i.Range(P,1,P,1),1,0)}setScrollTop(P){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:P},1)}}e.Minimap=D;class M extends I.Disposable{constructor(P,A){super(),this.G=!1,this.H=!1,this.c=P,this.h=A,this.D=null,this.I=null,this.F=this.c.getColor(r.minimapSelection),this.k=(0,N.createFastDomNode)(document.createElement("div")),f.PartFingerprints.write(this.k,8),this.k.setClassName(this.M()),this.k.setPosition("absolute"),this.k.setAttribute("role","presentation"),this.k.setAttribute("aria-hidden","true"),this.l=(0,N.createFastDomNode)(document.createElement("div")),this.l.setClassName("minimap-shadow-hidden"),this.k.appendChild(this.l),this.m=(0,N.createFastDomNode)(document.createElement("canvas")),this.m.setPosition("absolute"),this.m.setLeft(0),this.k.appendChild(this.m),this.n=(0,N.createFastDomNode)(document.createElement("canvas")),this.n.setPosition("absolute"),this.n.setClassName("minimap-decorations-layer"),this.n.setLeft(0),this.k.appendChild(this.n),this.p=(0,N.createFastDomNode)(document.createElement("div")),this.p.setPosition("absolute"),this.p.setClassName("minimap-slider"),this.p.setLayerHinting(!0),this.p.setContain("strict"),this.k.appendChild(this.p),this.s=(0,N.createFastDomNode)(document.createElement("div")),this.s.setPosition("absolute"),this.s.setClassName("minimap-slider-horizontal"),this.p.appendChild(this.s),this.N(),this.t=C.addStandardDisposableListener(this.k.domNode,C.EventType.POINTER_DOWN,T=>{if(T.preventDefault(),this.h.options.renderMinimap===0||!this.D)return;if(this.h.options.size!=="proportional"){if(T.button===0&&this.D){const U=C.getDomNodePagePosition(this.p.domNode),Q=U.top+U.height/2;this.J(T,Q,this.D.renderedLayout)}return}const B=this.h.options.minimapLineHeight,W=this.h.options.canvasInnerHeight/this.h.options.canvasOuterHeight*T.offsetY;let F=Math.floor(W/B)+this.D.renderedLayout.startLineNumber-this.D.renderedLayout.topPaddingLineCount;F=Math.min(F,this.h.getLineCount()),this.h.revealLineNumber(F)}),this.u=new E.GlobalPointerMoveMonitor,this.v=C.addStandardDisposableListener(this.p.domNode,C.EventType.POINTER_DOWN,T=>{T.preventDefault(),T.stopPropagation(),T.button===0&&this.D&&this.J(T,T.pageY,this.D.renderedLayout)}),this.w=d.Gesture.addTarget(this.k.domNode),this.z=C.addDisposableListener(this.k.domNode,d.EventType.Start,T=>{T.preventDefault(),T.stopPropagation(),this.D&&(this.p.toggleClassName("active",!0),this.H=!0,this.L(T))},{passive:!1}),this.B=C.addDisposableListener(this.k.domNode,d.EventType.Change,T=>{T.preventDefault(),T.stopPropagation(),this.D&&this.H&&this.L(T)},{passive:!1}),this.C=C.addStandardDisposableListener(this.k.domNode,d.EventType.End,T=>{T.preventDefault(),T.stopPropagation(),this.H=!1,this.p.toggleClassName("active",!1)})}J(P,A,T){if(!P.target||!(P.target instanceof Element))return;const O=P.pageX;this.p.toggleClassName("active",!0);const B=(W,j)=>{const F=C.getDomNodePagePosition(this.k.domNode),U=Math.min(Math.abs(j-O),Math.abs(j-F.left),Math.abs(j-F.left-F.width));if(L.isWindows&&U>u){this.h.setScrollTop(T.scrollTop);return}const Q=W-A;this.h.setScrollTop(T.getDesiredScrollTopFromDelta(Q))};P.pageY!==A&&B(P.pageY,O),this.u.startMonitoring(P.target,P.pointerId,P.buttons,W=>B(W.pageY,W.pageX),()=>{this.p.toggleClassName("active",!1)})}L(P){const A=this.k.domNode.getBoundingClientRect().top,T=this.D.renderedLayout.getDesiredScrollTopFromTouchLocation(P.pageY-A);this.h.setScrollTop(T)}dispose(){this.t.dispose(),this.u.dispose(),this.v.dispose(),this.w.dispose(),this.z.dispose(),this.B.dispose(),this.C.dispose(),super.dispose()}M(){const P=["minimap"];return this.h.options.showSlider==="always"?P.push("slider-always"):P.push("slider-mouseover"),this.h.options.autohide&&P.push("autohide"),P.join(" ")}getDomNode(){return this.k}N(){this.k.setLeft(this.h.options.minimapLeft),this.k.setWidth(this.h.options.minimapWidth),this.k.setHeight(this.h.options.minimapHeight),this.l.setHeight(this.h.options.minimapHeight),this.m.setWidth(this.h.options.canvasOuterWidth),this.m.setHeight(this.h.options.canvasOuterHeight),this.m.domNode.width=this.h.options.canvasInnerWidth,this.m.domNode.height=this.h.options.canvasInnerHeight,this.n.setWidth(this.h.options.canvasOuterWidth),this.n.setHeight(this.h.options.canvasOuterHeight),this.n.domNode.width=this.h.options.canvasInnerWidth,this.n.domNode.height=this.h.options.canvasInnerHeight,this.p.setWidth(this.h.options.minimapWidth)}O(){return this.I||this.h.options.canvasInnerWidth>0&&this.h.options.canvasInnerHeight>0&&(this.I=new y(this.m.domNode.getContext("2d"),this.h.options.canvasInnerWidth,this.h.options.canvasInnerHeight,this.h.options.backgroundColor)),this.I?this.I.getBuffer():null}onDidChangeOptions(){this.D=null,this.I=null,this.N(),this.k.setClassName(this.M())}onSelectionChanged(){return this.G=!0,!0}onDecorationsChanged(){return this.G=!0,!0}onFlushed(){return this.D=null,!0}onLinesChanged(P,A){return this.D?this.D.onLinesChanged(P,A):!1}onLinesDeleted(P,A){var T;return(T=this.D)===null||T===void 0||T.onLinesDeleted(P,A),!0}onLinesInserted(P,A){var T;return(T=this.D)===null||T===void 0||T.onLinesInserted(P,A),!0}onScrollChanged(){return this.G=!0,!0}onThemeChanged(){return this.F=this.c.getColor(r.minimapSelection),this.G=!0,!0}onTokensChanged(P){return this.D?this.D.onTokensChanged(P):!1}onTokensColorsChanged(){return this.D=null,this.I=null,!0}onZonesChanged(){return this.D=null,!0}render(P){if(this.h.options.renderMinimap===0){this.l.setClassName("minimap-shadow-hidden"),this.s.setWidth(0),this.s.setHeight(0);return}P.scrollLeft+P.viewportWidth>=P.scrollWidth?this.l.setClassName("minimap-shadow-hidden"):this.l.setClassName("minimap-shadow-visible");const T=m.create(this.h.options,P.viewportStartLineNumber,P.viewportEndLineNumber,P.viewportStartLineNumberVerticalOffset,P.viewportHeight,P.viewportContainsWhitespaceGaps,this.h.getLineCount(),this.h.getRealLineCount(),P.scrollTop,P.scrollHeight,this.D?this.D.renderedLayout:null);this.p.setDisplay(T.sliderNeeded?"block":"none"),this.p.setTop(T.sliderTop),this.p.setHeight(T.sliderHeight),this.s.setLeft(0),this.s.setWidth(this.h.options.minimapWidth),this.s.setTop(0),this.s.setHeight(T.sliderHeight),this.P(T),this.D=this.Z(T)}P(P){if(this.G){this.G=!1;const A=this.h.getSelections();A.sort(i.Range.compareRangesUsingStarts);const T=this.h.getMinimapDecorationsInViewport(P.startLineNumber,P.endLineNumber);T.sort((he,ie)=>(he.options.zIndex||0)-(ie.options.zIndex||0));const{canvasInnerWidth:O,canvasInnerHeight:B}=this.h.options,W=this.h.options.minimapLineHeight,j=this.h.options.minimapCharWidth,F=this.h.getOptions().tabSize,U=this.n.domNode.getContext("2d");U.clearRect(0,0,O,B);const Q=new z(P.startLineNumber,P.endLineNumber,!1);this.Q(U,A,Q,P,W),this.R(U,T,Q,P,W);const se=new z(P.startLineNumber,P.endLineNumber,null);this.S(U,A,se,P,W,F,j,O),this.U(U,T,se,P,W,F,j,O)}}Q(P,A,T,O,B){if(!this.F||this.F.isTransparent())return;P.fillStyle=this.F.transparent(.5).toString();let W=0,j=0;for(const F of A){const U=O.intersectWithViewport(F);if(!U)continue;const[Q,se]=U;for(let ue=Q;ue<=se;ue++)T.set(ue,!0);const he=O.getYForLineNumber(Q,B),ie=O.getYForLineNumber(se,B);j>=he||(j>W&&P.fillRect(g.MINIMAP_GUTTER_WIDTH,W,P.canvas.width,j-W),W=he),j=ie}j>W&&P.fillRect(g.MINIMAP_GUTTER_WIDTH,W,P.canvas.width,j-W)}R(P,A,T,O,B){const W=new Map;for(let j=A.length-1;j>=0;j--){const F=A[j],U=F.options.minimap;if(!U||U.position!==l.MinimapPosition.Inline)continue;const Q=O.intersectWithViewport(F.range);if(!Q)continue;const[se,he]=Q,ie=U.getColor(this.c.value);if(!ie||ie.isTransparent())continue;let ue=W.get(ie.toString());ue||(ue=ie.transparent(.5).toString(),W.set(ie.toString(),ue)),P.fillStyle=ue;for(let J=se;J<=he;J++){if(T.has(J))continue;T.set(J,!0);const x=O.getYForLineNumber(se,B);P.fillRect(g.MINIMAP_GUTTER_WIDTH,x,P.canvas.width,B)}}}S(P,A,T,O,B,W,j,F){if(!(!this.F||this.F.isTransparent()))for(const U of A){const Q=O.intersectWithViewport(U);if(!Q)continue;const[se,he]=Q;for(let ie=se;ie<=he;ie++)this.W(P,T,U,this.F,O,ie,B,B,W,j,F)}}U(P,A,T,O,B,W,j,F){for(const U of A){const Q=U.options.minimap;if(!Q)continue;const se=O.intersectWithViewport(U.range);if(!se)continue;const[he,ie]=se,ue=Q.getColor(this.c.value);if(!(!ue||ue.isTransparent()))for(let J=he;J<=ie;J++)switch(Q.position){case l.MinimapPosition.Inline:this.W(P,T,U.range,ue,O,J,B,B,W,j,F);continue;case l.MinimapPosition.Gutter:{const x=O.getYForLineNumber(J,B),G=2;this.Y(P,ue,G,x,h,B);continue}}}}W(P,A,T,O,B,W,j,F,U,Q,se){const he=B.getYForLineNumber(W,F);if(he+j<0||he>this.h.options.canvasInnerHeight)return;const{startLineNumber:ie,endLineNumber:ue}=T,J=ie===W?T.startColumn:1,x=ue===W?T.endColumn:this.h.getLineMaxColumn(W),G=this.X(A,W,J,U,Q,se),te=this.X(A,W,x,U,Q,se);this.Y(P,O,G,he,te-G,j)}X(P,A,T,O,B,W){if(T===1)return g.MINIMAP_GUTTER_WIDTH;if((T-1)*B>=W)return W;let F=P.get(A);if(!F){const U=this.h.getLineContent(A);F=[g.MINIMAP_GUTTER_WIDTH];let Q=g.MINIMAP_GUTTER_WIDTH;for(let se=1;se<U.length+1;se++){const he=U.charCodeAt(se-1),ie=he===9?O*B:S.isFullWidthCharacter(he)?2*B:B,ue=Q+ie;if(ue>=W){F[se]=W;break}F[se]=ue,Q=ue}P.set(A,F)}return T-1<F.length?F[T-1]:W}Y(P,A,T,O,B,W){P.fillStyle=A&&A.toString()||"",P.fillRect(T,O,B,W)}Z(P){const A=P.startLineNumber,T=P.endLineNumber,O=this.h.options.minimapLineHeight;if(this.D&&this.D.linesEquals(P)){const le=this.D._get();return new b(P,le.imageData,le.lines)}const B=this.O();if(!B)return null;const[W,j,F]=M.ab(B,P.topPaddingLineCount,A,T,O,this.D),U=this.h.getMinimapLinesRenderingData(A,T,F),Q=this.h.getOptions().tabSize,se=this.h.options.defaultBackgroundColor,he=this.h.options.backgroundColor,ie=this.h.options.foregroundAlpha,ue=this.h.tokensColorTracker,J=ue.backgroundIsLight(),x=this.h.options.renderMinimap,G=this.h.options.charRenderer(),te=this.h.options.fontScale,Z=this.h.options.minimapCharWidth,de=(x===1?2:2+1)*te,K=O>de?Math.floor((O-de)/2):0,Y=he.a/255,ne=new t.RGBA8(Math.round((he.r-se.r)*Y+se.r),Math.round((he.g-se.g)*Y+se.g),Math.round((he.b-se.b)*Y+se.b),255);let V=P.topPaddingLineCount*O;const H=[];for(let le=0,me=T-A+1;le<me;le++)F[le]&&M.bb(B,ne,he.a,J,x,Z,ue,ie,G,V,K,Q,U[le],te,O),H[le]=new p(V),V+=O;const $=W===-1?0:W,re=(j===-1?B.height:j)-$;return this.m.domNode.getContext("2d").putImageData(B,0,0,0,$,B.width,re),new b(P,B,H)}static ab(P,A,T,O,B,W){const j=[];if(!W){for(let V=0,H=O-T+1;V<H;V++)j[V]=!0;return[-1,-1,j]}const F=W._get(),U=F.imageData.data,Q=F.rendLineNumberStart,se=F.lines,he=se.length,ie=P.width,ue=P.data,J=(O-T+1)*B*ie*4;let x=-1,G=-1,te=-1,Z=-1,ae=-1,de=-1,K=A*B;for(let V=T;V<=O;V++){const H=V-T,$=V-Q,oe=$>=0&&$<he?se[$].dy:-1;if(oe===-1){j[H]=!0,K+=B;continue}const re=oe*ie*4,X=(oe+B)*ie*4,le=K*ie*4,me=(K+B)*ie*4;Z===re&&de===le?(Z=X,de=me):(te!==-1&&(ue.set(U.subarray(te,Z),ae),x===-1&&te===0&&te===ae&&(x=Z),G===-1&&Z===J&&te===ae&&(G=te)),te=re,Z=X,ae=le,de=me),j[H]=!1,K+=B}te!==-1&&(ue.set(U.subarray(te,Z),ae),x===-1&&te===0&&te===ae&&(x=Z),G===-1&&Z===J&&te===ae&&(G=te));const Y=x===-1?-1:x/(ie*4),ne=G===-1?-1:G/(ie*4);return[Y,ne,j]}static bb(P,A,T,O,B,W,j,F,U,Q,se,he,ie,ue,J){const x=ie.content,G=ie.tokens,te=P.width-W,Z=J===1;let ae=g.MINIMAP_GUTTER_WIDTH,de=0,K=0;for(let Y=0,ne=G.getCount();Y<ne;Y++){const V=G.getEndOffset(Y),H=G.getForeground(Y),$=j.getColor(H);for(;de<V;de++){if(ae>te)return;const oe=x.charCodeAt(de);if(oe===9){const re=he-(de+K)%he;K+=re-1,ae+=re*W}else if(oe===32)ae+=W;else{const re=S.isFullWidthCharacter(oe)?2:1;for(let X=0;X<re;X++)if(B===2?U.blockRenderChar(P,ae,Q+se,$,F,A,T,Z):U.renderChar(P,ae,Q+se,oe,$,F,A,T,ue,O,Z),ae+=W,ae>te)return}}}}}class z{constructor(P,A,T){this.c=P,this.d=A,this.f=T,this.h=[];for(let O=0,B=this.d-this.c+1;O<B;O++)this.h[O]=T}has(P){return this.get(P)!==this.f}set(P,A){P<this.c||P>this.d||(this.h[P-this.c]=A)}get(P){return P<this.c||P>this.d?this.f:this.h[P-this.c]}}}),define(_[766],ee([1,0,45,7,136,67,36,6,2,590,31,397]),function(q,e,C,N,E,I,L,S,v,f,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColorPickerWidget=e.ColorPickerBody=e.ColorPickerHeader=void 0;const i=N.$;class t extends v.Disposable{constructor(o,u,h){super(),this.k=u,this.c=i(".colorpicker-header"),N.append(o,this.c),this.i=N.append(this.c,i(".picked-color"));const w=(0,f.localize)(0,null);this.i.setAttribute("title",w);const m=N.append(this.c,i(".original-color"));m.style.backgroundColor=L.Color.Format.CSS.format(this.k.originalColor)||"",this.j=h.getColorTheme().getColor(g.editorHoverBackground)||L.Color.white,this.q(h.onDidColorThemeChange(p=>{this.j=p.getColor(g.editorHoverBackground)||L.Color.white})),this.q(N.addDisposableListener(this.i,N.EventType.CLICK,()=>this.k.selectNextColorPresentation())),this.q(N.addDisposableListener(m,N.EventType.CLICK,()=>{this.k.color=this.k.originalColor,this.k.flushColor()})),this.q(u.onDidChangeColor(this.l,this)),this.q(u.onDidChangePresentation(this.m,this)),this.i.style.backgroundColor=L.Color.Format.CSS.format(u.color)||"",this.i.classList.toggle("light",u.color.rgba.a<.5?this.j.isLighter():u.color.isLighter()),this.l(this.k.color)}l(o){this.i.style.backgroundColor=L.Color.Format.CSS.format(o)||"",this.i.classList.toggle("light",o.rgba.a<.5?this.j.isLighter():o.isLighter()),this.m()}m(){this.i.textContent=this.k.presentation?this.k.presentation.label:"",this.i.prepend(i(".codicon.codicon-color-mode"))}}e.ColorPickerHeader=t;class n extends v.Disposable{constructor(o,u,h){super(),this.l=u,this.m=h,this.c=i(".colorpicker-body"),N.append(o,this.c),this.i=new a(this.c,this.l,this.m),this.q(this.i),this.q(this.i.onDidChange(this.p,this)),this.q(this.i.onColorFlushed(this.n,this)),this.k=new c(this.c,this.l),this.q(this.k),this.q(this.k.onDidChange(this.t,this)),this.q(this.k.onColorFlushed(this.n,this)),this.j=new d(this.c,this.l),this.q(this.j),this.q(this.j.onDidChange(this.u,this)),this.q(this.j.onColorFlushed(this.n,this))}n(){this.l.flushColor()}p({s:o,v:u}){const h=this.l.color.hsva;this.l.color=new L.Color(new L.HSVA(h.h,o,u,h.a))}t(o){const u=this.l.color.hsva;this.l.color=new L.Color(new L.HSVA(u.h,u.s,u.v,o))}u(o){const u=this.l.color.hsva,h=(1-o)*360;this.l.color=new L.Color(new L.HSVA(h===360?0:h,u.s,u.v,u.a))}layout(){this.i.layout(),this.k.layout(),this.j.layout()}}e.ColorPickerBody=n;class a extends v.Disposable{constructor(o,u,h){super(),this.t=u,this.u=h,this.n=new S.Emitter,this.onDidChange=this.n.event,this.p=new S.Emitter,this.onColorFlushed=this.p.event,this.c=i(".saturation-wrap"),N.append(o,this.c),this.j=document.createElement("canvas"),this.j.className="saturation-box",N.append(this.c,this.j),this.i=i(".saturation-selection"),N.append(this.c,this.i),this.layout(),this.q(N.addDisposableListener(this.c,N.EventType.POINTER_DOWN,w=>this.w(w))),this.q(this.t.onDidChangeColor(this.C,this)),this.m=null}w(o){if(!o.target||!(o.target instanceof Element))return;this.m=this.q(new E.GlobalPointerMoveMonitor);const u=N.getDomNodePagePosition(this.c);o.target!==this.i&&this.y(o.offsetX,o.offsetY),this.m.startMonitoring(o.target,o.pointerId,o.buttons,w=>this.y(w.pageX-u.left,w.pageY-u.top),()=>null);const h=N.addDisposableListener(document,N.EventType.POINTER_UP,()=>{this.p.fire(),h.dispose(),this.m&&(this.m.stopMonitoring(!0),this.m=null)},!0)}y(o,u){const h=Math.max(0,Math.min(1,o/this.k)),w=Math.max(0,Math.min(1,1-u/this.l));this.B(h,w),this.n.fire({s:h,v:w})}layout(){this.k=this.c.offsetWidth,this.l=this.c.offsetHeight,this.j.width=this.k*this.u,this.j.height=this.l*this.u,this.z();const o=this.t.color.hsva;this.B(o.s,o.v)}z(){const o=this.t.color.hsva,u=new L.Color(new L.HSVA(o.h,1,1,1)),h=this.j.getContext("2d"),w=h.createLinearGradient(0,0,this.j.width,0);w.addColorStop(0,"rgba(255, 255, 255, 1)"),w.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),w.addColorStop(1,"rgba(255, 255, 255, 0)");const m=h.createLinearGradient(0,0,0,this.j.height);m.addColorStop(0,"rgba(0, 0, 0, 0)"),m.addColorStop(1,"rgba(0, 0, 0, 1)"),h.rect(0,0,this.j.width,this.j.height),h.fillStyle=L.Color.Format.CSS.format(u),h.fill(),h.fillStyle=w,h.fill(),h.fillStyle=m,h.fill()}B(o,u){this.i.style.left=`${o*this.k}px`,this.i.style.top=`${this.l-u*this.l}px`}C(){this.m&&this.m.isMonitoring()||this.z()}}class r extends v.Disposable{constructor(o,u){super(),this.n=u,this.l=new S.Emitter,this.onDidChange=this.l.event,this.m=new S.Emitter,this.onColorFlushed=this.m.event,this.c=N.append(o,i(".strip")),this.i=N.append(this.c,i(".overlay")),this.j=N.append(this.c,i(".slider")),this.j.style.top="0px",this.q(N.addDisposableListener(this.c,N.EventType.POINTER_DOWN,h=>this.p(h))),this.layout()}layout(){this.k=this.c.offsetHeight-this.j.offsetHeight;const o=this.w(this.n.color);this.u(o)}p(o){if(!o.target||!(o.target instanceof Element))return;const u=this.q(new E.GlobalPointerMoveMonitor),h=N.getDomNodePagePosition(this.c);this.c.classList.add("grabbing"),o.target!==this.j&&this.t(o.offsetY),u.startMonitoring(o.target,o.pointerId,o.buttons,m=>this.t(m.pageY-h.top),()=>null);const w=N.addDisposableListener(document,N.EventType.POINTER_UP,()=>{this.m.fire(),w.dispose(),u.stopMonitoring(!0),this.c.classList.remove("grabbing")},!0)}t(o){const u=Math.max(0,Math.min(1,1-o/this.k));this.u(u),this.l.fire(u)}u(o){this.j.style.top=`${(1-o)*this.k}px`}}class c extends r{constructor(o,u){super(o,u),this.c.classList.add("opacity-strip"),this.q(u.onDidChangeColor(this.y,this)),this.y(this.n.color)}y(o){const{r:u,g:h,b:w}=o.rgba,m=new L.Color(new L.RGBA(u,h,w,1)),p=new L.Color(new L.RGBA(u,h,w,0));this.i.style.background=`linear-gradient(to bottom, ${m} 0%, ${p} 100%)`}w(o){return o.hsva.a}}class d extends r{constructor(o,u){super(o,u),this.c.classList.add("hue-strip")}w(o){return 1-o.hsva.h/360}}class s extends I.Widget{constructor(o,u,h,w){super(),this.model=u,this.i=h,this.q(C.PixelRatio.onDidChange(()=>this.layout()));const m=i(".colorpicker-widget");o.appendChild(m);const p=new t(m,this.model,w);this.body=new n(m,this.model,this.i),this.q(p),this.q(this.body)}layout(){this.body.layout()}}e.ColorPickerWidget=s}),define(_[231],ee([1,0,647,31,418]),function(q,e,C,N){"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,N.registerColor)("symbolIcon.arrayForeground",{dark:N.foreground,light:N.foreground,hcDark:N.foreground,hcLight:N.foreground},(0,C.localize)(0,null)),e.SYMBOL_ICON_BOOLEAN_FOREGROUND=(0,N.registerColor)("symbolIcon.booleanForeground",{dark:N.foreground,light:N.foreground,hcDark:N.foreground,hcLight:N.foreground},(0,C.localize)(1,null)),e.SYMBOL_ICON_CLASS_FOREGROUND=(0,N.registerColor)("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,C.localize)(2,null)),e.SYMBOL_ICON_COLOR_FOREGROUND=(0,N.registerColor)("symbolIcon.colorForeground",{dark:N.foreground,light:N.foreground,hcDark:N.foreground,hcLight:N.foreground},(0,C.localize)(3,null)),e.SYMBOL_ICON_CONSTANT_FOREGROUND=(0,N.registerColor)("symbolIcon.constantForeground",{dark:N.foreground,light:N.foreground,hcDark:N.foreground,hcLight:N.foreground},(0,C.localize)(4,null)),e.SYMBOL_ICON_CONSTRUCTOR_FOREGROUND=(0,N.registerColor)("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,C.localize)(5,null)),e.SYMBOL_ICON_ENUMERATOR_FOREGROUND=(0,N.registerColor)("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,C.localize)(6,null)),e.SYMBOL_ICON_ENUMERATOR_MEMBER_FOREGROUND=(0,N.registerColor)("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,C.localize)(7,null)),e.SYMBOL_ICON_EVENT_FOREGROUND=(0,N.registerColor)("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,C.localize)(8,null)),e.SYMBOL_ICON_FIELD_FOREGROUND=(0,N.registerColor)("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,C.localize)(9,null)),e.SYMBOL_ICON_FILE_FOREGROUND=(0,N.registerColor)("symbolIcon.fileForeground",{dark:N.foreground,light:N.foreground,hcDark:N.foreground,hcLight:N.foreground},(0,C.localize)(10,null)),e.SYMBOL_ICON_FOLDER_FOREGROUND=(0,N.registerColor)("symbolIcon.folderForeground",{dark:N.foreground,light:N.foreground,hcDark:N.foreground,hcLight:N.foreground},(0,C.localize)(11,null)),e.SYMBOL_ICON_FUNCTION_FOREGROUND=(0,N.registerColor)("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,C.localize)(12,null)),e.SYMBOL_ICON_INTERFACE_FOREGROUND=(0,N.registerColor)("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,C.localize)(13,null)),e.SYMBOL_ICON_KEY_FOREGROUND=(0,N.registerColor)("symbolIcon.keyForeground",{dark:N.foreground,light:N.foreground,hcDark:N.foreground,hcLight:N.foreground},(0,C.localize)(14,null)),e.SYMBOL_ICON_KEYWORD_FOREGROUND=(0,N.registerColor)("symbolIcon.keywordForeground",{dark:N.foreground,light:N.foreground,hcDark:N.foreground,hcLight:N.foreground},(0,C.localize)(15,null)),e.SYMBOL_ICON_METHOD_FOREGROUND=(0,N.registerColor)("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,C.localize)(16,null)),e.SYMBOL_ICON_MODULE_FOREGROUND=(0,N.registerColor)("symbolIcon.moduleForeground",{dark:N.foreground,light:N.foreground,hcDark:N.foreground,hcLight:N.foreground},(0,C.localize)(17,null)),e.SYMBOL_ICON_NAMESPACE_FOREGROUND=(0,N.registerColor)("symbolIcon.namespaceForeground",{dark:N.foreground,light:N.foreground,hcDark:N.foreground,hcLight:N.foreground},(0,C.localize)(18,null)),e.SYMBOL_ICON_NULL_FOREGROUND=(0,N.registerColor)("symbolIcon.nullForeground",{dark:N.foreground,light:N.foreground,hcDark:N.foreground,hcLight:N.foreground},(0,C.localize)(19,null)),e.SYMBOL_ICON_NUMBER_FOREGROUND=(0,N.registerColor)("symbolIcon.numberForeground",{dark:N.foreground,light:N.foreground,hcDark:N.foreground,hcLight:N.foreground},(0,C.localize)(20,null)),e.SYMBOL_ICON_OBJECT_FOREGROUND=(0,N.registerColor)("symbolIcon.objectForeground",{dark:N.foreground,light:N.foreground,hcDark:N.foreground,hcLight:N.foreground},(0,C.localize)(21,null)),e.SYMBOL_ICON_OPERATOR_FOREGROUND=(0,N.registerColor)("symbolIcon.operatorForeground",{dark:N.foreground,light:N.foreground,hcDark:N.foreground,hcLight:N.foreground},(0,C.localize)(22,null)),e.SYMBOL_ICON_PACKAGE_FOREGROUND=(0,N.registerColor)("symbolIcon.packageForeground",{dark:N.foreground,light:N.foreground,hcDark:N.foreground,hcLight:N.foreground},(0,C.localize)(23,null)),e.SYMBOL_ICON_PROPERTY_FOREGROUND=(0,N.registerColor)("symbolIcon.propertyForeground",{dark:N.foreground,light:N.foreground,hcDark:N.foreground,hcLight:N.foreground},(0,C.localize)(24,null)),e.SYMBOL_ICON_REFERENCE_FOREGROUND=(0,N.registerColor)("symbolIcon.referenceForeground",{dark:N.foreground,light:N.foreground,hcDark:N.foreground,hcLight:N.foreground},(0,C.localize)(25,null)),e.SYMBOL_ICON_SNIPPET_FOREGROUND=(0,N.registerColor)("symbolIcon.snippetForeground",{dark:N.foreground,light:N.foreground,hcDark:N.foreground,hcLight:N.foreground},(0,C.localize)(26,null)),e.SYMBOL_ICON_STRING_FOREGROUND=(0,N.registerColor)("symbolIcon.stringForeground",{dark:N.foreground,light:N.foreground,hcDark:N.foreground,hcLight:N.foreground},(0,C.localize)(27,null)),e.SYMBOL_ICON_STRUCT_FOREGROUND=(0,N.registerColor)("symbolIcon.structForeground",{dark:N.foreground,light:N.foreground,hcDark:N.foreground,hcLight:N.foreground},(0,C.localize)(28,null)),e.SYMBOL_ICON_TEXT_FOREGROUND=(0,N.registerColor)("symbolIcon.textForeground",{dark:N.foreground,light:N.foreground,hcDark:N.foreground,hcLight:N.foreground},(0,C.localize)(29,null)),e.SYMBOL_ICON_TYPEPARAMETER_FOREGROUND=(0,N.registerColor)("symbolIcon.typeParameterForeground",{dark:N.foreground,light:N.foreground,hcDark:N.foreground,hcLight:N.foreground},(0,C.localize)(30,null)),e.SYMBOL_ICON_UNIT_FOREGROUND=(0,N.registerColor)("symbolIcon.unitForeground",{dark:N.foreground,light:N.foreground,hcDark:N.foreground,hcLight:N.foreground},(0,C.localize)(31,null)),e.SYMBOL_ICON_VARIABLE_FOREGROUND=(0,N.registerColor)("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,C.localize)(32,null))}),define(_[767],ee([1,0,29,118,586,154,231]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toMenuItems=void 0;const I=Object.freeze({kind:N.CodeActionKind.Empty,title:(0,E.localize)(0,null)}),L=Object.freeze([{kind:N.CodeActionKind.QuickFix,title:(0,E.localize)(1,null)},{kind:N.CodeActionKind.RefactorExtract,title:(0,E.localize)(2,null),icon:C.Codicon.wrench},{kind:N.CodeActionKind.RefactorInline,title:(0,E.localize)(3,null),icon:C.Codicon.wrench},{kind:N.CodeActionKind.RefactorRewrite,title:(0,E.localize)(4,null),icon:C.Codicon.wrench},{kind:N.CodeActionKind.RefactorMove,title:(0,E.localize)(5,null),icon:C.Codicon.wrench},{kind:N.CodeActionKind.SurroundWith,title:(0,E.localize)(6,null),icon:C.Codicon.symbolSnippet},{kind:N.CodeActionKind.Source,title:(0,E.localize)(7,null),icon:C.Codicon.symbolFile},I]);function S(v,f,g){if(!f)return v.map(n=>({kind:"action",item:n,group:I,disabled:!!n.action.disabled,label:n.action.disabled||n.action.title}));const i=L.map(n=>({group:n,actions:[]}));for(const n of v){const a=n.action.kind?new N.CodeActionKind(n.action.kind):N.CodeActionKind.None;for(const r of i)if(r.group.kind.contains(a)){r.actions.push(n);break}}const t=[];for(const n of i)if(n.actions.length){t.push({kind:"header",group:n.group});for(const a of n.actions)t.push({kind:"action",item:a,group:n.group,label:a.action.title,disabled:!!a.action.disabled,keybinding:g(a.action)})}return t}e.toMenuItems=S}),define(_[98],ee([1,0,31,36]),function(q,e,C,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultMenuStyles=e.defaultSelectBoxStyles=e.getListStyles=e.defaultListStyles=e.defaultBreadcrumbsWidgetStyles=e.defaultCountBadgeStyles=e.defaultFindWidgetStyles=e.defaultInputBoxStyles=e.defaultDialogStyles=e.defaultCheckboxStyles=e.defaultToggleStyles=e.defaultProgressBarStyles=e.defaultButtonStyles=e.defaultKeybindingLabelStyles=void 0;function E(L,S){const v=Object.assign({},S);for(const f in L){const g=L[f];v[f]=g!==void 0?(0,C.asCssVariable)(g):void 0}return v}e.defaultKeybindingLabelStyles={keybindingLabelBackground:(0,C.asCssVariable)(C.keybindingLabelBackground),keybindingLabelForeground:(0,C.asCssVariable)(C.keybindingLabelForeground),keybindingLabelBorder:(0,C.asCssVariable)(C.keybindingLabelBorder),keybindingLabelBottomBorder:(0,C.asCssVariable)(C.keybindingLabelBottomBorder),keybindingLabelShadow:(0,C.asCssVariable)(C.widgetShadow)},e.defaultButtonStyles={buttonForeground:(0,C.asCssVariable)(C.buttonForeground),buttonSeparator:(0,C.asCssVariable)(C.buttonSeparator),buttonBackground:(0,C.asCssVariable)(C.buttonBackground),buttonHoverBackground:(0,C.asCssVariable)(C.buttonHoverBackground),buttonSecondaryForeground:(0,C.asCssVariable)(C.buttonSecondaryForeground),buttonSecondaryBackground:(0,C.asCssVariable)(C.buttonSecondaryBackground),buttonSecondaryHoverBackground:(0,C.asCssVariable)(C.buttonSecondaryHoverBackground),buttonBorder:(0,C.asCssVariable)(C.buttonBorder)},e.defaultProgressBarStyles={progressBarBackground:(0,C.asCssVariable)(C.progressBarBackground)},e.defaultToggleStyles={inputActiveOptionBorder:(0,C.asCssVariable)(C.inputActiveOptionBorder),inputActiveOptionForeground:(0,C.asCssVariable)(C.inputActiveOptionForeground),inputActiveOptionBackground:(0,C.asCssVariable)(C.inputActiveOptionBackground)},e.defaultCheckboxStyles={checkboxBackground:(0,C.asCssVariable)(C.checkboxBackground),checkboxBorder:(0,C.asCssVariable)(C.checkboxBorder),checkboxForeground:(0,C.asCssVariable)(C.checkboxForeground)},e.defaultDialogStyles={dialogBackground:(0,C.asCssVariable)(C.editorWidgetBackground),dialogForeground:(0,C.asCssVariable)(C.editorWidgetForeground),dialogShadow:(0,C.asCssVariable)(C.widgetShadow),dialogBorder:(0,C.asCssVariable)(C.contrastBorder),errorIconForeground:(0,C.asCssVariable)(C.problemsErrorIconForeground),warningIconForeground:(0,C.asCssVariable)(C.problemsWarningIconForeground),infoIconForeground:(0,C.asCssVariable)(C.problemsInfoIconForeground),textLinkForeground:(0,C.asCssVariable)(C.textLinkForeground)},e.defaultInputBoxStyles={inputBackground:(0,C.asCssVariable)(C.inputBackground),inputForeground:(0,C.asCssVariable)(C.inputForeground),inputBorder:(0,C.asCssVariable)(C.inputBorder),inputValidationInfoBorder:(0,C.asCssVariable)(C.inputValidationInfoBorder),inputValidationInfoBackground:(0,C.asCssVariable)(C.inputValidationInfoBackground),inputValidationInfoForeground:(0,C.asCssVariable)(C.inputValidationInfoForeground),inputValidationWarningBorder:(0,C.asCssVariable)(C.inputValidationWarningBorder),inputValidationWarningBackground:(0,C.asCssVariable)(C.inputValidationWarningBackground),inputValidationWarningForeground:(0,C.asCssVariable)(C.inputValidationWarningForeground),inputValidationErrorBorder:(0,C.asCssVariable)(C.inputValidationErrorBorder),inputValidationErrorBackground:(0,C.asCssVariable)(C.inputValidationErrorBackground),inputValidationErrorForeground:(0,C.asCssVariable)(C.inputValidationErrorForeground)},e.defaultFindWidgetStyles={listFilterWidgetBackground:(0,C.asCssVariable)(C.listFilterWidgetBackground),listFilterWidgetOutline:(0,C.asCssVariable)(C.listFilterWidgetOutline),listFilterWidgetNoMatchesOutline:(0,C.asCssVariable)(C.listFilterWidgetNoMatchesOutline),listFilterWidgetShadow:(0,C.asCssVariable)(C.listFilterWidgetShadow),inputBoxStyles:e.defaultInputBoxStyles,toggleStyles:e.defaultToggleStyles},e.defaultCountBadgeStyles={badgeBackground:(0,C.asCssVariable)(C.badgeBackground),badgeForeground:(0,C.asCssVariable)(C.badgeForeground),badgeBorder:(0,C.asCssVariable)(C.contrastBorder)},e.defaultBreadcrumbsWidgetStyles={breadcrumbsBackground:(0,C.asCssVariable)(C.breadcrumbsBackground),breadcrumbsForeground:(0,C.asCssVariable)(C.breadcrumbsForeground),breadcrumbsHoverForeground:(0,C.asCssVariable)(C.breadcrumbsFocusForeground),breadcrumbsFocusForeground:(0,C.asCssVariable)(C.breadcrumbsFocusForeground),breadcrumbsFocusAndSelectionForeground:(0,C.asCssVariable)(C.breadcrumbsActiveSelectionForeground)},e.defaultListStyles={listBackground:void 0,listInactiveFocusForeground:void 0,listFocusBackground:(0,C.asCssVariable)(C.listFocusBackground),listFocusForeground:(0,C.asCssVariable)(C.listFocusForeground),listFocusOutline:(0,C.asCssVariable)(C.listFocusOutline),listActiveSelectionBackground:(0,C.asCssVariable)(C.listActiveSelectionBackground),listActiveSelectionForeground:(0,C.asCssVariable)(C.listActiveSelectionForeground),listActiveSelectionIconForeground:(0,C.asCssVariable)(C.listActiveSelectionIconForeground),listFocusAndSelectionOutline:(0,C.asCssVariable)(C.listFocusAndSelectionOutline),listFocusAndSelectionBackground:(0,C.asCssVariable)(C.listActiveSelectionBackground),listFocusAndSelectionForeground:(0,C.asCssVariable)(C.listActiveSelectionForeground),listInactiveSelectionBackground:(0,C.asCssVariable)(C.listInactiveSelectionBackground),listInactiveSelectionIconForeground:(0,C.asCssVariable)(C.listInactiveSelectionIconForeground),listInactiveSelectionForeground:(0,C.asCssVariable)(C.listInactiveSelectionForeground),listInactiveFocusBackground:(0,C.asCssVariable)(C.listInactiveFocusBackground),listInactiveFocusOutline:(0,C.asCssVariable)(C.listInactiveFocusOutline),listHoverBackground:(0,C.asCssVariable)(C.listHoverBackground),listHoverForeground:(0,C.asCssVariable)(C.listHoverForeground),listDropBackground:(0,C.asCssVariable)(C.listDropBackground),listSelectionOutline:(0,C.asCssVariable)(C.activeContrastBorder),listHoverOutline:(0,C.asCssVariable)(C.activeContrastBorder),treeIndentGuidesStroke:(0,C.asCssVariable)(C.treeIndentGuidesStroke),treeInactiveIndentGuidesStroke:(0,C.asCssVariable)(C.treeInactiveIndentGuidesStroke),tableColumnsBorder:(0,C.asCssVariable)(C.tableColumnsBorder),tableOddRowsBackgroundColor:(0,C.asCssVariable)(C.tableOddRowsBackgroundColor)};function I(L){return E(L,e.defaultListStyles)}e.getListStyles=I,e.defaultSelectBoxStyles={selectBackground:(0,C.asCssVariable)(C.selectBackground),selectListBackground:(0,C.asCssVariable)(C.selectListBackground),selectForeground:(0,C.asCssVariable)(C.selectForeground),decoratorRightForeground:(0,C.asCssVariable)(C.pickerGroupForeground),selectBorder:(0,C.asCssVariable)(C.selectBorder),focusBorder:(0,C.asCssVariable)(C.focusBorder),listFocusBackground:(0,C.asCssVariable)(C.quickInputListFocusBackground),listInactiveSelectionIconForeground:(0,C.asCssVariable)(C.quickInputListFocusIconForeground),listFocusForeground:(0,C.asCssVariable)(C.quickInputListFocusForeground),listFocusOutline:(0,C.asCssVariableWithDefault)(C.activeContrastBorder,N.Color.transparent.toString()),listHoverBackground:(0,C.asCssVariable)(C.listHoverBackground),listHoverForeground:(0,C.asCssVariable)(C.listHoverForeground),listHoverOutline:(0,C.asCssVariable)(C.activeContrastBorder),selectListBorder:(0,C.asCssVariable)(C.editorWidgetBorder),listBackground:void 0,listActiveSelectionBackground:void 0,listActiveSelectionForeground:void 0,listActiveSelectionIconForeground:void 0,listFocusAndSelectionBackground:void 0,listDropBackground:void 0,listInactiveSelectionBackground:void 0,listInactiveSelectionForeground:void 0,listInactiveFocusBackground:void 0,listInactiveFocusOutline:void 0,listSelectionOutline:void 0,listFocusAndSelectionForeground:void 0,listFocusAndSelectionOutline:void 0,listInactiveFocusForeground:void 0,tableColumnsBorder:void 0,tableOddRowsBackgroundColor:void 0,treeIndentGuidesStroke:void 0,treeInactiveIndentGuidesStroke:void 0},e.defaultMenuStyles={shadowColor:(0,C.asCssVariable)(C.widgetShadow),borderColor:(0,C.asCssVariable)(C.menuBorder),foregroundColor:(0,C.asCssVariable)(C.menuForeground),backgroundColor:(0,C.asCssVariable)(C.menuBackground),selectionForegroundColor:(0,C.asCssVariable)(C.menuSelectionForeground),selectionBackgroundColor:(0,C.asCssVariable)(C.menuSelectionBackground),selectionBorderColor:(0,C.asCssVariable)(C.menuSelectionBorder),separatorColor:(0,C.asCssVariable)(C.menuSeparatorBackground),scrollbarShadow:(0,C.asCssVariable)(C.scrollbarShadow),scrollbarSliderBackground:(0,C.asCssVariable)(C.scrollbarSliderBackground),scrollbarSliderHoverBackground:(0,C.asCssVariable)(C.scrollbarSliderHoverBackground),scrollbarSliderActiveBackground:(0,C.asCssVariable)(C.scrollbarSliderActiveBackground)}}),define(_[768],ee([1,0,7,274,204,205,63,2,44,61,610,8,38,145,98,142]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r){"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 c=class{constructor(b){this.a=b}hasChildren(b){return b instanceof r.ReferencesModel||b instanceof r.FileReferences}getChildren(b){if(b instanceof r.ReferencesModel)return b.groups;if(b instanceof r.FileReferences)return b.resolve(this.a).then(y=>y.children);throw new Error("bad tree")}};c=Ne([ge(0,f.ITextModelService)],c),e.DataSource=c;class d{getHeight(){return 23}getTemplateId(b){return b instanceof r.FileReferences?u.id:w.id}}e.Delegate=d;let s=class{constructor(b){this.a=b}getKeyboardNavigationLabel(b){var y;if(b instanceof r.OneReference){const k=(y=b.parent.getPreview(b))===null||y===void 0?void 0:y.preview(b.range);if(k)return k.value}return(0,v.basename)(b.uri)}};s=Ne([ge(0,t.IKeybindingService)],s),e.StringRepresentationProvider=s;class l{getId(b){return b instanceof r.OneReference?b.id:b.uri}}e.IdentityProvider=l;let o=class extends S.Disposable{constructor(b,y){super(),this.a=y;const k=document.createElement("div");k.classList.add("reference-file"),this.file=this.q(new I.IconLabel(k,{supportHighlights:!0})),this.badge=new N.CountBadge(C.append(k,C.$(".count")),{},a.defaultCountBadgeStyles),b.appendChild(k)}set(b,y){const k=(0,v.dirname)(b.uri);this.file.setLabel(this.a.getUriBasenameLabel(b.uri),this.a.getUriLabel(k,{relative:!0}),{title:this.a.getUriLabel(b.uri),matches:y});const D=b.children.length;this.badge.setCount(D),D>1?this.badge.setTitleFormat((0,g.localize)(0,null,D)):this.badge.setTitleFormat((0,g.localize)(1,null,D))}};o=Ne([ge(1,n.ILabelService)],o);let u=class ji{constructor(b){this.a=b,this.templateId=ji.id}renderTemplate(b){return this.a.createInstance(o,b)}renderElement(b,y,k){k.set(b.element,(0,L.createMatches)(b.filterData))}disposeTemplate(b){b.dispose()}};u.id="FileReferencesRenderer",u=Ne([ge(0,i.IInstantiationService)],u),e.FileReferencesRenderer=u;class h{constructor(b){this.label=new E.HighlightedLabel(b)}set(b,y){var k;const D=(k=b.parent.getPreview(b))===null||k===void 0?void 0:k.preview(b.range);if(!D||!D.value)this.label.set(`${(0,v.basename)(b.uri)}:${b.range.startLineNumber+1}:${b.range.startColumn+1}`);else{const{value:M,highlight:z}=D;y&&!L.FuzzyScore.isDefault(y)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(M,(0,L.createMatches)(y))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(M,[z]))}}}class w{constructor(){this.templateId=w.id}renderTemplate(b){return new h(b)}renderElement(b,y,k){k.set(b.element,b.filterData)}disposeTemplate(){}}w.id="OneReferenceRenderer",e.OneReferenceRenderer=w;class m{getWidgetAriaLabel(){return(0,g.localize)(2,null)}getAriaLabel(b){return b.ariaMessage}}e.AccessibilityProvider=m}),define(_[769],ee([1,0,7,204,206,106,29,32,2,16,656,57,38,98,31,245]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ActionList=e.previewSelectedActionCommand=e.acceptSelectedActionCommand=void 0,e.acceptSelectedActionCommand="acceptSelectedCodeAction",e.previewSelectedActionCommand="previewSelectedCodeAction";class r{get templateId(){return"header"}renderTemplate(h){h.classList.add("group-header");const w=document.createElement("span");return h.append(w),{container:h,text:w}}renderElement(h,w,m){var p,b;m.text.textContent=(b=(p=h.group)===null||p===void 0?void 0:p.title)!==null&&b!==void 0?b:""}disposeTemplate(h){}}let c=class{get templateId(){return"action"}constructor(h,w){this.a=h,this.b=w}renderTemplate(h){h.classList.add(this.templateId);const w=document.createElement("div");w.className="icon",h.append(w);const m=document.createElement("span");m.className="title",h.append(m);const p=new E.KeybindingLabel(h,f.OS);return{container:h,icon:w,text:m,keybinding:p}}renderElement(h,w,m){var p,b,y;if(!((p=h.group)===null||p===void 0)&&p.icon?(m.icon.className=S.ThemeIcon.asClassName(h.group.icon),h.group.icon.color&&(m.icon.style.color=(0,a.asCssVariable)(h.group.icon.color.id))):(m.icon.className=S.ThemeIcon.asClassName(L.Codicon.lightBulb),m.icon.style.color="var(--vscode-editorLightBulb-foreground)"),!h.item||!h.label)return;m.text.textContent=o(h.label),h.keybinding?(m.keybinding.set(h.keybinding),C.show(m.keybinding.element)):C.hide(m.keybinding.element);const k=(b=this.b.lookupKeybinding(e.acceptSelectedActionCommand))===null||b===void 0?void 0:b.getLabel(),D=(y=this.b.lookupKeybinding(e.previewSelectedActionCommand))===null||y===void 0?void 0:y.getLabel();if(m.container.classList.toggle("option-disabled",h.disabled),h.disabled?m.container.title=h.label:k&&D?this.a?m.container.title=(0,g.localize)(0,null,k,D):m.container.title=(0,g.localize)(1,null,k):m.container.title="",h.description){const M=new N.HighlightedLabel(C.append(m.container,C.$("span.label-description")));M.element.classList.add("action-list-description"),M.set(h.description)}}disposeTemplate(h){}};c=Ne([ge(1,t.IKeybindingService)],c);class d extends UIEvent{constructor(){super("acceptSelectedAction")}}class s extends UIEvent{constructor(){super("previewSelectedAction")}}let l=class extends v.Disposable{constructor(h,w,m,p,b,y){super(),this.h=p,this.i=b,this.j=y,this.b=24,this.c=26,this.domNode=document.createElement("div"),this.domNode.classList.add("actionList");const k={getHeight:D=>D.kind==="header"?this.c:this.b,getTemplateId:D=>D.kind};this.a=this.q(new I.List(h,this.domNode,k,[new c(w,this.j),new r],{keyboardSupport:!1,accessibilityProvider:{getAriaLabel:D=>{if(D.kind==="action"){let M=D.label?o(D?.label):"";return D.disabled&&(M=(0,g.localize)(2,null,M,D.disabled)),M}return null},getWidgetAriaLabel:()=>(0,g.localize)(3,null),getRole:D=>D.kind==="action"?"option":"separator",getWidgetRole:()=>"listbox"}})),this.a.style(n.defaultListStyles),this.q(this.a.onMouseClick(D=>this.n(D))),this.q(this.a.onMouseOver(D=>this.m(D))),this.q(this.a.onDidChangeFocus(()=>this.a.domFocus())),this.q(this.a.onDidChangeSelection(D=>this.l(D))),this.g=m,this.a.splice(0,this.a.length,this.g),this.a.length&&this.focusNext()}k(h){return!h.disabled&&h.kind==="action"}hide(h){this.h.onHide(h),this.i.hideContextView()}layout(h){const w=this.g.filter(M=>M.kind==="header").length,p=this.g.length*this.b+w*this.c-w*this.b;this.a.layout(p);const b=this.g.map((M,z)=>{const R=document.getElementById(this.a.getElementID(z));if(R){R.style.width="auto";const P=R.getBoundingClientRect().width;return R.style.width="",P}return 0}),y=Math.max(...b,h),k=.7,D=Math.min(p,document.body.clientHeight*k);return this.a.layout(D,y),this.domNode.style.height=`${D}px`,this.a.domFocus(),y}focusPrevious(){this.a.focusPrevious(1,!0,void 0,this.k)}focusNext(){this.a.focusNext(1,!0,void 0,this.k)}acceptSelected(h){const w=this.a.getFocus();if(w.length===0)return;const m=w[0],p=this.a.element(m);if(!this.k(p))return;const b=h?new s:new d;this.a.setSelection([m],b)}l(h){if(!h.elements.length)return;const w=h.elements[0];w.item&&this.k(w)?this.h.onSelect(w.item,h.browserEvent instanceof s):this.a.setSelection([])}m(h){this.a.setFocus(typeof h.index=="number"?[h.index]:[])}n(h){h.element&&this.k(h.element)&&this.a.setFocus([])}};l=Ne([ge(4,i.IContextViewService),ge(5,t.IKeybindingService)],l),e.ActionList=l;function o(u){return u.replace(/\r\n|\r|\n/g," ")}}),define(_[770],ee([1,0,7,68,2,657,769,28,15,57,49,8,245]),function(q,e,C,N,E,I,L,S,v,f,g,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IActionWidgetService=void 0;const t={Visible:new v.RawContextKey("codeActionMenuVisible",!1,(0,I.localize)(0,null))};e.IActionWidgetService=(0,i.createDecorator)("actionWidgetService");let n=class extends E.Disposable{get isVisible(){return t.Visible.getValue(this.c)||!1}constructor(c,d,s){super(),this.b=c,this.c=d,this.g=s,this.a=this.q(new E.MutableDisposable)}show(c,d,s,l,o,u,h){const w=t.Visible.bindTo(this.c),m=this.g.createInstance(L.ActionList,c,d,s,l);this.b.showContextView({getAnchor:()=>o,render:p=>(w.set(!0),this.h(p,m,h??[])),onHide:p=>{w.reset(),this.j(p)}},u,!1)}acceptSelected(c){var d;(d=this.a.value)===null||d===void 0||d.acceptSelected(c)}focusPrevious(){var c,d;(d=(c=this.a)===null||c===void 0?void 0:c.value)===null||d===void 0||d.focusPrevious()}focusNext(){var c,d;(d=(c=this.a)===null||c===void 0?void 0:c.value)===null||d===void 0||d.focusNext()}hide(){var c;(c=this.a.value)===null||c===void 0||c.hide(),this.a.clear()}h(c,d,s){var l;const o=document.createElement("div");if(o.classList.add("action-widget"),c.appendChild(o),this.a.value=d,this.a.value)o.appendChild(this.a.value.domNode);else throw new Error("List has no value");const u=new E.DisposableStore,h=document.createElement("div"),w=c.appendChild(h);w.classList.add("context-view-block"),u.add(C.addDisposableListener(w,C.EventType.MOUSE_DOWN,D=>D.stopPropagation()));const m=document.createElement("div"),p=c.appendChild(m);p.classList.add("context-view-pointerBlock"),u.add(C.addDisposableListener(p,C.EventType.POINTER_MOVE,()=>p.remove())),u.add(C.addDisposableListener(p,C.EventType.MOUSE_DOWN,()=>p.remove()));let b=0;if(s.length){const D=this.i(".action-widget-action-bar",s);D&&(o.appendChild(D.getContainer().parentElement),u.add(D),b=D.getContainer().offsetWidth)}const y=(l=this.a.value)===null||l===void 0?void 0:l.layout(b);o.style.width=`${y}px`;const k=u.add(C.trackFocus(c));return u.add(k.onDidBlur(()=>this.hide())),u}i(c,d){if(!d.length)return;const s=C.$(c),l=new N.ActionBar(s);return l.push(d,{icon:!1,label:!0}),l}j(c){var d;(d=this.a.value)===null||d===void 0||d.hide(c)}};n=Ne([ge(0,f.IContextViewService),ge(1,v.IContextKeyService),ge(2,i.IInstantiationService)],n),(0,g.registerSingleton)(e.IActionWidgetService,n,1);const a=100+1e3;(0,S.registerAction2)(class extends S.Action2{constructor(){super({id:"hideCodeActionWidget",title:{value:(0,I.localize)(1,null),original:"Hide action widget"},precondition:t.Visible,keybinding:{weight:a,primary:9,secondary:[1033]}})}run(r){r.get(e.IActionWidgetService).hide()}}),(0,S.registerAction2)(class extends S.Action2{constructor(){super({id:"selectPrevCodeAction",title:{value:(0,I.localize)(2,null),original:"Select previous action"},precondition:t.Visible,keybinding:{weight:a,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})}run(r){const c=r.get(e.IActionWidgetService);c instanceof n&&c.focusPrevious()}}),(0,S.registerAction2)(class extends S.Action2{constructor(){super({id:"selectNextCodeAction",title:{value:(0,I.localize)(3,null),original:"Select next action"},precondition:t.Visible,keybinding:{weight:a,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})}run(r){const c=r.get(e.IActionWidgetService);c instanceof n&&c.focusNext()}}),(0,S.registerAction2)(class extends S.Action2{constructor(){super({id:L.acceptSelectedActionCommand,title:{value:(0,I.localize)(4,null),original:"Accept selected action"},precondition:t.Visible,keybinding:{weight:a,primary:3,secondary:[2132]}})}run(r){const c=r.get(e.IActionWidgetService);c instanceof n&&c.acceptSelected()}}),(0,S.registerAction2)(class extends S.Action2{constructor(){super({id:L.previewSelectedActionCommand,title:{value:(0,I.localize)(5,null),original:"Preview selected action"},precondition:t.Visible,keybinding:{weight:a,primary:2051}})}run(r){const c=r.get(e.IActionWidgetService);c instanceof n&&c.acceptSelected(!0)}})});var ri=this&&this.__classPrivateFieldSet||function(q,e,C,N,E){if(N==="m")throw new TypeError("Private method is not writable");if(N==="a"&&!E)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?q!==e||!E:!e.has(q))throw new TypeError("Cannot write private member to an object whose class did not declare it");return N==="a"?E.call(q,C):E?E.value=C:e.set(q,C),C},Bt=this&&this.__classPrivateFieldGet||function(q,e,C,N){if(C==="a"&&!N)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?q!==e||!N:!e.has(q))throw new TypeError("Cannot read private member from an object whose class did not declare it");return C==="m"?N:C==="a"?N.call(q):N?N.value:e.get(q)};define(_[771],ee([1,0,7,13,100,2,12,740,767,146,587,770,25,27,8,697]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r){"use strict";var c;Object.defineProperty(e,"__esModule",{value:!0}),e.CodeActionUi=void 0;let d=class extends I.Disposable{constructor(l,o,u,h,w,m,p,b){super(),this.h=l,this.i=h,this.j=m,this.k=p,this.l=b,this.b=this.q(new I.MutableDisposable),c.set(this,!1),this.g=!1,this.a=new E.Lazy(()=>{const y=this.q(w.createInstance(r.LightBulbWidget,this.h,o,u));return this.q(y.onClick(k=>this.showCodeActionList(k.actions,k,{includeDisabledActions:!1,fromLightbulb:!0}))),y}),this.c=w.createInstance(S.CodeActionKeybindingResolver),this.q(this.h.onDidLayoutChange(()=>this.k.hide()))}dispose(){ri(this,c,!0,"f"),super.dispose()}update(l){var o,u,h,w,m;return ye(this,void 0,void 0,function*(){if(l.type!==1){(o=this.a.rawValue)===null||o===void 0||o.hide();return}let p;try{p=yield l.actions}catch(b){(0,N.onUnexpectedError)(b);return}if(!Bt(this,c,"f"))if(this.a.value.update(p,l.trigger,l.position),l.trigger.type===1){if(!((u=l.trigger.filter)===null||u===void 0)&&u.include){const y=this.n(l.trigger,p);if(y){try{this.a.value.hide(),yield this.i.applyCodeAction(y,!1,!1)}finally{p.dispose()}return}if(l.trigger.context){const k=this.m(l.trigger,p);if(k&&k.action.disabled){(h=f.MessageController.get(this.h))===null||h===void 0||h.showMessage(k.action.disabled,l.trigger.context.position),p.dispose();return}}}const b=!!(!((w=l.trigger.filter)===null||w===void 0)&&w.include);if(l.trigger.context&&(!p.allActions.length||!b&&!p.validActions.length)){(m=f.MessageController.get(this.h))===null||m===void 0||m.showMessage(l.trigger.context.notAvailableMessage,l.trigger.context.position),this.b.value=p,p.dispose();return}this.b.value=p,this.showCodeActionList(p,this.p(l.position),{includeDisabledActions:b,fromLightbulb:!1})}else this.k.isVisible?p.dispose():this.b.value=p})}m(l,o){if(!!o.allActions.length&&(l.autoApply==="first"&&o.validActions.length===0||l.autoApply==="ifSingle"&&o.allActions.length===1))return o.allActions.find(({action:u})=>u.disabled)}n(l,o){if(!!o.validActions.length&&(l.autoApply==="first"&&o.validActions.length>0||l.autoApply==="ifSingle"&&o.validActions.length===1))return o.validActions[0]}showCodeActionList(l,o,u){return ye(this,void 0,void 0,function*(){const h=this.h.getDomNode();if(!h)return;const w=u.includeDisabledActions&&(this.g||l.validActions.length===0)?l.allActions:l.validActions;if(!w.length)return;const m=L.Position.isIPosition(o)?this.p(o):o,p={onSelect:(b,y)=>ye(this,void 0,void 0,function*(){this.i.applyCodeAction(b,!0,y||!1),this.k.hide()}),onHide:()=>{var b;(b=this.h)===null||b===void 0||b.focus()}};this.k.show("codeActionWidget",!0,(0,v.toMenuItems)(w,this.r(),this.c.getResolver()),p,m,h,this.s(l,o,u))})}p(l){if(!this.h.hasModel())return{x:0,y:0};this.h.revealPosition(l,1),this.h.render();const o=this.h.getScrolledVisiblePosition(l),u=(0,C.getDomNodePagePosition)(this.h.getDomNode()),h=u.left+o.left,w=u.top+o.top+o.height;return{x:h,y:w}}r(){var l;const o=(l=this.h)===null||l===void 0?void 0:l.getModel();return this.j.getValue("editor.codeActionWidget.showHeaders",{resource:o?.uri})}s(l,o,u){if(u.fromLightbulb)return[];const h=l.documentation.map(w=>{var m;return{id:w.id,label:w.title,tooltip:(m=w.tooltip)!==null&&m!==void 0?m:"",class:void 0,enabled:!0,run:()=>{var p;return this.l.executeCommand(w.id,...(p=w.commandArguments)!==null&&p!==void 0?p:[])}}});return u.includeDisabledActions&&l.validActions.length>0&&l.allActions.length!==l.validActions.length&&h.push(this.g?{id:"hideMoreActions",label:(0,g.localize)(0,null),enabled:!0,tooltip:"",class:void 0,run:()=>(this.g=!1,this.showCodeActionList(l,o,u))}:{id:"showMoreActions",label:(0,g.localize)(1,null),enabled:!0,tooltip:"",class:void 0,run:()=>(this.g=!0,this.showCodeActionList(l,o,u))}),h}};c=new WeakMap,d=Ne([ge(4,a.IInstantiationService),ge(5,n.IConfigurationService),ge(6,i.IActionWidgetService),ge(7,t.ICommandService)],d),e.CodeActionUi=d}),define(_[316],ee([1,0,100,2,9,14,24,19,176,771,146,584,15,8,89,69,741,118]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d){"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.CodeActionController=void 0;function s(z){return t.ContextKeyExpr.regex(c.SUPPORTED_CODE_ACTIONS.keys()[0],new RegExp("(\\s|^)"+(0,E.escapeRegExpCharacters)(z.value)+"\\b"))}function l(z,R,P,A){const T=d.CodeActionCommandArgs.fromUser(R,{kind:d.CodeActionKind.Refactor,apply:"never"});return h(z,typeof R?.kind=="string"?T.preferred?i.localize(0,null,R.kind):i.localize(1,null,R.kind):T.preferred?i.localize(2,null):i.localize(3,null),{include:d.CodeActionKind.Refactor.contains(T.kind)?T.kind:d.CodeActionKind.None,onlyIncludePreferredActions:T.preferred},T.apply,P,A)}const o={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:i.localize(4,null)},apply:{type:"string",description:i.localize(5,null),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[i.localize(6,null),i.localize(7,null),i.localize(8,null)]},preferred:{type:"boolean",default:!1,description:i.localize(9,null)}}};let u=class qi extends N.Disposable{static get(R){return R.getContribution(qi.ID)}constructor(R,P,A,T,O,B){super(),this.g=O,this.a=R,this.b=this.q(new c.CodeActionModel(this.a,B.codeActionProvider,P,A,T)),this.q(this.b.onDidChangeState(W=>this.h(W))),this.c=new C.Lazy(()=>this.q(O.createInstance(f.CodeActionUi,R,w.Id,M.Id,{applyCodeAction:(W,j,F)=>ye(this,void 0,void 0,function*(){try{yield this.j(W,F)}finally{j&&this.i({type:2,triggerAction:d.CodeActionTriggerSource.QuickFix,filter:{}})}})})))}h(R){this.c.value.update(R)}showCodeActions(R,P,A){return this.c.value.showCodeActionList(P,A,{includeDisabledActions:!1,fromLightbulb:!1})}manualTriggerAtCurrentPosition(R,P,A,T,O){var B;if(!this.a.hasModel())return;(B=g.MessageController.get(this.a))===null||B===void 0||B.closeMessage();const W=this.a.getPosition();this.i({type:1,triggerAction:P,filter:A,autoApply:T,context:{notAvailableMessage:R,position:W},preview:O})}i(R){return this.b.trigger(R)}j(R,P){return this.g.invokeFunction(v.applyCodeAction,R,v.ApplyCodeActionReason.FromCodeActions,{preview:P,editor:this.a})}};u.ID="editor.contrib.codeActionController",u=Ne([ge(1,a.IMarkerService),ge(2,t.IContextKeyService),ge(3,r.IEditorProgressService),ge(4,n.IInstantiationService),ge(5,S.ILanguageFeaturesService)],u),e.CodeActionController=u;function h(z,R,P,A,T=!1,O=d.CodeActionTriggerSource.Default){if(z.hasModel()){const B=u.get(z);B?.manualTriggerAtCurrentPosition(R,O,P,A,T)}}class w extends I.EditorAction{constructor(){super({id:w.Id,label:i.localize(10,null),alias:"Quick Fix...",precondition:t.ContextKeyExpr.and(L.EditorContextKeys.writable,L.EditorContextKeys.hasCodeActionsProvider),kbOpts:{kbExpr:L.EditorContextKeys.editorTextFocus,primary:2132,weight:100}})}run(R,P){return h(P,i.localize(11,null),void 0,void 0,!1,d.CodeActionTriggerSource.QuickFix)}}w.Id="editor.action.quickFix",e.QuickFixAction=w;class m extends I.EditorCommand{constructor(){super({id:v.codeActionCommandId,precondition:t.ContextKeyExpr.and(L.EditorContextKeys.writable,L.EditorContextKeys.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:o}]}})}runEditorCommand(R,P,A){const T=d.CodeActionCommandArgs.fromUser(A,{kind:d.CodeActionKind.Empty,apply:"ifSingle"});return h(P,typeof A?.kind=="string"?T.preferred?i.localize(12,null,A.kind):i.localize(13,null,A.kind):T.preferred?i.localize(14,null):i.localize(15,null),{include:T.kind,includeSourceActions:!0,onlyIncludePreferredActions:T.preferred},T.apply)}}e.CodeActionCommand=m;class p extends I.EditorAction{constructor(){super({id:v.refactorCommandId,label:i.localize(16,null),alias:"Refactor...",precondition:t.ContextKeyExpr.and(L.EditorContextKeys.writable,L.EditorContextKeys.hasCodeActionsProvider),kbOpts:{kbExpr:L.EditorContextKeys.editorTextFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:t.ContextKeyExpr.and(L.EditorContextKeys.writable,s(d.CodeActionKind.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:o}]}})}run(R,P,A){return l(P,A,!1,d.CodeActionTriggerSource.Refactor)}}e.RefactorAction=p;class b extends I.EditorAction{constructor(){super({id:v.refactorPreviewCommandId,label:i.localize(17,null),alias:"Refactor Preview...",precondition:t.ContextKeyExpr.and(L.EditorContextKeys.writable,L.EditorContextKeys.hasCodeActionsProvider),description:{description:"Refactor Preview...",args:[{name:"args",schema:o}]}})}run(R,P,A){return l(P,A,!0,d.CodeActionTriggerSource.RefactorPreview)}}e.RefactorPreview=b;class y extends I.EditorAction{constructor(){super({id:v.sourceActionCommandId,label:i.localize(18,null),alias:"Source Action...",precondition:t.ContextKeyExpr.and(L.EditorContextKeys.writable,L.EditorContextKeys.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:t.ContextKeyExpr.and(L.EditorContextKeys.writable,s(d.CodeActionKind.Source))},description:{description:"Source Action...",args:[{name:"args",schema:o}]}})}run(R,P,A){const T=d.CodeActionCommandArgs.fromUser(A,{kind:d.CodeActionKind.Source,apply:"never"});return h(P,typeof A?.kind=="string"?T.preferred?i.localize(19,null,A.kind):i.localize(20,null,A.kind):T.preferred?i.localize(21,null):i.localize(22,null),{include:d.CodeActionKind.Source.contains(T.kind)?T.kind:d.CodeActionKind.None,includeSourceActions:!0,onlyIncludePreferredActions:T.preferred},T.apply,void 0,d.CodeActionTriggerSource.SourceAction)}}e.SourceAction=y;class k extends I.EditorAction{constructor(){super({id:v.organizeImportsCommandId,label:i.localize(23,null),alias:"Organize Imports",precondition:t.ContextKeyExpr.and(L.EditorContextKeys.writable,s(d.CodeActionKind.SourceOrganizeImports)),kbOpts:{kbExpr:L.EditorContextKeys.editorTextFocus,primary:1581,weight:100}})}run(R,P){return h(P,i.localize(24,null),{include:d.CodeActionKind.SourceOrganizeImports,includeSourceActions:!0},"ifSingle",void 0,d.CodeActionTriggerSource.OrganizeImports)}}e.OrganizeImportsAction=k;class D extends I.EditorAction{constructor(){super({id:v.fixAllCommandId,label:i.localize(25,null),alias:"Fix All",precondition:t.ContextKeyExpr.and(L.EditorContextKeys.writable,s(d.CodeActionKind.SourceFixAll))})}run(R,P){return h(P,i.localize(26,null),{include:d.CodeActionKind.SourceFixAll,includeSourceActions:!0},"ifSingle",void 0,d.CodeActionTriggerSource.FixAll)}}e.FixAllAction=D;class M extends I.EditorAction{constructor(){super({id:M.Id,label:i.localize(27,null),alias:"Auto Fix...",precondition:t.ContextKeyExpr.and(L.EditorContextKeys.writable,s(d.CodeActionKind.QuickFix)),kbOpts:{kbExpr:L.EditorContextKeys.editorTextFocus,primary:1620,mac:{primary:2644},weight:100}})}run(R,P){return h(P,i.localize(28,null),{include:d.CodeActionKind.QuickFix,onlyIncludePreferredActions:!0},"ifSingle",void 0,d.CodeActionTriggerSource.AutoFix)}}M.Id="editor.action.autoFix",e.AutoFixAction=M}),define(_[772],ee([1,0,14,224,316,585,90,33]),function(q,e,C,N,E,I,L,S){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(0,C.registerEditorContribution)(E.CodeActionController.ID,E.CodeActionController,3),(0,C.registerEditorAction)(E.QuickFixAction),(0,C.registerEditorAction)(E.RefactorAction),(0,C.registerEditorAction)(E.RefactorPreview),(0,C.registerEditorAction)(E.SourceAction),(0,C.registerEditorAction)(E.OrganizeImportsAction),(0,C.registerEditorAction)(E.AutoFixAction),(0,C.registerEditorAction)(E.FixAllAction),(0,C.registerEditorCommand)(new E.CodeActionCommand),S.Registry.as(L.Extensions.Configuration).registerConfiguration(Object.assign(Object.assign({},N.editorConfigurationBaseNode),{properties:{"editor.codeActionWidget.showHeaders":{type:"boolean",scope:5,description:I.localize(0,null),default:!0}}}))}),define(_[773],ee([1,0,7,66,536,41,13,2,98]),function(q,e,C,N,E,I,L,S,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContextMenuHandler=void 0;class f{constructor(i,t,n,a){this.g=i,this.h=t,this.i=n,this.j=a,this.a=null,this.b=null,this.c=null,this.d=null,this.f={blockMouse:!0}}configure(i){this.f=i}showContextMenu(i){const t=i.getActions();if(!t.length)return;this.a=document.activeElement;let n;const a=(0,C.isHTMLElement)(i.domForShadowRoot)?i.domForShadowRoot:void 0;this.g.showContextView({getAnchor:()=>i.getAnchor(),canRelayout:!1,anchorAlignment:i.anchorAlignment,anchorAxisAlignment:i.anchorAxisAlignment,render:r=>{var c;this.b=r;const d=i.getMenuClassName?i.getMenuClassName():"";d&&(r.className+=" "+d),this.f.blockMouse&&(this.c=r.appendChild((0,C.$)(".context-view-block")),this.c.style.position="fixed",this.c.style.cursor="initial",this.c.style.left="0",this.c.style.top="0",this.c.style.width="100%",this.c.style.height="100%",this.c.style.zIndex="-1",(c=this.d)===null||c===void 0||c.dispose(),this.d=(0,C.addDisposableListener)(this.c,C.EventType.MOUSE_DOWN,o=>o.stopPropagation()));const s=new S.DisposableStore,l=i.actionRunner||new I.ActionRunner;return l.onWillRun(o=>this.k(o,!i.skipTelemetry),this,s),l.onDidRun(this.l,this,s),n=new E.Menu(r,t,{actionViewItemProvider:i.getActionViewItem,context:i.getActionsContext?i.getActionsContext():null,actionRunner:l,getKeyBinding:i.getKeyBinding?i.getKeyBinding:o=>this.j.lookupKeybinding(o.id)},v.defaultMenuStyles),n.onDidCancel(()=>this.g.hideContextView(!0),null,s),n.onDidBlur(()=>this.g.hideContextView(!0),null,s),s.add((0,C.addDisposableListener)(window,C.EventType.BLUR,()=>this.g.hideContextView(!0))),s.add((0,C.addDisposableListener)(window,C.EventType.MOUSE_DOWN,o=>{if(o.defaultPrevented)return;const u=new N.StandardMouseEvent(o);let h=u.target;if(!u.rightButton){for(;h;){if(h===r)return;h=h.parentElement}this.g.hideContextView(!0)}})),(0,S.combinedDisposable)(s,n)},focus:()=>{n?.focus(!!i.autoSelectFirstItem)},onHide:r=>{var c,d,s;(c=i.onHide)===null||c===void 0||c.call(i,!!r),this.c&&(this.c.remove(),this.c=null),(d=this.d)===null||d===void 0||d.dispose(),this.d=null,!!this.b&&((0,C.getActiveElement)()===this.b||(0,C.isAncestor)((0,C.getActiveElement)(),this.b))&&((s=this.a)===null||s===void 0||s.focus()),this.b=null}},a,!!a)}k(i,t){t&&this.h.publicLog2("workbenchActionExecuted",{id:i.action.id,from:"contextMenu"}),this.g.hideContextView(!1)}l(i){i.error&&!(0,L.isCancellationError)(i.error)&&this.i.error(i.error)}}e.ContextMenuHandler=f}),define(_[177],ee([1,0,7,531,106,532,168,539,538,283,6,2,667,27,90,15,302,57,8,38,33,98]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s,l,o,u){"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,s.createDecorator)("listService");class h{get lastFocusedList(){return this.c}constructor(){this.a=new i.DisposableStore,this.b=[],this.c=void 0,this.d=!1}f(X){var le,me;X!==this.c&&((le=this.c)===null||le===void 0||le.getHTMLElement().classList.remove("last-focused"),this.c=X,(me=this.c)===null||me===void 0||me.getHTMLElement().classList.add("last-focused"))}register(X,le){if(this.d||(this.d=!0,new E.DefaultStyleController((0,C.createStyleSheet)(),"").style(u.defaultListStyles)),this.b.some(we=>we.widget===X))throw new Error("Cannot register the same widget multiple times");const me={widget:X,extraContextKeys:le};return this.b.push(me),X.getHTMLElement()===document.activeElement&&this.f(X),(0,i.combinedDisposable)(X.onDidFocus(()=>this.f(X)),(0,i.toDisposable)(()=>this.b.splice(this.b.indexOf(me),1)),X.onDidDispose(()=>{this.b=this.b.filter(we=>we!==me),this.c===X&&this.f(void 0)}))}dispose(){this.a.dispose()}}e.ListService=h,e.RawWorkbenchListFocusContextKey=new r.RawContextKey("listFocus",!0),e.WorkbenchListSupportsMultiSelectContextKey=new r.RawContextKey("listSupportsMultiselect",!0),e.WorkbenchListFocusContextKey=r.ContextKeyExpr.and(e.RawWorkbenchListFocusContextKey,r.ContextKeyExpr.not(c.InputFocusedContextKey)),e.WorkbenchListHasSelectionOrFocus=new r.RawContextKey("listHasSelectionOrFocus",!1),e.WorkbenchListDoubleSelection=new r.RawContextKey("listDoubleSelection",!1),e.WorkbenchListMultiSelection=new r.RawContextKey("listMultiSelection",!1),e.WorkbenchListSelectionNavigation=new r.RawContextKey("listSelectionNavigation",!1),e.WorkbenchListSupportsFind=new r.RawContextKey("listSupportsFind",!0),e.WorkbenchTreeElementCanCollapse=new r.RawContextKey("treeElementCanCollapse",!1),e.WorkbenchTreeElementHasParent=new r.RawContextKey("treeElementHasParent",!1),e.WorkbenchTreeElementCanExpand=new r.RawContextKey("treeElementCanExpand",!1),e.WorkbenchTreeElementHasChild=new r.RawContextKey("treeElementHasChild",!1),e.WorkbenchTreeFindOpen=new r.RawContextKey("treeFindOpen",!1);const w="listTypeNavigationMode",m="listAutomaticKeyboardNavigation";function p(re,X){const le=re.createScoped(X.getHTMLElement());return e.RawWorkbenchListFocusContextKey.bindTo(le),le}const b="workbench.list.multiSelectModifier",y="workbench.list.openMode",k="workbench.list.horizontalScrolling",D="workbench.list.defaultFindMode",M="workbench.list.typeNavigationMode",z="workbench.list.keyboardNavigation",R="workbench.list.scrollByPage",P="workbench.list.defaultFindMatchType",A="workbench.tree.indent",T="workbench.tree.renderIndentGuides",O="workbench.list.smoothScrolling",B="workbench.list.mouseWheelScrollSensitivity",W="workbench.list.fastScrollSensitivity",j="workbench.tree.expandMode";function F(re){return re.getValue(b)==="alt"}class U extends i.Disposable{constructor(X){super(),this.b=X,this.a=F(X),this.c()}c(){this.q(this.b.onDidChangeConfiguration(X=>{X.affectsConfiguration(b)&&(this.a=F(this.b))}))}isSelectionSingleChangeEvent(X){return this.a?X.browserEvent.altKey:(0,E.isSelectionSingleChangeEvent)(X)}isSelectionRangeChangeEvent(X){return(0,E.isSelectionRangeChangeEvent)(X)}}function Q(re,X){var le;const me=re.get(n.IConfigurationService),we=re.get(l.IKeybindingService),Le=new i.DisposableStore;return[Object.assign(Object.assign({},X),{keyboardNavigationDelegate:{mightProducePrintableCharacter(Me){return we.mightProducePrintableCharacter(Me)}},smoothScrolling:Boolean(me.getValue(O)),mouseWheelScrollSensitivity:me.getValue(B),fastScrollSensitivity:me.getValue(W),multipleSelectionController:(le=X.multipleSelectionController)!==null&&le!==void 0?le:Le.add(new U(me)),keyboardNavigationEventFilter:te(we),scrollByPage:Boolean(me.getValue(R))}),Le]}let se=class extends E.List{constructor(X,le,me,we,Le,Ee,Me,Ae,ke){const fe=typeof Le.horizontalScrolling<"u"?Le.horizontalScrolling:Boolean(Ae.getValue(k)),[pe,ce]=ke.invokeFunction(Q,Le);super(X,le,me,we,Object.assign(Object.assign({keyboardSupport:!1},pe),{horizontalScrolling:fe})),this.w.add(ce),this.contextKeyService=p(Ee,this),this.h=e.WorkbenchListSupportsMultiSelectContextKey.bindTo(this.contextKeyService),this.h.set(Le.multipleSelectionSupport!==!1),e.WorkbenchListSelectionNavigation.bindTo(this.contextKeyService).set(Boolean(Le.selectionNavigation)),this.K=e.WorkbenchListHasSelectionOrFocus.bindTo(this.contextKeyService),this.L=e.WorkbenchListDoubleSelection.bindTo(this.contextKeyService),this.M=e.WorkbenchListMultiSelection.bindTo(this.contextKeyService),this.N=Le.horizontalScrolling,this.O=F(Ae),this.w.add(this.contextKeyService),this.w.add(Me.register(this)),this.Q(Le.overrideStyles),this.w.add(this.onDidChangeSelection(()=>{const Se=this.getSelection(),Ie=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.K.set(Se.length>0||Ie.length>0),this.M.set(Se.length>1),this.L.set(Se.length===2)})})),this.w.add(this.onDidChangeFocus(()=>{const Se=this.getSelection(),Ie=this.getFocus();this.K.set(Se.length>0||Ie.length>0)})),this.w.add(Ae.onDidChangeConfiguration(Se=>{Se.affectsConfiguration(b)&&(this.O=F(Ae));let Ie={};if(Se.affectsConfiguration(k)&&this.N===void 0){const Ce=Boolean(Ae.getValue(k));Ie=Object.assign(Object.assign({},Ie),{horizontalScrolling:Ce})}if(Se.affectsConfiguration(R)){const Ce=Boolean(Ae.getValue(R));Ie=Object.assign(Object.assign({},Ie),{scrollByPage:Ce})}if(Se.affectsConfiguration(O)){const Ce=Boolean(Ae.getValue(O));Ie=Object.assign(Object.assign({},Ie),{smoothScrolling:Ce})}if(Se.affectsConfiguration(B)){const Ce=Ae.getValue(B);Ie=Object.assign(Object.assign({},Ie),{mouseWheelScrollSensitivity:Ce})}if(Se.affectsConfiguration(W)){const Ce=Ae.getValue(W);Ie=Object.assign(Object.assign({},Ie),{fastScrollSensitivity:Ce})}Object.keys(Ie).length>0&&this.updateOptions(Ie)})),this.P=new J(this,Object.assign({configurationService:Ae},Le)),this.w.add(this.P)}updateOptions(X){super.updateOptions(X),X.overrideStyles!==void 0&&this.Q(X.overrideStyles),X.multipleSelectionSupport!==void 0&&this.h.set(!!X.multipleSelectionSupport)}Q(X){this.style(X?(0,u.getListStyles)(X):u.defaultListStyles)}};se=Ne([ge(5,r.IContextKeyService),ge(6,e.IListService),ge(7,n.IConfigurationService),ge(8,s.IInstantiationService)],se),e.WorkbenchList=se;let he=class extends N.PagedList{constructor(X,le,me,we,Le,Ee,Me,Ae,ke){const fe=typeof Le.horizontalScrolling<"u"?Le.horizontalScrolling:Boolean(Ae.getValue(k)),[pe,ce]=ke.invokeFunction(Q,Le);super(X,le,me,we,Object.assign(Object.assign({keyboardSupport:!1},pe),{horizontalScrolling:fe})),this.c=new i.DisposableStore,this.c.add(ce),this.contextKeyService=p(Ee,this),this.g=Le.horizontalScrolling,this.d=e.WorkbenchListSupportsMultiSelectContextKey.bindTo(this.contextKeyService),this.d.set(Le.multipleSelectionSupport!==!1),e.WorkbenchListSelectionNavigation.bindTo(this.contextKeyService).set(Boolean(Le.selectionNavigation)),this.f=F(Ae),this.c.add(this.contextKeyService),this.c.add(Me.register(this)),this.j(Le.overrideStyles),this.c.add(Ae.onDidChangeConfiguration(Se=>{Se.affectsConfiguration(b)&&(this.f=F(Ae));let Ie={};if(Se.affectsConfiguration(k)&&this.g===void 0){const Ce=Boolean(Ae.getValue(k));Ie=Object.assign(Object.assign({},Ie),{horizontalScrolling:Ce})}if(Se.affectsConfiguration(R)){const Ce=Boolean(Ae.getValue(R));Ie=Object.assign(Object.assign({},Ie),{scrollByPage:Ce})}if(Se.affectsConfiguration(O)){const Ce=Boolean(Ae.getValue(O));Ie=Object.assign(Object.assign({},Ie),{smoothScrolling:Ce})}if(Se.affectsConfiguration(B)){const Ce=Ae.getValue(B);Ie=Object.assign(Object.assign({},Ie),{mouseWheelScrollSensitivity:Ce})}if(Se.affectsConfiguration(W)){const Ce=Ae.getValue(W);Ie=Object.assign(Object.assign({},Ie),{fastScrollSensitivity:Ce})}Object.keys(Ie).length>0&&this.updateOptions(Ie)})),this.h=new J(this,Object.assign({configurationService:Ae},Le)),this.c.add(this.h)}updateOptions(X){super.updateOptions(X),X.overrideStyles!==void 0&&this.j(X.overrideStyles),X.multipleSelectionSupport!==void 0&&this.d.set(!!X.multipleSelectionSupport)}j(X){this.style(X?(0,u.getListStyles)(X):u.defaultListStyles)}dispose(){this.c.dispose(),super.dispose()}};he=Ne([ge(5,r.IContextKeyService),ge(6,e.IListService),ge(7,n.IConfigurationService),ge(8,s.IInstantiationService)],he),e.WorkbenchPagedList=he;let ie=class extends I.Table{constructor(X,le,me,we,Le,Ee,Me,Ae,ke,fe){const pe=typeof Ee.horizontalScrolling<"u"?Ee.horizontalScrolling:Boolean(ke.getValue(k)),[ce,be]=fe.invokeFunction(Q,Ee);super(X,le,me,we,Le,Object.assign(Object.assign({keyboardSupport:!1},ce),{horizontalScrolling:pe})),this.k.add(be),this.contextKeyService=p(Me,this),this.p=e.WorkbenchListSupportsMultiSelectContextKey.bindTo(this.contextKeyService),this.p.set(Ee.multipleSelectionSupport!==!1),e.WorkbenchListSelectionNavigation.bindTo(this.contextKeyService).set(Boolean(Ee.selectionNavigation)),this.q=e.WorkbenchListHasSelectionOrFocus.bindTo(this.contextKeyService),this.s=e.WorkbenchListDoubleSelection.bindTo(this.contextKeyService),this.t=e.WorkbenchListMultiSelection.bindTo(this.contextKeyService),this.u=Ee.horizontalScrolling,this.v=F(ke),this.k.add(this.contextKeyService),this.k.add(Ae.register(this)),this.x(Ee.overrideStyles),this.k.add(this.onDidChangeSelection(()=>{const Ie=this.getSelection(),Ce=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.q.set(Ie.length>0||Ce.length>0),this.t.set(Ie.length>1),this.s.set(Ie.length===2)})})),this.k.add(this.onDidChangeFocus(()=>{const Ie=this.getSelection(),Ce=this.getFocus();this.q.set(Ie.length>0||Ce.length>0)})),this.k.add(ke.onDidChangeConfiguration(Ie=>{Ie.affectsConfiguration(b)&&(this.v=F(ke));let Ce={};if(Ie.affectsConfiguration(k)&&this.u===void 0){const ve=Boolean(ke.getValue(k));Ce=Object.assign(Object.assign({},Ce),{horizontalScrolling:ve})}if(Ie.affectsConfiguration(R)){const ve=Boolean(ke.getValue(R));Ce=Object.assign(Object.assign({},Ce),{scrollByPage:ve})}if(Ie.affectsConfiguration(O)){const ve=Boolean(ke.getValue(O));Ce=Object.assign(Object.assign({},Ce),{smoothScrolling:ve})}if(Ie.affectsConfiguration(B)){const ve=ke.getValue(B);Ce=Object.assign(Object.assign({},Ce),{mouseWheelScrollSensitivity:ve})}if(Ie.affectsConfiguration(W)){const ve=ke.getValue(W);Ce=Object.assign(Object.assign({},Ce),{fastScrollSensitivity:ve})}Object.keys(Ce).length>0&&this.updateOptions(Ce)})),this.w=new x(this,Object.assign({configurationService:ke},Ee)),this.k.add(this.w)}updateOptions(X){super.updateOptions(X),X.overrideStyles!==void 0&&this.x(X.overrideStyles),X.multipleSelectionSupport!==void 0&&this.p.set(!!X.multipleSelectionSupport)}x(X){this.style(X?(0,u.getListStyles)(X):u.defaultListStyles)}dispose(){this.k.dispose(),super.dispose()}};ie=Ne([ge(6,r.IContextKeyService),ge(7,e.IListService),ge(8,n.IConfigurationService),ge(9,s.IInstantiationService)],ie),e.WorkbenchTable=ie;class ue extends i.Disposable{constructor(X,le){var me;super(),this.c=X,this.b=this.q(new g.Emitter),this.onDidOpen=this.b.event,this.q(g.Event.filter(this.c.onDidChangeSelection,we=>we.browserEvent instanceof KeyboardEvent)(we=>this.g(we))),this.q(this.c.onPointer(we=>this.h(we.element,we.browserEvent))),this.q(this.c.onMouseDblClick(we=>this.i(we.element,we.browserEvent))),typeof le?.openOnSingleClick!="boolean"&&le?.configurationService?(this.a=le?.configurationService.getValue(y)!=="doubleClick",this.q(le?.configurationService.onDidChangeConfiguration(we=>{we.affectsConfiguration(y)&&(this.a=le?.configurationService.getValue(y)!=="doubleClick")}))):this.a=(me=le?.openOnSingleClick)!==null&&me!==void 0?me:!0}g(X){if(X.elements.length!==1)return;const le=X.browserEvent,me=typeof le.preserveFocus=="boolean"?le.preserveFocus:!0,we=typeof le.pinned=="boolean"?le.pinned:!me,Le=!1;this.j(this.getSelectedElement(),me,we,Le,X.browserEvent)}h(X,le){if(!this.a||le.detail===2)return;const we=le.button===1,Le=!0,Ee=we,Me=le.ctrlKey||le.metaKey||le.altKey;this.j(X,Le,Ee,Me,le)}i(X,le){if(!le)return;const me=le.target;if(me.classList.contains("monaco-tl-twistie")||me.classList.contains("monaco-icon-label")&&me.classList.contains("folder-icon")&&le.offsetX<16)return;const Le=!1,Ee=!0,Me=le.ctrlKey||le.metaKey||le.altKey;this.j(X,Le,Ee,Me,le)}j(X,le,me,we,Le){!X||this.b.fire({editorOptions:{preserveFocus:le,pinned:me,revealIfVisible:!0},sideBySide:we,element:X,browserEvent:Le})}}class J extends ue{constructor(X,le){super(X,le),this.c=X}getSelectedElement(){return this.c.getSelectedElements()[0]}}class x extends ue{constructor(X,le){super(X,le)}getSelectedElement(){return this.c.getSelectedElements()[0]}}class G extends ue{constructor(X,le){super(X,le)}getSelectedElement(){var X;return(X=this.c.getSelection()[0])!==null&&X!==void 0?X:void 0}}function te(re){let X=!1;return le=>{if(le.toKeyCodeChord().isModifierKey())return!1;if(X)return X=!1,!1;const me=re.softDispatch(le,le.target);return me?.enterMultiChord?(X=!0,!1):(X=!1,!me)}}let Z=class extends f.ObjectTree{constructor(X,le,me,we,Le,Ee,Me,Ae,ke){const{options:fe,getTypeNavigationMode:pe,disposable:ce}=Ee.invokeFunction(H,Le);super(X,le,me,we,fe),this.o.add(ce),this.B=new $(this,Le,pe,Le.overrideStyles,Me,Ae,ke),this.o.add(this.B)}updateOptions(X){super.updateOptions(X),this.B.updateOptions(X)}};Z=Ne([ge(5,s.IInstantiationService),ge(6,r.IContextKeyService),ge(7,e.IListService),ge(8,n.IConfigurationService)],Z),e.WorkbenchObjectTree=Z;let ae=class extends f.CompressibleObjectTree{constructor(X,le,me,we,Le,Ee,Me,Ae,ke){const{options:fe,getTypeNavigationMode:pe,disposable:ce}=Ee.invokeFunction(H,Le);super(X,le,me,we,fe),this.o.add(ce),this.D=new $(this,Le,pe,Le.overrideStyles,Me,Ae,ke),this.o.add(this.D)}updateOptions(X={}){super.updateOptions(X),X.overrideStyles&&this.D.updateStyleOverrides(X.overrideStyles),this.D.updateOptions(X)}};ae=Ne([ge(5,s.IInstantiationService),ge(6,r.IContextKeyService),ge(7,e.IListService),ge(8,n.IConfigurationService)],ae),e.WorkbenchCompressibleObjectTree=ae;let de=class extends v.DataTree{constructor(X,le,me,we,Le,Ee,Me,Ae,ke,fe){const{options:pe,getTypeNavigationMode:ce,disposable:be}=Me.invokeFunction(H,Ee);super(X,le,me,we,Le,pe),this.o.add(be),this.D=new $(this,Ee,ce,Ee.overrideStyles,Ae,ke,fe),this.o.add(this.D)}updateOptions(X={}){super.updateOptions(X),X.overrideStyles!==void 0&&this.D.updateStyleOverrides(X.overrideStyles),this.D.updateOptions(X)}};de=Ne([ge(6,s.IInstantiationService),ge(7,r.IContextKeyService),ge(8,e.IListService),ge(9,n.IConfigurationService)],de),e.WorkbenchDataTree=de;let K=class extends S.AsyncDataTree{get onDidOpen(){return this.I.onDidOpen}constructor(X,le,me,we,Le,Ee,Me,Ae,ke,fe){const{options:pe,getTypeNavigationMode:ce,disposable:be}=Me.invokeFunction(H,Ee);super(X,le,me,we,Le,pe),this.s.add(be),this.I=new $(this,Ee,ce,Ee.overrideStyles,Ae,ke,fe),this.s.add(this.I)}updateOptions(X={}){super.updateOptions(X),X.overrideStyles&&this.I.updateStyleOverrides(X.overrideStyles),this.I.updateOptions(X)}};K=Ne([ge(6,s.IInstantiationService),ge(7,r.IContextKeyService),ge(8,e.IListService),ge(9,n.IConfigurationService)],K),e.WorkbenchAsyncDataTree=K;let Y=class extends S.CompressibleAsyncDataTree{constructor(X,le,me,we,Le,Ee,Me,Ae,ke,fe,pe){const{options:ce,getTypeNavigationMode:be,disposable:Se}=Ae.invokeFunction(H,Me);super(X,le,me,we,Le,Ee,ce),this.s.add(Se),this.Q=new $(this,Me,be,Me.overrideStyles,ke,fe,pe),this.s.add(this.Q)}updateOptions(X){super.updateOptions(X),this.Q.updateOptions(X)}};Y=Ne([ge(7,s.IInstantiationService),ge(8,r.IContextKeyService),ge(9,e.IListService),ge(10,n.IConfigurationService)],Y),e.WorkbenchCompressibleAsyncDataTree=Y;function ne(re){const X=re.getValue(D);if(X==="highlight")return L.TreeFindMode.Highlight;if(X==="filter")return L.TreeFindMode.Filter;const le=re.getValue(z);if(le==="simple"||le==="highlight")return L.TreeFindMode.Highlight;if(le==="filter")return L.TreeFindMode.Filter}function V(re){const X=re.getValue(P);if(X==="fuzzy")return L.TreeFindMatchType.Fuzzy;if(X==="contiguous")return L.TreeFindMatchType.Contiguous}function H(re,X){var le;const me=re.get(n.IConfigurationService),we=re.get(d.IContextViewService),Le=re.get(r.IContextKeyService),Ee=re.get(s.IInstantiationService),Me=()=>{const be=Le.getContextKeyValue(w);if(be==="automatic")return E.TypeNavigationMode.Automatic;if(be==="trigger"||Le.getContextKeyValue(m)===!1)return E.TypeNavigationMode.Trigger;const Ie=me.getValue(M);if(Ie==="automatic")return E.TypeNavigationMode.Automatic;if(Ie==="trigger")return E.TypeNavigationMode.Trigger},Ae=X.horizontalScrolling!==void 0?X.horizontalScrolling:Boolean(me.getValue(k)),[ke,fe]=Ee.invokeFunction(Q,X),pe=X.additionalScrollHeight,ce=X.renderIndentGuides!==void 0?X.renderIndentGuides:me.getValue(T);return{getTypeNavigationMode:Me,disposable:fe,options:Object.assign(Object.assign({keyboardSupport:!1},ke),{indent:typeof me.getValue(A)=="number"?me.getValue(A):void 0,renderIndentGuides:ce,smoothScrolling:Boolean(me.getValue(O)),defaultFindMode:ne(me),defaultFindMatchType:V(me),horizontalScrolling:Ae,scrollByPage:Boolean(me.getValue(R)),additionalScrollHeight:pe,hideTwistiesOfChildlessElements:X.hideTwistiesOfChildlessElements,expandOnlyOnTwistieClick:(le=X.expandOnlyOnTwistieClick)!==null&&le!==void 0?le:me.getValue(j)==="doubleClick",contextViewProvider:we,findWidgetStyles:u.defaultFindWidgetStyles})}}let $=class{get onDidOpen(){return this.o.onDidOpen}constructor(X,le,me,we,Le,Ee,Me){var Ae;this.p=X,this.n=[],this.contextKeyService=p(Le,X),this.a=e.WorkbenchListSupportsMultiSelectContextKey.bindTo(this.contextKeyService),this.a.set(le.multipleSelectionSupport!==!1),e.WorkbenchListSelectionNavigation.bindTo(this.contextKeyService).set(Boolean(le.selectionNavigation)),this.b=e.WorkbenchListSupportsFind.bindTo(this.contextKeyService),this.b.set((Ae=le.findWidgetEnabled)!==null&&Ae!==void 0?Ae:!0),this.c=e.WorkbenchListHasSelectionOrFocus.bindTo(this.contextKeyService),this.d=e.WorkbenchListDoubleSelection.bindTo(this.contextKeyService),this.f=e.WorkbenchListMultiSelection.bindTo(this.contextKeyService),this.g=e.WorkbenchTreeElementCanCollapse.bindTo(this.contextKeyService),this.h=e.WorkbenchTreeElementHasParent.bindTo(this.contextKeyService),this.i=e.WorkbenchTreeElementCanExpand.bindTo(this.contextKeyService),this.j=e.WorkbenchTreeElementHasChild.bindTo(this.contextKeyService),this.k=e.WorkbenchTreeFindOpen.bindTo(this.contextKeyService),this.m=F(Me),this.updateStyleOverrides(we);const fe=()=>{const ce=X.getFocus()[0];if(!ce)return;const be=X.getNode(ce);this.g.set(be.collapsible&&!be.collapsed),this.h.set(!!X.getParentElement(ce)),this.i.set(be.collapsible&&be.collapsed),this.j.set(!!X.getFirstElementChild(ce))},pe=new Set;pe.add(w),pe.add(m),this.n.push(this.contextKeyService,Ee.register(X),X.onDidChangeSelection(()=>{const ce=X.getSelection(),be=X.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.c.set(ce.length>0||be.length>0),this.f.set(ce.length>1),this.d.set(ce.length===2)})}),X.onDidChangeFocus(()=>{const ce=X.getSelection(),be=X.getFocus();this.c.set(ce.length>0||be.length>0),fe()}),X.onDidChangeCollapseState(fe),X.onDidChangeModel(fe),X.onDidChangeFindOpenState(ce=>this.k.set(ce)),Me.onDidChangeConfiguration(ce=>{let be={};if(ce.affectsConfiguration(b)&&(this.m=F(Me)),ce.affectsConfiguration(A)){const Se=Me.getValue(A);be=Object.assign(Object.assign({},be),{indent:Se})}if(ce.affectsConfiguration(T)&&le.renderIndentGuides===void 0){const Se=Me.getValue(T);be=Object.assign(Object.assign({},be),{renderIndentGuides:Se})}if(ce.affectsConfiguration(O)){const Se=Boolean(Me.getValue(O));be=Object.assign(Object.assign({},be),{smoothScrolling:Se})}if(ce.affectsConfiguration(D)||ce.affectsConfiguration(z)){const Se=ne(Me);be=Object.assign(Object.assign({},be),{defaultFindMode:Se})}if(ce.affectsConfiguration(M)||ce.affectsConfiguration(z)){const Se=me();be=Object.assign(Object.assign({},be),{typeNavigationMode:Se})}if(ce.affectsConfiguration(P)){const Se=V(Me);be=Object.assign(Object.assign({},be),{defaultFindMatchType:Se})}if(ce.affectsConfiguration(k)&&le.horizontalScrolling===void 0){const Se=Boolean(Me.getValue(k));be=Object.assign(Object.assign({},be),{horizontalScrolling:Se})}if(ce.affectsConfiguration(R)){const Se=Boolean(Me.getValue(R));be=Object.assign(Object.assign({},be),{scrollByPage:Se})}if(ce.affectsConfiguration(j)&&le.expandOnlyOnTwistieClick===void 0&&(be=Object.assign(Object.assign({},be),{expandOnlyOnTwistieClick:Me.getValue(j)==="doubleClick"})),ce.affectsConfiguration(B)){const Se=Me.getValue(B);be=Object.assign(Object.assign({},be),{mouseWheelScrollSensitivity:Se})}if(ce.affectsConfiguration(W)){const Se=Me.getValue(W);be=Object.assign(Object.assign({},be),{fastScrollSensitivity:Se})}Object.keys(be).length>0&&X.updateOptions(be)}),this.contextKeyService.onDidChangeContext(ce=>{ce.affectsSome(pe)&&X.updateOptions({typeNavigationMode:me()})})),this.o=new G(X,Object.assign({configurationService:Me},le)),this.n.push(this.o)}updateOptions(X){X.multipleSelectionSupport!==void 0&&this.a.set(!!X.multipleSelectionSupport)}updateStyleOverrides(X){this.p.style(X?(0,u.getListStyles)(X):u.defaultListStyles)}dispose(){this.n=(0,i.dispose)(this.n)}};$=Ne([ge(4,r.IContextKeyService),ge(5,e.IListService),ge(6,n.IConfigurationService)],$),o.Registry.as(a.Extensions.Configuration).registerConfiguration({id:"workbench",order:7,title:(0,t.localize)(0,null),type:"object",properties:{[b]:{type:"string",enum:["ctrlCmd","alt"],markdownEnumDescriptions:[(0,t.localize)(1,null),(0,t.localize)(2,null)],default:"ctrlCmd",description:(0,t.localize)(3,null)},[y]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:(0,t.localize)(4,null)},[k]:{type:"boolean",default:!1,description:(0,t.localize)(5,null)},[R]:{type:"boolean",default:!1,description:(0,t.localize)(6,null)},[A]:{type:"number",default:8,minimum:4,maximum:40,description:(0,t.localize)(7,null)},[T]:{type:"string",enum:["none","onHover","always"],default:"onHover",description:(0,t.localize)(8,null)},[O]:{type:"boolean",default:!1,description:(0,t.localize)(9,null)},[B]:{type:"number",default:1,markdownDescription:(0,t.localize)(10,null)},[W]:{type:"number",default:5,markdownDescription:(0,t.localize)(11,null)},[D]:{type:"string",enum:["highlight","filter"],enumDescriptions:[(0,t.localize)(12,null),(0,t.localize)(13,null)],default:"highlight",description:(0,t.localize)(14,null)},[z]:{type:"string",enum:["simple","highlight","filter"],enumDescriptions:[(0,t.localize)(15,null),(0,t.localize)(16,null),(0,t.localize)(17,null)],default:"highlight",description:(0,t.localize)(18,null),deprecated:!0,deprecationMessage:(0,t.localize)(19,null)},[P]:{type:"string",enum:["fuzzy","contiguous"],enumDescriptions:[(0,t.localize)(20,null),(0,t.localize)(21,null)],default:"fuzzy",description:(0,t.localize)(22,null)},[j]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:(0,t.localize)(23,null)},[M]:{type:"string",enum:["automatic","trigger"],default:"automatic",description:(0,t.localize)(24,null)}}})}),define(_[81],ee([1,0,11,29,32,6,18,21,675,223,33]),function(q,e,C,N,E,I,L,S,v,f,g){"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 i;(function(o){function u(h,w){let m=h.defaults;for(;E.ThemeIcon.isThemeIcon(m);){const p=a.getIcon(m.id);if(!p)return;m=p.defaults}return m}o.getDefinition=u})(i=e.IconContribution||(e.IconContribution={}));var t;(function(o){function u(w){return{weight:w.weight,style:w.style,src:w.src.map(m=>({format:m.format,location:m.location.toString()}))}}o.toJSONObject=u;function h(w){const m=p=>(0,L.isString)(p)?p:void 0;if(w&&Array.isArray(w.src)&&w.src.every(p=>(0,L.isString)(p.format)&&(0,L.isString)(p.location)))return{weight:m(w.weight),style:m(w.style),src:w.src.map(p=>({format:p.format,location:S.URI.parse(p.location)}))}}o.fromJSONObject=h})(t=e.IconFontDefinition||(e.IconFontDefinition={}));class n{constructor(){this.a=new I.Emitter,this.onDidChange=this.a.event,this.d={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:(0,v.localize)(0,null)},fontCharacter:{type:"string",description:(0,v.localize)(1,null)}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.e={type:"string",pattern:`^${E.ThemeIcon.iconNameExpression}$`,enum:[],enumDescriptions:[]},this.b={},this.f={}}registerIcon(u,h,w,m){const p=this.b[u];if(p){if(w&&!p.description){p.description=w,this.d.properties[u].markdownDescription=`${w} $(${u})`;const k=this.e.enum.indexOf(u);k!==-1&&(this.e.enumDescriptions[k]=w),this.a.fire()}return p}const b={id:u,description:w,defaults:h,deprecationMessage:m};this.b[u]=b;const y={$ref:"#/definitions/icons"};return m&&(y.deprecationMessage=m),w&&(y.markdownDescription=`${w}: $(${u})`),this.d.properties[u]=y,this.e.enum.push(u),this.e.enumDescriptions.push(w||""),this.a.fire(),{id:u}}getIcons(){return Object.keys(this.b).map(u=>this.b[u])}getIcon(u){return this.b[u]}getIconSchema(){return this.d}toString(){const u=(p,b)=>p.id.localeCompare(b.id),h=p=>{for(;E.ThemeIcon.isThemeIcon(p.defaults);)p=this.b[p.defaults.id];return`codicon codicon-${p?p.id:""}`},w=[];w.push("| preview | identifier | default codicon ID | description"),w.push("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");const m=Object.keys(this.b).map(p=>this.b[p]);for(const p of m.filter(b=>!!b.description).sort(u))w.push(`|<i class="${h(p)}"></i>|${p.id}|${E.ThemeIcon.isThemeIcon(p.defaults)?p.defaults.id:p.id}|${p.description||""}|`);w.push("| preview | identifier "),w.push("| ----------- | --------------------------------- |");for(const p of m.filter(b=>!E.ThemeIcon.isThemeIcon(b.defaults)).sort(u))w.push(`|<i class="${h(p)}"></i>|${p.id}|`);return w.join(`
|
||
`)}}const a=new n;g.Registry.add(e.Extensions.IconContribution,a);function r(o,u,h,w){return a.registerIcon(o,u,h,w)}e.registerIcon=r;function c(){return a}e.getIconRegistry=c;function d(){const o=(0,N.getCodiconFontCharacters)();for(const u in o){const h="\\"+o[u].toString(16);a.registerIcon(u,{fontCharacter:h})}}d(),e.iconsSchemaId="vscode://schemas/icons";const s=g.Registry.as(f.Extensions.JSONContribution);s.registerSchema(e.iconsSchemaId,a.getIconSchema());const l=new C.RunOnceScheduler(()=>s.notifySchemaChanged(e.iconsSchemaId),200);a.onDidChange(()=>{l.isScheduled()||l.schedule()}),e.widgetClose=r("widget-close",N.Codicon.close,(0,v.localize)(2,null)),e.gotoPreviousLocation=r("goto-previous-location",N.Codicon.arrowUp,(0,v.localize)(3,null)),e.gotoNextLocation=r("goto-next-location",N.Codicon.arrowDown,(0,v.localize)(4,null)),e.syncing=E.ThemeIcon.modify(N.Codicon.sync,"spin"),e.spinningLoading=E.ThemeIcon.modify(N.Codicon.loading,"spin")}),define(_[774],ee([1,0,566,7,35,68,76,41,2,73,14,30,40,87,12,107,82,15,32,29,81,37,221,391]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s,l,o,u,h){"use strict";var w;Object.defineProperty(e,"__esModule",{value:!0}),e.DiffReview=void 0;const m=3;class p{constructor(T,O,B,W){this.originalLineStart=T,this.originalLineEnd=O,this.modifiedLineStart=B,this.modifiedLineEnd=W}getType(){return this.originalLineStart===0?1:this.modifiedLineStart===0?2:0}}class b{constructor(T){this.entries=T}}const y=(0,o.registerIcon)("diff-review-insert",l.Codicon.add,C.localize(0,null)),k=(0,o.registerIcon)("diff-review-remove",l.Codicon.remove,C.localize(1,null)),D=(0,o.registerIcon)("diff-review-close",l.Codicon.close,C.localize(2,null));let M=class Tt extends v.Disposable{constructor(T,O,B){super(),this.m=O,this.n=B,this.z=0,this.b=T,this.c=!1,this.shadow=(0,E.createFastDomNode)(document.createElement("div")),this.shadow.setClassName("diff-review-shadow"),this.actionBarContainer=(0,E.createFastDomNode)(document.createElement("div")),this.actionBarContainer.setClassName("diff-review-actions"),this.g=this.q(new I.ActionBar(this.actionBarContainer.domNode)),this.g.push(new S.Action("diffreview.close",C.localize(3,null),"close-diff-review "+s.ThemeIcon.asClassName(D),!0,()=>ye(this,void 0,void 0,function*(){return this.s()})),{label:!1,icon:!0}),this.domNode=(0,E.createFastDomNode)(document.createElement("div")),this.domNode.setClassName("diff-review monaco-editor-background"),this.h=(0,E.createFastDomNode)(document.createElement("div")),this.h.setClassName("diff-review-content"),this.h.setAttribute("role","code"),this.j=this.q(new L.DomScrollableElement(this.h.domNode,{})),this.domNode.domNode.appendChild(this.j.getDomNode()),this.q(T.onDidUpdateDiff(()=>{!this.c||(this.k=this.B(),this.F())})),this.q(T.getModifiedEditor().onDidChangeCursorPosition(()=>{!this.c||this.F()})),this.q(N.addStandardDisposableListener(this.domNode.domNode,"click",W=>{W.preventDefault();const j=N.findParentWithClass(W.target,"diff-review-row");j&&this.y(j)})),this.q(N.addStandardDisposableListener(this.domNode.domNode,"keydown",W=>{(W.equals(18)||W.equals(2066)||W.equals(530))&&(W.preventDefault(),this.y(this.u(),"next")),(W.equals(16)||W.equals(2064)||W.equals(528))&&(W.preventDefault(),this.y(this.t(),"previous")),(W.equals(9)||W.equals(2057)||W.equals(521)||W.equals(1033)||W.equals(10)||W.equals(3))&&(W.preventDefault(),this.p())})),this.k=[],this.l=null}prev(){let T=0;if(this.c||(this.k=this.B()),this.c){let B=-1;for(let W=0,j=this.k.length;W<j;W++)if(this.k[W]===this.l){B=W;break}T=this.k.length+B-1}else T=this.D(this.b.getPosition());if(this.k.length===0)return;T=T%this.k.length;const O=this.k[T].entries;this.b.setPosition(new a.Position(O[0].modifiedLineStart,1)),this.b.setSelection({startColumn:1,startLineNumber:O[0].modifiedLineStart,endColumn:1073741824,endLineNumber:O[O.length-1].modifiedLineEnd}),this.c=!0,this.b.doLayout(),this.F(),this.y(this.t(),"previous")}next(){let T=0;if(this.c||(this.k=this.B()),this.c){let B=-1;for(let W=0,j=this.k.length;W<j;W++)if(this.k[W]===this.l){B=W;break}T=B+1}else T=this.D(this.b.getPosition());if(this.k.length===0)return;T=T%this.k.length;const O=this.k[T].entries;this.b.setPosition(new a.Position(O[0].modifiedLineStart,1)),this.b.setSelection({startColumn:1,startLineNumber:O[0].modifiedLineStart,endColumn:1073741824,endLineNumber:O[O.length-1].modifiedLineEnd}),this.c=!0,this.b.doLayout(),this.F(),this.y(this.u(),"next")}p(){let T=-1;const O=this.w();if(O){const B=parseInt(O.getAttribute("data-line"),10);isNaN(B)||(T=B)}this.s(),T!==-1&&(this.b.setPosition(new a.Position(T,1)),this.b.revealPosition(new a.Position(T,1),1))}s(){this.c=!1,this.b.updateOptions({readOnly:!1}),this.b.focus(),this.b.doLayout(),this.F()}t(){const T=this.w();return T?T.previousElementSibling?T.previousElementSibling:T:this.v()}u(){const T=this.w();return T?T.nextElementSibling?T.nextElementSibling:T:this.v()}v(){return this.domNode.domNode.querySelector(".diff-review-row")}w(){const T=document.activeElement;return T&&/diff-review-row/.test(T.className)?T:null}y(T,O){const B=this.w();T.tabIndex=0,T.focus(),B&&B!==T&&(B.tabIndex=-1);const W=O?O==="next"?B?.nextElementSibling:B?.previousElementSibling:B;W?.classList.contains("line-insert")?this.n.playAudioCue(h.AudioCue.diffLineInserted,!0):W?.classList.contains("line-delete")&&this.n.playAudioCue(h.AudioCue.diffLineDeleted,!0),this.j.scanDomNode()}isVisible(){return this.c}layout(T,O,B){this.z=O,this.shadow.setTop(T-6),this.shadow.setWidth(O),this.shadow.setHeight(this.c?6:0),this.domNode.setTop(T),this.domNode.setWidth(O),this.domNode.setHeight(B),this.h.setHeight(B),this.h.setWidth(O),this.c?(this.actionBarContainer.setAttribute("aria-hidden","false"),this.actionBarContainer.setDisplay("block")):(this.actionBarContainer.setAttribute("aria-hidden","true"),this.actionBarContainer.setDisplay("none"))}B(){const T=this.b.getLineChanges();if(!T||T.length===0)return[];const O=this.b.getOriginalEditor().getModel(),B=this.b.getModifiedEditor().getModel();return!O||!B?[]:Tt.C(T,O.getLineCount(),B.getLineCount())}static C(T,O,B){if(!T||T.length===0)return[];const W=[];let j=0;for(let se=0,he=T.length;se<he;se++){const ie=T[se],ue=ie.originalStartLineNumber,J=ie.originalEndLineNumber,x=ie.modifiedStartLineNumber,G=ie.modifiedEndLineNumber,te=[];let Z=0;{const ae=J===0?ue:ue-1,de=G===0?x:x-1;let K=1,Y=1;if(se>0){const H=T[se-1];H.originalEndLineNumber===0?K=H.originalStartLineNumber+1:K=H.originalEndLineNumber+1,H.modifiedEndLineNumber===0?Y=H.modifiedStartLineNumber+1:Y=H.modifiedEndLineNumber+1}let ne=ae-m+1,V=de-m+1;if(ne<K){const H=K-ne;ne=ne+H,V=V+H}if(V<Y){const H=Y-V;ne=ne+H,V=V+H}te[Z++]=new p(ne,ae,V,de)}J!==0&&(te[Z++]=new p(ue,J,0,0)),G!==0&&(te[Z++]=new p(0,0,x,G));{const ae=J===0?ue+1:J+1,de=G===0?x+1:G+1;let K=O,Y=B;if(se+1<he){const H=T[se+1];H.originalEndLineNumber===0?K=H.originalStartLineNumber:K=H.originalStartLineNumber-1,H.modifiedEndLineNumber===0?Y=H.modifiedStartLineNumber:Y=H.modifiedStartLineNumber-1}let ne=ae+m-1,V=de+m-1;if(ne>K){const H=K-ne;ne=ne+H,V=V+H}if(V>Y){const H=Y-V;ne=ne+H,V=V+H}te[Z++]=new p(ae,ne,de,V)}W[j++]=new b(te)}let F=W[0].entries;const U=[];let Q=0;for(let se=1,he=W.length;se<he;se++){const ie=W[se].entries,ue=F[F.length-1],J=ie[0];if(ue.getType()===0&&J.getType()===0&&J.originalLineStart<=ue.originalLineEnd){F[F.length-1]=new p(ue.originalLineStart,J.originalLineEnd,ue.modifiedLineStart,J.modifiedLineEnd),F=F.concat(ie.slice(1));continue}U[Q++]=new b(F),F=ie}return U[Q++]=new b(F),U}D(T){const O=T.lineNumber;for(let B=0,W=this.k.length;B<W;B++){const j=this.k[B].entries,F=j[j.length-1].modifiedLineEnd;if(O<=F)return B}return 0}F(){const T=this.b.getOriginalEditor().getOptions(),O=this.b.getModifiedEditor().getOptions(),B=this.b.getOriginalEditor().getModel(),W=this.b.getModifiedEditor().getModel(),j=B.getOptions(),F=W.getOptions();if(!this.c||!B||!W){N.clearNode(this.h.domNode),this.l=null,this.j.scanDomNode();return}this.b.updateOptions({readOnly:!0});const U=this.D(this.b.getPosition());if(this.k[U]===this.l)return;this.l=this.k[U];const Q=this.k[U].entries,se=document.createElement("div");se.className="diff-review-table",se.setAttribute("role","list"),se.setAttribute("aria-label",'Difference review. Use "Stage | Unstage | Revert Selected Ranges" commands'),(0,f.applyFontInfo)(se,O.get(47));let he=0,ie=0,ue=0,J=0;for(let V=0,H=Q.length;V<H;V++){const $=Q[V],oe=$.originalLineStart,re=$.originalLineEnd,X=$.modifiedLineStart,le=$.modifiedLineEnd;oe!==0&&(he===0||oe<he)&&(he=oe),re!==0&&(ie===0||re>ie)&&(ie=re),X!==0&&(ue===0||X<ue)&&(ue=X),le!==0&&(J===0||le>J)&&(J=le)}const x=document.createElement("div");x.className="diff-review-row";const G=document.createElement("div");G.className="diff-review-cell diff-review-summary";const te=ie-he+1,Z=J-ue+1;G.appendChild(document.createTextNode(`${U+1}/${this.k.length}: @@ -${he},${te} +${ue},${Z} @@`)),x.setAttribute("data-line",String(ue));const ae=V=>V===0?C.localize(4,null):V===1?C.localize(5,null):C.localize(6,null,V),de=ae(te),K=ae(Z);x.setAttribute("aria-label",C.localize(7,null,U+1,this.k.length,he,de,ue,K)),x.appendChild(G),x.setAttribute("role","listitem"),se.appendChild(x);const Y=O.get(63);let ne=ue;for(let V=0,H=Q.length;V<H;V++){const $=Q[V];Tt.G(se,$,ne,Y,this.z,T,B,j,O,W,F,this.m.languageIdCodec),$.modifiedLineStart!==0&&(ne=$.modifiedLineEnd)}N.clearNode(this.h.domNode),this.h.domNode.appendChild(se),this.j.scanDomNode()}static G(T,O,B,W,j,F,U,Q,se,he,ie,ue){const J=O.getType();let x="diff-review-row",G="";const te="diff-review-spacer";let Z=null;switch(J){case 1:x="diff-review-row line-insert",G=" char-insert",Z=y;break;case 2:x="diff-review-row line-delete",G=" char-delete",Z=k;break}const ae=O.originalLineStart,de=O.originalLineEnd,K=O.modifiedLineStart,Y=O.modifiedLineEnd,ne=Math.max(Y-K,de-ae),V=F.get(138),H=V.glyphMarginWidth+V.lineNumbersWidth,$=se.get(138),oe=10+$.glyphMarginWidth+$.lineNumbersWidth;for(let re=0;re<=ne;re++){const X=ae===0?0:ae+re,le=K===0?0:K+re,me=document.createElement("div");me.style.minWidth=j+"px",me.className=x,me.setAttribute("role","listitem"),le!==0&&(B=le),me.setAttribute("data-line",String(B));const we=document.createElement("div");we.className="diff-review-cell",we.style.height=`${W}px`,me.appendChild(we);const Le=document.createElement("span");Le.style.width=H+"px",Le.style.minWidth=H+"px",Le.className="diff-review-line-number"+G,X!==0?Le.appendChild(document.createTextNode(String(X))):Le.innerText="\xA0",we.appendChild(Le);const Ee=document.createElement("span");Ee.style.width=oe+"px",Ee.style.minWidth=oe+"px",Ee.style.paddingRight="10px",Ee.className="diff-review-line-number"+G,le!==0?Ee.appendChild(document.createTextNode(String(le))):Ee.innerText="\xA0",we.appendChild(Ee);const Me=document.createElement("span");if(Me.className=te,Z){const fe=document.createElement("span");fe.className=s.ThemeIcon.asClassName(Z),fe.innerText="\xA0\xA0",Me.appendChild(fe)}else Me.innerText="\xA0\xA0";we.appendChild(Me);let Ae;if(le!==0){let fe=this.H(he,se,ie.tabSize,le,ue);Tt.a&&(fe=Tt.a.createHTML(fe)),we.insertAdjacentHTML("beforeend",fe),Ae=he.getLineContent(le)}else{let fe=this.H(U,F,Q.tabSize,X,ue);Tt.a&&(fe=Tt.a.createHTML(fe)),we.insertAdjacentHTML("beforeend",fe),Ae=U.getLineContent(X)}Ae.length===0&&(Ae=C.localize(8,null));let ke="";switch(J){case 0:X===le?ke=C.localize(9,null,Ae,X):ke=C.localize(10,null,Ae,X,le);break;case 1:ke=C.localize(11,null,Ae,le);break;case 2:ke=C.localize(12,null,Ae,X);break}me.setAttribute("aria-label",ke),T.appendChild(me)}}static H(T,O,B,W,j){const F=T.getLineContent(W),U=O.get(47),Q=n.LineTokens.createEmpty(F,j),se=c.ViewLineRenderingData.isBasicASCII(F,T.mightContainNonBasicASCII()),he=c.ViewLineRenderingData.containsRTL(F,se,T.mightContainRTL());return(0,r.renderViewLine2)(new r.RenderLineInput(U.isMonospace&&!O.get(30),U.canUseHalfwidthRightwardsArrow,F,!1,se,he,0,Q,[],B,0,U.spaceWidth,U.middotWidth,U.wsmiddotWidth,O.get(111),O.get(93),O.get(88),O.get(48)!==t.EditorFontLigatures.OFF,null)).html}};M.a=(w=window.trustedTypes)===null||w===void 0?void 0:w.createPolicy("diffReview",{createHTML:A=>A}),M=Ne([ge(1,u.ILanguageService),ge(2,h.IAudioCueService)],M),e.DiffReview=M;class z extends g.EditorAction{constructor(){super({id:"editor.action.diffReview.next",label:C.localize(13,null),alias:"Go to Next Difference",precondition:d.ContextKeyExpr.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})}run(T,O){const B=P(T);B?.diffReviewNext()}}class R extends g.EditorAction{constructor(){super({id:"editor.action.diffReview.prev",label:C.localize(14,null),alias:"Go to Previous Difference",precondition:d.ContextKeyExpr.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1089,weight:100}})}run(T,O){const B=P(T);B?.diffReviewPrev()}}function P(A){const T=A.get(i.ICodeEditorService),O=T.listDiffEditors(),B=T.getActiveCodeEditor();if(!B)return null;for(let W=0,j=O.length;W<j;W++){const F=O[W];if(F.getModifiedEditor().getId()===B.getId()||F.getOriginalEditor().getId()===B.getId())return F}return null}(0,g.registerEditorAction)(z),(0,g.registerEditorAction)(R)}),define(_[775],ee([1,0,7,52,76,29,6,2,9,18,37,121,222,630,15,50,31,81,32,412]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ParameterHintsWidget=void 0;const l=C.$,o=(0,d.registerIcon)("parameter-hints-next",I.Codicon.chevronDown,n.localize(0,null)),u=(0,d.registerIcon)("parameter-hints-previous",I.Codicon.chevronUp,n.localize(1,null));let h=class Ui extends S.Disposable{constructor(m,p,b,y,k){super(),this.l=m,this.m=p,this.c=this.q(new S.DisposableStore),this.j=!1,this.k=null,this.allowEditorOverflow=!0,this.b=this.q(new i.MarkdownRenderer({editor:m},k,y)),this.g=t.Context.Visible.bindTo(b),this.h=t.Context.MultipleSignatures.bindTo(b)}n(){const m=l(".editor-widget.parameter-hints-widget"),p=C.append(m,l(".phwrapper"));p.tabIndex=-1;const b=C.append(p,l(".controls")),y=C.append(b,l(".button"+s.ThemeIcon.asCSSSelector(u))),k=C.append(b,l(".overloads")),D=C.append(b,l(".button"+s.ThemeIcon.asCSSSelector(o)));this.q(C.addDisposableListener(y,"click",T=>{C.EventHelper.stop(T),this.previous()})),this.q(C.addDisposableListener(D,"click",T=>{C.EventHelper.stop(T),this.next()}));const M=l(".body"),z=new E.DomScrollableElement(M,{alwaysConsumeMouseWheel:!0});this.q(z),p.appendChild(z.getDomNode());const R=C.append(M,l(".signature")),P=C.append(M,l(".docs"));m.style.userSelect="text",this.i={element:m,signature:R,overloads:k,docs:P,scrollbar:z},this.l.addContentWidget(this),this.hide(),this.q(this.l.onDidChangeCursorSelection(T=>{this.j&&this.l.layoutContentWidget(this)}));const A=()=>{if(!this.i)return;const T=this.l.getOption(47);this.i.element.style.fontSize=`${T.fontSize}px`,this.i.element.style.lineHeight=`${T.lineHeight/T.fontSize}`};A(),this.q(L.Event.chain(this.l.onDidChangeConfiguration.bind(this.l)).filter(T=>T.hasChanged(47)).on(A,null)),this.q(this.l.onDidLayoutChange(T=>this.u())),this.u()}show(){this.j||(this.i||this.n(),this.g.set(!0),this.j=!0,setTimeout(()=>{var m;(m=this.i)===null||m===void 0||m.element.classList.add("visible")},100),this.l.layoutContentWidget(this))}hide(){var m;this.c.clear(),this.j&&(this.g.reset(),this.j=!1,this.k=null,(m=this.i)===null||m===void 0||m.element.classList.remove("visible"),this.l.layoutContentWidget(this))}getPosition(){return this.j?{position:this.l.getPosition(),preference:[1,2]}:null}render(m){var p;if(this.c.clear(),!this.i)return;const b=m.signatures.length>1;this.i.element.classList.toggle("multiple",b),this.h.set(b),this.i.signature.innerText="",this.i.docs.innerText="";const y=m.signatures[m.activeSignature];if(!y)return;const k=C.append(this.i.signature,l(".code")),D=this.l.getOption(47);k.style.fontSize=`${D.fontSize}px`,k.style.fontFamily=D.fontFamily;const M=y.parameters.length>0,z=(p=y.activeParameter)!==null&&p!==void 0?p:m.activeParameter;if(M)this.s(k,y,z);else{const A=C.append(k,l("span"));A.textContent=y.label}const R=y.parameters[z];if(R?.documentation){const A=l("span.documentation");if(typeof R.documentation=="string")A.textContent=R.documentation;else{const T=this.p(R.documentation);A.appendChild(T.element)}C.append(this.i.docs,l("p",{},A))}if(y.documentation!==void 0)if(typeof y.documentation=="string")C.append(this.i.docs,l("p",{},y.documentation));else{const A=this.p(y.documentation);C.append(this.i.docs,A.element)}const P=this.r(y,R);if(this.i.signature.classList.toggle("has-docs",P),this.i.docs.classList.toggle("empty",!P),this.i.overloads.textContent=String(m.activeSignature+1).padStart(m.signatures.length.toString().length,"0")+"/"+m.signatures.length,R){let A="";const T=y.parameters[z];Array.isArray(T.label)?A=y.label.substring(T.label[0],T.label[1]):A=T.label,T.documentation&&(A+=typeof T.documentation=="string"?`, ${T.documentation}`:`, ${T.documentation.value}`),y.documentation&&(A+=typeof y.documentation=="string"?`, ${y.documentation}`:`, ${y.documentation.value}`),this.k!==A&&(N.alert(n.localize(2,null,A)),this.k=A)}this.l.layoutContentWidget(this),this.i.scrollbar.scanDomNode()}p(m){const p=this.c.add(this.b.render(m,{asyncRenderCallback:()=>{var b;(b=this.i)===null||b===void 0||b.scrollbar.scanDomNode()}}));return p.element.classList.add("markdown-docs"),p}r(m,p){return!!(p&&typeof p.documentation=="string"&&(0,f.assertIsDefined)(p.documentation).length>0||p&&typeof p.documentation=="object"&&(0,f.assertIsDefined)(p.documentation).value.length>0||m.documentation&&typeof m.documentation=="string"&&(0,f.assertIsDefined)(m.documentation).length>0||m.documentation&&typeof m.documentation=="object"&&(0,f.assertIsDefined)(m.documentation.value).length>0)}s(m,p,b){const[y,k]=this.t(p,b),D=document.createElement("span");D.textContent=p.label.substring(0,y);const M=document.createElement("span");M.textContent=p.label.substring(y,k),M.className="parameter active";const z=document.createElement("span");z.textContent=p.label.substring(k),C.append(m,D,M,z)}t(m,p){const b=m.parameters[p];if(b){if(Array.isArray(b.label))return b.label;if(b.label.length){const y=new RegExp(`(\\W|^)${(0,v.escapeRegExpCharacters)(b.label)}(?=\\W|$)`,"g");y.test(m.label);const k=y.lastIndex-b.label.length;return k>=0?[k,y.lastIndex]:[0,0]}else return[0,0]}else return[0,0]}next(){this.l.focus(),this.m.next()}previous(){this.l.focus(),this.m.previous()}getDomNode(){return this.i||this.n(),this.i.element}getId(){return Ui.a}u(){if(!this.i)return;const p=`${Math.max(this.l.getLayoutInfo().height/4,250)}px`;this.i.element.style.maxHeight=p;const b=this.i.element.getElementsByClassName("phwrapper");b.length&&(b[0].style.maxHeight=p)}};h.a="editor.widget.parameterHintsWidget",h=Ne([ge(2,a.IContextKeyService),ge(3,r.IOpenerService),ge(4,g.ILanguageService)],h),e.ParameterHintsWidget=h,(0,c.registerColor)("editorHoverWidget.highlightForeground",{dark:c.listHighlightForeground,light:c.listHighlightForeground,hcDark:c.listHighlightForeground,hcLight:c.listHighlightForeground},n.localize(3,null))}),define(_[776],ee([1,0,100,2,14,24,26,19,689,222,629,15,8,775]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TriggerParameterHintsAction=void 0;let a=class Ki extends N.Disposable{static get(l){return l.getContribution(Ki.ID)}constructor(l,o,u){super(),this.a=l,this.b=this.q(new v.ParameterHintsModel(l,u.signatureHelpProvider)),this.q(this.b.onChangedHints(h=>{var w;h?(this.c.value.show(),this.c.value.render(h)):(w=this.c.rawValue)===null||w===void 0||w.hide()})),this.c=new C.Lazy(()=>this.q(o.createInstance(n.ParameterHintsWidget,this.a,this.b)))}cancel(){this.b.cancel()}previous(){var l;(l=this.c.rawValue)===null||l===void 0||l.previous()}next(){var l;(l=this.c.rawValue)===null||l===void 0||l.next()}trigger(l){this.b.trigger(l,0)}};a.ID="editor.controller.parameterHints",a=Ne([ge(1,t.IInstantiationService),ge(2,S.ILanguageFeaturesService)],a);class r extends E.EditorAction{constructor(){super({id:"editor.action.triggerParameterHints",label:g.localize(0,null),alias:"Trigger Parameter Hints",precondition:I.EditorContextKeys.hasSignatureHelpProvider,kbOpts:{kbExpr:I.EditorContextKeys.editorTextFocus,primary:3082,weight:100}})}run(l,o){const u=a.get(o);u?.trigger({triggerKind:L.SignatureHelpTriggerKind.Invoke})}}e.TriggerParameterHintsAction=r,(0,E.registerEditorContribution)(a.ID,a,2),(0,E.registerEditorAction)(r);const c=100+75,d=E.EditorCommand.bindToContribution(a.get);(0,E.registerEditorCommand)(new d({id:"closeParameterHints",precondition:f.Context.Visible,handler:s=>s.cancel(),kbOpts:{weight:c,kbExpr:I.EditorContextKeys.focus,primary:9,secondary:[1033]}})),(0,E.registerEditorCommand)(new d({id:"showPrevParameterHint",precondition:i.ContextKeyExpr.and(f.Context.Visible,f.Context.MultipleSignatures),handler:s=>s.previous(),kbOpts:{weight:c,kbExpr:I.EditorContextKeys.focus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}})),(0,E.registerEditorCommand)(new d({id:"showNextParameterHint",precondition:i.ContextKeyExpr.and(f.Context.Visible,f.Context.MultipleSignatures),handler:s=>s.next(),kbOpts:{weight:c,kbExpr:I.EditorContextKeys.focus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}))}),define(_[777],ee([1,0,7,68,41,2,121,8,708,81,32,419]),function(q,e,C,N,E,I,L,S,v,f,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BannerController=void 0;const i=26;let t=class extends I.Disposable{constructor(r,c){super(),this.b=r,this.c=c,this.a=this.q(this.c.createInstance(n))}hide(){this.b.setBanner(null,0),this.a.clear()}show(r){this.a.show(Object.assign(Object.assign({},r),{onClose:()=>{var c;this.hide(),(c=r.onClose)===null||c===void 0||c.call(r)}})),this.b.setBanner(this.a.element,i)}};t=Ne([ge(1,S.IInstantiationService)],t),e.BannerController=t;let n=class extends I.Disposable{constructor(r){super(),this.g=r,this.a=this.g.createInstance(L.MarkdownRenderer,{}),this.element=(0,C.$)("div.editor-banner"),this.element.tabIndex=0}h(r){if(r.ariaLabel)return r.ariaLabel;if(typeof r.message=="string")return r.message}i(r){if(typeof r=="string"){const c=(0,C.$)("span");return c.innerText=r,c}return this.a.render(r).element}clear(){(0,C.clearNode)(this.element)}show(r){(0,C.clearNode)(this.element);const c=this.h(r);c&&this.element.setAttribute("aria-label",c);const d=(0,C.append)(this.element,(0,C.$)("div.icon-container"));d.setAttribute("aria-hidden","true"),r.icon&&d.appendChild((0,C.$)(`div${g.ThemeIcon.asCSSSelector(r.icon)}`));const s=(0,C.append)(this.element,(0,C.$)("div.message-container"));if(s.setAttribute("aria-hidden","true"),s.appendChild(this.i(r.message)),this.b=(0,C.append)(this.element,(0,C.$)("div.message-actions-container")),r.actions)for(const o of r.actions)this.q(this.g.createInstance(v.Link,this.b,Object.assign(Object.assign({},o),{tabIndex:-1}),{}));const l=(0,C.append)(this.element,(0,C.$)("div.action-container"));this.c=this.q(new N.ActionBar(l)),this.c.push(this.q(new E.Action("banner.close","Close Banner",g.ThemeIcon.asClassName(f.widgetClose),!0,()=>{typeof r.onClose=="function"&&r.onClose()})),{icon:!0,label:!1}),this.c.setFocusable(!1)}};n=Ne([ge(0,S.IInstantiationService)],n)}),define(_[778],ee([1,0,7,6,32,81]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UnthemedProductIconTheme=e.getIconsStyleSheet=void 0;function L(v){const f=new N.Emitter,g=(0,I.getIconRegistry)();return g.onDidChange(()=>f.fire()),v?.onDidProductIconThemeChange(()=>f.fire()),{onDidChange:f.event,getCSS(){const i=v?v.getProductIconTheme():new S,t={},n=r=>{const c=i.getIcon(r);if(!c)return;const d=c.font;return d?(t[d.id]=d.definition,`.codicon-${r.id}:before { content: '${c.fontCharacter}'; font-family: ${(0,C.asCSSPropertyValue)(d.id)}; }`):`.codicon-${r.id}:before { content: '${c.fontCharacter}'; }`},a=[];for(const r of g.getIcons()){const c=n(r);c&&a.push(c)}for(const r in t){const c=t[r],d=c.weight?`font-weight: ${c.weight};`:"",s=c.style?`font-style: ${c.style};`:"",l=c.src.map(o=>`${(0,C.asCSSUrl)(o.location)} format('${o.format}')`).join(", ");a.push(`@font-face { src: ${l}; font-family: ${(0,C.asCSSPropertyValue)(r)};${d}${s} font-display: block; }`)}return a.join(`
|
||
`)}}}e.getIconsStyleSheet=L;class S{getIcon(f){const g=(0,I.getIconRegistry)();let i=f.defaults;for(;E.ThemeIcon.isThemeIcon(i);){const t=g.getIcon(i.id);if(!t)return;i=t.defaults}return i}}e.UnthemedProductIconTheme=S}),define(_[91],ee([1,0]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isDark=e.isHighContrast=e.ColorScheme=void 0;var C;(function(I){I.DARK="dark",I.LIGHT="light",I.HIGH_CONTRAST_DARK="hcDark",I.HIGH_CONTRAST_LIGHT="hcLight"})(C=e.ColorScheme||(e.ColorScheme={}));function N(I){return I===C.HIGH_CONTRAST_DARK||I===C.HIGH_CONTRAST_LIGHT}e.isHighContrast=N;function E(I){return I===C.DARK||I===C.HIGH_CONTRAST_DARK}e.isDark=E}),define(_[317],ee([1,0,45,35,16,434,130,135,107,91,40]),function(q,e,C,N,E,I,L,S,v,f,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewLine=e.ViewLineOptions=void 0;const i=function(){return E.isNative?!0:!(E.isLinux||C.isFirefox||C.isSafari)}();let t=!0;class n{constructor(h,w){this.themeType=w;const m=h.options,p=m.get(47);m.get(35)==="off"?this.renderWhitespace=m.get(93):this.renderWhitespace="none",this.renderControlCharacters=m.get(88),this.spaceWidth=p.spaceWidth,this.middotWidth=p.middotWidth,this.wsmiddotWidth=p.wsmiddotWidth,this.useMonospaceOptimizations=p.isMonospace&&!m.get(30),this.canUseHalfwidthRightwardsArrow=p.canUseHalfwidthRightwardsArrow,this.lineHeight=m.get(63),this.stopRenderingLineAfter=m.get(111),this.fontLigatures=m.get(48)}equals(h){return this.themeType===h.themeType&&this.renderWhitespace===h.renderWhitespace&&this.renderControlCharacters===h.renderControlCharacters&&this.spaceWidth===h.spaceWidth&&this.middotWidth===h.middotWidth&&this.wsmiddotWidth===h.wsmiddotWidth&&this.useMonospaceOptimizations===h.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===h.canUseHalfwidthRightwardsArrow&&this.lineHeight===h.lineHeight&&this.stopRenderingLineAfter===h.stopRenderingLineAfter&&this.fontLigatures===h.fontLigatures}}e.ViewLineOptions=n;class a{constructor(h){this.a=h,this.b=!0,this.c=null}getDomNode(){return this.c&&this.c.domNode?this.c.domNode.domNode:null}setDomNode(h){if(this.c)this.c.domNode=(0,N.createFastDomNode)(h);else throw new Error("I have no rendered view line to set the dom node to...")}onContentChanged(){this.b=!0}onTokensChanged(){this.b=!0}onDecorationsChanged(){this.b=!0}onOptionsChanged(h){this.b=!0,this.a=h}onSelectionChanged(){return(0,f.isHighContrast)(this.a.themeType)||this.a.renderWhitespace==="selection"?(this.b=!0,!0):!1}renderLine(h,w,m,p){if(this.b===!1)return!1;this.b=!1;const b=m.getViewLineRenderingData(h),y=this.a,k=S.LineDecoration.filter(b.inlineDecorations,h,b.minColumn,b.maxColumn);let D=null;if((0,f.isHighContrast)(y.themeType)||this.a.renderWhitespace==="selection"){const P=m.selections;for(const A of P){if(A.endLineNumber<h||A.startLineNumber>h)continue;const T=A.startLineNumber===h?A.startColumn:b.minColumn,O=A.endLineNumber===h?A.endColumn:b.maxColumn;T<O&&((0,f.isHighContrast)(y.themeType)&&k.push(new S.LineDecoration(T,O,"inline-selected-text",0)),this.a.renderWhitespace==="selection"&&(D||(D=[]),D.push(new v.LineRange(T-1,O-1))))}}const M=new v.RenderLineInput(y.useMonospaceOptimizations,y.canUseHalfwidthRightwardsArrow,b.content,b.continuesWithWrappedLine,b.isBasicASCII,b.containsRTL,b.minColumn-1,b.tokens,k,b.tabSize,b.startVisibleColumn,y.spaceWidth,y.middotWidth,y.wsmiddotWidth,y.stopRenderingLineAfter,y.renderWhitespace,y.renderControlCharacters,y.fontLigatures!==g.EditorFontLigatures.OFF,D);if(this.c&&this.c.input.equals(M))return!1;p.appendString('<div style="top:'),p.appendString(String(w)),p.appendString("px;height:"),p.appendString(String(this.a.lineHeight)),p.appendString('px;" class="'),p.appendString(a.CLASS_NAME),p.appendString('">');const z=(0,v.renderViewLine)(M,p);p.appendString("</div>");let R=null;return t&&i&&b.isBasicASCII&&y.useMonospaceOptimizations&&z.containsForeignElements===0&&(R=new r(this.c?this.c.domNode:null,M,z.characterMapping)),R||(R=s(this.c?this.c.domNode:null,M,z.characterMapping,z.containsRTL,z.containsForeignElements)),this.c=R,!0}layoutLine(h,w){this.c&&this.c.domNode&&(this.c.domNode.setTop(w),this.c.domNode.setHeight(this.a.lineHeight))}getWidth(h){return this.c?this.c.getWidth(h):0}getWidthIsFast(){return this.c?this.c.getWidthIsFast():!0}needsMonospaceFontCheck(){return this.c?this.c instanceof r:!1}monospaceAssumptionsAreValid(){return this.c&&this.c instanceof r?this.c.monospaceAssumptionsAreValid():t}onMonospaceAssumptionsInvalidated(){this.c&&this.c instanceof r&&(this.c=this.c.toSlowRenderedLine())}getVisibleRangesForRange(h,w,m,p){if(!this.c)return null;w=Math.min(this.c.input.lineContent.length+1,Math.max(1,w)),m=Math.min(this.c.input.lineContent.length+1,Math.max(1,m));const b=this.c.input.stopRenderingLineAfter;if(b!==-1&&w>b+1&&m>b+1)return new L.VisibleRanges(!0,[new L.FloatHorizontalRange(this.getWidth(p),0)]);b!==-1&&w>b+1&&(w=b+1),b!==-1&&m>b+1&&(m=b+1);const y=this.c.getVisibleRangesForRange(h,w,m,p);return y&&y.length>0?new L.VisibleRanges(!1,y):null}getColumnOfNodeOffset(h,w,m){return this.c?this.c.getColumnOfNodeOffset(h,w,m):1}}a.CLASS_NAME="view-line",e.ViewLine=a;class r{constructor(h,w,m){this.d=-1,this.domNode=h,this.input=w;const p=Math.floor(w.lineContent.length/300);if(p>0){this.c=new Float32Array(p);for(let b=0;b<p;b++)this.c[b]=-1}else this.c=null;this.a=m,this.b=w.spaceWidth}getWidth(h){if(!this.domNode||this.input.lineContent.length<300){const w=this.a.getHorizontalOffset(this.a.length);return Math.round(this.b*w)}return this.d===-1&&(this.d=this.f(this.domNode).offsetWidth,h?.markDidDomLayout()),this.d}getWidthIsFast(){return this.input.lineContent.length<300||this.d!==-1}monospaceAssumptionsAreValid(){if(!this.domNode)return t;if(this.input.lineContent.length<300){const h=this.getWidth(null),w=this.domNode.domNode.firstChild.offsetWidth;Math.abs(h-w)>=2&&(console.warn("monospace assumptions have been violated, therefore disabling monospace optimizations!"),t=!1)}return t}toSlowRenderedLine(){return s(this.domNode,this.input,this.a,!1,0)}getVisibleRangesForRange(h,w,m,p){const b=this.e(h,w,p),y=this.e(h,m,p);return[new L.FloatHorizontalRange(b,y-b)]}e(h,w,m){if(w<=300){const M=this.a.getHorizontalOffset(w);return this.b*M}const p=Math.floor((w-1)/300)-1,b=(p+1)*300+1;let y=-1;if(this.c&&(y=this.c[p],y===-1&&(y=this.g(h,b,m),this.c[p]=y)),y===-1){const M=this.a.getHorizontalOffset(w);return this.b*M}const k=this.a.getHorizontalOffset(b),D=this.a.getHorizontalOffset(w);return y+this.b*(D-k)}f(h){return h.domNode.firstChild}g(h,w,m){if(!this.domNode)return-1;const p=this.a.getDomPosition(w),b=I.RangeUtil.readHorizontalRanges(this.f(this.domNode),p.partIndex,p.charIndex,p.partIndex,p.charIndex,m);return!b||b.length===0?-1:b[0].left}getColumnOfNodeOffset(h,w,m){const p=w.textContent.length;let b=-1;for(;w;)w=w.previousSibling,b++;return this.a.getColumn(new v.DomPosition(b,m),p)}}class c{constructor(h,w,m,p,b){if(this.domNode=h,this.input=w,this.a=m,this.b=/^\s*$/.test(w.lineContent),this.c=b,this.d=-1,this.e=null,!p||this.a.length===0){this.e=new Float32Array(Math.max(2,this.a.length+1));for(let y=0,k=this.a.length;y<=k;y++)this.e[y]=-1}}f(h){return h.domNode.firstChild}getWidth(h){return this.domNode?(this.d===-1&&(this.d=this.f(this.domNode).offsetWidth,h?.markDidDomLayout()),this.d):0}getWidthIsFast(){return this.d!==-1}getVisibleRangesForRange(h,w,m,p){if(!this.domNode)return null;if(this.e!==null){const b=this.h(this.domNode,h,w,p);if(b===-1)return null;const y=this.h(this.domNode,h,m,p);return y===-1?null:[new L.FloatHorizontalRange(b,y-b)]}return this.g(this.domNode,h,w,m,p)}g(h,w,m,p,b){if(m===p){const y=this.h(h,w,m,b);return y===-1?null:[new L.FloatHorizontalRange(y,0)]}else return this.k(h,m,p,b)}h(h,w,m,p){if(this.a.length===0){if(this.c===0||this.c===2)return 0;if(this.c===1)return this.getWidth(p);const b=this.f(h);return b.firstChild?(p.markDidDomLayout(),b.firstChild.offsetWidth):0}if(this.e!==null){const b=this.e[m];if(b!==-1)return b;const y=this.j(h,w,m,p);return this.e[m]=y,y}return this.j(h,w,m,p)}j(h,w,m,p){if(this.a.length===0){const D=I.RangeUtil.readHorizontalRanges(this.f(h),0,0,0,0,p);return!D||D.length===0?-1:D[0].left}if(m===this.a.length&&this.b&&this.c===0)return this.getWidth(p);const b=this.a.getDomPosition(m),y=I.RangeUtil.readHorizontalRanges(this.f(h),b.partIndex,b.charIndex,b.partIndex,b.charIndex,p);if(!y||y.length===0)return-1;const k=y[0].left;if(this.input.isBasicASCII){const D=this.a.getHorizontalOffset(m),M=Math.round(this.input.spaceWidth*D);if(Math.abs(M-k)<=1)return M}return k}k(h,w,m,p){if(w===1&&m===this.a.length)return[new L.FloatHorizontalRange(0,this.getWidth(p))];const b=this.a.getDomPosition(w),y=this.a.getDomPosition(m);return I.RangeUtil.readHorizontalRanges(this.f(h),b.partIndex,b.charIndex,y.partIndex,y.charIndex,p)}getColumnOfNodeOffset(h,w,m){const p=w.textContent.length;let b=-1;for(;w;)w=w.previousSibling,b++;return this.a.getColumn(new v.DomPosition(b,m),p)}}class d extends c{g(h,w,m,p,b){const y=super.g(h,w,m,p,b);if(!y||y.length===0||m===p||m===1&&p===this.a.length)return y;if(!this.input.containsRTL){const k=this.h(h,w,p,b);if(k!==-1){const D=y[y.length-1];D.left<k&&(D.width=k-D.left)}}return y}}const s=function(){return C.isWebKit?l:o}();function l(u,h,w,m,p){return new d(u,h,w,m,p)}function o(u,h,w,m,p){return new c(u,h,w,m,p)}}),define(_[318],ee([1,0,147,51,317,12,4,74,7,250]),function(q,e,C,N,E,I,L,S,v,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MouseTargetFactory=e.HitTestContext=e.MouseTarget=e.PointerHandlerLastRenderData=void 0;class g{constructor(p=null){this.hitTarget=p,this.type=0}}class i{constructor(p,b,y){this.position=p,this.spanNode=b,this.injectedText=y,this.type=1}}var t;(function(m){function p(b,y,k){const D=b.getPositionFromDOMInfo(y,k);return D?new i(D,y,null):new g(y)}m.createFromDOMInfo=p})(t||(t={}));class n{constructor(p,b){this.lastViewCursorsRenderData=p,this.lastTextareaPosition=b}}e.PointerHandlerLastRenderData=n;class a{static c(p,b=null){return!b&&p?new L.Range(p.lineNumber,p.column,p.lineNumber,p.column):b??null}static createUnknown(p,b,y){return{type:0,element:p,mouseColumn:b,position:y,range:this.c(y)}}static createTextarea(p,b){return{type:1,element:p,mouseColumn:b,position:null,range:null}}static createMargin(p,b,y,k,D,M){return{type:p,element:b,mouseColumn:y,position:k,range:D,detail:M}}static createViewZone(p,b,y,k,D){return{type:p,element:b,mouseColumn:y,position:k,range:this.c(k),detail:D}}static createContentText(p,b,y,k,D){return{type:6,element:p,mouseColumn:b,position:y,range:this.c(y,k),detail:D}}static createContentEmpty(p,b,y,k){return{type:7,element:p,mouseColumn:b,position:y,range:this.c(y),detail:k}}static createContentWidget(p,b,y){return{type:9,element:p,mouseColumn:b,position:null,range:null,detail:y}}static createScrollbar(p,b,y){return{type:11,element:p,mouseColumn:b,position:y,range:this.c(y)}}static createOverlayWidget(p,b,y){return{type:12,element:p,mouseColumn:b,position:null,range:null,detail:y}}static createOutsideEditor(p,b,y,k){return{type:13,element:null,mouseColumn:p,position:b,range:this.c(b),outsidePosition:y,outsideDistance:k}}static f(p){return p===1?"TEXTAREA":p===2?"GUTTER_GLYPH_MARGIN":p===3?"GUTTER_LINE_NUMBERS":p===4?"GUTTER_LINE_DECORATIONS":p===5?"GUTTER_VIEW_ZONE":p===6?"CONTENT_TEXT":p===7?"CONTENT_EMPTY":p===8?"CONTENT_VIEW_ZONE":p===9?"CONTENT_WIDGET":p===10?"OVERVIEW_RULER":p===11?"SCROLLBAR":p===12?"OVERLAY_WIDGET":"UNKNOWN"}static toString(p){return this.f(p.type)+": "+p.position+" - "+p.range+" - "+JSON.stringify(p.detail)}}e.MouseTarget=a;class r{static isTextArea(p){return p.length===2&&p[0]===3&&p[1]===6}static isChildOfViewLines(p){return p.length>=4&&p[0]===3&&p[3]===7}static isStrictChildOfViewLines(p){return p.length>4&&p[0]===3&&p[3]===7}static isChildOfScrollableElement(p){return p.length>=2&&p[0]===3&&p[1]===5}static isChildOfMinimap(p){return p.length>=2&&p[0]===3&&p[1]===8}static isChildOfContentWidgets(p){return p.length>=4&&p[0]===3&&p[3]===1}static isChildOfOverflowingContentWidgets(p){return p.length>=1&&p[0]===2}static isChildOfOverlayWidgets(p){return p.length>=2&&p[0]===3&&p[1]===4}}class c{constructor(p,b,y){this.viewModel=p.viewModel;const k=p.configuration.options;this.layoutInfo=k.get(138),this.viewDomNode=b.viewDomNode,this.lineHeight=k.get(63),this.stickyTabStops=k.get(110),this.typicalHalfwidthCharacterWidth=k.get(47).typicalHalfwidthCharacterWidth,this.lastRenderData=y,this.c=p,this.f=b}getZoneAtCoord(p){return c.getZoneAtCoord(this.c,p)}static getZoneAtCoord(p,b){const y=p.viewLayout.getWhitespaceAtVerticalOffset(b);if(y){const k=y.verticalOffset+y.height/2,D=p.viewModel.getLineCount();let M=null,z,R=null;return y.afterLineNumber!==D&&(R=new I.Position(y.afterLineNumber+1,1)),y.afterLineNumber>0&&(M=new I.Position(y.afterLineNumber,p.viewModel.getLineMaxColumn(y.afterLineNumber))),R===null?z=M:M===null?z=R:b<k?z=M:z=R,{viewZoneId:y.id,afterLineNumber:y.afterLineNumber,positionBefore:M,positionAfter:R,position:z}}return null}getFullLineRangeAtCoord(p){if(this.c.viewLayout.isAfterLines(p)){const k=this.c.viewModel.getLineCount(),D=this.c.viewModel.getLineMaxColumn(k);return{range:new L.Range(k,D,k,D),isAfterLines:!0}}const b=this.c.viewLayout.getLineNumberAtVerticalOffset(p),y=this.c.viewModel.getLineMaxColumn(b);return{range:new L.Range(b,1,b,y),isAfterLines:!1}}getLineNumberAtVerticalOffset(p){return this.c.viewLayout.getLineNumberAtVerticalOffset(p)}isAfterLines(p){return this.c.viewLayout.isAfterLines(p)}isInTopPadding(p){return this.c.viewLayout.isInTopPadding(p)}isInBottomPadding(p){return this.c.viewLayout.isInBottomPadding(p)}getVerticalOffsetForLineNumber(p){return this.c.viewLayout.getVerticalOffsetForLineNumber(p)}findAttribute(p,b){return c.g(p,b,this.f.viewDomNode)}static g(p,b,y){for(;p&&p!==document.body;){if(p.hasAttribute&&p.hasAttribute(b))return p.getAttribute(b);if(p===y)return null;p=p.parentNode}return null}getLineWidth(p){return this.f.getLineWidth(p)}visibleRangeForPosition(p,b){return this.f.visibleRangeForPosition(p,b)}getPositionFromDOMInfo(p,b){return this.f.getPositionFromDOMInfo(p,b)}getCurrentScrollTop(){return this.c.viewLayout.getCurrentScrollTop()}getCurrentScrollLeft(){return this.c.viewLayout.getCurrentScrollLeft()}}e.HitTestContext=c;class d{constructor(p,b,y,k){this.editorPos=b,this.pos=y,this.relativePos=k,this.mouseVerticalOffset=Math.max(0,p.getCurrentScrollTop()+this.relativePos.y),this.mouseContentHorizontalOffset=p.getCurrentScrollLeft()+this.relativePos.x-p.layoutInfo.contentLeft,this.isInMarginArea=this.relativePos.x<p.layoutInfo.contentLeft&&this.relativePos.x>=p.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.c=Math.max(0,u._getMouseColumn(this.mouseContentHorizontalOffset,p.typicalHalfwidthCharacterWidth))}}class s extends d{constructor(p,b,y,k,D){super(p,b,y,k),this.f=p,D?(this.target=D,this.targetPath=N.PartFingerprints.collect(D,p.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}`}g(p=null){return p&&p.column<this.f.viewModel.getLineMaxColumn(p.lineNumber)?S.CursorColumns.visibleColumnFromColumn(this.f.viewModel.getLineContent(p.lineNumber),p.column,this.f.viewModel.model.getOptions().tabSize)+1:this.c}fulfillUnknown(p=null){return a.createUnknown(this.target,this.g(p),p)}fulfillTextarea(){return a.createTextarea(this.target,this.g())}fulfillMargin(p,b,y,k){return a.createMargin(p,this.target,this.g(b),b,y,k)}fulfillViewZone(p,b,y){return a.createViewZone(p,this.target,this.g(b),b,y)}fulfillContentText(p,b,y){return a.createContentText(this.target,this.g(p),p,b,y)}fulfillContentEmpty(p,b){return a.createContentEmpty(this.target,this.g(p),p,b)}fulfillContentWidget(p){return a.createContentWidget(this.target,this.g(),p)}fulfillScrollbar(p){return a.createScrollbar(this.target,this.g(p),p)}fulfillOverlayWidget(p){return a.createOverlayWidget(this.target,this.g(),p)}withTarget(p){return new s(this.f,this.editorPos,this.pos,this.relativePos,p)}}const l={isAfterLines:!0};function o(m){return{isAfterLines:!1,horizontalDistanceToText:m}}class u{constructor(p,b){this.c=p,this.f=b}mouseTargetIsWidget(p){const b=p.target,y=N.PartFingerprints.collect(b,this.f.viewDomNode);return!!(r.isChildOfContentWidgets(y)||r.isChildOfOverflowingContentWidgets(y)||r.isChildOfOverlayWidgets(y))}createMouseTarget(p,b,y,k,D){const M=new c(this.c,this.f,p),z=new s(M,b,y,k,D);try{const R=u.g(M,z,!1);if(R.type===6&&M.stickyTabStops&&R.position!==null){const P=u.A(R.position,M.viewModel),A=L.Range.fromPositions(P,P).plusRange(R.range);return z.fulfillContentText(P,A,R.detail)}return R}catch{return z.fulfillUnknown()}}static g(p,b,y){if(b.target===null){if(y)return b.fulfillUnknown();const M=u.B(p,b);return M.type===1?u.u(p,b,M.spanNode,M.position,M.injectedText):this.g(p,b.withTarget(M.hitTarget),!0)}const k=b;let D=null;return D=D||u.h(p,k),D=D||u.j(p,k),D=D||u.p(p,k),D=D||u.q(p,k),D=D||u.l(p,k),D=D||u.n(p,k),D=D||u.k(p,k),D=D||u.m(p,k),D=D||u.o(p,k,y),D=D||u.s(p,k),D||b.fulfillUnknown()}static h(p,b){if(r.isChildOfContentWidgets(b.targetPath)||r.isChildOfOverflowingContentWidgets(b.targetPath)){const y=p.findAttribute(b.target,"widgetId");return y?b.fulfillContentWidget(y):b.fulfillUnknown()}return null}static j(p,b){if(r.isChildOfOverlayWidgets(b.targetPath)){const y=p.findAttribute(b.target,"widgetId");return y?b.fulfillOverlayWidget(y):b.fulfillUnknown()}return null}static k(p,b){if(b.target){const y=p.lastRenderData.lastViewCursorsRenderData;for(const k of y)if(b.target===k.domNode)return b.fulfillContentText(k.position,null,{mightBeForeignElement:!1,injectedText:null})}if(b.isInContentArea){const y=p.lastRenderData.lastViewCursorsRenderData,k=b.mouseContentHorizontalOffset,D=b.mouseVerticalOffset;for(const M of y){if(k<M.contentLeft||k>M.contentLeft+M.width)continue;const z=p.getVerticalOffsetForLineNumber(M.position.lineNumber);if(z<=D&&D<=z+M.height)return b.fulfillContentText(M.position,null,{mightBeForeignElement:!1,injectedText:null})}}return null}static l(p,b){const y=p.getZoneAtCoord(b.mouseVerticalOffset);if(y){const k=b.isInContentArea?8:5;return b.fulfillViewZone(k,y.position,y)}return null}static m(p,b){return r.isTextArea(b.targetPath)?p.lastRenderData.lastTextareaPosition?b.fulfillContentText(p.lastRenderData.lastTextareaPosition,null,{mightBeForeignElement:!1,injectedText:null}):b.fulfillTextarea():null}static n(p,b){if(b.isInMarginArea){const y=p.getFullLineRangeAtCoord(b.mouseVerticalOffset),k=y.range.getStartPosition();let D=Math.abs(b.relativePos.x);const M={isAfterLines:y.isAfterLines,glyphMarginLeft:p.layoutInfo.glyphMarginLeft,glyphMarginWidth:p.layoutInfo.glyphMarginWidth,lineNumbersWidth:p.layoutInfo.lineNumbersWidth,offsetX:D};return D-=p.layoutInfo.glyphMarginLeft,D<=p.layoutInfo.glyphMarginWidth?b.fulfillMargin(2,k,y.range,M):(D-=p.layoutInfo.glyphMarginWidth,D<=p.layoutInfo.lineNumbersWidth?b.fulfillMargin(3,k,y.range,M):(D-=p.layoutInfo.lineNumbersWidth,b.fulfillMargin(4,k,y.range,M)))}return null}static o(p,b,y){if(!r.isChildOfViewLines(b.targetPath))return null;if(p.isInTopPadding(b.mouseVerticalOffset))return b.fulfillContentEmpty(new I.Position(1,1),l);if(p.isAfterLines(b.mouseVerticalOffset)||p.isInBottomPadding(b.mouseVerticalOffset)){const D=p.viewModel.getLineCount(),M=p.viewModel.getLineMaxColumn(D);return b.fulfillContentEmpty(new I.Position(D,M),l)}if(y){if(r.isStrictChildOfViewLines(b.targetPath)){const D=p.getLineNumberAtVerticalOffset(b.mouseVerticalOffset);if(p.viewModel.getLineLength(D)===0){const z=p.getLineWidth(D),R=o(b.mouseContentHorizontalOffset-z);return b.fulfillContentEmpty(new I.Position(D,1),R)}const M=p.getLineWidth(D);if(b.mouseContentHorizontalOffset>=M){const z=o(b.mouseContentHorizontalOffset-M),R=new I.Position(D,p.viewModel.getLineMaxColumn(D));return b.fulfillContentEmpty(R,z)}}return b.fulfillUnknown()}const k=u.B(p,b);return k.type===1?u.u(p,b,k.spanNode,k.position,k.injectedText):this.g(p,b.withTarget(k.hitTarget),!0)}static p(p,b){if(r.isChildOfMinimap(b.targetPath)){const y=p.getLineNumberAtVerticalOffset(b.mouseVerticalOffset),k=p.viewModel.getLineMaxColumn(y);return b.fulfillScrollbar(new I.Position(y,k))}return null}static q(p,b){if(r.isChildOfScrollableElement(b.targetPath)&&b.target&&b.target.nodeType===1){const y=b.target.className;if(y&&/\b(slider|scrollbar)\b/.test(y)){const k=p.getLineNumberAtVerticalOffset(b.mouseVerticalOffset),D=p.viewModel.getLineMaxColumn(k);return b.fulfillScrollbar(new I.Position(k,D))}}return null}static s(p,b){if(r.isChildOfScrollableElement(b.targetPath)){const y=p.getLineNumberAtVerticalOffset(b.mouseVerticalOffset),k=p.viewModel.getLineMaxColumn(y);return b.fulfillScrollbar(new I.Position(y,k))}return null}getMouseColumn(p){const b=this.c.configuration.options,y=b.get(138),k=this.c.viewLayout.getCurrentScrollLeft()+p.x-y.contentLeft;return u._getMouseColumn(k,b.get(47).typicalHalfwidthCharacterWidth)}static _getMouseColumn(p,b){return p<0?1:Math.round(p/b)+1}static u(p,b,y,k,D){const M=k.lineNumber,z=k.column,R=p.getLineWidth(M);if(b.mouseContentHorizontalOffset>R){const U=o(b.mouseContentHorizontalOffset-R);return b.fulfillContentEmpty(k,U)}const P=p.visibleRangeForPosition(M,z);if(!P)return b.fulfillUnknown(k);const A=P.left;if(Math.abs(b.mouseContentHorizontalOffset-A)<1)return b.fulfillContentText(k,null,{mightBeForeignElement:!!D,injectedText:D});const T=[];if(T.push({offset:P.left,column:z}),z>1){const U=p.visibleRangeForPosition(M,z-1);U&&T.push({offset:U.left,column:z-1})}const O=p.viewModel.getLineMaxColumn(M);if(z<O){const U=p.visibleRangeForPosition(M,z+1);U&&T.push({offset:U.left,column:z+1})}T.sort((U,Q)=>U.offset-Q.offset);const B=b.pos.toClientCoordinates(),W=y.getBoundingClientRect(),j=W.left<=B.clientX&&B.clientX<=W.right;let F=null;for(let U=1;U<T.length;U++){const Q=T[U-1],se=T[U];if(Q.offset<=b.mouseContentHorizontalOffset&&b.mouseContentHorizontalOffset<=se.offset){F=new L.Range(M,Q.column,M,se.column);const he=Math.abs(Q.offset-b.mouseContentHorizontalOffset),ie=Math.abs(se.offset-b.mouseContentHorizontalOffset);k=he<ie?new I.Position(M,Q.column):new I.Position(M,se.column);break}}return b.fulfillContentText(k,F,{mightBeForeignElement:!j||!!D,injectedText:D})}static v(p,b){const y=p.getLineNumberAtVerticalOffset(b.mouseVerticalOffset),k=p.getVerticalOffsetForLineNumber(y),D=k+p.lineHeight;if(!(y===p.viewModel.getLineCount()&&b.mouseVerticalOffset>D)){const z=Math.floor((k+D)/2);let R=b.pos.y+(z-b.mouseVerticalOffset);R<=b.editorPos.y&&(R=b.editorPos.y+1),R>=b.editorPos.y+b.editorPos.height&&(R=b.editorPos.y+b.editorPos.height-1);const P=new C.PageCoordinates(b.pos.x,R),A=this.w(p,P.toClientCoordinates());if(A.type===1)return A}return this.w(p,b.pos.toClientCoordinates())}static w(p,b){const y=v.getShadowRoot(p.viewDomNode);let k;if(y?typeof y.caretRangeFromPoint>"u"?k=h(y,b.clientX,b.clientY):k=y.caretRangeFromPoint(b.clientX,b.clientY):k=document.caretRangeFromPoint(b.clientX,b.clientY),!k||!k.startContainer)return new g;const D=k.startContainer;if(D.nodeType===D.TEXT_NODE){const M=D.parentNode,z=M?M.parentNode:null,R=z?z.parentNode:null;return(R&&R.nodeType===R.ELEMENT_NODE?R.className:null)===E.ViewLine.CLASS_NAME?t.createFromDOMInfo(p,M,k.startOffset):new g(D.parentNode)}else if(D.nodeType===D.ELEMENT_NODE){const M=D.parentNode,z=M?M.parentNode:null;return(z&&z.nodeType===z.ELEMENT_NODE?z.className:null)===E.ViewLine.CLASS_NAME?t.createFromDOMInfo(p,D,D.textContent.length):new g(D)}return new g}static z(p,b){const y=document.caretPositionFromPoint(b.clientX,b.clientY);if(y.offsetNode.nodeType===y.offsetNode.TEXT_NODE){const k=y.offsetNode.parentNode,D=k?k.parentNode:null,M=D?D.parentNode:null;return(M&&M.nodeType===M.ELEMENT_NODE?M.className:null)===E.ViewLine.CLASS_NAME?t.createFromDOMInfo(p,y.offsetNode.parentNode,y.offset):new g(y.offsetNode.parentNode)}if(y.offsetNode.nodeType===y.offsetNode.ELEMENT_NODE){const k=y.offsetNode.parentNode,D=k&&k.nodeType===k.ELEMENT_NODE?k.className:null,M=k?k.parentNode:null,z=M&&M.nodeType===M.ELEMENT_NODE?M.className:null;if(D===E.ViewLine.CLASS_NAME){const R=y.offsetNode.childNodes[Math.min(y.offset,y.offsetNode.childNodes.length-1)];if(R)return t.createFromDOMInfo(p,R,0)}else if(z===E.ViewLine.CLASS_NAME)return t.createFromDOMInfo(p,y.offsetNode,0)}return new g(y.offsetNode)}static A(p,b){const y=b.getLineContent(p.lineNumber),{tabSize:k}=b.model.getOptions(),D=f.AtomicTabMoveOperations.atomicPosition(y,p.column-1,k,2);return D!==-1?new I.Position(p.lineNumber,D+1):p}static B(p,b){let y=new g;if(typeof document.caretRangeFromPoint=="function"?y=this.v(p,b):document.caretPositionFromPoint&&(y=this.z(p,b.pos.toClientCoordinates())),y.type===1){const k=p.viewModel.getInjectedTextAt(y.position),D=p.viewModel.normalizePosition(y.position,2);(k||!D.equals(y.position))&&(y=new i(D,y.spanNode,k))}return y}}e.MouseTargetFactory=u;function h(m,p,b){const y=document.createRange();let k=m.elementFromPoint(p,b);if(k!==null){for(;k&&k.firstChild&&k.firstChild.nodeType!==k.firstChild.TEXT_NODE&&k.lastChild&&k.lastChild.firstChild;)k=k.lastChild;const D=k.getBoundingClientRect(),M=window.getComputedStyle(k,null).getPropertyValue("font"),z=k.innerText;let R=D.left,P=0,A;if(p>D.left+D.width)P=z.length;else{const T=w.getInstance();for(let O=0;O<z.length+1;O++){if(A=T.getCharWidth(z.charAt(O),M)/2,R+=A,p<R){P=O;break}R+=A}}y.setStart(k.firstChild,P),y.setEnd(k.firstChild,P)}return y}class w{static getInstance(){return w.c||(w.c=new w),w.c}constructor(){this.f={},this.g=document.createElement("canvas")}getCharWidth(p,b){const y=p+b;if(this.f[y])return this.f[y];const k=this.g.getContext("2d");k.font=b;const M=k.measureText(p).width;return this.f[y]=M,M}}w.c=null}),define(_[779],ee([1,0,7,66,2,16,318,147,169,12,22,134,76]),function(q,e,C,N,E,I,L,S,v,f,g,i,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MouseHandler=void 0;class n extends i.ViewEventHandler{constructor(l,o,u){super(),this.n=null,this.a=l,this.b=o,this.c=u,this.g=new L.MouseTargetFactory(this.a,u),this.j=this.q(new a(this.a,this.b,this.c,this.g,(m,p)=>this.r(m,p),m=>this.s(m))),this.k=-1,this.m=this.a.configuration.options.get(138).height;const h=new S.EditorMouseEventFactory(this.c.viewDomNode);this.q(h.onContextMenu(this.c.viewDomNode,m=>this.u(m,!0))),this.q(h.onMouseMove(this.c.viewDomNode,m=>{this.v(m),this.n||(this.n=C.addDisposableListener(document,"mousemove",p=>{this.c.viewDomNode.contains(p.target)||this.w(new S.EditorMouseEvent(p,!1,this.c.viewDomNode))}))})),this.q(h.onMouseUp(this.c.viewDomNode,m=>this.z(m))),this.q(h.onMouseLeave(this.c.viewDomNode,m=>this.w(m)));let w=0;this.q(h.onPointerDown(this.c.viewDomNode,(m,p)=>{w=p})),this.q(C.addDisposableListener(this.c.viewDomNode,C.EventType.POINTER_UP,m=>{this.j.onPointerUp()})),this.q(h.onMouseDown(this.c.viewDomNode,m=>this.B(m,w))),this.p(),this.a.addEventHandler(this)}p(){const l=t.MouseWheelClassifier.INSTANCE;let o=0,u=v.EditorZoom.getZoomLevel(),h=!1,w=0;const m=b=>{if(this.b.emitMouseWheel(b),!this.a.configuration.options.get(72))return;const y=new N.StandardWheelEvent(b);if(l.acceptStandardWheelEvent(y),l.isPhysicalMouseWheel()){if(p(b)){const k=v.EditorZoom.getZoomLevel(),D=y.deltaY>0?1:-1;v.EditorZoom.setZoomLevel(k+D),y.preventDefault(),y.stopPropagation()}}else Date.now()-o>50&&(u=v.EditorZoom.getZoomLevel(),h=p(b),w=0),o=Date.now(),w+=y.deltaY,h&&(v.EditorZoom.setZoomLevel(u+w/5),y.preventDefault(),y.stopPropagation())};this.q(C.addDisposableListener(this.c.viewDomNode,C.EventType.MOUSE_WHEEL,m,{capture:!0,passive:!1}));function p(b){return I.isMacintosh?(b.metaKey||b.ctrlKey)&&!b.shiftKey&&!b.altKey:b.ctrlKey&&!b.metaKey&&!b.shiftKey&&!b.altKey}}dispose(){this.a.removeEventHandler(this),this.n&&(this.n.dispose(),this.n=null),super.dispose()}onConfigurationChanged(l){if(l.hasChanged(138)){const o=this.a.configuration.options.get(138).height;this.m!==o&&(this.m=o,this.j.onHeightChanged())}return!1}onCursorStateChanged(l){return this.j.onCursorStateChanged(l),!1}onFocusChanged(l){return!1}getTargetAtClientPoint(l,o){const h=new S.ClientCoordinates(l,o).toPageCoordinates(),w=(0,S.createEditorPagePosition)(this.c.viewDomNode);if(h.y<w.y||h.y>w.y+w.height||h.x<w.x||h.x>w.x+w.width)return null;const m=(0,S.createCoordinatesRelativeToEditor)(this.c.viewDomNode,w,h);return this.g.createMouseTarget(this.c.getLastRenderData(),w,h,m,null)}r(l,o){let u=l.target;if(!this.c.viewDomNode.contains(u)){const h=C.getShadowRoot(this.c.viewDomNode);h&&(u=h.elementsFromPoint(l.posx,l.posy).find(w=>this.c.viewDomNode.contains(w)))}return this.g.createMouseTarget(this.c.getLastRenderData(),l.editorPos,l.pos,l.relativePos,o?u:null)}s(l){return this.g.getMouseColumn(l.relativePos)}u(l,o){this.b.emitContextMenu({event:l,target:this.r(l,o)})}v(l){this.g.mouseTargetIsWidget(l)||l.preventDefault(),!(this.j.isActive()||l.timestamp<this.k)&&this.b.emitMouseMove({event:l,target:this.r(l,!0)})}w(l){this.n&&(this.n.dispose(),this.n=null),this.k=new Date().getTime(),this.b.emitMouseLeave({event:l,target:null})}z(l){this.b.emitMouseUp({event:l,target:this.r(l,!0)})}B(l,o){const u=this.r(l,!0),h=u.type===6||u.type===7,w=u.type===2||u.type===3||u.type===4,m=u.type===3,p=this.a.configuration.options.get(103),b=u.type===8||u.type===5,y=u.type===9;let k=l.leftButton||l.middleButton;I.isMacintosh&&l.leftButton&&l.ctrlKey&&(k=!1);const D=()=>{l.preventDefault(),this.c.focusTextArea()};if(k&&(h||m&&p))D(),this.j.start(u.type,l,o);else if(w)l.preventDefault();else if(b){const M=u.detail;k&&this.c.shouldSuppressMouseDownOnViewZone(M.viewZoneId)&&(D(),this.j.start(u.type,l,o),l.preventDefault())}else y&&this.c.shouldSuppressMouseDownOnWidget(u.detail)&&(D(),l.preventDefault());this.b.emitMouseDown({event:l,target:u})}}e.MouseHandler=n;class a extends E.Disposable{constructor(l,o,u,h,w,m){super(),this.l=l,this.m=o,this.n=u,this.p=h,this.a=w,this.b=m,this.c=this.q(new S.GlobalEditorPointerMoveMonitor(this.n.viewDomNode)),this.g=this.q(new r(this.l,this.n,this.p,(p,b,y)=>this.z(p,b,y))),this.h=new d,this.i=new g.Selection(1,1,1,1),this.j=!1,this.k=null}dispose(){super.dispose()}isActive(){return this.j}r(l){this.k=l,this.h.setModifiers(l);const o=this.v(l,!1);!o||(this.h.isDragAndDrop?this.m.emitMouseDrag({event:l,target:o}):o.type===13&&(o.outsidePosition==="above"||o.outsidePosition==="below")?this.g.start(o,l):(this.g.stop(),this.z(o,!0,1)))}start(l,o,u){this.k=o,this.h.setStartedOnLineNumbers(l===3),this.h.setStartButtons(o),this.h.setModifiers(o);const h=this.v(o,!0);if(!h||!h.position)return;this.h.trySetCount(o.detail,h.position),o.detail=this.h.count;const w=this.l.configuration.options;if(!w.get(86)&&w.get(32)&&!w.get(19)&&!this.h.altKey&&o.detail<2&&!this.j&&!this.i.isEmpty()&&h.type===6&&h.position&&this.i.containsPosition(h.position)){this.h.isDragAndDrop=!0,this.j=!0,this.c.startMonitoring(this.n.viewLinesDomNode,u,o.buttons,m=>this.r(m),m=>{const p=this.v(this.k,!1);m&&m instanceof KeyboardEvent?this.m.emitMouseDropCanceled():this.m.emitMouseDrop({event:this.k,target:p?this.a(this.k,!0):null}),this.s()});return}this.h.isDragAndDrop=!1,this.z(h,o.shiftKey,1),this.j||(this.j=!0,this.c.startMonitoring(this.n.viewLinesDomNode,u,o.buttons,m=>this.r(m),()=>this.s()))}s(){this.j=!1,this.g.stop()}onHeightChanged(){this.c.stopMonitoring()}onPointerUp(){this.c.stopMonitoring()}onCursorStateChanged(l){this.i=l.selections[0]}u(l){const o=l.editorPos,u=this.l.viewModel,h=this.l.viewLayout,w=this.b(l);if(l.posy<o.y){const p=o.y-l.posy,b=Math.max(h.getCurrentScrollTop()-p,0),y=L.HitTestContext.getZoneAtCoord(this.l,b);if(y){const D=this.w(y);if(D)return L.MouseTarget.createOutsideEditor(w,D,"above",p)}const k=h.getLineNumberAtVerticalOffset(b);return L.MouseTarget.createOutsideEditor(w,new f.Position(k,1),"above",p)}if(l.posy>o.y+o.height){const p=l.posy-o.y-o.height,b=h.getCurrentScrollTop()+l.relativePos.y,y=L.HitTestContext.getZoneAtCoord(this.l,b);if(y){const D=this.w(y);if(D)return L.MouseTarget.createOutsideEditor(w,D,"below",p)}const k=h.getLineNumberAtVerticalOffset(b);return L.MouseTarget.createOutsideEditor(w,new f.Position(k,u.getLineMaxColumn(k)),"below",p)}const m=h.getLineNumberAtVerticalOffset(h.getCurrentScrollTop()+l.relativePos.y);if(l.posx<o.x){const p=o.x-l.posx;return L.MouseTarget.createOutsideEditor(w,new f.Position(m,1),"left",p)}if(l.posx>o.x+o.width){const p=l.posx-o.x-o.width;return L.MouseTarget.createOutsideEditor(w,new f.Position(m,u.getLineMaxColumn(m)),"right",p)}return null}v(l,o){const u=this.u(l);if(u)return u;const h=this.a(l,o);if(!h.position)return null;if(h.type===8||h.type===5){const m=this.w(h.detail);if(m)return L.MouseTarget.createViewZone(h.type,h.element,h.mouseColumn,m,h.detail)}return h}w(l){const o=new f.Position(this.i.selectionStartLineNumber,this.i.selectionStartColumn),u=l.positionBefore,h=l.positionAfter;return u&&h?u.isBefore(o)?u:h:null}z(l,o,u){!l.position||this.m.dispatchMouse({position:l.position,mouseColumn:l.mouseColumn,startedOnLineNumbers:this.h.startedOnLineNumbers,revealType:u,inSelectionMode:o,mouseDownCount:this.h.count,altKey:this.h.altKey,ctrlKey:this.h.ctrlKey,metaKey:this.h.metaKey,shiftKey:this.h.shiftKey,leftButton:this.h.leftButton,middleButton:this.h.middleButton,onInjectedText:l.type===6&&l.detail.injectedText!==null})}}class r extends E.Disposable{constructor(l,o,u,h){super(),this.b=l,this.c=o,this.g=u,this.h=h,this.a=null}dispose(){super.dispose(),this.stop()}start(l,o){this.a?this.a.setPosition(l,o):this.a=new c(this.b,this.c,this.g,this.h,l,o)}stop(){this.a&&(this.a.dispose(),this.a=null)}}class c extends E.Disposable{constructor(l,o,u,h,w,m){super(),this.h=l,this.i=o,this.j=u,this.k=h,this.a=w,this.b=m,this.c=Date.now(),this.g=C.scheduleAtNextAnimationFrame(()=>this.n())}dispose(){this.g.dispose()}setPosition(l,o){this.a=l,this.b=o}l(){const l=Date.now(),o=l-this.c;return this.c=l,o}m(){const l=this.h.configuration.options.get(63),o=this.h.configuration.options.get(138).height/l,u=this.a.outsideDistance/l;return u<=1.5?Math.max(30,o*(1+u)):u<=3?Math.max(60,o*(2+u)):Math.max(200,o*(7+u))}n(){const l=this.h.configuration.options.get(63),o=this.m(),u=this.l(),h=o*(u/1e3)*l,w=this.a.outsidePosition==="above"?-h:h;this.h.viewModel.viewLayout.deltaScrollNow(0,w),this.i.renderNow();const m=this.h.viewLayout.getLinesViewportData(),p=this.a.outsidePosition==="above"?m.startLineNumber:m.endLineNumber;let b;{const y=(0,S.createEditorPagePosition)(this.i.viewDomNode),k=this.h.configuration.options.get(138).horizontalScrollbarHeight,D=new S.PageCoordinates(this.b.pos.x,y.y+y.height-k-.1),M=(0,S.createCoordinatesRelativeToEditor)(this.i.viewDomNode,y,D);b=this.j.createMouseTarget(this.i.getLastRenderData(),y,D,M,null)}(!b.position||b.position.lineNumber!==p)&&(this.a.outsidePosition==="above"?b=L.MouseTarget.createOutsideEditor(this.a.mouseColumn,new f.Position(p,1),"above",this.a.outsideDistance):b=L.MouseTarget.createOutsideEditor(this.a.mouseColumn,new f.Position(p,this.h.viewModel.getLineMaxColumn(p)),"below",this.a.outsideDistance)),this.k(b,!0,2),this.g=C.scheduleAtNextAnimationFrame(()=>this.n())}}class d{get altKey(){return this.b}get ctrlKey(){return this.c}get metaKey(){return this.d}get shiftKey(){return this.f}get leftButton(){return this.g}get middleButton(){return this.h}get startedOnLineNumbers(){return this.i}constructor(){this.b=!1,this.c=!1,this.d=!1,this.f=!1,this.g=!1,this.h=!1,this.i=!1,this.j=null,this.k=0,this.l=0,this.m=0,this.isDragAndDrop=!1}get count(){return this.l}setModifiers(l){this.b=l.altKey,this.c=l.ctrlKey,this.d=l.metaKey,this.f=l.shiftKey}setStartButtons(l){this.g=l.leftButton,this.h=l.middleButton}setStartedOnLineNumbers(l){this.i=l}trySetCount(l,o){const u=new Date().getTime();u-this.m>d.a&&(l=1),this.m=u,l>this.l+1&&(l=this.l+1),this.j&&this.j.equals(o)?this.k++:this.k=1,this.j=o,this.l=Math.min(l,this.k)}}d.a=400}),define(_[780],ee([1,0,7,16,56,2,779,147,199,212]),function(q,e,C,N,E,I,L,S,v,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PointerHandler=e.PointerEventHandler=void 0;class g extends L.MouseHandler{constructor(a,r,c){super(a,r,c),this.q(E.Gesture.addTarget(this.c.linesContentDomNode)),this.q(C.addDisposableListener(this.c.linesContentDomNode,E.EventType.Tap,s=>this.D(s))),this.q(C.addDisposableListener(this.c.linesContentDomNode,E.EventType.Change,s=>this.F(s))),this.q(C.addDisposableListener(this.c.linesContentDomNode,E.EventType.Contextmenu,s=>this.u(new S.EditorMouseEvent(s,!1,this.c.viewDomNode),!1))),this.C="mouse",this.q(C.addDisposableListener(this.c.linesContentDomNode,"pointerdown",s=>{const l=s.pointerType;if(l==="mouse"){this.C="mouse";return}else l==="touch"?this.C="touch":this.C="pen"}));const d=new S.EditorPointerEventFactory(this.c.viewDomNode);this.q(d.onPointerMove(this.c.viewDomNode,s=>this.v(s))),this.q(d.onPointerUp(this.c.viewDomNode,s=>this.z(s))),this.q(d.onPointerLeave(this.c.viewDomNode,s=>this.w(s))),this.q(d.onPointerDown(this.c.viewDomNode,(s,l)=>this.B(s,l)))}D(a){if(!a.initialTarget||!this.c.linesContentDomNode.contains(a.initialTarget))return;a.preventDefault(),this.c.focusTextArea();const r=this.r(new S.EditorMouseEvent(a,!1,this.c.viewDomNode),!1);r.position&&this.b.dispatchMouse({position:r.position,mouseColumn:r.position.column,startedOnLineNumbers:!1,revealType:1,mouseDownCount:a.tapCount,inSelectionMode:!1,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1,onInjectedText:r.type===6&&r.detail.injectedText!==null})}F(a){this.C==="touch"&&this.a.viewModel.viewLayout.deltaScrollNow(-a.translationX,-a.translationY)}B(a,r){a.browserEvent.pointerType!=="touch"&&super.B(a,r)}}e.PointerEventHandler=g;class i extends L.MouseHandler{constructor(a,r,c){super(a,r,c),this.q(E.Gesture.addTarget(this.c.linesContentDomNode)),this.q(C.addDisposableListener(this.c.linesContentDomNode,E.EventType.Tap,d=>this.C(d))),this.q(C.addDisposableListener(this.c.linesContentDomNode,E.EventType.Change,d=>this.D(d))),this.q(C.addDisposableListener(this.c.linesContentDomNode,E.EventType.Contextmenu,d=>this.u(new S.EditorMouseEvent(d,!1,this.c.viewDomNode),!1)))}C(a){a.preventDefault(),this.c.focusTextArea();const r=this.r(new S.EditorMouseEvent(a,!1,this.c.viewDomNode),!1);if(r.position){const c=document.createEvent("CustomEvent");c.initEvent(f.TextAreaSyntethicEvents.Tap,!1,!0),this.c.dispatchTextAreaEvent(c),this.b.moveTo(r.position,1)}}D(a){this.a.viewModel.viewLayout.deltaScrollNow(-a.translationX,-a.translationY)}}class t extends I.Disposable{constructor(a,r,c){super(),N.isIOS&&v.BrowserFeatures.pointerEvents?this.a=this.q(new g(a,r,c)):window.TouchEvent?this.a=this.q(new i(a,r,c)):this.a=this.q(new L.MouseHandler(a,r,c))}getTargetAtClientPoint(a,r){return this.a.getTargetAtClientPoint(a,r)}}e.PointerHandler=t}),define(_[781],ee([1,0,16,11,73,213,51,317,12,4,130,155,433,379]),function(q,e,C,N,E,I,L,S,v,f,g,i,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewLines=void 0;class n{constructor(){this.a=new f.Range(1,1,1,1)}getCurrentVisibleRange(){return this.a}setCurrentVisibleRange(s){this.a=s}}class a{constructor(s,l,o,u,h,w,m){this.minimalReveal=s,this.lineNumber=l,this.startColumn=o,this.endColumn=u,this.startScrollTop=h,this.stopScrollTop=w,this.scrollType=m,this.type="range",this.minLineNumber=l,this.maxLineNumber=l}}class r{constructor(s,l,o,u,h){this.minimalReveal=s,this.selections=l,this.startScrollTop=o,this.stopScrollTop=u,this.scrollType=h,this.type="selections";let w=l[0].startLineNumber,m=l[0].endLineNumber;for(let p=1,b=l.length;p<b;p++){const y=l[p];w=Math.min(w,y.startLineNumber),m=Math.max(m,y.endLineNumber)}this.minLineNumber=w,this.maxLineNumber=m}}class c extends L.ViewPart{constructor(s,l){super(s),this.b=l,this.c=document.createElement("div"),this.g=new I.VisibleLinesCollection(this),this.j=this.g.domNode;const o=this._context.configuration,u=this._context.configuration.options,h=u.get(47),w=u.get(139);this.k=u.get(63),this.m=h.typicalHalfwidthCharacterWidth,this.n=w.isViewportWrapping,this.p=u.get(94),this.s=u.get(26),this.t=u.get(27),this.u=!u.get(29),this.v=new S.ViewLineOptions(o,this._context.theme.type),L.PartFingerprints.write(this.j,7),this.j.setClassName(`view-lines ${i.MOUSE_CURSOR_TEXT_CSS_CLASS_NAME}`),(0,E.applyFontInfo)(this.j,h),this.w=0,this.y=new N.RunOnceScheduler(()=>{this.M()},200),this.z=new N.RunOnceScheduler(()=>{this.P()},2e3),this.C=new n,this.B=null,this.D=u.get(109).enabled,this.F=u.get(109).maxLineCount}dispose(){this.y.dispose(),this.z.dispose(),super.dispose()}getDomNode(){return this.j}createVisibleLine(){return new S.ViewLine(this.v)}onConfigurationChanged(s){this.g.onConfigurationChanged(s),s.hasChanged(139)&&(this.w=0);const l=this._context.configuration.options,o=l.get(47),u=l.get(139);return this.k=l.get(63),this.m=o.typicalHalfwidthCharacterWidth,this.n=u.isViewportWrapping,this.p=l.get(94),this.s=l.get(26),this.t=l.get(27),this.u=!l.get(29),this.D=l.get(109).enabled,this.F=l.get(109).maxLineCount,(0,E.applyFontInfo)(this.j,o),this.G(),s.hasChanged(138)&&(this.w=0),!0}G(){const s=this._context.configuration,l=new S.ViewLineOptions(s,this._context.theme.type);if(!this.v.equals(l)){this.v=l;const o=this.g.getStartLineNumber(),u=this.g.getEndLineNumber();for(let h=o;h<=u;h++)this.g.getVisibleLine(h).onOptionsChanged(this.v);return!0}return!1}onCursorStateChanged(s){const l=this.g.getStartLineNumber(),o=this.g.getEndLineNumber();let u=!1;for(let h=l;h<=o;h++)u=this.g.getVisibleLine(h).onSelectionChanged()||u;return u}onDecorationsChanged(s){{const l=this.g.getStartLineNumber(),o=this.g.getEndLineNumber();for(let u=l;u<=o;u++)this.g.getVisibleLine(u).onDecorationsChanged()}return!0}onFlushed(s){const l=this.g.onFlushed(s);return this.w=0,l}onLinesChanged(s){return this.g.onLinesChanged(s)}onLinesDeleted(s){return this.g.onLinesDeleted(s)}onLinesInserted(s){return this.g.onLinesInserted(s)}onRevealRangeRequest(s){const l=this.R(this._context.viewLayout.getFutureViewport(),s.source,s.minimalReveal,s.range,s.selections,s.verticalType);if(l===-1)return!1;let o=this._context.viewLayout.validateScrollPosition({scrollTop:l});s.revealHorizontal?s.range&&s.range.startLineNumber!==s.range.endLineNumber?o={scrollTop:o.scrollTop,scrollLeft:0}:s.range?this.B=new a(s.minimalReveal,s.range.startLineNumber,s.range.startColumn,s.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),o.scrollTop,s.scrollType):s.selections&&s.selections.length>0&&(this.B=new r(s.minimalReveal,s.selections,this._context.viewLayout.getCurrentScrollTop(),o.scrollTop,s.scrollType)):this.B=null;const h=Math.abs(this._context.viewLayout.getCurrentScrollTop()-o.scrollTop)<=this.k?1:s.scrollType;return this._context.viewModel.viewLayout.setScrollPosition(o,h),!0}onScrollChanged(s){if(this.B&&s.scrollLeftChanged&&(this.B=null),this.B&&s.scrollTopChanged){const l=Math.min(this.B.startScrollTop,this.B.stopScrollTop),o=Math.max(this.B.startScrollTop,this.B.stopScrollTop);(s.scrollTop<l||s.scrollTop>o)&&(this.B=null)}return this.j.setWidth(s.scrollWidth),this.g.onScrollChanged(s)||!0}onTokensChanged(s){return this.g.onTokensChanged(s)}onZonesChanged(s){return this._context.viewModel.viewLayout.setMaxLineWidth(this.w),this.g.onZonesChanged(s)}onThemeChanged(s){return this.G()}getPositionFromDOMInfo(s,l){const o=this.H(s);if(o===null)return null;const u=this.I(o);if(u===-1||u<1||u>this._context.viewModel.getLineCount())return null;if(this._context.viewModel.getLineMaxColumn(u)===1)return new v.Position(u,1);const h=this.g.getStartLineNumber(),w=this.g.getEndLineNumber();if(u<h||u>w)return null;let m=this.g.getVisibleLine(u).getColumnOfNodeOffset(u,s,l);const p=this._context.viewModel.getLineMinColumn(u);return m<p&&(m=p),new v.Position(u,m)}H(s){for(;s&&s.nodeType===1;){if(s.className===S.ViewLine.CLASS_NAME)return s;s=s.parentElement}return null}I(s){const l=this.g.getStartLineNumber(),o=this.g.getEndLineNumber();for(let u=l;u<=o;u++){const h=this.g.getVisibleLine(u);if(s===h.getDomNode())return u}return-1}getLineWidth(s){const l=this.g.getStartLineNumber(),o=this.g.getEndLineNumber();if(s<l||s>o)return-1;const u=new t.DomReadingContext(this.j.domNode,this.c),h=this.g.getVisibleLine(s).getWidth(u);return this.N(u),h}linesVisibleRangesForRange(s,l){if(this.shouldRender())return null;const o=s.endLineNumber,u=f.Range.intersectRanges(s,this.C.getCurrentVisibleRange());if(!u)return null;const h=[];let w=0;const m=new t.DomReadingContext(this.j.domNode,this.c);let p=0;l&&(p=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new v.Position(u.startLineNumber,1)).lineNumber);const b=this.g.getStartLineNumber(),y=this.g.getEndLineNumber();for(let k=u.startLineNumber;k<=u.endLineNumber;k++){if(k<b||k>y)continue;const D=k===u.startLineNumber?u.startColumn:1,M=k===u.endLineNumber?u.endColumn:this._context.viewModel.getLineMaxColumn(k),z=this.g.getVisibleLine(k).getVisibleRangesForRange(k,D,M,m);if(!!z){if(l&&k<o){const R=p;p=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new v.Position(k+1,1)).lineNumber,R!==p&&(z.ranges[z.ranges.length-1].width+=this.m)}h[w++]=new g.LineVisibleRanges(z.outsideRenderedLine,k,g.HorizontalRange.from(z.ranges))}}return this.N(m),w===0?null:h}J(s,l,o){if(this.shouldRender()||s<this.g.getStartLineNumber()||s>this.g.getEndLineNumber())return null;const u=new t.DomReadingContext(this.j.domNode,this.c),h=this.g.getVisibleLine(s).getVisibleRangesForRange(s,l,o,u);return this.N(u),h}visibleRangeForPosition(s){const l=this.J(s.lineNumber,s.column,s.column);return l?new g.HorizontalPosition(l.outsideRenderedLine,l.ranges[0].left):null}L(){return this.O(!0)}M(){this.O(!1)}N(s){!s.didDomLayout||this.y.isScheduled()||(this.y.cancel(),this.M())}O(s){const l=this.g.getStartLineNumber(),o=this.g.getEndLineNumber();let u=1,h=!0;for(let w=l;w<=o;w++){const m=this.g.getVisibleLine(w);if(s&&!m.getWidthIsFast()){h=!1;continue}u=Math.max(u,m.getWidth(null))}return h&&l===1&&o===this._context.viewModel.getLineCount()&&(this.w=0),this.Q(u),h}P(){let s=-1,l=-1;const o=this.g.getStartLineNumber(),u=this.g.getEndLineNumber();for(let h=o;h<=u;h++){const w=this.g.getVisibleLine(h);if(w.needsMonospaceFontCheck()){const m=w.getWidth(null);m>l&&(l=m,s=h)}}if(s!==-1&&!this.g.getVisibleLine(s).monospaceAssumptionsAreValid())for(let h=o;h<=u;h++)this.g.getVisibleLine(h).onMonospaceAssumptionsInvalidated()}prepareRender(){throw new Error("Not supported")}render(){throw new Error("Not supported")}renderText(s){if(this.g.renderLines(s),this.C.setCurrentVisibleRange(s.visibleRange),this.j.setWidth(this._context.viewLayout.getScrollWidth()),this.j.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this.B){const o=this.B;if(s.startLineNumber<=o.minLineNumber&&o.maxLineNumber<=s.endLineNumber){this.B=null,this.onDidRender();const u=this.S(o);u&&(this.n||this.Q(u.maxHorizontalOffset),this._context.viewModel.viewLayout.setScrollPosition({scrollLeft:u.scrollLeft},o.scrollType))}}if(this.L()?this.y.cancel():this.y.schedule(),C.isLinux&&!this.z.isScheduled()){const o=this.g.getStartLineNumber(),u=this.g.getEndLineNumber();for(let h=o;h<=u;h++)if(this.g.getVisibleLine(h).needsMonospaceFontCheck()){this.z.schedule();break}}this.b.setLayerHinting(this.u),this.b.setContain("strict");const l=this._context.viewLayout.getCurrentScrollTop()-s.bigNumbersDelta;this.b.setTop(-l),this.b.setLeft(-this._context.viewLayout.getCurrentScrollLeft())}Q(s){const l=Math.ceil(s);this.w<l&&(this.w=l,this._context.viewModel.viewLayout.setMaxLineWidth(this.w))}R(s,l,o,u,h,w){const m=s.top,p=s.height,b=m+p;let y,k,D;if(h&&h.length>0){let A=h[0].startLineNumber,T=h[0].endLineNumber;for(let O=1,B=h.length;O<B;O++){const W=h[O];A=Math.min(A,W.startLineNumber),T=Math.max(T,W.endLineNumber)}y=!1,k=this._context.viewLayout.getVerticalOffsetForLineNumber(A),D=this._context.viewLayout.getVerticalOffsetForLineNumber(T)+this.k}else if(u)y=!0,k=this._context.viewLayout.getVerticalOffsetForLineNumber(u.startLineNumber),D=this._context.viewLayout.getVerticalOffsetForLineNumber(u.endLineNumber)+this.k;else return-1;const M=(l==="mouse"||o)&&this.t==="default";let z=0,R=0;if(M)o||(z=this.k);else{const A=Math.min(p/this.k/2,this.s);this.D?z=Math.max(A,this.F)*this.k:z=A*this.k,R=Math.max(0,A-1)*this.k}o||(w===0||w===4)&&(R+=this.k),k-=z,D+=R;let P;if(D-k>p){if(!y)return-1;P=k}else if(w===5||w===6)if(w===6&&m<=k&&D<=b)P=m;else{const A=Math.max(5*this.k,p*.2),T=k-A,O=D-p;P=Math.max(O,T)}else if(w===1||w===2)if(w===2&&m<=k&&D<=b)P=m;else{const A=(k+D)/2;P=Math.max(0,A-p/2)}else P=this.U(m,b,k,D,w===3,w===4);return P}S(s){const l=this._context.viewLayout.getCurrentViewport(),o=this._context.configuration.options.get(138),u=l.left,h=u+l.width-o.verticalScrollbarWidth;let w=1073741824,m=0;if(s.type==="range"){const b=this.J(s.lineNumber,s.startColumn,s.endColumn);if(!b)return null;for(const y of b.ranges)w=Math.min(w,Math.round(y.left)),m=Math.max(m,Math.round(y.left+y.width))}else for(const b of s.selections){if(b.startLineNumber!==b.endLineNumber)return null;const y=this.J(b.startLineNumber,b.startColumn,b.endColumn);if(!y)return null;for(const k of y.ranges)w=Math.min(w,Math.round(k.left)),m=Math.max(m,Math.round(k.left+k.width))}return s.minimalReveal||(w=Math.max(0,w-c.a),m+=this.p),s.type==="selections"&&m-w>l.width?null:{scrollLeft:this.U(u,h,w,m),maxHorizontalOffset:m}}U(s,l,o,u,h,w){s=s|0,l=l|0,o=o|0,u=u|0,h=!!h,w=!!w;const m=l-s;if(u-o<m){if(h)return o;if(w)return Math.max(0,u-m);if(o<s)return o;if(u>l)return Math.max(0,u-m)}else return o;return s}}c.a=30,e.ViewLines=c}),define(_[23],ee([1,0,6,2,8,33,91]),function(q,e,C,N,E,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Themable=e.registerThemingParticipant=e.Extensions=e.getThemeTypeSelector=e.themeColorFromId=e.IThemeService=void 0,e.IThemeService=(0,E.createDecorator)("themeService");function S(n){return{id:n}}e.themeColorFromId=S;function v(n){switch(n){case L.ColorScheme.DARK:return"vs-dark";case L.ColorScheme.HIGH_CONTRAST_DARK:return"hc-black";case L.ColorScheme.HIGH_CONTRAST_LIGHT:return"hc-light";default:return"vs"}}e.getThemeTypeSelector=v,e.Extensions={ThemingContribution:"base.contributions.theming"};class f{constructor(){this.a=[],this.a=[],this.b=new C.Emitter}onColorThemeChange(a){return this.a.push(a),this.b.fire(a),(0,N.toDisposable)(()=>{const r=this.a.indexOf(a);this.a.splice(r,1)})}getThemingParticipants(){return this.a}}const g=new f;I.Registry.add(e.Extensions.ThemingContribution,g);function i(n){return g.onColorThemeChange(n)}e.registerThemingParticipant=i;class t extends N.Disposable{constructor(a){super(),this.b=a,this.a=a.getColorTheme(),this.q(this.b.onDidColorThemeChange(r=>this.c(r)))}c(a){this.a=a,this.updateStyles()}updateStyles(){}}e.Themable=t}),define(_[782],ee([1,0,6,2,59,23]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GlobalStyleSheet=e.AbstractCodeEditorService=void 0;let L=class extends N.Disposable{constructor(f){super(),this.p=f,this.a=this.q(new C.Emitter),this.b=this.q(new C.Emitter),this.onCodeEditorAdd=this.b.event,this.c=this.q(new C.Emitter),this.onCodeEditorRemove=this.c.event,this.g=this.q(new C.Emitter),this.h=this.q(new C.Emitter),this.onDiffEditorAdd=this.h.event,this.i=this.q(new C.Emitter),this.onDiffEditorRemove=this.i.event,this.m=new Map,this.n=new E.LinkedList,this.r=new Map,this.j=Object.create(null),this.k=Object.create(null),this.l=null}willCreateCodeEditor(){this.a.fire()}addCodeEditor(f){this.j[f.getId()]=f,this.b.fire(f)}removeCodeEditor(f){delete this.j[f.getId()]&&this.c.fire(f)}listCodeEditors(){return Object.keys(this.j).map(f=>this.j[f])}willCreateDiffEditor(){this.g.fire()}addDiffEditor(f){this.k[f.getId()]=f,this.h.fire(f)}removeDiffEditor(f){delete this.k[f.getId()]&&this.i.fire(f)}listDiffEditors(){return Object.keys(this.k).map(f=>this.k[f])}getFocusedCodeEditor(){let f=null;const g=this.listCodeEditors();for(const i of g){if(i.hasTextFocus())return i;i.hasWidgetFocus()&&(f=i)}return f}removeDecorationType(f){const g=this.m.get(f);g&&(g.refCount--,g.refCount<=0&&(this.m.delete(f),g.dispose(),this.listCodeEditors().forEach(i=>i.removeDecorationsByType(f))))}setModelProperty(f,g,i){const t=f.toString();let n;this.r.has(t)?n=this.r.get(t):(n=new Map,this.r.set(t,n)),n.set(g,i)}getModelProperty(f,g){const i=f.toString();if(this.r.has(i))return this.r.get(i).get(g)}openCodeEditor(f,g,i){return ye(this,void 0,void 0,function*(){for(const t of this.n){const n=yield t(f,g,i);if(n!==null)return n}return null})}registerCodeEditorOpenHandler(f){const g=this.n.unshift(f);return(0,N.toDisposable)(g)}};L=Ne([ge(0,I.IThemeService)],L),e.AbstractCodeEditorService=L;class S{constructor(f){this.a=f}}e.GlobalStyleSheet=S}),define(_[783],ee([1,0,7,35,76,51,23]),function(q,e,C,N,E,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorScrollbar=void 0;class S extends I.ViewPart{constructor(f,g,i,t){super(f);const n=this._context.configuration.options,a=n.get(97),r=n.get(71),c=n.get(37),d=n.get(100),s={listenOnDomNode:i.domNode,className:"editor-scrollable "+(0,L.getThemeTypeSelector)(f.theme.type),useShadows:!1,lazyRender:!0,vertical:a.vertical,horizontal:a.horizontal,verticalHasArrows:a.verticalHasArrows,horizontalHasArrows:a.horizontalHasArrows,verticalScrollbarSize:a.verticalScrollbarSize,verticalSliderSize:a.verticalSliderSize,horizontalScrollbarSize:a.horizontalScrollbarSize,horizontalSliderSize:a.horizontalSliderSize,handleMouseWheel:a.handleMouseWheel,alwaysConsumeMouseWheel:a.alwaysConsumeMouseWheel,arrowSize:a.arrowSize,mouseWheelScrollSensitivity:r,fastScrollSensitivity:c,scrollPredominantAxis:d,scrollByPage:a.scrollByPage};this.a=this.q(new E.SmoothScrollableElement(g.domNode,s,this._context.viewLayout.getScrollable())),I.PartFingerprints.write(this.a.getDomNode(),5),this.b=(0,N.createFastDomNode)(this.a.getDomNode()),this.b.setPosition("absolute"),this.c();const l=(o,u,h)=>{const w={};if(u){const m=o.scrollTop;m&&(w.scrollTop=this._context.viewLayout.getCurrentScrollTop()+m,o.scrollTop=0)}if(h){const m=o.scrollLeft;m&&(w.scrollLeft=this._context.viewLayout.getCurrentScrollLeft()+m,o.scrollLeft=0)}this._context.viewModel.viewLayout.setScrollPosition(w,1)};this.q(C.addDisposableListener(i.domNode,"scroll",o=>l(i.domNode,!0,!0))),this.q(C.addDisposableListener(g.domNode,"scroll",o=>l(g.domNode,!0,!1))),this.q(C.addDisposableListener(t.domNode,"scroll",o=>l(t.domNode,!0,!1))),this.q(C.addDisposableListener(this.b.domNode,"scroll",o=>l(this.b.domNode,!0,!1)))}dispose(){super.dispose()}c(){const f=this._context.configuration.options,g=f.get(138);this.b.setLeft(g.contentLeft),f.get(69).side==="right"?this.b.setWidth(g.contentWidth+g.minimap.minimapWidth):this.b.setWidth(g.contentWidth),this.b.setHeight(g.height)}getOverviewRulerLayoutInfo(){return this.a.getOverviewRulerLayoutInfo()}getDomNode(){return this.b}delegateVerticalScrollbarPointerDown(f){this.a.delegateVerticalScrollbarPointerDown(f)}delegateScrollFromMouseWheelEvent(f){this.a.delegateScrollFromMouseWheelEvent(f)}onConfigurationChanged(f){if(f.hasChanged(97)||f.hasChanged(71)||f.hasChanged(37)){const g=this._context.configuration.options,i=g.get(97),t=g.get(71),n=g.get(37),a=g.get(100),r={vertical:i.vertical,horizontal:i.horizontal,verticalScrollbarSize:i.verticalScrollbarSize,horizontalScrollbarSize:i.horizontalScrollbarSize,scrollByPage:i.scrollByPage,handleMouseWheel:i.handleMouseWheel,mouseWheelScrollSensitivity:t,fastScrollSensitivity:n,scrollPredominantAxis:a};this.a.updateOptions(r)}return f.hasChanged(138)&&this.c(),!0}onScrollChanged(f){return!0}onThemeChanged(f){return this.a.updateClassName("editor-scrollable "+(0,L.getThemeTypeSelector)(this._context.theme.type)),!0}prepareRender(f){}render(f){this.a.renderNow()}}e.EditorScrollbar=S}),define(_[784],ee([1,0,105,31,23,387]),function(q,e,C,N,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SelectionsOverlay=void 0;class I{constructor(t){this.left=t.left,this.width=t.width,this.startStyle=null,this.endStyle=null}}class L{constructor(t,n){this.lineNumber=t,this.ranges=n}}function S(i){return new I(i)}function v(i){return new L(i.lineNumber,i.ranges.map(S))}class f extends C.DynamicViewOverlay{constructor(t){super(),this.F=[],this.r=t;const n=this.r.configuration.options;this.s=n.get(63),this.t=n.get(95),this.u=n.get(47).typicalHalfwidthCharacterWidth,this.v=[],this.w=null,this.r.addEventHandler(this)}dispose(){this.r.removeEventHandler(this),this.w=null,super.dispose()}onConfigurationChanged(t){const n=this.r.configuration.options;return this.s=n.get(63),this.t=n.get(95),this.u=n.get(47).typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(t){return this.v=t.selections.slice(0),!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}y(t){for(let n=0,a=t.length;n<a;n++)if(t[n].ranges.length>1)return!0;return!1}z(t,n,a){const r=this.u/4;let c=null,d=null;if(a&&a.length>0&&n.length>0){const s=n[0].lineNumber;if(s===t.startLineNumber)for(let o=0;!c&&o<a.length;o++)a[o].lineNumber===s&&(c=a[o].ranges[0]);const l=n[n.length-1].lineNumber;if(l===t.endLineNumber)for(let o=a.length-1;!d&&o>=0;o--)a[o].lineNumber===l&&(d=a[o].ranges[0]);c&&!c.startStyle&&(c=null),d&&!d.startStyle&&(d=null)}for(let s=0,l=n.length;s<l;s++){const o=n[s].ranges[0],u=o.left,h=o.left+o.width,w={top:0,bottom:0},m={top:0,bottom:0};if(s>0){const p=n[s-1].ranges[0].left,b=n[s-1].ranges[0].left+n[s-1].ranges[0].width;g(u-p)<r?w.top=2:u>p&&(w.top=1),g(h-b)<r?m.top=2:p<h&&h<b&&(m.top=1)}else c&&(w.top=c.startStyle.top,m.top=c.endStyle.top);if(s+1<l){const p=n[s+1].ranges[0].left,b=n[s+1].ranges[0].left+n[s+1].ranges[0].width;g(u-p)<r?w.bottom=2:p<u&&u<b&&(w.bottom=1),g(h-b)<r?m.bottom=2:h<b&&(m.bottom=1)}else d&&(w.bottom=d.startStyle.bottom,m.bottom=d.endStyle.bottom);o.startStyle=w,o.endStyle=m}}B(t,n,a){const c=(n.linesVisibleRangesForRange(t,!0)||[]).map(v);return!this.y(c)&&this.t&&this.z(n.visibleRange,c,a),c}C(t,n,a,r,c){return'<div class="cslr '+a+'" style="top:'+t.toString()+"px;left:"+r.toString()+"px;width:"+c.toString()+"px;height:"+n+'px;"></div>'}D(t,n,a,r){if(r.length===0)return;const c=!!r[0].ranges[0].startStyle,d=this.s.toString(),s=(this.s-1).toString(),l=r[0].lineNumber,o=r[r.length-1].lineNumber;for(let u=0,h=r.length;u<h;u++){const w=r[u],m=w.lineNumber,p=m-n,b=a&&(m===o||m===l)?s:d,y=a&&m===l?1:0;let k="",D="";for(let M=0,z=w.ranges.length;M<z;M++){const R=w.ranges[M];if(c){const A=R.startStyle,T=R.endStyle;if(A.top===1||A.bottom===1){k+=this.C(y,b,f.a,R.left-f.p,f.p);let O=f.m;A.top===1&&(O+=" "+f.g),A.bottom===1&&(O+=" "+f.k),k+=this.C(y,b,O,R.left-f.p,f.p)}if(T.top===1||T.bottom===1){k+=this.C(y,b,f.a,R.left+R.width,f.p);let O=f.m;T.top===1&&(O+=" "+f.b),T.bottom===1&&(O+=" "+f.c),k+=this.C(y,b,O,R.left+R.width,f.p)}}let P=f.a;if(c){const A=R.startStyle,T=R.endStyle;A.top===0&&(P+=" "+f.b),A.bottom===0&&(P+=" "+f.c),T.top===0&&(P+=" "+f.g),T.bottom===0&&(P+=" "+f.k)}D+=this.C(y,b,P,R.left,R.width)}t[p][0]+=k,t[p][1]+=D}}prepareRender(t){const n=[],a=t.visibleRange.startLineNumber,r=t.visibleRange.endLineNumber;for(let d=a;d<=r;d++){const s=d-a;n[s]=["",""]}const c=[];for(let d=0,s=this.v.length;d<s;d++){const l=this.v[d];if(l.isEmpty()){c[d]=null;continue}const o=this.B(l,t,this.F[d]);c[d]=o,this.D(n,a,this.v.length>1,o)}this.F=c,this.w=n.map(([d,s])=>d+s)}render(t,n){if(!this.w)return"";const a=n-t;return a<0||a>=this.w.length?"":this.w[a]}}f.a="selected-text",f.b="top-left-radius",f.c="bottom-left-radius",f.g="top-right-radius",f.k="bottom-right-radius",f.m="monaco-editor-background",f.p=10,e.SelectionsOverlay=f,(0,E.registerThemingParticipant)((i,t)=>{const n=i.getColor(N.editorSelectionForeground);n&&!n.isTransparent()&&t.addRule(`.monaco-editor .view-line span.inline-selected-text { color: ${n}; }`)});function g(i){return i<0?-i:i}}),define(_[71],ee([1,0,572,36,31,23]),function(q,e,C,N,E,I){"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.editorDimmedLineNumber=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,E.registerColor)("editor.lineHighlightBackground",{dark:null,light:null,hcDark:null,hcLight:null},C.localize(0,null)),e.editorLineHighlightBorder=(0,E.registerColor)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hcDark:"#f38518",hcLight:E.contrastBorder},C.localize(1,null)),e.editorRangeHighlight=(0,E.registerColor)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hcDark:null,hcLight:null},C.localize(2,null),!0),e.editorRangeHighlightBorder=(0,E.registerColor)("editor.rangeHighlightBorder",{dark:null,light:null,hcDark:E.activeContrastBorder,hcLight:E.activeContrastBorder},C.localize(3,null),!0),e.editorSymbolHighlight=(0,E.registerColor)("editor.symbolHighlightBackground",{dark:E.editorFindMatchHighlight,light:E.editorFindMatchHighlight,hcDark:null,hcLight:null},C.localize(4,null),!0),e.editorSymbolHighlightBorder=(0,E.registerColor)("editor.symbolHighlightBorder",{dark:null,light:null,hcDark:E.activeContrastBorder,hcLight:E.activeContrastBorder},C.localize(5,null),!0),e.editorCursorForeground=(0,E.registerColor)("editorCursor.foreground",{dark:"#AEAFAD",light:N.Color.black,hcDark:N.Color.white,hcLight:"#0F4A85"},C.localize(6,null)),e.editorCursorBackground=(0,E.registerColor)("editorCursor.background",null,C.localize(7,null)),e.editorWhitespaces=(0,E.registerColor)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hcDark:"#e3e4e229",hcLight:"#CCCCCC"},C.localize(8,null)),e.editorIndentGuides=(0,E.registerColor)("editorIndentGuide.background",{dark:e.editorWhitespaces,light:e.editorWhitespaces,hcDark:e.editorWhitespaces,hcLight:e.editorWhitespaces},C.localize(9,null)),e.editorActiveIndentGuides=(0,E.registerColor)("editorIndentGuide.activeBackground",{dark:e.editorWhitespaces,light:e.editorWhitespaces,hcDark:e.editorWhitespaces,hcLight:e.editorWhitespaces},C.localize(10,null)),e.editorLineNumbers=(0,E.registerColor)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hcDark:N.Color.white,hcLight:"#292929"},C.localize(11,null));const L=(0,E.registerColor)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hcDark:E.activeContrastBorder,hcLight:E.activeContrastBorder},C.localize(12,null),!1,C.localize(13,null));e.editorActiveLineNumber=(0,E.registerColor)("editorLineNumber.activeForeground",{dark:L,light:L,hcDark:L,hcLight:L},C.localize(14,null)),e.editorDimmedLineNumber=(0,E.registerColor)("editorLineNumber.dimmedForeground",{dark:null,light:null,hcDark:null,hcLight:null},C.localize(15,null)),e.editorRuler=(0,E.registerColor)("editorRuler.foreground",{dark:"#5A5A5A",light:N.Color.lightgrey,hcDark:N.Color.white,hcLight:"#292929"},C.localize(16,null)),e.editorCodeLensForeground=(0,E.registerColor)("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hcDark:"#999999",hcLight:"#292929"},C.localize(17,null)),e.editorBracketMatchBackground=(0,E.registerColor)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hcDark:"#0064001a",hcLight:"#0000"},C.localize(18,null)),e.editorBracketMatchBorder=(0,E.registerColor)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hcDark:E.contrastBorder,hcLight:E.contrastBorder},C.localize(19,null)),e.editorOverviewRulerBorder=(0,E.registerColor)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hcDark:"#7f7f7f4d",hcLight:"#666666"},C.localize(20,null)),e.editorOverviewRulerBackground=(0,E.registerColor)("editorOverviewRuler.background",null,C.localize(21,null)),e.editorGutter=(0,E.registerColor)("editorGutter.background",{dark:E.editorBackground,light:E.editorBackground,hcDark:E.editorBackground,hcLight:E.editorBackground},C.localize(22,null)),e.editorUnnecessaryCodeBorder=(0,E.registerColor)("editorUnnecessaryCode.border",{dark:null,light:null,hcDark:N.Color.fromHex("#fff").transparent(.8),hcLight:E.contrastBorder},C.localize(23,null)),e.editorUnnecessaryCodeOpacity=(0,E.registerColor)("editorUnnecessaryCode.opacity",{dark:N.Color.fromHex("#000a"),light:N.Color.fromHex("#0007"),hcDark:null,hcLight:null},C.localize(24,null)),e.ghostTextBorder=(0,E.registerColor)("editorGhostText.border",{dark:null,light:null,hcDark:N.Color.fromHex("#fff").transparent(.8),hcLight:N.Color.fromHex("#292929").transparent(.8)},C.localize(25,null)),e.ghostTextForeground=(0,E.registerColor)("editorGhostText.foreground",{dark:N.Color.fromHex("#ffffff56"),light:N.Color.fromHex("#0007"),hcDark:null,hcLight:null},C.localize(26,null)),e.ghostTextBackground=(0,E.registerColor)("editorGhostText.background",{dark:null,light:null,hcDark:null,hcLight:null},C.localize(27,null));const S=new N.Color(new N.RGBA(0,122,204,.6));e.overviewRulerRangeHighlight=(0,E.registerColor)("editorOverviewRuler.rangeHighlightForeground",{dark:S,light:S,hcDark:S,hcLight:S},C.localize(28,null),!0),e.overviewRulerError=(0,E.registerColor)("editorOverviewRuler.errorForeground",{dark:new N.Color(new N.RGBA(255,18,18,.7)),light:new N.Color(new N.RGBA(255,18,18,.7)),hcDark:new N.Color(new N.RGBA(255,50,50,1)),hcLight:"#B5200D"},C.localize(29,null)),e.overviewRulerWarning=(0,E.registerColor)("editorOverviewRuler.warningForeground",{dark:E.editorWarningForeground,light:E.editorWarningForeground,hcDark:E.editorWarningBorder,hcLight:E.editorWarningBorder},C.localize(30,null)),e.overviewRulerInfo=(0,E.registerColor)("editorOverviewRuler.infoForeground",{dark:E.editorInfoForeground,light:E.editorInfoForeground,hcDark:E.editorInfoBorder,hcLight:E.editorInfoBorder},C.localize(31,null)),e.editorBracketHighlightingForeground1=(0,E.registerColor)("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hcDark:"#FFD700",hcLight:"#0431FAFF"},C.localize(32,null)),e.editorBracketHighlightingForeground2=(0,E.registerColor)("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hcDark:"#DA70D6",hcLight:"#319331FF"},C.localize(33,null)),e.editorBracketHighlightingForeground3=(0,E.registerColor)("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hcDark:"#87CEFA",hcLight:"#7B3814FF"},C.localize(34,null)),e.editorBracketHighlightingForeground4=(0,E.registerColor)("editorBracketHighlight.foreground4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},C.localize(35,null)),e.editorBracketHighlightingForeground5=(0,E.registerColor)("editorBracketHighlight.foreground5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},C.localize(36,null)),e.editorBracketHighlightingForeground6=(0,E.registerColor)("editorBracketHighlight.foreground6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},C.localize(37,null)),e.editorBracketHighlightingUnexpectedBracketForeground=(0,E.registerColor)("editorBracketHighlight.unexpectedBracket.foreground",{dark:new N.Color(new N.RGBA(255,18,18,.8)),light:new N.Color(new N.RGBA(255,18,18,.8)),hcDark:new N.Color(new N.RGBA(255,50,50,1)),hcLight:""},C.localize(38,null)),e.editorBracketPairGuideBackground1=(0,E.registerColor)("editorBracketPairGuide.background1",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},C.localize(39,null)),e.editorBracketPairGuideBackground2=(0,E.registerColor)("editorBracketPairGuide.background2",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},C.localize(40,null)),e.editorBracketPairGuideBackground3=(0,E.registerColor)("editorBracketPairGuide.background3",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},C.localize(41,null)),e.editorBracketPairGuideBackground4=(0,E.registerColor)("editorBracketPairGuide.background4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},C.localize(42,null)),e.editorBracketPairGuideBackground5=(0,E.registerColor)("editorBracketPairGuide.background5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},C.localize(43,null)),e.editorBracketPairGuideBackground6=(0,E.registerColor)("editorBracketPairGuide.background6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},C.localize(44,null)),e.editorBracketPairGuideActiveBackground1=(0,E.registerColor)("editorBracketPairGuide.activeBackground1",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},C.localize(45,null)),e.editorBracketPairGuideActiveBackground2=(0,E.registerColor)("editorBracketPairGuide.activeBackground2",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},C.localize(46,null)),e.editorBracketPairGuideActiveBackground3=(0,E.registerColor)("editorBracketPairGuide.activeBackground3",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},C.localize(47,null)),e.editorBracketPairGuideActiveBackground4=(0,E.registerColor)("editorBracketPairGuide.activeBackground4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},C.localize(48,null)),e.editorBracketPairGuideActiveBackground5=(0,E.registerColor)("editorBracketPairGuide.activeBackground5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},C.localize(49,null)),e.editorBracketPairGuideActiveBackground6=(0,E.registerColor)("editorBracketPairGuide.activeBackground6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},C.localize(50,null)),e.editorUnicodeHighlightBorder=(0,E.registerColor)("editorUnicodeHighlight.border",{dark:"#BD9B03",light:"#CEA33D",hcDark:"#ff0000",hcLight:"#CEA33D"},C.localize(51,null)),e.editorUnicodeHighlightBackground=(0,E.registerColor)("editorUnicodeHighlight.background",{dark:"#bd9b0326",light:"#cea33d14",hcDark:"#00000000",hcLight:"#cea33d14"},C.localize(52,null)),(0,I.registerThemingParticipant)((v,f)=>{const g=v.getColor(E.editorBackground),i=v.getColor(e.editorLineHighlight),t=i&&!i.isTransparent()?i:g;t&&f.addRule(`.monaco-editor .inputarea.ime-input { background-color: ${t}; }`)})}),define(_[785],ee([1,0,105,71,17,23,22,91,374]),function(q,e,C,N,E,I,L,S){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CurrentLineMarginHighlightOverlay=e.CurrentLineHighlightOverlay=e.AbstractLineHighlightOverlay=void 0;class v extends C.DynamicViewOverlay{constructor(t){super(),this.c=t;const n=this.c.configuration.options,a=n.get(138);this.g=n.get(63),this.j=n.get(90),this.p=n.get(91),this.k=a.contentLeft,this.m=a.contentWidth,this.n=!0,this.r=!1,this.t=[1],this.u=[new L.Selection(1,1,1,1)],this.v=null,this.c.addEventHandler(this)}dispose(){this.c.removeEventHandler(this),super.dispose()}w(){let t=!1;const n=this.u.map(r=>r.positionLineNumber);n.sort((r,c)=>r-c),E.equals(this.t,n)||(this.t=n,t=!0);const a=this.u.every(r=>r.isEmpty());return this.n!==a&&(this.n=a,t=!0),t}onThemeChanged(t){return this.w()}onConfigurationChanged(t){const n=this.c.configuration.options,a=n.get(138);return this.g=n.get(63),this.j=n.get(90),this.p=n.get(91),this.k=a.contentLeft,this.m=a.contentWidth,!0}onCursorStateChanged(t){return this.u=t.selections,this.w()}onFlushed(t){return!0}onLinesDeleted(t){return!0}onLinesInserted(t){return!0}onScrollChanged(t){return t.scrollWidthChanged||t.scrollTopChanged}onZonesChanged(t){return!0}onFocusChanged(t){return this.p?(this.r=t.isFocused,!0):!1}prepareRender(t){if(!this.B()){this.v=null;return}const n=this.D(t),a=t.visibleRange.startLineNumber,r=t.visibleRange.endLineNumber,c=this.t.length;let d=0;const s=[];for(let l=a;l<=r;l++){const o=l-a;for(;d<c&&this.t[d]<l;)d++;d<c&&this.t[d]===l?s[o]=n:s[o]=""}this.v=s}render(t,n){if(!this.v)return"";const a=n-t;return a>=this.v.length?"":this.v[a]}y(){return(this.j==="gutter"||this.j==="all")&&(!this.p||this.r)}z(){return(this.j==="line"||this.j==="all")&&this.n&&(!this.p||this.r)}}e.AbstractLineHighlightOverlay=v;class f extends v{D(t){return`<div class="${"current-line"+(this.C()?" current-line-both":"")}" style="width:${Math.max(t.scrollWidth,this.m)}px; height:${this.g}px;"></div>`}B(){return this.z()}C(){return this.y()}}e.CurrentLineHighlightOverlay=f;class g extends v{D(t){return`<div class="${"current-line"+(this.y()?" current-line-margin":"")+(this.C()?" current-line-margin-both":"")}" style="width:${this.k}px; height:${this.g}px;"></div>`}B(){return!0}C(){return this.z()}}e.CurrentLineMarginHighlightOverlay=g,(0,I.registerThemingParticipant)((i,t)=>{const n=i.getColor(N.editorLineHighlight);if(n&&(t.addRule(`.monaco-editor .view-overlays .current-line { background-color: ${n}; }`),t.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { background-color: ${n}; border: none; }`)),!n||n.isTransparent()||i.defines(N.editorLineHighlightBorder)){const a=i.getColor(N.editorLineHighlightBorder);a&&(t.addRule(`.monaco-editor .view-overlays .current-line { border: 2px solid ${a}; }`),t.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid ${a}; }`),(0,S.isHighContrast)(i.type)&&(t.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"),t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")))}})}),define(_[786],ee([1,0,105,71,23,12,17,18,260,192,377]),function(q,e,C,N,E,I,L,S,v,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndentGuidesOverlay=void 0;class g extends C.DynamicViewOverlay{constructor(n){super(),this.a=n,this.b=null;const a=this.a.configuration.options,r=a.get(139),c=a.get(47);this.j=a.get(63),this.k=c.spaceWidth,this.n=r.wrappingColumn===-1?-1:r.wrappingColumn*c.typicalHalfwidthCharacterWidth,this.p=a.get(13),this.m=null,this.a.addEventHandler(this)}dispose(){this.a.removeEventHandler(this),this.m=null,super.dispose()}onConfigurationChanged(n){const a=this.a.configuration.options,r=a.get(139),c=a.get(47);return this.j=a.get(63),this.k=c.spaceWidth,this.n=r.wrappingColumn===-1?-1:r.wrappingColumn*c.typicalHalfwidthCharacterWidth,this.p=a.get(13),!0}onCursorStateChanged(n){var a;const c=n.selections[0].getPosition();return!((a=this.b)===null||a===void 0)&&a.equals(c)?!1:(this.b=c,!0)}onDecorationsChanged(n){return!0}onFlushed(n){return!0}onLinesChanged(n){return!0}onLinesDeleted(n){return!0}onLinesInserted(n){return!0}onScrollChanged(n){return n.scrollTopChanged}onZonesChanged(n){return!0}onLanguageConfigurationChanged(n){return!0}prepareRender(n){var a,r,c,d;if(!this.p.indentation&&this.p.bracketPairs===!1){this.m=null;return}const s=n.visibleRange.startLineNumber,l=n.visibleRange.endLineNumber,o=n.scrollWidth,u=this.j,h=this.b,w=this.r(s,Math.min(l+1,this.a.viewModel.getLineCount()),h),m=[];for(let p=s;p<=l;p++){const b=p-s,y=w[b];let k="";const D=(r=(a=n.visibleRangeForPosition(new I.Position(p,1)))===null||a===void 0?void 0:a.left)!==null&&r!==void 0?r:0;for(const M of y){const z=M.column===-1?D+(M.visibleColumn-1)*this.k:n.visibleRangeForPosition(new I.Position(p,M.column)).left;if(z>o||this.n>0&&z>this.n)break;const R=M.horizontalLine?M.horizontalLine.top?"horizontal-top":"horizontal-bottom":"vertical",P=M.horizontalLine?((d=(c=n.visibleRangeForPosition(new I.Position(p,M.horizontalLine.endColumn)))===null||c===void 0?void 0:c.left)!==null&&d!==void 0?d:z+this.k)-z:this.k;k+=`<div class="core-guide ${M.className} ${R}" style="left:${z}px;height:${u}px;width:${P}px"></div>`}m[b]=k}this.m=m}r(n,a,r){const c=this.p.bracketPairs!==!1?this.a.viewModel.getBracketGuidesInRangeByLine(n,a,r,{highlightActive:this.p.highlightActiveBracketPair,horizontalGuides:this.p.bracketPairsHorizontal===!0?f.HorizontalGuidesState.Enabled:this.p.bracketPairsHorizontal==="active"?f.HorizontalGuidesState.EnabledForActive:f.HorizontalGuidesState.Disabled,includeInactive:this.p.bracketPairs===!0}):null,d=this.p.indentation?this.a.viewModel.getLinesIndentGuides(n,a):null;let s=0,l=0,o=0;if(this.p.highlightActiveIndentation!==!1&&r){const w=this.a.viewModel.getActiveIndentGuide(r.lineNumber,n,a);s=w.startLineNumber,l=w.endLineNumber,o=w.indent}const{indentSize:u}=this.a.viewModel.model.getOptions(),h=[];for(let w=n;w<=a;w++){const m=new Array;h.push(m);const p=c?c[w-n]:[],b=new L.ArrayQueue(p),y=d?d[w-n]:0;for(let k=1;k<=y;k++){const D=(k-1)*u+1,M=(this.p.highlightActiveIndentation==="always"||p.length===0)&&s<=w&&w<=l&&k===o;m.push(...b.takeWhile(R=>R.visibleColumn<D)||[]);const z=b.peek();(!z||z.visibleColumn!==D||z.horizontalLine)&&m.push(new f.IndentGuide(D,-1,M?"core-guide-indent-active":"core-guide-indent",null,-1,-1))}m.push(...b.takeWhile(k=>!0)||[])}return h}render(n,a){if(!this.m)return"";const r=a-n;return r<0||r>=this.m.length?"":this.m[r]}}e.IndentGuidesOverlay=g;function i(t){if(!(t&&t.isTransparent()))return t}(0,E.registerThemingParticipant)((t,n)=>{const a=[{bracketColor:N.editorBracketHighlightingForeground1,guideColor:N.editorBracketPairGuideBackground1,guideColorActive:N.editorBracketPairGuideActiveBackground1},{bracketColor:N.editorBracketHighlightingForeground2,guideColor:N.editorBracketPairGuideBackground2,guideColorActive:N.editorBracketPairGuideActiveBackground2},{bracketColor:N.editorBracketHighlightingForeground3,guideColor:N.editorBracketPairGuideBackground3,guideColorActive:N.editorBracketPairGuideActiveBackground3},{bracketColor:N.editorBracketHighlightingForeground4,guideColor:N.editorBracketPairGuideBackground4,guideColorActive:N.editorBracketPairGuideActiveBackground4},{bracketColor:N.editorBracketHighlightingForeground5,guideColor:N.editorBracketPairGuideBackground5,guideColorActive:N.editorBracketPairGuideActiveBackground5},{bracketColor:N.editorBracketHighlightingForeground6,guideColor:N.editorBracketPairGuideBackground6,guideColorActive:N.editorBracketPairGuideActiveBackground6}],r=new v.BracketPairGuidesClassNames,c=a.map(d=>{var s,l;const o=t.getColor(d.bracketColor),u=t.getColor(d.guideColor),h=t.getColor(d.guideColorActive),w=i((s=i(u))!==null&&s!==void 0?s:o?.transparent(.3)),m=i((l=i(h))!==null&&l!==void 0?l:o);if(!(!w||!m))return{guideColor:w,guideColorActive:m}}).filter(S.isDefined);if(c.length>0){for(let d=0;d<30;d++){const s=c[d%c.length];n.addRule(`.monaco-editor .${r.getInlineClassNameOfLevel(d).replace(/ /g,".")} { --guide-color: ${s.guideColor}; --guide-color-active: ${s.guideColorActive}; }`)}n.addRule(".monaco-editor .vertical { box-shadow: 1px 0 0 0 var(--guide-color) inset; }"),n.addRule(".monaco-editor .horizontal-top { border-top: 1px solid var(--guide-color); }"),n.addRule(".monaco-editor .horizontal-bottom { border-bottom: 1px solid var(--guide-color); }"),n.addRule(`.monaco-editor .vertical.${r.activeClassName} { box-shadow: 1px 0 0 0 var(--guide-color-active) inset; }`),n.addRule(`.monaco-editor .horizontal-top.${r.activeClassName} { border-top: 1px solid var(--guide-color-active); }`),n.addRule(`.monaco-editor .horizontal-bottom.${r.activeClassName} { border-bottom: 1px solid var(--guide-color-active); }`)}})}),define(_[319],ee([1,0,16,105,12,23,71,378]),function(q,e,C,N,E,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LineNumbersOverlay=void 0;class S extends N.DynamicViewOverlay{constructor(f){super(),this.a=f,this.s(),this.n=new E.Position(1,1),this.p=null,this.r=1,this.a.addEventHandler(this)}s(){const f=this.a.configuration.options;this.b=f.get(63);const g=f.get(64);this.c=g.renderType,this.g=g.renderFn,this.j=f.get(89);const i=f.get(138);this.k=i.lineNumbersLeft,this.m=i.lineNumbersWidth}dispose(){this.a.removeEventHandler(this),this.p=null,super.dispose()}onConfigurationChanged(f){return this.s(),!0}onCursorStateChanged(f){const g=f.selections[0].getPosition();this.n=this.a.viewModel.coordinatesConverter.convertViewPositionToModelPosition(g);let i=!1;return this.r!==g.lineNumber&&(this.r=g.lineNumber,i=!0),(this.c===2||this.c===3)&&(i=!0),i}onFlushed(f){return!0}onLinesChanged(f){return!0}onLinesDeleted(f){return!0}onLinesInserted(f){return!0}onScrollChanged(f){return f.scrollTopChanged}onZonesChanged(f){return!0}t(f){const g=this.a.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new E.Position(f,1));if(g.column!==1)return"";const i=g.lineNumber;if(this.g)return this.g(i);if(this.c===2){const t=Math.abs(this.n.lineNumber-i);return t===0?'<span class="relative-current-line-number">'+i+"</span>":String(t)}return this.c===3?this.n.lineNumber===i||i%10===0?String(i):"":String(i)}prepareRender(f){if(this.c===0){this.p=null;return}const g=C.isLinux?this.b%2===0?" lh-even":" lh-odd":"",i=f.visibleRange.startLineNumber,t=f.visibleRange.endLineNumber,n=this.a.viewModel.getLineCount(),a=[];for(let r=i;r<=t;r++){const c=r-i,d=this.t(r);if(!d){a[c]="";continue}let s="";if(r===n&&this.a.viewModel.getLineLength(r)===0){if(this.j==="off"){a[c]="";continue}this.j==="dimmed"&&(s=" dimmed-line-number")}r===this.r&&(s=" active-line-number"),a[c]=`<div class="${S.CLASS_NAME}${g}${s}" style="left:${this.k}px;width:${this.m}px;">${d}</div>`}this.p=a}render(f,g){if(!this.p)return"";const i=g-f;return i<0||i>=this.p.length?"":this.p[i]}}S.CLASS_NAME="line-numbers",e.LineNumbersOverlay=S,(0,I.registerThemingParticipant)((v,f)=>{const g=v.getColor(L.editorLineNumbers),i=v.getColor(L.editorDimmedLineNumber);i?f.addRule(`.monaco-editor .line-numbers.dimmed-line-number { color: ${i}; }`):g&&f.addRule(`.monaco-editor .line-numbers.dimmed-line-number { color: ${g.transparent(.4)}; }`)})}),define(_[787],ee([1,0,561,45,35,16,9,73,212,248,51,319,261,40,132,12,4,22,155,26,36,272,372]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s,l,o,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextAreaHandler=void 0;class h{constructor(y,k,D,M,z){this.b=y,this.modelLineNumber=k,this.distanceToModelLineStart=D,this.widthOfHiddenLineTextBefore=M,this.distanceToModelLineEnd=z,this._visibleTextAreaBrand=void 0,this.startPosition=null,this.endPosition=null,this.visibleTextareaStart=null,this.visibleTextareaEnd=null,this.a=null}prepareRender(y){const k=new r.Position(this.modelLineNumber,this.distanceToModelLineStart+1),D=new r.Position(this.modelLineNumber,this.b.viewModel.model.getLineMaxColumn(this.modelLineNumber)-this.distanceToModelLineEnd);this.startPosition=this.b.viewModel.coordinatesConverter.convertModelPositionToViewPosition(k),this.endPosition=this.b.viewModel.coordinatesConverter.convertModelPositionToViewPosition(D),this.startPosition.lineNumber===this.endPosition.lineNumber?(this.visibleTextareaStart=y.visibleRangeForPosition(this.startPosition),this.visibleTextareaEnd=y.visibleRangeForPosition(this.endPosition)):(this.visibleTextareaStart=null,this.visibleTextareaEnd=null)}definePresentation(y){return this.a||(y?this.a=y:this.a={foreground:1,italic:!1,bold:!1,underline:!1,strikethrough:!1}),this.a}}const w=N.isFirefox;class m extends g.ViewPart{constructor(y,k,D){super(y),this.N=new r.Position(1,1),this.O=null,this.a=k,this.b=D,this.c=0,this.g=0;const M=this._context.configuration.options,z=M.get(138);this.L(M),this.p=z.contentLeft,this.s=z.contentWidth,this.t=z.height,this.u=M.get(47),this.v=M.get(63),this.w=M.get(34),this.y=M.get(22),this.z=null,this.B=[new d.Selection(1,1,1,1)],this.C=[new d.Selection(1,1,1,1)],this.D=null,this.textArea=(0,E.createFastDomNode)(document.createElement("textarea")),g.PartFingerprints.write(this.textArea,6),this.textArea.setClassName(`inputarea ${s.MOUSE_CURSOR_TEXT_CSS_CLASS_NAME}`),this.textArea.setAttribute("wrap",this.m&&!this.z?"on":"off");const{tabSize:R}=this._context.viewModel.model.getOptions();this.textArea.domNode.style.tabSize=`${R*this.u.spaceWidth}px`,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.J(M)),this.textArea.setAttribute("tabindex",String(M.get(118))),this.textArea.setAttribute("role","textbox"),this.textArea.setAttribute("aria-roledescription",C.localize(0,null)),this.textArea.setAttribute("aria-multiline","true"),this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.M(),this.textAreaCover=(0,E.createFastDomNode)(document.createElement("div")),this.textAreaCover.setPosition("absolute");const P={getLineCount:()=>this._context.viewModel.getLineCount(),getLineMaxColumn:O=>this._context.viewModel.getLineMaxColumn(O),getValueInRange:(O,B)=>this._context.viewModel.getValueInRange(O,B),getValueLengthInRange:(O,B)=>this._context.viewModel.getValueLengthInRange(O,B),modifyPosition:(O,B)=>this._context.viewModel.modifyPosition(O,B)},A={getDataToCopy:()=>{const O=this._context.viewModel.getPlainTextToCopy(this.C,this.w,I.isWindows),B=this._context.viewModel.model.getEOL(),W=this.w&&this.C.length===1&&this.C[0].isEmpty(),j=Array.isArray(O)?O:null,F=Array.isArray(O)?O.join(B):O;let U,Q=null;if(v.CopyOptions.forceCopyWithSyntaxHighlighting||this.y&&F.length<65536){const se=this._context.viewModel.getRichTextToCopy(this.C,this.w);se&&(U=se.html,Q=se.mode)}return{isFromEmptySelection:W,multicursorText:j,text:F,html:U,mode:Q}},getScreenReaderContent:()=>{if(this.j===1){const O=this.B[0];if(I.isMacintosh&&O.isEmpty()){const W=O.getStartPosition();let j=this.H(W);if(j.length===0&&(j=this.I(W)),j.length>0)return new f.TextAreaState(j,j.length,j.length,c.Range.fromPositions(W),0)}const B=500;if(I.isMacintosh&&!O.isEmpty()&&P.getValueLengthInRange(O,0)<B){const W=P.getValueInRange(O,0);return new f.TextAreaState(W,0,W.length,O,0)}if(N.isSafari&&!O.isEmpty()){const W="vscode-placeholder";return new f.TextAreaState(W,0,W.length,null,void 0)}return f.TextAreaState.EMPTY}if(N.isAndroid){const O=this.B[0];if(O.isEmpty()){const B=O.getStartPosition(),[W,j]=this.G(B);if(W.length>0)return new f.TextAreaState(W,j,j,c.Range.fromPositions(B),0)}return f.TextAreaState.EMPTY}return f.PagedScreenReaderStrategy.fromEditorSelection(P,this.B[0],this.k,this.j===0)},deduceModelPosition:(O,B,W)=>this._context.viewModel.deduceModelPositionRelativeToViewPosition(O,B,W)},T=this.q(new v.TextAreaWrapper(this.textArea.domNode));this.F=this.q(new v.TextAreaInput(A,T,I.OS,N)),this.q(this.F.onKeyDown(O=>{this.a.emitKeyDown(O)})),this.q(this.F.onKeyUp(O=>{this.a.emitKeyUp(O)})),this.q(this.F.onPaste(O=>{let B=!1,W=null,j=null;O.metadata&&(B=this.w&&!!O.metadata.isFromEmptySelection,W=typeof O.metadata.multicursorText<"u"?O.metadata.multicursorText:null,j=O.metadata.mode),this.a.paste(O.text,B,W,j)})),this.q(this.F.onCut(()=>{this.a.cut()})),this.q(this.F.onType(O=>{O.replacePrevCharCnt||O.replaceNextCharCnt||O.positionDelta?(f._debugComposition&&console.log(` => compositionType: <<${O.text}>>, ${O.replacePrevCharCnt}, ${O.replaceNextCharCnt}, ${O.positionDelta}`),this.a.compositionType(O.text,O.replacePrevCharCnt,O.replaceNextCharCnt,O.positionDelta)):(f._debugComposition&&console.log(` => type: <<${O.text}>>`),this.a.type(O.text))})),this.q(this.F.onSelectionChangeRequest(O=>{this.a.setSelection(O)})),this.q(this.F.onCompositionStart(O=>{const B=this.textArea.domNode,W=this.C[0],{distanceToModelLineStart:j,widthOfHiddenTextBefore:F}=(()=>{const Q=B.value.substring(0,Math.min(B.selectionStart,B.selectionEnd)),se=Q.lastIndexOf(`
|
||
`),he=Q.substring(se+1),ie=he.lastIndexOf(" "),ue=he.length-ie-1,J=W.getStartPosition(),x=Math.min(J.column-1,ue),G=J.column-1-x,te=he.substring(0,he.length-x),{tabSize:Z}=this._context.viewModel.model.getOptions(),ae=p(te,this.u,Z);return{distanceToModelLineStart:G,widthOfHiddenTextBefore:ae}})(),{distanceToModelLineEnd:U}=(()=>{const Q=B.value.substring(Math.max(B.selectionStart,B.selectionEnd)),se=Q.indexOf(`
|
||
`),he=se===-1?Q:Q.substring(0,se),ie=he.indexOf(" "),ue=ie===-1?he.length:he.length-ie-1,J=W.getEndPosition(),x=Math.min(this._context.viewModel.model.getLineMaxColumn(J.lineNumber)-J.column,ue);return{distanceToModelLineEnd:this._context.viewModel.model.getLineMaxColumn(J.lineNumber)-J.column-x}})();this._context.viewModel.revealRange("keyboard",!0,c.Range.fromPositions(this.B[0].getStartPosition()),0,1),this.z=new h(this._context,W.startLineNumber,j,F,U),this.textArea.setAttribute("wrap",this.m&&!this.z?"on":"off"),this.z.prepareRender(this.b),this.P(),this.textArea.setClassName(`inputarea ${s.MOUSE_CURSOR_TEXT_CSS_CLASS_NAME} ime-input`),this.a.compositionStart(),this._context.viewModel.onCompositionStart()})),this.q(this.F.onCompositionUpdate(O=>{!this.z||(this.z.prepareRender(this.b),this.P())})),this.q(this.F.onCompositionEnd(()=>{this.z=null,this.textArea.setAttribute("wrap",this.m&&!this.z?"on":"off"),this.P(),this.textArea.setClassName(`inputarea ${s.MOUSE_CURSOR_TEXT_CSS_CLASS_NAME}`),this.a.compositionEnd(),this._context.viewModel.onCompositionEnd()})),this.q(this.F.onFocus(()=>{this._context.viewModel.setHasFocus(!0)})),this.q(this.F.onBlur(()=>{this._context.viewModel.setHasFocus(!1)})),this.q(u.IME.onDidChange(()=>{this.M()}))}writeScreenReaderContent(y){this.F.writeScreenReaderContent(y)}dispose(){super.dispose()}G(y){const k='`~!@#$%^&*()-=+[{]}\\|;:",.<>/?',D=this._context.viewModel.getLineContent(y.lineNumber),M=(0,a.getMapForWordSeparators)(k);let z=!0,R=y.column,P=!0,A=y.column,T=0;for(;T<50&&(z||P);){if(z&&R<=1&&(z=!1),z){const O=D.charCodeAt(R-2);M.get(O)!==0?z=!1:R--}if(P&&A>D.length&&(P=!1),P){const O=D.charCodeAt(A-1);M.get(O)!==0?P=!1:A++}T++}return[D.substring(R-1,A-1),y.column-R]}H(y){const k=this._context.viewModel.getLineContent(y.lineNumber),D=(0,a.getMapForWordSeparators)(this._context.configuration.options.get(124));let M=y.column,z=0;for(;M>1;){const R=k.charCodeAt(M-2);if(D.get(R)!==0||z>50)return k.substring(M-1,y.column-1);z++,M--}return k.substring(0,y.column-1)}I(y){if(y.column>1){const D=this._context.viewModel.getLineContent(y.lineNumber).charAt(y.column-2);if(!L.isHighSurrogate(D.charCodeAt(0)))return D}return""}J(y){return y.get(2)===1?C.localize(1,null,I.isLinux?"Shift+Alt+F1":"Alt+F1"):y.get(4)}L(y){this.j=y.get(2);const k=y.get(3);this.j===2&&k===n.EditorOptions.accessibilityPageSize.defaultValue?this.k=500:this.k=k;const M=y.get(138).wrappingColumn;if(M!==-1&&this.j!==1){const z=y.get(47);this.m=!0,this.n=Math.round(M*z.typicalHalfwidthCharacterWidth)}else this.m=!1,this.n=w?0:1}onConfigurationChanged(y){const k=this._context.configuration.options,D=k.get(138);this.L(k),this.p=D.contentLeft,this.s=D.contentWidth,this.t=D.height,this.u=k.get(47),this.v=k.get(63),this.w=k.get(34),this.y=k.get(22),this.textArea.setAttribute("wrap",this.m&&!this.z?"on":"off");const{tabSize:M}=this._context.viewModel.model.getOptions();return this.textArea.domNode.style.tabSize=`${M*this.u.spaceWidth}px`,this.textArea.setAttribute("aria-label",this.J(k)),this.textArea.setAttribute("tabindex",String(k.get(118))),(y.hasChanged(31)||y.hasChanged(86))&&this.M(),y.hasChanged(2)&&this.F.writeScreenReaderContent("strategy changed"),!0}onCursorStateChanged(y){return this.B=y.selections.slice(0),this.C=y.modelSelections.slice(0),this.F.writeScreenReaderContent("selection changed"),!0}onDecorationsChanged(y){return!0}onFlushed(y){return!0}onLinesChanged(y){return!0}onLinesDeleted(y){return!0}onLinesInserted(y){return!0}onScrollChanged(y){return this.c=y.scrollLeft,this.g=y.scrollTop,!0}onZonesChanged(y){return!0}isFocused(){return this.F.isFocused()}focusTextArea(){this.F.focusTextArea()}getLastRenderData(){return this.D}setAriaOptions(y){y.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-activedescendant",y.activeDescendant)):(this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.textArea.removeAttribute("aria-activedescendant")),y.role&&this.textArea.setAttribute("role",y.role)}M(){const y=this._context.configuration.options;!u.IME.enabled||y.get(31)&&y.get(86)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")}prepareRender(y){var k;this.N=new r.Position(this.B[0].positionLineNumber,this.B[0].positionColumn),this.O=y.visibleRangeForPosition(this.N),(k=this.z)===null||k===void 0||k.prepareRender(y)}render(y){this.F.writeScreenReaderContent("render"),this.P()}P(){var y;if(this.z){const M=this.z.visibleTextareaStart,z=this.z.visibleTextareaEnd,R=this.z.startPosition,P=this.z.endPosition;if(R&&P&&M&&z&&z.left>=this.c&&M.left<=this.c+this.s){const A=this._context.viewLayout.getVerticalOffsetForLineNumber(this.N.lineNumber)-this.g,T=this.Q(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));let O=this.z.widthOfHiddenLineTextBefore,B=this.p+M.left-this.c,W=z.left-M.left+1;if(B<this.p){const he=this.p-B;B+=he,O+=he,W-=he}W>this.s&&(W=this.s);const j=this._context.viewModel.getViewLineData(R.lineNumber),F=j.tokens.findTokenIndexAtOffset(R.column-1),U=j.tokens.findTokenIndexAtOffset(P.column-1),Q=F===U,se=this.z.definePresentation(Q?j.tokens.getPresentation(F):null);this.textArea.domNode.scrollTop=T*this.v,this.textArea.domNode.scrollLeft=O,this.S({lastRenderPosition:null,top:A,left:B,width:W,height:this.v,useCover:!1,color:(l.TokenizationRegistry.getColorMap()||[])[se.foreground],italic:se.italic,bold:se.bold,underline:se.underline,strikethrough:se.strikethrough})}return}if(!this.O){this.R();return}const k=this.p+this.O.left-this.c;if(k<this.p||k>this.p+this.s){this.R();return}const D=this._context.viewLayout.getVerticalOffsetForLineNumber(this.B[0].positionLineNumber)-this.g;if(D<0||D>this.t){this.R();return}if(I.isMacintosh){this.S({lastRenderPosition:this.N,top:D,left:this.m?this.p:k,width:this.n,height:this.v,useCover:!1}),this.textArea.domNode.scrollLeft=this.O.left;const M=(y=this.F.textAreaState.newlineCountBeforeSelection)!==null&&y!==void 0?y:this.Q(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));this.textArea.domNode.scrollTop=M*this.v;return}this.S({lastRenderPosition:this.N,top:D,left:this.m?this.p:k,width:this.n,height:w?0:1,useCover:!1})}Q(y){let k=0,D=-1;do{if(D=y.indexOf(`
|
||
`,D+1),D===-1)break;k++}while(!0);return k}R(){this.S({lastRenderPosition:null,top:0,left:0,width:this.n,height:w?0:1,useCover:!0})}S(y){this.D=y.lastRenderPosition;const k=this.textArea,D=this.textAreaCover;(0,S.applyFontInfo)(k,this.u),k.setTop(y.top),k.setLeft(y.left),k.setWidth(y.width),k.setHeight(y.height),k.setColor(y.color?o.Color.Format.CSS.formatHex(y.color):""),k.setFontStyle(y.italic?"italic":""),y.bold&&k.setFontWeight("bold"),k.setTextDecoration(`${y.underline?" underline":""}${y.strikethrough?" line-through":""}`),D.setTop(y.useCover?y.top:0),D.setLeft(y.useCover?y.left:0),D.setWidth(y.useCover?y.width:0),D.setHeight(y.useCover?y.height:0);const M=this._context.configuration.options;M.get(54)?D.setClassName("monaco-editor-background textAreaCover "+t.Margin.OUTER_CLASS_NAME):M.get(64).renderType!==0?D.setClassName("monaco-editor-background textAreaCover "+i.LineNumbersOverlay.CLASS_NAME):D.setClassName("monaco-editor-background textAreaCover")}}e.TextAreaHandler=m;function p(b,y,k){if(b.length===0)return 0;const D=document.createElement("div");D.style.position="absolute",D.style.top="-50000px",D.style.width="50000px";const M=document.createElement("span");(0,S.applyFontInfo)(M,y),M.style.whiteSpace="pre",M.style.tabSize=`${k*y.spaceWidth}px`,M.append(b),D.appendChild(M),document.body.appendChild(D);const z=M.offsetWidth;return document.body.removeChild(D),z}}),define(_[788],ee([1,0,35,36,51,12,26,71,82]),function(q,e,C,N,E,I,L,S,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DecorationsOverviewRuler=void 0;class f{constructor(t,n){const a=t.options;this.lineHeight=a.get(63),this.pixelRatio=a.get(136),this.overviewRulerLanes=a.get(79),this.renderBorder=a.get(78);const r=n.getColor(S.editorOverviewRulerBorder);this.borderColor=r?r.toString():null,this.hideCursor=a.get(56);const c=n.getColor(S.editorCursorForeground);this.cursorColor=c?c.transparent(.7).toString():null,this.themeType=n.type;const d=a.get(69),s=d.enabled,l=d.side,o=n.getColor(S.editorOverviewRulerBackground),u=L.TokenizationRegistry.getDefaultBackground();o?this.backgroundColor=o:s&&l==="right"?this.backgroundColor=u:this.backgroundColor=null;const w=a.get(138).overviewRuler;this.top=w.top,this.right=w.right,this.domWidth=w.width,this.domHeight=w.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[m,p]=this.a(1,this.canvasWidth,this.overviewRulerLanes);this.x=m,this.w=p}a(t,n,a){const r=n-t;if(a>=3){const c=Math.floor(r/3),d=Math.floor(r/3),s=r-c-d,l=t,o=l+c,u=l+c+s;return[[0,l,o,l,u,l,o,l],[0,c,s,c+s,d,c+s+d,s+d,c+s+d]]}else if(a===2){const c=Math.floor(r/2),d=r-c,s=t,l=s+c;return[[0,s,s,s,l,s,s,s],[0,c,c,c,d,c+d,c+d,c+d]]}else{const c=t,d=r;return[[0,c,c,c,c,c,c,c],[0,d,d,d,d,d,d,d]]}}equals(t){return this.lineHeight===t.lineHeight&&this.pixelRatio===t.pixelRatio&&this.overviewRulerLanes===t.overviewRulerLanes&&this.renderBorder===t.renderBorder&&this.borderColor===t.borderColor&&this.hideCursor===t.hideCursor&&this.cursorColor===t.cursorColor&&this.themeType===t.themeType&&N.Color.equals(this.backgroundColor,t.backgroundColor)&&this.top===t.top&&this.right===t.right&&this.domWidth===t.domWidth&&this.domHeight===t.domHeight&&this.canvasWidth===t.canvasWidth&&this.canvasHeight===t.canvasHeight}}class g extends E.ViewPart{constructor(t){super(t),this.b=(0,C.createFastDomNode)(document.createElement("canvas")),this.b.setClassName("decorationsOverviewRuler"),this.b.setPosition("absolute"),this.b.setLayerHinting(!0),this.b.setContain("strict"),this.b.setAttribute("aria-hidden","true"),this.j(!1),this.a=L.TokenizationRegistry.onDidChange(n=>{n.changedColorMap&&this.j(!0)}),this.g=[]}dispose(){super.dispose(),this.a.dispose()}j(t){const n=new f(this._context.configuration,this._context.theme);return this.c&&this.c.equals(n)?!1:(this.c=n,this.b.setTop(this.c.top),this.b.setRight(this.c.right),this.b.setWidth(this.c.domWidth),this.b.setHeight(this.c.domHeight),this.b.domNode.width=this.c.canvasWidth,this.b.domNode.height=this.c.canvasHeight,t&&this.k(),!0)}onConfigurationChanged(t){return this.j(!1)}onCursorStateChanged(t){this.g=[];for(let n=0,a=t.selections.length;n<a;n++)this.g[n]=t.selections[n].getPosition();return this.g.sort(I.Position.compare),!0}onDecorationsChanged(t){return!!t.affectsOverviewRuler}onFlushed(t){return!0}onScrollChanged(t){return t.scrollHeightChanged}onZonesChanged(t){return!0}onThemeChanged(t){return this.j(!1)}getDomNode(){return this.b.domNode}prepareRender(t){}render(t){this.k()}k(){const t=this.c.backgroundColor;if(this.c.overviewRulerLanes===0){this.b.setBackgroundColor(t?N.Color.Format.CSS.formatHexA(t):""),this.b.setDisplay("none");return}this.b.setDisplay("block");const n=this.c.canvasWidth,a=this.c.canvasHeight,r=this.c.lineHeight,c=this._context.viewLayout,d=this._context.viewLayout.getScrollHeight(),s=a/d,l=this._context.viewModel.getAllOverviewRulerDecorations(this._context.theme),o=6*this.c.pixelRatio|0,u=o/2|0,h=this.b.domNode.getContext("2d");t?t.isOpaque()?(h.fillStyle=N.Color.Format.CSS.formatHexA(t),h.fillRect(0,0,n,a)):(h.clearRect(0,0,n,a),h.fillStyle=N.Color.Format.CSS.formatHexA(t),h.fillRect(0,0,n,a)):h.clearRect(0,0,n,a);const w=this.c.x,m=this.c.w;l.sort(v.OverviewRulerDecorationsGroup.cmp);for(const p of l){const b=p.color,y=p.data;h.fillStyle=b;let k=0,D=0,M=0;for(let z=0,R=y.length/3;z<R;z++){const P=y[3*z],A=y[3*z+1],T=y[3*z+2];let O=c.getVerticalOffsetForLineNumber(A)*s|0,B=(c.getVerticalOffsetForLineNumber(T)+r)*s|0;if(B-O<o){let j=(O+B)/2|0;j<u?j=u:j+u>a&&(j=a-u),O=j-u,B=j+u}O>M+1||P!==k?(z!==0&&h.fillRect(w[k],D,m[k],M-D),k=P,D=O,M=B):B>M&&(M=B)}h.fillRect(w[k],D,m[k],M-D)}if(!this.c.hideCursor&&this.c.cursorColor){const p=2*this.c.pixelRatio|0,b=p/2|0,y=this.c.x[7],k=this.c.w[7];h.fillStyle=this.c.cursorColor;let D=-100,M=-100;for(let z=0,R=this.g.length;z<R;z++){const P=this.g[z];let A=c.getVerticalOffsetForLineNumber(P.lineNumber)*s|0;A<b?A=b:A+b>a&&(A=a-b);const T=A-b,O=T+p;T>M+1?(z!==0&&h.fillRect(y,D,k,M-D),D=T,M=O):O>M&&(M=O)}h.fillRect(y,D,k,M-D)}this.c.renderBorder&&this.c.borderColor&&this.c.overviewRulerLanes>0&&(h.beginPath(),h.lineWidth=1,h.strokeStyle=this.c.borderColor,h.moveTo(0,0),h.lineTo(0,a),h.stroke(),h.moveTo(0,0),h.lineTo(n,0),h.stroke())}}e.DecorationsOverviewRuler=g}),define(_[789],ee([1,0,35,11,51,571,40,71,23,91,388]),function(q,e,C,N,E,I,L,S,v,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewCursors=void 0;class g extends E.ViewPart{constructor(t){super(t);const n=this._context.configuration.options;this.a=n.get(86),this.b=n.get(23),this.c=n.get(25),this.g=n.get(24),this.j=!0,this.k=!1,this.m=!1,this.v=new I.ViewCursor(this._context),this.w=[],this.y=[],this.n=(0,C.createFastDomNode)(document.createElement("div")),this.n.setAttribute("role","presentation"),this.n.setAttribute("aria-hidden","true"),this.D(),this.n.appendChild(this.v.getDomNode()),this.p=new N.TimeoutTimer,this.s=new N.IntervalTimer,this.t=!1,this.u=!1,this.C()}dispose(){super.dispose(),this.p.dispose(),this.s.dispose()}getDomNode(){return this.n}onCompositionStart(t){return this.k=!0,this.C(),!0}onCompositionEnd(t){return this.k=!1,this.C(),!0}onConfigurationChanged(t){const n=this._context.configuration.options;this.a=n.get(86),this.b=n.get(23),this.c=n.get(25),this.g=n.get(24),this.C(),this.D(),this.v.onConfigurationChanged(t);for(let a=0,r=this.w.length;a<r;a++)this.w[a].onConfigurationChanged(t);return!0}z(t,n,a){const r=this.w.length!==n.length||this.g==="explicit"&&a!==3;if(this.v.onCursorPositionChanged(t,r),this.C(),this.w.length<n.length){const c=n.length-this.w.length;for(let d=0;d<c;d++){const s=new I.ViewCursor(this._context);this.n.domNode.insertBefore(s.getDomNode().domNode,this.v.getDomNode().domNode.nextSibling),this.w.push(s)}}else if(this.w.length>n.length){const c=this.w.length-n.length;for(let d=0;d<c;d++)this.n.removeChild(this.w[0].getDomNode()),this.w.splice(0,1)}for(let c=0;c<n.length;c++)this.w[c].onCursorPositionChanged(n[c],r)}onCursorStateChanged(t){const n=[];for(let r=0,c=t.selections.length;r<c;r++)n[r]=t.selections[r].getPosition();this.z(n[0],n.slice(1),t.reason);const a=t.selections[0].isEmpty();return this.j!==a&&(this.j=a,this.D()),!0}onDecorationsChanged(t){return!0}onFlushed(t){return!0}onFocusChanged(t){return this.u=t.isFocused,this.C(),!1}onLinesChanged(t){return!0}onLinesDeleted(t){return!0}onLinesInserted(t){return!0}onScrollChanged(t){return!0}onTokensChanged(t){const n=a=>{for(let r=0,c=t.ranges.length;r<c;r++)if(t.ranges[r].fromLineNumber<=a.lineNumber&&a.lineNumber<=t.ranges[r].toLineNumber)return!0;return!1};if(n(this.v.getPosition()))return!0;for(const a of this.w)if(n(a.getPosition()))return!0;return!1}onZonesChanged(t){return!0}B(){return this.k||!this.u?0:this.a?5:this.b}C(){this.p.cancel(),this.s.cancel();const t=this.B(),n=t===0,a=t===5;n?this.H():this.G(),this.t=!1,this.D(),!n&&!a&&(t===1?this.s.cancelAndSet(()=>{this.m?this.H():this.G()},g.BLINK_INTERVAL):this.p.setIfNotSet(()=>{this.t=!0,this.D()},g.BLINK_INTERVAL))}D(){this.n.setClassName(this.F())}F(){let t="cursors-layer";switch(this.j||(t+=" has-selection"),this.c){case L.TextEditorCursorStyle.Line:t+=" cursor-line-style";break;case L.TextEditorCursorStyle.Block:t+=" cursor-block-style";break;case L.TextEditorCursorStyle.Underline:t+=" cursor-underline-style";break;case L.TextEditorCursorStyle.LineThin:t+=" cursor-line-thin-style";break;case L.TextEditorCursorStyle.BlockOutline:t+=" cursor-block-outline-style";break;case L.TextEditorCursorStyle.UnderlineThin:t+=" cursor-underline-thin-style";break;default:t+=" cursor-line-style"}if(this.t)switch(this.B()){case 1:t+=" cursor-blink";break;case 2:t+=" cursor-smooth";break;case 3:t+=" cursor-phase";break;case 4:t+=" cursor-expand";break;case 5:t+=" cursor-solid";break;default:t+=" cursor-solid"}else t+=" cursor-solid";return(this.g==="on"||this.g==="explicit")&&(t+=" cursor-smooth-caret-animation"),t}G(){this.v.show();for(let t=0,n=this.w.length;t<n;t++)this.w[t].show();this.m=!0}H(){this.v.hide();for(let t=0,n=this.w.length;t<n;t++)this.w[t].hide();this.m=!1}prepareRender(t){this.v.prepareRender(t);for(let n=0,a=this.w.length;n<a;n++)this.w[n].prepareRender(t)}render(t){const n=[];let a=0;const r=this.v.render(t);r&&(n[a++]=r);for(let c=0,d=this.w.length;c<d;c++){const s=this.w[c].render(t);s&&(n[a++]=s)}this.y=n}getLastRenderData(){return this.y}}g.BLINK_INTERVAL=500,e.ViewCursors=g,(0,v.registerThemingParticipant)((i,t)=>{const n=i.getColor(S.editorCursorForeground);if(n){let a=i.getColor(S.editorCursorBackground);a||(a=n.opposite()),t.addRule(`.monaco-editor .cursors-layer .cursor { background-color: ${n}; border-color: ${n}; color: ${a}; }`),(0,f.isHighContrast)(i.type)&&t.addRule(`.monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid ${a}; border-right: 1px solid ${a}; }`)}})}),define(_[790],ee([1,0,105,9,107,12,71,389]),function(q,e,C,N,E,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WhitespaceOverlay=void 0;class S extends C.DynamicViewOverlay{constructor(g){super(),this.a=g,this.b=new v(this.a.configuration),this.c=[],this.g=null,this.a.addEventHandler(this)}dispose(){this.a.removeEventHandler(this),this.g=null,super.dispose()}onConfigurationChanged(g){const i=new v(this.a.configuration);return this.b.equals(i)?g.hasChanged(138):(this.b=i,!0)}onCursorStateChanged(g){return this.c=g.selections,this.b.renderWhitespace==="selection"}onDecorationsChanged(g){return!0}onFlushed(g){return!0}onLinesChanged(g){return!0}onLinesDeleted(g){return!0}onLinesInserted(g){return!0}onScrollChanged(g){return g.scrollTopChanged}onZonesChanged(g){return!0}prepareRender(g){if(this.b.renderWhitespace==="none"){this.g=null;return}const i=g.visibleRange.startLineNumber,n=g.visibleRange.endLineNumber-i+1,a=new Array(n);for(let c=0;c<n;c++)a[c]=!0;const r=this.a.viewModel.getMinimapLinesRenderingData(g.viewportData.startLineNumber,g.viewportData.endLineNumber,a);this.g=[];for(let c=g.viewportData.startLineNumber;c<=g.viewportData.endLineNumber;c++){const d=c-g.viewportData.startLineNumber,s=r.data[d];let l=null;if(this.b.renderWhitespace==="selection"){const o=this.c;for(const u of o){if(u.endLineNumber<c||u.startLineNumber>c)continue;const h=u.startLineNumber===c?u.startColumn:s.minColumn,w=u.endLineNumber===c?u.endColumn:s.maxColumn;h<w&&(l||(l=[]),l.push(new E.LineRange(h-1,w-1)))}}this.g[d]=this.j(g,c,l,s)}}j(g,i,t,n){if(this.b.renderWhitespace==="selection"&&!t||this.b.renderWhitespace==="trailing"&&n.continuesWithWrappedLine)return"";const a=this.a.theme.getColor(L.editorWhitespaces),r=this.b.renderWithSVG,c=n.content,d=this.b.stopRenderingLineAfter===-1?c.length:Math.min(this.b.stopRenderingLineAfter,c.length),s=n.continuesWithWrappedLine,l=n.minColumn-1,o=this.b.renderWhitespace==="boundary",u=this.b.renderWhitespace==="trailing",h=this.b.lineHeight,w=this.b.middotWidth,m=this.b.wsmiddotWidth,p=this.b.spaceWidth,b=Math.abs(m-p),y=Math.abs(w-p),k=b<y?11825:183,D=this.b.canUseHalfwidthRightwardsArrow;let M="",z=!1,R=N.firstNonWhitespaceIndex(c),P;R===-1?(z=!0,R=d,P=d):P=N.lastNonWhitespaceIndex(c);let A=0,T=t&&t[A],O=0;for(let B=l;B<d;B++){const W=c.charCodeAt(B);if(T&&B>=T.endOffset&&(A++,T=t&&t[A]),W!==9&&W!==32||u&&!z&&B<=P)continue;if(o&&B>=R&&B<=P&&W===32){const F=B-1>=0?c.charCodeAt(B-1):0,U=B+1<d?c.charCodeAt(B+1):0;if(F!==32&&U!==32)continue}if(o&&s&&B===d-1){const F=B-1>=0?c.charCodeAt(B-1):0;if(W===32&&F!==32&&F!==9)continue}if(t&&(!T||T.startOffset>B||T.endOffset<=B))continue;const j=g.visibleRangeForPosition(new I.Position(i,B+1));!j||(r?(O=Math.max(O,j.left),W===9?M+=this.k(h,p,j.left):M+=`<circle cx="${(j.left+p/2).toFixed(2)}" cy="${(h/2).toFixed(2)}" r="${(p/7).toFixed(2)}" />`):W===9?M+=`<div class="mwh" style="left:${j.left}px;height:${h}px;">${D?String.fromCharCode(65515):String.fromCharCode(8594)}</div>`:M+=`<div class="mwh" style="left:${j.left}px;height:${h}px;">${String.fromCharCode(k)}</div>`)}return r?(O=Math.round(O+p),`<svg style="position:absolute;width:${O}px;height:${h}px" viewBox="0 0 ${O} ${h}" xmlns="http://www.w3.org/2000/svg" fill="${a}">`+M+"</svg>"):M}k(g,i,t){const n=i/7,a=i,r=g/2,c=t,d={x:0,y:n/2},s={x:100/125*a,y:d.y},l={x:s.x-.2*s.x,y:s.y+.2*s.x},o={x:l.x+.1*s.x,y:l.y+.1*s.x},u={x:o.x+.35*s.x,y:o.y-.35*s.x},h={x:u.x,y:-u.y},w={x:o.x,y:-o.y},m={x:l.x,y:-l.y},p={x:s.x,y:-s.y},b={x:d.x,y:-d.y};return`<path d="M ${[d,s,l,o,u,h,w,m,p,b].map(D=>`${(c+D.x).toFixed(2)} ${(r+D.y).toFixed(2)}`).join(" L ")}" />`}render(g,i){if(!this.g)return"";const t=i-g;return t<0||t>=this.g.length?"":this.g[t]}}e.WhitespaceOverlay=S;class v{constructor(g){const i=g.options,t=i.get(47),n=i.get(35);n==="off"?(this.renderWhitespace="none",this.renderWithSVG=!1):n==="svg"?(this.renderWhitespace=i.get(93),this.renderWithSVG=!0):(this.renderWhitespace=i.get(93),this.renderWithSVG=!1),this.spaceWidth=t.spaceWidth,this.middotWidth=t.middotWidth,this.wsmiddotWidth=t.wsmiddotWidth,this.canUseHalfwidthRightwardsArrow=t.canUseHalfwidthRightwardsArrow,this.lineHeight=i.get(63),this.stopRenderingLineAfter=i.get(111)}equals(g){return this.renderWhitespace===g.renderWhitespace&&this.renderWithSVG===g.renderWithSVG&&this.spaceWidth===g.spaceWidth&&this.middotWidth===g.middotWidth&&this.wsmiddotWidth===g.wsmiddotWidth&&this.canUseHalfwidthRightwardsArrow===g.canUseHalfwidthRightwardsArrow&&this.lineHeight===g.lineHeight&&this.stopRenderingLineAfter===g.stopRenderingLineAfter}}}),define(_[791],ee([1,0,7,22,35,13,780,787,731,246,545,51,542,785,475,783,193,786,319,781,476,261,477,765,478,788,487,479,480,784,789,481,12,130,488,484,134,23,318,474,237,790]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s,l,o,u,h,w,m,p,b,y,k,D,M,z,R,P,A,T,O,B,W,j,F,U){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.View=void 0;class Q extends O.ViewEventHandler{constructor(ie,ue,J,x,G,te){super(),this.c=[new N.Selection(1,1,1,1)],this.v=null;const Z=new v.ViewController(ue,x,G,ie);this.b=new A.ViewContext(ue,J,x),this.b.addEventHandler(this),this.p=[],this.r=new S.TextAreaHandler(this.b,Z,this.z()),this.p.push(this.r),this.t=(0,E.createFastDomNode)(document.createElement("div")),this.t.setClassName("lines-content monaco-editor-background"),this.t.setPosition("absolute"),this.domNode=(0,E.createFastDomNode)(document.createElement("div")),this.domNode.setClassName(this.C()),this.domNode.setAttribute("role","code"),this.u=(0,E.createFastDomNode)(document.createElement("div")),i.PartFingerprints.write(this.u,3),this.u.setClassName("overflow-guard"),this.a=new r.EditorScrollbar(this.b,this.t,this.domNode,this.u),this.p.push(this.a),this.g=new l.ViewLines(this.b,this.t),this.j=new z.ViewZones(this.b),this.p.push(this.j);const ae=new p.DecorationsOverviewRuler(this.b);this.p.push(ae);const de=new k.ScrollDecorationViewPart(this.b);this.p.push(de);const K=new g.ContentViewOverlays(this.b);this.p.push(K),K.addDynamicOverlay(new n.CurrentLineHighlightOverlay(this.b)),K.addDynamicOverlay(new D.SelectionsOverlay(this.b)),K.addDynamicOverlay(new d.IndentGuidesOverlay(this.b)),K.addDynamicOverlay(new a.DecorationsOverlay(this.b)),K.addDynamicOverlay(new U.WhitespaceOverlay(this.b));const Y=new g.MarginViewOverlays(this.b);this.p.push(Y),Y.addDynamicOverlay(new n.CurrentLineMarginHighlightOverlay(this.b)),Y.addDynamicOverlay(new c.GlyphMarginOverlay(this.b)),Y.addDynamicOverlay(new h.MarginViewLineDecorationsOverlay(this.b)),Y.addDynamicOverlay(new o.LinesDecorationsOverlay(this.b)),Y.addDynamicOverlay(new s.LineNumbersOverlay(this.b));const ne=new u.Margin(this.b);ne.getDomNode().appendChild(this.j.marginDomNode),ne.getDomNode().appendChild(Y.getDomNode()),this.p.push(ne),this.k=new t.ViewContentWidgets(this.b,this.domNode),this.p.push(this.k),this.n=new M.ViewCursors(this.b),this.p.push(this.n),this.m=new m.ViewOverlayWidgets(this.b),this.p.push(this.m);const V=new y.Rulers(this.b);this.p.push(V);const H=new j.BlockDecorations(this.b);this.p.push(H);const $=new w.Minimap(this.b);if(this.p.push($),ae){const oe=this.a.getOverviewRulerLayoutInfo();oe.parent.insertBefore(ae.getDomNode(),oe.insertBefore)}this.t.appendChild(K.getDomNode()),this.t.appendChild(V.domNode),this.t.appendChild(H.domNode),this.t.appendChild(this.j.domNode),this.t.appendChild(this.g.getDomNode()),this.t.appendChild(this.k.domNode),this.t.appendChild(this.n.getDomNode()),this.u.appendChild(ne.getDomNode()),this.u.appendChild(this.a.getDomNode()),this.u.appendChild(de.getDomNode()),this.u.appendChild(this.r.textArea),this.u.appendChild(this.r.textAreaCover),this.u.appendChild(this.m.getDomNode()),this.u.appendChild($.getDomNode()),this.domNode.appendChild(this.u),te?te.appendChild(this.k.overflowingContentWidgetsDomNode.domNode):this.domNode.appendChild(this.k.overflowingContentWidgetsDomNode),this.B(),this.s=this.q(new L.PointerHandler(this.b,Z,this.y()))}w(){F.inputLatency.onRenderStart(),this.G()}y(){return{viewDomNode:this.domNode.domNode,linesContentDomNode:this.t.domNode,viewLinesDomNode:this.g.getDomNode().domNode,focusTextArea:()=>{this.focus()},dispatchTextAreaEvent:ie=>{this.r.textArea.domNode.dispatchEvent(ie)},getLastRenderData:()=>{const ie=this.n.getLastRenderData()||[],ue=this.r.getLastRenderData();return new W.PointerHandlerLastRenderData(ie,ue)},renderNow:()=>{this.render(!0,!1)},shouldSuppressMouseDownOnViewZone:ie=>this.j.shouldSuppressMouseDownOnViewZone(ie),shouldSuppressMouseDownOnWidget:ie=>this.k.shouldSuppressMouseDownOnWidget(ie),getPositionFromDOMInfo:(ie,ue)=>(this.w(),this.g.getPositionFromDOMInfo(ie,ue)),visibleRangeForPosition:(ie,ue)=>(this.w(),this.g.visibleRangeForPosition(new R.Position(ie,ue))),getLineWidth:ie=>(this.w(),this.g.getLineWidth(ie))}}z(){return{visibleRangeForPosition:ie=>(this.w(),this.g.visibleRangeForPosition(ie))}}B(){const ue=this.b.configuration.options.get(138);this.domNode.setWidth(ue.width),this.domNode.setHeight(ue.height),this.u.setWidth(ue.width),this.u.setHeight(ue.height),this.t.setWidth(1e6),this.t.setHeight(1e6)}C(){const ie=this.r.isFocused()?" focused":"";return this.b.configuration.options.get(135)+" "+(0,B.getThemeTypeSelector)(this.b.theme.type)+ie}handleEvents(ie){super.handleEvents(ie),this.D()}onConfigurationChanged(ie){return this.domNode.setClassName(this.C()),this.B(),!1}onCursorStateChanged(ie){return this.c=ie.selections,!1}onFocusChanged(ie){return this.domNode.setClassName(this.C()),!1}onThemeChanged(ie){return this.b.theme.update(ie.theme),this.domNode.setClassName(this.C()),!1}dispose(){this.v!==null&&(this.v.dispose(),this.v=null),this.k.overflowingContentWidgetsDomNode.domNode.remove(),this.b.removeEventHandler(this),this.g.dispose();for(const ie of this.p)ie.dispose();super.dispose()}D(){this.v===null&&(this.v=C.runAtThisOrScheduleAtNextAnimationFrame(this.F.bind(this),100))}F(){this.v=null,this.w()}G(){se(()=>this.I())}H(){const ie=[];let ue=0;for(const J of this.p)J.shouldRender()&&(ie[ue++]=J);return ie}I(){if(!C.isInDOM(this.domNode.domNode))return;let ie=this.H();if(!this.g.shouldRender()&&ie.length===0)return;const ue=this.b.viewLayout.getLinesViewportData();this.b.viewModel.setViewport(ue.startLineNumber,ue.endLineNumber,ue.centeredLineNumber);const J=new T.ViewportData(this.c,ue,this.b.viewLayout.getWhitespaceViewportData(),this.b.viewModel);this.k.shouldRender()&&this.k.onBeforeRender(J),this.g.shouldRender()&&(this.g.renderText(J),this.g.onDidRender(),ie=this.H());const x=new P.RenderingContext(this.b.viewLayout,J,this.g);for(const G of ie)G.prepareRender(x);for(const G of ie)G.render(x),G.onDidRender()}delegateVerticalScrollbarPointerDown(ie){this.a.delegateVerticalScrollbarPointerDown(ie)}delegateScrollFromMouseWheelEvent(ie){this.a.delegateScrollFromMouseWheelEvent(ie)}restoreState(ie){this.b.viewModel.viewLayout.setScrollPosition({scrollTop:ie.scrollTop,scrollLeft:ie.scrollLeft},1),this.b.viewModel.tokenizeViewport()}getOffsetForColumn(ie,ue){const J=this.b.viewModel.model.validatePosition({lineNumber:ie,column:ue}),x=this.b.viewModel.coordinatesConverter.convertModelPositionToViewPosition(J);this.w();const G=this.g.visibleRangeForPosition(new R.Position(x.lineNumber,x.column));return G?G.left:-1}getTargetAtClientPoint(ie,ue){const J=this.s.getTargetAtClientPoint(ie,ue);return J?f.ViewUserInputEvents.convertViewToModelMouseTarget(J,this.b.viewModel.coordinatesConverter):null}createOverviewRuler(ie){return new b.OverviewRuler(this.b,ie)}change(ie){this.j.changeViewZones(ie),this.D()}render(ie,ue){if(ue){this.g.forceShouldRender();for(const J of this.p)J.forceShouldRender()}ie?this.w():this.D()}writeScreenReaderContent(ie){this.r.writeScreenReaderContent(ie)}focus(){this.r.focusTextArea()}isFocused(){return this.r.isFocused()}setAriaOptions(ie){this.r.setAriaOptions(ie)}addContentWidget(ie){this.k.addWidget(ie.widget),this.layoutContentWidget(ie),this.D()}layoutContentWidget(ie){var ue,J,x,G,te,Z,ae,de;this.k.setWidgetPosition(ie.widget,(J=(ue=ie.position)===null||ue===void 0?void 0:ue.position)!==null&&J!==void 0?J:null,(G=(x=ie.position)===null||x===void 0?void 0:x.secondaryPosition)!==null&&G!==void 0?G:null,(Z=(te=ie.position)===null||te===void 0?void 0:te.preference)!==null&&Z!==void 0?Z:null,(de=(ae=ie.position)===null||ae===void 0?void 0:ae.positionAffinity)!==null&&de!==void 0?de:null),this.D()}removeContentWidget(ie){this.k.removeWidget(ie.widget),this.D()}addOverlayWidget(ie){this.m.addWidget(ie.widget),this.layoutOverlayWidget(ie),this.D()}layoutOverlayWidget(ie){const ue=ie.position?ie.position.preference:null;this.m.setWidgetPosition(ie.widget,ue)&&this.D()}removeOverlayWidget(ie){this.m.removeWidget(ie.widget),this.D()}}e.View=Q;function se(he){try{return he()}catch(ie){(0,I.onUnexpectedError)(ie)}}}),define(_[792],ee([1,0,6,2,4,71,23]),function(q,e,C,N,E,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColorizedBracketPairsDecorationProvider=void 0;class S extends N.Disposable{constructor(g){super(),this.h=g,this.b=new v,this.g=new C.Emitter,this.onDidChange=this.g.event,this.a=g.getOptions().bracketPairColorizationOptions,this.q(g.bracketPairs.onDidChange(i=>{this.g.fire()}))}handleDidChangeOptions(g){this.a=this.h.getOptions().bracketPairColorizationOptions}getDecorationsInRange(g,i,t,n){return n?[]:i===void 0?[]:this.a.enabled?this.h.bracketPairs.getBracketsInRange(g,!0).map(r=>({id:`bracket${r.range.toString()}-${r.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.b.getInlineClassName(r,this.a.independentColorPoolPerBracketType)},ownerId:0,range:r.range})).toArray():[]}getAllDecorations(g,i){return g===void 0?[]:this.a.enabled?this.getDecorationsInRange(new E.Range(1,1,this.h.getLineCount(),1),g,i):[]}}e.ColorizedBracketPairsDecorationProvider=S;class v{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(g,i){return g.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(i?g.nestingLevelOfEqualBracketType:g.nestingLevel)}getInlineClassNameOfLevel(g){return`bracket-highlighting-${g%30}`}}(0,L.registerThemingParticipant)((f,g)=>{const i=[I.editorBracketHighlightingForeground1,I.editorBracketHighlightingForeground2,I.editorBracketHighlightingForeground3,I.editorBracketHighlightingForeground4,I.editorBracketHighlightingForeground5,I.editorBracketHighlightingForeground6],t=new v;g.addRule(`.monaco-editor .${t.unexpectedClosingBracketClassName} { color: ${f.getColor(I.editorBracketHighlightingUnexpectedBracketForeground)}; }`);const n=i.map(a=>f.getColor(a)).filter(a=>!!a).filter(a=>!a.isTransparent());for(let a=0;a<30;a++){const r=n[a%n.length];g.addRule(`.monaco-editor .${t.getInlineClassNameOfLevel(a)} { color: ${r}; }`)}})}),define(_[793],ee([1,0,89,2,47,23,71,53,4,48,6,31,55]),function(q,e,C,N,E,I,L,S,v,f,g,i,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MarkerDecorationsService=void 0;class n extends N.Disposable{constructor(c){super(),this.model=c,this.a=new Map,this.q((0,N.toDisposable)(()=>{this.model.deltaDecorations([...this.a.keys()],[]),this.a.clear()}))}update(c,d){const s=[...this.a.keys()];this.a.clear();const l=this.model.deltaDecorations(s,d);for(let o=0;o<l.length;o++)this.a.set(l[o],c[o]);return s.length!==0||l.length!==0}getMarker(c){return this.a.get(c.id)}}let a=class extends N.Disposable{constructor(c,d){super(),this.c=d,this.a=this.q(new g.Emitter),this.b=new t.ResourceMap,c.getModels().forEach(s=>this.h(s)),this.q(c.onModelAdded(this.h,this)),this.q(c.onModelRemoved(this.i,this)),this.q(this.c.onMarkerChanged(this.g,this))}dispose(){super.dispose(),this.b.forEach(c=>c.dispose()),this.b.clear()}getMarker(c,d){const s=this.b.get(c);return s&&s.getMarker(d)||null}g(c){c.forEach(d=>{const s=this.b.get(d);s&&this.j(s)})}h(c){const d=new n(c);this.b.set(c.uri,d),this.j(d)}i(c){var d;const s=this.b.get(c.uri);s&&(s.dispose(),this.b.delete(c.uri)),(c.uri.scheme===f.Schemas.inMemory||c.uri.scheme===f.Schemas.internal||c.uri.scheme===f.Schemas.vscode)&&((d=this.c)===null||d===void 0||d.read({resource:c.uri}).map(l=>l.owner).forEach(l=>this.c.remove(l,[c.uri])))}j(c){const d=this.c.read({resource:c.model.uri,take:500}),s=d.map(l=>({range:this.k(c.model,l),options:this.l(l)}));c.update(d,s)&&this.a.fire(c.model)}k(c,d){let s=v.Range.lift(d);if(d.severity===C.MarkerSeverity.Hint&&!this.m(d,1)&&!this.m(d,2)&&(s=s.setEndPosition(s.startLineNumber,s.startColumn+2)),s=c.validateRange(s),s.isEmpty()){const l=c.getLineLastNonWhitespaceColumn(s.startLineNumber)||c.getLineMaxColumn(s.startLineNumber);if(l===1||s.endColumn>=l)return s;const o=c.getWordAtPosition(s.getStartPosition());o&&(s=new v.Range(s.startLineNumber,o.startColumn,s.endLineNumber,o.endColumn))}else if(d.endColumn===Number.MAX_VALUE&&d.startColumn===1&&s.startLineNumber===s.endLineNumber){const l=c.getLineFirstNonWhitespaceColumn(d.startLineNumber);l<s.endColumn&&(s=new v.Range(s.startLineNumber,l,s.endLineNumber,s.endColumn),d.startColumn=l)}return s}l(c){let d,s,l,o,u;switch(c.severity){case C.MarkerSeverity.Hint:this.m(c,2)?d=void 0:this.m(c,1)?d="squiggly-unnecessary":d="squiggly-hint",l=0;break;case C.MarkerSeverity.Warning:d="squiggly-warning",s=(0,I.themeColorFromId)(L.overviewRulerWarning),l=20,u={color:(0,I.themeColorFromId)(i.minimapWarning),position:E.MinimapPosition.Inline};break;case C.MarkerSeverity.Info:d="squiggly-info",s=(0,I.themeColorFromId)(L.overviewRulerInfo),l=10;break;case C.MarkerSeverity.Error:default:d="squiggly-error",s=(0,I.themeColorFromId)(L.overviewRulerError),l=30,u={color:(0,I.themeColorFromId)(i.minimapError),position:E.MinimapPosition.Inline};break}return c.tags&&(c.tags.indexOf(1)!==-1&&(o="squiggly-inline-unnecessary"),c.tags.indexOf(2)!==-1&&(o="squiggly-inline-deprecated")),{description:"marker-decoration",stickiness:1,className:d,showIfCollapsed:!0,overviewRuler:{color:s,position:E.OverviewRulerLane.Right},minimap:u,zIndex:l,inlineClassName:o}}m(c,d){return c.tags?c.tags.indexOf(d)>=0:!1}};a=Ne([ge(0,S.IModelService),ge(1,C.IMarkerService)],a),e.MarkerDecorationsService=a}),define(_[232],ee([1,0,115,23,62,472,37]),function(q,e,C,N,E,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toMultilineTokens2=e.SemanticTokensProviderStyling=void 0;let S=class{constructor(t,n,a,r){this.e=t,this.f=n,this.g=a,this.h=r,this.b=!1,this.c=!1,this.d=!1,this.a=new g}getMetadata(t,n,a){const r=this.g.languageIdCodec.encodeLanguageId(a),c=this.a.get(t,n,r);let d;if(c)d=c.metadata,this.h.getLevel()===E.LogLevel.Trace&&this.h.trace(`SemanticTokensProviderStyling [CACHED] ${t} / ${n}: foreground ${C.TokenMetadata.getForeground(d)}, fontStyle ${C.TokenMetadata.getFontStyle(d).toString(2)}`);else{let s=this.e.tokenTypes[t];const l=[];if(s){let o=n;for(let h=0;o>0&&h<this.e.tokenModifiers.length;h++)o&1&&l.push(this.e.tokenModifiers[h]),o=o>>1;o>0&&this.h.getLevel()===E.LogLevel.Trace&&(this.h.trace(`SemanticTokensProviderStyling: unknown token modifier index: ${n.toString(2)} for legend: ${JSON.stringify(this.e.tokenModifiers)}`),l.push("not-in-legend"));const u=this.f.getColorTheme().getTokenStyleMetadata(s,l,a);typeof u>"u"?d=2147483647:(d=0,typeof u.italic<"u"&&(d|=(u.italic?1:0)<<11|1),typeof u.bold<"u"&&(d|=(u.bold?2:0)<<11|2),typeof u.underline<"u"&&(d|=(u.underline?4:0)<<11|4),typeof u.strikethrough<"u"&&(d|=(u.strikethrough?8:0)<<11|8),u.foreground&&(d|=u.foreground<<15|16),d===0&&(d=2147483647))}else this.h.getLevel()===E.LogLevel.Trace&&this.h.trace(`SemanticTokensProviderStyling: unknown token type index: ${t} for legend: ${JSON.stringify(this.e.tokenTypes)}`),d=2147483647,s="not-in-legend";this.a.add(t,n,r,d),this.h.getLevel()===E.LogLevel.Trace&&this.h.trace(`SemanticTokensProviderStyling ${t} (${s}) / ${n} (${l.join(" ")}): foreground ${C.TokenMetadata.getForeground(d)}, fontStyle ${C.TokenMetadata.getFontStyle(d).toString(2)}`)}return d}warnOverlappingSemanticTokens(t,n){this.b||(this.b=!0,console.warn(`Overlapping semantic tokens detected at lineNumber ${t}, column ${n}`))}warnInvalidLengthSemanticTokens(t,n){this.c||(this.c=!0,console.warn(`Semantic token with invalid length detected at lineNumber ${t}, column ${n}`))}warnInvalidEditStart(t,n,a,r,c){this.d||(this.d=!0,console.warn(`Invalid semantic tokens edit detected (previousResultId: ${t}, resultId: ${n}) at edit #${a}: The provided start offset ${r} is outside the previous data (length ${c}).`))}};S=Ne([ge(1,N.IThemeService),ge(2,L.ILanguageService),ge(3,E.ILogService)],S),e.SemanticTokensProviderStyling=S;function v(i,t,n){const a=i.data,r=i.data.length/5|0,c=Math.max(Math.ceil(r/1024),400),d=[];let s=0,l=1,o=0;for(;s<r;){const u=s;let h=Math.min(u+c,r);if(h<r){let D=h;for(;D-1>u&&a[5*D]===0;)D--;if(D-1===u){let M=h;for(;M+1<r&&a[5*M]===0;)M++;h=M}else h=D}let w=new Uint32Array((h-u)*4),m=0,p=0,b=0,y=0;for(;s<h;){const D=5*s,M=a[D],z=a[D+1],R=l+M|0,P=M===0?o+z|0:z,A=a[D+2],T=P+A|0,O=a[D+3],B=a[D+4];if(T<=P)t.warnInvalidLengthSemanticTokens(R,P+1);else if(b===R&&y>P)t.warnOverlappingSemanticTokens(R,P+1);else{const W=t.getMetadata(O,B,n);W!==2147483647&&(p===0&&(p=R),w[m]=R-p,w[m+1]=P,w[m+2]=T,w[m+3]=W,m+=4,b=R,y=T)}l=R,o=P,s++}m!==w.length&&(w=w.subarray(0,m));const k=I.SparseMultilineTokens.create(p,w);d.push(k)}return d}e.toMultilineTokens2=v;class f{constructor(t,n,a,r){this.tokenTypeIndex=t,this.tokenModifierSet=n,this.languageId=a,this.metadata=r,this.next=null}}class g{constructor(){this.b=0,this.c=0,this.d=g.a[this.c],this.e=Math.round(this.c+1<g.a.length?2/3*this.d:0),this.f=[],g.g(this.f,this.d)}static g(t,n){for(let a=0;a<n;a++)t[a]=null}h(t,n){return(t<<5)-t+n|0}j(t,n,a){return this.h(this.h(t,n),a)%this.d}get(t,n,a){const r=this.j(t,n,a);let c=this.f[r];for(;c;){if(c.tokenTypeIndex===t&&c.tokenModifierSet===n&&c.languageId===a)return c;c=c.next}return null}add(t,n,a,r){if(this.b++,this.e!==0&&this.b>=this.e){const c=this.f;this.c++,this.d=g.a[this.c],this.e=Math.round(this.c+1<g.a.length?2/3*this.d:0),this.f=[],g.g(this.f,this.d);for(const d of c){let s=d;for(;s;){const l=s.next;s.next=null,this.k(s),s=l}}}this.k(new f(t,n,a,r))}k(t){const n=this.j(t.tokenTypeIndex,t.tokenModifierSet,t.languageId);t.next=this.f[n],this.f[n]=t}}g.a=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143]}),define(_[794],ee([1,0,2,37,23,62,232,220,49]),function(q,e,C,N,E,I,L,S,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticTokensStylingService=void 0;let f=class extends C.Disposable{constructor(i,t,n){super(),this.b=i,this.c=t,this.g=n,this.a=new WeakMap,this.q(this.b.onDidColorThemeChange(()=>{this.a=new WeakMap}))}getStyling(i){return this.a.has(i)||this.a.set(i,new L.SemanticTokensProviderStyling(i.getLegend(),this.b,this.g,this.c)),this.a.get(i)}};f=Ne([ge(0,E.IThemeService),ge(1,I.ILogService),ge(2,N.ILanguageService)],f),e.SemanticTokensStylingService=f,(0,v.registerSingleton)(S.ISemanticTokensStylingService,f,1)}),define(_[320],ee([1,0,92,2,18,161,47,71,23]),function(q,e,C,N,E,I,L,S,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractEditorNavigationQuickAccessProvider=void 0;class f{constructor(i){this.a=i,this.j=void 0}provide(i,t){var n;const a=new N.DisposableStore;i.canAcceptInBackground=!!(!((n=this.a)===null||n===void 0)&&n.canAcceptInBackground),i.matchOnLabel=i.matchOnDescription=i.matchOnDetail=i.sortByLabel=!1;const r=a.add(new N.MutableDisposable);return r.value=this.b(i,t),a.add(this.h(()=>{r.value=void 0,r.value=this.b(i,t)})),a}b(i,t){const n=new N.DisposableStore,a=this.i;if(a&&this.c(a)){const r={editor:a},c=(0,I.getCodeEditor)(a);if(c){let d=(0,E.withNullAsUndefined)(a.saveViewState());n.add(c.onDidChangeCursorPosition(()=>{d=(0,E.withNullAsUndefined)(a.saveViewState())})),r.restoreViewState=()=>{d&&a===this.i&&a.restoreViewState(d)},n.add((0,C.once)(t.onCancellationRequested)(()=>{var s;return(s=r.restoreViewState)===null||s===void 0?void 0:s.call(r)}))}n.add((0,N.toDisposable)(()=>this.clearDecorations(a))),n.add(this.d(r,i,t))}else n.add(this.e(i,t));return n}c(i){return!0}f({editor:i},t){i.setSelection(t.range),i.revealRangeInCenter(t.range,0),t.preserveFocus||i.focus()}g(i){var t;return(0,I.isDiffEditor)(i)?(t=i.getModel())===null||t===void 0?void 0:t.modified:i.getModel()}addDecorations(i,t){i.changeDecorations(n=>{const a=[];this.j&&(a.push(this.j.overviewRulerDecorationId),a.push(this.j.rangeHighlightId),this.j=void 0);const r=[{range:t,options:{description:"quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"quick-access-range-highlight-overview",overviewRuler:{color:(0,v.themeColorFromId)(S.overviewRulerRangeHighlight),position:L.OverviewRulerLane.Full}}}],[c,d]=n.deltaDecorations(a,r);this.j={rangeHighlightId:c,overviewRulerDecorationId:d}})}clearDecorations(i){const t=this.j;t&&(i.changeDecorations(n=>{n.deltaDecorations([t.overviewRulerDecorationId,t.rangeHighlightId],[])}),this.j=void 0)}}e.AbstractEditorNavigationQuickAccessProvider=f}),define(_[795],ee([1,0,2,161,320,632]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractGotoLineQuickAccessProvider=void 0;class L extends E.AbstractEditorNavigationQuickAccessProvider{constructor(){super({canAcceptInBackground:!0})}e(v){const f=(0,I.localize)(0,null);return v.items=[{label:f}],v.ariaLabel=f,C.Disposable.None}d(v,f,g){const i=v.editor,t=new C.DisposableStore;t.add(f.onDidAccept(r=>{const[c]=f.selectedItems;if(c){if(!this.p(i,c.lineNumber))return;this.f(v,{range:this.m(c.lineNumber,c.column),keyMods:f.keyMods,preserveFocus:r.inBackground}),r.inBackground||f.hide()}}));const n=()=>{const r=this.n(i,f.value.trim().substr(L.PREFIX.length)),c=this.o(i,r.lineNumber,r.column);if(f.items=[{lineNumber:r.lineNumber,column:r.column,label:c}],f.ariaLabel=c,!this.p(i,r.lineNumber)){this.clearDecorations(i);return}const d=this.m(r.lineNumber,r.column);i.revealRangeInCenter(d,0),this.addDecorations(i,d)};n(),t.add(f.onDidChangeValue(()=>n()));const a=(0,N.getCodeEditor)(i);return a&&a.getOptions().get(64).renderType===2&&(a.updateOptions({lineNumbers:"on"}),t.add((0,C.toDisposable)(()=>a.updateOptions({lineNumbers:"relative"})))),t}m(v=1,f=1){return{startLineNumber:v,startColumn:f,endLineNumber:v,endColumn:f}}n(v,f){const g=f.split(/,|:|#/).map(t=>parseInt(t,10)).filter(t=>!isNaN(t)),i=this.r(v)+1;return{lineNumber:g[0]>0?g[0]:i+g[0],column:g[1]}}o(v,f,g){if(this.p(v,f))return this.q(v,f,g)?(0,I.localize)(1,null,f,g):(0,I.localize)(2,null,f);const i=v.getPosition()||{lineNumber:1,column:1},t=this.r(v);return t>1?(0,I.localize)(3,null,i.lineNumber,i.column,t):(0,I.localize)(4,null,i.lineNumber,i.column)}p(v,f){return!f||typeof f!="number"?!1:f>0&&f<=this.r(v)}q(v,f,g){if(!g||typeof g!="number")return!1;const i=this.g(v);if(!i)return!1;const t={lineNumber:f,column:g};return i.validatePosition(t).equals(t)}r(v){var f,g;return(g=(f=this.g(v))===null||f===void 0?void 0:f.getLineCount())!==null&&g!==void 0?g:0}}L.PREFIX=":",e.AbstractGotoLineQuickAccessProvider=L}),define(_[796],ee([1,0,11,20,29,32,519,2,9,4,26,174,320,633,19,17]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractGotoSymbolQuickAccessProvider=void 0;let c=class ci extends t.AbstractEditorNavigationQuickAccessProvider{constructor(o,u,h=Object.create(null)){super(h),this.l=o,this.m=u,this.a=h,this.a.canAcceptInBackground=!0}e(o){return this.r(o,(0,n.localize)(0,null)),S.Disposable.None}d(o,u,h){const w=o.editor,m=this.g(w);return m?this.l.documentSymbolProvider.has(m)?this.t(o,m,u,h):this.q(o,m,u,h):S.Disposable.None}q(o,u,h,w){const m=new S.DisposableStore;return this.r(h,(0,n.localize)(1,null)),ye(this,void 0,void 0,function*(){!(yield this.s(u,m))||w.isCancellationRequested||m.add(this.t(o,u,h,w))}),m}r(o,u){o.items=[{label:u,index:0,kind:14}],o.ariaLabel=u}s(o,u){return ye(this,void 0,void 0,function*(){if(this.l.documentSymbolProvider.has(o))return!0;const h=new C.DeferredPromise,w=u.add(this.l.documentSymbolProvider.onDidChange(()=>{this.l.documentSymbolProvider.has(o)&&(w.dispose(),h.complete(!0))}));return u.add((0,S.toDisposable)(()=>h.complete(!1))),h.p})}t(o,u,h,w){var m;const p=o.editor,b=new S.DisposableStore;b.add(h.onDidAccept(M=>{const[z]=h.selectedItems;z&&z.range&&(this.f(o,{range:z.range.selection,keyMods:h.keyMods,preserveFocus:M.inBackground}),M.inBackground||h.hide())})),b.add(h.onDidTriggerItemButton(({item:M})=>{M&&M.range&&(this.f(o,{range:M.range.selection,keyMods:h.keyMods,forceSideBySide:!0}),h.hide())}));const y=this.x(u,w);let k;const D=M=>ye(this,void 0,void 0,function*(){k?.dispose(!0),h.busy=!1,k=new N.CancellationTokenSource(w),h.busy=!0;try{const z=(0,L.prepareQuery)(h.value.substr(ci.PREFIX.length).trim()),R=yield this.u(y,z,void 0,k.token);if(w.isCancellationRequested)return;if(R.length>0){if(h.items=R,M&&z.original.length===0){const P=(0,r.findLast)(R,A=>Boolean(A.type!=="separator"&&A.range&&f.Range.containsPosition(A.range.decoration,M)));P&&(h.activeItems=[P])}}else z.original.length>0?this.r(h,(0,n.localize)(2,null)):this.r(h,(0,n.localize)(3,null))}finally{w.isCancellationRequested||(h.busy=!1)}});return b.add(h.onDidChangeValue(()=>D(void 0))),D((m=p.getSelection())===null||m===void 0?void 0:m.getPosition()),b.add(h.onDidChangeActive(()=>{const[M]=h.activeItems;M&&M.range&&(p.revealRangeInCenter(M.range.selection,0),this.addDecorations(p,M.range.decoration))})),b}u(o,u,h,w){var m,p;return ye(this,void 0,void 0,function*(){const b=yield o;if(w.isCancellationRequested)return[];const y=u.original.indexOf(ci.SCOPE_PREFIX)===0,k=y?1:0;let D,M;u.values&&u.values.length>1?(D=(0,L.pieceToQuery)(u.values[0]),M=(0,L.pieceToQuery)(u.values.slice(1))):D=u;let z;const R=(p=(m=this.a)===null||m===void 0?void 0:m.openSideBySideDirection)===null||p===void 0?void 0:p.call(m);R&&(z=[{iconClass:R==="right"?I.ThemeIcon.asClassName(E.Codicon.splitHorizontal):I.ThemeIcon.asClassName(E.Codicon.splitVertical),tooltip:R==="right"?(0,n.localize)(4,null):(0,n.localize)(5,null)}]);const P=[];for(let O=0;O<b.length;O++){const B=b[O],W=(0,v.trim)(B.name),j=`$(${g.SymbolKinds.toIcon(B.kind).id}) ${W}`,F=j.length-W.length;let U=B.containerName;h?.extraContainerLabel&&(U?U=`${h.extraContainerLabel} \u2022 ${U}`:U=h.extraContainerLabel);let Q,se,he,ie;if(u.original.length>k){let J=!1;if(D!==u&&([Q,se]=(0,L.scoreFuzzy2)(j,Object.assign(Object.assign({},u),{values:void 0}),k,F),typeof Q=="number"&&(J=!0)),typeof Q!="number"&&([Q,se]=(0,L.scoreFuzzy2)(j,D,k,F),typeof Q!="number"))continue;if(!J&&M){if(U&&M.original.length>0&&([he,ie]=(0,L.scoreFuzzy2)(U,M)),typeof he!="number")continue;typeof Q=="number"&&(Q+=he)}}const ue=B.tags&&B.tags.indexOf(1)>=0;P.push({index:O,kind:B.kind,score:Q,label:j,ariaLabel:W,description:U,highlights:ue?void 0:{label:se,description:ie},range:{selection:f.Range.collapseToStart(B.selectionRange),decoration:B.range},strikethrough:ue,buttons:z})}const A=P.sort((O,B)=>y?this.w(O,B):this.v(O,B));let T=[];if(y){let j=function(){B&&typeof O=="number"&&W>0&&(B.label=(0,v.format)(s[O]||d,W))},O,B,W=0;for(const F of A)O!==F.kind?(j(),O=F.kind,W=1,B={type:"separator"},T.push(B)):W++,T.push(F);j()}else A.length>0&&(T=[{label:(0,n.localize)(6,null,P.length),type:"separator"},...A]);return T})}v(o,u){if(typeof o.score!="number"&&typeof u.score=="number")return 1;if(typeof o.score=="number"&&typeof u.score!="number")return-1;if(typeof o.score=="number"&&typeof u.score=="number"){if(o.score>u.score)return-1;if(o.score<u.score)return 1}return o.index<u.index?-1:o.index>u.index?1:0}w(o,u){const h=s[o.kind]||d,w=s[u.kind]||d,m=h.localeCompare(w);return m===0?this.v(o,u):m}x(o,u){return ye(this,void 0,void 0,function*(){const h=yield this.m.getOrCreate(o,u);return u.isCancellationRequested?[]:h.asListOfDocumentSymbols()})}};c.PREFIX="@",c.SCOPE_PREFIX=":",c.PREFIX_BY_CATEGORY=`${c.PREFIX}${c.SCOPE_PREFIX}`,c=Ne([ge(0,a.ILanguageFeaturesService),ge(1,i.IOutlineModelService)],c),e.AbstractGotoSymbolQuickAccessProvider=c;const d=(0,n.localize)(7,null),s={[5]:(0,n.localize)(8,null),[11]:(0,n.localize)(9,null),[8]:(0,n.localize)(10,null),[12]:(0,n.localize)(11,null),[4]:(0,n.localize)(12,null),[22]:(0,n.localize)(13,null),[23]:(0,n.localize)(14,null),[24]:(0,n.localize)(15,null),[10]:(0,n.localize)(16,null),[2]:(0,n.localize)(17,null),[3]:(0,n.localize)(18,null),[25]:(0,n.localize)(19,null),[1]:(0,n.localize)(20,null),[6]:(0,n.localize)(21,null),[9]:(0,n.localize)(22,null),[21]:(0,n.localize)(23,null),[14]:(0,n.localize)(24,null),[0]:(0,n.localize)(25,null),[17]:(0,n.localize)(26,null),[15]:(0,n.localize)(27,null),[16]:(0,n.localize)(28,null),[18]:(0,n.localize)(29,null),[19]:(0,n.localize)(30,null),[7]:(0,n.localize)(31,null),[13]:(0,n.localize)(32,null)}}),define(_[797],ee([1,0,2,12,636,15,38,31,23,414]),function(q,e,C,N,E,I,L,S,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RenameInputField=e.CONTEXT_RENAME_INPUT_VISIBLE=void 0,e.CONTEXT_RENAME_INPUT_VISIBLE=new I.RawContextKey("renameInputVisible",!1,(0,E.localize)(0,null));let f=class{constructor(i,t,n,a,r){this.i=i,this.j=t,this.k=n,this.l=a,this.h=new C.DisposableStore,this.allowEditorOverflow=!0,this.g=e.CONTEXT_RENAME_INPUT_VISIBLE.bindTo(r),this.i.addContentWidget(this),this.h.add(this.i.onDidChangeConfiguration(c=>{c.hasChanged(47)&&this.n()})),this.h.add(n.onDidColorThemeChange(this.m,this))}dispose(){this.h.dispose(),this.i.removeContentWidget(this)}getId(){return"__renameInputWidget"}getDomNode(){if(!this.b){this.b=document.createElement("div"),this.b.className="monaco-editor rename-box",this.c=document.createElement("input"),this.c.className="rename-input",this.c.type="text",this.c.setAttribute("aria-label",(0,E.localize)(1,null)),this.b.appendChild(this.c),this.d=document.createElement("div"),this.d.className="rename-label",this.b.appendChild(this.d);const i=()=>{var t,n;const[a,r]=this.j;this.l.lookupKeybinding(a),this.d.innerText=(0,E.localize)(2,null,(t=this.l.lookupKeybinding(a))===null||t===void 0?void 0:t.getLabel(),(n=this.l.lookupKeybinding(r))===null||n===void 0?void 0:n.getLabel())};i(),this.h.add(this.l.onDidUpdateKeybindings(i)),this.n(),this.m(this.k.getColorTheme())}return this.b}m(i){var t,n,a,r;if(!this.c||!this.b)return;const c=i.getColor(S.widgetShadow),d=i.getColor(S.widgetBorder);this.b.style.backgroundColor=String((t=i.getColor(S.editorWidgetBackground))!==null&&t!==void 0?t:""),this.b.style.boxShadow=c?` 0 0 8px 2px ${c}`:"",this.b.style.border=d?`1px solid ${d}`:"",this.b.style.color=String((n=i.getColor(S.inputForeground))!==null&&n!==void 0?n:""),this.c.style.backgroundColor=String((a=i.getColor(S.inputBackground))!==null&&a!==void 0?a:"");const s=i.getColor(S.inputBorder);this.c.style.borderWidth=s?"1px":"0px",this.c.style.borderStyle=s?"solid":"none",this.c.style.borderColor=(r=s?.toString())!==null&&r!==void 0?r:"none"}n(){if(!this.c||!this.d)return;const i=this.i.getOption(47);this.c.style.fontFamily=i.fontFamily,this.c.style.fontWeight=i.fontWeight,this.c.style.fontSize=`${i.fontSize}px`,this.d.style.fontSize=`${i.fontSize*.8}px`}getPosition(){return this.f?{position:this.a,preference:[2,1]}:null}afterRender(i){i||this.cancelInput(!0)}acceptInput(i){var t;(t=this.o)===null||t===void 0||t.call(this,i)}cancelInput(i){var t;(t=this.p)===null||t===void 0||t.call(this,i)}getInput(i,t,n,a,r,c){this.b.classList.toggle("preview",r),this.a=new N.Position(i.startLineNumber,i.startColumn),this.c.value=t,this.c.setAttribute("selectionStart",n.toString()),this.c.setAttribute("selectionEnd",a.toString()),this.c.size=Math.max((i.endColumn-i.startColumn)*1.1,20);const d=new C.DisposableStore;return new Promise(s=>{this.p=l=>(this.o=void 0,this.p=void 0,s(l),!0),this.o=l=>{if(this.c.value.trim().length===0||this.c.value===t){this.cancelInput(!0);return}this.o=void 0,this.p=void 0,s({newName:this.c.value,wantsPreview:r&&l})},d.add(c.onCancellationRequested(()=>this.cancelInput(!0))),d.add(this.i.onDidBlurEditorWidget(()=>this.cancelInput(!document.hasFocus()))),this.q()}).finally(()=>{d.dispose(),this.r()})}q(){this.i.revealLineInCenterIfOutsideViewport(this.a.lineNumber,0),this.f=!0,this.g.set(!0),this.i.layoutContentWidget(this),setTimeout(()=>{this.c.focus(),this.c.setSelectionRange(parseInt(this.c.getAttribute("selectionStart")),parseInt(this.c.getAttribute("selectionEnd")))},100)}r(){this.f=!1,this.g.reset(),this.i.layoutContentWidget(this)}};f=Ne([ge(2,v.IThemeService),ge(3,L.IKeybindingService),ge(4,I.IContextKeyService)],f),e.RenameInputField=f}),define(_[798],ee([1,0,52,11,20,13,2,18,21,97,14,143,30,12,4,24,172,146,635,90,15,8,62,42,69,33,797,19]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s,l,o,u,h,w,m,p,b,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RenameAction=e.rename=void 0;class k{constructor(A,T,O){this.c=A,this.d=T,this.b=0,this.a=O.ordered(A)}hasProvider(){return this.a.length>0}resolveRenameLocation(A){return ye(this,void 0,void 0,function*(){const T=[];for(this.b=0;this.b<this.a.length;this.b++){const B=this.a[this.b];if(!B.resolveRenameLocation)break;const W=yield B.resolveRenameLocation(this.c,this.d,A);if(!!W){if(W.rejectReason){T.push(W.rejectReason);continue}return W}}const O=this.c.getWordAtPosition(this.d);return O?{range:new a.Range(this.d.lineNumber,O.startColumn,this.d.lineNumber,O.endColumn),text:O.word,rejectReason:T.length>0?T.join(`
|
||
`):void 0}:{range:a.Range.fromPositions(this.d),text:"",rejectReason:T.length>0?T.join(`
|
||
`):void 0}})}provideRenameEdits(A,T){return ye(this,void 0,void 0,function*(){return this.f(A,this.b,[],T)})}f(A,T,O,B){return ye(this,void 0,void 0,function*(){const W=this.a[T];if(!W)return{edits:[],rejectReason:O.join(`
|
||
`)};const j=yield W.provideRenameEdits(this.c,this.d,A,B);if(j){if(j.rejectReason)return this.f(A,T+1,O.concat(j.rejectReason),B)}else return this.f(A,T+1,O.concat(s.localize(0,null)),B);return j})}}function D(P,A,T,O){return ye(this,void 0,void 0,function*(){const B=new k(A,T,P),W=yield B.resolveRenameLocation(E.CancellationToken.None);return W?.rejectReason?{edits:[],rejectReason:W.rejectReason}:B.provideRenameEdits(O,E.CancellationToken.None)})}e.rename=D;let M=class $i{static get(A){return A.getContribution($i.ID)}constructor(A,T,O,B,W,j,F,U){this.d=A,this.f=T,this.g=O,this.h=B,this.j=W,this.k=j,this.l=F,this.m=U,this.b=new L.DisposableStore,this.c=new E.CancellationTokenSource,this.a=this.b.add(this.f.createInstance(b.RenameInputField,this.d,["acceptRenameInput","acceptRenameInputWithPreview"]))}dispose(){this.b.dispose(),this.c.dispose(!0)}run(){var A,T;return ye(this,void 0,void 0,function*(){if(this.c.dispose(!0),!this.d.hasModel())return;const O=this.d.getPosition(),B=new k(this.d.getModel(),O,this.m.renameProvider);if(!B.hasProvider())return;this.c=new f.EditorStateCancellationTokenSource(this.d,5);let W;try{const ie=B.resolveRenameLocation(this.c.token);this.j.showWhile(ie,250),W=yield ie}catch(ie){(A=d.MessageController.get(this.d))===null||A===void 0||A.showMessage(ie||s.localize(1,null),O);return}if(!W)return;if(W.rejectReason){(T=d.MessageController.get(this.d))===null||T===void 0||T.showMessage(W.rejectReason,O);return}if(this.c.token.isCancellationRequested)return;this.c.dispose(),this.c=new f.EditorStateCancellationTokenSource(this.d,5,W.range);const j=this.d.getSelection();let F=0,U=W.text.length;!a.Range.isEmpty(j)&&!a.Range.spansMultipleLines(j)&&a.Range.containsRange(W.range,j)&&(F=Math.max(0,j.startColumn-W.range.startColumn),U=Math.min(W.range.endColumn,j.endColumn)-W.range.startColumn);const Q=this.h.hasPreviewHandler()&&this.l.getValue(this.d.getModel().uri,"editor.rename.enablePreview"),se=yield this.a.getInput(W.range,W.text,F,U,Q,this.c.token);if(typeof se=="boolean"){se&&this.d.focus();return}this.d.focus();const he=(0,N.raceCancellation)(B.provideRenameEdits(se.newName,this.c.token),this.c.token).then(ie=>ye(this,void 0,void 0,function*(){if(!(!ie||!this.d.hasModel())){if(ie.rejectReason){this.g.info(ie.rejectReason);return}this.d.setSelection(a.Range.fromPositions(this.d.getSelection().getPosition())),this.h.apply(ie,{editor:this.d,showPreview:se.wantsPreview,label:s.localize(2,null,W?.text,se.newName),code:"undoredo.rename",quotableLabel:s.localize(3,null,W?.text,se.newName),respectAutoSaveConfig:!0}).then(ue=>{ue.ariaSummary&&(0,C.alert)(s.localize(4,null,W.text,se.newName,ue.ariaSummary))}).catch(ue=>{this.g.error(s.localize(5,null)),this.k.error(ue)})}}),ie=>{this.g.error(s.localize(6,null)),this.k.error(ie)});return this.j.showWhile(he,250),he})}acceptRenameInput(A){this.a.acceptInput(A)}cancelRenameInput(){this.a.cancelInput(!0)}};M.ID="editor.contrib.renameController",M=Ne([ge(1,u.IInstantiationService),ge(2,w.INotificationService),ge(3,i.IBulkEditService),ge(4,m.IEditorProgressService),ge(5,h.ILogService),ge(6,c.ITextResourceConfigurationService),ge(7,y.ILanguageFeaturesService)],M);class z extends g.EditorAction{constructor(){super({id:"editor.action.rename",label:s.localize(7,null),alias:"Rename Symbol",precondition:o.ContextKeyExpr.and(r.EditorContextKeys.writable,r.EditorContextKeys.hasRenameProvider),kbOpts:{kbExpr:r.EditorContextKeys.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})}runCommand(A,T){const O=A.get(t.ICodeEditorService),[B,W]=Array.isArray(T)&&T||[void 0,void 0];return v.URI.isUri(B)&&n.Position.isIPosition(W)?O.openCodeEditor({resource:B},O.getActiveCodeEditor()).then(j=>{!j||(j.setPosition(W),j.invokeWithinContext(F=>(this.q(F,j),this.run(F,j))))},I.onUnexpectedError):super.runCommand(A,T)}run(A,T){const O=M.get(T);return O?O.run():Promise.resolve()}}e.RenameAction=z,(0,g.registerEditorContribution)(M.ID,M,4),(0,g.registerEditorAction)(z);const R=g.EditorCommand.bindToContribution(M.get);(0,g.registerEditorCommand)(new R({id:"acceptRenameInput",precondition:b.CONTEXT_RENAME_INPUT_VISIBLE,handler:P=>P.acceptRenameInput(!1),kbOpts:{weight:100+99,kbExpr:r.EditorContextKeys.focus,primary:3}})),(0,g.registerEditorCommand)(new R({id:"acceptRenameInputWithPreview",precondition:o.ContextKeyExpr.and(b.CONTEXT_RENAME_INPUT_VISIBLE,o.ContextKeyExpr.has("config.editor.rename.enablePreview")),handler:P=>P.acceptRenameInput(!0),kbOpts:{weight:100+99,kbExpr:r.EditorContextKeys.focus,primary:1024+3}})),(0,g.registerEditorCommand)(new R({id:"cancelRenameInput",precondition:b.CONTEXT_RENAME_INPUT_VISIBLE,handler:P=>P.cancelRenameInput(),kbOpts:{weight:100+99,kbExpr:r.EditorContextKeys.focus,primary:9,secondary:[1033]}})),(0,g.registerModelAndPositionCommand)("_executeDocumentRenameProvider",function(P,A,T,...O){const[B]=O;(0,S.assertType)(typeof B=="string");const{renameProvider:W}=P.get(y.ILanguageFeaturesService);return D(W,A,T,B)}),(0,g.registerModelAndPositionCommand)("_executePrepareRename",function(P,A,T){return ye(this,void 0,void 0,function*(){const{renameProvider:O}=P.get(y.ILanguageFeaturesService),W=yield new k(A,T,O).resolveRenameLocation(E.CancellationToken.None);if(W?.rejectReason)throw new Error(W.rejectReason);return W})}),p.Registry.as(l.Extensions.Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:s.localize(8,null),default:!0,type:"boolean"}}})}),define(_[799],ee([1,0,2,13,53,27,11,20,23,232,299,78,60,19,220,252,266]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DocumentSemanticTokensFeature=void 0;let d=class extends C.Disposable{constructor(u,h,w,m,p,b){super(),this.a=Object.create(null);const y=M=>{this.a[M.uri.toString()]=new s(M,u,w,p,b)},k=(M,z)=>{z.dispose(),delete this.a[M.uri.toString()]},D=()=>{for(const M of h.getModels()){const z=this.a[M.uri.toString()];(0,c.isSemanticColoringEnabled)(M,w,m)?z||y(M):z&&k(M,z)}};this.q(h.onModelAdded(M=>{(0,c.isSemanticColoringEnabled)(M,w,m)&&y(M)})),this.q(h.onModelRemoved(M=>{const z=this.a[M.uri.toString()];z&&k(M,z)})),this.q(m.onDidChangeConfiguration(M=>{M.affectsConfiguration(c.SEMANTIC_HIGHLIGHTING_SETTING_ID)&&D()})),this.q(w.onDidColorThemeChange(D))}dispose(){for(const u of Object.values(this.a))u.dispose();super.dispose()}};d=Ne([ge(0,a.ISemanticTokensStylingService),ge(1,E.IModelService),ge(2,v.IThemeService),ge(3,I.IConfigurationService),ge(4,i.ILanguageFeatureDebounceService),ge(5,n.ILanguageFeaturesService)],d),e.DocumentSemanticTokensFeature=d;let s=class Mt extends C.Disposable{constructor(u,h,w,m,p){super(),this.n=h,this.a=!1,this.b=u,this.c=p.documentSemanticTokensProvider,this.g=m.for(this.c,"DocumentSemanticTokens",{min:Mt.REQUEST_MIN_DELAY,max:Mt.REQUEST_MAX_DELAY}),this.h=this.q(new L.RunOnceScheduler(()=>this.p(),Mt.REQUEST_MIN_DELAY)),this.j=null,this.k=null,this.l=[],this.m=!1,this.q(this.b.onDidChangeContent(()=>{this.h.isScheduled()||this.h.schedule(this.g.get(this.b))})),this.q(this.b.onDidChangeLanguage(()=>{this.j&&(this.j.dispose(),this.j=null),this.k&&(this.k.cancel(),this.k=null),this.s(null,null,null,[]),this.h.schedule(0)}));const b=()=>{(0,C.dispose)(this.l),this.l=[];for(const y of this.c.all(u))typeof y.onDidChange=="function"&&this.l.push(y.onDidChange(()=>{if(this.k){this.m=!0;return}this.h.schedule(0)}))};b(),this.q(this.c.onDidChange(()=>{b(),this.h.schedule(this.g.get(this.b))})),this.q(w.onDidColorThemeChange(y=>{this.s(null,null,null,[]),this.h.schedule(this.g.get(this.b))})),this.h.schedule(0)}dispose(){this.j&&(this.j.dispose(),this.j=null),this.k&&(this.k.cancel(),this.k=null),this.s(null,null,null,[]),this.a=!0,super.dispose()}p(){if(this.k)return;if(!(0,g.hasDocumentSemanticTokensProvider)(this.c,this.b)){this.j&&this.b.tokenization.setSemanticTokens(null,!1);return}const u=new S.CancellationTokenSource,h=this.j?this.j.provider:null,w=this.j&&this.j.resultId||null,m=(0,g.getDocumentSemanticTokens)(this.c,this.b,h,w,u.token);this.k=u,this.m=!1;const p=[],b=this.b.onDidChangeContent(k=>{p.push(k)}),y=new t.StopWatch(!1);m.then(k=>{if(this.g.update(this.b,y.elapsed()),this.k=null,b.dispose(),!k)this.s(null,null,null,p);else{const{provider:D,tokens:M}=k,z=this.n.getStyling(D);this.s(D,M||null,z,p)}},k=>{k&&(N.isCancellationError(k)||typeof k.message=="string"&&k.message.indexOf("busy")!==-1)||N.onUnexpectedError(k),this.k=null,b.dispose(),(p.length>0||this.m)&&(this.h.isScheduled()||this.h.schedule(this.g.get(this.b)))})}static r(u,h,w,m,p){p=Math.min(p,w.length-m,u.length-h);for(let b=0;b<p;b++)w[m+b]=u[h+b]}s(u,h,w,m){const p=this.j,b=()=>{(m.length>0||this.m)&&!this.h.isScheduled()&&this.h.schedule(this.g.get(this.b))};if(this.j&&(this.j.dispose(),this.j=null),this.a){u&&h&&u.releaseDocumentSemanticTokens(h.resultId);return}if(!u||!w){this.b.tokenization.setSemanticTokens(null,!1);return}if(!h){this.b.tokenization.setSemanticTokens(null,!0),b();return}if((0,g.isSemanticTokensEdits)(h)){if(!p){this.b.tokenization.setSemanticTokens(null,!0);return}if(h.edits.length===0)h={resultId:h.resultId,data:p.data};else{let y=0;for(const R of h.edits)y+=(R.data?R.data.length:0)-R.deleteCount;const k=p.data,D=new Uint32Array(k.length+y);let M=k.length,z=D.length;for(let R=h.edits.length-1;R>=0;R--){const P=h.edits[R];if(P.start>k.length){w.warnInvalidEditStart(p.resultId,h.resultId,R,P.start,k.length),this.b.tokenization.setSemanticTokens(null,!0);return}const A=M-(P.start+P.deleteCount);A>0&&(Mt.r(k,M-A,D,z-A,A),z-=A),P.data&&(Mt.r(P.data,0,D,z-P.data.length,P.data.length),z-=P.data.length),M=P.start}M>0&&Mt.r(k,0,D,0,M),h={resultId:h.resultId,data:D}}}if((0,g.isSemanticTokens)(h)){this.j=new l(u,h.resultId,h.data);const y=(0,f.toMultilineTokens2)(h,w,this.b.getLanguageId());if(m.length>0)for(const k of m)for(const D of y)for(const M of k.changes)D.applyEdit(M.range,M.text);this.b.tokenization.setSemanticTokens(y,!0)}else this.b.tokenization.setSemanticTokens(null,!0);b()}};s.REQUEST_MIN_DELAY=300,s.REQUEST_MAX_DELAY=2e3,s=Ne([ge(1,a.ISemanticTokensStylingService),ge(2,v.IThemeService),ge(3,i.ILanguageFeatureDebounceService),ge(4,n.ILanguageFeaturesService)],s);class l{constructor(u,h,w){this.provider=u,this.resultId=h,this.data=w}dispose(){this.provider.releaseDocumentSemanticTokens(this.resultId)}}(0,r.registerEditorFeature)(d)}),define(_[800],ee([1,0,11,2,14,299,266,232,27,23,78,60,19,220]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let a=class extends N.Disposable{constructor(c,d,s,l,o,u){super(),this.j=d,this.k=s,this.l=l,this.a=c,this.b=u.documentRangeSemanticTokensProvider,this.c=o.for(this.b,"DocumentRangeSemanticTokens",{min:100,max:500}),this.g=this.q(new C.RunOnceScheduler(()=>this.p(),100)),this.h=[];const h=()=>{this.a.hasModel()&&this.g.schedule(this.c.get(this.a.getModel()))};this.q(this.a.onDidScrollChange(()=>{h()})),this.q(this.a.onDidChangeModel(()=>{this.m(),h()})),this.q(this.a.onDidChangeModelContent(w=>{this.m(),h()})),this.q(this.b.onDidChange(()=>{this.m(),h()})),this.q(this.l.onDidChangeConfiguration(w=>{w.affectsConfiguration(L.SEMANTIC_HIGHLIGHTING_SETTING_ID)&&(this.m(),h())})),this.q(this.k.onDidColorThemeChange(()=>{this.m(),h()})),h()}m(){for(const c of this.h)c.cancel();this.h=[]}n(c){for(let d=0,s=this.h.length;d<s;d++)if(this.h[d]===c){this.h.splice(d,1);return}}p(){if(!this.a.hasModel())return;const c=this.a.getModel();if(c.tokenization.hasCompleteSemanticTokens())return;if(!(0,L.isSemanticColoringEnabled)(c,this.k,this.l)){c.tokenization.hasSomeSemanticTokens()&&c.tokenization.setSemanticTokens(null,!1);return}if(!(0,I.hasDocumentRangeSemanticTokensProvider)(this.b,c)){c.tokenization.hasSomeSemanticTokens()&&c.tokenization.setSemanticTokens(null,!1);return}const d=this.a.getVisibleRangesPlusViewportAboveBelow();this.h=this.h.concat(d.map(s=>this.s(c,s)))}s(c,d){const s=c.getVersionId(),l=(0,C.createCancelablePromise)(u=>Promise.resolve((0,I.getDocumentRangeSemanticTokens)(this.b,c,d,u))),o=new i.StopWatch(!1);return l.then(u=>{if(this.c.update(c,o.elapsed()),!u||!u.tokens||c.isDisposed()||c.getVersionId()!==s)return;const{provider:h,tokens:w}=u,m=this.j.getStyling(h);c.tokenization.setPartialSemanticTokens(d,(0,S.toMultilineTokens2)(w,m,c.getLanguageId()))}).then(()=>this.n(l),()=>this.n(l)),l}};a.ID="editor.contrib.viewportSemanticTokens",a=Ne([ge(1,n.ISemanticTokensStylingService),ge(2,f.IThemeService),ge(3,v.IConfigurationService),ge(4,g.ILanguageFeatureDebounceService),ge(5,t.ILanguageFeaturesService)],a),(0,E.registerEditorContribution)(a.ID,a,1)}),define(_[801],ee([1,0,7,205,29,32,6,63,2,21,26,716,53,37,645,296,81,23,308]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s){"use strict";var l;Object.defineProperty(e,"__esModule",{value:!0}),e.ItemRenderer=e.getAriaId=void 0;function o(p){return`suggest-aria-id:${p}`}e.getAriaId=o;const u=(0,c.registerIcon)("suggest-more-info",E.Codicon.chevronRight,a.localize(0,null)),h=new(l=class Zt{extract(b,y){if(b.textLabel.match(Zt.b))return y[0]=b.textLabel,!0;if(b.completion.detail&&b.completion.detail.match(Zt.b))return y[0]=b.completion.detail,!0;if(typeof b.completion.documentation=="string"){const k=Zt.a.exec(b.completion.documentation);if(k&&(k.index===0||k.index+k[0].length===b.completion.documentation.length))return y[0]=k[0],!0}return!1}},l.a=/(#([\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*\))/,l.b=new RegExp(`^${l.a.source}$`,"i"),l);let w=class{constructor(b,y,k,D){this.b=b,this.c=y,this.d=k,this.f=D,this.a=new L.Emitter,this.onDidToggleDetails=this.a.event,this.templateId="suggestion"}dispose(){this.a.dispose()}renderTemplate(b){const y=new v.DisposableStore,k=b;k.classList.add("show-file-icons");const D=(0,C.append)(b,(0,C.$)(".icon")),M=(0,C.append)(D,(0,C.$)("span.colorspan")),z=(0,C.append)(b,(0,C.$)(".contents")),R=(0,C.append)(z,(0,C.$)(".main")),P=(0,C.append)(R,(0,C.$)(".icon-label.codicon")),A=(0,C.append)(R,(0,C.$)("span.left")),T=(0,C.append)(R,(0,C.$)("span.right")),O=new N.IconLabel(A,{supportHighlights:!0,supportIcons:!0});y.add(O);const B=(0,C.append)(A,(0,C.$)("span.signature-label")),W=(0,C.append)(A,(0,C.$)("span.qualifier-label")),j=(0,C.append)(T,(0,C.$)("span.details-label")),F=(0,C.append)(T,(0,C.$)("span.readMore"+I.ThemeIcon.asCSSSelector(u)));F.title=a.localize(1,null);const U=()=>{const Q=this.b.getOptions(),se=Q.get(47),he=se.getMassagedFontFamily(),ie=se.fontFeatureSettings,ue=Q.get(113)||se.fontSize,J=Q.get(114)||se.lineHeight,x=se.fontWeight,G=se.letterSpacing,te=`${ue}px`,Z=`${J}px`,ae=`${G}px`;k.style.fontSize=te,k.style.fontWeight=x,k.style.letterSpacing=ae,R.style.fontFamily=he,R.style.fontFeatureSettings=ie,R.style.lineHeight=Z,D.style.height=Z,D.style.width=Z,F.style.height=Z,F.style.width=Z};return U(),y.add(this.b.onDidChangeConfiguration(Q=>{(Q.hasChanged(47)||Q.hasChanged(113)||Q.hasChanged(114))&&U()})),{root:k,left:A,right:T,icon:D,colorspan:M,iconLabel:O,iconContainer:P,parametersLabel:B,qualifierLabel:W,detailsLabel:j,readMore:F,disposables:y}}renderElement(b,y,k){const{completion:D}=b;k.root.id=o(y),k.colorspan.style.backgroundColor="";const M={labelEscapeNewLines:!0,matches:(0,S.createMatches)(b.score)},z=[];if(D.kind===19&&h.extract(b,z))k.icon.className="icon customcolor",k.iconContainer.className="icon hide",k.colorspan.style.backgroundColor=z[0];else if(D.kind===20&&this.f.getFileIconTheme().hasFileIcons){k.icon.className="icon hide",k.iconContainer.className="icon hide";const R=(0,i.getIconClasses)(this.c,this.d,f.URI.from({scheme:"fake",path:b.textLabel}),r.FileKind.FILE),P=(0,i.getIconClasses)(this.c,this.d,f.URI.from({scheme:"fake",path:D.detail}),r.FileKind.FILE);M.extraClasses=R.length>P.length?R:P}else D.kind===23&&this.f.getFileIconTheme().hasFolderIcons?(k.icon.className="icon hide",k.iconContainer.className="icon hide",M.extraClasses=[(0,i.getIconClasses)(this.c,this.d,f.URI.from({scheme:"fake",path:b.textLabel}),r.FileKind.FOLDER),(0,i.getIconClasses)(this.c,this.d,f.URI.from({scheme:"fake",path:D.detail}),r.FileKind.FOLDER)].flat()):(k.icon.className="icon hide",k.iconContainer.className="",k.iconContainer.classList.add("suggest-icon",...I.ThemeIcon.asClassNameArray(g.CompletionItemKinds.toIcon(D.kind))));D.tags&&D.tags.indexOf(1)>=0&&(M.extraClasses=(M.extraClasses||[]).concat(["deprecated"]),M.matches=[]),k.iconLabel.setLabel(b.textLabel,void 0,M),typeof D.label=="string"?(k.parametersLabel.textContent="",k.detailsLabel.textContent=m(D.detail||""),k.root.classList.add("string-label")):(k.parametersLabel.textContent=m(D.label.detail||""),k.detailsLabel.textContent=m(D.label.description||""),k.root.classList.remove("string-label")),this.b.getOption(112).showInlineDetails?(0,C.show)(k.detailsLabel):(0,C.hide)(k.detailsLabel),(0,s.canExpandCompletionItem)(b)?(k.right.classList.add("can-expand-details"),(0,C.show)(k.readMore),k.readMore.onmousedown=R=>{R.stopPropagation(),R.preventDefault()},k.readMore.onclick=R=>{R.stopPropagation(),R.preventDefault(),this.a.fire()}):(k.right.classList.remove("can-expand-details"),(0,C.hide)(k.readMore),k.readMore.onmousedown=null,k.readMore.onclick=null)}disposeTemplate(b){b.disposables.dispose()}};w=Ne([ge(1,t.IModelService),ge(2,n.ILanguageService),ge(3,d.IThemeService)],w),e.ItemRenderer=w;function m(p){return p.replace(/\r\n|\r|\n/g,"")}}),define(_[802],ee([1,0,795,33,123,30,18,83,6,14,24,79]),function(q,e,C,N,E,I,L,S,v,f,g,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GotoLineAction=e.StandaloneGotoLineQuickAccessProvider=void 0;let t=class extends C.AbstractGotoLineQuickAccessProvider{constructor(r){super(),this.t=r,this.h=v.Event.None}get i(){return(0,L.withNullAsUndefined)(this.t.getFocusedCodeEditor())}};t=Ne([ge(0,I.ICodeEditorService)],t),e.StandaloneGotoLineQuickAccessProvider=t;class n extends f.EditorAction{constructor(){super({id:n.ID,label:S.GoToLineNLS.gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:g.EditorContextKeys.focus,primary:2085,mac:{primary:293},weight:100}})}run(r){r.get(i.IQuickInputService).quickAccess.show(t.PREFIX)}}n.ID="editor.action.gotoLine",e.GotoLineAction=n,(0,f.registerEditorAction)(n),N.Registry.as(E.Extensions.Quickaccess).registerQuickAccessProvider({ctor:t,prefix:t.PREFIX,helpEntries:[{description:S.GoToLineNLS.gotoLineActionLabel,commandId:n.ID}]})}),define(_[803],ee([1,0,796,33,123,30,18,83,6,14,24,79,174,19,154,231]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GotoSymbolAction=e.StandaloneGotoSymbolQuickAccessProvider=void 0;let a=class extends C.AbstractGotoSymbolQuickAccessProvider{constructor(d,s,l){super(s,l),this.z=d,this.h=v.Event.None}get i(){return(0,L.withNullAsUndefined)(this.z.getFocusedCodeEditor())}};a=Ne([ge(0,I.ICodeEditorService),ge(1,n.ILanguageFeaturesService),ge(2,t.IOutlineModelService)],a),e.StandaloneGotoSymbolQuickAccessProvider=a;class r extends f.EditorAction{constructor(){super({id:r.ID,label:S.QuickOutlineNLS.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:g.EditorContextKeys.hasDocumentSymbolProvider,kbOpts:{kbExpr:g.EditorContextKeys.focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})}run(d){d.get(i.IQuickInputService).quickAccess.show(C.AbstractGotoSymbolQuickAccessProvider.PREFIX,{itemActivation:i.ItemActivation.NONE})}}r.ID="editor.action.quickOutline",e.GotoSymbolAction=r,(0,f.registerEditorAction)(r),N.Registry.as(E.Extensions.Quickaccess).registerQuickAccessProvider({ctor:a,prefix:C.AbstractGotoSymbolQuickAccessProvider.PREFIX,helpEntries:[{description:S.QuickOutlineNLS.quickOutlineActionLabel,prefix:C.AbstractGotoSymbolQuickAccessProvider.PREFIX,commandId:r.ID},{description:S.QuickOutlineNLS.quickOutlineByCategoryActionLabel,prefix:C.AbstractGotoSymbolQuickAccessProvider.PREFIX_BY_CATEGORY}]})}),define(_[321],ee([1,0,7,48,782,30,15,49,23]),function(q,e,C,N,E,I,L,S,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StandaloneCodeEditorService=void 0;let f=class extends E.AbstractCodeEditorService{constructor(i,t){super(t),this.onCodeEditorAdd(()=>this.u()),this.onCodeEditorRemove(()=>this.u()),this.s=i.createKey("editorIsOpen",!1),this.t=null,this.registerCodeEditorOpenHandler((n,a,r)=>ye(this,void 0,void 0,function*(){return a?this.v(a,n):null}))}u(){let i=!1;for(const t of this.listCodeEditors())if(!t.isSimpleWidget){i=!0;break}this.s.set(i)}setActiveCodeEditor(i){this.t=i}getActiveCodeEditor(){return this.t}v(i,t){if(!this.w(i,t.resource)){if(t.resource){const r=t.resource.scheme;if(r===N.Schemas.http||r===N.Schemas.https)return(0,C.windowOpenNoOpener)(t.resource.toString()),i}return null}const a=t.options?t.options.selection:null;if(a)if(typeof a.endLineNumber=="number"&&typeof a.endColumn=="number")i.setSelection(a),i.revealRangeInCenter(a,1);else{const r={lineNumber:a.startLineNumber,column:a.startColumn};i.setPosition(r),i.revealPositionInCenter(r,1)}return i}w(i,t){const n=i.getModel();return n&&n.uri.toString()!==t.toString()?null:n}};f=Ne([ge(0,L.IContextKeyService),ge(1,v.IThemeService)],f),e.StandaloneCodeEditorService=f,(0,S.registerSingleton)(I.ICodeEditorService,f,0)}),define(_[804],ee([1,0,71,31]),function(q,e,C,N){"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:{[N.editorBackground]:"#FFFFFE",[N.editorForeground]:"#000000",[N.editorInactiveSelection]:"#E5EBF1",[C.editorIndentGuides]:"#D3D3D3",[C.editorActiveIndentGuides]:"#939393",[N.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:{[N.editorBackground]:"#1E1E1E",[N.editorForeground]:"#D4D4D4",[N.editorInactiveSelection]:"#3A3D41",[C.editorIndentGuides]:"#404040",[C.editorActiveIndentGuides]:"#707070",[N.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:{[N.editorBackground]:"#000000",[N.editorForeground]:"#FFFFFF",[C.editorIndentGuides]:"#FFFFFF",[C.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:{[N.editorBackground]:"#FFFFFF",[N.editorForeground]:"#292929",[C.editorIndentGuides]:"#292929",[C.editorActiveIndentGuides]:"#292929"}}}),define(_[322],ee([1,0,7,45,36,6,26,115,458,804,33,31,23,2,91,778]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r){"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 c=g.Registry.as(i.Extensions.ColorContribution),d=g.Registry.as(t.Extensions.ThemingContribution);class s{constructor(m,p){this.semanticHighlighting=!1,this.a=p;const b=p.base;m.length>0?(l(m)?this.id=m:this.id=b+" "+m,this.themeName=m):(this.id=b,this.themeName=b),this.b=null,this.c=Object.create(null),this.d=null}get base(){return this.a.base}notifyBaseUpdated(){this.a.inherit&&(this.b=null,this.d=null)}e(){if(!this.b){const m=new Map;for(const p in this.a.colors)m.set(p,E.Color.fromHex(this.a.colors[p]));if(this.a.inherit){const p=o(this.a.base);for(const b in p.colors)m.has(b)||m.set(b,E.Color.fromHex(p.colors[b]))}this.b=m}return this.b}getColor(m,p){const b=this.e().get(m);if(b)return b;if(p!==!1)return this.f(m)}f(m){let p=this.c[m];return p||(p=c.resolveDefaultColor(m,this),this.c[m]=p,p)}defines(m){return this.e().has(m)}get type(){switch(this.base){case e.VS_LIGHT_THEME_NAME:return a.ColorScheme.LIGHT;case e.HC_BLACK_THEME_NAME:return a.ColorScheme.HIGH_CONTRAST_DARK;case e.HC_LIGHT_THEME_NAME:return a.ColorScheme.HIGH_CONTRAST_LIGHT;default:return a.ColorScheme.DARK}}get tokenTheme(){if(!this.d){let m=[],p=[];if(this.a.inherit){const k=o(this.a.base);m=k.rules,k.encodedTokensColors&&(p=k.encodedTokensColors)}const b=this.a.colors["editor.foreground"],y=this.a.colors["editor.background"];if(b||y){const k={token:""};b&&(k.foreground=b),y&&(k.background=y),m.push(k)}m=m.concat(this.a.rules),this.a.encodedTokensColors&&(p=this.a.encodedTokensColors),this.d=v.TokenTheme.createFromRawTokenTheme(m,p)}return this.d}getTokenStyleMetadata(m,p,b){const k=this.tokenTheme._match([m].concat(p).join(".")).metadata,D=S.TokenMetadata.getForeground(k),M=S.TokenMetadata.getFontStyle(k);return{foreground:D,italic:Boolean(M&1),bold:Boolean(M&2),underline:Boolean(M&4),strikethrough:Boolean(M&8)}}}function l(w){return w===e.VS_LIGHT_THEME_NAME||w===e.VS_DARK_THEME_NAME||w===e.HC_BLACK_THEME_NAME||w===e.HC_LIGHT_THEME_NAME}function o(w){switch(w){case e.VS_LIGHT_THEME_NAME:return f.vs;case e.VS_DARK_THEME_NAME:return f.vs_dark;case e.HC_BLACK_THEME_NAME:return f.hc_black;case e.HC_LIGHT_THEME_NAME:return f.hc_light}}function u(w){const m=o(w);return new s(w,m)}class h extends n.Disposable{constructor(){super(),this.a=this.q(new I.Emitter),this.onDidColorThemeChange=this.a.event,this.b=this.q(new I.Emitter),this.onDidProductIconThemeChange=this.b.event,this.c=Object.create(null),this.t=new r.UnthemedProductIconTheme,this.h=!0,this.g=new Map,this.g.set(e.VS_LIGHT_THEME_NAME,u(e.VS_LIGHT_THEME_NAME)),this.g.set(e.VS_DARK_THEME_NAME,u(e.VS_DARK_THEME_NAME)),this.g.set(e.HC_BLACK_THEME_NAME,u(e.HC_BLACK_THEME_NAME)),this.g.set(e.HC_LIGHT_THEME_NAME,u(e.HC_LIGHT_THEME_NAME));const m=(0,r.getIconsStyleSheet)(this);this.j=m.getCSS(),this.k="",this.l=`${this.j}
|
||
${this.k}`,this.m=null,this.n=[],this.r=null,this.setTheme(e.VS_LIGHT_THEME_NAME),this.y(),m.onDidChange(()=>{this.j=m.getCSS(),this.B()}),(0,N.addMatchMediaChangeListener)("(forced-colors: active)",()=>{this.y()})}registerEditorContainer(m){return C.isInShadowDOM(m)?this.v(m):this.u()}u(){return this.m||(this.m=C.createStyleSheet(),this.m.className="monaco-colors",this.m.textContent=this.l,this.n.push(this.m)),n.Disposable.None}v(m){const p=C.createStyleSheet(m);return p.className="monaco-colors",p.textContent=this.l,this.n.push(p),{dispose:()=>{for(let b=0;b<this.n.length;b++)if(this.n[b]===p){this.n.splice(b,1);return}}}}defineTheme(m,p){if(!/^[a-z0-9\-]+$/i.test(m))throw new Error("Illegal theme name!");if(!l(p.base)&&!l(m))throw new Error("Illegal theme base!");this.g.set(m,new s(m,p)),l(m)&&this.g.forEach(b=>{b.base===m&&b.notifyBaseUpdated()}),this.s.themeName===m&&this.setTheme(m)}getColorTheme(){return this.s}setColorMapOverride(m){this.r=m,this.z()}setTheme(m){let p;this.g.has(m)?p=this.g.get(m):p=this.g.get(e.VS_LIGHT_THEME_NAME),this.w(p)}w(m){!m||this.s===m||(this.s=m,this.z())}y(){if(this.h){const m=window.matchMedia("(forced-colors: active)").matches;if(m!==(0,a.isHighContrast)(this.s.type)){let p;(0,a.isDark)(this.s.type)?p=m?e.HC_BLACK_THEME_NAME:e.VS_DARK_THEME_NAME:p=m?e.HC_LIGHT_THEME_NAME:e.VS_LIGHT_THEME_NAME,this.w(this.g.get(p))}}}setAutoDetectHighContrast(m){this.h=m,this.y()}z(){const m=[],p={},b={addRule:D=>{p[D]||(m.push(D),p[D]=!0)}};d.getThemingParticipants().forEach(D=>D(this.s,b,this.c));const y=[];for(const D of c.getColors()){const M=this.s.getColor(D.id,!0);M&&y.push(`${(0,i.asCssVariableName)(D.id)}: ${M.toString()};`)}b.addRule(`.monaco-editor { ${y.join(`
|
||
`)} }`);const k=this.r||this.s.tokenTheme.getColorMap();b.addRule((0,v.generateTokensCSSForColorMap)(k)),this.k=m.join(`
|
||
`),this.B(),L.TokenizationRegistry.setColorMap(k),this.a.fire(this.s)}B(){this.l=`${this.j}
|
||
${this.k}`,this.n.forEach(m=>m.textContent=this.l)}getFileIconTheme(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}}getProductIconTheme(){return this.t}}e.StandaloneThemeService=h}),define(_[805],ee([1,0,14,119,83,91,322]),function(q,e,C,N,E,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class S extends C.EditorAction{constructor(){super({id:"editor.action.toggleHighContrast",label:E.ToggleHighContrastNLS.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}),this.d=null}run(f,g){const i=f.get(N.IStandaloneThemeService),t=i.getColorTheme();(0,I.isHighContrast)(t.type)?(i.setTheme(this.d||((0,I.isDark)(t.type)?L.VS_DARK_THEME_NAME:L.VS_LIGHT_THEME_NAME)),this.d=null):(i.setTheme((0,I.isDark)(t.type)?L.HC_BLACK_THEME_NAME:L.HC_LIGHT_THEME_NAME),this.d=t.themeName)}}(0,C.registerEditorAction)(S)}),define(_[148],ee([1,0,7,43,140,282,41,197,2,16,658,28,678,15,57,8,38,42,84,23,32,91,18,31,98,428]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s,l,o,u,h,w,m){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createActionViewItem=e.DropdownWithDefaultActionViewItem=e.SubmenuEntryActionViewItem=e.MenuEntryActionViewItem=e.createAndFillInActionBarActions=e.createAndFillInContextMenuActions=void 0;function p(P,A,T,O){const B=P.getActions(A),W=C.ModifierKeyEmitter.getInstance(),j=W.keyStatus.altKey||(f.isWindows||f.isLinux)&&W.keyStatus.shiftKey;y(B,T,j,O?F=>F===O:F=>F==="navigation")}e.createAndFillInContextMenuActions=p;function b(P,A,T,O,B,W){const j=P.getActions(A);y(j,T,!1,typeof O=="string"?U=>U===O:O,B,W)}e.createAndFillInActionBarActions=b;function y(P,A,T,O=j=>j==="navigation",B=()=>!1,W=!1){let j,F;Array.isArray(A)?(j=A,F=A):(j=A.primary,F=A.secondary);const U=new Set;for(const[Q,se]of P){let he;O(Q)?(he=j,he.length>0&&W&&he.push(new L.Separator)):(he=F,he.length>0&&he.push(new L.Separator));for(let ie of se){T&&(ie=ie instanceof i.MenuItemAction&&ie.alt?ie.alt:ie);const ue=he.push(ie);ie instanceof L.SubmenuAction&&U.add({group:Q,action:ie,index:ue-1})}}for(const{group:Q,action:se,index:he}of U){const ie=O(Q)?j:F,ue=se.actions;ue.length<=1&&B(se,Q,ie.length)&&ie.splice(he,1,...ue)}}let k=class extends E.ActionViewItem{constructor(A,T,O,B,W,j,F){super(void 0,A,{icon:!!(A.class||A.item.icon),label:!A.class&&!A.item.icon,draggable:T?.draggable,keybinding:T?.keybinding,hoverDelegate:T?.hoverDelegate}),this.L=O,this.M=B,this.N=W,this.O=j,this.P=F,this.i=!1,this.I=this.q(new v.MutableDisposable),this.J=C.ModifierKeyEmitter.getInstance()}get Q(){return this._action}get R(){return this.i&&this.Q.alt||this.Q}onClick(A){return ye(this,void 0,void 0,function*(){A.preventDefault(),A.stopPropagation();try{yield this.actionRunner.run(this.R,this._context)}catch(T){this.M.error(T)}})}render(A){super.render(A),A.classList.add("menu-entry"),this.X(this.Q.item);let T=!1,O=this.J.keyStatus.altKey||(f.isWindows||f.isLinux)&&this.J.keyStatus.shiftKey;const B=()=>{var W;const j=T&&O&&!!(!((W=this.R.alt)===null||W===void 0)&&W.enabled);j!==this.i&&(this.i=j,this.p(),this.t(),this.v())};this.Q.alt&&this.q(this.J.event(W=>{O=W.altKey||(f.isWindows||f.isLinux)&&W.shiftKey,B()})),this.q((0,C.addDisposableListener)(A,"mouseleave",W=>{T=!1,B()})),this.q((0,C.addDisposableListener)(A,"mouseenter",W=>{T=!0,B()}))}p(){this.l.label&&this.s&&(this.s.textContent=this.R.label)}r(){var A;const T=this.L.lookupKeybinding(this.R.id,this.N),O=T&&T.getLabel(),B=this.R.tooltip||this.R.label;let W=O?(0,g.localize)(0,null,B,O):B;if(!this.i&&((A=this.Q.alt)===null||A===void 0?void 0:A.enabled)){const j=this.Q.alt.tooltip||this.Q.alt.label,F=this.L.lookupKeybinding(this.Q.alt.id,this.N),U=F&&F.getLabel(),Q=U?(0,g.localize)(1,null,j,U):j;W=(0,g.localize)(2,null,W,S.UILabelProvider.modifierLabels[f.OS].altKey,Q)}return W}v(){this.l.icon&&(this.R!==this.Q?this.Q.alt&&this.X(this.Q.alt.item):this.X(this.Q.item))}X(A){this.I.value=void 0;const{element:T,s:O}=this;if(!T||!O)return;const B=this.R.checked&&(0,t.isICommandActionToggleInfo)(A.toggled)&&A.toggled.icon?A.toggled.icon:A.icon;if(!!B)if(o.ThemeIcon.isThemeIcon(B)){const W=o.ThemeIcon.asClassNameArray(B);O.classList.add(...W),this.I.value=(0,v.toDisposable)(()=>{O.classList.remove(...W)})}else O.style.backgroundImage=(0,u.isDark)(this.O.getColorTheme().type)?(0,C.asCSSUrl)(B.dark):(0,C.asCSSUrl)(B.light),O.classList.add("icon"),this.I.value=(0,v.combinedDisposable)((0,v.toDisposable)(()=>{O.style.backgroundImage="",O.classList.remove("icon")}),this.O.onDidColorThemeChange(()=>{this.v()}))}};k=Ne([ge(2,c.IKeybindingService),ge(3,d.INotificationService),ge(4,n.IContextKeyService),ge(5,l.IThemeService),ge(6,a.IContextMenuService)],k),e.MenuEntryActionViewItem=k;let D=class extends I.DropdownMenuActionViewItem{constructor(A,T,O,B){var W,j;const F=Object.assign({},T??Object.create(null),{menuAsChild:(W=T?.menuAsChild)!==null&&W!==void 0?W:!1,classNames:(j=T?.classNames)!==null&&j!==void 0?j:o.ThemeIcon.isThemeIcon(A.item.icon)?o.ThemeIcon.asClassName(A.item.icon):void 0});super(A,{getActions:()=>A.actions},O,F),this.D=O,this.F=B}render(A){super.render(A),(0,h.assertType)(this.element),A.classList.add("menu-entry");const T=this._action,{icon:O}=T.item;if(O&&!o.ThemeIcon.isThemeIcon(O)){this.element.classList.add("icon");const B=()=>{this.element&&(this.element.style.backgroundImage=(0,u.isDark)(this.F.getColorTheme().type)?(0,C.asCSSUrl)(O.dark):(0,C.asCSSUrl)(O.light))};B(),this.q(this.F.onDidColorThemeChange(()=>{B()}))}}};D=Ne([ge(2,a.IContextMenuService),ge(3,l.IThemeService)],D),e.SubmenuEntryActionViewItem=D;let M=class extends E.BaseActionViewItem{constructor(A,T,O,B,W,j,F,U){var Q,se,he;super(null,A),this.s=O,this.y=B,this.z=W,this.B=j,this.C=F,this.D=U,this.i=null,this.c=T,this.k=`${A.item.submenu.id}_lastActionId`;let ie;const ue=U.get(this.k,1);ue&&(ie=A.actions.find(x=>ue===x.id)),ie||(ie=A.actions[0]),this.g=this.C.createInstance(k,ie,{keybinding:this.G(ie)});const J=Object.assign({},T??Object.create(null),{menuAsChild:(Q=T?.menuAsChild)!==null&&Q!==void 0?Q:!0,classNames:(se=T?.classNames)!==null&&se!==void 0?se:["codicon","codicon-chevron-down"],actionRunner:(he=T?.actionRunner)!==null&&he!==void 0?he:new L.ActionRunner});this.h=new I.DropdownMenuActionViewItem(A,A.actions,this.z,J),this.h.actionRunner.onDidRun(x=>{x.action instanceof i.MenuItemAction&&this.F(x.action)})}F(A){this.D.store(this.k,A.id,1,0),this.g.dispose(),this.g=this.C.createInstance(k,A,{keybinding:this.G(A)}),this.g.actionRunner=new class extends L.ActionRunner{g(T,O){return ye(this,void 0,void 0,function*(){yield T.run(void 0)})}},this.i&&this.g.render((0,C.prepend)(this.i,(0,C.$)(".action-container")))}G(A){var T;let O;if(!((T=this.c)===null||T===void 0)&&T.renderKeybindingWithDefaultActionLabel){const B=this.s.lookupKeybinding(A.id);B&&(O=`(${B.getLabel()})`)}return O}setActionContext(A){super.setActionContext(A),this.g.setActionContext(A),this.h.setActionContext(A)}render(A){this.i=A,super.render(this.i),this.i.classList.add("monaco-dropdown-with-default");const T=(0,C.$)(".action-container");this.g.render((0,C.append)(this.i,T)),this.q((0,C.addDisposableListener)(T,C.EventType.KEY_DOWN,B=>{const W=new N.StandardKeyboardEvent(B);W.equals(17)&&(this.g.element.tabIndex=-1,this.h.focus(),W.stopPropagation())}));const O=(0,C.$)(".dropdown-action-container");this.h.render((0,C.append)(this.i,O)),this.q((0,C.addDisposableListener)(O,C.EventType.KEY_DOWN,B=>{var W;const j=new N.StandardKeyboardEvent(B);j.equals(15)&&(this.g.element.tabIndex=0,this.h.setFocusable(!1),(W=this.g.element)===null||W===void 0||W.focus(),j.stopPropagation())}))}focus(A){A?this.h.focus():(this.g.element.tabIndex=0,this.g.element.focus())}blur(){this.g.element.tabIndex=-1,this.h.blur(),this.i.blur()}setFocusable(A){A?this.g.element.tabIndex=0:(this.g.element.tabIndex=-1,this.h.setFocusable(!1))}dispose(){this.g.dispose(),this.h.dispose(),super.dispose()}};M=Ne([ge(2,c.IKeybindingService),ge(3,d.INotificationService),ge(4,a.IContextMenuService),ge(5,i.IMenuService),ge(6,r.IInstantiationService),ge(7,s.IStorageService)],M),e.DropdownWithDefaultActionViewItem=M;let z=class extends E.SelectActionViewItem{constructor(A,T){super(null,A,A.actions.map(O=>({text:O.id===L.Separator.ID?"\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500":O.label,isDisabled:!O.enabled})),0,T,m.defaultSelectBoxStyles,{ariaLabel:A.tooltip,optionsAsChildren:!0}),this.select(Math.max(0,A.actions.findIndex(O=>O.checked)))}render(A){super.render(A),A.style.borderColor=(0,w.asCssVariable)(w.selectBorder)}h(A,T){const O=this.action.actions[T];O&&this.actionRunner.run(O)}};z=Ne([ge(1,a.IContextViewService)],z);function R(P,A,T){return A instanceof i.MenuItemAction?P.createInstance(k,A,T):A instanceof i.SubmenuItemAction?A.item.isSelection?P.createInstance(z,A):A.item.rememberDefaultAction?P.createInstance(M,A,T):P.createInstance(D,A,T):void 0}e.createActionViewItem=R}),define(_[233],ee([1,0,7,68,206,41,11,29,2,16,32,195,622,148,761,28,25,15,57,8,38,80,81,408]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s,l,o,u,h){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CustomizedMenuWorkbenchToolBar=e.InlineSuggestionHintsContentWidget=void 0;const w=(0,h.registerIcon)("inline-suggestion-hints-next",S.Codicon.chevronRight,(0,t.localize)(0,null)),m=(0,h.registerIcon)("inline-suggestion-hints-previous",S.Codicon.chevronLeft,(0,t.localize)(1,null));let p=class ui extends v.Disposable{static get dropDownVisible(){return this.a}l(D,M,z){const R=new I.Action(D,M,z,!0,()=>this.y.executeCommand(D)),P=this.z.lookupKeybinding(D,this.B);let A=M;return P&&(A=(0,t.localize)(2,null,M,P.getLabel())),R.tooltip=A,R}constructor(D,M,z,R,P,A,T){super(),this.v=D,this.w=M,this.y=z,this.z=P,this.B=A,this.C=T,this.b=`InlineSuggestionHintsContentWidget${ui.id++}`,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.i=(0,C.h)("div.inlineSuggestionsHints",{className:this.w?".withBorder":""},[(0,C.h)("div",{style:{display:"flex"}},[(0,C.h)("div@actionBar",{className:"custom-actions"}),(0,C.h)("div@toolBar")])]),this.j=null,this.m=this.l(i.showPreviousInlineSuggestionActionId,(0,t.localize)(3,null),g.ThemeIcon.asClassName(m)),this.n=new I.Action("inlineSuggestionHints.availableSuggestionCount","",void 0,!1),this.p=this.l(i.showNextInlineSuggestionActionId,(0,t.localize)(4,null),g.ThemeIcon.asClassName(w)),this.s=this.q(this.C.createMenu(r.MenuId.InlineCompletionsActions,this.B)),this.t=this.q(new L.RunOnceScheduler(()=>{this.n.label=""},100)),this.u=this.q(new L.RunOnceScheduler(()=>{this.m.enabled=this.p.enabled=!1},100));const O=this.q(new N.ActionBar(this.i.actionBar));O.push(this.m,{icon:!0,label:!1}),O.push(this.n),O.push(this.p,{icon:!0,label:!1}),this.r=this.q(R.createInstance(y,this.i.toolBar,r.MenuId.InlineSuggestionToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:B=>B.startsWith("primary")},actionViewItemProvider:(B,W)=>B instanceof r.MenuItemAction?R.createInstance(b,B,void 0):void 0,telemetrySource:"InlineSuggestionToolbar"})),this.q(this.r.onDidChangeDropdownVisibility(B=>{ui.a=B}))}update(D,M,z,R){this.j=D,z!==void 0&&z>1?(this.u.cancel(),this.m.enabled=this.p.enabled=!0):this.u.schedule(),z!==void 0?(this.t.cancel(),this.n.label=`${M+1}/${z}`):this.t.schedule(),this.v.layoutContentWidget(this);const P=R.map(A=>({class:void 0,id:A.id,enabled:!0,tooltip:A.tooltip||"",label:A.title,run:T=>this.y.executeCommand(A.id)}));for(const[A,T]of this.s.getActions())for(const O of T)O instanceof r.MenuItemAction&&P.push(O);P.length>0&&P.unshift(new I.Separator),this.r.setAdditionalSecondaryActions(P)}getId(){return this.b}getDomNode(){return this.i.root}getPosition(){return{position:this.j,preference:[1,2],positionAffinity:3}}};p.a=!1,p.id=0,p=Ne([ge(2,c.ICommandService),ge(3,l.IInstantiationService),ge(4,o.IKeybindingService),ge(5,d.IContextKeyService),ge(6,r.IMenuService)],p),e.InlineSuggestionHintsContentWidget=p;class b extends n.MenuEntryActionViewItem{p(){const D=this.L.lookupKeybinding(this._action.id,this.N);if(!D)return super.p();if(this.s){const M=(0,C.h)("div.keybinding").root;new E.KeybindingLabel(M,f.OS,Object.assign({disableTitle:!0},E.unthemedKeybindingLabelOptions)).set(D),this.s.textContent=this._action.label,this.s.appendChild(M),this.s.classList.add("inlineSuggestionStatusBarItemLabel")}}}let y=class extends a.WorkbenchToolBar{constructor(D,M,z,R,P,A,T,O){super(D,Object.assign({resetMenu:M},z),R,P,A,T,O),this.G=M,this.H=z,this.I=R,this.J=P,this.D=this.f.add(this.I.createMenu(this.G,this.J,{emitEventsForSubmenuChanges:!0})),this.F=[],this.f.add(this.D.onDidChange(()=>this.L())),this.L()}L(){var D,M,z,R,P,A,T;const O=[],B=[];(0,n.createAndFillInActionBarActions)(this.D,(D=this.H)===null||D===void 0?void 0:D.menuOptions,{primary:O,secondary:B},(z=(M=this.H)===null||M===void 0?void 0:M.toolbarOptions)===null||z===void 0?void 0:z.primaryGroup,(P=(R=this.H)===null||R===void 0?void 0:R.toolbarOptions)===null||P===void 0?void 0:P.shouldInlineSubmenu,(T=(A=this.H)===null||A===void 0?void 0:A.toolbarOptions)===null||T===void 0?void 0:T.useSeparatorsInPrimaryActions),B.push(...this.F),this.setActions(O,B)}setAdditionalSecondaryActions(D){this.F=D,this.L()}};y=Ne([ge(3,r.IMenuService),ge(4,d.IContextKeyService),ge(5,s.IContextMenuService),ge(6,o.IKeybindingService),ge(7,u.ITelemetryService)],y),e.CustomizedMenuWorkbenchToolBar=y}),define(_[806],ee([1,0,7,68,2,646,148,28,15,8]),function(q,e,C,N,E,I,L,S,v,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SuggestWidgetStatus=void 0;class g extends L.MenuEntryActionViewItem{p(){const n=this.L.lookupKeybinding(this._action.id,this.N);if(!n)return super.p();this.s&&(this.s.textContent=(0,I.localize)(0,null,this._action.label,g.symbolPrintEnter(n)))}static symbolPrintEnter(n){var a;return(a=n.getLabel())===null||a===void 0?void 0:a.replace(/\benter\b/gi,"\u23CE")}}let i=class{constructor(n,a,r,c,d){this.d=a,this.e=c,this.f=d,this.c=new E.DisposableStore,this.element=C.append(n,C.$(".suggest-status-bar"));const s=l=>l instanceof S.MenuItemAction?r.createInstance(g,l,void 0):void 0;this.a=new N.ActionBar(this.element,{actionViewItemProvider:s}),this.b=new N.ActionBar(this.element,{actionViewItemProvider:s}),this.a.domNode.classList.add("left"),this.b.domNode.classList.add("right")}dispose(){this.c.dispose(),this.element.remove()}show(){const n=this.e.createMenu(this.d,this.f),a=()=>{const r=[],c=[];for(const[d,s]of n.getActions())d==="left"?r.push(...s):c.push(...s);this.a.clear(),this.a.push(r),this.b.clear(),this.b.push(c)};this.c.add(n.onDidChange(()=>a())),this.c.add(n)}hide(){this.c.clear()}};i=Ne([ge(2,f.IInstantiationService),ge(3,S.IMenuService),ge(4,v.IContextKeyService)],i),e.SuggestWidgetStatus=i}),define(_[807],ee([1,0,7,41,6,2,148,28,15,38,42,80,773,57]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContextMenuMenuDelegate=e.ContextMenuService=void 0;let a=class extends I.Disposable{get b(){return this.a||(this.a=new t.ContextMenuHandler(this.k,this.h,this.j,this.l)),this.a}constructor(d,s,l,o,u,h){super(),this.h=d,this.j=s,this.k=l,this.l=o,this.m=u,this.n=h,this.a=void 0,this.c=this.f.add(new E.Emitter),this.g=this.f.add(new E.Emitter)}configure(d){this.b.configure(d)}showContextMenu(d){d=r.transform(d,this.m,this.n),this.b.showContextMenu(Object.assign(Object.assign({},d),{onHide:s=>{var l;(l=d.onHide)===null||l===void 0||l.call(d,s),this.g.fire()}})),C.ModifierKeyEmitter.getInstance().resetKeyStatus(),this.c.fire()}};a=Ne([ge(0,i.ITelemetryService),ge(1,g.INotificationService),ge(2,n.IContextViewService),ge(3,f.IKeybindingService),ge(4,S.IMenuService),ge(5,v.IContextKeyService)],a),e.ContextMenuService=a;var r;(function(c){function d(l){return l&&l.menuId instanceof S.MenuId}function s(l,o,u){if(!d(l))return l;const{menuId:h,menuActionOptions:w,contextKeyService:m}=l;return Object.assign(Object.assign({},l),{getActions:()=>{const p=[];if(h){const b=o.createMenu(h,m??u);(0,L.createAndFillInContextMenuActions)(b,w,p),b.dispose()}return l.getActions?N.Separator.join(l.getActions(),p):p}})}c.transform=s})(r=e.ContextMenuMenuDelegate||(e.ContextMenuMenuDelegate={}))}),define(_[808],ee([1,0,20,6,77,15,8,120,177,50,726,98,31,23,712]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.QuickInputService=void 0;let r=class extends n.Themable{get j(){return this.i||(this.i=this.q(this.t())),this.i}get k(){return!!this.i}get quickAccess(){return this.l||(this.l=this.q(this.n.createInstance(g.QuickAccessController))),this.l}constructor(d,s,l,o,u){super(l),this.n=d,this.p=s,this.r=o,this.s=u,this.g=this.q(new N.Emitter),this.h=this.q(new N.Emitter),this.m=new Map}t(d=this.s,s){const l={idPrefix:"quickInput_",container:d.container,ignoreFocusOut:()=>!1,isScreenReaderOptimized:()=>this.r.isScreenReaderOptimized(),backKeybindingLabel:()=>{},setContextKey:u=>this.u(u),linkOpenerDelegate:u=>{this.n.invokeFunction(h=>{h.get(f.IOpenerService).open(u,{allowCommands:!0,fromUserGesture:!0})})},returnFocus:()=>d.focus(),createList:(u,h,w,m,p)=>this.n.createInstance(v.WorkbenchList,u,h,w,m,p),hoverDelegate:{showHover(u,h){},delay:200},styles:this.w()},o=this.q(new a.QuickInputController(Object.assign(Object.assign({},l),s)));return o.layout(d.dimension,d.offset.quickPickTop),this.q(d.onDidLayout(u=>o.layout(u,d.offset.quickPickTop))),this.q(o.onShow(()=>{this.v(),this.g.fire()})),this.q(o.onHide(()=>{this.v(),this.h.fire()})),o}u(d){let s;d&&(s=this.m.get(d),s||(s=new I.RawContextKey(d,!1).bindTo(this.p),this.m.set(d,s))),!(s&&s.get())&&(this.v(),s?.set(!0))}v(){this.m.forEach(d=>{d.get()&&d.reset()})}pick(d,s={},l=C.CancellationToken.None){return this.j.pick(d,s,l)}createQuickPick(){return this.j.createQuickPick()}createInputBox(){return this.j.createInputBox()}updateStyles(){this.k&&this.j.applyStyles(this.w())}w(){return{widget:{quickInputBackground:(0,t.asCssVariable)(t.quickInputBackground),quickInputForeground:(0,t.asCssVariable)(t.quickInputForeground),quickInputTitleBackground:(0,t.asCssVariable)(t.quickInputTitleBackground),widgetBorder:(0,t.asCssVariable)(t.widgetBorder),widgetShadow:(0,t.asCssVariable)(t.widgetShadow)},inputBox:i.defaultInputBoxStyles,toggle:i.defaultToggleStyles,countBadge:i.defaultCountBadgeStyles,button:i.defaultButtonStyles,progressBar:i.defaultProgressBarStyles,keybindingLabel:i.defaultKeybindingLabelStyles,list:(0,i.getListStyles)({listBackground:t.quickInputBackground,listFocusBackground:t.quickInputListFocusBackground,listFocusForeground:t.quickInputListFocusForeground,listInactiveFocusForeground:t.quickInputListFocusForeground,listInactiveSelectionIconForeground:t.quickInputListFocusIconForeground,listInactiveFocusBackground:t.quickInputListFocusBackground,listFocusOutline:t.activeContrastBorder,listInactiveFocusOutline:t.activeContrastBorder}),pickerGroup:{pickerGroupBorder:(0,t.asCssVariable)(t.pickerGroupBorder),pickerGroupForeground:(0,t.asCssVariable)(t.pickerGroupForeground)}}}};r=Ne([ge(0,L.IInstantiationService),ge(1,I.IContextKeyService),ge(2,n.IThemeService),ge(3,E.IAccessibilityService),ge(4,S.ILayoutService)],r),e.QuickInputService=r}),define(_[809],ee([1,0,14,23,20,8,15,77,304,30,808,92,426]),function(q,e,C,N,E,I,L,S,v,f,g,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.QuickInputEditorWidget=e.QuickInputEditorContribution=e.StandaloneQuickInputService=void 0;let t=class extends g.QuickInputService{constructor(d,s,l,o,u,h){super(s,l,o,u,new v.EditorScopedLayoutService(d.getContainerDomNode(),h)),this.y=void 0;const w=a.get(d);if(w){const m=w.widget;this.y={_serviceBrand:void 0,get hasContainer(){return!0},get container(){return m.getDomNode()},get dimension(){return d.getLayoutInfo()},get onDidLayout(){return d.onDidLayoutChange},focus:()=>d.focus(),offset:{top:0,quickPickTop:0}}}else this.y=void 0}t(){return super.t(this.y)}};t=Ne([ge(1,I.IInstantiationService),ge(2,L.IContextKeyService),ge(3,N.IThemeService),ge(4,S.IAccessibilityService),ge(5,f.ICodeEditorService)],t);let n=class{get b(){const d=this.d.getFocusedCodeEditor();if(!d)throw new Error("Quick input service needs a focused editor to work.");let s=this.a.get(d);if(!s){const l=s=this.c.createInstance(t,d);this.a.set(d,s),(0,i.once)(d.onDidDispose)(()=>{l.dispose(),this.a.delete(d)})}return s}get quickAccess(){return this.b.quickAccess}constructor(d,s){this.c=d,this.d=s,this.a=new Map}pick(d,s={},l=E.CancellationToken.None){return this.b.pick(d,s,l)}createQuickPick(){return this.b.createQuickPick()}createInputBox(){return this.b.createInputBox()}};n=Ne([ge(0,I.IInstantiationService),ge(1,f.ICodeEditorService)],n),e.StandaloneQuickInputService=n;class a{static get(d){return d.getContribution(a.ID)}constructor(d){this.a=d,this.widget=new r(this.a)}dispose(){this.widget.dispose()}}a.ID="editor.controller.quickInput",e.QuickInputEditorContribution=a;class r{constructor(d){this.c=d,this.b=document.createElement("div"),this.c.addOverlayWidget(this)}getId(){return r.a}getDomNode(){return this.b}getPosition(){return{preference:2}}dispose(){this.c.removeOverlayWidget(this)}}r.a="editor.contrib.quickInputWidget",e.QuickInputEditorWidget=r,(0,C.registerEditorContribution)(a.ID,a,4)}),define(_[178],ee([1,0,8]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UndoRedoSource=e.UndoRedoGroup=e.ResourceEditStackSnapshot=e.IUndoRedoService=void 0,e.IUndoRedoService=(0,C.createDecorator)("undoRedoService");class N{constructor(S,v){this.resource=S,this.elements=v}}e.ResourceEditStackSnapshot=N;class E{constructor(){this.id=E.a++,this.b=1}nextOrder(){return this.id===0?0:this.b++}}E.a=0,E.None=new E,e.UndoRedoGroup=E;class I{constructor(){this.id=I.a++,this.b=1}nextOrder(){return this.id===0?0:this.b++}}I.a=0,I.None=new I,e.UndoRedoSource=I}),define(_[39],ee([1,0,17,36,13,6,2,9,21,131,185,12,4,22,157,37,34,47,550,792,295,260,463,464,287,551,164,555,104,178]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s,l,o,u,h,w,m,p,b,y,k,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ModelDecorationOptions=e.ModelDecorationInjectedTextOptions=e.ModelDecorationMinimapOptions=e.ModelDecorationOverviewRulerOptions=e.TextModel=e.createTextBuffer=e.createTextBufferFactoryFromSnapshot=e.createTextBufferFactory=void 0;function M(de){const K=new p.PieceTreeTextBufferBuilder;return K.acceptChunk(de),K.finish()}e.createTextBufferFactory=M;function z(de){const K=new p.PieceTreeTextBufferBuilder;let Y;for(;typeof(Y=de.read())=="string";)K.acceptChunk(Y);return K.finish()}e.createTextBufferFactoryFromSnapshot=z;function R(de,K){let Y;return typeof de=="string"?Y=M(de):d.isITextSnapshot(de)?Y=z(de):Y=de,Y.create(K)}e.createTextBuffer=R;let P=0;const A=999,T=1e4;class O{constructor(K){this.a=K,this.b=!1}read(){if(this.b)return null;const K=[];let Y=0,ne=0;do{const V=this.a.read();if(V===null)return this.b=!0,Y===0?null:K.join("");if(V.length>0&&(K[Y++]=V,ne+=V.length),ne>=64*1024)return K.join("")}while(!0)}}const B=()=>{throw new Error("Invalid change accessor")};let W=class Wt extends L.Disposable{static resolveOptions(K,Y){if(Y.detectIndentation){const ne=(0,h.guessIndentation)(K,Y.tabSize,Y.insertSpaces);return new d.TextModelResolvedOptions({tabSize:ne.tabSize,indentSize:"tabSize",insertSpaces:ne.insertSpaces,trimAutoWhitespace:Y.trimAutoWhitespace,defaultEOL:Y.defaultEOL,bracketPairColorizationOptions:Y.bracketPairColorizationOptions})}return new d.TextModelResolvedOptions(Y)}get onDidChangeLanguage(){return this.U.onDidChangeLanguage}get onDidChangeLanguageConfiguration(){return this.U.onDidChangeLanguageConfiguration}get onDidChangeTokens(){return this.U.onDidChangeTokens}onDidChangeContent(K){return this.p.slowEvent(Y=>K(Y.contentChangedEvent))}onDidChangeContentOrInjectedText(K){return(0,L.combinedDisposable)(this.p.fastEvent(Y=>K(Y)),this.n.event(Y=>K(Y)))}_isDisposing(){return this.B}get tokenization(){return this.U}get bracketPairs(){return this.W}get guides(){return this.X}constructor(K,Y,ne,V=null,H,$,oe){super(),this.Y=H,this.Z=$,this.ab=oe,this.g=this.q(new I.Emitter),this.onWillDispose=this.g.event,this.h=this.q(new Z(we=>this.rb(we))),this.onDidChangeDecorations=this.h.event,this.k=this.q(new I.Emitter),this.onDidChangeOptions=this.k.event,this.l=this.q(new I.Emitter),this.onDidChangeAttached=this.l.event,this.n=this.q(new I.Emitter),this.p=this.q(new ae),this.O=0,P++,this.id="$model"+P,this.isForSimpleWidget=ne.isForSimpleWidget,typeof V>"u"||V===null?this.s=v.URI.parse("inmemory://model/"+P):this.s=V,this.u=0;const{textBuffer:re,disposable:X}=R(K,ne.defaultEOL);this.v=re,this.w=X,this.y=Wt.resolveOptions(this.v,ne),this.W=this.q(new s.BracketPairsTextModelPart(this,this.ab)),this.X=this.q(new u.GuidesTextModelPart(this,this.ab)),this.S=this.q(new l.ColorizedBracketPairsDecorationProvider(this)),this.U=new y.TokenizationTextModelPart(this.Z,this.ab,this,this.W,Y);const le=this.v.getLineCount(),me=this.v.getValueLengthInRange(new t.Range(1,1,le,this.v.getLineLength(le)+1),0);ne.largeFileOptimizations?this.H=me>Wt.a||le>Wt.b:this.H=!1,this.G=me>Wt._MODEL_SYNC_LIMIT,this.C=1,this.D=1,this.F=null,this.z=!1,this.B=!1,this.N=S.singleLetterHash(P),this.P=0,this.Q=Object.create(null),this.R=new Q,this.I=new o.EditStack(this,this.Y),this.J=!1,this.L=!1,this.M=null,this.q(this.S.onDidChange(()=>{this.h.beginDeferredEmit(),this.h.fire(),this.h.endDeferredEmit()}))}dispose(){this.B=!0,this.g.fire(),this.U.dispose(),this.z=!0,super.dispose(),this.w.dispose(),this.B=!1;const K=new m.PieceTreeTextBuffer([],"",`
|
||
`,!1,!1,!0,!0);K.dispose(),this.v=K,this.w=L.Disposable.None}bb(){if(this.z)throw new Error("Model is disposed!")}cb(K,Y){this.B||(this.U.handleDidChangeContent(Y),this.W.handleDidChangeContent(Y),this.p.fire(new k.InternalModelContentChangeEvent(K,Y)))}setValue(K){if(this.bb(),K==null)throw(0,E.illegalArgument)();const{textBuffer:Y,disposable:ne}=R(K,this.y.defaultEOL);this.eb(Y,ne)}db(K,Y,ne,V,H,$,oe){return{changes:[{range:K,rangeOffset:Y,rangeLength:ne,text:V}],eol:this.v.getEOL(),versionId:this.getVersionId(),isUndoing:H,isRedoing:$,isFlush:oe}}eb(K,Y){this.bb();const ne=this.getFullModelRange(),V=this.getValueLengthInRange(ne),H=this.getLineCount(),$=this.getLineMaxColumn(H);this.v=K,this.w.dispose(),this.w=Y,this.hb(),this.U.flush(),this.Q=Object.create(null),this.R=new Q,this.I.clear(),this.M=null,this.cb(new k.ModelRawContentChangedEvent([new k.ModelRawFlush],this.C,!1,!1),this.db(new t.Range(1,1,H,$),0,V,this.getValue(),!1,!1,!0))}setEOL(K){this.bb();const Y=K===1?`\r
|
||
`:`
|
||
`;if(this.v.getEOL()===Y)return;const ne=this.getFullModelRange(),V=this.getValueLengthInRange(ne),H=this.getLineCount(),$=this.getLineMaxColumn(H);this.fb(),this.v.setEOL(Y),this.hb(),this.gb(),this.cb(new k.ModelRawContentChangedEvent([new k.ModelRawEOLChanged],this.C,!1,!1),this.db(new t.Range(1,1,H,$),0,V,this.getValue(),!1,!1,!1))}fb(){this.R.ensureAllNodesHaveRanges(this)}gb(){const K=this.getVersionId(),Y=this.R.collectNodesPostOrder();for(let ne=0,V=Y.length;ne<V;ne++){const H=Y[ne],$=H.range,oe=H.cachedAbsoluteStart-H.start,re=this.v.getOffsetAt($.startLineNumber,$.startColumn),X=this.v.getOffsetAt($.endLineNumber,$.endColumn);H.cachedAbsoluteStart=re,H.cachedAbsoluteEnd=X,H.cachedVersionId=K,H.start=re-oe,H.end=X-oe,(0,w.recomputeMaxEnd)(H)}}onBeforeAttached(){this.u++,this.u===1&&(this.U.handleDidChangeAttached(),this.l.fire(void 0))}onBeforeDetached(){this.u--,this.u===0&&(this.U.handleDidChangeAttached(),this.l.fire(void 0))}isAttachedToEditor(){return this.u>0}getAttachedEditorCount(){return this.u}isTooLargeForSyncing(){return this.G}isTooLargeForTokenization(){return this.H}isDisposed(){return this.z}isDominatedByLongLines(){if(this.bb(),this.isTooLargeForTokenization())return!1;let K=0,Y=0;const ne=this.v.getLineCount();for(let V=1;V<=ne;V++){const H=this.v.getLineLength(V);H>=T?Y+=H:K+=H}return Y>K}get uri(){return this.s}getOptions(){return this.bb(),this.y}getFormattingOptions(){return{tabSize:this.y.indentSize,insertSpaces:this.y.insertSpaces}}updateOptions(K){this.bb();const Y=typeof K.tabSize<"u"?K.tabSize:this.y.tabSize,ne=typeof K.indentSize<"u"?K.indentSize:this.y.originalIndentSize,V=typeof K.insertSpaces<"u"?K.insertSpaces:this.y.insertSpaces,H=typeof K.trimAutoWhitespace<"u"?K.trimAutoWhitespace:this.y.trimAutoWhitespace,$=typeof K.bracketColorizationOptions<"u"?K.bracketColorizationOptions:this.y.bracketPairColorizationOptions,oe=new d.TextModelResolvedOptions({tabSize:Y,indentSize:ne,insertSpaces:V,defaultEOL:this.y.defaultEOL,trimAutoWhitespace:H,bracketPairColorizationOptions:$});if(this.y.equals(oe))return;const re=this.y.createChangeEvent(oe);this.y=oe,this.W.handleDidChangeOptions(re),this.S.handleDidChangeOptions(re),this.k.fire(re)}detectIndentation(K,Y){this.bb();const ne=(0,h.guessIndentation)(this.v,Y,K);this.updateOptions({insertSpaces:ne.insertSpaces,tabSize:ne.tabSize,indentSize:ne.tabSize})}normalizeIndentation(K){return this.bb(),(0,g.normalizeIndentation)(K,this.y.indentSize,this.y.insertSpaces)}getVersionId(){return this.bb(),this.C}mightContainRTL(){return this.v.mightContainRTL()}mightContainUnusualLineTerminators(){return this.v.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(K=null){const Y=this.findMatches(S.UNUSUAL_LINE_TERMINATORS.source,!1,!0,!1,null,!1,1073741824);this.v.resetMightContainUnusualLineTerminators(),this.pushEditOperations(K,Y.map(ne=>({range:ne.range,text:null})),()=>null)}mightContainNonBasicASCII(){return this.v.mightContainNonBasicASCII()}getAlternativeVersionId(){return this.bb(),this.D}getInitialUndoRedoSnapshot(){return this.bb(),this.F}getOffsetAt(K){this.bb();const Y=this.jb(K.lineNumber,K.column,0);return this.v.getOffsetAt(Y.lineNumber,Y.column)}getPositionAt(K){this.bb();const Y=Math.min(this.v.getLength(),Math.max(0,K));return this.v.getPositionAt(Y)}hb(){this.C=this.C+1,this.D=this.C}_overwriteVersionId(K){this.C=K}_overwriteAlternativeVersionId(K){this.D=K}_overwriteInitialUndoRedoSnapshot(K){this.F=K}getValue(K,Y=!1){this.bb();const ne=this.getFullModelRange(),V=this.getValueInRange(ne,K);return Y?this.v.getBOM()+V:V}createSnapshot(K=!1){return new O(this.v.createSnapshot(K))}getValueLength(K,Y=!1){this.bb();const ne=this.getFullModelRange(),V=this.getValueLengthInRange(ne,K);return Y?this.v.getBOM().length+V:V}getValueInRange(K,Y=0){return this.bb(),this.v.getValueInRange(this.validateRange(K),Y)}getValueLengthInRange(K,Y=0){return this.bb(),this.v.getValueLengthInRange(this.validateRange(K),Y)}getCharacterCountInRange(K,Y=0){return this.bb(),this.v.getCharacterCountInRange(this.validateRange(K),Y)}getLineCount(){return this.bb(),this.v.getLineCount()}getLineContent(K){if(this.bb(),K<1||K>this.getLineCount())throw new Error("Illegal value for lineNumber");return this.v.getLineContent(K)}getLineLength(K){if(this.bb(),K<1||K>this.getLineCount())throw new Error("Illegal value for lineNumber");return this.v.getLineLength(K)}getLinesContent(){return this.bb(),this.v.getLinesContent()}getEOL(){return this.bb(),this.v.getEOL()}getEndOfLineSequence(){return this.bb(),this.v.getEOL()===`
|
||
`?0:1}getLineMinColumn(K){return this.bb(),1}getLineMaxColumn(K){if(this.bb(),K<1||K>this.getLineCount())throw new Error("Illegal value for lineNumber");return this.v.getLineLength(K)+1}getLineFirstNonWhitespaceColumn(K){if(this.bb(),K<1||K>this.getLineCount())throw new Error("Illegal value for lineNumber");return this.v.getLineFirstNonWhitespaceColumn(K)}getLineLastNonWhitespaceColumn(K){if(this.bb(),K<1||K>this.getLineCount())throw new Error("Illegal value for lineNumber");return this.v.getLineLastNonWhitespaceColumn(K)}_validateRangeRelaxedNoAllocations(K){const Y=this.v.getLineCount(),ne=K.startLineNumber,V=K.startColumn;let H=Math.floor(typeof ne=="number"&&!isNaN(ne)?ne:1),$=Math.floor(typeof V=="number"&&!isNaN(V)?V:1);if(H<1)H=1,$=1;else if(H>Y)H=Y,$=this.getLineMaxColumn(H);else if($<=1)$=1;else{const me=this.getLineMaxColumn(H);$>=me&&($=me)}const oe=K.endLineNumber,re=K.endColumn;let X=Math.floor(typeof oe=="number"&&!isNaN(oe)?oe:1),le=Math.floor(typeof re=="number"&&!isNaN(re)?re:1);if(X<1)X=1,le=1;else if(X>Y)X=Y,le=this.getLineMaxColumn(X);else if(le<=1)le=1;else{const me=this.getLineMaxColumn(X);le>=me&&(le=me)}return ne===H&&V===$&&oe===X&&re===le&&K instanceof t.Range&&!(K instanceof n.Selection)?K:new t.Range(H,$,X,le)}ib(K,Y,ne){if(typeof K!="number"||typeof Y!="number"||isNaN(K)||isNaN(Y)||K<1||Y<1||(K|0)!==K||(Y|0)!==Y)return!1;const V=this.v.getLineCount();if(K>V)return!1;if(Y===1)return!0;const H=this.getLineMaxColumn(K);if(Y>H)return!1;if(ne===1){const $=this.v.getLineCharCode(K,Y-2);if(S.isHighSurrogate($))return!1}return!0}jb(K,Y,ne){const V=Math.floor(typeof K=="number"&&!isNaN(K)?K:1),H=Math.floor(typeof Y=="number"&&!isNaN(Y)?Y:1),$=this.v.getLineCount();if(V<1)return new i.Position(1,1);if(V>$)return new i.Position($,this.getLineMaxColumn($));if(H<=1)return new i.Position(V,1);const oe=this.getLineMaxColumn(V);if(H>=oe)return new i.Position(V,oe);if(ne===1){const re=this.v.getLineCharCode(V,H-2);if(S.isHighSurrogate(re))return new i.Position(V,H-1)}return new i.Position(V,H)}validatePosition(K){return this.bb(),K instanceof i.Position&&this.ib(K.lineNumber,K.column,1)?K:this.jb(K.lineNumber,K.column,1)}kb(K,Y){const ne=K.startLineNumber,V=K.startColumn,H=K.endLineNumber,$=K.endColumn;if(!this.ib(ne,V,0)||!this.ib(H,$,0))return!1;if(Y===1){const oe=V>1?this.v.getLineCharCode(ne,V-2):0,re=$>1&&$<=this.v.getLineLength(H)?this.v.getLineCharCode(H,$-2):0,X=S.isHighSurrogate(oe),le=S.isHighSurrogate(re);return!X&&!le}return!0}validateRange(K){if(this.bb(),K instanceof t.Range&&!(K instanceof n.Selection)&&this.kb(K,1))return K;const ne=this.jb(K.startLineNumber,K.startColumn,0),V=this.jb(K.endLineNumber,K.endColumn,0),H=ne.lineNumber,$=ne.column,oe=V.lineNumber,re=V.column;{const X=$>1?this.v.getLineCharCode(H,$-2):0,le=re>1&&re<=this.v.getLineLength(oe)?this.v.getLineCharCode(oe,re-2):0,me=S.isHighSurrogate(X),we=S.isHighSurrogate(le);return!me&&!we?new t.Range(H,$,oe,re):H===oe&&$===re?new t.Range(H,$-1,oe,re-1):me&&we?new t.Range(H,$-1,oe,re+1):me?new t.Range(H,$-1,oe,re):new t.Range(H,$,oe,re+1)}return new t.Range(H,$,oe,re)}modifyPosition(K,Y){this.bb();const ne=this.getOffsetAt(K)+Y;return this.getPositionAt(Math.min(this.v.getLength(),Math.max(0,ne)))}getFullModelRange(){this.bb();const K=this.getLineCount();return new t.Range(1,1,K,this.getLineMaxColumn(K))}lb(K,Y,ne,V){return this.v.findMatchesLineByLine(K,Y,ne,V)}findMatches(K,Y,ne,V,H,$,oe=A){this.bb();let re=null;Y!==null&&(Array.isArray(Y)||(Y=[Y]),Y.every(me=>t.Range.isIRange(me))&&(re=Y.map(me=>this.validateRange(me)))),re===null&&(re=[this.getFullModelRange()]),re=re.sort((me,we)=>me.startLineNumber-we.startLineNumber||me.startColumn-we.startColumn);const X=[];X.push(re.reduce((me,we)=>t.Range.areIntersecting(me,we)?me.plusRange(we):(X.push(me),we)));let le;if(!ne&&K.indexOf(`
|
||
`)<0){const we=new b.SearchParams(K,ne,V,H).parseSearchRequest();if(!we)return[];le=Le=>this.lb(Le,we,$,oe)}else le=me=>b.TextModelSearch.findMatches(this,new b.SearchParams(K,ne,V,H),me,$,oe);return X.map(le).reduce((me,we)=>me.concat(we),[])}findNextMatch(K,Y,ne,V,H,$){this.bb();const oe=this.validatePosition(Y);if(!ne&&K.indexOf(`
|
||
`)<0){const X=new b.SearchParams(K,ne,V,H).parseSearchRequest();if(!X)return null;const le=this.getLineCount();let me=new t.Range(oe.lineNumber,oe.column,le,this.getLineMaxColumn(le)),we=this.lb(me,X,$,1);return b.TextModelSearch.findNextMatch(this,new b.SearchParams(K,ne,V,H),oe,$),we.length>0||(me=new t.Range(1,1,oe.lineNumber,this.getLineMaxColumn(oe.lineNumber)),we=this.lb(me,X,$,1),we.length>0)?we[0]:null}return b.TextModelSearch.findNextMatch(this,new b.SearchParams(K,ne,V,H),oe,$)}findPreviousMatch(K,Y,ne,V,H,$){this.bb();const oe=this.validatePosition(Y);return b.TextModelSearch.findPreviousMatch(this,new b.SearchParams(K,ne,V,H),oe,$)}pushStackElement(){this.I.pushStackElement()}popStackElement(){this.I.popStackElement()}pushEOL(K){if((this.getEOL()===`
|
||
`?0:1)!==K)try{this.h.beginDeferredEmit(),this.p.beginDeferredEmit(),this.F===null&&(this.F=this.Y.createSnapshot(this.uri)),this.I.pushEOL(K)}finally{this.p.endDeferredEmit(),this.h.endDeferredEmit()}}mb(K){return K instanceof d.ValidAnnotatedEditOperation?K:new d.ValidAnnotatedEditOperation(K.identifier||null,this.validateRange(K.range),K.text,K.forceMoveMarkers||!1,K.isAutoWhitespaceEdit||!1,K._isTracked||!1)}nb(K){const Y=[];for(let ne=0,V=K.length;ne<V;ne++)Y[ne]=this.mb(K[ne]);return Y}pushEditOperations(K,Y,ne,V){try{return this.h.beginDeferredEmit(),this.p.beginDeferredEmit(),this.ob(K,this.nb(Y),ne,V)}finally{this.p.endDeferredEmit(),this.h.endDeferredEmit()}}ob(K,Y,ne,V){if(this.y.trimAutoWhitespace&&this.M){const H=Y.map(oe=>({range:this.validateRange(oe.range),text:oe.text}));let $=!0;if(K)for(let oe=0,re=K.length;oe<re;oe++){const X=K[oe];let le=!1;for(let me=0,we=H.length;me<we;me++){const Le=H[me].range,Ee=Le.startLineNumber>X.endLineNumber,Me=X.startLineNumber>Le.endLineNumber;if(!Ee&&!Me){le=!0;break}}if(!le){$=!1;break}}if($)for(let oe=0,re=this.M.length;oe<re;oe++){const X=this.M[oe],le=this.getLineMaxColumn(X);let me=!0;for(let we=0,Le=H.length;we<Le;we++){const Ee=H[we].range,Me=H[we].text;if(!(X<Ee.startLineNumber||X>Ee.endLineNumber)&&!(X===Ee.startLineNumber&&Ee.startColumn===le&&Ee.isEmpty()&&Me&&Me.length>0&&Me.charAt(0)===`
|
||
`)&&!(X===Ee.startLineNumber&&Ee.startColumn===1&&Ee.isEmpty()&&Me&&Me.length>0&&Me.charAt(Me.length-1)===`
|
||
`)){me=!1;break}}if(me){const we=new t.Range(X,1,X,le);Y.push(new d.ValidAnnotatedEditOperation(null,we,null,!1,!1,!1))}}this.M=null}return this.F===null&&(this.F=this.Y.createSnapshot(this.uri)),this.I.pushEditOperation(K,Y,ne,V)}_applyUndo(K,Y,ne,V){const H=K.map($=>{const oe=this.getPositionAt($.newPosition),re=this.getPositionAt($.newEnd);return{range:new t.Range(oe.lineNumber,oe.column,re.lineNumber,re.column),text:$.oldText}});this.pb(H,Y,!0,!1,ne,V)}_applyRedo(K,Y,ne,V){const H=K.map($=>{const oe=this.getPositionAt($.oldPosition),re=this.getPositionAt($.oldEnd);return{range:new t.Range(oe.lineNumber,oe.column,re.lineNumber,re.column),text:$.newText}});this.pb(H,Y,!1,!0,ne,V)}pb(K,Y,ne,V,H,$){try{this.h.beginDeferredEmit(),this.p.beginDeferredEmit(),this.J=ne,this.L=V,this.applyEdits(K,!1),this.setEOL(Y),this._overwriteAlternativeVersionId(H)}finally{this.J=!1,this.L=!1,this.p.endDeferredEmit($),this.h.endDeferredEmit()}}applyEdits(K,Y=!1){try{this.h.beginDeferredEmit(),this.p.beginDeferredEmit();const ne=this.nb(K);return this.qb(ne,Y)}finally{this.p.endDeferredEmit(),this.h.endDeferredEmit()}}qb(K,Y){const ne=this.v.getLineCount(),V=this.v.applyEdits(K,this.y.trimAutoWhitespace,Y),H=this.v.getLineCount(),$=V.changes;if(this.M=V.trimAutoWhitespaceLineNumbers,$.length!==0){for(let X=0,le=$.length;X<le;X++){const me=$[X],[we,Le,Ee]=(0,f.countEOL)(me.text);this.U.acceptEdit(me.range,me.text,we,Le,Ee),this.R.acceptReplace(me.rangeOffset,me.rangeLength,me.text.length,me.forceMoveMarkers)}const oe=[];this.hb();let re=ne;for(let X=0,le=$.length;X<le;X++){const me=$[X],[we]=(0,f.countEOL)(me.text);this.h.fire();const Le=me.range.startLineNumber,Ee=me.range.endLineNumber,Me=Ee-Le,Ae=we,ke=Math.min(Me,Ae),fe=Ae-Me,pe=H-re-fe+Le,ce=pe,be=pe+Ae,Se=this.R.getInjectedTextInInterval(this,this.getOffsetAt(new i.Position(ce,1)),this.getOffsetAt(new i.Position(be,this.getLineMaxColumn(be))),0),Ie=k.LineInjectedText.fromDecorations(Se),Ce=new C.ArrayQueue(Ie);for(let ve=ke;ve>=0;ve--){const De=Le+ve,Oe=pe+ve;Ce.takeFromEndWhile(xe=>xe.lineNumber>Oe);const Re=Ce.takeFromEndWhile(xe=>xe.lineNumber===Oe);oe.push(new k.ModelRawLineChanged(De,this.getLineContent(Oe),Re))}if(ke<Me){const ve=Le+ke;oe.push(new k.ModelRawLinesDeleted(ve+1,Ee))}if(ke<Ae){const ve=new C.ArrayQueue(Ie),De=Le+ke,Oe=Ae-ke,Re=H-re-Oe+De+1,xe=[],Fe=[];for(let Be=0;Be<Oe;Be++){const Ke=Re+Be;Fe[Be]=this.getLineContent(Ke),ve.takeWhile($e=>$e.lineNumber<Ke),xe[Be]=ve.takeWhile($e=>$e.lineNumber===Ke)}oe.push(new k.ModelRawLinesInserted(De+1,Le+Ae,Fe,xe))}re+=fe}this.cb(new k.ModelRawContentChangedEvent(oe,this.getVersionId(),this.J,this.L),{changes:$,eol:this.v.getEOL(),versionId:this.getVersionId(),isUndoing:this.J,isRedoing:this.L,isFlush:!1})}return V.reverseEdits===null?void 0:V.reverseEdits}undo(){return this.Y.undo(this.uri)}canUndo(){return this.Y.canUndo(this.uri)}redo(){return this.Y.redo(this.uri)}canRedo(){return this.Y.canRedo(this.uri)}rb(K){if(K===null||K.size===0)return;const ne=Array.from(K).map(V=>new k.ModelRawLineChanged(V,this.getLineContent(V),this.tb(V)));this.n.fire(new k.ModelInjectedTextChangedEvent(ne))}changeDecorations(K,Y=0){this.bb();try{return this.h.beginDeferredEmit(),this.sb(Y,K)}finally{this.h.endDeferredEmit()}}sb(K,Y){const ne={addDecoration:(H,$)=>this.xb(K,[],[{range:H,options:$}])[0],changeDecoration:(H,$)=>{this.vb(H,$)},changeDecorationOptions:(H,$)=>{this.wb(H,te($))},removeDecoration:H=>{this.xb(K,[H],[])},deltaDecorations:(H,$)=>H.length===0&&$.length===0?[]:this.xb(K,H,$)};let V=null;try{V=Y(ne)}catch(H){(0,E.onUnexpectedError)(H)}return ne.addDecoration=B,ne.changeDecoration=B,ne.changeDecorationOptions=B,ne.removeDecoration=B,ne.deltaDecorations=B,V}deltaDecorations(K,Y,ne=0){if(this.bb(),K||(K=[]),K.length===0&&Y.length===0)return[];try{return this.O++,this.O>1&&(console.warn("Invoking deltaDecorations recursively could lead to leaking decorations."),(0,E.onUnexpectedError)(new Error("Invoking deltaDecorations recursively could lead to leaking decorations."))),this.h.beginDeferredEmit(),this.xb(ne,K,Y)}finally{this.h.endDeferredEmit(),this.O--}}_getTrackedRange(K){return this.getDecorationRange(K)}_setTrackedRange(K,Y,ne){const V=K?this.Q[K]:null;if(!V)return Y?this.xb(0,[],[{range:Y,options:G[ne]}])[0]:null;if(!Y)return this.R.delete(V),delete this.Q[V.id],null;const H=this._validateRangeRelaxedNoAllocations(Y),$=this.v.getOffsetAt(H.startLineNumber,H.startColumn),oe=this.v.getOffsetAt(H.endLineNumber,H.endColumn);return this.R.delete(V),V.reset(this.getVersionId(),$,oe,H),V.setOptions(G[ne]),this.R.insert(V),V.id}removeAllDecorationsWithOwnerId(K){if(this.z)return;const Y=this.R.collectNodesFromOwner(K);for(let ne=0,V=Y.length;ne<V;ne++){const H=Y[ne];this.R.delete(H),delete this.Q[H.id]}}getDecorationOptions(K){const Y=this.Q[K];return Y?Y.options:null}getDecorationRange(K){const Y=this.Q[K];return Y?this.R.getNodeRange(this,Y):null}getLineDecorations(K,Y=0,ne=!1){return K<1||K>this.getLineCount()?[]:this.getLinesDecorations(K,K,Y,ne)}getLinesDecorations(K,Y,ne=0,V=!1){const H=this.getLineCount(),$=Math.min(H,Math.max(1,K)),oe=Math.min(H,Math.max(1,Y)),re=this.getLineMaxColumn(oe),X=new t.Range($,1,oe,re),le=this.ub(X,ne,V);return(0,C.pushMany)(le,this.S.getDecorationsInRange(X,ne,V)),le}getDecorationsInRange(K,Y=0,ne=!1,V=!1){const H=this.validateRange(K),$=this.ub(H,Y,ne);return(0,C.pushMany)($,this.S.getDecorationsInRange(H,Y,ne,V)),$}getOverviewRulerDecorations(K=0,Y=!1){return this.R.getAll(this,K,Y,!0)}getInjectedTextDecorations(K=0){return this.R.getAllInjectedText(this,K)}tb(K){const Y=this.v.getOffsetAt(K,1),ne=Y+this.v.getLineLength(K),V=this.R.getInjectedTextInInterval(this,Y,ne,0);return k.LineInjectedText.fromDecorations(V).filter(H=>H.lineNumber===K)}getAllDecorations(K=0,Y=!1){let ne=this.R.getAll(this,K,Y,!1);return ne=ne.concat(this.S.getAllDecorations(K,Y)),ne}ub(K,Y,ne){const V=this.v.getOffsetAt(K.startLineNumber,K.startColumn),H=this.v.getOffsetAt(K.endLineNumber,K.endColumn);return this.R.getAllInInterval(this,V,H,Y,ne)}getRangeAt(K,Y){return this.v.getRangeAt(K,Y-K)}vb(K,Y){const ne=this.Q[K];if(!ne)return;if(ne.options.after){const oe=this.getDecorationRange(K);this.h.recordLineAffectedByInjectedText(oe.endLineNumber)}if(ne.options.before){const oe=this.getDecorationRange(K);this.h.recordLineAffectedByInjectedText(oe.startLineNumber)}const V=this._validateRangeRelaxedNoAllocations(Y),H=this.v.getOffsetAt(V.startLineNumber,V.startColumn),$=this.v.getOffsetAt(V.endLineNumber,V.endColumn);this.R.delete(ne),ne.reset(this.getVersionId(),H,$,V),this.R.insert(ne),this.h.checkAffectedAndFire(ne.options),ne.options.after&&this.h.recordLineAffectedByInjectedText(V.endLineNumber),ne.options.before&&this.h.recordLineAffectedByInjectedText(V.startLineNumber)}wb(K,Y){const ne=this.Q[K];if(!ne)return;const V=!!(ne.options.overviewRuler&&ne.options.overviewRuler.color),H=!!(Y.overviewRuler&&Y.overviewRuler.color);if(this.h.checkAffectedAndFire(ne.options),this.h.checkAffectedAndFire(Y),ne.options.after||Y.after){const $=this.R.getNodeRange(this,ne);this.h.recordLineAffectedByInjectedText($.endLineNumber)}if(ne.options.before||Y.before){const $=this.R.getNodeRange(this,ne);this.h.recordLineAffectedByInjectedText($.startLineNumber)}V!==H?(this.R.delete(ne),ne.setOptions(Y),this.R.insert(ne)):ne.setOptions(Y)}xb(K,Y,ne){const V=this.getVersionId(),H=Y.length;let $=0;const oe=ne.length;let re=0;this.h.beginDeferredEmit();try{const X=new Array(oe);for(;$<H||re<oe;){let le=null;if($<H){do le=this.Q[Y[$++]];while(!le&&$<H);if(le){if(le.options.after){const me=this.R.getNodeRange(this,le);this.h.recordLineAffectedByInjectedText(me.endLineNumber)}if(le.options.before){const me=this.R.getNodeRange(this,le);this.h.recordLineAffectedByInjectedText(me.startLineNumber)}this.R.delete(le),this.h.checkAffectedAndFire(le.options)}}if(re<oe){if(!le){const Ae=++this.P,ke=`${this.N};${Ae}`;le=new w.IntervalNode(ke,0,0),this.Q[ke]=le}const me=ne[re],we=this._validateRangeRelaxedNoAllocations(me.range),Le=te(me.options),Ee=this.v.getOffsetAt(we.startLineNumber,we.startColumn),Me=this.v.getOffsetAt(we.endLineNumber,we.endColumn);le.ownerId=K,le.reset(V,Ee,Me,we),le.setOptions(Le),le.options.after&&this.h.recordLineAffectedByInjectedText(we.endLineNumber),le.options.before&&this.h.recordLineAffectedByInjectedText(we.startLineNumber),this.h.checkAffectedAndFire(Le),this.R.insert(le),X[re]=le.id,re++}else le&&delete this.Q[le.id]}return X}finally{this.h.endDeferredEmit()}}getLanguageId(){return this.tokenization.getLanguageId()}setMode(K,Y){this.tokenization.setLanguageId(K,Y)}getLanguageIdAtPosition(K,Y){return this.tokenization.getLanguageIdAtPosition(K,Y)}getWordAtPosition(K){return this.U.getWordAtPosition(K)}getWordUntilPosition(K){return this.U.getWordUntilPosition(K)}normalizePosition(K,Y){return K}getLineIndentColumn(K){return j(this.getLineContent(K))+1}};W._MODEL_SYNC_LIMIT=50*1024*1024,W.a=20*1024*1024,W.b=300*1e3,W.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:a.EDITOR_MODEL_DEFAULTS.tabSize,indentSize:a.EDITOR_MODEL_DEFAULTS.indentSize,insertSpaces:a.EDITOR_MODEL_DEFAULTS.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:a.EDITOR_MODEL_DEFAULTS.trimAutoWhitespace,largeFileOptimizations:a.EDITOR_MODEL_DEFAULTS.largeFileOptimizations,bracketPairColorizationOptions:a.EDITOR_MODEL_DEFAULTS.bracketPairColorizationOptions},W=Ne([ge(4,D.IUndoRedoService),ge(5,r.ILanguageService),ge(6,c.ILanguageConfigurationService)],W),e.TextModel=W;function j(de){let K=0;for(const Y of de)if(Y===" "||Y===" ")K++;else break;return K}function F(de){return!!(de.options.overviewRuler&&de.options.overviewRuler.color)}function U(de){return!!de.options.after||!!de.options.before}class Q{constructor(){this.a=new w.IntervalTree,this.b=new w.IntervalTree,this.d=new w.IntervalTree}ensureAllNodesHaveRanges(K){this.getAll(K,0,!1,!1)}f(K,Y){for(const ne of Y)ne.range===null&&(ne.range=K.getRangeAt(ne.cachedAbsoluteStart,ne.cachedAbsoluteEnd));return Y}getAllInInterval(K,Y,ne,V,H){const $=K.getVersionId(),oe=this.g(Y,ne,V,H,$);return this.f(K,oe)}g(K,Y,ne,V,H){const $=this.a.intervalSearch(K,Y,ne,V,H),oe=this.b.intervalSearch(K,Y,ne,V,H),re=this.d.intervalSearch(K,Y,ne,V,H);return $.concat(oe).concat(re)}getInjectedTextInInterval(K,Y,ne,V){const H=K.getVersionId(),$=this.d.intervalSearch(Y,ne,V,!1,H);return this.f(K,$).filter(oe=>oe.options.showIfCollapsed||!oe.range.isEmpty())}getAllInjectedText(K,Y){const ne=K.getVersionId(),V=this.d.search(Y,!1,ne);return this.f(K,V).filter(H=>H.options.showIfCollapsed||!H.range.isEmpty())}getAll(K,Y,ne,V){const H=K.getVersionId(),$=this.h(Y,ne,V,H);return this.f(K,$)}h(K,Y,ne,V){if(ne)return this.b.search(K,Y,V);{const H=this.a.search(K,Y,V),$=this.b.search(K,Y,V),oe=this.d.search(K,Y,V);return H.concat($).concat(oe)}}collectNodesFromOwner(K){const Y=this.a.collectNodesFromOwner(K),ne=this.b.collectNodesFromOwner(K),V=this.d.collectNodesFromOwner(K);return Y.concat(ne).concat(V)}collectNodesPostOrder(){const K=this.a.collectNodesPostOrder(),Y=this.b.collectNodesPostOrder(),ne=this.d.collectNodesPostOrder();return K.concat(Y).concat(ne)}insert(K){U(K)?this.d.insert(K):F(K)?this.b.insert(K):this.a.insert(K)}delete(K){U(K)?this.d.delete(K):F(K)?this.b.delete(K):this.a.delete(K)}getNodeRange(K,Y){const ne=K.getVersionId();return Y.cachedVersionId!==ne&&this.k(Y,ne),Y.range===null&&(Y.range=K.getRangeAt(Y.cachedAbsoluteStart,Y.cachedAbsoluteEnd)),Y.range}k(K,Y){U(K)?this.d.resolveNode(K,Y):F(K)?this.b.resolveNode(K,Y):this.a.resolveNode(K,Y)}acceptReplace(K,Y,ne,V){this.a.acceptReplace(K,Y,ne,V),this.b.acceptReplace(K,Y,ne,V),this.d.acceptReplace(K,Y,ne,V)}}function se(de){return de.replace(/[^a-z0-9\-_]/gi," ")}class he{constructor(K){this.color=K.color||"",this.darkColor=K.darkColor||""}}class ie extends he{constructor(K){super(K),this.a=null,this.position=typeof K.position=="number"?K.position:d.OverviewRulerLane.Center}getColor(K){return this.a||(K.type!=="light"&&this.darkColor?this.a=this.b(this.darkColor,K):this.a=this.b(this.color,K)),this.a}invalidateCachedColor(){this.a=null}b(K,Y){if(typeof K=="string")return K;const ne=K?Y.getColor(K.id):null;return ne?ne.toString():""}}e.ModelDecorationOverviewRulerOptions=ie;class ue extends he{constructor(K){super(K),this.position=K.position}getColor(K){return this.a||(K.type!=="light"&&this.darkColor?this.a=this.b(this.darkColor,K):this.a=this.b(this.color,K)),this.a}invalidateCachedColor(){this.a=void 0}b(K,Y){return typeof K=="string"?N.Color.fromHex(K):Y.getColor(K.id)}}e.ModelDecorationMinimapOptions=ue;class J{static from(K){return K instanceof J?K:new J(K)}constructor(K){this.content=K.content||"",this.inlineClassName=K.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=K.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=K.attachedData||null,this.cursorStops=K.cursorStops||null}}e.ModelDecorationInjectedTextOptions=J;class x{static register(K){return new x(K)}static createDynamic(K){return new x(K)}constructor(K){var Y,ne,V;this.description=K.description,this.blockClassName=K.blockClassName?se(K.blockClassName):null,this.blockIsAfterEnd=(Y=K.blockIsAfterEnd)!==null&&Y!==void 0?Y:null,this.stickiness=K.stickiness||0,this.zIndex=K.zIndex||0,this.className=K.className?se(K.className):null,this.hoverMessage=K.hoverMessage||null,this.glyphMarginHoverMessage=K.glyphMarginHoverMessage||null,this.isWholeLine=K.isWholeLine||!1,this.showIfCollapsed=K.showIfCollapsed||!1,this.collapseOnReplaceEdit=K.collapseOnReplaceEdit||!1,this.overviewRuler=K.overviewRuler?new ie(K.overviewRuler):null,this.minimap=K.minimap?new ue(K.minimap):null,this.glyphMarginClassName=K.glyphMarginClassName?se(K.glyphMarginClassName):null,this.linesDecorationsClassName=K.linesDecorationsClassName?se(K.linesDecorationsClassName):null,this.firstLineDecorationClassName=K.firstLineDecorationClassName?se(K.firstLineDecorationClassName):null,this.marginClassName=K.marginClassName?se(K.marginClassName):null,this.inlineClassName=K.inlineClassName?se(K.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=K.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=K.beforeContentClassName?se(K.beforeContentClassName):null,this.afterContentClassName=K.afterContentClassName?se(K.afterContentClassName):null,this.after=K.after?J.from(K.after):null,this.before=K.before?J.from(K.before):null,this.hideInCommentTokens=(ne=K.hideInCommentTokens)!==null&&ne!==void 0?ne:!1,this.hideInStringTokens=(V=K.hideInStringTokens)!==null&&V!==void 0?V:!1}}e.ModelDecorationOptions=x,x.EMPTY=x.register({description:"empty"});const G=[x.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),x.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),x.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),x.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function te(de){return de instanceof x?de:x.createDynamic(de)}class Z extends L.Disposable{constructor(K){super(),this.n=K,this.a=this.q(new I.Emitter),this.event=this.a.event,this.l=null,this.b=0,this.g=!1,this.h=!1,this.k=!1}beginDeferredEmit(){this.b++}endDeferredEmit(){var K;this.b--,this.b===0&&(this.g&&this.s(),(K=this.l)===null||K===void 0||K.clear(),this.l=null)}recordLineAffectedByInjectedText(K){this.l||(this.l=new Set),this.l.add(K)}checkAffectedAndFire(K){this.h||(this.h=!!(K.minimap&&K.minimap.position)),this.k||(this.k=!!(K.overviewRuler&&K.overviewRuler.color)),this.p()}fire(){this.h=!0,this.k=!0,this.p()}p(){this.b===0?this.s():this.g=!0}s(){this.n(this.l);const K={affectsMinimap:this.h,affectsOverviewRuler:this.k};this.g=!1,this.h=!1,this.k=!1,this.a.fire(K)}}class ae extends L.Disposable{constructor(){super(),this.a=this.q(new I.Emitter),this.fastEvent=this.a.event,this.b=this.q(new I.Emitter),this.slowEvent=this.b.event,this.g=0,this.h=null}beginDeferredEmit(){this.g++}endDeferredEmit(K=null){if(this.g--,this.g===0&&this.h!==null){this.h.rawContentChangedEvent.resultingSelection=K;const Y=this.h;this.h=null,this.a.fire(Y),this.b.fire(Y)}}fire(K){if(this.g>0){this.h?this.h=this.h.merge(K):this.h=K;return}this.a.fire(K),this.b.fire(K)}}}),define(_[810],ee([1,0,6,2,16,39,157,70,37,172,27,178,129,295,48,46,34]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ModelService=void 0;function d(w){return w.toString()}function s(w){const m=new t.StringSHA1,p=w.createSnapshot();let b;for(;b=p.read();)m.update(b);return m.digest()}class l{constructor(m,p,b){this.f=new N.DisposableStore,this.model=m,this.c=null,this.d=null,this.f.add(m.onWillDispose(()=>p(m))),this.f.add(m.onDidChangeLanguage(y=>b(m,y)))}g(){this.d&&(this.d.dispose(),this.d=null)}dispose(){this.f.dispose(),this.g()}setLanguage(m,p){this.g(),this.c=m,this.d=this.c.onDidChange(()=>this.model.setMode(m.languageId,p)),this.model.setMode(m.languageId,p)}}const o=E.isLinux||E.isMacintosh?1:2;class u{constructor(m,p,b,y,k,D,M,z){this.uri=m,this.initialUndoRedoSnapshot=p,this.time=b,this.sharesUndoRedoStack=y,this.heapSize=k,this.sha1=D,this.versionId=M,this.alternativeVersionId=z}}let h=class xt extends N.Disposable{constructor(m,p,b,y,k){super(),this.n=m,this.p=p,this.r=b,this.s=y,this.t=k,this.c=this.q(new C.Emitter),this.onModelAdded=this.c.event,this.g=this.q(new C.Emitter),this.onModelRemoved=this.g.event,this.h=this.q(new C.Emitter),this.onModelLanguageChanged=this.h.event,this.j=Object.create(null),this.k={},this.l=new Map,this.m=0,this.q(this.n.onDidChangeConfiguration(D=>this.y(D))),this.y(void 0)}static u(m,p){var b;let y=L.EDITOR_MODEL_DEFAULTS.tabSize;if(m.editor&&typeof m.editor.tabSize<"u"){const O=parseInt(m.editor.tabSize,10);isNaN(O)||(y=O),y<1&&(y=1)}let k="tabSize";if(m.editor&&typeof m.editor.indentSize<"u"&&m.editor.indentSize!=="tabSize"){const O=parseInt(m.editor.indentSize,10);isNaN(O)||(k=Math.max(O,1))}let D=L.EDITOR_MODEL_DEFAULTS.insertSpaces;m.editor&&typeof m.editor.insertSpaces<"u"&&(D=m.editor.insertSpaces==="false"?!1:Boolean(m.editor.insertSpaces));let M=o;const z=m.eol;z===`\r
|
||
`?M=2:z===`
|
||
`&&(M=1);let R=L.EDITOR_MODEL_DEFAULTS.trimAutoWhitespace;m.editor&&typeof m.editor.trimAutoWhitespace<"u"&&(R=m.editor.trimAutoWhitespace==="false"?!1:Boolean(m.editor.trimAutoWhitespace));let P=L.EDITOR_MODEL_DEFAULTS.detectIndentation;m.editor&&typeof m.editor.detectIndentation<"u"&&(P=m.editor.detectIndentation==="false"?!1:Boolean(m.editor.detectIndentation));let A=L.EDITOR_MODEL_DEFAULTS.largeFileOptimizations;m.editor&&typeof m.editor.largeFileOptimizations<"u"&&(A=m.editor.largeFileOptimizations==="false"?!1:Boolean(m.editor.largeFileOptimizations));let T=L.EDITOR_MODEL_DEFAULTS.bracketPairColorizationOptions;return((b=m.editor)===null||b===void 0?void 0:b.bracketPairColorization)&&typeof m.editor.bracketPairColorization=="object"&&(T={enabled:!!m.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!m.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:p,tabSize:y,indentSize:k,insertSpaces:D,detectIndentation:P,defaultEOL:M,trimAutoWhitespace:R,largeFileOptimizations:A,bracketPairColorizationOptions:T}}v(m,p){if(m)return this.p.getEOL(m,p);const b=this.n.getValue("files.eol",{overrideIdentifier:p});return b&&typeof b=="string"&&b!=="auto"?b:E.OS===3||E.OS===2?`
|
||
`:`\r
|
||
`}w(){const m=this.n.getValue("files.restoreUndoStack");return typeof m=="boolean"?m:!0}getCreationOptions(m,p,b){let y=this.j[m+p];if(!y){const k=this.n.getValue("editor",{overrideIdentifier:m,resource:p}),D=this.v(p,m);y=xt.u({editor:k,eol:D},b),this.j[m+p]=y}return y}y(m){const p=this.j;this.j=Object.create(null);const b=Object.keys(this.k);for(let y=0,k=b.length;y<k;y++){const D=b[y],M=this.k[D],z=M.model.getLanguageId(),R=M.model.uri;if(m&&!m.affectsConfiguration("editor",{overrideIdentifier:z,resource:R})&&!m.affectsConfiguration("files.eol",{overrideIdentifier:z,resource:R}))continue;const P=p[z+R],A=this.getCreationOptions(z,R,M.model.isForSimpleWidget);xt.z(M.model,A,P)}}static z(m,p,b){b&&b.defaultEOL!==p.defaultEOL&&m.getLineCount()===1&&m.setEOL(p.defaultEOL===1?0:1),!(b&&b.detectIndentation===p.detectIndentation&&b.insertSpaces===p.insertSpaces&&b.tabSize===p.tabSize&&b.indentSize===p.indentSize&&b.trimAutoWhitespace===p.trimAutoWhitespace&&(0,r.equals)(b.bracketPairColorizationOptions,p.bracketPairColorizationOptions))&&(p.detectIndentation?(m.detectIndentation(p.insertSpaces,p.tabSize),m.updateOptions({trimAutoWhitespace:p.trimAutoWhitespace,bracketColorizationOptions:p.bracketPairColorizationOptions})):m.updateOptions({insertSpaces:p.insertSpaces,tabSize:p.tabSize,indentSize:p.indentSize,trimAutoWhitespace:p.trimAutoWhitespace,bracketColorizationOptions:p.bracketPairColorizationOptions}))}B(m){this.l.set(d(m.uri),m),this.m+=m.heapSize}C(m){const p=this.l.get(d(m));return p&&(this.m-=p.heapSize),this.l.delete(d(m)),p}D(m){if(this.m>m){const p=[];for(this.l.forEach(b=>{b.sharesUndoRedoStack||p.push(b)}),p.sort((b,y)=>b.time-y.time);p.length>0&&this.m>m;){const b=p.shift();this.C(b.uri),b.initialUndoRedoSnapshot!==null&&this.r.restoreSnapshot(b.initialUndoRedoSnapshot)}}}F(m,p,b,y){const k=this.getCreationOptions(p,b,y),D=new I.TextModel(m,p,k,b,this.r,this.s,this.t);if(b&&this.l.has(d(b))){const R=this.C(b),P=this.r.getElements(b),A=s(D)===R.sha1;if(A||R.sharesUndoRedoStack){for(const T of P.past)(0,n.isEditStackElement)(T)&&T.matchesResource(b)&&T.setModel(D);for(const T of P.future)(0,n.isEditStackElement)(T)&&T.matchesResource(b)&&T.setModel(D);this.r.setElementsValidFlag(b,!0,T=>(0,n.isEditStackElement)(T)&&T.matchesResource(b)),A&&(D._overwriteVersionId(R.versionId),D._overwriteAlternativeVersionId(R.alternativeVersionId),D._overwriteInitialUndoRedoSnapshot(R.initialUndoRedoSnapshot))}else R.initialUndoRedoSnapshot!==null&&this.r.restoreSnapshot(R.initialUndoRedoSnapshot)}const M=d(D.uri);if(this.k[M])throw new Error("ModelService: Cannot add model because it already exists!");const z=new l(D,R=>this.H(R),(R,P)=>this.I(R,P));return this.k[M]=z,z}createModel(m,p,b,y=!1){let k;return p?(k=this.F(m,p.languageId,b,y),this.setMode(k.model,p)):k=this.F(m,S.PLAINTEXT_LANGUAGE_ID,b,y),this.c.fire(k.model),k.model}setMode(m,p,b){if(!p)return;const y=this.k[d(m.uri)];!y||y.setLanguage(p,b)}getModels(){const m=[],p=Object.keys(this.k);for(let b=0,y=p.length;b<y;b++){const k=p[b];m.push(this.k[k].model)}return m}getModel(m){const p=d(m),b=this.k[p];return b?b.model:null}G(m){return m.scheme===a.Schemas.file||m.scheme===a.Schemas.vscodeRemote||m.scheme===a.Schemas.vscodeUserData||m.scheme===a.Schemas.vscodeNotebookCell||m.scheme==="fake-fs"}H(m){const p=d(m.uri),b=this.k[p],y=this.r.getUriComparisonKey(m.uri)!==m.uri.toString();let k=!1,D=0;if(y||this.w()&&this.G(m.uri)){const z=this.r.getElements(m.uri);if(z.past.length>0||z.future.length>0){for(const R of z.past)(0,n.isEditStackElement)(R)&&R.matchesResource(m.uri)&&(k=!0,D+=R.heapSize(m.uri),R.setModel(m.uri));for(const R of z.future)(0,n.isEditStackElement)(R)&&R.matchesResource(m.uri)&&(k=!0,D+=R.heapSize(m.uri),R.setModel(m.uri))}}const M=xt.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK;if(k)if(!y&&D>M){const z=b.model.getInitialUndoRedoSnapshot();z!==null&&this.r.restoreSnapshot(z)}else this.D(M-D),this.r.setElementsValidFlag(m.uri,!1,z=>(0,n.isEditStackElement)(z)&&z.matchesResource(m.uri)),this.B(new u(m.uri,b.model.getInitialUndoRedoSnapshot(),Date.now(),y,D,s(m),m.getVersionId(),m.getAlternativeVersionId()));else if(!y){const z=b.model.getInitialUndoRedoSnapshot();z!==null&&this.r.restoreSnapshot(z)}delete this.k[p],b.dispose(),delete this.j[m.getLanguageId()+m.uri],this.g.fire(m)}I(m,p){const b=p.oldLanguage,y=m.getLanguageId(),k=this.getCreationOptions(b,m.uri,m.isForSimpleWidget),D=this.getCreationOptions(y,m.uri,m.isForSimpleWidget);xt.z(m,D,k),this.h.fire({model:m,oldLanguageId:b})}};h.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20*1024*1024,h=Ne([ge(0,g.IConfigurationService),ge(1,f.ITextResourcePropertiesService),ge(2,i.IUndoRedoService),ge(3,v.ILanguageService),ge(4,c.ILanguageConfigurationService)],h),e.ModelService=h}),define(_[811],ee([1,0,17,12,4,192,39,104,194,485,255,82]),function(q,e,C,N,E,I,L,S,v,f,g,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewModelLinesFromModelAsIs=e.ViewModelLinesFromProjectedModel=void 0;class t{constructor(o,u,h,w,m,p,b,y,k,D){this.c=o,this.d=u,this.e=-1,this.f=h,this.h=w,this.k=m,this.l=p,this.q=b,this.m=y,this.n=k,this.o=D,this.w(!0,null)}dispose(){this.v=this.d.deltaDecorations(this.v,[])}createCoordinatesConverter(){return new c(this)}w(o,u){this.s=[],o&&(this.v=this.d.deltaDecorations(this.v,[]));const h=this.d.getLinesContent(),w=this.d.getInjectedTextDecorations(this.c),m=h.length,p=this.createLineBreaksComputer(),b=new C.ArrayQueue(S.LineInjectedText.fromDecorations(w));for(let A=0;A<m;A++){const T=b.takeWhile(O=>O.lineNumber===A+1);p.addRequest(h[A],T,u?u[A]:null)}const y=p.finalize(),k=[],D=this.v.map(A=>this.d.getDecorationRange(A)).sort(E.Range.compareRangesUsingStarts);let M=1,z=0,R=-1,P=R+1<D.length?z+1:m+2;for(let A=0;A<m;A++){const T=A+1;T===P&&(R++,M=D[R].startLineNumber,z=D[R].endLineNumber,P=R+1<D.length?z+1:m+2);const O=T>=M&&T<=z,B=(0,f.createModelLineProjection)(y[A],!O);k[A]=B.getViewLineCount(),this.s[A]=B}this.e=this.d.getVersionId(),this.u=new g.ConstantTimePrefixSumComputer(k)}getHiddenAreas(){return this.v.map(o=>this.d.getDecorationRange(o))}setHiddenAreas(o){const u=o.map(z=>this.d.validateRange(z)),h=n(u),w=this.v.map(z=>this.d.getDecorationRange(z)).sort(E.Range.compareRangesUsingStarts);if(h.length===w.length){let z=!1;for(let R=0;R<h.length;R++)if(!h[R].equalsRange(w[R])){z=!0;break}if(!z)return!1}const m=h.map(z=>({range:z,options:L.ModelDecorationOptions.EMPTY}));this.v=this.d.deltaDecorations(this.v,m);const p=h;let b=1,y=0,k=-1,D=k+1<p.length?y+1:this.s.length+2,M=!1;for(let z=0;z<this.s.length;z++){const R=z+1;R===D&&(k++,b=p[k].startLineNumber,y=p[k].endLineNumber,D=k+1<p.length?y+1:this.s.length+2);let P=!1;if(R>=b&&R<=y?this.s[z].isVisible()&&(this.s[z]=this.s[z].setVisible(!1),P=!0):(M=!0,this.s[z].isVisible()||(this.s[z]=this.s[z].setVisible(!0),P=!0)),P){const A=this.s[z].getViewLineCount();this.u.setValue(z,A)}}return M||this.setHiddenAreas([]),!0}modelPositionIsVisible(o,u){return o<1||o>this.s.length?!1:this.s[o-1].isVisible()}getModelLineViewLineCount(o){return o<1||o>this.s.length?1:this.s[o-1].getViewLineCount()}setTabSize(o){return this.l===o?!1:(this.l=o,this.w(!1,null),!0)}setWrappingSettings(o,u,h,w,m){const p=this.k.equals(o),b=this.q===u,y=this.m===h,k=this.n===w,D=this.o===m;if(p&&b&&y&&k&&D)return!1;const M=p&&b&&!y&&k&&D;this.k=o,this.q=u,this.m=h,this.n=w,this.o=m;let z=null;if(M){z=[];for(let R=0,P=this.s.length;R<P;R++)z[R]=this.s[R].getProjectionData()}return this.w(!1,z),!0}createLineBreaksComputer(){return(this.q==="advanced"?this.f:this.h).createLineBreaksComputer(this.k,this.l,this.m,this.n,this.o)}onModelFlushed(){this.w(!0,null)}onModelLinesDeleted(o,u,h){if(!o||o<=this.e)return null;const w=u===1?1:this.u.getPrefixSum(u-1)+1,m=this.u.getPrefixSum(h);return this.s.splice(u-1,h-u+1),this.u.removeValues(u-1,h-u+1),new v.ViewLinesDeletedEvent(w,m)}onModelLinesInserted(o,u,h,w){if(!o||o<=this.e)return null;const m=u>2&&!this.s[u-2].isVisible(),p=u===1?1:this.u.getPrefixSum(u-1)+1;let b=0;const y=[],k=[];for(let D=0,M=w.length;D<M;D++){const z=(0,f.createModelLineProjection)(w[D],!m);y.push(z);const R=z.getViewLineCount();b+=R,k[D]=R}return this.s=this.s.slice(0,u-1).concat(y).concat(this.s.slice(u-1)),this.u.insertValues(u-1,k),new v.ViewLinesInsertedEvent(p,p+b-1)}onModelLineChanged(o,u,h){if(o!==null&&o<=this.e)return[!1,null,null,null];const w=u-1,m=this.s[w].getViewLineCount(),p=this.s[w].isVisible(),b=(0,f.createModelLineProjection)(h,p);this.s[w]=b;const y=this.s[w].getViewLineCount();let k=!1,D=0,M=-1,z=0,R=-1,P=0,A=-1;m>y?(D=this.u.getPrefixSum(u-1)+1,M=D+y-1,P=M+1,A=P+(m-y)-1,k=!0):m<y?(D=this.u.getPrefixSum(u-1)+1,M=D+m-1,z=M+1,R=z+(y-m)-1,k=!0):(D=this.u.getPrefixSum(u-1)+1,M=D+y-1),this.u.setValue(w,y);const T=D<=M?new v.ViewLinesChangedEvent(D,M-D+1):null,O=z<=R?new v.ViewLinesInsertedEvent(z,R):null,B=P<=A?new v.ViewLinesDeletedEvent(P,A):null;return[k,T,O,B]}acceptVersionId(o){this.e=o,this.s.length===1&&!this.s[0].isVisible()&&this.setHiddenAreas([])}getViewLineCount(){return this.u.getTotalSum()}x(o){if(o<1)return 1;const u=this.getViewLineCount();return o>u?u:o|0}getActiveIndentGuide(o,u,h){o=this.x(o),u=this.x(u),h=this.x(h);const w=this.convertViewPositionToModelPosition(o,this.getViewLineMinColumn(o)),m=this.convertViewPositionToModelPosition(u,this.getViewLineMinColumn(u)),p=this.convertViewPositionToModelPosition(h,this.getViewLineMinColumn(h)),b=this.d.guides.getActiveIndentGuide(w.lineNumber,m.lineNumber,p.lineNumber),y=this.convertModelPositionToViewPosition(b.startLineNumber,1),k=this.convertModelPositionToViewPosition(b.endLineNumber,this.d.getLineMaxColumn(b.endLineNumber));return{startLineNumber:y.lineNumber,endLineNumber:k.lineNumber,indent:b.indent}}y(o){o=this.x(o);const u=this.u.getIndexOf(o-1),h=u.index,w=u.remainder;return new a(h+1,w)}z(o){return this.s[o.modelLineNumber-1].getViewLineMinColumn(this.d,o.modelLineNumber,o.modelLineWrappedLineIdx)}A(o){return this.s[o.modelLineNumber-1].getViewLineMaxColumn(this.d,o.modelLineNumber,o.modelLineWrappedLineIdx)}B(o){const u=this.s[o.modelLineNumber-1],h=u.getViewLineMinColumn(this.d,o.modelLineNumber,o.modelLineWrappedLineIdx),w=u.getModelColumnOfViewPosition(o.modelLineWrappedLineIdx,h);return new N.Position(o.modelLineNumber,w)}C(o){const u=this.s[o.modelLineNumber-1],h=u.getViewLineMaxColumn(this.d,o.modelLineNumber,o.modelLineWrappedLineIdx),w=u.getModelColumnOfViewPosition(o.modelLineWrappedLineIdx,h);return new N.Position(o.modelLineNumber,w)}D(o,u){const h=this.y(o),w=this.y(u),m=new Array;let p=this.B(h),b=new Array;for(let y=h.modelLineNumber;y<=w.modelLineNumber;y++){const k=this.s[y-1];if(k.isVisible()){const D=y===h.modelLineNumber?h.modelLineWrappedLineIdx:0,M=y===w.modelLineNumber?w.modelLineWrappedLineIdx+1:k.getViewLineCount();for(let z=D;z<M;z++)b.push(new a(y,z))}if(!k.isVisible()&&p){const D=new N.Position(y-1,this.d.getLineMaxColumn(y-1)+1),M=E.Range.fromPositions(p,D);m.push(new r(M,b)),b=[],p=null}else k.isVisible()&&!p&&(p=new N.Position(y,1))}if(p){const y=E.Range.fromPositions(p,this.C(w));m.push(new r(y,b))}return m}getViewLinesBracketGuides(o,u,h,w){const m=h?this.convertViewPositionToModelPosition(h.lineNumber,h.column):null,p=[];for(const b of this.D(o,u)){const y=b.modelRange.startLineNumber,k=this.d.guides.getLinesBracketGuides(y,b.modelRange.endLineNumber,m,w);for(const D of b.viewLines){const z=k[D.modelLineNumber-y].map(R=>{if(R.forWrappedLinesAfterColumn!==-1&&this.s[D.modelLineNumber-1].getViewPositionOfModelPosition(0,R.forWrappedLinesAfterColumn).lineNumber>=D.modelLineWrappedLineIdx||R.forWrappedLinesBeforeOrAtColumn!==-1&&this.s[D.modelLineNumber-1].getViewPositionOfModelPosition(0,R.forWrappedLinesBeforeOrAtColumn).lineNumber<D.modelLineWrappedLineIdx)return;if(!R.horizontalLine)return R;let P=-1;if(R.column!==-1){const O=this.s[D.modelLineNumber-1].getViewPositionOfModelPosition(0,R.column);if(O.lineNumber===D.modelLineWrappedLineIdx)P=O.column;else if(O.lineNumber<D.modelLineWrappedLineIdx)P=this.z(D);else if(O.lineNumber>D.modelLineWrappedLineIdx)return}const A=this.convertModelPositionToViewPosition(D.modelLineNumber,R.horizontalLine.endColumn),T=this.s[D.modelLineNumber-1].getViewPositionOfModelPosition(0,R.horizontalLine.endColumn);return T.lineNumber===D.modelLineWrappedLineIdx?new I.IndentGuide(R.visibleColumn,P,R.className,new I.IndentGuideHorizontalLine(R.horizontalLine.top,A.column),-1,-1):T.lineNumber<D.modelLineWrappedLineIdx||R.visibleColumn!==-1?void 0:new I.IndentGuide(R.visibleColumn,P,R.className,new I.IndentGuideHorizontalLine(R.horizontalLine.top,this.A(D)),-1,-1)});p.push(z.filter(R=>!!R))}}return p}getViewLinesIndentGuides(o,u){o=this.x(o),u=this.x(u);const h=this.convertViewPositionToModelPosition(o,this.getViewLineMinColumn(o)),w=this.convertViewPositionToModelPosition(u,this.getViewLineMaxColumn(u));let m=[];const p=[],b=[],y=h.lineNumber-1,k=w.lineNumber-1;let D=null;for(let P=y;P<=k;P++){const A=this.s[P];if(A.isVisible()){const T=A.getViewLineNumberOfModelPosition(0,P===y?h.column:1),O=A.getViewLineNumberOfModelPosition(0,this.d.getLineMaxColumn(P+1)),B=O-T+1;let W=0;B>1&&A.getViewLineMinColumn(this.d,P+1,O)===1&&(W=T===0?1:2),p.push(B),b.push(W),D===null&&(D=new N.Position(P+1,0))}else D!==null&&(m=m.concat(this.d.guides.getLinesIndentGuides(D.lineNumber,P)),D=null)}D!==null&&(m=m.concat(this.d.guides.getLinesIndentGuides(D.lineNumber,w.lineNumber)),D=null);const M=u-o+1,z=new Array(M);let R=0;for(let P=0,A=m.length;P<A;P++){let T=m[P];const O=Math.min(M-R,p[P]),B=b[P];let W;B===2?W=0:B===1?W=1:W=O;for(let j=0;j<O;j++)j===W&&(T=0),z[R++]=T}return z}getViewLineContent(o){const u=this.y(o);return this.s[u.modelLineNumber-1].getViewLineContent(this.d,u.modelLineNumber,u.modelLineWrappedLineIdx)}getViewLineLength(o){const u=this.y(o);return this.s[u.modelLineNumber-1].getViewLineLength(this.d,u.modelLineNumber,u.modelLineWrappedLineIdx)}getViewLineMinColumn(o){const u=this.y(o);return this.s[u.modelLineNumber-1].getViewLineMinColumn(this.d,u.modelLineNumber,u.modelLineWrappedLineIdx)}getViewLineMaxColumn(o){const u=this.y(o);return this.s[u.modelLineNumber-1].getViewLineMaxColumn(this.d,u.modelLineNumber,u.modelLineWrappedLineIdx)}getViewLineData(o){const u=this.y(o);return this.s[u.modelLineNumber-1].getViewLineData(this.d,u.modelLineNumber,u.modelLineWrappedLineIdx)}getViewLinesData(o,u,h){o=this.x(o),u=this.x(u);const w=this.u.getIndexOf(o-1);let m=o;const p=w.index,b=w.remainder,y=[];for(let k=p,D=this.d.getLineCount();k<D;k++){const M=this.s[k];if(!M.isVisible())continue;const z=k===p?b:0;let R=M.getViewLineCount()-z,P=!1;if(m+R>u&&(P=!0,R=u-m+1),M.getViewLinesData(this.d,k+1,z,R,m-o,h,y),m+=R,P)break}return y}validateViewPosition(o,u,h){o=this.x(o);const w=this.u.getIndexOf(o-1),m=w.index,p=w.remainder,b=this.s[m],y=b.getViewLineMinColumn(this.d,m+1,p),k=b.getViewLineMaxColumn(this.d,m+1,p);u<y&&(u=y),u>k&&(u=k);const D=b.getModelColumnOfViewPosition(p,u);return this.d.validatePosition(new N.Position(m+1,D)).equals(h)?new N.Position(o,u):this.convertModelPositionToViewPosition(h.lineNumber,h.column)}validateViewRange(o,u){const h=this.validateViewPosition(o.startLineNumber,o.startColumn,u.getStartPosition()),w=this.validateViewPosition(o.endLineNumber,o.endColumn,u.getEndPosition());return new E.Range(h.lineNumber,h.column,w.lineNumber,w.column)}convertViewPositionToModelPosition(o,u){const h=this.y(o),w=this.s[h.modelLineNumber-1].getModelColumnOfViewPosition(h.modelLineWrappedLineIdx,u);return this.d.validatePosition(new N.Position(h.modelLineNumber,w))}convertViewRangeToModelRange(o){const u=this.convertViewPositionToModelPosition(o.startLineNumber,o.startColumn),h=this.convertViewPositionToModelPosition(o.endLineNumber,o.endColumn);return new E.Range(u.lineNumber,u.column,h.lineNumber,h.column)}convertModelPositionToViewPosition(o,u,h=2){const w=this.d.validatePosition(new N.Position(o,u)),m=w.lineNumber,p=w.column;let b=m-1,y=!1;for(;b>0&&!this.s[b].isVisible();)b--,y=!0;if(b===0&&!this.s[b].isVisible())return new N.Position(1,1);const k=1+this.u.getPrefixSum(b);let D;return y?D=this.s[b].getViewPositionOfModelPosition(k,this.d.getLineMaxColumn(b+1),h):D=this.s[m-1].getViewPositionOfModelPosition(k,p,h),D}convertModelRangeToViewRange(o,u=0){if(o.isEmpty()){const h=this.convertModelPositionToViewPosition(o.startLineNumber,o.startColumn,u);return E.Range.fromPositions(h)}else{const h=this.convertModelPositionToViewPosition(o.startLineNumber,o.startColumn,1),w=this.convertModelPositionToViewPosition(o.endLineNumber,o.endColumn,0);return new E.Range(h.lineNumber,h.column,w.lineNumber,w.column)}}getViewLineNumberOfModelPosition(o,u){let h=o-1;if(this.s[h].isVisible()){const m=1+this.u.getPrefixSum(h);return this.s[h].getViewLineNumberOfModelPosition(m,u)}for(;h>0&&!this.s[h].isVisible();)h--;if(h===0&&!this.s[h].isVisible())return 1;const w=1+this.u.getPrefixSum(h);return this.s[h].getViewLineNumberOfModelPosition(w,this.d.getLineMaxColumn(h+1))}getDecorationsInRange(o,u,h,w){const m=this.convertViewPositionToModelPosition(o.startLineNumber,o.startColumn),p=this.convertViewPositionToModelPosition(o.endLineNumber,o.endColumn);if(p.lineNumber-m.lineNumber<=o.endLineNumber-o.startLineNumber)return this.d.getDecorationsInRange(new E.Range(m.lineNumber,1,p.lineNumber,p.column),u,h,w);let b=[];const y=m.lineNumber-1,k=p.lineNumber-1;let D=null;for(let P=y;P<=k;P++)if(this.s[P].isVisible())D===null&&(D=new N.Position(P+1,P===y?m.column:1));else if(D!==null){const T=this.d.getLineMaxColumn(P);b=b.concat(this.d.getDecorationsInRange(new E.Range(D.lineNumber,D.column,P,T),u,h,w)),D=null}D!==null&&(b=b.concat(this.d.getDecorationsInRange(new E.Range(D.lineNumber,D.column,p.lineNumber,p.column),u,h,w)),D=null),b.sort((P,A)=>{const T=E.Range.compareRangesUsingStarts(P.range,A.range);return T===0?P.id<A.id?-1:P.id>A.id?1:0:T});const M=[];let z=0,R=null;for(const P of b){const A=P.id;R!==A&&(R=A,M[z++]=P)}return M}getInjectedTextAt(o){const u=this.y(o.lineNumber);return this.s[u.modelLineNumber-1].getInjectedTextAt(u.modelLineWrappedLineIdx,o.column)}normalizePosition(o,u){const h=this.y(o.lineNumber);return this.s[h.modelLineNumber-1].normalizePosition(h.modelLineWrappedLineIdx,o,u)}getLineIndentColumn(o){const u=this.y(o);return u.modelLineWrappedLineIdx===0?this.d.getLineIndentColumn(u.modelLineNumber):0}}e.ViewModelLinesFromProjectedModel=t;function n(l){if(l.length===0)return[];const o=l.slice();o.sort(E.Range.compareRangesUsingStarts);const u=[];let h=o[0].startLineNumber,w=o[0].endLineNumber;for(let m=1,p=o.length;m<p;m++){const b=o[m];b.startLineNumber>w+1?(u.push(new E.Range(h,1,w,1)),h=b.startLineNumber,w=b.endLineNumber):b.endLineNumber>w&&(w=b.endLineNumber)}return u.push(new E.Range(h,1,w,1)),u}class a{constructor(o,u){this.modelLineNumber=o,this.modelLineWrappedLineIdx=u}}class r{constructor(o,u){this.modelRange=o,this.viewLines=u}}class c{constructor(o){this.c=o}convertViewPositionToModelPosition(o){return this.c.convertViewPositionToModelPosition(o.lineNumber,o.column)}convertViewRangeToModelRange(o){return this.c.convertViewRangeToModelRange(o)}validateViewPosition(o,u){return this.c.validateViewPosition(o.lineNumber,o.column,u)}validateViewRange(o,u){return this.c.validateViewRange(o,u)}convertModelPositionToViewPosition(o,u){return this.c.convertModelPositionToViewPosition(o.lineNumber,o.column,u)}convertModelRangeToViewRange(o,u){return this.c.convertModelRangeToViewRange(o,u)}modelPositionIsVisible(o){return this.c.modelPositionIsVisible(o.lineNumber,o.column)}getModelLineViewLineCount(o){return this.c.getModelLineViewLineCount(o)}getViewLineNumberOfModelPosition(o,u){return this.c.getViewLineNumberOfModelPosition(o,u)}}class d{constructor(o){this.model=o}dispose(){}createCoordinatesConverter(){return new s(this)}getHiddenAreas(){return[]}setHiddenAreas(o){return!1}setTabSize(o){return!1}setWrappingSettings(o,u,h,w){return!1}createLineBreaksComputer(){const o=[];return{addRequest:(u,h,w)=>{o.push(null)},finalize:()=>o}}onModelFlushed(){}onModelLinesDeleted(o,u,h){return new v.ViewLinesDeletedEvent(u,h)}onModelLinesInserted(o,u,h,w){return new v.ViewLinesInsertedEvent(u,h)}onModelLineChanged(o,u,h){return[!1,new v.ViewLinesChangedEvent(u,1),null,null]}acceptVersionId(o){}getViewLineCount(){return this.model.getLineCount()}getActiveIndentGuide(o,u,h){return{startLineNumber:o,endLineNumber:o,indent:0}}getViewLinesBracketGuides(o,u,h){return new Array(u-o+1).fill([])}getViewLinesIndentGuides(o,u){const h=u-o+1,w=new Array(h);for(let m=0;m<h;m++)w[m]=0;return w}getViewLineContent(o){return this.model.getLineContent(o)}getViewLineLength(o){return this.model.getLineLength(o)}getViewLineMinColumn(o){return this.model.getLineMinColumn(o)}getViewLineMaxColumn(o){return this.model.getLineMaxColumn(o)}getViewLineData(o){const u=this.model.tokenization.getLineTokens(o),h=u.getLineContent();return new i.ViewLineData(h,!1,1,h.length+1,0,u.inflate(),null)}getViewLinesData(o,u,h){const w=this.model.getLineCount();o=Math.min(Math.max(1,o),w),u=Math.min(Math.max(1,u),w);const m=[];for(let p=o;p<=u;p++){const b=p-o;m[b]=h[b]?this.getViewLineData(p):null}return m}getDecorationsInRange(o,u,h,w){return this.model.getDecorationsInRange(o,u,h,w)}normalizePosition(o,u){return this.model.normalizePosition(o,u)}getLineIndentColumn(o){return this.model.getLineIndentColumn(o)}getInjectedTextAt(o){return null}}e.ViewModelLinesFromModelAsIs=d;class s{constructor(o){this.c=o}d(o){return this.c.model.validatePosition(o)}e(o){return this.c.model.validateRange(o)}convertViewPositionToModelPosition(o){return this.d(o)}convertViewRangeToModelRange(o){return this.e(o)}validateViewPosition(o,u){return this.d(u)}validateViewRange(o,u){return this.e(u)}convertModelPositionToViewPosition(o){return this.d(o)}convertModelRangeToViewRange(o){return this.e(o)}modelPositionIsVisible(o){const u=this.c.model.getLineCount();return!(o.lineNumber<1||o.lineNumber>u)}getModelLineViewLineCount(o){return 1}getViewLineNumberOfModelPosition(o,u){return o}}}),define(_[812],ee([1,0,17,11,36,2,16,9,40,715,65,12,4,104,26,70,288,194,557,290,82,294,215,811]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s,l,o,u,h,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewModel=void 0;const m=!0;class p extends I.Disposable{constructor(P,A,T,O,B,W,j,F){if(super(),this.s=j,this.t=F,this.z=new k,this.B=[],this.a=P,this.b=A,this.model=T,this.c=new h.ViewModelEventDispatcher,this.onEvent=this.c.onEvent,this.cursorConfig=new g.CursorConfiguration(this.model.getLanguageId(),this.model.getOptions(),this.b,this.s),this.g=this.q(new N.RunOnceScheduler(()=>this.tokenizeViewport(),50)),this.h=this.q(new N.RunOnceScheduler(()=>this.u(),0)),this.k=!1,this.l=b.create(this.model),m&&this.model.isTooLargeForTokenization())this.m=new w.ViewModelLinesFromModelAsIs(this.model);else{const U=this.b.options,Q=U.get(47),se=U.get(132),he=U.get(139),ie=U.get(131),ue=U.get(123);this.m=new w.ViewModelLinesFromProjectedModel(this.a,this.model,O,B,Q,this.model.getOptions().tabSize,se,he.wrappingColumn,ie,ue)}this.coordinatesConverter=this.m.createCoordinatesConverter(),this.n=this.q(new f.CursorsController(T,this,this.coordinatesConverter,this.cursorConfig)),this.viewLayout=this.q(new s.ViewLayout(this.b,this.getLineCount(),W)),this.q(this.viewLayout.onDidScroll(U=>{U.scrollTopChanged&&this.g.schedule(),U.scrollTopChanged&&this.l.invalidate(),this.c.emitSingleViewEvent(new d.ViewScrollChangedEvent(U)),this.c.emitOutgoingEvent(new h.ScrollChangedEvent(U.oldScrollWidth,U.oldScrollLeft,U.oldScrollHeight,U.oldScrollTop,U.scrollWidth,U.scrollLeft,U.scrollHeight,U.scrollTop))})),this.q(this.viewLayout.onDidContentSizeChange(U=>{this.c.emitOutgoingEvent(U)})),this.p=new u.ViewModelDecorations(this.a,this.model,this.b,this.m,this.coordinatesConverter),this.y(),this.q(this.b.onDidChangeFast(U=>{try{const Q=this.c.beginEmitViewEvents();this.w(Q,U)}finally{this.c.endEmitViewEvents()}})),this.q(l.MinimapTokensColorTracker.getInstance().onDidChange(()=>{this.c.emitSingleViewEvent(new d.ViewTokensColorsChangedEvent)})),this.q(this.t.onDidColorThemeChange(U=>{this.H(),this.c.emitSingleViewEvent(new d.ViewThemeChangedEvent(U))})),this.u()}dispose(){super.dispose(),this.p.dispose(),this.m.dispose(),this.l.dispose(),this.c.dispose()}createLineBreaksComputer(){return this.m.createLineBreaksComputer()}addViewEventHandler(P){this.c.addViewEventHandler(P)}removeViewEventHandler(P){this.c.removeViewEventHandler(P)}u(){this.b.setViewLineCount(this.m.getViewLineCount())}tokenizeViewport(){const P=this.viewLayout.getLinesViewportData(),A=new t.Range(P.startLineNumber,this.getLineMinColumn(P.startLineNumber),P.endLineNumber,this.getLineMaxColumn(P.endLineNumber)),T=this.C(A);for(const O of T)this.model.tokenization.tokenizeViewport(O.startLineNumber,O.endLineNumber)}setHasFocus(P){this.k=P,this.n.setHasFocus(P),this.c.emitSingleViewEvent(new d.ViewFocusChangedEvent(P)),this.c.emitOutgoingEvent(new h.FocusChangedEvent(!P,P))}onCompositionStart(){this.c.emitSingleViewEvent(new d.ViewCompositionStartEvent)}onCompositionEnd(){this.c.emitSingleViewEvent(new d.ViewCompositionEndEvent)}v(){if(this.l.isValid&&this.viewLayout.getCurrentScrollTop()>0){const P=new i.Position(this.l.viewLineNumber,this.getLineMinColumn(this.l.viewLineNumber)),A=this.coordinatesConverter.convertViewPositionToModelPosition(P);return new z(A,this.l.startLineDelta)}return new z(null,0)}w(P,A){const T=this.v(),O=this.b.options,B=O.get(47),W=O.get(132),j=O.get(139),F=O.get(131),U=O.get(123);this.m.setWrappingSettings(B,W,j.wrappingColumn,F,U)&&(P.emitViewEvent(new d.ViewFlushedEvent),P.emitViewEvent(new d.ViewLineMappingChangedEvent),P.emitViewEvent(new d.ViewDecorationsChangedEvent(null)),this.n.onLineMappingChanged(P),this.p.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.h.schedule()),A.hasChanged(86)&&(this.p.reset(),P.emitViewEvent(new d.ViewDecorationsChangedEvent(null))),P.emitViewEvent(new d.ViewConfigurationChangedEvent(A)),this.viewLayout.onConfigurationChanged(A),T.recoverViewportStart(this.coordinatesConverter,this.viewLayout),g.CursorConfiguration.shouldRecreate(A)&&(this.cursorConfig=new g.CursorConfiguration(this.model.getLanguageId(),this.model.getOptions(),this.b,this.s),this.n.updateConfiguration(this.cursorConfig))}y(){this.q(this.model.onDidChangeContentOrInjectedText(P=>{try{const T=this.c.beginEmitViewEvents();let O=!1,B=!1;const W=P instanceof n.InternalModelContentChangeEvent?P.rawContentChangedEvent.changes:P.changes,j=P instanceof n.InternalModelContentChangeEvent?P.rawContentChangedEvent.versionId:null,F=this.m.createLineBreaksComputer();for(const se of W)switch(se.changeType){case 4:{for(let he=0;he<se.detail.length;he++){const ie=se.detail[he];let ue=se.injectedTexts[he];ue&&(ue=ue.filter(J=>!J.ownerId||J.ownerId===this.a)),F.addRequest(ie,ue,null)}break}case 2:{let he=null;se.injectedText&&(he=se.injectedText.filter(ie=>!ie.ownerId||ie.ownerId===this.a)),F.addRequest(se.detail,he,null);break}}const U=F.finalize(),Q=new C.ArrayQueue(U);for(const se of W)switch(se.changeType){case 1:{this.m.onModelFlushed(),T.emitViewEvent(new d.ViewFlushedEvent),this.p.reset(),this.viewLayout.onFlushed(this.getLineCount()),O=!0;break}case 3:{const he=this.m.onModelLinesDeleted(j,se.fromLineNumber,se.toLineNumber);he!==null&&(T.emitViewEvent(he),this.viewLayout.onLinesDeleted(he.fromLineNumber,he.toLineNumber)),O=!0;break}case 4:{const he=Q.takeCount(se.detail.length),ie=this.m.onModelLinesInserted(j,se.fromLineNumber,se.toLineNumber,he);ie!==null&&(T.emitViewEvent(ie),this.viewLayout.onLinesInserted(ie.fromLineNumber,ie.toLineNumber)),O=!0;break}case 2:{const he=Q.dequeue(),[ie,ue,J,x]=this.m.onModelLineChanged(j,se.lineNumber,he);B=ie,ue&&T.emitViewEvent(ue),J&&(T.emitViewEvent(J),this.viewLayout.onLinesInserted(J.fromLineNumber,J.toLineNumber)),x&&(T.emitViewEvent(x),this.viewLayout.onLinesDeleted(x.fromLineNumber,x.toLineNumber));break}case 5:break}j!==null&&this.m.acceptVersionId(j),this.viewLayout.onHeightMaybeChanged(),!O&&B&&(T.emitViewEvent(new d.ViewLineMappingChangedEvent),T.emitViewEvent(new d.ViewDecorationsChangedEvent(null)),this.n.onLineMappingChanged(T),this.p.onLineMappingChanged())}finally{this.c.endEmitViewEvents()}const A=this.l.isValid;if(this.l.invalidate(),this.b.setModelLineCount(this.model.getLineCount()),this.u(),!this.k&&this.model.getAttachedEditorCount()>=2&&A){const T=this.model._getTrackedRange(this.l.modelTrackedRange);if(T){const O=this.coordinatesConverter.convertModelPositionToViewPosition(T.getStartPosition()),B=this.viewLayout.getVerticalOffsetForLineNumber(O.lineNumber);this.viewLayout.setScrollPosition({scrollTop:B+this.l.startLineDelta},1)}}try{const T=this.c.beginEmitViewEvents();P instanceof n.InternalModelContentChangeEvent&&T.emitOutgoingEvent(new h.ModelContentChangedEvent(P.contentChangedEvent)),this.n.onModelContentChanged(T,P)}finally{this.c.endEmitViewEvents()}this.g.schedule()})),this.q(this.model.onDidChangeTokens(P=>{const A=[];for(let T=0,O=P.ranges.length;T<O;T++){const B=P.ranges[T],W=this.coordinatesConverter.convertModelPositionToViewPosition(new i.Position(B.fromLineNumber,1)).lineNumber,j=this.coordinatesConverter.convertModelPositionToViewPosition(new i.Position(B.toLineNumber,this.model.getLineMaxColumn(B.toLineNumber))).lineNumber;A[T]={fromLineNumber:W,toLineNumber:j}}this.c.emitSingleViewEvent(new d.ViewTokensChangedEvent(A)),P.tokenizationSupportChanged&&this.g.schedule(),this.c.emitOutgoingEvent(new h.ModelTokensChangedEvent(P))})),this.q(this.model.onDidChangeLanguageConfiguration(P=>{this.c.emitSingleViewEvent(new d.ViewLanguageConfigurationEvent),this.cursorConfig=new g.CursorConfiguration(this.model.getLanguageId(),this.model.getOptions(),this.b,this.s),this.n.updateConfiguration(this.cursorConfig),this.c.emitOutgoingEvent(new h.ModelLanguageConfigurationChangedEvent(P))})),this.q(this.model.onDidChangeLanguage(P=>{this.cursorConfig=new g.CursorConfiguration(this.model.getLanguageId(),this.model.getOptions(),this.b,this.s),this.n.updateConfiguration(this.cursorConfig),this.c.emitOutgoingEvent(new h.ModelLanguageChangedEvent(P))})),this.q(this.model.onDidChangeOptions(P=>{if(this.m.setTabSize(this.model.getOptions().tabSize)){try{const A=this.c.beginEmitViewEvents();A.emitViewEvent(new d.ViewFlushedEvent),A.emitViewEvent(new d.ViewLineMappingChangedEvent),A.emitViewEvent(new d.ViewDecorationsChangedEvent(null)),this.n.onLineMappingChanged(A),this.p.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount())}finally{this.c.endEmitViewEvents()}this.h.schedule()}this.cursorConfig=new g.CursorConfiguration(this.model.getLanguageId(),this.model.getOptions(),this.b,this.s),this.n.updateConfiguration(this.cursorConfig),this.c.emitOutgoingEvent(new h.ModelOptionsChangedEvent(P))})),this.q(this.model.onDidChangeDecorations(P=>{this.p.onModelDecorationsChanged(),this.c.emitSingleViewEvent(new d.ViewDecorationsChangedEvent(P)),this.c.emitOutgoingEvent(new h.ModelDecorationsChangedEvent(P))}))}setHiddenAreas(P,A){this.z.setHiddenAreas(A,P);const T=this.z.getMergedRanges();if(T===this.B)return;this.B=T;const O=this.v();let B=!1;try{const W=this.c.beginEmitViewEvents();B=this.m.setHiddenAreas(T),B&&(W.emitViewEvent(new d.ViewFlushedEvent),W.emitViewEvent(new d.ViewLineMappingChangedEvent),W.emitViewEvent(new d.ViewDecorationsChangedEvent(null)),this.n.onLineMappingChanged(W),this.p.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged()),O.recoverViewportStart(this.coordinatesConverter,this.viewLayout)}finally{this.c.endEmitViewEvents()}this.h.schedule(),B&&this.c.emitOutgoingEvent(new h.HiddenAreasChangedEvent)}getVisibleRangesPlusViewportAboveBelow(){const P=this.b.options.get(138),A=this.b.options.get(63),T=Math.max(20,Math.round(P.height/A)),O=this.viewLayout.getLinesViewportData(),B=Math.max(1,O.completelyVisibleStartLineNumber-T),W=Math.min(this.getLineCount(),O.completelyVisibleEndLineNumber+T);return this.C(new t.Range(B,this.getLineMinColumn(B),W,this.getLineMaxColumn(W)))}getVisibleRanges(){const P=this.getCompletelyVisibleViewRange();return this.C(P)}getHiddenAreas(){return this.m.getHiddenAreas()}C(P){const A=this.coordinatesConverter.convertViewRangeToModelRange(P),T=this.m.getHiddenAreas();if(T.length===0)return[A];const O=[];let B=0,W=A.startLineNumber,j=A.startColumn;const F=A.endLineNumber,U=A.endColumn;for(let Q=0,se=T.length;Q<se;Q++){const he=T[Q].startLineNumber,ie=T[Q].endLineNumber;ie<W||he>F||(W<he&&(O[B++]=new t.Range(W,j,he-1,this.model.getLineMaxColumn(he-1))),W=ie+1,j=1)}return(W<F||W===F&&j<U)&&(O[B++]=new t.Range(W,j,F,U)),O}getCompletelyVisibleViewRange(){const P=this.viewLayout.getLinesViewportData(),A=P.completelyVisibleStartLineNumber,T=P.completelyVisibleEndLineNumber;return new t.Range(A,this.getLineMinColumn(A),T,this.getLineMaxColumn(T))}getCompletelyVisibleViewRangeAtScrollTop(P){const A=this.viewLayout.getLinesViewportDataAtScrollTop(P),T=A.completelyVisibleStartLineNumber,O=A.completelyVisibleEndLineNumber;return new t.Range(T,this.getLineMinColumn(T),O,this.getLineMaxColumn(O))}saveState(){const P=this.viewLayout.saveState(),A=P.scrollTop,T=this.viewLayout.getLineNumberAtVerticalOffset(A),O=this.coordinatesConverter.convertViewPositionToModelPosition(new i.Position(T,this.getLineMinColumn(T))),B=this.viewLayout.getVerticalOffsetForLineNumber(T)-A;return{scrollLeft:P.scrollLeft,firstPosition:O,firstPositionDeltaTop:B}}reduceRestoreState(P){if(typeof P.firstPosition>"u")return this.D(P);const A=this.model.validatePosition(P.firstPosition),T=this.coordinatesConverter.convertModelPositionToViewPosition(A),O=this.viewLayout.getVerticalOffsetForLineNumber(T.lineNumber)-P.firstPositionDeltaTop;return{scrollLeft:P.scrollLeft,scrollTop:O}}D(P){return{scrollLeft:P.scrollLeft,scrollTop:P.scrollTopWithoutViewZones}}F(){return this.model.getOptions().tabSize}getLineCount(){return this.m.getViewLineCount()}setViewport(P,A,T){this.l.update(this,P)}getActiveIndentGuide(P,A,T){return this.m.getActiveIndentGuide(P,A,T)}getLinesIndentGuides(P,A){return this.m.getViewLinesIndentGuides(P,A)}getBracketGuidesInRangeByLine(P,A,T,O){return this.m.getViewLinesBracketGuides(P,A,T,O)}getLineContent(P){return this.m.getViewLineContent(P)}getLineLength(P){return this.m.getViewLineLength(P)}getLineMinColumn(P){return this.m.getViewLineMinColumn(P)}getLineMaxColumn(P){return this.m.getViewLineMaxColumn(P)}getLineFirstNonWhitespaceColumn(P){const A=S.firstNonWhitespaceIndex(this.getLineContent(P));return A===-1?0:A+1}getLineLastNonWhitespaceColumn(P){const A=S.lastNonWhitespaceIndex(this.getLineContent(P));return A===-1?0:A+2}getDecorationsInViewport(P,A=!1){return this.p.getDecorationsViewportData(P,A).decorations}getInjectedTextAt(P){return this.m.getInjectedTextAt(P)}getViewportViewLineRenderingData(P,A){const O=this.p.getDecorationsViewportData(P).inlineDecorations[A-P.startLineNumber];return this.G(A,O)}getViewLineRenderingData(P){const A=this.p.getInlineDecorationsOnLine(P);return this.G(P,A)}G(P,A){const T=this.model.mightContainRTL(),O=this.model.mightContainNonBasicASCII(),B=this.F(),W=this.m.getViewLineData(P);return W.inlineDecorations&&(A=[...A,...W.inlineDecorations.map(j=>j.toInlineDecoration(P))]),new o.ViewLineRenderingData(W.minColumn,W.maxColumn,W.content,W.continuesWithWrappedLine,T,O,W.tokens,A,B,W.startVisibleColumn)}getViewLineData(P){return this.m.getViewLineData(P)}getMinimapLinesRenderingData(P,A,T){const O=this.m.getViewLinesData(P,A,T);return new o.MinimapLinesRenderingData(this.F(),O)}getAllOverviewRulerDecorations(P){const A=this.model.getOverviewRulerDecorations(this.a,(0,v.filterValidationDecorations)(this.b.options)),T=new y;for(const O of A){const B=O.options,W=B.overviewRuler;if(!W)continue;const j=W.position;if(j===0)continue;const F=W.getColor(P.value),U=this.coordinatesConverter.getViewLineNumberOfModelPosition(O.range.startLineNumber,O.range.startColumn),Q=this.coordinatesConverter.getViewLineNumberOfModelPosition(O.range.endLineNumber,O.range.endColumn);T.accept(F,B.zIndex,U,Q,j)}return T.asArray}H(){const P=this.model.getOverviewRulerDecorations();for(const A of P){const T=A.options.overviewRuler;T?.invalidateCachedColor();const O=A.options.minimap;O?.invalidateCachedColor()}}getValueInRange(P,A){const T=this.coordinatesConverter.convertViewRangeToModelRange(P);return this.model.getValueInRange(T,A)}getValueLengthInRange(P,A){const T=this.coordinatesConverter.convertViewRangeToModelRange(P);return this.model.getValueLengthInRange(T,A)}modifyPosition(P,A){const T=this.coordinatesConverter.convertViewPositionToModelPosition(P);return this.model.modifyPosition(T,A)}deduceModelPositionRelativeToViewPosition(P,A,T){const O=this.coordinatesConverter.convertViewPositionToModelPosition(P);this.model.getEOL().length===2&&(A<0?A-=T:A+=T);const W=this.model.getOffsetAt(O)+A;return this.model.getPositionAt(W)}getPlainTextToCopy(P,A,T){const O=T?`\r
|
||
`:this.model.getEOL();P=P.slice(0),P.sort(t.Range.compareRangesUsingStarts);let B=!1,W=!1;for(const F of P)F.isEmpty()?B=!0:W=!0;if(!W){if(!A)return"";const F=P.map(Q=>Q.startLineNumber);let U="";for(let Q=0;Q<F.length;Q++)Q>0&&F[Q-1]===F[Q]||(U+=this.model.getLineContent(F[Q])+O);return U}if(B&&A){const F=[];let U=0;for(const Q of P){const se=Q.startLineNumber;Q.isEmpty()?se!==U&&F.push(this.model.getLineContent(se)):F.push(this.model.getValueInRange(Q,T?2:0)),U=se}return F.length===1?F[0]:F}const j=[];for(const F of P)F.isEmpty()||j.push(this.model.getValueInRange(F,T?2:0));return j.length===1?j[0]:j}getRichTextToCopy(P,A){const T=this.model.getLanguageId();if(T===r.PLAINTEXT_LANGUAGE_ID||P.length!==1)return null;let O=P[0];if(O.isEmpty()){if(!A)return null;const Q=O.startLineNumber;O=new t.Range(Q,this.model.getLineMinColumn(Q),Q,this.model.getLineMaxColumn(Q))}const B=this.b.options.get(47),W=this.J(),F=/[:;\\\/<>]/.test(B.fontFamily)||B.fontFamily===v.EDITOR_FONT_DEFAULTS.fontFamily;let U;return F?U=v.EDITOR_FONT_DEFAULTS.fontFamily:(U=B.fontFamily,U=U.replace(/"/g,"'"),/[,']/.test(U)||/[+ ]/.test(U)&&(U=`'${U}'`),U=`${U}, ${v.EDITOR_FONT_DEFAULTS.fontFamily}`),{mode:T,html:`<div style="color: ${W[1]};background-color: ${W[2]};font-family: ${U};font-weight: ${B.fontWeight};font-size: ${B.fontSize}px;line-height: ${B.lineHeight}px;white-space: pre;">`+this.I(O,W)+"</div>"}}I(P,A){const T=P.startLineNumber,O=P.startColumn,B=P.endLineNumber,W=P.endColumn,j=this.F();let F="";for(let U=T;U<=B;U++){const Q=this.model.tokenization.getLineTokens(U),se=Q.getLineContent(),he=U===T?O-1:0,ie=U===B?W-1:se.length;se===""?F+="<br>":F+=(0,c.tokenizeLineToHTML)(se,Q.inflate(),A,he,ie,j,L.isWindows)}return F}J(){const P=a.TokenizationRegistry.getColorMap(),A=["#000000"];if(P)for(let T=1,O=P.length;T<O;T++)A[T]=E.Color.Format.CSS.formatHex(P[T]);return A}getPrimaryCursorState(){return this.n.getPrimaryCursorState()}getLastAddedCursorIndex(){return this.n.getLastAddedCursorIndex()}getCursorStates(){return this.n.getCursorStates()}setCursorStates(P,A,T){return this.M(O=>this.n.setStates(O,P,A,T))}getCursorColumnSelectData(){return this.n.getCursorColumnSelectData()}getCursorAutoClosedCharacters(){return this.n.getAutoClosedCharacters()}setCursorColumnSelectData(P){this.n.setCursorColumnSelectData(P)}getPrevEditOperationType(){return this.n.getPrevEditOperationType()}setPrevEditOperationType(P){this.n.setPrevEditOperationType(P)}getSelection(){return this.n.getSelection()}getSelections(){return this.n.getSelections()}getPosition(){return this.n.getPrimaryCursorState().modelState.position}setSelections(P,A,T=0){this.M(O=>this.n.setSelections(O,P,A,T))}saveCursorState(){return this.n.saveState()}restoreCursorState(P){this.M(A=>this.n.restoreState(A,P))}L(P){if(this.n.context.cursorConfig.readOnly){this.c.emitOutgoingEvent(new h.ReadOnlyEditAttemptEvent);return}this.M(P)}executeEdits(P,A,T){this.L(O=>this.n.executeEdits(O,P,A,T))}startComposition(){this.L(P=>this.n.startComposition(P))}endComposition(P){this.L(A=>this.n.endComposition(A,P))}type(P,A){this.L(T=>this.n.type(T,P,A))}compositionType(P,A,T,O,B){this.L(W=>this.n.compositionType(W,P,A,T,O,B))}paste(P,A,T,O){this.L(B=>this.n.paste(B,P,A,T,O))}cut(P){this.L(A=>this.n.cut(A,P))}executeCommand(P,A){this.L(T=>this.n.executeCommand(T,P,A))}executeCommands(P,A){this.L(T=>this.n.executeCommands(T,P,A))}revealPrimaryCursor(P,A,T=!1){this.M(O=>this.n.revealPrimary(O,P,T,0,A,0))}revealTopMostCursor(P){const A=this.n.getTopMostViewPosition(),T=new t.Range(A.lineNumber,A.column,A.lineNumber,A.column);this.M(O=>O.emitViewEvent(new d.ViewRevealRangeRequestEvent(P,!1,T,null,0,!0,0)))}revealBottomMostCursor(P){const A=this.n.getBottomMostViewPosition(),T=new t.Range(A.lineNumber,A.column,A.lineNumber,A.column);this.M(O=>O.emitViewEvent(new d.ViewRevealRangeRequestEvent(P,!1,T,null,0,!0,0)))}revealRange(P,A,T,O,B){this.M(W=>W.emitViewEvent(new d.ViewRevealRangeRequestEvent(P,!1,T,null,O,A,B)))}changeWhitespace(P){this.viewLayout.changeWhitespace(P)&&(this.c.emitSingleViewEvent(new d.ViewZonesChangedEvent),this.c.emitOutgoingEvent(new h.ViewZonesChangedEvent))}M(P){try{const A=this.c.beginEmitViewEvents();return P(A)}finally{this.c.endEmitViewEvents()}}normalizePosition(P,A){return this.m.normalizePosition(P,A)}getLineIndentColumn(P){return this.m.getLineIndentColumn(P)}}e.ViewModel=p;class b{static create(P){const A=P._setTrackedRange(null,new t.Range(1,1,1,1),1);return new b(P,1,!1,A,0)}get viewLineNumber(){return this.b}get isValid(){return this.c}get modelTrackedRange(){return this.f}get startLineDelta(){return this.g}constructor(P,A,T,O,B){this.a=P,this.b=A,this.c=T,this.f=O,this.g=B}dispose(){this.a._setTrackedRange(this.f,null,1)}update(P,A){const T=P.coordinatesConverter.convertViewPositionToModelPosition(new i.Position(A,P.getLineMinColumn(A))),O=P.model._setTrackedRange(this.f,new t.Range(T.lineNumber,T.column,T.lineNumber,T.column),1),B=P.viewLayout.getVerticalOffsetForLineNumber(A),W=P.viewLayout.getCurrentScrollTop();this.b=A,this.c=!0,this.f=O,this.g=W-B}invalidate(){this.c=!1}}class y{constructor(){this.a=Object.create(null),this.asArray=[]}accept(P,A,T,O,B){const W=this.a[P];if(W){const j=W.data,F=j[j.length-3],U=j[j.length-1];if(F===B&&U+1>=T){O>U&&(j[j.length-1]=O);return}j.push(B,T,O)}else{const j=new o.OverviewRulerDecorationsGroup(P,A,[B,T,O]);this.a[P]=j,this.asArray.push(j)}}}class k{constructor(){this.a=new Map,this.b=!1,this.c=[]}setHiddenAreas(P,A){const T=this.a.get(P);T&&M(T,A)||(this.a.set(P,A),this.b=!0)}getMergedRanges(){if(!this.b)return this.c;this.b=!1;const P=Array.from(this.a.values()).reduce((A,T)=>D(A,T),[]);return M(this.c,P)?this.c:(this.c=P,this.c)}}function D(R,P){const A=[];let T=0,O=0;for(;T<R.length&&O<P.length;){const B=R[T],W=P[O];if(B.endLineNumber<W.startLineNumber-1)A.push(R[T++]);else if(W.endLineNumber<B.startLineNumber-1)A.push(P[O++]);else{const j=Math.min(B.startLineNumber,W.startLineNumber),F=Math.max(B.endLineNumber,W.endLineNumber);A.push(new t.Range(j,1,F,1)),T++,O++}}for(;T<R.length;)A.push(R[T++]);for(;O<P.length;)A.push(P[O++]);return A}function M(R,P){if(R.length!==P.length)return!1;for(let A=0;A<R.length;A++)if(!R[A].equalsRange(P[A]))return!1;return!0}class z{constructor(P,A){this.viewportStartModelPosition=P,this.startLineDelta=A}recoverViewportStart(P,A){if(!this.viewportStartModelPosition)return;const T=P.convertModelPositionToViewPosition(this.viewportStartModelPosition),O=A.getVerticalOffsetForLineNumber(T.lineNumber);A.setScrollPosition({scrollTop:O+this.startLineDelta},1)}}}),define(_[179],ee([1,0,564,7,13,6,2,48,692,14,30,791,246,40,74,12,4,22,251,160,24,39,71,31,812,25,15,8,173,42,23,77,18,486,544,162,34,73,19,543,211,730,392]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s,l,o,u,h,w,m,p,b,y,k,D,M,z,R,P,A,T,O,B,W,j,F){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorModeContext=e.BooleanEventEmitter=e.CodeEditorWidget=void 0;let U=0;class Q{constructor(V,H,$,oe,re){this.model=V,this.viewModel=H,this.view=$,this.hasRealView=oe,this.listenersToRemove=re}dispose(){(0,L.dispose)(this.listenersToRemove),this.model.onBeforeDetached(),this.hasRealView&&this.view.dispose(),this.viewModel.dispose()}}let se=class Ot extends L.Disposable{get isSimpleWidget(){return this.gb.isSimpleWidget}constructor(V,H,$,oe,re,X,le,me,we,Le,Ee,Me){super(),this.xb=Ee,this.c=new I.EventDeliveryQueue,this.g=this.q(new j.CodeEditorContributions),this.h=this.q(new I.Emitter),this.onDidDispose=this.h.event,this.j=this.q(new I.Emitter({deliveryQueue:this.c})),this.onDidChangeModelContent=this.j.event,this.k=this.q(new I.Emitter({deliveryQueue:this.c})),this.onDidChangeModelLanguage=this.k.event,this.l=this.q(new I.Emitter({deliveryQueue:this.c})),this.onDidChangeModelLanguageConfiguration=this.l.event,this.m=this.q(new I.Emitter({deliveryQueue:this.c})),this.onDidChangeModelOptions=this.m.event,this.n=this.q(new I.Emitter({deliveryQueue:this.c})),this.onDidChangeModelDecorations=this.n.event,this.p=this.q(new I.Emitter({deliveryQueue:this.c})),this.onDidChangeModelTokens=this.p.event,this.t=this.q(new I.Emitter({deliveryQueue:this.c})),this.onDidChangeConfiguration=this.t.event,this.u=this.q(new I.Emitter({deliveryQueue:this.c})),this.onDidChangeModel=this.u.event,this.v=this.q(new I.Emitter({deliveryQueue:this.c})),this.onDidChangeCursorPosition=this.v.event,this.w=this.q(new I.Emitter({deliveryQueue:this.c})),this.onDidChangeCursorSelection=this.w.event,this.y=this.q(new ie(this.g,this.c)),this.onDidAttemptReadOnlyEdit=this.y.event,this.z=this.q(new I.Emitter({deliveryQueue:this.c})),this.onDidLayoutChange=this.z.event,this.B=this.q(new he({deliveryQueue:this.c})),this.onDidFocusEditorText=this.B.onDidChangeToTrue,this.onDidBlurEditorText=this.B.onDidChangeToFalse,this.C=this.q(new he({deliveryQueue:this.c})),this.onDidFocusEditorWidget=this.C.onDidChangeToTrue,this.onDidBlurEditorWidget=this.C.onDidChangeToFalse,this.D=this.q(new ie(this.g,this.c)),this.onWillType=this.D.event,this.F=this.q(new ie(this.g,this.c)),this.onDidType=this.F.event,this.G=this.q(new ie(this.g,this.c)),this.onDidCompositionStart=this.G.event,this.H=this.q(new ie(this.g,this.c)),this.onDidCompositionEnd=this.H.event,this.I=this.q(new ie(this.g,this.c)),this.onDidPaste=this.I.event,this.J=this.q(new ie(this.g,this.c)),this.onMouseUp=this.J.event,this.L=this.q(new ie(this.g,this.c)),this.onMouseDown=this.L.event,this.M=this.q(new ie(this.g,this.c)),this.onMouseDrag=this.M.event,this.N=this.q(new ie(this.g,this.c)),this.onMouseDrop=this.N.event,this.O=this.q(new ie(this.g,this.c)),this.onMouseDropCanceled=this.O.event,this.P=this.q(new ie(this.g,this.c)),this.onDropIntoEditor=this.P.event,this.Q=this.q(new ie(this.g,this.c)),this.onContextMenu=this.Q.event,this.R=this.q(new ie(this.g,this.c)),this.onMouseMove=this.R.event,this.S=this.q(new ie(this.g,this.c)),this.onMouseLeave=this.S.event,this.U=this.q(new ie(this.g,this.c)),this.onMouseWheel=this.U.event,this.W=this.q(new ie(this.g,this.c)),this.onKeyUp=this.W.event,this.X=this.q(new ie(this.g,this.c)),this.onKeyDown=this.X.event,this.Y=this.q(new I.Emitter({deliveryQueue:this.c})),this.onDidContentSizeChange=this.Y.event,this.Z=this.q(new I.Emitter({deliveryQueue:this.c})),this.onDidScrollChange=this.Z.event,this.ab=this.q(new I.Emitter({deliveryQueue:this.c})),this.onDidChangeViewZones=this.ab.event,this.bb=this.q(new I.Emitter({deliveryQueue:this.c})),this.onDidChangeHiddenAreas=this.bb.event,this.hb=new Map,this.vb=null,this.wb=this.createDecorationsCollection(),re.willCreateCodeEditor();const Ae=Object.assign({},H);this.db=V,this.eb=Ae.overflowWidgetsDomNode,delete Ae.overflowWidgetsDomNode,this.fb=++U,this.tb={},this.ub={},this.cb=$.telemetryData,this.gb=this.q(this.yb($.isSimpleWidget||!1,Ae,Le)),this.q(this.gb.onDidChange(pe=>{this.t.fire(pe);const ce=this.gb.options;if(pe.hasChanged(138)){const be=ce.get(138);this.z.fire(be)}})),this.lb=this.q(le.createScoped(this.db)),this.mb=we,this.nb=re,this.ob=X,this.pb=me,this.q(new ue(this,this.lb)),this.q(new J(this,this.lb,Me)),this.jb=oe.createChild(new k.ServiceCollection([b.IContextKeyService,this.lb])),this.ib=null,this.qb=new x(V),this.q(this.qb.onChange(()=>{this.C.setValue(this.qb.hasFocus())})),this.rb={},this.sb={};let ke;Array.isArray($.contributions)?ke=$.contributions:ke=f.EditorExtensionsRegistry.getEditorContributions(),this.g.initialize(this,ke,this.jb);for(const pe of f.EditorExtensionsRegistry.getEditorActions()){if(this.hb.has(pe.id)){(0,E.onUnexpectedError)(new Error(`Cannot have two actions with the same id ${pe.id}`));continue}const ce=new s.InternalEditorAction(pe.id,pe.label,pe.alias,(0,R.withNullAsUndefined)(pe.precondition),()=>this.jb.invokeFunction(be=>Promise.resolve(pe.runEditorCommand(be,this,null))),this.lb);this.hb.set(ce.id,ce)}const fe=()=>!this.gb.options.get(86)&&this.gb.options.get(33).enabled;this.q(new N.DragAndDropObserver(this.db,{onDragEnter:()=>{},onDragOver:pe=>{if(!fe())return;const ce=this.getTargetAtClientPoint(pe.clientX,pe.clientY);ce?.position&&this.Ub(ce.position)},onDrop:pe=>ye(this,void 0,void 0,function*(){if(!fe()||(this.Vb(),!pe.dataTransfer))return;const ce=this.getTargetAtClientPoint(pe.clientX,pe.clientY);ce?.position&&this.P.fire({position:ce.position,event:pe})}),onDragLeave:()=>{this.Vb()},onDragEnd:()=>{this.Vb()}})),this.nb.addCodeEditor(this)}writeScreenReaderContent(V){var H;(H=this.ib)===null||H===void 0||H.view.writeScreenReaderContent(V)}yb(V,H,$){return new v.EditorConfiguration(V,H,this.db,$)}getId(){return this.getEditorType()+":"+this.fb}getEditorType(){return l.EditorType.ICodeEditor}dispose(){this.nb.removeCodeEditor(this),this.qb.dispose(),this.hb.clear(),this.rb={},this.sb={},this.zb(),this._postDetachModelCleanup(this.Sb()),this.h.fire(),super.dispose()}invokeWithinContext(V){return this.jb.invokeFunction(V)}updateOptions(V){this.gb.updateOptions(V||{})}getOptions(){return this.gb.options}getOption(V){return this.gb.options.get(V)}getRawOptions(){return this.gb.getRawOptions()}getOverflowWidgetsDomNode(){return this.eb}getConfiguredWordAtPosition(V){return this.ib?T.WordOperations.getWordAtPosition(this.ib.model,this.gb.options.get(124),V):null}getValue(V=null){if(!this.ib)return"";const H=!!(V&&V.preserveBOM);let $=0;return V&&V.lineEnding&&V.lineEnding===`
|
||
`?$=1:V&&V.lineEnding&&V.lineEnding===`\r
|
||
`&&($=2),this.ib.model.getValue($,H)}setValue(V){!this.ib||this.ib.model.setValue(V)}getModel(){return this.ib?this.ib.model:null}setModel(V=null){const H=V;if(this.ib===null&&H===null||this.ib&&this.ib.model===H)return;const $=this.hasTextFocus(),oe=this.Sb();this.Qb(H),$&&this.hasModel()&&this.focus();const re={oldModelUrl:oe?oe.uri:null,newModelUrl:H?H.uri:null};this.zb(),this.u.fire(re),this._postDetachModelCleanup(oe),this.g.onAfterModelAttached()}zb(){if(this.tb={},this.ub){for(const V in this.ub){const H=this.ub[V];for(const $ in H)this.Tb(V+"-"+$)}this.ub={}}}getVisibleRanges(){return this.ib?this.ib.viewModel.getVisibleRanges():[]}getVisibleRangesPlusViewportAboveBelow(){return this.ib?this.ib.viewModel.getVisibleRangesPlusViewportAboveBelow():[]}getWhitespaces(){return this.ib?this.ib.viewModel.viewLayout.getWhitespaces():[]}static Ab(V,H,$,oe){const re=V.model.validatePosition({lineNumber:H,column:$}),X=V.viewModel.coordinatesConverter.convertModelPositionToViewPosition(re);return V.viewModel.viewLayout.getVerticalOffsetAfterLineNumber(X.lineNumber,oe)}getTopForLineNumber(V,H=!1){return this.ib?Ot.Bb(this.ib,V,1,H):-1}getTopForPosition(V,H){return this.ib?Ot.Bb(this.ib,V,H,!1):-1}static Bb(V,H,$,oe=!1){const re=V.model.validatePosition({lineNumber:H,column:$}),X=V.viewModel.coordinatesConverter.convertModelPositionToViewPosition(re);return V.viewModel.viewLayout.getVerticalOffsetForLineNumber(X.lineNumber,oe)}getBottomForLineNumber(V,H=!1){return this.ib?Ot.Ab(this.ib,V,1,H):-1}setHiddenAreas(V,H){var $;($=this.ib)===null||$===void 0||$.viewModel.setHiddenAreas(V.map(oe=>c.Range.lift(oe)),H)}getVisibleColumnFromPosition(V){if(!this.ib)return V.column;const H=this.ib.model.validatePosition(V),$=this.ib.model.getOptions().tabSize;return a.CursorColumns.visibleColumnFromColumn(this.ib.model.getLineContent(H.lineNumber),H.column,$)+1}getPosition(){return this.ib?this.ib.viewModel.getPosition():null}setPosition(V,H="api"){if(!!this.ib){if(!r.Position.isIPosition(V))throw new Error("Invalid arguments");this.ib.viewModel.setSelections(H,[{selectionStartLineNumber:V.lineNumber,selectionStartColumn:V.column,positionLineNumber:V.lineNumber,positionColumn:V.column}])}}Cb(V,H,$,oe){if(!this.ib)return;if(!c.Range.isIRange(V))throw new Error("Invalid arguments");const re=this.ib.model.validateRange(V),X=this.ib.viewModel.coordinatesConverter.convertModelRangeToViewRange(re);this.ib.viewModel.revealRange("api",$,X,H,oe)}revealLine(V,H=0){this.Db(V,0,H)}revealLineInCenter(V,H=0){this.Db(V,1,H)}revealLineInCenterIfOutsideViewport(V,H=0){this.Db(V,2,H)}revealLineNearTop(V,H=0){this.Db(V,5,H)}Db(V,H,$){if(typeof V!="number")throw new Error("Invalid arguments");this.Cb(new c.Range(V,1,V,1),H,!1,$)}revealPosition(V,H=0){this.Eb(V,0,!0,H)}revealPositionInCenter(V,H=0){this.Eb(V,1,!0,H)}revealPositionInCenterIfOutsideViewport(V,H=0){this.Eb(V,2,!0,H)}revealPositionNearTop(V,H=0){this.Eb(V,5,!0,H)}Eb(V,H,$,oe){if(!r.Position.isIPosition(V))throw new Error("Invalid arguments");this.Cb(new c.Range(V.lineNumber,V.column,V.lineNumber,V.column),H,$,oe)}getSelection(){return this.ib?this.ib.viewModel.getSelection():null}getSelections(){return this.ib?this.ib.viewModel.getSelections():null}setSelection(V,H="api"){const $=d.Selection.isISelection(V),oe=c.Range.isIRange(V);if(!$&&!oe)throw new Error("Invalid arguments");if($)this.Fb(V,H);else if(oe){const re={selectionStartLineNumber:V.startLineNumber,selectionStartColumn:V.startColumn,positionLineNumber:V.endLineNumber,positionColumn:V.endColumn};this.Fb(re,H)}}Fb(V,H){if(!this.ib)return;const $=new d.Selection(V.selectionStartLineNumber,V.selectionStartColumn,V.positionLineNumber,V.positionColumn);this.ib.viewModel.setSelections(H,[$])}revealLines(V,H,$=0){this.Gb(V,H,0,$)}revealLinesInCenter(V,H,$=0){this.Gb(V,H,1,$)}revealLinesInCenterIfOutsideViewport(V,H,$=0){this.Gb(V,H,2,$)}revealLinesNearTop(V,H,$=0){this.Gb(V,H,5,$)}Gb(V,H,$,oe){if(typeof V!="number"||typeof H!="number")throw new Error("Invalid arguments");this.Cb(new c.Range(V,1,H,1),$,!1,oe)}revealRange(V,H=0,$=!1,oe=!0){this.Hb(V,$?1:0,oe,H)}revealRangeInCenter(V,H=0){this.Hb(V,1,!0,H)}revealRangeInCenterIfOutsideViewport(V,H=0){this.Hb(V,2,!0,H)}revealRangeNearTop(V,H=0){this.Hb(V,5,!0,H)}revealRangeNearTopIfOutsideViewport(V,H=0){this.Hb(V,6,!0,H)}revealRangeAtTop(V,H=0){this.Hb(V,3,!0,H)}Hb(V,H,$,oe){if(!c.Range.isIRange(V))throw new Error("Invalid arguments");this.Cb(c.Range.lift(V),H,$,oe)}setSelections(V,H="api",$=0){if(!!this.ib){if(!V||V.length===0)throw new Error("Invalid arguments");for(let oe=0,re=V.length;oe<re;oe++)if(!d.Selection.isISelection(V[oe]))throw new Error("Invalid arguments");this.ib.viewModel.setSelections(H,V,$)}}getContentWidth(){return this.ib?this.ib.viewModel.viewLayout.getContentWidth():-1}getScrollWidth(){return this.ib?this.ib.viewModel.viewLayout.getScrollWidth():-1}getScrollLeft(){return this.ib?this.ib.viewModel.viewLayout.getCurrentScrollLeft():-1}getContentHeight(){return this.ib?this.ib.viewModel.viewLayout.getContentHeight():-1}getScrollHeight(){return this.ib?this.ib.viewModel.viewLayout.getScrollHeight():-1}getScrollTop(){return this.ib?this.ib.viewModel.viewLayout.getCurrentScrollTop():-1}setScrollLeft(V,H=1){if(!!this.ib){if(typeof V!="number")throw new Error("Invalid arguments");this.ib.viewModel.viewLayout.setScrollPosition({scrollLeft:V},H)}}setScrollTop(V,H=1){if(!!this.ib){if(typeof V!="number")throw new Error("Invalid arguments");this.ib.viewModel.viewLayout.setScrollPosition({scrollTop:V},H)}}setScrollPosition(V,H=1){!this.ib||this.ib.viewModel.viewLayout.setScrollPosition(V,H)}saveViewState(){if(!this.ib)return null;const V=this.g.saveViewState(),H=this.ib.viewModel.saveCursorState(),$=this.ib.viewModel.saveState();return{cursorState:H,viewState:$,contributionsState:V}}restoreViewState(V){if(!this.ib||!this.ib.hasRealView)return;const H=V;if(H&&H.cursorState&&H.viewState){const $=H.cursorState;Array.isArray($)?$.length>0&&this.ib.viewModel.restoreCursorState($):this.ib.viewModel.restoreCursorState([$]),this.g.restoreViewState(H.contributionsState||{});const oe=this.ib.viewModel.reduceRestoreState(H.viewState);this.ib.view.restoreState(oe)}}getContribution(V){return this.g.get(V)}getActions(){return Array.from(this.hb.values())}getSupportedActions(){let V=this.getActions();return V=V.filter(H=>H.isSupported()),V}getAction(V){return this.hb.get(V)||null}trigger(V,H,$){switch($=$||{},H){case"compositionStart":this.Jb();return;case"compositionEnd":this.Kb(V);return;case"type":{const re=$;this.Lb(V,re.text||"");return}case"replacePreviousChar":{const re=$;this.Mb(V,re.text||"",re.replaceCharCnt||0,0,0);return}case"compositionType":{const re=$;this.Mb(V,re.text||"",re.replacePrevCharCnt||0,re.replaceNextCharCnt||0,re.positionDelta||0);return}case"paste":{const re=$;this.Nb(V,re.text||"",re.pasteOnNewLine||!1,re.multicursorText||null,re.mode||null);return}case"cut":this.Ob(V);return}const oe=this.getAction(H);if(oe){Promise.resolve(oe.run()).then(void 0,E.onUnexpectedError);return}!this.ib||this.Pb(V,H,$)||this.Ib(H,$)}Ib(V,H){this.ob.executeCommand(V,H)}Jb(){!this.ib||(this.ib.viewModel.startComposition(),this.G.fire())}Kb(V){!this.ib||(this.ib.viewModel.endComposition(V),this.H.fire())}Lb(V,H){!this.ib||H.length===0||(V==="keyboard"&&this.D.fire(H),this.ib.viewModel.type(H,V),V==="keyboard"&&this.F.fire(H))}Mb(V,H,$,oe,re){!this.ib||this.ib.viewModel.compositionType(H,$,oe,re,V)}Nb(V,H,$,oe,re){if(!this.ib||H.length===0)return;const X=this.ib.viewModel,le=X.getSelection().getStartPosition();X.paste(H,$,oe,V);const me=X.getSelection().getStartPosition();V==="keyboard"&&this.I.fire({range:new c.Range(le.lineNumber,le.column,me.lineNumber,me.column),languageId:re})}Ob(V){!this.ib||this.ib.viewModel.cut(V)}Pb(V,H,$){const oe=f.EditorExtensionsRegistry.getEditorCommand(H);return oe?($=$||{},$.source=V,this.jb.invokeFunction(re=>{Promise.resolve(oe.runEditorCommand(re,this,$)).then(void 0,E.onUnexpectedError)}),!0):!1}_getViewModel(){return this.ib?this.ib.viewModel:null}pushUndoStop(){return!this.ib||this.gb.options.get(86)?!1:(this.ib.model.pushStackElement(),!0)}popUndoStop(){return!this.ib||this.gb.options.get(86)?!1:(this.ib.model.popStackElement(),!0)}executeEdits(V,H,$){if(!this.ib||this.gb.options.get(86))return!1;let oe;return $?Array.isArray($)?oe=()=>$:oe=$:oe=()=>null,this.ib.viewModel.executeEdits(V,H,oe),!0}executeCommand(V,H){!this.ib||this.ib.viewModel.executeCommand(H,V)}executeCommands(V,H){!this.ib||this.ib.viewModel.executeCommands(H,V)}createDecorationsCollection(V){return new G(this,V)}changeDecorations(V){return this.ib?this.ib.model.changeDecorations(V,this.fb):null}getLineDecorations(V){return this.ib?this.ib.model.getLineDecorations(V,this.fb,(0,n.filterValidationDecorations)(this.gb.options)):null}getDecorationsInRange(V){return this.ib?this.ib.model.getDecorationsInRange(V,this.fb,(0,n.filterValidationDecorations)(this.gb.options)):null}deltaDecorations(V,H){return this.ib?V.length===0&&H.length===0?V:this.ib.model.deltaDecorations(V,H,this.fb):[]}removeDecorations(V){!this.ib||V.length===0||this.ib.model.changeDecorations(H=>{H.deltaDecorations(V,[])})}removeDecorationsByType(V){const H=this.tb[V];H&&this.deltaDecorations(H,[]),this.tb.hasOwnProperty(V)&&delete this.tb[V],this.ub.hasOwnProperty(V)&&delete this.ub[V]}getLayoutInfo(){return this.gb.options.get(138)}createOverviewRuler(V){return!this.ib||!this.ib.hasRealView?null:this.ib.view.createOverviewRuler(V)}getContainerDomNode(){return this.db}getDomNode(){return!this.ib||!this.ib.hasRealView?null:this.ib.view.domNode.domNode}delegateVerticalScrollbarPointerDown(V){!this.ib||!this.ib.hasRealView||this.ib.view.delegateVerticalScrollbarPointerDown(V)}delegateScrollFromMouseWheelEvent(V){!this.ib||!this.ib.hasRealView||this.ib.view.delegateScrollFromMouseWheelEvent(V)}layout(V){this.gb.observeContainer(V),this.render()}focus(){!this.ib||!this.ib.hasRealView||this.ib.view.focus()}hasTextFocus(){return!this.ib||!this.ib.hasRealView?!1:this.ib.view.isFocused()}hasWidgetFocus(){return this.qb&&this.qb.hasFocus()}addContentWidget(V){const H={widget:V,position:V.getPosition()};this.rb.hasOwnProperty(V.getId())&&console.warn("Overwriting a content widget with the same id."),this.rb[V.getId()]=H,this.ib&&this.ib.hasRealView&&this.ib.view.addContentWidget(H)}layoutContentWidget(V){const H=V.getId();if(this.rb.hasOwnProperty(H)){const $=this.rb[H];$.position=V.getPosition(),this.ib&&this.ib.hasRealView&&this.ib.view.layoutContentWidget($)}}removeContentWidget(V){const H=V.getId();if(this.rb.hasOwnProperty(H)){const $=this.rb[H];delete this.rb[H],this.ib&&this.ib.hasRealView&&this.ib.view.removeContentWidget($)}}addOverlayWidget(V){const H={widget:V,position:V.getPosition()};this.sb.hasOwnProperty(V.getId())&&console.warn("Overwriting an overlay widget with the same id."),this.sb[V.getId()]=H,this.ib&&this.ib.hasRealView&&this.ib.view.addOverlayWidget(H)}layoutOverlayWidget(V){const H=V.getId();if(this.sb.hasOwnProperty(H)){const $=this.sb[H];$.position=V.getPosition(),this.ib&&this.ib.hasRealView&&this.ib.view.layoutOverlayWidget($)}}removeOverlayWidget(V){const H=V.getId();if(this.sb.hasOwnProperty(H)){const $=this.sb[H];delete this.sb[H],this.ib&&this.ib.hasRealView&&this.ib.view.removeOverlayWidget($)}}changeViewZones(V){!this.ib||!this.ib.hasRealView||this.ib.view.change(V)}getTargetAtClientPoint(V,H){return!this.ib||!this.ib.hasRealView?null:this.ib.view.getTargetAtClientPoint(V,H)}getScrolledVisiblePosition(V){if(!this.ib||!this.ib.hasRealView)return null;const H=this.ib.model.validatePosition(V),$=this.gb.options,oe=$.get(138),re=Ot.Bb(this.ib,H.lineNumber,H.column)-this.getScrollTop(),X=this.ib.view.getOffsetForColumn(H.lineNumber,H.column)+oe.glyphMarginWidth+oe.lineNumbersWidth+oe.decorationsWidth-this.getScrollLeft();return{top:re,left:X,height:$.get(63)}}getOffsetForColumn(V,H){return!this.ib||!this.ib.hasRealView?-1:this.ib.view.getOffsetForColumn(V,H)}render(V=!1){!this.ib||!this.ib.hasRealView||this.ib.view.render(!0,V)}setAriaOptions(V){!this.ib||!this.ib.hasRealView||this.ib.view.setAriaOptions(V)}applyFontInfo(V){(0,B.applyFontInfo)(V,this.gb.options.get(47))}setBanner(V,H){this.vb&&this.db.contains(this.vb)&&this.db.removeChild(this.vb),this.vb=V,this.gb.setReservedHeight(V?H:0),this.vb&&this.db.prepend(this.vb)}Qb(V){if(!V){this.ib=null;return}const H=[];this.db.setAttribute("data-mode-id",V.getLanguageId()),this.gb.setIsDominatedByLongLines(V.isDominatedByLongLines()),this.gb.setModelLineCount(V.getLineCount()),V.onBeforeAttached();const $=new m.ViewModel(this.fb,this.gb,V,A.DOMLineBreaksComputerFactory.create(),P.MonospaceLineBreaksComputerFactory.create(this.gb.options),X=>N.scheduleAtNextAnimationFrame(X),this.xb,this.pb);H.push(V.onWillDispose(()=>this.setModel(null))),H.push($.onEvent(X=>{switch(X.kind){case 0:this.Y.fire(X);break;case 1:this.B.setValue(X.hasFocus);break;case 2:this.Z.fire(X);break;case 3:this.ab.fire();break;case 4:this.bb.fire();break;case 5:this.y.fire();break;case 6:{if(X.reachedMaxCursorCount){const Le=this.getOption(76),Ee=C.localize(0,null,Le);this.mb.prompt(D.Severity.Warning,Ee,[{label:"Find and Replace",run:()=>{this.ob.executeCommand("editor.action.startFindReplaceAction")}},{label:C.localize(1,null),run:()=>{this.ob.executeCommand("workbench.action.openSettings2",{query:"editor.multiCursorLimit"})}}])}const le=[];for(let Le=0,Ee=X.selections.length;Le<Ee;Le++)le[Le]=X.selections[Le].getPosition();const me={position:le[0],secondaryPositions:le.slice(1),reason:X.reason,source:X.source};this.v.fire(me);const we={selection:X.selections[0],secondarySelections:X.selections.slice(1),modelVersionId:X.modelVersionId,oldSelections:X.oldSelections,oldModelVersionId:X.oldModelVersionId,source:X.source,reason:X.reason};this.w.fire(we);break}case 7:this.n.fire(X.event);break;case 8:this.db.setAttribute("data-mode-id",V.getLanguageId()),this.k.fire(X.event);break;case 9:this.l.fire(X.event);break;case 10:this.j.fire(X.event);break;case 11:this.m.fire(X.event);break;case 12:this.p.fire(X.event);break}}));const[oe,re]=this.Rb($);if(re){this.db.appendChild(oe.domNode.domNode);let X=Object.keys(this.rb);for(let le=0,me=X.length;le<me;le++){const we=X[le];oe.addContentWidget(this.rb[we])}X=Object.keys(this.sb);for(let le=0,me=X.length;le<me;le++){const we=X[le];oe.addOverlayWidget(this.sb[we])}oe.render(!1,!0),oe.domNode.domNode.setAttribute("data-uri",V.uri.toString())}this.ib=new Q(V,$,oe,re,H)}Rb(V){let H;this.isSimpleWidget?H={paste:(re,X,le,me)=>{this.Nb("keyboard",re,X,le,me)},type:re=>{this.Lb("keyboard",re)},compositionType:(re,X,le,me)=>{this.Mb("keyboard",re,X,le,me)},startComposition:()=>{this.Jb()},endComposition:()=>{this.Kb("keyboard")},cut:()=>{this.Ob("keyboard")}}:H={paste:(re,X,le,me)=>{const we={text:re,pasteOnNewLine:X,multicursorText:le,mode:me};this.ob.executeCommand("paste",we)},type:re=>{const X={text:re};this.ob.executeCommand("type",X)},compositionType:(re,X,le,me)=>{if(le||me){const we={text:re,replacePrevCharCnt:X,replaceNextCharCnt:le,positionDelta:me};this.ob.executeCommand("compositionType",we)}else{const we={text:re,replaceCharCnt:X};this.ob.executeCommand("replacePreviousChar",we)}},startComposition:()=>{this.ob.executeCommand("compositionStart",{})},endComposition:()=>{this.ob.executeCommand("compositionEnd",{})},cut:()=>{this.ob.executeCommand("cut",{})}};const $=new t.ViewUserInputEvents(V.coordinatesConverter);return $.onKeyDown=re=>this.X.fire(re),$.onKeyUp=re=>this.W.fire(re),$.onContextMenu=re=>this.Q.fire(re),$.onMouseMove=re=>this.R.fire(re),$.onMouseLeave=re=>this.S.fire(re),$.onMouseDown=re=>this.L.fire(re),$.onMouseUp=re=>this.J.fire(re),$.onMouseDrag=re=>this.M.fire(re),$.onMouseDrop=re=>this.N.fire(re),$.onMouseDropCanceled=re=>this.O.fire(re),$.onMouseWheel=re=>this.U.fire(re),[new i.View(H,this.gb,this.pb.getColorTheme(),V,$,this.eb),!0]}_postDetachModelCleanup(V){V?.removeAllDecorationsWithOwnerId(this.fb)}Sb(){if(!this.ib)return null;const V=this.ib.model,H=this.ib.hasRealView?this.ib.view.domNode.domNode:null;return this.ib.dispose(),this.ib=null,this.db.removeAttribute("data-mode-id"),H&&this.db.contains(H)&&this.db.removeChild(H),this.vb&&this.db.contains(this.vb)&&this.db.removeChild(this.vb),V}Tb(V){this.nb.removeDecorationType(V)}hasModel(){return this.ib!==null}Ub(V){const H=[{range:new c.Range(V.lineNumber,V.column,V.lineNumber,V.column),options:Ot.b}];this.wb.set(H),this.revealPosition(V,1)}Vb(){this.wb.clear()}};se.b=u.ModelDecorationOptions.register({description:"workbench-dnd-target",className:"dnd-target"}),se=Ne([ge(3,y.IInstantiationService),ge(4,g.ICodeEditorService),ge(5,p.ICommandService),ge(6,b.IContextKeyService),ge(7,M.IThemeService),ge(8,D.INotificationService),ge(9,z.IAccessibilityService),ge(10,O.ILanguageConfigurationService),ge(11,W.ILanguageFeaturesService)],se),e.CodeEditorWidget=se;class he extends L.Disposable{constructor(V){super(),this.h=V,this.b=this.q(new I.Emitter(this.h)),this.onDidChangeToTrue=this.b.event,this.c=this.q(new I.Emitter(this.h)),this.onDidChangeToFalse=this.c.event,this.g=0}setValue(V){const H=V?2:1;this.g!==H&&(this.g=H,this.g===2?this.b.fire():this.g===1&&this.c.fire())}}e.BooleanEventEmitter=he;class ie extends I.Emitter{constructor(V,H){super({deliveryQueue:H}),this.c=V}fire(V){this.c.onBeforeInteractionEvent(),super.fire(V)}}class ue extends L.Disposable{constructor(V,H){super(),this.b=V,H.createKey("editorId",V.getId()),this.c=o.EditorContextKeys.editorSimpleInput.bindTo(H),this.g=o.EditorContextKeys.focus.bindTo(H),this.h=o.EditorContextKeys.textInputFocus.bindTo(H),this.j=o.EditorContextKeys.editorTextFocus.bindTo(H),this.k=o.EditorContextKeys.tabMovesFocus.bindTo(H),this.l=o.EditorContextKeys.readOnly.bindTo(H),this.m=o.EditorContextKeys.inDiffEditor.bindTo(H),this.n=o.EditorContextKeys.columnSelection.bindTo(H),this.p=o.EditorContextKeys.hasMultipleSelections.bindTo(H),this.t=o.EditorContextKeys.hasNonEmptySelection.bindTo(H),this.u=o.EditorContextKeys.canUndo.bindTo(H),this.v=o.EditorContextKeys.canRedo.bindTo(H),this.q(this.b.onDidChangeConfiguration(()=>this.w())),this.q(this.b.onDidChangeCursorSelection(()=>this.y())),this.q(this.b.onDidFocusEditorWidget(()=>this.z())),this.q(this.b.onDidBlurEditorWidget(()=>this.z())),this.q(this.b.onDidFocusEditorText(()=>this.z())),this.q(this.b.onDidBlurEditorText(()=>this.z())),this.q(this.b.onDidChangeModel(()=>this.B())),this.q(this.b.onDidChangeConfiguration(()=>this.B())),this.q(F.TabFocus.onDidChangeTabFocus(()=>this.k.set(F.TabFocus.getTabFocusMode("editorFocus")))),this.w(),this.y(),this.z(),this.B(),this.c.set(this.b.isSimpleWidget)}w(){const V=this.b.getOptions();this.k.set(V.get(137)),this.l.set(V.get(86)),this.m.set(V.get(58)),this.n.set(V.get(19))}y(){const V=this.b.getSelections();V?(this.p.set(V.length>1),this.t.set(V.some(H=>!H.isEmpty()))):(this.p.reset(),this.t.reset())}z(){this.g.set(this.b.hasWidgetFocus()&&!this.b.isSimpleWidget),this.j.set(this.b.hasTextFocus()&&!this.b.isSimpleWidget),this.h.set(this.b.hasTextFocus())}B(){const V=this.b.getModel();this.u.set(Boolean(V&&V.canUndo())),this.v.set(Boolean(V&&V.canRedo()))}}class J extends L.Disposable{constructor(V,H,$){super(),this.G=V,this.H=H,this.I=$,this.b=o.EditorContextKeys.languageId.bindTo(H),this.c=o.EditorContextKeys.hasCompletionItemProvider.bindTo(H),this.g=o.EditorContextKeys.hasCodeActionsProvider.bindTo(H),this.h=o.EditorContextKeys.hasCodeLensProvider.bindTo(H),this.j=o.EditorContextKeys.hasDefinitionProvider.bindTo(H),this.k=o.EditorContextKeys.hasDeclarationProvider.bindTo(H),this.l=o.EditorContextKeys.hasImplementationProvider.bindTo(H),this.m=o.EditorContextKeys.hasTypeDefinitionProvider.bindTo(H),this.n=o.EditorContextKeys.hasHoverProvider.bindTo(H),this.p=o.EditorContextKeys.hasDocumentHighlightProvider.bindTo(H),this.t=o.EditorContextKeys.hasDocumentSymbolProvider.bindTo(H),this.u=o.EditorContextKeys.hasReferenceProvider.bindTo(H),this.v=o.EditorContextKeys.hasRenameProvider.bindTo(H),this.C=o.EditorContextKeys.hasSignatureHelpProvider.bindTo(H),this.D=o.EditorContextKeys.hasInlayHintsProvider.bindTo(H),this.w=o.EditorContextKeys.hasDocumentFormattingProvider.bindTo(H),this.y=o.EditorContextKeys.hasDocumentSelectionFormattingProvider.bindTo(H),this.z=o.EditorContextKeys.hasMultipleDocumentFormattingProvider.bindTo(H),this.B=o.EditorContextKeys.hasMultipleDocumentSelectionFormattingProvider.bindTo(H),this.F=o.EditorContextKeys.isInWalkThroughSnippet.bindTo(H);const oe=()=>this.J();this.q(V.onDidChangeModel(oe)),this.q(V.onDidChangeModelLanguage(oe)),this.q($.completionProvider.onDidChange(oe)),this.q($.codeActionProvider.onDidChange(oe)),this.q($.codeLensProvider.onDidChange(oe)),this.q($.definitionProvider.onDidChange(oe)),this.q($.declarationProvider.onDidChange(oe)),this.q($.implementationProvider.onDidChange(oe)),this.q($.typeDefinitionProvider.onDidChange(oe)),this.q($.hoverProvider.onDidChange(oe)),this.q($.documentHighlightProvider.onDidChange(oe)),this.q($.documentSymbolProvider.onDidChange(oe)),this.q($.referenceProvider.onDidChange(oe)),this.q($.renameProvider.onDidChange(oe)),this.q($.documentFormattingEditProvider.onDidChange(oe)),this.q($.documentRangeFormattingEditProvider.onDidChange(oe)),this.q($.signatureHelpProvider.onDidChange(oe)),this.q($.inlayHintsProvider.onDidChange(oe)),oe()}dispose(){super.dispose()}reset(){this.H.bufferChangeEvents(()=>{this.b.reset(),this.c.reset(),this.g.reset(),this.h.reset(),this.j.reset(),this.k.reset(),this.l.reset(),this.m.reset(),this.n.reset(),this.p.reset(),this.t.reset(),this.u.reset(),this.v.reset(),this.w.reset(),this.y.reset(),this.C.reset(),this.F.reset()})}J(){const V=this.G.getModel();if(!V){this.reset();return}this.H.bufferChangeEvents(()=>{this.b.set(V.getLanguageId()),this.c.set(this.I.completionProvider.has(V)),this.g.set(this.I.codeActionProvider.has(V)),this.h.set(this.I.codeLensProvider.has(V)),this.j.set(this.I.definitionProvider.has(V)),this.k.set(this.I.declarationProvider.has(V)),this.l.set(this.I.implementationProvider.has(V)),this.m.set(this.I.typeDefinitionProvider.has(V)),this.n.set(this.I.hoverProvider.has(V)),this.p.set(this.I.documentHighlightProvider.has(V)),this.t.set(this.I.documentSymbolProvider.has(V)),this.u.set(this.I.referenceProvider.has(V)),this.v.set(this.I.renameProvider.has(V)),this.C.set(this.I.signatureHelpProvider.has(V)),this.D.set(this.I.inlayHintsProvider.has(V)),this.w.set(this.I.documentFormattingEditProvider.has(V)||this.I.documentRangeFormattingEditProvider.has(V)),this.y.set(this.I.documentRangeFormattingEditProvider.has(V)),this.z.set(this.I.documentFormattingEditProvider.all(V).length+this.I.documentRangeFormattingEditProvider.all(V).length>1),this.B.set(this.I.documentRangeFormattingEditProvider.all(V).length>1),this.F.set(V.uri.scheme===S.Schemas.walkThroughSnippet)})}}e.EditorModeContext=J;class x extends L.Disposable{constructor(V){super(),this.g=this.q(new I.Emitter),this.onChange=this.g.event,this.b=!1,this.c=this.q(N.trackFocus(V)),this.q(this.c.onDidFocus(()=>{this.b=!0,this.g.fire(void 0)})),this.q(this.c.onDidBlur(()=>{this.b=!1,this.g.fire(void 0)}))}hasFocus(){return this.b}}class G{get length(){return this.b.length}constructor(V,H){this.d=V,this.b=[],this.c=!1,Array.isArray(H)&&H.length>0&&this.set(H)}onDidChange(V,H,$){return this.d.onDidChangeModelDecorations(oe=>{this.c||V.call(H,oe)},$)}getRange(V){return!this.d.hasModel()||V>=this.b.length?null:this.d.getModel().getDecorationRange(this.b[V])}getRanges(){if(!this.d.hasModel())return[];const V=this.d.getModel(),H=[];for(const $ of this.b){const oe=V.getDecorationRange($);oe&&H.push(oe)}return H}has(V){return this.b.includes(V.id)}clear(){this.b.length!==0&&this.set([])}set(V){try{this.c=!0,this.d.changeDecorations(H=>{this.b=H.deltaDecorations(this.b,V)})}finally{this.c=!1}}}const te=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='"),Z=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 ae(ne){return te+encodeURIComponent(ne.toString())+Z}const de=encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" height="3" width="12"><g fill="'),K=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 Y(ne){return de+encodeURIComponent(ne.toString())+K}(0,M.registerThemingParticipant)((ne,V)=>{const H=ne.getColor(w.editorErrorForeground);H&&V.addRule(`.monaco-editor .squiggly-error { background: url("data:image/svg+xml,${ae(H)}") repeat-x bottom left; }`);const $=ne.getColor(w.editorWarningForeground);$&&V.addRule(`.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,${ae($)}") repeat-x bottom left; }`);const oe=ne.getColor(w.editorInfoForeground);oe&&V.addRule(`.monaco-editor .squiggly-info { background: url("data:image/svg+xml,${ae(oe)}") repeat-x bottom left; }`);const re=ne.getColor(w.editorHintForeground);re&&V.addRule(`.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,${Y(re)}") no-repeat bottom left; }`);const X=ne.getColor(h.editorUnnecessaryCodeOpacity);X&&V.addRule(`.monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: ${X.rgba.a}; }`)})}),define(_[323],ee([1,0,7,35,155,138,85,11,29,13,6,2,73,285,14,30,112,179,774,568,684,40,12,4,95,160,39,135,107,82,262,565,96,15,57,8,173,42,69,31,81,23,32,390]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s,l,o,u,h,w,m,p,b,y,k,D,M,z,R,P,A,T,O,B,W,j,F,U,Q){"use strict";var se;Object.defineProperty(e,"__esModule",{value:!0}),e.DiffEditorWidget=void 0;class he{constructor(fe,pe){this.j=fe,this.k=pe,this.d=[],this.f=[],this.g={},this.h=[]}getForeignViewZones(fe){return fe.filter(pe=>!this.g[String(pe.id)])}clean(fe){this.d.length>0&&fe.changeViewZones(pe=>{for(const ce of this.d)pe.removeZone(ce)}),this.d=[],this.g={},fe.changeDecorations(pe=>{this.h=pe.deltaDecorations(this.h,[])})}apply(fe,pe,ce,be){const Se=be?c.StableEditorScrollState.capture(fe):null;fe.changeViewZones(Ie=>{var Ce;for(const ve of this.d)Ie.removeZone(ve);for(const ve of this.f)ve.dispose();this.d=[],this.g={},this.f=[];for(let ve=0,De=ce.zones.length;ve<De;ve++){const Oe=ce.zones[ve];Oe.suppressMouseDown=!0;const Re=Ie.addZone(Oe);this.d.push(Re),this.g[String(Re)]=!0,ce.zones[ve].diff&&Oe.marginDomNode&&(Oe.suppressMouseDown=!1,((Ce=ce.zones[ve].diff)===null||Ce===void 0?void 0:Ce.originalModel.getValueLength())!==0&&this.f.push(new l.InlineDiffMargin(Re,Oe.marginDomNode,fe,ce.zones[ve].diff,this.j,this.k)))}}),Se?.restore(fe),fe.changeDecorations(Ie=>{this.h=Ie.deltaDecorations(this.h,ce.decorations)}),pe?.setZones(ce.overviewZones)}}let ie=0;const ue=(0,F.registerIcon)("diff-insert",v.Codicon.add,z.localize(0,null)),J=(0,F.registerIcon)("diff-remove",v.Codicon.remove,z.localize(1,null)),x=(se=window.trustedTypes)===null||se===void 0?void 0:se.createPolicy("diffEditorWidget",{createHTML:ke=>ke}),G=z.localize(2,null);let te=class dt extends i.Disposable{constructor(fe,pe,ce,be,Se,Ie,Ce,ve,De,Oe,Re){super(),this.ib=Re,this.j=this.q(new g.Emitter),this.onDidDispose=this.j.event,this.k=this.q(new g.Emitter),this.onDidChangeModel=this.k.event,this.l=this.q(new g.Emitter),this.onDidUpdateDiff=this.l.event,this.n=this.q(new g.Emitter),this.xb=null,this.yb=null,Ce.willCreateDiffEditor(),this.bb=this.q(Ie.createInstance(o.WorkerBasedDocumentDiffProvider,pe)),this.q(this.bb.onDidChange(Fe=>this.wb())),this.eb=Ce,this.cb=this.q(Se.createScoped(fe)),this.db=Ie.createChild(new O.ServiceCollection([P.IContextKeyService,this.cb])),this.cb.createKey("isInDiffEditor",!0),this.fb=ve,this.gb=De,this.p=++ie,this.u=0,this.v=null,this.y=fe,pe=pe||{},this.Y=Me(pe,{enableSplitViewResizing:!0,renderSideBySide:!0,renderMarginRevertIcon:!0,maxComputationTime:5e3,maxFileSize:50,ignoreTrimWhitespace:!0,renderIndicators:!0,originalEditable:!1,diffCodeLens:!1,renderOverviewRuler:!0,diffWordWrap:"inherit",diffAlgorithm:"smart"}),typeof pe.isInEmbeddedEditor<"u"?this.cb.createKey("isInEmbeddedDiffEditor",pe.isInEmbeddedEditor):this.cb.createKey("isInEmbeddedDiffEditor",!1),this.ab=this.q(new S.RunOnceScheduler(()=>this.Cb(),0)),this.B=document.createElement("div"),this.B.className=dt.lb(this.fb.getColorTheme(),this.Y.renderSideBySide),this.B.style.position="relative",this.B.style.height="100%",this.y.appendChild(this.B),this.D=(0,N.createFastDomNode)(document.createElement("div")),this.D.setClassName("diffViewport"),this.D.setPosition("absolute"),this.C=document.createElement("div"),this.C.className="diffOverview",this.C.style.position="absolute",this.C.appendChild(this.D.domNode),this.q(C.addStandardDisposableListener(this.C,C.EventType.POINTER_DOWN,Fe=>{this.L.delegateVerticalScrollbarPointerDown(Fe)})),this.q(C.addDisposableListener(this.C,C.EventType.MOUSE_WHEEL,Fe=>{this.L.delegateScrollFromMouseWheelEvent(Fe)},{passive:!1})),this.Y.renderOverviewRuler&&this.B.appendChild(this.C),this.H=document.createElement("div"),this.H.className="editor original",this.H.style.position="absolute",this.H.style.height="100%",this.B.appendChild(this.H),this.M=document.createElement("div"),this.M.className="editor modified",this.M.style.position="absolute",this.M.style.height="100%",this.B.appendChild(this.M),this.Q=-1,this.P=!1,this.R=0,this.I=new he(Oe,be),this.N=new he(Oe,be),this.U=!0,this.W=!1,this.F=this.q(new n.ElementSizeObserver(this.B,pe.dimension)),this.q(this.F.onDidChange(()=>this.rb())),pe.automaticLayout&&this.F.startObserving(),this.S=null,this.G=this.ob(pe,ce.originalEditor||{}),this.L=this.pb(pe,ce.modifiedEditor||{}),this.J=null,this.O=null,this.hb=Ie.createInstance(s.DiffReview,this),this.B.appendChild(this.hb.domNode.domNode),this.B.appendChild(this.hb.shadow.domNode),this.B.appendChild(this.hb.actionBarContainer.domNode),this.Y.renderSideBySide?this.Kb(new ne(this.Jb(),this.Y.enableSplitViewResizing)):this.Kb(new H(this.Jb(),this.Y.enableSplitViewResizing)),this.q(ve.onDidColorThemeChange(Fe=>{this.Z&&this.Z.applyColors(Fe)&&this.ab.schedule(),this.B.className=dt.lb(this.fb.getColorTheme(),this.Y.renderSideBySide)}));const xe=a.EditorExtensionsRegistry.getDiffEditorContributions();for(const Fe of xe)try{this.q(Ie.createInstance(Fe.ctor,this))}catch(Be){(0,f.onUnexpectedError)(Be)}this.eb.addDiffEditor(this)}jb(fe){this.u!==fe&&(this.u=fe,this.v&&(this.v.done(),this.v=null),this.u===1&&(this.v=this.ib.show(!0,1e3)))}diffReviewNext(){this.hb.next()}diffReviewPrev(){this.hb.prev()}static lb(fe,pe){let ce="monaco-diff-editor monaco-editor-background ";return pe&&(ce+="side-by-side "),ce+=(0,U.getThemeTypeSelector)(fe.type),ce}mb(){this.J&&(this.C.removeChild(this.J.getDomNode()),this.J.dispose(),this.J=null),this.O&&(this.C.removeChild(this.O.getDomNode()),this.O.dispose(),this.O=null)}nb(){!this.Y.renderOverviewRuler||(L.ok(!this.J&&!this.O),this.G.hasModel()&&(this.J=this.G.createOverviewRuler("original diffOverviewRuler"),this.C.appendChild(this.J.getDomNode())),this.L.hasModel()&&(this.O=this.L.createOverviewRuler("modified diffOverviewRuler"),this.C.appendChild(this.O.getDomNode())),this.ub())}ob(fe,pe){const ce=this.qb(this.db,this.H,this.Eb(fe),pe);this.q(ce.onDidScrollChange(Se=>{this.W||!Se.scrollTopChanged&&!Se.scrollLeftChanged&&!Se.scrollHeightChanged||(this.W=!0,this.L.setScrollPosition({scrollLeft:Se.scrollLeft,scrollTop:Se.scrollTop}),this.W=!1,this.Hb())})),this.q(ce.onDidChangeViewZones(()=>{this.vb()})),this.q(ce.onDidChangeConfiguration(Se=>{!ce.getModel()||(Se.hasChanged(47)&&this.ab.schedule(),Se.hasChanged(139)&&(this.ab.cancel(),this.Cb()))})),this.q(ce.onDidChangeHiddenAreas(()=>{this.ab.cancel(),this.Cb()})),this.q(ce.onDidChangeModelContent(()=>{this.U&&this.wb()}));const be=this.cb.createKey("isInDiffLeftEditor",ce.hasWidgetFocus());return this.q(ce.onDidFocusEditorWidget(()=>be.set(!0))),this.q(ce.onDidBlurEditorWidget(()=>be.set(!1))),this.q(ce.onDidContentSizeChange(Se=>{const Ie=this.G.getContentWidth()+this.L.getContentWidth()+dt.g,Ce=Math.max(this.L.getContentHeight(),this.G.getContentHeight());this.n.fire({contentHeight:Ce,contentWidth:Ie,contentHeightChanged:Se.contentHeightChanged,contentWidthChanged:Se.contentWidthChanged})})),ce}pb(fe,pe){const ce=this.qb(this.db,this.M,this.Fb(fe),pe);this.q(ce.onDidScrollChange(Se=>{this.W||!Se.scrollTopChanged&&!Se.scrollLeftChanged&&!Se.scrollHeightChanged||(this.W=!0,this.G.setScrollPosition({scrollLeft:Se.scrollLeft,scrollTop:Se.scrollTop}),this.W=!1,this.Hb())})),this.q(ce.onDidChangeViewZones(()=>{this.vb()})),this.q(ce.onDidChangeConfiguration(Se=>{!ce.getModel()||(Se.hasChanged(47)&&this.ab.schedule(),Se.hasChanged(139)&&(this.ab.cancel(),this.Cb()))})),this.q(ce.onDidChangeHiddenAreas(()=>{this.ab.cancel(),this.Cb()})),this.q(ce.onDidChangeModelContent(()=>{this.U&&this.wb()})),this.q(ce.onDidChangeModelOptions(Se=>{Se.tabSize&&this.ab.schedule()}));const be=this.cb.createKey("isInDiffRightEditor",ce.hasWidgetFocus());return this.q(ce.onDidFocusEditorWidget(()=>be.set(!0))),this.q(ce.onDidBlurEditorWidget(()=>be.set(!1))),this.q(ce.onDidContentSizeChange(Se=>{const Ie=this.G.getContentWidth()+this.L.getContentWidth()+dt.g,Ce=Math.max(this.L.getContentHeight(),this.G.getContentHeight());this.n.fire({contentHeight:Ce,contentWidth:Ie,contentHeightChanged:Se.contentHeightChanged,contentWidthChanged:Se.contentWidthChanged})})),this.q(ce.onMouseDown(Se=>{var Ie,Ce;if(!Se.event.rightButton&&Se.target.position&&((Ie=Se.target.element)===null||Ie===void 0?void 0:Ie.className.includes("arrow-revert-change"))){const ve=Se.target.position.lineNumber,De=Se.target,Oe=(Ce=this.S)===null||Ce===void 0?void 0:Ce.changes.find(Re=>De?.detail.afterLineNumber===Re.modifiedStartLineNumber||Re.modifiedEndLineNumber>0&&Re.modifiedStartLineNumber===ve);Oe&&this.revertChange(Oe),Se.event.stopPropagation(),this.Cb();return}})),ce}revertChange(fe){const pe=this.L,ce=this.G.getModel(),be=this.L.getModel();if(!ce||!be||!pe)return;const Se=fe.originalEndLineNumber>0?new w.Range(fe.originalStartLineNumber,1,fe.originalEndLineNumber,ce.getLineMaxColumn(fe.originalEndLineNumber)):null,Ie=Se?ce.getValueInRange(Se):null,Ce=fe.modifiedEndLineNumber>0?new w.Range(fe.modifiedStartLineNumber,1,fe.modifiedEndLineNumber,be.getLineMaxColumn(fe.modifiedEndLineNumber)):null,ve=be.getEOL();if(fe.originalEndLineNumber===0&&Ce){let De=Ce;fe.modifiedStartLineNumber>1?De=Ce.setStartPosition(fe.modifiedStartLineNumber-1,be.getLineMaxColumn(fe.modifiedStartLineNumber-1)):fe.modifiedEndLineNumber<be.getLineCount()&&(De=Ce.setEndPosition(fe.modifiedEndLineNumber+1,1)),pe.executeEdits("diffEditor",[{range:De,text:""}])}else if(fe.modifiedEndLineNumber===0&&Ie!==null){const De=fe.modifiedStartLineNumber<be.getLineCount()?new h.Position(fe.modifiedStartLineNumber+1,1):new h.Position(fe.modifiedStartLineNumber,be.getLineMaxColumn(fe.modifiedStartLineNumber));pe.executeEdits("diffEditor",[{range:w.Range.fromPositions(De,De),text:fe.modifiedStartLineNumber<be.getLineCount()?Ie+ve:ve+Ie}])}else Ce&&Ie!==null&&pe.executeEdits("diffEditor",[{range:Ce,text:Ie}])}qb(fe,pe,ce,be){return fe.createInstance(d.CodeEditorWidget,pe,ce,be)}dispose(){this.eb.removeDiffEditor(this),this.Q!==-1&&(window.clearTimeout(this.Q),this.Q=-1),this.Bb(),this.J&&(this.C.removeChild(this.J.getDomNode()),this.J.dispose()),this.O&&(this.C.removeChild(this.O.getDomNode()),this.O.dispose()),this.C.removeChild(this.D.domNode),this.Y.renderOverviewRuler&&this.B.removeChild(this.C),this.B.removeChild(this.H),this.G.dispose(),this.B.removeChild(this.M),this.L.dispose(),this.Z.dispose(),this.B.removeChild(this.hb.domNode.domNode),this.B.removeChild(this.hb.shadow.domNode),this.B.removeChild(this.hb.actionBarContainer.domNode),this.hb.dispose(),this.y.removeChild(this.B),this.j.fire(),super.dispose()}getId(){return this.getEditorType()+":"+this.p}getEditorType(){return p.EditorType.IDiffEditor}getLineChanges(){return this.S?this.S.changes:null}getOriginalEditor(){return this.G}getModifiedEditor(){return this.L}updateOptions(fe){const pe=Me(fe,this.Y),ce=Ae(this.Y,pe);this.Y=pe;const be=ce.ignoreTrimWhitespace||ce.renderIndicators||ce.renderMarginRevertIcon,Se=this.U&&(ce.maxComputationTime||ce.maxFileSize);this.bb.setOptions(pe),be?this.Ab():Se&&this.wb(),this.L.updateOptions(this.Fb(fe)),this.G.updateOptions(this.Eb(fe)),this.Z.setEnableSplitViewResizing(this.Y.enableSplitViewResizing),ce.renderSideBySide&&(this.Y.renderSideBySide?this.Kb(new ne(this.Jb(),this.Y.enableSplitViewResizing)):this.Kb(new H(this.Jb(),this.Y.enableSplitViewResizing)),this.B.className=dt.lb(this.fb.getColorTheme(),this.Y.renderSideBySide)),ce.renderOverviewRuler&&(this.Y.renderOverviewRuler?this.B.appendChild(this.C):this.B.removeChild(this.C))}getModel(){return{original:this.G.getModel(),modified:this.L.getModel()}}setModel(fe){if(fe&&(!fe.original||!fe.modified))throw new Error(fe.original?"DiffEditorWidget.setModel: Modified model is null":"DiffEditorWidget.setModel: Original model is null");this.Bb(),this.mb(),this.G.setModel(fe?fe.original:null),this.L.setModel(fe?fe.modified:null),this.ab.cancel(),fe&&(this.G.setScrollTop(0),this.L.setScrollTop(0)),this.S=null,this.R++,this.jb(0),fe&&(this.nb(),this.Ab()),this.Hb(),this.k.fire()}getContainerDomNode(){return this.y}getVisibleColumnFromPosition(fe){return this.L.getVisibleColumnFromPosition(fe)}getPosition(){return this.L.getPosition()}setPosition(fe,pe="api"){this.L.setPosition(fe,pe)}revealLine(fe,pe=0){this.L.revealLine(fe,pe)}revealLineInCenter(fe,pe=0){this.L.revealLineInCenter(fe,pe)}revealLineInCenterIfOutsideViewport(fe,pe=0){this.L.revealLineInCenterIfOutsideViewport(fe,pe)}revealLineNearTop(fe,pe=0){this.L.revealLineNearTop(fe,pe)}revealPosition(fe,pe=0){this.L.revealPosition(fe,pe)}revealPositionInCenter(fe,pe=0){this.L.revealPositionInCenter(fe,pe)}revealPositionInCenterIfOutsideViewport(fe,pe=0){this.L.revealPositionInCenterIfOutsideViewport(fe,pe)}revealPositionNearTop(fe,pe=0){this.L.revealPositionNearTop(fe,pe)}getSelection(){return this.L.getSelection()}getSelections(){return this.L.getSelections()}setSelection(fe,pe="api"){this.L.setSelection(fe,pe)}setSelections(fe,pe="api"){this.L.setSelections(fe,pe)}revealLines(fe,pe,ce=0){this.L.revealLines(fe,pe,ce)}revealLinesInCenter(fe,pe,ce=0){this.L.revealLinesInCenter(fe,pe,ce)}revealLinesInCenterIfOutsideViewport(fe,pe,ce=0){this.L.revealLinesInCenterIfOutsideViewport(fe,pe,ce)}revealLinesNearTop(fe,pe,ce=0){this.L.revealLinesNearTop(fe,pe,ce)}revealRange(fe,pe=0,ce=!1,be=!0){this.L.revealRange(fe,pe,ce,be)}revealRangeInCenter(fe,pe=0){this.L.revealRangeInCenter(fe,pe)}revealRangeInCenterIfOutsideViewport(fe,pe=0){this.L.revealRangeInCenterIfOutsideViewport(fe,pe)}revealRangeNearTop(fe,pe=0){this.L.revealRangeNearTop(fe,pe)}revealRangeNearTopIfOutsideViewport(fe,pe=0){this.L.revealRangeNearTopIfOutsideViewport(fe,pe)}revealRangeAtTop(fe,pe=0){this.L.revealRangeAtTop(fe,pe)}getSupportedActions(){return this.L.getSupportedActions()}saveViewState(){const fe=this.G.saveViewState(),pe=this.L.saveViewState();return{original:fe,modified:pe}}restoreViewState(fe){if(fe&&fe.original&&fe.modified){const pe=fe;this.G.restoreViewState(pe.original),this.L.restoreViewState(pe.modified)}}layout(fe){this.F.observe(fe)}focus(){this.L.focus()}hasTextFocus(){return this.G.hasTextFocus()||this.L.hasTextFocus()}trigger(fe,pe,ce){this.L.trigger(fe,pe,ce)}createDecorationsCollection(fe){return this.L.createDecorationsCollection(fe)}changeDecorations(fe){return this.L.changeDecorations(fe)}rb(){this.Gb()}tb(){return this.hb.isVisible()?this.F.getHeight():0}ub(){if(!this.Y.renderOverviewRuler||!this.J||!this.O)return;const fe=this.F.getHeight(),pe=this.tb(),ce=dt.ENTIRE_DIFF_OVERVIEW_WIDTH-2*dt.g;this.L.getLayoutInfo()&&(this.J.setLayout({top:0,width:dt.g,right:ce+dt.g,height:fe-pe}),this.O.setLayout({top:0,right:0,width:dt.g,height:fe-pe}))}vb(){this.P||this.ab.schedule()}wb(){this.Q!==-1&&(window.clearTimeout(this.Q),this.Q=-1),this.Q=window.setTimeout(()=>this.Ab(),dt.h)}static zb(fe,pe){return!fe&&!pe?!0:!fe||!pe?!1:fe.toString()===pe.toString()}Ab(){this.Q!==-1&&(window.clearTimeout(this.Q),this.Q=-1);const fe=this.G.getModel(),pe=this.L.getModel();if(!fe||!pe)return;this.R++;const ce=this.R,be=this.Y.maxFileSize*1024*1024,Se=Ie=>{const Ce=Ie.getValueLength();return be===0||Ce<=be};if(!Se(fe)||!Se(pe)){(!dt.zb(fe.uri,this.xb)||!dt.zb(pe.uri,this.yb))&&(this.xb=fe.uri,this.yb=pe.uri,this.gb.warn(z.localize(3,null)));return}this.jb(1),this.bb.computeDiff(fe,pe,{ignoreTrimWhitespace:this.Y.ignoreTrimWhitespace,maxComputationTimeMs:this.Y.maxComputationTime}).then(Ie=>{ce===this.R&&fe===this.G.getModel()&&pe===this.L.getModel()&&(this.jb(2),this.S={identical:Ie.identical,quitEarly:Ie.quitEarly,changes:Ie.changes.map(Ce=>{let ve,De,Oe,Re,xe=Ce.innerChanges;return Ce.originalRange.isEmpty?(ve=Ce.originalRange.startLineNumber-1,De=0,xe=void 0):(ve=Ce.originalRange.startLineNumber,De=Ce.originalRange.endLineNumberExclusive-1),Ce.modifiedRange.isEmpty?(Oe=Ce.modifiedRange.startLineNumber-1,Re=0,xe=void 0):(Oe=Ce.modifiedRange.startLineNumber,Re=Ce.modifiedRange.endLineNumberExclusive-1),{originalStartLineNumber:ve,originalEndLineNumber:De,modifiedStartLineNumber:Oe,modifiedEndLineNumber:Re,charChanges:xe?.map(Fe=>({originalStartLineNumber:Fe.originalRange.startLineNumber,originalStartColumn:Fe.originalRange.startColumn,originalEndLineNumber:Fe.originalRange.endLineNumber,originalEndColumn:Fe.originalRange.endColumn,modifiedStartLineNumber:Fe.modifiedRange.startLineNumber,modifiedStartColumn:Fe.modifiedRange.startColumn,modifiedEndLineNumber:Fe.modifiedRange.endLineNumber,modifiedEndColumn:Fe.modifiedRange.endColumn}))}})},this.ab.schedule(),this.l.fire())},Ie=>{ce===this.R&&fe===this.G.getModel()&&pe===this.L.getModel()&&(this.jb(2),this.S=null,this.ab.schedule())})}Bb(){this.I.clean(this.G),this.N.clean(this.L)}Cb(){if(!this.G.getModel()||!this.L.getModel())return;const fe=this.S?this.S.changes:[],pe=this.I.getForeignViewZones(this.G.getWhitespaces()),ce=this.N.getForeignViewZones(this.L.getWhitespaces()),be=this.Y.renderMarginRevertIcon&&!this.L.getOption(86),Se=this.Z.getEditorsDiffDecorations(fe,this.Y.ignoreTrimWhitespace,this.Y.renderIndicators,be,pe,ce);try{this.P=!0,this.I.apply(this.G,this.J,Se.original,!1),this.N.apply(this.L,this.O,Se.modified,!0)}finally{this.P=!1}}Db(fe){const pe=Object.assign({},fe);return pe.inDiffEditor=!0,pe.automaticLayout=!1,pe.scrollbar=Object.assign({},pe.scrollbar||{}),pe.scrollbar.vertical="visible",pe.folding=!1,pe.codeLens=this.Y.diffCodeLens,pe.fixedOverflowWidgets=!0,pe.minimap=Object.assign({},pe.minimap||{}),pe.minimap.enabled=!1,pe}Eb(fe){const pe=this.Db(fe);return this.Y.renderSideBySide?pe.wordWrapOverride1=this.Y.diffWordWrap:(pe.wordWrapOverride1="off",pe.wordWrapOverride2="off"),fe.originalAriaLabel&&(pe.ariaLabel=fe.originalAriaLabel),pe.ariaLabel+=G,pe.readOnly=!this.Y.originalEditable,pe.dropIntoEditor={enabled:!pe.readOnly},pe.extraEditorClassName="original-in-monaco-diff-editor",Object.assign(Object.assign({},pe),{dimension:{height:0,width:0}})}Fb(fe){const pe=this.Db(fe);return fe.modifiedAriaLabel&&(pe.ariaLabel=fe.modifiedAriaLabel),pe.ariaLabel+=G,pe.wordWrapOverride1=this.Y.diffWordWrap,pe.revealHorizontalRightPadding=u.EditorOptions.revealHorizontalRightPadding.defaultValue+dt.ENTIRE_DIFF_OVERVIEW_WIDTH,pe.scrollbar.verticalHasArrows=!1,pe.extraEditorClassName="modified-in-monaco-diff-editor",Object.assign(Object.assign({},pe),{dimension:{height:0,width:0}})}doLayout(){this.F.observe(),this.Gb()}Gb(){const fe=this.F.getWidth(),pe=this.F.getHeight(),ce=this.tb(),be=this.Z.layout();this.H.style.width=be+"px",this.H.style.left="0px",this.M.style.width=fe-be+"px",this.M.style.left=be+"px",this.C.style.top="0px",this.C.style.height=pe-ce+"px",this.C.style.width=dt.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this.C.style.left=fe-dt.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this.D.setWidth(dt.ENTIRE_DIFF_OVERVIEW_WIDTH),this.D.setHeight(30),this.G.layout({width:be,height:pe-ce}),this.L.layout({width:fe-be-(this.Y.renderOverviewRuler?dt.ENTIRE_DIFF_OVERVIEW_WIDTH:0),height:pe-ce}),(this.J||this.O)&&this.ub(),this.hb.layout(pe-ce,fe,ce),this.Hb()}Hb(){const fe=this.Ib();fe?(this.D.setTop(fe.top),this.D.setHeight(fe.height)):(this.D.setTop(0),this.D.setHeight(0))}Ib(){const fe=this.L.getLayoutInfo();if(!fe)return null;const pe=this.L.getScrollTop(),ce=this.L.getScrollHeight(),be=Math.max(0,fe.height),Se=Math.max(0,be-2*0),Ie=ce>0?Se/ce:0,Ce=Math.max(0,Math.floor(fe.height*Ie)),ve=Math.floor(pe*Ie);return{height:Ce,top:ve}}Jb(){return{getWidth:()=>this.F.getWidth(),getHeight:()=>this.F.getHeight()-this.tb(),getOptions:()=>({renderOverviewRuler:this.Y.renderOverviewRuler}),getContainerDomNode:()=>this.B,relayoutEditors:()=>{this.Gb()},getOriginalEditor:()=>this.G,getModifiedEditor:()=>this.L}}Kb(fe){var pe;(pe=this.Z)===null||pe===void 0||pe.dispose(),this.Z=fe,this.X&&fe.setBoundarySashes(this.X),fe.applyColors(this.fb.getColorTheme()),this.S&&this.Cb(),this.Gb()}Lb(fe,pe){const ce=this.S?this.S.changes:[];if(ce.length===0||fe<pe(ce[0]))return null;let be=0,Se=ce.length-1;for(;be<Se;){const Ie=Math.floor((be+Se)/2),Ce=pe(ce[Ie]),ve=Ie+1<=Se?pe(ce[Ie+1]):1073741824;fe<Ce?Se=Ie-1:fe>=ve?be=Ie+1:(be=Ie,Se=Ie)}return ce[be]}Mb(fe){const pe=this.Lb(fe,ve=>ve.originalStartLineNumber);if(!pe)return fe;const ce=pe.originalStartLineNumber+(pe.originalEndLineNumber>0?-1:0),be=pe.modifiedStartLineNumber+(pe.modifiedEndLineNumber>0?-1:0),Se=pe.originalEndLineNumber>0?pe.originalEndLineNumber-pe.originalStartLineNumber+1:0,Ie=pe.modifiedEndLineNumber>0?pe.modifiedEndLineNumber-pe.modifiedStartLineNumber+1:0,Ce=fe-ce;return Ce<=Se?be+Math.min(Ce,Ie):be+Ie-Se+Ce}Nb(fe){const pe=this.Lb(fe,ve=>ve.modifiedStartLineNumber);if(!pe)return fe;const ce=pe.originalStartLineNumber+(pe.originalEndLineNumber>0?-1:0),be=pe.modifiedStartLineNumber+(pe.modifiedEndLineNumber>0?-1:0),Se=pe.originalEndLineNumber>0?pe.originalEndLineNumber-pe.originalStartLineNumber+1:0,Ie=pe.modifiedEndLineNumber>0?pe.modifiedEndLineNumber-pe.modifiedStartLineNumber+1:0,Ce=fe-be;return Ce<=Ie?ce+Math.min(Ce,Se):ce+Se-Ie+Ce}getDiffLineInformationForOriginal(fe){return this.S?{equivalentLineNumber:this.Mb(fe)}:null}getDiffLineInformationForModified(fe){return this.S?{equivalentLineNumber:this.Nb(fe)}:null}};te.g=15,te.ENTIRE_DIFF_OVERVIEW_WIDTH=30,te.h=200,te=Ne([ge(3,R.IClipboardService),ge(4,P.IContextKeyService),ge(5,T.IInstantiationService),ge(6,r.ICodeEditorService),ge(7,U.IThemeService),ge(8,B.INotificationService),ge(9,A.IContextMenuService),ge(10,W.IEditorProgressService)],te),e.DiffEditorWidget=te;class Z extends i.Disposable{constructor(fe){super(),this.g=fe,this.h=null,this.j=null}applyColors(fe){const pe=fe.getColor(j.diffOverviewRulerInserted)||(fe.getColor(j.diffInserted)||j.defaultInsertColor).transparent(2),ce=fe.getColor(j.diffOverviewRulerRemoved)||(fe.getColor(j.diffRemoved)||j.defaultRemoveColor).transparent(2),be=!pe.equals(this.h)||!ce.equals(this.j);return this.h=pe,this.j=ce,be}getEditorsDiffDecorations(fe,pe,ce,be,Se,Ie){Ie=Ie.sort((Oe,Re)=>Oe.afterLineNumber-Re.afterLineNumber),Se=Se.sort((Oe,Re)=>Oe.afterLineNumber-Re.afterLineNumber);const Ce=this.k(fe,Se,Ie,ce),ve=this.l(Ce,fe,pe,ce),De=this.n(Ce,fe,pe,ce,be);return{original:{decorations:ve.decorations,overviewZones:ve.overviewZones,zones:Ce.original},modified:{decorations:De.decorations,overviewZones:De.overviewZones,zones:Ce.modified}}}setBoundarySashes(fe){}}class ae{constructor(fe){this.f=fe,this.d=-1,this.current=null,this.advance()}advance(){this.d++,this.d<this.f.length?this.current=this.f[this.d]:this.current=null}}class de{constructor(fe,pe,ce,be,Se){this.d=fe,this.f=pe,this.g=ce,this.h=be,this.j=Se}static k(fe,pe,ce){const be=fe.getModel(),Se=fe._getViewModel();if(be&&Se){const Ie=Ee(be,Se,pe,ce);return Ie.endLineNumber-Ie.startLineNumber+1}return ce-pe+1}getViewZones(){const fe=this.h.getOption(63),pe=this.j.getOption(63),ce=this.h.getOption(139).wrappingColumn!==-1,be=this.j.getOption(139).wrappingColumn!==-1,Se=ce||be,Ie=this.h.getModel(),Ce=this.h._getViewModel().coordinatesConverter,ve=this.j._getViewModel().coordinatesConverter,De={original:[],modified:[]};let Oe=0,Re=0,xe=0,Fe=0,Be=0,Ke=0;const $e=(Ve,Ge)=>Ve.afterLineNumber-Ge.afterLineNumber,nt=(Ve,Ge)=>{if(Ge.domNode===null&&Ve.length>0){const qe=Ve[Ve.length-1];if(qe.afterLineNumber===Ge.afterLineNumber&&qe.domNode===null){qe.heightInLines+=Ge.heightInLines;return}}Ve.push(Ge)},lt=new ae(this.g),He=new ae(this.f);let Te=1,ze=1;for(let Ve=0,Ge=this.d.length;Ve<=Ge;Ve++){const qe=Ve<Ge?this.d[Ve]:null;qe!==null?(xe=qe.originalStartLineNumber+(qe.originalEndLineNumber>0?-1:0),Fe=qe.modifiedStartLineNumber+(qe.modifiedEndLineNumber>0?-1:0),Re=qe.originalEndLineNumber>0?de.k(this.h,qe.originalStartLineNumber,qe.originalEndLineNumber):0,Oe=qe.modifiedEndLineNumber>0?de.k(this.j,qe.modifiedStartLineNumber,qe.modifiedEndLineNumber):0,Be=Math.max(qe.originalStartLineNumber,qe.originalEndLineNumber),Ke=Math.max(qe.modifiedStartLineNumber,qe.modifiedEndLineNumber)):(xe+=1e7+Re,Fe+=1e7+Oe,Be=xe,Ke=Fe);let Ze=[],Je=[];if(Se){let Ye;qe?qe.originalEndLineNumber>0?Ye=qe.originalStartLineNumber-Te:Ye=qe.modifiedStartLineNumber-ze:Ye=Ie.getLineCount()-Te+1;for(let at=0;at<Ye;at++){const ht=Te+at,st=ze+at,Xe=Ce.getModelLineViewLineCount(ht),Pe=ve.getModelLineViewLineCount(st);Xe<Pe?Ze.push({afterLineNumber:ht,heightInLines:Pe-Xe,domNode:null,marginDomNode:null}):Xe>Pe&&Je.push({afterLineNumber:st,heightInLines:Xe-Pe,domNode:null,marginDomNode:null})}qe&&(Te=(qe.originalEndLineNumber>0?qe.originalEndLineNumber:qe.originalStartLineNumber)+1,ze=(qe.modifiedEndLineNumber>0?qe.modifiedEndLineNumber:qe.modifiedStartLineNumber)+1)}for(;lt.current&<.current.afterLineNumber<=Ke;){let Ye;lt.current.afterLineNumber<=Fe?Ye=xe-Fe+lt.current.afterLineNumber:Ye=Be;let at=null;qe&&qe.modifiedStartLineNumber<=lt.current.afterLineNumber&<.current.afterLineNumber<=qe.modifiedEndLineNumber&&(at=this.n()),Ze.push({afterLineNumber:Ye,heightInLines:lt.current.height/pe,domNode:null,marginDomNode:at}),lt.advance()}for(;He.current&&He.current.afterLineNumber<=Be;){let Ye;He.current.afterLineNumber<=xe?Ye=Fe-xe+He.current.afterLineNumber:Ye=Ke,Je.push({afterLineNumber:Ye,heightInLines:He.current.height/fe,domNode:null}),He.advance()}if(qe!==null&&re(qe)){const Ye=this.o(qe,Re,Oe);Ye&&Ze.push(Ye)}if(qe!==null&&X(qe)){const Ye=this.p(qe,Re,Oe);Ye&&Je.push(Ye)}let it=0,ct=0;for(Ze=Ze.sort($e),Je=Je.sort($e);it<Ze.length&&ct<Je.length;){const Ye=Ze[it],at=Je[ct],ht=Ye.afterLineNumber-xe,st=at.afterLineNumber-Fe;ht<st?(nt(De.original,Ye),it++):st<ht?(nt(De.modified,at),ct++):Ye.shouldNotShrink?(nt(De.original,Ye),it++):at.shouldNotShrink?(nt(De.modified,at),ct++):Ye.heightInLines>=at.heightInLines?(Ye.heightInLines-=at.heightInLines,ct++):(at.heightInLines-=Ye.heightInLines,it++)}for(;it<Ze.length;)nt(De.original,Ze[it]),it++;for(;ct<Je.length;)nt(De.modified,Je[ct]),ct++}return{original:de.l(De.original),modified:de.l(De.modified)}}static l(fe){return fe.map(pe=>(pe.domNode||(pe.domNode=we()),pe))}}function K(ke,fe,pe,ce,be){return{range:new w.Range(ke,fe,pe,ce),options:be}}const Y={arrowRevertChange:b.ModelDecorationOptions.register({description:"diff-editor-arrow-revert-change",glyphMarginClassName:"arrow-revert-change "+Q.ThemeIcon.asClassName(v.Codicon.arrowRight)}),charDelete:b.ModelDecorationOptions.register({description:"diff-editor-char-delete",className:"char-delete"}),charDeleteWholeLine:b.ModelDecorationOptions.register({description:"diff-editor-char-delete-whole-line",className:"char-delete",isWholeLine:!0}),charInsert:b.ModelDecorationOptions.register({description:"diff-editor-char-insert",className:"char-insert"}),charInsertWholeLine:b.ModelDecorationOptions.register({description:"diff-editor-char-insert-whole-line",className:"char-insert",isWholeLine:!0}),lineInsert:b.ModelDecorationOptions.register({description:"diff-editor-line-insert",className:"line-insert",marginClassName:"gutter-insert",isWholeLine:!0}),lineInsertWithSign:b.ModelDecorationOptions.register({description:"diff-editor-line-insert-with-sign",className:"line-insert",linesDecorationsClassName:"insert-sign "+Q.ThemeIcon.asClassName(ue),marginClassName:"gutter-insert",isWholeLine:!0}),lineDelete:b.ModelDecorationOptions.register({description:"diff-editor-line-delete",className:"line-delete",marginClassName:"gutter-delete",isWholeLine:!0}),lineDeleteWithSign:b.ModelDecorationOptions.register({description:"diff-editor-line-delete-with-sign",className:"line-delete",linesDecorationsClassName:"delete-sign "+Q.ThemeIcon.asClassName(J),marginClassName:"gutter-delete",isWholeLine:!0}),lineDeleteMargin:b.ModelDecorationOptions.register({description:"diff-editor-line-delete-margin",marginClassName:"gutter-delete"})};class ne extends Z{constructor(fe,pe){super(fe),this.p=pe===!1,this.v=null,this.y=null,this.B=null,this.u=this.q(new I.Sash(this.g.getContainerDomNode(),this,{orientation:0})),this.p&&(this.u.state=0),this.u.onDidStart(()=>this.C()),this.u.onDidChange(ce=>this.D(ce)),this.u.onDidEnd(()=>this.F()),this.u.onDidReset(()=>this.G())}setEnableSplitViewResizing(fe){const pe=fe===!1;this.p!==pe&&(this.p=pe,this.u.state=this.p?0:3)}layout(fe=this.v){const ce=this.g.getWidth()-(this.g.getOptions().renderOverviewRuler?te.ENTIRE_DIFF_OVERVIEW_WIDTH:0);let be=Math.floor((fe||.5)*ce);const Se=Math.floor(.5*ce);return be=this.p?Se:be||Se,ce>ne.MINIMUM_EDITOR_WIDTH*2?(be<ne.MINIMUM_EDITOR_WIDTH&&(be=ne.MINIMUM_EDITOR_WIDTH),be>ce-ne.MINIMUM_EDITOR_WIDTH&&(be=ce-ne.MINIMUM_EDITOR_WIDTH)):be=Se,this.y!==be&&(this.y=be),this.u.layout(),this.y}C(){this.B=this.y}D(fe){const ce=this.g.getWidth()-(this.g.getOptions().renderOverviewRuler?te.ENTIRE_DIFF_OVERVIEW_WIDTH:0),be=this.layout((this.B+(fe.currentX-fe.startX))/ce);this.v=be/ce,this.g.relayoutEditors()}F(){this.u.layout()}G(){this.v=.5,this.g.relayoutEditors(),this.u.layout()}getVerticalSashTop(fe){return 0}getVerticalSashLeft(fe){return this.y}getVerticalSashHeight(fe){return this.g.getHeight()}setBoundarySashes(fe){this.u.orthogonalEndSash=fe.bottom}k(fe,pe,ce){const be=this.g.getOriginalEditor(),Se=this.g.getModifiedEditor();return new V(fe,pe,ce,be,Se).getViewZones()}l(fe,pe,ce,be){const Se=this.g.getOriginalEditor(),Ie=String(this.j),Ce={decorations:[],overviewZones:[]},ve=Se.getModel(),De=Se._getViewModel();for(const Oe of pe)if(X(Oe)){Ce.decorations.push({range:new w.Range(Oe.originalStartLineNumber,1,Oe.originalEndLineNumber,1073741824),options:be?Y.lineDeleteWithSign:Y.lineDelete}),(!re(Oe)||!Oe.charChanges)&&Ce.decorations.push(K(Oe.originalStartLineNumber,1,Oe.originalEndLineNumber,1073741824,Y.charDeleteWholeLine));const Re=Ee(ve,De,Oe.originalStartLineNumber,Oe.originalEndLineNumber);if(Ce.overviewZones.push(new M.OverviewRulerZone(Re.startLineNumber,Re.endLineNumber,0,Ie)),Oe.charChanges){for(const xe of Oe.charChanges)if(me(xe))if(ce)for(let Fe=xe.originalStartLineNumber;Fe<=xe.originalEndLineNumber;Fe++){let Be,Ke;Fe===xe.originalStartLineNumber?Be=xe.originalStartColumn:Be=ve.getLineFirstNonWhitespaceColumn(Fe),Fe===xe.originalEndLineNumber?Ke=xe.originalEndColumn:Ke=ve.getLineLastNonWhitespaceColumn(Fe),Ce.decorations.push(K(Fe,Be,Fe,Ke,Y.charDelete))}else Ce.decorations.push(K(xe.originalStartLineNumber,xe.originalStartColumn,xe.originalEndLineNumber,xe.originalEndColumn,Y.charDelete))}}return Ce}n(fe,pe,ce,be,Se){const Ie=this.g.getModifiedEditor(),Ce=String(this.h),ve={decorations:[],overviewZones:[]},De=Ie.getModel(),Oe=Ie._getViewModel();for(const Re of pe){if(Se)if(Re.modifiedEndLineNumber>0)ve.decorations.push({range:new w.Range(Re.modifiedStartLineNumber,1,Re.modifiedStartLineNumber,1),options:Y.arrowRevertChange});else{const xe=fe.modified.find(Fe=>Fe.afterLineNumber===Re.modifiedStartLineNumber);xe&&(xe.marginDomNode=Le())}if(re(Re)){ve.decorations.push({range:new w.Range(Re.modifiedStartLineNumber,1,Re.modifiedEndLineNumber,1073741824),options:be?Y.lineInsertWithSign:Y.lineInsert}),(!X(Re)||!Re.charChanges)&&ve.decorations.push(K(Re.modifiedStartLineNumber,1,Re.modifiedEndLineNumber,1073741824,Y.charInsertWholeLine));const xe=Ee(De,Oe,Re.modifiedStartLineNumber,Re.modifiedEndLineNumber);if(ve.overviewZones.push(new M.OverviewRulerZone(xe.startLineNumber,xe.endLineNumber,0,Ce)),Re.charChanges){for(const Fe of Re.charChanges)if(le(Fe))if(ce)for(let Be=Fe.modifiedStartLineNumber;Be<=Fe.modifiedEndLineNumber;Be++){let Ke,$e;Be===Fe.modifiedStartLineNumber?Ke=Fe.modifiedStartColumn:Ke=De.getLineFirstNonWhitespaceColumn(Be),Be===Fe.modifiedEndLineNumber?$e=Fe.modifiedEndColumn:$e=De.getLineLastNonWhitespaceColumn(Be),ve.decorations.push(K(Be,Ke,Be,$e,Y.charInsert))}else ve.decorations.push(K(Fe.modifiedStartLineNumber,Fe.modifiedStartColumn,Fe.modifiedEndLineNumber,Fe.modifiedEndColumn,Y.charInsert))}}}return ve}}ne.MINIMUM_EDITOR_WIDTH=100;class V extends de{constructor(fe,pe,ce,be,Se){super(fe,pe,ce,be,Se)}n(){return null}o(fe,pe,ce){return ce>pe?{afterLineNumber:Math.max(fe.originalStartLineNumber,fe.originalEndLineNumber),heightInLines:ce-pe,domNode:null}:null}p(fe,pe,ce){return pe>ce?{afterLineNumber:Math.max(fe.modifiedStartLineNumber,fe.modifiedEndLineNumber),heightInLines:pe-ce,domNode:null}:null}}class H extends Z{constructor(fe,pe){super(fe),this.p=fe.getOriginalEditor().getLayoutInfo().decorationsLeft,this.q(fe.getOriginalEditor().onDidLayoutChange(ce=>{this.p!==ce.decorationsLeft&&(this.p=ce.decorationsLeft,fe.relayoutEditors())}))}setEnableSplitViewResizing(fe){}k(fe,pe,ce,be){const Se=this.g.getOriginalEditor(),Ie=this.g.getModifiedEditor();return new $(fe,pe,ce,Se,Ie,be).getViewZones()}l(fe,pe,ce,be){const Se=String(this.j),Ie={decorations:[],overviewZones:[]},Ce=this.g.getOriginalEditor(),ve=Ce.getModel(),De=Ce._getViewModel();let Oe=0;for(const Re of pe)if(X(Re)){for(Ie.decorations.push({range:new w.Range(Re.originalStartLineNumber,1,Re.originalEndLineNumber,1073741824),options:Y.lineDeleteMargin});Oe<fe.modified.length;){const Be=fe.modified[Oe];if(Be.diff&&Be.diff.originalStartLineNumber>=Re.originalStartLineNumber)break;Oe++}let xe=0;if(Oe<fe.modified.length){const Be=fe.modified[Oe];Be.diff&&Be.diff.originalStartLineNumber===Re.originalStartLineNumber&&Be.diff.originalEndLineNumber===Re.originalEndLineNumber&&Be.diff.modifiedStartLineNumber===Re.modifiedStartLineNumber&&Be.diff.modifiedEndLineNumber===Re.modifiedEndLineNumber&&(xe=Be.heightInLines)}const Fe=Ee(ve,De,Re.originalStartLineNumber,Re.originalEndLineNumber);Ie.overviewZones.push(new M.OverviewRulerZone(Fe.startLineNumber,Fe.endLineNumber,xe,Se))}return Ie}n(fe,pe,ce,be,Se){const Ie=this.g.getModifiedEditor(),Ce=String(this.h),ve={decorations:[],overviewZones:[]},De=Ie.getModel(),Oe=Ie._getViewModel();for(const Re of pe)if(re(Re)){ve.decorations.push({range:new w.Range(Re.modifiedStartLineNumber,1,Re.modifiedEndLineNumber,1073741824),options:be?Y.lineInsertWithSign:Y.lineInsert});const xe=Ee(De,Oe,Re.modifiedStartLineNumber,Re.modifiedEndLineNumber);if(ve.overviewZones.push(new M.OverviewRulerZone(xe.startLineNumber,xe.endLineNumber,0,Ce)),Re.charChanges){for(const Fe of Re.charChanges)if(le(Fe))if(ce)for(let Be=Fe.modifiedStartLineNumber;Be<=Fe.modifiedEndLineNumber;Be++){let Ke,$e;Be===Fe.modifiedStartLineNumber?Ke=Fe.modifiedStartColumn:Ke=De.getLineFirstNonWhitespaceColumn(Be),Be===Fe.modifiedEndLineNumber?$e=Fe.modifiedEndColumn:$e=De.getLineLastNonWhitespaceColumn(Be),ve.decorations.push(K(Be,Ke,Be,$e,Y.charInsert))}else ve.decorations.push(K(Fe.modifiedStartLineNumber,Fe.modifiedStartColumn,Fe.modifiedEndLineNumber,Fe.modifiedEndColumn,Y.charInsert))}else ve.decorations.push(K(Re.modifiedStartLineNumber,1,Re.modifiedEndLineNumber,1073741824,Y.charInsertWholeLine))}return ve}layout(){return Math.max(5,this.p)}}class $ extends de{constructor(fe,pe,ce,be,Se,Ie){super(fe,pe,ce,be,Se),this.q=be.getModel(),this.u=Ie,this.v=[],this.x=[],this.y=this.j._getViewModel().createLineBreaksComputer()}getViewZones(){const fe=super.getViewZones();return this.D(fe),fe}n(){const fe=document.createElement("div");return fe.className="inline-added-margin-view-zone",fe}o(fe,pe,ce){const be=document.createElement("div");return be.className="inline-added-margin-view-zone",{afterLineNumber:Math.max(fe.originalStartLineNumber,fe.originalEndLineNumber),heightInLines:ce,domNode:document.createElement("div"),marginDomNode:be}}p(fe,pe,ce){const be=document.createElement("div");be.className=`view-lines line-delete ${E.MOUSE_CURSOR_TEXT_CSS_CLASS_NAME}`;const Se=document.createElement("div");Se.className="inline-deleted-margin-view-zone";const Ie={shouldNotShrink:!0,afterLineNumber:fe.modifiedEndLineNumber===0?fe.modifiedStartLineNumber:fe.modifiedStartLineNumber-1,heightInLines:pe,minWidthInPx:0,domNode:be,marginDomNode:Se,diff:{originalStartLineNumber:fe.originalStartLineNumber,originalEndLineNumber:fe.originalEndLineNumber,modifiedStartLineNumber:fe.modifiedStartLineNumber,modifiedEndLineNumber:fe.modifiedEndLineNumber,originalModel:this.q,viewLineCounts:null}};for(let Ce=fe.originalStartLineNumber;Ce<=fe.originalEndLineNumber;Ce++)this.y.addRequest(this.q.getLineContent(Ce),null,null);return this.v.push(fe),this.x.push(Ie),Ie}D(fe){const pe=this.j.getOptions(),ce=this.j.getModel().getOptions().tabSize,be=pe.get(47),Se=pe.get(30),Ie=be.typicalHalfwidthCharacterWidth,Ce=pe.get(98),ve=this.q.mightContainNonBasicASCII(),De=this.q.mightContainRTL(),Oe=pe.get(63),xe=pe.get(138).decorationsWidth,Fe=pe.get(111),Be=pe.get(93),Ke=pe.get(88),$e=pe.get(48),nt=this.y.finalize();let lt=0;for(let He=0;He<this.v.length;He++){const Te=this.v[He],ze=this.x[He],Ve=ze.domNode;(0,t.applyFontInfo)(Ve,be);const Ge=ze.marginDomNode;(0,t.applyFontInfo)(Ge,be);const qe=[];if(Te.charChanges)for(const st of Te.charChanges)me(st)&&qe.push(new D.InlineDecoration(new w.Range(st.originalStartLineNumber,st.originalStartColumn,st.originalEndLineNumber,st.originalEndColumn),"char-delete",0));const Ze=qe.length>0,Je=new m.StringBuilder(1e4);let it=0,ct=0,Ye=null;for(let st=Te.originalStartLineNumber;st<=Te.originalEndLineNumber;st++){const Xe=st-Te.originalStartLineNumber,Pe=this.q.tokenization.getLineTokens(st),We=Pe.getLineContent(),je=nt[lt++],Ue=y.LineDecoration.filter(qe,st,1,We.length+1);if(je){let et=0;for(const tt of je.breakOffsets){const rt=Pe.sliceAndInflate(et,tt,0),ot=We.substring(et,tt);it=Math.max(it,this.E(ct++,ot,rt,y.LineDecoration.extractWrapped(Ue,et,tt),Ze,ve,De,be,Se,Oe,xe,Fe,Be,Ke,$e,ce,Je,Ge)),et=tt}for(Ye||(Ye=[]);Ye.length<Xe;)Ye[Ye.length]=1;Ye[Xe]=je.breakOffsets.length,ze.heightInLines+=je.breakOffsets.length-1;const Qe=document.createElement("div");Qe.className="gutter-delete",fe.original.push({afterLineNumber:st,afterColumn:0,heightInLines:je.breakOffsets.length-1,domNode:we(),marginDomNode:Qe})}else it=Math.max(it,this.E(ct++,We,Pe,Ue,Ze,ve,De,be,Se,Oe,xe,Fe,Be,Ke,$e,ce,Je,Ge))}it+=Ce;const at=Je.build(),ht=x?x.createHTML(at):at;if(Ve.innerHTML=ht,ze.minWidthInPx=it*Ie,Ye){const st=Te.originalEndLineNumber-Te.originalStartLineNumber;for(;Ye.length<=st;)Ye[Ye.length]=1}ze.diff.viewLineCounts=Ye}fe.original.sort((He,Te)=>He.afterLineNumber-Te.afterLineNumber)}E(fe,pe,ce,be,Se,Ie,Ce,ve,De,Oe,Re,xe,Fe,Be,Ke,$e,nt,lt){nt.appendString('<div class="view-line'),Se||nt.appendString(" char-delete"),nt.appendString('" style="top:'),nt.appendString(String(fe*Oe)),nt.appendString('px;width:1000000px;">');const He=D.ViewLineRenderingData.isBasicASCII(pe,Ie),Te=D.ViewLineRenderingData.containsRTL(pe,He,Ce),ze=(0,k.renderViewLine)(new k.RenderLineInput(ve.isMonospace&&!De,ve.canUseHalfwidthRightwardsArrow,pe,!1,He,Te,0,ce,be,$e,0,ve.spaceWidth,ve.middotWidth,ve.wsmiddotWidth,xe,Fe,Be,Ke!==u.EditorFontLigatures.OFF,null),nt);if(nt.appendString("</div>"),this.u){const Ve=document.createElement("div");Ve.className=`delete-sign ${Q.ThemeIcon.asClassName(J)}`,Ve.setAttribute("style",`position:absolute;top:${fe*Oe}px;width:${Re}px;height:${Oe}px;right:0;`),lt.appendChild(Ve)}return ze.characterMapping.getHorizontalOffset(ze.characterMapping.length)}}function oe(ke,fe){return(0,u.stringSet)(ke,fe,["off","on","inherit"])}function re(ke){return ke.modifiedEndLineNumber>0}function X(ke){return ke.originalEndLineNumber>0}function le(ke){return ke.modifiedStartLineNumber===ke.modifiedEndLineNumber?ke.modifiedEndColumn-ke.modifiedStartColumn>0:ke.modifiedEndLineNumber-ke.modifiedStartLineNumber>0}function me(ke){return ke.originalStartLineNumber===ke.originalEndLineNumber?ke.originalEndColumn-ke.originalStartColumn>0:ke.originalEndLineNumber-ke.originalStartLineNumber>0}function we(){const ke=document.createElement("div");return ke.className="diagonal-fill",ke}function Le(){const ke=document.createElement("div");return ke.className="arrow-revert-change "+Q.ThemeIcon.asClassName(v.Codicon.arrowRight),C.$("div",{},ke)}function Ee(ke,fe,pe,ce){const be=ke.getLineCount();return pe=Math.min(be,Math.max(1,pe)),ce=Math.min(be,Math.max(1,ce)),fe.coordinatesConverter.convertModelRangeToViewRange(new w.Range(pe,ke.getLineMinColumn(pe),ce,ke.getLineMaxColumn(ce)))}function Me(ke,fe){return{enableSplitViewResizing:(0,u.boolean)(ke.enableSplitViewResizing,fe.enableSplitViewResizing),renderSideBySide:(0,u.boolean)(ke.renderSideBySide,fe.renderSideBySide),renderMarginRevertIcon:(0,u.boolean)(ke.renderMarginRevertIcon,fe.renderMarginRevertIcon),maxComputationTime:(0,u.clampedInt)(ke.maxComputationTime,fe.maxComputationTime,0,1073741824),maxFileSize:(0,u.clampedInt)(ke.maxFileSize,fe.maxFileSize,0,1073741824),ignoreTrimWhitespace:(0,u.boolean)(ke.ignoreTrimWhitespace,fe.ignoreTrimWhitespace),renderIndicators:(0,u.boolean)(ke.renderIndicators,fe.renderIndicators),originalEditable:(0,u.boolean)(ke.originalEditable,fe.originalEditable),diffCodeLens:(0,u.boolean)(ke.diffCodeLens,fe.diffCodeLens),renderOverviewRuler:(0,u.boolean)(ke.renderOverviewRuler,fe.renderOverviewRuler),diffWordWrap:oe(ke.diffWordWrap,fe.diffWordWrap),diffAlgorithm:(0,u.stringSet)(ke.diffAlgorithm,fe.diffAlgorithm,["smart","experimental"])}}function Ae(ke,fe){return{enableSplitViewResizing:ke.enableSplitViewResizing!==fe.enableSplitViewResizing,renderSideBySide:ke.renderSideBySide!==fe.renderSideBySide,renderMarginRevertIcon:ke.renderMarginRevertIcon!==fe.renderMarginRevertIcon,maxComputationTime:ke.maxComputationTime!==fe.maxComputationTime,maxFileSize:ke.maxFileSize!==fe.maxFileSize,ignoreTrimWhitespace:ke.ignoreTrimWhitespace!==fe.ignoreTrimWhitespace,renderIndicators:ke.renderIndicators!==fe.renderIndicators,originalEditable:ke.originalEditable!==fe.originalEditable,diffCodeLens:ke.diffCodeLens!==fe.diffCodeLens,renderOverviewRuler:ke.renderOverviewRuler!==fe.renderOverviewRuler,diffWordWrap:ke.diffWordWrap!==fe.diffWordWrap,diffAlgorithm:ke.diffAlgorithm!==fe.diffAlgorithm}}(0,U.registerThemingParticipant)((ke,fe)=>{const pe=ke.getColor(j.diffDiagonalFill);fe.addRule(`
|
||
.monaco-editor .diagonal-fill {
|
||
background-image: linear-gradient(
|
||
-45deg,
|
||
${pe} 12.5%,
|
||
#0000 12.5%, #0000 50%,
|
||
${pe} 50%, ${pe} 62.5%,
|
||
#0000 62.5%, #0000 100%
|
||
);
|
||
background-size: 8px 8px;
|
||
}
|
||
`)})}),define(_[149],ee([1,0,46,30,179,25,15,8,42,23,77,34,19]),function(q,e,C,N,E,I,L,S,v,f,g,i,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EmbeddedCodeEditorWidget=void 0;let n=class extends E.CodeEditorWidget{constructor(r,c,d,s,l,o,u,h,w,m,p,b){super(r,Object.assign(Object.assign({},d.getRawOptions()),{overflowWidgetsDomNode:d.getOverflowWidgetsDomNode()}),{},s,l,o,u,h,w,m,p,b),this.kb=d,this.Wb=c,super.updateOptions(this.Wb),this.q(d.onDidChangeConfiguration(y=>this.Xb(y)))}getParentEditor(){return this.kb}Xb(r){super.updateOptions(this.kb.getRawOptions()),super.updateOptions(this.Wb)}updateOptions(r){C.mixin(this.Wb,r,!0),super.updateOptions(this.Wb)}};n=Ne([ge(3,S.IInstantiationService),ge(4,N.ICodeEditorService),ge(5,I.ICommandService),ge(6,L.IContextKeyService),ge(7,f.IThemeService),ge(8,v.INotificationService),ge(9,g.IAccessibilityService),ge(10,i.ILanguageConfigurationService),ge(11,t.ILanguageFeaturesService)],n),e.EmbeddedCodeEditorWidget=n}),define(_[813],ee([1,0,11,2,14,12,4,22,24,47,39,579,28,31,23,394]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BracketMatchingController=void 0;const r=(0,n.registerColor)("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},i.localize(0,null));class c extends E.EditorAction{constructor(){super({id:"editor.action.jumpToBracket",label:i.localize(1,null),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:v.EditorContextKeys.editorTextFocus,primary:3160,weight:100}})}run(u,h){var w;(w=l.get(h))===null||w===void 0||w.jumpToBracket()}}class d extends E.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(u,h,w){var m;let p=!0;w&&w.selectBrackets===!1&&(p=!1),(m=l.get(h))===null||m===void 0||m.selectToBracket(p)}}class s{constructor(u,h,w){this.position=u,this.brackets=h,this.options=w}}class l extends N.Disposable{static get(u){return u.getContribution(l.ID)}constructor(u){super(),this.a=u,this.b=[],this.c=0,this.g=this.a.createDecorationsCollection(),this.h=this.q(new C.RunOnceScheduler(()=>this.m(),50)),this.j=this.a.getOption(68),this.h.schedule(),this.q(u.onDidChangeCursorPosition(h=>{this.j!=="never"&&this.h.schedule()})),this.q(u.onDidChangeModelContent(h=>{this.h.schedule()})),this.q(u.onDidChangeModel(h=>{this.b=[],this.h.schedule()})),this.q(u.onDidChangeModelLanguageConfiguration(h=>{this.b=[],this.h.schedule()})),this.q(u.onDidChangeConfiguration(h=>{h.hasChanged(68)&&(this.j=this.a.getOption(68),this.g.clear(),this.b=[],this.c=0,this.h.schedule())})),this.q(u.onDidBlurEditorWidget(()=>{this.h.schedule()})),this.q(u.onDidFocusEditorWidget(()=>{this.h.schedule()}))}jumpToBracket(){if(!this.a.hasModel())return;const u=this.a.getModel(),h=this.a.getSelections().map(w=>{const m=w.getStartPosition(),p=u.bracketPairs.matchBracket(m);let b=null;if(p)p[0].containsPosition(m)&&!p[1].containsPosition(m)?b=p[1].getStartPosition():p[1].containsPosition(m)&&(b=p[0].getStartPosition());else{const y=u.bracketPairs.findEnclosingBrackets(m);if(y)b=y[1].getStartPosition();else{const k=u.bracketPairs.findNextBracket(m);k&&k.range&&(b=k.range.getStartPosition())}}return b?new S.Selection(b.lineNumber,b.column,b.lineNumber,b.column):new S.Selection(m.lineNumber,m.column,m.lineNumber,m.column)});this.a.setSelections(h),this.a.revealRange(h[0])}selectToBracket(u){if(!this.a.hasModel())return;const h=this.a.getModel(),w=[];this.a.getSelections().forEach(m=>{const p=m.getStartPosition();let b=h.bracketPairs.matchBracket(p);if(!b&&(b=h.bracketPairs.findEnclosingBrackets(p),!b)){const D=h.bracketPairs.findNextBracket(p);D&&D.range&&(b=h.bracketPairs.matchBracket(D.range.getStartPosition()))}let y=null,k=null;if(b){b.sort(L.Range.compareRangesUsingStarts);const[D,M]=b;if(y=u?D.getStartPosition():D.getEndPosition(),k=u?M.getEndPosition():M.getStartPosition(),M.containsPosition(p)){const z=y;y=k,k=z}}y&&k&&w.push(new S.Selection(y.lineNumber,y.column,k.lineNumber,k.column))}),w.length>0&&(this.a.setSelections(w),this.a.revealRange(w[0]))}m(){if(this.j==="never")return;this.n();const u=[];let h=0;for(const w of this.b){const m=w.brackets;m&&(u[h++]={range:m[0],options:w.options},u[h++]={range:m[1],options:w.options})}this.g.set(u)}n(){if(!this.a.hasModel()||!this.a.hasWidgetFocus()){this.b=[],this.c=0;return}const u=this.a.getSelections();if(u.length>100){this.b=[],this.c=0;return}const h=this.a.getModel(),w=h.getVersionId();let m=[];this.c===w&&(m=this.b);const p=[];let b=0;for(let z=0,R=u.length;z<R;z++){const P=u[z];P.isEmpty()&&(p[b++]=P.getStartPosition())}p.length>1&&p.sort(I.Position.compare);const y=[];let k=0,D=0;const M=m.length;for(let z=0,R=p.length;z<R;z++){const P=p[z];for(;D<M&&m[D].position.isBefore(P);)D++;if(D<M&&m[D].position.equals(P))y[k++]=m[D];else{let A=h.bracketPairs.matchBracket(P,20),T=l.k;!A&&this.j==="always"&&(A=h.bracketPairs.findEnclosingBrackets(P,20),T=l.l),y[k++]=new s(P,A,T)}}this.b=y,this.c=w}}l.ID="editor.contrib.bracketMatchingController",l.k=g.ModelDecorationOptions.register({description:"bracket-match-overview",stickiness:1,className:"bracket-match",overviewRuler:{color:(0,a.themeColorFromId)(r),position:f.OverviewRulerLane.Center}}),l.l=g.ModelDecorationOptions.register({description:"bracket-match-no-overview",stickiness:1,className:"bracket-match"}),e.BracketMatchingController=l,(0,E.registerEditorContribution)(l.ID,l,1),(0,E.registerEditorAction)(d),(0,E.registerEditorAction)(c),t.MenuRegistry.appendMenuItem(t.MenuId.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:i.localize(3,null)},order:2})}),define(_[814],ee([1,0,7,137,4,39,396]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CodeLensWidget=e.CodeLensHelper=void 0;class L{constructor(t,n,a){this.afterColumn=1073741824,this.afterLineNumber=t,this.heightInPx=n,this.b=a,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}onComputedHeight(t){this.a===void 0?this.a=t:this.a!==t&&(this.a=t,this.b())}isVisible(){return this.a!==0&&this.domNode.hasAttribute("monaco-visible-view-zone")}}class S{constructor(t,n){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this.e=new Map,this.g=!0,this.d=t,this.b=`codelens.widget-${S.a++}`,this.updatePosition(n),this.c=document.createElement("span"),this.c.className="codelens-decoration"}withCommands(t,n){this.e.clear();const a=[];let r=!1;for(let c=0;c<t.length;c++){const d=t[c];if(!!d&&(r=!0,d.command)){const s=(0,N.renderLabelWithIcons)(d.command.title.trim());d.command.id?(a.push(C.$("a",{id:String(c),title:d.command.tooltip,role:"button"},...s)),this.e.set(String(c),d.command)):a.push(C.$("span",{title:d.command.tooltip},...s)),c+1<t.length&&a.push(C.$("span",void 0,"\xA0|\xA0"))}}r?(C.reset(this.c,...a),this.g&&n&&this.c.classList.add("fadein"),this.g=!1):C.reset(this.c,C.$("span",void 0,"no commands"))}getCommand(t){return t.parentElement===this.c?this.e.get(t.id):void 0}getId(){return this.b}getDomNode(){return this.c}updatePosition(t){const n=this.d.getModel().getLineFirstNonWhitespaceColumn(t);this.f={position:{lineNumber:t,column:n},preference:[1]}}getPosition(){return this.f||null}}S.a=0;class v{constructor(){this.a=[],this.b=[],this.c=[]}addDecoration(t,n){this.b.push(t),this.c.push(n)}removeDecoration(t){this.a.push(t)}commit(t){const n=t.deltaDecorations(this.a,this.b);for(let a=0,r=n.length;a<r;a++)this.c[a](n[a])}}e.CodeLensHelper=v;const f=I.ModelDecorationOptions.register({collapseOnReplaceEdit:!0,description:"codelens"});class g{constructor(t,n,a,r,c,d){this.g=!1,this.a=n,this.f=t,this.e=[];let s;const l=[];this.f.forEach((o,u)=>{o.symbol.command&&l.push(o.symbol),a.addDecoration({range:o.symbol.range,options:f},h=>this.e[u]=h),s?s=E.Range.plusRange(s,o.symbol.range):s=E.Range.lift(o.symbol.range)}),this.b=new L(s.startLineNumber-1,c,d),this.c=r.addZone(this.b),l.length>0&&(this.h(),this.d.withCommands(l,!1))}h(){this.d?this.a.layoutContentWidget(this.d):(this.d=new S(this.a,this.b.afterLineNumber+1),this.a.addContentWidget(this.d))}dispose(t,n){this.e.forEach(t.removeDecoration,t),this.e=[],n?.removeZone(this.c),this.d&&(this.a.removeContentWidget(this.d),this.d=void 0),this.g=!0}isDisposed(){return this.g}isValid(){return this.e.some((t,n)=>{const a=this.a.getModel().getDecorationRange(t),r=this.f[n].symbol;return!!(a&&E.Range.isEmpty(r.range)===a.isEmpty())})}updateCodeLensSymbols(t,n){this.e.forEach(n.removeDecoration,n),this.e=[],this.f=t,this.f.forEach((a,r)=>{n.addDecoration({range:a.symbol.range,options:f},c=>this.e[r]=c)})}updateHeight(t,n){this.b.heightInPx=t,n.layoutZone(this.c),this.d&&this.a.layoutContentWidget(this.d)}computeIfNecessary(t){if(!this.b.isVisible())return null;for(let n=0;n<this.e.length;n++){const a=t.getDecorationRange(this.e[n]);a&&(this.f[n].symbol.range=a)}return this.f}updateCommands(t){this.h(),this.d.withCommands(t,!0);for(let n=0;n<this.f.length;n++){const a=t[n];if(a){const{symbol:r}=this.f[n];r.command=a.command||r.command}}}getCommand(t){var n;return(n=this.d)===null||n===void 0?void 0:n.getCommand(t)}getLineNumber(){const t=this.a.getModel().getDecorationRange(this.e[0]);return t?t.startLineNumber:-1}update(t){if(this.isValid()){const n=this.a.getModel().getDecorationRange(this.e[0]);n&&(this.b.afterLineNumber=n.startLineNumber-1,t.layoutZone(this.c),this.d&&(this.d.updatePosition(n.startLineNumber),this.a.layoutContentWidget(this.d)))}}}e.CodeLensWidget=g}),define(_[815],ee([1,0,11,13,2,112,14,40,24,297,728,814,589,25,42,79,78,19]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CodeLensContribution=void 0;let s=class{constructor(o,u,h,w,m,p){this.n=o,this.o=u,this.p=w,this.q=m,this.r=p,this.a=new E.DisposableStore,this.b=new E.DisposableStore,this.c=[],this.j=new E.DisposableStore,this.d=h.for(u.codeLensProvider,"CodeLensProvide",{min:250}),this.f=h.for(u.codeLensProvider,"CodeLensResolve",{min:250,salt:"resolve"}),this.g=new C.RunOnceScheduler(()=>this.z(),this.f.default()),this.a.add(this.n.onDidChangeModel(()=>this.v())),this.a.add(this.n.onDidChangeModelLanguage(()=>this.v())),this.a.add(this.n.onDidChangeConfiguration(b=>{(b.hasChanged(47)||b.hasChanged(16)||b.hasChanged(15))&&this.t(),b.hasChanged(14)&&this.v()})),this.a.add(u.codeLensProvider.onDidChange(this.v,this)),this.v(),this.t()}dispose(){var o;this.u(),this.a.dispose(),this.j.dispose(),(o=this.k)===null||o===void 0||o.dispose()}s(){const o=Math.max(1.3,this.n.getOption(63)/this.n.getOption(49));let u=this.n.getOption(16);return(!u||u<5)&&(u=this.n.getOption(49)*.9|0),{fontSize:u,codeLensHeight:u*o|0}}t(){const{codeLensHeight:o,fontSize:u}=this.s(),h=this.n.getOption(15),w=this.n.getOption(47),{style:m}=this.n.getContainerDomNode();m.setProperty("--vscode-editorCodeLens-lineHeight",`${o}px`),m.setProperty("--vscode-editorCodeLens-fontSize",`${u}px`),m.setProperty("--vscode-editorCodeLens-fontFeatureSettings",w.fontFeatureSettings),h&&(m.setProperty("--vscode-editorCodeLens-fontFamily",h),m.setProperty("--vscode-editorCodeLens-fontFamilyDefault",S.EDITOR_FONT_DEFAULTS.fontFamily)),this.n.changeViewZones(p=>{for(const b of this.c)b.updateHeight(o,p)})}u(){var o,u,h;(o=this.h)===null||o===void 0||o.cancel(),this.h=void 0,(u=this.m)===null||u===void 0||u.cancel(),this.m=void 0,this.b.clear(),this.j.clear(),(h=this.k)===null||h===void 0||h.dispose()}v(){this.u();const o=this.n.getModel();if(!o||!this.n.getOption(14))return;const u=this.r.get(o);if(u&&this.x(u),!this.o.codeLensProvider.has(o)){u&&this.b.add((0,C.disposableTimeout)(()=>{const w=this.r.get(o);u===w&&(this.r.delete(o),this.v())},30*1e3));return}for(const w of this.o.codeLensProvider.all(o))if(typeof w.onDidChange=="function"){const m=w.onDidChange(()=>h.schedule());this.b.add(m)}const h=new C.RunOnceScheduler(()=>{var w;const m=Date.now();(w=this.h)===null||w===void 0||w.cancel(),this.h=(0,C.createCancelablePromise)(p=>(0,f.getCodeLensModel)(this.o.codeLensProvider,o,p)),this.h.then(p=>{this.k&&this.j.add(this.k),this.k=p,this.r.put(o,p);const b=this.d.update(o,Date.now()-m);h.delay=b,this.x(p),this.y()},N.onUnexpectedError)},this.d.get(o));this.b.add(h),this.b.add((0,E.toDisposable)(()=>this.g.cancel())),this.b.add(this.n.onDidChangeModelContent(()=>{this.n.changeDecorations(w=>{this.n.changeViewZones(m=>{const p=[];let b=-1;this.c.forEach(k=>{!k.isValid()||b===k.getLineNumber()?p.push(k):(k.update(m),b=k.getLineNumber())});const y=new i.CodeLensHelper;p.forEach(k=>{k.dispose(y,m),this.c.splice(this.c.indexOf(k),1)}),y.commit(w)})}),h.schedule()})),this.b.add(this.n.onDidFocusEditorWidget(()=>{h.schedule()})),this.b.add(this.n.onDidScrollChange(w=>{w.scrollTopChanged&&this.c.length>0&&this.y()})),this.b.add(this.n.onDidLayoutChange(()=>{this.y()})),this.b.add((0,E.toDisposable)(()=>{if(this.n.getModel()){const w=I.StableEditorScrollState.capture(this.n);this.n.changeDecorations(m=>{this.n.changeViewZones(p=>{this.w(m,p)})}),w.restore(this.n)}else this.w(void 0,void 0)})),this.b.add(this.n.onMouseDown(w=>{if(w.target.type!==9)return;let m=w.target.element;if(m?.tagName==="SPAN"&&(m=m.parentElement),m?.tagName==="A")for(const p of this.c){const b=p.getCommand(m);if(b){this.p.executeCommand(b.id,...b.arguments||[]).catch(y=>this.q.error(y));break}}})),h.schedule()}w(o,u){const h=new i.CodeLensHelper;for(const w of this.c)w.dispose(h,u);o&&h.commit(o),this.c.length=0}x(o){if(!this.n.hasModel())return;const u=this.n.getModel().getLineCount(),h=[];let w;for(const b of o.lenses){const y=b.symbol.range.startLineNumber;y<1||y>u||(w&&w[w.length-1].symbol.range.startLineNumber===y?w.push(b):(w=[b],h.push(w)))}if(!h.length&&!this.c.length)return;const m=I.StableEditorScrollState.capture(this.n),p=this.s();this.n.changeDecorations(b=>{this.n.changeViewZones(y=>{const k=new i.CodeLensHelper;let D=0,M=0;for(;M<h.length&&D<this.c.length;){const z=h[M][0].symbol.range.startLineNumber,R=this.c[D].getLineNumber();R<z?(this.c[D].dispose(k,y),this.c.splice(D,1)):R===z?(this.c[D].updateCodeLensSymbols(h[M],k),M++,D++):(this.c.splice(D,0,new i.CodeLensWidget(h[M],this.n,k,y,p.codeLensHeight,()=>this.y())),D++,M++)}for(;D<this.c.length;)this.c[D].dispose(k,y),this.c.splice(D,1);for(;M<h.length;)this.c.push(new i.CodeLensWidget(h[M],this.n,k,y,p.codeLensHeight,()=>this.y())),M++;k.commit(b)})}),m.restore(this.n)}y(){this.n.getModel()&&this.g.schedule()}z(){var o;(o=this.m)===null||o===void 0||o.cancel(),this.m=void 0;const u=this.n.getModel();if(!u)return;const h=[],w=[];if(this.c.forEach(b=>{const y=b.computeIfNecessary(u);y&&(h.push(y),w.push(b))}),h.length===0)return;const m=Date.now(),p=(0,C.createCancelablePromise)(b=>{const y=h.map((k,D)=>{const M=new Array(k.length),z=k.map((R,P)=>!R.symbol.command&&typeof R.provider.resolveCodeLens=="function"?Promise.resolve(R.provider.resolveCodeLens(u,R.symbol,b)).then(A=>{M[P]=A},N.onUnexpectedExternalError):(M[P]=R.symbol,Promise.resolve(void 0)));return Promise.all(z).then(()=>{!b.isCancellationRequested&&!w[D].isDisposed()&&w[D].updateCommands(M)})});return Promise.all(y)});this.m=p,this.m.then(()=>{const b=this.f.update(u,Date.now()-m);this.g.delay=b,this.k&&this.r.put(u,this.k),this.j.clear(),p===this.m&&(this.m=void 0)},b=>{(0,N.onUnexpectedError)(b),p===this.m&&(this.m=void 0)})}getModel(){return this.k}};s.ID="css.editor.codeLens",s=Ne([ge(1,d.ILanguageFeaturesService),ge(2,c.ILanguageFeatureDebounceService),ge(3,n.ICommandService),ge(4,a.INotificationService),ge(5,g.ICodeLensCache)],s),e.CodeLensContribution=s,(0,L.registerEditorContribution)(s.ID,s,1),(0,L.registerEditorAction)(class extends L.EditorAction{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:v.EditorContextKeys.hasCodeLensProvider,label:(0,t.localize)(0,null),alias:"Show CodeLens Commands For Current Line"})}run(o,u){return ye(this,void 0,void 0,function*(){if(!u.hasModel())return;const h=o.get(r.IQuickInputService),w=o.get(n.ICommandService),m=o.get(a.INotificationService),p=u.getSelection().positionLineNumber,b=u.getContribution(s.ID);if(!b)return;const y=b.getModel();if(!y)return;const k=[];for(const M of y.lenses)M.symbol.command&&M.symbol.range.startLineNumber===p&&k.push({label:M.symbol.command.title,command:M.symbol.command});if(k.length===0)return;const D=yield h.pick(k,{canPickMany:!1});if(!!D){if(y.isDisposed)return yield w.executeCommand(this.id);try{yield w.executeCommand(D.command.id,...D.command.arguments||[])}catch(M){m.error(M)}}})}})}),define(_[324],ee([1,0,11,36,13,6,2,60,9,147,14,4,39,78,19,298,27]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DecoratorLimitReporter=e.ColorDetector=e.ColorDecorationInjectedTextMarker=void 0,e.ColorDecorationInjectedTextMarker=Object.create({});let d=class Gi extends L.Disposable{constructor(o,u,h,w){super(),this.v=o,this.w=u,this.y=h,this.h=this.q(new L.DisposableStore),this.m=[],this.n=new Map,this.p=this.v.createDecorationsCollection(),this.t=new f.DynamicCssRules(this.v),this.u=new s,this.F=this.q(new L.DisposableStore),this.l=w.for(h.colorProvider,"Document Colors",{min:Gi.RECOMPUTE_TIME}),this.q(o.onDidChangeModel(()=>{this.s=this.isEnabled(),this.z()})),this.q(o.onDidChangeModelLanguage(()=>this.z())),this.q(h.colorProvider.onDidChange(()=>this.z())),this.q(o.onDidChangeConfiguration(m=>{const p=this.s;this.s=this.isEnabled(),(p!==this.s||m.hasChanged(18))&&(this.s?this.z():this.H())})),this.k=null,this.j=null,this.s=this.isEnabled(),this.z()}isEnabled(){const o=this.v.getModel();if(!o)return!1;const u=o.getLanguageId(),h=this.w.getValue(u);if(h&&typeof h=="object"){const w=h.colorDecorators;if(w&&w.enable!==void 0&&!w.enable)return w.enable}return this.v.getOption(17)}static get(o){return o.getContribution(this.ID)}dispose(){this.C(),this.H(),super.dispose()}z(){if(this.C(),!this.s)return;const o=this.v.getModel();!o||!this.y.colorProvider.has(o)||(this.h.add(this.v.onDidChangeModelContent(()=>{this.k||(this.k=new C.TimeoutTimer,this.k.cancelAndSet(()=>{this.k=null,this.B()},this.l.get(o)))})),this.B())}B(){this.j=(0,C.createCancelablePromise)(o=>ye(this,void 0,void 0,function*(){const u=this.v.getModel();if(!u)return Promise.resolve([]);const h=new S.StopWatch(!1),w=yield(0,r.getColors)(this.y.colorProvider,u,o);return this.l.update(u,h.elapsed()),w})),this.j.then(o=>{this.D(o),this.G(o),this.j=null},E.onUnexpectedError)}C(){this.k&&(this.k.cancel(),this.k=null),this.j&&(this.j.cancel(),this.j=null),this.h.clear()}D(o){const u=o.map(h=>({range:{startLineNumber:h.colorInfo.range.startLineNumber,startColumn:h.colorInfo.range.startColumn,endLineNumber:h.colorInfo.range.endLineNumber,endColumn:h.colorInfo.range.endColumn},options:t.ModelDecorationOptions.EMPTY}));this.v.changeDecorations(h=>{this.m=h.deltaDecorations(this.m,u),this.n=new Map,this.m.forEach((w,m)=>this.n.set(w,o[m]))})}G(o){this.F.clear();const u=[],h=this.v.getOption(18);for(let m=0;m<o.length&&u.length<h;m++){const{red:p,green:b,blue:y,alpha:k}=o[m].colorInfo.color,D=new N.RGBA(Math.round(p*255),Math.round(b*255),Math.round(y*255),k),M=`rgba(${D.r}, ${D.g}, ${D.b}, ${D.a})`,z=this.F.add(this.t.createClassNameRef({backgroundColor:M}));u.push({range:{startLineNumber:o[m].colorInfo.range.startLineNumber,startColumn:o[m].colorInfo.range.startColumn,endLineNumber:o[m].colorInfo.range.endLineNumber,endColumn:o[m].colorInfo.range.endColumn},options:{description:"colorDetector",before:{content:v.noBreakWhitespace,inlineClassName:`${z.className} colorpicker-color-decoration`,inlineClassNameAffectsLetterSpacing:!0,attachedData:e.ColorDecorationInjectedTextMarker}}})}const w=h<o.length?h:!1;this.u.update(o.length,w),this.p.set(u)}H(){this.v.removeDecorations(this.m),this.m=[],this.p.clear(),this.F.clear()}getColorData(o){const u=this.v.getModel();if(!u)return null;const h=u.getDecorationsInRange(i.Range.fromPositions(o,o)).filter(w=>this.n.has(w.id));return h.length===0?null:this.n.get(h[0].id)}isColorDecoration(o){return this.p.has(o)}};d.ID="editor.contrib.colorDetector",d.RECOMPUTE_TIME=1e3,d=Ne([ge(1,c.IConfigurationService),ge(2,a.ILanguageFeaturesService),ge(3,n.ILanguageFeatureDebounceService)],d),e.ColorDetector=d;class s{constructor(){this.f=new I.Emitter,this.h=0,this.j=!1}update(o,u){(o!==this.h||u!==this.j)&&(this.h=o,this.j=u,this.f.fire())}}e.DecoratorLimitReporter=s,(0,g.registerEditorContribution)(d.ID,d,1)}),define(_[816],ee([1,0,11,20,36,2,4,298,324,558,766,23]),function(q,e,C,N,E,I,L,S,v,f,g,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColorHoverParticipant=e.ColorHover=void 0;class t{constructor(r,c,d,s){this.owner=r,this.range=c,this.model=d,this.provider=s,this.forceShowAtRange=!0}isValidForHoverAnchor(r){return r.type===1&&this.range.startColumn<=r.range.startColumn&&this.range.endColumn>=r.range.endColumn}}e.ColorHover=t;let n=class{constructor(r,c){this.c=r,this.e=c,this.hoverOrdinal=1}computeSync(r,c){return[]}computeAsync(r,c,d){return C.AsyncIterableObject.fromPromise(this.f(r,c,d))}f(r,c,d){return ye(this,void 0,void 0,function*(){if(!this.c.hasModel())return[];const s=v.ColorDetector.get(this.c);if(!s)return[];for(const l of c){if(!s.isColorDecoration(l))continue;const o=s.getColorData(l.range.getStartPosition());if(o)return[yield this.h(this.c.getModel(),o.colorInfo,o.provider)]}return[]})}h(r,c,d){return ye(this,void 0,void 0,function*(){const s=r.getValueInRange(c.range),{red:l,green:o,blue:u,alpha:h}=c.color,w=new E.RGBA(Math.round(l*255),Math.round(o*255),Math.round(u*255),h),m=new E.Color(w),p=yield(0,S.getColorPresentations)(r,c,d,N.CancellationToken.None),b=new f.ColorPickerModel(m,[],0);return b.colorPresentations=p||[],b.guessColorPresentation(m,s),new t(this,L.Range.lift(c.range),b,d)})}renderHoverParts(r,c){if(c.length===0||!this.c.hasModel())return I.Disposable.None;const d=new I.DisposableStore,s=c[0],l=this.c.getModel(),o=s.model,u=d.add(new g.ColorPickerWidget(r.fragment,o,this.c.getOption(136),this.e));r.setColorPicker(u);let h=new L.Range(s.range.startLineNumber,s.range.startColumn,s.range.endLineNumber,s.range.endColumn);const w=()=>{let p,b;if(o.presentation.textEdit){p=[o.presentation.textEdit],b=new L.Range(o.presentation.textEdit.range.startLineNumber,o.presentation.textEdit.range.startColumn,o.presentation.textEdit.range.endLineNumber,o.presentation.textEdit.range.endColumn);const y=this.c.getModel()._setTrackedRange(null,b,3);this.c.pushUndoStop(),this.c.executeEdits("colorpicker",p),b=this.c.getModel()._getTrackedRange(y)||b}else p=[{range:h,text:o.presentation.label,forceMoveMarkers:!1}],b=h.setEndPosition(h.endLineNumber,h.startColumn+o.presentation.label.length),this.c.pushUndoStop(),this.c.executeEdits("colorpicker",p);o.presentation.additionalTextEdits&&(p=[...o.presentation.additionalTextEdits],this.c.executeEdits("colorpicker",p),r.hide()),this.c.pushUndoStop(),h=b},m=p=>(0,S.getColorPresentations)(l,{range:h,color:{red:p.rgba.r/255,green:p.rgba.g/255,blue:p.rgba.b/255,alpha:p.rgba.a}},s.provider,N.CancellationToken.None).then(b=>{o.colorPresentations=b||[]});return d.add(o.onColorFlushed(p=>{m(p).then(w)})),d.add(o.onDidChangeColor(m)),d}};n=Ne([ge(1,i.IThemeService)],n),e.ColorHoverParticipant=n}),define(_[817],ee([1,0,2,16,14,12,4,22,39,491,398]),function(q,e,C,N,E,I,L,S,v,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DragAndDropController=void 0;function g(t){return N.isMacintosh?t.altKey:t.ctrlKey}class i extends C.Disposable{constructor(n){super(),this.a=n,this.c=this.a.createDecorationsCollection(),this.q(this.a.onMouseDown(a=>this.l(a))),this.q(this.a.onMouseUp(a=>this.m(a))),this.q(this.a.onMouseDrag(a=>this.n(a))),this.q(this.a.onMouseDrop(a=>this.r(a))),this.q(this.a.onMouseDropCanceled(()=>this.p())),this.q(this.a.onKeyDown(a=>this.j(a))),this.q(this.a.onKeyUp(a=>this.k(a))),this.q(this.a.onDidBlurEditorWidget(()=>this.i())),this.q(this.a.onDidBlurEditorText(()=>this.i())),this.g=!1,this.h=!1,this.b=null}i(){this.t(),this.b=null,this.g=!1,this.h=!1}j(n){!this.a.getOption(32)||this.a.getOption(19)||(g(n)&&(this.h=!0),this.g&&g(n)&&this.a.updateOptions({mouseStyle:"copy"}))}k(n){!this.a.getOption(32)||this.a.getOption(19)||(g(n)&&(this.h=!1),this.g&&n.keyCode===i.TRIGGER_KEY_VALUE&&this.a.updateOptions({mouseStyle:"default"}))}l(n){this.g=!0}m(n){this.g=!1,this.a.updateOptions({mouseStyle:"text"})}n(n){const a=n.target;if(this.b===null){const c=(this.a.getSelections()||[]).filter(d=>a.position&&d.containsPosition(a.position));if(c.length===1)this.b=c[0];else return}g(n.event)?this.a.updateOptions({mouseStyle:"copy"}):this.a.updateOptions({mouseStyle:"default"}),a.position&&(this.b.containsPosition(a.position)?this.t():this.showAt(a.position))}p(){this.a.updateOptions({mouseStyle:"text"}),this.t(),this.b=null,this.g=!1}r(n){if(n.target&&(this.u(n.target)||this.v(n.target))&&n.target.position){const a=new I.Position(n.target.position.lineNumber,n.target.position.column);if(this.b===null){let r=null;if(n.event.shiftKey){const c=this.a.getSelection();if(c){const{selectionStartLineNumber:d,selectionStartColumn:s}=c;r=[new S.Selection(d,s,a.lineNumber,a.column)]}}else r=(this.a.getSelections()||[]).map(c=>c.containsPosition(a)?new S.Selection(a.lineNumber,a.column,a.lineNumber,a.column):c);this.a.setSelections(r||[],"mouse",3)}else(!this.b.containsPosition(a)||(g(n.event)||this.h)&&(this.b.getEndPosition().equals(a)||this.b.getStartPosition().equals(a)))&&(this.a.pushUndoStop(),this.a.executeCommand(i.ID,new f.DragAndDropCommand(this.b,a,g(n.event)||this.h)),this.a.pushUndoStop())}this.a.updateOptions({mouseStyle:"text"}),this.t(),this.b=null,this.g=!1}showAt(n){this.c.set([{range:new L.Range(n.lineNumber,n.column,n.lineNumber,n.column),options:i.s}]),this.a.revealPosition(n,1)}t(){this.c.clear()}u(n){return n.type===6||n.type===7}v(n){return n.type===2||n.type===3||n.type===4}dispose(){this.t(),this.b=null,this.g=!1,this.h=!1,super.dispose()}}i.ID="editor.contrib.dragAndDrop",i.TRIGGER_KEY_VALUE=N.isMacintosh?6:5,i.s=v.ModelDecorationOptions.register({description:"dnd-target",className:"dnd-target"}),e.DragAndDropController=i,(0,E.registerEditorContribution)(i.ID,i,2)}),define(_[818],ee([1,0,4,47,39,31,23]),function(q,e,C,N,E,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FindDecorations=void 0;class S{constructor(f){this.a=f,this.b=[],this.c=[],this.d=[],this.e=null,this.f=null,this.g=this.a.getPosition()}dispose(){this.a.removeDecorations(this.j()),this.b=[],this.c=[],this.d=[],this.e=null,this.f=null}reset(){this.b=[],this.c=[],this.d=[],this.e=null,this.f=null}getCount(){return this.b.length}getFindScope(){return this.d[0]?this.a.getModel().getDecorationRange(this.d[0]):null}getFindScopes(){if(this.d.length){const f=this.d.map(g=>this.a.getModel().getDecorationRange(g)).filter(g=>!!g);if(f.length)return f}return null}getStartPosition(){return this.g}setStartPosition(f){this.g=f,this.setCurrentFindMatch(null)}h(f){const g=this.b.indexOf(f);return g>=0?g+1:1}getDecorationRangeAt(f){const g=f<this.b.length?this.b[f]:null;return g?this.a.getModel().getDecorationRange(g):null}getCurrentMatchesPosition(f){const g=this.a.getModel().getDecorationsInRange(f);for(const i of g){const t=i.options;if(t===S._FIND_MATCH_DECORATION||t===S._CURRENT_FIND_MATCH_DECORATION)return this.h(i.id)}return 0}setCurrentFindMatch(f){let g=null,i=0;if(f)for(let t=0,n=this.b.length;t<n;t++){const a=this.a.getModel().getDecorationRange(this.b[t]);if(f.equalsRange(a)){g=this.b[t],i=t+1;break}}return(this.f!==null||g!==null)&&this.a.changeDecorations(t=>{if(this.f!==null&&(t.changeDecorationOptions(this.f,S._FIND_MATCH_DECORATION),this.f=null),g!==null&&(this.f=g,t.changeDecorationOptions(this.f,S._CURRENT_FIND_MATCH_DECORATION)),this.e!==null&&(t.removeDecoration(this.e),this.e=null),g!==null){let n=this.a.getModel().getDecorationRange(g);if(n.startLineNumber!==n.endLineNumber&&n.endColumn===1){const a=n.endLineNumber-1,r=this.a.getModel().getLineMaxColumn(a);n=new C.Range(n.startLineNumber,n.startColumn,a,r)}this.e=t.addDecoration(n,S.l)}}),i}set(f,g){this.a.changeDecorations(i=>{let t=S._FIND_MATCH_DECORATION;const n=[];if(f.length>1e3){t=S._FIND_MATCH_NO_OVERVIEW_DECORATION;const r=this.a.getModel().getLineCount(),d=this.a.getLayoutInfo().height/r,s=Math.max(2,Math.ceil(3/d));let l=f[0].range.startLineNumber,o=f[0].range.endLineNumber;for(let u=1,h=f.length;u<h;u++){const w=f[u].range;o+s>=w.startLineNumber?w.endLineNumber>o&&(o=w.endLineNumber):(n.push({range:new C.Range(l,1,o,1),options:S.k}),l=w.startLineNumber,o=w.endLineNumber)}n.push({range:new C.Range(l,1,o,1),options:S.k})}const a=new Array(f.length);for(let r=0,c=f.length;r<c;r++)a[r]={range:f[r].range,options:t};this.b=i.deltaDecorations(this.b,a),this.c=i.deltaDecorations(this.c,n),this.e&&(i.removeDecoration(this.e),this.e=null),this.d.length&&(this.d.forEach(r=>i.removeDecoration(r)),this.d=[]),g?.length&&(this.d=g.map(r=>i.addDecoration(r,S.m)))})}matchBeforePosition(f){if(this.b.length===0)return null;for(let g=this.b.length-1;g>=0;g--){const i=this.b[g],t=this.a.getModel().getDecorationRange(i);if(!(!t||t.endLineNumber>f.lineNumber)){if(t.endLineNumber<f.lineNumber)return t;if(!(t.endColumn>f.column))return t}}return this.a.getModel().getDecorationRange(this.b[this.b.length-1])}matchAfterPosition(f){if(this.b.length===0)return null;for(let g=0,i=this.b.length;g<i;g++){const t=this.b[g],n=this.a.getModel().getDecorationRange(t);if(!(!n||n.startLineNumber<f.lineNumber)){if(n.startLineNumber>f.lineNumber)return n;if(!(n.startColumn<f.column))return n}}return this.a.getModel().getDecorationRange(this.b[0])}j(){let f=[];return f=f.concat(this.b),f=f.concat(this.c),this.d.length&&f.push(...this.d),this.e&&f.push(this.e),f}}S._CURRENT_FIND_MATCH_DECORATION=E.ModelDecorationOptions.register({description:"current-find-match",stickiness:1,zIndex:13,className:"currentFindMatch",showIfCollapsed:!0,overviewRuler:{color:(0,L.themeColorFromId)(I.overviewRulerFindMatchForeground),position:N.OverviewRulerLane.Center},minimap:{color:(0,L.themeColorFromId)(I.minimapFindMatch),position:N.MinimapPosition.Inline}}),S._FIND_MATCH_DECORATION=E.ModelDecorationOptions.register({description:"find-match",stickiness:1,zIndex:10,className:"findMatch",showIfCollapsed:!0,overviewRuler:{color:(0,L.themeColorFromId)(I.overviewRulerFindMatchForeground),position:N.OverviewRulerLane.Center},minimap:{color:(0,L.themeColorFromId)(I.minimapFindMatch),position:N.MinimapPosition.Inline}}),S._FIND_MATCH_NO_OVERVIEW_DECORATION=E.ModelDecorationOptions.register({description:"find-match-no-overview",stickiness:1,className:"findMatch",showIfCollapsed:!0}),S.k=E.ModelDecorationOptions.register({description:"find-match-only-overview",stickiness:1,overviewRuler:{color:(0,L.themeColorFromId)(I.overviewRulerFindMatchForeground),position:N.OverviewRulerLane.Center}}),S.l=E.ModelDecorationOptions.register({description:"find-range-highlight",stickiness:1,className:"rangeHighlight",isWholeLine:!0}),S.m=E.ModelDecorationOptions.register({description:"find-scope",className:"findScope",isWholeLine:!0}),e.FindDecorations=S}),define(_[180],ee([1,0,17,11,2,114,12,4,22,164,818,492,493,15]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n){"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 n.RawContextKey("findWidgetVisible",!1),e.CONTEXT_FIND_WIDGET_NOT_VISIBLE=e.CONTEXT_FIND_WIDGET_VISIBLE.toNegated(),e.CONTEXT_FIND_INPUT_FOCUSED=new n.RawContextKey("findInputFocussed",!1),e.CONTEXT_REPLACE_INPUT_FOCUSED=new n.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",GoToMatchFindAction:"editor.action.goToMatchFindAction",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 a=240;class r{constructor(d,s){this.c=new E.DisposableStore,this.a=d,this.b=s,this.j=!1,this.g=new N.TimeoutTimer,this.d=new g.FindDecorations(d),this.c.add(this.d),this.h=new N.RunOnceScheduler(()=>this.n(!1),100),this.c.add(this.h),this.c.add(this.a.onDidChangeCursorPosition(l=>{(l.reason===3||l.reason===5||l.reason===6)&&this.d.setStartPosition(this.a.getPosition())})),this.f=!1,this.c.add(this.a.onDidChangeModelContent(l=>{this.f||(l.isFlush&&this.d.reset(),this.d.setStartPosition(this.a.getPosition()),this.h.schedule())})),this.c.add(this.b.onFindReplaceStateChange(l=>this.k(l))),this.n(!1,this.b.searchScope)}dispose(){this.j=!0,(0,E.dispose)(this.g),this.c.dispose()}k(d){this.j||!this.a.hasModel()||(d.searchString||d.isReplaceRevealed||d.isRegex||d.wholeWord||d.matchCase||d.searchScope)&&(this.a.getModel().isTooLargeForSyncing()?(this.g.cancel(),this.g.setIfNotSet(()=>{d.searchScope?this.n(d.moveCursor,this.b.searchScope):this.n(d.moveCursor)},a)):d.searchScope?this.n(d.moveCursor,this.b.searchScope):this.n(d.moveCursor))}static l(d,s){return s||d.getFullModelRange()}n(d,s){let l=null;typeof s<"u"?s!==null&&(Array.isArray(s)?l=s:l=[s]):l=this.d.getFindScopes(),l!==null&&(l=l.map(w=>{if(w.startLineNumber!==w.endLineNumber){let m=w.endLineNumber;return w.endColumn===1&&(m=m-1),new S.Range(w.startLineNumber,1,m,this.a.getModel().getLineMaxColumn(m))}return w}));const o=this.y(l,!1,e.MATCHES_LIMIT);this.d.set(o,l);const u=this.a.getSelection();let h=this.d.getCurrentMatchesPosition(u);if(h===0&&o.length>0){const w=(0,C.findFirstInSorted)(o.map(m=>m.range),m=>S.Range.compareRangesUsingStarts(m,u)>=0);h=w>0?w-1+1:h}this.b.changeMatchInfo(h,this.d.getCount(),void 0),d&&this.a.getOption(38).cursorMoveOnType&&this.u(this.d.getStartPosition())}o(){return this.b.matchesCount>0}p(){if(!this.o()){const d=this.d.getFindScope();return d&&this.a.revealRangeInCenterIfOutsideViewport(d,0),!0}return!1}q(d){const s=this.d.setCurrentFindMatch(d);this.b.changeMatchInfo(s,this.d.getCount(),d),this.a.setSelection(d),this.a.revealRangeInCenterIfOutsideViewport(d,0)}r(d){const s=this.b.isRegex&&(this.b.searchString.indexOf("^")>=0||this.b.searchString.indexOf("$")>=0);let{lineNumber:l,column:o}=d;const u=this.a.getModel();return s||o===1?(l===1?l=u.getLineCount():l--,o=u.getLineMaxColumn(l)):o--,new L.Position(l,o)}s(d,s=!1){if(!this.b.canNavigateBack()){const b=this.d.matchAfterPosition(d);b&&this.q(b);return}if(this.d.getCount()<e.MATCHES_LIMIT){let b=this.d.matchBeforePosition(d);b&&b.isEmpty()&&b.getStartPosition().equals(d)&&(d=this.r(d),b=this.d.matchBeforePosition(d)),b&&this.q(b);return}if(this.p())return;const l=this.d.getFindScope(),o=r.l(this.a.getModel(),l);o.getEndPosition().isBefore(d)&&(d=o.getEndPosition()),d.isBefore(o.getStartPosition())&&(d=o.getEndPosition());const{lineNumber:u,column:h}=d,w=this.a.getModel();let m=new L.Position(u,h),p=w.findPreviousMatch(this.b.searchString,m,this.b.isRegex,this.b.matchCase,this.b.wholeWord?this.a.getOption(124):null,!1);if(p&&p.range.isEmpty()&&p.range.getStartPosition().equals(m)&&(m=this.r(m),p=w.findPreviousMatch(this.b.searchString,m,this.b.isRegex,this.b.matchCase,this.b.wholeWord?this.a.getOption(124):null,!1)),!!p){if(!s&&!o.containsRange(p.range))return this.s(p.range.getStartPosition(),!0);this.q(p.range)}}moveToPrevMatch(){this.s(this.a.getSelection().getStartPosition())}t(d){const s=this.b.isRegex&&(this.b.searchString.indexOf("^")>=0||this.b.searchString.indexOf("$")>=0);let{lineNumber:l,column:o}=d;const u=this.a.getModel();return s||o===u.getLineMaxColumn(l)?(l===u.getLineCount()?l=1:l++,o=1):o++,new L.Position(l,o)}u(d){if(!this.b.canNavigateForward()){const l=this.d.matchBeforePosition(d);l&&this.q(l);return}if(this.d.getCount()<e.MATCHES_LIMIT){let l=this.d.matchAfterPosition(d);l&&l.isEmpty()&&l.getStartPosition().equals(d)&&(d=this.t(d),l=this.d.matchAfterPosition(d)),l&&this.q(l);return}const s=this.v(d,!1,!0);s&&this.q(s.range)}v(d,s,l,o=!1){if(this.p())return null;const u=this.d.getFindScope(),h=r.l(this.a.getModel(),u);h.getEndPosition().isBefore(d)&&(d=h.getStartPosition()),d.isBefore(h.getStartPosition())&&(d=h.getStartPosition());const{lineNumber:w,column:m}=d,p=this.a.getModel();let b=new L.Position(w,m),y=p.findNextMatch(this.b.searchString,b,this.b.isRegex,this.b.matchCase,this.b.wholeWord?this.a.getOption(124):null,s);return l&&y&&y.range.isEmpty()&&y.range.getStartPosition().equals(b)&&(b=this.t(b),y=p.findNextMatch(this.b.searchString,b,this.b.isRegex,this.b.matchCase,this.b.wholeWord?this.a.getOption(124):null,s)),y?!o&&!h.containsRange(y.range)?this.v(y.range.getEndPosition(),s,l,!0):y:null}moveToNextMatch(){this.u(this.a.getSelection().getEndPosition())}w(d){const s=this.d.getDecorationRangeAt(d);s&&this.q(s)}moveToMatch(d){this.w(d)}x(){return this.b.isRegex?(0,t.parseReplaceString)(this.b.replaceString):t.ReplacePattern.fromStaticValue(this.b.replaceString)}replace(){if(!this.o())return;const d=this.x(),s=this.a.getSelection(),l=this.v(s.getStartPosition(),!0,!1);if(l)if(s.equalsRange(l.range)){const o=d.buildReplaceString(l.matches,this.b.preserveCase),u=new I.ReplaceCommand(s,o);this.B("replace",u),this.d.setStartPosition(new L.Position(s.startLineNumber,s.startColumn+o.length)),this.n(!0)}else this.d.setStartPosition(this.a.getPosition()),this.q(l.range)}y(d,s,l){const o=(d||[null]).map(u=>r.l(this.a.getModel(),u));return this.a.getModel().findMatches(this.b.searchString,o,this.b.isRegex,this.b.matchCase,this.b.wholeWord?this.a.getOption(124):null,s,l)}replaceAll(){if(!this.o())return;const d=this.d.getFindScopes();d===null&&this.b.matchesCount>=e.MATCHES_LIMIT?this.z():this.A(d),this.n(!1)}z(){const s=new f.SearchParams(this.b.searchString,this.b.isRegex,this.b.matchCase,this.b.wholeWord?this.a.getOption(124):null).parseSearchRequest();if(!s)return;let l=s.regex;if(!l.multiline){let y="mu";l.ignoreCase&&(y+="i"),l.global&&(y+="g"),l=new RegExp(l.source,y)}const o=this.a.getModel(),u=o.getValue(1),h=o.getFullModelRange(),w=this.x();let m;const p=this.b.preserveCase;w.hasReplacementPatterns||p?m=u.replace(l,function(){return w.buildReplaceString(arguments,p)}):m=u.replace(l,w.buildReplaceString(null,p));const b=new I.ReplaceCommandThatPreservesSelection(h,m,this.a.getSelection());this.B("replaceAll",b)}A(d){const s=this.x(),l=this.y(d,s.hasReplacementPatterns||this.b.preserveCase,1073741824),o=[];for(let h=0,w=l.length;h<w;h++)o[h]=s.buildReplaceString(l[h].matches,this.b.preserveCase);const u=new i.ReplaceAllCommand(this.a.getSelection(),l.map(h=>h.range),o);this.B("replaceAll",u)}selectAllMatches(){if(!this.o())return;const d=this.d.getFindScopes();let l=this.y(d,!1,1073741824).map(u=>new v.Selection(u.range.startLineNumber,u.range.startColumn,u.range.endLineNumber,u.range.endColumn));const o=this.a.getSelection();for(let u=0,h=l.length;u<h;u++)if(l[u].equalsRange(o)){l=[o].concat(l.slice(0,u)).concat(l.slice(u+1));break}this.a.setSelections(l)}B(d,s){try{this.f=!0,this.a.pushUndoStop(),this.a.executeCommand(d,s),this.a.pushUndoStop()}finally{this.f=!1}}}e.FindModelBoundToEditorModel=r}),define(_[819],ee([1,0,7,280,67,11,180,31,399]),function(q,e,C,N,E,I,L,S){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FindOptionsWidget=void 0;class v extends E.Widget{constructor(g,i,t){super(),this.v=this.q(new I.RunOnceScheduler(()=>this.H(),2e3)),this.F=!1,this.b=g,this.g=i,this.h=t,this.i=document.createElement("div"),this.i.className="findOptionsWidget",this.i.style.display="none",this.i.style.top="10px",this.i.style.zIndex="12",this.i.setAttribute("role","presentation"),this.i.setAttribute("aria-hidden","true");const n={inputActiveOptionBorder:(0,S.asCssVariable)(S.inputActiveOptionBorder),inputActiveOptionForeground:(0,S.asCssVariable)(S.inputActiveOptionForeground),inputActiveOptionBackground:(0,S.asCssVariable)(S.inputActiveOptionBackground)};this.s=this.q(new N.CaseSensitiveToggle(Object.assign({appendTitle:this.t(L.FIND_IDS.ToggleCaseSensitiveCommand),isChecked:this.g.matchCase},n))),this.i.appendChild(this.s.domNode),this.q(this.s.onChange(()=>{this.g.change({matchCase:this.s.checked},!1)})),this.r=this.q(new N.WholeWordsToggle(Object.assign({appendTitle:this.t(L.FIND_IDS.ToggleWholeWordCommand),isChecked:this.g.wholeWord},n))),this.i.appendChild(this.r.domNode),this.q(this.r.onChange(()=>{this.g.change({wholeWord:this.r.checked},!1)})),this.l=this.q(new N.RegexToggle(Object.assign({appendTitle:this.t(L.FIND_IDS.ToggleRegexCommand),isChecked:this.g.isRegex},n))),this.i.appendChild(this.l.domNode),this.q(this.l.onChange(()=>{this.g.change({isRegex:this.l.checked},!1)})),this.b.addOverlayWidget(this),this.q(this.g.onFindReplaceStateChange(a=>{let r=!1;a.isRegex&&(this.l.checked=this.g.isRegex,r=!0),a.wholeWord&&(this.r.checked=this.g.wholeWord,r=!0),a.matchCase&&(this.s.checked=this.g.matchCase,r=!0),!this.g.isRevealed&&r&&this.w()})),this.q(C.addDisposableListener(this.i,C.EventType.MOUSE_LEAVE,a=>this.C())),this.q(C.addDisposableListener(this.i,"mouseover",a=>this.D()))}t(g){const i=this.h.lookupKeybinding(g);return i?` (${i.getLabel()})`:""}dispose(){this.b.removeOverlayWidget(this),super.dispose()}getId(){return v.a}getDomNode(){return this.i}getPosition(){return{preference:0}}highlightFindOptions(){this.w()}w(){this.G(),this.v.schedule()}C(){this.v.schedule()}D(){this.v.cancel()}G(){this.F||(this.F=!0,this.i.style.display="block")}H(){!this.F||(this.F=!1,this.i.style.display="none")}}v.a="editor.contrib.findOptionsWidget",e.FindOptionsWidget=v}),define(_[820],ee([1,0,6,2,4,180]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FindReplaceState=void 0;function L(v,f){return v===1?!0:v===2?!1:f}class S extends N.Disposable{get searchString(){return this.a}get replaceString(){return this.b}get isRevealed(){return this.c}get isReplaceRevealed(){return this.g}get isRegex(){return L(this.i,this.h)}get wholeWord(){return L(this.k,this.j)}get matchCase(){return L(this.m,this.l)}get preserveCase(){return L(this.p,this.n)}get actualIsRegex(){return this.h}get actualWholeWord(){return this.j}get actualMatchCase(){return this.l}get actualPreserveCase(){return this.n}get searchScope(){return this.r}get matchesPosition(){return this.s}get matchesCount(){return this.t}get currentMatch(){return this.u}constructor(){super(),this.z=this.q(new C.Emitter),this.onFindReplaceStateChange=this.z.event,this.a="",this.b="",this.c=!1,this.g=!1,this.h=!1,this.i=0,this.j=!1,this.k=0,this.l=!1,this.m=0,this.n=!1,this.p=0,this.r=null,this.s=0,this.t=0,this.u=null,this.v=!0,this.w=!1,this.y=null}changeMatchInfo(f,g,i){const t={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 n=!1;g===0&&(f=0),f>g&&(f=g),this.s!==f&&(this.s=f,t.matchesPosition=!0,n=!0),this.t!==g&&(this.t=g,t.matchesCount=!0,n=!0),typeof i<"u"&&(E.Range.equalsRange(this.u,i)||(this.u=i,t.currentMatch=!0,n=!0)),n&&this.z.fire(t)}change(f,g,i=!0){var t;const n={moveCursor:g,updateHistory:i,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 a=!1;const r=this.isRegex,c=this.wholeWord,d=this.matchCase,s=this.preserveCase;typeof f.searchString<"u"&&this.a!==f.searchString&&(this.a=f.searchString,n.searchString=!0,a=!0),typeof f.replaceString<"u"&&this.b!==f.replaceString&&(this.b=f.replaceString,n.replaceString=!0,a=!0),typeof f.isRevealed<"u"&&this.c!==f.isRevealed&&(this.c=f.isRevealed,n.isRevealed=!0,a=!0),typeof f.isReplaceRevealed<"u"&&this.g!==f.isReplaceRevealed&&(this.g=f.isReplaceRevealed,n.isReplaceRevealed=!0,a=!0),typeof f.isRegex<"u"&&(this.h=f.isRegex),typeof f.wholeWord<"u"&&(this.j=f.wholeWord),typeof f.matchCase<"u"&&(this.l=f.matchCase),typeof f.preserveCase<"u"&&(this.n=f.preserveCase),typeof f.searchScope<"u"&&(!((t=f.searchScope)===null||t===void 0)&&t.every(l=>{var o;return(o=this.r)===null||o===void 0?void 0:o.some(u=>!E.Range.equalsRange(u,l))})||(this.r=f.searchScope,n.searchScope=!0,a=!0)),typeof f.loop<"u"&&this.v!==f.loop&&(this.v=f.loop,n.loop=!0,a=!0),typeof f.isSearching<"u"&&this.w!==f.isSearching&&(this.w=f.isSearching,n.isSearching=!0,a=!0),typeof f.filters<"u"&&(this.y?this.y.update(f.filters):this.y=f.filters,n.filters=!0,a=!0),this.i=typeof f.isRegexOverride<"u"?f.isRegexOverride:0,this.k=typeof f.wholeWordOverride<"u"?f.wholeWordOverride:0,this.m=typeof f.matchCaseOverride<"u"?f.matchCaseOverride:0,this.p=typeof f.preserveCaseOverride<"u"?f.preserveCaseOverride:0,r!==this.isRegex&&(a=!0,n.isRegex=!0),c!==this.wholeWord&&(a=!0,n.wholeWord=!0),d!==this.matchCase&&(a=!0,n.matchCase=!0),s!==this.preserveCase&&(a=!0,n.preserveCase=!0),a&&this.z.fire(n)}canNavigateBack(){return this.B()||this.matchesPosition!==1}canNavigateForward(){return this.B()||this.matchesPosition<this.matchesCount}B(){return this.v||this.matchesCount>=I.MATCHES_LIMIT}}e.FindReplaceState=S}),define(_[821],ee([1,0,7,52,139,138,67,11,29,13,2,16,9,4,180,599,311,682,31,81,23,32,91,18,98,400]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s,l,o,u,h,w,m){"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 p=(0,l.registerIcon)("find-selection",v.Codicon.selection,r.localize(0,null)),b=(0,l.registerIcon)("find-collapsed",v.Codicon.chevronRight,r.localize(1,null)),y=(0,l.registerIcon)("find-expanded",v.Codicon.chevronDown,r.localize(2,null));e.findReplaceIcon=(0,l.registerIcon)("find-replace",v.Codicon.replace,r.localize(3,null)),e.findReplaceAllIcon=(0,l.registerIcon)("find-replace-all",v.Codicon.replaceAll,r.localize(4,null)),e.findPreviousMatchIcon=(0,l.registerIcon)("find-previous-match",v.Codicon.arrowUp,r.localize(5,null)),e.findNextMatchIcon=(0,l.registerIcon)("find-next-match",v.Codicon.arrowDown,r.localize(6,null));const k=r.localize(7,null),D=r.localize(8,null),M=r.localize(9,null),z=r.localize(10,null),R=r.localize(11,null),P=r.localize(12,null),A=r.localize(13,null),T=r.localize(14,null),O=r.localize(15,null),B=r.localize(16,null),W=r.localize(17,null),j=r.localize(18,null,a.MATCHES_LIMIT);e.NLS_MATCHES_LOCATION=r.localize(19,null),e.NLS_NO_RESULTS=r.localize(20,null);const F=419,Q=275-54;let se=69;const he=33,ie="ctrlEnterReplaceAll.windows.donotask",ue=i.isMacintosh?256:2048;class J{constructor(de){this.afterLineNumber=de,this.heightInPx=he,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}}e.FindWidgetViewZone=J;function x(ae,de,K){const Y=!!de.match(/\n/);if(K&&Y&&K.selectionStart>0){ae.stopPropagation();return}}function G(ae,de,K){const Y=!!de.match(/\n/);if(K&&Y&&K.selectionEnd<K.value.length){ae.stopPropagation();return}}class te extends L.Widget{constructor(de,K,Y,ne,V,H,$,oe,re){super(),this.w=null,this.lb=[],this.b=de,this.h=K,this.g=Y,this.i=ne,this.l=V,this.r=H,this.s=oe,this.t=re,this.R=!!oe.getBoolean(ie,0),this.O=!1,this.P=!1,this.Q=!1,this.cb=new S.Delayer(500),this.q((0,g.toDisposable)(()=>this.cb.cancel())),this.q(this.g.onFindReplaceStateChange(X=>this.db(X))),this.zb(),this.jb(),this.rb(),this.C.inputBox.layout(),this.q(this.b.onDidChangeConfiguration(X=>{if(X.hasChanged(86)&&(this.b.getOption(86)&&this.g.change({isReplaceRevealed:!1},!1),this.jb()),X.hasChanged(138)&&this.rb(),X.hasChanged(2)&&this.Ab(),X.hasChanged(38)){const le=this.b.getOption(38).loop;this.g.change({loop:le},!1);const me=this.b.getOption(38).addExtraSpaceOnTop;me&&!this.Y&&(this.Y=new J(0),this.pb()),!me&&this.Y&&this.qb()}})),this.Ab(),this.q(this.b.onDidChangeCursorSelection(()=>{this.O&&this.ib()})),this.q(this.b.onDidFocusEditorWidget(()=>ye(this,void 0,void 0,function*(){if(this.O){const X=yield this.h.getGlobalBufferTerm();X&&X!==this.g.searchString&&(this.g.change({searchString:X},!1),this.C.select())}}))),this.U=a.CONTEXT_FIND_INPUT_FOCUSED.bindTo(H),this.S=this.q(C.trackFocus(this.C.inputBox.inputElement)),this.q(this.S.onDidFocus(()=>{this.U.set(!0),this.ub()})),this.q(this.S.onDidBlur(()=>{this.U.set(!1)})),this.X=a.CONTEXT_REPLACE_INPUT_FOCUSED.bindTo(H),this.W=this.q(C.trackFocus(this.D.inputBox.inputElement)),this.q(this.W.onDidFocus(()=>{this.X.set(!0),this.ub()})),this.q(this.W.onDidBlur(()=>{this.X.set(!1)})),this.b.addOverlayWidget(this),this.b.getOption(38).addExtraSpaceOnTop&&(this.Y=new J(0)),this.q(this.b.onDidChangeModel(()=>{!this.O||(this.Z=void 0)})),this.q(this.b.onDidScrollChange(X=>{if(X.scrollTopChanged){this.ob();return}setTimeout(()=>{this.ob()},0)}))}getId(){return te.a}getDomNode(){return this.v}getPosition(){return this.O?{preference:0}:null}db(de){if(de.searchString){try{this.Q=!0,this.C.setValue(this.g.searchString)}finally{this.Q=!1}this.jb()}if(de.replaceString&&(this.D.inputBox.value=this.g.replaceString),de.isRevealed&&(this.g.isRevealed?this.mb():this.nb(!0)),de.isReplaceRevealed&&(this.g.isReplaceRevealed?!this.b.getOption(86)&&!this.P&&(this.P=!0,this.D.width=C.getTotalWidth(this.C.domNode),this.jb(),this.D.inputBox.layout()):this.P&&(this.P=!1,this.jb())),(de.isRevealed||de.isReplaceRevealed)&&(this.g.isRevealed||this.g.isReplaceRevealed)&&this.tb()&&this.pb(),de.isRegex&&this.C.setRegex(this.g.isRegex),de.wholeWord&&this.C.setWholeWords(this.g.wholeWord),de.matchCase&&this.C.setCaseSensitive(this.g.matchCase),de.preserveCase&&this.D.setPreserveCase(this.g.preserveCase),de.searchScope&&(this.g.searchScope?this.J.checked=!0:this.J.checked=!1,this.ib()),de.searchString||de.matchesCount||de.matchesPosition){const K=this.g.searchString.length>0&&this.g.matchesCount===0;this.v.classList.toggle("no-results",K),this.gb(),this.jb()}(de.searchString||de.currentMatch)&&this.ob(),de.updateHistory&&this.eb(),de.loop&&this.jb()}eb(){this.cb.trigger(this.fb.bind(this)).then(void 0,f.onUnexpectedError)}fb(){this.g.searchString&&this.C.inputBox.addToHistory(),this.g.replaceString&&this.D.inputBox.addToHistory()}gb(){this.G.style.minWidth=se+"px",this.g.matchesCount>=a.MATCHES_LIMIT?this.G.title=j:this.G.title="",this.G.firstChild&&this.G.removeChild(this.G.firstChild);let de;if(this.g.matchesCount>0){let K=String(this.g.matchesCount);this.g.matchesCount>=a.MATCHES_LIMIT&&(K+="+");let Y=String(this.g.matchesPosition);Y==="0"&&(Y="?"),de=t.format(e.NLS_MATCHES_LOCATION,Y,K)}else de=e.NLS_NO_RESULTS;this.G.appendChild(document.createTextNode(de)),(0,N.alert)(this.hb(de,this.g.currentMatch,this.g.searchString)),se=Math.max(se,this.G.clientWidth)}hb(de,K,Y){if(de===e.NLS_NO_RESULTS)return Y===""?r.localize(21,null,de):r.localize(22,null,de,Y);if(K){const ne=r.localize(23,null,de,Y,K.startLineNumber+":"+K.startColumn),V=this.b.getModel();return V&&K.startLineNumber<=V.getLineCount()&&K.startLineNumber>=1?`${V.getLineContent(K.startLineNumber)}, ${ne}`:ne}return r.localize(24,null,de,Y)}ib(){const de=this.b.getSelection(),K=de?de.startLineNumber!==de.endLineNumber||de.startColumn!==de.endColumn:!1,Y=this.J.checked;this.O&&(Y||K)?this.J.enable():this.J.disable()}jb(){this.C.setEnabled(this.O),this.D.setEnabled(this.O&&this.P),this.ib(),this.L.setEnabled(this.O);const de=this.g.searchString.length>0,K=!!this.g.matchesCount;this.H.setEnabled(this.O&&de&&K&&this.g.canNavigateBack()),this.I.setEnabled(this.O&&de&&K&&this.g.canNavigateForward()),this.M.setEnabled(this.O&&this.P&&de),this.N.setEnabled(this.O&&this.P&&de),this.v.classList.toggle("replaceToggled",this.P),this.F.setExpanded(this.P);const Y=!this.b.getOption(86);this.F.setEnabled(this.O&&Y)}mb(){if(this.lb.forEach(de=>{clearTimeout(de)}),this.lb=[],!this.O){this.O=!0;const de=this.b.getSelection();switch(this.b.getOption(38).autoFindInSelection){case"always":this.J.checked=!0;break;case"never":this.J.checked=!1;break;case"multiline":{const Y=!!de&&de.startLineNumber!==de.endLineNumber;this.J.checked=Y;break}default:break}this.rb(),this.jb(),this.lb.push(setTimeout(()=>{this.v.classList.add("visible"),this.v.setAttribute("aria-hidden","false")},0)),this.lb.push(setTimeout(()=>{this.C.validate()},200)),this.b.layoutOverlayWidget(this);let K=!0;if(this.b.getOption(38).seedSearchStringFromSelection&&de){const Y=this.b.getDomNode();if(Y){const ne=C.getDomNodePagePosition(Y),V=this.b.getScrolledVisiblePosition(de.getStartPosition()),H=ne.left+(V?V.left:0),$=V?V.top:0;if(this.Y&&$<this.Y.heightInPx){de.endLineNumber>de.startLineNumber&&(K=!1);const oe=C.getTopLeftOffset(this.v).left;H>oe&&(K=!1);const re=this.b.getScrolledVisiblePosition(de.getEndPosition());ne.left+(re?re.left:0)>oe&&(K=!1)}}}this.pb(K)}}nb(de){this.lb.forEach(K=>{clearTimeout(K)}),this.lb=[],this.O&&(this.O=!1,this.jb(),this.v.classList.remove("visible"),this.v.setAttribute("aria-hidden","true"),this.C.clearMessage(),de&&this.b.focus(),this.b.layoutOverlayWidget(this),this.qb())}ob(de){if(!this.b.getOption(38).addExtraSpaceOnTop){this.qb();return}if(!this.O)return;const Y=this.Y;this.Z!==void 0||!Y||this.b.changeViewZones(ne=>{Y.heightInPx=this.sb(),this.Z=ne.addZone(Y),this.b.setScrollTop(de||this.b.getScrollTop()+Y.heightInPx)})}pb(de=!0){if(!this.O||!this.b.getOption(38).addExtraSpaceOnTop)return;this.Y===void 0&&(this.Y=new J(0));const Y=this.Y;this.b.changeViewZones(ne=>{if(this.Z!==void 0){const V=this.sb();if(V===Y.heightInPx)return;const H=V-Y.heightInPx;Y.heightInPx=V,ne.layoutZone(this.Z),de&&this.b.setScrollTop(this.b.getScrollTop()+H);return}else{let V=this.sb();if(V-=this.b.getOption(80).top,V<=0)return;Y.heightInPx=V,this.Z=ne.addZone(Y),de&&this.b.setScrollTop(this.b.getScrollTop()+V)}})}qb(){this.b.changeViewZones(de=>{this.Z!==void 0&&(de.removeZone(this.Z),this.Z=void 0,this.Y&&(this.b.setScrollTop(this.b.getScrollTop()-this.Y.heightInPx),this.Y=void 0))})}rb(){if(!this.O||!C.isInDOM(this.v))return;const de=this.b.getLayoutInfo();if(de.contentWidth<=0){this.v.classList.add("hiddenEditor");return}else this.v.classList.contains("hiddenEditor")&&this.v.classList.remove("hiddenEditor");const Y=de.width,ne=de.minimap.minimapWidth;let V=!1,H=!1,$=!1;if(this.bb&&C.getTotalWidth(this.v)>F){this.v.style.maxWidth=`${Y-28-ne-15}px`,this.D.width=C.getTotalWidth(this.C.domNode);return}if(F+28+ne>=Y&&(H=!0),F+28+ne-se>=Y&&($=!0),F+28+ne-se>=Y+50&&(V=!0),this.v.classList.toggle("collapsed-find-widget",V),this.v.classList.toggle("narrow-find-widget",$),this.v.classList.toggle("reduced-find-widget",H),!$&&!V&&(this.v.style.maxWidth=`${Y-28-ne-15}px`),this.bb){this.C.inputBox.layout();const oe=this.C.inputBox.element.clientWidth;oe>0&&(this.D.width=oe)}else this.P&&(this.D.width=C.getTotalWidth(this.C.domNode))}sb(){let de=0;return de+=4,de+=this.C.inputBox.height+2,this.P&&(de+=4,de+=this.D.inputBox.height+2),de+=4,de}tb(){const de=this.sb();return this.w!==null&&this.w===de?!1:(this.w=de,this.v.style.height=`${de}px`,!0)}focusFindInput(){this.C.select(),this.C.focus()}focusReplaceInput(){this.D.select(),this.D.focus()}highlightFindOptions(){this.C.highlightFindOptions()}ub(){if(!!this.b.hasModel()&&this.J.checked){const de=this.b.getSelections();de.map(K=>{K.endColumn===1&&K.endLineNumber>K.startLineNumber&&(K=K.setEndPosition(K.endLineNumber-1,this.b.getModel().getLineMaxColumn(K.endLineNumber-1)));const Y=this.g.currentMatch;return K.startLineNumber!==K.endLineNumber&&!n.Range.equalsRange(K,Y)?K:null}).filter(K=>!!K),de.length&&this.g.change({searchScope:de},!0)}}vb(de){de.middleButton&&de.stopPropagation()}wb(de){if(de.equals(ue|3))if(this.l.dispatchEvent(de,de.target)){de.preventDefault();return}else{this.C.inputBox.insertAtCursor(`
|
||
`),de.preventDefault();return}if(de.equals(2)){this.P?this.D.focus():this.C.focusOnCaseSensitive(),de.preventDefault();return}if(de.equals(2066)){this.b.focus(),de.preventDefault();return}if(de.equals(16))return x(de,this.C.getValue(),this.C.domNode.querySelector("textarea"));if(de.equals(18))return G(de,this.C.getValue(),this.C.domNode.querySelector("textarea"))}xb(de){if(de.equals(ue|3))if(this.l.dispatchEvent(de,de.target)){de.preventDefault();return}else{i.isWindows&&i.isNative&&!this.R&&(this.t.info(r.localize(25,null)),this.R=!0,this.s.store(ie,!0,0,0)),this.D.inputBox.insertAtCursor(`
|
||
`),de.preventDefault();return}if(de.equals(2)){this.C.focusOnCaseSensitive(),de.preventDefault();return}if(de.equals(1026)){this.C.focus(),de.preventDefault();return}if(de.equals(2066)){this.b.focus(),de.preventDefault();return}if(de.equals(16))return x(de,this.D.inputBox.value,this.D.inputBox.element.querySelector("textarea"));if(de.equals(18))return G(de,this.D.inputBox.value,this.D.inputBox.element.querySelector("textarea"))}getVerticalSashLeft(de){return 0}yb(de){const K=this.l.lookupKeybinding(de);return K?` (${K.getLabel()})`:""}zb(){this.C=this.q(new c.ContextScopedFindInput(null,this.i,{width:Q,label:k,placeholder:D,appendCaseSensitiveLabel:this.yb(a.FIND_IDS.ToggleCaseSensitiveCommand),appendWholeWordsLabel:this.yb(a.FIND_IDS.ToggleWholeWordCommand),appendRegexLabel:this.yb(a.FIND_IDS.ToggleRegexCommand),validation:oe=>{if(oe.length===0||!this.C.getRegex())return null;try{return new RegExp(oe,"gu"),null}catch(re){return{content:re.message}}},flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118,showCommonFindToggles:!0,showHistoryHint:()=>(0,d.showHistoryKeybindingHint)(this.l),inputBoxStyles:m.defaultInputBoxStyles,toggleStyles:m.defaultToggleStyles},this.r)),this.C.setRegex(!!this.g.isRegex),this.C.setCaseSensitive(!!this.g.matchCase),this.C.setWholeWords(!!this.g.wholeWord),this.q(this.C.onKeyDown(oe=>this.wb(oe))),this.q(this.C.inputBox.onDidChange(()=>{this.Q||this.g.change({searchString:this.C.getValue()},!0)})),this.q(this.C.onDidOptionChange(()=>{this.g.change({isRegex:this.C.getRegex(),wholeWord:this.C.getWholeWords(),matchCase:this.C.getCaseSensitive()},!0)})),this.q(this.C.onCaseSensitiveKeyDown(oe=>{oe.equals(1026)&&this.P&&(this.D.focus(),oe.preventDefault())})),this.q(this.C.onRegexKeyDown(oe=>{oe.equals(2)&&this.P&&(this.D.focusOnPreserve(),oe.preventDefault())})),this.q(this.C.inputBox.onDidHeightChange(oe=>{this.tb()&&this.pb()})),i.isLinux&&this.q(this.C.onMouseDown(oe=>this.vb(oe))),this.G=document.createElement("div"),this.G.className="matchesCount",this.gb(),this.H=this.q(new Z({label:M+this.yb(a.FIND_IDS.PreviousMatchFindAction),icon:e.findPreviousMatchIcon,onTrigger:()=>{(0,w.assertIsDefined)(this.b.getAction(a.FIND_IDS.PreviousMatchFindAction)).run().then(void 0,f.onUnexpectedError)}})),this.I=this.q(new Z({label:z+this.yb(a.FIND_IDS.NextMatchFindAction),icon:e.findNextMatchIcon,onTrigger:()=>{(0,w.assertIsDefined)(this.b.getAction(a.FIND_IDS.NextMatchFindAction)).run().then(void 0,f.onUnexpectedError)}}));const Y=document.createElement("div");Y.className="find-part",Y.appendChild(this.C.domNode);const ne=document.createElement("div");ne.className="find-actions",Y.appendChild(ne),ne.appendChild(this.G),ne.appendChild(this.H.domNode),ne.appendChild(this.I.domNode),this.J=this.q(new E.Toggle({icon:p,title:R+this.yb(a.FIND_IDS.ToggleSearchScopeCommand),isChecked:!1,inputActiveOptionBackground:(0,s.asCssVariable)(s.inputActiveOptionBackground),inputActiveOptionBorder:(0,s.asCssVariable)(s.inputActiveOptionBorder),inputActiveOptionForeground:(0,s.asCssVariable)(s.inputActiveOptionForeground)})),this.q(this.J.onChange(()=>{if(this.J.checked){if(this.b.hasModel()){const oe=this.b.getSelections();oe.map(re=>(re.endColumn===1&&re.endLineNumber>re.startLineNumber&&(re=re.setEndPosition(re.endLineNumber-1,this.b.getModel().getLineMaxColumn(re.endLineNumber-1))),re.isEmpty()?null:re)).filter(re=>!!re),oe.length&&this.g.change({searchScope:oe},!0)}}else this.g.change({searchScope:null},!0)})),ne.appendChild(this.J.domNode),this.L=this.q(new Z({label:P+this.yb(a.FIND_IDS.CloseFindWidgetCommand),icon:l.widgetClose,onTrigger:()=>{this.g.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:oe=>{oe.equals(2)&&this.P&&(this.M.isEnabled()?this.M.focus():this.b.focus(),oe.preventDefault())}})),ne.appendChild(this.L.domNode),this.D=this.q(new c.ContextScopedReplaceInput(null,void 0,{label:A,placeholder:T,appendPreserveCaseLabel:this.yb(a.FIND_IDS.TogglePreserveCaseCommand),history:[],flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118,showHistoryHint:()=>(0,d.showHistoryKeybindingHint)(this.l),inputBoxStyles:m.defaultInputBoxStyles,toggleStyles:m.defaultToggleStyles},this.r,!0)),this.D.setPreserveCase(!!this.g.preserveCase),this.q(this.D.onKeyDown(oe=>this.xb(oe))),this.q(this.D.inputBox.onDidChange(()=>{this.g.change({replaceString:this.D.inputBox.value},!1)})),this.q(this.D.inputBox.onDidHeightChange(oe=>{this.P&&this.tb()&&this.pb()})),this.q(this.D.onDidOptionChange(()=>{this.g.change({preserveCase:this.D.getPreserveCase()},!0)})),this.q(this.D.onPreserveCaseKeyDown(oe=>{oe.equals(2)&&(this.H.isEnabled()?this.H.focus():this.I.isEnabled()?this.I.focus():this.J.enabled?this.J.focus():this.L.isEnabled()&&this.L.focus(),oe.preventDefault())})),this.M=this.q(new Z({label:O+this.yb(a.FIND_IDS.ReplaceOneAction),icon:e.findReplaceIcon,onTrigger:()=>{this.h.replace()},onKeyDown:oe=>{oe.equals(1026)&&(this.L.focus(),oe.preventDefault())}})),this.N=this.q(new Z({label:B+this.yb(a.FIND_IDS.ReplaceAllAction),icon:e.findReplaceAllIcon,onTrigger:()=>{this.h.replaceAll()}}));const V=document.createElement("div");V.className="replace-part",V.appendChild(this.D.domNode);const H=document.createElement("div");H.className="replace-actions",V.appendChild(H),H.appendChild(this.M.domNode),H.appendChild(this.N.domNode),this.F=this.q(new Z({label:W,className:"codicon toggle left",onTrigger:()=>{this.g.change({isReplaceRevealed:!this.P},!1),this.P&&(this.D.width=C.getTotalWidth(this.C.domNode),this.D.inputBox.layout()),this.pb()}})),this.F.setExpanded(this.P),this.v=document.createElement("div"),this.v.className="editor-widget find-widget",this.v.setAttribute("aria-hidden","true"),this.v.style.width=`${F}px`,this.v.appendChild(this.F.domNode),this.v.appendChild(Y),this.v.appendChild(V),this.ab=new I.Sash(this.v,this,{orientation:0,size:2}),this.bb=!1;let $=F;this.q(this.ab.onDidStart(()=>{$=C.getTotalWidth(this.v)})),this.q(this.ab.onDidChange(oe=>{this.bb=!0;const re=$+oe.startX-oe.currentX;if(re<F)return;const X=parseFloat(C.getComputedStyle(this.v).maxWidth)||0;re>X||(this.v.style.width=`${re}px`,this.P&&(this.D.width=C.getTotalWidth(this.C.domNode)),this.C.inputBox.layout(),this.tb())})),this.q(this.ab.onDidReset(()=>{const oe=C.getTotalWidth(this.v);if(oe<F)return;let re=F;if(!this.bb||oe===F){const X=this.b.getLayoutInfo();re=X.width-28-X.minimap.minimapWidth-15,this.bb=!0}this.v.style.width=`${re}px`,this.P&&(this.D.width=C.getTotalWidth(this.C.domNode)),this.C.inputBox.layout()}))}Ab(){const de=this.b.getOption(2);this.C.setFocusInputOnOptionClick(de!==2)}}te.a="editor.contrib.findWidget",e.FindWidget=te;class Z extends L.Widget{constructor(de){super(),this.a=de;let K="button";this.a.className&&(K=K+" "+this.a.className),this.a.icon&&(K=K+" "+u.ThemeIcon.asClassName(this.a.icon)),this.b=document.createElement("div"),this.b.title=this.a.label,this.b.tabIndex=0,this.b.className=K,this.b.setAttribute("role","button"),this.b.setAttribute("aria-label",this.a.label),this.c(this.b,Y=>{this.a.onTrigger(),Y.preventDefault()}),this.n(this.b,Y=>{var ne,V;if(Y.equals(10)||Y.equals(3)){this.a.onTrigger(),Y.preventDefault();return}(V=(ne=this.a).onKeyDown)===null||V===void 0||V.call(ne,Y)})}get domNode(){return this.b}isEnabled(){return this.b.tabIndex>=0}focus(){this.b.focus()}setEnabled(de){this.b.classList.toggle("disabled",!de),this.b.setAttribute("aria-disabled",String(!de)),this.b.tabIndex=de?0:-1}setExpanded(de){this.b.setAttribute("aria-expanded",String(!!de)),de?(this.b.classList.remove(...u.ThemeIcon.asClassNameArray(b)),this.b.classList.add(...u.ThemeIcon.asClassNameArray(y))):(this.b.classList.remove(...u.ThemeIcon.asClassNameArray(y)),this.b.classList.add(...u.ThemeIcon.asClassNameArray(b)))}}e.SimpleButton=Z,(0,o.registerThemingParticipant)((ae,de)=>{const K=(Ee,Me)=>{Me&&de.addRule(`.monaco-editor ${Ee} { background-color: ${Me}; }`)};K(".findMatch",ae.getColor(s.editorFindMatchHighlight)),K(".currentFindMatch",ae.getColor(s.editorFindMatch)),K(".findScope",ae.getColor(s.editorFindRangeHighlight));const Y=ae.getColor(s.editorWidgetBackground);K(".find-widget",Y);const ne=ae.getColor(s.widgetShadow);ne&&de.addRule(`.monaco-editor .find-widget { box-shadow: 0 0 8px 2px ${ne}; }`);const V=ae.getColor(s.widgetBorder);V&&de.addRule(`.monaco-editor .find-widget { border-left: 1px solid ${V}; border-right: 1px solid ${V}; border-bottom: 1px solid ${V}; }`);const H=ae.getColor(s.editorFindMatchHighlightBorder);H&&de.addRule(`.monaco-editor .findMatch { border: 1px ${(0,h.isHighContrast)(ae.type)?"dotted":"solid"} ${H}; box-sizing: border-box; }`);const $=ae.getColor(s.editorFindMatchBorder);$&&de.addRule(`.monaco-editor .currentFindMatch { border: 2px solid ${$}; padding: 1px; box-sizing: border-box; }`);const oe=ae.getColor(s.editorFindRangeHighlightBorder);oe&&de.addRule(`.monaco-editor .findScope { border: 1px ${(0,h.isHighContrast)(ae.type)?"dashed":"solid"} ${oe}; }`);const re=ae.getColor(s.contrastBorder);re&&de.addRule(`.monaco-editor .find-widget { border: 1px solid ${re}; }`);const X=ae.getColor(s.editorWidgetForeground);X&&de.addRule(`.monaco-editor .find-widget { color: ${X}; }`);const le=ae.getColor(s.errorForeground);le&&de.addRule(`.monaco-editor .find-widget.no-results .matchesCount { color: ${le}; }`);const me=ae.getColor(s.editorWidgetResizeBorder);if(me)de.addRule(`.monaco-editor .find-widget .monaco-sash { background-color: ${me}; }`);else{const Ee=ae.getColor(s.editorWidgetBorder);Ee&&de.addRule(`.monaco-editor .find-widget .monaco-sash { background-color: ${Ee}; }`)}const we=ae.getColor(s.toolbarHoverBackground);we&&de.addRule(`
|
||
.monaco-editor .find-widget .button:not(.disabled):hover,
|
||
.monaco-editor .find-widget .codicon-find-selection:hover {
|
||
background-color: ${we} !important;
|
||
}
|
||
`);const Le=ae.getColor(s.focusBorder);Le&&de.addRule(`.monaco-editor .find-widget .monaco-inputbox.synthetic-focus { outline-color: ${Le}; }`)})}),define(_[325],ee([1,0,11,2,9,14,71,24,47,180,819,820,821,598,28,96,15,57,38,42,79,84,23]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s,l,o,u,h){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StartFindReplaceAction=e.PreviousSelectionMatchFindAction=e.NextSelectionMatchFindAction=e.SelectionMatchFindAction=e.MoveToMatchFindAction=e.PreviousMatchFindAction=e.NextMatchFindAction=e.MatchFindAction=e.StartFindWithSelectionAction=e.StartFindWithArgsAction=e.StartFindAction=e.FindController=e.CommonFindController=e.getSelectionSearchString=void 0;const w=524288;function m(W,j="single",F=!1){if(!W.hasModel())return null;const U=W.getSelection();if(j==="single"&&U.startLineNumber===U.endLineNumber||j==="multiple"){if(U.isEmpty()){const Q=W.getConfiguredWordAtPosition(U.getStartPosition());if(Q&&F===!1)return Q.word}else if(W.getModel().getValueLengthInRange(U)<w)return W.getModel().getValueInRange(U)}return null}e.getSelectionSearchString=m;let p=class Yi extends N.Disposable{get editor(){return this.a}static get(j){return j.getContribution(Yi.ID)}constructor(j,F,U,Q){super(),this.a=j,this.b=f.CONTEXT_FIND_WIDGET_VISIBLE.bindTo(F),this.k=F,this.i=U,this.j=Q,this.g=new C.Delayer(500),this.c=this.q(new i.FindReplaceState),this.p(),this.q(this.c.onFindReplaceStateChange(se=>this.m(se))),this.h=null,this.q(this.a.onDidChangeModel(()=>{const se=this.a.getModel()&&this.c.isRevealed;this.l(),this.c.change({searchScope:null,matchCase:this.i.getBoolean("editor.matchCase",1,!1),wholeWord:this.i.getBoolean("editor.wholeWord",1,!1),isRegex:this.i.getBoolean("editor.isRegex",1,!1),preserveCase:this.i.getBoolean("editor.preserveCase",1,!1)},!1),se&&this.r({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1,loop:this.a.getOption(38).loop})}))}dispose(){this.l(),super.dispose()}l(){this.h&&(this.h.dispose(),this.h=null)}m(j){this.n(j),j.isRevealed&&(this.c.isRevealed?this.b.set(!0):(this.b.reset(),this.l())),j.searchString&&this.setGlobalBufferTerm(this.c.searchString)}n(j){j.isRegex&&this.i.store("editor.isRegex",this.c.actualIsRegex,1,0),j.wholeWord&&this.i.store("editor.wholeWord",this.c.actualWholeWord,1,0),j.matchCase&&this.i.store("editor.matchCase",this.c.actualMatchCase,1,0),j.preserveCase&&this.i.store("editor.preserveCase",this.c.actualPreserveCase,1,0)}p(){this.c.change({matchCase:this.i.getBoolean("editor.matchCase",1,this.c.matchCase),wholeWord:this.i.getBoolean("editor.wholeWord",1,this.c.wholeWord),isRegex:this.i.getBoolean("editor.isRegex",1,this.c.isRegex),preserveCase:this.i.getBoolean("editor.preserveCase",1,this.c.preserveCase)},!1)}isFindInputFocused(){return!!f.CONTEXT_FIND_INPUT_FOCUSED.getValue(this.k)}getState(){return this.c}closeFindWidget(){this.c.change({isRevealed:!1,searchScope:null},!1),this.a.focus()}toggleCaseSensitive(){this.c.change({matchCase:!this.c.matchCase},!1),this.c.isRevealed||this.highlightFindOptions()}toggleWholeWords(){this.c.change({wholeWord:!this.c.wholeWord},!1),this.c.isRevealed||this.highlightFindOptions()}toggleRegex(){this.c.change({isRegex:!this.c.isRegex},!1),this.c.isRevealed||this.highlightFindOptions()}togglePreserveCase(){this.c.change({preserveCase:!this.c.preserveCase},!1),this.c.isRevealed||this.highlightFindOptions()}toggleSearchScope(){if(this.c.searchScope)this.c.change({searchScope:null},!0);else if(this.a.hasModel()){const j=this.a.getSelections();j.map(F=>(F.endColumn===1&&F.endLineNumber>F.startLineNumber&&(F=F.setEndPosition(F.endLineNumber-1,this.a.getModel().getLineMaxColumn(F.endLineNumber-1))),F.isEmpty()?null:F)).filter(F=>!!F),j.length&&this.c.change({searchScope:j},!0)}}setSearchString(j){this.c.isRegex&&(j=E.escapeRegExpCharacters(j)),this.c.change({searchString:j},!1)}highlightFindOptions(j=!1){}r(j,F){return ye(this,void 0,void 0,function*(){if(this.l(),!this.a.hasModel())return;const U=Object.assign(Object.assign({},F),{isRevealed:!0});if(j.seedSearchStringFromSelection==="single"){const Q=m(this.a,j.seedSearchStringFromSelection,j.seedSearchStringFromNonEmptySelection);Q&&(this.c.isRegex?U.searchString=E.escapeRegExpCharacters(Q):U.searchString=Q)}else if(j.seedSearchStringFromSelection==="multiple"&&!j.updateSearchScope){const Q=m(this.a,j.seedSearchStringFromSelection);Q&&(U.searchString=Q)}if(!U.searchString&&j.seedSearchStringFromGlobalClipboard){const Q=yield this.getGlobalBufferTerm();if(!this.a.hasModel())return;Q&&(U.searchString=Q)}if(j.forceRevealReplace||U.isReplaceRevealed?U.isReplaceRevealed=!0:this.b.get()||(U.isReplaceRevealed=!1),j.updateSearchScope){const Q=this.a.getSelections();Q.some(se=>!se.isEmpty())&&(U.searchScope=Q)}U.loop=j.loop,this.c.change(U,!1),this.h||(this.h=new f.FindModelBoundToEditorModel(this.a,this.c))})}start(j,F){return this.r(j,F)}moveToNextMatch(){return this.h?(this.h.moveToNextMatch(),!0):!1}moveToPrevMatch(){return this.h?(this.h.moveToPrevMatch(),!0):!1}goToMatch(j){return this.h?(this.h.moveToMatch(j),!0):!1}replace(){return this.h?(this.h.replace(),!0):!1}replaceAll(){return this.h?(this.h.replaceAll(),!0):!1}selectAllMatches(){return this.h?(this.h.selectAllMatches(),this.a.focus(),!0):!1}getGlobalBufferTerm(){return ye(this,void 0,void 0,function*(){return this.a.getOption(38).globalFindClipboard&&this.a.hasModel()&&!this.a.getModel().isTooLargeForSyncing()?this.j.readFindText():""})}setGlobalBufferTerm(j){this.a.getOption(38).globalFindClipboard&&this.a.hasModel()&&!this.a.getModel().isTooLargeForSyncing()&&this.j.writeFindText(j)}};p.ID="editor.contrib.findController",p=Ne([ge(1,c.IContextKeyService),ge(2,u.IStorageService),ge(3,r.IClipboardService)],p),e.CommonFindController=p;let b=class extends p{constructor(j,F,U,Q,se,he,ie,ue){super(j,U,ie,ue),this.u=F,this.v=Q,this.w=se,this.y=he,this.s=null,this.t=null}r(j,F){const U=Object.create(null,{r:{get:()=>super.r}});return ye(this,void 0,void 0,function*(){this.s||this.B();const Q=this.a.getSelection();let se=!1;switch(this.a.getOption(38).autoFindInSelection){case"always":se=!0;break;case"never":se=!1;break;case"multiline":{se=!!Q&&Q.startLineNumber!==Q.endLineNumber;break}default:break}j.updateSearchScope=j.updateSearchScope||se,yield U.r.call(this,j,F),this.s&&(j.shouldFocus===2?this.s.focusReplaceInput():j.shouldFocus===1&&this.s.focusFindInput())})}highlightFindOptions(j=!1){this.s||this.B(),this.c.isRevealed&&!j?this.s.highlightFindOptions():this.t.highlightFindOptions()}B(){this.s=this.q(new t.FindWidget(this.a,this,this.c,this.u,this.v,this.k,this.w,this.i,this.y)),this.t=this.q(new g.FindOptionsWidget(this.a,this.c,this.v))}};b=Ne([ge(1,d.IContextViewService),ge(2,c.IContextKeyService),ge(3,s.IKeybindingService),ge(4,h.IThemeService),ge(5,l.INotificationService),ge(6,u.IStorageService),ge(7,r.IClipboardService)],b),e.FindController=b,e.StartFindAction=(0,I.registerMultiEditorAction)(new I.MultiEditorAction({id:f.FIND_IDS.StartFindAction,label:n.localize(0,null),alias:"Find",precondition:c.ContextKeyExpr.or(S.EditorContextKeys.focus,c.ContextKeyExpr.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2084,weight:100},menuOpts:{menuId:a.MenuId.MenubarEditMenu,group:"3_find",title:n.localize(1,null),order:1}})),e.StartFindAction.addImplementation(0,(W,j,F)=>{const U=p.get(j);return U?U.start({forceRevealReplace:!1,seedSearchStringFromSelection:j.getOption(38).seedSearchStringFromSelection!=="never"?"single":"none",seedSearchStringFromNonEmptySelection:j.getOption(38).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:j.getOption(38).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1,loop:j.getOption(38).loop}):!1});const y={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 k extends I.EditorAction{constructor(){super({id:f.FIND_IDS.StartFindWithArgs,label:n.localize(6,null),alias:"Find With Arguments",precondition:void 0,kbOpts:{kbExpr:null,primary:0,weight:100},description:y})}run(j,F,U){return ye(this,void 0,void 0,function*(){const Q=p.get(F);if(Q){const se=U?{searchString:U.searchString,replaceString:U.replaceString,isReplaceRevealed:U.replaceString!==void 0,isRegex:U.isRegex,wholeWord:U.matchWholeWord,matchCase:U.isCaseSensitive,preserveCase:U.preserveCase}:{};yield Q.start({forceRevealReplace:!1,seedSearchStringFromSelection:Q.getState().searchString.length===0&&F.getOption(38).seedSearchStringFromSelection!=="never"?"single":"none",seedSearchStringFromNonEmptySelection:F.getOption(38).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:!0,shouldFocus:1,shouldAnimate:!0,updateSearchScope:U?.findInSelection||!1,loop:F.getOption(38).loop},se),Q.setGlobalBufferTerm(Q.getState().searchString)}})}}e.StartFindWithArgsAction=k;class D extends I.EditorAction{constructor(){super({id:f.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(j,F){return ye(this,void 0,void 0,function*(){const U=p.get(F);U&&(yield U.start({forceRevealReplace:!1,seedSearchStringFromSelection:"multiple",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:F.getOption(38).loop}),U.setGlobalBufferTerm(U.getState().searchString))})}}e.StartFindWithSelectionAction=D;class M extends I.EditorAction{run(j,F){return ye(this,void 0,void 0,function*(){const U=p.get(F);U&&!this.d(U)&&(yield U.start({forceRevealReplace:!1,seedSearchStringFromSelection:U.getState().searchString.length===0&&F.getOption(38).seedSearchStringFromSelection!=="never"?"single":"none",seedSearchStringFromNonEmptySelection:F.getOption(38).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:F.getOption(38).loop}),this.d(U))})}}e.MatchFindAction=M;class z extends M{constructor(){super({id:f.FIND_IDS.NextMatchFindAction,label:n.localize(8,null),alias:"Find Next",precondition:void 0,kbOpts:[{kbExpr:S.EditorContextKeys.focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100},{kbExpr:c.ContextKeyExpr.and(S.EditorContextKeys.focus,f.CONTEXT_FIND_INPUT_FOCUSED),primary:3,weight:100}]})}d(j){return j.moveToNextMatch()?(j.editor.pushUndoStop(),!0):!1}}e.NextMatchFindAction=z;class R extends M{constructor(){super({id:f.FIND_IDS.PreviousMatchFindAction,label:n.localize(9,null),alias:"Find Previous",precondition:void 0,kbOpts:[{kbExpr:S.EditorContextKeys.focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100},{kbExpr:c.ContextKeyExpr.and(S.EditorContextKeys.focus,f.CONTEXT_FIND_INPUT_FOCUSED),primary:1027,weight:100}]})}d(j){return j.moveToPrevMatch()}}e.PreviousMatchFindAction=R;class P extends I.EditorAction{constructor(){super({id:f.FIND_IDS.GoToMatchFindAction,label:n.localize(10,null),alias:"Go to Match...",precondition:f.CONTEXT_FIND_WIDGET_VISIBLE}),this.d=[]}run(j,F,U){const Q=p.get(F);if(!Q)return;const he=j.get(o.IQuickInputService).createInputBox();he.placeholder=n.localize(11,null,Q.getState().matchesCount);const ie=ue=>{const J=parseInt(ue);if(!isNaN(J)&&J>0&&J<=Q.getState().matchesCount){he.validationMessage=void 0,Q.goToMatch(J-1);const x=Q.getState().currentMatch;x&&this.j(F,x)}else he.validationMessage=n.localize(12,null,Q.getState().matchesCount),this.h(F)};he.onDidChangeValue(ue=>{ie(ue)}),he.onDidAccept(()=>{const ue=parseInt(he.value);!isNaN(ue)&&ue>0&&ue<=Q.getState().matchesCount?(Q.goToMatch(ue-1),he.hide()):he.validationMessage=n.localize(13,null,Q.getState().matchesCount)}),he.onDidHide(()=>{this.h(F),he.dispose()}),he.show()}h(j){j.changeDecorations(F=>{this.d=F.deltaDecorations(this.d,[])})}j(j,F){j.changeDecorations(U=>{this.d=U.deltaDecorations(this.d,[{range:F,options:{description:"find-match-quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:F,options:{description:"find-match-quick-access-range-highlight-overview",overviewRuler:{color:(0,h.themeColorFromId)(L.overviewRulerRangeHighlight),position:v.OverviewRulerLane.Full}}}])})}}e.MoveToMatchFindAction=P;class A extends I.EditorAction{run(j,F){return ye(this,void 0,void 0,function*(){const U=p.get(F);if(!U)return;const Q=m(F,"single",!1);Q&&U.setSearchString(Q),this.d(U)||(yield U.start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:F.getOption(38).loop}),this.d(U))})}}e.SelectionMatchFindAction=A;class T extends A{constructor(){super({id:f.FIND_IDS.NextSelectionMatchFindAction,label:n.localize(14,null),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:S.EditorContextKeys.focus,primary:2109,weight:100}})}d(j){return j.moveToNextMatch()}}e.NextSelectionMatchFindAction=T;class O extends A{constructor(){super({id:f.FIND_IDS.PreviousSelectionMatchFindAction,label:n.localize(15,null),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:S.EditorContextKeys.focus,primary:3133,weight:100}})}d(j){return j.moveToPrevMatch()}}e.PreviousSelectionMatchFindAction=O,e.StartFindReplaceAction=(0,I.registerMultiEditorAction)(new I.MultiEditorAction({id:f.FIND_IDS.StartFindReplaceAction,label:n.localize(16,null),alias:"Replace",precondition:c.ContextKeyExpr.or(S.EditorContextKeys.focus,c.ContextKeyExpr.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menuOpts:{menuId:a.MenuId.MenubarEditMenu,group:"3_find",title:n.localize(17,null),order:2}})),e.StartFindReplaceAction.addImplementation(0,(W,j,F)=>{if(!j.hasModel()||j.getOption(86))return!1;const U=p.get(j);if(!U)return!1;const Q=j.getSelection(),se=U.isFindInputFocused(),he=!Q.isEmpty()&&Q.startLineNumber===Q.endLineNumber&&j.getOption(38).seedSearchStringFromSelection!=="never"&&!se,ie=se||he?2:1;return U.start({forceRevealReplace:!0,seedSearchStringFromSelection:he?"single":"none",seedSearchStringFromNonEmptySelection:j.getOption(38).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:j.getOption(38).seedSearchStringFromSelection!=="never",shouldFocus:ie,shouldAnimate:!0,updateSearchScope:!1,loop:j.getOption(38).loop})}),(0,I.registerEditorContribution)(p.ID,b,0),(0,I.registerEditorAction)(k),(0,I.registerEditorAction)(D),(0,I.registerEditorAction)(z),(0,I.registerEditorAction)(R),(0,I.registerEditorAction)(P),(0,I.registerEditorAction)(T),(0,I.registerEditorAction)(O);const B=I.EditorCommand.bindToContribution(p.get);(0,I.registerEditorCommand)(new B({id:f.FIND_IDS.CloseFindWidgetCommand,precondition:f.CONTEXT_FIND_WIDGET_VISIBLE,handler:W=>W.closeFindWidget(),kbOpts:{weight:100+5,kbExpr:c.ContextKeyExpr.and(S.EditorContextKeys.focus,c.ContextKeyExpr.not("isComposing")),primary:9,secondary:[1033]}})),(0,I.registerEditorCommand)(new B({id:f.FIND_IDS.ToggleCaseSensitiveCommand,precondition:void 0,handler:W=>W.toggleCaseSensitive(),kbOpts:{weight:100+5,kbExpr:S.EditorContextKeys.focus,primary:f.ToggleCaseSensitiveKeybinding.primary,mac:f.ToggleCaseSensitiveKeybinding.mac,win:f.ToggleCaseSensitiveKeybinding.win,linux:f.ToggleCaseSensitiveKeybinding.linux}})),(0,I.registerEditorCommand)(new B({id:f.FIND_IDS.ToggleWholeWordCommand,precondition:void 0,handler:W=>W.toggleWholeWords(),kbOpts:{weight:100+5,kbExpr:S.EditorContextKeys.focus,primary:f.ToggleWholeWordKeybinding.primary,mac:f.ToggleWholeWordKeybinding.mac,win:f.ToggleWholeWordKeybinding.win,linux:f.ToggleWholeWordKeybinding.linux}})),(0,I.registerEditorCommand)(new B({id:f.FIND_IDS.ToggleRegexCommand,precondition:void 0,handler:W=>W.toggleRegex(),kbOpts:{weight:100+5,kbExpr:S.EditorContextKeys.focus,primary:f.ToggleRegexKeybinding.primary,mac:f.ToggleRegexKeybinding.mac,win:f.ToggleRegexKeybinding.win,linux:f.ToggleRegexKeybinding.linux}})),(0,I.registerEditorCommand)(new B({id:f.FIND_IDS.ToggleSearchScopeCommand,precondition:void 0,handler:W=>W.toggleSearchScope(),kbOpts:{weight:100+5,kbExpr:S.EditorContextKeys.focus,primary:f.ToggleSearchScopeKeybinding.primary,mac:f.ToggleSearchScopeKeybinding.mac,win:f.ToggleSearchScopeKeybinding.win,linux:f.ToggleSearchScopeKeybinding.linux}})),(0,I.registerEditorCommand)(new B({id:f.FIND_IDS.TogglePreserveCaseCommand,precondition:void 0,handler:W=>W.togglePreserveCase(),kbOpts:{weight:100+5,kbExpr:S.EditorContextKeys.focus,primary:f.TogglePreserveCaseKeybinding.primary,mac:f.TogglePreserveCaseKeybinding.mac,win:f.TogglePreserveCaseKeybinding.win,linux:f.TogglePreserveCaseKeybinding.linux}})),(0,I.registerEditorCommand)(new B({id:f.FIND_IDS.ReplaceOneAction,precondition:f.CONTEXT_FIND_WIDGET_VISIBLE,handler:W=>W.replace(),kbOpts:{weight:100+5,kbExpr:S.EditorContextKeys.focus,primary:3094}})),(0,I.registerEditorCommand)(new B({id:f.FIND_IDS.ReplaceOneAction,precondition:f.CONTEXT_FIND_WIDGET_VISIBLE,handler:W=>W.replace(),kbOpts:{weight:100+5,kbExpr:c.ContextKeyExpr.and(S.EditorContextKeys.focus,f.CONTEXT_REPLACE_INPUT_FOCUSED),primary:3}})),(0,I.registerEditorCommand)(new B({id:f.FIND_IDS.ReplaceAllAction,precondition:f.CONTEXT_FIND_WIDGET_VISIBLE,handler:W=>W.replaceAll(),kbOpts:{weight:100+5,kbExpr:S.EditorContextKeys.focus,primary:2563}})),(0,I.registerEditorCommand)(new B({id:f.FIND_IDS.ReplaceAllAction,precondition:f.CONTEXT_FIND_WIDGET_VISIBLE,handler:W=>W.replaceAll(),kbOpts:{weight:100+5,kbExpr:c.ContextKeyExpr.and(S.EditorContextKeys.focus,f.CONTEXT_REPLACE_INPUT_FOCUSED),primary:void 0,mac:{primary:2051}}})),(0,I.registerEditorCommand)(new B({id:f.FIND_IDS.SelectAllMatchesAction,precondition:f.CONTEXT_FIND_WIDGET_VISIBLE,handler:W=>W.selectAllMatches(),kbOpts:{weight:100+5,kbExpr:S.EditorContextKeys.focus,primary:515}}))}),define(_[822],ee([1,0,29,47,39,601,31,81,23,32]),function(q,e,C,N,E,I,L,S,v,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FoldingDecorationProvider=e.foldingManualExpandedIcon=e.foldingManualCollapsedIcon=e.foldingCollapsedIcon=e.foldingExpandedIcon=void 0;const g=(0,L.registerColor)("editor.foldBackground",{light:(0,L.transparent)(L.editorSelectionBackground,.3),dark:(0,L.transparent)(L.editorSelectionBackground,.3),hcDark:null,hcLight:null},(0,I.localize)(0,null),!0);(0,L.registerColor)("editorGutter.foldingControlForeground",{dark:L.iconForeground,light:L.iconForeground,hcDark:L.iconForeground,hcLight:L.iconForeground},(0,I.localize)(1,null)),e.foldingExpandedIcon=(0,S.registerIcon)("folding-expanded",C.Codicon.chevronDown,(0,I.localize)(2,null)),e.foldingCollapsedIcon=(0,S.registerIcon)("folding-collapsed",C.Codicon.chevronRight,(0,I.localize)(3,null)),e.foldingManualCollapsedIcon=(0,S.registerIcon)("folding-manual-collapsed",e.foldingCollapsedIcon,(0,I.localize)(4,null)),e.foldingManualExpandedIcon=(0,S.registerIcon)("folding-manual-expanded",e.foldingExpandedIcon,(0,I.localize)(5,null));const i={color:(0,v.themeColorFromId)(g),position:N.MinimapPosition.Inline};class t{constructor(a){this.m=a,this.showFoldingControls="mouseover",this.showFoldingHighlights=!0}getDecorationOption(a,r,c){return r?t.l:this.showFoldingControls==="never"?a?this.showFoldingHighlights?t.f:t.e:t.k:a?c?this.showFoldingHighlights?t.d:t.c:this.showFoldingHighlights?t.b:t.a:this.showFoldingControls==="mouseover"?c?t.j:t.h:c?t.i:t.g}changeDecorations(a){return this.m.changeDecorations(a)}removeDecorations(a){this.m.removeDecorations(a)}}t.a=E.ModelDecorationOptions.register({description:"folding-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,firstLineDecorationClassName:f.ThemeIcon.asClassName(e.foldingCollapsedIcon)}),t.b=E.ModelDecorationOptions.register({description:"folding-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:i,isWholeLine:!0,firstLineDecorationClassName:f.ThemeIcon.asClassName(e.foldingCollapsedIcon)}),t.c=E.ModelDecorationOptions.register({description:"folding-manually-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,firstLineDecorationClassName:f.ThemeIcon.asClassName(e.foldingManualCollapsedIcon)}),t.d=E.ModelDecorationOptions.register({description:"folding-manually-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:i,isWholeLine:!0,firstLineDecorationClassName:f.ThemeIcon.asClassName(e.foldingManualCollapsedIcon)}),t.e=E.ModelDecorationOptions.register({description:"folding-no-controls-range-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0}),t.f=E.ModelDecorationOptions.register({description:"folding-no-controls-range-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:i,isWholeLine:!0}),t.g=E.ModelDecorationOptions.register({description:"folding-expanded-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+f.ThemeIcon.asClassName(e.foldingExpandedIcon)}),t.h=E.ModelDecorationOptions.register({description:"folding-expanded-auto-hide-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:f.ThemeIcon.asClassName(e.foldingExpandedIcon)}),t.i=E.ModelDecorationOptions.register({description:"folding-manually-expanded-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+f.ThemeIcon.asClassName(e.foldingManualExpandedIcon)}),t.j=E.ModelDecorationOptions.register({description:"folding-manually-expanded-auto-hide-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:f.ThemeIcon.asClassName(e.foldingManualExpandedIcon)}),t.k=E.ModelDecorationOptions.register({description:"folding-no-controls-range-decoration",stickiness:0,isWholeLine:!0}),t.l=E.ModelDecorationOptions.register({description:"folding-hidden-range-decoration",stickiness:1}),e.FoldingDecorationProvider=t}),define(_[326],ee([1,0,11,20,13,58,2,9,18,112,14,24,26,34,559,560,494,600,15,822,166,495,42,78,60,19,6,25,21,53,27,401]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s,l,o,u,h,w,m,p,b,y,k,D,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RangesLimitReporter=e.FoldingController=void 0;const z=new s.RawContextKey("foldingEnabled",!1);let R=class Vt extends L.Disposable{static get(Y){return Y.getContribution(Vt.ID)}static getFoldingRangeProviders(Y,ne){var V,H;const $=Y.foldingRangeProvider.ordered(ne);return(H=(V=Vt.c)===null||V===void 0?void 0:V.call(Vt,$,ne))!==null&&H!==void 0?H:$}constructor(Y,ne,V,H,$,oe){super(),this.I=ne,this.J=V,this.L=oe,this.G=this.q(new L.DisposableStore),this.g=Y,this._foldingLimitReporter=new P(Y);const re=this.g.getOptions();this.h=re.get(40),this.j=re.get(41)!=="indentation",this.k=re.get(45),this.m=!1,this.p=!1,this.n=re.get(43),this.C=$.for(oe.foldingRangeProvider,"Folding",{min:200}),this.u=null,this.v=null,this.w=null,this.y=null,this.z=null,this.B=null,this.F=null,this.H=null,this.t=new l.FoldingDecorationProvider(Y),this.t.showFoldingControls=re.get(104),this.t.showFoldingHighlights=re.get(42),this.D=z.bindTo(this.I),this.D.set(this.h),this.q(this.g.onDidChangeModel(()=>this.M())),this.q(this.g.onDidChangeConfiguration(X=>{if(X.hasChanged(40)&&(this.h=this.g.getOptions().get(40),this.D.set(this.h),this.M()),X.hasChanged(44)&&this.M(),X.hasChanged(104)||X.hasChanged(42)){const le=this.g.getOptions();this.t.showFoldingControls=le.get(104),this.t.showFoldingHighlights=le.get(42),this.triggerFoldingModelChanged()}X.hasChanged(41)&&(this.j=this.g.getOptions().get(41)!=="indentation",this.N()),X.hasChanged(45)&&(this.k=this.g.getOptions().get(45)),X.hasChanged(43)&&(this.n=this.g.getOptions().get(43))})),this.M()}saveViewState(){const Y=this.g.getModel();if(!Y||!this.h||Y.isTooLargeForTokenization())return{};if(this.u){const ne=this.u.getMemento(),V=this.w?this.w.id:void 0;return{collapsedRegions:ne,lineCount:Y.getLineCount(),provider:V,foldedImports:this.p}}}restoreViewState(Y){const ne=this.g.getModel();if(!(!ne||!this.h||ne.isTooLargeForTokenization()||!this.v)&&!!Y&&(this.p=!!Y.foldedImports,Y.collapsedRegions&&Y.collapsedRegions.length>0&&this.u)){this.m=!0;try{this.u.applyMemento(Y.collapsedRegions)}finally{this.m=!1}}}M(){this.G.clear();const Y=this.g.getModel();!this.h||!Y||Y.isTooLargeForTokenization()||(this.p=!1,this.u=new a.FoldingModel(Y,this.t),this.G.add(this.u),this.v=new r.HiddenRangeModel(this.u),this.G.add(this.v),this.G.add(this.v.onDidChange(ne=>this.Q(ne))),this.B=new C.Delayer(this.C.get(Y)),this.F=new C.RunOnceScheduler(()=>this.S(),200),this.G.add(this.F),this.G.add(this.L.foldingRangeProvider.onDidChange(()=>this.N())),this.G.add(this.g.onDidChangeModelLanguageConfiguration(()=>this.N())),this.G.add(this.g.onDidChangeModelContent(ne=>this.P(ne))),this.G.add(this.g.onDidChangeCursorPosition(()=>this.R())),this.G.add(this.g.onMouseDown(ne=>this.U(ne))),this.G.add(this.g.onMouseUp(ne=>this.W(ne))),this.G.add({dispose:()=>{var ne,V;this.y&&(this.y.cancel(),this.y=null),(ne=this.B)===null||ne===void 0||ne.cancel(),this.B=null,this.u=null,this.z=null,this.v=null,this.F=null,(V=this.w)===null||V===void 0||V.dispose(),this.w=null}}),this.triggerFoldingModelChanged())}N(){var Y;(Y=this.w)===null||Y===void 0||Y.dispose(),this.w=null,this.triggerFoldingModelChanged()}O(Y){if(this.w)return this.w;const ne=new c.IndentRangeProvider(Y,this.J,this._foldingLimitReporter);if(this.w=ne,this.j&&this.u){const V=Vt.getFoldingRangeProviders(this.L,Y);V.length>0&&(this.w=new u.SyntaxRangeProvider(Y,V,()=>this.triggerFoldingModelChanged(),this._foldingLimitReporter,ne))}return this.w}getFoldingModel(){return this.z}P(Y){var ne;(ne=this.v)===null||ne===void 0||ne.notifyChangeModelContent(Y),this.triggerFoldingModelChanged()}triggerFoldingModelChanged(){this.B&&(this.y&&(this.y.cancel(),this.y=null),this.z=this.B.trigger(()=>{const Y=this.u;if(!Y)return null;const ne=new m.StopWatch(!0),V=this.O(Y.textModel),H=this.y=(0,C.createCancelablePromise)($=>V.compute($));return H.then($=>{if($&&H===this.y){let oe;if(this.n&&!this.p){const me=$.setCollapsedAllOfType(t.FoldingRangeKind.Imports.value,!0);me&&(oe=f.StableEditorScrollState.capture(this.g),this.p=me)}const re=this.g.getSelections(),X=re?re.map(me=>me.startLineNumber):[];Y.update($,X),oe?.restore(this.g);const le=this.C.update(Y.textModel,ne.elapsed());this.B&&(this.B.defaultDelay=le)}return Y})}).then(void 0,Y=>((0,E.onUnexpectedError)(Y),null)))}Q(Y){if(this.v&&Y.length&&!this.m){const ne=this.g.getSelections();ne&&this.v.adjustSelections(ne)&&this.g.setSelections(ne)}this.g.setHiddenAreas(Y,this)}R(){this.v&&this.v.hasRanges()&&this.F.schedule()}S(){const Y=this.getFoldingModel();!Y||Y.then(ne=>{if(ne){const V=this.g.getSelections();if(V&&V.length>0){const H=[];for(const $ of V){const oe=$.selectionStartLineNumber;this.v&&this.v.isHidden(oe)&&H.push(...ne.getAllRegionsAtLine(oe,re=>re.isCollapsed&&oe>re.startLineNumber))}H.length&&(ne.toggleCollapseState(H),this.reveal(V[0].getPosition()))}}}).then(void 0,E.onUnexpectedError)}U(Y){if(this.H=null,!this.v||!Y.target||!Y.target.range||!Y.event.leftButton&&!Y.event.middleButton)return;const ne=Y.target.range;let V=!1;switch(Y.target.type){case 4:{const H=Y.target.detail,$=Y.target.element.offsetLeft;if(H.offsetX-$<5)return;V=!0;break}case 7:{if(this.k&&this.v.hasRanges()&&!Y.target.detail.isAfterLines)break;return}case 6:{if(this.v.hasRanges()){const H=this.g.getModel();if(H&&ne.startColumn===H.getLineMaxColumn(ne.startLineNumber))break}return}default:return}this.H={lineNumber:ne.startLineNumber,iconClicked:V}}W(Y){const ne=this.u;if(!ne||!this.H||!Y.target)return;const V=this.H.lineNumber,H=this.H.iconClicked,$=Y.target.range;if(!$||$.startLineNumber!==V)return;if(H){if(Y.target.type!==4)return}else{const re=this.g.getModel();if(!re||$.startColumn!==re.getLineMaxColumn(V))return}const oe=ne.getRegionAtLine(V);if(oe&&oe.startLineNumber===V){const re=oe.isCollapsed;if(H||re){const X=Y.event.altKey;let le=[];if(X){const me=Le=>!Le.containedBy(oe)&&!oe.containedBy(Le),we=ne.getRegionsInside(null,me);for(const Le of we)Le.isCollapsed&&le.push(Le);le.length===0&&(le=we)}else{const me=Y.event.middleButton||Y.event.shiftKey;if(me)for(const we of ne.getRegionsInside(oe))we.isCollapsed===re&&le.push(we);(re||!me||le.length===0)&&le.push(oe)}ne.toggleCollapseState(le),this.reveal({lineNumber:V,column:1})}}}reveal(Y){this.g.revealPositionInCenterIfOutsideViewport(Y,0)}};R.ID="editor.contrib.folding",R=Ne([ge(1,s.IContextKeyService),ge(2,n.ILanguageConfigurationService),ge(3,h.INotificationService),ge(4,w.ILanguageFeatureDebounceService),ge(5,p.ILanguageFeaturesService)],R),e.FoldingController=R;class P{constructor(Y){this.c=Y,this.d=new b.Emitter,this.f=0,this.g=!1}get limit(){return this.c.getOptions().get(44)}update(Y,ne){(Y!==this.f||ne!==this.g)&&(this.f=Y,this.g=ne,this.d.fire())}}e.RangesLimitReporter=P;class A extends g.EditorAction{runEditorCommand(Y,ne,V){const H=Y.get(n.ILanguageConfigurationService),$=R.get(ne);if(!$)return;const oe=$.getFoldingModel();if(oe)return this.q(Y,ne),oe.then(re=>{if(re){this.invoke($,re,ne,V,H);const X=ne.getSelection();X&&$.reveal(X.getStartPosition())}})}d(Y){const ne=Y.getSelections();return ne?ne.map(V=>V.startLineNumber):[]}h(Y,ne){return Y&&Y.selectionLines?Y.selectionLines.map(V=>V+1):this.d(ne)}run(Y,ne){}}function T(K){if(!v.isUndefined(K)){if(!v.isObject(K))return!1;const Y=K;if(!v.isUndefined(Y.levels)&&!v.isNumber(Y.levels)||!v.isUndefined(Y.direction)&&!v.isString(Y.direction)||!v.isUndefined(Y.selectionLines)&&(!Array.isArray(Y.selectionLines)||!Y.selectionLines.every(v.isNumber)))return!1}return!0}class O extends A{constructor(){super({id:"editor.unfold",label:d.localize(0,null),alias:"Unfold",precondition:z,kbOpts:{kbExpr:i.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:T,schema:{type:"object",properties:{levels:{type:"number",default:1},direction:{type:"string",enum:["up","down"],default:"down"},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(Y,ne,V,H){const $=H&&H.levels||1,oe=this.h(H,V);H&&H.direction==="up"?(0,a.setCollapseStateLevelsUp)(ne,!1,$,oe):(0,a.setCollapseStateLevelsDown)(ne,!1,$,oe)}}class B extends A{constructor(){super({id:"editor.unfoldRecursively",label:d.localize(1,null),alias:"Unfold Recursively",precondition:z,kbOpts:{kbExpr:i.EditorContextKeys.editorTextFocus,primary:(0,I.KeyChord)(2089,2137),weight:100}})}invoke(Y,ne,V,H){(0,a.setCollapseStateLevelsDown)(ne,!1,Number.MAX_VALUE,this.d(V))}}class W extends A{constructor(){super({id:"editor.fold",label:d.localize(2,null),alias:"Fold",precondition:z,kbOpts:{kbExpr:i.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:T,schema:{type:"object",properties:{levels:{type:"number"},direction:{type:"string",enum:["up","down"]},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(Y,ne,V,H){const $=this.h(H,V),oe=H&&H.levels,re=H&&H.direction;typeof oe!="number"&&typeof re!="string"?(0,a.setCollapseStateUp)(ne,!0,$):re==="up"?(0,a.setCollapseStateLevelsUp)(ne,!0,oe||1,$):(0,a.setCollapseStateLevelsDown)(ne,!0,oe||1,$)}}class j extends A{constructor(){super({id:"editor.toggleFold",label:d.localize(3,null),alias:"Toggle Fold",precondition:z,kbOpts:{kbExpr:i.EditorContextKeys.editorTextFocus,primary:(0,I.KeyChord)(2089,2090),weight:100}})}invoke(Y,ne,V){const H=this.d(V);(0,a.toggleCollapseState)(ne,1,H)}}class F extends A{constructor(){super({id:"editor.foldRecursively",label:d.localize(4,null),alias:"Fold Recursively",precondition:z,kbOpts:{kbExpr:i.EditorContextKeys.editorTextFocus,primary:(0,I.KeyChord)(2089,2135),weight:100}})}invoke(Y,ne,V){const H=this.d(V);(0,a.setCollapseStateLevelsDown)(ne,!0,Number.MAX_VALUE,H)}}class U extends A{constructor(){super({id:"editor.foldAllBlockComments",label:d.localize(5,null),alias:"Fold All Block Comments",precondition:z,kbOpts:{kbExpr:i.EditorContextKeys.editorTextFocus,primary:(0,I.KeyChord)(2089,2133),weight:100}})}invoke(Y,ne,V,H,$){if(ne.regions.hasTypes())(0,a.setCollapseStateForType)(ne,t.FoldingRangeKind.Comment.value,!0);else{const oe=V.getModel();if(!oe)return;const re=$.getLanguageConfiguration(oe.getLanguageId()).comments;if(re&&re.blockCommentStartToken){const X=new RegExp("^\\s*"+(0,S.escapeRegExpCharacters)(re.blockCommentStartToken));(0,a.setCollapseStateForMatchingLines)(ne,X,!0)}}}}class Q extends A{constructor(){super({id:"editor.foldAllMarkerRegions",label:d.localize(6,null),alias:"Fold All Regions",precondition:z,kbOpts:{kbExpr:i.EditorContextKeys.editorTextFocus,primary:(0,I.KeyChord)(2089,2077),weight:100}})}invoke(Y,ne,V,H,$){if(ne.regions.hasTypes())(0,a.setCollapseStateForType)(ne,t.FoldingRangeKind.Region.value,!0);else{const oe=V.getModel();if(!oe)return;const re=$.getLanguageConfiguration(oe.getLanguageId()).foldingRules;if(re&&re.markers&&re.markers.start){const X=new RegExp(re.markers.start);(0,a.setCollapseStateForMatchingLines)(ne,X,!0)}}}}class se extends A{constructor(){super({id:"editor.unfoldAllMarkerRegions",label:d.localize(7,null),alias:"Unfold All Regions",precondition:z,kbOpts:{kbExpr:i.EditorContextKeys.editorTextFocus,primary:(0,I.KeyChord)(2089,2078),weight:100}})}invoke(Y,ne,V,H,$){if(ne.regions.hasTypes())(0,a.setCollapseStateForType)(ne,t.FoldingRangeKind.Region.value,!1);else{const oe=V.getModel();if(!oe)return;const re=$.getLanguageConfiguration(oe.getLanguageId()).foldingRules;if(re&&re.markers&&re.markers.start){const X=new RegExp(re.markers.start);(0,a.setCollapseStateForMatchingLines)(ne,X,!1)}}}}class he extends A{constructor(){super({id:"editor.foldAllExcept",label:d.localize(8,null),alias:"Fold All Regions Except Selected",precondition:z,kbOpts:{kbExpr:i.EditorContextKeys.editorTextFocus,primary:(0,I.KeyChord)(2089,2131),weight:100}})}invoke(Y,ne,V){const H=this.d(V);(0,a.setCollapseStateForRest)(ne,!0,H)}}class ie extends A{constructor(){super({id:"editor.unfoldAllExcept",label:d.localize(9,null),alias:"Unfold All Regions Except Selected",precondition:z,kbOpts:{kbExpr:i.EditorContextKeys.editorTextFocus,primary:(0,I.KeyChord)(2089,2129),weight:100}})}invoke(Y,ne,V){const H=this.d(V);(0,a.setCollapseStateForRest)(ne,!1,H)}}class ue extends A{constructor(){super({id:"editor.foldAll",label:d.localize(10,null),alias:"Fold All",precondition:z,kbOpts:{kbExpr:i.EditorContextKeys.editorTextFocus,primary:(0,I.KeyChord)(2089,2069),weight:100}})}invoke(Y,ne,V){(0,a.setCollapseStateLevelsDown)(ne,!0)}}class J extends A{constructor(){super({id:"editor.unfoldAll",label:d.localize(11,null),alias:"Unfold All",precondition:z,kbOpts:{kbExpr:i.EditorContextKeys.editorTextFocus,primary:(0,I.KeyChord)(2089,2088),weight:100}})}invoke(Y,ne,V){(0,a.setCollapseStateLevelsDown)(ne,!1)}}class x extends A{m(){return parseInt(this.id.substr(x.j.length))}invoke(Y,ne,V){(0,a.setCollapseStateAtLevel)(ne,this.m(),!0,this.d(V))}}x.j="editor.foldLevel",x.ID=K=>x.j+K;class G extends A{constructor(){super({id:"editor.gotoParentFold",label:d.localize(12,null),alias:"Go to Parent Fold",precondition:z,kbOpts:{kbExpr:i.EditorContextKeys.editorTextFocus,weight:100}})}invoke(Y,ne,V){const H=this.d(V);if(H.length>0){const $=(0,a.getParentFoldLine)(H[0],ne);$!==null&&V.setSelection({startLineNumber:$,startColumn:1,endLineNumber:$,endColumn:1})}}}class te extends A{constructor(){super({id:"editor.gotoPreviousFold",label:d.localize(13,null),alias:"Go to Previous Folding Range",precondition:z,kbOpts:{kbExpr:i.EditorContextKeys.editorTextFocus,weight:100}})}invoke(Y,ne,V){const H=this.d(V);if(H.length>0){const $=(0,a.getPreviousFoldLine)(H[0],ne);$!==null&&V.setSelection({startLineNumber:$,startColumn:1,endLineNumber:$,endColumn:1})}}}class Z extends A{constructor(){super({id:"editor.gotoNextFold",label:d.localize(14,null),alias:"Go to Next Folding Range",precondition:z,kbOpts:{kbExpr:i.EditorContextKeys.editorTextFocus,weight:100}})}invoke(Y,ne,V){const H=this.d(V);if(H.length>0){const $=(0,a.getNextFoldLine)(H[0],ne);$!==null&&V.setSelection({startLineNumber:$,startColumn:1,endLineNumber:$,endColumn:1})}}}class ae extends A{constructor(){super({id:"editor.createFoldingRangeFromSelection",label:d.localize(15,null),alias:"Create Folding Range from Selection",precondition:z,kbOpts:{kbExpr:i.EditorContextKeys.editorTextFocus,primary:(0,I.KeyChord)(2089,2130),weight:100}})}invoke(Y,ne,V){var H;const $=[],oe=V.getSelections();if(oe){for(const re of oe){let X=re.endLineNumber;re.endColumn===1&&--X,X>re.startLineNumber&&($.push({startLineNumber:re.startLineNumber,endLineNumber:X,type:void 0,isCollapsed:!0,source:1}),V.setSelection({startLineNumber:re.startLineNumber,startColumn:1,endLineNumber:re.startLineNumber,endColumn:1}))}if($.length>0){$.sort((X,le)=>X.startLineNumber-le.startLineNumber);const re=o.FoldingRegions.sanitizeAndMerge(ne.regions,$,(H=V.getModel())===null||H===void 0?void 0:H.getLineCount());ne.updatePost(o.FoldingRegions.fromFoldRanges(re))}}}}class de extends A{constructor(){super({id:"editor.removeManualFoldingRanges",label:d.localize(16,null),alias:"Remove Manual Folding Ranges",precondition:z,kbOpts:{kbExpr:i.EditorContextKeys.editorTextFocus,primary:(0,I.KeyChord)(2089,2132),weight:100}})}invoke(Y,ne,V){const H=V.getSelections();if(H){const $=[];for(const oe of H){const{startLineNumber:re,endLineNumber:X}=oe;$.push(X>=re?{startLineNumber:re,endLineNumber:X}:{endLineNumber:X,startLineNumber:re})}ne.removeManualRanges($),Y.triggerFoldingModelChanged()}}}(0,g.registerEditorContribution)(R.ID,R,0),(0,g.registerEditorAction)(O),(0,g.registerEditorAction)(B),(0,g.registerEditorAction)(W),(0,g.registerEditorAction)(F),(0,g.registerEditorAction)(ue),(0,g.registerEditorAction)(J),(0,g.registerEditorAction)(U),(0,g.registerEditorAction)(Q),(0,g.registerEditorAction)(se),(0,g.registerEditorAction)(he),(0,g.registerEditorAction)(ie),(0,g.registerEditorAction)(j),(0,g.registerEditorAction)(G),(0,g.registerEditorAction)(te),(0,g.registerEditorAction)(Z),(0,g.registerEditorAction)(ae),(0,g.registerEditorAction)(de);for(let K=1;K<=7;K++)(0,g.registerInstantiatedEditorAction)(new x({id:x.ID(K),label:d.localize(17,null,K),alias:`Fold Level ${K}`,precondition:z,kbOpts:{kbExpr:i.EditorContextKeys.editorTextFocus,primary:(0,I.KeyChord)(2089,2048|21+K),weight:100}}));y.CommandsRegistry.registerCommand("_executeFoldingRangeProvider",function(K,...Y){return ye(this,void 0,void 0,function*(){const[ne]=Y;if(!(ne instanceof k.URI))throw(0,E.illegalArgument)();const V=K.get(p.ILanguageFeaturesService),H=K.get(D.IModelService).getModel(ne);if(!H)throw(0,E.illegalArgument)();const $=K.get(M.IConfigurationService);if(!$.getValue("editor.folding",{resource:ne}))return[];const oe=K.get(n.ILanguageConfigurationService),re=$.getValue("editor.foldingStrategy",{resource:ne}),X={get limit(){return $.getValue("editor.foldingMaximumRegions",{resource:ne})},update:(Ee,Me)=>{}},le=new c.IndentRangeProvider(H,oe,X);let me=le;if(re!=="indentation"){const Ee=R.getFoldingRangeProviders(V,H);Ee.length&&(me=new u.SyntaxRangeProvider(H,Ee,()=>{},X,le))}const we=yield me.compute(N.CancellationToken.None),Le=[];try{if(we)for(let Ee=0;Ee<we.length;Ee++){const Me=we.getType(Ee);Le.push({start:we.getStartLineNumber(Ee),end:we.getEndLineNumber(Ee),kind:Me?t.FoldingRangeKind.fromValue(Me):void 0})}return Le}finally{me.dispose()}})})}),define(_[823],ee([1,0,7,278,17,2,12,4,39,26,291,93,15,8,38,122,11,24]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContentHoverWidget=e.ContentHoverController=void 0;const s=C.$;let l=class hi extends I.Disposable{constructor(k,D,M){super(),this.k=k,this.l=D,this.n=M,this.g=this.q(this.l.createInstance(w,this.k)),this.j=null,this.c=[];for(const z of i.HoverParticipantRegistry.getAll())this.c.push(this.l.createInstance(z,this.k));this.c.sort((z,R)=>z.hoverOrdinal-R.hoverOrdinal),this.h=new p(this.k,this.c),this.i=this.q(new g.HoverOperation(this.k,this.h)),this.q(this.i.onResult(z=>{if(!this.h.anchor)return;const R=z.hasLoadingMessage?this.t(z.value):z.value;this.u(new o(this.h.anchor,R,z.isComplete))})),this.q(C.addStandardDisposableListener(this.g.getDomNode(),"keydown",z=>{z.equals(9)&&this.hide()})),this.q(f.TokenizationRegistry.onDidChange(()=>{this.g.position&&this.j&&(this.g.clear(),this.s(this.j))}))}maybeShowAt(k){const D=[];for(const z of this.c)if(z.suggestHoverAnchor){const R=z.suggestHoverAnchor(k);R&&D.push(R)}const M=k.target;if(M.type===6&&D.push(new i.HoverRangeAnchor(0,M.range,k.event.posx,k.event.posy)),M.type===7){const z=this.k.getOption(47).typicalHalfwidthCharacterWidth/2;!M.detail.isAfterLines&&typeof M.detail.horizontalDistanceToText=="number"&&M.detail.horizontalDistanceToText<z&&D.push(new i.HoverRangeAnchor(0,M.range,k.event.posx,k.event.posy))}return D.length===0?this.p(null,0,0,!1,k):(D.sort((z,R)=>R.priority-z.priority),this.p(D[0],0,0,!1,k))}startShowingAtRange(k,D,M,z){this.p(new i.HoverRangeAnchor(0,k,void 0,void 0),D,M,z,null)}p(k,D,M,z,R){return!this.g.position||!this.j?k?(this.r(k,D,M,z,!1),!0):!1:this.k.getOption(57).sticky&&R&&this.g.isMouseGettingCloser(R.event.posx,R.event.posy)?(k&&this.r(k,D,M,z,!0),!0):k?k&&this.j.anchor.equals(k)?!0:k.canAdoptVisibleHover(this.j.anchor,this.g.position)?(this.s(this.j.filter(k)),this.r(k,D,M,z,!1),!0):(this.s(null),this.r(k,D,M,z,!1),!0):(this.s(null),!1)}r(k,D,M,z,R){this.h.anchor&&this.h.anchor.equals(k)||(this.i.cancel(),this.h.anchor=k,this.h.shouldFocus=z,this.h.source=M,this.h.insistOnKeepingHoverVisible=R,this.i.start(D))}s(k){this.j!==k&&(k&&k.messages.length===0&&(k=null),this.j=k,this.j?this.v(this.j.anchor,this.j.messages):this.g.hide())}hide(){this.h.anchor=null,this.i.cancel(),this.s(null)}isColorPickerVisible(){return this.g.isColorPickerVisible}isVisibleFromKeyboard(){return this.g.isVisibleFromKeyboard}containsNode(k){return this.g.getDomNode().contains(k)}t(k){if(this.h.anchor){for(const D of this.c)if(D.createLoadingMessage){const M=D.createLoadingMessage(this.h.anchor);if(M)return k.slice(0).concat([M])}}return k}u(k){this.g.position&&this.j&&this.j.isComplete&&(!k.isComplete||this.h.insistOnKeepingHoverVisible&&k.messages.length===0)||this.s(k)}v(k,D){const{showAtPosition:M,showAtSecondaryPosition:z,highlightRange:R}=hi.computeHoverRanges(this.k,k.range,D),P=new I.DisposableStore,A=P.add(new m(this.n)),T=document.createDocumentFragment();let O=null;const B={fragment:T,statusBar:A,setColorPicker:j=>O=j,onContentsChanged:()=>this.g.onContentsChanged(),hide:()=>this.hide()};for(const j of this.c){const F=D.filter(U=>U.owner===j);F.length>0&&P.add(j.renderHoverParts(B,F))}const W=D.some(j=>j.isBeforeContent);if(A.hasContent&&T.appendChild(A.hoverElement),T.hasChildNodes()){if(R){const j=this.k.createDecorationsCollection();j.set([{range:R,options:hi.w}]),P.add((0,I.toDisposable)(()=>{j.clear()}))}this.g.showAt(T,new h(O,M,z,this.k.getOption(57).above,this.h.shouldFocus,this.h.source,W,k.initialMousePosX,k.initialMousePosY,P))}else P.dispose()}static computeHoverRanges(k,D,M){let z=1;if(k.hasModel()){const O=k._getViewModel(),B=O.coordinatesConverter,W=B.convertModelRangeToViewRange(D),j=new L.Position(W.startLineNumber,O.getLineMinColumn(W.startLineNumber));z=B.convertViewPositionToModelPosition(j).column}const R=D.startLineNumber;let P=D.startColumn,A=M[0].range,T=null;for(const O of M)A=S.Range.plusRange(A,O.range),O.range.startLineNumber===R&&O.range.endLineNumber===R&&(P=Math.max(Math.min(P,O.range.startColumn),z)),O.forceShowAtRange&&(T=O.range);return{showAtPosition:T?T.getStartPosition():new L.Position(R,D.startColumn),showAtSecondaryPosition:T?T.getStartPosition():new L.Position(R,P),highlightRange:A}}};l.w=v.ModelDecorationOptions.register({description:"content-hover-highlight",className:"hoverHighlight"}),l=Ne([ge(1,n.IInstantiationService),ge(2,a.IKeybindingService)],l),e.ContentHoverController=l;class o{constructor(k,D,M){this.anchor=k,this.messages=D,this.isComplete=M}filter(k){const D=this.messages.filter(M=>M.isValidForHoverAnchor(k));return D.length===this.messages.length?this:new u(this,this.anchor,D,this.isComplete)}}class u extends o{constructor(k,D,M,z){super(D,M,z),this.c=k}filter(k){return this.c.filter(k)}}class h{constructor(k,D,M,z,R,P,A,T,O,B){this.colorPicker=k,this.showAtPosition=D,this.showAtSecondaryPosition=M,this.preferAbove=z,this.stoleFocus=R,this.source=P,this.isBeforeContent=A,this.initialMousePosX=T,this.initialMousePosY=O,this.disposables=B,this.closestMouseDistance=void 0}}let w=class Xi extends I.Disposable{get position(){var k,D;return(D=(k=this.h)===null||k===void 0?void 0:k.showAtPosition)!==null&&D!==void 0?D:null}get isColorPickerVisible(){var k;return Boolean((k=this.h)===null||k===void 0?void 0:k.colorPicker)}get isVisibleFromKeyboard(){var k;return((k=this.h)===null||k===void 0?void 0:k.source)===1}constructor(k,D){super(),this.i=k,this.j=D,this.allowEditorOverflow=!0,this.c=d.EditorContextKeys.hoverVisible.bindTo(this.j),this.g=this.q(new N.HoverWidget),this.h=null,this.q(this.i.onDidLayoutChange(()=>this.l())),this.q(this.i.onDidChangeConfiguration(M=>{M.hasChanged(47)&&this.n()})),this.k(null),this.l(),this.i.addContentWidget(this)}dispose(){this.i.removeContentWidget(this),this.h&&this.h.disposables.dispose(),super.dispose()}getId(){return Xi.ID}getDomNode(){return this.g.containerDomNode}getPosition(){if(!this.h)return null;let k=this.h.preferAbove;!k&&this.j.getContextKeyValue(r.Context.Visible.key)&&(k=!0);const D=this.h.isBeforeContent?3:void 0;return{position:this.h.showAtPosition,secondaryPosition:this.h.showAtSecondaryPosition,preference:k?[1,2]:[2,1],positionAffinity:D}}isMouseGettingCloser(k,D){if(!this.h)return!1;if(typeof this.h.initialMousePosX>"u"||typeof this.h.initialMousePosY>"u")return this.h.initialMousePosX=k,this.h.initialMousePosY=D,!1;const M=C.getDomNodePagePosition(this.getDomNode());typeof this.h.closestMouseDistance>"u"&&(this.h.closestMouseDistance=b(this.h.initialMousePosX,this.h.initialMousePosY,M.left,M.top,M.width,M.height));const z=b(k,D,M.left,M.top,M.width,M.height);return z>this.h.closestMouseDistance+4?!1:(this.h.closestMouseDistance=Math.min(this.h.closestMouseDistance,z),!0)}k(k){this.h&&this.h.disposables.dispose(),this.h=k,this.c.set(!!this.h),this.g.containerDomNode.classList.toggle("hidden",!this.h)}l(){const k=Math.max(this.i.getLayoutInfo().height/4,250),{fontSize:D,lineHeight:M}=this.i.getOption(47);this.g.contentsDomNode.style.fontSize=`${D}px`,this.g.contentsDomNode.style.lineHeight=`${M/D}`,this.g.contentsDomNode.style.maxHeight=`${k}px`,this.g.contentsDomNode.style.maxWidth=`${Math.max(this.i.getLayoutInfo().width*.66,500)}px`}n(){Array.prototype.slice.call(this.g.contentsDomNode.getElementsByClassName("code")).forEach(D=>this.i.applyFontInfo(D))}showAt(k,D){var M;this.k(D),this.g.contentsDomNode.textContent="",this.g.contentsDomNode.appendChild(k),this.g.contentsDomNode.style.paddingBottom="",this.n(),this.onContentsChanged(),this.i.render(),this.onContentsChanged(),D.stoleFocus&&this.g.containerDomNode.focus(),(M=D.colorPicker)===null||M===void 0||M.layout()}hide(){if(this.h){const k=this.h.stoleFocus;this.k(null),this.i.layoutContentWidget(this),k&&this.i.focus()}}onContentsChanged(){this.i.layoutContentWidget(this),this.g.onContentsChanged();const k=this.g.scrollbar.getScrollDimensions();if(k.scrollWidth>k.width){const M=`${this.g.scrollbar.options.horizontalScrollbarSize}px`;this.g.contentsDomNode.style.paddingBottom!==M&&(this.g.contentsDomNode.style.paddingBottom=M,this.i.layoutContentWidget(this),this.g.onContentsChanged())}}clear(){this.g.contentsDomNode.textContent=""}};w.ID="editor.contrib.contentHoverWidget",w=Ne([ge(1,t.IContextKeyService)],w),e.ContentHoverWidget=w;let m=class extends I.Disposable{get hasContent(){return this.g}constructor(k){super(),this.h=k,this.g=!1,this.hoverElement=s("div.hover-row.status-bar"),this.c=C.append(this.hoverElement,s("div.actions"))}addAction(k){const D=this.h.lookupKeybinding(k.commandId),M=D?D.getLabel():null;return this.g=!0,this.q(N.HoverAction.render(this.c,k,M))}append(k){const D=C.append(this.c,k);return this.g=!0,D}};m=Ne([ge(0,a.IKeybindingService)],m);class p{get anchor(){return this.c}set anchor(k){this.c=k}get shouldFocus(){return this.f}set shouldFocus(k){this.f=k}get source(){return this.g}set source(k){this.g=k}get insistOnKeepingHoverVisible(){return this.h}set insistOnKeepingHoverVisible(k){this.h=k}constructor(k,D){this.i=k,this.j=D,this.c=null,this.f=!1,this.g=0,this.h=!1}static k(k,D){if(D.type!==1&&!D.supportsMarkerHover)return[];const M=k.getModel(),z=D.range.startLineNumber;if(z>M.getLineCount())return[];const R=M.getLineMaxColumn(z);return k.getLineDecorations(z).filter(P=>{if(P.options.isWholeLine)return!0;const A=P.range.startLineNumber===z?P.range.startColumn:1,T=P.range.endLineNumber===z?P.range.endColumn:R;if(P.options.showIfCollapsed){if(A>D.range.startColumn+1||D.range.endColumn-1>T)return!1}else if(A>D.range.startColumn||D.range.endColumn>T)return!1;return!0})}computeAsync(k){const D=this.c;if(!this.i.hasModel()||!D)return c.AsyncIterableObject.EMPTY;const M=p.k(this.i,D);return c.AsyncIterableObject.merge(this.j.map(z=>z.computeAsync?z.computeAsync(D,M,k):c.AsyncIterableObject.EMPTY))}computeSync(){if(!this.i.hasModel()||!this.c)return[];const k=p.k(this.i,this.c);let D=[];for(const M of this.j)D=D.concat(M.computeSync(this.c,k));return(0,E.coalesce)(D)}}function b(y,k,D,M,z,R){const P=D+z/2,A=M+R/2,T=Math.max(Math.abs(y-P)-z/2,0),O=Math.max(Math.abs(k-A)-R/2,0);return Math.sqrt(T*T+O*O)}}),define(_[824],ee([1,0,11,13,97,14,4,22,24,39,108,617,496,406]),function(q,e,C,N,E,I,L,S,v,f,g,i,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let n=class di{static get(d){return d.getContribution(di.ID)}constructor(d,s){this.b=d,this.c=s,this.d=this.b.createDecorationsCollection()}dispose(){}run(d,s){var l;(l=this.e)===null||l===void 0||l.cancel();const o=this.b.getSelection(),u=this.b.getModel();if(!u||!o)return;let h=o;if(h.startLineNumber!==h.endLineNumber)return;const w=new E.EditorState(this.b,5),m=u.uri;return this.c.canNavigateValueSet(m)?(this.e=(0,C.createCancelablePromise)(p=>this.c.navigateValueSet(m,h,s)),this.e.then(p=>{var b;if(!p||!p.range||!p.value||!w.validate(this.b))return;const y=L.Range.lift(p.range);let k=p.range;const D=p.value.length-(h.endColumn-h.startColumn);k={startLineNumber:k.startLineNumber,startColumn:k.startColumn,endLineNumber:k.endLineNumber,endColumn:k.startColumn+p.value.length},D>1&&(h=new S.Selection(h.startLineNumber,h.startColumn,h.endLineNumber,h.endColumn+D-1));const M=new t.InPlaceReplaceCommand(y,h,p.value);this.b.pushUndoStop(),this.b.executeCommand(d,M),this.b.pushUndoStop(),this.d.set([{range:k,options:di.a}]),(b=this.f)===null||b===void 0||b.cancel(),this.f=(0,C.timeout)(350),this.f.then(()=>this.d.clear()).catch(N.onUnexpectedError)}).catch(N.onUnexpectedError)):Promise.resolve(void 0)}};n.ID="editor.contrib.inPlaceReplaceController",n.a=f.ModelDecorationOptions.register({description:"in-place-replace",className:"valueSetReplacement"}),n=Ne([ge(1,g.IEditorWorkerService)],n);class a extends I.EditorAction{constructor(){super({id:"editor.action.inPlaceReplace.up",label:i.localize(0,null),alias:"Replace with Previous Value",precondition:v.EditorContextKeys.writable,kbOpts:{kbExpr:v.EditorContextKeys.editorTextFocus,primary:3154,weight:100}})}run(d,s){const l=n.get(s);return l?l.run(this.id,!0):Promise.resolve(void 0)}}class r extends I.EditorAction{constructor(){super({id:"editor.action.inPlaceReplace.down",label:i.localize(1,null),alias:"Replace with Next Value",precondition:v.EditorContextKeys.writable,kbOpts:{kbExpr:v.EditorContextKeys.editorTextFocus,primary:3156,weight:100}})}run(d,s){const l=n.get(s);return l?l.run(this.id,!1):Promise.resolve(void 0)}}(0,I.registerEditorContribution)(n.ID,n,4),(0,I.registerEditorAction)(a),(0,I.registerEditorAction)(r)}),define(_[825],ee([1,0,17,11,20,36,13,6,2,9,21,14,30,12,4,24,39,34,625,15,19,31,78,60,409]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s,l,o,u,h,w){"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 l.RawContextKey("LinkedEditingInputVisible",!1);const m="linked-editing-decoration";let p=class fi extends v.Disposable{static get(M){return M.getContribution(fi.ID)}constructor(M,z,R,P,A){super(),this.B=P,this.u=0,this.z=this.q(new v.DisposableStore),this.g=M,this.h=R.linkedEditingRangeProvider,this.j=!1,this.k=e.CONTEXT_ONTYPE_RENAME_INPUT_VISIBLE.bindTo(z),this.l=A.for(this.h,"Linked Editing",{min:200}),this.t=this.g.createDecorationsCollection(),this.v=null,this.w=null,this.y=!1,this.z=this.q(new v.DisposableStore),this.m=null,this.n=null,this.p=null,this.r=null,this.s=null,this.q(this.g.onDidChangeModel(()=>this.C(!0))),this.q(this.g.onDidChangeConfiguration(T=>{(T.hasChanged(66)||T.hasChanged(87))&&this.C(!1)})),this.q(this.h.onDidChange(()=>this.C(!1))),this.q(this.g.onDidChangeModelLanguage(()=>this.C(!0))),this.C(!0)}C(M){const z=this.g.getModel(),R=z!==null&&(this.g.getOption(66)||this.g.getOption(87))&&this.h.has(z);if(R===this.j&&!M||(this.j=R,this.clearRanges(),this.z.clear(),!R||z===null))return;this.z.add(S.Event.runAndSubscribe(z.onDidChangeLanguageConfiguration,()=>{this.v=this.B.getLanguageConfiguration(z.getLanguageId()).getWordDefinition()}));const P=new N.Delayer(this.l.get(z)),A=()=>{var B;this.m=P.trigger(()=>this.updateRanges(),(B=this.b)!==null&&B!==void 0?B:this.l.get(z))},T=new N.Delayer(0),O=B=>{this.n=T.trigger(()=>this.D(B))};this.z.add(this.g.onDidChangeCursorPosition(()=>{A()})),this.z.add(this.g.onDidChangeModelContent(B=>{if(!this.y&&this.t.length>0){const W=this.t.getRange(0);if(W&&B.changes.every(j=>W.intersectRanges(j.range))){O(this.u);return}}A()})),this.z.add({dispose:()=>{P.dispose(),T.dispose()}}),this.updateRanges()}D(M){if(!this.g.hasModel()||M!==this.u||this.t.length===0)return;const z=this.g.getModel(),R=this.t.getRange(0);if(!R||R.startLineNumber!==R.endLineNumber)return this.clearRanges();const P=z.getValueInRange(R);if(this.w){const T=P.match(this.w);if((T?T[0].length:0)!==P.length)return this.clearRanges()}const A=[];for(let T=1,O=this.t.length;T<O;T++){const B=this.t.getRange(T);if(!!B)if(B.startLineNumber!==B.endLineNumber)A.push({range:B,text:P});else{let W=z.getValueInRange(B),j=P,F=B.startColumn,U=B.endColumn;const Q=f.commonPrefixLength(W,j);F+=Q,W=W.substr(Q),j=j.substr(Q);const se=f.commonSuffixLength(W,j);U-=se,W=W.substr(0,W.length-se),j=j.substr(0,j.length-se),(F!==U||j.length!==0)&&A.push({range:new a.Range(B.startLineNumber,F,B.endLineNumber,U),text:j})}}if(A.length!==0)try{this.g.popUndoStop(),this.y=!0;const T=this.g._getViewModel().getPrevEditOperationType();this.g.executeEdits("linkedEditing",A),this.g._getViewModel().setPrevEditOperationType(T)}finally{this.y=!1}}dispose(){this.clearRanges(),super.dispose()}clearRanges(){this.k.set(!1),this.t.clear(),this.p&&(this.p.cancel(),this.p=null,this.r=null)}updateRanges(M=!1){return ye(this,void 0,void 0,function*(){if(!this.g.hasModel()){this.clearRanges();return}const z=this.g.getPosition();if(!this.j&&!M||this.g.getSelections().length>1){this.clearRanges();return}const R=this.g.getModel(),P=R.getVersionId();if(this.r&&this.s===P){if(z.equals(this.r))return;if(this.t.length>0){const T=this.t.getRange(0);if(T&&T.containsPosition(z))return}}this.r=z,this.s=P;const A=(0,N.createCancelablePromise)(T=>ye(this,void 0,void 0,function*(){try{const O=new w.StopWatch(!1),B=yield k(this.h,R,z,T);if(this.l.update(R,O.elapsed()),A!==this.p||(this.p=null,P!==R.getVersionId()))return;let W=[];B?.ranges&&(W=B.ranges),this.w=B?.wordPattern||this.v;let j=!1;for(let U=0,Q=W.length;U<Q;U++)if(a.Range.containsPosition(W[U],z)){if(j=!0,U!==0){const se=W[U];W.splice(U,1),W.unshift(se)}break}if(!j){this.clearRanges();return}const F=W.map(U=>({range:U,options:fi.a}));this.k.set(!0),this.t.set(F),this.u++}catch(O){(0,L.isCancellationError)(O)||(0,L.onUnexpectedError)(O),(this.p===A||!this.p)&&this.clearRanges()}}));return this.p=A,A})}};p.ID="editor.contrib.linkedEditing",p.a=c.ModelDecorationOptions.register({description:"linked-editing",stickiness:0,className:m}),p=Ne([ge(1,l.IContextKeyService),ge(2,o.ILanguageFeaturesService),ge(3,d.ILanguageConfigurationService),ge(4,h.ILanguageFeatureDebounceService)],p),e.LinkedEditingContribution=p;class b extends i.EditorAction{constructor(){super({id:"editor.action.linkedEditing",label:s.localize(0,null),alias:"Start Linked Editing",precondition:l.ContextKeyExpr.and(r.EditorContextKeys.writable,r.EditorContextKeys.hasRenameProvider),kbOpts:{kbExpr:r.EditorContextKeys.editorTextFocus,primary:3132,weight:100}})}runCommand(M,z){const R=M.get(t.ICodeEditorService),[P,A]=Array.isArray(z)&&z||[void 0,void 0];return g.URI.isUri(P)&&n.Position.isIPosition(A)?R.openCodeEditor({resource:P},R.getActiveCodeEditor()).then(T=>{!T||(T.setPosition(A),T.invokeWithinContext(O=>(this.q(O,T),this.run(O,T))))},L.onUnexpectedError):super.runCommand(M,z)}run(M,z){const R=p.get(z);return R?Promise.resolve(R.updateRanges(!0)):Promise.resolve()}}e.LinkedEditingAction=b;const y=i.EditorCommand.bindToContribution(p.get);(0,i.registerEditorCommand)(new y({id:"cancelLinkedEditingInput",precondition:e.CONTEXT_ONTYPE_RENAME_INPUT_VISIBLE,handler:D=>D.clearRanges(),kbOpts:{kbExpr:r.EditorContextKeys.editorTextFocus,weight:100+99,primary:9,secondary:[1033]}}));function k(D,M,z,R){const P=D.ordered(M);return(0,N.first)(P.map(A=>()=>ye(this,void 0,void 0,function*(){try{return yield A.provideLinkedEditingRanges(M,z,R)}catch(T){(0,L.onUnexpectedExternalError)(T);return}})),A=>!!A&&C.isNonEmptyArray(A?.ranges))}e.editorLinkedEditingBackground=(0,u.registerColor)("editor.linkedEditingBackground",{dark:I.Color.fromHex("#f00").transparent(.3),light:I.Color.fromHex("#f00").transparent(.3),hcDark:I.Color.fromHex("#f00").transparent(.3),hcLight:I.Color.white},s.localize(1,null)),(0,i.registerModelAndPositionCommand)("_executeLinkedEditingProvider",(D,M,z)=>{const{linkedEditingRangeProvider:R}=D.get(o.ILanguageFeaturesService);return k(R,M,z,E.CancellationToken.None)}),(0,i.registerEditorContribution)(p.ID,p,1),(0,i.registerEditorAction)(b)}),define(_[826],ee([1,0,11,20,13,72,2,48,16,44,60,21,14,39,78,19,170,687,626,42,50,410]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s,l,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinkDetector=void 0;let u=class Qi extends L.Disposable{static get(y){return y.getContribution(Qi.ID)}constructor(y,k,D,M,z){super(),this.l=y,this.m=k,this.n=D,this.p=M,this.a=this.p.linkProvider,this.b=z.for(this.a,"Links",{min:1e3,max:4e3}),this.c=this.q(new C.RunOnceScheduler(()=>this.r(),1e3)),this.g=null,this.h=null,this.k={},this.j=null;const R=this.q(new c.ClickLinkGesture(y));this.q(R.onMouseMoveOrRelevantKeyDown(([P,A])=>{this.t(P,A)})),this.q(R.onExecute(P=>{this.v(P)})),this.q(R.onCancel(P=>{this.u()})),this.q(y.onDidChangeConfiguration(P=>{!P.hasChanged(67)||(this.s([]),this.y(),this.c.schedule(0))})),this.q(y.onDidChangeModelContent(P=>{!this.l.hasModel()||this.c.schedule(this.b.get(this.l.getModel()))})),this.q(y.onDidChangeModel(P=>{this.k={},this.j=null,this.y(),this.c.schedule(0)})),this.q(y.onDidChangeModelLanguage(P=>{this.y(),this.c.schedule(0)})),this.q(this.a.onDidChange(P=>{this.y(),this.c.schedule(0)})),this.c.schedule(0)}r(){return ye(this,void 0,void 0,function*(){if(!this.l.hasModel()||!this.l.getOption(67))return;const y=this.l.getModel();if(!!this.a.has(y)){this.h&&(this.h.dispose(),this.h=null),this.g=(0,C.createCancelablePromise)(k=>(0,d.getLinks)(this.a,y,k));try{const k=new g.StopWatch(!1);if(this.h=yield this.g,this.b.update(y,k.elapsed()),y.isDisposed())return;this.s(this.h.links)}catch(k){(0,E.onUnexpectedError)(k)}finally{this.g=null}}})}s(y){const k=this.l.getOption(74)==="altKey",D=[],M=Object.keys(this.k);for(const R of M){const P=this.k[R];D.push(P.decorationId)}const z=[];if(y)for(const R of y)z.push(w.decoration(R,k));this.l.changeDecorations(R=>{const P=R.deltaDecorations(D,z);this.k={},this.j=null;for(let A=0,T=P.length;A<T;A++){const O=new w(y[A],P[A]);this.k[O.decorationId]=O}})}t(y,k){const D=this.l.getOption(74)==="altKey";if(this.w(y,k)){this.u();const M=this.getLinkOccurrence(y.target.position);M&&this.l.changeDecorations(z=>{M.activate(z,D),this.j=M.decorationId})}else this.u()}u(){const y=this.l.getOption(74)==="altKey";if(this.j){const k=this.k[this.j];k&&this.l.changeDecorations(D=>{k.deactivate(D,y)}),this.j=null}}v(y){if(!this.w(y))return;const k=this.getLinkOccurrence(y.target.position);!k||this.openLinkOccurrence(k,y.hasSideBySideModifier,!0)}openLinkOccurrence(y,k,D=!1){if(!this.m)return;const{link:M}=y;M.resolve(N.CancellationToken.None).then(z=>{if(typeof z=="string"&&this.l.hasModel()){const R=this.l.getModel().uri;if(R.scheme===S.Schemas.file&&z.startsWith(`${S.Schemas.file}:`)){const P=i.URI.parse(z);if(P.scheme===S.Schemas.file){const A=f.originalFSPath(P);let T=null;A.startsWith("/./")?T=`.${A.substr(1)}`:A.startsWith("//./")&&(T=`.${A.substr(2)}`),T&&(z=f.joinPath(R,T))}}}return this.m.open(z,{openToSide:k,fromUserGesture:D,allowContributedOpeners:!0,allowCommands:!0,fromWorkspace:!0})},z=>{const R=z instanceof Error?z.message:z;R==="invalid"?this.n.warn(s.localize(0,null,M.url.toString())):R==="missing"?this.n.warn(s.localize(1,null)):(0,E.onUnexpectedError)(z)})}getLinkOccurrence(y){if(!this.l.hasModel()||!y)return null;const k=this.l.getModel().getDecorationsInRange({startLineNumber:y.lineNumber,startColumn:y.column,endLineNumber:y.lineNumber,endColumn:y.column},0,!0);for(const D of k){const M=this.k[D.id];if(M)return M}return null}w(y,k){return Boolean(y.target.type===6&&(y.hasTriggerModifier||k&&k.keyCodeIsTriggerKey))}y(){var y;this.c.cancel(),this.h&&((y=this.h)===null||y===void 0||y.dispose(),this.h=null),this.g&&(this.g.cancel(),this.g=null)}dispose(){super.dispose(),this.y()}};u.ID="editor.linkDetector",u=Ne([ge(1,o.IOpenerService),ge(2,l.INotificationService),ge(3,r.ILanguageFeaturesService),ge(4,a.ILanguageFeatureDebounceService)],u),e.LinkDetector=u;const h={general:n.ModelDecorationOptions.register({description:"detected-link",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link"}),active:n.ModelDecorationOptions.register({description:"detected-link-active",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link-active"})};class w{static decoration(y,k){return{range:y.range,options:w.a(y,k,!1)}}static a(y,k,D){const M=Object.assign({},D?h.active:h.general);return M.hoverMessage=m(y,k),M}constructor(y,k){this.link=y,this.decorationId=k}activate(y,k){y.changeDecorationOptions(this.decorationId,w.a(this.link,k,!0))}deactivate(y,k){y.changeDecorationOptions(this.decorationId,w.a(this.link,k,!1))}}function m(b,y){const k=b.url&&/^command:/i.test(b.url.toString()),D=b.tooltip?b.tooltip:k?s.localize(2,null):s.localize(3,null),M=y?v.isMacintosh?s.localize(4,null):s.localize(5,null):v.isMacintosh?s.localize(6,null):s.localize(7,null);if(b.url){let z="";if(/^command:/i.test(b.url.toString())){const P=b.url.toString().match(/^command:([^?#]+)/);if(P){const A=P[1];z=s.localize(8,null,A)}}return new I.MarkdownString("",!0).appendLink(b.url.toString(!0).replace(/ /g,"%20"),D,z).appendMarkdown(` (${M})`)}else return new I.MarkdownString().appendText(`${D} (${M})`)}class p extends t.EditorAction{constructor(){super({id:"editor.action.openLink",label:s.localize(9,null),alias:"Open Link",precondition:void 0})}run(y,k){const D=u.get(k);if(!D||!k.hasModel())return;const M=k.getSelections();for(const z of M){const R=D.getLinkOccurrence(z.getEndPosition());R&&D.openLinkOccurrence(R,!1)}}}(0,t.registerEditorContribution)(u.ID,u,1),(0,t.registerEditorAction)(p)}),define(_[827],ee([1,0,2,19,174,20,11,6,17,54,326,44]),function(q,e,C,N,E,I,L,S,v,f,g,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StickyLineCandidateProvider=e.StickyLineCandidate=e.StickyRange=void 0;class t{constructor(s,l){this.startLineNumber=s,this.endLineNumber=l}}e.StickyRange=t;class n{constructor(s,l,o){this.startLineNumber=s,this.endLineNumber=l,this.nestingDepth=o}}e.StickyLineCandidate=n;let a=class extends C.Disposable{constructor(s,l){super(),this.c=this.f.add(new S.Emitter),this.onDidChangeStickyScroll=this.c.event,this.k=new C.DisposableStore,this.g=s,this.h=l,this.j=this.q(new L.RunOnceScheduler(()=>this.update(),50)),this.q(this.g.onDidChangeConfiguration(o=>{o.hasChanged(109)&&this.n()})),this.n()}dispose(){super.dispose(),this.k.dispose()}n(){if(this.g.getOption(109).enabled===!1){this.k.clear();return}else this.k.add(this.g.onDidChangeModel(()=>{this.update()})),this.k.add(this.g.onDidChangeHiddenAreas(()=>this.update())),this.k.add(this.g.onDidChangeModelContent(()=>this.j.schedule())),this.k.add(this.h.documentSymbolProvider.onDidChange(()=>{this.update()})),this.update()}getVersionId(){var s;return(s=this.m)===null||s===void 0?void 0:s.version}update(){var s;return ye(this,void 0,void 0,function*(){(s=this.l)===null||s===void 0||s.dispose(!0),this.l=new I.CancellationTokenSource,yield this.p(this.l.token),this.c.fire()})}p(s){var l;return ye(this,void 0,void 0,function*(){if(!this.g.hasModel())return;const o=this.g.getModel(),u=o.getVersionId(),w=(this.m?!(0,i.isEqual)(this.m.uri,o.uri):!1)?setTimeout(()=>{s.isCancellationRequested||(this.m=new c(o.uri,o.getVersionId(),void 0,void 0),this.c.fire())},75):void 0,m=yield E.OutlineModel.create(this.h.documentSymbolProvider,o,s);if(!s.isCancellationRequested){if(m.children.size!==0){const{stickyOutlineElement:p,providerID:b}=r.fromOutlineModel(m,(l=this.m)===null||l===void 0?void 0:l.outlineProviderId);this.m=new c(o.uri,u,p,b)}else{const p=g.FoldingController.get(this.g),b=yield p?.getFoldingModel();if(s.isCancellationRequested)return;if(b&&b.regions.length!==0){const y=r.fromFoldingModel(b);this.m=new c(o.uri,u,y,void 0)}else this.m=void 0}clearTimeout(w)}})}r(s){return s===-1?s=0:s<0&&(s=-s-2),s}getCandidateStickyLinesIntersectingFromOutline(s,l,o,u,h){if(l.children.length===0)return;let w=h;const m=[];for(let y=0;y<l.children.length;y++){const k=l.children[y];k.range&&m.push(k.range.startLineNumber)}const p=this.r((0,v.binarySearch)(m,s.startLineNumber,(y,k)=>y-k)),b=this.r((0,v.binarySearch)(m,s.startLineNumber+u,(y,k)=>y-k));for(let y=p;y<=b;y++){const k=l.children[y];if(!k)return;if(k.range){const D=k.range.startLineNumber,M=k.range.endLineNumber;s.startLineNumber<=M+1&&D-1<=s.endLineNumber&&D!==w&&(w=D,o.push(new n(D,M-1,u+1)),this.getCandidateStickyLinesIntersectingFromOutline(s,k,o,u+1,D))}else this.getCandidateStickyLinesIntersectingFromOutline(s,k,o,u,h)}}getCandidateStickyLinesIntersecting(s){var l,o;if(!(!((l=this.m)===null||l===void 0)&&l.element))return[];let u=[];this.getCandidateStickyLinesIntersectingFromOutline(s,this.m.element,u,0,-1);const h=(o=this.g._getViewModel())===null||o===void 0?void 0:o.getHiddenAreas();if(h)for(const w of h)u=u.filter(m=>!(m.startLineNumber>=w.startLineNumber&&m.endLineNumber<=w.endLineNumber+1));return u}};a=Ne([ge(1,N.ILanguageFeaturesService)],a),e.StickyLineCandidateProvider=a;class r{static c(s,l){return s.startLineNumber!==l.startLineNumber?s.startLineNumber-l.startLineNumber:l.endLineNumber-s.endLineNumber}static fromOutlineElement(s,l){const o=[];for(const h of s.children.values())if(h.symbol.selectionRange.startLineNumber!==h.symbol.range.endLineNumber)if(h.symbol.selectionRange.startLineNumber!==l)o.push(r.fromOutlineElement(h,h.symbol.selectionRange.startLineNumber));else for(const w of h.children.values())o.push(r.fromOutlineElement(w,h.symbol.selectionRange.startLineNumber));o.sort((h,w)=>this.c(h.range,w.range));const u=new t(s.symbol.selectionRange.startLineNumber,s.symbol.range.endLineNumber);return new r(u,o,void 0)}static fromOutlineModel(s,l){let o;if(f.Iterable.first(s.children.values())instanceof E.OutlineGroup){const m=f.Iterable.find(s.children.values(),p=>p.id===l);if(m)o=m.children;else{let p="",b=-1,y;for(const[k,D]of s.children.entries()){const M=r.d(D);M>b&&(y=D,b=M,p=D.id)}l=p,o=y.children}}else o=s.children;const u=[],h=Array.from(o.values()).sort((m,p)=>{const b=new t(m.symbol.range.startLineNumber,m.symbol.range.endLineNumber),y=new t(p.symbol.range.startLineNumber,p.symbol.range.endLineNumber);return this.c(b,y)});for(const m of h)u.push(r.fromOutlineElement(m,m.symbol.selectionRange.startLineNumber));return{stickyOutlineElement:new r(void 0,u,void 0),providerID:l}}static d(s){let l=0;for(const o of s.children.values())l+=this.d(o);return s instanceof E.OutlineElement?l+s.symbol.range.endLineNumber-s.symbol.selectionRange.startLineNumber:l}static fromFoldingModel(s){const l=s.regions,o=l.length;let u;const h=[],w=new r(void 0,[],void 0);let m=w;for(let p=0;p<o;p++){for(u=new t(l.getStartLineNumber(p),l.getEndLineNumber(p)+1);h.length!==0&&(u.startLineNumber<h[h.length-1].startLineNumber||u.endLineNumber>h[h.length-1].endLineNumber);)h.pop(),m.parent!==void 0&&(m=m.parent);const b=new r(u,[],m);m.children.push(b),m=b,h.push(u)}return w}constructor(s,l,o){this.range=s,this.children=l,this.parent=o}}class c{constructor(s,l,o,u){this.uri=s,this.version=l,this.element=o,this.outlineProviderId=u}}}),define(_[828],ee([1,0,7,106,11,13,6,2,128,9,149,806,643,15,8,84,31,91,23,276,122,308,801,98,154,417,231]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s,l,o,u,h,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SuggestContentWidget=e.SuggestWidget=e.editorSuggestWidgetSelectedBackground=void 0,(0,c.registerColor)("editorSuggestWidget.background",{dark:c.editorWidgetBackground,light:c.editorWidgetBackground,hcDark:c.editorWidgetBackground,hcLight:c.editorWidgetBackground},t.localize(0,null)),(0,c.registerColor)("editorSuggestWidget.border",{dark:c.editorWidgetBorder,light:c.editorWidgetBorder,hcDark:c.editorWidgetBorder,hcLight:c.editorWidgetBorder},t.localize(1,null));const m=(0,c.registerColor)("editorSuggestWidget.foreground",{dark:c.editorForeground,light:c.editorForeground,hcDark:c.editorForeground,hcLight:c.editorForeground},t.localize(2,null));(0,c.registerColor)("editorSuggestWidget.selectedForeground",{dark:c.quickInputListFocusForeground,light:c.quickInputListFocusForeground,hcDark:c.quickInputListFocusForeground,hcLight:c.quickInputListFocusForeground},t.localize(3,null)),(0,c.registerColor)("editorSuggestWidget.selectedIconForeground",{dark:c.quickInputListFocusIconForeground,light:c.quickInputListFocusIconForeground,hcDark:c.quickInputListFocusIconForeground,hcLight:c.quickInputListFocusIconForeground},t.localize(4,null)),e.editorSuggestWidgetSelectedBackground=(0,c.registerColor)("editorSuggestWidget.selectedBackground",{dark:c.quickInputListFocusBackground,light:c.quickInputListFocusBackground,hcDark:c.quickInputListFocusBackground,hcLight:c.quickInputListFocusBackground},t.localize(5,null)),(0,c.registerColor)("editorSuggestWidget.highlightForeground",{dark:c.listHighlightForeground,light:c.listHighlightForeground,hcDark:c.listHighlightForeground,hcLight:c.listHighlightForeground},t.localize(6,null)),(0,c.registerColor)("editorSuggestWidget.focusHighlightForeground",{dark:c.listFocusHighlightForeground,light:c.listFocusHighlightForeground,hcDark:c.listFocusHighlightForeground,hcLight:c.listFocusHighlightForeground},t.localize(7,null)),(0,c.registerColor)("editorSuggestWidgetStatus.foreground",{dark:(0,c.transparent)(m,.5),light:(0,c.transparent)(m,.5),hcDark:(0,c.transparent)(m,.5),hcLight:(0,c.transparent)(m,.5)},t.localize(8,null));class p{constructor(D,M){this.b=D,this.a=`suggestWidget.size/${M.getEditorType()}/${M instanceof g.EmbeddedCodeEditorWidget}`}restore(){var D;const M=(D=this.b.get(this.a,0))!==null&&D!==void 0?D:"";try{const z=JSON.parse(M);if(C.Dimension.is(z))return C.Dimension.lift(z)}catch{}}store(D){this.b.store(this.a,JSON.stringify(D),0,1)}reset(){this.b.remove(this.a,0)}}let b=class gi{constructor(D,M,z,R,P){this.I=D,this.J=M,this.c=0,this.d=!1,this.g=new S.MutableDisposable,this.h=new S.MutableDisposable,this.k=!1,this.n=!1,this.o=!1,this.B=new E.TimeoutTimer,this.C=new S.DisposableStore,this.D=new L.PauseableEmitter,this.E=new L.PauseableEmitter,this.F=new L.Emitter,this.G=new L.Emitter,this.onDidSelect=this.D.event,this.onDidFocus=this.E.event,this.onDidHide=this.F.event,this.onDidShow=this.G.event,this.H=new L.Emitter,this.onDetailsKeyDown=this.H.event,this.element=new l.ResizableHTMLElement,this.element.domNode.classList.add("editor-widget","suggest-widget"),this.v=new y(this,D),this.w=new p(M,D);class A{constructor(U,Q,se=!1,he=!1){this.persistedSize=U,this.currentSize=Q,this.persistHeight=se,this.persistWidth=he}}let T;this.C.add(this.element.onDidWillResize(()=>{this.v.lockPreference(),T=new A(this.w.restore(),this.element.size)})),this.C.add(this.element.onDidResize(F=>{var U,Q,se,he;if(this.U(F.dimension.width,F.dimension.height),T&&(T.persistHeight=T.persistHeight||!!F.north||!!F.south,T.persistWidth=T.persistWidth||!!F.east||!!F.west),!!F.done){if(T){const{itemHeight:ie,defaultSize:ue}=this.getLayoutInfo(),J=Math.round(ie/2);let{width:x,height:G}=this.element.size;(!T.persistHeight||Math.abs(T.currentSize.height-G)<=J)&&(G=(Q=(U=T.persistedSize)===null||U===void 0?void 0:U.height)!==null&&Q!==void 0?Q:ue.height),(!T.persistWidth||Math.abs(T.currentSize.width-x)<=J)&&(x=(he=(se=T.persistedSize)===null||se===void 0?void 0:se.width)!==null&&he!==void 0?he:ue.width),this.w.store(new C.Dimension(x,G))}this.v.unlockPreference(),T=void 0}})),this.p=C.append(this.element.domNode,C.$(".message")),this.q=C.append(this.element.domNode,C.$(".tree"));const O=P.createInstance(u.SuggestDetailsWidget,this.I);O.onDidClose(this.toggleDetails,this,this.C),this.u=new u.SuggestDetailsOverlay(O,this.I);const B=()=>this.element.domNode.classList.toggle("no-icons",!this.I.getOption(112).showIcons);B();const W=P.createInstance(h.ItemRenderer,this.I);this.C.add(W),this.C.add(W.onDidToggleDetails(()=>this.toggleDetails())),this.r=new N.List("SuggestWidget",this.q,{getHeight:F=>this.getLayoutInfo().itemHeight,getTemplateId:F=>"suggestion"},[W],{alwaysConsumeMouseWheel:!0,useShadows:!1,mouseSupport:!1,multipleSelectionSupport:!1,accessibilityProvider:{getRole:()=>"option",getWidgetAriaLabel:()=>t.localize(11,null),getWidgetRole:()=>"listbox",getAriaLabel:F=>{let U=F.textLabel;if(typeof F.completion.label!="string"){const{detail:ie,description:ue}=F.completion.label;ie&&ue?U=t.localize(12,null,U,ie,ue):ie?U=t.localize(13,null,U,ie):ue&&(U=t.localize(14,null,U,ue))}if(!F.isResolved||!this.W())return U;const{documentation:Q,detail:se}=F.completion,he=f.format("{0}{1}",se||"",Q?typeof Q=="string"?Q:Q.value:"");return t.localize(15,null,U,he)}}}),this.r.style((0,w.getListStyles)({listInactiveFocusBackground:e.editorSuggestWidgetSelectedBackground,listInactiveFocusOutline:c.activeContrastBorder})),this.s=P.createInstance(i.SuggestWidgetStatus,this.element.domNode,o.suggestWidgetStatusbarMenu);const j=()=>this.element.domNode.classList.toggle("with-status-bar",this.I.getOption(112).showStatusBar);j(),this.C.add(R.onDidColorThemeChange(F=>this.P(F))),this.P(R.getColorTheme()),this.C.add(this.r.onMouseDown(F=>this.M(F))),this.C.add(this.r.onTap(F=>this.M(F))),this.C.add(this.r.onDidChangeSelection(F=>this.N(F))),this.C.add(this.r.onDidChangeFocus(F=>this.Q(F))),this.C.add(this.I.onDidChangeCursorSelection(()=>this.L())),this.C.add(this.I.onDidChangeConfiguration(F=>{F.hasChanged(112)&&(j(),B())})),this.x=o.Context.Visible.bindTo(z),this.y=o.Context.DetailsVisible.bindTo(z),this.z=o.Context.MultipleSuggestions.bindTo(z),this.A=o.Context.HasFocusedSuggestion.bindTo(z),this.C.add(C.addStandardDisposableListener(this.u.widget.domNode,"keydown",F=>{this.H.fire(F)})),this.C.add(this.I.onMouseDown(F=>this.K(F)))}dispose(){var D;this.u.widget.dispose(),this.u.dispose(),this.r.dispose(),this.s.dispose(),this.C.dispose(),(D=this.f)===null||D===void 0||D.dispose(),this.g.dispose(),this.h.dispose(),this.B.dispose(),this.v.dispose(),this.element.dispose()}K(D){this.u.widget.domNode.contains(D.target.element)?this.u.widget.domNode.focus():this.element.domNode.contains(D.target.element)&&this.I.focus()}L(){this.c!==0&&this.v.layout()}M(D){typeof D.element>"u"||typeof D.index>"u"||(D.browserEvent.preventDefault(),D.browserEvent.stopPropagation(),this.O(D.element,D.index))}N(D){D.elements.length&&this.O(D.elements[0],D.indexes[0])}O(D,M){const z=this.l;z&&(this.D.fire({item:D,index:M,model:z}),this.I.focus())}P(D){this.u.widget.borderWidth=(0,d.isHighContrast)(D.type)?2:1}Q(D){var M;if(this.k)return;if(!D.elements.length){this.i&&(this.i.cancel(),this.i=void 0,this.j=void 0),this.I.setAriaOptions({activeDescendant:void 0}),this.A.set(!1);return}if(!this.l)return;this.A.set(!0);const z=D.elements[0],R=D.indexes[0];z!==this.j&&((M=this.i)===null||M===void 0||M.cancel(),this.i=void 0,this.j=z,this.r.reveal(R),this.i=(0,E.createCancelablePromise)(P=>ye(this,void 0,void 0,function*(){const A=(0,E.disposableTimeout)(()=>{this.W()&&this.showDetails(!0)},250),T=P.onCancellationRequested(()=>A.dispose()),O=yield z.resolve(P);return A.dispose(),T.dispose(),O})),this.i.then(()=>{R>=this.r.length||z!==this.r.element(R)||(this.k=!0,this.r.splice(R,1,[z]),this.r.setFocus([R]),this.k=!1,this.W()?this.showDetails(!1):this.element.domNode.classList.remove("docs-side"),this.I.setAriaOptions({activeDescendant:(0,h.getAriaId)(R)}))}).catch(I.onUnexpectedError)),this.E.fire({item:z,index:R,model:this.l})}R(D){if(this.c!==D)switch(this.c=D,this.element.domNode.classList.toggle("frozen",D===4),this.element.domNode.classList.remove("message"),D){case 0:C.hide(this.p,this.q,this.s.element),this.u.hide(!0),this.s.hide(),this.v.hide(),this.x.reset(),this.z.reset(),this.A.reset(),this.B.cancel(),this.element.domNode.classList.remove("visible"),this.r.splice(0,this.r.length),this.j=void 0,this.m=void 0,this.o=!1;break;case 1:this.element.domNode.classList.add("message"),this.p.textContent=gi.a,C.hide(this.q,this.s.element),C.show(this.p),this.u.hide(),this.S(),this.j=void 0;break;case 2:this.element.domNode.classList.add("message"),this.p.textContent=gi.b,C.hide(this.q,this.s.element),C.show(this.p),this.u.hide(),this.S(),this.j=void 0;break;case 3:C.hide(this.p),C.show(this.q,this.s.element),this.S();break;case 4:C.hide(this.p),C.show(this.q,this.s.element),this.S();break;case 5:C.hide(this.p),C.show(this.q,this.s.element),this.u.show(),this.S();break}}S(){this.s.show(),this.v.show(),this.T(this.w.restore()),this.x.set(!0),this.B.cancelAndSet(()=>{this.element.domNode.classList.add("visible"),this.G.fire(this)},100)}showTriggered(D,M){this.c===0&&(this.v.setPosition(this.I.getPosition()),this.d=!!D,this.d||(this.f=(0,E.disposableTimeout)(()=>this.R(1),M)))}showSuggestions(D,M,z,R,P){var A,T;if(this.v.setPosition(this.I.getPosition()),(A=this.f)===null||A===void 0||A.dispose(),(T=this.i)===null||T===void 0||T.cancel(),this.i=void 0,this.l!==D&&(this.l=D),z&&this.c!==2&&this.c!==0){this.R(4);return}const O=this.l.items.length,B=O===0;if(this.z.set(O>1),B){this.R(R?0:2),this.l=void 0;return}this.j=void 0,this.E.pause(),this.D.pause();try{this.r.splice(0,this.r.length,this.l.items),this.R(z?4:3),this.r.reveal(M,0),this.r.setFocus(P?[]:[M])}finally{this.E.resume(),this.D.resume()}this.g.value=C.runAtThisOrScheduleAtNextAnimationFrame(()=>{this.g.clear(),this.T(this.element.size),this.u.widget.domNode.classList.remove("focused")})}focusSelected(){this.r.length>0&&this.r.setFocus([0])}selectNextPage(){switch(this.c){case 0:return!1;case 5:return this.u.widget.pageDown(),!0;case 1:return!this.d;default:return this.r.focusNextPage(),!0}}selectNext(){switch(this.c){case 0:return!1;case 1:return!this.d;default:return this.r.focusNext(1,!0),!0}}selectLast(){switch(this.c){case 0:return!1;case 5:return this.u.widget.scrollBottom(),!0;case 1:return!this.d;default:return this.r.focusLast(),!0}}selectPreviousPage(){switch(this.c){case 0:return!1;case 5:return this.u.widget.pageUp(),!0;case 1:return!this.d;default:return this.r.focusPreviousPage(),!0}}selectPrevious(){switch(this.c){case 0:return!1;case 1:return!this.d;default:return this.r.focusPrevious(1,!0),!1}}selectFirst(){switch(this.c){case 0:return!1;case 5:return this.u.widget.scrollTop(),!0;case 1:return!this.d;default:return this.r.focusFirst(),!0}}getFocusedItem(){if(this.c!==0&&this.c!==2&&this.c!==1&&this.l&&this.r.getFocus().length>0)return{item:this.r.getFocusedElements()[0],index:this.r.getFocus()[0],model:this.l}}toggleDetailsFocus(){this.c===5?(this.R(3),this.u.widget.domNode.classList.remove("focused")):this.c===3&&this.W()&&(this.R(5),this.u.widget.domNode.classList.add("focused"))}toggleDetails(){this.W()?(this.h.clear(),this.y.set(!1),this.X(!1),this.u.hide(),this.element.domNode.classList.remove("shows-details")):((0,u.canExpandCompletionItem)(this.r.getFocusedElements()[0])||this.o)&&(this.c===3||this.c===5||this.c===4)&&(this.y.set(!0),this.X(!0),this.showDetails(!1))}showDetails(D){this.h.value=C.runAtThisOrScheduleAtNextAnimationFrame(()=>{this.h.clear(),this.u.show(),D?this.u.widget.renderLoading():this.u.widget.renderItem(this.r.getFocusedElements()[0],this.o),this.V(),this.I.focus(),this.element.domNode.classList.add("shows-details")})}toggleExplainMode(){this.r.getFocusedElements()[0]&&(this.o=!this.o,this.W()?this.showDetails(!1):this.toggleDetails())}resetPersistedSize(){this.w.reset()}hideWidget(){var D;this.g.clear(),this.h.clear(),(D=this.f)===null||D===void 0||D.dispose(),this.R(0),this.F.fire(this),this.element.clearSashHoverState();const M=this.w.restore(),z=Math.ceil(this.getLayoutInfo().itemHeight*4.3);M&&M.height<z&&this.w.store(M.with(void 0,z))}isFrozen(){return this.c===4}_afterRender(D){if(D===null){this.W()&&this.u.hide();return}this.c===2||this.c===1||(this.W()&&this.u.show(),this.V())}T(D){var M,z,R;if(!this.I.hasModel()||!this.I.getDomNode())return;const P=C.getClientArea(document.body),A=this.getLayoutInfo();D||(D=A.defaultSize);let T=D.height,O=D.width;if(this.s.element.style.height=`${A.itemHeight}px`,this.c===2||this.c===1)T=A.itemHeight+A.borderHeight,O=A.defaultSize.width/2,this.element.enableSashes(!1,!1,!1,!1),this.element.minSize=this.element.maxSize=new C.Dimension(O,T),this.v.setPreference(2);else{const B=P.width-A.borderHeight-2*A.horizontalPadding;O>B&&(O=B);const W=this.l?this.l.stats.pLabelLen*A.typicalHalfwidthCharacterWidth:O,j=A.statusBarHeight+this.r.contentHeight+A.borderHeight,F=A.itemHeight+A.statusBarHeight,U=C.getDomNodePagePosition(this.I.getDomNode()),Q=this.I.getScrolledVisiblePosition(this.I.getPosition()),se=U.top+Q.top+Q.height,he=Math.min(P.height-se-A.verticalPadding,j),ie=U.top+Q.top-A.verticalPadding,ue=Math.min(ie,j);let J=Math.min(Math.max(ue,he)+A.borderHeight,j);T===((M=this.m)===null||M===void 0?void 0:M.capped)&&(T=this.m.wanted),T<F&&(T=F),T>J&&(T=J);const x=150;T>he||this.n&&ie>x?(this.v.setPreference(1),this.element.enableSashes(!0,!0,!1,!1),J=ue):(this.v.setPreference(2),this.element.enableSashes(!1,!0,!0,!1),J=he),this.element.preferredSize=new C.Dimension(W,A.defaultSize.height),this.element.maxSize=new C.Dimension(B,J),this.element.minSize=new C.Dimension(220,F),this.m=T===j?{wanted:(R=(z=this.m)===null||z===void 0?void 0:z.wanted)!==null&&R!==void 0?R:D.height,capped:T}:void 0}this.U(O,T)}U(D,M){const{width:z,height:R}=this.element.maxSize;D=Math.min(z,D),M=Math.min(R,M);const{statusBarHeight:P}=this.getLayoutInfo();this.r.layout(M-P,D),this.q.style.height=`${M-P}px`,this.element.layout(M,D),this.v.layout(),this.V()}V(){var D;this.W()&&this.u.placeAtAnchor(this.element.domNode,((D=this.v.getPosition())===null||D===void 0?void 0:D.preference[0])===2)}getLayoutInfo(){const D=this.I.getOption(47),M=(0,v.clamp)(this.I.getOption(114)||D.lineHeight,8,1e3),z=!this.I.getOption(112).showStatusBar||this.c===2||this.c===1?0:M,R=this.u.widget.borderWidth,P=2*R;return{itemHeight:M,statusBarHeight:z,borderWidth:R,borderHeight:P,typicalHalfwidthCharacterWidth:D.typicalHalfwidthCharacterWidth,verticalPadding:22,horizontalPadding:14,defaultSize:new C.Dimension(430,z+12*M+P)}}W(){return this.J.getBoolean("expandSuggestionDocs",0,!1)}X(D){this.J.store("expandSuggestionDocs",D,0,0)}forceRenderingAbove(){this.n||(this.n=!0,this.T(this.w.restore()))}stopForceRenderingAbove(){this.n=!1}};b.a=t.localize(9,null),b.b=t.localize(10,null),b=Ne([ge(1,r.IStorageService),ge(2,n.IContextKeyService),ge(3,s.IThemeService),ge(4,a.IInstantiationService)],b),e.SuggestWidget=b;class y{constructor(D,M){this.g=D,this.h=M,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.c=!1,this.d=!1,this.f=!1}dispose(){this.d&&(this.d=!1,this.h.removeContentWidget(this))}getId(){return"editor.widget.suggestWidget"}getDomNode(){return this.g.element.domNode}show(){this.f=!1,this.d||(this.d=!0,this.h.addContentWidget(this))}hide(){this.f||(this.f=!0,this.layout())}layout(){this.h.layoutContentWidget(this)}getPosition(){return this.f||!this.a||!this.b?null:{position:this.a,preference:[this.b]}}beforeRender(){const{height:D,width:M}=this.g.element.size,{borderWidth:z,horizontalPadding:R}=this.g.getLayoutInfo();return new C.Dimension(M+2*z+R,D+2*z)}afterRender(D){this.g._afterRender(D)}setPreference(D){this.c||(this.b=D)}lockPreference(){this.c=!0}unlockPreference(){this.c=!1}setPosition(D){this.a=D}}e.SuggestContentWidget=y}),define(_[327],ee([1,0,47,39,26,652,31,23,421]),function(q,e,C,N,E,I,L,S){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSelectionHighlightDecorationOptions=e.getHighlightDecorationOptions=void 0;const v=(0,L.registerColor)("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hcDark:null,hcLight:null},I.localize(0,null),!0);(0,L.registerColor)("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hcDark:null,hcLight:null},I.localize(1,null),!0),(0,L.registerColor)("editor.wordHighlightTextBackground",{light:v,dark:v,hcDark:v,hcLight:v},I.localize(2,null),!0);const f=(0,L.registerColor)("editor.wordHighlightBorder",{light:null,dark:null,hcDark:L.activeContrastBorder,hcLight:L.activeContrastBorder},I.localize(3,null));(0,L.registerColor)("editor.wordHighlightStrongBorder",{light:null,dark:null,hcDark:L.activeContrastBorder,hcLight:L.activeContrastBorder},I.localize(4,null)),(0,L.registerColor)("editor.wordHighlightTextBorder",{light:f,dark:f,hcDark:f,hcLight:f},I.localize(5,null));const g=(0,L.registerColor)("editorOverviewRuler.wordHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hcDark:"#A0A0A0CC",hcLight:"#A0A0A0CC"},I.localize(6,null),!0),i=(0,L.registerColor)("editorOverviewRuler.wordHighlightStrongForeground",{dark:"#C0A0C0CC",light:"#C0A0C0CC",hcDark:"#C0A0C0CC",hcLight:"#C0A0C0CC"},I.localize(7,null),!0),t=(0,L.registerColor)("editorOverviewRuler.wordHighlightTextForeground",{dark:L.overviewRulerSelectionHighlightForeground,light:L.overviewRulerSelectionHighlightForeground,hcDark:L.overviewRulerSelectionHighlightForeground,hcLight:L.overviewRulerSelectionHighlightForeground},I.localize(8,null),!0),n=N.ModelDecorationOptions.register({description:"word-highlight-strong",stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:(0,S.themeColorFromId)(i),position:C.OverviewRulerLane.Center},minimap:{color:(0,S.themeColorFromId)(L.minimapSelectionOccurrenceHighlight),position:C.MinimapPosition.Inline}}),a=N.ModelDecorationOptions.register({description:"word-highlight-text",stickiness:1,className:"wordHighlightText",overviewRuler:{color:(0,S.themeColorFromId)(t),position:C.OverviewRulerLane.Center},minimap:{color:(0,S.themeColorFromId)(L.minimapSelectionOccurrenceHighlight),position:C.MinimapPosition.Inline}}),r=N.ModelDecorationOptions.register({description:"selection-highlight-overview",stickiness:1,className:"selectionHighlight",overviewRuler:{color:(0,S.themeColorFromId)(L.overviewRulerSelectionHighlightForeground),position:C.OverviewRulerLane.Center},minimap:{color:(0,S.themeColorFromId)(L.minimapSelectionOccurrenceHighlight),position:C.MinimapPosition.Inline}}),c=N.ModelDecorationOptions.register({description:"selection-highlight",stickiness:1,className:"selectionHighlight"}),d=N.ModelDecorationOptions.register({description:"word-highlight",stickiness:1,className:"wordHighlight",overviewRuler:{color:(0,S.themeColorFromId)(g),position:C.OverviewRulerLane.Center},minimap:{color:(0,S.themeColorFromId)(L.minimapSelectionOccurrenceHighlight),position:C.MinimapPosition.Inline}});function s(o){return o===E.DocumentHighlightKind.Write?n:o===E.DocumentHighlightKind.Text?a:d}e.getHighlightDecorationOptions=s;function l(o){return o?c:r}e.getSelectionHighlightDecorationOptions=l,(0,S.registerThemingParticipant)((o,u)=>{const h=o.getColor(L.editorSelectionHighlight);h&&u.addRule(`.monaco-editor .selectionHighlight { background-color: ${h.transparent(.5)}; }`)})}),define(_[829],ee([1,0,52,11,58,2,14,188,4,22,24,325,628,28,15,19,327,8]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d){"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 s(F,U){const Q=U.filter(se=>!F.find(he=>he.equals(se)));if(Q.length>=1){const se=Q.map(ie=>`line ${ie.viewState.position.lineNumber} column ${ie.viewState.position.column}`).join(", "),he=Q.length===1?t.localize(0,null,se):t.localize(1,null,se);(0,C.status)(he)}}class l extends L.EditorAction{constructor(){super({id:"editor.action.insertCursorAbove",label:t.localize(2,null),alias:"Add Cursor Above",precondition:void 0,kbOpts:{kbExpr:g.EditorContextKeys.editorTextFocus,primary:2576,linux:{primary:1552,secondary:[3088]},weight:100},menuOpts:{menuId:n.MenuId.MenubarSelectionMenu,group:"3_multi",title:t.localize(3,null),order:2}})}run(U,Q,se){if(!Q.hasModel())return;let he=!0;se&&se.logicalLine===!1&&(he=!1);const ie=Q._getViewModel();if(ie.cursorConfig.readOnly)return;ie.model.pushStackElement();const ue=ie.getCursorStates();ie.setCursorStates(se.source,3,S.CursorMoveCommands.addCursorUp(ie,ue,he)),ie.revealTopMostCursor(se.source),s(ue,ie.getCursorStates())}}e.InsertCursorAbove=l;class o extends L.EditorAction{constructor(){super({id:"editor.action.insertCursorBelow",label:t.localize(4,null),alias:"Add Cursor Below",precondition:void 0,kbOpts:{kbExpr:g.EditorContextKeys.editorTextFocus,primary:2578,linux:{primary:1554,secondary:[3090]},weight:100},menuOpts:{menuId:n.MenuId.MenubarSelectionMenu,group:"3_multi",title:t.localize(5,null),order:3}})}run(U,Q,se){if(!Q.hasModel())return;let he=!0;se&&se.logicalLine===!1&&(he=!1);const ie=Q._getViewModel();if(ie.cursorConfig.readOnly)return;ie.model.pushStackElement();const ue=ie.getCursorStates();ie.setCursorStates(se.source,3,S.CursorMoveCommands.addCursorDown(ie,ue,he)),ie.revealBottomMostCursor(se.source),s(ue,ie.getCursorStates())}}e.InsertCursorBelow=o;class u extends L.EditorAction{constructor(){super({id:"editor.action.insertCursorAtEndOfEachLineSelected",label:t.localize(6,null),alias:"Add Cursors to Line Ends",precondition:void 0,kbOpts:{kbExpr:g.EditorContextKeys.editorTextFocus,primary:1575,weight:100},menuOpts:{menuId:n.MenuId.MenubarSelectionMenu,group:"3_multi",title:t.localize(7,null),order:4}})}d(U,Q,se){if(!U.isEmpty()){for(let he=U.startLineNumber;he<U.endLineNumber;he++){const ie=Q.getLineMaxColumn(he);se.push(new f.Selection(he,ie,he,ie))}U.endColumn>1&&se.push(new f.Selection(U.endLineNumber,U.endColumn,U.endLineNumber,U.endColumn))}}run(U,Q){if(!Q.hasModel())return;const se=Q.getModel(),he=Q.getSelections(),ie=Q._getViewModel(),ue=ie.getCursorStates(),J=[];he.forEach(x=>this.d(x,se,J)),J.length>0&&Q.setSelections(J),s(ue,ie.getCursorStates())}}class h extends L.EditorAction{constructor(){super({id:"editor.action.addCursorsToBottom",label:t.localize(8,null),alias:"Add Cursors To Bottom",precondition:void 0})}run(U,Q){if(!Q.hasModel())return;const se=Q.getSelections(),he=Q.getModel().getLineCount(),ie=[];for(let x=se[0].startLineNumber;x<=he;x++)ie.push(new f.Selection(x,se[0].startColumn,x,se[0].endColumn));const ue=Q._getViewModel(),J=ue.getCursorStates();ie.length>0&&Q.setSelections(ie),s(J,ue.getCursorStates())}}class w extends L.EditorAction{constructor(){super({id:"editor.action.addCursorsToTop",label:t.localize(9,null),alias:"Add Cursors To Top",precondition:void 0})}run(U,Q){if(!Q.hasModel())return;const se=Q.getSelections(),he=[];for(let J=se[0].startLineNumber;J>=1;J--)he.push(new f.Selection(J,se[0].startColumn,J,se[0].endColumn));const ie=Q._getViewModel(),ue=ie.getCursorStates();he.length>0&&Q.setSelections(he),s(ue,ie.getCursorStates())}}class m{constructor(U,Q,se){this.selections=U,this.revealRange=Q,this.revealScrollType=se}}e.MultiCursorSessionResult=m;class p{static create(U,Q){if(!U.hasModel())return null;const se=Q.getState();if(!U.hasTextFocus()&&se.isRevealed&&se.searchString.length>0)return new p(U,Q,!1,se.searchString,se.wholeWord,se.matchCase,null);let he=!1,ie,ue;const J=U.getSelections();J.length===1&&J[0].isEmpty()?(he=!0,ie=!0,ue=!0):(ie=se.wholeWord,ue=se.matchCase);const x=U.getSelection();let G,te=null;if(x.isEmpty()){const Z=U.getConfiguredWordAtPosition(x.getStartPosition());if(!Z)return null;G=Z.word,te=new f.Selection(x.startLineNumber,Z.startColumn,x.startLineNumber,Z.endColumn)}else G=U.getModel().getValueInRange(x).replace(/\r\n/g,`
|
||
`);return new p(U,Q,he,G,ie,ue,te)}constructor(U,Q,se,he,ie,ue,J){this.a=U,this.findController=Q,this.isDisconnectedFromFindController=se,this.searchText=he,this.wholeWord=ie,this.matchCase=ue,this.currentMatch=J}addSelectionToNextFindMatch(){if(!this.a.hasModel())return null;const U=this.b();if(!U)return null;const Q=this.a.getSelections();return new m(Q.concat(U),U,0)}moveSelectionToNextFindMatch(){if(!this.a.hasModel())return null;const U=this.b();if(!U)return null;const Q=this.a.getSelections();return new m(Q.slice(0,Q.length-1).concat(U),U,0)}b(){if(!this.a.hasModel())return null;if(this.currentMatch){const he=this.currentMatch;return this.currentMatch=null,he}this.findController.highlightFindOptions();const U=this.a.getSelections(),Q=U[U.length-1],se=this.a.getModel().findNextMatch(this.searchText,Q.getEndPosition(),!1,this.matchCase,this.wholeWord?this.a.getOption(124):null,!1);return se?new f.Selection(se.range.startLineNumber,se.range.startColumn,se.range.endLineNumber,se.range.endColumn):null}addSelectionToPreviousFindMatch(){if(!this.a.hasModel())return null;const U=this.c();if(!U)return null;const Q=this.a.getSelections();return new m(Q.concat(U),U,0)}moveSelectionToPreviousFindMatch(){if(!this.a.hasModel())return null;const U=this.c();if(!U)return null;const Q=this.a.getSelections();return new m(Q.slice(0,Q.length-1).concat(U),U,0)}c(){if(!this.a.hasModel())return null;if(this.currentMatch){const he=this.currentMatch;return this.currentMatch=null,he}this.findController.highlightFindOptions();const U=this.a.getSelections(),Q=U[U.length-1],se=this.a.getModel().findPreviousMatch(this.searchText,Q.getStartPosition(),!1,this.matchCase,this.wholeWord?this.a.getOption(124):null,!1);return se?new f.Selection(se.range.startLineNumber,se.range.startColumn,se.range.endLineNumber,se.range.endColumn):null}selectAll(U){if(!this.a.hasModel())return[];this.findController.highlightFindOptions();const Q=this.a.getModel();return U?Q.findMatches(this.searchText,U,!1,this.matchCase,this.wholeWord?this.a.getOption(124):null,!1,1073741824):Q.findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this.a.getOption(124):null,!1,1073741824)}}e.MultiCursorSession=p;class b extends I.Disposable{static get(U){return U.getContribution(b.ID)}constructor(U){super(),this.g=this.q(new I.DisposableStore),this.a=U,this.b=!1,this.c=null}dispose(){this.k(),super.dispose()}h(U){if(!this.c){const Q=p.create(this.a,U);if(!Q)return;this.c=Q;const se={searchString:this.c.searchText};this.c.isDisconnectedFromFindController&&(se.wholeWordOverride=1,se.matchCaseOverride=1,se.isRegexOverride=2),U.getState().change(se,!1),this.g.add(this.a.onDidChangeCursorSelection(he=>{this.b||this.k()})),this.g.add(this.a.onDidBlurEditorText(()=>{this.k()})),this.g.add(U.getState().onFindReplaceStateChange(he=>{(he.matchCase||he.wholeWord)&&this.k()}))}}k(){if(this.g.clear(),this.c&&this.c.isDisconnectedFromFindController){const U={wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0};this.c.findController.getState().change(U,!1)}this.c=null}l(U){this.b=!0,this.a.setSelections(U),this.b=!1}n(U,Q){if(!Q.isEmpty())return Q;const se=this.a.getConfiguredWordAtPosition(Q.getStartPosition());return se?new f.Selection(Q.startLineNumber,se.startColumn,Q.startLineNumber,se.endColumn):Q}p(U){!U||(this.l(U.selections),U.revealRange&&this.a.revealRangeInCenterIfOutsideViewport(U.revealRange,U.revealScrollType))}getSession(U){return this.c}addSelectionToNextFindMatch(U){if(!!this.a.hasModel()){if(!this.c){const Q=this.a.getSelections();if(Q.length>1){const he=U.getState().matchCase;if(!O(this.a.getModel(),Q,he)){const ue=this.a.getModel(),J=[];for(let x=0,G=Q.length;x<G;x++)J[x]=this.n(ue,Q[x]);this.a.setSelections(J);return}}}this.h(U),this.c&&this.p(this.c.addSelectionToNextFindMatch())}}addSelectionToPreviousFindMatch(U){this.h(U),this.c&&this.p(this.c.addSelectionToPreviousFindMatch())}moveSelectionToNextFindMatch(U){this.h(U),this.c&&this.p(this.c.moveSelectionToNextFindMatch())}moveSelectionToPreviousFindMatch(U){this.h(U),this.c&&this.p(this.c.moveSelectionToPreviousFindMatch())}selectAll(U){if(!this.a.hasModel())return;let Q=null;const se=U.getState();if(se.isRevealed&&se.searchString.length>0&&se.isRegex){const he=this.a.getModel();se.searchScope?Q=he.findMatches(se.searchString,se.searchScope,se.isRegex,se.matchCase,se.wholeWord?this.a.getOption(124):null,!1,1073741824):Q=he.findMatches(se.searchString,!0,se.isRegex,se.matchCase,se.wholeWord?this.a.getOption(124):null,!1,1073741824)}else{if(this.h(U),!this.c)return;Q=this.c.selectAll(se.searchScope)}if(Q.length>0){const he=this.a.getSelection();for(let ie=0,ue=Q.length;ie<ue;ie++){const J=Q[ie];if(J.range.intersectRanges(he)){Q[ie]=Q[0],Q[0]=J;break}}this.l(Q.map(ie=>new f.Selection(ie.range.startLineNumber,ie.range.startColumn,ie.range.endLineNumber,ie.range.endColumn)))}}}b.ID="editor.contrib.multiCursorController",e.MultiCursorSelectionController=b;class y extends L.EditorAction{run(U,Q){const se=b.get(Q);if(!se)return;const he=Q._getViewModel();if(he){const ie=he.getCursorStates(),ue=i.CommonFindController.get(Q);if(ue)this.d(se,ue);else{const J=U.get(d.IInstantiationService).createInstance(i.CommonFindController,Q);this.d(se,J),J.dispose()}s(ie,he.getCursorStates())}}}e.MultiCursorSelectionControllerAction=y;class k extends y{constructor(){super({id:"editor.action.addSelectionToNextFindMatch",label:t.localize(10,null),alias:"Add Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:g.EditorContextKeys.focus,primary:2082,weight:100},menuOpts:{menuId:n.MenuId.MenubarSelectionMenu,group:"3_multi",title:t.localize(11,null),order:5}})}d(U,Q){U.addSelectionToNextFindMatch(Q)}}e.AddSelectionToNextFindMatchAction=k;class D extends y{constructor(){super({id:"editor.action.addSelectionToPreviousFindMatch",label:t.localize(12,null),alias:"Add Selection To Previous Find Match",precondition:void 0,menuOpts:{menuId:n.MenuId.MenubarSelectionMenu,group:"3_multi",title:t.localize(13,null),order:6}})}d(U,Q){U.addSelectionToPreviousFindMatch(Q)}}e.AddSelectionToPreviousFindMatchAction=D;class M extends y{constructor(){super({id:"editor.action.moveSelectionToNextFindMatch",label:t.localize(14,null),alias:"Move Last Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:g.EditorContextKeys.focus,primary:(0,E.KeyChord)(2089,2082),weight:100}})}d(U,Q){U.moveSelectionToNextFindMatch(Q)}}e.MoveSelectionToNextFindMatchAction=M;class z extends y{constructor(){super({id:"editor.action.moveSelectionToPreviousFindMatch",label:t.localize(15,null),alias:"Move Last Selection To Previous Find Match",precondition:void 0})}d(U,Q){U.moveSelectionToPreviousFindMatch(Q)}}e.MoveSelectionToPreviousFindMatchAction=z;class R extends y{constructor(){super({id:"editor.action.selectHighlights",label:t.localize(16,null),alias:"Select All Occurrences of Find Match",precondition:void 0,kbOpts:{kbExpr:g.EditorContextKeys.focus,primary:3114,weight:100},menuOpts:{menuId:n.MenuId.MenubarSelectionMenu,group:"3_multi",title:t.localize(17,null),order:7}})}d(U,Q){U.selectAll(Q)}}e.SelectHighlightsAction=R;class P extends y{constructor(){super({id:"editor.action.changeAll",label:t.localize(18,null),alias:"Change All Occurrences",precondition:a.ContextKeyExpr.and(g.EditorContextKeys.writable,g.EditorContextKeys.editorTextFocus),kbOpts:{kbExpr:g.EditorContextKeys.editorTextFocus,primary:2108,weight:100},contextMenuOpts:{group:"1_modification",order:1.2}})}d(U,Q){U.selectAll(Q)}}e.CompatChangeAll=P;class A{constructor(U,Q,se,he,ie){this.c=U,this.d=Q,this.f=se,this.g=he,this.a=this.c.getVersionId(),this.b=null,ie&&this.c===ie.c&&this.d===ie.d&&this.f===ie.f&&this.g===ie.g&&this.a===ie.a&&(this.b=ie.b)}findMatches(){return this.b===null&&(this.b=this.c.findMatches(this.d,!0,!1,this.f,this.g,!1).map(U=>U.range),this.b.sort(v.Range.compareRangesUsingStarts)),this.b}}let T=class Zi extends I.Disposable{constructor(U,Q){super(),this.k=Q,this.a=U,this.b=U.getOption(102),this.c=U.createDecorationsCollection(),this.g=this.q(new N.RunOnceScheduler(()=>this.l(),300)),this.h=null,this.q(U.onDidChangeConfiguration(he=>{this.b=U.getOption(102)})),this.q(U.onDidChangeCursorSelection(he=>{!this.b||(he.selection.isEmpty()?he.reason===3?(this.h&&this.p(null),this.g.schedule()):this.p(null):this.l())})),this.q(U.onDidChangeModel(he=>{this.p(null)})),this.q(U.onDidChangeModelContent(he=>{this.b&&this.g.schedule()}));const se=i.CommonFindController.get(U);se&&this.q(se.getState().onFindReplaceStateChange(he=>{this.l()})),this.g.schedule()}l(){this.p(Zi.n(this.h,this.b,this.a))}static n(U,Q,se){if(!Q||!se.hasModel())return null;const he=se.getSelection();if(he.startLineNumber!==he.endLineNumber)return null;const ie=b.get(se);if(!ie)return null;const ue=i.CommonFindController.get(se);if(!ue)return null;let J=ie.getSession(ue);if(!J){const te=se.getSelections();if(te.length>1){const ae=ue.getState().matchCase;if(!O(se.getModel(),te,ae))return null}J=p.create(se,ue)}if(!J||J.currentMatch||/^[ \t]+$/.test(J.searchText)||J.searchText.length>200)return null;const x=ue.getState(),G=x.matchCase;if(x.isRevealed){let te=x.searchString;G||(te=te.toLowerCase());let Z=J.searchText;if(G||(Z=Z.toLowerCase()),te===Z&&J.matchCase===x.matchCase&&J.wholeWord===x.wholeWord&&!x.isRegex)return null}return new A(se.getModel(),J.searchText,J.matchCase,J.wholeWord?se.getOption(124):null,U)}p(U){if(this.h=U,!this.h){this.c.clear();return}if(!this.a.hasModel())return;const Q=this.a.getModel();if(Q.isTooLargeForTokenization())return;const se=this.h.findMatches(),he=this.a.getSelections();he.sort(v.Range.compareRangesUsingStarts);const ie=[];for(let x=0,G=0,te=se.length,Z=he.length;x<te;){const ae=se[x];if(G>=Z)ie.push(ae),x++;else{const de=v.Range.compareRangesUsingStarts(ae,he[G]);de<0?((he[G].isEmpty()||!v.Range.areIntersecting(ae,he[G]))&&ie.push(ae),x++):(de>0||x++,G++)}}const ue=this.k.documentHighlightProvider.has(Q)&&this.a.getOption(77),J=ie.map(x=>({range:x,options:(0,c.getSelectionHighlightDecorationOptions)(ue)}));this.c.set(J)}dispose(){this.p(null),super.dispose()}};T.ID="editor.contrib.selectionHighlighter",T=Ne([ge(1,r.ILanguageFeaturesService)],T),e.SelectionHighlighter=T;function O(F,U,Q){const se=B(F,U[0],!Q);for(let he=1,ie=U.length;he<ie;he++){const ue=U[he];if(ue.isEmpty())return!1;const J=B(F,ue,!Q);if(se!==J)return!1}return!0}function B(F,U,Q){const se=F.getValueInRange(U);return Q?se.toLowerCase():se}class W extends L.EditorAction{constructor(){super({id:"editor.action.focusNextCursor",label:t.localize(19,null),description:{description:t.localize(20,null),args:[]},alias:"Focus Next Cursor",precondition:void 0})}run(U,Q,se){if(!Q.hasModel())return;const he=Q._getViewModel();if(he.cursorConfig.readOnly)return;he.model.pushStackElement();const ie=Array.from(he.getCursorStates()),ue=ie.shift();!ue||(ie.push(ue),he.setCursorStates(se.source,3,ie),he.revealPrimaryCursor(se.source,!0),s(ie,he.getCursorStates()))}}e.FocusNextCursor=W;class j extends L.EditorAction{constructor(){super({id:"editor.action.focusPreviousCursor",label:t.localize(21,null),description:{description:t.localize(22,null),args:[]},alias:"Focus Previous Cursor",precondition:void 0})}run(U,Q,se){if(!Q.hasModel())return;const he=Q._getViewModel();if(he.cursorConfig.readOnly)return;he.model.pushStackElement();const ie=Array.from(he.getCursorStates()),ue=ie.pop();!ue||(ie.unshift(ue),he.setCursorStates(se.source,3,ie),he.revealPrimaryCursor(se.source,!0),s(ie,he.getCursorStates()))}}e.FocusPreviousCursor=j,(0,L.registerEditorContribution)(b.ID,b,4),(0,L.registerEditorContribution)(T.ID,T,1),(0,L.registerEditorAction)(l),(0,L.registerEditorAction)(o),(0,L.registerEditorAction)(u),(0,L.registerEditorAction)(k),(0,L.registerEditorAction)(D),(0,L.registerEditorAction)(M),(0,L.registerEditorAction)(z),(0,L.registerEditorAction)(R),(0,L.registerEditorAction)(P),(0,L.registerEditorAction)(h),(0,L.registerEditorAction)(w),(0,L.registerEditorAction)(W),(0,L.registerEditorAction)(j)}),define(_[830],ee([1,0,52,17,11,20,13,2,14,4,24,26,653,15,19,327]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getOccurrencesAtPosition=void 0;const c=new n.RawContextKey("hasWordHighlights",!1);function d(k,D,M,z){const R=k.ordered(D);return(0,E.first)(R.map(P=>()=>Promise.resolve(P.provideDocumentHighlights(D,M,z)).then(void 0,L.onUnexpectedExternalError)),N.isNonEmptyArray)}e.getOccurrencesAtPosition=d;class s{constructor(D,M,z){this.c=D,this.d=M,this.f=z,this.a=this.h(D,M),this.b=null}get result(){return this.b||(this.b=(0,E.createCancelablePromise)(D=>this.g(this.c,this.d,this.f,D))),this.b}h(D,M){const z=D.getWordAtPosition(M.getPosition());return z?new f.Range(M.startLineNumber,z.startColumn,M.startLineNumber,z.endColumn):null}isValid(D,M,z){const R=M.startLineNumber,P=M.startColumn,A=M.endColumn,T=this.h(D,M);let O=Boolean(this.a&&this.a.equalsRange(T));for(let B=0,W=z.length;!O&&B<W;B++){const j=z.getRange(B);j&&j.startLineNumber===R&&j.startColumn<=P&&j.endColumn>=A&&(O=!0)}return O}cancel(){this.result.cancel()}}class l extends s{constructor(D,M,z,R){super(D,M,z),this.j=R}g(D,M,z,R){return d(this.j,D,M.getPosition(),R).then(P=>P||[])}}class o extends s{constructor(D,M,z){super(D,M,z),this.j=M.isEmpty()}g(D,M,z,R){return(0,E.timeout)(250,R).then(()=>{if(!M.isEmpty())return[];const P=D.getWordAtPosition(M.getPosition());return!P||P.word.length>1e3?[]:D.findMatches(P.word,!0,!1,!0,z,!1).map(T=>({range:T.range,kind:i.DocumentHighlightKind.Text}))})}isValid(D,M,z){const R=M.isEmpty();return this.j!==R?!1:super.isValid(D,M,z)}}function u(k,D,M,z){return k.has(D)?new l(D,M,z,k):new o(D,M,z)}(0,v.registerModelAndPositionCommand)("_executeDocumentHighlights",(k,D,M)=>{const z=k.get(a.ILanguageFeaturesService);return d(z.documentHighlightProvider,D,M,I.CancellationToken.None)});class h{constructor(D,M,z){this.g=new S.DisposableStore,this.h=0,this.k=!1,this.l=[],this.n=0,this.o=-1,this.a=D,this.b=M,this.p=c.bindTo(z),this.q=!1,this.c=this.a.getOption(77),this.d=this.a.getModel(),this.g.add(D.onDidChangeCursorPosition(R=>{this.q||!this.c||this.u(R)})),this.g.add(D.onDidChangeModelContent(R=>{this.t()})),this.g.add(D.onDidChangeConfiguration(R=>{const P=this.a.getOption(77);this.c!==P&&(this.c=P,this.t())})),this.f=this.a.createDecorationsCollection(),this.h=0,this.j=null,this.k=!1,this.n=0,this.o=-1}hasDecorations(){return this.f.length>0}restore(){!this.c||this.w()}r(){return this.f.getRanges().sort(f.Range.compareRangesUsingStarts)}moveNext(){const D=this.r(),z=(D.findIndex(P=>P.containsPosition(this.a.getPosition()))+1)%D.length,R=D[z];try{this.q=!0,this.a.setPosition(R.getStartPosition()),this.a.revealRangeInCenterIfOutsideViewport(R);const P=this.v();if(P){const A=this.a.getModel().getLineContent(R.startLineNumber);(0,C.alert)(`${A}, ${z+1} of ${D.length} for '${P.word}'`)}}finally{this.q=!1}}moveBack(){const D=this.r(),z=(D.findIndex(P=>P.containsPosition(this.a.getPosition()))-1+D.length)%D.length,R=D[z];try{this.q=!0,this.a.setPosition(R.getStartPosition()),this.a.revealRangeInCenterIfOutsideViewport(R);const P=this.v();if(P){const A=this.a.getModel().getLineContent(R.startLineNumber);(0,C.alert)(`${A}, ${z+1} of ${D.length} for '${P.word}'`)}}finally{this.q=!1}}s(){this.f.length>0&&(this.f.clear(),this.p.set(!1))}t(){this.s(),this.o!==-1&&(clearTimeout(this.o),this.o=-1),this.j!==null&&(this.j.cancel(),this.j=null),this.k||(this.h++,this.k=!0)}u(D){if(!this.c){this.t();return}if(D.reason!==3){this.t();return}this.w()}v(){const D=this.a.getSelection(),M=D.startLineNumber,z=D.startColumn;return this.d.getWordAtPosition({lineNumber:M,column:z})}w(){const D=this.a.getSelection();if(D.startLineNumber!==D.endLineNumber){this.t();return}const M=D.startColumn,z=D.endColumn,R=this.v();if(!R||R.startColumn>M||R.endColumn<z){this.t();return}const P=this.j&&this.j.isValid(this.d,D,this.f);if(this.n=new Date().getTime(),P)this.k&&this.o!==-1&&(clearTimeout(this.o),this.o=-1,this.x());else{this.t();const A=++this.h;this.k=!1,this.j=u(this.b,this.d,this.a.getSelection(),this.a.getOption(124)),this.j.result.then(T=>{A===this.h&&(this.k=!0,this.l=T||[],this.x())},L.onUnexpectedError)}}x(){const D=new Date().getTime(),M=this.n+250;D>=M?(this.o=-1,this.y()):this.o=setTimeout(()=>{this.y()},M-D)}y(){this.o=-1;const D=[];for(const M of this.l)M.range&&D.push({range:M.range,options:(0,r.getHighlightDecorationOptions)(M.kind)});this.f.set(D),this.p.set(this.hasDecorations())}dispose(){this.t(),this.g.dispose()}}let w=class Ji extends S.Disposable{static get(D){return D.getContribution(Ji.ID)}constructor(D,M,z){super(),this.a=null;const R=()=>{D.hasModel()&&(this.a=new h(D,z.documentHighlightProvider,M))};this.q(D.onDidChangeModel(P=>{this.a&&(this.a.dispose(),this.a=null),R()})),R()}saveViewState(){return!!(this.a&&this.a.hasDecorations())}moveNext(){var D;(D=this.a)===null||D===void 0||D.moveNext()}moveBack(){var D;(D=this.a)===null||D===void 0||D.moveBack()}restoreViewState(D){this.a&&D&&this.a.restore()}dispose(){this.a&&(this.a.dispose(),this.a=null),super.dispose()}};w.ID="editor.contrib.wordHighlighter",w=Ne([ge(1,n.IContextKeyService),ge(2,a.ILanguageFeaturesService)],w);class m extends v.EditorAction{constructor(D,M){super(M),this.d=D}run(D,M){const z=w.get(M);!z||(this.d?z.moveNext():z.moveBack())}}class p extends m{constructor(){super(!0,{id:"editor.action.wordHighlight.next",label:t.localize(0,null),alias:"Go to Next Symbol Highlight",precondition:c,kbOpts:{kbExpr:g.EditorContextKeys.editorTextFocus,primary:65,weight:100}})}}class b extends m{constructor(){super(!1,{id:"editor.action.wordHighlight.prev",label:t.localize(1,null),alias:"Go to Previous Symbol Highlight",precondition:c,kbOpts:{kbExpr:g.EditorContextKeys.editorTextFocus,primary:1089,weight:100}})}}class y extends v.EditorAction{constructor(){super({id:"editor.action.wordHighlight.trigger",label:t.localize(2,null),alias:"Trigger Symbol Highlight",precondition:c.toNegated(),kbOpts:{kbExpr:g.EditorContextKeys.editorTextFocus,primary:0,weight:100}})}run(D,M,z){const R=w.get(M);!R||R.restoreViewState(!0)}}(0,v.registerEditorContribution)(w.ID,w,0),(0,v.registerEditorAction)(p),(0,v.registerEditorAction)(b),(0,v.registerEditorAction)(y)}),define(_[831],ee([1,0,7,138,36,150,2,46,4,39,422]),function(q,e,C,N,E,I,L,S,v,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ZoneWidget=e.OverlayWidgetDelegate=e.ViewZoneDelegate=void 0;const g=new E.Color(new E.RGBA(0,122,204)),i={showArrow:!0,showFrame:!0,className:"",frameColor:g,arrowColor:g,keepEditorSelection:!1},t="vs.editor.contrib.zoneWidget";class n{constructor(s,l,o,u,h,w){this.id="",this.domNode=s,this.afterLineNumber=l,this.afterColumn=o,this.heightInLines=u,this.a=h,this.b=w}onDomNodeTop(s){this.a(s)}onComputedHeight(s){this.b(s)}}e.ViewZoneDelegate=n;class a{constructor(s,l){this.a=s,this.b=l}getId(){return this.a}getDomNode(){return this.b}getPosition(){return null}}e.OverlayWidgetDelegate=a;class r{constructor(s){this.g=s,this.b=r.a.nextId(),this.c=this.g.createDecorationsCollection(),this.d=null,this.f=-1}dispose(){this.hide(),C.removeCSSRulesContainingSelector(this.b)}set color(s){this.d!==s&&(this.d=s,this.h())}set height(s){this.f!==s&&(this.f=s,this.h())}h(){C.removeCSSRulesContainingSelector(this.b),C.createCSSRule(`.monaco-editor ${this.b}`,`border-style: solid; border-color: transparent; border-bottom-color: ${this.d}; border-width: ${this.f}px; bottom: -${this.f}px; margin-left: -${this.f}px; `)}show(s){s.column===1&&(s={lineNumber:s.lineNumber,column:2}),this.c.set([{range:v.Range.fromPositions(s),options:{description:"zone-widget-arrow",className:this.b,stickiness:1}}])}hide(){this.c.clear()}}r.a=new I.IdGenerator(".arrow-decoration-");class c{constructor(s,l={}){this.a=null,this.b=null,this.c=null,this.f=null,this.g=new L.DisposableStore,this.container=null,this.n=!1,this.editor=s,this.d=this.editor.createDecorationsCollection(),this.options=S.deepClone(l),S.mixin(this.options,i,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this.g.add(this.editor.onDidLayoutChange(o=>{const u=this.j(o);this.domNode.style.width=u+"px",this.domNode.style.left=this.k(o)+"px",this.t(u)}))}dispose(){this.b&&(this.editor.removeOverlayWidget(this.b),this.b=null),this.f&&this.editor.changeViewZones(s=>{this.f&&s.removeZone(this.f.id),this.f=null}),this.d.clear(),this.g.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.a=new r(this.editor),this.g.add(this.a)),this.s(this.container),this.w(),this.h()}style(s){s.frameColor&&(this.options.frameColor=s.frameColor),s.arrowColor&&(this.options.arrowColor=s.arrowColor),this.h()}h(){if(this.container&&this.options.frameColor){const s=this.options.frameColor.toString();this.container.style.borderTopColor=s,this.container.style.borderBottomColor=s}if(this.a&&this.options.arrowColor){const s=this.options.arrowColor.toString();this.a.color=s}}j(s){return s.width-s.minimap.minimapWidth-s.verticalScrollbarWidth}k(s){return s.minimap.minimapWidth>0&&s.minimap.minimapLeft===0?s.minimap.minimapWidth:0}l(s){this.domNode.style.top=s+"px"}m(s){var l;if(this.domNode.style.height=`${s}px`,this.container){const o=s-this.o();this.container.style.height=`${o}px`;const u=this.editor.getLayoutInfo();this.u(o,this.j(u))}(l=this.c)===null||l===void 0||l.layout()}get position(){const s=this.d.getRange(0);if(!!s)return s.getStartPosition()}show(s,l){const o=v.Range.isIRange(s)?v.Range.lift(s):v.Range.fromPositions(s);this.n=!0,this.p(o,l),this.n=!1,this.d.set([{range:o,options:f.ModelDecorationOptions.EMPTY}])}hide(){var s;this.f&&(this.editor.changeViewZones(l=>{this.f&&l.removeZone(this.f.id)}),this.f=null),this.b&&(this.editor.removeOverlayWidget(this.b),this.b=null),(s=this.a)===null||s===void 0||s.hide()}o(){const s=this.editor.getOption(63);let l=0;if(this.options.showArrow){const o=Math.round(s/3);l+=2*o}if(this.options.showFrame){const o=Math.round(s/9);l+=2*o}return l}p(s,l){const o=s.getStartPosition(),u=this.editor.getLayoutInfo(),h=this.j(u);this.domNode.style.width=`${h}px`,this.domNode.style.left=this.k(u)+"px";const w=document.createElement("div");w.style.overflow="hidden";const m=this.editor.getOption(63),p=Math.max(12,this.editor.getLayoutInfo().height/m*.8);l=Math.min(l,p);let b=0,y=0;if(this.a&&this.options.showArrow&&(b=Math.round(m/3),this.a.height=b,this.a.show(o)),this.options.showFrame&&(y=Math.round(m/9)),this.editor.changeViewZones(M=>{this.f&&M.removeZone(this.f.id),this.b&&(this.editor.removeOverlayWidget(this.b),this.b=null),this.domNode.style.top="-1000px",this.f=new n(w,o.lineNumber,o.column,l,z=>this.l(z),z=>this.m(z)),this.f.id=M.addZone(this.f),this.b=new a(t+this.f.id,this.domNode),this.editor.addOverlayWidget(this.b)}),this.container&&this.options.showFrame){const M=this.options.frameWidth?this.options.frameWidth:y;this.container.style.borderTopWidth=M+"px",this.container.style.borderBottomWidth=M+"px"}const k=l*m-this.o();this.container&&(this.container.style.top=b+"px",this.container.style.height=k+"px",this.container.style.overflow="hidden"),this.u(k,h),this.options.keepEditorSelection||this.editor.setSelection(s);const D=this.editor.getModel();if(D){const M=D.validateRange(new v.Range(s.startLineNumber,1,s.endLineNumber+1,1));this.q(M,M.endLineNumber===D.getLineCount())}}q(s,l){l?this.editor.revealLineNearTop(s.endLineNumber,0):this.editor.revealRange(s,0)}r(s,l){!this.container||(l&&this.container.classList.remove(l),this.container.classList.add(s))}t(s){}u(s,l){}v(s){this.f&&this.f.heightInLines!==s&&this.editor.changeViewZones(l=>{this.f&&(this.f.heightInLines=s,l.layoutZone(this.f.id))})}w(){if(this.c)return;this.c=this.g.add(new N.Sash(this.domNode,this,{orientation:1})),this.options.isResizeable||(this.c.state=0);let s;this.g.add(this.c.onDidStart(l=>{this.f&&(s={startY:l.startY,heightInLines:this.f.heightInLines})})),this.g.add(this.c.onDidEnd(()=>{s=void 0})),this.g.add(this.c.onDidChange(l=>{if(s){const o=(l.currentY-s.startY)/this.editor.getOption(63),u=o<0?Math.ceil(o):Math.floor(o),h=s.heightInLines+u;h>5&&h<35&&this.v(h)}}))}getHorizontalSashLeft(){return 0}getHorizontalSashTop(){return(this.domNode.style.height===null?0:parseInt(this.domNode.style.height))-this.o()/2}getHorizontalSashWidth(){const s=this.editor.getLayoutInfo();return s.width-s.minimap.minimapWidth}}e.ZoneWidget=c}),define(_[124],ee([1,0,7,68,41,29,32,36,6,46,14,30,149,831,631,148,15,49,8,31,413]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.peekViewEditorMatchHighlightBorder=e.peekViewEditorMatchHighlight=e.peekViewResultsMatchHighlight=e.peekViewEditorStickyScrollBackground=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,s.createDecorator)("IPeekViewService"),(0,d.registerSingleton)(e.IPeekViewService,class{constructor(){this.a=new Map}addExclusiveWidget(p,b){const y=this.a.get(p);y&&(y.listener.dispose(),y.widget.dispose());const k=()=>{const D=this.a.get(p);D&&D.widget===b&&(D.listener.dispose(),this.a.delete(p))};this.a.set(p,{widget:b,listener:b.onDidClose(k)})}},1);var o;(function(p){p.inPeekEditor=new c.RawContextKey("inReferenceSearchEditor",!0,a.localize(0,null)),p.notInPeekEditor=p.inPeekEditor.toNegated()})(o=e.PeekContext||(e.PeekContext={}));let u=class{constructor(b,y){b instanceof t.EmbeddedCodeEditorWidget&&o.inPeekEditor.bindTo(y)}dispose(){}};u.ID="editor.contrib.referenceController",u=Ne([ge(1,c.IContextKeyService)],u),(0,g.registerEditorContribution)(u.ID,u,0);function h(p){const b=p.get(i.ICodeEditorService).getFocusedCodeEditor();return b instanceof t.EmbeddedCodeEditorWidget?b.getParentEditor():b}e.getOuterEditor=h;const w={headerBackgroundColor:S.Color.white,primaryHeadingColor:S.Color.fromHex("#333333"),secondaryHeadingColor:S.Color.fromHex("#6c6c6cb3")};let m=class extends n.ZoneWidget{constructor(b,y,k){super(b,y),this.G=k,this.x=new v.Emitter,this.onDidClose=this.x.event,f.mixin(this.options,w,!1)}dispose(){this.y||(this.y=!0,super.dispose(),this.x.fire(this))}style(b){const y=this.options;b.headerBackgroundColor&&(y.headerBackgroundColor=b.headerBackgroundColor),b.primaryHeadingColor&&(y.primaryHeadingColor=b.primaryHeadingColor),b.secondaryHeadingColor&&(y.secondaryHeadingColor=b.secondaryHeadingColor),super.style(b)}h(){super.h();const b=this.options;this.z&&b.headerBackgroundColor&&(this.z.style.backgroundColor=b.headerBackgroundColor.toString()),this.B&&b.primaryHeadingColor&&(this.B.style.color=b.primaryHeadingColor.toString()),this.C&&b.secondaryHeadingColor&&(this.C.style.color=b.secondaryHeadingColor.toString()),this.F&&b.frameColor&&(this.F.style.borderColor=b.frameColor.toString())}s(b){this.r("peekview-widget"),this.z=C.$(".head"),this.F=C.$(".body"),this.J(this.z),this.N(this.F),b.appendChild(this.z),b.appendChild(this.F)}J(b,y){this.A=C.$(".peekview-title"),this.options.supportOnTitleClick&&(this.A.classList.add("clickable"),C.addStandardDisposableListener(this.A,"click",M=>this.M(M))),C.append(this.z,this.A),this.K(this.A),this.B=C.$("span.filename"),this.C=C.$("span.dirname"),this.D=C.$("span.meta"),C.append(this.A,this.B,this.C,this.D);const k=C.$(".peekview-actions");C.append(this.z,k);const D=this.L();this.E=new N.ActionBar(k,D),this.g.add(this.E),y||this.E.push(new E.Action("peekview.close",a.localize(1,null),L.ThemeIcon.asClassName(I.Codicon.close),!0,()=>(this.dispose(),Promise.resolve())),{label:!1,icon:!0})}K(b){}L(){return{actionViewItemProvider:r.createActionViewItem.bind(void 0,this.G),orientation:0}}M(b){}setTitle(b,y){this.B&&this.C&&(this.B.innerText=b,this.B.setAttribute("title",b),y?this.C.innerText=y:C.clearNode(this.C))}setMetaTitle(b){this.D&&(b?(this.D.innerText=b,C.show(this.D)):C.hide(this.D))}u(b,y){if(!this.n&&b<0){this.dispose();return}const k=Math.ceil(this.editor.getOption(63)*1.2),D=Math.round(b-(k+2));this.P(k,y),this.Q(D,y)}P(b,y){this.z&&(this.z.style.height=`${b}px`,this.z.style.lineHeight=this.z.style.height)}Q(b,y){this.F&&(this.F.style.height=`${b}px`)}};m=Ne([ge(2,s.IInstantiationService)],m),e.PeekViewWidget=m,e.peekViewTitleBackground=(0,l.registerColor)("peekViewTitle.background",{dark:(0,l.transparent)(l.editorInfoForeground,.1),light:(0,l.transparent)(l.editorInfoForeground,.1),hcDark:null,hcLight:null},a.localize(2,null)),e.peekViewTitleForeground=(0,l.registerColor)("peekViewTitleLabel.foreground",{dark:S.Color.white,light:S.Color.black,hcDark:S.Color.white,hcLight:l.editorForeground},a.localize(3,null)),e.peekViewTitleInfoForeground=(0,l.registerColor)("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hcDark:"#FFFFFF99",hcLight:"#292929"},a.localize(4,null)),e.peekViewBorder=(0,l.registerColor)("peekView.border",{dark:l.editorInfoForeground,light:l.editorInfoForeground,hcDark:l.contrastBorder,hcLight:l.contrastBorder},a.localize(5,null)),e.peekViewResultsBackground=(0,l.registerColor)("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hcDark:S.Color.black,hcLight:S.Color.white},a.localize(6,null)),e.peekViewResultsMatchForeground=(0,l.registerColor)("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hcDark:S.Color.white,hcLight:l.editorForeground},a.localize(7,null)),e.peekViewResultsFileForeground=(0,l.registerColor)("peekViewResult.fileForeground",{dark:S.Color.white,light:"#1E1E1E",hcDark:S.Color.white,hcLight:l.editorForeground},a.localize(8,null)),e.peekViewResultsSelectionBackground=(0,l.registerColor)("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hcDark:null,hcLight:null},a.localize(9,null)),e.peekViewResultsSelectionForeground=(0,l.registerColor)("peekViewResult.selectionForeground",{dark:S.Color.white,light:"#6C6C6C",hcDark:S.Color.white,hcLight:l.editorForeground},a.localize(10,null)),e.peekViewEditorBackground=(0,l.registerColor)("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hcDark:S.Color.black,hcLight:S.Color.white},a.localize(11,null)),e.peekViewEditorGutterBackground=(0,l.registerColor)("peekViewEditorGutter.background",{dark:e.peekViewEditorBackground,light:e.peekViewEditorBackground,hcDark:e.peekViewEditorBackground,hcLight:e.peekViewEditorBackground},a.localize(12,null)),e.peekViewEditorStickyScrollBackground=(0,l.registerColor)("peekViewEditorStickyScroll.background",{dark:e.peekViewEditorBackground,light:e.peekViewEditorBackground,hcDark:e.peekViewEditorBackground,hcLight:e.peekViewEditorBackground},a.localize(13,null)),e.peekViewResultsMatchHighlight=(0,l.registerColor)("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hcDark:null,hcLight:null},a.localize(14,null)),e.peekViewEditorMatchHighlight=(0,l.registerColor)("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hcDark:null,hcLight:null},a.localize(15,null)),e.peekViewEditorMatchHighlightBorder=(0,l.registerColor)("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hcDark:l.activeContrastBorder,hcLight:l.activeContrastBorder},a.localize(16,null))}),define(_[832],ee([1,0,7,76,17,36,6,2,44,9,4,124,606,148,28,15,8,145,89,50,727,31,23,402]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s,l,o,u,h){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MarkerNavigationWidget=void 0;class w{constructor(O,B,W,j,F){this.k=j,this.l=F,this.a=0,this.b=0,this.h=new WeakMap,this.i=new S.DisposableStore,this.c=B;const U=document.createElement("div");U.className="descriptioncontainer",this.d=document.createElement("div"),this.d.classList.add("message"),this.d.setAttribute("aria-live","assertive"),this.d.setAttribute("role","alert"),U.appendChild(this.d),this.f=document.createElement("div"),U.appendChild(this.f),this.i.add(C.addStandardDisposableListener(this.f,"click",Q=>{Q.preventDefault();const se=this.h.get(Q.target);se&&W(se)})),this.g=new N.ScrollableElement(U,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:6,verticalScrollbarSize:6}),O.appendChild(this.g.getDomNode()),this.i.add(this.g.onScroll(Q=>{U.style.left=`-${Q.scrollLeft}px`,U.style.top=`-${Q.scrollTop}px`})),this.i.add(this.g)}dispose(){(0,S.dispose)(this.i)}update(O){const{source:B,message:W,relatedInformation:j,code:F}=O;let U=(B?.length||0)+2;F&&(typeof F=="string"?U+=F.length:U+=F.value.length);const Q=(0,f.splitLines)(W);this.a=Q.length,this.b=0;for(const J of Q)this.b=Math.max(J.length+U,this.b);C.clearNode(this.d),this.d.setAttribute("aria-label",this.m(O)),this.c.applyFontInfo(this.d);let se=this.d;for(const J of Q)se=document.createElement("div"),se.innerText=J,J===""&&(se.style.height=this.d.style.lineHeight),this.d.appendChild(se);if(B||F){const J=document.createElement("span");if(J.classList.add("details"),se.appendChild(J),B){const x=document.createElement("span");x.innerText=B,x.classList.add("source"),J.appendChild(x)}if(F)if(typeof F=="string"){const x=document.createElement("span");x.innerText=`(${F})`,x.classList.add("code"),J.appendChild(x)}else{this.j=C.$("a.code-link"),this.j.setAttribute("href",`${F.target.toString()}`),this.j.onclick=G=>{this.k.open(F.target,{allowCommands:!0}),G.preventDefault(),G.stopPropagation()};const x=C.append(this.j,C.$("span"));x.innerText=F.value,J.appendChild(this.j)}}if(C.clearNode(this.f),this.c.applyFontInfo(this.f),(0,E.isNonEmptyArray)(j)){const J=this.f.appendChild(document.createElement("div"));J.style.paddingTop=`${Math.floor(this.c.getOption(63)*.66)}px`,this.a+=1;for(const x of j){const G=document.createElement("div"),te=document.createElement("a");te.classList.add("filename"),te.innerText=`${this.l.getUriBasenameLabel(x.resource)}(${x.startLineNumber}, ${x.startColumn}): `,te.title=this.l.getUriLabel(x.resource),this.h.set(te,x);const Z=document.createElement("span");Z.innerText=x.message,G.appendChild(te),G.appendChild(Z),this.a+=1,J.appendChild(G)}}const he=this.c.getOption(47),ie=Math.ceil(he.typicalFullwidthCharacterWidth*this.b*.75),ue=he.lineHeight*this.a;this.g.setScrollDimensions({scrollWidth:ie,scrollHeight:ue})}layout(O,B){this.g.getDomNode().style.height=`${O}px`,this.g.getDomNode().style.width=`${B}px`,this.g.setScrollDimensions({width:B,height:O})}getHeightInLines(){return Math.min(17,this.a)}m(O){let B="";switch(O.severity){case s.MarkerSeverity.Error:B=t.localize(0,null);break;case s.MarkerSeverity.Warning:B=t.localize(1,null);break;case s.MarkerSeverity.Info:B=t.localize(2,null);break;case s.MarkerSeverity.Hint:B=t.localize(3,null);break}let W=t.localize(4,null,B,O.startLineNumber+":"+O.startColumn);const j=this.c.getModel();return j&&O.startLineNumber<=j.getLineCount()&&O.startLineNumber>=1&&(W=`${j.getLineContent(O.startLineNumber)}, ${W}`),W}}let m=class _i extends i.PeekViewWidget{constructor(O,B,W,j,F,U,Q){super(O,{showArrow:!0,showFrame:!0,isAccessible:!0,frameWidth:1},F),this.Z=B,this.ab=W,this.bb=j,this.cb=U,this.db=Q,this.U=new S.DisposableStore,this.X=new L.Emitter,this.onDidSelectRelatedInformation=this.X.event,this.V=s.MarkerSeverity.Warning,this.W=I.Color.white,this.eb(B.getColorTheme()),this.U.add(B.onDidColorThemeChange(this.eb.bind(this))),this.create()}eb(O){this.W=O.getColor(A);let B=k,W=D;this.V===s.MarkerSeverity.Warning?(B=M,W=z):this.V===s.MarkerSeverity.Info&&(B=R,W=P);const j=O.getColor(B),F=O.getColor(W);this.style({arrowColor:j,frameColor:j,headerBackgroundColor:F,primaryHeadingColor:O.getColor(i.peekViewTitleForeground),secondaryHeadingColor:O.getColor(i.peekViewTitleInfoForeground)})}h(){this.i&&(this.i.style.backgroundColor=this.W?this.W.toString():""),super.h()}dispose(){this.U.dispose(),super.dispose()}J(O){super.J(O),this.g.add(this.E.actionRunner.onWillRun(j=>this.editor.focus()));const B=[],W=this.bb.createMenu(_i.TitleMenu,this.cb);(0,n.createAndFillInActionBarActions)(W,void 0,B),this.E.push(B,{label:!1,icon:!0,index:0}),W.dispose()}K(O){this.S=C.append(O,C.$(""))}N(O){this.i=O,O.classList.add("marker-widget"),this.i.tabIndex=0,this.i.setAttribute("role","tooltip"),this.R=document.createElement("div"),O.appendChild(this.R),this.T=new w(this.R,this.editor,B=>this.X.fire(B),this.ab,this.db),this.g.add(this.T)}show(){throw new Error("call showAtMarker")}showAtMarker(O,B,W){this.R.classList.remove("stale"),this.T.update(O),this.V=O.severity,this.eb(this.Z.getColorTheme());const j=g.Range.lift(O),F=this.editor.getPosition(),U=F&&j.containsPosition(F)?F:j.getStartPosition();super.show(U,this.mb());const Q=this.editor.getModel();if(Q){const se=W>1?t.localize(5,null,B,W):t.localize(6,null,B,W);this.setTitle((0,v.basename)(Q.uri),se)}this.S.className=`codicon ${o.SeverityIcon.className(s.MarkerSeverity.toSeverity(this.V))}`,this.editor.revealPositionNearTop(U,0),this.editor.focus()}updateMarker(O){this.R.classList.remove("stale"),this.T.update(O)}showStale(){this.R.classList.add("stale"),this.v()}Q(O,B){super.Q(O,B),this.Y=O,this.T.layout(O,B),this.R.style.height=`${O}px`}t(O){this.T.layout(this.Y,O)}v(){super.v(this.mb())}mb(){return 3+this.T.getHeightInLines()}};m.TitleMenu=new a.MenuId("gotoErrorTitleMenu"),m=Ne([ge(1,h.IThemeService),ge(2,l.IOpenerService),ge(3,a.IMenuService),ge(4,c.IInstantiationService),ge(5,r.IContextKeyService),ge(6,d.ILabelService)],m),e.MarkerNavigationWidget=m;const p=(0,u.oneOf)(u.editorErrorForeground,u.editorErrorBorder),b=(0,u.oneOf)(u.editorWarningForeground,u.editorWarningBorder),y=(0,u.oneOf)(u.editorInfoForeground,u.editorInfoBorder),k=(0,u.registerColor)("editorMarkerNavigationError.background",{dark:p,light:p,hcDark:u.contrastBorder,hcLight:u.contrastBorder},t.localize(7,null)),D=(0,u.registerColor)("editorMarkerNavigationError.headerBackground",{dark:(0,u.transparent)(k,.1),light:(0,u.transparent)(k,.1),hcDark:null,hcLight:null},t.localize(8,null)),M=(0,u.registerColor)("editorMarkerNavigationWarning.background",{dark:b,light:b,hcDark:u.contrastBorder,hcLight:u.contrastBorder},t.localize(9,null)),z=(0,u.registerColor)("editorMarkerNavigationWarning.headerBackground",{dark:(0,u.transparent)(M,.1),light:(0,u.transparent)(M,.1),hcDark:"#0C141F",hcLight:(0,u.transparent)(M,.2)},t.localize(10,null)),R=(0,u.registerColor)("editorMarkerNavigationInfo.background",{dark:y,light:y,hcDark:u.contrastBorder,hcLight:u.contrastBorder},t.localize(11,null)),P=(0,u.registerColor)("editorMarkerNavigationInfo.headerBackground",{dark:(0,u.transparent)(R,.1),light:(0,u.transparent)(R,.1),hcDark:null,hcLight:null},t.localize(12,null)),A=(0,u.registerColor)("editorMarkerNavigation.background",{dark:u.editorBackground,light:u.editorBackground,hcDark:u.editorBackground,hcLight:u.editorBackground},t.localize(13,null))}),define(_[328],ee([1,0,29,2,14,30,12,4,24,704,605,28,15,8,81,832]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NextMarkerAction=e.MarkerController=void 0;let c=class Jt{static get(p){return p.getContribution(Jt.ID)}constructor(p,b,y,k,D){this.g=b,this.h=y,this.i=k,this.j=D,this.c=new N.DisposableStore,this.a=p,this.b=h.bindTo(this.h)}dispose(){this.k(),this.c.dispose()}k(){this.b.reset(),this.c.clear(),this.f=void 0,this.d=void 0}l(p){if(this.d&&this.d.matches(p))return this.d;let b=!1;return this.d&&(b=!0,this.k()),this.d=this.g.getMarkerList(p),b&&this.d.move(!0,this.a.getModel(),this.a.getPosition()),this.f=this.j.createInstance(r.MarkerNavigationWidget,this.a),this.f.onDidClose(()=>this.close(),this,this.c),this.b.set(!0),this.c.add(this.d),this.c.add(this.f),this.c.add(this.a.onDidChangeCursorPosition(y=>{var k,D,M;(!(!((k=this.d)===null||k===void 0)&&k.selected)||!S.Range.containsPosition((D=this.d)===null||D===void 0?void 0:D.selected.marker,y.position))&&((M=this.d)===null||M===void 0||M.resetIndex())})),this.c.add(this.d.onDidChange(()=>{if(!this.f||!this.f.position||!this.d)return;const y=this.d.find(this.a.getModel().uri,this.f.position);y?this.f.updateMarker(y.marker):this.f.showStale()})),this.c.add(this.f.onDidSelectRelatedInformation(y=>{this.i.openCodeEditor({resource:y.resource,options:{pinned:!0,revealIfOpened:!0,selection:S.Range.lift(y).collapseToStart()}},this.a),this.close(!1)})),this.c.add(this.a.onDidChangeModel(()=>this.k())),this.d}close(p=!0){this.k(),p&&this.a.focus()}showAtMarker(p){if(this.a.hasModel()){const b=this.l(this.a.getModel().uri);b.resetIndex(),b.move(!0,this.a.getModel(),new L.Position(p.startLineNumber,p.startColumn)),b.selected&&this.f.showAtMarker(b.selected.marker,b.selected.index,b.selected.total)}}nagivate(p,b){var y,k;return ye(this,void 0,void 0,function*(){if(this.a.hasModel()){const D=this.l(b?void 0:this.a.getModel().uri);if(D.move(p,this.a.getModel(),this.a.getPosition()),!D.selected)return;if(D.selected.marker.resource.toString()!==this.a.getModel().uri.toString()){this.k();const M=yield this.i.openCodeEditor({resource:D.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:D.selected.marker}},this.a);M&&((y=Jt.get(M))===null||y===void 0||y.close(),(k=Jt.get(M))===null||k===void 0||k.nagivate(p,b))}else this.f.showAtMarker(D.selected.marker,D.selected.index,D.selected.total)}})}};c.ID="editor.contrib.markerController",c=Ne([ge(1,f.IMarkerNavigationService),ge(2,t.IContextKeyService),ge(3,I.ICodeEditorService),ge(4,n.IInstantiationService)],c),e.MarkerController=c;class d extends E.EditorAction{constructor(p,b,y){super(y),this.d=p,this.h=b}run(p,b){var y;return ye(this,void 0,void 0,function*(){b.hasModel()&&((y=c.get(b))===null||y===void 0||y.nagivate(this.d,this.h))})}}class s extends d{constructor(){super(!0,!1,{id:s.ID,label:s.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:v.EditorContextKeys.focus,primary:578,weight:100},menuOpts:{menuId:r.MarkerNavigationWidget.TitleMenu,title:s.LABEL,icon:(0,a.registerIcon)("marker-navigation-next",C.Codicon.arrowDown,g.localize(1,null)),group:"navigation",order:1}})}}s.ID="editor.action.marker.next",s.LABEL=g.localize(0,null),e.NextMarkerAction=s;class l extends d{constructor(){super(!1,!1,{id:l.ID,label:l.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:v.EditorContextKeys.focus,primary:1602,weight:100},menuOpts:{menuId:r.MarkerNavigationWidget.TitleMenu,title:l.LABEL,icon:(0,a.registerIcon)("marker-navigation-previous",C.Codicon.arrowUp,g.localize(3,null)),group:"navigation",order:2}})}}l.ID="editor.action.marker.prev",l.LABEL=g.localize(2,null);class o extends d{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:g.localize(4,null),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:v.EditorContextKeys.focus,primary:66,weight:100},menuOpts:{menuId:i.MenuId.MenubarGoMenu,title:g.localize(5,null),group:"6_problem_nav",order:1}})}}class u extends d{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:g.localize(6,null),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:v.EditorContextKeys.focus,primary:1090,weight:100},menuOpts:{menuId:i.MenuId.MenubarGoMenu,title:g.localize(7,null),group:"6_problem_nav",order:2}})}}(0,E.registerEditorContribution)(c.ID,c,4),(0,E.registerEditorAction)(s),(0,E.registerEditorAction)(l),(0,E.registerEditorAction)(o),(0,E.registerEditorAction)(u);const h=new t.RawContextKey("markersNavigationVisible",!1),w=E.EditorCommand.bindToContribution(c.get);(0,E.registerEditorCommand)(new w({id:"closeMarkersNavigation",precondition:h,handler:m=>m.close(),kbOpts:{weight:100+50,kbExpr:v.EditorContextKeys.focus,primary:9,secondary:[1033]}}))}),define(_[833],ee([1,0,7,279,36,6,2,48,44,149,4,39,34,70,37,61,768,124,611,8,38,145,177,23,178,142,404]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s,l,o,u,h,w,m,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ReferenceWidget=e.LayoutData=void 0;class b{constructor(z,R){this.g=z,this.h=R,this.b=new Map,this.c=new Set,this.d=new L.DisposableStore,this.f=new L.DisposableStore,this.d.add(this.g.onDidChangeModel(()=>this.j())),this.j()}dispose(){this.f.dispose(),this.d.dispose(),this.removeDecorations()}j(){this.f.clear();const z=this.g.getModel();if(!!z){for(const R of this.h.references)if(R.uri.toString()===z.uri.toString()){this.k(R.parent);return}}}k(z){if(!this.g.hasModel())return;this.f.add(this.g.getModel().onDidChangeDecorations(()=>this.l()));const R=[],P=[];for(let A=0,T=z.children.length;A<T;A++){const O=z.children[A];this.c.has(O.id)||O.uri.toString()===this.g.getModel().uri.toString()&&(R.push({range:O.range,options:b.a}),P.push(A))}this.g.changeDecorations(A=>{const T=A.deltaDecorations([],R);for(let O=0;O<T.length;O++)this.b.set(T[O],z.children[P[O]])})}l(){const z=[],R=this.g.getModel();if(!!R){for(const[P,A]of this.b){const T=R.getDecorationRange(P);if(!T)continue;let O=!1;if(!g.Range.equalsRange(T,A.range)){if(g.Range.spansMultipleLines(T))O=!0;else{const B=A.range.endColumn-A.range.startColumn,W=T.endColumn-T.startColumn;B!==W&&(O=!0)}O?(this.c.add(A.id),z.push(P)):A.range=T}}for(let P=0,A=z.length;P<A;P++)this.b.delete(z[P]);this.g.removeDecorations(z)}}removeDecorations(){this.g.removeDecorations([...this.b.keys()]),this.b.clear()}}b.a=i.ModelDecorationOptions.register({description:"reference-decoration",stickiness:1,className:"reference-decoration"});class y{constructor(){this.ratio=.7,this.heightInLines=18}static fromJSON(z){let R,P;try{const A=JSON.parse(z);R=A.ratio,P=A.heightInLines}catch{}return{ratio:R||.7,heightInLines:P||18}}}e.LayoutData=y;class k extends h.WorkbenchAsyncDataTree{}let D=class extends d.PeekViewWidget{constructor(z,R,P,A,T,O,B,W,j,F,U,Q){super(z,{showFrame:!1,showArrow:!0,isResizeable:!0,isAccessible:!0,supportOnTitleClick:!0},O),this.fb=R,this.layoutData=P,this.gb=T,this.hb=O,this.ib=B,this.jb=W,this.kb=j,this.lb=F,this.mb=U,this.nb=Q,this.T=new L.DisposableStore,this.U=new L.DisposableStore,this.V=new I.Emitter,this.onDidSelectReference=this.V.event,this.eb=new C.Dimension(0,0),this.ob(A.getColorTheme()),this.U.add(A.onDidColorThemeChange(this.ob.bind(this))),this.ib.addExclusiveWidget(z,this),this.create()}dispose(){this.setModel(void 0),this.U.dispose(),this.T.dispose(),(0,L.dispose)(this.Z),(0,L.dispose)(this.bb),(0,L.dispose)(this.W),(0,L.dispose)(this.ab),this.Y.dispose(),super.dispose()}ob(z){const R=z.getColor(d.peekViewBorder)||E.Color.transparent;this.style({arrowColor:R,frameColor:R,headerBackgroundColor:z.getColor(d.peekViewTitleBackground)||E.Color.transparent,primaryHeadingColor:z.getColor(d.peekViewTitleForeground),secondaryHeadingColor:z.getColor(d.peekViewTitleInfoForeground)})}show(z){super.show(z,this.layoutData.heightInLines||18)}focusOnReferenceTree(){this.W.domFocus()}focusOnPreviewEditor(){this.Z.focus()}isPreviewEditorFocused(){return this.Z.hasTextFocus()}M(z){this.Z&&this.Z.getModel()&&this.V.fire({element:this.ub(),kind:z.ctrlKey||z.metaKey||z.altKey?"side":"open",source:"title"})}N(z){this.r("reference-zone-widget"),this.db=C.append(z,C.$("div.messages")),C.hide(this.db),this.Y=new N.SplitView(z,{orientation:1}),this.cb=C.append(z,C.$("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.Z=this.hb.createInstance(f.EmbeddedCodeEditorWidget,this.cb,R,this.editor),C.hide(this.cb),this.bb=new i.TextModel(s.localize(0,null),n.PLAINTEXT_LANGUAGE_ID,i.TextModel.DEFAULT_CREATION_OPTIONS,null,this.kb,this.mb,this.nb),this.X=C.append(z,C.$("div.ref-tree.inline"));const P={keyboardSupport:this.fb,accessibilityProvider:new c.AccessibilityProvider,keyboardNavigationLabelProvider:this.hb.createInstance(c.StringRepresentationProvider),identityProvider:new c.IdentityProvider,openOnSingleClick:!0,selectionNavigation:!0,overrideStyles:{listBackground:d.peekViewResultsBackground}};this.fb&&this.U.add(C.addStandardDisposableListener(this.X,"keydown",T=>{T.equals(9)&&(this.lb.dispatchEvent(T,T.target),T.stopPropagation())},!0)),this.W=this.hb.createInstance(k,"ReferencesWidget",this.X,new c.Delegate,[this.hb.createInstance(c.FileReferencesRenderer),this.hb.createInstance(c.OneReferenceRenderer)],this.hb.createInstance(c.DataSource),P),this.Y.addView({onDidChange:I.Event.None,element:this.cb,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:T=>{this.Z.layout({height:this.eb.height,width:T})}},N.Sizing.Distribute),this.Y.addView({onDidChange:I.Event.None,element:this.X,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:T=>{this.X.style.height=`${this.eb.height}px`,this.X.style.width=`${T}px`,this.W.layout(this.eb.height,T)}},N.Sizing.Distribute),this.g.add(this.Y.onDidSashChange(()=>{this.eb.width&&(this.layoutData.ratio=this.Y.getViewSize(0)/this.eb.width)},void 0));const A=(T,O)=>{T instanceof p.OneReference&&(O==="show"&&this.wb(T,!1),this.V.fire({element:T,kind:O,source:"tree"}))};this.W.onDidOpen(T=>{T.sideBySide?A(T.element,"side"):T.editorOptions.pinned?A(T.element,"goto"):A(T.element,"show")}),C.hide(this.X)}t(z){this.eb&&this.Q(this.eb.height,z)}Q(z,R){super.Q(z,R),this.eb=new C.Dimension(R,z),this.layoutData.heightInLines=this.f?this.f.heightInLines:this.layoutData.heightInLines,this.Y.layout(R),this.Y.resizeView(0,R*this.layoutData.ratio)}setSelection(z){return this.wb(z,!0).then(()=>{!this.R||(this.W.setSelection([z]),this.W.setFocus([z]))})}setModel(z){return this.T.clear(),this.R=z,this.R?this.tb():Promise.resolve()}tb(){return this.R?this.R.isEmpty?(this.setTitle(""),this.db.innerText=s.localize(1,null),C.show(this.db),Promise.resolve(void 0)):(C.hide(this.db),this.S=new b(this.Z,this.R),this.T.add(this.S),this.T.add(this.R.onDidChangeReferenceRange(z=>this.W.rerender(z))),this.T.add(this.Z.onMouseDown(z=>{const{event:R,target:P}=z;if(R.detail!==2)return;const A=this.ub();!A||this.V.fire({element:{uri:A.uri,range:P.range},kind:R.ctrlKey||R.metaKey||R.altKey?"side":"open",source:"editor"})})),this.container.classList.add("results-loaded"),C.show(this.X),C.show(this.cb),this.Y.layout(this.eb.width),this.focusOnReferenceTree(),this.W.setInput(this.R.groups.length===1?this.R.groups[0]:this.R)):Promise.resolve(void 0)}ub(){const[z]=this.W.getFocus();if(z instanceof p.OneReference)return z;if(z instanceof p.FileReferences&&z.children.length>0)return z.children[0]}revealReference(z){return ye(this,void 0,void 0,function*(){yield this.wb(z,!1),this.V.fire({element:z,kind:"goto",source:"tree"})})}wb(z,R){return ye(this,void 0,void 0,function*(){if(this.vb===z)return;this.vb=z,z.uri.scheme!==S.Schemas.inMemory?this.setTitle((0,v.basenameOrAuthority)(z.uri),this.jb.getUriLabel((0,v.dirname)(z.uri))):this.setTitle(s.localize(2,null));const P=this.gb.createModelReference(z.uri);this.W.getInput()===z.parent?this.W.reveal(z):(R&&this.W.reveal(z.parent),yield this.W.expand(z.parent),this.W.reveal(z));const A=yield P;if(!this.R){A.dispose();return}(0,L.dispose)(this.ab);const T=A.object;if(T){const O=this.Z.getModel()===T.textEditorModel?0:1,B=g.Range.lift(z.range).collapseToStart();this.ab=A,this.Z.setModel(T.textEditorModel),this.Z.setSelection(B),this.Z.revealRangeInCenter(B,O)}else this.Z.setModel(this.bb),A.dispose()})}};D=Ne([ge(3,w.IThemeService),ge(4,r.ITextModelService),ge(5,l.IInstantiationService),ge(6,d.IPeekViewService),ge(7,u.ILabelService),ge(8,m.IUndoRedoService),ge(9,o.IKeybindingService),ge(10,a.ILanguageService),ge(11,t.ILanguageConfigurationService)],D),e.ReferenceWidget=D}),define(_[329],ee([1,0,11,13,58,2,30,12,4,124,609,25,27,15,8,109,177,42,84,142,833]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s,l,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ReferencesController=e.ctxReferenceSearchVisible=void 0,e.ctxReferenceSearchVisible=new n.RawContextKey("referenceSearchVisible",!1,g.localize(0,null));let u=class mi{static get(m){return m.getContribution(mi.ID)}constructor(m,p,b,y,k,D,M,z){this.h=m,this.i=p,this.j=y,this.k=k,this.l=D,this.m=M,this.n=z,this.a=new I.DisposableStore,this.e=0,this.f=!1,this.g=e.ctxReferenceSearchVisible.bindTo(b)}dispose(){var m,p;this.g.reset(),this.a.dispose(),(m=this.b)===null||m===void 0||m.dispose(),(p=this.c)===null||p===void 0||p.dispose(),this.b=void 0,this.c=void 0}toggleWidget(m,p,b){let y;if(this.b&&(y=this.b.position),this.closeWidget(),!!y&&m.containsPosition(y))return;this.d=b,this.g.set(!0),this.a.add(this.i.onDidChangeModelLanguage(()=>{this.closeWidget()})),this.a.add(this.i.onDidChangeModel(()=>{this.f||this.closeWidget()}));const k="peekViewLayout",D=o.LayoutData.fromJSON(this.m.get(k,0,"{}"));this.b=this.l.createInstance(o.ReferenceWidget,this.i,this.h,D),this.b.setTitle(g.localize(1,null)),this.b.show(m),this.a.add(this.b.onDidClose(()=>{p.cancel(),this.b&&(this.m.store(k,JSON.stringify(this.b.layoutData),0,1),this.b=void 0),this.closeWidget()})),this.a.add(this.b.onDidSelectReference(z=>{const{element:R,kind:P}=z;if(!!R)switch(P){case"open":(z.source!=="editor"||!this.n.getValue("editor.stablePeek"))&&this.openReference(R,!1,!1);break;case"side":this.openReference(R,!0,!1);break;case"goto":b?this.o(R,!0):this.openReference(R,!1,!0);break}}));const M=++this.e;p.then(z=>{var R;if(M!==this.e||!this.b){z.dispose();return}return(R=this.c)===null||R===void 0||R.dispose(),this.c=z,this.b.setModel(this.c).then(()=>{if(this.b&&this.c&&this.i.hasModel()){this.c.isEmpty?this.b.setMetaTitle(""):this.b.setMetaTitle(g.localize(2,null,this.c.title,this.c.references.length));const P=this.i.getModel().uri,A=new S.Position(m.startLineNumber,m.startColumn),T=this.c.nearestReference(P,A);if(T)return this.b.setSelection(T).then(()=>{this.b&&this.i.getOption(82)==="editor"&&this.b.focusOnPreviewEditor()})}})},z=>{this.k.error(z)})}changeFocusBetweenPreviewAndReferences(){!this.b||(this.b.isPreviewEditorFocused()?this.b.focusOnReferenceTree():this.b.focusOnPreviewEditor())}goToNextOrPreviousReference(m){return ye(this,void 0,void 0,function*(){if(!this.i.hasModel()||!this.c||!this.b)return;const p=this.b.position;if(!p)return;const b=this.c.nearestReference(this.i.getModel().uri,p);if(!b)return;const y=this.c.nextOrPreviousReference(b,m),k=this.i.hasTextFocus(),D=this.b.isPreviewEditorFocused();yield this.b.setSelection(y),yield this.o(y,!1),k?this.i.focus():this.b&&D&&this.b.focusOnPreviewEditor()})}revealReference(m){return ye(this,void 0,void 0,function*(){!this.i.hasModel()||!this.c||!this.b||(yield this.b.revealReference(m))})}closeWidget(m=!0){var p,b;(p=this.b)===null||p===void 0||p.dispose(),(b=this.c)===null||b===void 0||b.dispose(),this.g.reset(),this.a.clear(),this.b=void 0,this.c=void 0,m&&this.i.focus(),this.e+=1}o(m,p){var b;(b=this.b)===null||b===void 0||b.hide(),this.f=!0;const y=v.Range.lift(m.range).collapseToStart();return this.j.openCodeEditor({resource:m.uri,options:{selection:y,selectionSource:"code.jump",pinned:p}},this.i).then(k=>{var D;if(this.f=!1,!k||!this.b){this.closeWidget();return}if(this.i===k)this.b.show(y),this.b.focusOnReferenceTree();else{const M=mi.get(k),z=this.c.clone();this.closeWidget(),k.focus(),M?.toggleWidget(y,(0,C.createCancelablePromise)(R=>Promise.resolve(z)),(D=this.d)!==null&&D!==void 0?D:!1)}},k=>{this.f=!1,(0,N.onUnexpectedError)(k)})}openReference(m,p,b){p||this.closeWidget();const{uri:y,range:k}=m;this.j.openCodeEditor({resource:y,options:{selection:k,selectionSource:"code.jump",pinned:b}},this.i,p)}};u.ID="editor.contrib.referencesController",u=Ne([ge(2,n.IContextKeyService),ge(3,L.ICodeEditorService),ge(4,d.INotificationService),ge(5,a.IInstantiationService),ge(6,s.IStorageService),ge(7,t.IConfigurationService)],u),e.ReferencesController=u;function h(w,m){const p=(0,f.getOuterEditor)(w);if(!p)return;const b=u.get(p);b&&m(b)}r.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:(0,E.KeyChord)(2089,60),when:n.ContextKeyExpr.or(e.ctxReferenceSearchVisible,f.PeekContext.inPeekEditor),handler(w){h(w,m=>{m.changeFocusBetweenPreviewAndReferences()})}}),r.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"goToNextReference",weight:100-10,primary:62,secondary:[70],when:n.ContextKeyExpr.or(e.ctxReferenceSearchVisible,f.PeekContext.inPeekEditor),handler(w){h(w,m=>{m.goToNextOrPreviousReference(!0)})}}),r.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:100-10,primary:1086,secondary:[1094],when:n.ContextKeyExpr.or(e.ctxReferenceSearchVisible,f.PeekContext.inPeekEditor),handler(w){h(w,m=>{m.goToNextOrPreviousReference(!1)})}}),i.CommandsRegistry.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference"),i.CommandsRegistry.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference"),i.CommandsRegistry.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch"),i.CommandsRegistry.registerCommand("closeReferenceSearch",w=>h(w,m=>m.closeWidget())),r.KeybindingsRegistry.registerKeybindingRule({id:"closeReferenceSearch",weight:100-101,primary:9,secondary:[1033],when:n.ContextKeyExpr.and(f.PeekContext.inPeekEditor,n.ContextKeyExpr.not("config.editor.stablePeek"))}),r.KeybindingsRegistry.registerKeybindingRule({id:"closeReferenceSearch",weight:200+50,primary:9,secondary:[1033],when:n.ContextKeyExpr.and(e.ctxReferenceSearchVisible,n.ContextKeyExpr.not("config.editor.stablePeek"))}),r.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:n.ContextKeyExpr.and(e.ctxReferenceSearchVisible,c.WorkbenchListFocusContextKey,c.WorkbenchTreeElementCanCollapse.negate(),c.WorkbenchTreeElementCanExpand.negate()),handler(w){var m;const b=(m=w.get(c.IListService).lastFocusedList)===null||m===void 0?void 0:m.getFocus();Array.isArray(b)&&b[0]instanceof l.OneReference&&h(w,y=>y.revealReference(b[0]))}}),r.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:n.ContextKeyExpr.and(e.ctxReferenceSearchVisible,c.WorkbenchListFocusContextKey,c.WorkbenchTreeElementCanCollapse.negate(),c.WorkbenchTreeElementCanExpand.negate()),handler(w){var m;const b=(m=w.get(c.IListService).lastFocusedList)===null||m===void 0?void 0:m.getFocus();Array.isArray(b)&&b[0]instanceof l.OneReference&&h(w,y=>y.openReference(b[0],!0,!0))}}),i.CommandsRegistry.registerCommand("openReference",w=>{var m;const b=(m=w.get(c.IListService).lastFocusedList)===null||m===void 0?void 0:m.getFocus();Array.isArray(b)&&b[0]instanceof l.OneReference&&h(w,y=>y.openReference(b[0],!1,!0))})}),define(_[234],ee([1,0,45,52,11,58,16,18,21,97,161,14,30,149,12,4,24,26,329,142,746,146,124,607,28,25,15,8,42,69,229,19,54]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s,l,o,u,h,w,m,p,b,y,k,D,M,z,R){"use strict";var P,A,T,O,B,W,j,F;Object.defineProperty(e,"__esModule",{value:!0}),e.DefinitionAction=e.SymbolNavigationAction=e.SymbolNavigationAnchor=void 0,m.MenuRegistry.appendMenuItem(m.MenuId.EditorContext,{submenu:m.MenuId.EditorContextPeek,title:w.localize(0,null),group:"navigation",order:100});class U{static is(Z){return!Z||typeof Z!="object"?!1:!!(Z instanceof U||a.Position.isIPosition(Z.position)&&Z.model)}constructor(Z,ae){this.model=Z,this.position=ae}}e.SymbolNavigationAnchor=U;class Q extends i.EditorAction2{static all(){return Q.d.values()}static f(Z){const ae=Object.assign(Object.assign({},Z),{f1:!0});if(ae.menu)for(const de of R.Iterable.wrap(ae.menu))(de.id===m.MenuId.EditorContext||de.id===m.MenuId.EditorContextPeek)&&(de.when=b.ContextKeyExpr.and(Z.precondition,de.when));return ae}constructor(Z,ae){super(Q.f(ae)),this.configuration=Z,Q.d.set(ae.id,this)}runEditorCommand(Z,ae,de,K){if(!ae.hasModel())return Promise.resolve(void 0);const Y=Z.get(k.INotificationService),ne=Z.get(t.ICodeEditorService),V=Z.get(D.IEditorProgressService),H=Z.get(o.ISymbolNavigationService),$=Z.get(z.ILanguageFeaturesService),oe=Z.get(y.IInstantiationService),re=ae.getModel(),X=ae.getPosition(),le=U.is(de)?de:new U(re,X),me=new f.EditorStateCancellationTokenSource(ae,5),we=(0,E.raceCancellation)(this.g($,le.model,le.position,me.token),me.token).then(Le=>ye(this,void 0,void 0,function*(){var Ee;if(!Le||me.token.isCancellationRequested)return;(0,N.alert)(Le.ariaMessage);let Me;if(Le.referenceAt(re.uri,X)){const ke=this.j(ae);!Q.e.has(ke)&&Q.d.has(ke)&&(Me=Q.d.get(ke))}const Ae=Le.references.length;if(Ae===0){if(!this.configuration.muteMessage){const ke=re.getWordAtPosition(X);(Ee=u.MessageController.get(ae))===null||Ee===void 0||Ee.showMessage(this.h(ke),X)}}else if(Ae===1&&Me)Q.e.add(this.desc.id),oe.invokeFunction(ke=>Me.runEditorCommand(ke,ae,de,K).finally(()=>{Q.e.delete(this.desc.id)}));else return this.l(ne,H,ae,Le,K)}),Le=>{Y.error(Le)}).finally(()=>{me.dispose()});return V.showWhile(we,250),we}l(Z,ae,de,K,Y){return ye(this,void 0,void 0,function*(){const ne=this.k(de);if(!(de instanceof n.EmbeddedCodeEditorWidget)&&(this.configuration.openInPeek||ne==="peek"&&K.references.length>1))this.n(de,K,Y);else{const V=K.firstReference(),H=K.references.length>1&&ne==="gotoAndPeek",$=yield this.m(de,Z,V,this.configuration.openToSide,!H);H&&$?this.n($,K,Y):K.dispose(),ne==="goto"&&ae.put(V)}})}m(Z,ae,de,K,Y){return ye(this,void 0,void 0,function*(){let ne;if((0,d.isLocationLink)(de)&&(ne=de.targetSelectionRange),ne||(ne=de.range),!ne)return;const V=yield ae.openCodeEditor({resource:de.uri,options:{selection:r.Range.collapseToStart(ne),selectionRevealType:3,selectionSource:"code.jump"}},Z,K);if(!!V){if(Y){const H=V.getModel(),$=V.createDecorationsCollection([{range:ne,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout(()=>{V.getModel()===H&&$.clear()},350)}return V}})}n(Z,ae,de){const K=s.ReferencesController.get(Z);K&&Z.hasModel()?K.toggleWidget(de??Z.getSelection(),(0,E.createCancelablePromise)(Y=>Promise.resolve(ae)),this.configuration.openInPeek):ae.dispose()}}Q.d=new Map,Q.e=new Set,e.SymbolNavigationAction=Q;class se extends Q{g(Z,ae,de,K){return ye(this,void 0,void 0,function*(){return new l.ReferencesModel(yield(0,M.getDefinitionsAtPosition)(Z.definitionProvider,ae,de,K),w.localize(1,null))})}h(Z){return Z&&Z.word?w.localize(2,null,Z.word):w.localize(3,null)}j(Z){return Z.getOption(55).alternativeDefinitionCommand}k(Z){return Z.getOption(55).multipleDefinitions}}e.DefinitionAction=se;const he=L.isWeb&&!(0,C.isStandalone)()?2118:70;(0,m.registerAction2)((P=class pi extends se{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:pi.id,title:{value:w.localize(4,null),original:"Go to Definition",mnemonicTitle:w.localize(5,null)},precondition:b.ContextKeyExpr.and(c.EditorContextKeys.hasDefinitionProvider,c.EditorContextKeys.isInWalkThroughSnippet.toNegated()),keybinding:{when:c.EditorContextKeys.editorTextFocus,primary:he,weight:100},menu:[{id:m.MenuId.EditorContext,group:"navigation",order:1.1},{id:m.MenuId.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:2}]}),p.CommandsRegistry.registerCommandAlias("editor.action.goToDeclaration",pi.id)}},P.id="editor.action.revealDefinition",P)),(0,m.registerAction2)((A=class bi extends se{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:bi.id,title:{value:w.localize(6,null),original:"Open Definition to the Side"},precondition:b.ContextKeyExpr.and(c.EditorContextKeys.hasDefinitionProvider,c.EditorContextKeys.isInWalkThroughSnippet.toNegated()),keybinding:{when:c.EditorContextKeys.editorTextFocus,primary:(0,I.KeyChord)(2089,he),weight:100}}),p.CommandsRegistry.registerCommandAlias("editor.action.openDeclarationToTheSide",bi.id)}},A.id="editor.action.revealDefinitionAside",A)),(0,m.registerAction2)((T=class vi extends se{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:vi.id,title:{value:w.localize(7,null),original:"Peek Definition"},precondition:b.ContextKeyExpr.and(c.EditorContextKeys.hasDefinitionProvider,h.PeekContext.notInPeekEditor,c.EditorContextKeys.isInWalkThroughSnippet.toNegated()),keybinding:{when:c.EditorContextKeys.editorTextFocus,primary:582,linux:{primary:3140},weight:100},menu:{id:m.MenuId.EditorContextPeek,group:"peek",order:2}}),p.CommandsRegistry.registerCommandAlias("editor.action.previewDeclaration",vi.id)}},T.id="editor.action.peekDefinition",T));class ie extends Q{g(Z,ae,de,K){return ye(this,void 0,void 0,function*(){return new l.ReferencesModel(yield(0,M.getDeclarationsAtPosition)(Z.declarationProvider,ae,de,K),w.localize(8,null))})}h(Z){return Z&&Z.word?w.localize(9,null,Z.word):w.localize(10,null)}j(Z){return Z.getOption(55).alternativeDeclarationCommand}k(Z){return Z.getOption(55).multipleDeclarations}}(0,m.registerAction2)((O=class en extends ie{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:en.id,title:{value:w.localize(11,null),original:"Go to Declaration",mnemonicTitle:w.localize(12,null)},precondition:b.ContextKeyExpr.and(c.EditorContextKeys.hasDeclarationProvider,c.EditorContextKeys.isInWalkThroughSnippet.toNegated()),menu:[{id:m.MenuId.EditorContext,group:"navigation",order:1.3},{id:m.MenuId.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}h(Z){return Z&&Z.word?w.localize(13,null,Z.word):w.localize(14,null)}},O.id="editor.action.revealDeclaration",O)),(0,m.registerAction2)(class extends ie{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",title:{value:w.localize(15,null),original:"Peek Declaration"},precondition:b.ContextKeyExpr.and(c.EditorContextKeys.hasDeclarationProvider,h.PeekContext.notInPeekEditor,c.EditorContextKeys.isInWalkThroughSnippet.toNegated()),menu:{id:m.MenuId.EditorContextPeek,group:"peek",order:3}})}});class ue extends Q{g(Z,ae,de,K){return ye(this,void 0,void 0,function*(){return new l.ReferencesModel(yield(0,M.getTypeDefinitionsAtPosition)(Z.typeDefinitionProvider,ae,de,K),w.localize(16,null))})}h(Z){return Z&&Z.word?w.localize(17,null,Z.word):w.localize(18,null)}j(Z){return Z.getOption(55).alternativeTypeDefinitionCommand}k(Z){return Z.getOption(55).multipleTypeDefinitions}}(0,m.registerAction2)((B=class tn extends ue{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:tn.ID,title:{value:w.localize(19,null),original:"Go to Type Definition",mnemonicTitle:w.localize(20,null)},precondition:b.ContextKeyExpr.and(c.EditorContextKeys.hasTypeDefinitionProvider,c.EditorContextKeys.isInWalkThroughSnippet.toNegated()),keybinding:{when:c.EditorContextKeys.editorTextFocus,primary:0,weight:100},menu:[{id:m.MenuId.EditorContext,group:"navigation",order:1.4},{id:m.MenuId.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}},B.ID="editor.action.goToTypeDefinition",B)),(0,m.registerAction2)((W=class nn extends ue{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:nn.ID,title:{value:w.localize(21,null),original:"Peek Type Definition"},precondition:b.ContextKeyExpr.and(c.EditorContextKeys.hasTypeDefinitionProvider,h.PeekContext.notInPeekEditor,c.EditorContextKeys.isInWalkThroughSnippet.toNegated()),menu:{id:m.MenuId.EditorContextPeek,group:"peek",order:4}})}},W.ID="editor.action.peekTypeDefinition",W));class J extends Q{g(Z,ae,de,K){return ye(this,void 0,void 0,function*(){return new l.ReferencesModel(yield(0,M.getImplementationsAtPosition)(Z.implementationProvider,ae,de,K),w.localize(22,null))})}h(Z){return Z&&Z.word?w.localize(23,null,Z.word):w.localize(24,null)}j(Z){return Z.getOption(55).alternativeImplementationCommand}k(Z){return Z.getOption(55).multipleImplementations}}(0,m.registerAction2)((j=class sn extends J{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:sn.ID,title:{value:w.localize(25,null),original:"Go to Implementations",mnemonicTitle:w.localize(26,null)},precondition:b.ContextKeyExpr.and(c.EditorContextKeys.hasImplementationProvider,c.EditorContextKeys.isInWalkThroughSnippet.toNegated()),keybinding:{when:c.EditorContextKeys.editorTextFocus,primary:2118,weight:100},menu:[{id:m.MenuId.EditorContext,group:"navigation",order:1.45},{id:m.MenuId.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:4}]})}},j.ID="editor.action.goToImplementation",j)),(0,m.registerAction2)((F=class rn extends J{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:rn.ID,title:{value:w.localize(27,null),original:"Peek Implementations"},precondition:b.ContextKeyExpr.and(c.EditorContextKeys.hasImplementationProvider,h.PeekContext.notInPeekEditor,c.EditorContextKeys.isInWalkThroughSnippet.toNegated()),keybinding:{when:c.EditorContextKeys.editorTextFocus,primary:3142,weight:100},menu:{id:m.MenuId.EditorContextPeek,group:"peek",order:5}})}},F.ID="editor.action.peekImplementation",F));class x extends Q{h(Z){return Z?w.localize(28,null,Z.word):w.localize(29,null)}j(Z){return Z.getOption(55).alternativeReferenceCommand}k(Z){return Z.getOption(55).multipleReferences}}(0,m.registerAction2)(class extends x{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",title:{value:w.localize(30,null),original:"Go to References",mnemonicTitle:w.localize(31,null)},precondition:b.ContextKeyExpr.and(c.EditorContextKeys.hasReferenceProvider,h.PeekContext.notInPeekEditor,c.EditorContextKeys.isInWalkThroughSnippet.toNegated()),keybinding:{when:c.EditorContextKeys.editorTextFocus,primary:1094,weight:100},menu:[{id:m.MenuId.EditorContext,group:"navigation",order:1.45},{id:m.MenuId.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:5}]})}g(Z,ae,de,K){return ye(this,void 0,void 0,function*(){return new l.ReferencesModel(yield(0,M.getReferencesAtPosition)(Z.referenceProvider,ae,de,!0,K),w.localize(32,null))})}}),(0,m.registerAction2)(class extends x{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",title:{value:w.localize(33,null),original:"Peek References"},precondition:b.ContextKeyExpr.and(c.EditorContextKeys.hasReferenceProvider,h.PeekContext.notInPeekEditor,c.EditorContextKeys.isInWalkThroughSnippet.toNegated()),menu:{id:m.MenuId.EditorContextPeek,group:"peek",order:6}})}g(Z,ae,de,K){return ye(this,void 0,void 0,function*(){return new l.ReferencesModel(yield(0,M.getReferencesAtPosition)(Z.referenceProvider,ae,de,!1,K),w.localize(34,null))})}});class G extends Q{constructor(Z,ae,de){super(Z,{id:"editor.action.goToLocation",title:{value:w.localize(35,null),original:"Go to Any Symbol"},precondition:b.ContextKeyExpr.and(h.PeekContext.notInPeekEditor,c.EditorContextKeys.isInWalkThroughSnippet.toNegated())}),this.o=ae,this.p=de}g(Z,ae,de,K){return ye(this,void 0,void 0,function*(){return new l.ReferencesModel(this.o,w.localize(36,null))})}h(Z){return Z&&w.localize(37,null,Z.word)||""}k(Z){var ae;return(ae=this.p)!==null&&ae!==void 0?ae:Z.getOption(55).multipleReferences}j(){return""}}p.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:v.URI},{name:"position",description:"The position at which to start",constraint:a.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:(te,Z,ae,de,K,Y,ne)=>ye(void 0,void 0,void 0,function*(){(0,S.assertType)(v.URI.isUri(Z)),(0,S.assertType)(a.Position.isIPosition(ae)),(0,S.assertType)(Array.isArray(de)),(0,S.assertType)(typeof K>"u"||typeof K=="string"),(0,S.assertType)(typeof ne>"u"||typeof ne=="boolean");const V=te.get(t.ICodeEditorService),H=yield V.openCodeEditor({resource:Z},V.getFocusedCodeEditor());if((0,g.isCodeEditor)(H))return H.setPosition(ae),H.revealPositionInCenterIfOutsideViewport(ae,0),H.invokeWithinContext($=>{const oe=new class extends G{h(re){return Y||super.h(re)}}({muteMessage:!Boolean(Y),openInPeek:Boolean(ne),openToSide:!1},de,K);$.get(y.IInstantiationService).invokeFunction(oe.run.bind(oe),H)})})}),p.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:v.URI},{name:"position",description:"The position at which to start",constraint:a.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:(te,Z,ae,de,K)=>ye(void 0,void 0,void 0,function*(){te.get(p.ICommandService).executeCommand("editor.action.goToLocations",Z,ae,de,K,void 0,!0)})}),p.CommandsRegistry.registerCommand({id:"editor.action.findReferences",handler:(te,Z,ae)=>{(0,S.assertType)(v.URI.isUri(Z)),(0,S.assertType)(a.Position.isIPosition(ae));const de=te.get(z.ILanguageFeaturesService),K=te.get(t.ICodeEditorService);return K.openCodeEditor({resource:Z},K.getFocusedCodeEditor()).then(Y=>{if(!(0,g.isCodeEditor)(Y)||!Y.hasModel())return;const ne=s.ReferencesController.get(Y);if(!ne)return;const V=(0,E.createCancelablePromise)($=>(0,M.getReferencesAtPosition)(de.referenceProvider,Y.getModel(),a.Position.lift(ae),!1,$).then(oe=>new l.ReferencesModel(oe,w.localize(38,null)))),H=new r.Range(ae.lineNumber,ae.column,ae.lineNumber,ae.column);return Promise.resolve(ne.toggleWidget(H,V,!1))})}}),p.CommandsRegistry.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations")}),define(_[330],ee([1,0,11,13,72,2,18,97,14,4,37,61,170,124,608,15,234,229,19,39,403]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GotoDefinitionAtPositionEditorContribution=void 0;let o=class _t{constructor(h,w,m,p){this.h=w,this.i=m,this.j=p,this.b=new I.DisposableStore,this.c=new I.DisposableStore,this.f=null,this.g=null,this.a=h,this.d=this.a.createDecorationsCollection();const b=new t.ClickLinkGesture(h);this.b.add(b),this.b.add(b.onMouseMoveOrRelevantKeyDown(([y,k])=>{this.k(y,(0,L.withNullAsUndefined)(k))})),this.b.add(b.onExecute(y=>{this.r(y)&&this.t(y.target.position,y.hasSideBySideModifier).catch(k=>{(0,N.onUnexpectedError)(k)}).finally(()=>{this.q()})})),this.b.add(b.onCancel(()=>{this.q(),this.f=null}))}static get(h){return h.getContribution(_t.ID)}startFindDefinitionFromCursor(h){return ye(this,void 0,void 0,function*(){yield this.l(h),this.c.add(this.a.onDidChangeCursorPosition(()=>{this.f=null,this.q(),this.c.clear()})),this.c.add(this.a.onKeyDown(w=>{w&&(this.f=null,this.q(),this.c.clear())}))})}k(h,w){if(h.target.type===9&&this.d.length>0)return;if(!this.a.hasModel()||!this.r(h,w)){this.f=null,this.q();return}const m=h.target.position;this.l(m)}l(h){var w;return ye(this,void 0,void 0,function*(){this.c.clear();const m=h?(w=this.a.getModel())===null||w===void 0?void 0:w.getWordAtPosition(h):null;if(!m){this.f=null,this.q();return}if(this.f&&this.f.startColumn===m.startColumn&&this.f.endColumn===m.endColumn&&this.f.word===m.word)return;this.f=m;const p=new S.EditorState(this.a,15);this.g&&(this.g.cancel(),this.g=null),this.g=(0,C.createCancelablePromise)(k=>this.s(h,k));let b;try{b=yield this.g}catch(k){(0,N.onUnexpectedError)(k);return}if(!b||!b.length||!p.validate(this.a)){this.q();return}const y=b[0].originSelectionRange?f.Range.lift(b[0].originSelectionRange):new f.Range(h.lineNumber,m.startColumn,h.lineNumber,m.endColumn);if(b.length>1){let k=y;for(const{originSelectionRange:D}of b)D&&(k=f.Range.plusRange(k,D));this.p(k,new E.MarkdownString().appendText(a.localize(0,null,b.length)))}else{const k=b[0];if(!k.uri)return;this.h.createModelReference(k.uri).then(D=>{if(!D.object||!D.object.textEditorModel){D.dispose();return}const{object:{textEditorModel:M}}=D,{startLineNumber:z}=k.range;if(z<1||z>M.getLineCount()){D.dispose();return}const R=this.m(M,z,k),P=this.i.guessLanguageIdByFilepathOrFirstLine(M.uri);this.p(y,R?new E.MarkdownString().appendCodeblock(P||"",R):void 0),D.dispose()})}})}m(h,w,m){let p=m.range;return p.endLineNumber-p.startLineNumber>=_t.MAX_SOURCE_PREVIEW_LINES&&(p=this.o(h,w)),this.n(h,w,p)}n(h,w,m){let b=h.getLineFirstNonWhitespaceColumn(w);for(let k=w+1;k<m.endLineNumber;k++){const D=h.getLineFirstNonWhitespaceColumn(k);b=Math.min(b,D)}return h.getValueInRange(m).replace(new RegExp(`^\\s{${b-1}}`,"gm"),"").trim()}o(h,w){const m=h.getLineFirstNonWhitespaceColumn(w),p=Math.min(h.getLineCount(),w+_t.MAX_SOURCE_PREVIEW_LINES);let b=w+1;for(;b<p;b++){const y=h.getLineFirstNonWhitespaceColumn(b);if(m===y)break}return new f.Range(w,1,b+1,1)}p(h,w){const m={range:h,options:{description:"goto-definition-link",inlineClassName:"goto-definition-link",hoverMessage:w}};this.d.set([m])}q(){this.d.clear()}r(h,w){var m;return this.a.hasModel()&&h.isLeftClick&&h.isNoneOrSingleMouseDown&&h.target.type===6&&!(((m=h.target.detail.injectedText)===null||m===void 0?void 0:m.options)instanceof l.ModelDecorationInjectedTextOptions)&&(h.hasTriggerModifier||(w?w.keyCodeIsTriggerKey:!1))&&this.j.definitionProvider.has(this.a.getModel())}s(h,w){const m=this.a.getModel();return m?(0,d.getDefinitionsAtPosition)(this.j.definitionProvider,m,h,w):Promise.resolve(null)}t(h,w){return this.a.setPosition(h),this.a.invokeWithinContext(m=>{const p=!w&&this.a.getOption(83)&&!this.u(m);return new c.DefinitionAction({openToSide:w,openInPeek:p,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(m)})}u(h){const w=h.get(r.IContextKeyService);return n.PeekContext.inPeekEditor.getValue(w)}dispose(){this.b.dispose(),this.c.dispose()}};o.ID="editor.contrib.gotodefinitionatposition",o.MAX_SOURCE_PREVIEW_LINES=8,o=Ne([ge(1,i.ITextModelService),ge(2,g.ILanguageService),ge(3,s.ILanguageFeaturesService)],o),e.GotoDefinitionAtPositionEditorContribution=o,(0,v.registerEditorContribution)(o.ID,o,2)}),define(_[834],ee([1,0,7,17,11,13,2,44,4,219,176,316,118,328,616,89,50,69,19]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MarkerHoverParticipant=e.MarkerHover=void 0;const l=C.$;class o{constructor(m,p,b){this.owner=m,this.range=p,this.marker=b}isValidForHoverAnchor(m){return m.type===1&&this.range.startColumn<=m.range.startColumn&&this.range.endColumn>=m.range.endColumn}}e.MarkerHover=o;const u={type:1,filter:{include:t.CodeActionKind.QuickFix},triggerAction:t.CodeActionTriggerSource.QuickFixHover};let h=class{constructor(m,p,b,y){this.f=m,this.g=p,this.h=b,this.i=y,this.hoverOrdinal=5,this.c=void 0}computeSync(m,p){if(!this.f.hasModel()||m.type!==1&&!m.supportsMarkerHover)return[];const b=this.f.getModel(),y=m.range.startLineNumber,k=b.getLineMaxColumn(y),D=[];for(const M of p){const z=M.range.startLineNumber===y?M.range.startColumn:1,R=M.range.endLineNumber===y?M.range.endColumn:k,P=this.g.getMarker(b.uri,M);if(!P)continue;const A=new v.Range(m.range.startLineNumber,z,m.range.startLineNumber,R);D.push(new o(this,A,P))}return D}renderHoverParts(m,p){if(!p.length)return L.Disposable.None;const b=new L.DisposableStore;p.forEach(k=>m.fragment.appendChild(this.j(k,b)));const y=p.length===1?p[0]:p.sort((k,D)=>r.MarkerSeverity.compare(k.marker.severity,D.marker.severity))[0];return this.k(m,y,b),b}j(m,p){const b=l("div.hover-row"),y=C.append(b,l("div.marker.hover-contents")),{source:k,message:D,code:M,relatedInformation:z}=m.marker;this.f.applyFontInfo(y);const R=C.append(y,l("span"));if(R.style.whiteSpace="pre-wrap",R.innerText=D,k||M)if(M&&typeof M!="string"){const P=l("span");if(k){const B=C.append(P,l("span"));B.innerText=k}const A=C.append(P,l("a.code-link"));A.setAttribute("href",M.target.toString()),p.add(C.addDisposableListener(A,"click",B=>{this.h.open(M.target,{allowCommands:!0}),B.preventDefault(),B.stopPropagation()}));const T=C.append(A,l("span"));T.innerText=M.value;const O=C.append(y,P);O.style.opacity="0.6",O.style.paddingLeft="6px"}else{const P=C.append(y,l("span"));P.style.opacity="0.6",P.style.paddingLeft="6px",P.innerText=k&&M?`${k}(${M})`:k||`(${M})`}if((0,N.isNonEmptyArray)(z))for(const{message:P,resource:A,startLineNumber:T,startColumn:O}of z){const B=C.append(y,l("div"));B.style.marginTop="8px";const W=C.append(B,l("a"));W.innerText=`${(0,S.basename)(A)}(${T}, ${O}): `,W.style.cursor="pointer",p.add(C.addDisposableListener(W,"click",F=>{F.stopPropagation(),F.preventDefault(),this.h&&this.h.open(A,{fromUserGesture:!0,editorOptions:{selection:{startLineNumber:T,startColumn:O}}}).catch(I.onUnexpectedError)}));const j=C.append(B,l("span"));j.innerText=P,this.f.applyFontInfo(j)}return b}k(m,p,b){if((p.marker.severity===r.MarkerSeverity.Error||p.marker.severity===r.MarkerSeverity.Warning||p.marker.severity===r.MarkerSeverity.Info)&&m.statusBar.addAction({label:a.localize(0,null),commandId:n.NextMarkerAction.ID,run:()=>{var y;m.hide(),(y=n.MarkerController.get(this.f))===null||y===void 0||y.showAtMarker(p.marker),this.f.focus()}}),!this.f.getOption(86)){const y=m.statusBar.append(l("div"));this.c&&(r.IMarkerData.makeKey(this.c.marker)===r.IMarkerData.makeKey(p.marker)?this.c.hasCodeActions||(y.textContent=a.localize(1,null)):this.c=void 0);const k=this.c&&!this.c.hasCodeActions?L.Disposable.None:b.add((0,E.disposableTimeout)(()=>y.textContent=a.localize(2,null),200));y.textContent||(y.textContent=String.fromCharCode(160));const D=this.l(p.marker);b.add((0,L.toDisposable)(()=>D.cancel())),D.then(M=>{if(k.dispose(),this.c={marker:p.marker,hasCodeActions:M.validActions.length>0},!this.c.hasCodeActions){M.dispose(),y.textContent=a.localize(3,null);return}y.style.display="none";let z=!1;b.add((0,L.toDisposable)(()=>{z||M.dispose()})),m.statusBar.addAction({label:a.localize(4,null),commandId:i.QuickFixAction.Id,run:R=>{z=!0;const P=i.CodeActionController.get(this.f),A=C.getDomNodePagePosition(R);m.hide(),P?.showCodeActions(u,M,{x:A.left+6,y:A.top+A.height+6,width:A.width,height:A.height})}})},I.onUnexpectedError)}}l(m){return(0,E.createCancelablePromise)(p=>(0,g.getCodeActions)(this.i.codeActionProvider,this.f.getModel(),new v.Range(m.startLineNumber,m.startColumn,m.endLineNumber,m.endColumn),u,d.Progress.None,p))}};h=Ne([ge(1,f.IMarkerDecorationsService),ge(2,c.IOpenerService),ge(3,s.ILanguageFeaturesService)],h),e.MarkerHoverParticipant=h}),define(_[331],ee([1,0,58,2,14,4,24,37,330,823,721,614,15,8,50,31,23,93,230,834,233,405]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s,l,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ModesHoverController=void 0;let u=class on{static get(p){return p.getContribution(on.ID)}constructor(p,b,y,k,D){this.j=p,this.k=b,this.l=y,this.m=k,this.a=new N.DisposableStore,this.f=!1,this.g=!1,this.c=null,this.d=null,this.n(),this.b=this.j.onDidChangeConfiguration(M=>{M.hasChanged(57)&&(this.o(),this.n())})}n(){const p=()=>this.v(),b=this.j.getOption(57);this.h=b.enabled,this.i=b.sticky,this.h?(this.a.add(this.j.onMouseDown(y=>this.q(y))),this.a.add(this.j.onMouseUp(y=>this.r(y))),this.a.add(this.j.onMouseMove(y=>this.t(y))),this.a.add(this.j.onKeyDown(y=>this.u(y)))):(this.a.add(this.j.onMouseMove(y=>this.t(y))),this.a.add(this.j.onKeyDown(y=>this.u(y)))),this.a.add(this.j.onMouseLeave(y=>this.s(y))),this.a.add(this.j.onDidChangeModel(p)),this.a.add(this.j.onDidScrollChange(y=>this.p(y)))}o(){this.a.clear()}p(p){(p.scrollTopChanged||p.scrollLeftChanged)&&this.v()}q(p){this.f=!0;const b=p.target;if(b.type===9&&b.detail===f.ContentHoverWidget.ID){this.g=!0;return}b.type===12&&b.detail===g.MarginHoverWidget.ID||(b.type!==12&&(this.g=!1),this.v())}r(p){this.f=!1}s(p){var b;const y=p.event.browserEvent.relatedTarget;!((b=this.c)===null||b===void 0)&&b.containsNode(y)||this.v()}t(p){var b,y,k,D,M,z;const R=p.target;if(this.f&&this.g||this.i&&R.type===9&&R.detail===f.ContentHoverWidget.ID||this.i&&!(!((y=(b=p.event.browserEvent.view)===null||b===void 0?void 0:b.getSelection())===null||y===void 0)&&y.isCollapsed)||!this.i&&R.type===9&&R.detail===f.ContentHoverWidget.ID&&((k=this.c)===null||k===void 0?void 0:k.isColorPickerVisible())||this.i&&R.type===12&&R.detail===g.MarginHoverWidget.ID||this.i&&((D=this.c)===null||D===void 0?void 0:D.isVisibleFromKeyboard()))return;if(!this.h){this.v();return}if(this.w().maybeShowAt(p)){(M=this.d)===null||M===void 0||M.hide();return}if(R.type===2&&R.position){(z=this.c)===null||z===void 0||z.hide(),this.d||(this.d=new g.MarginHoverWidget(this.j,this.m,this.l)),this.d.startShowingAt(R.position.lineNumber);return}this.v()}u(p){p.keyCode!==5&&p.keyCode!==6&&p.keyCode!==57&&p.keyCode!==4&&this.v()}v(){var p,b,y;this.f&&this.g&&((p=this.c)===null||p===void 0?void 0:p.isColorPickerVisible())||o.InlineSuggestionHintsContentWidget.dropDownVisible||(this.g=!1,(b=this.d)===null||b===void 0||b.hide(),(y=this.c)===null||y===void 0||y.hide())}w(){return this.c||(this.c=this.k.createInstance(f.ContentHoverController,this.j)),this.c}isColorPickerVisible(){var p;return((p=this.c)===null||p===void 0?void 0:p.isColorPickerVisible())||!1}showContentHover(p,b,y,k){this.w().startShowingAtRange(p,b,y,k)}dispose(){var p,b;this.o(),this.a.dispose(),this.b.dispose(),(p=this.d)===null||p===void 0||p.dispose(),(b=this.c)===null||b===void 0||b.dispose()}};u.ID="editor.contrib.hover",u=Ne([ge(1,n.IInstantiationService),ge(2,a.IOpenerService),ge(3,S.ILanguageService),ge(4,t.IContextKeyService)],u),e.ModesHoverController=u;class h extends E.EditorAction{constructor(){super({id:"editor.action.showHover",label:i.localize(0,null),alias:"Show Hover",precondition:void 0,kbOpts:{kbExpr:L.EditorContextKeys.editorTextFocus,primary:(0,C.KeyChord)(2089,2087),weight:100}})}run(p,b){if(!b.hasModel())return;const y=u.get(b);if(!y)return;const k=b.getPosition(),D=new I.Range(k.lineNumber,k.column,k.lineNumber,k.column),M=b.getOption(2)===2;y.showContentHover(D,1,1,M)}}class w extends E.EditorAction{constructor(){super({id:"editor.action.showDefinitionPreviewHover",label:i.localize(1,null),alias:"Show Definition Preview Hover",precondition:void 0})}run(p,b){const y=u.get(b);if(!y)return;const k=b.getPosition();if(!k)return;const D=new I.Range(k.lineNumber,k.column,k.lineNumber,k.column),M=v.GotoDefinitionAtPositionEditorContribution.get(b);if(!M)return;M.startFindDefinitionFromCursor(k).then(()=>{y.showContentHover(D,1,1,!0)})}}(0,E.registerEditorContribution)(u.ID,u,2),(0,E.registerEditorAction)(h),(0,E.registerEditorAction)(w),d.HoverParticipantRegistry.register(s.MarkdownHoverParticipant),d.HoverParticipantRegistry.register(l.MarkerHoverParticipant),(0,c.registerThemingParticipant)((m,p)=>{const b=m.getColor(r.editorHoverBorder);b&&(p.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${b.transparent(.5)}; }`),p.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${b.transparent(.5)}; }`),p.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${b.transparent(.5)}; }`))})}),define(_[835],ee([1,0,2,14,4,324,816,331,93]),function(q,e,C,N,E,I,L,S,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColorContribution=void 0;class f extends C.Disposable{constructor(i){super(),this.a=i,this.q(i.onMouseDown(t=>this.b(t)))}dispose(){super.dispose()}b(i){const t=i.target;if(t.type!==6||!t.detail.injectedText||t.detail.injectedText.options.attachedData!==I.ColorDecorationInjectedTextMarker||!t.range)return;const n=this.a.getContribution(S.ModesHoverController.ID);if(!!n&&!n.isColorPickerVisible()){const a=new E.Range(t.range.startLineNumber,t.range.startColumn+1,t.range.endLineNumber,t.range.endColumn+1);n.showContentHover(a,1,0,!1)}}}f.ID="editor.contrib.colorContribution",e.ColorContribution=f,(0,N.registerEditorContribution)(f.ID,f,2),v.HoverParticipantRegistry.register(L.ColorHoverParticipant)}),define(_[332],ee([1,0,7,41,20,4,61,234,124,28,25,15,57,8,42]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.goToDefinitionWithLocation=e.showGoToContextMenu=void 0;function r(d,s,l,o){var u;return ye(this,void 0,void 0,function*(){const h=d.get(L.ITextModelService),w=d.get(t.IContextMenuService),m=d.get(g.ICommandService),p=d.get(n.IInstantiationService),b=d.get(a.INotificationService);if(yield o.item.resolve(E.CancellationToken.None),!o.part.location)return;const y=o.part.location,k=[],D=new Set(f.MenuRegistry.getMenuItems(f.MenuId.EditorContext).map(z=>(0,f.isIMenuItem)(z)?z.command.id:""));for(const z of S.SymbolNavigationAction.all())D.has(z.desc.id)&&k.push(new N.Action(z.desc.id,f.MenuItemAction.label(z.desc,{renderShortTitle:!0}),void 0,!0,()=>ye(this,void 0,void 0,function*(){const R=yield h.createModelReference(y.uri);try{yield p.invokeFunction(z.run.bind(z),s,new S.SymbolNavigationAnchor(R.object.textEditorModel,I.Range.getStartPosition(y.range)))}finally{R.dispose()}})));if(o.part.command){const{command:z}=o.part;k.push(new N.Separator),k.push(new N.Action(z.id,z.title,void 0,!0,()=>ye(this,void 0,void 0,function*(){var R;try{yield m.executeCommand(z.id,...(R=z.arguments)!==null&&R!==void 0?R:[])}catch(P){b.notify({severity:a.Severity.Error,source:o.item.provider.displayName,message:P})}})))}const M=s.getOption(121);w.showContextMenu({domForShadowRoot:M&&(u=s.getDomNode())!==null&&u!==void 0?u:void 0,getAnchor:()=>{const z=C.getDomNodePagePosition(l);return{x:z.left,y:z.top+z.height+8}},getActions:()=>k,onHide:()=>{s.focus()},autoSelectFirstItem:!0})})}e.showGoToContextMenu=r;function c(d,s,l,o){return ye(this,void 0,void 0,function*(){const h=yield d.get(L.ITextModelService).createModelReference(o.uri);yield l.invokeWithinContext(w=>ye(this,void 0,void 0,function*(){const m=s.hasSideBySideModifier,p=w.get(i.IContextKeyService),b=v.PeekContext.inPeekEditor.getValue(p),y=!m&&l.getOption(83)&&!b;return new S.DefinitionAction({openToSide:m,openInPeek:y,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(w,new S.SymbolNavigationAnchor(h.object.textEditorModel,I.Range.getStartPosition(o.range)),I.Range.lift(o.range))})),h.dispose()})}e.goToDefinitionWithLocation=c}),define(_[333],ee([1,0,7,17,11,20,13,2,55,18,21,147,112,40,64,4,26,47,39,78,19,61,170,292,332,25,49,8,42,31,23]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s,l,o,u,h,w,m,p,b,y,k,D,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InlayHintsController=e.RenderedInlayHintLabelPart=void 0;class z{constructor(){this.a=new v.LRUCache(50)}get(W){const j=z.b(W);return this.a.get(j)}set(W,j){const F=z.b(W);this.a.set(F,j)}static b(W){return`${W.uri.toString()}/${W.getVersionId()}`}}const R=(0,y.createDecorator)("IInlayHintsCache");(0,b.registerSingleton)(R,z,1);class P{constructor(W,j){this.item=W,this.index=j}get part(){const W=this.item.hint.label;return typeof W=="string"?{label:W}:W[this.index]}}e.RenderedInlayHintLabelPart=P;class A{constructor(W,j){this.part=W,this.hasTriggerModifier=j}}let T=class Ci{static get(W){var j;return(j=W.getContribution(Ci.ID))!==null&&j!==void 0?j:void 0}constructor(W,j,F,U,Q,se,he){this.l=W,this.m=j,this.n=U,this.o=Q,this.p=se,this.q=he,this.b=new S.DisposableStore,this.c=new S.DisposableStore,this.g=new Map,this.h=new i.DynamicCssRules(this.l),this.j=0,this.f=F.for(j.inlayHintsProvider,"InlayHint",{min:25}),this.b.add(j.inlayHintsProvider.onDidChange(()=>this.r())),this.b.add(W.onDidChangeModel(()=>this.r())),this.b.add(W.onDidChangeModelLanguage(()=>this.r())),this.b.add(W.onDidChangeConfiguration(ie=>{ie.hasChanged(134)&&this.r()})),this.r()}dispose(){this.c.dispose(),this.E(),this.b.dispose()}r(){this.c.clear(),this.E();const W=this.l.getOption(134);if(W.enabled==="off")return;const j=this.l.getModel();if(!j||!this.m.inlayHintsProvider.has(j))return;const F=this.n.get(j);F&&this.B([j.getFullModelRange()],F),this.c.add((0,S.toDisposable)(()=>{j.isDisposed()||this.y(j)}));let U;const Q=new Set,se=new E.RunOnceScheduler(()=>ye(this,void 0,void 0,function*(){const he=Date.now();U?.dispose(!0),U=new I.CancellationTokenSource;const ie=j.onWillDispose(()=>U?.cancel());try{const ue=U.token,J=yield w.InlayHintsFragments.create(this.m.inlayHintsProvider,j,this.A(),ue);if(se.delay=this.f.update(j,Date.now()-he),ue.isCancellationRequested){J.dispose();return}for(const x of J.provider)typeof x.onDidChangeInlayHints=="function"&&!Q.has(x)&&(Q.add(x),this.c.add(x.onDidChangeInlayHints(()=>{se.isScheduled()||se.schedule()})));this.c.add(J),this.B(J.ranges,J.items),this.y(j)}catch(ue){(0,L.onUnexpectedError)(ue)}finally{U.dispose(),ie.dispose()}}),this.f.get(j));if(this.c.add(se),this.c.add((0,S.toDisposable)(()=>U?.dispose(!0))),se.schedule(0),this.c.add(this.l.onDidScrollChange(he=>{(he.scrollTopChanged||!se.isScheduled())&&se.schedule()})),this.c.add(this.l.onDidChangeModelContent(he=>{const ie=Math.max(se.delay,1250);se.schedule(ie)})),W.enabled==="on")this.j=0;else{let he,ie;W.enabled==="onUnlessPressed"?(he=0,ie=1):(he=1,ie=0),this.j=he,this.c.add(C.ModifierKeyEmitter.getInstance().event(ue=>{if(!this.l.hasModel())return;const J=ue.altKey&&ue.ctrlKey&&!(ue.shiftKey||ue.metaKey)?ie:he;if(J!==this.j){this.j=J;const x=this.l.getModel(),G=this.z(x);this.B([x.getFullModelRange()],G),se.schedule(0)}}))}this.c.add(this.u(()=>se.schedule(0))),this.c.add(this.s()),this.c.add(this.v())}s(){const W=new S.DisposableStore,j=W.add(new h.ClickLinkGesture(this.l)),F=new S.DisposableStore;return W.add(F),W.add(j.onMouseMoveOrRelevantKeyDown(U=>{const[Q]=U,se=this.w(Q),he=this.l.getModel();if(!se||!he){F.clear();return}const ie=new I.CancellationTokenSource;F.add((0,S.toDisposable)(()=>ie.dispose(!0))),se.item.resolve(ie.token),this.k=se.part.command||se.part.location?new A(se,Q.hasTriggerModifier):void 0;const ue=he.validatePosition(se.item.hint.position).lineNumber,J=new r.Range(ue,1,ue,he.getLineMaxColumn(ue)),x=this.t(J);this.B([J],x),F.add((0,S.toDisposable)(()=>{this.k=void 0,this.B([J],x)}))})),W.add(j.onCancel(()=>F.clear())),W.add(j.onExecute(U=>ye(this,void 0,void 0,function*(){const Q=this.w(U);if(Q){const se=Q.part;se.location?this.q.invokeFunction(m.goToDefinitionWithLocation,U,this.l,se.location):c.Command.is(se.command)&&(yield this.x(se.command,Q.item))}}))),W}t(W){const j=new Set;for(const F of this.g.values())W.containsRange(F.item.anchor.range)&&j.add(F.item);return Array.from(j)}u(W){return this.l.onMouseUp(j=>ye(this,void 0,void 0,function*(){if(j.event.detail!==2)return;const F=this.w(j);if(!!F&&(j.event.preventDefault(),yield F.item.resolve(I.CancellationToken.None),(0,N.isNonEmptyArray)(F.item.hint.textEdits))){const U=F.item.hint.textEdits.map(Q=>a.EditOperation.replace(r.Range.lift(Q.range),Q.text));this.l.executeEdits("inlayHint.default",U),W()}}))}v(){return this.l.onContextMenu(W=>ye(this,void 0,void 0,function*(){if(!(W.event.target instanceof HTMLElement))return;const j=this.w(W);j&&(yield this.q.invokeFunction(m.showGoToContextMenu,this.l,W.event.target,j))}))}w(W){var j;if(W.target.type!==6)return;const F=(j=W.target.detail.injectedText)===null||j===void 0?void 0:j.options;if(F instanceof s.ModelDecorationInjectedTextOptions&&F?.attachedData instanceof P)return F.attachedData}x(W,j){var F;return ye(this,void 0,void 0,function*(){try{yield this.o.executeCommand(W.id,...(F=W.arguments)!==null&&F!==void 0?F:[])}catch(U){this.p.notify({severity:k.Severity.Error,source:j.provider.displayName,message:U})}})}y(W){const j=this.z(W);this.n.set(W,j)}z(W){const j=new Map;for(const[F,U]of this.g){if(j.has(U.item))continue;const Q=W.getDecorationRange(F);if(Q){const se=new w.InlayHintAnchor(Q,U.item.anchor.direction),he=U.item.with({anchor:se});j.set(U.item,he)}}return Array.from(j.values())}A(){const j=this.l.getModel(),F=this.l.getVisibleRangesPlusViewportAboveBelow(),U=[];for(const Q of F.sort(r.Range.compareRangesUsingStarts)){const se=j.validateRange(new r.Range(Q.startLineNumber-30,Q.startColumn,Q.endLineNumber+30,Q.endColumn));U.length===0||!r.Range.areIntersectingOrTouching(U[U.length-1],se)?U.push(se):U[U.length-1]=r.Range.plusRange(U[U.length-1],se)}return U}B(W,j){var F,U;const Q=[],se=(ae,de,K,Y,ne)=>{const V={content:K,inlineClassNameAffectsLetterSpacing:!0,inlineClassName:de.className,cursorStops:Y,attachedData:ne};Q.push({item:ae,classNameRef:de,decoration:{range:ae.anchor.range,options:{description:"InlayHint",showIfCollapsed:ae.anchor.range.isEmpty(),collapseOnReplaceEdit:!ae.anchor.range.isEmpty(),stickiness:0,[ae.anchor.direction]:this.j===0?V:void 0}}})},he=(ae,de)=>{const K=this.h.createClassNameRef({width:`${ie/3|0}px`,display:"inline-block"});se(ae,K,"\u200A",de?d.InjectedTextCursorStops.Right:d.InjectedTextCursorStops.None)},{fontSize:ie,fontFamily:ue,padding:J,isUniform:x}=this.D(),G="--code-editorInlayHintsFontFamily";this.l.getContainerDomNode().style.setProperty(G,ue);for(const ae of j){ae.hint.paddingLeft&&he(ae,!1);const de=typeof ae.hint.label=="string"?[{label:ae.hint.label}]:ae.hint.label;for(let K=0;K<de.length;K++){const Y=de[K],ne=K===0,V=K===de.length-1,H={fontSize:`${ie}px`,fontFamily:`var(${G}), ${n.EDITOR_FONT_DEFAULTS.fontFamily}`,verticalAlign:x?"baseline":"middle"};(0,N.isNonEmptyArray)(ae.hint.textEdits)&&(H.cursor="default"),this.C(H,ae.hint),(Y.command||Y.location)&&((F=this.k)===null||F===void 0?void 0:F.part.item)===ae&&this.k.part.index===K&&(H.textDecoration="underline",this.k.hasTriggerModifier&&(H.color=(0,M.themeColorFromId)(D.editorActiveLinkForeground),H.cursor="pointer")),J&&(ne&&V?(H.padding=`1px ${Math.max(1,ie/4)|0}px`,H.borderRadius=`${ie/4|0}px`):ne?(H.padding=`1px 0 1px ${Math.max(1,ie/4)|0}px`,H.borderRadius=`${ie/4|0}px 0 0 ${ie/4|0}px`):V?(H.padding=`1px ${Math.max(1,ie/4)|0}px 1px 0`,H.borderRadius=`0 ${ie/4|0}px ${ie/4|0}px 0`):H.padding="1px 0 1px 0"),se(ae,this.h.createClassNameRef(H),O(Y.label),V&&!ae.hint.paddingRight?d.InjectedTextCursorStops.Right:d.InjectedTextCursorStops.None,new P(ae,K))}if(ae.hint.paddingRight&&he(ae,!0),Q.length>Ci.a)break}const te=[];for(const ae of W)for(const{id:de}of(U=this.l.getDecorationsInRange(ae))!==null&&U!==void 0?U:[]){const K=this.g.get(de);K&&(te.push(de),K.classNameRef.dispose(),this.g.delete(de))}const Z=t.StableEditorScrollState.capture(this.l);this.l.changeDecorations(ae=>{const de=ae.deltaDecorations(te,Q.map(K=>K.decoration));for(let K=0;K<de.length;K++){const Y=Q[K];this.g.set(de[K],Y)}}),Z.restore(this.l)}C(W,j){j.kind===c.InlayHintKind.Parameter?(W.backgroundColor=(0,M.themeColorFromId)(D.editorInlayHintParameterBackground),W.color=(0,M.themeColorFromId)(D.editorInlayHintParameterForeground)):j.kind===c.InlayHintKind.Type?(W.backgroundColor=(0,M.themeColorFromId)(D.editorInlayHintTypeBackground),W.color=(0,M.themeColorFromId)(D.editorInlayHintTypeForeground)):(W.backgroundColor=(0,M.themeColorFromId)(D.editorInlayHintBackground),W.color=(0,M.themeColorFromId)(D.editorInlayHintForeground))}D(){const W=this.l.getOption(134),j=W.padding,F=this.l.getOption(49),U=this.l.getOption(46);let Q=W.fontSize;(!Q||Q<5||Q>F)&&(Q=F);const se=W.fontFamily||U;return{fontSize:Q,fontFamily:se,padding:j,isUniform:!j&&se===U&&Q===F}}E(){this.l.removeDecorations(Array.from(this.g.keys()));for(const W of this.g.values())W.classNameRef.dispose();this.g.clear()}};T.ID="editor.contrib.InlayHints",T.a=1500,T=Ne([ge(1,o.ILanguageFeaturesService),ge(2,l.ILanguageFeatureDebounceService),ge(3,R),ge(4,p.ICommandService),ge(5,k.INotificationService),ge(6,y.IInstantiationService)],T),e.InlayHintsController=T;function O(B){const W="\xA0";return B.replace(/[ \t]/g,W)}p.CommandsRegistry.registerCommand("_executeInlayHintProvider",(B,...W)=>ye(void 0,void 0,void 0,function*(){const[j,F]=W;(0,f.assertType)(g.URI.isUri(j)),(0,f.assertType)(r.Range.isIRange(F));const{inlayHintsProvider:U}=B.get(o.ILanguageFeaturesService),Q=yield B.get(u.ITextModelService).createModelReference(j);try{const se=yield w.InlayHintsFragments.create(U,Q.object.textEditorModel,[r.Range.lift(F)],I.CancellationToken.None),he=se.items.map(ie=>ie.hint);return setTimeout(()=>se.dispose(),0),he}finally{Q.dispose()}}))});var St=this&&this.__asyncValues||function(q){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=q[Symbol.asyncIterator],C;return e?e.call(q):(q=typeof __values=="function"?__values(q):q[Symbol.iterator](),C={},N("next"),N("throw"),N("return"),C[Symbol.asyncIterator]=function(){return this},C);function N(I){C[I]=q[I]&&function(L){return new Promise(function(S,v){L=q[I](L),E(S,v,L.done,L.value)})}}function E(I,L,S,v){Promise.resolve(v).then(function(f){I({value:f,done:S})},L)}};define(_[836],ee([1,0,11,72,12,39,93,37,61,314,230,333,27,50,19,619,16,292,17]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InlayHintsHover=void 0;class l extends L.HoverForeignElementAnchor{constructor(h,w,m,p){super(10,w,h.item.anchor.range,m,p,!0),this.part=h}}let o=class extends g.MarkdownHoverParticipant{constructor(h,w,m,p,b,y){super(h,w,m,p,y),this.i=b,this.hoverOrdinal=6}suggestHoverAnchor(h){var w;if(!i.InlayHintsController.get(this.c)||h.target.type!==6)return null;const p=(w=h.target.detail.injectedText)===null||w===void 0?void 0:w.options;return p instanceof I.ModelDecorationInjectedTextOptions&&p.attachedData instanceof i.RenderedInlayHintLabelPart?new l(p.attachedData,this,h.event.posx,h.event.posy):null}computeSync(){return[]}computeAsync(h,w,m){return h instanceof l?new C.AsyncIterableObject(p=>ye(this,void 0,void 0,function*(){var b,y,k,D;const{part:M}=h;if(yield M.item.resolve(m),m.isCancellationRequested)return;let z;typeof M.item.hint.tooltip=="string"?z=new N.MarkdownString().appendText(M.item.hint.tooltip):M.item.hint.tooltip&&(z=M.item.hint.tooltip),z&&p.emitOne(new g.MarkdownHover(this,h.range,[z],!1,0)),(0,s.isNonEmptyArray)(M.item.hint.textEdits)&&p.emitOne(new g.MarkdownHover(this,h.range,[new N.MarkdownString().appendText((0,r.localize)(0,null))],!1,10001));let R;if(typeof M.part.tooltip=="string"?R=new N.MarkdownString().appendText(M.part.tooltip):M.part.tooltip&&(R=M.part.tooltip),R&&p.emitOne(new g.MarkdownHover(this,h.range,[R],!1,1)),M.part.location||M.part.command){let B;const j=this.c.getOption(74)==="altKey"?c.isMacintosh?(0,r.localize)(1,null):(0,r.localize)(2,null):c.isMacintosh?(0,r.localize)(3,null):(0,r.localize)(4,null);M.part.location&&M.part.command?B=new N.MarkdownString().appendText((0,r.localize)(5,null,j)):M.part.location?B=new N.MarkdownString().appendText((0,r.localize)(6,null,j)):M.part.command&&(B=new N.MarkdownString(`[${(0,r.localize)(7,null)}](${(0,d.asCommandLink)(M.part.command)} "${M.part.command.title}") (${j})`,{isTrusted:!0})),B&&p.emitOne(new g.MarkdownHover(this,h.range,[B],!1,1e4))}const P=yield this.j(M,m);try{for(var A=!0,T=St(P),O;O=yield T.next(),b=O.done,!b;){D=O.value,A=!1;try{const B=D;p.emitOne(B)}finally{A=!0}}}catch(B){y={error:B}}finally{try{!A&&!b&&(k=T.return)&&(yield k.call(T))}finally{if(y)throw y.error}}})):C.AsyncIterableObject.EMPTY}j(h,w){return ye(this,void 0,void 0,function*(){if(!h.part.location)return C.AsyncIterableObject.EMPTY;const{uri:m,range:p}=h.part.location,b=yield this.i.createModelReference(m);try{const y=b.object.textEditorModel;return this.h.hoverProvider.has(y)?(0,f.getHover)(this.h.hoverProvider,y,new E.Position(p.startLineNumber,p.startColumn),w).filter(k=>!(0,N.isEmptyMarkdownString)(k.hover.contents)).map(k=>new g.MarkdownHover(this,h.item.anchor.range,k.hover.contents,!1,2+k.ordinal)):C.AsyncIterableObject.EMPTY}finally{b.dispose()}})}};o=Ne([ge(1,S.ILanguageService),ge(2,n.IOpenerService),ge(3,t.IConfigurationService),ge(4,v.ITextModelService),ge(5,a.ILanguageFeaturesService)],o),e.InlayHintsHover=o}),define(_[837],ee([1,0,14,93,333,836]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(0,C.registerEditorContribution)(E.InlayHintsController.ID,E.InlayHintsController,1),N.HoverParticipantRegistry.register(I.InlayHintsHover)}),define(_[838],ee([1,0,2,7,95,107,135,12,170,229,19,332,8,20,4,66,149,416]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c){"use strict";var d;Object.defineProperty(e,"__esModule",{value:!0}),e.StickyScrollWidget=e.StickyScrollWidgetState=void 0;class s{constructor(h,w){this.lineNumbers=h,this.lastLineRelativePosition=w}}e.StickyScrollWidgetState=s;const l=(d=window.trustedTypes)===null||d===void 0?void 0:d.createPolicy("stickyScrollViewLayer",{createHTML:u=>u});let o=class extends C.Disposable{constructor(h,w,m){super(),this.m=h,this.n=w,this.p=m,this.b=document.createElement("div"),this.c=this.q(new C.DisposableStore),this.g=[],this.h=0,this.i=-1,this.j=-1,this.l=-1,this.a=this.m.getLayoutInfo(),this.b=document.createElement("div"),this.b.className="sticky-widget",this.b.classList.toggle("peek",h instanceof c.EmbeddedCodeEditorWidget),this.b.style.width=`${this.a.width-this.a.minimap.minimapCanvasOuterWidth-this.a.verticalScrollbarWidth}px`,this.q(this.r())}r(){const h=new C.DisposableStore,w=new C.DisposableStore;h.add(w);const m=new v.ClickLinkGesture(this.m,!0);return h.add(m),h.add(m.onMouseMoveOrRelevantKeyDown(([p,b])=>{if(!this.m.hasModel()||!p.hasTriggerModifier){w.clear();return}const y=p.target;if(y.detail===this.getId()&&y.element.innerText===y.element.innerHTML){const k=y.element.innerText;if(this.j===-1)return;const D=this.i,M=this.j,z=new a.Range(D,M,D,M+k.length);if(!z.equalsRange(this.k))this.k=z,w.clear();else if(y.element.style.textDecoration==="underline")return;const R=new n.CancellationTokenSource;w.add((0,C.toDisposable)(()=>R.dispose(!0)));let P;(0,f.getDefinitionsAtPosition)(this.n.definitionProvider,this.m.getModel(),new S.Position(D,M+1),R.token).then(A=>{if(!R.token.isCancellationRequested)if(A.length!==0){this.l=A.length;const T=y.element;P!==T?(w.clear(),P=T,P.style.textDecoration="underline",w.add((0,C.toDisposable)(()=>{P.style.textDecoration="none"}))):P||(P=T,P.style.textDecoration="underline",w.add((0,C.toDisposable)(()=>{P.style.textDecoration="none"})))}else w.clear()})}else w.clear()})),h.add(m.onCancel(()=>{w.clear()})),h.add(m.onExecute(p=>ye(this,void 0,void 0,function*(){if(p.target.detail===this.getId()){if(p.hasTriggerModifier)this.l>1&&this.m.revealPosition({lineNumber:this.i,column:1}),this.p.invokeFunction(i.goToDefinitionWithLocation,p,this.m,{uri:this.m.getModel().uri,range:this.k});else if(!p.isRightClick){const b={lineNumber:this.i,column:this.j};this.m.revealPosition(b),this.m.setSelection(a.Range.fromPositions(b)),this.m.focus()}}}))),h}getCurrentLines(){return this.g}setState(h){this.c.clear(),this.g.length=0,N.clearNode(this.b),this.h=h.lastLineRelativePosition,this.g=h.lineNumbers,this.t()}s(h,w){const m=document.createElement("div"),p=this.m._getViewModel(),b=p.coordinatesConverter.convertModelPositionToViewPosition(new S.Position(w,1)).lineNumber,y=p.getViewLineRenderingData(b),k=this.m.getLayoutInfo(),D=k.width-k.minimap.minimapCanvasOuterWidth-k.verticalScrollbarWidth,M=this.m.getOption(69).side,z=this.m.getOption(63),R=this.m.getOption(64);let P;try{P=L.LineDecoration.filter(y.inlineDecorations,b,y.minColumn,y.maxColumn)}catch{P=[]}const A=new I.RenderLineInput(!0,!0,y.content,y.continuesWithWrappedLine,y.isBasicASCII,y.containsRTL,0,y.tokens,P,y.tabSize,y.startVisibleColumn,1,1,1,500,"none",!0,!0,null),T=new E.StringBuilder(2e3);(0,I.renderViewLine)(A,T);let O;l?O=l.createHTML(T.build()):O=T.build();const B=document.createElement("span");B.className="sticky-line",B.classList.add(`stickyLine${w}`),B.style.lineHeight=`${z}px`,B.innerHTML=O;const W=document.createElement("span");W.className="sticky-line",W.style.lineHeight=`${z}px`,M==="left"?W.style.width=`${k.contentLeft-k.minimap.minimapCanvasOuterWidth}px`:M==="right"&&(W.style.width=`${k.contentLeft}px`);const j=document.createElement("span");return R.renderType===1||R.renderType===3&&w%10===0?j.innerText=w.toString():R.renderType===2&&(j.innerText=Math.abs(w-this.m.getPosition().lineNumber).toString()),j.className="sticky-line-number",j.style.lineHeight=`${z}px`,j.style.width=`${k.lineNumbersWidth}px`,M==="left"?j.style.paddingLeft=`${k.lineNumbersLeft-k.minimap.minimapCanvasOuterWidth}px`:M==="right"&&(j.style.paddingLeft=`${k.lineNumbersLeft}px`),W.appendChild(j),this.m.applyFontInfo(B),this.m.applyFontInfo(j),m.appendChild(W),m.appendChild(B),m.className="sticky-line-root",m.style.lineHeight=`${z}px`,m.style.width=`${D}px`,m.style.height=`${z}px`,m.style.zIndex="0",h===this.g.length-1&&(m.style.position="relative",m.style.zIndex="-1",m.style.top=this.h+"px"),this.c.add(N.addDisposableListener(m,"mouseover",F=>{if(this.m.hasModel()){const Q=new r.StandardMouseEvent(F).target.innerText;this.i=w,this.j=this.m.getModel().getLineContent(w).indexOf(Q)+1||-1}})),m}t(){if(!this.m._getViewModel())return;for(const[p,b]of this.g.entries())this.b.appendChild(this.s(p,b));const h=this.m.getOption(63),w=this.g.length*h+this.h;this.b.style.display=w>0?"block":"none",this.b.style.height=w.toString()+"px",this.m.getOption(69).side==="left"&&(this.b.style.marginLeft=this.m.getLayoutInfo().minimap.minimapCanvasOuterWidth+"px")}getId(){return"editor.contrib.stickyScrollWidget"}getDomNode(){return this.b}getPosition(){return{preference:null}}};o=Ne([ge(1,g.ILanguageFeaturesService),ge(2,t.IInstantiationService)],o),e.StickyScrollWidget=o}),define(_[839],ee([1,0,2,19,838,827,8,7,57,28]),function(q,e,C,N,E,I,L,S,v,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StickyScrollController=void 0;let g=class extends C.Disposable{constructor(t,n,a,r){super(),this.i=t,this.j=n,this.c=new C.DisposableStore,this.h=Number.MAX_SAFE_INTEGER,this.a=new E.StickyScrollWidget(this.i,a,r),this.b=new I.StickyLineCandidateProvider(this.i,a),this.g=new E.StickyScrollWidgetState([],0),this.q(this.a),this.q(this.b),this.q(this.i.onDidChangeConfiguration(c=>{c.hasChanged(109)&&this.l()})),this.l(),this.q(S.addDisposableListener(this.a.getDomNode(),S.EventType.CONTEXT_MENU,c=>ye(this,void 0,void 0,function*(){this.k(c)})))}k(t){this.j.showContextMenu({menuId:f.MenuId.StickyScrollContext,getAnchor:()=>t})}l(){if(this.i.getOption(109).enabled===!1){this.i.removeOverlayWidget(this.a),this.c.clear();return}else this.i.addOverlayWidget(this.a),this.c.add(this.i.onDidScrollChange(()=>this.r())),this.c.add(this.i.onDidLayoutChange(()=>this.p())),this.c.add(this.i.onDidChangeModelTokens(a=>this.n(a))),this.c.add(this.b.onDidChangeStickyScroll(()=>this.r())),this.i.getOption(64).renderType===2&&this.c.add(this.i.onDidChangeCursorPosition(()=>this.r()))}m(t){const n=this.a.getCurrentLines();for(const a of n)for(const r of t.ranges)if(a>=r.fromLineNumber&&a<=r.toLineNumber)return!0;return!1}n(t){this.m(t)&&this.r()}p(){const t=this.i.getLayoutInfo(),n=t.width-t.minimap.minimapCanvasOuterWidth-t.verticalScrollbarWidth;this.a.getDomNode().style.width=`${n}px`;const a=t.height/this.i.getOption(63);this.h=Math.round(a*.25)}r(){if(!this.i.hasModel())return;const t=this.i.getModel(),n=this.b.getVersionId();(n===void 0||n===t.getVersionId())&&(this.g=this.getScrollWidgetState(),this.a.setState(this.g))}getScrollWidgetState(){const t=this.i.getOption(63),n=Math.min(this.h,this.i.getOption(109).maxLineCount),a=this.i.getScrollTop();let r=0;const c=[],d=this.i.getVisibleRanges();if(d.length!==0){const s=new I.StickyRange(d[0].startLineNumber,d[d.length-1].endLineNumber),l=this.b.getCandidateStickyLinesIntersecting(s);for(const o of l){const u=o.startLineNumber,h=o.endLineNumber,w=o.nestingDepth;if(h-u>0){const m=(w-1)*t,p=w*t,b=this.i.getBottomForLineNumber(u)-a,y=this.i.getTopForLineNumber(h)-a,k=this.i.getBottomForLineNumber(h)-a;if(m>y&&m<=k){c.push(u),r=k-p;break}else p>b&&p<=k&&c.push(u);if(c.length===n)break}}}return new E.StickyScrollWidgetState(c,r)}dispose(){super.dispose(),this.c.dispose()}};g.ID="store.contrib.stickyScrollController",g=Ne([ge(1,v.IContextMenuService),ge(2,N.ILanguageFeaturesService),ge(3,L.IInstantiationService)],g),e.StickyScrollController=g}),define(_[840],ee([1,0,14,723,839,28]),function(q,e,C,N,E,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(0,C.registerEditorContribution)(E.StickyScrollController.ID,E.StickyScrollController,1),(0,I.registerAction2)(N.ToggleStickyScroll)}),define(_[841],ee([1,0,14,30,329,27,15,8,42,84]),function(q,e,C,N,E,I,L,S,v,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StandaloneReferencesController=void 0;let g=class extends E.ReferencesController{constructor(t,n,a,r,c,d,s){super(!0,t,n,a,r,c,d,s)}};g=Ne([ge(1,L.IContextKeyService),ge(2,N.ICodeEditorService),ge(3,v.INotificationService),ge(4,S.IInstantiationService),ge(5,f.IStorageService),ge(6,I.IConfigurationService)],g),e.StandaloneReferencesController=g,(0,C.registerEditorContribution)(E.ReferencesController.ID,g,4)}),define(_[842],ee([1,0,13,2,48,102,676,144,49,42,178]),function(q,e,C,N,E,I,L,S,v,f,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UndoRedoService=void 0;const i=!1;function t(w){return w.scheme===E.Schemas.file?w.fsPath:w.path}let n=0;class a{constructor(m,p,b,y,k,D,M){this.id=++n,this.type=0,this.actual=m,this.label=m.label,this.confirmBeforeUndo=m.confirmBeforeUndo||!1,this.resourceLabel=p,this.strResource=b,this.resourceLabels=[this.resourceLabel],this.strResources=[this.strResource],this.groupId=y,this.groupOrder=k,this.sourceId=D,this.sourceOrder=M,this.isValid=!0}setValid(m){this.isValid=m}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.isValid?" VALID":"INVALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class r{constructor(m,p){this.resourceLabel=m,this.reason=p}}class c{constructor(){this.a=new Map}createMessage(){const m=[],p=[];for(const[,y]of this.a)(y.reason===0?m:p).push(y.resourceLabel);const b=[];return m.length>0&&b.push(L.localize(0,null,m.join(", "))),p.length>0&&b.push(L.localize(1,null,p.join(", "))),b.join(`
|
||
`)}get size(){return this.a.size}has(m){return this.a.has(m)}set(m,p){this.a.set(m,p)}delete(m){return this.a.delete(m)}}class d{constructor(m,p,b,y,k,D,M){this.id=++n,this.type=1,this.actual=m,this.label=m.label,this.confirmBeforeUndo=m.confirmBeforeUndo||!1,this.resourceLabels=p,this.strResources=b,this.groupId=y,this.groupOrder=k,this.sourceId=D,this.sourceOrder=M,this.removedResources=null,this.invalidatedResources=null}canSplit(){return typeof this.actual.split=="function"}removeResource(m,p,b){this.removedResources||(this.removedResources=new c),this.removedResources.has(p)||this.removedResources.set(p,new r(m,b))}setValid(m,p,b){b?this.invalidatedResources&&(this.invalidatedResources.delete(p),this.invalidatedResources.size===0&&(this.invalidatedResources=null)):(this.invalidatedResources||(this.invalidatedResources=new c),this.invalidatedResources.has(p)||this.invalidatedResources.set(p,new r(m,0)))}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.invalidatedResources?"INVALID":" VALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class s{constructor(m,p){this.resourceLabel=m,this.a=p,this.b=[],this.c=[],this.locked=!1,this.versionId=1}dispose(){for(const m of this.b)m.type===1&&m.removeResource(this.resourceLabel,this.a,0);for(const m of this.c)m.type===1&&m.removeResource(this.resourceLabel,this.a,0);this.versionId++}toString(){const m=[];m.push(`* ${this.a}:`);for(let p=0;p<this.b.length;p++)m.push(` * [UNDO] ${this.b[p]}`);for(let p=this.c.length-1;p>=0;p--)m.push(` * [REDO] ${this.c[p]}`);return m.join(`
|
||
`)}flushAllElements(){this.b=[],this.c=[],this.versionId++}d(m,p){m.type===1?m.setValid(this.resourceLabel,this.a,p):m.setValid(p)}setElementsValidFlag(m,p){for(const b of this.b)p(b.actual)&&this.d(b,m);for(const b of this.c)p(b.actual)&&this.d(b,m)}pushElement(m){for(const p of this.c)p.type===1&&p.removeResource(this.resourceLabel,this.a,1);this.c=[],this.b.push(m),this.versionId++}createSnapshot(m){const p=[];for(let b=0,y=this.b.length;b<y;b++)p.push(this.b[b].id);for(let b=this.c.length-1;b>=0;b--)p.push(this.c[b].id);return new g.ResourceEditStackSnapshot(m,p)}restoreSnapshot(m){const p=m.elements.length;let b=!0,y=0,k=-1;for(let M=0,z=this.b.length;M<z;M++,y++){const R=this.b[M];b&&(y>=p||R.id!==m.elements[y])&&(b=!1,k=0),!b&&R.type===1&&R.removeResource(this.resourceLabel,this.a,0)}let D=-1;for(let M=this.c.length-1;M>=0;M--,y++){const z=this.c[M];b&&(y>=p||z.id!==m.elements[y])&&(b=!1,D=M),!b&&z.type===1&&z.removeResource(this.resourceLabel,this.a,0)}k!==-1&&(this.b=this.b.slice(0,k)),D!==-1&&(this.c=this.c.slice(D+1)),this.versionId++}getElements(){const m=[],p=[];for(const b of this.b)m.push(b.actual);for(const b of this.c)p.push(b.actual);return{past:m,future:p}}getClosestPastElement(){return this.b.length===0?null:this.b[this.b.length-1]}getSecondClosestPastElement(){return this.b.length<2?null:this.b[this.b.length-2]}getClosestFutureElement(){return this.c.length===0?null:this.c[this.c.length-1]}hasPastElements(){return this.b.length>0}hasFutureElements(){return this.c.length>0}splitPastWorkspaceElement(m,p){for(let b=this.b.length-1;b>=0;b--)if(this.b[b]===m){p.has(this.a)?this.b[b]=p.get(this.a):this.b.splice(b,1);break}this.versionId++}splitFutureWorkspaceElement(m,p){for(let b=this.c.length-1;b>=0;b--)if(this.c[b]===m){p.has(this.a)?this.c[b]=p.get(this.a):this.c.splice(b,1);break}this.versionId++}moveBackward(m){this.b.pop(),this.c.push(m),this.versionId++}moveForward(m){this.c.pop(),this.b.push(m),this.versionId++}}class l{constructor(m){this.editStacks=m,this.a=[];for(let p=0,b=this.editStacks.length;p<b;p++)this.a[p]=this.editStacks[p].versionId}isValid(){for(let m=0,p=this.editStacks.length;m<p;m++)if(this.a[m]!==this.editStacks[m].versionId)return!1;return!0}}const o=new s("","");o.locked=!0;let u=class{constructor(m,p){this.c=m,this.d=p,this.a=new Map,this.b=[]}getUriComparisonKey(m){for(const p of this.b)if(p[0]===m.scheme)return p[1].getComparisonKey(m);return m.toString()}e(m){console.log("------------------------------------"),console.log(`AFTER ${m}: `);const p=[];for(const b of this.a)p.push(b[1].toString());console.log(p.join(`
|
||
`))}pushElement(m,p=g.UndoRedoGroup.None,b=g.UndoRedoSource.None){if(m.type===0){const y=t(m.resource),k=this.getUriComparisonKey(m.resource);this.f(new a(m,y,k,p.id,p.nextOrder(),b.id,b.nextOrder()))}else{const y=new Set,k=[],D=[];for(const M of m.resources){const z=t(M),R=this.getUriComparisonKey(M);y.has(R)||(y.add(R),k.push(z),D.push(R))}k.length===1?this.f(new a(m,k[0],D[0],p.id,p.nextOrder(),b.id,b.nextOrder())):this.f(new d(m,k,D,p.id,p.nextOrder(),b.id,b.nextOrder()))}i&&this.e("pushElement")}f(m){for(let p=0,b=m.strResources.length;p<b;p++){const y=m.resourceLabels[p],k=m.strResources[p];let D;this.a.has(k)?D=this.a.get(k):(D=new s(y,k),this.a.set(k,D)),D.pushElement(m)}}getLastElement(m){const p=this.getUriComparisonKey(m);if(this.a.has(p)){const b=this.a.get(p);if(b.hasFutureElements())return null;const y=b.getClosestPastElement();return y?y.actual:null}return null}g(m,p){const b=m.actual.split(),y=new Map;for(const k of b){const D=t(k.resource),M=this.getUriComparisonKey(k.resource),z=new a(k,D,M,0,0,0,0);y.set(z.strResource,z)}for(const k of m.strResources){if(p&&p.has(k))continue;this.a.get(k).splitPastWorkspaceElement(m,y)}}h(m,p){const b=m.actual.split(),y=new Map;for(const k of b){const D=t(k.resource),M=this.getUriComparisonKey(k.resource),z=new a(k,D,M,0,0,0,0);y.set(z.strResource,z)}for(const k of m.strResources){if(p&&p.has(k))continue;this.a.get(k).splitFutureWorkspaceElement(m,y)}}removeElements(m){const p=typeof m=="string"?m:this.getUriComparisonKey(m);this.a.has(p)&&(this.a.get(p).dispose(),this.a.delete(p)),i&&this.e("removeElements")}setElementsValidFlag(m,p,b){const y=this.getUriComparisonKey(m);this.a.has(y)&&this.a.get(y).setElementsValidFlag(p,b),i&&this.e("setElementsValidFlag")}createSnapshot(m){const p=this.getUriComparisonKey(m);return this.a.has(p)?this.a.get(p).createSnapshot(m):new g.ResourceEditStackSnapshot(m,[])}restoreSnapshot(m){const p=this.getUriComparisonKey(m.resource);if(this.a.has(p)){const b=this.a.get(p);b.restoreSnapshot(m),!b.hasPastElements()&&!b.hasFutureElements()&&(b.dispose(),this.a.delete(p))}i&&this.e("restoreSnapshot")}getElements(m){const p=this.getUriComparisonKey(m);return this.a.has(p)?this.a.get(p).getElements():{past:[],future:[]}}k(m){if(!m)return[null,null];let p=null,b=null;for(const[y,k]of this.a){const D=k.getClosestPastElement();!D||D.sourceId===m&&(!p||D.sourceOrder>p.sourceOrder)&&(p=D,b=y)}return[p,b]}canUndo(m){if(m instanceof g.UndoRedoSource){const[,b]=this.k(m.id);return!!b}const p=this.getUriComparisonKey(m);return this.a.has(p)?this.a.get(p).hasPastElements():!1}l(m,p){(0,C.onUnexpectedError)(m);for(const b of p.strResources)this.removeElements(b);this.d.error(m)}m(m){for(const p of m.editStacks)if(p.locked)throw new Error("Cannot acquire edit stack lock");for(const p of m.editStacks)p.locked=!0;return()=>{for(const p of m.editStacks)p.locked=!1}}n(m,p,b,y,k){const D=this.m(b);let M;try{M=p()}catch(z){return D(),y.dispose(),this.l(z,m)}return M?M.then(()=>(D(),y.dispose(),k()),z=>(D(),y.dispose(),this.l(z,m))):(D(),y.dispose(),k())}o(m){return ye(this,void 0,void 0,function*(){if(typeof m.actual.prepareUndoRedo>"u")return N.Disposable.None;const p=m.actual.prepareUndoRedo();return typeof p>"u"?N.Disposable.None:p})}p(m,p){if(m.actual.type!==1||typeof m.actual.prepareUndoRedo>"u")return p(N.Disposable.None);const b=m.actual.prepareUndoRedo();return b?(0,N.isDisposable)(b)?p(b):b.then(y=>p(y)):p(N.Disposable.None)}q(m){const p=[];for(const b of m.strResources)p.push(this.a.get(b)||o);return new l(p)}s(m,p,b,y){if(p.canSplit())return this.g(p,b),this.d.warn(y),new h(this.A(m,0,!0));for(const k of p.strResources)this.removeElements(k);return this.d.warn(y),new h}t(m,p,b,y){if(p.removedResources)return this.s(m,p,p.removedResources,L.localize(2,null,p.label,p.removedResources.createMessage()));if(y&&p.invalidatedResources)return this.s(m,p,p.invalidatedResources,L.localize(3,null,p.label,p.invalidatedResources.createMessage()));const k=[];for(const M of b.editStacks)M.getClosestPastElement()!==p&&k.push(M.resourceLabel);if(k.length>0)return this.s(m,p,null,L.localize(4,null,p.label,k.join(", ")));const D=[];for(const M of b.editStacks)M.locked&&D.push(M.resourceLabel);return D.length>0?this.s(m,p,null,L.localize(5,null,p.label,D.join(", "))):b.isValid()?null:this.s(m,p,null,L.localize(6,null,p.label))}u(m,p,b){const y=this.q(p),k=this.t(m,p,y,!1);return k?k.returnValue:this.w(m,p,y,b)}v(m){if(!m.groupId)return!1;for(const[,p]of this.a){const b=p.getClosestPastElement();if(!!b){if(b===m){const y=p.getSecondClosestPastElement();if(y&&y.groupId===m.groupId)return!0}if(b.groupId===m.groupId)return!0}}return!1}w(m,p,b,y){return ye(this,void 0,void 0,function*(){if(p.canSplit()&&!this.v(p)){let M;(function(P){P[P.All=0]="All",P[P.This=1]="This",P[P.Cancel=2]="Cancel"})(M||(M={}));const{result:z}=yield this.c.prompt({type:I.default.Info,message:L.localize(7,null,p.label),buttons:[{label:L.localize(8,null,b.editStacks.length),run:()=>M.All},{label:L.localize(9,null),run:()=>M.This}],cancelButton:{run:()=>M.Cancel}});if(z===M.Cancel)return;if(z===M.This)return this.g(p,null),this.A(m,0,!0);const R=this.t(m,p,b,!1);if(R)return R.returnValue;y=!0}let k;try{k=yield this.o(p)}catch(M){return this.l(M,p)}const D=this.t(m,p,b,!0);if(D)return k.dispose(),D.returnValue;for(const M of b.editStacks)M.moveBackward(p);return this.n(p,()=>p.actual.undo(),b,k,()=>this.z(p.groupId,y))})}x(m,p,b){if(!p.isValid){m.flushAllElements();return}if(m.locked){const y=L.localize(10,null,p.label);this.d.warn(y);return}return this.p(p,y=>(m.moveBackward(p),this.n(p,()=>p.actual.undo(),new l([m]),y,()=>this.z(p.groupId,b))))}y(m){if(!m)return[null,null];let p=null,b=null;for(const[y,k]of this.a){const D=k.getClosestPastElement();!D||D.groupId===m&&(!p||D.groupOrder>p.groupOrder)&&(p=D,b=y)}return[p,b]}z(m,p){if(!m)return;const[,b]=this.y(m);if(b)return this.A(b,0,p)}undo(m){if(m instanceof g.UndoRedoSource){const[,p]=this.k(m.id);return p?this.A(p,m.id,!1):void 0}return typeof m=="string"?this.A(m,0,!1):this.A(this.getUriComparisonKey(m),0,!1)}A(m,p=0,b){if(!this.a.has(m))return;const y=this.a.get(m),k=y.getClosestPastElement();if(!k)return;if(k.groupId){const[M,z]=this.y(k.groupId);if(k!==M&&z)return this.A(z,p,b)}if((k.sourceId!==p||k.confirmBeforeUndo)&&!b)return this.B(m,p,k);try{return k.type===1?this.u(m,k,b):this.x(y,k,b)}finally{i&&this.e("undo")}}B(m,p,b){return ye(this,void 0,void 0,function*(){if(!!(yield this.c.confirm({message:L.localize(11,null,b.label),primaryButton:L.localize(12,null),cancelButton:L.localize(13,null)})).confirmed)return this.A(m,p,!0)})}C(m){if(!m)return[null,null];let p=null,b=null;for(const[y,k]of this.a){const D=k.getClosestFutureElement();!D||D.sourceId===m&&(!p||D.sourceOrder<p.sourceOrder)&&(p=D,b=y)}return[p,b]}canRedo(m){if(m instanceof g.UndoRedoSource){const[,b]=this.C(m.id);return!!b}const p=this.getUriComparisonKey(m);return this.a.has(p)?this.a.get(p).hasFutureElements():!1}D(m,p,b,y){if(p.canSplit())return this.h(p,b),this.d.warn(y),new h(this.K(m));for(const k of p.strResources)this.removeElements(k);return this.d.warn(y),new h}E(m,p,b,y){if(p.removedResources)return this.D(m,p,p.removedResources,L.localize(14,null,p.label,p.removedResources.createMessage()));if(y&&p.invalidatedResources)return this.D(m,p,p.invalidatedResources,L.localize(15,null,p.label,p.invalidatedResources.createMessage()));const k=[];for(const M of b.editStacks)M.getClosestFutureElement()!==p&&k.push(M.resourceLabel);if(k.length>0)return this.D(m,p,null,L.localize(16,null,p.label,k.join(", ")));const D=[];for(const M of b.editStacks)M.locked&&D.push(M.resourceLabel);return D.length>0?this.D(m,p,null,L.localize(17,null,p.label,D.join(", "))):b.isValid()?null:this.D(m,p,null,L.localize(18,null,p.label))}F(m,p){const b=this.q(p),y=this.E(m,p,b,!1);return y?y.returnValue:this.G(m,p,b)}G(m,p,b){return ye(this,void 0,void 0,function*(){let y;try{y=yield this.o(p)}catch(D){return this.l(D,p)}const k=this.E(m,p,b,!0);if(k)return y.dispose(),k.returnValue;for(const D of b.editStacks)D.moveForward(p);return this.n(p,()=>p.actual.redo(),b,y,()=>this.J(p.groupId))})}H(m,p){if(!p.isValid){m.flushAllElements();return}if(m.locked){const b=L.localize(19,null,p.label);this.d.warn(b);return}return this.p(p,b=>(m.moveForward(p),this.n(p,()=>p.actual.redo(),new l([m]),b,()=>this.J(p.groupId))))}I(m){if(!m)return[null,null];let p=null,b=null;for(const[y,k]of this.a){const D=k.getClosestFutureElement();!D||D.groupId===m&&(!p||D.groupOrder<p.groupOrder)&&(p=D,b=y)}return[p,b]}J(m){if(!m)return;const[,p]=this.I(m);if(p)return this.K(p)}redo(m){if(m instanceof g.UndoRedoSource){const[,p]=this.C(m.id);return p?this.K(p):void 0}return typeof m=="string"?this.K(m):this.K(this.getUriComparisonKey(m))}K(m){if(!this.a.has(m))return;const p=this.a.get(m),b=p.getClosestFutureElement();if(!!b){if(b.groupId){const[y,k]=this.I(b.groupId);if(b!==y&&k)return this.K(k)}try{return b.type===1?this.F(m,b):this.H(p,b)}finally{i&&this.e("redo")}}}};u=Ne([ge(0,S.IDialogService),ge(1,f.INotificationService)],u),e.UndoRedoService=u;class h{constructor(m){this.returnValue=m}}(0,v.registerSingleton)(g.IUndoRedoService,u,1)}),define(_[181],ee([1,0,677,88,182,21,8]),function(q,e,C,N,E,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WORKSPACE_FILTER=e.WORKSPACE_EXTENSION=e.WorkspaceFolder=e.Workspace=e.isWorkspaceIdentifier=e.toWorkspaceIdentifier=e.UNKNOWN_EMPTY_WINDOW_WORKSPACE=e.EXTENSION_DEVELOPMENT_EMPTY_WINDOW_WORKSPACE=e.isEmptyWorkspaceIdentifier=e.isSingleFolderWorkspaceIdentifier=e.IWorkspaceContextService=void 0,e.IWorkspaceContextService=(0,L.createDecorator)("contextService");function S(n){const a=n;return typeof a?.id=="string"&&I.URI.isUri(a.uri)}e.isSingleFolderWorkspaceIdentifier=S;function v(n){const a=n;return typeof a?.id=="string"&&!S(n)&&!g(n)}e.isEmptyWorkspaceIdentifier=v,e.EXTENSION_DEVELOPMENT_EMPTY_WINDOW_WORKSPACE={id:"ext-dev"},e.UNKNOWN_EMPTY_WINDOW_WORKSPACE={id:"empty-window"};function f(n,a){if(typeof n=="string"||typeof n>"u")return typeof n=="string"?{id:(0,N.basename)(n)}:a?e.EXTENSION_DEVELOPMENT_EMPTY_WINDOW_WORKSPACE:e.UNKNOWN_EMPTY_WINDOW_WORKSPACE;const r=n;return r.configuration?{id:r.id,configPath:r.configuration}:r.folders.length===1?{id:r.id,uri:r.folders[0].uri}:{id:r.id}}e.toWorkspaceIdentifier=f;function g(n){const a=n;return typeof a?.id=="string"&&I.URI.isUri(a.configPath)}e.isWorkspaceIdentifier=g;class i{constructor(a,r,c,d,s){this.c=a,this.d=c,this.e=d,this.f=s,this.a=E.TernarySearchTree.forUris(this.f,()=>!0),this.folders=r}get folders(){return this.b}set folders(a){this.b=a,this.g()}get id(){return this.c}get transient(){return this.d}get configuration(){return this.e}set configuration(a){this.e=a}getFolder(a){return a&&this.a.findSubstr(a)||null}g(){this.a=E.TernarySearchTree.forUris(this.f,()=>!0);for(const a of this.folders)this.a.set(a.uri,a)}toJSON(){return{id:this.id,folders:this.folders,transient:this.transient,configuration:this.configuration}}}e.Workspace=i;class t{constructor(a,r){this.raw=r,this.uri=a.uri,this.index=a.index,this.name=a.name}toJSON(){return{uri:this.uri,name:this.name,index:this.index}}}e.WorkspaceFolder=t,e.WORKSPACE_EXTENSION="code-workspace",e.WORKSPACE_FILTER=[{name:(0,C.localize)(0,null),extensions:[e.WORKSPACE_EXTENSION]}]}),define(_[843],ee([1,0,11,184,2,101,44,21,306,14,143,4,19,97,94,596,69,181]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DropIntoEditorController=void 0;let s=class extends E.Disposable{constructor(u,h,w,m,p){super(),this.a=h,this.b=w,this.c=m,this.q(u.onDropIntoEditor(b=>this.g(u,b.position,b.event))),this.b.documentOnDropEditProvider.register("*",new l(p))}g(u,h,w){var m,p;return ye(this,void 0,void 0,function*(){if(!w.dataTransfer||!u.hasModel())return;const b=u.getModel(),y=b.getVersionId(),k=yield this.extractDataTransferData(w);if(k.size===0||u.getModel().getVersionId()!==y)return;const D=new n.EditorStateCancellationTokenSource(u,1);try{const M=this.b.documentOnDropEditProvider.ordered(b),z=yield this.c.withProgress({location:15,delay:750,title:(0,r.localize)(0,null),cancellable:!0},()=>(0,C.raceCancellation)((()=>ye(this,void 0,void 0,function*(){for(const R of M){const P=yield R.provideDocumentOnDropEdits(b,h,k,D.token);if(D.token.isCancellationRequested)return;if(P)return P}}))(),D.token),()=>{D.cancel()});if(D.token.isCancellationRequested||u.getModel().getVersionId()!==y)return;if(z){const R=typeof z.insertText=="string"?a.SnippetParser.escape(z.insertText):z.insertText.snippet,P={edits:[new g.ResourceTextEdit(b.uri,{range:new i.Range(h.lineNumber,h.column,h.lineNumber,h.column),text:R,insertAsSnippet:!0}),...(p=(m=z.additionalEdit)===null||m===void 0?void 0:m.edits)!==null&&p!==void 0?p:[]]};yield this.a.apply(P,{editor:u});return}}finally{D.dispose()}})}extractDataTransferData(u){return ye(this,void 0,void 0,function*(){if(!u.dataTransfer)return new N.VSDataTransfer;const h=(0,v.toVSDataTransfer)(u.dataTransfer);return(0,v.addExternalEditorsDropData)(h,u),h})}};s.ID="editor.contrib.dropIntoEditorController",s=Ne([ge(1,g.IBulkEditService),ge(2,t.ILanguageFeaturesService),ge(3,c.IProgressService),ge(4,d.IWorkspaceContextService)],s),e.DropIntoEditorController=s;let l=class{constructor(u){this.a=u}provideDocumentOnDropEdits(u,h,w,m){var p;return ye(this,void 0,void 0,function*(){const b=w.get(I.Mimes.uriList);if(b){const k=yield b.asString(),D=this.b(k);if(D)return{insertText:D}}const y=(p=w.get("text"))!==null&&p!==void 0?p:w.get(I.Mimes.text);if(y)return{insertText:yield y.asString()}})}b(u){const h=[];for(const w of N.UriList.parse(u))try{h.push(S.URI.parse(w))}catch{}if(!!h.length)return h.map(w=>{const m=this.a.getWorkspaceFolder(w);if(m){const p=(0,L.relativePath)(m.uri,w);if(p)return p}return w.fsPath}).join(" ")}};l=Ne([ge(0,d.IWorkspaceContextService)],l),(0,f.registerEditorContribution)(s.ID,s,2)}),define(_[844],ee([1,0,520,88,44,9,183,34,94,639,181]),function(q,e,C,N,E,I,L,S,v,f,g){"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 i{constructor(o){this.a=o}resolve(o){for(const u of this.a){const h=u.resolve(o);if(h!==void 0)return h}}}e.CompositeSnippetVariableResolver=i;class t{constructor(o,u,h,w){this.a=o,this.b=u,this.c=h,this.d=w}resolve(o){const{name:u}=o;if(u==="SELECTION"||u==="TM_SELECTED_TEXT"){let h=this.a.getValueInRange(this.b)||void 0,w=this.b.startLineNumber!==this.b.endLineNumber;if(!h&&this.d){const m=this.d.getLastOvertypedInfo(this.c);m&&(h=m.value,w=m.multiline)}if(h&&w&&o.snippet){const m=this.a.getLineContent(this.b.startLineNumber),p=(0,I.getLeadingWhitespace)(m,0,this.b.startColumn-1);let b=p;o.snippet.walk(k=>k===o?!1:(k instanceof v.Text&&(b=(0,I.getLeadingWhitespace)((0,I.splitLines)(k.value).pop())),!0));const y=(0,I.commonPrefixLength)(b,p);h=h.replace(/(\r\n|\r|\n)(.*)/g,(k,D,M)=>`${D}${b.substr(y)}${M}`)}return h}else{if(u==="TM_CURRENT_LINE")return this.a.getLineContent(this.b.positionLineNumber);if(u==="TM_CURRENT_WORD"){const h=this.a.getWordAtPosition({lineNumber:this.b.positionLineNumber,column:this.b.positionColumn});return h&&h.word||void 0}else{if(u==="TM_LINE_INDEX")return String(this.b.positionLineNumber-1);if(u==="TM_LINE_NUMBER")return String(this.b.positionLineNumber);if(u==="CURSOR_INDEX")return String(this.c);if(u==="CURSOR_NUMBER")return String(this.c+1)}}}}e.SelectionBasedVariableResolver=t;class n{constructor(o,u){this.a=o,this.b=u}resolve(o){const{name:u}=o;if(u==="TM_FILENAME")return N.basename(this.b.uri.fsPath);if(u==="TM_FILENAME_BASE"){const h=N.basename(this.b.uri.fsPath),w=h.lastIndexOf(".");return w<=0?h:h.slice(0,w)}else{if(u==="TM_DIRECTORY")return N.dirname(this.b.uri.fsPath)==="."?"":this.a.getUriLabel((0,E.dirname)(this.b.uri));if(u==="TM_FILEPATH")return this.a.getUriLabel(this.b.uri);if(u==="RELATIVE_FILEPATH")return this.a.getUriLabel(this.b.uri,{relative:!0,noPrefix:!0})}}}e.ModelBasedVariableResolver=n;class a{constructor(o,u,h,w){this.a=o,this.b=u,this.c=h,this.d=w}resolve(o){if(o.name!=="CLIPBOARD")return;const u=this.a();if(!!u){if(this.d){const h=u.split(/\r\n|\n|\r/).filter(w=>!(0,I.isFalsyOrWhitespace)(w));if(h.length===this.c)return h[this.b]}return u}}}e.ClipboardBasedVariableResolver=a;let r=class{constructor(o,u,h){this.a=o,this.b=u,this.c=h}resolve(o){const{name:u}=o,h=this.a.getLanguageIdAtPosition(this.b.selectionStartLineNumber,this.b.selectionStartColumn),w=this.c.getLanguageConfiguration(h).comments;if(!!w){if(u==="LINE_COMMENT")return w.lineCommentToken||void 0;if(u==="BLOCK_COMMENT_START")return w.blockCommentStartToken||void 0;if(u==="BLOCK_COMMENT_END")return w.blockCommentEndToken||void 0}}};r=Ne([ge(2,S.ILanguageConfigurationService)],r),e.CommentBasedVariableResolver=r;class c{constructor(){this.e=new Date}resolve(o){const{name:u}=o;if(u==="CURRENT_YEAR")return String(this.e.getFullYear());if(u==="CURRENT_YEAR_SHORT")return String(this.e.getFullYear()).slice(-2);if(u==="CURRENT_MONTH")return String(this.e.getMonth().valueOf()+1).padStart(2,"0");if(u==="CURRENT_DATE")return String(this.e.getDate().valueOf()).padStart(2,"0");if(u==="CURRENT_HOUR")return String(this.e.getHours().valueOf()).padStart(2,"0");if(u==="CURRENT_MINUTE")return String(this.e.getMinutes().valueOf()).padStart(2,"0");if(u==="CURRENT_SECOND")return String(this.e.getSeconds().valueOf()).padStart(2,"0");if(u==="CURRENT_DAY_NAME")return c.a[this.e.getDay()];if(u==="CURRENT_DAY_NAME_SHORT")return c.b[this.e.getDay()];if(u==="CURRENT_MONTH_NAME")return c.c[this.e.getMonth()];if(u==="CURRENT_MONTH_NAME_SHORT")return c.d[this.e.getMonth()];if(u==="CURRENT_SECONDS_UNIX")return String(Math.floor(this.e.getTime()/1e3))}}c.a=[f.localize(0,null),f.localize(1,null),f.localize(2,null),f.localize(3,null),f.localize(4,null),f.localize(5,null),f.localize(6,null)],c.b=[f.localize(7,null),f.localize(8,null),f.localize(9,null),f.localize(10,null),f.localize(11,null),f.localize(12,null),f.localize(13,null)],c.c=[f.localize(14,null),f.localize(15,null),f.localize(16,null),f.localize(17,null),f.localize(18,null),f.localize(19,null),f.localize(20,null),f.localize(21,null),f.localize(22,null),f.localize(23,null),f.localize(24,null),f.localize(25,null)],c.d=[f.localize(26,null),f.localize(27,null),f.localize(28,null),f.localize(29,null),f.localize(30,null),f.localize(31,null),f.localize(32,null),f.localize(33,null),f.localize(34,null),f.localize(35,null),f.localize(36,null),f.localize(37,null)],e.TimeBasedVariableResolver=c;class d{constructor(o){this.a=o}resolve(o){if(!this.a)return;const u=(0,g.toWorkspaceIdentifier)(this.a.getWorkspace());if(!(0,g.isEmptyWorkspaceIdentifier)(u)){if(o.name==="WORKSPACE_NAME")return this.b(u);if(o.name==="WORKSPACE_FOLDER")return this.c(u)}}b(o){if((0,g.isSingleFolderWorkspaceIdentifier)(o))return N.basename(o.uri.path);let u=N.basename(o.configPath.path);return u.endsWith(g.WORKSPACE_EXTENSION)&&(u=u.substr(0,u.length-g.WORKSPACE_EXTENSION.length-1)),u}c(o){if((0,g.isSingleFolderWorkspaceIdentifier)(o))return(0,C.normalizeDriveLetter)(o.uri.fsPath);const u=N.basename(o.configPath.path);let h=o.configPath.fsPath;return h.endsWith(u)&&(h=h.substr(0,h.length-u.length-1)),h?(0,C.normalizeDriveLetter)(h):"/"}}e.WorkspaceBasedVariableResolver=d;class s{resolve(o){const{name:u}=o;if(u==="RANDOM")return Math.random().toString().slice(-6);if(u==="RANDOM_HEX")return Math.random().toString(16).slice(-6);if(u==="UUID")return(0,L.generateUuid)()}}e.RandomBasedVariableResolver=s}),define(_[334],ee([1,0,17,2,9,64,4,22,34,39,145,181,94,844,415]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SnippetSession=e.OneSnippet=void 0;class a{constructor(s,l,o){this.g=s,this.h=l,this.j=o,this.e=-1,this._nestingLevel=1,this.d=(0,C.groupBy)(l.placeholders,t.Placeholder.compareByIndex),this._placeholderGroupsIdx=-1}initialize(s){this.e=s.newPosition}dispose(){this.c&&this.g.removeDecorations([...this.c.values()]),this.d.length=0}k(){if(this.e===-1)throw new Error("Snippet not initialized!");if(this.c)return;this.c=new Map;const s=this.g.getModel();this.g.changeDecorations(l=>{for(const o of this.h.placeholders){const u=this.h.offset(o),h=this.h.fullLen(o),w=L.Range.fromPositions(s.getPositionAt(this.e+u),s.getPositionAt(this.e+u+h)),m=o.isFinalTabstop?a.f.inactiveFinal:a.f.inactive,p=l.addDecoration(w,m);this.c.set(o,p)}})}move(s){if(!this.g.hasModel())return[];if(this.k(),this._placeholderGroupsIdx>=0){const u=[];for(const h of this.d[this._placeholderGroupsIdx])if(h.transform){const w=this.c.get(h),m=this.g.getModel().getDecorationRange(w),p=this.g.getModel().getValueInRange(m),b=h.transform.resolve(p).split(/\r\n|\r|\n/);for(let y=1;y<b.length;y++)b[y]=this.g.getModel().normalizeIndentation(this.j+b[y]);u.push(I.EditOperation.replace(m,b.join(this.g.getModel().getEOL())))}u.length>0&&this.g.executeEdits("snippet.placeholderTransform",u)}let l=!1;s===!0&&this._placeholderGroupsIdx<this.d.length-1?(this._placeholderGroupsIdx+=1,l=!0):s===!1&&this._placeholderGroupsIdx>0&&(this._placeholderGroupsIdx-=1,l=!0);const o=this.g.getModel().changeDecorations(u=>{const h=new Set,w=[];for(const m of this.d[this._placeholderGroupsIdx]){const p=this.c.get(m),b=this.g.getModel().getDecorationRange(p);w.push(new S.Selection(b.startLineNumber,b.startColumn,b.endLineNumber,b.endColumn)),l=l&&this.l(m),u.changeDecorationOptions(p,m.isFinalTabstop?a.f.activeFinal:a.f.active),h.add(m);for(const y of this.h.enclosingPlaceholders(m)){const k=this.c.get(y);u.changeDecorationOptions(k,y.isFinalTabstop?a.f.activeFinal:a.f.active),h.add(y)}}for(const[m,p]of this.c)h.has(m)||u.changeDecorationOptions(p,m.isFinalTabstop?a.f.inactiveFinal:a.f.inactive);return w});return l?this.move(s):o??[]}l(s){let l=s;for(;l;){if(l instanceof t.Placeholder){const o=this.c.get(l);if(this.g.getModel().getDecorationRange(o).isEmpty()&&l.toString().length>0)return!0}l=l.parent}return!1}get isAtFirstPlaceholder(){return this._placeholderGroupsIdx<=0||this.d.length===0}get isAtLastPlaceholder(){return this._placeholderGroupsIdx===this.d.length-1}get hasPlaceholder(){return this.h.placeholders.length>0}get isTrivialSnippet(){if(this.h.placeholders.length===0)return!0;if(this.h.placeholders.length===1){const[s]=this.h.placeholders;if(s.isFinalTabstop&&this.h.rightMostDescendant===s)return!0}return!1}computePossibleSelections(){const s=new Map;for(const l of this.d){let o;for(const u of l){if(u.isFinalTabstop)break;o||(o=[],s.set(u.index,o));const h=this.c.get(u),w=this.g.getModel().getDecorationRange(h);if(!w){s.delete(u.index);break}o.push(w)}}return s}get activeChoice(){if(!this.c)return;const s=this.d[this._placeholderGroupsIdx][0];if(!s?.choice)return;const l=this.c.get(s);if(!l)return;const o=this.g.getModel().getDecorationRange(l);if(!!o)return{range:o,choice:s.choice}}get hasChoice(){let s=!1;return this.h.walk(l=>(s=l instanceof t.Choice,!s)),s}merge(s){const l=this.g.getModel();this._nestingLevel*=10,this.g.changeDecorations(o=>{for(const u of this.d[this._placeholderGroupsIdx]){const h=s.shift();console.assert(h.e!==-1),console.assert(!h.c);const w=h.h.placeholderInfo.last.index;for(const p of h.h.placeholderInfo.all)p.isFinalTabstop?p.index=u.index+(w+1)/this._nestingLevel:p.index=u.index+p.index/this._nestingLevel;this.h.replace(u,h.h.children);const m=this.c.get(u);o.removeDecoration(m),this.c.delete(u);for(const p of h.h.placeholders){const b=h.h.offset(p),y=h.h.fullLen(p),k=L.Range.fromPositions(l.getPositionAt(h.e+b),l.getPositionAt(h.e+b+y)),D=o.addDecoration(k,a.f.inactive);this.c.set(p,D)}}this.d=(0,C.groupBy)(this.h.placeholders,t.Placeholder.compareByIndex)})}}a.f={active:f.ModelDecorationOptions.register({description:"snippet-placeholder-1",stickiness:0,className:"snippet-placeholder"}),inactive:f.ModelDecorationOptions.register({description:"snippet-placeholder-2",stickiness:1,className:"snippet-placeholder"}),activeFinal:f.ModelDecorationOptions.register({description:"snippet-placeholder-3",stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:f.ModelDecorationOptions.register({description:"snippet-placeholder-4",stickiness:1,className:"finish-snippet-placeholder"})},e.OneSnippet=a;const r={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};let c=class vt{static adjustWhitespace(s,l,o,u,h){const w=s.getLineContent(l.lineNumber),m=(0,E.getLeadingWhitespace)(w,0,l.column-1);let p;return u.walk(b=>{if(!(b instanceof t.Text)||b.parent instanceof t.Choice||h&&!h.has(b))return!0;const y=b.value.split(/\r\n|\r|\n/);if(o){const D=u.offset(b);if(D===0)y[0]=s.normalizeIndentation(y[0]);else{p=p??u.toString();const M=p.charCodeAt(D-1);(M===10||M===13)&&(y[0]=s.normalizeIndentation(m+y[0]))}for(let M=1;M<y.length;M++)y[M]=s.normalizeIndentation(m+y[M])}const k=y.join(s.getEOL());return k!==b.value&&(b.parent.replace(b,[new t.Text(k)]),p=void 0),!0}),m}static adjustSelection(s,l,o,u){if(o!==0||u!==0){const{positionLineNumber:h,positionColumn:w}=l,m=w-o,p=w+u,b=s.validateRange({startLineNumber:h,startColumn:m,endLineNumber:h,endColumn:p});l=S.Selection.createWithDirection(b.startLineNumber,b.startColumn,b.endLineNumber,b.endColumn,l.getDirection())}return l}static createEditsAndSnippetsFromSelections(s,l,o,u,h,w,m,p,b){const y=[],k=[];if(!s.hasModel())return{edits:y,snippets:k};const D=s.getModel(),M=s.invokeWithinContext(B=>B.get(i.IWorkspaceContextService)),z=s.invokeWithinContext(B=>new n.ModelBasedVariableResolver(B.get(g.ILabelService),D)),R=()=>m,P=D.getValueInRange(vt.adjustSelection(D,s.getSelection(),o,0)),A=D.getValueInRange(vt.adjustSelection(D,s.getSelection(),0,u)),T=D.getLineFirstNonWhitespaceColumn(s.getSelection().positionLineNumber),O=s.getSelections().map((B,W)=>({selection:B,idx:W})).sort((B,W)=>L.Range.compareRangesUsingStarts(B.selection,W.selection));for(const{selection:B,idx:W}of O){let j=vt.adjustSelection(D,B,o,0),F=vt.adjustSelection(D,B,0,u);P!==D.getValueInRange(j)&&(j=B),A!==D.getValueInRange(F)&&(F=B);const U=B.setStartPosition(j.startLineNumber,j.startColumn).setEndPosition(F.endLineNumber,F.endColumn),Q=new t.SnippetParser().parse(l,!0,h),se=U.getStartPosition(),he=vt.adjustWhitespace(D,se,w||W>0&&T!==D.getLineFirstNonWhitespaceColumn(B.positionLineNumber),Q);Q.resolveVariables(new n.CompositeSnippetVariableResolver([z,new n.ClipboardBasedVariableResolver(R,W,O.length,s.getOption(75)==="spread"),new n.SelectionBasedVariableResolver(D,B,W,p),new n.CommentBasedVariableResolver(D,B,b),new n.TimeBasedVariableResolver,new n.WorkspaceBasedVariableResolver(M),new n.RandomBasedVariableResolver])),y[W]=I.EditOperation.replace(U,Q.toString()),y[W].identifier={major:W,minor:0},y[W]._isTracked=!0,k[W]=new a(s,Q,he)}return{edits:y,snippets:k}}static createEditsAndSnippetsFromEdits(s,l,o,u,h,w,m){if(!s.hasModel()||l.length===0)return{edits:[],snippets:[]};const p=[],b=s.getModel(),y=new t.SnippetParser,k=new t.TextmateSnippet,D=new n.CompositeSnippetVariableResolver([s.invokeWithinContext(z=>new n.ModelBasedVariableResolver(z.get(g.ILabelService),b)),new n.ClipboardBasedVariableResolver(()=>h,0,s.getSelections().length,s.getOption(75)==="spread"),new n.SelectionBasedVariableResolver(b,s.getSelection(),0,w),new n.CommentBasedVariableResolver(b,s.getSelection(),m),new n.TimeBasedVariableResolver,new n.WorkspaceBasedVariableResolver(s.invokeWithinContext(z=>z.get(i.IWorkspaceContextService))),new n.RandomBasedVariableResolver]);l=l.sort((z,R)=>L.Range.compareRangesUsingStarts(z.range,R.range));let M=0;for(let z=0;z<l.length;z++){const{range:R,template:P}=l[z];if(z>0){const W=l[z-1].range,j=L.Range.fromPositions(W.getEndPosition(),R.getStartPosition()),F=new t.Text(b.getValueInRange(j));k.appendChild(F),M+=F.value.length}const A=y.parseFragment(P,k);vt.adjustWhitespace(b,R.getStartPosition(),!0,k,new Set(A)),k.resolveVariables(D);const T=k.toString(),O=T.slice(M);M=T.length;const B=I.EditOperation.replace(R,O);B.identifier={major:z,minor:0},B._isTracked=!0,p.push(B)}return y.ensureFinalTabstop(k,o,!0),{edits:p,snippets:[new a(s,k,"")]}}constructor(s,l,o=r,u){this.e=s,this.f=l,this.g=o,this.h=u,this.c=[],this.d=[]}dispose(){(0,N.dispose)(this.d)}_logInfo(){return`template="${this.f}", merged_templates="${this.c.join(" -> ")}"`}insert(){if(!this.e.hasModel())return;const{edits:s,snippets:l}=typeof this.f=="string"?vt.createEditsAndSnippetsFromSelections(this.e,this.f,this.g.overwriteBefore,this.g.overwriteAfter,!1,this.g.adjustWhitespace,this.g.clipboardText,this.g.overtypingCapturer,this.h):vt.createEditsAndSnippetsFromEdits(this.e,this.f,!1,this.g.adjustWhitespace,this.g.clipboardText,this.g.overtypingCapturer,this.h);this.d=l,this.e.executeEdits("snippet",s,o=>{const u=o.filter(h=>!!h.identifier);for(let h=0;h<l.length;h++)l[h].initialize(u[h].textChange);return this.d[0].hasPlaceholder?this.j(!0):u.map(h=>S.Selection.fromPositions(h.range.getEndPosition()))}),this.e.revealRange(this.e.getSelections()[0])}merge(s,l=r){if(!this.e.hasModel())return;this.c.push([this.d[0]._nestingLevel,this.d[0]._placeholderGroupsIdx,s]);const{edits:o,snippets:u}=vt.createEditsAndSnippetsFromSelections(this.e,s,l.overwriteBefore,l.overwriteAfter,!0,l.adjustWhitespace,l.clipboardText,l.overtypingCapturer,this.h);this.e.executeEdits("snippet",o,h=>{const w=h.filter(p=>!!p.identifier);for(let p=0;p<u.length;p++)u[p].initialize(w[p].textChange);const m=u[0].isTrivialSnippet;if(!m){for(const p of this.d)p.merge(u);console.assert(u.length===0)}return this.d[0].hasPlaceholder&&!m?this.j(void 0):w.map(p=>S.Selection.fromPositions(p.range.getEndPosition()))})}next(){const s=this.j(!0);this.e.setSelections(s),this.e.revealPositionInCenterIfOutsideViewport(s[0].getPosition())}prev(){const s=this.j(!1);this.e.setSelections(s),this.e.revealPositionInCenterIfOutsideViewport(s[0].getPosition())}j(s){const l=[];for(const o of this.d){const u=o.move(s);l.push(...u)}return l}get isAtFirstPlaceholder(){return this.d[0].isAtFirstPlaceholder}get isAtLastPlaceholder(){return this.d[0].isAtLastPlaceholder}get hasPlaceholder(){return this.d[0].hasPlaceholder}get hasChoice(){return this.d[0].hasChoice}get activeChoice(){return this.d[0].activeChoice}isSelectionWithinPlaceholders(){if(!this.hasPlaceholder)return!1;const s=this.e.getSelections();if(s.length<this.d.length)return!1;const l=new Map;for(const o of this.d){const u=o.computePossibleSelections();if(l.size===0)for(const[h,w]of u){w.sort(L.Range.compareRangesUsingStarts);for(const m of s)if(w[0].containsRange(m)){l.set(h,[]);break}}if(l.size===0)return!1;l.forEach((h,w)=>{h.push(...u.get(w))})}s.sort(L.Range.compareRangesUsingStarts);for(const[o,u]of l){if(u.length!==s.length){l.delete(o);continue}u.sort(L.Range.compareRangesUsingStarts);for(let h=0;h<u.length;h++)if(!u[h].containsRange(s[h])){l.delete(o);continue}}return l.size>0}};c=Ne([ge(3,v.ILanguageConfigurationService)],c),e.SnippetSession=c}),define(_[235],ee([1,0,2,18,14,12,24,34,19,122,638,15,62,334]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SnippetController2=void 0;const a={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};let r=class Ht{static get(s){return s.getContribution(Ht.ID)}constructor(s,l,o,u,h){this.k=s,this.l=l,this.m=o,this.n=h,this.f=new C.DisposableStore,this.g=-1,this.a=Ht.InSnippetMode.bindTo(u),this.b=Ht.HasNextTabstop.bindTo(u),this.c=Ht.HasPrevTabstop.bindTo(u)}dispose(){var s;this.a.reset(),this.c.reset(),this.b.reset(),(s=this.d)===null||s===void 0||s.dispose(),this.f.dispose()}insert(s,l){try{this.p(s,typeof l>"u"?a:Object.assign(Object.assign({},a),l))}catch(o){this.cancel(),this.l.error(o),this.l.error("snippet_error"),this.l.error("insert_template=",s),this.l.error("existing_template=",this.d?this.d._logInfo():"<no_session>")}}p(s,l){var o;if(!!this.k.hasModel()){if(this.f.clear(),l.undoStopBefore&&this.k.getModel().pushStackElement(),this.d&&typeof s!="string"&&this.cancel(),this.d?((0,N.assertType)(typeof s=="string"),this.d.merge(s,l)):(this.g=this.k.getModel().getAlternativeVersionId(),this.d=new n.SnippetSession(this.k,s,l,this.n),this.d.insert()),l.undoStopAfter&&this.k.getModel().pushStackElement(),!((o=this.d)===null||o===void 0)&&o.hasChoice){this.j={provideCompletionItems:(h,w)=>{if(!this.d||h!==this.k.getModel()||!I.Position.equals(this.k.getPosition(),w))return;const{activeChoice:m}=this.d;if(!m||m.choice.options.length===0)return;const p=h.getValueInRange(m.range),b=Boolean(m.choice.options.find(k=>k.value===p)),y=[];for(let k=0;k<m.choice.options.length;k++){const D=m.choice.options[k];y.push({kind:13,label:D.value,insertText:D.value,sortText:"a".repeat(k+1),range:m.range,filterText:b?`${p}_${D.value}`:void 0,command:{id:"jumpToNextSnippetPlaceholder",title:(0,g.localize)(3,null)}})}return{suggestions:y}}};const u=this.m.completionProvider.register({language:this.k.getModel().getLanguageId(),pattern:this.k.getModel().uri.fsPath,scheme:this.k.getModel().uri.scheme,exclusive:!0},this.j);this.f.add(u)}this.q(),this.f.add(this.k.onDidChangeModelContent(u=>u.isFlush&&this.cancel())),this.f.add(this.k.onDidChangeModel(()=>this.cancel())),this.f.add(this.k.onDidChangeCursorSelection(()=>this.q()))}}q(){if(!(!this.d||!this.k.hasModel())){if(this.g===this.k.getModel().getAlternativeVersionId())return this.cancel();if(!this.d.hasPlaceholder)return this.cancel();if(this.d.isAtLastPlaceholder||!this.d.isSelectionWithinPlaceholders())return this.k.getModel().pushStackElement(),this.cancel();this.a.set(!0),this.c.set(!this.d.isAtFirstPlaceholder),this.b.set(!this.d.isAtLastPlaceholder),this.r()}}r(){if(!this.d||!this.k.hasModel()){this.h=void 0;return}const{activeChoice:s}=this.d;if(!s||!this.j){this.h=void 0;return}this.h!==s.choice&&(this.h=s.choice,queueMicrotask(()=>{(0,f.showSimpleSuggestions)(this.k,this.j)}))}finish(){for(;this.a.get();)this.next()}cancel(s=!1){var l;this.a.reset(),this.c.reset(),this.b.reset(),this.f.clear(),this.h=void 0,(l=this.d)===null||l===void 0||l.dispose(),this.d=void 0,this.g=-1,s&&this.k.setSelections([this.k.getSelection()])}prev(){var s;(s=this.d)===null||s===void 0||s.prev(),this.q()}next(){var s;(s=this.d)===null||s===void 0||s.next(),this.q()}isInSnippet(){return Boolean(this.a.get())}};r.ID="snippetController2",r.InSnippetMode=new i.RawContextKey("inSnippetMode",!1,(0,g.localize)(0,null)),r.HasNextTabstop=new i.RawContextKey("hasNextTabstop",!1,(0,g.localize)(1,null)),r.HasPrevTabstop=new i.RawContextKey("hasPrevTabstop",!1,(0,g.localize)(2,null)),r=Ne([ge(1,t.ILogService),ge(2,v.ILanguageFeaturesService),ge(3,i.IContextKeyService),ge(4,S.ILanguageConfigurationService)],r),e.SnippetController2=r,(0,E.registerEditorContribution)(r.ID,r,4);const c=E.EditorCommand.bindToContribution(r.get);(0,E.registerEditorCommand)(new c({id:"jumpToNextSnippetPlaceholder",precondition:i.ContextKeyExpr.and(r.InSnippetMode,r.HasNextTabstop),handler:d=>d.next(),kbOpts:{weight:100+30,kbExpr:L.EditorContextKeys.editorTextFocus,primary:2}})),(0,E.registerEditorCommand)(new c({id:"jumpToPrevSnippetPlaceholder",precondition:i.ContextKeyExpr.and(r.InSnippetMode,r.HasPrevTabstop),handler:d=>d.prev(),kbOpts:{weight:100+30,kbExpr:L.EditorContextKeys.editorTextFocus,primary:1026}})),(0,E.registerEditorCommand)(new c({id:"leaveSnippet",precondition:r.InSnippetMode,handler:d=>d.cancel(!0),kbOpts:{weight:100+30,kbExpr:L.EditorContextKeys.editorTextFocus,primary:9,secondary:[1033]}})),(0,E.registerEditorCommand)(new c({id:"acceptSnippet",precondition:r.InSnippetMode,handler:d=>d.finish()}))}),define(_[335],ee([1,0,85,11,20,13,6,63,2,175,64,12,4,26,34,462,78,19,195,171,216,233,196,235,94,25,27]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s,l,o,u,h,w,m,p,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.provideInlineCompletions=e.SynchronizedInlineCompletionsCache=e.UpdateOperation=e.InlineCompletionsSession=e.InlineCompletionsModel=void 0;let y=class extends v.Disposable{constructor(O,B,W,j,F,U,Q){super(),this.j=O,this.k=B,this.m=W,this.n=j,this.p=F,this.r=U,this.a=new L.Emitter,this.onDidChange=this.a.event,this.completionSession=this.q(new v.MutableDisposable),this.b=!1,this.g=!1,this.h=this.r.for(this.p.inlineCompletionsProvider,"InlineCompletionsDebounce",{min:50,max:50}),this.q(W.onDidExecuteCommand(se=>{new Set([f.CoreEditingCommands.Tab.id,f.CoreEditingCommands.DeleteLeft.id,f.CoreEditingCommands.DeleteRight.id,s.inlineSuggestCommitId,"acceptSelectedSuggestion"]).has(se.commandId)&&O.hasTextFocus()&&this.s()})),this.q(this.j.onDidType(se=>{this.s()})),this.q(this.j.onDidChangeCursorPosition(se=>{(se.reason===3||this.t&&!this.t.isValid)&&this.hide()})),this.q((0,v.toDisposable)(()=>{this.g=!0})),this.q(this.j.onDidBlurEditorWidget(()=>{Q.getValue("editor.inlineSuggest.hideOnBlur")||u.InlineSuggestionHintsContentWidget.dropDownVisible||this.hide()}))}s(){this.t&&!this.t.isValid&&this.hide(),setTimeout(()=>{this.g||this.u()},0)}get t(){return this.completionSession.value}get ghostText(){var O;return(O=this.t)===null||O===void 0?void 0:O.ghostText}get minReservedLineCount(){return this.t?this.t.minReservedLineCount:0}setExpanded(O){var B;(B=this.t)===null||B===void 0||B.setExpanded(O)}setActive(O){var B;this.b=O,O&&((B=this.t)===null||B===void 0||B.scheduleAutomaticUpdate())}u(){!this.j.getOption(59).enabled||this.t&&this.t.isValid||this.trigger(n.InlineCompletionTriggerKind.Automatic)}trigger(O){if(this.completionSession.value){O===n.InlineCompletionTriggerKind.Explicit&&this.completionSession.value.ensureUpdateWithExplicitContext();return}this.completionSession.value=new k(this.j,this.j.getPosition(),()=>this.b,this.m,this.k,O,this.n,this.p.inlineCompletionsProvider,this.h),this.completionSession.value.takeOwnership(this.completionSession.value.onDidChange(()=>{this.a.fire()}))}hide(){this.completionSession.clear(),this.a.fire()}commitCurrentSuggestion(){var O;(O=this.t)===null||O===void 0||O.commitCurrentCompletion()}commitCurrentSuggestionPartially(){var O;(O=this.t)===null||O===void 0||O.commitCurrentCompletionNextWord()}showNext(){var O;(O=this.t)===null||O===void 0||O.showNextInlineCompletion()}showPrevious(){var O;(O=this.t)===null||O===void 0||O.showPreviousInlineCompletion()}};y=Ne([ge(2,p.ICommandService),ge(3,a.ILanguageConfigurationService),ge(4,d.ILanguageFeaturesService),ge(5,c.ILanguageFeatureDebounceService),ge(6,b.IConfigurationService)],y),e.InlineCompletionsModel=y;class k extends l.BaseGhostTextWidgetModel{constructor(O,B,W,j,F,U,Q,se,he){super(O),this.k=B,this.m=W,this.n=j,this.r=F,this.s=U,this.t=Q,this.u=se,this.w=he,this.minReservedLineCount=0,this.a=this.q(new v.MutableDisposable),this.b=this.q(new N.RunOnceScheduler(()=>{const ue=this.s;return this.s=n.InlineCompletionTriggerKind.Automatic,this.F(ue)},50)),this.y=[],this.B=void 0;let ie;this.q(this.onDidChange(()=>{var ue;const J=this.currentCompletion;if(J&&J.sourceInlineCompletion!==ie){ie=J.sourceInlineCompletion;const x=J.sourceProvider;(ue=x.handleItemDidShow)===null||ue===void 0||ue.call(x,J.sourceInlineCompletions,ie)}})),this.q((0,v.toDisposable)(()=>{this.r.clear()})),this.q(this.j.onDidChangeCursorPosition(ue=>{var J;ue.reason!==3&&((J=this.r.value)===null||J===void 0||J.updateRanges(),this.r.value&&(this.z(),this.h.fire()))})),this.q(this.j.onDidChangeModelContent(ue=>{var J;(J=this.r.value)===null||J===void 0||J.updateRanges(),this.z(),this.scheduleAutomaticUpdate()})),this.q(this.u.onDidChange(()=>{this.b.schedule(this.w.get(this.j.getModel()))})),this.scheduleAutomaticUpdate()}z(){if(!this.r.value){this.y=[];return}const O=this.j.getModel(),B=O.validatePosition(this.j.getPosition());this.y=this.r.value.completions.filter(W=>{const j=O.getValueInRange(W.synchronizedRange).toLowerCase(),F=W.inlineCompletion.filterText.toLowerCase(),U=O.getLineIndentColumn(W.synchronizedRange.startLineNumber),Q=Math.max(0,B.column-W.synchronizedRange.startColumn);let se=F.substring(0,Q),he=F.substring(Q),ie=j.substring(0,Q),ue=j.substring(Q);return W.synchronizedRange.startColumn<=U&&(ie=ie.trimStart(),ie.length===0&&(ue=ue.trimStart()),se=se.trimStart(),se.length===0&&(he=he.trimStart())),se.startsWith(ie)&&(0,S.matchesSubString)(ue,he)})}get currentlySelectedIndex(){return this.C()}C(){if(!this.B||!this.r.value||this.r.value.completions.length===0)return 0;const O=this.y.findIndex(B=>B.semanticId===this.B);return O===-1?(this.B=void 0,0):O}get D(){if(!!this.r.value)return this.y[this.C()]}showNextInlineCompletion(){return ye(this,void 0,void 0,function*(){yield this.ensureUpdateWithExplicitContext();const O=this.y||[];if(O.length>0){const B=(this.C()+1)%O.length;this.B=O[B].semanticId}else this.B=void 0;this.h.fire()})}showPreviousInlineCompletion(){return ye(this,void 0,void 0,function*(){yield this.ensureUpdateWithExplicitContext();const O=this.y||[];if(O.length>0){const B=(this.C()+O.length-1)%O.length;this.B=O[B].semanticId}else this.B=void 0;this.h.fire()})}get hasBeenTriggeredExplicitly(){var O;return((O=this.r.value)===null||O===void 0?void 0:O.triggerKind)===n.InlineCompletionTriggerKind.Explicit}ensureUpdateWithExplicitContext(){var O;return ye(this,void 0,void 0,function*(){this.a.value?this.a.value.triggerKind===n.InlineCompletionTriggerKind.Explicit?yield this.a.value.promise:yield this.F(n.InlineCompletionTriggerKind.Explicit):((O=this.r.value)===null||O===void 0?void 0:O.triggerKind)!==n.InlineCompletionTriggerKind.Explicit&&(yield this.F(n.InlineCompletionTriggerKind.Explicit))})}getInlineCompletionsCountSync(){return this.y.length||0}get ghostText(){const O=this.currentCompletion;if(!O)return;const B=this.j.getPosition();if(O.range.getEndPosition().isBefore(B))return;const W=this.j.getOptions().get(59).mode,j=(0,o.inlineCompletionToGhostText)(O,this.j.getModel(),W,B);return j?j.isEmpty()?void 0:j:new l.GhostTextReplacement(O.range.startLineNumber,O.range.startColumn,O.range.endColumn-O.range.startColumn,O.insertText.split(`
|
||
`),0)}get currentCompletion(){const O=this.D;if(!!O)return O.toLiveInlineCompletion()}get isValid(){return this.j.getPosition().lineNumber===this.k.lineNumber}scheduleAutomaticUpdate(){this.a.clear(),this.b.schedule(this.w.get(this.j.getModel()))}F(O){return ye(this,void 0,void 0,function*(){if(!this.m())return;const B=this.j.getPosition(),W=new Date,j=(0,N.createCancelablePromise)(U=>ye(this,void 0,void 0,function*(){let Q;try{Q=yield R(this.u,B,this.j.getModel(),{triggerKind:O,selectedSuggestionInfo:void 0},U,this.t);const se=new Date;this.w.update(this.j.getModel(),se.getTime()-W.getTime())}catch(se){(0,I.onUnexpectedError)(se);return}U.isCancellationRequested||(this.r.setValue(this.j,Q,O),this.z(),this.h.fire())})),F=new D(j,O);this.a.value=F,yield j,this.a.value===F&&this.a.clear()})}takeOwnership(O){this.q(O)}commitCurrentCompletionNextWord(){const O=this.ghostText;if(!O)return;const B=this.currentCompletion;if(!B)return;if(B.snippetInfo||B.filterText!==B.insertText){this.commit(B);return}if(O.parts.length===0)return;const W=O.parts[0],j=new i.Position(O.lineNumber,W.column),F=W.lines[0],U=this.j.getModel().getLanguageIdAtPosition(O.lineNumber,1),Q=this.t.getLanguageConfiguration(U),se=new RegExp(Q.wordDefinition.source,Q.wordDefinition.flags.replace("g","")),he=F.match(se);let ie=0;he&&he.index!==void 0?he.index===0?ie=he[0].length:ie=he.index:ie=F.length;const ue=/\s/g;let J=ue.exec(F);J&&J.index===0&&(J=ue.exec(F)),J&&J.index!==void 0&&J.index<ie&&(ie=J.index);const x=F.substring(0,ie);if(this.j.pushUndoStop(),this.j.executeEdits("inlineSuggestion.accept",[g.EditOperation.replace(t.Range.fromPositions(j),x)]),this.j.setPosition(j.delta(0,x.length)),B.sourceProvider.handlePartialAccept){const G=t.Range.fromPositions(B.range.getStartPosition(),j.delta(0,ie)),te=this.j.getModel().getValueInRange(G);B.sourceProvider.handlePartialAccept(B.sourceInlineCompletions,B.sourceInlineCompletion,te.length)}}commitCurrentCompletion(){if(!this.ghostText)return;const B=this.currentCompletion;B&&this.commit(B)}commit(O){var B;const W=this.r.clearAndLeak();this.j.pushUndoStop(),O.snippetInfo?(this.j.executeEdits("inlineSuggestion.accept",[g.EditOperation.replaceMove(O.range,""),...O.additionalTextEdits]),this.j.setPosition(O.snippetInfo.range.getStartPosition()),(B=w.SnippetController2.get(this.j))===null||B===void 0||B.insert(O.snippetInfo.snippet,{undoStopBefore:!1})):this.j.executeEdits("inlineSuggestion.accept",[g.EditOperation.replaceMove(O.range,O.insertText),...O.additionalTextEdits]),O.command?this.n.executeCommand(O.command.id,...O.command.arguments||[]).finally(()=>{W?.dispose()}).then(void 0,I.onUnexpectedExternalError):W?.dispose(),this.h.fire()}get commands(){var O;return[...new Set(((O=this.r.value)===null||O===void 0?void 0:O.completions.map(W=>W.inlineCompletion.sourceInlineCompletions))||[])].flatMap(W=>W.commands||[])}}e.InlineCompletionsSession=k;class D{constructor(O,B){this.promise=O,this.triggerKind=B}dispose(){this.promise.cancel()}}e.UpdateOperation=D;class M extends v.Disposable{constructor(O,B,W,j){super(),this.b=B,this.g=W,this.triggerKind=j,this.a=!1;const F=B.changeDecorations(U=>U.deltaDecorations([],O.items.map(Q=>({range:Q.range,options:{description:"inline-completion-tracking-range"}}))));this.q((0,v.toDisposable)(()=>{this.a=!0,B.removeDecorations(F)})),this.completions=O.items.map((U,Q)=>new z(U,F[Q])),this.q(B.onDidChangeModelContent(()=>{this.updateRanges()})),this.q(O)}updateRanges(){if(this.a)return;let O=!1;const B=this.b.getModel();for(const W of this.completions){const j=B.getDecorationRange(W.decorationId);if(!j){(0,I.onUnexpectedError)(new Error("Decoration has no range"));continue}W.synchronizedRange.equalsRange(j)||(O=!0,W.synchronizedRange=j)}O&&this.g()}}e.SynchronizedInlineCompletionsCache=M;class z{constructor(O,B){this.inlineCompletion=O,this.decorationId=B,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=O.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 R(T,O,B,W,j=E.CancellationToken.None,F){return ye(this,void 0,void 0,function*(){const U=P(O,B),Q=T.all(B),se=yield Promise.all(Q.map(ie=>ye(this,void 0,void 0,function*(){const ue=yield Promise.resolve(ie.provideInlineCompletions(B,O,W,j)).catch(I.onUnexpectedExternalError);return{completions:ue,provider:ie,dispose:()=>{ue&&ie.freeInlineCompletions(ue)}}}))),he=new Map;for(const ie of se){const ue=ie.completions;if(!!ue)for(const J of ue.items){let x=J.range?t.Range.lift(J.range):U;if(x.startLineNumber!==x.endLineNumber)continue;let G,te;if(typeof J.insertText=="string"){if(G=J.insertText,F&&J.completeBracketPairs){G=A(G,x.getStartPosition(),B,F);const ae=G.length-J.insertText.length;ae!==0&&(x=new t.Range(x.startLineNumber,x.startColumn,x.endLineNumber,x.endColumn+ae))}te=void 0}else if("snippet"in J.insertText){const ae=J.insertText.snippet.length;if(F&&J.completeBracketPairs){J.insertText.snippet=A(J.insertText.snippet,x.getStartPosition(),B,F);const K=J.insertText.snippet.length-ae;K!==0&&(x=new t.Range(x.startLineNumber,x.startColumn,x.endLineNumber,x.endColumn+K))}const de=new m.SnippetParser().parse(J.insertText.snippet);de.children.length===1&&de.children[0]instanceof m.Text?(G=de.children[0].value,te=void 0):(G=de.toString(),te={snippet:J.insertText.snippet,range:x})}else(0,C.assertNever)(J.insertText);const Z={insertText:G,snippetInfo:te,range:x,command:J.command,sourceProvider:ie.provider,sourceInlineCompletions:ue,sourceInlineCompletion:J,filterText:J.filterText||G,additionalTextEdits:J.additionalTextEdits||(0,h.getReadonlyEmptyArray)()};he.set(JSON.stringify({insertText:G,range:J.range}),Z)}}return{items:[...he.values()],dispose:()=>{for(const ie of se)ie.dispose()}}})}e.provideInlineCompletions=R;function P(T,O){const B=O.getWordAtPosition(T),W=O.getLineMaxColumn(T.lineNumber);return B?new t.Range(T.lineNumber,B.startColumn,T.lineNumber,W):t.Range.fromPositions(T,T.with(void 0,W))}function A(T,O,B,W){const F=B.getLineContent(O.lineNumber).substring(0,O.column-1)+T,U=B.tokenization.tokenizeLineWithEdit(O,F.length-(O.column-1),T),Q=U?.sliceAndInflate(O.column-1,F.length,0);return Q?(0,r.fixBracketsInLine)(Q,W):T}}),define(_[336],ee([1,0,52,17,11,20,13,6,110,2,16,60,18,112,14,64,12,4,24,235,94,312,691,642,25,15,8,62,122,690,500,754,501,828,80,44,129]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s,l,o,u,h,w,m,p,b,y,k,D,M,z,R,P,A,T,O){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TriggerSuggestAction=e.SuggestController=void 0;const B=!1;class W{constructor(ie,ue){if(this.b=ie,this.d=ue,ie.getLineMaxColumn(ue.lineNumber)!==ue.column){const x=ie.getOffsetAt(ue),G=ie.getPositionAt(x+1);this.a=ie.deltaDecorations([],[{range:d.Range.fromPositions(ue,G),options:{description:"suggest-line-suffix",stickiness:1}}])}}dispose(){this.a&&!this.b.isDisposed()&&this.b.deltaDecorations(this.a,[])}delta(ie){if(this.b.isDisposed()||this.d.lineNumber!==ie.lineNumber)return 0;if(this.a){const ue=this.b.getDecorationRange(this.a[0]);return this.b.getOffsetAt(ue.getStartPosition())-this.b.getOffsetAt(ie)}else return this.b.getLineMaxColumn(ie.lineNumber)-ie.column}}let j=class an{static get(ie){return ie.getContribution(an.ID)}constructor(ie,ue,J,x,G,te,Z){this.h=ue,this.i=J,this.j=x,this.k=G,this.l=te,this.m=Z,this.b=new f.MutableDisposable,this.d=new f.DisposableStore,this.g=new F(Y=>Y.priority),this.o=0,this.editor=ie,this.model=G.createInstance(z.SuggestModel,this.editor),this.g.register({priority:0,select:(Y,ne,V)=>this.h.select(Y,ne,V)});const ae=k.Context.InsertMode.bindTo(x);ae.set(ie.getOption(112).insertMode),this.model.onDidTrigger(()=>ae.set(ie.getOption(112).insertMode)),this.widget=this.d.add(new E.IdleValue(()=>{const Y=this.k.createInstance(P.SuggestWidget,this.editor);this.d.add(Y),this.d.add(Y.onDidSelect(oe=>this.n(oe,0),this));const ne=new M.CommitCharacterController(this.editor,Y,this.model,oe=>this.n(oe,2));this.d.add(ne);const V=k.Context.MakesTextEdit.bindTo(this.j),H=k.Context.HasInsertAndReplaceRange.bindTo(this.j),$=k.Context.CanResolve.bindTo(this.j);return this.d.add((0,f.toDisposable)(()=>{V.reset(),H.reset(),$.reset()})),this.d.add(Y.onDidFocus(({item:oe})=>{const re=this.editor.getPosition(),X=oe.editStart.column,le=re.column;let me=!0;this.editor.getOption(1)==="smart"&&this.model.state===2&&!oe.completion.additionalTextEdits&&!(oe.completion.insertTextRules&4)&&le-X===oe.completion.insertText.length&&(me=this.editor.getModel().getValueInRange({startLineNumber:re.lineNumber,startColumn:X,endLineNumber:re.lineNumber,endColumn:le})!==oe.completion.insertText),V.set(me),H.set(!c.Position.equals(oe.editInsertEnd,oe.editReplaceEnd)),$.set(Boolean(oe.provider.resolveCompletionItem)||Boolean(oe.completion.documentation)||oe.completion.detail!==oe.completion.label)})),this.d.add(Y.onDetailsKeyDown(oe=>{if(oe.toKeyCodeChord().equals(new v.KeyCodeChord(!0,!1,!1,!1,33))||g.isMacintosh&&oe.toKeyCodeChord().equals(new v.KeyCodeChord(!1,!1,!1,!0,33))){oe.stopPropagation();return}oe.toKeyCodeChord().isModifierKey()||this.editor.focus()})),Y})),this.f=this.d.add(new E.IdleValue(()=>this.d.add(new R.OvertypingCapturer(this.editor,this.model)))),this.a=this.d.add(new E.IdleValue(()=>this.d.add(new D.SuggestAlternatives(this.editor,this.j)))),this.d.add(G.createInstance(h.WordContextKey,ie)),this.d.add(this.model.onDidTrigger(Y=>{this.widget.value.showTriggered(Y.auto,Y.shy?250:50),this.b.value=new W(this.editor.getModel(),Y.position)})),this.d.add(this.model.onDidSuggest(Y=>{var ne;if(Y.triggerOptions.shy)return;let V=-1;for(const $ of this.g.itemsOrderedByPriorityDesc)if(V=$.select(this.editor.getModel(),this.editor.getPosition(),Y.completionModel.items),V!==-1)break;V===-1&&(V=0);let H=!1;if(Y.triggerOptions.auto){const $=this.editor.getOption(112);$.snippetsPreventQuickSuggestions&&((ne=l.SnippetController2.get(this.editor))===null||ne===void 0?void 0:ne.isInSnippet())?H=!0:$.selectionMode==="never"||$.selectionMode==="always"?H=$.selectionMode==="never":$.selectionMode==="whenTriggerCharacter"?H=Y.triggerOptions.triggerKind!==1:$.selectionMode==="whenQuickSuggestion"&&(H=Y.triggerOptions.triggerKind===1&&!Y.triggerOptions.refilter)}this.widget.value.showSuggestions(Y.completionModel,V,Y.isFrozen,Y.triggerOptions.auto,H)})),this.d.add(this.model.onDidCancel(Y=>{Y.retrigger||this.widget.value.hideWidget()})),this.d.add(this.editor.onDidBlurEditorWidget(()=>{B||(this.model.cancel(),this.model.clear())}));const de=k.Context.AcceptSuggestionsOnEnter.bindTo(x),K=()=>{const Y=this.editor.getOption(1);de.set(Y==="on"||Y==="smart")};this.d.add(this.editor.onDidChangeConfiguration(()=>K())),K()}dispose(){this.a.dispose(),this.d.dispose(),this.widget.dispose(),this.model.dispose(),this.b.dispose()}n(ie,ue){if(!ie||!ie.item){this.a.value.reset(),this.model.cancel(),this.model.clear();return}if(!this.editor.hasModel())return;const J=l.SnippetController2.get(this.editor);if(!J)return;const x=this.editor.getModel(),G=x.getAlternativeVersionId(),{item:te}=ie,Z=[],ae=new I.CancellationTokenSource;ue&1||this.editor.pushUndoStop();const de=this.getOverwriteInfo(te,Boolean(ue&8));if(this.h.memorize(x,this.editor.getPosition(),te),Array.isArray(te.completion.additionalTextEdits)){const Y=n.StableEditorScrollState.capture(this.editor);this.editor.executeEdits("suggestController.additionalTextEdits.sync",te.completion.additionalTextEdits.map(ne=>r.EditOperation.replaceMove(d.Range.lift(ne.range),ne.text))),Y.restoreRelativeVerticalPositionOfCursor(this.editor)}else if(!te.isResolved){const Y=new i.StopWatch(!0);let ne;const V=x.onDidChangeContent(re=>{if(re.isFlush){ae.cancel(),V.dispose();return}for(const X of re.changes){const le=d.Range.getEndPosition(X.range);(!ne||c.Position.isBefore(le,ne))&&(ne=le)}}),H=ue;ue|=2;let $=!1;const oe=this.editor.onWillType(()=>{oe.dispose(),$=!0,H&2||this.editor.pushUndoStop()});Z.push(te.resolve(ae.token).then(()=>{if(!te.completion.additionalTextEdits||ae.token.isCancellationRequested||ne&&te.completion.additionalTextEdits.some(X=>c.Position.isBefore(ne,d.Range.getStartPosition(X.range))))return!1;$&&this.editor.pushUndoStop();const re=n.StableEditorScrollState.capture(this.editor);return this.editor.executeEdits("suggestController.additionalTextEdits.async",te.completion.additionalTextEdits.map(X=>r.EditOperation.replaceMove(d.Range.lift(X.range),X.text))),re.restoreRelativeVerticalPositionOfCursor(this.editor),($||!(H&2))&&this.editor.pushUndoStop(),!0}).then(re=>{this.l.trace("[suggest] async resolving of edits DONE (ms, applied?)",Y.elapsed(),re),V.dispose(),oe.dispose()}))}let{insertText:K}=te.completion;te.completion.insertTextRules&4||(K=o.SnippetParser.escape(K)),this.model.cancel(),J.insert(K,{overwriteBefore:de.overwriteBefore,overwriteAfter:de.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(te.completion.insertTextRules&1),clipboardText:ie.model.clipboardText,overtypingCapturer:this.f.value}),ue&2||this.editor.pushUndoStop(),te.completion.command&&(te.completion.command.id===U.id?this.model.trigger({auto:!0,retrigger:!0}):Z.push(this.i.executeCommand(te.completion.command.id,...te.completion.command.arguments?[...te.completion.command.arguments]:[]).catch(L.onUnexpectedError))),ue&4&&this.a.value.set(ie,Y=>{for(ae.cancel();x.canUndo();){G!==x.getAlternativeVersionId()&&x.undo(),this.n(Y,3|(ue&8?8:0));break}}),this.q(te),Promise.all(Z).finally(()=>{this.p(te,x,ie),this.model.clear(),ae.dispose()})}p(ie,ue,J){var x;if(this.o++%100!==0)return;const G=ie.extensionId?ie.extensionId.value:((x=J.item.provider._debugDisplayName)!==null&&x!==void 0?x:"unknown").split("(",1)[0].toLowerCase();this.m.publicLog2("suggest.acceptedSuggestion",{providerId:G,kind:ie.completion.kind,basenameHash:(0,O.hash)((0,T.basename)(ue.uri)).toString(16),languageId:ue.getLanguageId(),fileExtension:(0,T.extname)(ue.uri)})}getOverwriteInfo(ie,ue){(0,t.assertType)(this.editor.hasModel());let J=this.editor.getOption(112).insertMode==="replace";ue&&(J=!J);const x=ie.position.column-ie.editStart.column,G=(J?ie.editReplaceEnd.column:ie.editInsertEnd.column)-ie.position.column,te=this.editor.getPosition().column-ie.position.column,Z=this.b.value?this.b.value.delta(this.editor.getPosition()):0;return{overwriteBefore:x+te,overwriteAfter:G+Z}}q(ie){if((0,N.isNonEmptyArray)(ie.completion.additionalTextEdits)){const ue=w.localize(0,null,ie.textLabel,ie.completion.additionalTextEdits.length);(0,C.alert)(ue)}}triggerSuggest(ie,ue,J){this.editor.hasModel()&&(this.model.trigger({auto:ue??!1,completionOptions:{providerFilter:ie,kindFilter:J?new Set:void 0}}),this.editor.revealPosition(this.editor.getPosition(),0),this.editor.focus())}triggerSuggestAndAcceptBest(ie){if(!this.editor.hasModel())return;const ue=this.editor.getPosition(),J=()=>{ue.equals(this.editor.getPosition())&&this.i.executeCommand(ie.fallback)},x=G=>{if(G.completion.insertTextRules&4||G.completion.additionalTextEdits)return!0;const te=this.editor.getPosition(),Z=G.editStart.column,ae=te.column;return ae-Z!==G.completion.insertText.length?!0:this.editor.getModel().getValueInRange({startLineNumber:te.lineNumber,startColumn:Z,endLineNumber:te.lineNumber,endColumn:ae})!==G.completion.insertText};S.Event.once(this.model.onDidTrigger)(G=>{const te=[];S.Event.any(this.model.onDidTrigger,this.model.onDidCancel)(()=>{(0,f.dispose)(te),J()},void 0,te),this.model.onDidSuggest(({completionModel:Z})=>{if((0,f.dispose)(te),Z.items.length===0){J();return}const ae=this.h.select(this.editor.getModel(),this.editor.getPosition(),Z.items),de=Z.items[ae];if(!x(de)){J();return}this.editor.pushUndoStop(),this.n({index:ae,item:de,model:Z},7)},void 0,te)}),this.model.trigger({auto:!1,shy:!0}),this.editor.revealPosition(ue,0),this.editor.focus()}acceptSelectedSuggestion(ie,ue){const J=this.widget.value.getFocusedItem();let x=0;ie&&(x|=4),ue&&(x|=8),this.n(J,x)}acceptNextSuggestion(){this.a.value.next()}acceptPrevSuggestion(){this.a.value.prev()}cancelSuggestWidget(){this.model.cancel(),this.model.clear(),this.widget.value.hideWidget()}focusSuggestion(){this.widget.value.focusSelected()}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(ie){return this.g.register(ie)}};j.ID="editor.contrib.suggestController",j=Ne([ge(1,u.ISuggestMemoryService),ge(2,m.ICommandService),ge(3,p.IContextKeyService),ge(4,b.IInstantiationService),ge(5,y.ILogService),ge(6,A.ITelemetryService)],j),e.SuggestController=j;class F{constructor(ie){this.b=ie,this.a=new Array}register(ie){if(this.a.indexOf(ie)!==-1)throw new Error("Value is already registered");return this.a.push(ie),this.a.sort((ue,J)=>this.b(J)-this.b(ue)),{dispose:()=>{const ue=this.a.indexOf(ie);ue>=0&&this.a.splice(ue,1)}}}get itemsOrderedByPriorityDesc(){return this.a}}class U extends a.EditorAction{constructor(){super({id:U.id,label:w.localize(1,null),alias:"Trigger Suggest",precondition:p.ContextKeyExpr.and(s.EditorContextKeys.writable,s.EditorContextKeys.hasCompletionItemProvider,k.Context.Visible.toNegated()),kbOpts:{kbExpr:s.EditorContextKeys.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[521,2087]},weight:100}})}run(ie,ue,J){const x=j.get(ue);if(!x)return;let G;J&&typeof J=="object"&&J.auto===!0&&(G=!0),x.triggerSuggest(void 0,G,void 0)}}U.id="editor.action.triggerSuggest",e.TriggerSuggestAction=U,(0,a.registerEditorContribution)(j.ID,j,2),(0,a.registerEditorAction)(U);const Q=100+90,se=a.EditorCommand.bindToContribution(j.get);(0,a.registerEditorCommand)(new se({id:"acceptSelectedSuggestion",precondition:p.ContextKeyExpr.and(k.Context.Visible,k.Context.HasFocusedSuggestion),handler(he){he.acceptSelectedSuggestion(!0,!1)},kbOpts:[{primary:2,kbExpr:p.ContextKeyExpr.and(k.Context.Visible,s.EditorContextKeys.textInputFocus),weight:Q},{primary:3,kbExpr:p.ContextKeyExpr.and(k.Context.Visible,s.EditorContextKeys.textInputFocus,k.Context.AcceptSuggestionsOnEnter,k.Context.MakesTextEdit),weight:Q}],menuOpts:[{menuId:k.suggestWidgetStatusbarMenu,title:w.localize(2,null),group:"left",order:1,when:k.Context.HasInsertAndReplaceRange.toNegated()},{menuId:k.suggestWidgetStatusbarMenu,title:w.localize(3,null),group:"left",order:1,when:p.ContextKeyExpr.and(k.Context.HasInsertAndReplaceRange,k.Context.InsertMode.isEqualTo("insert"))},{menuId:k.suggestWidgetStatusbarMenu,title:w.localize(4,null),group:"left",order:1,when:p.ContextKeyExpr.and(k.Context.HasInsertAndReplaceRange,k.Context.InsertMode.isEqualTo("replace"))}]})),(0,a.registerEditorCommand)(new se({id:"acceptAlternativeSelectedSuggestion",precondition:p.ContextKeyExpr.and(k.Context.Visible,s.EditorContextKeys.textInputFocus,k.Context.HasFocusedSuggestion),kbOpts:{weight:Q,kbExpr:s.EditorContextKeys.textInputFocus,primary:1027,secondary:[1026]},handler(he){he.acceptSelectedSuggestion(!1,!0)},menuOpts:[{menuId:k.suggestWidgetStatusbarMenu,group:"left",order:2,when:p.ContextKeyExpr.and(k.Context.HasInsertAndReplaceRange,k.Context.InsertMode.isEqualTo("insert")),title:w.localize(5,null)},{menuId:k.suggestWidgetStatusbarMenu,group:"left",order:2,when:p.ContextKeyExpr.and(k.Context.HasInsertAndReplaceRange,k.Context.InsertMode.isEqualTo("replace")),title:w.localize(6,null)}]})),m.CommandsRegistry.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion"),(0,a.registerEditorCommand)(new se({id:"hideSuggestWidget",precondition:k.Context.Visible,handler:he=>he.cancelSuggestWidget(),kbOpts:{weight:Q,kbExpr:s.EditorContextKeys.textInputFocus,primary:9,secondary:[1033]}})),(0,a.registerEditorCommand)(new se({id:"selectNextSuggestion",precondition:p.ContextKeyExpr.and(k.Context.Visible,k.Context.MultipleSuggestions),handler:he=>he.selectNextSuggestion(),kbOpts:{weight:Q,kbExpr:s.EditorContextKeys.textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})),(0,a.registerEditorCommand)(new se({id:"selectNextPageSuggestion",precondition:p.ContextKeyExpr.and(k.Context.Visible,k.Context.MultipleSuggestions),handler:he=>he.selectNextPageSuggestion(),kbOpts:{weight:Q,kbExpr:s.EditorContextKeys.textInputFocus,primary:12,secondary:[2060]}})),(0,a.registerEditorCommand)(new se({id:"selectLastSuggestion",precondition:p.ContextKeyExpr.and(k.Context.Visible,k.Context.MultipleSuggestions),handler:he=>he.selectLastSuggestion()})),(0,a.registerEditorCommand)(new se({id:"selectPrevSuggestion",precondition:p.ContextKeyExpr.and(k.Context.Visible,k.Context.MultipleSuggestions),handler:he=>he.selectPrevSuggestion(),kbOpts:{weight:Q,kbExpr:s.EditorContextKeys.textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})),(0,a.registerEditorCommand)(new se({id:"selectPrevPageSuggestion",precondition:p.ContextKeyExpr.and(k.Context.Visible,k.Context.MultipleSuggestions),handler:he=>he.selectPrevPageSuggestion(),kbOpts:{weight:Q,kbExpr:s.EditorContextKeys.textInputFocus,primary:11,secondary:[2059]}})),(0,a.registerEditorCommand)(new se({id:"selectFirstSuggestion",precondition:p.ContextKeyExpr.and(k.Context.Visible,k.Context.MultipleSuggestions),handler:he=>he.selectFirstSuggestion()})),(0,a.registerEditorCommand)(new se({id:"focusSuggestion",precondition:p.ContextKeyExpr.and(k.Context.Visible,k.Context.HasFocusedSuggestion.negate()),handler:he=>he.focusSuggestion(),kbOpts:{weight:Q,kbExpr:s.EditorContextKeys.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}}})),(0,a.registerEditorCommand)(new se({id:"focusAndAcceptSuggestion",precondition:p.ContextKeyExpr.and(k.Context.Visible,k.Context.HasFocusedSuggestion.negate()),handler:he=>{he.focusSuggestion(),he.acceptSelectedSuggestion(!0,!1)}})),(0,a.registerEditorCommand)(new se({id:"toggleSuggestionDetails",precondition:p.ContextKeyExpr.and(k.Context.Visible,k.Context.HasFocusedSuggestion),handler:he=>he.toggleSuggestionDetails(),kbOpts:{weight:Q,kbExpr:s.EditorContextKeys.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}},menuOpts:[{menuId:k.suggestWidgetStatusbarMenu,group:"right",order:1,when:p.ContextKeyExpr.and(k.Context.DetailsVisible,k.Context.CanResolve),title:w.localize(7,null)},{menuId:k.suggestWidgetStatusbarMenu,group:"right",order:1,when:p.ContextKeyExpr.and(k.Context.DetailsVisible.toNegated(),k.Context.CanResolve),title:w.localize(8,null)}]})),(0,a.registerEditorCommand)(new se({id:"toggleExplainMode",precondition:k.Context.Visible,handler:he=>he.toggleExplainMode(),kbOpts:{weight:100,primary:2133}})),(0,a.registerEditorCommand)(new se({id:"toggleSuggestionFocus",precondition:k.Context.Visible,handler:he=>he.toggleSuggestionFocus(),kbOpts:{weight:Q,kbExpr:s.EditorContextKeys.textInputFocus,primary:2570,mac:{primary:778}}})),(0,a.registerEditorCommand)(new se({id:"insertBestCompletion",precondition:p.ContextKeyExpr.and(s.EditorContextKeys.textInputFocus,p.ContextKeyExpr.equals("config.editor.tabCompletion","on"),h.WordContextKey.AtEnd,k.Context.Visible.toNegated(),D.SuggestAlternatives.OtherSuggestions.toNegated(),l.SnippetController2.InSnippetMode.toNegated()),handler:(he,ie)=>{he.triggerSuggestAndAcceptBest((0,t.isObject)(ie)?Object.assign({fallback:"tab"},ie):{fallback:"tab"})},kbOpts:{weight:Q,primary:2}})),(0,a.registerEditorCommand)(new se({id:"insertNextSuggestion",precondition:p.ContextKeyExpr.and(s.EditorContextKeys.textInputFocus,p.ContextKeyExpr.equals("config.editor.tabCompletion","on"),D.SuggestAlternatives.OtherSuggestions,k.Context.Visible.toNegated(),l.SnippetController2.InSnippetMode.toNegated()),handler:he=>he.acceptNextSuggestion(),kbOpts:{weight:Q,kbExpr:s.EditorContextKeys.textInputFocus,primary:2}})),(0,a.registerEditorCommand)(new se({id:"insertPrevSuggestion",precondition:p.ContextKeyExpr.and(s.EditorContextKeys.textInputFocus,p.ContextKeyExpr.equals("config.editor.tabCompletion","on"),D.SuggestAlternatives.OtherSuggestions,k.Context.Visible.toNegated(),l.SnippetController2.InSnippetMode.toNegated()),handler:he=>he.acceptPrevSuggestion(),kbOpts:{weight:Q,kbExpr:s.EditorContextKeys.textInputFocus,primary:1026}})),(0,a.registerEditorAction)(class extends a.EditorAction{constructor(){super({id:"editor.action.resetSuggestSize",label:w.localize(9,null),alias:"Reset Suggest Widget Size",precondition:void 0})}run(he,ie){var ue;(ue=j.get(ie))===null||ue===void 0||ue.resetWidgetSize()}})}),define(_[845],ee([1,0,17,6,2,12,4,94,334,336,216]),function(q,e,C,N,E,I,L,S,v,f,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.rangeStartsWith=e.SuggestWidgetInlineCompletionProvider=void 0;class i extends E.Disposable{get state(){if(!!this.h)return{selectedItem:this.i}}constructor(c,d){super(),this.k=c,this.l=d,this.c=!1,this.g=!1,this.h=!1,this.i=void 0,this.j=new N.Emitter,this.onDidChange=this.j.event,this.q(c.onKeyDown(l=>{l.shiftKey&&!this.g&&(this.g=!0,this.m(this.h))})),this.q(c.onKeyUp(l=>{l.shiftKey&&this.g&&(this.g=!1,this.m(this.h))}));const s=f.SuggestController.get(this.k);if(s){this.q(s.registerSelector({priority:100,select:(u,h,w)=>{const m=this.k.getModel(),p=(0,g.minimizeInlineCompletion)(m,this.l());if(!p)return-1;const b=I.Position.lift(h),y=w.map((D,M)=>{const z=a(s,b,D,this.g),R=(0,g.minimizeInlineCompletion)(m,z?.normalizedInlineCompletion);if(!R)return;const P=t(p.range,R.range)&&p.insertText.startsWith(R.insertText);return{index:M,valid:P,prefixLength:R.insertText.length,suggestItem:D}}).filter(D=>D&&D.valid),k=(0,C.findMaxBy)(y,(0,C.compareBy)(D=>D.prefixLength,C.numberComparator));return k?k.index:-1}}));let l=!1;const o=()=>{l||(l=!0,this.q(s.widget.value.onDidShow(()=>{this.c=!0,this.m(!0)})),this.q(s.widget.value.onDidHide(()=>{this.c=!1,this.m(!1)})),this.q(s.widget.value.onDidFocus(()=>{this.c=!0,this.m(!0)})))};this.q(N.Event.once(s.model.onDidTrigger)(u=>{o()}))}this.m(this.h)}m(c){const d=this.n();let s=!1;n(this.i,d)||(this.i=d,s=!0),this.h!==c&&(this.h=c,s=!0),s&&this.j.fire()}n(){const c=f.SuggestController.get(this.k);if(!c||!this.c)return;const d=c.widget.value.getFocusedItem();if(!!d)return a(c,this.k.getPosition(),d.item,this.g)}stopForceRenderingAbove(){const c=f.SuggestController.get(this.k);c?.stopForceRenderingAbove()}forceRenderingAbove(){const c=f.SuggestController.get(this.k);c?.forceRenderingAbove()}}e.SuggestWidgetInlineCompletionProvider=i;function t(r,c){return c.startLineNumber===r.startLineNumber&&c.startColumn===r.startColumn&&(c.endLineNumber<r.endLineNumber||c.endLineNumber===r.endLineNumber&&c.endColumn<=r.endColumn)}e.rangeStartsWith=t;function n(r,c){return r===c?!0:!r||!c?!1:r.completionItemKind===c.completionItemKind&&r.isSnippetText===c.isSnippetText&&(0,g.normalizedInlineCompletionsEquals)(r.normalizedInlineCompletion,c.normalizedInlineCompletion)}function a(r,c,d,s){if(Array.isArray(d.completion.additionalTextEdits)&&d.completion.additionalTextEdits.length>0)return{completionItemKind:d.completion.kind,isSnippetText:!1,normalizedInlineCompletion:{range:L.Range.fromPositions(c,c),insertText:"",filterText:"",snippetInfo:void 0,additionalTextEdits:[]}};let{insertText:l}=d.completion,o=!1;if(d.completion.insertTextRules&4){const h=new S.SnippetParser().parse(l),w=r.editor.getModel();if(h.children.length>100)return;v.SnippetSession.adjustWhitespace(w,c,!0,h),l=h.toString(),o=!0}const u=r.getOverwriteInfo(d,s);return{isSnippetText:o,completionItemKind:d.completion.kind,normalizedInlineCompletion:{insertText:l,filterText:l,range:L.Range.fromPositions(c.delta(0,-u.overwriteBefore),c.delta(0,Math.max(u.overwriteAfter,0))),snippetInfo:void 0,additionalTextEdits:[]}}}}),define(_[846],ee([1,0,11,13,2,26,19,171,335,216,845]),function(q,e,C,N,E,I,L,S,v,f,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SuggestWidgetPreviewModel=void 0;let i=class extends S.BaseGhostTextWidgetModel{get isActive(){return this.c.state!==void 0}constructor(r,c,d){super(r),this.l=c,this.m=d,this.c=this.q(new g.SuggestWidgetInlineCompletionProvider(this.j,()=>{var s,l,o;return(s=this.l.value)===null||s===void 0||s.updateRanges(),(o=(l=this.l.value)===null||l===void 0?void 0:l.completions[0])===null||o===void 0?void 0:o.toLiveInlineCompletion()})),this.i=this.q(new E.MutableDisposable),this.k=this.q(new C.RunOnceScheduler(()=>this.r(),50)),this.minReservedLineCount=0,this.q(this.c.onDidChange(()=>{if(!this.j.hasModel())return;this.k.schedule(),this.c.state||(this.minReservedLineCount=0);const l=this.ghostText;l&&(this.minReservedLineCount=Math.max(this.minReservedLineCount,t(l.parts.map(o=>o.lines.length-1)))),this.minReservedLineCount>=1?this.c.forceRenderingAbove():this.c.stopForceRenderingAbove(),this.h.fire()})),this.q(this.l.onDidChange(()=>{this.h.fire()})),this.q(this.j.onDidChangeCursorPosition(s=>{this.minReservedLineCount=0,this.k.schedule(),this.h.fire()})),this.q((0,E.toDisposable)(()=>this.c.stopForceRenderingAbove()))}n(){return this.j.getOption(112).preview}r(){return ye(this,void 0,void 0,function*(){const r=this.c.state;if(!r||!r.selectedItem)return;const c={text:r.selectedItem.normalizedInlineCompletion.insertText,range:r.selectedItem.normalizedInlineCompletion.range,isSnippetText:r.selectedItem.isSnippetText,completionKind:r.selectedItem.completionItemKind},d=this.j.getPosition();if(r.selectedItem.isSnippetText||r.selectedItem.completionItemKind===27||r.selectedItem.completionItemKind===20||r.selectedItem.completionItemKind===23){this.l.clear();return}const s=(0,C.createCancelablePromise)(o=>ye(this,void 0,void 0,function*(){let u;try{u=yield(0,v.provideInlineCompletions)(this.m.inlineCompletionsProvider,d,this.j.getModel(),{triggerKind:I.InlineCompletionTriggerKind.Automatic,selectedSuggestionInfo:c},o)}catch(h){(0,N.onUnexpectedError)(h);return}if(o.isCancellationRequested){u.dispose();return}this.l.setValue(this.j,u,I.InlineCompletionTriggerKind.Automatic),this.h.fire()})),l=new v.UpdateOperation(s,I.InlineCompletionTriggerKind.Automatic);this.i.value=l,yield s,this.i.value===l&&this.i.clear()})}get ghostText(){var r,c,d;const s=this.n(),l=this.j.getModel(),o=(0,f.minimizeInlineCompletion)(l,(c=(r=this.l.value)===null||r===void 0?void 0:r.completions[0])===null||c===void 0?void 0:c.toLiveInlineCompletion()),u=this.c.state,h=(0,f.minimizeInlineCompletion)(l,(d=u?.selectedItem)===null||d===void 0?void 0:d.normalizedInlineCompletion),w=o&&h&&o.insertText.startsWith(h.insertText)&&n(o.range,h.range);if(!s&&!w)return;const m=w?o:h||o,p=w?m.insertText.length-h.insertText.length:0;return this.s(m,p)}s(r,c){const d=this.j.getOptions().get(112).previewMode;return r?(0,f.inlineCompletionToGhostText)(r,this.j.getModel(),d,this.j.getPosition(),c)||new S.GhostText(r.range.endLineNumber,[],this.minReservedLineCount):void 0}};i=Ne([ge(2,L.ILanguageFeaturesService)],i),e.SuggestWidgetPreviewModel=i;function t(a){return a.reduce((r,c)=>r+c,0)}function n(a,r){return a.startLineNumber===r.startLineNumber&&a.startColumn===r.startColumn&&(a.endLineNumber===r.endLineNumber&&a.endColumn>=r.endColumn||a.endLineNumber>r.endLineNumber)}}),define(_[847],ee([1,0,6,2,12,26,335,846,196,8]),function(q,e,C,N,E,I,L,S,v,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SharedInlineCompletionCache=e.GhostTextModel=e.DelegatingModel=void 0;class g extends N.Disposable{constructor(){super(...arguments),this.a=new C.Emitter,this.onDidChange=this.a.event,this.b=!1,this.g=this.q(new N.MutableDisposable)}get h(){var a;return(a=this.g.value)===null||a===void 0?void 0:a.object}i(a){var r;((r=this.g.value)===null||r===void 0?void 0:r.object)!==a&&(this.g.clear(),this.g.value=a?(0,v.createDisposableRef)(a,a.onDidChange(()=>{this.b=!1,this.a.fire()})):void 0,this.b=!1,this.a.fire())}get ghostText(){var a,r;return this.b||(this.c=(r=(a=this.g.value)===null||a===void 0?void 0:a.object)===null||r===void 0?void 0:r.ghostText,this.b=!0),this.c}setExpanded(a){var r;(r=this.h)===null||r===void 0||r.setExpanded(a)}get minReservedLineCount(){return this.h?this.h.minReservedLineCount:0}}e.DelegatingModel=g;let i=class extends g{get activeInlineCompletionsModel(){if(this.h===this.inlineCompletionsModel)return this.inlineCompletionsModel}constructor(a,r){super(),this.j=a,this.k=r,this.sharedCache=this.q(new t),this.suggestWidgetAdapterModel=this.q(this.k.createInstance(S.SuggestWidgetPreviewModel,this.j,this.sharedCache)),this.inlineCompletionsModel=this.q(this.k.createInstance(L.InlineCompletionsModel,this.j,this.sharedCache)),this.q(this.suggestWidgetAdapterModel.onDidChange(()=>{this.l()})),this.l()}l(){this.i(this.suggestWidgetAdapterModel.isActive?this.suggestWidgetAdapterModel:this.inlineCompletionsModel),this.inlineCompletionsModel.setActive(this.h===this.inlineCompletionsModel)}shouldShowHoverAt(a){var r;const c=(r=this.activeInlineCompletionsModel)===null||r===void 0?void 0:r.ghostText;return c?c.parts.some(d=>a.containsPosition(new E.Position(c.lineNumber,d.column))):!1}triggerInlineCompletion(){var a;(a=this.activeInlineCompletionsModel)===null||a===void 0||a.trigger(I.InlineCompletionTriggerKind.Explicit)}commitInlineCompletion(){var a;(a=this.activeInlineCompletionsModel)===null||a===void 0||a.commitCurrentSuggestion()}commitInlineCompletionPartially(){var a;(a=this.activeInlineCompletionsModel)===null||a===void 0||a.commitCurrentSuggestionPartially()}hideInlineCompletion(){var a;(a=this.activeInlineCompletionsModel)===null||a===void 0||a.hide()}showNextInlineCompletion(){var a;(a=this.activeInlineCompletionsModel)===null||a===void 0||a.showNext()}showPreviousInlineCompletion(){var a;(a=this.activeInlineCompletionsModel)===null||a===void 0||a.showPrevious()}};i=Ne([ge(1,f.IInstantiationService)],i),e.GhostTextModel=i;class t extends N.Disposable{constructor(){super(...arguments),this.a=new C.Emitter,this.onDidChange=this.a.event,this.b=this.q(new N.MutableDisposable)}get value(){return this.b.value}setValue(a,r,c){this.b.value=new L.SynchronizedInlineCompletionsCache(r,a,()=>this.a.fire(),c)}clearAndLeak(){return this.b.clearAndLeak()}clear(){this.b.clear()}}e.SharedInlineCompletionCache=t}),define(_[337],ee([1,0,6,2,9,14,74,24,195,847,686,620,28,27,15,8]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UndoAcceptPart=e.ToggleAlwaysShowInlineSuggestionToolbar=e.HideInlineCompletion=e.AcceptInlineCompletion=e.AcceptNextWordOfInlineCompletion=e.TriggerInlineSuggestionAction=e.ShowPreviousInlineSuggestionAction=e.ShowNextInlineSuggestionAction=e.ActiveGhostTextController=e.GhostTextController=void 0;let c=class wi extends N.Disposable{static get(k){return k.getContribution(wi.ID)}get activeModel(){var k;return(k=this.b.value)===null||k===void 0?void 0:k.model}constructor(k,D,M){super(),this.editor=k,this.h=D,this.i=M,this.a=!1,this.b=this.q(new N.MutableDisposable),this.c=this.q(new C.Emitter),this.g=void 0,this.alwaysShowInlineSuggestionToolbar=wi.alwaysShowInlineSuggestionToolbar.bindTo(this.i),this.q(this.editor.onDidChangeModelContent(z=>{var R;(!z.isUndoing||this.g&&this.editor.getModel().getAlternativeVersionId()<this.g)&&((R=this.b.value)===null||R===void 0||R.contextKeys.canUndoInlineSuggestion.reset(),this.g=void 0)})),this.q(this.editor.onDidChangeCursorPosition(z=>{var R;z.reason===3&&((R=this.b.value)===null||R===void 0||R.contextKeys.canUndoInlineSuggestion.reset(),this.g=void 0)})),this.q(this.editor.onDidChangeModel(()=>{this.j()})),this.q(this.editor.onDidChangeConfiguration(z=>{(z.hasChanged(112)||z.hasChanged(59))&&this.j()})),this.j()}j(){const k=this.editor.getOption(112),D=this.editor.getOption(59);this.alwaysShowInlineSuggestionToolbar.set(D.showToolbar==="always");const M=this.editor.hasModel()&&(k.preview||D.enabled||this.a);M!==!!this.b.value&&(this.b.value=void 0,this.b.value=M?this.h.createInstance(s,this.editor):void 0,this.c.fire())}shouldShowHoverAt(k){var D;return((D=this.activeModel)===null||D===void 0?void 0:D.shouldShowHoverAt(k))||!1}shouldShowHoverAtViewZone(k){var D,M;return((M=(D=this.b.value)===null||D===void 0?void 0:D.widget)===null||M===void 0?void 0:M.shouldShowHoverAtViewZone(k))||!1}trigger(){var k;this.a=!0,this.b.value||this.j(),(k=this.activeModel)===null||k===void 0||k.triggerInlineCompletion()}commitPartially(){var k,D,M;const z=this.g;(k=this.activeModel)===null||k===void 0||k.commitInlineCompletionPartially(),(M=(D=this.b)===null||D===void 0?void 0:D.value)===null||M===void 0||M.contextKeys.canUndoInlineSuggestion.set(!0),this.g=z??this.editor.getModel().getAlternativeVersionId()}commit(){var k;(k=this.activeModel)===null||k===void 0||k.commitInlineCompletion()}hide(){var k;(k=this.activeModel)===null||k===void 0||k.hideInlineCompletion()}showNextInlineCompletion(){var k;(k=this.activeModel)===null||k===void 0||k.showNextInlineCompletion()}showPreviousInlineCompletion(){var k;(k=this.activeModel)===null||k===void 0||k.showPreviousInlineCompletion()}};c.inlineSuggestionVisible=new a.RawContextKey("inlineSuggestionVisible",!1,i.localize(0,null)),c.inlineSuggestionHasIndentation=new a.RawContextKey("inlineSuggestionHasIndentation",!1,i.localize(1,null)),c.inlineSuggestionHasIndentationLessThanTabSize=new a.RawContextKey("inlineSuggestionHasIndentationLessThanTabSize",!0,i.localize(2,null)),c.canUndoInlineSuggestion=new a.RawContextKey("canUndoInlineSuggestion",!1,i.localize(3,null)),c.alwaysShowInlineSuggestionToolbar=new a.RawContextKey("alwaysShowInlineSuggestionToolbar",!1,i.localize(4,null)),c.ID="editor.contrib.ghostTextController",c=Ne([ge(1,r.IInstantiationService),ge(2,a.IContextKeyService)],c),e.GhostTextController=c;class d{constructor(k){this.a=k,this.inlineCompletionVisible=c.inlineSuggestionVisible.bindTo(this.a),this.inlineCompletionSuggestsIndentation=c.inlineSuggestionHasIndentation.bindTo(this.a),this.inlineCompletionSuggestsIndentationLessThanTabSize=c.inlineSuggestionHasIndentationLessThanTabSize.bindTo(this.a),this.canUndoInlineSuggestion=c.canUndoInlineSuggestion.bindTo(this.a)}}let s=class extends N.Disposable{constructor(k,D,M){super(),this.a=k,this.b=D,this.c=M,this.contextKeys=new d(this.c),this.model=this.q(this.b.createInstance(f.GhostTextModel,this.a)),this.widget=this.q(this.b.createInstance(g.GhostTextWidget,this.a,this.model)),this.q((0,N.toDisposable)(()=>{this.contextKeys.inlineCompletionVisible.set(!1),this.contextKeys.inlineCompletionSuggestsIndentation.set(!1),this.contextKeys.inlineCompletionSuggestsIndentationLessThanTabSize.set(!0)})),this.q(this.model.onDidChange(()=>{this.g()})),this.g()}g(){var k;this.contextKeys.inlineCompletionVisible.set(((k=this.model.activeInlineCompletionsModel)===null||k===void 0?void 0:k.ghostText)!==void 0);let D=!1,M=!0;const z=this.model.inlineCompletionsModel.ghostText;if(!!this.model.activeInlineCompletionsModel&&z&&z.parts.length>0){const{column:R,lines:P}=z.parts[0],A=P[0],T=this.a.getModel().getLineIndentColumn(z.lineNumber);if(R<=T){let B=(0,E.firstNonWhitespaceIndex)(A);B===-1&&(B=A.length-1),D=B>0;const W=this.a.getModel().getOptions().tabSize;M=L.CursorColumns.visibleColumnFromColumn(A,B+1,W)<W}}this.contextKeys.inlineCompletionSuggestsIndentation.set(D),this.contextKeys.inlineCompletionSuggestsIndentationLessThanTabSize.set(M)}};s=Ne([ge(1,r.IInstantiationService),ge(2,a.IContextKeyService)],s),e.ActiveGhostTextController=s;class l extends I.EditorAction{constructor(){super({id:l.ID,label:i.localize(5,null),alias:"Show Next Inline Suggestion",precondition:a.ContextKeyExpr.and(S.EditorContextKeys.writable,c.inlineSuggestionVisible),kbOpts:{weight:100,primary:601}})}run(k,D){return ye(this,void 0,void 0,function*(){const M=c.get(D);M&&(M.showNextInlineCompletion(),D.focus())})}}l.ID=v.showNextInlineSuggestionActionId,e.ShowNextInlineSuggestionAction=l;class o extends I.EditorAction{constructor(){super({id:o.ID,label:i.localize(6,null),alias:"Show Previous Inline Suggestion",precondition:a.ContextKeyExpr.and(S.EditorContextKeys.writable,c.inlineSuggestionVisible),kbOpts:{weight:100,primary:599}})}run(k,D){return ye(this,void 0,void 0,function*(){const M=c.get(D);M&&(M.showPreviousInlineCompletion(),D.focus())})}}o.ID=v.showPreviousInlineSuggestionActionId,e.ShowPreviousInlineSuggestionAction=o;class u extends I.EditorAction{constructor(){super({id:"editor.action.inlineSuggest.trigger",label:i.localize(7,null),alias:"Trigger Inline Suggestion",precondition:S.EditorContextKeys.writable})}run(k,D){return ye(this,void 0,void 0,function*(){const M=c.get(D);M?.trigger()})}}e.TriggerInlineSuggestionAction=u;class h extends I.EditorAction{constructor(){super({id:"editor.action.inlineSuggest.acceptNextWord",label:i.localize(8,null),alias:"Accept Next Word Of Inline Suggestion",precondition:a.ContextKeyExpr.and(S.EditorContextKeys.writable,c.inlineSuggestionVisible),kbOpts:{weight:100+1,primary:2065},menuOpts:[{menuId:t.MenuId.InlineSuggestionToolbar,title:i.localize(9,null),group:"primary",order:2}]})}run(k,D){return ye(this,void 0,void 0,function*(){const M=c.get(D);M&&M.commitPartially()})}}e.AcceptNextWordOfInlineCompletion=h;class w extends I.EditorAction{constructor(){super({id:v.inlineSuggestCommitId,label:i.localize(10,null),alias:"Accept Inline Suggestion",precondition:c.inlineSuggestionVisible,menuOpts:[{menuId:t.MenuId.InlineSuggestionToolbar,title:i.localize(11,null),group:"primary",order:1}],kbOpts:{primary:2,weight:200,kbExpr:a.ContextKeyExpr.and(c.inlineSuggestionVisible,S.EditorContextKeys.tabMovesFocus.toNegated(),c.inlineSuggestionHasIndentationLessThanTabSize)}})}run(k,D){return ye(this,void 0,void 0,function*(){const M=c.get(D);M&&(M.commit(),M.editor.focus())})}}e.AcceptInlineCompletion=w;class m extends I.EditorAction{constructor(){super({id:m.ID,label:i.localize(12,null),alias:"Hide Inline Suggestion",precondition:c.inlineSuggestionVisible,kbOpts:{weight:100,primary:9}})}run(k,D){return ye(this,void 0,void 0,function*(){const M=c.get(D);M&&M.hide()})}}m.ID="editor.action.inlineSuggest.hide",e.HideInlineCompletion=m;class p extends t.Action2{constructor(){super({id:p.ID,title:i.localize(13,null),f1:!1,precondition:void 0,menu:[{id:t.MenuId.InlineSuggestionToolbar,group:"secondary",order:10}],toggled:c.alwaysShowInlineSuggestionToolbar})}run(k,D){return ye(this,void 0,void 0,function*(){const M=k.get(n.IConfigurationService),R=M.getValue("editor.inlineSuggest.showToolbar")==="always"?"onHover":"always";M.updateValue("editor.inlineSuggest.showToolbar",R)})}}p.ID="editor.action.inlineSuggest.toggleAlwaysShowToolbar",e.ToggleAlwaysShowInlineSuggestionToolbar=p;class b extends I.EditorAction{constructor(){super({id:"editor.action.inlineSuggest.undo",label:i.localize(14,null),alias:"Undo Accept Word",precondition:a.ContextKeyExpr.and(S.EditorContextKeys.writable,c.canUndoInlineSuggestion),kbOpts:{weight:100+1,primary:2063,kbExpr:a.ContextKeyExpr.and(S.EditorContextKeys.writable,c.canUndoInlineSuggestion)},menuOpts:[{menuId:t.MenuId.InlineSuggestionToolbar,title:i.localize(15,null),group:"secondary",order:3}]})}run(k,D){var M;return ye(this,void 0,void 0,function*(){(M=D.getModel())===null||M===void 0||M.undo()})}}e.UndoAcceptPart=b}),define(_[848],ee([1,0,7,72,2,4,37,93,337,233,121,621,77,8,50,80]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InlineCompletionsHoverParticipant=e.InlineCompletionsHover=void 0;class c{constructor(l,o,u){this.owner=l,this.range=o,this.controller=u}isValidForHoverAnchor(l){return l.type===1&&this.range.startColumn<=l.range.startColumn&&this.range.endColumn>=l.range.endColumn}requestExplicitContext(){var l,o,u;(u=(o=(l=this.controller.activeModel)===null||l===void 0?void 0:l.activeInlineCompletionsModel)===null||o===void 0?void 0:o.completionSession.value)===null||u===void 0||u.ensureUpdateWithExplicitContext()}getInlineCompletionsCount(){var l,o;const u=(o=(l=this.controller.activeModel)===null||l===void 0?void 0:l.activeInlineCompletionsModel)===null||o===void 0?void 0:o.completionSession.value;if(!!u?.hasBeenTriggeredExplicitly)return u?.getInlineCompletionsCountSync()}getInlineCompletionIndex(){var l,o,u;return(u=(o=(l=this.controller.activeModel)===null||l===void 0?void 0:l.activeInlineCompletionsModel)===null||o===void 0?void 0:o.completionSession.value)===null||u===void 0?void 0:u.currentlySelectedIndex}onDidChange(l){var o,u;return((u=(o=this.controller.activeModel)===null||o===void 0?void 0:o.activeInlineCompletionsModel)===null||u===void 0?void 0:u.onDidChange(l))||E.Disposable.None}get commands(){var l,o,u;return((u=(o=(l=this.controller.activeModel)===null||l===void 0?void 0:l.activeInlineCompletionsModel)===null||o===void 0?void 0:o.completionSession.value)===null||u===void 0?void 0:u.commands)||[]}}e.InlineCompletionsHover=c;let d=class{constructor(l,o,u,h,w,m){this.a=l,this.b=o,this.c=u,this.e=h,this.f=w,this.g=m,this.hoverOrdinal=3}suggestHoverAnchor(l){const o=v.GhostTextController.get(this.a);if(!o)return null;const u=l.target;if(u.type===8){const h=u.detail;if(o.shouldShowHoverAtViewZone(h.viewZoneId))return new S.HoverForeignElementAnchor(1e3,this,I.Range.fromPositions(this.a.getModel().validatePosition(h.positionBefore||h.position)),l.event.posx,l.event.posy,!1)}return u.type===7&&o.shouldShowHoverAt(u.range)?new S.HoverForeignElementAnchor(1e3,this,u.range,l.event.posx,l.event.posy,!1):u.type===6&&u.detail.mightBeForeignElement&&o.shouldShowHoverAt(u.range)?new S.HoverForeignElementAnchor(1e3,this,u.range,l.event.posx,l.event.posy,!1):null}computeSync(l,o){if(this.a.getOption(59).showToolbar==="always")return[];const u=v.GhostTextController.get(this.a);return u&&u.shouldShowHoverAt(l.range)?[new c(this,l.range,u)]:[]}renderHoverParts(l,o){const u=new E.DisposableStore,h=o[0];this.g.publicLog2("inlineCompletionHover.shown"),this.e.isScreenReaderOptimized()&&this.h(l,h,u);const w=this.f.createInstance(f.InlineSuggestionHintsContentWidget,this.a,!1);return l.fragment.appendChild(w.getDomNode()),w.update(null,h.getInlineCompletionIndex()||0,h.getInlineCompletionsCount(),h.commands),h.requestExplicitContext(),u.add(h.onDidChange(()=>{w.update(null,h.getInlineCompletionIndex()||0,h.getInlineCompletionsCount(),h.commands)})),u}h(l,o,u){var h,w;const m=C.$,p=m("div.hover-row.markdown-hover"),b=C.append(p,m("div.hover-contents")),y=u.add(new g.MarkdownRenderer({editor:this.a},this.b,this.c)),k=M=>{u.add(y.onDidRenderAsync(()=>{b.className="hover-contents code-hover-contents",l.onContentsChanged()}));const z=i.localize(0,null),R=u.add(y.render(new N.MarkdownString().appendText(z).appendCodeblock("text",M)));b.replaceChildren(R.element)},D=(w=(h=o.controller.activeModel)===null||h===void 0?void 0:h.inlineCompletionsModel)===null||w===void 0?void 0:w.ghostText;if(D){const M=this.a.getModel().getLineContent(D.lineNumber);k(D.renderForScreenReader(M))}l.fragment.appendChild(p)}};d=Ne([ge(1,L.ILanguageService),ge(2,a.IOpenerService),ge(3,t.IAccessibilityService),ge(4,n.IInstantiationService),ge(5,r.ITelemetryService)],d),e.InlineCompletionsHoverParticipant=d}),define(_[849],ee([1,0,14,93,337,848,28]),function(q,e,C,N,E,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(0,C.registerEditorContribution)(E.GhostTextController.ID,E.GhostTextController,3),(0,C.registerEditorAction)(E.TriggerInlineSuggestionAction),(0,C.registerEditorAction)(E.ShowNextInlineSuggestionAction),(0,C.registerEditorAction)(E.ShowPreviousInlineSuggestionAction),(0,C.registerEditorAction)(E.AcceptNextWordOfInlineCompletion),(0,C.registerEditorAction)(E.AcceptInlineCompletion),(0,C.registerEditorAction)(E.HideInlineCompletion),(0,C.registerEditorAction)(E.UndoAcceptPart),(0,L.registerAction2)(E.ToggleAlwaysShowInlineSuggestionToolbar),N.HoverParticipantRegistry.register(I.InlineCompletionsHoverParticipant)}),define(_[338],ee([1,0,8]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IWorkspaceTrustManagementService=void 0,e.IWorkspaceTrustManagementService=(0,C.createDecorator)("workspaceTrustManagementService")}),define(_[850],ee([1,0,11,29,72,2,16,9,14,40,39,259,108,37,294,93,230,777,650,27,8,50,79,81,338,420]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s,l,o,u,h,w,m){"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,w.registerIcon)("extensions-warning-message",N.Codicon.warning,s.localize(0,null));let p=class extends I.Disposable{constructor(ie,ue,J,x){super(),this.i=ie,this.j=ue,this.k=J,this.a=null,this.h=!1,this.l=G=>{if(G&&G.hasMore){if(this.h)return;const te=Math.max(G.ambiguousCharacterCount,G.nonBasicAsciiCharacterCount,G.invisibleCharacterCount);let Z;if(G.nonBasicAsciiCharacterCount>=te)Z={message:s.localize(1,null),command:new j};else if(G.ambiguousCharacterCount>=te)Z={message:s.localize(2,null),command:new B};else if(G.invisibleCharacterCount>=te)Z={message:s.localize(3,null),command:new W};else throw new Error("Unreachable");this.g.show({id:"unicodeHighlightBanner",message:Z.message,icon:e.warningIcon,actions:[{label:Z.command.shortLabel,href:`command:${Z.command.id}`}],onClose:()=>{this.h=!0}})}else this.g.hide()},this.g=this.q(x.createInstance(d.BannerController,ie)),this.q(this.i.onDidChangeModel(()=>{this.h=!1,this.m()})),this.b=ie.getOption(119),this.q(J.onDidChangeTrust(G=>{this.m()})),this.q(ie.onDidChangeConfiguration(G=>{G.hasChanged(119)&&(this.b=ie.getOption(119),this.m())})),this.m()}dispose(){this.a&&(this.a.dispose(),this.a=null),super.dispose()}m(){if(this.l(null),this.a&&(this.a.dispose(),this.a=null),!this.i.hasModel())return;const ie=b(this.k.isWorkspaceTrusted(),this.b);if([ie.nonBasicASCII,ie.ambiguousCharacters,ie.invisibleCharacters].every(J=>J===!1))return;const ue={nonBasicASCII:ie.nonBasicASCII,ambiguousCharacters:ie.ambiguousCharacters,invisibleCharacters:ie.invisibleCharacters,includeComments:ie.includeComments,includeStrings:ie.includeStrings,allowedCodePoints:Object.keys(ie.allowedCharacters).map(J=>J.codePointAt(0)),allowedLocales:Object.keys(ie.allowedLocales).map(J=>J==="_os"?new Intl.NumberFormat().resolvedOptions().locale:J==="_vscode"?L.language:J)};this.j.canComputeUnicodeHighlights(this.i.getModel().uri)?this.a=new y(this.i,ue,this.l,this.j):this.a=new k(this.i,ue,this.l)}getDecorationInfo(ie){return this.a?this.a.getDecorationInfo(ie):null}};p.ID="editor.contrib.unicodeHighlighter",p=Ne([ge(1,t.IEditorWorkerService),ge(2,m.IWorkspaceTrustManagementService),ge(3,o.IInstantiationService)],p),e.UnicodeHighlighter=p;function b(he,ie){return{nonBasicASCII:ie.nonBasicASCII===f.inUntrustedWorkspace?!he:ie.nonBasicASCII,ambiguousCharacters:ie.ambiguousCharacters,invisibleCharacters:ie.invisibleCharacters,includeComments:ie.includeComments===f.inUntrustedWorkspace?!he:ie.includeComments,includeStrings:ie.includeStrings===f.inUntrustedWorkspace?!he:ie.includeStrings,allowedCharacters:ie.allowedCharacters,allowedLocales:ie.allowedLocales}}let y=class extends I.Disposable{constructor(ie,ue,J,x){super(),this.h=ie,this.i=ue,this.j=J,this.k=x,this.a=this.h.getModel(),this.g=this.h.createDecorationsCollection(),this.b=this.q(new C.RunOnceScheduler(()=>this.l(),250)),this.q(this.h.onDidChangeModelContent(()=>{this.b.schedule()})),this.b.schedule()}dispose(){this.g.clear(),super.dispose()}l(){if(this.a.isDisposed())return;if(!this.a.mightContainNonBasicASCII()){this.g.clear();return}const ie=this.a.getVersionId();this.k.computedUnicodeHighlights(this.a.uri,this.i).then(ue=>{if(this.a.isDisposed()||this.a.getVersionId()!==ie)return;this.j(ue);const J=[];if(!ue.hasMore)for(const x of ue.ranges)J.push({range:x,options:A.instance.getDecorationFromOptions(this.i)});this.g.set(J)})}getDecorationInfo(ie){if(!this.g.has(ie))return null;const ue=this.h.getModel();if(!(0,a.isModelDecorationVisible)(ue,ie))return null;const J=ue.getValueInRange(ie.range);return{reason:P(J,this.i),inComment:(0,a.isModelDecorationInComment)(ue,ie),inString:(0,a.isModelDecorationInString)(ue,ie)}}};y=Ne([ge(3,t.IEditorWorkerService)],y);class k extends I.Disposable{constructor(ie,ue,J){super(),this.h=ie,this.i=ue,this.j=J,this.a=this.h.getModel(),this.g=this.h.createDecorationsCollection(),this.b=this.q(new C.RunOnceScheduler(()=>this.k(),250)),this.q(this.h.onDidLayoutChange(()=>{this.b.schedule()})),this.q(this.h.onDidScrollChange(()=>{this.b.schedule()})),this.q(this.h.onDidChangeHiddenAreas(()=>{this.b.schedule()})),this.q(this.h.onDidChangeModelContent(()=>{this.b.schedule()})),this.b.schedule()}dispose(){this.g.clear(),super.dispose()}k(){if(this.a.isDisposed())return;if(!this.a.mightContainNonBasicASCII()){this.g.clear();return}const ie=this.h.getVisibleRanges(),ue=[],J={ranges:[],ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0,hasMore:!1};for(const x of ie){const G=i.UnicodeTextModelHighlighter.computeUnicodeHighlights(this.a,this.i,x);for(const te of G.ranges)J.ranges.push(te);J.ambiguousCharacterCount+=J.ambiguousCharacterCount,J.invisibleCharacterCount+=J.invisibleCharacterCount,J.nonBasicAsciiCharacterCount+=J.nonBasicAsciiCharacterCount,J.hasMore=J.hasMore||G.hasMore}if(!J.hasMore)for(const x of J.ranges)ue.push({range:x,options:A.instance.getDecorationFromOptions(this.i)});this.j(J),this.g.set(ue)}getDecorationInfo(ie){if(!this.g.has(ie))return null;const ue=this.h.getModel(),J=ue.getValueInRange(ie.range);return(0,a.isModelDecorationVisible)(ue,ie)?{reason:P(J,this.i),inComment:(0,a.isModelDecorationInComment)(ue,ie),inString:(0,a.isModelDecorationInString)(ue,ie)}:null}}let D=class{constructor(ie,ue,J){this.a=ie,this.b=ue,this.f=J,this.hoverOrdinal=4}computeSync(ie,ue){if(!this.a.hasModel()||ie.type!==1)return[];const J=this.a.getModel(),x=this.a.getContribution(p.ID);if(!x)return[];const G=[];let te=300;for(const Z of ue){const ae=x.getDecorationInfo(Z);if(!ae)continue;const K=J.getValueInRange(Z.range).codePointAt(0),Y=z(K);let ne;switch(ae.reason.kind){case 0:ne=s.localize(4,null,Y,z(ae.reason.confusableWith.codePointAt(0)));break;case 1:ne=s.localize(5,null,Y);break;case 2:ne=s.localize(6,null,Y);break}const V={codePoint:K,reason:ae.reason,inComment:ae.inComment,inString:ae.inString},H=s.localize(7,null),$=`command:${F.ID}?${encodeURIComponent(JSON.stringify(V))}`,oe=new E.MarkdownString("",!0).appendMarkdown(ne).appendText(" ").appendLink($,H);G.push(new c.MarkdownHover(this,Z.range,[oe],!1,te++))}return G}renderHoverParts(ie,ue){return(0,c.renderMarkdownHovers)(ie,ue,this.a,this.b,this.f)}};D=Ne([ge(1,n.ILanguageService),ge(2,u.IOpenerService)],D),e.UnicodeHighlighterHoverParticipant=D;function M(he){return`U+${he.toString(16).padStart(4,"0")}`}function z(he){let ie=`\`${M(he)}\``;return S.InvisibleCharacters.isInvisibleCharacter(he)||(ie+=` "${`${R(he)}`}"`),ie}function R(he){return he===96?"`` ` ``":"`"+String.fromCodePoint(he)+"`"}function P(he,ie){return i.UnicodeTextModelHighlighter.computeUnicodeHighlightReason(he,ie)}class A{constructor(){this.a=new Map}getDecorationFromOptions(ie){return this.b(!ie.includeComments,!ie.includeStrings)}b(ie,ue){const J=`${ie}${ue}`;let x=this.a.get(J);return x||(x=g.ModelDecorationOptions.createDynamic({description:"unicode-highlight",stickiness:1,className:"unicode-highlight",showIfCollapsed:!0,overviewRuler:null,minimap:null,hideInCommentTokens:ie,hideInStringTokens:ue}),this.a.set(J,x)),x}}A.instance=new A;class T extends v.EditorAction{constructor(){super({id:B.ID,label:s.localize(9,null),alias:"Disable highlighting of characters in comments",precondition:void 0}),this.shortLabel=s.localize(8,null)}run(ie,ue,J){return ye(this,void 0,void 0,function*(){const x=ie?.get(l.IConfigurationService);x&&this.runAction(x)})}runAction(ie){return ye(this,void 0,void 0,function*(){yield ie.updateValue(f.unicodeHighlightConfigKeys.includeComments,!1,2)})}}e.DisableHighlightingInCommentsAction=T;class O extends v.EditorAction{constructor(){super({id:B.ID,label:s.localize(11,null),alias:"Disable highlighting of characters in strings",precondition:void 0}),this.shortLabel=s.localize(10,null)}run(ie,ue,J){return ye(this,void 0,void 0,function*(){const x=ie?.get(l.IConfigurationService);x&&this.runAction(x)})}runAction(ie){return ye(this,void 0,void 0,function*(){yield ie.updateValue(f.unicodeHighlightConfigKeys.includeStrings,!1,2)})}}e.DisableHighlightingInStringsAction=O;class B extends v.EditorAction{constructor(){super({id:B.ID,label:s.localize(13,null),alias:"Disable highlighting of ambiguous characters",precondition:void 0}),this.shortLabel=s.localize(12,null)}run(ie,ue,J){return ye(this,void 0,void 0,function*(){const x=ie?.get(l.IConfigurationService);x&&this.runAction(x)})}runAction(ie){return ye(this,void 0,void 0,function*(){yield ie.updateValue(f.unicodeHighlightConfigKeys.ambiguousCharacters,!1,2)})}}B.ID="editor.action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters",e.DisableHighlightingOfAmbiguousCharactersAction=B;class W extends v.EditorAction{constructor(){super({id:W.ID,label:s.localize(15,null),alias:"Disable highlighting of invisible characters",precondition:void 0}),this.shortLabel=s.localize(14,null)}run(ie,ue,J){return ye(this,void 0,void 0,function*(){const x=ie?.get(l.IConfigurationService);x&&this.runAction(x)})}runAction(ie){return ye(this,void 0,void 0,function*(){yield ie.updateValue(f.unicodeHighlightConfigKeys.invisibleCharacters,!1,2)})}}W.ID="editor.action.unicodeHighlight.disableHighlightingOfInvisibleCharacters",e.DisableHighlightingOfInvisibleCharactersAction=W;class j extends v.EditorAction{constructor(){super({id:j.ID,label:s.localize(17,null),alias:"Disable highlighting of non basic ASCII characters",precondition:void 0}),this.shortLabel=s.localize(16,null)}run(ie,ue,J){return ye(this,void 0,void 0,function*(){const x=ie?.get(l.IConfigurationService);x&&this.runAction(x)})}runAction(ie){return ye(this,void 0,void 0,function*(){yield ie.updateValue(f.unicodeHighlightConfigKeys.nonBasicASCII,!1,2)})}}j.ID="editor.action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters",e.DisableHighlightingOfNonBasicAsciiCharactersAction=j;class F extends v.EditorAction{constructor(){super({id:F.ID,label:s.localize(18,null),alias:"Show Exclude Options",precondition:void 0})}run(ie,ue,J){return ye(this,void 0,void 0,function*(){const{codePoint:x,reason:G,inString:te,inComment:Z}=J,ae=String.fromCodePoint(x),de=ie.get(h.IQuickInputService),K=ie.get(l.IConfigurationService);function Y(H){return S.InvisibleCharacters.isInvisibleCharacter(H)?s.localize(19,null,M(H)):s.localize(20,null,`${M(H)} "${ae}"`)}const ne=[];if(G.kind===0)for(const H of G.notAmbiguousInLocales)ne.push({label:s.localize(21,null,H),run:()=>ye(this,void 0,void 0,function*(){Q(K,[H])})});if(ne.push({label:Y(x),run:()=>U(K,[x])}),Z){const H=new T;ne.push({label:H.label,run:()=>ye(this,void 0,void 0,function*(){return H.runAction(K)})})}else if(te){const H=new O;ne.push({label:H.label,run:()=>ye(this,void 0,void 0,function*(){return H.runAction(K)})})}if(G.kind===0){const H=new B;ne.push({label:H.label,run:()=>ye(this,void 0,void 0,function*(){return H.runAction(K)})})}else if(G.kind===1){const H=new W;ne.push({label:H.label,run:()=>ye(this,void 0,void 0,function*(){return H.runAction(K)})})}else if(G.kind===2){const H=new j;ne.push({label:H.label,run:()=>ye(this,void 0,void 0,function*(){return H.runAction(K)})})}else se(G);const V=yield de.pick(ne,{title:s.localize(22,null)});V&&(yield V.run())})}}F.ID="editor.action.unicodeHighlight.showExcludeOptions",e.ShowExcludeOptions=F;function U(he,ie){return ye(this,void 0,void 0,function*(){const ue=he.getValue(f.unicodeHighlightConfigKeys.allowedCharacters);let J;typeof ue=="object"&&ue?J=ue:J={};for(const x of ie)J[String.fromCodePoint(x)]=!0;yield he.updateValue(f.unicodeHighlightConfigKeys.allowedCharacters,J,2)})}function Q(he,ie){var ue;return ye(this,void 0,void 0,function*(){const J=(ue=he.inspect(f.unicodeHighlightConfigKeys.allowedLocales).user)===null||ue===void 0?void 0:ue.value;let x;typeof J=="object"&&J?x=Object.assign({},J):x={};for(const G of ie)x[G]=!0;yield he.updateValue(f.unicodeHighlightConfigKeys.allowedLocales,x,2)})}function se(he){throw new Error(`Unexpected value: ${he}`)}(0,v.registerEditorAction)(B),(0,v.registerEditorAction)(W),(0,v.registerEditorAction)(j),(0,v.registerEditorAction)(F),(0,v.registerEditorContribution)(p.ID,p,1),r.HoverParticipantRegistry.register(D)}),define(_[851],ee([1,0,175,179,323,301,732,813,733,734,735,772,815,835,743,736,737,738,817,843,325,326,744,745,707,849,234,330,328,331,747,837,824,748,749,825,826,750,829,776,798,799,800,752,235,840,336,753,755,310,850,756,830,315,757,751,83,154]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})}),define(_[236],ee([1,0,9,7,43,6,110,2,16,102,21,143,224,64,12,4,53,61,172,25,27,309,15,144,8,695,38,698,109,303,699,145,42,69,80,181,120,83,44,30,62,338,57,701,719,807,49,706,108,307,37,793,219,810,809,322,119,700,77,28,729,702,96,693,218,694,173,177,89,705,50,79,84,722,221,703,252,13,34,321,304,842,78,794,685]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s,l,o,u,h,w,m,p,b,y,k,D,M,z,R,P,A,T,O,B,W,j,F,U,Q,se,he,ie,ue,J,x,G,te,Z,ae,de,K,Y,ne,V,H,$,oe,re,X,le,me,we,Le,Ee,Me,Ae,ke,fe,pe,ce,be,Se,Ie,Ce){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StandaloneServices=e.updateConfigurationService=e.StandaloneConfigurationService=e.StandaloneKeybindingService=e.StandaloneCommandService=e.StandaloneNotificationService=void 0;class ve{constructor(Pe){this.c=!1,this.a=Pe,this.b=new I.Emitter}get textEditorModel(){return this.a}dispose(){this.c=!0,this.b.fire()}}let De=class{constructor(Pe){this.a=Pe}createModelReference(Pe){const We=this.a.getModel(Pe);return We?Promise.resolve(new S.ImmortalReference(new ve(We))):Promise.reject(new Error("Model not found"))}};De=Ne([ge(0,c.IModelService)],De);class Oe{show(){return Oe.a}showWhile(Pe,We){return ye(this,void 0,void 0,function*(){yield Pe})}}Oe.a={done:()=>{},total:()=>{},worked:()=>{}};class Re{withProgress(Pe,We,je){return We({report:()=>{}})}}class xe{confirm(Pe){return ye(this,void 0,void 0,function*(){return{confirmed:this.a(Pe.message,Pe.detail),checkboxChecked:!1}})}a(Pe,We){let je=Pe;return We&&(je=je+`
|
||
|
||
`+We),window.confirm(je)}prompt(Pe){var We,je;return ye(this,void 0,void 0,function*(){let Ue;if(this.a(Pe.message,Pe.detail)){const Qe=[...(We=Pe.buttons)!==null&&We!==void 0?We:[]];Pe.cancelButton&&typeof Pe.cancelButton!="string"&&typeof Pe.cancelButton!="boolean"&&Qe.push(Pe.cancelButton),Ue=yield(je=Qe[0])===null||je===void 0?void 0:je.run({checkboxChecked:!1})}return{result:Ue}})}error(Pe,We){return ye(this,void 0,void 0,function*(){yield this.prompt({type:f.default.Error,message:Pe,detail:We})})}}class Fe{info(Pe){return this.notify({severity:f.default.Info,message:Pe})}warn(Pe){return this.notify({severity:f.default.Warning,message:Pe})}error(Pe){return this.notify({severity:f.default.Error,message:Pe})}notify(Pe){switch(Pe.severity){case f.default.Error:console.error(Pe.message);break;case f.default.Warning:console.warn(Pe.message);break;default:console.log(Pe.message);break}return Fe.a}prompt(Pe,We,je,Ue){return Fe.a}status(Pe,We){return S.Disposable.None}}Fe.a=new R.NoOpNotification,e.StandaloneNotificationService=Fe;let Be=class{constructor(Pe){this.b=new I.Emitter,this.c=new I.Emitter,this.onDidExecuteCommand=this.c.event,this.a=Pe}executeCommand(Pe,...We){const je=l.CommandsRegistry.getCommand(Pe);if(!je)return Promise.reject(new Error(`command '${Pe}' not found`));try{this.b.fire({commandId:Pe,args:We});const Ue=this.a.invokeFunction.apply(this.a,[je.handler,...We]);return this.c.fire({commandId:Pe,args:We}),Promise.resolve(Ue)}catch(Ue){return Promise.reject(Ue)}}};Be=Ne([ge(0,m.IInstantiationService)],Be),e.StandaloneCommandService=Be;let Ke=class extends p.AbstractKeybindingService{constructor(Pe,We,je,Ue,et,Qe){super(Pe,We,je,Ue,et),this.G=null,this.H=[],this.I=[];const tt=ft=>{const Et=new S.DisposableStore;Et.add(N.addDisposableListener(ft,N.EventType.KEY_DOWN,At=>{const kt=new E.StandardKeyboardEvent(At);this.B(kt,kt.target)&&(kt.preventDefault(),kt.stopPropagation())})),Et.add(N.addDisposableListener(ft,N.EventType.KEY_UP,At=>{const kt=new E.StandardKeyboardEvent(At);this.D(kt,kt.target)&&kt.preventDefault()})),this.I.push(new $e(ft,Et))},rt=ft=>{for(let Et=0;Et<this.I.length;Et++){const At=this.I[Et];At.domNode===ft&&(this.I.splice(Et,1),At.dispose())}},ot=ft=>{ft.getOption(58)||tt(ft.getContainerDomNode())},Lt=ft=>{ft.getOption(58)||rt(ft.getContainerDomNode())};this.q(Qe.onCodeEditorAdd(ot)),this.q(Qe.onCodeEditorRemove(Lt)),Qe.listCodeEditors().forEach(ot);const bt=ft=>{tt(ft.getContainerDomNode())},Kt=ft=>{rt(ft.getContainerDomNode())};this.q(Qe.onDiffEditorAdd(bt)),this.q(Qe.onDiffEditorRemove(Kt)),Qe.listDiffEditors().forEach(bt)}addDynamicKeybinding(Pe,We,je,Ue){return(0,S.combinedDisposable)(l.CommandsRegistry.registerCommand(Pe,je),this.addDynamicKeybindings([{keybinding:We,command:Pe,when:Ue}]))}addDynamicKeybindings(Pe){const We=Pe.map(je=>{var Ue;return{keybinding:(0,L.decodeKeybinding)(je.keybinding,v.OS),command:(Ue=je.command)!==null&&Ue!==void 0?Ue:null,commandArgs:je.commandArgs,when:je.when,weight1:1e3,weight2:0,extensionId:null,isBuiltinExtension:!1}});return this.H=this.H.concat(We),this.J(),(0,S.toDisposable)(()=>{for(let je=0;je<this.H.length;je++)if(this.H[je]===We[0]){this.H.splice(je,We.length),this.J();return}})}J(){this.G=null,this.a.fire()}u(){if(!this.G){const Pe=this.N(k.KeybindingsRegistry.getDefaultKeybindings(),!0),We=this.N(this.H,!1);this.G=new y.KeybindingResolver(Pe,We,je=>this.w(je))}return this.G}v(){return document.hasFocus()}N(Pe,We){const je=[];let Ue=0;for(const et of Pe){const Qe=et.when||void 0,tt=et.keybinding;if(!tt)je[Ue++]=new D.ResolvedKeybindingItem(void 0,et.command,et.commandArgs,Qe,We,null,!1);else{const rt=M.USLayoutResolvedKeybinding.resolveKeybinding(tt,v.OS);for(const ot of rt)je[Ue++]=new D.ResolvedKeybindingItem(ot,et.command,et.commandArgs,Qe,We,null,!1)}}return je}resolveKeyboardEvent(Pe){const We=new L.KeyCodeChord(Pe.ctrlKey,Pe.shiftKey,Pe.altKey,Pe.metaKey,Pe.keyCode);return new M.USLayoutResolvedKeybinding([We],v.OS)}};Ke=Ne([ge(0,h.IContextKeyService),ge(1,l.ICommandService),ge(2,A.ITelemetryService),ge(3,R.INotificationService),ge(4,F.ILogService),ge(5,j.ICodeEditorService)],Ke),e.StandaloneKeybindingService=Ke;class $e extends S.Disposable{constructor(Pe,We){super(),this.domNode=Pe,this.q(We)}}function nt(Xe){return Xe&&typeof Xe=="object"&&(!Xe.overrideIdentifier||typeof Xe.overrideIdentifier=="string")&&(!Xe.resource||Xe.resource instanceof g.URI)}class lt{constructor(){this.a=new I.Emitter,this.onDidChangeConfiguration=this.a.event;const Pe=new ce.DefaultConfiguration;this.b=new u.Configuration(Pe.reload(),new u.ConfigurationModel,new u.ConfigurationModel,new u.ConfigurationModel),Pe.dispose()}getValue(Pe,We){const je=typeof Pe=="string"?Pe:void 0,Ue=nt(Pe)?Pe:nt(We)?We:{};return this.b.getValue(je,Ue,void 0)}updateValues(Pe){const We={data:this.b.toData()},je=[];for(const Ue of Pe){const[et,Qe]=Ue;this.getValue(et)!==Qe&&(this.b.updateValue(et,Qe),je.push(et))}if(je.length>0){const Ue=new u.ConfigurationChangeEvent({keys:je,overrides:[]},We,this.b);Ue.source=8,Ue.sourceConfig=null,this.a.fire(Ue)}return Promise.resolve()}updateValue(Pe,We,je,Ue){return this.updateValues([[Pe,We]])}inspect(Pe,We={}){return this.b.inspect(Pe,We,void 0)}}e.StandaloneConfigurationService=lt;let He=class{constructor(Pe,We,je){this.b=Pe,this.c=We,this.d=je,this.a=new I.Emitter,this.b.onDidChangeConfiguration(Ue=>{this.a.fire({affectedKeys:Ue.affectedKeys,affectsConfiguration:(et,Qe)=>Ue.affectsConfiguration(Qe)})})}getValue(Pe,We,je){const Ue=a.Position.isIPosition(We)?We:null,et=Ue?typeof je=="string"?je:void 0:typeof We=="string"?We:void 0,Qe=Pe?this.f(Pe,Ue):void 0;return typeof et>"u"?this.b.getValue({resource:Pe,overrideIdentifier:Qe}):this.b.getValue(et,{resource:Pe,overrideIdentifier:Qe})}f(Pe,We){const je=this.c.getModel(Pe);return je?We?je.getLanguageIdAtPosition(We.lineNumber,We.column):je.getLanguageId():this.d.guessLanguageIdByFilepathOrFirstLine(Pe)}};He=Ne([ge(0,o.IConfigurationService),ge(1,c.IModelService),ge(2,te.ILanguageService)],He);let Te=class{constructor(Pe){this.a=Pe}getEOL(Pe,We){const je=this.a.getValue("files.eol",{overrideIdentifier:We,resource:Pe});return je&&typeof je=="string"&&je!=="auto"?je:v.isLinux||v.isMacintosh?`
|
||
`:`\r
|
||
`}};Te=Ne([ge(0,o.IConfigurationService)],Te);class ze{publicLog(Pe,We){return Promise.resolve(void 0)}publicLog2(Pe,We){return this.publicLog(Pe,We)}}class Ve{constructor(){const Pe=g.URI.from({scheme:Ve.a,authority:"model",path:"/"});this.b={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new T.WorkspaceFolder({uri:Pe,name:"",index:0})]}}getWorkspace(){return this.b}getWorkspaceFolder(Pe){return Pe&&Pe.scheme===Ve.a?this.b.folders[0]:null}}Ve.a="inmemory";function Ge(Xe,Pe,We){if(!Pe||!(Xe instanceof lt))return;const je=[];Object.keys(Pe).forEach(Ue=>{(0,t.isEditorConfigurationKey)(Ue)&&je.push([`editor.${Ue}`,Pe[Ue]]),We&&(0,t.isDiffEditorConfigurationKey)(Ue)&&je.push([`diffEditor.${Ue}`,Pe[Ue]])}),je.length>0&&Xe.updateValues(je)}e.updateConfigurationService=Ge;let qe=class{constructor(Pe){this.a=Pe}hasPreviewHandler(){return!1}apply(Pe,We){return ye(this,void 0,void 0,function*(){const je=Array.isArray(Pe)?Pe:i.ResourceEdit.convert(Pe),Ue=new Map;for(const tt of je){if(!(tt instanceof i.ResourceTextEdit))throw new Error("bad edit - only text edits are supported");const rt=this.a.getModel(tt.resource);if(!rt)throw new Error("bad edit - model not found");if(typeof tt.versionId=="number"&&rt.getVersionId()!==tt.versionId)throw new Error("bad state - model changed in the meantime");let ot=Ue.get(rt);ot||(ot=[],Ue.set(rt,ot)),ot.push(n.EditOperation.replaceMove(r.Range.lift(tt.textEdit.range),tt.textEdit.text))}let et=0,Qe=0;for(const[tt,rt]of Ue)tt.pushStackElement(),tt.pushEditOperations([],rt,()=>[]),tt.pushStackElement(),Qe+=1,et+=rt.length;return{ariaSummary:C.format(B.StandaloneServicesNLS.bulkEditServiceSummary,et,Qe),isApplied:et>0}})}};qe=Ne([ge(0,c.IModelService)],qe);class Ze{getUriLabel(Pe,We){return Pe.scheme==="file"?Pe.fsPath:Pe.path}getUriBasenameLabel(Pe){return(0,W.basename)(Pe)}}let Je=class extends se.ContextViewService{constructor(Pe,We){super(Pe),this.k=We}showContextView(Pe,We,je){if(!We){const Ue=this.k.getFocusedCodeEditor()||this.k.getActiveCodeEditor();Ue&&(We=Ue.getContainerDomNode())}return super.showContextView(Pe,We,je)}};Je=Ne([ge(0,O.ILayoutService),ge(1,j.ICodeEditorService)],Je);class it{constructor(){this.a=new I.Emitter,this.onDidChangeTrust=this.a.event}isWorkspaceTrusted(){return!0}}class ct extends he.LanguageService{constructor(){super()}}class Ye extends Se.LogService{constructor(){super(new F.ConsoleLogger)}}let at=class extends ie.ContextMenuService{constructor(Pe,We,je,Ue,et,Qe){super(Pe,We,je,Ue,et,Qe),this.configure({blockMouse:!1})}};at=Ne([ge(0,A.ITelemetryService),ge(1,R.INotificationService),ge(2,Q.IContextViewService),ge(3,b.IKeybindingService),ge(4,$.IMenuService),ge(5,h.IContextKeyService)],at);class ht{playAudioCue(Pe,We){return ye(this,void 0,void 0,function*(){})}}(0,ue.registerSingleton)(o.IConfigurationService,lt,0),(0,ue.registerSingleton)(s.ITextResourceConfigurationService,He,0),(0,ue.registerSingleton)(s.ITextResourcePropertiesService,Te,0),(0,ue.registerSingleton)(T.IWorkspaceContextService,Ve,0),(0,ue.registerSingleton)(z.ILabelService,Ze,0),(0,ue.registerSingleton)(A.ITelemetryService,ze,0),(0,ue.registerSingleton)(w.IDialogService,xe,0),(0,ue.registerSingleton)(R.INotificationService,Fe,0),(0,ue.registerSingleton)(Me.IMarkerService,Ae.MarkerService,0),(0,ue.registerSingleton)(te.ILanguageService,ct,0),(0,ue.registerSingleton)(ne.IStandaloneThemeService,Y.StandaloneThemeService,0),(0,ue.registerSingleton)(F.ILogService,Ye,0),(0,ue.registerSingleton)(c.IModelService,de.ModelService,0),(0,ue.registerSingleton)(ae.IMarkerDecorationsService,Z.MarkerDecorationsService,0),(0,ue.registerSingleton)(h.IContextKeyService,le.ContextKeyService,0),(0,ue.registerSingleton)(P.IProgressService,Re,0),(0,ue.registerSingleton)(P.IEditorProgressService,Oe,0),(0,ue.registerSingleton)(pe.IStorageService,pe.InMemoryStorageService,0),(0,ue.registerSingleton)(x.IEditorWorkerService,G.EditorWorkerService,0),(0,ue.registerSingleton)(i.IBulkEditService,qe,0),(0,ue.registerSingleton)(U.IWorkspaceTrustManagementService,it,0),(0,ue.registerSingleton)(d.ITextModelService,De,0),(0,ue.registerSingleton)(H.IAccessibilityService,V.AccessibilityService,0),(0,ue.registerSingleton)(Ee.IListService,Ee.ListService,0),(0,ue.registerSingleton)(l.ICommandService,Be,0),(0,ue.registerSingleton)(b.IKeybindingService,Ke,0),(0,ue.registerSingleton)(fe.IQuickInputService,K.StandaloneQuickInputService,0),(0,ue.registerSingleton)(Q.IContextViewService,Je,0),(0,ue.registerSingleton)(ke.IOpenerService,J.OpenerService,0),(0,ue.registerSingleton)(X.IClipboardService,re.BrowserClipboardService,0),(0,ue.registerSingleton)(Q.IContextMenuService,at,0),(0,ue.registerSingleton)($.IMenuService,oe.MenuService,0),(0,ue.registerSingleton)(be.IAudioCueService,ht,0);var st;(function(Xe){const Pe=new Le.ServiceCollection;for(const[Qe,tt]of(0,ue.getSingletonServiceDescriptors)())Pe.set(Qe,tt);const We=new we.InstantiationService(Pe,!0);Pe.set(m.IInstantiationService,We);function je(Qe){const tt=Pe.get(Qe);if(!tt)throw new Error("Missing service "+Qe);return tt instanceof me.SyncDescriptor?We.invokeFunction(rt=>rt.get(Qe)):tt}Xe.get=je;let Ue=!1;function et(Qe){if(Ue)return We;Ue=!0;for(const[rt,ot]of(0,ue.getSingletonServiceDescriptors)())Pe.get(rt)||Pe.set(rt,ot);for(const rt in Qe)if(Qe.hasOwnProperty(rt)){const ot=(0,m.createDecorator)(rt);Pe.get(ot)instanceof me.SyncDescriptor&&Pe.set(ot,Qe[rt])}const tt=(0,Ie.getEditorFeatures)();for(const rt of tt)try{We.createInstance(rt)}catch(ot){(0,Ce.onUnexpectedError)(ot)}return We}Xe.initialize=et})(st=e.StandaloneServices||(e.StandaloneServices={}))}),define(_[852],ee([1,0,52,2,30,179,323,251,236,119,28,25,27,15,57,8,38,42,23,77,83,96,69,53,37,321,70,34,19]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s,l,o,u,h,w,m,p,b,y,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createTextModel=e.StandaloneDiffEditor=e.StandaloneEditor=e.StandaloneCodeEditor=void 0;let D=0,M=!1;function z(B){if(!B){if(M)return;M=!0}C.setARIAContainer(B||document.body)}let R=class extends I.CodeEditorWidget{constructor(W,j,F,U,Q,se,he,ie,ue,J,x,G){const te=Object.assign({},j);te.ariaLabel=te.ariaLabel||o.StandaloneCodeEditorNLS.editorViewAccessibleLabel,te.ariaLabel=te.ariaLabel+";"+o.StandaloneCodeEditorNLS.accessibilityHelpMessage,super(W,te,{},F,U,Q,se,ie,ue,J,x,G),he instanceof v.StandaloneKeybindingService?this.Wb=he:this.Wb=null,z(te.ariaContainerElement)}addCommand(W,j,F){if(!this.Wb)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;const U="DYNAMIC_"+ ++D,Q=n.ContextKeyExpr.deserialize(F);return this.Wb.addDynamicKeybinding(U,W,j,Q),U}createContextKey(W,j){return this.lb.createKey(W,j)}addAction(W){if(typeof W.id!="string"||typeof W.label!="string"||typeof W.run!="function")throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this.Wb)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),N.Disposable.None;const j=W.id,F=W.label,U=n.ContextKeyExpr.and(n.ContextKeyExpr.equals("editorId",this.getId()),n.ContextKeyExpr.deserialize(W.precondition)),Q=W.keybindings,se=n.ContextKeyExpr.and(U,n.ContextKeyExpr.deserialize(W.keybindingContext)),he=W.contextMenuGroupId||null,ie=W.contextMenuOrder||0,ue=(te,...Z)=>Promise.resolve(W.run(this,...Z)),J=new N.DisposableStore,x=this.getId()+":"+j;if(J.add(i.CommandsRegistry.registerCommand(x,ue)),he){const te={command:{id:x,title:F},when:U,group:he,order:ie};J.add(g.MenuRegistry.appendMenuItem(g.MenuId.EditorContext,te))}if(Array.isArray(Q))for(const te of Q)J.add(this.Wb.addDynamicKeybinding(x,te,ue,se));const G=new S.InternalEditorAction(x,F,F,U,ue,this.lb);return this.hb.set(j,G),J.add((0,N.toDisposable)(()=>{this.hb.delete(j)})),J}Ib(W,j){if(this.nb instanceof p.StandaloneCodeEditorService)try{this.nb.setActiveCodeEditor(this),super.Ib(W,j)}finally{this.nb.setActiveCodeEditor(null)}else super.Ib(W,j)}};R=Ne([ge(2,r.IInstantiationService),ge(3,E.ICodeEditorService),ge(4,i.ICommandService),ge(5,n.IContextKeyService),ge(6,c.IKeybindingService),ge(7,s.IThemeService),ge(8,d.INotificationService),ge(9,l.IAccessibilityService),ge(10,y.ILanguageConfigurationService),ge(11,k.ILanguageFeaturesService)],R),e.StandaloneCodeEditor=R;let P=class extends R{constructor(W,j,F,U,Q,se,he,ie,ue,J,x,G,te,Z,ae){const de=Object.assign({},j);(0,v.updateConfigurationService)(J,de,!1);const K=ie.registerEditorContainer(W);typeof de.theme=="string"&&ie.setTheme(de.theme),typeof de.autoDetectHighContrast<"u"&&ie.setAutoDetectHighContrast(Boolean(de.autoDetectHighContrast));const Y=de.model;delete de.model,super(W,de,F,U,Q,se,he,ie,ue,x,Z,ae),this.Yb=J,this.Zb=ie,this.q(K);let ne;if(typeof Y>"u"){const V=te.getLanguageIdByMimeType(de.language)||de.language||b.PLAINTEXT_LANGUAGE_ID;ne=T(G,te,de.value||"",V,void 0),this.ac=!0}else ne=Y,this.ac=!1;if(this.Qb(ne),ne){const V={oldModelUrl:null,newModelUrl:ne.uri};this.u.fire(V)}}dispose(){super.dispose()}updateOptions(W){(0,v.updateConfigurationService)(this.Yb,W,!1),typeof W.theme=="string"&&this.Zb.setTheme(W.theme),typeof W.autoDetectHighContrast<"u"&&this.Zb.setAutoDetectHighContrast(Boolean(W.autoDetectHighContrast)),super.updateOptions(W)}_postDetachModelCleanup(W){super._postDetachModelCleanup(W),W&&this.ac&&(W.dispose(),this.ac=!1)}};P=Ne([ge(2,r.IInstantiationService),ge(3,E.ICodeEditorService),ge(4,i.ICommandService),ge(5,n.IContextKeyService),ge(6,c.IKeybindingService),ge(7,f.IStandaloneThemeService),ge(8,d.INotificationService),ge(9,t.IConfigurationService),ge(10,l.IAccessibilityService),ge(11,w.IModelService),ge(12,m.ILanguageService),ge(13,y.ILanguageConfigurationService),ge(14,k.ILanguageFeaturesService)],P),e.StandaloneEditor=P;let A=class extends L.DiffEditorWidget{constructor(W,j,F,U,Q,se,he,ie,ue,J,x){const G=Object.assign({},j);(0,v.updateConfigurationService)(ie,G,!0);const te=se.registerEditorContainer(W);typeof G.theme=="string"&&se.setTheme(G.theme),typeof G.autoDetectHighContrast<"u"&&se.setAutoDetectHighContrast(Boolean(G.autoDetectHighContrast)),super(W,G,{},x,U,F,Q,se,he,ue,J),this.Ob=ie,this.Pb=se,this.q(te)}dispose(){super.dispose()}updateOptions(W){(0,v.updateConfigurationService)(this.Ob,W,!0),typeof W.theme=="string"&&this.Pb.setTheme(W.theme),typeof W.autoDetectHighContrast<"u"&&this.Pb.setAutoDetectHighContrast(Boolean(W.autoDetectHighContrast)),super.updateOptions(W)}qb(W,j,F){return W.createInstance(R,j,F)}getOriginalEditor(){return super.getOriginalEditor()}getModifiedEditor(){return super.getModifiedEditor()}addCommand(W,j,F){return this.getModifiedEditor().addCommand(W,j,F)}createContextKey(W,j){return this.getModifiedEditor().createContextKey(W,j)}addAction(W){return this.getModifiedEditor().addAction(W)}};A=Ne([ge(2,r.IInstantiationService),ge(3,n.IContextKeyService),ge(4,E.ICodeEditorService),ge(5,f.IStandaloneThemeService),ge(6,d.INotificationService),ge(7,t.IConfigurationService),ge(8,a.IContextMenuService),ge(9,h.IEditorProgressService),ge(10,u.IClipboardService)],A),e.StandaloneDiffEditor=A;function T(B,W,j,F,U){if(j=j||"",!F){const Q=j.indexOf(`
|
||
`);let se=j;return Q!==-1&&(se=j.substring(0,Q)),O(B,j,W.createByFilepathOrFirstLine(U||null,se),U)}return O(B,j,W.createById(F),U)}e.createTextModel=T;function O(B,W,j,F){return B.createModel(W,j,F)}}),define(_[853],ee([1,0,2,9,293,30,301,40,217,160,47,26,34,141,37,53,714,165,688,852,236,119,25,89,38,14,28,15,70,159,427]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r,c,d,s,l,o,u,h,w,m,p,b,y,k,D){"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.addKeybindingRules=e.addKeybindingRule=e.addEditorAction=e.addCommand=e.createDiffNavigator=e.createDiffEditor=e.getDiffEditors=e.getEditors=e.onDidCreateDiffEditor=e.onDidCreateEditor=e.create=void 0;function M(le,me,we){return o.StandaloneServices.initialize(we||{}).createInstance(l.StandaloneEditor,le,me)}e.create=M;function z(le){return o.StandaloneServices.get(I.ICodeEditorService).onCodeEditorAdd(we=>{le(we)})}e.onDidCreateEditor=z;function R(le){return o.StandaloneServices.get(I.ICodeEditorService).onDiffEditorAdd(we=>{le(we)})}e.onDidCreateDiffEditor=R;function P(){return o.StandaloneServices.get(I.ICodeEditorService).listCodeEditors()}e.getEditors=P;function A(){return o.StandaloneServices.get(I.ICodeEditorService).listDiffEditors()}e.getDiffEditors=A;function T(le,me,we){return o.StandaloneServices.initialize(we||{}).createInstance(l.StandaloneDiffEditor,le,me)}e.createDiffEditor=T;function O(le,me){return o.StandaloneServices.initialize({}).createInstance(L.DiffNavigator,le,me)}e.createDiffNavigator=O;function B(le){if(typeof le.id!="string"||typeof le.run!="function")throw new Error("Invalid command descriptor, `id` and `run` are required properties!");return h.CommandsRegistry.registerCommand(le.id,le.run)}e.addCommand=B;function W(le){if(typeof le.id!="string"||typeof le.label!="string"||typeof le.run!="function")throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");const me=y.ContextKeyExpr.deserialize(le.precondition),we=(Ee,...Me)=>p.EditorCommand.runEditorCommand(Ee,Me,me,(Ae,ke,fe)=>Promise.resolve(le.run(ke,...fe))),Le=new C.DisposableStore;if(Le.add(h.CommandsRegistry.registerCommand(le.id,we)),le.contextMenuGroupId){const Ee={command:{id:le.id,title:le.label},when:me,group:le.contextMenuGroupId,order:le.contextMenuOrder||0};Le.add(b.MenuRegistry.appendMenuItem(b.MenuId.EditorContext,Ee))}if(Array.isArray(le.keybindings)){const Ee=o.StandaloneServices.get(m.IKeybindingService);if(!(Ee instanceof o.StandaloneKeybindingService))console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService");else{const Me=y.ContextKeyExpr.and(me,y.ContextKeyExpr.deserialize(le.keybindingContext));Le.add(Ee.addDynamicKeybindings(le.keybindings.map(Ae=>({keybinding:Ae,command:le.id,when:Me}))))}}return Le}e.addEditorAction=W;function j(le){return F([le])}e.addKeybindingRule=j;function F(le){const me=o.StandaloneServices.get(m.IKeybindingService);return me instanceof o.StandaloneKeybindingService?me.addDynamicKeybindings(le.map(we=>({keybinding:we.keybinding,command:we.command,commandArgs:we.commandArgs,when:y.ContextKeyExpr.deserialize(we.when)}))):(console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),C.Disposable.None)}e.addKeybindingRules=F;function U(le,me,we){const Le=o.StandaloneServices.get(a.ILanguageService),Ee=Le.getLanguageIdByMimeType(me)||me;return(0,l.createTextModel)(o.StandaloneServices.get(r.IModelService),Le,le,Ee,we)}e.createModel=U;function Q(le,me){const we=o.StandaloneServices.get(a.ILanguageService),Le=o.StandaloneServices.get(r.IModelService),Ee=we.getLanguageIdByMimeType(me)||me||k.PLAINTEXT_LANGUAGE_ID;Le.setMode(le,we.createById(Ee))}e.setModelLanguage=Q;function se(le,me,we){le&&o.StandaloneServices.get(w.IMarkerService).changeOne(me,le.uri,we)}e.setModelMarkers=se;function he(le){o.StandaloneServices.get(w.IMarkerService).changeAll(le,[])}e.removeAllMarkers=he;function ie(le){return o.StandaloneServices.get(w.IMarkerService).read(le)}e.getModelMarkers=ie;function ue(le){return o.StandaloneServices.get(w.IMarkerService).onMarkerChanged(le)}e.onDidChangeMarkers=ue;function J(le){return o.StandaloneServices.get(r.IModelService).getModel(le)}e.getModel=J;function x(){return o.StandaloneServices.get(r.IModelService).getModels()}e.getModels=x;function G(le){return o.StandaloneServices.get(r.IModelService).onModelAdded(le)}e.onDidCreateModel=G;function te(le){return o.StandaloneServices.get(r.IModelService).onModelRemoved(le)}e.onWillDisposeModel=te;function Z(le){return o.StandaloneServices.get(r.IModelService).onModelLanguageChanged(we=>{le({model:we.model,oldLanguage:we.oldLanguageId})})}e.onDidChangeModelLanguage=Z;function ae(le){return(0,c.createWebWorker)(o.StandaloneServices.get(r.IModelService),o.StandaloneServices.get(t.ILanguageConfigurationService),le)}e.createWebWorker=ae;function de(le,me){const we=o.StandaloneServices.get(a.ILanguageService),Le=o.StandaloneServices.get(u.IStandaloneThemeService);return Le.registerEditorContainer(le),s.Colorizer.colorizeElement(Le,we,le,me)}e.colorizeElement=de;function K(le,me,we){const Le=o.StandaloneServices.get(a.ILanguageService);return o.StandaloneServices.get(u.IStandaloneThemeService).registerEditorContainer(document.body),s.Colorizer.colorize(Le,le,me,we)}e.colorize=K;function Y(le,me,we=4){return o.StandaloneServices.get(u.IStandaloneThemeService).registerEditorContainer(document.body),s.Colorizer.colorizeModelLine(le,me,we)}e.colorizeModelLine=Y;function ne(le){const me=i.TokenizationRegistry.get(le);return me||{getInitialState:()=>n.NullState,tokenize:(we,Le,Ee)=>(0,n.nullTokenize)(le,Ee)}}function V(le,me){i.TokenizationRegistry.getOrCreate(me);const we=ne(me),Le=(0,N.splitLines)(le),Ee=[];let Me=we.getInitialState();for(let Ae=0,ke=Le.length;Ae<ke;Ae++){const fe=Le[Ae],pe=we.tokenize(fe,!0,Me);Ee[Ae]=pe.tokens,Me=pe.endState}return Ee}e.tokenize=V;function H(le,me){o.StandaloneServices.get(u.IStandaloneThemeService).defineTheme(le,me)}e.defineTheme=H;function $(le){o.StandaloneServices.get(u.IStandaloneThemeService).setTheme(le)}e.setTheme=$;function oe(){E.FontMeasurements.clearAllFontInfos()}e.remeasureFonts=oe;function re(le,me){return h.CommandsRegistry.registerCommand({id:le,handler:me})}e.registerCommand=re;function X(){return{create:M,getEditors:P,getDiffEditors:A,onDidCreateEditor:z,onDidCreateDiffEditor:R,createDiffEditor:T,createDiffNavigator:O,addCommand:B,addEditorAction:W,addKeybindingRule:j,addKeybindingRules:F,createModel:U,setModelLanguage:Q,setModelMarkers:se,getModelMarkers:ie,removeAllMarkers:he,onDidChangeMarkers:ue,getModels:x,getModel:J,onDidCreateModel:G,onWillDisposeModel:te,onDidChangeModelLanguage:Z,createWebWorker:ae,colorizeElement:de,colorize:K,colorizeModelLine:Y,tokenize:V,defineTheme:H,setTheme:$,remeasureFonts:oe,registerCommand:re,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:S.ConfigurationChangedEvent,BareFontInfo:v.BareFontInfo,FontInfo:v.FontInfo,TextModelResolvedOptions:g.TextModelResolvedOptions,FindMatch:g.FindMatch,ApplyUpdateResult:S.ApplyUpdateResult,LineRange:D.LineRange,LineRangeMapping:D.LineRangeMapping,RangeMapping:D.RangeMapping,EditorType:f.EditorType,EditorOptions:S.EditorOptions}}e.createMonacoEditorAPI=X}),define(_[854],ee([1,0,36,4,26,34,70,37,165,236,502,300,119,89,19,27]),function(q,e,C,N,E,I,L,S,v,f,g,i,t,n,a,r){"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 c(V){L.ModesRegistry.registerLanguage(V)}e.register=c;function d(){let V=[];return V=V.concat(L.ModesRegistry.getLanguages()),V}e.getLanguages=d;function s(V){return f.StandaloneServices.get(S.ILanguageService).languageIdCodec.encodeLanguageId(V)}e.getEncodedLanguageId=s;function l(V,H){const oe=f.StandaloneServices.get(S.ILanguageService).onDidEncounterLanguage(re=>{re===V&&(oe.dispose(),H())});return oe}e.onLanguage=l;function o(V,H){if(!f.StandaloneServices.get(S.ILanguageService).isRegisteredLanguageId(V))throw new Error(`Cannot set configuration for unknown language ${V}`);return f.StandaloneServices.get(I.ILanguageConfigurationService).register(V,H,100)}e.setLanguageConfiguration=o;class u{constructor(H,$){this.a=H,this.b=$}getInitialState(){return this.b.getInitialState()}tokenize(H,$,oe){if(typeof this.b.tokenize=="function")return h.adaptTokenize(this.a,this.b,H,oe);throw new Error("Not supported!")}tokenizeEncoded(H,$,oe){const re=this.b.tokenizeEncoded(H,oe);return new E.EncodedTokenizationResult(re.tokens,re.endState)}}e.EncodedTokenizationSupportAdapter=u;class h{constructor(H,$,oe,re){this.a=H,this.b=$,this.c=oe,this.d=re}getInitialState(){return this.b.getInitialState()}static e(H,$){const oe=[];let re=0;for(let X=0,le=H.length;X<le;X++){const me=H[X];let we=me.startIndex;X===0?we=0:we<re&&(we=re),oe[X]=new E.Token(we,me.scopes,$),re=we}return oe}static adaptTokenize(H,$,oe,re){const X=$.tokenize(oe,re),le=h.e(X.tokens,H);let me;return X.endState.equals(re)?me=re:me=X.endState,new E.TokenizationResult(le,me)}tokenize(H,$,oe){return h.adaptTokenize(this.a,this.b,H,oe)}f(H,$){const oe=H.encodeLanguageId(this.a),re=this.d.getColorTheme().tokenTheme,X=[];let le=0,me=0;for(let Le=0,Ee=$.length;Le<Ee;Le++){const Me=$[Le],Ae=re.match(oe,Me.scopes);if(le>0&&X[le-1]===Ae)continue;let ke=Me.startIndex;Le===0?ke=0:ke<me&&(ke=me),X[le++]=ke,X[le++]=Ae,me=ke}const we=new Uint32Array(le);for(let Le=0;Le<le;Le++)we[Le]=X[Le];return we}tokenizeEncoded(H,$,oe){const re=this.b.tokenize(H,oe),X=this.f(this.c.languageIdCodec,re.tokens);let le;return re.endState.equals(oe)?le=oe:le=re.endState,new E.EncodedTokenizationResult(X,le)}}e.TokenizationSupportAdapter=h;function w(V){return typeof V.getInitialState=="function"}function m(V){return"tokenizeEncoded"in V}function p(V){return V&&typeof V.then=="function"}function b(V){const H=f.StandaloneServices.get(t.IStandaloneThemeService);if(V){const $=[null];for(let oe=1,re=V.length;oe<re;oe++)$[oe]=C.Color.fromHex(V[oe]);H.setColorMapOverride($)}else H.setColorMapOverride(null)}e.setColorMap=b;function y(V,H){return m(H)?new u(V,H):new h(V,H,f.StandaloneServices.get(S.ILanguageService),f.StandaloneServices.get(t.IStandaloneThemeService))}function k(V,H){const $={createTokenizationSupport:()=>ye(this,void 0,void 0,function*(){const oe=yield Promise.resolve(H.create());return oe?w(oe)?y(V,oe):new i.MonarchTokenizer(f.StandaloneServices.get(S.ILanguageService),f.StandaloneServices.get(t.IStandaloneThemeService),V,(0,g.compile)(V,oe),f.StandaloneServices.get(r.IConfigurationService)):null})};return E.TokenizationRegistry.registerFactory(V,$)}e.registerTokensProviderFactory=k;function D(V,H){if(!f.StandaloneServices.get(S.ILanguageService).isRegisteredLanguageId(V))throw new Error(`Cannot set tokens provider for unknown language ${V}`);return p(H)?k(V,{create:()=>H}):E.TokenizationRegistry.register(V,y(V,H))}e.setTokensProvider=D;function M(V,H){const $=oe=>new i.MonarchTokenizer(f.StandaloneServices.get(S.ILanguageService),f.StandaloneServices.get(t.IStandaloneThemeService),V,(0,g.compile)(V,oe),f.StandaloneServices.get(r.IConfigurationService));return p(H)?k(V,{create:()=>H}):E.TokenizationRegistry.register(V,$(H))}e.setMonarchTokensProvider=M;function z(V,H){return f.StandaloneServices.get(a.ILanguageFeaturesService).referenceProvider.register(V,H)}e.registerReferenceProvider=z;function R(V,H){return f.StandaloneServices.get(a.ILanguageFeaturesService).renameProvider.register(V,H)}e.registerRenameProvider=R;function P(V,H){return f.StandaloneServices.get(a.ILanguageFeaturesService).signatureHelpProvider.register(V,H)}e.registerSignatureHelpProvider=P;function A(V,H){return f.StandaloneServices.get(a.ILanguageFeaturesService).hoverProvider.register(V,{provideHover:(oe,re,X)=>{const le=oe.getWordAtPosition(re);return Promise.resolve(H.provideHover(oe,re,X)).then(me=>{if(!!me)return!me.range&&le&&(me.range=new N.Range(re.lineNumber,le.startColumn,re.lineNumber,le.endColumn)),me.range||(me.range=new N.Range(re.lineNumber,re.column,re.lineNumber,re.column)),me})}})}e.registerHoverProvider=A;function T(V,H){return f.StandaloneServices.get(a.ILanguageFeaturesService).documentSymbolProvider.register(V,H)}e.registerDocumentSymbolProvider=T;function O(V,H){return f.StandaloneServices.get(a.ILanguageFeaturesService).documentHighlightProvider.register(V,H)}e.registerDocumentHighlightProvider=O;function B(V,H){return f.StandaloneServices.get(a.ILanguageFeaturesService).linkedEditingRangeProvider.register(V,H)}e.registerLinkedEditingRangeProvider=B;function W(V,H){return f.StandaloneServices.get(a.ILanguageFeaturesService).definitionProvider.register(V,H)}e.registerDefinitionProvider=W;function j(V,H){return f.StandaloneServices.get(a.ILanguageFeaturesService).implementationProvider.register(V,H)}e.registerImplementationProvider=j;function F(V,H){return f.StandaloneServices.get(a.ILanguageFeaturesService).typeDefinitionProvider.register(V,H)}e.registerTypeDefinitionProvider=F;function U(V,H){return f.StandaloneServices.get(a.ILanguageFeaturesService).codeLensProvider.register(V,H)}e.registerCodeLensProvider=U;function Q(V,H,$){return f.StandaloneServices.get(a.ILanguageFeaturesService).codeActionProvider.register(V,{providedCodeActionKinds:$?.providedCodeActionKinds,documentation:$?.documentation,provideCodeActions:(re,X,le,me)=>{const Le=f.StandaloneServices.get(n.IMarkerService).read({resource:re.uri}).filter(Ee=>N.Range.areIntersectingOrTouching(Ee,X));return H.provideCodeActions(re,X,{markers:Le,only:le.only,trigger:le.trigger},me)},resolveCodeAction:H.resolveCodeAction})}e.registerCodeActionProvider=Q;function se(V,H){return f.StandaloneServices.get(a.ILanguageFeaturesService).documentFormattingEditProvider.register(V,H)}e.registerDocumentFormattingEditProvider=se;function he(V,H){return f.StandaloneServices.get(a.ILanguageFeaturesService).documentRangeFormattingEditProvider.register(V,H)}e.registerDocumentRangeFormattingEditProvider=he;function ie(V,H){return f.StandaloneServices.get(a.ILanguageFeaturesService).onTypeFormattingEditProvider.register(V,H)}e.registerOnTypeFormattingEditProvider=ie;function ue(V,H){return f.StandaloneServices.get(a.ILanguageFeaturesService).linkProvider.register(V,H)}e.registerLinkProvider=ue;function J(V,H){return f.StandaloneServices.get(a.ILanguageFeaturesService).completionProvider.register(V,H)}e.registerCompletionItemProvider=J;function x(V,H){return f.StandaloneServices.get(a.ILanguageFeaturesService).colorProvider.register(V,H)}e.registerColorProvider=x;function G(V,H){return f.StandaloneServices.get(a.ILanguageFeaturesService).foldingRangeProvider.register(V,H)}e.registerFoldingRangeProvider=G;function te(V,H){return f.StandaloneServices.get(a.ILanguageFeaturesService).declarationProvider.register(V,H)}e.registerDeclarationProvider=te;function Z(V,H){return f.StandaloneServices.get(a.ILanguageFeaturesService).selectionRangeProvider.register(V,H)}e.registerSelectionRangeProvider=Z;function ae(V,H){return f.StandaloneServices.get(a.ILanguageFeaturesService).documentSemanticTokensProvider.register(V,H)}e.registerDocumentSemanticTokensProvider=ae;function de(V,H){return f.StandaloneServices.get(a.ILanguageFeaturesService).documentRangeSemanticTokensProvider.register(V,H)}e.registerDocumentRangeSemanticTokensProvider=de;function K(V,H){return f.StandaloneServices.get(a.ILanguageFeaturesService).inlineCompletionsProvider.register(V,H)}e.registerInlineCompletionsProvider=K;function Y(V,H){return f.StandaloneServices.get(a.ILanguageFeaturesService).inlayHintsProvider.register(V,H)}e.registerInlayHintsProvider=Y;function ne(){return{register:c,getLanguages:d,onLanguage:l,getEncodedLanguageId:s,setLanguageConfiguration:o,setColorMap:b,registerTokensProviderFactory:k,setTokensProvider:D,setMonarchTokensProvider:M,registerReferenceProvider:z,registerRenameProvider:R,registerCompletionItemProvider:J,registerSignatureHelpProvider:P,registerHoverProvider:A,registerDocumentSymbolProvider:T,registerDocumentHighlightProvider:O,registerLinkedEditingRangeProvider:B,registerDefinitionProvider:W,registerImplementationProvider:j,registerTypeDefinitionProvider:F,registerCodeLensProvider:U,registerCodeActionProvider:Q,registerDocumentFormattingEditProvider:se,registerDocumentRangeFormattingEditProvider:he,registerOnTypeFormattingEditProvider:ie,registerLinkProvider:ue,registerColorProvider:x,registerFoldingRangeProvider:G,registerDeclarationProvider:te,registerSelectionRangeProvider:Z,registerDocumentSemanticTokensProvider:ae,registerDocumentRangeSemanticTokensProvider:de,registerInlineCompletionsProvider:K,registerInlayHintsProvider:Y,DocumentHighlightKind:v.DocumentHighlightKind,CompletionItemKind:v.CompletionItemKind,CompletionItemTag:v.CompletionItemTag,CompletionItemInsertTextRule:v.CompletionItemInsertTextRule,SymbolKind:v.SymbolKind,SymbolTag:v.SymbolTag,IndentAction:v.IndentAction,CompletionTriggerKind:v.CompletionTriggerKind,SignatureHelpTriggerKind:v.SignatureHelpTriggerKind,InlayHintKind:v.InlayHintKind,InlineCompletionTriggerKind:v.InlineCompletionTriggerKind,CodeActionTriggerType:v.CodeActionTriggerType,FoldingRangeKind:E.FoldingRangeKind}}e.createMonacoLanguagesAPI=ne}),define(_[855],ee([1,0,40,289,853,854,16,313]),function(q,e,C,N,E,I,L,S){"use strict";var v;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,C.EditorOptions.wrappingIndent.defaultValue=0,C.EditorOptions.glyphMargin.defaultValue=!1,C.EditorOptions.autoIndent.defaultValue=3,C.EditorOptions.overviewRulerLanes.defaultValue=2,S.FormattingConflicts.setFormatterSelector((g,i,t)=>Promise.resolve(g[0]));const f=(0,N.createMonacoBaseAPI)();f.editor=(0,E.createMonacoEditorAPI)(),f.languages=(0,I.createMonacoLanguagesAPI)(),e.CancellationTokenSource=f.CancellationTokenSource,e.Emitter=f.Emitter,e.KeyCode=f.KeyCode,e.KeyMod=f.KeyMod,e.Position=f.Position,e.Range=f.Range,e.Selection=f.Selection,e.SelectionDirection=f.SelectionDirection,e.MarkerSeverity=f.MarkerSeverity,e.MarkerTag=f.MarkerTag,e.Uri=f.Uri,e.Token=f.Token,e.editor=f.editor,e.languages=f.languages,(((v=L.globals.MonacoEnvironment)===null||v===void 0?void 0:v.globalAPI)||typeof define=="function"&&define.amd)&&(self.monaco=f),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 An=this&&this.__createBinding||(Object.create?function(q,e,C,N){N===void 0&&(N=C);var E=Object.getOwnPropertyDescriptor(e,C);(!E||("get"in E?!e.__esModule:E.writable||E.configurable))&&(E={enumerable:!0,get:function(){return e[C]}}),Object.defineProperty(q,N,E)}:function(q,e,C,N){N===void 0&&(N=C),q[N]=e[C]}),Pn=this&&this.__exportStar||function(q,e){for(var C in q)C!=="default"&&!Object.prototype.hasOwnProperty.call(e,C)&&An(e,q,C)};define(_[857],ee([1,0,855,851,758,759,760,725,802,803,764,841,805]),function(q,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Pn(C,e)})}).call(this);
|
||
|
||
|
||
"use strict";/*!-----------------------------------------------------------------------------
|
||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||
* Version: 0.36.1(6c56744c3419458f0dd48864520b759d1a3a1ca8)
|
||
* 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"],(require)=>{
|
||
var moduleExports=(()=>{var y=Object.create;var g=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var q=Object.getOwnPropertyNames;var A=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty;var a=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(r,s)=>(typeof require!="undefined"?require:r)[s]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var D=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var m=(e,r,s,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of q(r))!M.call(e,o)&&o!==s&&g(e,o,{get:()=>r[o],enumerable:!(n=x(r,o))||n.enumerable});return e},p=(e,r,s)=>(m(e,r,"default"),s&&m(s,r,"default")),c=(e,r,s)=>(s=e!=null?y(A(e)):{},m(r||!e||!e.__esModule?g(s,"default",{value:e,enumerable:!0}):s,e));var f=D((w,d)=>{var b=c(a("vs/editor/editor.api"));d.exports=b});var t={};p(t,c(f()));var v={},u={},l=class{static getOrCreate(r){return u[r]||(u[r]=new l(r)),u[r]}_languageId;_loadingTriggered;_lazyLoadPromise;_lazyLoadPromiseResolve;_lazyLoadPromiseReject;constructor(r){this._languageId=r,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((s,n)=>{this._lazyLoadPromiseResolve=s,this._lazyLoadPromiseReject=n})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,v[this._languageId].loader().then(r=>this._lazyLoadPromiseResolve(r),r=>this._lazyLoadPromiseReject(r))),this._lazyLoadPromise}};function i(e){let r=e.id;v[r]=e,t.languages.register(e);let s=l.getOrCreate(r);t.languages.registerTokensProviderFactory(r,{create:async()=>(await s.load()).language}),t.languages.onLanguage(r,async()=>{let n=await s.load();t.languages.setLanguageConfiguration(r,n.conf)})}i({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/abap/abap"],e,r)})});i({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/apex/apex"],e,r)})});i({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/azcli/azcli"],e,r)})});i({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/bat/bat"],e,r)})});i({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/bicep/bicep"],e,r)})});i({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/cameligo/cameligo"],e,r)})});i({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/clojure/clojure"],e,r)})});i({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/coffee/coffee"],e,r)})});i({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/cpp/cpp"],e,r)})});i({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/cpp/cpp"],e,r)})});i({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/csharp/csharp"],e,r)})});i({id:"csp",extensions:[],aliases:["CSP","csp"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/csp/csp"],e,r)})});i({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/css/css"],e,r)})});i({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/cypher/cypher"],e,r)})});i({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/dart/dart"],e,r)})});i({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/dockerfile/dockerfile"],e,r)})});i({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/ecl/ecl"],e,r)})});i({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/elixir/elixir"],e,r)})});i({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/flow9/flow9"],e,r)})});i({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/fsharp/fsharp"],e,r)})});i({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/freemarker2/freemarker2"],e,r)}).then(e=>e.TagAngleInterpolationDollar)});i({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/freemarker2/freemarker2"],e,r)}).then(e=>e.TagAngleInterpolationDollar)});i({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/freemarker2/freemarker2"],e,r)}).then(e=>e.TagBracketInterpolationDollar)});i({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/freemarker2/freemarker2"],e,r)}).then(e=>e.TagAngleInterpolationBracket)});i({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/freemarker2/freemarker2"],e,r)}).then(e=>e.TagBracketInterpolationBracket)});i({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/freemarker2/freemarker2"],e,r)}).then(e=>e.TagAutoInterpolationDollar)});i({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/freemarker2/freemarker2"],e,r)}).then(e=>e.TagAutoInterpolationBracket)});i({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/go/go"],e,r)})});i({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/graphql/graphql"],e,r)})});i({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/handlebars/handlebars"],e,r)})});i({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/hcl/hcl"],e,r)})});i({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((e,r)=>{a(["vs/basic-languages/html/html"],e,r)})});i({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/ini/ini"],e,r)})});i({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/java/java"],e,r)})});i({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/javascript/javascript"],e,r)})});i({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/julia/julia"],e,r)})});i({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/kotlin/kotlin"],e,r)})});i({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/less/less"],e,r)})});i({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/lexon/lexon"],e,r)})});i({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/lua/lua"],e,r)})});i({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/liquid/liquid"],e,r)})});i({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/m3/m3"],e,r)})});i({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/markdown/markdown"],e,r)})});i({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/mips/mips"],e,r)})});i({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/msdax/msdax"],e,r)})});i({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/mysql/mysql"],e,r)})});i({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/objective-c/objective-c"],e,r)})});i({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/pascal/pascal"],e,r)})});i({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/pascaligo/pascaligo"],e,r)})});i({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/perl/perl"],e,r)})});i({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/pgsql/pgsql"],e,r)})});i({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/php/php"],e,r)})});i({id:"pla",extensions:[".pla"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/pla/pla"],e,r)})});i({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/postiats/postiats"],e,r)})});i({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/powerquery/powerquery"],e,r)})});i({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/powershell/powershell"],e,r)})});i({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/protobuf/protobuf"],e,r)})});i({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/pug/pug"],e,r)})});i({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/python/python"],e,r)})});i({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/qsharp/qsharp"],e,r)})});i({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/r/r"],e,r)})});i({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/razor/razor"],e,r)})});i({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/redis/redis"],e,r)})});i({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/redshift/redshift"],e,r)})});i({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/restructuredtext/restructuredtext"],e,r)})});i({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/ruby/ruby"],e,r)})});i({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/rust/rust"],e,r)})});i({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/sb/sb"],e,r)})});i({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((e,r)=>{a(["vs/basic-languages/scala/scala"],e,r)})});i({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/scheme/scheme"],e,r)})});i({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/scss/scss"],e,r)})});i({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/shell/shell"],e,r)})});i({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/solidity/solidity"],e,r)})});i({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/sophia/sophia"],e,r)})});i({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/sparql/sparql"],e,r)})});i({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/sql/sql"],e,r)})});i({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/st/st"],e,r)})});i({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/swift/swift"],e,r)})});i({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/systemverilog/systemverilog"],e,r)})});i({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/systemverilog/systemverilog"],e,r)})});i({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/tcl/tcl"],e,r)})});i({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/twig/twig"],e,r)})});i({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/typescript/typescript"],e,r)})});i({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/vb/vb"],e,r)})});i({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".props",".targets",".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((e,r)=>{a(["vs/basic-languages/xml/xml"],e,r)})});i({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/yaml/yaml"],e,r)})});})();
|
||
return moduleExports;
|
||
});
|
||
|
||
"use strict";/*!-----------------------------------------------------------------------------
|
||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||
* Version: 0.36.1(6c56744c3419458f0dd48864520b759d1a3a1ca8)
|
||
* 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"],(require)=>{
|
||
var moduleExports=(()=>{var C=Object.create;var g=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var x=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty;var l=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(n,r)=>(typeof require!="undefined"?require:n)[r]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var I=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),M=(e,n)=>{for(var r in n)g(e,r,{get:n[r],enumerable:!0})},s=(e,n,r,a)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of b(n))!h.call(e,t)&&t!==r&&g(e,t,{get:()=>n[t],enumerable:!(a=S(n,t))||a.enumerable});return e},y=(e,n,r)=>(s(e,n,"default"),r&&s(r,n,"default")),w=(e,n,r)=>(r=e!=null?C(x(e)):{},s(n||!e||!e.__esModule?g(r,"default",{value:e,enumerable:!0}):r,e)),P=e=>s(g({},"__esModule",{value:!0}),e);var v=I((k,D)=>{var O=w(l("vs/editor/editor.api"));D.exports=O});var R={};M(R,{cssDefaults:()=>p,lessDefaults:()=>f,scssDefaults:()=>c});var o={};y(o,w(v()));var i=class{_onDidChange=new o.Emitter;_options;_modeConfiguration;_languageId;constructor(n,r,a){this._languageId=n,this.setOptions(r),this.setModeConfiguration(a)}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(n){this._options=n||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(n){this.setOptions(n)}setModeConfiguration(n){this._modeConfiguration=n||Object.create(null),this._onDidChange.fire(this)}},d={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}},u={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},p=new i("css",d,u),c=new i("scss",d,u),f=new i("less",d,u);o.languages.css={cssDefaults:p,lessDefaults:f,scssDefaults:c};function m(){return new Promise((e,n)=>{l(["vs/language/css/cssMode"],e,n)})}o.languages.onLanguage("less",()=>{m().then(e=>e.setupMode(f))});o.languages.onLanguage("scss",()=>{m().then(e=>e.setupMode(c))});o.languages.onLanguage("css",()=>{m().then(e=>e.setupMode(p))});return P(R);})();
|
||
return moduleExports;
|
||
});
|
||
|
||
"use strict";/*!-----------------------------------------------------------------------------
|
||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||
* Version: 0.36.1(6c56744c3419458f0dd48864520b759d1a3a1ca8)
|
||
* 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"],(require)=>{
|
||
var moduleExports=(()=>{var w=Object.create;var l=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var H=Object.getOwnPropertyNames;var O=Object.getPrototypeOf,_=Object.prototype.hasOwnProperty;var f=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(n,t)=>(typeof require!="undefined"?require:n)[t]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var k=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),T=(e,n)=>{for(var t in n)l(e,t,{get:n[t],enumerable:!0})},d=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of H(n))!_.call(e,o)&&o!==t&&l(e,o,{get:()=>n[o],enumerable:!(r=R(n,o))||r.enumerable});return e},b=(e,n,t)=>(d(e,n,"default"),t&&d(t,n,"default")),v=(e,n,t)=>(t=e!=null?w(O(e)):{},d(n||!e||!e.__esModule?l(t,"default",{value:e,enumerable:!0}):t,e)),A=e=>d(l({},"__esModule",{value:!0}),e);var C=k((z,h)=>{var E=v(f("vs/editor/editor.api"));h.exports=E});var V={};T(V,{handlebarDefaults:()=>M,handlebarLanguageService:()=>m,htmlDefaults:()=>x,htmlLanguageService:()=>c,razorDefaults:()=>I,razorLanguageService:()=>y,registerHTMLLanguageService:()=>s});var a={};b(a,v(C()));var p=class{_onDidChange=new a.Emitter;_options;_modeConfiguration;_languageId;constructor(n,t,r){this._languageId=n,this.setOptions(t),this.setModeConfiguration(r)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(n){this._options=n||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(n){this._modeConfiguration=n||Object.create(null),this._onDidChange.fire(this)}},F={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"},u={format:F,suggest:{},data:{useDefaultDataProvider:!0}};function g(e){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:e===i,documentFormattingEdits:e===i,documentRangeFormattingEdits:e===i}}var i="html",D="handlebars",L="razor",c=s(i,u,g(i)),x=c.defaults,m=s(D,u,g(D)),M=m.defaults,y=s(L,u,g(L)),I=y.defaults;a.languages.html={htmlDefaults:x,razorDefaults:I,handlebarDefaults:M,htmlLanguageService:c,handlebarLanguageService:m,razorLanguageService:y,registerHTMLLanguageService:s};function P(){return new Promise((e,n)=>{f(["vs/language/html/htmlMode"],e,n)})}function s(e,n=u,t=g(e)){let r=new p(e,n,t),o,S=a.languages.onLanguage(e,async()=>{o=(await P()).setupMode(r)});return{defaults:r,dispose(){S.dispose(),o?.dispose(),o=void 0}}}return A(V);})();
|
||
return moduleExports;
|
||
});
|
||
|
||
"use strict";/*!-----------------------------------------------------------------------------
|
||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||
* Version: 0.36.1(6c56744c3419458f0dd48864520b759d1a3a1ca8)
|
||
* 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"],(require)=>{
|
||
var moduleExports=(()=>{var p=Object.create;var r=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var v=Object.getPrototypeOf,C=Object.prototype.hasOwnProperty;var g=(o=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(o,{get:(e,n)=>(typeof require!="undefined"?require:e)[n]}):o)(function(o){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+o+'" is not supported')});var D=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports),b=(o,e)=>{for(var n in e)r(o,n,{get:e[n],enumerable:!0})},s=(o,e,n,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of h(e))!C.call(o,i)&&i!==n&&r(o,i,{get:()=>e[i],enumerable:!(a=y(e,i))||a.enumerable});return o},u=(o,e,n)=>(s(o,e,"default"),n&&s(n,e,"default")),c=(o,e,n)=>(n=o!=null?p(v(o)):{},s(e||!o||!o.__esModule?r(n,"default",{value:o,enumerable:!0}):n,o)),O=o=>s(r({},"__esModule",{value:!0}),o);var f=D((w,m)=>{var M=c(g("vs/editor/editor.api"));m.exports=M});var R={};b(R,{jsonDefaults:()=>d});var t={};u(t,c(f()));var l=class{_onDidChange=new t.Emitter;_diagnosticsOptions;_modeConfiguration;_languageId;constructor(e,n,a){this._languageId=e,this.setDiagnosticsOptions(n),this.setModeConfiguration(a)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},j={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},S={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},d=new l("json",j,S);t.languages.json={jsonDefaults:d};function _(){return new Promise((o,e)=>{g(["vs/language/json/jsonMode"],o,e)})}t.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});t.languages.onLanguage("json",()=>{_().then(o=>o.setupMode(d))});return O(R);})();
|
||
return moduleExports;
|
||
});
|
||
|
||
"use strict";/*!-----------------------------------------------------------------------------
|
||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||
* Version: 0.36.1(6c56744c3419458f0dd48864520b759d1a3a1ca8)
|
||
* 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"],(require)=>{
|
||
var moduleExports=(()=>{var N=Object.create;var m=Object.defineProperty;var M=Object.getOwnPropertyDescriptor;var H=Object.getOwnPropertyNames;var R=Object.getPrototypeOf,F=Object.prototype.hasOwnProperty;var c=(n=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(n,{get:(e,t)=>(typeof require!="undefined"?require:e)[t]}):n)(function(n){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+n+'" is not supported')});var w=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports),A=(n,e)=>{for(var t in e)m(n,t,{get:e[t],enumerable:!0})},g=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of H(e))!F.call(n,r)&&r!==t&&m(n,r,{get:()=>e[r],enumerable:!(i=M(e,r))||i.enumerable});return n},D=(n,e,t)=>(g(n,e,"default"),t&&g(t,e,"default")),C=(n,e,t)=>(t=n!=null?N(R(n)):{},g(e||!n||!n.__esModule?m(t,"default",{value:n,enumerable:!0}):t,n)),W=n=>g(m({},"__esModule",{value:!0}),n);var I=w((q,E)=>{var V=C(c("vs/editor/editor.api"));E.exports=V});var j={};A(j,{JsxEmit:()=>f,ModuleKind:()=>b,ModuleResolutionKind:()=>O,NewLineKind:()=>y,ScriptTarget:()=>h,getJavaScriptWorker:()=>k,getTypeScriptWorker:()=>P,javascriptDefaults:()=>v,typescriptDefaults:()=>x,typescriptVersion:()=>_});var L="4.5.5";var l={};D(l,C(I()));var b=(s=>(s[s.None=0]="None",s[s.CommonJS=1]="CommonJS",s[s.AMD=2]="AMD",s[s.UMD=3]="UMD",s[s.System=4]="System",s[s.ES2015=5]="ES2015",s[s.ESNext=99]="ESNext",s))(b||{}),f=(a=>(a[a.None=0]="None",a[a.Preserve=1]="Preserve",a[a.React=2]="React",a[a.ReactNative=3]="ReactNative",a[a.ReactJSX=4]="ReactJSX",a[a.ReactJSXDev=5]="ReactJSXDev",a))(f||{}),y=(t=>(t[t.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",t[t.LineFeed=1]="LineFeed",t))(y||{}),h=(o=>(o[o.ES3=0]="ES3",o[o.ES5=1]="ES5",o[o.ES2015=2]="ES2015",o[o.ES2016=3]="ES2016",o[o.ES2017=4]="ES2017",o[o.ES2018=5]="ES2018",o[o.ES2019=6]="ES2019",o[o.ES2020=7]="ES2020",o[o.ESNext=99]="ESNext",o[o.JSON=100]="JSON",o[o.Latest=99]="Latest",o))(h||{}),O=(t=>(t[t.Classic=1]="Classic",t[t.NodeJs=2]="NodeJs",t))(O||{}),d=class{_onDidChange=new l.Emitter;_onDidExtraLibsChange=new l.Emitter;_extraLibs;_removedExtraLibs;_eagerModelSync;_compilerOptions;_diagnosticsOptions;_workerOptions;_onDidExtraLibsChangeTimeout;_inlayHintsOptions;_modeConfiguration;constructor(e,t,i,r,p){this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this.setWorkerOptions(i),this.setInlayHintsOptions(r),this.setModeConfiguration(p),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(e,t){let i;if(typeof t>"u"?i=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:i=t,this._extraLibs[i]&&this._extraLibs[i].content===e)return{dispose:()=>{}};let r=1;return this._removedExtraLibs[i]&&(r=this._removedExtraLibs[i]+1),this._extraLibs[i]&&(r=this._extraLibs[i].version+1),this._extraLibs[i]={content:e,version:r},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let p=this._extraLibs[i];!p||p.version===r&&(delete this._extraLibs[i],this._removedExtraLibs[i]=r,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(e){for(let t in this._extraLibs)this._removedExtraLibs[t]=this._extraLibs[t].version;if(this._extraLibs=Object.create(null),e&&e.length>0)for(let t of e){let i=t.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,r=t.content,p=1;this._removedExtraLibs[i]&&(p=this._removedExtraLibs[i]+1),this._extraLibs[i]={content:r,version:p}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(e){this._compilerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(e){this._workerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(e){this._inlayHintsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(e){}setEagerModelSync(e){this._eagerModelSync=e}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(void 0)}},_=L,S={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},x=new d({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},S),v=new d({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},S),P=()=>u().then(n=>n.getTypeScriptWorker()),k=()=>u().then(n=>n.getJavaScriptWorker());l.languages.typescript={ModuleKind:b,JsxEmit:f,NewLineKind:y,ScriptTarget:h,ModuleResolutionKind:O,typescriptVersion:_,typescriptDefaults:x,javascriptDefaults:v,getTypeScriptWorker:P,getJavaScriptWorker:k};function u(){return new Promise((n,e)=>{c(["vs/language/typescript/tsMode"],n,e)})}l.languages.onLanguage("typescript",()=>u().then(n=>n.setupTypeScript(x)));l.languages.onLanguage("javascript",()=>u().then(n=>n.setupJavaScript(v)));return W(j);})();
|
||
return moduleExports;
|
||
});
|
||
|
||
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(api) { return api; });
|
||
//# sourceMappingURL=../../../min-maps/vs/editor/editor.main.js.map |