;/*!node_modules/monaco-editor/esm/vs/nls.js*/ define("node_modules/monaco-editor/esm/vs/nls",function(e,n){"use strict";function r(e,n){var r;return r=0===n.length?e:e.replace(/\{(\d+)\}/g,function(e,r){var t=r[0];return"undefined"!=typeof n[t]?n[t]:e})}function t(e,n){for(var t=[],o=2;oe;e++)if(!t(r[e],n[e]))return!1;return!0}function u(r,n,t){for(var e=0,i=r.length-1;i>=e;){var u=(e+i)/2|0,f=t(r[u],n);if(0>f)e=u+1;else{if(!(f>0))return u;i=u-1}}return-(e+1)}function f(r,n){var t=0,e=r.length;if(0===e)return 0;for(;e>t;){var i=Math.floor((t+e)/2);n(r[i])?e=i:t=i+1}return t}function o(r,n){return c(r,n,0,r.length-1,[]),r}function a(r,n,t,e,i,u){for(var f=t,o=e+1,a=t;i>=a;a++)u[a]=r[a];for(var a=t;i>=a;a++)r[a]=f>e?u[o++]:o>i?u[f++]:n(u[o],u[f])<0?u[o++]:u[f++]}function c(r,n,t,e,i){if(!(t>=e)){var u=t+(e-t)/2|0;c(r,n,t,u,i),c(r,n,u+1,e,i),n(r[u],r[u+1])<=0||a(r,n,t,u,e,i)}}function l(r,n){for(var t=[],e=void 0,i=0,u=o(r.slice(0),n);i0}function d(r,n){if(!n)return r.filter(function(n,t){return r.indexOf(n)===t});var t=Object.create(null);return r.filter(function(r){var e=n(r);return t[e]?!1:(t[e]=!0,!0)})}function y(r){var n=new Set;return r.filter(function(r){return n.has(r)?!1:(n.add(r),!0)})}function g(r,n){for(var t=0;te?t:r[e]}function m(r){var n;return(n=[]).concat.apply(n,r)}function A(r,n){var t="number"==typeof n?r:0;"number"==typeof n?t=r:(t=0,n=r);var e=[];if(n>=t)for(var i=t;n>i;i++)e.push(i);else for(var i=t;i>n;i--)e.push(i);return e}function b(r,n,t){var e=r.slice(0,n),i=r.slice(n);return e.concat(t,i)}function O(r,n){var t=r.indexOf(n);t>-1&&(r.splice(t,1),r.unshift(n))}function S(r,n){var t=r.indexOf(n);t>-1&&(r.splice(t,1),r.push(n))}function E(r){return Array.isArray(r)?r:[r]}Object.defineProperty(n,"__esModule",{value:!0}),n.tail=t,n.tail2=e,n.equals=i,n.binarySearch=u,n.findFirstInSorted=f,n.mergeSort=o,n.groupBy=l,n.coalesce=s,n.isFalsyOrEmpty=v,n.isNonEmptyArray=h,n.distinct=d,n.distinctES6=y,n.firstIndex=g,n.first=p,n.flatten=m,n.range=A,n.arrayInsert=b,n.pushToStart=O,n.pushToEnd=S,n.asArray=E}); ;/*!node_modules/monaco-editor/esm/vs/base/common/types.js*/ define("node_modules/monaco-editor/esm/vs/base/common/types",function(n,t){"use strict";function e(n){return Array.isArray?Array.isArray(n):n&&typeof n.length===m.number&&n.constructor===Array?!0:!1}function r(n){return typeof n===m.string||n instanceof String?!0:!1}function o(n){return!(typeof n!==m.object||null===n||Array.isArray(n)||n instanceof RegExp||n instanceof Date)}function i(n){return(typeof n===m.number||n instanceof Number)&&!isNaN(n)?!0:!1}function u(n){return n===!0||n===!1}function c(n){return typeof n===m.undefined}function f(n){return c(n)||null===n}function a(n){if(!o(n))return!1;for(var t in n)if(b.call(n,t))return!1;return!0}function s(n){return typeof n===m.function}function l(n,t){for(var e=Math.min(n.length,t.length),r=0;e>r;r++)d(n[r],t[r])}function d(n,t){if(r(t)){if(typeof n!==t)throw new Error("argument does not match constraint: typeof "+t)}else if(s(t)){try{if(n instanceof t)return}catch(e){}if(!f(n)&&n.constructor===t)return;if(1===t.length&&t.call(void 0,n)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function y(n){for(var t=[],e=Object.getPrototypeOf(n);Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}function p(n){return null===n?void 0:n}function g(n){return"undefined"==typeof n?null:n}Object.defineProperty(t,"__esModule",{value:!0});var m={number:"number",string:"string",undefined:"undefined",object:"object","function":"function"};t.isArray=e,t.isString=r,t.isObject=o,t.isNumber=i,t.isBoolean=u,t.isUndefined=c,t.isUndefinedOrNull=f;var b=Object.prototype.hasOwnProperty;t.isEmptyObject=a,t.isFunction=s,t.validateConstraints=l,t.validateConstraint=d,t.getAllPropertyNames=y,t.withNullAsUndefined=p,t.withUndefinedAsNull=g}); ;/*!node_modules/monaco-editor/esm/vs/base/common/objects.js*/ define("node_modules/monaco-editor/esm/vs/base/common/objects",function(r,e){"use strict";function n(r){if(!r||"object"!=typeof r)return r;if(r instanceof RegExp)return r;var e=Array.isArray(r)?[]:{};return Object.keys(r).forEach(function(t){e[t]=r[t]&&"object"==typeof r[t]?n(r[t]):r[t]}),e}function t(r){if(!r||"object"!=typeof r)return r;for(var e=[r];e.length>0;){var n=e.shift();Object.freeze(n);for(var t in n)if(l.call(n,t)){var o=n[t];"object"!=typeof o||Object.isFrozen(o)||e.push(o)}}return r}function o(r,e){return i(r,e,new Set)}function i(r,e,n){if(s.isUndefinedOrNull(r))return r;var t=e(r);if("undefined"!=typeof t)return t;if(s.isArray(r)){for(var o=[],f=0,u=r;f=0,t=g.indexOf("Macintosh")>=0,n=g.indexOf("Linux")>=0,d=!0,b=navigator.language,r=b}var u=0;l&&(t?u=1:s?u=3:n&&(u=2)),o.isWindows=s,o.isMacintosh=t,o.isLinux=n,o.isNative=l,o.isWeb=d;var m="object"==typeof self?self:"object"==typeof global?global:{};o.globals=m;var v=null;o.setImmediate=i,o.OS=t?2:s?1:3}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/model/wordHelper.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/model/wordHelper",function(e,n){"use strict";function r(e){void 0===e&&(e="");for(var r="(-?\\d*\\.\\d\\w*)|([^",t=0,o=n.USUAL_WORD_SEPARATORS;t=0||(r+="\\"+d)}return r+="\\s]+)",new RegExp(r,"g")}function t(e){var r=n.DEFAULT_WORD_REGEXP;if(e&&e instanceof RegExp)if(e.global)r=e;else{var t="g";e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),r=new RegExp(e.source,t)}return r.lastIndex=0,r}function o(e,n,r,t){var o=e-1-t,d=r.lastIndexOf(" ",o-1)+1;n.lastIndex=d;for(var l;l=n.exec(r);){var i=l.index||0;if(o>=i&&n.lastIndex>=o)return{word:l[0],startColumn:t+1+i,endColumn:t+1+n.lastIndex}}return null}function d(e,n,r,t){var o=e-1-t;n.lastIndex=0;for(var d;d=n.exec(r);){var l=d.index||0;if(l>o)return null;if(n.lastIndex>=o)return{word:d[0],startColumn:t+1+l,endColumn:t+1+n.lastIndex}}return null}function l(e,n,r,t){n.lastIndex=0;var l=n.exec(r);if(!l)return null;var i=l[0].indexOf(" ")>=0?d(e,n,r,t):o(e,n,r,t);return n.lastIndex=0,i}Object.defineProperty(n,"__esModule",{value:!0}),n.USUAL_WORD_SEPARATORS="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?",n.DEFAULT_WORD_REGEXP=r(),n.ensureValidWordDefinition=t,n.getWordAtText=l}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/config/editorOptions.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/config/editorOptions",function(e,i){"use strict";function r(e){if(1===e)return"blink";if(4===e)return"expand";if(3===e)return"phase";if(2===e)return"smooth";if(5===e)return"solid";throw new Error("blinkingStyleToString: Unknown blinkingStyle")}function t(e){if(e===i.TextEditorCursorStyle.Line)return"line";if(e===i.TextEditorCursorStyle.Block)return"block";if(e===i.TextEditorCursorStyle.Underline)return"underline";if(e===i.TextEditorCursorStyle.LineThin)return"line-thin";if(e===i.TextEditorCursorStyle.BlockOutline)return"block-outline";if(e===i.TextEditorCursorStyle.UnderlineThin)return"underline-thin";throw new Error("cursorStyleToString: Unknown cursorStyle")}function o(e,r){return"string"!=typeof e?r:"line"===e?i.TextEditorCursorStyle.Line:"block"===e?i.TextEditorCursorStyle.Block:"underline"===e?i.TextEditorCursorStyle.Underline:"line-thin"===e?i.TextEditorCursorStyle.LineThin:"block-outline"===e?i.TextEditorCursorStyle.BlockOutline:"underline-thin"===e?i.TextEditorCursorStyle.UnderlineThin:i.TextEditorCursorStyle.Line}function n(e,i){return"undefined"==typeof e?i:"false"===e?!1:Boolean(e)}function a(e,i){if(!e)return i;for(var r=Object.create(null),t=0,o=Object.keys(e);tr;r++){i=arguments[r];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},f.apply(this,arguments)},m=p.__importStar(e("node_modules/monaco-editor/esm/vs/nls")),S=p.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/arrays")),b=p.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/objects")),w=p.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/platform")),y=e("node_modules/monaco-editor/esm/vs/editor/common/model/wordHelper"),v=e("node_modules/monaco-editor/esm/vs/base/common/types");i.blinkingStyleToString=r,function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(i.TextEditorCursorStyle||(i.TextEditorCursorStyle={})),i.cursorStyleToString=t;var C=function(){function e(e){this.canUseLayerHinting=e.canUseLayerHinting,this.pixelRatio=e.pixelRatio,this.editorClassName=e.editorClassName,this.lineHeight=0|e.lineHeight,this.readOnly=e.readOnly,this.accessibilitySupport=e.accessibilitySupport,this.multiCursorModifier=e.multiCursorModifier,this.multiCursorMergeOverlapping=e.multiCursorMergeOverlapping,this.wordSeparators=e.wordSeparators,this.autoClosingBrackets=e.autoClosingBrackets,this.autoClosingQuotes=e.autoClosingQuotes,this.autoSurround=e.autoSurround,this.autoIndent=e.autoIndent,this.useTabStops=e.useTabStops,this.tabFocusMode=e.tabFocusMode,this.dragAndDrop=e.dragAndDrop,this.emptySelectionClipboard=e.emptySelectionClipboard,this.copyWithSyntaxHighlighting=e.copyWithSyntaxHighlighting,this.layoutInfo=e.layoutInfo,this.fontInfo=e.fontInfo,this.viewInfo=e.viewInfo,this.wrappingInfo=e.wrappingInfo,this.contribInfo=e.contribInfo,this.showUnused=e.showUnused}return e.prototype.equals=function(i){return this.canUseLayerHinting===i.canUseLayerHinting&&this.pixelRatio===i.pixelRatio&&this.editorClassName===i.editorClassName&&this.lineHeight===i.lineHeight&&this.readOnly===i.readOnly&&this.accessibilitySupport===i.accessibilitySupport&&this.multiCursorModifier===i.multiCursorModifier&&this.multiCursorMergeOverlapping===i.multiCursorMergeOverlapping&&this.wordSeparators===i.wordSeparators&&this.autoClosingBrackets===i.autoClosingBrackets&&this.autoClosingQuotes===i.autoClosingQuotes&&this.autoSurround===i.autoSurround&&this.autoIndent===i.autoIndent&&this.useTabStops===i.useTabStops&&this.tabFocusMode===i.tabFocusMode&&this.dragAndDrop===i.dragAndDrop&&this.showUnused===i.showUnused&&this.emptySelectionClipboard===i.emptySelectionClipboard&&this.copyWithSyntaxHighlighting===i.copyWithSyntaxHighlighting&&e._equalsLayoutInfo(this.layoutInfo,i.layoutInfo)&&this.fontInfo.equals(i.fontInfo)&&e._equalsViewOptions(this.viewInfo,i.viewInfo)&&e._equalsWrappingInfo(this.wrappingInfo,i.wrappingInfo)&&e._equalsContribOptions(this.contribInfo,i.contribInfo)},e.prototype.createChangeEvent=function(i){return{canUseLayerHinting:this.canUseLayerHinting!==i.canUseLayerHinting,pixelRatio:this.pixelRatio!==i.pixelRatio,editorClassName:this.editorClassName!==i.editorClassName,lineHeight:this.lineHeight!==i.lineHeight,readOnly:this.readOnly!==i.readOnly,accessibilitySupport:this.accessibilitySupport!==i.accessibilitySupport,multiCursorModifier:this.multiCursorModifier!==i.multiCursorModifier,multiCursorMergeOverlapping:this.multiCursorMergeOverlapping!==i.multiCursorMergeOverlapping,wordSeparators:this.wordSeparators!==i.wordSeparators,autoClosingBrackets:this.autoClosingBrackets!==i.autoClosingBrackets,autoClosingQuotes:this.autoClosingQuotes!==i.autoClosingQuotes,autoSurround:this.autoSurround!==i.autoSurround,autoIndent:this.autoIndent!==i.autoIndent,useTabStops:this.useTabStops!==i.useTabStops,tabFocusMode:this.tabFocusMode!==i.tabFocusMode,dragAndDrop:this.dragAndDrop!==i.dragAndDrop,emptySelectionClipboard:this.emptySelectionClipboard!==i.emptySelectionClipboard,copyWithSyntaxHighlighting:this.copyWithSyntaxHighlighting!==i.copyWithSyntaxHighlighting,layoutInfo:!e._equalsLayoutInfo(this.layoutInfo,i.layoutInfo),fontInfo:!this.fontInfo.equals(i.fontInfo),viewInfo:!e._equalsViewOptions(this.viewInfo,i.viewInfo),wrappingInfo:!e._equalsWrappingInfo(this.wrappingInfo,i.wrappingInfo),contribInfo:!e._equalsContribOptions(this.contribInfo,i.contribInfo)}},e._equalsLayoutInfo=function(e,i){return e.width===i.width&&e.height===i.height&&e.glyphMarginLeft===i.glyphMarginLeft&&e.glyphMarginWidth===i.glyphMarginWidth&&e.glyphMarginHeight===i.glyphMarginHeight&&e.lineNumbersLeft===i.lineNumbersLeft&&e.lineNumbersWidth===i.lineNumbersWidth&&e.lineNumbersHeight===i.lineNumbersHeight&&e.decorationsLeft===i.decorationsLeft&&e.decorationsWidth===i.decorationsWidth&&e.decorationsHeight===i.decorationsHeight&&e.contentLeft===i.contentLeft&&e.contentWidth===i.contentWidth&&e.contentHeight===i.contentHeight&&e.renderMinimap===i.renderMinimap&&e.minimapLeft===i.minimapLeft&&e.minimapWidth===i.minimapWidth&&e.viewportColumn===i.viewportColumn&&e.verticalScrollbarWidth===i.verticalScrollbarWidth&&e.horizontalScrollbarHeight===i.horizontalScrollbarHeight&&this._equalsOverviewRuler(e.overviewRuler,i.overviewRuler)},e._equalsOverviewRuler=function(e,i){return e.width===i.width&&e.height===i.height&&e.top===i.top&&e.right===i.right},e._equalsViewOptions=function(e,i){return e.extraEditorClassName===i.extraEditorClassName&&e.disableMonospaceOptimizations===i.disableMonospaceOptimizations&&S.equals(e.rulers,i.rulers)&&e.ariaLabel===i.ariaLabel&&e.renderLineNumbers===i.renderLineNumbers&&e.renderCustomLineNumbers===i.renderCustomLineNumbers&&e.renderFinalNewline===i.renderFinalNewline&&e.selectOnLineNumbers===i.selectOnLineNumbers&&e.glyphMargin===i.glyphMargin&&e.revealHorizontalRightPadding===i.revealHorizontalRightPadding&&e.roundedSelection===i.roundedSelection&&e.overviewRulerLanes===i.overviewRulerLanes&&e.overviewRulerBorder===i.overviewRulerBorder&&e.cursorBlinking===i.cursorBlinking&&e.mouseWheelZoom===i.mouseWheelZoom&&e.cursorSmoothCaretAnimation===i.cursorSmoothCaretAnimation&&e.cursorStyle===i.cursorStyle&&e.cursorWidth===i.cursorWidth&&e.hideCursorInOverviewRuler===i.hideCursorInOverviewRuler&&e.scrollBeyondLastLine===i.scrollBeyondLastLine&&e.scrollBeyondLastColumn===i.scrollBeyondLastColumn&&e.smoothScrolling===i.smoothScrolling&&e.stopRenderingLineAfter===i.stopRenderingLineAfter&&e.renderWhitespace===i.renderWhitespace&&e.renderControlCharacters===i.renderControlCharacters&&e.fontLigatures===i.fontLigatures&&e.renderIndentGuides===i.renderIndentGuides&&e.highlightActiveIndentGuide===i.highlightActiveIndentGuide&&e.renderLineHighlight===i.renderLineHighlight&&this._equalsScrollbarOptions(e.scrollbar,i.scrollbar)&&this._equalsMinimapOptions(e.minimap,i.minimap)&&e.fixedOverflowWidgets===i.fixedOverflowWidgets},e._equalsScrollbarOptions=function(e,i){return e.arrowSize===i.arrowSize&&e.vertical===i.vertical&&e.horizontal===i.horizontal&&e.useShadows===i.useShadows&&e.verticalHasArrows===i.verticalHasArrows&&e.horizontalHasArrows===i.horizontalHasArrows&&e.handleMouseWheel===i.handleMouseWheel&&e.horizontalScrollbarSize===i.horizontalScrollbarSize&&e.horizontalSliderSize===i.horizontalSliderSize&&e.verticalScrollbarSize===i.verticalScrollbarSize&&e.verticalSliderSize===i.verticalSliderSize&&e.mouseWheelScrollSensitivity===i.mouseWheelScrollSensitivity&&e.fastScrollSensitivity===i.fastScrollSensitivity},e._equalsMinimapOptions=function(e,i){return e.enabled===i.enabled&&e.side===i.side&&e.showSlider===i.showSlider&&e.renderCharacters===i.renderCharacters&&e.maxColumn===i.maxColumn},e._equalFindOptions=function(e,i){return e.seedSearchStringFromSelection===i.seedSearchStringFromSelection&&e.autoFindInSelection===i.autoFindInSelection&&e.globalFindClipboard===i.globalFindClipboard&&e.addExtraSpaceOnTop===i.addExtraSpaceOnTop},e._equalsParameterHintOptions=function(e,i){return e.enabled===i.enabled&&e.cycle===i.cycle},e._equalsHoverOptions=function(e,i){return e.enabled===i.enabled&&e.delay===i.delay&&e.sticky===i.sticky},e._equalsSuggestOptions=function(e,i){return e===i?!0:e&&i?e.filterGraceful===i.filterGraceful&&e.snippets===i.snippets&&e.snippetsPreventQuickSuggestions===i.snippetsPreventQuickSuggestions&&e.localityBonus===i.localityBonus&&e.shareSuggestSelections===i.shareSuggestSelections&&e.showIcons===i.showIcons&&e.maxVisibleSuggestions===i.maxVisibleSuggestions&&b.equals(e.filteredTypes,i.filteredTypes):!1},e._equalsGotoLocationOptions=function(e,i){return e===i?!0:e&&i?e.multiple===i.multiple:!1},e._equalsWrappingInfo=function(e,i){return e.inDiffEditor===i.inDiffEditor&&e.isDominatedByLongLines===i.isDominatedByLongLines&&e.isWordWrapMinified===i.isWordWrapMinified&&e.isViewportWrapping===i.isViewportWrapping&&e.wrappingColumn===i.wrappingColumn&&e.wrappingIndent===i.wrappingIndent&&e.wordWrapBreakBeforeCharacters===i.wordWrapBreakBeforeCharacters&&e.wordWrapBreakAfterCharacters===i.wordWrapBreakAfterCharacters&&e.wordWrapBreakObtrusiveCharacters===i.wordWrapBreakObtrusiveCharacters},e._equalsContribOptions=function(i,r){return i.selectionClipboard===r.selectionClipboard&&this._equalsHoverOptions(i.hover,r.hover)&&i.links===r.links&&i.contextmenu===r.contextmenu&&e._equalsQuickSuggestions(i.quickSuggestions,r.quickSuggestions)&&i.quickSuggestionsDelay===r.quickSuggestionsDelay&&this._equalsParameterHintOptions(i.parameterHints,r.parameterHints)&&i.formatOnType===r.formatOnType&&i.formatOnPaste===r.formatOnPaste&&i.suggestOnTriggerCharacters===r.suggestOnTriggerCharacters&&i.acceptSuggestionOnEnter===r.acceptSuggestionOnEnter&&i.acceptSuggestionOnCommitCharacter===r.acceptSuggestionOnCommitCharacter&&i.wordBasedSuggestions===r.wordBasedSuggestions&&i.suggestSelection===r.suggestSelection&&i.suggestFontSize===r.suggestFontSize&&i.suggestLineHeight===r.suggestLineHeight&&i.tabCompletion===r.tabCompletion&&this._equalsSuggestOptions(i.suggest,r.suggest)&&e._equalsGotoLocationOptions(i.gotoLocation,r.gotoLocation)&&i.selectionHighlight===r.selectionHighlight&&i.occurrencesHighlight===r.occurrencesHighlight&&i.codeLens===r.codeLens&&i.folding===r.folding&&i.foldingStrategy===r.foldingStrategy&&i.showFoldingControls===r.showFoldingControls&&i.matchBrackets===r.matchBrackets&&this._equalFindOptions(i.find,r.find)&&i.colorDecorators===r.colorDecorators&&b.equals(i.codeActionsOnSave,r.codeActionsOnSave)&&i.codeActionsOnSaveTimeout===r.codeActionsOnSaveTimeout&&i.lightbulbEnabled===r.lightbulbEnabled},e._equalsQuickSuggestions=function(e,i){return"boolean"==typeof e?"boolean"!=typeof i?!1:e===i:"boolean"==typeof i?!1:e.comments===i.comments&&e.other===i.other&&e.strings===i.strings},e}();i.InternalEditorOptions=C;var I=function(){function e(){}return e.validate=function(e,i){var r=e.wordWrap;r===!0?r="on":r===!1&&(r="off"),r=l(r,i.wordWrap,["off","on","wordWrapColumn","bounded"]);var t=this._sanitizeViewInfo(e,i.viewInfo),o=this._sanitizeContribInfo(e,i.contribInfo),a=void 0;"string"==typeof e.multiCursorModifier&&(a="ctrlCmd"===e.multiCursorModifier?w.isMacintosh?"metaKey":"ctrlKey":"altKey");var d,g,h,p=l(a,i.multiCursorModifier,["altKey","metaKey","ctrlKey"]);return"boolean"==typeof e.autoClosingBrackets&&e.autoClosingBrackets===!1?(d="never",g="never",h="never"):(d=l(e.autoClosingBrackets,i.autoClosingBrackets,["always","languageDefined","beforeWhitespace","never"]),g=l(e.autoClosingQuotes,i.autoClosingQuotes,["always","languageDefined","beforeWhitespace","never"]),h=l(e.autoSurround,i.autoSurround,["languageDefined","brackets","quotes","never"])),{inDiffEditor:n(e.inDiffEditor,i.inDiffEditor),wordSeparators:s(e.wordSeparators,i.wordSeparators),lineNumbersMinChars:u(e.lineNumbersMinChars,i.lineNumbersMinChars,1,10),lineDecorationsWidth:"undefined"==typeof e.lineDecorationsWidth?i.lineDecorationsWidth:e.lineDecorationsWidth,readOnly:n(e.readOnly,i.readOnly),mouseStyle:l(e.mouseStyle,i.mouseStyle,["text","default","copy"]),disableLayerHinting:n(e.disableLayerHinting,i.disableLayerHinting),automaticLayout:n(e.automaticLayout,i.automaticLayout),wordWrap:r,wordWrapColumn:u(e.wordWrapColumn,i.wordWrapColumn,1,1073741824),wordWrapMinified:n(e.wordWrapMinified,i.wordWrapMinified),wrappingIndent:c(e.wrappingIndent,i.wrappingIndent),wordWrapBreakBeforeCharacters:s(e.wordWrapBreakBeforeCharacters,i.wordWrapBreakBeforeCharacters),wordWrapBreakAfterCharacters:s(e.wordWrapBreakAfterCharacters,i.wordWrapBreakAfterCharacters),wordWrapBreakObtrusiveCharacters:s(e.wordWrapBreakObtrusiveCharacters,i.wordWrapBreakObtrusiveCharacters),autoClosingBrackets:d,autoClosingQuotes:g,autoSurround:h,autoIndent:n(e.autoIndent,i.autoIndent),dragAndDrop:n(e.dragAndDrop,i.dragAndDrop),emptySelectionClipboard:n(e.emptySelectionClipboard,i.emptySelectionClipboard),copyWithSyntaxHighlighting:n(e.copyWithSyntaxHighlighting,i.copyWithSyntaxHighlighting),useTabStops:n(e.useTabStops,i.useTabStops),multiCursorModifier:p,multiCursorMergeOverlapping:n(e.multiCursorMergeOverlapping,i.multiCursorMergeOverlapping),accessibilitySupport:l(e.accessibilitySupport,i.accessibilitySupport,["auto","on","off"]),showUnused:n(e.showUnused,i.showUnused),viewInfo:t,contribInfo:o}},e._sanitizeScrollbarOpts=function(e,i,r,t){if("object"!=typeof e)return i;var o=u(e.horizontalScrollbarSize,i.horizontalScrollbarSize,0,1e3),a=u(e.verticalScrollbarSize,i.verticalScrollbarSize,0,1e3);return{vertical:h(e.vertical,i.vertical),horizontal:h(e.horizontal,i.horizontal),arrowSize:u(e.arrowSize,i.arrowSize,0,1e3),useShadows:n(e.useShadows,i.useShadows),verticalHasArrows:n(e.verticalHasArrows,i.verticalHasArrows),horizontalHasArrows:n(e.horizontalHasArrows,i.horizontalHasArrows),horizontalScrollbarSize:o,horizontalSliderSize:u(e.horizontalSliderSize,o,0,1e3),verticalScrollbarSize:a,verticalSliderSize:u(e.verticalSliderSize,a,0,1e3),handleMouseWheel:n(e.handleMouseWheel,i.handleMouseWheel),mouseWheelScrollSensitivity:r,fastScrollSensitivity:t}},e._sanitizeMinimapOpts=function(e,i){return"object"!=typeof e?i:{enabled:n(e.enabled,i.enabled),side:l(e.side,i.side,["right","left"]),showSlider:l(e.showSlider,i.showSlider,["always","mouseover"]),renderCharacters:n(e.renderCharacters,i.renderCharacters),maxColumn:u(e.maxColumn,i.maxColumn,1,1e4)}},e._sanitizeFindOpts=function(e,i){return"object"!=typeof e?i:{seedSearchStringFromSelection:n(e.seedSearchStringFromSelection,i.seedSearchStringFromSelection),autoFindInSelection:n(e.autoFindInSelection,i.autoFindInSelection),globalFindClipboard:n(e.globalFindClipboard,i.globalFindClipboard),addExtraSpaceOnTop:n(e.addExtraSpaceOnTop,i.addExtraSpaceOnTop)}},e._sanitizeParameterHintOpts=function(e,i){return"object"!=typeof e?i:{enabled:n(e.enabled,i.enabled),cycle:n(e.cycle,i.cycle)}},e._sanitizeHoverOpts=function(e,i){var r;if("boolean"==typeof e)r={enabled:e};else{if("object"!=typeof e)return i;r=e}return{enabled:n(r.enabled,i.enabled),delay:u(r.delay,i.delay,0,1e4),sticky:n(r.sticky,i.sticky)}},e._sanitizeSuggestOpts=function(e,i){var r=e.suggest||{};return{filterGraceful:n(r.filterGraceful,i.filterGraceful),snippets:l(e.snippetSuggestions,i.snippets,["top","bottom","inline","none"]),snippetsPreventQuickSuggestions:n(r.snippetsPreventQuickSuggestions,i.filterGraceful),localityBonus:n(r.localityBonus,i.localityBonus),shareSuggestSelections:n(r.shareSuggestSelections,i.shareSuggestSelections),showIcons:n(r.showIcons,i.showIcons),maxVisibleSuggestions:u(r.maxVisibleSuggestions,i.maxVisibleSuggestions,1,15),filteredTypes:v.isObject(r.filteredTypes)?r.filteredTypes:Object.create(null)}},e._sanitizeGotoLocationOpts=function(e,i){var r=e.gotoLocation||{};return{multiple:l(r.multiple,i.multiple,["peek","gotoAndPeek","goto"])}},e._sanitizeTabCompletionOpts=function(e,i){return e===!1?"off":e===!0?"onlySnippets":l(e,i,["on","off","onlySnippets"])},e._sanitizeViewInfo=function(e,i){var r=[];if(Array.isArray(e.rulers)){for(var t=0,a=e.rulers.length;a>t;t++)r.push(u(e.rulers[t],0,0,1e4));r.sort()}var c=i.renderLineNumbers,h=i.renderCustomLineNumbers;if("undefined"!=typeof e.lineNumbers){var p=e.lineNumbers;p===!0?p="on":p===!1&&(p="off"),"function"==typeof p?(c=4,h=p):c="interval"===p?3:"relative"===p?2:"on"===p?1:0}var f=n(e.fontLigatures,i.fontLigatures),m=n(e.disableMonospaceOptimizations,i.disableMonospaceOptimizations)||f,S=e.renderWhitespace;S===!0?S="boundary":S===!1&&(S="none"),S=l(S,i.renderWhitespace,["none","boundary","all"]);var b=e.renderLineHighlight;b===!0?b="line":b===!1&&(b="none"),b=l(b,i.renderLineHighlight,["none","gutter","line","all"]);var w=d(e.mouseWheelScrollSensitivity,i.scrollbar.mouseWheelScrollSensitivity);0===w&&(w=1);var y=d(e.fastScrollSensitivity,i.scrollbar.fastScrollSensitivity);0>=y&&(y=i.scrollbar.fastScrollSensitivity);var v=this._sanitizeScrollbarOpts(e.scrollbar,i.scrollbar,w,y),C=this._sanitizeMinimapOpts(e.minimap,i.minimap);return{extraEditorClassName:s(e.extraEditorClassName,i.extraEditorClassName),disableMonospaceOptimizations:m,rulers:r,ariaLabel:s(e.ariaLabel,i.ariaLabel),renderLineNumbers:c,renderCustomLineNumbers:h,renderFinalNewline:n(e.renderFinalNewline,i.renderFinalNewline),selectOnLineNumbers:n(e.selectOnLineNumbers,i.selectOnLineNumbers),glyphMargin:n(e.glyphMargin,i.glyphMargin),revealHorizontalRightPadding:u(e.revealHorizontalRightPadding,i.revealHorizontalRightPadding,0,1e3),roundedSelection:n(e.roundedSelection,i.roundedSelection),overviewRulerLanes:u(e.overviewRulerLanes,i.overviewRulerLanes,0,3),overviewRulerBorder:n(e.overviewRulerBorder,i.overviewRulerBorder),cursorBlinking:g(e.cursorBlinking,i.cursorBlinking),mouseWheelZoom:n(e.mouseWheelZoom,i.mouseWheelZoom),cursorSmoothCaretAnimation:n(e.cursorSmoothCaretAnimation,i.cursorSmoothCaretAnimation),cursorStyle:o(e.cursorStyle,i.cursorStyle),cursorWidth:u(e.cursorWidth,i.cursorWidth,0,Number.MAX_VALUE),hideCursorInOverviewRuler:n(e.hideCursorInOverviewRuler,i.hideCursorInOverviewRuler),scrollBeyondLastLine:n(e.scrollBeyondLastLine,i.scrollBeyondLastLine),scrollBeyondLastColumn:u(e.scrollBeyondLastColumn,i.scrollBeyondLastColumn,0,1073741824),smoothScrolling:n(e.smoothScrolling,i.smoothScrolling),stopRenderingLineAfter:u(e.stopRenderingLineAfter,i.stopRenderingLineAfter,-1,1073741824),renderWhitespace:S,renderControlCharacters:n(e.renderControlCharacters,i.renderControlCharacters),fontLigatures:f,renderIndentGuides:n(e.renderIndentGuides,i.renderIndentGuides),highlightActiveIndentGuide:n(e.highlightActiveIndentGuide,i.highlightActiveIndentGuide),renderLineHighlight:b,scrollbar:v,minimap:C,fixedOverflowWidgets:n(e.fixedOverflowWidgets,i.fixedOverflowWidgets)}},e._sanitizeContribInfo=function(e,i){var r;r="object"==typeof e.quickSuggestions?f({other:!0},e.quickSuggestions):n(e.quickSuggestions,i.quickSuggestions),"boolean"==typeof e.acceptSuggestionOnEnter&&(e.acceptSuggestionOnEnter=e.acceptSuggestionOnEnter?"on":"off");var t=this._sanitizeFindOpts(e.find,i.find);return{selectionClipboard:n(e.selectionClipboard,i.selectionClipboard),hover:this._sanitizeHoverOpts(e.hover,i.hover),links:n(e.links,i.links),contextmenu:n(e.contextmenu,i.contextmenu),quickSuggestions:r,quickSuggestionsDelay:u(e.quickSuggestionsDelay,i.quickSuggestionsDelay,-1073741824,1073741824),parameterHints:this._sanitizeParameterHintOpts(e.parameterHints,i.parameterHints),formatOnType:n(e.formatOnType,i.formatOnType),formatOnPaste:n(e.formatOnPaste,i.formatOnPaste),suggestOnTriggerCharacters:n(e.suggestOnTriggerCharacters,i.suggestOnTriggerCharacters),acceptSuggestionOnEnter:l(e.acceptSuggestionOnEnter,i.acceptSuggestionOnEnter,["on","smart","off"]),acceptSuggestionOnCommitCharacter:n(e.acceptSuggestionOnCommitCharacter,i.acceptSuggestionOnCommitCharacter),wordBasedSuggestions:n(e.wordBasedSuggestions,i.wordBasedSuggestions),suggestSelection:l(e.suggestSelection,i.suggestSelection,["first","recentlyUsed","recentlyUsedByPrefix"]),suggestFontSize:u(e.suggestFontSize,i.suggestFontSize,0,1e3),suggestLineHeight:u(e.suggestLineHeight,i.suggestLineHeight,0,1e3),tabCompletion:this._sanitizeTabCompletionOpts(e.tabCompletion,i.tabCompletion),suggest:this._sanitizeSuggestOpts(e,i.suggest),gotoLocation:this._sanitizeGotoLocationOpts(e,i.gotoLocation),selectionHighlight:n(e.selectionHighlight,i.selectionHighlight),occurrencesHighlight:n(e.occurrencesHighlight,i.occurrencesHighlight),codeLens:n(e.codeLens,i.codeLens),folding:n(e.folding,i.folding),foldingStrategy:l(e.foldingStrategy,i.foldingStrategy,["auto","indentation"]),showFoldingControls:l(e.showFoldingControls,i.showFoldingControls,["always","mouseover"]),matchBrackets:n(e.matchBrackets,i.matchBrackets),find:t,colorDecorators:n(e.colorDecorators,i.colorDecorators),lightbulbEnabled:n(e.lightbulb?e.lightbulb.enabled:!1,i.lightbulbEnabled),codeActionsOnSave:a(e.codeActionsOnSave,{}),codeActionsOnSaveTimeout:u(e.codeActionsOnSaveTimeout,i.codeActionsOnSaveTimeout,1,1e4)}},e}();i.EditorOptionsValidator=I;var O=function(){function e(){}return e._tweakValidatedOptions=function(e,i){var r=2===i,t=1===i;return{inDiffEditor:e.inDiffEditor,wordSeparators:e.wordSeparators,lineNumbersMinChars:e.lineNumbersMinChars,lineDecorationsWidth:e.lineDecorationsWidth,readOnly:e.readOnly,mouseStyle:e.mouseStyle,disableLayerHinting:e.disableLayerHinting,automaticLayout:e.automaticLayout,wordWrap:e.wordWrap,wordWrapColumn:e.wordWrapColumn,wordWrapMinified:e.wordWrapMinified,wrappingIndent:e.wrappingIndent,wordWrapBreakBeforeCharacters:e.wordWrapBreakBeforeCharacters,wordWrapBreakAfterCharacters:e.wordWrapBreakAfterCharacters,wordWrapBreakObtrusiveCharacters:e.wordWrapBreakObtrusiveCharacters,autoClosingBrackets:e.autoClosingBrackets,autoClosingQuotes:e.autoClosingQuotes,autoSurround:e.autoSurround,autoIndent:e.autoIndent,dragAndDrop:e.dragAndDrop,emptySelectionClipboard:e.emptySelectionClipboard,copyWithSyntaxHighlighting:e.copyWithSyntaxHighlighting,useTabStops:e.useTabStops,multiCursorModifier:e.multiCursorModifier,multiCursorMergeOverlapping:e.multiCursorMergeOverlapping,accessibilitySupport:e.accessibilitySupport,showUnused:e.showUnused,viewInfo:{extraEditorClassName:e.viewInfo.extraEditorClassName,disableMonospaceOptimizations:e.viewInfo.disableMonospaceOptimizations,rulers:e.viewInfo.rulers,ariaLabel:t?m.localize("accessibilityOffAriaLabel","The editor is not accessible at this time. Press Alt+F1 for options."):e.viewInfo.ariaLabel,renderLineNumbers:e.viewInfo.renderLineNumbers,renderCustomLineNumbers:e.viewInfo.renderCustomLineNumbers,renderFinalNewline:e.viewInfo.renderFinalNewline,selectOnLineNumbers:e.viewInfo.selectOnLineNumbers,glyphMargin:e.viewInfo.glyphMargin,revealHorizontalRightPadding:e.viewInfo.revealHorizontalRightPadding,roundedSelection:r?!1:e.viewInfo.roundedSelection,overviewRulerLanes:e.viewInfo.overviewRulerLanes,overviewRulerBorder:e.viewInfo.overviewRulerBorder,cursorBlinking:e.viewInfo.cursorBlinking,mouseWheelZoom:e.viewInfo.mouseWheelZoom,cursorSmoothCaretAnimation:e.viewInfo.cursorSmoothCaretAnimation,cursorStyle:e.viewInfo.cursorStyle,cursorWidth:e.viewInfo.cursorWidth,hideCursorInOverviewRuler:e.viewInfo.hideCursorInOverviewRuler,scrollBeyondLastLine:e.viewInfo.scrollBeyondLastLine,scrollBeyondLastColumn:e.viewInfo.scrollBeyondLastColumn,smoothScrolling:e.viewInfo.smoothScrolling,stopRenderingLineAfter:e.viewInfo.stopRenderingLineAfter,renderWhitespace:r?"none":e.viewInfo.renderWhitespace,renderControlCharacters:r?!1:e.viewInfo.renderControlCharacters,fontLigatures:r?!1:e.viewInfo.fontLigatures,renderIndentGuides:r?!1:e.viewInfo.renderIndentGuides,highlightActiveIndentGuide:e.viewInfo.highlightActiveIndentGuide,renderLineHighlight:e.viewInfo.renderLineHighlight,scrollbar:e.viewInfo.scrollbar,minimap:{enabled:r?!1:e.viewInfo.minimap.enabled,side:e.viewInfo.minimap.side,renderCharacters:e.viewInfo.minimap.renderCharacters,showSlider:e.viewInfo.minimap.showSlider,maxColumn:e.viewInfo.minimap.maxColumn},fixedOverflowWidgets:e.viewInfo.fixedOverflowWidgets},contribInfo:{selectionClipboard:e.contribInfo.selectionClipboard,hover:e.contribInfo.hover,links:r?!1:e.contribInfo.links,contextmenu:e.contribInfo.contextmenu,quickSuggestions:e.contribInfo.quickSuggestions,quickSuggestionsDelay:e.contribInfo.quickSuggestionsDelay,parameterHints:e.contribInfo.parameterHints,formatOnType:e.contribInfo.formatOnType,formatOnPaste:e.contribInfo.formatOnPaste,suggestOnTriggerCharacters:e.contribInfo.suggestOnTriggerCharacters,acceptSuggestionOnEnter:e.contribInfo.acceptSuggestionOnEnter,acceptSuggestionOnCommitCharacter:e.contribInfo.acceptSuggestionOnCommitCharacter,wordBasedSuggestions:e.contribInfo.wordBasedSuggestions,suggestSelection:e.contribInfo.suggestSelection,suggestFontSize:e.contribInfo.suggestFontSize,suggestLineHeight:e.contribInfo.suggestLineHeight,tabCompletion:e.contribInfo.tabCompletion,suggest:e.contribInfo.suggest,gotoLocation:e.contribInfo.gotoLocation,selectionHighlight:r?!1:e.contribInfo.selectionHighlight,occurrencesHighlight:r?!1:e.contribInfo.occurrencesHighlight,codeLens:r?!1:e.contribInfo.codeLens,folding:r?!1:e.contribInfo.folding,foldingStrategy:e.contribInfo.foldingStrategy,showFoldingControls:e.contribInfo.showFoldingControls,matchBrackets:r?!1:e.contribInfo.matchBrackets,find:e.contribInfo.find,colorDecorators:e.contribInfo.colorDecorators,lightbulbEnabled:e.contribInfo.lightbulbEnabled,codeActionsOnSave:e.contribInfo.codeActionsOnSave,codeActionsOnSaveTimeout:e.contribInfo.codeActionsOnSaveTimeout}}},e.createInternalEditorOptions=function(e,i){var r;r="auto"===i.accessibilitySupport?e.accessibilitySupport:"on"===i.accessibilitySupport?2:1;var t,o=this._tweakValidatedOptions(i,r);if("string"==typeof o.lineDecorationsWidth&&/^\d+(\.\d+)?ch$/.test(o.lineDecorationsWidth)){var n=parseFloat(o.lineDecorationsWidth.substr(0,o.lineDecorationsWidth.length-2));t=n*e.fontInfo.typicalHalfwidthCharacterWidth}else t=u(o.lineDecorationsWidth,0,0,1e3);o.contribInfo.folding&&(t+=16);var a=W.compute({outerWidth:e.outerWidth,outerHeight:e.outerHeight,showGlyphMargin:o.viewInfo.glyphMargin,lineHeight:e.fontInfo.lineHeight,showLineNumbers:0!==o.viewInfo.renderLineNumbers,lineNumbersMinChars:o.lineNumbersMinChars,lineNumbersDigitCount:e.lineNumbersDigitCount,lineDecorationsWidth:t,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,verticalScrollbarWidth:o.viewInfo.scrollbar.verticalScrollbarSize,horizontalScrollbarHeight:o.viewInfo.scrollbar.horizontalScrollbarSize,scrollbarArrowSize:o.viewInfo.scrollbar.arrowSize,verticalScrollbarHasArrows:o.viewInfo.scrollbar.verticalHasArrows,minimap:o.viewInfo.minimap.enabled,minimapSide:o.viewInfo.minimap.side,minimapRenderCharacters:o.viewInfo.minimap.renderCharacters,minimapMaxColumn:o.viewInfo.minimap.maxColumn,pixelRatio:e.pixelRatio}),s=null,l=o.wordWrap,d=o.wordWrapColumn,c=o.wordWrapMinified;s=2===r?{isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1}:c&&e.isDominatedByLongLines?{isWordWrapMinified:!0,isViewportWrapping:!0,wrappingColumn:Math.max(1,a.viewportColumn)}:"on"===l?{isWordWrapMinified:!1,isViewportWrapping:!0,wrappingColumn:Math.max(1,a.viewportColumn)}:"bounded"===l?{isWordWrapMinified:!1,isViewportWrapping:!0,wrappingColumn:Math.min(Math.max(1,a.viewportColumn),d)}:"wordWrapColumn"===l?{isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:d}:{isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1};var g={inDiffEditor:o.inDiffEditor,isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:s.isWordWrapMinified,isViewportWrapping:s.isViewportWrapping,wrappingColumn:s.wrappingColumn,wrappingIndent:o.wrappingIndent,wordWrapBreakBeforeCharacters:o.wordWrapBreakBeforeCharacters,wordWrapBreakAfterCharacters:o.wordWrapBreakAfterCharacters,wordWrapBreakObtrusiveCharacters:o.wordWrapBreakObtrusiveCharacters},h="monaco-editor";return o.viewInfo.extraEditorClassName&&(h+=" "+o.viewInfo.extraEditorClassName),e.extraEditorClassName&&(h+=" "+e.extraEditorClassName),o.viewInfo.fontLigatures&&(h+=" enable-ligatures"),"default"===o.mouseStyle?h+=" mouse-default":"copy"===o.mouseStyle&&(h+=" mouse-copy"),new C({canUseLayerHinting:o.disableLayerHinting?!1:!0,pixelRatio:e.pixelRatio,editorClassName:h,lineHeight:e.fontInfo.lineHeight,readOnly:o.readOnly,accessibilitySupport:r,multiCursorModifier:o.multiCursorModifier,multiCursorMergeOverlapping:o.multiCursorMergeOverlapping,wordSeparators:o.wordSeparators,autoClosingBrackets:o.autoClosingBrackets,autoClosingQuotes:o.autoClosingQuotes,autoSurround:o.autoSurround,autoIndent:o.autoIndent,useTabStops:o.useTabStops,tabFocusMode:o.readOnly?!0:e.tabFocusMode,dragAndDrop:o.dragAndDrop,emptySelectionClipboard:o.emptySelectionClipboard&&e.emptySelectionClipboard,copyWithSyntaxHighlighting:o.copyWithSyntaxHighlighting,layoutInfo:a,fontInfo:e.fontInfo,viewInfo:o.viewInfo,wrappingInfo:g,contribInfo:o.contribInfo,showUnused:o.showUnused})},e}();i.InternalEditorOptionsFactory=O;var W=function(){function e(){}return e.compute=function(e){var i=0|e.outerWidth,r=0|e.outerHeight,t=e.showGlyphMargin,o=0|e.lineHeight,n=e.showLineNumbers,a=0|e.lineNumbersMinChars,s=0|e.lineNumbersDigitCount,l=0|e.lineDecorationsWidth,u=e.typicalHalfwidthCharacterWidth,d=e.maxDigitWidth,c=0|e.verticalScrollbarWidth,g=e.verticalScrollbarHasArrows,h=0|e.scrollbarArrowSize,p=0|e.horizontalScrollbarHeight,f=e.minimap,m=e.minimapSide,S=e.minimapRenderCharacters,b=0|e.minimapMaxColumn,w=e.pixelRatio,y=0;if(n){var v=Math.max(s,a);y=Math.round(v*d)}var C=0;t&&(C=o);var I,O,W,L,H=0,M=H+C,k=M+y,B=k+l,z=i-C-y-l;if(f){var x=void 0;w>=2?(I=S?2:4,x=2/w):(I=S?1:3,x=1/w),W=Math.max(0,Math.floor((z-c-2)*x/(u+x)));var A=W/x;A>b&&(W=Math.floor(b*x)),L=z-W,"left"===m?(O=0,H+=W,M+=W,k+=W,B+=W):O=i-W-c}else O=0,W=0,I=0,L=z;var T=Math.max(1,Math.floor((L-c-2)/u)),N=g?h:0;return{width:i,height:r,glyphMarginLeft:H,glyphMarginWidth:C,glyphMarginHeight:r,lineNumbersLeft:M,lineNumbersWidth:y,lineNumbersHeight:r,decorationsLeft:k,decorationsWidth:l,decorationsHeight:r,contentLeft:B,contentWidth:L,contentHeight:r,renderMinimap:I,minimapLeft:O,minimapWidth:W,viewportColumn:T,verticalScrollbarWidth:c,horizontalScrollbarHeight:p,overviewRuler:{top:N,width:c,height:r-2*N,right:0}} },e}();i.EditorLayoutProvider=W;var L="Consolas, 'Courier New', monospace",H="Menlo, Monaco, 'Courier New', monospace",M="'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'";i.EDITOR_FONT_DEFAULTS={fontFamily:w.isMacintosh?H:w.isLinux?M:L,fontWeight:"normal",fontSize:w.isMacintosh?12:14,lineHeight:0,letterSpacing:0},i.EDITOR_MODEL_DEFAULTS={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0},i.EDITOR_DEFAULTS={inDiffEditor:!1,wordSeparators:y.USUAL_WORD_SEPARATORS,lineNumbersMinChars:5,lineDecorationsWidth:10,readOnly:!1,mouseStyle:"text",disableLayerHinting:!1,automaticLayout:!1,wordWrap:"off",wordWrapColumn:80,wordWrapMinified:!0,wrappingIndent:1,wordWrapBreakBeforeCharacters:"([{‘“〈《「『【〔([{「£¥$£¥++",wordWrapBreakAfterCharacters:" })]?|/&,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」",wordWrapBreakObtrusiveCharacters:".",autoClosingBrackets:"languageDefined",autoClosingQuotes:"languageDefined",autoSurround:"languageDefined",autoIndent:!0,dragAndDrop:!0,emptySelectionClipboard:!0,copyWithSyntaxHighlighting:!0,useTabStops:!0,multiCursorModifier:"altKey",multiCursorMergeOverlapping:!0,accessibilitySupport:"auto",showUnused:!0,viewInfo:{extraEditorClassName:"",disableMonospaceOptimizations:!1,rulers:[],ariaLabel:m.localize("editorViewAccessibleLabel","Editor content"),renderLineNumbers:1,renderCustomLineNumbers:null,renderFinalNewline:!0,selectOnLineNumbers:!0,glyphMargin:!0,revealHorizontalRightPadding:30,roundedSelection:!0,overviewRulerLanes:2,overviewRulerBorder:!0,cursorBlinking:1,mouseWheelZoom:!1,cursorSmoothCaretAnimation:!1,cursorStyle:i.TextEditorCursorStyle.Line,cursorWidth:0,hideCursorInOverviewRuler:!1,scrollBeyondLastLine:!0,scrollBeyondLastColumn:5,smoothScrolling:!1,stopRenderingLineAfter:1e4,renderWhitespace:"none",renderControlCharacters:!1,fontLigatures:!1,renderIndentGuides:!0,highlightActiveIndentGuide:!0,renderLineHighlight:"line",scrollbar:{vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:10,horizontalSliderSize:10,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,mouseWheelScrollSensitivity:1,fastScrollSensitivity:5},minimap:{enabled:!0,side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120},fixedOverflowWidgets:!1},contribInfo:{selectionClipboard:!0,hover:{enabled:!0,delay:300,sticky:!0},links:!0,contextmenu:!0,quickSuggestions:{other:!0,comments:!1,strings:!1},quickSuggestionsDelay:10,parameterHints:{enabled:!0,cycle:!1},formatOnType:!1,formatOnPaste:!1,suggestOnTriggerCharacters:!0,acceptSuggestionOnEnter:"on",acceptSuggestionOnCommitCharacter:!0,wordBasedSuggestions:!0,suggestSelection:"recentlyUsed",suggestFontSize:0,suggestLineHeight:0,tabCompletion:"off",suggest:{filterGraceful:!0,snippets:"inline",snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,maxVisibleSuggestions:12,filteredTypes:Object.create(null)},gotoLocation:{multiple:"peek"},selectionHighlight:!0,occurrencesHighlight:!0,codeLens:!0,folding:!0,foldingStrategy:"auto",showFoldingControls:"mouseover",matchBrackets:!0,find:{seedSearchStringFromSelection:!0,autoFindInSelection:!1,globalFindClipboard:!1,addExtraSpaceOnTop:!0},colorDecorators:!0,lightbulbEnabled:!0,codeActionsOnSave:{},codeActionsOnSaveTimeout:750}}}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/standalone/promise-polyfill/polyfill.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/standalone/promise-polyfill/polyfill",function(e,n,t){!function(e,o){"object"==typeof n&&"undefined"!=typeof t?o():"function"==typeof define&&define.amd?define(o):o()}(this,function(){"use strict";function e(e){var n=this.constructor;return this.then(function(t){return n.resolve(e()).then(function(){return t})},function(t){return n.resolve(e()).then(function(){return n.reject(t)})})}function n(){}function t(e,n){return function(){e.apply(n,arguments)}}function o(e){if(!(this instanceof o))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],l(e,this)}function i(e,n){for(;3===e._state;)e=e._value;return 0===e._state?void e._deferreds.push(n):(e._handled=!0,void o._immediateFn(function(){var t=1===e._state?n.onFulfilled:n.onRejected;if(null===t)return void(1===e._state?r:f)(n.promise,e._value);var o;try{o=t(e._value)}catch(i){return void f(n.promise,i)}r(n.promise,o)}))}function r(e,n){try{if(n===e)throw new TypeError("A promise cannot be resolved with itself.");if(n&&("object"==typeof n||"function"==typeof n)){var i=n.then;if(n instanceof o)return e._state=3,e._value=n,void u(e);if("function"==typeof i)return void l(t(i,n),e)}e._state=1,e._value=n,u(e)}catch(r){f(e,r)}}function f(e,n){e._state=2,e._value=n,u(e)}function u(e){2===e._state&&0===e._deferreds.length&&o._immediateFn(function(){e._handled||o._unhandledRejectionFn(e._value)});for(var n=0,t=e._deferreds.length;t>n;n++)i(e,e._deferreds[n]);e._deferreds=null}function c(e,n,t){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof n?n:null,this.promise=t}function l(e,n){var t=!1;try{e(function(e){t||(t=!0,r(n,e))},function(e){t||(t=!0,f(n,e))})}catch(o){if(t)return;t=!0,f(n,o)}}var a=setTimeout;o.prototype["catch"]=function(e){return this.then(null,e)},o.prototype.then=function(e,t){var o=new this.constructor(n);return i(this,new c(e,t,o)),o},o.prototype["finally"]=e,o.all=function(e){return new o(function(n,t){function o(e,f){try{if(f&&("object"==typeof f||"function"==typeof f)){var u=f.then;if("function"==typeof u)return void u.call(f,function(n){o(e,n)},t)}i[e]=f,0===--r&&n(i)}catch(c){t(c)}}if(!e||"undefined"==typeof e.length)throw new TypeError("Promise.all accepts an array");var i=Array.prototype.slice.call(e);if(0===i.length)return n([]);for(var r=i.length,f=0;fo;o++)e[o].then(n,t)})},o._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){a(e,0)},o._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var s=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("unable to locate global object")}();"Promise"in s?s.Promise.prototype["finally"]||(s.Promise.prototype["finally"]=e):s.Promise=o})}); ;/*!node_modules/monaco-editor/esm/vs/base/common/errors.js*/ define("node_modules/monaco-editor/esm/vs/base/common/errors",function(r,e){"use strict";function n(r){return void(a(r)||e.errorHandler.onUnexpectedError(r))}function t(r){return void(a(r)||e.errorHandler.onUnexpectedExternalError(r))}function o(r){if(r instanceof Error){var e=r.name,n=r.message,t=r.stacktrace||r.stack;return{$isError:!0,name:e,message:n,stack:t}}return r}function a(r){return r instanceof Error&&r.name===u&&r.message===u}function i(){var r=new Error(u);return r.name=r.message,r}function c(r){return new Error(r?"Illegal argument: "+r:"Illegal argument")}function s(r){return new Error(r?"Illegal state: "+r:"Illegal state")}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function r(){this.listeners=[],this.unexpectedErrorHandler=function(r){setTimeout(function(){if(r.stack)throw new Error(r.message+"\n\n"+r.stack);throw r},0)}}return r.prototype.emit=function(r){this.listeners.forEach(function(e){e(r)})},r.prototype.onUnexpectedError=function(r){this.unexpectedErrorHandler(r),this.emit(r)},r.prototype.onUnexpectedExternalError=function(r){this.unexpectedErrorHandler(r)},r}();e.ErrorHandler=l,e.errorHandler=new l,e.onUnexpectedError=n,e.onUnexpectedExternalError=t,e.transformErrorForSerialization=o;var u="Canceled";e.isPromiseCanceledError=a,e.canceled=i,e.illegalArgument=c,e.illegalState=s}); ;/*!node_modules/monaco-editor/esm/vs/base/common/functional.js*/ define("node_modules/monaco-editor/esm/vs/base/common/functional",function(e,n){"use strict";function o(e){var n,o=this,t=!1;return function(){return t?n:(t=!0,n=e.apply(o,arguments))}}Object.defineProperty(n,"__esModule",{value:!0}),n.once=o}); ;/*!node_modules/monaco-editor/esm/vs/base/common/lifecycle.js*/ define("node_modules/monaco-editor/esm/vs/base/common/lifecycle",function(e,s){"use strict";function o(e){return"function"==typeof e.dispose&&0===e.dispose.length}function i(e){for(var s=[],o=1;o=e?n.FIN:{done:!1,value:t[r++]}}}}function o(n){return n?Array.isArray(n)?t.fromArray(n):n:t.empty()}function i(t,r){return{next:function(){var e=t.next();return e.done?n.FIN:{done:!1,value:r(e.value)}}}}function u(t,r){return{next:function(){for(;;){var e=t.next();if(e.done)return n.FIN;if(r(e.value))return{done:!1,value:e.value}}}}}function a(t,n){for(var r=t.next();!r.done;r=t.next())n(r.value)}function c(t){var n=[];return a(t,function(t){return n.push(t)}),n}var s={next:function(){return n.FIN}};t.empty=r,t.fromArray=e,t.from=o,t.map=i,t.filter=u,t.forEach=a,t.collect=c}(n.Iterator||(n.Iterator={})),n.getSequenceIterator=r;var o=function(){function t(t,n,r,e){void 0===n&&(n=0),void 0===r&&(r=t.length),void 0===e&&(e=n-1),this.items=t,this.start=n,this.end=r,this.index=e}return t.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},t.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},t}();n.ArrayIterator=o;var i=function(t){function n(n,r,e,o){return void 0===r&&(r=0),void 0===e&&(e=n.length),void 0===o&&(o=r-1),t.call(this,n,r,e,o)||this}return e(n,t),n.prototype.current=function(){return t.prototype.current.call(this)},n.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},n.prototype.first=function(){return this.index=this.start,this.current()},n.prototype.last=function(){return this.index=this.end-1,this.current()},n.prototype.parent=function(){return null},n}(o);n.ArrayNavigator=i;var u=function(){function t(t,n){this.iterator=t,this.fn=n}return t.prototype.next=function(){return this.fn(this.iterator.next())},t}();n.MappedIterator=u}); ;/*!node_modules/monaco-editor/esm/vs/base/common/linkedList.js*/ define("node_modules/monaco-editor/esm/vs/base/common/linkedList",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/monaco-editor/esm/vs/base/common/iterator"),i=function(){function e(t){this.element=t,this.next=e.Undefined,this.prev=e.Undefined}return e.Undefined=new e(void 0),e}(),r=function(){function e(){this._first=i.Undefined,this._last=i.Undefined,this._size=0}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return this._first===i.Undefined},e.prototype.clear=function(){this._first=i.Undefined,this._last=i.Undefined,this._size=0},e.prototype.unshift=function(e){return this._insert(e,!1)},e.prototype.push=function(e){return this._insert(e,!0)},e.prototype._insert=function(e,t){var n=this,r=new i(e);if(this._first===i.Undefined)this._first=r,this._last=r;else if(t){var s=this._last;this._last=r,r.prev=s,s.next=r}else{var f=this._first;this._first=r,r.next=f,f.prev=r}this._size+=1;var o=!1;return function(){o||(o=!0,n._remove(r))}},e.prototype.shift=function(){if(this._first===i.Undefined)return void 0;var e=this._first.element;return this._remove(this._first),e},e.prototype._remove=function(e){if(e.prev!==i.Undefined&&e.next!==i.Undefined){var t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===i.Undefined&&e.next===i.Undefined?(this._first=i.Undefined,this._last=i.Undefined):e.next===i.Undefined?(this._last=this._last.prev,this._last.next=i.Undefined):e.prev===i.Undefined&&(this._first=this._first.next,this._first.prev=i.Undefined);this._size-=1},e.prototype.iterator=function(){var e,t=this._first;return{next:function(){return t===i.Undefined?n.FIN:(e?e.value=t.element:e={done:!1,value:t.element},t=t.next,e)}}},e.prototype.toArray=function(){for(var e=[],t=this._first;t!==i.Undefined;t=t.next)e.push(t.element);return e},e}();t.LinkedList=r}); ;/*!node_modules/monaco-editor/esm/vs/base/common/event.js*/ define("node_modules/monaco-editor/esm/vs/base/common/event",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),i=e("node_modules/monaco-editor/esm/vs/base/common/errors"),r=e("node_modules/monaco-editor/esm/vs/base/common/functional"),o=e("node_modules/monaco-editor/esm/vs/base/common/lifecycle"),s=e("node_modules/monaco-editor/esm/vs/base/common/linkedList");!function(e){function t(e){return function(t,n,i){void 0===n&&(n=null);var r,o=!1;return r=e(function(e){return o?void 0:(r?r.dispose():o=!0,t.call(n,e))},null,i),o&&r.dispose(),r}}function n(e,t){return a(function(n,i,r){return void 0===i&&(i=null),e(function(e){return n.call(i,t(e))},null,r)})}function i(e,t){return a(function(n,i,r){return void 0===i&&(i=null),e(function(e){t(e),n.call(i,e)},null,r)})}function r(e,t){return a(function(n,i,r){return void 0===i&&(i=null),e(function(e){return t(e)&&n.call(i,e)},null,r)})}function s(e){return e}function u(){for(var e=[],t=0;t1)&&a.fire(e),c=0},n)})},onLastListenerRemove:function(){o.dispose()}});return a.event}function p(e){var i=(new Date).getTime();return n(t(e),function(){return(new Date).getTime()-i})}function v(e){var t,n=!0;return r(e,function(e){var i=n||e!==t;return n=!1,t=e,i})}function l(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=[]);var i=n.slice(),r=e(function(e){i?i.push(e):s.fire(e)}),o=function(){i&&i.forEach(function(e){return s.fire(e)}),i=null},s=new f({onFirstListenerAdd:function(){r||(r=e(function(e){return s.fire(e)}))},onFirstListenerDidAdd:function(){i&&(t?setTimeout(o):o())},onLastListenerRemove:function(){r&&r.dispose(),r=null}});return s.event}function d(e){return new w(e)}function _(e,t,n){void 0===n&&(n=function(e){return e});var i=function(){for(var e=[],t=0;t=n||n>e)return void 0;this._stacks||(this._stacks=new Map);var i=(new Error).stack.split("\n").slice(3).join("\n"),r=this._stacks.get(i)||0;if(this._stacks.set(i,r+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=.5*n;var o,s=0;this._stacks.forEach(function(e,t){(!o||e>s)&&(o=t,s=e)}),console.warn("["+this.name+"] potential listener LEAK detected, having "+e+" listeners already. MOST frequent listener ("+s+"):"),console.warn(o)}return function(){var e=t._stacks.get(i)||0;t._stacks.set(i,e-1)}},e}(),f=function(){function e(e){this._disposed=!1,this._options=e,this._leakageMon=u>0?new c(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(e.prototype,"event",{get:function(){var t=this;return this._event||(this._event=function(n,i,r){t._listeners||(t._listeners=new s.LinkedList);var o=t._listeners.isEmpty();o&&t._options&&t._options.onFirstListenerAdd&&t._options.onFirstListenerAdd(t);var u=t._listeners.push(i?[n,i]:n);o&&t._options&&t._options.onFirstListenerDidAdd&&t._options.onFirstListenerDidAdd(t),t._options&&t._options.onListenerDidAdd&&t._options.onListenerDidAdd(t,n,i);var c;t._leakageMon&&(c=t._leakageMon.check(t._listeners.size));var f;return f={dispose:function(){if(c&&c(),f.dispose=e._noop,!t._disposed&&(u(),t._options&&t._options.onLastListenerRemove)){var n=t._listeners&&!t._listeners.isEmpty();n||t._options.onLastListenerRemove(t)}}},Array.isArray(r)&&r.push(f),f}),this._event},enumerable:!0,configurable:!0}),e.prototype.fire=function(e){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new s.LinkedList);for(var t=this._listeners.iterator(),n=t.next();!n.done;n=t.next())this._deliveryQueue.push([n.value,e]);for(;this._deliveryQueue.size>0;){var r=this._deliveryQueue.shift(),o=r[0],u=r[1];try{"function"==typeof o?o.call(void 0,u):o[0].call(o[1],u)}catch(n){i.onUnexpectedError(n)}}}},e.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},e._noop=function(){},e}();t.Emitter=f;var a=function(e){function t(t){var n=e.call(this,t)||this;return n._isPaused=0,n._eventQueue=new s.LinkedList,n._mergeFn=t&&t.merge,n}return n(t,e),t.prototype.pause=function(){this._isPaused++},t.prototype.resume=function(){if(0!==this._isPaused&&0===--this._isPaused)if(this._mergeFn){var t=this._eventQueue.toArray();this._eventQueue.clear(),e.prototype.fire.call(this,this._mergeFn(t))}else for(;!this._isPaused&&0!==this._eventQueue.size;)e.prototype.fire.call(this,this._eventQueue.shift())},t.prototype.fire=function(t){this._listeners&&(0!==this._isPaused?this._eventQueue.push(t):e.prototype.fire.call(this,t))},t}(f);t.PauseableEmitter=a;var h=function(){function e(){var e=this;this.hasListeners=!1,this.events=[],this.emitter=new f({onFirstListenerAdd:function(){return e.onFirstListenerAdd()},onLastListenerRemove:function(){return e.onLastListenerRemove()}})}return Object.defineProperty(e.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),e.prototype.add=function(e){var t=this,n={event:e,listener:null};this.events.push(n),this.hasListeners&&this.hook(n);var i=function(){t.hasListeners&&t.unhook(n);var e=t.events.indexOf(n);t.events.splice(e,1)};return o.toDisposable(r.once(i))},e.prototype.onFirstListenerAdd=function(){var e=this;this.hasListeners=!0,this.events.forEach(function(t){return e.hook(t)})},e.prototype.onLastListenerRemove=function(){var e=this;this.hasListeners=!1,this.events.forEach(function(t){return e.unhook(t)})},e.prototype.hook=function(e){var t=this;e.listener=e.event(function(e){return t.emitter.fire(e)})},e.prototype.unhook=function(e){e.listener&&e.listener.dispose(),e.listener=null},e.prototype.dispose=function(){this.emitter.dispose()},e}();t.EventMultiplexer=h;var p=function(){function e(){this.buffers=[]}return e.prototype.wrapEvent=function(e){var t=this;return function(n,i,r){return e(function(e){var r=t.buffers[t.buffers.length-1];r?r.push(function(){return n.call(i,e)}):n.call(i,e)},void 0,r)}},e.prototype.bufferEvents=function(e){var t=[];this.buffers.push(t);var n=e();return this.buffers.pop(),t.forEach(function(e){return e()}),n},e}();t.EventBufferer=p;var v=function(){function e(){var e=this;this.listening=!1,this.inputEvent=t.Event.None,this.inputEventListener=o.Disposable.None,this.emitter=new f({onFirstListenerDidAdd:function(){e.listening=!0,e.inputEventListener=e.inputEvent(e.emitter.fire,e.emitter)},onLastListenerRemove:function(){e.listening=!1,e.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(e.prototype,"input",{set:function(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},e}();t.Relay=v}); ;/*!node_modules/monaco-editor/esm/vs/base/common/cancellation.js*/ define("node_modules/monaco-editor/esm/vs/base/common/cancellation",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/monaco-editor/esm/vs/base/common/event"),o=Object.freeze(function(e,t){var n=setTimeout(e.bind(t),0);return{dispose:function(){clearTimeout(n)}}});!function(e){function t(t){return t===e.None||t===e.Cancelled?!0:t instanceof i?!0:t&&"object"==typeof t?"boolean"==typeof t.isCancellationRequested&&"function"==typeof t.onCancellationRequested:!1}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:n.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:o})}(t.CancellationToken||(t.CancellationToken={}));var i=function(){function e(){this._isCancelled=!1,this._emitter=null}return e.prototype.cancel=function(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))},Object.defineProperty(e.prototype,"isCancellationRequested",{get:function(){return this._isCancelled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onCancellationRequested",{get:function(){return this._isCancelled?o:(this._emitter||(this._emitter=new n.Emitter),this._emitter.event)},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._emitter&&(this._emitter.dispose(),this._emitter=null)},e}(),s=function(){function e(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}return Object.defineProperty(e.prototype,"token",{get:function(){return this._token||(this._token=new i),this._token},enumerable:!0,configurable:!0}),e.prototype.cancel=function(){this._token?this._token instanceof i&&this._token.cancel():this._token=t.CancellationToken.Cancelled},e.prototype.dispose=function(){this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof i&&this._token.dispose():this._token=t.CancellationToken.None},e}();t.CancellationTokenSource=s}); ;/*!node_modules/monaco-editor/esm/vs/base/common/keyCodes.js*/ define("node_modules/monaco-editor/esm/vs/base/common/keyCodes",function(e,t){"use strict";function o(e,t){var o=(65535&t)<<16>>>0;return(e|o)>>>0}function n(e,t){if(0===e)return null;var o=(65535&e)>>>0,n=(4294901760&e)>>>16;return new c(0!==n?[r(o,t),r(n,t)]:[r(o,t)])}function r(e,t){var o=2048&e?!0:!1,n=256&e?!0:!1,r=2===t?n:o,i=1024&e?!0:!1,s=512&e?!0:!1,u=2===t?o:n,a=255&e;return new y(r,i,s,u,a)}Object.defineProperty(t,"__esModule",{value:!0});var i=e("node_modules/monaco-editor/esm/vs/base/common/errors"),s=function(){function e(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}return e.prototype.define=function(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e},e.prototype.keyCodeToStr=function(e){return this._keyCodeToStr[e]},e.prototype.strToKeyCode=function(e){return this._strToKeyCode[e.toLowerCase()]||0},e}(),u=new s,a=new s,d=new s;!function(){function e(e,t,o,n){void 0===o&&(o=t),void 0===n&&(n=o),u.define(e,t),a.define(e,o),d.define(e,n)}e(0,"unknown"),e(1,"Backspace"),e(2,"Tab"),e(3,"Enter"),e(4,"Shift"),e(5,"Ctrl"),e(6,"Alt"),e(7,"PauseBreak"),e(8,"CapsLock"),e(9,"Escape"),e(10,"Space"),e(11,"PageUp"),e(12,"PageDown"),e(13,"End"),e(14,"Home"),e(15,"LeftArrow","Left"),e(16,"UpArrow","Up"),e(17,"RightArrow","Right"),e(18,"DownArrow","Down"),e(19,"Insert"),e(20,"Delete"),e(21,"0"),e(22,"1"),e(23,"2"),e(24,"3"),e(25,"4"),e(26,"5"),e(27,"6"),e(28,"7"),e(29,"8"),e(30,"9"),e(31,"A"),e(32,"B"),e(33,"C"),e(34,"D"),e(35,"E"),e(36,"F"),e(37,"G"),e(38,"H"),e(39,"I"),e(40,"J"),e(41,"K"),e(42,"L"),e(43,"M"),e(44,"N"),e(45,"O"),e(46,"P"),e(47,"Q"),e(48,"R"),e(49,"S"),e(50,"T"),e(51,"U"),e(52,"V"),e(53,"W"),e(54,"X"),e(55,"Y"),e(56,"Z"),e(57,"Meta"),e(58,"ContextMenu"),e(59,"F1"),e(60,"F2"),e(61,"F3"),e(62,"F4"),e(63,"F5"),e(64,"F6"),e(65,"F7"),e(66,"F8"),e(67,"F9"),e(68,"F10"),e(69,"F11"),e(70,"F12"),e(71,"F13"),e(72,"F14"),e(73,"F15"),e(74,"F16"),e(75,"F17"),e(76,"F18"),e(77,"F19"),e(78,"NumLock"),e(79,"ScrollLock"),e(80,";",";","OEM_1"),e(81,"=","=","OEM_PLUS"),e(82,",",",","OEM_COMMA"),e(83,"-","-","OEM_MINUS"),e(84,".",".","OEM_PERIOD"),e(85,"/","/","OEM_2"),e(86,"`","`","OEM_3"),e(110,"ABNT_C1"),e(111,"ABNT_C2"),e(87,"[","[","OEM_4"),e(88,"\\","\\","OEM_5"),e(89,"]","]","OEM_6"),e(90,"'","'","OEM_7"),e(91,"OEM_8"),e(92,"OEM_102"),e(93,"NumPad0"),e(94,"NumPad1"),e(95,"NumPad2"),e(96,"NumPad3"),e(97,"NumPad4"),e(98,"NumPad5"),e(99,"NumPad6"),e(100,"NumPad7"),e(101,"NumPad8"),e(102,"NumPad9"),e(103,"NumPad_Multiply"),e(104,"NumPad_Add"),e(105,"NumPad_Separator"),e(106,"NumPad_Subtract"),e(107,"NumPad_Decimal"),e(108,"NumPad_Divide")}(),function(e){function t(e){return u.keyCodeToStr(e)}function o(e){return u.strToKeyCode(e)}function n(e){return a.keyCodeToStr(e)}function r(e){return d.keyCodeToStr(e)}function i(e){return a.strToKeyCode(e)||d.strToKeyCode(e)}e.toString=t,e.fromString=o,e.toUserSettingsUS=n,e.toUserSettingsGeneral=r,e.fromUserSettings=i}(t.KeyCodeUtils||(t.KeyCodeUtils={})),t.KeyChord=o,t.createKeybinding=n,t.createSimpleKeybinding=r;var y=function(){function e(e,t,o,n,r){this.ctrlKey=e,this.shiftKey=t,this.altKey=o,this.metaKey=n,this.keyCode=r}return e.prototype.equals=function(e){return this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode},e.prototype.isModifierKey=function(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode},e.prototype.toChord=function(){return new c([this])},e.prototype.isDuplicateModifierCase=function(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode},e}();t.SimpleKeybinding=y;var c=function(){function e(e){if(0===e.length)throw i.illegalArgument("parts");this.parts=e}return e.prototype.equals=function(e){if(null===e)return!1;if(this.parts.length!==e.parts.length)return!1;for(var t=0;t=97&&122>=i||i>=65&&90>=i||i>=48&&57>=i||45===i||46===i||95===i||126===i||e&&47===i)-1!==o&&(r+=encodeURIComponent(t.substring(o,n)),o=-1),void 0!==r&&(r+=t.charAt(n));else{void 0===r&&(r=t.substr(0,n));var h=_[i];void 0!==h?(-1!==o&&(r+=encodeURIComponent(t.substring(o,n)),o=-1),r+=h):-1===o&&(o=n)}}return-1!==o&&(r+=encodeURIComponent(t.substring(o))),void 0!==r?r:t}function h(t){for(var e=void 0,r=0;r1&&"file"===t.scheme?"//"+t.authority+t.path:47===t.path.charCodeAt(0)&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&58===t.path.charCodeAt(2)?t.path[1].toLowerCase()+t.path.substr(2):t.path,c.isWindows&&(e=e.replace(/\//g,"\\")),e}function a(t,e){var r=e?h:i,o="",n=t.scheme,s=t.authority,a=t.path,u=t.query,f=t.fragment;if(n&&(o+=n,o+=":"),(s||"file"===n)&&(o+=g,o+=g),s){var c=s.indexOf("@");if(-1!==c){var p=s.substr(0,c);s=s.substr(c+1),c=p.indexOf(":"),-1===c?o+=r(p,!1):(o+=r(p.substr(0,c),!1),o+=":",o+=r(p.substr(c+1),!1)),o+="@"}s=s.toLowerCase(),c=s.indexOf(":"),-1===c?o+=r(s,!1):(o+=r(s.substr(0,c),!1),o+=s.substr(c))}if(a){if(a.length>=3&&47===a.charCodeAt(0)&&58===a.charCodeAt(2)){var m=a.charCodeAt(1);m>=65&&90>=m&&(a="/"+String.fromCharCode(m+32)+":"+a.substr(3))}else if(a.length>=2&&58===a.charCodeAt(1)){var m=a.charCodeAt(0);m>=65&&90>=m&&(a=String.fromCharCode(m+32)+":"+a.substr(2))}o+=r(a,!0)}return u&&(o+="?",o+=r(u,!1)),f&&(o+="#",o+=e?f:i(f,!1)),o}Object.defineProperty(e,"__esModule",{value:!0});var u,f=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function o(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),c=t("node_modules/monaco-editor/esm/vs/base/common/platform"),p=/^\w[\w\d+.-]*$/,m=/^\//,d=/^\/\//,y=!0,l="",g="/",v=/^(([^:\/?#]+?):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,b=function(){function t(t,e,i,h,s,a){void 0===a&&(a=!1),"object"==typeof t?(this.scheme=t.scheme||l,this.authority=t.authority||l,this.path=t.path||l,this.query=t.query||l,this.fragment=t.fragment||l):(this.scheme=o(t,a),this.authority=e||l,this.path=n(this.scheme,i||l),this.query=h||l,this.fragment=s||l,r(this,a))}return t.isUri=function(e){return e instanceof t?!0:e?"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"function"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString:!1},Object.defineProperty(t.prototype,"fsPath",{get:function(){return s(this)},enumerable:!0,configurable:!0}),t.prototype.with=function(t){if(!t)return this;var e=t.scheme,r=t.authority,o=t.path,n=t.query,i=t.fragment;return void 0===e?e=this.scheme:null===e&&(e=l),void 0===r?r=this.authority:null===r&&(r=l),void 0===o?o=this.path:null===o&&(o=l),void 0===n?n=this.query:null===n&&(n=l),void 0===i?i=this.fragment:null===i&&(i=l),e===this.scheme&&r===this.authority&&o===this.path&&n===this.query&&i===this.fragment?this:new w(e,r,o,n,i)},t.parse=function(t,e){void 0===e&&(e=!1);var r=v.exec(t);return r?new w(r[2]||l,decodeURIComponent(r[4]||l),decodeURIComponent(r[5]||l),decodeURIComponent(r[7]||l),decodeURIComponent(r[9]||l),e):new w(l,l,l,l,l)},t.file=function(t){var e=l;if(c.isWindows&&(t=t.replace(/\\/g,g)),t[0]===g&&t[1]===g){var r=t.indexOf(g,2);-1===r?(e=t.substring(2),t=g):(e=t.substring(2,r),t=t.substring(r)||g)}return new w("file",e,t,l,l)},t.from=function(t){return new w(t.scheme,t.authority,t.path,t.query,t.fragment)},t.prototype.toString=function(t){return void 0===t&&(t=!1),a(this,t)},t.prototype.toJSON=function(){return this},t.revive=function(e){if(e){if(e instanceof t)return e;var r=new w(e);return r._fsPath=e.fsPath,r._formatted=e.external,r}return e},t}();e.URI=b;var w=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._formatted=null,e._fsPath=null,e}return f(e,t),Object.defineProperty(e.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=s(this)),this._fsPath},enumerable:!0,configurable:!0}),e.prototype.toString=function(t){return void 0===t&&(t=!1),t?a(this,!0):(this._formatted||(this._formatted=a(this,!1)),this._formatted)},e.prototype.toJSON=function(){var t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath),this._formatted&&(t.external=this._formatted),this.path&&(t.path=this.path),this.scheme&&(t.scheme=this.scheme),this.authority&&(t.authority=this.authority),this.query&&(t.query=this.query),this.fragment&&(t.fragment=this.fragment),t},e}(b),_=(u={},u[58]="%3A",u[47]="%2F",u[63]="%3F",u[35]="%23",u[91]="%5B",u[93]="%5D",u[64]="%40",u[33]="%21",u[36]="%24",u[38]="%26",u[39]="%27",u[40]="%28",u[41]="%29",u[42]="%2A",u[43]="%2B",u[44]="%2C",u[59]="%3B",u[61]="%3D",u[32]="%20",u)}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/core/position.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/core/position",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function e(e,n){this.lineNumber=e,this.column=n}return e.prototype.with=function(n,i){return void 0===n&&(n=this.lineNumber),void 0===i&&(i=this.column),n===this.lineNumber&&i===this.column?this:new e(n,i)},e.prototype.delta=function(e,n){return void 0===e&&(e=0),void 0===n&&(n=0),this.with(this.lineNumber+e,this.column+n)},e.prototype.equals=function(n){return e.equals(this,n)},e.equals=function(e,n){return e||n?!!e&&!!n&&e.lineNumber===n.lineNumber&&e.column===n.column:!0},e.prototype.isBefore=function(n){return e.isBefore(this,n)},e.isBefore=function(e,n){return e.lineNumbert||n===t&&e>r?(this.startLineNumber=t,this.startColumn=r,this.endLineNumber=n,this.endColumn=e):(this.startLineNumber=n,this.startColumn=e,this.endLineNumber=t,this.endColumn=r)}return n.prototype.isEmpty=function(){return n.isEmpty(this)},n.isEmpty=function(n){return n.startLineNumber===n.endLineNumber&&n.startColumn===n.endColumn},n.prototype.containsPosition=function(e){return n.containsPosition(this,e)},n.containsPosition=function(n,e){return e.lineNumbern.endLineNumber?!1:e.lineNumber===n.startLineNumber&&e.columnn.endColumn?!1:!0},n.prototype.containsRange=function(e){return n.containsRange(this,e)},n.containsRange=function(n,e){return e.startLineNumbern.endLineNumber||e.endLineNumber>n.endLineNumber?!1:e.startLineNumber===n.startLineNumber&&e.startColumnn.endColumn?!1:!0},n.prototype.plusRange=function(e){return n.plusRange(this,e)},n.plusRange=function(e,t){var r,u,i,o;return t.startLineNumbere.endLineNumber?(i=t.endLineNumber,o=t.endColumn):t.endLineNumber===e.endLineNumber?(i=t.endLineNumber,o=Math.max(t.endColumn,e.endColumn)):(i=e.endLineNumber,o=e.endColumn),new n(r,u,i,o)},n.prototype.intersectRanges=function(e){return n.intersectRanges(this,e)},n.intersectRanges=function(e,t){var r=e.startLineNumber,u=e.startColumn,i=e.endLineNumber,o=e.endColumn,m=t.startLineNumber,s=t.startColumn,a=t.endLineNumber,b=t.endColumn;return m>r?(r=m,u=s):r===m&&(u=Math.max(u,s)),i>a?(i=a,o=b):i===a&&(o=Math.min(o,b)),r>i?null:r===i&&u>o?null:new n(r,u,i,o)},n.prototype.equalsRange=function(e){return n.equalsRange(this,e)},n.equalsRange=function(n,e){return!!n&&!!e&&n.startLineNumber===e.startLineNumber&&n.startColumn===e.startColumn&&n.endLineNumber===e.endLineNumber&&n.endColumn===e.endColumn},n.prototype.getEndPosition=function(){return new t.Position(this.endLineNumber,this.endColumn)},n.prototype.getStartPosition=function(){return new t.Position(this.startLineNumber,this.startColumn)},n.prototype.toString=function(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"},n.prototype.setEndPosition=function(e,t){return new n(this.startLineNumber,this.startColumn,e,t)},n.prototype.setStartPosition=function(e,t){return new n(e,t,this.endLineNumber,this.endColumn)},n.prototype.collapseToStart=function(){return n.collapseToStart(this)},n.collapseToStart=function(e){return new n(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)},n.fromPositions=function(e,t){return void 0===t&&(t=e),new n(e.lineNumber,e.column,t.lineNumber,t.column)},n.lift=function(e){return e?new n(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null},n.isIRange=function(n){return n&&"number"==typeof n.startLineNumber&&"number"==typeof n.startColumn&&"number"==typeof n.endLineNumber&&"number"==typeof n.endColumn},n.areIntersectingOrTouching=function(n,e){return n.endLineNumbern.startLineNumber},n}();e.Range=r}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/core/selection.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/core/selection",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),o=t("node_modules/monaco-editor/esm/vs/editor/common/core/position"),i=t("node_modules/monaco-editor/esm/vs/editor/common/core/range"),r=function(t){function e(e,n,o,i){var r=t.call(this,e,n,o,i)||this;return r.selectionStartLineNumber=e,r.selectionStartColumn=n,r.positionLineNumber=o,r.positionColumn=i,r}return n(e,t),e.prototype.clone=function(){return new e(this.selectionStartLineNumber,this.selectionStartColumn,this.positionLineNumber,this.positionColumn)},e.prototype.toString=function(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"},e.prototype.equalsSelection=function(t){return e.selectionsEqual(this,t)},e.selectionsEqual=function(t,e){return t.selectionStartLineNumber===e.selectionStartLineNumber&&t.selectionStartColumn===e.selectionStartColumn&&t.positionLineNumber===e.positionLineNumber&&t.positionColumn===e.positionColumn},e.prototype.getDirection=function(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1},e.prototype.setEndPosition=function(t,n){return 0===this.getDirection()?new e(this.startLineNumber,this.startColumn,t,n):new e(t,n,this.startLineNumber,this.startColumn)},e.prototype.getPosition=function(){return new o.Position(this.positionLineNumber,this.positionColumn)},e.prototype.setStartPosition=function(t,n){return 0===this.getDirection()?new e(t,n,this.endLineNumber,this.endColumn):new e(this.endLineNumber,this.endColumn,t,n)},e.fromPositions=function(t,n){return void 0===n&&(n=t),new e(t.lineNumber,t.column,n.lineNumber,n.column)},e.liftSelection=function(t){return new e(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn)},e.selectionsArrEqual=function(t,e){if(t&&!e||!t&&e)return!1;if(!t&&!e)return!0;if(t.length!==e.length)return!1;for(var n=0,o=t.length;o>n;n++)if(!this.selectionsEqual(t[n],e[n]))return!1;return!0},e.isISelection=function(t){return t&&"number"==typeof t.selectionStartLineNumber&&"number"==typeof t.selectionStartColumn&&"number"==typeof t.positionLineNumber&&"number"==typeof t.positionColumn},e.createWithDirection=function(t,n,o,i,r){return 0===r?new e(t,n,o,i):new e(o,i,t,n)},e}(i.Range);e.Selection=r}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/core/token.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/core/token",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e,n){this.offset=0|t,this.type=e,this.language=n}return t.prototype.toString=function(){return"("+this.offset+", "+this.type+")"},t}();e.Token=n;var o=function(){function t(t,e){this.tokens=t,this.endState=e}return t}();e.TokenizationResult=o;var i=function(){function t(t,e){this.tokens=t,this.endState=e}return t}();e.TokenizationResult2=i}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/standalone/standaloneEnums.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/standalone/standaloneEnums",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(e){e[e.Unnecessary=1]="Unnecessary"}(n.MarkerTag||(n.MarkerTag={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(n.MarkerSeverity||(n.MarkerSeverity={})),function(e){e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.KEY_0=21]="KEY_0",e[e.KEY_1=22]="KEY_1",e[e.KEY_2=23]="KEY_2",e[e.KEY_3=24]="KEY_3",e[e.KEY_4=25]="KEY_4",e[e.KEY_5=26]="KEY_5",e[e.KEY_6=27]="KEY_6",e[e.KEY_7=28]="KEY_7",e[e.KEY_8=29]="KEY_8",e[e.KEY_9=30]="KEY_9",e[e.KEY_A=31]="KEY_A",e[e.KEY_B=32]="KEY_B",e[e.KEY_C=33]="KEY_C",e[e.KEY_D=34]="KEY_D",e[e.KEY_E=35]="KEY_E",e[e.KEY_F=36]="KEY_F",e[e.KEY_G=37]="KEY_G",e[e.KEY_H=38]="KEY_H",e[e.KEY_I=39]="KEY_I",e[e.KEY_J=40]="KEY_J",e[e.KEY_K=41]="KEY_K",e[e.KEY_L=42]="KEY_L",e[e.KEY_M=43]="KEY_M",e[e.KEY_N=44]="KEY_N",e[e.KEY_O=45]="KEY_O",e[e.KEY_P=46]="KEY_P",e[e.KEY_Q=47]="KEY_Q",e[e.KEY_R=48]="KEY_R",e[e.KEY_S=49]="KEY_S",e[e.KEY_T=50]="KEY_T",e[e.KEY_U=51]="KEY_U",e[e.KEY_V=52]="KEY_V",e[e.KEY_W=53]="KEY_W",e[e.KEY_X=54]="KEY_X",e[e.KEY_Y=55]="KEY_Y",e[e.KEY_Z=56]="KEY_Z",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.NumLock=78]="NumLock",e[e.ScrollLock=79]="ScrollLock",e[e.US_SEMICOLON=80]="US_SEMICOLON",e[e.US_EQUAL=81]="US_EQUAL",e[e.US_COMMA=82]="US_COMMA",e[e.US_MINUS=83]="US_MINUS",e[e.US_DOT=84]="US_DOT",e[e.US_SLASH=85]="US_SLASH",e[e.US_BACKTICK=86]="US_BACKTICK",e[e.US_OPEN_SQUARE_BRACKET=87]="US_OPEN_SQUARE_BRACKET",e[e.US_BACKSLASH=88]="US_BACKSLASH",e[e.US_CLOSE_SQUARE_BRACKET=89]="US_CLOSE_SQUARE_BRACKET",e[e.US_QUOTE=90]="US_QUOTE",e[e.OEM_8=91]="OEM_8",e[e.OEM_102=92]="OEM_102",e[e.NUMPAD_0=93]="NUMPAD_0",e[e.NUMPAD_1=94]="NUMPAD_1",e[e.NUMPAD_2=95]="NUMPAD_2",e[e.NUMPAD_3=96]="NUMPAD_3",e[e.NUMPAD_4=97]="NUMPAD_4",e[e.NUMPAD_5=98]="NUMPAD_5",e[e.NUMPAD_6=99]="NUMPAD_6",e[e.NUMPAD_7=100]="NUMPAD_7",e[e.NUMPAD_8=101]="NUMPAD_8",e[e.NUMPAD_9=102]="NUMPAD_9",e[e.NUMPAD_MULTIPLY=103]="NUMPAD_MULTIPLY",e[e.NUMPAD_ADD=104]="NUMPAD_ADD",e[e.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",e[e.NUMPAD_SUBTRACT=106]="NUMPAD_SUBTRACT",e[e.NUMPAD_DECIMAL=107]="NUMPAD_DECIMAL",e[e.NUMPAD_DIVIDE=108]="NUMPAD_DIVIDE",e[e.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",e[e.ABNT_C1=110]="ABNT_C1",e[e.ABNT_C2=111]="ABNT_C2",e[e.MAX_VALUE=112]="MAX_VALUE"}(n.KeyCode||(n.KeyCode={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(n.SelectionDirection||(n.SelectionDirection={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(n.ScrollbarVisibility||(n.ScrollbarVisibility={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(n.OverviewRulerLane||(n.OverviewRulerLane={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(n.EndOfLinePreference||(n.EndOfLinePreference={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(n.DefaultEndOfLine||(n.DefaultEndOfLine={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(n.EndOfLineSequence||(n.EndOfLineSequence={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(n.TrackedRangeStickiness||(n.TrackedRangeStickiness={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(n.ScrollType||(n.ScrollType={})),function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"}(n.CursorChangeReason||(n.CursorChangeReason={})),function(e){e[e.None=0]="None",e[e.Small=1]="Small",e[e.Large=2]="Large",e[e.SmallBlocks=3]="SmallBlocks",e[e.LargeBlocks=4]="LargeBlocks"}(n.RenderMinimap||(n.RenderMinimap={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(n.WrappingIndent||(n.WrappingIndent={})),function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(n.TextEditorCursorBlinkingStyle||(n.TextEditorCursorBlinkingStyle={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(n.TextEditorCursorStyle||(n.TextEditorCursorStyle={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(n.RenderLineNumbersType||(n.RenderLineNumbersType={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(n.ContentWidgetPositionPreference||(n.ContentWidgetPositionPreference={})),function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"}(n.OverlayWidgetPositionPreference||(n.OverlayWidgetPositionPreference={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(n.MouseTargetType||(n.MouseTargetType={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(n.IndentAction||(n.IndentAction={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.Snippet=25]="Snippet"}(n.CompletionItemKind||(n.CompletionItemKind={})),function(e){e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(n.CompletionItemInsertTextRule||(n.CompletionItemInsertTextRule={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(n.CompletionTriggerKind||(n.CompletionTriggerKind={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(n.SignatureHelpTriggerKind||(n.SignatureHelpTriggerKind={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(n.DocumentHighlightKind||(n.DocumentHighlightKind={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(n.SymbolKind||(n.SymbolKind={}))}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/standalone/standaloneBase.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/standalone/standaloneBase",function(o,e){"use strict";function n(){return{editor:void 0,languages:void 0,CancellationTokenSource:m.CancellationTokenSource,Emitter:d.Emitter,KeyCode:u.KeyCode,KeyMod:v,Position:s.Position,Range:a.Range,Selection:c.Selection,SelectionDirection:u.SelectionDirection,MarkerSeverity:u.MarkerSeverity,MarkerTag:u.MarkerTag,Uri:r.URI,Token:l.Token}}Object.defineProperty(e,"__esModule",{value:!0});var t=o("node_modules/tslib/tslib");o("node_modules/monaco-editor/esm/vs/editor/common/standalone/promise-polyfill/polyfill");var m=o("node_modules/monaco-editor/esm/vs/base/common/cancellation"),d=o("node_modules/monaco-editor/esm/vs/base/common/event"),i=o("node_modules/monaco-editor/esm/vs/base/common/keyCodes"),r=o("node_modules/monaco-editor/esm/vs/base/common/uri"),s=o("node_modules/monaco-editor/esm/vs/editor/common/core/position"),a=o("node_modules/monaco-editor/esm/vs/editor/common/core/range"),c=o("node_modules/monaco-editor/esm/vs/editor/common/core/selection"),l=o("node_modules/monaco-editor/esm/vs/editor/common/core/token"),u=t.__importStar(o("node_modules/monaco-editor/esm/vs/editor/common/standalone/standaloneEnums")),v=function(){function o(){}return o.chord=function(o,e){return i.KeyChord(o,e)},o.CtrlCmd=2048,o.Shift=1024,o.Alt=512,o.WinCtrl=256,o}();e.KeyMod=v,e.createMonacoBaseAPI=n}); ;/*!node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js*/ define("node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation",function(e,t){"use strict";function n(e,n,i,r){n[t._util.DI_TARGET]===n?n[t._util.DI_DEPENDENCIES].push({id:e,index:i,optional:r}):(n[t._util.DI_DEPENDENCIES]=[{id:e,index:i,optional:r}],n[t._util.DI_TARGET]=n)}function i(e){if(t._util.serviceIds.has(e))return t._util.serviceIds.get(e);var i=function(e,t,r){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");n(i,e,r,!1)};return i.toString=function(){return e},t._util.serviceIds.set(e,i),i}function r(e){return function(t,i,r){if(3!==arguments.length)throw new Error("@optional-decorator can only be used to decorate a parameter");n(e,t,r,!0)}}Object.defineProperty(t,"__esModule",{value:!0}),function(e){function t(t){return t[e.DI_DEPENDENCIES]||[]}e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=t}(t._util||(t._util={})),t.IInstantiationService=i("instantiationService"),t.createDecorator=i,t.optional=r}); ;/*!node_modules/monaco-editor/esm/vs/editor/browser/services/codeEditorService.js*/ define("node_modules/monaco-editor/esm/vs/editor/browser/services/codeEditorService",function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var i=e("node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation");o.ICodeEditorService=i.createDecorator("codeEditorService")}); ;/*!node_modules/monaco-editor/esm/vs/base/browser/browser.js*/ define("node_modules/monaco-editor/esm/vs/base/browser/browser",function(e,i){"use strict";function o(){return d.INSTANCE.getZoomLevel()}function t(){return d.INSTANCE.getTimeSinceLastZoomLevelChanged()}function n(e){return d.INSTANCE.onDidChangeZoomLevel(e)}function r(){return d.INSTANCE.getPixelRatio()}function a(){if(i.isIE)return!1;if(i.isEdge){var e=m.indexOf("Edge/"),o=parseInt(m.substring(e+5,m.indexOf(".",e)),10);if(!o||o>=12&&16>=o)return!1}return!0}Object.defineProperty(i,"__esModule",{value:!0});var s=e("node_modules/monaco-editor/esm/vs/base/common/event"),d=function(){function e(){this._zoomLevel=0,this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new s.Emitter,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}return e.prototype.getZoomLevel=function(){return this._zoomLevel},e.prototype.getTimeSinceLastZoomLevelChanged=function(){return Date.now()-this._lastZoomLevelChangeTime},e.prototype.getPixelRatio=function(){var e=document.createElement("canvas").getContext("2d"),i=window.devicePixelRatio||1,o=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return i/o},e.INSTANCE=new e,e}();i.getZoomLevel=o,i.getTimeSinceLastZoomLevelChanged=t,i.onDidChangeZoomLevel=n,i.getPixelRatio=r;var m=navigator.userAgent;i.isIE=m.indexOf("Trident")>=0,i.isEdge=m.indexOf("Edge/")>=0,i.isEdgeOrIE=i.isIE||i.isEdge,i.isFirefox=m.indexOf("Firefox")>=0,i.isWebKit=m.indexOf("AppleWebKit")>=0,i.isChrome=m.indexOf("Chrome")>=0,i.isSafari=!i.isChrome&&m.indexOf("Safari")>=0,i.isWebkitWebView=!i.isChrome&&!i.isSafari&&i.isWebKit,i.isIPad=m.indexOf("iPad")>=0,i.isEdgeWebView=i.isEdge&&m.indexOf("WebView/")>=0,i.hasClipboardSupport=a}); ;/*!node_modules/monaco-editor/esm/vs/base/browser/event.js*/ define("node_modules/monaco-editor/esm/vs/base/browser/event",function(e,n){"use strict";function t(e){return o.Event.map(e,function(e){return e.preventDefault(),e.stopPropagation(),e})}Object.defineProperty(n,"__esModule",{value:!0});var o=e("node_modules/monaco-editor/esm/vs/base/common/event");n.domEvent=function(e,n,t){var r=function(e){return i.fire(e)},i=new o.Emitter({onFirstListenerAdd:function(){e.addEventListener(n,r,t)},onLastListenerRemove:function(){e.removeEventListener(n,r,t)}});return i.event},n.stop=t}); ;/*!node_modules/monaco-editor/esm/vs/base/browser/keyboardEvent.js*/ define("node_modules/monaco-editor/esm/vs/base/browser/keyboardEvent",function(e,t){"use strict";function i(e){if(e.charCode){var t=String.fromCharCode(e.charCode).toUpperCase();return n.KeyCodeUtils.fromString(t)}return a[e.keyCode]||0}Object.defineProperty(t,"__esModule",{value:!0});var o=e("node_modules/tslib/tslib"),s=o.__importStar(e("node_modules/monaco-editor/esm/vs/base/browser/browser")),n=e("node_modules/monaco-editor/esm/vs/base/common/keyCodes"),r=o.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/platform")),a=new Array(230),h=new Array(112);!function(){function e(e,t){a[e]=t,h[t]=e}for(var t=0;ti;i++)if(t=r[i],t.contentWindow===n)return t;return null}Object.defineProperty(n,"__esModule",{value:!0});var i=!1,o=null,a=function(){function e(){}return e.getSameOriginWindowChain=function(){if(!o){o=[];var e,n=window;do e=t(n),o.push(e?{window:n,iframeElement:r(e,n)}:{window:n,iframeElement:null}),n=e;while(n)}return o.slice(0)},e.hasDifferentOriginAncestor=function(){return o||this.getSameOriginWindowChain(),i},e.getPositionOfChildWindowRelativeToAncestorWindow=function(e,n){if(!n||e===n)return{top:0,left:0};for(var t=0,r=0,i=this.getSameOriginWindowChain(),o=0,a=i;o=i)return Promise.resolve(n);var u=t[o++],s=Promise.resolve(u());return s.then(function(t){return e(t)?Promise.resolve(t):r()})};return r()}Object.defineProperty(e,"__esModule",{value:!0});var s=t("node_modules/tslib/tslib"),c=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),l=t("node_modules/monaco-editor/esm/vs/base/common/cancellation"),a=s.__importStar(t("node_modules/monaco-editor/esm/vs/base/common/errors")),h=t("node_modules/monaco-editor/esm/vs/base/common/lifecycle");e.isThenable=n,e.createCancelablePromise=o;var f=function(){function t(t){this.defaultDelay=t,this.timeout=null,this.completionPromise=null,this.doResolve=null,this.task=null}return t.prototype.trigger=function(t,e){var n=this;return void 0===e&&(e=this.defaultDelay),this.task=t,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise(function(t,e){n.doResolve=t,n.doReject=e}).then(function(){n.completionPromise=null,n.doResolve=null;var t=n.task;return n.task=null,t()})),this.timeout=setTimeout(function(){n.timeout=null,n.doResolve(null)},e),this.completionPromise},t.prototype.isTriggered=function(){return null!==this.timeout},t.prototype.cancel=function(){this.cancelTimeout(),this.completionPromise&&(this.doReject(a.canceled()),this.completionPromise=null)},t.prototype.cancelTimeout=function(){null!==this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},t.prototype.dispose=function(){this.cancelTimeout()},t}();e.Delayer=f,e.timeout=i,e.disposableTimeout=r,e.first=u;var p=function(t){function e(e,n){var o=t.call(this)||this;return o._token=-1,"function"==typeof e&&"number"==typeof n&&o.setIfNotSet(e,n),o}return c(e,t),e.prototype.dispose=function(){this.cancel(),t.prototype.dispose.call(this)},e.prototype.cancel=function(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)},e.prototype.cancelAndSet=function(t,e){var n=this;this.cancel(),this._token=setTimeout(function(){n._token=-1,t()},e)},e.prototype.setIfNotSet=function(t,e){var n=this;-1===this._token&&(this._token=setTimeout(function(){n._token=-1,t()},e))},e}(h.Disposable);e.TimeoutTimer=p;var m=function(t){function e(){var e=t.call(this)||this;return e._token=-1,e}return c(e,t),e.prototype.dispose=function(){this.cancel(),t.prototype.dispose.call(this)},e.prototype.cancel=function(){-1!==this._token&&(clearInterval(this._token),this._token=-1)},e.prototype.cancelAndSet=function(t,e){this.cancel(),this._token=setInterval(function(){t()},e)},e}(h.Disposable);e.IntervalTimer=m;var d=function(){function t(t,e){this.timeoutToken=-1,this.runner=t,this.timeout=e,this.timeoutHandler=this.onTimeout.bind(this)}return t.prototype.dispose=function(){this.cancel(),this.runner=null},t.prototype.cancel=function(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)},t.prototype.schedule=function(t){void 0===t&&(t=this.timeout),this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,t)},t.prototype.isScheduled=function(){return-1!==this.timeoutToken},t.prototype.onTimeout=function(){this.timeoutToken=-1,this.runner&&this.doRun()},t.prototype.doRun=function(){this.runner&&this.runner()},t}();e.RunOnceScheduler=d,function(){if("function"!=typeof requestIdleCallback||"function"!=typeof cancelIdleCallback){var t=Object.freeze({didTimeout:!0,timeRemaining:function(){return 15}});e.runWhenIdle=function(e){var n=setTimeout(function(){return e(t)}),o=!1;return{dispose:function(){o||(o=!0,clearTimeout(n))}}}}else e.runWhenIdle=function(t,e){var n=requestIdleCallback(t,"number"==typeof e?{timeout:e}:void 0),o=!1;return{dispose:function(){o||(o=!0,cancelIdleCallback(n))}}}}();var v=function(){function t(t){var n=this;this._didRun=!1,this._executor=function(){try{n._value=t()}catch(e){n._error=e}finally{n._didRun=!0}},this._handle=e.runWhenIdle(function(){return n._executor()})}return t.prototype.dispose=function(){this._handle.dispose()},t.prototype.getValue=function(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value},t}();e.IdleValue=v}); ;/*!node_modules/monaco-editor/esm/vs/base/browser/dom.js*/ define("node_modules/monaco-editor/esm/vs/base/browser/dom",function(e,t){"use strict";function n(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function o(e){e.parentNode&&e.parentNode.removeChild(e)}function r(e){for(;e;){if(e===document.body)return!0;e=e.parentNode}return!1}function i(e,t,n,o){return new et(e,t,n,o)}function s(e){return function(t){return e(new j.StandardMouseEvent(t))}}function a(e){return function(t){return e(new K.StandardKeyboardEvent(t))}}function u(e,t){return i(e,"mouseout",function(n){for(var o=n.relatedTarget||n.target;o&&o!==e;)o=o.parentNode;o!==e&&t(n)})}function d(e){if(!tt){var t=function(e){return setTimeout(function(){return e((new Date).getTime())},0)};tt=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||t}return tt.call(self,e)}function l(e,t,n,o,r){return new it(e,t,n,o,r)}function c(e){return document.defaultView.getComputedStyle(e,null)}function f(e){for(var t=e.offsetParent,n=e.offsetTop,o=e.offsetLeft;null!==(e=e.parentNode)&&e!==document.body&&e!==document.documentElement;){n-=e.scrollTop;var r=c(e);r&&(o-="rtl"!==r.direction?e.scrollLeft:-e.scrollLeft),e===t&&(o+=st.getBorderLeftWidth(e),n+=st.getBorderTopWidth(e),n+=e.offsetTop,o+=e.offsetLeft,t=e.offsetParent)}return{left:o,top:n}}function m(e){var n=e.getBoundingClientRect();return{left:n.left+t.StandardWindow.scrollX,top:n.top+t.StandardWindow.scrollY,width:n.width,height:n.height}}function h(e){var t=st.getMarginLeft(e)+st.getMarginRight(e);return e.offsetWidth+t}function p(e){var t=st.getBorderLeftWidth(e)+st.getBorderRightWidth(e),n=st.getPaddingLeft(e)+st.getPaddingRight(e);return e.offsetWidth-t-n}function g(e){var t=st.getBorderTopWidth(e)+st.getBorderBottomWidth(e),n=st.getPaddingTop(e)+st.getPaddingBottom(e);return e.offsetHeight-t-n}function v(e){var t=st.getMarginTop(e)+st.getMarginBottom(e);return e.offsetHeight+t}function _(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function b(e,n,o){for(;e;){if(t.hasClass(e,n))return e;if(o)if("string"==typeof o){if(t.hasClass(e,o))return null}else if(e===o)return null;e=e.parentNode}return null}function E(e){void 0===e&&(e=document.getElementsByTagName("head")[0]);var t=document.createElement("style");return t.type="text/css",t.media="screen",e.appendChild(t),t}function y(){return ut||(ut=E()),ut}function T(e){return e&&e.sheet&&e.sheet.rules?e.sheet.rules:e&&e.sheet&&e.sheet.cssRules?e.sheet.cssRules:[]}function w(e,t,n){void 0===n&&(n=y()),n&&t&&n.sheet.insertRule(e+"{"+t+"}",0)}function C(e,t){if(void 0===t&&(t=y()),t){for(var n=T(t),o=[],r=0;r=0;r--)t.sheet.deleteRule(o[r])}}function N(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&1===e.nodeType&&"string"==typeof e.nodeName}function S(e){for(var t=[],n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)t[n]=e.scrollTop,e=e.parentNode;return t}function A(e,t){for(var n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)e.scrollTop!==t[n]&&(e.scrollTop=t[n]),e=e.parentNode}function D(e){return new dt(e)}function L(e){for(var t=[],n=1;no)return void(this._lastStart=-1);if(n===t)return this._lastStart=0,void(this._lastEnd=o);for(var i,s=-1;(s=n.indexOf(t,s+1))>=0;){if(i=s+r,(0===s||32===n.charCodeAt(s-1))&&32===n.charCodeAt(i))return this._lastStart=s,void(this._lastEnd=i+1);if(s>0&&32===n.charCodeAt(s-1)&&i===o)return this._lastStart=s-1,void(this._lastEnd=i);if(0===s&&i===o)return this._lastStart=0,void(this._lastEnd=i)}this._lastStart=-1},e.prototype.hasClass=function(e,t){return this._findClassName(e,t),-1!==this._lastStart},e.prototype.addClasses=function(e){for(var t=this,n=[],o=1;o0;){n.sort(nt.sort);var t=n.shift();t.execute()}r=!1};t.scheduleAtNextAnimationFrame=function(t,n){void 0===n&&(n=0);var r=new nt(t,n);return e.push(r),o||(o=!0,d(i)),r},t.runAtThisOrScheduleAtNextAnimationFrame=function(e,o){if(r){var i=new nt(e,o);return n.push(i),i}return t.scheduleAtNextAnimationFrame(e,o)}}();var ot=16,rt=function(e,t){return t},it=function(e){function t(t,n,o,r,s){void 0===r&&(r=rt),void 0===s&&(s=ot);var a=e.call(this)||this,u=null,d=0,l=a._register(new G.TimeoutTimer),c=function(){d=(new Date).getTime(),o(u),u=null};return a._register(i(t,n,function(e){u=r(u,e);var t=(new Date).getTime()-d;t>=s?(l.cancel(),c()):l.setIfNotSet(c,s-t)})),a}return k(t,e),t}(X.Disposable);t.addDisposableThrottledListener=l,t.getComputedStyle=c;var st=function(){function e(){}return e.convertToPixels=function(e,t){return parseFloat(t)||0},e.getDimension=function(t,n,o){var r=c(t),i="0";return r&&(i=r.getPropertyValue?r.getPropertyValue(n):r.getAttribute(o)),e.convertToPixels(t,i)},e.getBorderLeftWidth=function(t){return e.getDimension(t,"border-left-width","borderLeftWidth")},e.getBorderRightWidth=function(t){return e.getDimension(t,"border-right-width","borderRightWidth")},e.getBorderTopWidth=function(t){return e.getDimension(t,"border-top-width","borderTopWidth")},e.getBorderBottomWidth=function(t){return e.getDimension(t,"border-bottom-width","borderBottomWidth")},e.getPaddingLeft=function(t){return e.getDimension(t,"padding-left","paddingLeft")},e.getPaddingRight=function(t){return e.getDimension(t,"padding-right","paddingRight")},e.getPaddingTop=function(t){return e.getDimension(t,"padding-top","paddingTop")},e.getPaddingBottom=function(t){return e.getDimension(t,"padding-bottom","paddingBottom")},e.getMarginLeft=function(t){return e.getDimension(t,"margin-left","marginLeft")},e.getMarginTop=function(t){return e.getDimension(t,"margin-top","marginTop")},e.getMarginRight=function(t){return e.getDimension(t,"margin-right","marginRight")},e.getMarginBottom=function(t){return e.getDimension(t,"margin-bottom","marginBottom")},e}(),at=function(){function e(e,t){this.width=e,this.height=t}return e}();t.Dimension=at,t.getTopLeftOffset=f,t.getDomNodePagePosition=m,t.StandardWindow=new(function(){function e(){}return Object.defineProperty(e.prototype,"scrollX",{get:function(){return"number"==typeof window.scrollX?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollY",{get:function(){return"number"==typeof window.scrollY?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop},enumerable:!0,configurable:!0}),e}()),t.getTotalWidth=h,t.getContentWidth=p,t.getContentHeight=g,t.getTotalHeight=v,t.isAncestor=_,t.findParentWithClass=b,t.createStyleSheet=E;var ut=null;t.createCSSRule=w,t.removeCSSRulesContainingSelector=C,t.isHTMLElement=N,t.EventType={CLICK:"click",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",UNLOAD:"unload",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",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:H.isWebKit?"webkitAnimationStart":"animationstart",ANIMATION_END:H.isWebKit?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:H.isWebKit?"webkitAnimationIteration":"animationiteration"},t.EventHelper={stop:function(e,t){e.preventDefault?e.preventDefault():e.returnValue=!1,t&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)}},t.saveParentsScrollTop=S,t.restoreParentsScrollTop=A;var dt=function(){function e(e){var n=this;this._onDidFocus=new q.Emitter,this.onDidFocus=this._onDidFocus.event,this._onDidBlur=new q.Emitter,this.onDidBlur=this._onDidBlur.event,this.disposables=[];var o=_(document.activeElement,e),r=!1,i=function(){r=!1,o||(o=!0,n._onDidFocus.fire())},s=function(){o&&(r=!0,window.setTimeout(function(){r&&(r=!1,o=!1,n._onDidBlur.fire())},0))};V.domEvent(e,t.EventType.FOCUS,!0)(i,null,this.disposables),V.domEvent(e,t.EventType.BLUR,!0)(s,null,this.disposables)}return e.prototype.dispose=function(){this.disposables=X.dispose(this.disposables),this._onDidFocus.dispose(),this._onDidBlur.dispose()},e}();t.trackFocus=D,t.append=L;var lt=/([\w\-]+)?(#([\w\-]+))?((.([\w\-]+))*)/;t.$=O,t.show=R,t.hide=B,t.removeTabIndexAndUpdateFocus=P,t.getElementsByTagName=W,t.computeScreenAwareSize=x,t.windowOpenNoOpener=U,t.animate=F}); ;/*!node_modules/monaco-editor/esm/vs/base/common/marshalling.js*/ define("node_modules/monaco-editor/esm/vs/base/common/marshalling",function(e,r){"use strict";function o(e){var r=JSON.parse(e);return r=n(r,0)}function n(e,r){if(!e||r>200)return e;if("object"==typeof e){switch(e.$mid){case 1:return s.URI.revive(e);case 2:return new RegExp(e.source,e.flags)}for(var o in e)Object.hasOwnProperty.call(e,o)&&(e[o]=n(e[o],r+1))}return e}Object.defineProperty(r,"__esModule",{value:!0});var s=e("node_modules/monaco-editor/esm/vs/base/common/uri");r.parse=o,r.revive=n}); ;/*!node_modules/monaco-editor/esm/vs/base/common/network.js*/ define("node_modules/monaco-editor/esm/vs/base/common/network",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote"}(t.Schemas||(t.Schemas={}))}); ;/*!node_modules/monaco-editor/esm/vs/base/common/strings.js*/ define("node_modules/monaco-editor/esm/vs/base/common/strings",function(r,t){"use strict";function e(r){return r&&"string"==typeof r?0===r.trim().length:!0}function n(r,t,e){void 0===e&&(e="0");for(var n=""+r,u=[n],i=n.length;t>i;i++)u.push(e);return u.reverse().join("")}function u(r){for(var t=[],e=1;en||n>=t.length?r:t[n]})}function i(r){return r.replace(/[<>&]/g,function(r){switch(r){case"<":return"<";case">":return">";case"&":return"&";default:return r}})}function o(r){return r.replace(/[\-\\\{\}\*\+\?\|\^\$\.\[\]\(\)\#]/g,"\\$&")}function a(r,t){void 0===t&&(t=" ");var e=c(r,t);return f(e,t)}function c(r,t){if(!r||!t)return r;var e=t.length;if(0===e||0===r.length)return r;for(var n=0;r.indexOf(t,n)===n;)n+=e;return r.substring(n)}function f(r,t){if(!r||!t)return r;var e=t.length,n=r.length;if(0===e||0===n)return r;for(var u=n,i=-1;;){if(i=r.lastIndexOf(t,u-1),-1===i||i+e!==u)break;if(0===i)return"";u=i}return r.substring(0,u)}function s(r){return r.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function g(r,t){if(r.length0?r.indexOf(t,e)===e:0===e?r===t:!1}function l(r,t,e){if(void 0===e&&(e={}),!r)throw new Error("Cannot create regex from empty string");t||(r=o(r)),e.wholeWord&&(/\B/.test(r.charAt(0))||(r="\\b"+r),/\B/.test(r.charAt(r.length-1))||(r+="\\b"));var n="";return e.global&&(n+="g"),e.matchCase||(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),new RegExp(r,n)}function D(r){if("^"===r.source||"^$"===r.source||"$"===r.source||"^\\s*$"===r.source)return!1;var t=r.exec("");return!(!t||0!==r.lastIndex)}function F(r){return(r.global?"g":"")+(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")}function d(r){for(var t=0,e=r.length;e>t;t++){var n=r.charCodeAt(t);if(32!==n&&9!==n)return t}return-1}function C(r,t,e){void 0===t&&(t=0),void 0===e&&(e=r.length);for(var n=t;e>n;n++){var u=r.charCodeAt(n);if(32!==u&&9!==u)return r.substring(t,n)}return r.substring(t,e)}function v(r,t){void 0===t&&(t=r.length-1);for(var e=t;e>=0;e--){var n=r.charCodeAt(e);if(32!==n&&9!==n)return e}return-1}function E(r,t){return t>r?-1:r>t?1:0}function m(r){return r>=97&&122>=r}function p(r){return r>=65&&90>=r}function A(r){return m(r)||p(r)}function B(r,t){var e=r?r.length:0,n=t?t.length:0;return e!==n?!1:x(r,t)}function x(r,t,e){if(void 0===e&&(e=r.length),"string"!=typeof r||"string"!=typeof t)return!1;for(var n=0;e>n;n++){var u=r.charCodeAt(n),i=t.charCodeAt(n);if(u!==i)if(A(u)&&A(i)){var o=Math.abs(u-i);if(0!==o&&32!==o)return!1}else if(String.fromCharCode(u).toLowerCase()!==String.fromCharCode(i).toLowerCase())return!1}return!0}function b(r,t){var e=t.length;return t.length>r.length?!1:x(r,t,e)}function L(r,t){var e,n=Math.min(r.length,t.length);for(e=0;n>e;e++)if(r.charCodeAt(e)!==t.charCodeAt(e))return e;return n}function W(r,t){var e,n=Math.min(r.length,t.length),u=r.length-1,i=t.length-1;for(e=0;n>e;e++)if(r.charCodeAt(u-e)!==t.charCodeAt(i-e))return e;return n}function I(r){return r>=55296&&56319>=r}function w(r){return r>=56320&&57343>=r}function R(r){return U.test(r)}function S(r){return j.test(r)}function $(r){return P.test(r)}function y(r){for(var t=0,e=r.length;e>t;t++)if(O(r.charCodeAt(t)))return!0;return!1}function O(r){return r=+r,r>=11904&&55215>=r||r>=63744&&64255>=r||r>=65281&&65374>=r}function M(r){return!!(r&&r.length>0&&65279===r.charCodeAt(0))}function T(r){return btoa(encodeURIComponent(r))}function _(r,t){for(var e="",n=0;t>n;n++)e+=r;return e}Object.defineProperty(t,"__esModule",{value:!0}),t.empty="",t.isFalsyOrWhitespace=e,t.pad=n;var N=/{(\d+)}/g;t.format=u,t.escape=i,t.escapeRegExpCharacters=o,t.trim=a,t.ltrim=c,t.rtrim=f,t.convertSimple2RegExpPattern=s,t.startsWith=g,t.endsWith=h,t.createRegExp=l,t.regExpLeadsToEndlessLoop=D,t.regExpFlags=F,t.firstNonWhitespaceIndex=d,t.getLeadingWhitespace=C,t.lastNonWhitespaceIndex=v,t.compare=E,t.isLowerAsciiLetter=m,t.isUpperAsciiLetter=p,t.equalsIgnoreCase=B,t.startsWithIgnoreCase=b,t.commonPrefixLength=L,t.commonSuffixLength=W,t.isHighSurrogate=I,t.isLowSurrogate=w;var U=/(?:[\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-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;t.containsRTL=R;var j=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEF8]|\uD83E[\uDD00-\uDDE6])/;t.containsEmoji=S;var P=/^[\t\n\r\x20-\x7E]*$/;t.isBasicASCII=$,t.containsFullWidthCharacter=y,t.isFullWidthCharacter=O,t.UTF8_BOM_CHARACTER=String.fromCharCode(65279),t.startsWithUTF8BOM=M,t.safeBtoa=T,t.repeat=_}); ;/*!node_modules/monaco-editor/esm/vs/base/common/process.js*/ define("node_modules/monaco-editor/esm/vs/base/common/process",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=e("node_modules/monaco-editor/esm/vs/base/common/platform"),t={cwd:function(){return"/"},env:Object.create(null),get platform(){return o.isWindows?"win32":o.isMacintosh?"darwin":"linux"},nextTick:function(e){return o.setImmediate(e)}};n.cwd=t.cwd,n.env=t.env,n.platform=t.platform}); ;/*!node_modules/monaco-editor/esm/vs/base/common/path.js*/ define("node_modules/monaco-editor/esm/vs/base/common/path",function(e,r){"use strict";function t(e,r){if("string"!=typeof e)throw new b(r,"string",e)}function n(e){return e===C||e===A}function o(e){return e===C}function i(e){return e>=s&&u>=e||e>=d&&g>=e}function a(e,r,t,n){for(var o,i="",a=0,l=-1,f=0,h=0;h<=e.length;++h){if(h2){var c=i.lastIndexOf(t);-1===c?(i="",a=0):(i=i.slice(0,c),a=i.length-1-i.lastIndexOf(t)),l=h,f=0;continue}if(2===i.length||1===i.length){i="",a=0,l=h,f=0;continue}}r&&(i.length>0?i+=t+"..":i="..",a=2)}else i.length>0?i+=t+e.slice(l+1,h):i=e.slice(l+1,h),a=h-l-1;l=h,f=0}else o===v&&-1!==f?++f:f=-1}return i}function l(e,r){var t=r.dir||r.root,n=r.base||(r.name||"")+(r.ext||"");return t?t===r.root?t+n:t+e+n:n}Object.defineProperty(r,"__esModule",{value:!0});var f=e("node_modules/tslib/tslib"),h=this&&this.__extends||function(){var e=function(r,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)r.hasOwnProperty(t)&&(e[t]=r[t])})(r,t)};return function(r,t){function n(){this.constructor=r}e(r,t),r.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}(),c=f.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/process")),s=65,d=97,u=90,g=122,v=46,C=47,A=92,p=58,m=63,b=function(e){function r(r,t,n){var o,i=this;"string"==typeof t&&0===t.indexOf("not ")?(o="must not be",t=t.replace(/^not /,"")):o="must be";var a=-1!==r.indexOf(".")?"property":"argument",l='The "'+r+'" '+a+" "+o+" of type "+t;return l+=". Received type "+typeof n,i=e.call(this,l)||this}return h(r,e),r}(Error);r.win32={resolve:function(){for(var e=[],r=0;r=-1;h--){var s=void 0;if(h>=0?s=e[h]:o?(s=c.env["="+o]||c.cwd(),(void 0===s||s.slice(0,3).toLowerCase()!==o.toLowerCase()+"\\")&&(s=o+"\\")):s=c.cwd(),t(s,"path"),0!==s.length){var d=s.length,u=0,g="",v=!1,C=s.charCodeAt(0);if(d>1)if(n(C))if(v=!0,n(s.charCodeAt(1))){for(var A=2,m=A;d>A&&!n(s.charCodeAt(A));++A);if(d>A&&A!==m){var b=s.slice(m,A);for(m=A;d>A&&n(s.charCodeAt(A));++A);if(d>A&&A!==m){for(m=A;d>A&&!n(s.charCodeAt(A));++A);A===d?(g="\\\\"+b+"\\"+s.slice(m),u=A):A!==m&&(g="\\\\"+b+"\\"+s.slice(m,A),u=A)}}}else u=1;else i(C)&&s.charCodeAt(1)===p&&(g=s.slice(0,2),u=2,d>2&&n(s.charCodeAt(2))&&(v=!0,u=3));else n(C)&&(u=1,v=!0);if(!(g.length>0&&o.length>0&&g.toLowerCase()!==o.toLowerCase())&&(0===o.length&&g.length>0&&(o=g),f||(l=s.slice(u)+"\\"+l,f=v),o.length>0&&f))break}}return l=a(l,!f,"\\",n),o+(f?"\\":"")+l||"."},normalize:function(e){t(e,"path");var r=e.length;if(0===r)return".";var o,l=0,f=!1,h=e.charCodeAt(0);if(r>1)if(n(h))if(f=!0,n(e.charCodeAt(1))){for(var c=2,s=c;r>c&&!n(e.charCodeAt(c));++c);if(r>c&&c!==s){var d=e.slice(s,c);for(s=c;r>c&&n(e.charCodeAt(c));++c);if(r>c&&c!==s){for(s=c;r>c&&!n(e.charCodeAt(c));++c);if(c===r)return"\\\\"+d+"\\"+e.slice(s)+"\\";c!==s&&(o="\\\\"+d+"\\"+e.slice(s,c),l=c)}}}else l=1;else i(h)&&e.charCodeAt(1)===p&&(o=e.slice(0,2),l=2,r>2&&n(e.charCodeAt(2))&&(f=!0,l=3));else if(n(h))return"\\";var u;return u=r>l?a(e.slice(l),!f,"\\",n):"",0!==u.length||f||(u="."),u.length>0&&n(e.charCodeAt(r-1))&&(u+="\\"),void 0===o?f?u.length>0?"\\"+u:"\\":u.length>0?u:"":f?u.length>0?o+"\\"+u:o+"\\":u.length>0?o+u:o},isAbsolute:function(e){t(e,"path");var r=e.length;if(0===r)return!1;var o=e.charCodeAt(0);return n(o)?!0:i(o)&&r>2&&e.charCodeAt(1)===p&&n(e.charCodeAt(2))?!0:!1},join:function(){for(var e=[],o=0;o0&&(void 0===i?i=a=f:i+="\\"+f)}if(void 0===i)return".";var h=!0,c=0;if("string"==typeof a&&n(a.charCodeAt(0))){++c;var s=a.length;s>1&&n(a.charCodeAt(1))&&(++c,s>2&&(n(a.charCodeAt(2))?++c:h=!1))}if(h){for(;c=2&&(i="\\"+i.slice(c))}return r.win32.normalize(i)},relative:function(e,n){if(t(e,"from"),t(n,"to"),e===n)return"";var o=r.win32.resolve(e),i=r.win32.resolve(n);if(o===i)return"";if(e=o.toLowerCase(),n=i.toLowerCase(),e===n)return"";for(var a=0;aa&&e.charCodeAt(l-1)===A;--l);for(var f=l-a,h=0;hh&&n.charCodeAt(c-1)===A;--c);for(var s=c-h,d=s>f?f:s,u=-1,g=0;d>=g;++g){if(g===d){if(s>d){if(n.charCodeAt(h+g)===A)return i.slice(h+g+1);if(2===g)return i.slice(h+g)}f>d&&(e.charCodeAt(a+g)===A?u=g:2===g&&(u=3));break}var v=e.charCodeAt(a+g),C=n.charCodeAt(h+g);if(v!==C)break;v===A&&(u=g)}if(g!==d&&-1===u)return i;var p="";for(-1===u&&(u=0),g=a+u+1;l>=g;++g)(g===l||e.charCodeAt(g)===A)&&(p+=0===p.length?"..":"\\..");return p.length>0?p+i.slice(h+u,c):(h+=u,i.charCodeAt(h)===A&&++h,i.slice(h,c))},toNamespacedPath:function(e){if("string"!=typeof e)return e;if(0===e.length)return"";var t=r.win32.resolve(e);if(t.length>=3)if(t.charCodeAt(0)===A){if(t.charCodeAt(1)===A){var n=t.charCodeAt(2);if(n!==m&&n!==v)return"\\\\?\\UNC\\"+t.slice(2)}}else if(i(t.charCodeAt(0))&&t.charCodeAt(1)===p&&t.charCodeAt(2)===A)return"\\\\?\\"+t;return e},dirname:function(e){t(e,"path");var r=e.length;if(0===r)return".";var o=-1,a=-1,l=!0,f=0,h=e.charCodeAt(0);if(r>1)if(n(h)){if(o=f=1,n(e.charCodeAt(1))){for(var c=2,s=c;r>c&&!n(e.charCodeAt(c));++c);if(r>c&&c!==s){for(s=c;r>c&&n(e.charCodeAt(c));++c);if(r>c&&c!==s){for(s=c;r>c&&!n(e.charCodeAt(c));++c);if(c===r)return e;c!==s&&(o=f=c+1)}}}}else i(h)&&e.charCodeAt(1)===p&&(o=f=2,r>2&&n(e.charCodeAt(2))&&(o=f=3));else if(n(h))return e;for(var d=r-1;d>=f;--d)if(n(e.charCodeAt(d))){if(!l){a=d;break}}else l=!1;if(-1===a){if(-1===o)return".";a=o}return e.slice(0,a)},basename:function(e,r){void 0!==r&&t(r,"ext"),t(e,"path");var o,a=0,l=-1,f=!0;if(e.length>=2){var h=e.charCodeAt(0);i(h)&&e.charCodeAt(1)===p&&(a=2)}if(void 0!==r&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var c=r.length-1,s=-1;for(o=e.length-1;o>=a;--o){var d=e.charCodeAt(o);if(n(d)){if(!f){a=o+1;break}}else-1===s&&(f=!1,s=o+1),c>=0&&(d===r.charCodeAt(c)?-1===--c&&(l=o):(c=-1,l=s))}return a===l?l=s:-1===l&&(l=e.length),e.slice(a,l)}for(o=e.length-1;o>=a;--o)if(n(e.charCodeAt(o))){if(!f){a=o+1;break}}else-1===l&&(f=!1,l=o+1);return-1===l?"":e.slice(a,l)},extname:function(e){t(e,"path");var r=0,o=-1,a=0,l=-1,f=!0,h=0;e.length>=2&&e.charCodeAt(1)===p&&i(e.charCodeAt(0))&&(r=a=2);for(var c=e.length-1;c>=r;--c){var s=e.charCodeAt(c);if(n(s)){if(!f){a=c+1;break}}else-1===l&&(f=!1,l=c+1),s===v?-1===o?o=c:1!==h&&(h=1):-1!==o&&(h=-1)}return-1===o||-1===l||0===h||1===h&&o===l-1&&o===a+1?"":e.slice(o,l)},format:function(e){if(null===e||"object"!=typeof e)throw new b("pathObject","Object",e);return l("\\",e)},parse:function(e){t(e,"path");var r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;var o=e.length,a=0,l=e.charCodeAt(0);if(o>1){if(n(l)){if(a=1,n(e.charCodeAt(1))){for(var f=2,h=f;o>f&&!n(e.charCodeAt(f));++f);if(o>f&&f!==h){for(h=f;o>f&&n(e.charCodeAt(f));++f);if(o>f&&f!==h){for(h=f;o>f&&!n(e.charCodeAt(f));++f);f===o?a=f:f!==h&&(a=f+1)}}}}else if(i(l)&&e.charCodeAt(1)===p){if(a=2,!(o>2))return r.root=r.dir=e,r;if(n(e.charCodeAt(2))){if(3===o)return r.root=r.dir=e,r;a=3}}}else if(n(l))return r.root=r.dir=e,r;a>0&&(r.root=e.slice(0,a));for(var c=-1,s=a,d=-1,u=!0,g=e.length-1,C=0;g>=a;--g)if(l=e.charCodeAt(g),n(l)){if(!u){s=g+1;break}}else-1===d&&(u=!1,d=g+1),l===v?-1===c?c=g:1!==C&&(C=1):-1!==c&&(C=-1);return-1===c||-1===d||0===C||1===C&&c===d-1&&c===s+1?-1!==d&&(r.base=r.name=e.slice(s,d)):(r.name=e.slice(s,c),r.base=e.slice(s,d),r.ext=e.slice(c,d)),r.dir=s>0&&s!==a?e.slice(0,s-1):r.root,r},sep:"\\",delimiter:";",win32:null,posix:null},r.posix={resolve:function(){for(var e=[],r=0;r=-1&&!i;l--){var f=void 0;f=l>=0?e[l]:c.cwd(),t(f,"path"),0!==f.length&&(n=f+"/"+n,i=f.charCodeAt(0)===C)}return n=a(n,!i,"/",o),i?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize:function(e){if(t(e,"path"),0===e.length)return".";var r=e.charCodeAt(0)===C,n=e.charCodeAt(e.length-1)===C;return e=a(e,!r,"/",o),0!==e.length||r||(e="."),e.length>0&&n&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return t(e,"path"),e.length>0&&e.charCodeAt(0)===C},join:function(){for(var e=[],n=0;n0&&(void 0===o?o=a:o+="/"+a)}return void 0===o?".":r.posix.normalize(o)},relative:function(e,n){if(t(e,"from"),t(n,"to"),e===n)return"";if(e=r.posix.resolve(e),n=r.posix.resolve(n),e===n)return"";for(var o=1;oa?a:h,s=-1,d=0;c>=d;++d){if(d===c){if(h>c){if(n.charCodeAt(l+d)===C)return n.slice(l+d+1);if(0===d)return n.slice(l+d)}else a>c&&(e.charCodeAt(o+d)===C?s=d:0===d&&(s=0));break}var u=e.charCodeAt(o+d),g=n.charCodeAt(l+d);if(u!==g)break;u===C&&(s=d)}var v="";for(d=o+s+1;i>=d;++d)(d===i||e.charCodeAt(d)===C)&&(v+=0===v.length?"..":"/..");return v.length>0?v+n.slice(l+s):(l+=s,n.charCodeAt(l)===C&&++l,n.slice(l))},toNamespacedPath:function(e){return e},dirname:function(e){if(t(e,"path"),0===e.length)return".";for(var r=e.charCodeAt(0)===C,n=-1,o=!0,i=e.length-1;i>=1;--i)if(e.charCodeAt(i)===C){if(!o){n=i;break}}else o=!1;return-1===n?r?"/":".":r&&1===n?"//":e.slice(0,n)},basename:function(e,r){void 0!==r&&t(r,"ext"),t(e,"path");var n,o=0,i=-1,a=!0;if(void 0!==r&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var l=r.length-1,f=-1;for(n=e.length-1;n>=0;--n){var h=e.charCodeAt(n);if(h===C){if(!a){o=n+1;break}}else-1===f&&(a=!1,f=n+1),l>=0&&(h===r.charCodeAt(l)?-1===--l&&(i=n):(l=-1,i=f))}return o===i?i=f:-1===i&&(i=e.length),e.slice(o,i)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===C){if(!a){o=n+1;break}}else-1===i&&(a=!1,i=n+1);return-1===i?"":e.slice(o,i)},extname:function(e){t(e,"path");for(var r=-1,n=0,o=-1,i=!0,a=0,l=e.length-1;l>=0;--l){var f=e.charCodeAt(l);if(f!==C)-1===o&&(i=!1,o=l+1),f===v?-1===r?r=l:1!==a&&(a=1):-1!==r&&(a=-1);else if(!i){n=l+1;break}}return-1===r||-1===o||0===a||1===a&&r===o-1&&r===n+1?"":e.slice(r,o)},format:function(e){if(null===e||"object"!=typeof e)throw new b("pathObject","Object",e);return l("/",e)},parse:function(e){t(e,"path");var r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;var n,o=e.charCodeAt(0)===C;o?(r.root="/",n=1):n=0;for(var i=-1,a=0,l=-1,f=!0,h=e.length-1,c=0;h>=n;--h){var s=e.charCodeAt(h);if(s!==C)-1===l&&(f=!1,l=h+1),s===v?-1===i?i=h:1!==c&&(c=1):-1!==i&&(c=-1);else if(!f){a=h+1;break}}return-1===i||-1===l||0===c||1===c&&i===l-1&&i===a+1?-1!==l&&(r.base=r.name=0===a&&o?e.slice(1,l):e.slice(a,l)):(0===a&&o?(r.name=e.slice(1,i),r.base=e.slice(1,l)):(r.name=e.slice(a,i),r.base=e.slice(a,l)),r.ext=e.slice(i,l)),a>0?r.dir=e.slice(0,a-1):o&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null},r.posix.win32=r.win32.win32=r.win32,r.posix.posix=r.win32.posix=r.posix,r.normalize="win32"===c.platform?r.win32.normalize:r.posix.normalize,r.join="win32"===c.platform?r.win32.join:r.posix.join,r.relative="win32"===c.platform?r.win32.relative:r.posix.relative,r.dirname="win32"===c.platform?r.win32.dirname:r.posix.dirname,r.basename="win32"===c.platform?r.win32.basename:r.posix.basename,r.extname="win32"===c.platform?r.win32.extname:r.posix.extname,r.sep="win32"===c.platform?r.win32.sep:r.posix.sep}); ;/*!node_modules/monaco-editor/esm/vs/base/common/extpath.js*/ define("node_modules/monaco-editor/esm/vs/base/common/extpath",function(e,t){"use strict";function n(e){return e.replace(/[\\\/]/g,i.posix.sep)}function r(e,t,n,r){if(void 0===r&&(r=i.sep),e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(n){var o=s.startsWithIgnoreCase(e,t);if(!o)return!1;if(t.length===e.length)return!0;var a=t.length;return t.charAt(t.length-1)===r&&a--,e.charAt(a)===r}return t.charAt(t.length-1)!==r&&(t+=r),0===e.indexOf(t)}function o(e){return e>=65&&90>=e||e>=97&&122>=e}Object.defineProperty(t,"__esModule",{value:!0});var s=e("node_modules/monaco-editor/esm/vs/base/common/strings"),i=e("node_modules/monaco-editor/esm/vs/base/common/path");t.toSlashes=n,t.isEqualOrParent=r,t.isWindowsDriveLetter=o}); ;/*!node_modules/monaco-editor/esm/vs/base/common/resources.js*/ define("node_modules/monaco-editor/esm/vs/base/common/resources",function(e,t){"use strict";function a(e){return e&&e.scheme===_.Schemas.file?!A.isLinux:!0}function o(e){return i(e)||e.authority}function r(e,t){return e===t||v.equalsIgnoreCase(e,t)}function n(e,t,o){if(void 0===o&&(o=a(e)),e===t)return!0;if(!e||!t)return!1;if(e.scheme!==t.scheme||!r(e.authority,t.authority))return!1;var n=e.path||"/",i=t.path||"/";return n===i||o&&v.equalsIgnoreCase(n||"/",i||"/")}function i(e){return p.posix.basename(e.path)}function s(e){if(0===e.path.length)return e;if(e.scheme===_.Schemas.file)return f.URI.file(p.dirname(u(e)));var t=p.posix.dirname(e.path);return e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error('dirname("'+e.toString+")) resulted in a relative path"),t="/"),e.with({path:t})}function h(e){for(var t,a=[],o=1;o1&&e.scheme===_.Schemas.file?"//"+e.authority+a:A.isWindows&&47===a.charCodeAt(0)&&d.isWindowsDriveLetter(a.charCodeAt(1))&&58===a.charCodeAt(2)?a.substr(1):a,A.isWindows&&(t=t.replace(/\//g,"\\")),t}function c(e,t){if(e.scheme!==t.scheme||!r(e.authority,t.authority))return void 0;if(e.scheme===_.Schemas.file){var a=p.relative(e.path,t.path);return A.isWindows?d.toSlashes(a):a}return p.posix.relative(e.path||"/",t.path||"/")}Object.defineProperty(t,"__esModule",{value:!0});var l=e("node_modules/tslib/tslib"),d=l.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/extpath")),p=l.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/path")),f=e("node_modules/monaco-editor/esm/vs/base/common/uri"),v=e("node_modules/monaco-editor/esm/vs/base/common/strings"),_=e("node_modules/monaco-editor/esm/vs/base/common/network"),A=e("node_modules/monaco-editor/esm/vs/base/common/platform");t.hasToIgnoreCase=a,t.basenameOrAuthority=o,t.isEqualAuthority=r,t.isEqual=n,t.basename=i,t.dirname=s,t.joinPath=h,t.normalizePath=m,t.originalFSPath=u,t.relativePath=c,function(e){function t(t){var a=new Map,o=t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";"));o.split(";").forEach(function(e){var t=e.split(":"),o=t[0],r=t[1];o&&r&&a.set(o,r)});var r=t.path.substring(0,t.path.indexOf(";"));return r&&a.set(e.META_DATA_MIME,r),a}e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=t}(t.DataUri||(t.DataUri={}))}); ;/*!node_modules/monaco-editor/esm/vs/platform/commands/common/commands.js*/ define("node_modules/monaco-editor/esm/vs/platform/commands/common/commands",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=e("node_modules/monaco-editor/esm/vs/base/common/lifecycle"),t=e("node_modules/monaco-editor/esm/vs/base/common/types"),m=e("node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation"),r=e("node_modules/monaco-editor/esm/vs/base/common/event"),i=e("node_modules/monaco-editor/esm/vs/base/common/linkedList");n.ICommandService=m.createDecorator("commandService"),n.CommandsRegistry=new(function(){function e(){this._commands=new Map,this._onDidRegisterCommand=new r.Emitter,this.onDidRegisterCommand=this._onDidRegisterCommand.event}return e.prototype.registerCommand=function(e,n){var m=this;if(!e)throw new Error("invalid command");if("string"==typeof e){if(!n)throw new Error("invalid command");return this.registerCommand({id:e,handler:n})}if(e.description){for(var r=[],a=0,s=e.description.args;as?o:null===r?r=Object.getOwnPropertyDescriptor(o,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,o,t,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(i=(3>s?n(i):s>3?n(o,t,i):n(o,t))||i);return s>3&&i&&Object.defineProperty(o,t,i),i},n=this&&this.__param||function(e,o){return function(t,r){o(t,r,e)}},s=this&&this.__awaiter||function(e,o,t,r){return new(t||(t=Promise))(function(n,s){function i(e){try{c(r.next(e))}catch(o){s(o)}}function a(e){try{c(r["throw"](e))}catch(o){s(o)}}function c(e){e.done?n(e.value):new t(function(o){o(e.value)}).then(i,a)}c((r=r.apply(e,o||[])).next())})},i=this&&this.__generator||function(e,o){function t(e){return function(o){return r([e,o])}}function r(t){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,s&&(i=2&t[0]?s["return"]:t[0]?s["throw"]||((i=s["return"])&&i.call(s),0):s.next)&&!(i=i.call(s,t[1])).done)return i;switch(s=0,i&&(t=[2&t[0],i.value]),t[0]){case 0:case 1:i=t;break;case 4:return c.label++,{value:t[1],done:!1};case 5:c.label++,s=t[1],t=[0];continue;case 7:t=c.ops.pop(),c.trys.pop();continue;default:if(i=c.trys,!(i=i.length>0&&i[i.length-1])&&(6===t[0]||2===t[0])){c=0;continue}if(3===t[0]&&(!i||t[1]>i[0]&&t[1]s&&!e;s++){var n=this.ranges[s].range;i.isBeforeOrEqual(n.getStartPosition())&&(this.nextIdx=s+(t?0:-1),e=!0)}e||(this.nextIdx=t?0:this.ranges.length-1),this.nextIdx<0&&(this.nextIdx=this.ranges.length-1)},t.prototype._move=function(t,e){if(s.ok(!this.disposed,"Illegal State - diff navigator has been disposed"),this.canNavigate()){-1===this.nextIdx?this._initIdx(t):t?(this.nextIdx+=1,this.nextIdx>=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));var i=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{var o=i.range.getStartPosition();this._editor.setPosition(o),this._editor.revealPositionInCenter(o,e)}finally{this.ignoreSelectionChange=!1}}},t.prototype.canNavigate=function(){return this.ranges&&this.ranges.length>0},t.prototype.next=function(t){void 0===t&&(t=0),this._move(!0,t)},t.prototype.previous=function(t){void 0===t&&(t=0),this._move(!1,t)},t.prototype.dispose=function(){n.dispose(this._disposables),this._disposables.length=0,this._onDidUpdate.dispose(),this.ranges=[],this.disposed=!0},t}();e.DiffNavigator=h}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/config/editorZoom.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/config/editorZoom",function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var t=e("node_modules/monaco-editor/esm/vs/base/common/event");o.EditorZoom=new(function(){function e(){this._zoomLevel=0,this._onDidChangeZoomLevel=new t.Emitter,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}return e.prototype.getZoomLevel=function(){return this._zoomLevel},e.prototype.setZoomLevel=function(e){e=Math.min(Math.max(-5,e),20),this._zoomLevel!==e&&(this._zoomLevel=e,this._onDidChangeZoomLevel.fire(this._zoomLevel))},e}())}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/config/fontInfo.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/config/fontInfo",function(t,i){"use strict";function e(t,i){if("number"==typeof t)return t;if("undefined"==typeof t)return i;var e=parseFloat(t);return isNaN(e)?i:e}function o(t,i){if("number"==typeof t)return Math.round(t);if("undefined"==typeof t)return i;var e=parseInt(t);return isNaN(e)?i:e}function n(t,i,e){return i>t?i:t>e?e:t}function r(t,i){return"string"!=typeof t?i:t}Object.defineProperty(i,"__esModule",{value:!0});var a=t("node_modules/tslib/tslib"),h=this&&this.__extends||function(){var t=function(i,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var e in i)i.hasOwnProperty(e)&&(t[e]=i[e])})(i,e)};return function(i,e){function o(){this.constructor=i}t(i,e),i.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}}(),s=a.__importStar(t("node_modules/monaco-editor/esm/vs/base/common/platform")),f=t("node_modules/monaco-editor/esm/vs/editor/common/config/editorOptions"),c=t("node_modules/monaco-editor/esm/vs/editor/common/config/editorZoom"),l=s.isMacintosh?1.5:1.35,d=8,u=100,m=8,p=150,g=-5,y=20,F=function(){function t(t){this.zoomLevel=t.zoomLevel,this.fontFamily=String(t.fontFamily),this.fontWeight=String(t.fontWeight),this.fontSize=t.fontSize,this.lineHeight=0|t.lineHeight,this.letterSpacing=t.letterSpacing}return t.createFromRawSettings=function(i,a,h){void 0===h&&(h=!1);var s=r(i.fontFamily,f.EDITOR_FONT_DEFAULTS.fontFamily),F=r(i.fontWeight,f.EDITOR_FONT_DEFAULTS.fontWeight),_=e(i.fontSize,f.EDITOR_FONT_DEFAULTS.fontSize);_=n(_,0,u),0===_?_=f.EDITOR_FONT_DEFAULTS.fontSize:d>_&&(_=d);var w=o(i.lineHeight,0);w=n(w,0,p),0===w?w=Math.round(l*_):m>w&&(w=m);var S=e(i.letterSpacing,0);S=n(S,g,y);var W=1+(h?0:.1*c.EditorZoom.getZoomLevel());return _*=W,w*=W,new t({zoomLevel:a,fontFamily:s,fontWeight:F,fontSize:_,lineHeight:w,letterSpacing:S})},t.prototype.getId=function(){return this.zoomLevel+"-"+this.fontFamily+"-"+this.fontWeight+"-"+this.fontSize+"-"+this.lineHeight+"-"+this.letterSpacing},t.prototype.getMassagedFontFamily=function(){return/[,"']/.test(this.fontFamily)?this.fontFamily:/[+ ]/.test(this.fontFamily)?'"'+this.fontFamily+'"':this.fontFamily},t}();i.BareFontInfo=F;var _=function(t){function i(i,e){var o=t.call(this,i)||this;return o.isTrusted=e,o.isMonospace=i.isMonospace,o.typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,o.typicalFullwidthCharacterWidth=i.typicalFullwidthCharacterWidth,o.canUseHalfwidthRightwardsArrow=i.canUseHalfwidthRightwardsArrow,o.spaceWidth=i.spaceWidth,o.maxDigitWidth=i.maxDigitWidth,o}return h(i,t),i.prototype.equals=function(t){return this.fontFamily===t.fontFamily&&this.fontWeight===t.fontWeight&&this.fontSize===t.fontSize&&this.lineHeight===t.lineHeight&&this.letterSpacing===t.letterSpacing&&this.typicalHalfwidthCharacterWidth===t.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===t.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===t.canUseHalfwidthRightwardsArrow&&this.spaceWidth===t.spaceWidth&&this.maxDigitWidth===t.maxDigitWidth},i}(F);i.FontInfo=_}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/editorCommon.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/editorCommon",function(o,e){"use strict";function t(o){return o&&"string"==typeof o.id}Object.defineProperty(e,"__esModule",{value:!0}),e.isThemeColor=t,e.EditorType={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"},e.Handler={ExecuteCommand:"executeCommand",ExecuteCommands:"executeCommands",Type:"type",ReplacePreviousChar:"replacePreviousChar",CompositionStart:"compositionStart",CompositionEnd:"compositionEnd",Paste:"paste",Cut:"cut",Undo:"undo",Redo:"redo"}}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/model.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/model",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(t.OverviewRulerLane||(t.OverviewRulerLane={}));var i=function(){function e(e){this.tabSize=0|e.tabSize,this.indentSize=0|e.tabSize,this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace)}return e.prototype.equals=function(e){return this.tabSize===e.tabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace},e.prototype.createChangeEvent=function(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}},e}();t.TextModelResolvedOptions=i;var n=function(){function e(e,t){this.range=e,this.matches=t}return e}();t.FindMatch=n;var s=function(){function e(e,t,i){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=i}return e}();t.ApplyEditsResult=s}); ;/*!node_modules/monaco-editor/esm/vs/base/common/map.js*/ define("node_modules/monaco-editor/esm/vs/base/common/map",function(t,e){"use strict";function i(t){var e=[];return t.forEach(function(t){return e.push(t)}),e}function r(t){var e=[];return t.forEach(function(t,i){return e.push(i)}),e}Object.defineProperty(e,"__esModule",{value:!0});var o=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();e.values=i,e.keys=r;var s=function(){function t(){this._value="",this._pos=0}return t.prototype.reset=function(t){return this._value=t,this._pos=0,this},t.prototype.next=function(){return this._pos+=1,this},t.prototype.hasNext=function(){return this._pose&&re?-1:1},t.prototype.value=function(){return this._value.substring(this._from,this._to)},t}();e.PathIterator=n;var h=function(){function t(){}return t}(),a=function(){function t(t){this._iter=t}return t.forPaths=function(){return new t(new n)},t.forStrings=function(){return new t(new s)},t.prototype.clear=function(){this._root=void 0},t.prototype.set=function(t,e){var i,r=this._iter.reset(t);for(this._root||(this._root=new h,this._root.segment=r.value()),i=this._root;;){var o=r.cmp(i.segment);if(o>0)i.left||(i.left=new h,i.left.segment=r.value()),i=i.left;else if(0>o)i.right||(i.right=new h,i.right.segment=r.value()),i=i.right;else{if(!r.hasNext())break;r.next(),i.mid||(i.mid=new h,i.mid.segment=r.value()),i=i.mid}}var s=i.value;return i.value=e,i.key=t,s},t.prototype.get=function(t){for(var e=this._iter.reset(t),i=this._root;i;){var r=e.cmp(i.segment);if(r>0)i=i.left;else if(0>r)i=i.right;else{if(!e.hasNext())break;e.next(),i=i.mid}}return i?i.value:void 0},t.prototype.findSubstr=function(t){for(var e=this._iter.reset(t),i=this._root,r=void 0;i;){var o=e.cmp(i.segment);if(o>0)i=i.left;else if(0>o)i=i.right;else{if(!e.hasNext())break;e.next(),r=i.value||r,i=i.mid}}return i&&i.value||r},t.prototype.forEach=function(t){this._forEach(this._root,t)},t.prototype._forEach=function(t,e){t&&(this._forEach(t.left,e),t.value&&e(t.value,t.key),this._forEach(t.mid,e),this._forEach(t.right,e))},t}();e.TernarySearchTree=a;var u=function(){function t(){this.map=new Map,this.ignoreCase=!1}return t.prototype.set=function(t,e){this.map.set(this.toKey(t),e)},t.prototype.get=function(t){return this.map.get(this.toKey(t))},t.prototype.toKey=function(t){var e=t.toString();return this.ignoreCase&&(e=e.toLowerCase()),e},t}();e.ResourceMap=u;var p=function(){function t(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return t.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),t.prototype.get=function(t,e){void 0===e&&(e=0);var i=this._map.get(t);return i?(0!==e&&this.touch(i,e),i.value):void 0},t.prototype.set=function(t,e,i){void 0===i&&(i=0);var r=this._map.get(t);if(r)r.value=e,0!==i&&this.touch(r,i);else{switch(r={key:t,value:e,next:void 0,previous:void 0},i){case 0:this.addItemLast(r);break;case 1:this.addItemFirst(r);break;case 2:this.addItemLast(r);break;default:this.addItemLast(r)}this._map.set(t,r),this._size++}},t.prototype.delete=function(t){return!!this.remove(t)},t.prototype.remove=function(t){var e=this._map.get(t);return e?(this._map.delete(t),this.removeItem(e),this._size--,e.value):void 0},t.prototype.forEach=function(t,e){for(var i=this._head;i;)e?t.bind(e)(i.value,i.key,this):t(i.value,i.key,this),i=i.next},t.prototype.trimOld=function(t){if(!(t>=this.size)){if(0===t)return void this.clear();for(var e=this._head,i=this.size;e&&i>t;)this._map.delete(e.key),e=e.next,i--;this._head=e,this._size=i,e&&(e.previous=void 0)}},t.prototype.addItemFirst=function(t){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");t.next=this._head,this._head.previous=t}else this._tail=t;this._head=t},t.prototype.addItemLast=function(t){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");t.previous=this._tail,this._tail.next=t}else this._head=t;this._tail=t},t.prototype.removeItem=function(t){if(t===this._head&&t===this._tail)this._head=void 0,this._tail=void 0;else if(t===this._head){if(!t.next)throw new Error("Invalid list");t.next.previous=void 0,this._head=t.next}else if(t===this._tail){if(!t.previous)throw new Error("Invalid list");t.previous.next=void 0,this._tail=t.previous}else{var e=t.next,i=t.previous;if(!e||!i)throw new Error("Invalid list");e.previous=i,i.next=e}t.next=void 0,t.previous=void 0},t.prototype.touch=function(t,e){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===e||2===e)if(1===e){if(t===this._head)return;var i=t.next,r=t.previous;t===this._tail?(r.next=void 0,this._tail=r):(i.previous=r,r.next=i),t.previous=void 0,t.next=this._head,this._head.previous=t,this._head=t}else if(2===e){if(t===this._tail)return;var i=t.next,r=t.previous;t===this._head?(i.previous=void 0,this._head=i):(i.previous=r,r.next=i),t.next=void 0,t.previous=this._tail,this._tail.next=t,this._tail=t}},t.prototype.toJSON=function(){var t=[];return this.forEach(function(e,i){t.push([i,e])}),t},t}();e.LinkedMap=p;var f=function(t){function e(e,i){void 0===i&&(i=1);var r=t.call(this)||this;return r._limit=e,r._ratio=Math.min(Math.max(0,i),1),r}return o(e,t),e.prototype.get=function(e){return t.prototype.get.call(this,e,2)},e.prototype.set=function(e,i){t.prototype.set.call(this,e,i,2),this.checkTrim()},e.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},e}(p);e.LRUCache=f}); ;/*!node_modules/monaco-editor/esm/vs/base/common/glob.js*/ define("node_modules/monaco-editor/esm/vs/base/common/glob",function(e,n){"use strict";function r(e){switch(e){case 0:return"";case 1:return S+"*?";default:return"(?:"+k+"|"+S+"+"+k+"|"+k+S+"+)*?"}}function t(e,n){if(!e)return[];for(var r=[],t=!1,a=!1,s="",u=0,i=e;ua;a++)if(r[a](n,t))return e;return null},u=y.first(r,function(e){return!!e.allBasenames});u&&(a.allBasenames=u.allBasenames);var i=r.reduce(function(e,n){return n.allPaths?e.concat(n.allPaths):e},[]);return i.length&&(a.allPaths=i),a}function c(e,n,r){var t=P.sep!==P.posix.sep?e.replace(O,P.sep):e,a=P.sep+t,s=r?function(e){return"string"!=typeof e||e!==t&&!_.endsWith(e,a)?null:n}:function(e){return"string"==typeof e&&e===t?n:null};return s.allPaths=[(r?"*/":"./")+e],s}function f(e){try{var n=new RegExp("^"+a(e)+"$");return function(r){return n.lastIndex=0,"string"==typeof r&&n.test(r)?e:null}}catch(r){return I}}function m(e,n,r){return e&&"string"==typeof n?v(e)(n,void 0,r):!1}function v(e,n){if(void 0===n&&(n={}),!e)return G;if("string"==typeof e||h(e)){var r=s(e,n);if(r===I)return G;var t=function(e,n){return!!r(e,n)};return r.allBasenames&&(t.allBasenames=r.allBasenames),r.allPaths&&(t.allPaths=r.allPaths),t}return p(e,n)}function h(e){var n=e;return n&&"string"==typeof n.base&&"string"==typeof n.pattern}function p(e,n){var r=g(Object.getOwnPropertyNames(e).map(function(r){return d(r,e[r],n)}).filter(function(e){return e!==I})),t=r.length;if(!t)return I;if(!r.some(function(e){return!!e.requiresSiblings})){if(1===t)return r[0];var a=function(e,n){for(var t=0,a=r.length;a>t;t++){var s=r[t](e,n);if(s)return s}return null},s=y.first(r,function(e){return!!e.allBasenames});s&&(a.allBasenames=s.allBasenames);var u=r.reduce(function(e,n){return n.allPaths?e.concat(n.allPaths):e},[]);return u.length&&(a.allPaths=u),a}var i=function(e,n,t){for(var a=void 0,s=0,u=r.length;u>s;s++){var i=r[s];i.requiresSiblings&&t&&(n||(n=P.basename(e)),a||(a=n.substr(0,n.length-P.extname(e).length)));var o=i(e,n,a,t);if(o)return o}return null},o=y.first(r,function(e){return!!e.allBasenames});o&&(i.allBasenames=o.allBasenames);var l=r.reduce(function(e,n){return n.allPaths?e.concat(n.allPaths):e},[]);return l.length&&(i.allPaths=l),i}function d(e,n,r){if(n===!1)return I;var t=s(e,r);if(t===I)return I;if("boolean"==typeof n)return t;if(n){var a=n.when;if("string"==typeof a){var u=function(n,r,s,u){if(!u||!t(n,r))return null;var i=a.replace("$(basename)",s),o=u(i);return B.isThenable(o)?o.then(function(n){return n?e:null}):o?e:null};return u.requiresSiblings=!0,u}}return t}function g(e,n){var r=e.filter(function(e){return!!e.basenames});if(r.length<2)return e;var t,a=r.reduce(function(e,n){var r=n.basenames;return r?e.concat(r):e},[]);if(n){t=[];for(var s=0,u=a.length;u>s;s++)t.push(n)}else t=r.reduce(function(e,n){var r=n.patterns;return r?e.concat(r):e},[]);var i=function(e,n){if("string"!=typeof e)return null;if(!n){var r=void 0;for(r=e.length;r>0;r--){var s=e.charCodeAt(r-1);if(47===s||92===s)break}n=e.substr(r)}var u=a.indexOf(n);return-1!==u?t[u]:null};i.basenames=a,i.patterns=t,i.allBasenames=a;var o=e.filter(function(e){return!e.basenames});return o.push(i),o}Object.defineProperty(n,"__esModule",{value:!0});var b=e("node_modules/tslib/tslib"),y=b.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/arrays")),_=b.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/strings")),w=b.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/extpath")),P=b.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/path")),x=e("node_modules/monaco-editor/esm/vs/base/common/map"),B=e("node_modules/monaco-editor/esm/vs/base/common/async"),E="**",$="/",k="[/\\\\]",S="[^/\\\\]",O=/\//g;n.splitGlobAware=t;var R=/^\*\*\/\*\.[\w\.-]+$/,W=/^\*\*\/([\w\.-]+)\/?$/,q=/^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/,C=/^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/,j=/^\*\*((\/[\w\.-]+)+)\/?$/,F=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,A=new x.LRUCache(1e4),G=function(){return!1},I=function(){return null};n.match=m,n.parse=v,n.isRelativePattern=h}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/modes/languageSelector.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/modes/languageSelector",function(e,r){"use strict";function t(e,r,n,s){if(Array.isArray(e)){for(var i=0,a=0,f=e;ai&&(i=c)}return i}if("string"==typeof e)return s?"*"===e?5:e===n?10:0:0;if(e){var m=e.language,l=e.pattern,d=e.scheme,h=e.hasAccessToAllModels;if(!s&&!h)return 0;var i=0;if(d)if(d===r.scheme)i=10;else{if("*"!==d)return 0;i=5}if(m)if(m===n)i=10;else{if("*"!==m)return 0;i=Math.max(i,5)}if(l){if(l!==r.fsPath&&!o.match(l,r.fsPath))return 0;i=10}return i}return 0}Object.defineProperty(r,"__esModule",{value:!0});var o=e("node_modules/monaco-editor/esm/vs/base/common/glob");r.score=t}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/services/modelService.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/services/modelService",function(e,o){"use strict";function i(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}Object.defineProperty(o,"__esModule",{value:!0});var n=e("node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation");o.IModelService=n.createDecorator("modelService"),o.shouldSynchronizeModel=i}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/modes/languageFeatureRegistry.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/modes/languageFeatureRegistry",function(e,r){"use strict";function t(e){return"string"==typeof e?!1:Array.isArray(e)?e.every(t):!!e.exclusive}Object.defineProperty(r,"__esModule",{value:!0});var o=e("node_modules/monaco-editor/esm/vs/base/common/event"),i=e("node_modules/monaco-editor/esm/vs/base/common/lifecycle"),n=e("node_modules/monaco-editor/esm/vs/editor/common/modes/languageSelector"),s=e("node_modules/monaco-editor/esm/vs/editor/common/services/modelService"),a=function(){function e(){this._clock=0,this._entries=[],this._onDidChange=new o.Emitter}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),e.prototype.register=function(e,r){var t=this,o={selector:e,provider:r,_score:-1,_time:this._clock++};return this._entries.push(o),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),i.toDisposable(function(){if(o){var e=t._entries.indexOf(o);e>=0&&(t._entries.splice(e,1),t._lastCandidate=void 0,t._onDidChange.fire(t._entries.length),o=void 0)}})},e.prototype.has=function(e){return this.all(e).length>0},e.prototype.all=function(e){if(!e)return[];this._updateScores(e);for(var r=[],t=0,o=this._entries;t0&&r.push(i.provider)}return r},e.prototype.ordered=function(e){var r=[];return this._orderedForEach(e,function(e){return r.push(e.provider)}),r},e.prototype.orderedGroups=function(e){var r,t,o=[];return this._orderedForEach(e,function(e){r&&t===e._score?r.push(e.provider):(t=e._score,r=[e.provider],o.push(r))}),o},e.prototype._orderedForEach=function(e,r){if(e){this._updateScores(e);for(var t=0,o=this._entries;t0&&r(i)}}},e.prototype._updateScores=function(r){var o={uri:r.uri.toString(),language:r.getLanguageIdentifier().language};if(!this._lastCandidate||this._lastCandidate.language!==o.language||this._lastCandidate.uri!==o.uri){this._lastCandidate=o;for(var i=0,a=this._entries;i0){for(var c=0,u=this._entries;cr._score?-1:e._timer._time?-1:0},e}();r.LanguageFeatureRegistry=a}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/modes/tokenizationRegistry.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/modes/tokenizationRegistry",function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var t=e("node_modules/monaco-editor/esm/vs/base/common/event"),n=e("node_modules/monaco-editor/esm/vs/base/common/lifecycle"),i=e("node_modules/monaco-editor/esm/vs/base/common/types"),s=e("node_modules/monaco-editor/esm/vs/base/common/map"),r=function(){function e(){this._map=new Map,this._promises=new Map,this._onDidChange=new t.Emitter,this.onDidChange=this._onDidChange.event,this._colorMap=null}return e.prototype.fire=function(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})},e.prototype.register=function(e,o){var t=this;return this._map.set(e,o),this.fire([e]),n.toDisposable(function(){t._map.get(e)===o&&(t._map.delete(e),t.fire([e]))})},e.prototype.registerPromise=function(e,o){var t=this,i=null,s=!1;return this._promises.set(e,o.then(function(o){t._promises.delete(e),!s&&o&&(i=t.register(e,o))})),n.toDisposable(function(){s=!0,i&&i.dispose()})},e.prototype.getPromise=function(e){var o=this,t=this.get(e);if(t)return Promise.resolve(t);var n=this._promises.get(e);return n?n.then(function(){return o.get(e)}):null},e.prototype.get=function(e){return i.withUndefinedAsNull(this._map.get(e))},e.prototype.setColorMap=function(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:s.keys(this._map),changedColorMap:!0})},e.prototype.getColorMap=function(){return this._colorMap},e.prototype.getDefaultBackground=function(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null},e}();o.TokenizationRegistryImpl=r}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/modes.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/modes",function(e,t){"use strict";function r(e){return e&&i.URI.isUri(e.uri)&&a.Range.isIRange(e.range)&&(a.Range.isIRange(e.originSelectionRange)||a.Range.isIRange(e.targetSelectionRange))}function n(e){return o.isObject(e)&&e.resource&&Array.isArray(e.edits)}Object.defineProperty(t,"__esModule",{value:!0});var o=e("node_modules/monaco-editor/esm/vs/base/common/types"),i=e("node_modules/monaco-editor/esm/vs/base/common/uri"),a=e("node_modules/monaco-editor/esm/vs/editor/common/core/range"),g=e("node_modules/monaco-editor/esm/vs/editor/common/modes/languageFeatureRegistry"),u=e("node_modules/monaco-editor/esm/vs/editor/common/modes/tokenizationRegistry"),s=function(){function e(e,t){this.language=e,this.id=t}return e}();t.LanguageIdentifier=s;var c=function(){function e(){}return e.getLanguageId=function(e){return(255&e)>>>0},e.getTokenType=function(e){return(1792&e)>>>8},e.getFontStyle=function(e){return(14336&e)>>>11},e.getForeground=function(e){return(8372224&e)>>>14},e.getBackground=function(e){return(4286578688&e)>>>23},e.getClassNameFromMetadata=function(e){var t=this.getForeground(e),r="mtk"+t,n=this.getFontStyle(e);return 1&n&&(r+=" mtki"),2&n&&(r+=" mtkb"),4&n&&(r+=" mtku"),r},e.getInlineStyleFromMetadata=function(e,t){var r=this.getForeground(e),n=this.getFontStyle(e),o="color: "+t[r]+";";return 1&n&&(o+="font-style: italic;"),2&n&&(o+="font-weight: bold;"),4&n&&(o+="text-decoration: underline;"),o},e}();t.TokenMetadata=c,t.completionKindToCssClass=function(){var e=Object.create(null);return e[0]="method",e[1]="function",e[2]="constructor",e[3]="field",e[4]="variable",e[5]="class",e[6]="struct",e[7]="interface",e[8]="module",e[9]="property",e[10]="event",e[11]="operator",e[12]="unit",e[13]="value",e[14]="constant",e[15]="enum",e[16]="enum-member",e[17]="keyword",e[25]="snippet",e[18]="text",e[19]="color",e[20]="file",e[21]="reference",e[22]="customcolor",e[23]="folder",e[24]="type-parameter",function(t){return e[t]||"property"}}(),t.completionKindFromString=function(){var e=Object.create(null);return e.method=0,e["function"]=1,e.constructor=2,e.field=3,e.variable=4,e["class"]=5,e.struct=6,e["interface"]=7,e.module=8,e.property=9,e.event=10,e.operator=11,e.unit=12,e.value=13,e.constant=14,e["enum"]=15,e["enum-member"]=16,e.enumMember=16,e.keyword=17,e.snippet=25,e.text=18,e.color=19,e.file=20,e.reference=21,e.customcolor=22,e.folder=23,e["type-parameter"]=24,e.typeParameter=24,function(t,r){var n=e[t];return"undefined"!=typeof n||r||(n=9),n}}(),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(t.SignatureHelpTriggerKind||(t.SignatureHelpTriggerKind={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(t.DocumentHighlightKind||(t.DocumentHighlightKind={})),t.isLocationLink=r,t.symbolKindToCssClass=function(){var e=Object.create(null);return e[0]="file",e[1]="module",e[2]="namespace",e[3]="package",e[4]="class",e[5]="method",e[6]="property",e[7]="field",e[8]="constructor",e[9]="enum",e[10]="interface",e[11]="function",e[12]="variable",e[13]="constant",e[14]="string",e[15]="number",e[16]="boolean",e[17]="array",e[18]="object",e[19]="key",e[20]="null",e[21]="enum-member",e[22]="struct",e[23]="event",e[24]="operator",e[25]="type-parameter",function(t,r){return"symbol-icon "+(r?"inline":"block")+" "+(e[t]||"property")}}();var d=function(){function e(e){this.value=e}return e.Comment=new e("comment"),e.Imports=new e("imports"),e.Region=new e("region"),e}();t.FoldingRangeKind=d,t.isResourceTextEdit=n,t.ReferenceProviderRegistry=new g.LanguageFeatureRegistry,t.RenameProviderRegistry=new g.LanguageFeatureRegistry,t.CompletionProviderRegistry=new g.LanguageFeatureRegistry,t.SignatureHelpProviderRegistry=new g.LanguageFeatureRegistry,t.HoverProviderRegistry=new g.LanguageFeatureRegistry,t.DocumentSymbolProviderRegistry=new g.LanguageFeatureRegistry,t.DocumentHighlightProviderRegistry=new g.LanguageFeatureRegistry,t.DefinitionProviderRegistry=new g.LanguageFeatureRegistry,t.DeclarationProviderRegistry=new g.LanguageFeatureRegistry,t.ImplementationProviderRegistry=new g.LanguageFeatureRegistry,t.TypeDefinitionProviderRegistry=new g.LanguageFeatureRegistry,t.CodeLensProviderRegistry=new g.LanguageFeatureRegistry,t.CodeActionProviderRegistry=new g.LanguageFeatureRegistry,t.DocumentFormattingEditProviderRegistry=new g.LanguageFeatureRegistry,t.DocumentRangeFormattingEditProviderRegistry=new g.LanguageFeatureRegistry,t.OnTypeFormattingEditProviderRegistry=new g.LanguageFeatureRegistry,t.LinkProviderRegistry=new g.LanguageFeatureRegistry,t.ColorProviderRegistry=new g.LanguageFeatureRegistry,t.SelectionRangeRegistry=new g.LanguageFeatureRegistry,t.FoldingRangeProviderRegistry=new g.LanguageFeatureRegistry,t.TokenizationRegistry=new u.TokenizationRegistryImpl}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/modes/nullMode.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/modes/nullMode",function(e,n){"use strict";function o(e,n,o,t){return new i.TokenizationResult([new i.Token(t,"",e)],o)}function t(e,o,t,r){var u=new Uint32Array(2);return u[0]=r,u[1]=(e<<0|0|0|16384|2<<23)>>>0,new i.TokenizationResult2(u,null===t?n.NULL_STATE:t)}Object.defineProperty(n,"__esModule",{value:!0});var i=e("node_modules/monaco-editor/esm/vs/editor/common/core/token"),r=e("node_modules/monaco-editor/esm/vs/editor/common/modes"),u=function(){function e(){}return e.prototype.clone=function(){return this},e.prototype.equals=function(e){return this===e},e}();n.NULL_STATE=new u,n.NULL_MODE_ID="vs.editor.nullMode",n.NULL_LANGUAGE_IDENTIFIER=new r.LanguageIdentifier(n.NULL_MODE_ID,0),n.nullTokenize=o,n.nullTokenize2=t}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/services/editorWorkerService.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/services/editorWorkerService",function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var r=e("node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation");o.ID_EDITOR_WORKER_SERVICE="editorWorkerService",o.IEditorWorkerService=r.createDecorator(o.ID_EDITOR_WORKER_SERVICE)}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/services/resolverService.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/services/resolverService",function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var t=e("node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation");o.ITextModelService=t.createDecorator("textModelService")}); ;/*!node_modules/monaco-editor/esm/vs/base/common/worker/simpleWorker.js*/ define("node_modules/monaco-editor/esm/vs/base/common/worker/simpleWorker",function(e,r){"use strict";function o(e){a.isWeb&&(c||(c=!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(e.message))}function t(e){return new p(e,null)}Object.defineProperty(r,"__esModule",{value:!0});var n=this&&this.__extends||function(){var e=function(r,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var o in r)r.hasOwnProperty(o)&&(e[o]=r[o])})(r,o)};return function(r,o){function t(){this.constructor=r}e(r,o),r.prototype=null===o?Object.create(o):(t.prototype=o.prototype,new t)}}(),s=e("node_modules/monaco-editor/esm/vs/base/common/errors"),i=e("node_modules/monaco-editor/esm/vs/base/common/lifecycle"),a=e("node_modules/monaco-editor/esm/vs/base/common/platform"),u=e("node_modules/monaco-editor/esm/vs/base/common/types"),l="$initialize",c=!1;r.logOnceWebWorkerWarning=o;var d=function(){function e(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null)}return e.prototype.setWorkerId=function(e){this._workerId=e},e.prototype.sendMessage=function(e,r){var o=this,t=String(++this._lastSentReq);return new Promise(function(n,s){o._pendingReplies[t]={resolve:n,reject:s},o._send({vsWorker:o._workerId,req:t,method:e,args:r})})},e.prototype.handleMessage=function(e){var r;try{r=JSON.parse(e)}catch(o){return}r&&r.vsWorker&&(-1===this._workerId||r.vsWorker===this._workerId)&&this._handleMessage(r)},e.prototype._handleMessage=function(e){var r=this;if(e.seq){var o=e;if(!this._pendingReplies[o.seq])return void console.warn("Got reply to unknown seq");var t=this._pendingReplies[o.seq];if(delete this._pendingReplies[o.seq],o.err){var n=o.err;return o.err.$isError&&(n=new Error,n.name=o.err.name,n.message=o.err.message,n.stack=o.err.stack),void t.reject(n)}return void t.resolve(o.res)}var i=e,a=i.req,u=this._handler.handleMessage(i.method,i.args);u.then(function(e){r._send({vsWorker:r._workerId,seq:a,res:e,err:void 0})},function(e){e.detail instanceof Error&&(e.detail=s.transformErrorForSerialization(e.detail)),r._send({vsWorker:r._workerId,seq:a,res:void 0,err:s.transformErrorForSerialization(e)})})},e.prototype._send=function(e){var r=JSON.stringify(e);this._handler.sendMessage(r)},e}(),f=function(e){function r(r,o){var t=e.call(this)||this,n=null;t._worker=t._register(r.create("vs/base/common/worker/simpleWorker",function(e){t._protocol.handleMessage(e)},function(e){n&&n(e)})),t._protocol=new d({sendMessage:function(e){t._worker.postMessage(e)},handleMessage:function(){return Promise.resolve(null)}}),t._protocol.setWorkerId(t._worker.getId());var s=null;"undefined"!=typeof self.require&&"function"==typeof self.require.getConfig?s=self.require.getConfig():"undefined"!=typeof self.requirejs&&(s=self.requirejs.s.contexts._.config),t._onModuleLoaded=t._protocol.sendMessage(l,[t._worker.getId(),o,s]),t._lazyProxy=new Promise(function(e,r){n=r,t._onModuleLoaded.then(function(r){for(var o={},t=0,n=r;tt;t++){var o=n.notIn[t];switch(o){case"string":this._standardTokenMask|=2;break;case"comment":this._standardTokenMask|=1;break;case"regex":this._standardTokenMask|=4}}}return n.prototype.isOK=function(n){return 0===(this._standardTokenMask&n)},n}();t.StandardAutoClosingPairConditional=e}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/modes/supports.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/modes/supports",function(t,e){"use strict";function n(t,e){for(var n=t.getCount(),o=t.findTokenIndexAtOffset(e),r=t.getLanguageId(o),i=o;n>i+1&&t.getLanguageId(i+1)===r;)i++;for(var f=o;f>0&&t.getLanguageId(f-1)===r;)f--;return new s(t,r,f,i+1,t.getStartOffset(f),t.getEndOffset(i))}function o(t){return 0!==(7&t)}Object.defineProperty(e,"__esModule",{value:!0}),e.createScopedLineTokens=n;var s=function(){function t(t,e,n,o,s,r){this._actual=t,this.languageId=e,this._firstTokenIndex=n,this._lastTokenIndex=o,this.firstCharOffset=s,this._lastCharOffset=r}return t.prototype.getLineContent=function(){var t=this._actual.getLineContent();return t.substring(this.firstCharOffset,this._lastCharOffset)},t.prototype.getTokenCount=function(){return this._lastTokenIndex-this._firstTokenIndex},t.prototype.findTokenIndexAtOffset=function(t){return this._actual.findTokenIndexAtOffset(t+this.firstCharOffset)-this._firstTokenIndex},t.prototype.getStandardTokenType=function(t){return this._actual.getStandardTokenType(t+this._firstTokenIndex)},t}();e.ScopedLineTokens=s,e.ignoreBracketsInToken=o}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/modes/supports/characterPair.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/modes/supports/characterPair",function(o,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=o("node_modules/monaco-editor/esm/vs/editor/common/modes/languageConfiguration"),n=function(){function o(t){this._autoClosingPairs=t.autoClosingPairs?t.autoClosingPairs.map(function(o){return new e.StandardAutoClosingPairConditional(o)}):t.brackets?t.brackets.map(function(o){return new e.StandardAutoClosingPairConditional({open:o[0],close:o[1]})}):[],this._autoCloseBefore="string"==typeof t.autoCloseBefore?t.autoCloseBefore:o.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED,this._surroundingPairs=t.surroundingPairs||this._autoClosingPairs}return o.prototype.getAutoClosingPairs=function(){return this._autoClosingPairs},o.prototype.getAutoCloseBeforeSet=function(){return this._autoCloseBefore},o.prototype.shouldAutoClosePair=function(o,t,e){if(0===t.getTokenCount())return!0;for(var n=t.findTokenIndexAtOffset(e-2),r=t.getStandardTokenType(n),i=0,s=this._autoClosingPairs;i=0;t--)n+=e.charAt(t);return n}var n=null,t=null;return function(r){return n!==r&&(n=r,t=e(n)),t}}(),v=function(){function e(){}return e._findPrevBracketInText=function(e,n,t,r){var o=t.match(e);if(!o)return null;var c=t.length-(o.index||0),i=o[0].length,u=r+c;return new s.Range(n,u-i+1,n,u+1)},e.findPrevBracketInToken=function(e,n,t,r,o){var c=p(t),i=c.substring(t.length-o,t.length-r);return this._findPrevBracketInText(e,n,i,r)},e.findNextBracketInText=function(e,n,t,r){var o=t.match(e);if(!o)return null;var c=o.index||0,i=o[0].length;if(0===i)return null;var u=r+c;return new s.Range(n,u+1,n,u+1+i)},e.findNextBracketInToken=function(e,n,t,r,o){var c=t.substring(r,o);return this.findNextBracketInText(e,n,c,r)},e}();n.BracketsUtils=v}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/modes/supports/electricCharacter.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/modes/supports/electricCharacter",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=e("node_modules/monaco-editor/esm/vs/editor/common/modes/languageConfiguration"),r=e("node_modules/monaco-editor/esm/vs/editor/common/modes/supports"),n=e("node_modules/monaco-editor/esm/vs/editor/common/modes/supports/richEditBrackets"),i=function(){function e(e,t,r){r=r||{},this._richEditBrackets=e,this._complexAutoClosePairs=t.filter(function(e){return e.open.length>1&&!!e.close}).map(function(e){return new o.StandardAutoClosingPairConditional(e)}),r.docComment&&this._complexAutoClosePairs.push(new o.StandardAutoClosingPairConditional({open:r.docComment.open,close:r.docComment.close||""}))}return e.prototype.getElectricCharacters=function(){var e=[];if(this._richEditBrackets)for(var t=0,o=this._richEditBrackets.brackets.length;o>t;t++){var r=this._richEditBrackets.brackets[t],n=r.close.charAt(r.close.length-1);e.push(n)}for(var i=0,s=this._complexAutoClosePairs;in;n++){var s=this._complexAutoClosePairs[n];if(e===s.open.charAt(s.open.length-1)){var c=o-s.open.length+1,a=r.substring(c-1,o-1)+e;if(a===s.open){var l=t.findTokenIndexAtOffset(o-1),u=t.getStandardTokenType(l);if(s.isOK(u)&&!(r.indexOf(s.close,o-1)>=0))return{appendText:s.close}}}}return null},e}();t.BracketElectricCharacterSupport=i}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/modes/supports/indentRules.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/modes/supports/indentRules",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this._indentationRules=t}return t.prototype.shouldIncrease=function(t){return this._indentationRules&&this._indentationRules.increaseIndentPattern&&this._indentationRules.increaseIndentPattern.test(t)?!0:!1},t.prototype.shouldDecrease=function(t){return this._indentationRules&&this._indentationRules.decreaseIndentPattern&&this._indentationRules.decreaseIndentPattern.test(t)?!0:!1},t.prototype.shouldIndentNextLine=function(t){return this._indentationRules&&this._indentationRules.indentNextLinePattern&&this._indentationRules.indentNextLinePattern.test(t)?!0:!1},t.prototype.shouldIgnore=function(t){return this._indentationRules&&this._indentationRules.unIndentedLinePattern&&this._indentationRules.unIndentedLinePattern.test(t)?!0:!1},t.prototype.getIndentMetadata=function(t){var e=0;return this.shouldIncrease(t)&&(e+=1),this.shouldDecrease(t)&&(e+=2),this.shouldIndentNextLine(t)&&(e+=4),this.shouldIgnore(t)&&(e+=8),e},t}();e.IndentRulesSupport=n}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/modes/supports/onEnter.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/modes/supports/onEnter",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),n=e("node_modules/monaco-editor/esm/vs/base/common/errors"),o=r.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/strings")),s=e("node_modules/monaco-editor/esm/vs/editor/common/modes/languageConfiguration"),a=function(){function e(t){var r=this;t=t||{},t.brackets=t.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],t.brackets.forEach(function(t){var n=e._createOpenBracketRegExp(t[0]),o=e._createCloseBracketRegExp(t[1]);n&&o&&r._brackets.push({open:t[0],openRegExp:n,close:t[1],closeRegExp:o})}),this._regExpRules=t.regExpRules||[]}return e.prototype.onEnter=function(e,t,r){for(var n=0,o=this._regExpRules.length;o>n;n++){var a=this._regExpRules[n],c=[{reg:a.beforeText,text:t},{reg:a.afterText,text:r},{reg:a.oneLineAboveText,text:e}].every(function(e){return e.reg?e.reg.test(e.text):!0});if(c)return a.action}if(t.length>0&&r.length>0)for(var n=0,o=this._brackets.length;o>n;n++){var i=this._brackets[n];if(i.openRegExp.test(t)&&i.closeRegExp.test(r))return{indentAction:s.IndentAction.IndentOutdent}}if(t.length>0)for(var n=0,o=this._brackets.length;o>n;n++){var i=this._brackets[n];if(i.openRegExp.test(t))return{indentAction:s.IndentAction.Indent}}return null},e._createOpenBracketRegExp=function(t){var r=o.escapeRegExpCharacters(t);return/\B/.test(r.charAt(0))||(r="\\b"+r),r+="\\s*$",e._safeRegExp(r)},e._createCloseBracketRegExp=function(t){var r=o.escapeRegExpCharacters(t);return/\B/.test(r.charAt(r.length-1))||(r+="\\b"),r="^\\s*"+r,e._safeRegExp(r)},e._safeRegExp=function(e){try{return new RegExp(e)}catch(t){return n.onUnexpectedError(t),null}},e}();t.OnEnterSupport=a}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/modes/languageConfigurationRegistry.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/modes/languageConfigurationRegistry",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),r=e("node_modules/monaco-editor/esm/vs/base/common/errors"),i=e("node_modules/monaco-editor/esm/vs/base/common/event"),o=e("node_modules/monaco-editor/esm/vs/base/common/lifecycle"),a=n.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/strings")),s=e("node_modules/monaco-editor/esm/vs/editor/common/core/range"),u=e("node_modules/monaco-editor/esm/vs/editor/common/model/wordHelper"),d=e("node_modules/monaco-editor/esm/vs/editor/common/modes/languageConfiguration"),c=e("node_modules/monaco-editor/esm/vs/editor/common/modes/supports"),l=e("node_modules/monaco-editor/esm/vs/editor/common/modes/supports/characterPair"),g=e("node_modules/monaco-editor/esm/vs/editor/common/modes/supports/electricCharacter"),p=e("node_modules/monaco-editor/esm/vs/editor/common/modes/supports/indentRules"),f=e("node_modules/monaco-editor/esm/vs/editor/common/modes/supports/onEnter"),h=e("node_modules/monaco-editor/esm/vs/editor/common/modes/supports/richEditBrackets"),m=function(){function e(t,n,r){this._languageIdentifier=t,this._brackets=null,this._electricCharacter=null;var i=null;n&&(i=n._conf),this._conf=e._mergeConf(i,r),this.onEnter=e._handleOnEnter(this._conf),this.comments=e._handleComments(this._conf),this.characterPair=new l.CharacterPairSupport(this._conf),this.wordDefinition=this._conf.wordPattern||u.DEFAULT_WORD_REGEXP,this.indentationRules=this._conf.indentationRules,this._conf.indentationRules&&(this.indentRulesSupport=new p.IndentRulesSupport(this._conf.indentationRules)),this.foldingRules=this._conf.folding||{}}return Object.defineProperty(e.prototype,"brackets",{get:function(){return!this._brackets&&this._conf.brackets&&(this._brackets=new h.RichEditBrackets(this._languageIdentifier,this._conf.brackets)),this._brackets},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"electricCharacter",{get:function(){if(!this._electricCharacter){var e=[];this._conf.autoClosingPairs?e=this._conf.autoClosingPairs:this._conf.brackets&&(e=this._conf.brackets.map(function(e){return{open:e[0],close:e[1]}})),this._electricCharacter=new g.BracketElectricCharacterSupport(this.brackets,e,this._conf.__electricCharacterSupport)}return this._electricCharacter},enumerable:!0,configurable:!0}),e._mergeConf=function(e,t){return{comments:e?t.comments||e.comments:t.comments,brackets:e?t.brackets||e.brackets:t.brackets,wordPattern:e?t.wordPattern||e.wordPattern:t.wordPattern,indentationRules:e?t.indentationRules||e.indentationRules:t.indentationRules,onEnterRules:e?t.onEnterRules||e.onEnterRules:t.onEnterRules,autoClosingPairs:e?t.autoClosingPairs||e.autoClosingPairs:t.autoClosingPairs,surroundingPairs:e?t.surroundingPairs||e.surroundingPairs:t.surroundingPairs,autoCloseBefore:e?t.autoCloseBefore||e.autoCloseBefore:t.autoCloseBefore,folding:e?t.folding||e.folding:t.folding,__electricCharacterSupport:e?t.__electricCharacterSupport||e.__electricCharacterSupport:t.__electricCharacterSupport}},e._handleOnEnter=function(e){var t={},n=!0;return e.brackets&&(n=!1,t.brackets=e.brackets),e.indentationRules&&(n=!1),e.onEnterRules&&(n=!1,t.regExpRules=e.onEnterRules),n?null:new f.OnEnterSupport(t)},e._handleComments=function(e){var t=e.comments;if(!t)return null;var n={};if(t.lineComment&&(n.lineCommentToken=t.lineComment),t.blockComment){var r=t.blockComment,i=r[0],o=r[1];n.blockCommentStartToken=i,n.blockCommentEndToken=o}return n},e}();t.RichEditSupport=m;var C=function(){function e(){}return e}();t.LanguageConfigurationChangeEvent=C;var L=function(){function e(){this._entries=new Map,this._onDidChange=new i.Emitter,this.onDidChange=this._onDidChange.event}return e.prototype.register=function(e,t){var n=this,r=this._getRichEditSupport(e.id),i=new m(e,r,t);return this._entries.set(e.id,i),this._onDidChange.fire({languageIdentifier:e}),o.toDisposable(function(){n._entries.get(e.id)===i&&(n._entries.set(e.id,r),n._onDidChange.fire({languageIdentifier:e}))})},e.prototype._getRichEditSupport=function(e){return this._entries.get(e)},e.prototype._getElectricCharacterSupport=function(e){var t=this._getRichEditSupport(e);return t?t.electricCharacter||null:null},e.prototype.getElectricCharacters=function(e){var t=this._getElectricCharacterSupport(e);return t?t.getElectricCharacters():[]},e.prototype.onElectricCharacter=function(e,t,n){var r=c.createScopedLineTokens(t,n-1),i=this._getElectricCharacterSupport(r.languageId);return i?i.onElectricCharacter(e,r,n-r.firstCharOffset):null},e.prototype.getComments=function(e){var t=this._getRichEditSupport(e);return t?t.comments||null:null},e.prototype._getCharacterPairSupport=function(e){var t=this._getRichEditSupport(e);return t?t.characterPair||null:null},e.prototype.getAutoClosingPairs=function(e){var t=this._getCharacterPairSupport(e);return t?t.getAutoClosingPairs():[]},e.prototype.getAutoCloseBeforeSet=function(e){var t=this._getCharacterPairSupport(e);return t?t.getAutoCloseBeforeSet():l.CharacterPairSupport.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED},e.prototype.getSurroundingPairs=function(e){var t=this._getCharacterPairSupport(e);return t?t.getSurroundingPairs():[]},e.prototype.shouldAutoClosePair=function(e,t,n){var r=c.createScopedLineTokens(t,n-1),i=this._getCharacterPairSupport(r.languageId);return i?i.shouldAutoClosePair(e,r,n-r.firstCharOffset):!1},e.prototype.getWordDefinition=function(e){var t=this._getRichEditSupport(e);return u.ensureValidWordDefinition(t?t.wordDefinition||null:null)},e.prototype.getFoldingRules=function(e){var t=this._getRichEditSupport(e);return t?t.foldingRules:{}},e.prototype.getIndentRulesSupport=function(e){var t=this._getRichEditSupport(e);return t?t.indentRulesSupport||null:null},e.prototype.getPrecedingValidLine=function(e,t,n){var r=e.getLanguageIdAtPosition(t,0);if(t>1){var i=void 0,o=-1;for(i=t-1;i>=1;i--){if(e.getLanguageIdAtPosition(i,0)!==r)return o;var a=e.getLineContent(i);{if(!n.shouldIgnore(a)&&!/^\s+$/.test(a)&&""!==a)return i;o=i}}}return-1},e.prototype.getInheritIndentForLine=function(e,t,n){void 0===n&&(n=!0);var r=this.getIndentRulesSupport(e.getLanguageIdentifier().id);if(!r)return null;if(1>=t)return{indentation:"",action:null};var i=this.getPrecedingValidLine(e,t,r);if(0>i)return null;if(1>i)return{indentation:"",action:null};var o=e.getLineContent(i);if(r.shouldIncrease(o)||r.shouldIndentNextLine(o))return{indentation:a.getLeadingWhitespace(o),action:d.IndentAction.Indent,line:i};if(r.shouldDecrease(o))return{indentation:a.getLeadingWhitespace(o),action:null,line:i};if(1===i)return{indentation:a.getLeadingWhitespace(e.getLineContent(i)),action:null,line:i};var s=i-1,u=r.getIndentMetadata(e.getLineContent(s));if(!(3&u)&&4&u){for(var c=0,l=s-1;l>0;l--)if(!r.shouldIndentNextLine(e.getLineContent(l))){c=l;break}return{indentation:a.getLeadingWhitespace(e.getLineContent(c+1)),action:null,line:c+1}}if(n)return{indentation:a.getLeadingWhitespace(e.getLineContent(i)),action:null,line:i};for(var l=i;l>0;l--){var g=e.getLineContent(l);if(r.shouldIncrease(g))return{indentation:a.getLeadingWhitespace(g),action:d.IndentAction.Indent,line:l};if(r.shouldIndentNextLine(g)){for(var c=0,p=l-1;p>0;p--)if(!r.shouldIndentNextLine(e.getLineContent(l))){c=p;break}return{indentation:a.getLeadingWhitespace(e.getLineContent(c+1)),action:null,line:c+1}}if(r.shouldDecrease(g))return{indentation:a.getLeadingWhitespace(g),action:null,line:l}}return{indentation:a.getLeadingWhitespace(e.getLineContent(1)),action:null,line:1}},e.prototype.getGoodIndentForLine=function(e,t,n,i){var o=this.getIndentRulesSupport(t);if(!o)return null;var s=this.getInheritIndentForLine(e,n),u=e.getLineContent(n);if(s){var c=s.line;if(void 0!==c){var l=this._getOnEnterSupport(t),g=null;try{l&&(g=l.onEnter("",e.getLineContent(c),""))}catch(p){r.onUnexpectedError(p)}if(g){var f=a.getLeadingWhitespace(e.getLineContent(c));return g.removeText&&(f=f.substring(0,f.length-g.removeText)),g.indentAction===d.IndentAction.Indent||g.indentAction===d.IndentAction.IndentOutdent?f=i.shiftIndent(f):g.indentAction===d.IndentAction.Outdent&&(f=i.unshiftIndent(f)),o.shouldDecrease(u)&&(f=i.unshiftIndent(f)),g.appendText&&(f+=g.appendText),a.getLeadingWhitespace(f)}}return o.shouldDecrease(u)?s.action===d.IndentAction.Indent?s.indentation:i.unshiftIndent(s.indentation):s.action===d.IndentAction.Indent?i.shiftIndent(s.indentation):s.indentation}return null},e.prototype.getIndentForEnter=function(e,t,n,r){e.forceTokenization(t.startLineNumber);var i,o,s=e.getLineTokens(t.startLineNumber),u=c.createScopedLineTokens(s,t.startColumn-1),l=u.getLineContent(),g=!1;if(u.firstCharOffset>0&&s.getLanguageId(0)!==u.languageId?(g=!0,i=l.substr(0,t.startColumn-1-u.firstCharOffset)):i=s.getLineContent().substring(0,t.startColumn-1),t.isEmpty())o=l.substr(t.startColumn-1-u.firstCharOffset);else{var p=this.getScopedLineTokens(e,t.endLineNumber,t.endColumn);o=p.getLineContent().substr(t.endColumn-1-u.firstCharOffset)}var f=this.getIndentRulesSupport(u.languageId);if(!f)return null;var h=i,m=a.getLeadingWhitespace(i);if(!r&&!g){var C=this.getInheritIndentForLine(e,t.startLineNumber);f.shouldDecrease(i)&&C&&(m=C.indentation,C.action!==d.IndentAction.Indent&&(m=n.unshiftIndent(m))),h=m+a.ltrim(a.ltrim(i," ")," ")}var L={getLineTokens:function(t){return e.getLineTokens(t)},getLanguageIdentifier:function(){return e.getLanguageIdentifier()},getLanguageIdAtPosition:function(t,n){return e.getLanguageIdAtPosition(t,n)},getLineContent:function(n){return n===t.startLineNumber?h:e.getLineContent(n)}},_=a.getLeadingWhitespace(s.getLineContent()),v=this.getInheritIndentForLine(L,t.startLineNumber+1);if(!v){var I=g?_:m;return{beforeEnter:I,afterEnter:I}}var b=g?_:v.indentation;return v.action===d.IndentAction.Indent&&(b=n.shiftIndent(b)),f.shouldDecrease(o)&&(b=n.unshiftIndent(b)),{beforeEnter:g?_:m,afterEnter:b}},e.prototype.getIndentActionForType=function(e,t,n,r){var i=this.getScopedLineTokens(e,t.startLineNumber,t.startColumn),o=this.getIndentRulesSupport(i.languageId);if(!o)return null;var a,s=i.getLineContent(),u=s.substr(0,t.startColumn-1-i.firstCharOffset);if(t.isEmpty())a=s.substr(t.startColumn-1-i.firstCharOffset);else{var c=this.getScopedLineTokens(e,t.endLineNumber,t.endColumn);a=c.getLineContent().substr(t.endColumn-1-i.firstCharOffset)}if(!o.shouldDecrease(u+a)&&o.shouldDecrease(u+n+a)){var l=this.getInheritIndentForLine(e,t.startLineNumber,!1);if(!l)return null;var g=l.indentation;return l.action!==d.IndentAction.Indent&&(g=r.unshiftIndent(g)),g}return null},e.prototype.getIndentMetadata=function(e,t){var n=this.getIndentRulesSupport(e.getLanguageIdentifier().id);return n?1>t||t>e.getLineCount()?null:n.getIndentMetadata(e.getLineContent(t)):null},e.prototype._getOnEnterSupport=function(e){var t=this._getRichEditSupport(e);return t?t.onEnter||null:null},e.prototype.getRawEnterActionAtPosition=function(e,t,n){var r=this.getEnterAction(e,new s.Range(t,n,t,n));return r?r.enterAction:null},e.prototype.getEnterAction=function(e,t){var n=this.getIndentationAtPosition(e,t.startLineNumber,t.startColumn),i=this.getScopedLineTokens(e,t.startLineNumber,t.startColumn),o=this._getOnEnterSupport(i.languageId);if(!o)return null;var a,s=i.getLineContent(),u=s.substr(0,t.startColumn-1-i.firstCharOffset);if(t.isEmpty())a=s.substr(t.startColumn-1-i.firstCharOffset);else{var c=this.getScopedLineTokens(e,t.endLineNumber,t.endColumn);a=c.getLineContent().substr(t.endColumn-1-i.firstCharOffset)}var l=t.startLineNumber,g="";if(l>1&&0===i.firstCharOffset){var p=this.getScopedLineTokens(e,l-1);p.languageId===i.languageId&&(g=p.getLineContent())}var f=null;try{f=o.onEnter(g,u,a)}catch(h){r.onUnexpectedError(h)}return f?(f.appendText||(f.appendText=f.indentAction===d.IndentAction.Indent||f.indentAction===d.IndentAction.IndentOutdent?" ":""),f.removeText&&(n=n.substring(0,n.length-f.removeText)),{enterAction:f,indentation:n}):null},e.prototype.getIndentationAtPosition=function(e,t,n){var r=e.getLineContent(t),i=a.getLeadingWhitespace(r);return i.length>n-1&&(i=i.substring(0,n-1)),i},e.prototype.getScopedLineTokens=function(e,t,n){e.forceTokenization(t);var r=e.getLineTokens(t),i="undefined"==typeof n?e.getLineMaxColumn(t)-1:n-1,o=c.createScopedLineTokens(r,i);return o},e.prototype.getBracketsSupport=function(e){var t=this._getRichEditSupport(e);return t?t.brackets||null:null},e}();t.LanguageConfigurationRegistryImpl=L,t.LanguageConfigurationRegistry=new L}); ;/*!node_modules/monaco-editor/esm/vs/base/common/diff/diffChange.js*/ define("node_modules/monaco-editor/esm/vs/base/common/diff/diffChange",function(i,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=function(){function i(i,t,e,n){this.originalStart=i,this.originalLength=t,this.modifiedStart=e,this.modifiedLength=n}return i.prototype.getOriginalEnd=function(){return this.originalStart+this.originalLength},i.prototype.getModifiedEnd=function(){return this.modifiedStart+this.modifiedLength},i}();t.DiffChange=e}); ;/*!node_modules/monaco-editor/esm/vs/base/common/diff/diff.js*/ define("node_modules/monaco-editor/esm/vs/base/common/diff/diff",function(t,e){"use strict";function i(t){return{getLength:function(){return t.length},getElementAtIndex:function(e){return t.charCodeAt(e)}}}function n(t,e,n){return new d(i(t),i(e)).ComputeDiff(n)}Object.defineProperty(e,"__esModule",{value:!0});var r=t("node_modules/monaco-editor/esm/vs/base/common/diff/diffChange");e.stringDiff=n;var o=function(){function t(){}return t.Assert=function(t,e){if(!t)throw new Error(e)},t}();e.Debug=o;var a=function(){function t(){}return t.Copy=function(t,e,i,n,r){for(var o=0;r>o;o++)i[n+o]=t[e+o]},t}();e.MyArray=a;var h=1447,s=function(){function t(){this.m_changes=[],this.m_originalStart=Number.MAX_VALUE,this.m_modifiedStart=Number.MAX_VALUE,this.m_originalCount=0,this.m_modifiedCount=0}return t.prototype.MarkNextChange=function(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new r.DiffChange(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=Number.MAX_VALUE,this.m_modifiedStart=Number.MAX_VALUE},t.prototype.AddOriginalElement=function(t,e){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,e),this.m_originalCount++},t.prototype.AddModifiedElement=function(t,e){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,e),this.m_modifiedCount++},t.prototype.getChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes},t.prototype.getReverseChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes},t}(),d=function(){function t(t,e,i){void 0===i&&(i=null),this.OriginalSequence=t,this.ModifiedSequence=e,this.ContinueProcessingPredicate=i,this.m_forwardHistory=[],this.m_reverseHistory=[]}return t.prototype.ElementsAreEqual=function(t,e){return this.OriginalSequence.getElementAtIndex(t)===this.ModifiedSequence.getElementAtIndex(e)},t.prototype.OriginalElementsAreEqual=function(t,e){return this.OriginalSequence.getElementAtIndex(t)===this.OriginalSequence.getElementAtIndex(e)},t.prototype.ModifiedElementsAreEqual=function(t,e){return this.ModifiedSequence.getElementAtIndex(t)===this.ModifiedSequence.getElementAtIndex(e)},t.prototype.ComputeDiff=function(t){return this._ComputeDiff(0,this.OriginalSequence.getLength()-1,0,this.ModifiedSequence.getLength()-1,t)},t.prototype._ComputeDiff=function(t,e,i,n,r){var o=[!1],a=this.ComputeDiffRecursive(t,e,i,n,o);return r?this.PrettifyChanges(a):a},t.prototype.ComputeDiffRecursive=function(t,e,i,n,a){for(a[0]=!1;e>=t&&n>=i&&this.ElementsAreEqual(t,i);)t++,i++;for(;e>=t&&n>=i&&this.ElementsAreEqual(e,n);)e--,n--;if(t>e||i>n){var h=void 0;return n>=i?(o.Assert(t===e+1,"originalStart should only be one more than originalEnd"),h=[new r.DiffChange(t,0,i,n-i+1)]):e>=t?(o.Assert(i===n+1,"modifiedStart should only be one more than modifiedEnd"),h=[new r.DiffChange(t,e-t+1,i,0)]):(o.Assert(t===e+1,"originalStart should only be one more than originalEnd"),o.Assert(i===n+1,"modifiedStart should only be one more than modifiedEnd"),h=[]),h}var s=[0],d=[0],g=this.ComputeRecursionPoint(t,e,i,n,s,d,a),f=s[0],u=d[0];if(null!==g)return g;if(!a[0]){var l=this.ComputeDiffRecursive(t,f,i,u,a),m=[];return m=a[0]?[new r.DiffChange(f+1,e-(f+1)+1,u+1,n-(u+1)+1)]:this.ComputeDiffRecursive(f+1,e,u+1,n,a),this.ConcatenateChanges(l,m)}return[new r.DiffChange(t,e-t+1,i,n-i+1)]},t.prototype.WALKTRACE=function(t,e,i,n,o,a,h,d,g,f,u,l,m,c,p,C,y,S){var _,A=null,v=null,E=new s,L=e,M=i,q=m[0]-C[0]-n,O=Number.MIN_VALUE,w=this.m_forwardHistory.length-1;do _=q+t,_===L||M>_&&g[_-1]u&&E.MarkNextChange(),O=u,E.AddModifiedElement(u+1,c),q=_+1-t):(u=g[_-1]+1,c=u-q-n,O>u&&E.MarkNextChange(),O=u-1,E.AddOriginalElement(u,c+1),q=_-1-t),w>=0&&(g=this.m_forwardHistory[w],t=g[0],L=1,M=g.length-1);while(--w>=-1);if(A=E.getReverseChanges(),S[0]){var D=m[0]+1,I=C[0]+1;if(null!==A&&A.length>0){var b=A[A.length-1];D=Math.max(D,b.getOriginalEnd()),I=Math.max(I,b.getModifiedEnd())}v=[new r.DiffChange(D,l-D+1,I,p-I+1)]}else{E=new s,L=a,M=h,q=m[0]-C[0]-d,O=Number.MAX_VALUE,w=y?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do _=q+o,_===L||M>_&&f[_-1]>=f[_+1]?(u=f[_+1]-1,c=u-q-d,u>O&&E.MarkNextChange(),O=u+1,E.AddOriginalElement(u+1,c+1),q=_+1-o):(u=f[_-1],c=u-q-d,u>O&&E.MarkNextChange(),O=u,E.AddModifiedElement(u+1,c+1),q=_-1-o),w>=0&&(f=this.m_reverseHistory[w],o=f[0],L=1,M=f.length-1);while(--w>=-1);v=E.getChanges()}return this.ConcatenateChanges(A,v)},t.prototype.ComputeRecursionPoint=function(t,e,i,n,o,s,d){var g,f=0,u=0,l=0,m=0,c=0,p=0;t--,i--,o[0]=0,s[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var C=e-t+(n-i),y=C+1,S=new Array(y),_=new Array(y),A=n-i,v=e-t,E=t-i,L=e-n,M=v-A,q=M%2===0;S[A]=t,_[v]=e,d[0]=!1;var O,w;for(g=1;C/2+1>=g;g++){var D=0,I=0;for(l=this.ClipDiagonalBound(A-g,g,A,y),m=this.ClipDiagonalBound(A+g,g,A,y),O=l;m>=O;O+=2){for(f=O===l||m>O&&S[O-1]f&&n>u&&this.ElementsAreEqual(f+1,u+1);)f++,u++;if(S[O]=f,f+u>D+I&&(D=f,I=u),!q&&Math.abs(O-v)<=g-1&&f>=_[O])return o[0]=f,s[0]=u,w<=_[O]&&h>0&&h+1>=g?this.WALKTRACE(A,l,m,E,v,c,p,L,S,_,f,e,o,u,n,s,q,d):null}var b=(D-t+(I-i)-g)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(D,this.OriginalSequence,b))return d[0]=!0,o[0]=D,s[0]=I,b>0&&h>0&&h+1>=g?this.WALKTRACE(A,l,m,E,v,c,p,L,S,_,f,e,o,u,n,s,q,d):(t++,i++,[new r.DiffChange(t,e-t+1,i,n-i+1)]);for(c=this.ClipDiagonalBound(v-g,g,v,y),p=this.ClipDiagonalBound(v+g,g,v,y),O=c;p>=O;O+=2){for(f=O===c||p>O&&_[O-1]>=_[O+1]?_[O+1]-1:_[O-1],u=f-(O-v)-L,w=f;f>t&&u>i&&this.ElementsAreEqual(f,u);)f--,u--;if(_[O]=f,q&&Math.abs(O-A)<=g&&f<=S[O])return o[0]=f,s[0]=u,w>=S[O]&&h>0&&h+1>=g?this.WALKTRACE(A,l,m,E,v,c,p,L,S,_,f,e,o,u,n,s,q,d):null}if(h>=g){var B=new Array(m-l+2);B[0]=A-l+1,a.Copy(S,l,B,1,m-l+1),this.m_forwardHistory.push(B),B=new Array(p-c+2),B[0]=v-c+1,a.Copy(_,c,B,1,p-c+1),this.m_reverseHistory.push(B)}}return this.WALKTRACE(A,l,m,E,v,c,p,L,S,_,f,e,o,u,n,s,q,d)},t.prototype.PrettifyChanges=function(t){for(var e=0;e0,a=i.modifiedLength>0;i.originalStart+i.originalLength=0;e--){var i=t[e],n=0,r=0;if(e>0){var s=t[e-1];s.originalLength>0&&(n=s.originalStart+s.originalLength),s.modifiedLength>0&&(r=s.modifiedStart+s.modifiedLength)}for(var o=i.originalLength>0,a=i.modifiedLength>0,d=0,g=this._boundaryScore(i.originalStart,i.originalLength,i.modifiedStart,i.modifiedLength),f=1;;f++){var u=i.originalStart-f,l=i.modifiedStart-f;if(n>u||r>l)break;if(o&&!this.OriginalElementsAreEqual(u,u+i.originalLength))break;if(a&&!this.ModifiedElementsAreEqual(l,l+i.modifiedLength))break;var m=this._boundaryScore(u,i.originalLength,l,i.modifiedLength);m>g&&(g=m,d=f)}i.originalStart-=d,i.modifiedStart-=d}return t},t.prototype._OriginalIsBoundary=function(t){if(0>=t||t>=this.OriginalSequence.getLength()-1)return!0;var e=this.OriginalSequence.getElementAtIndex(t);return"string"==typeof e&&/^\s*$/.test(e)},t.prototype._OriginalRegionIsBoundary=function(t,e){if(this._OriginalIsBoundary(t)||this._OriginalIsBoundary(t-1))return!0;if(e>0){var i=t+e;if(this._OriginalIsBoundary(i-1)||this._OriginalIsBoundary(i))return!0}return!1},t.prototype._ModifiedIsBoundary=function(t){if(0>=t||t>=this.ModifiedSequence.getLength()-1)return!0;var e=this.ModifiedSequence.getElementAtIndex(t);return"string"==typeof e&&/^\s*$/.test(e)},t.prototype._ModifiedRegionIsBoundary=function(t,e){if(this._ModifiedIsBoundary(t)||this._ModifiedIsBoundary(t-1))return!0;if(e>0){var i=t+e;if(this._ModifiedIsBoundary(i-1)||this._ModifiedIsBoundary(i))return!0}return!1},t.prototype._boundaryScore=function(t,e,i,n){var r=this._OriginalRegionIsBoundary(t,e)?1:0,o=this._ModifiedRegionIsBoundary(i,n)?1:0;return r+o},t.prototype.ConcatenateChanges=function(t,e){var i=[];if(0===t.length||0===e.length)return e.length>0?e:t;if(this.ChangesOverlap(t[t.length-1],e[0],i)){var n=new Array(t.length+e.length-1);return a.Copy(t,0,n,0,t.length-1),n[t.length-1]=i[0],a.Copy(e,1,n,t.length,e.length-1),n}var n=new Array(t.length+e.length);return a.Copy(t,0,n,0,t.length),a.Copy(e,0,n,t.length,e.length),n},t.prototype.ChangesOverlap=function(t,e,i){if(o.Assert(t.originalStart<=e.originalStart,"Left change is not less than or equal to right change"),o.Assert(t.modifiedStart<=e.modifiedStart,"Left change is not less than or equal to right change"),t.originalStart+t.originalLength>=e.originalStart||t.modifiedStart+t.modifiedLength>=e.modifiedStart){var n=t.originalStart,a=t.originalLength,h=t.modifiedStart,s=t.modifiedLength;return t.originalStart+t.originalLength>=e.originalStart&&(a=e.originalStart+e.originalLength-t.originalStart),t.modifiedStart+t.modifiedLength>=e.modifiedStart&&(s=e.modifiedStart+e.modifiedLength-t.modifiedStart),i[0]=new r.DiffChange(n,a,h,s),!0}return i[0]=null,!1},t.prototype.ClipDiagonalBound=function(t,e,i,n){if(t>=0&&n>t)return t;var r=i,o=n-i-1,a=e%2===0;if(0>t){var h=r%2===0;return a===h?0:1}var s=o%2===0;return a===s?n-1:n-2},t}();e.LcsDiff=d}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/diff/diffComputer.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/diff/diffComputer",function(i,e){"use strict";function t(i,e,t,n){var r=new o.LcsDiff(i,e,t);return r.ComputeDiff(n)}function n(i){if(i.length<=1)return i;for(var e=[i[0]],t=e[0],n=1,r=i.length;r>n;n++){var o=i[n],a=o.originalStart-(t.originalStart+t.originalLength),s=o.modifiedStart-(t.modifiedStart+t.modifiedLength),u=Math.min(a,s);h>u?(t.originalLength=o.originalStart+o.originalLength-t.originalStart,t.modifiedLength=o.modifiedStart+o.modifiedLength-t.modifiedStart):(e.push(o),t=o)}return e}Object.defineProperty(e,"__esModule",{value:!0});var r=i("node_modules/tslib/tslib"),o=i("node_modules/monaco-editor/esm/vs/base/common/diff/diff"),a=r.__importStar(i("node_modules/monaco-editor/esm/vs/base/common/strings")),s=5e3,h=3,u=function(){function i(e){for(var t=[],n=[],r=0,o=e.length;o>r;r++)t[r]=i._getFirstNonBlankColumn(e[r],1),n[r]=i._getLastNonBlankColumn(e[r],1);this._lines=e,this._startColumns=t,this._endColumns=n}return i.prototype.getLength=function(){return this._lines.length},i.prototype.getElementAtIndex=function(i){return this._lines[i].substring(this._startColumns[i]-1,this._endColumns[i]-1)},i.prototype.getStartLineNumber=function(i){return i+1},i.prototype.getEndLineNumber=function(i){return i+1},i._getFirstNonBlankColumn=function(i,e){var t=a.firstNonWhitespaceIndex(i);return-1===t?e:t+1},i._getLastNonBlankColumn=function(i,e){var t=a.lastNonWhitespaceIndex(i);return-1===t?e:t+2},i.prototype.getCharSequence=function(i,e,t){for(var n=[],r=[],o=[],a=0,s=e;t>=s;s++)for(var h=this._lines[s],u=i?this._startColumns[s]:1,m=i?this._endColumns[s]:h.length+1,g=u;m>g;g++)n[a]=h.charCodeAt(g-1),r[a]=s+1,o[a]=g,a++;return new d(n,r,o)},i}(),d=function(){function i(i,e,t){this._charCodes=i,this._lineNumbers=e,this._columns=t}return i.prototype.getLength=function(){return this._charCodes.length},i.prototype.getElementAtIndex=function(i){return this._charCodes[i]},i.prototype.getStartLineNumber=function(i){return this._lineNumbers[i]},i.prototype.getStartColumn=function(i){return this._columns[i]},i.prototype.getEndLineNumber=function(i){return this._lineNumbers[i]},i.prototype.getEndColumn=function(i){return this._columns[i]+1},i}(),m=function(){function i(i,e,t,n,r,o,a,s){this.originalStartLineNumber=i,this.originalStartColumn=e,this.originalEndLineNumber=t,this.originalEndColumn=n,this.modifiedStartLineNumber=r,this.modifiedStartColumn=o,this.modifiedEndLineNumber=a,this.modifiedEndColumn=s}return i.createFromDiffChange=function(e,t,n){var r,o,a,s,h,u,d,m;return 0===e.originalLength?(r=0,o=0,a=0,s=0):(r=t.getStartLineNumber(e.originalStart),o=t.getStartColumn(e.originalStart),a=t.getEndLineNumber(e.originalStart+e.originalLength-1),s=t.getEndColumn(e.originalStart+e.originalLength-1)),0===e.modifiedLength?(h=0,u=0,d=0,m=0):(h=n.getStartLineNumber(e.modifiedStart),u=n.getStartColumn(e.modifiedStart),d=n.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),m=n.getEndColumn(e.modifiedStart+e.modifiedLength-1)),new i(r,o,a,s,h,u,d,m)},i}(),g=function(){function i(i,e,t,n,r){this.originalStartLineNumber=i,this.originalEndLineNumber=e,this.modifiedStartLineNumber=t,this.modifiedEndLineNumber=n,this.charChanges=r}return i.createFromDiffResult=function(e,r,o,a,s,h,u){var d,g,l,f,c=void 0;if(0===r.originalLength?(d=o.getStartLineNumber(r.originalStart)-1,g=0):(d=o.getStartLineNumber(r.originalStart),g=o.getEndLineNumber(r.originalStart+r.originalLength-1)),0===r.modifiedLength?(l=a.getStartLineNumber(r.modifiedStart)-1,f=0):(l=a.getStartLineNumber(r.modifiedStart),f=a.getEndLineNumber(r.modifiedStart+r.modifiedLength-1)),h&&0!==r.originalLength&&0!==r.modifiedLength&&s()){var C=o.getCharSequence(e,r.originalStart,r.originalStart+r.originalLength-1),L=a.getCharSequence(e,r.modifiedStart,r.modifiedStart+r.modifiedLength-1),p=t(C,L,s,!0);u&&(p=n(p)),c=[];for(var S=0,b=p.length;b>S;S++)c.push(m.createFromDiffChange(p[S],C,L))}return new i(d,g,l,f,c)},i}(),l=function(){function i(i,e,t){this.shouldComputeCharChanges=t.shouldComputeCharChanges,this.shouldPostProcessCharChanges=t.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=t.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=t.shouldMakePrettyDiff,this.maximumRunTimeMs=s,this.originalLines=i,this.modifiedLines=e,this.original=new u(i),this.modified=new u(e)}return i.prototype.computeDiff=function(){if(1===this.original.getLength()&&0===this.original.getElementAtIndex(0).length)return[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.getLength(),charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}];if(1===this.modified.getLength()&&0===this.modified.getElementAtIndex(0).length)return[{originalStartLineNumber:1,originalEndLineNumber:this.original.getLength(),modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}];this.computationStartTime=(new Date).getTime();var i=t(this.original,this.modified,this._continueProcessingPredicate.bind(this),this.shouldMakePrettyDiff);if(this.shouldIgnoreTrimWhitespace){for(var e=[],n=0,r=i.length;r>n;n++)e.push(g.createFromDiffResult(this.shouldIgnoreTrimWhitespace,i[n],this.original,this.modified,this._continueProcessingPredicate.bind(this),this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return e}for(var o=[],a=0,s=0,n=-1,h=i.length;h>n;n++){for(var d=h>n+1?i[n+1]:null,m=d?d.originalStart:this.originalLines.length,l=d?d.modifiedStart:this.modifiedLines.length;m>a&&l>s;){var f=this.originalLines[a],c=this.modifiedLines[s];if(f!==c){for(var C=u._getFirstNonBlankColumn(f,1),L=u._getFirstNonBlankColumn(c,1);C>1&&L>1;){var p=f.charCodeAt(C-2),S=c.charCodeAt(L-2);if(p!==S)break;C--,L--}(C>1||L>1)&&this._pushTrimWhitespaceCharChange(o,a+1,1,C,s+1,1,L);for(var b=u._getLastNonBlankColumn(f,1),N=u._getLastNonBlankColumn(c,1),_=f.length+1,E=c.length+1;_>b&&E>N;){var p=f.charCodeAt(b-1),S=f.charCodeAt(N-1);if(p!==S)break;b++,N++}(_>b||E>N)&&this._pushTrimWhitespaceCharChange(o,a+1,b,_,s+1,N,E)}a++,s++}d&&(o.push(g.createFromDiffResult(this.shouldIgnoreTrimWhitespace,d,this.original,this.modified,this._continueProcessingPredicate.bind(this),this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),a+=d.originalLength,s+=d.modifiedLength)}return o},i.prototype._pushTrimWhitespaceCharChange=function(i,e,t,n,r,o,a){if(!this._mergeTrimWhitespaceCharChange(i,e,t,n,r,o,a)){var s=void 0;this.shouldComputeCharChanges&&(s=[new m(e,t,e,n,r,o,r,a)]),i.push(new g(e,e,r,r,s))}},i.prototype._mergeTrimWhitespaceCharChange=function(i,e,t,n,r,o,a){var s=i.length;if(0===s)return!1;var h=i[s-1];return 0===h.originalEndLineNumber||0===h.modifiedEndLineNumber?!1:h.originalEndLineNumber+1===e&&h.modifiedEndLineNumber+1===r?(h.originalEndLineNumber=e,h.modifiedEndLineNumber=r,this.shouldComputeCharChanges&&h.charChanges.push(new m(e,t,e,n,r,o,r,a)),!0):!1},i.prototype._continueProcessingPredicate=function(){if(0===this.maximumRunTimeMs)return!0;var i=(new Date).getTime();return i-this.computationStartTimet?0:t>255?255:0|t}function r(t){return 0>t?0:t>4294967295?4294967295:0|t}function e(t){for(var n=t.length,o=new Uint32Array(n),e=0;n>e;e++)o[e]=r(t[e]);return o}Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function t(t,n,o){for(var r=new Uint8Array(t*n),e=0,i=t*n;i>e;e++)r[e]=o;this._data=r,this.rows=t,this.cols=n}return t.prototype.get=function(t,n){return this._data[t*this.cols+n]},t.prototype.set=function(t,n,o){this._data[t*this.cols+n]=o},t}();n.Uint8Matrix=i,n.toUint8=o,n.toUint32=r,n.toUint32Array=e}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/viewModel/prefixSumComputer.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/viewModel/prefixSumComputer",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=t("node_modules/monaco-editor/esm/vs/editor/common/core/uint"),u=function(){function t(t,e){this.index=t,this.remainder=e}return t}();e.PrefixSumIndexOfResult=u;var a=function(){function t(t){this.values=t,this.prefixSum=new Uint32Array(t.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}return t.prototype.getCount=function(){return this.values.length},t.prototype.insertValues=function(t,e){t=i.toUint32(t);var u=this.values,a=this.prefixSum,r=e.length;return 0===r?!1:(this.values=new Uint32Array(u.length+r),this.values.set(u.subarray(0,t),0),this.values.set(u.subarray(t),t+r),this.values.set(e,t),t-1=0&&this.prefixSum.set(a.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},t.prototype.changeValue=function(t,e){return t=i.toUint32(t),e=i.toUint32(e),this.values[t]===e?!1:(this.values[t]=e,t-1=u.length)return!1;var r=u.length-t;return e>=r&&(e=r),0===e?!1:(this.values=new Uint32Array(u.length-e),this.values.set(u.subarray(0,t),0),this.values.set(u.subarray(t+e),t),this.prefixSum=new Uint32Array(this.values.length),t-1=0&&this.prefixSum.set(a.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},t.prototype.getTotalValue=function(){return 0===this.values.length?0:this._getAccumulatedValue(this.values.length-1)},t.prototype.getAccumulatedValue=function(t){return 0>t?0:(t=i.toUint32(t),this._getAccumulatedValue(t))},t.prototype._getAccumulatedValue=function(t){if(t<=this.prefixSumValidIndex[0])return this.prefixSum[t];var e=this.prefixSumValidIndex[0]+1;0===e&&(this.prefixSum[0]=this.values[0],e++),t>=this.values.length&&(t=this.values.length-1);for(var i=e;t>=i;i++)this.prefixSum[i]=this.prefixSum[i-1]+this.values[i];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],t),this.prefixSum[t]},t.prototype.getIndexOf=function(t){t=Math.floor(t),this.getTotalValue();for(var e=0,i=this.values.length-1,a=0,r=0,n=0;i>=e;)if(a=e+(i-e)/2|0,r=this.prefixSum[a],n=r-this.values[a],n>t)i=a-1;else{if(!(t>=r))break;e=a+1}return new u(a,t-n)},t}();e.PrefixSumComputer=a;var r=function(){function t(t){this._cacheAccumulatedValueStart=0,this._cache=null,this._actual=new a(t),this._bustCache()}return t.prototype._bustCache=function(){this._cacheAccumulatedValueStart=0,this._cache=null},t.prototype.insertValues=function(t,e){this._actual.insertValues(t,e)&&this._bustCache()},t.prototype.changeValue=function(t,e){this._actual.changeValue(t,e)&&this._bustCache()},t.prototype.removeValues=function(t,e){this._actual.removeValues(t,e)&&this._bustCache()},t.prototype.getTotalValue=function(){return this._actual.getTotalValue()},t.prototype.getAccumulatedValue=function(t){return this._actual.getAccumulatedValue(t)},t.prototype.getIndexOf=function(t){if(t=Math.floor(t),null!==this._cache){var e=t-this._cacheAccumulatedValueStart;if(e>=0&&e=u;u++)i[u-t]=this.getIndexOf(u);this._cache=i,this._cacheAccumulatedValueStart=t},t}();e.PrefixSumComputerWithCache=r}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/model/mirrorTextModel.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/model/mirrorTextModel",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/monaco-editor/esm/vs/editor/common/core/position"),i=e("node_modules/monaco-editor/esm/vs/editor/common/viewModel/prefixSumComputer"),s=function(){function e(e,t,n,i){this._uri=e,this._lines=t,this._eol=n,this._versionId=i,this._lineStarts=null}return e.prototype.dispose=function(){this._lines.length=0},e.prototype.getText=function(){return this._lines.join(this._eol)},e.prototype.onEvents=function(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);for(var t=e.changes,i=0,s=t;is;s++)n[s]=this._lines[s].length+e;this._lineStarts=new i.PrefixSumComputer(n)}},e.prototype._setLineText=function(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.changeValue(e,this._lines[e].length+this._eol.length)},e.prototype._acceptDeleteRange=function(e){if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;return void this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1))}this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber)},e.prototype._acceptInsertText=function(e,t){if(0!==t.length){var n=t.split(/\r\n|\r|\n/);if(1===n.length)return void this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]+this._lines[e.lineNumber-1].substring(e.column-1));n[n.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]);for(var i=new Uint32Array(n.length-1),s=1;si;i++)e[i]=t;return e},t.prototype.set=function(t,e){var a=i.toUint8(e);t>=0&&256>t?this._asciiMap[t]=a:this._map.set(t,a)},t.prototype.get=function(t){return t>=0&&256>t?this._asciiMap[t]:this._map.get(t)||this._defaultValue},t}();e.CharacterClassifier=a;var o=function(){function t(){this._actual=new a(0)}return t.prototype.add=function(t){this._actual.set(t,1)},t.prototype.has=function(t){return 1===this._actual.get(t)},t}();e.CharacterSet=o}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/modes/linkComputer.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/modes/linkComputer",function(e,t){"use strict";function n(){return null===s&&(s=new c([[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]])),s}function r(){if(null===u){u=new a.CharacterClassifier(0);for(var e=" <>'\"、。。、,.:;?!@#$%&*‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…",t=0;tr;r++){var a=e[r],c=a[0],s=a[1],u=a[2];s>t&&(t=s),c>n&&(n=c),u>n&&(n=u)}t++,n++;for(var d=new i.Uint8Matrix(n,t,0),r=0,o=e.length;o>r;r++){var f=e[r],c=f[0],s=f[1],u=f[2];d.set(c,s,u)}this._states=d,this._maxCharCode=t}return e.prototype.nextState=function(e,t){return 0>t||t>=this._maxCharCode?0:this._states.get(e,t)},e}();t.StateMachine=c;var s=null,u=null,d=function(){function e(){}return e._createLink=function(e,t,n,r,o){var a=o-1;do{var i=t.charCodeAt(a),c=e.get(i);if(2!==c)break;a--}while(a>r);if(r>0){var s=t.charCodeAt(r-1),u=t.charCodeAt(a);(40===s&&41===u||91===s&&93===u||123===s&&125===u)&&a--}return{range:{startLineNumber:n,startColumn:r+1,endLineNumber:n,endColumn:a+2},url:t.substring(r,a+1)}},e.computeLinks=function(t,o){void 0===o&&(o=n());for(var a=r(),i=[],c=1,s=t.getLineCount();s>=c;c++){for(var u=t.getLineContent(c),d=u.length,f=0,l=0,m=0,h=1,v=!1,C=!1,k=!1;d>f;){var g=!1,b=u.charCodeAt(f);if(13===h){var L=void 0;switch(b){case 40:v=!0,L=0;break;case 41:L=v?0:1;break;case 91:C=!0,L=0;break;case 93:L=C?0:1;break;case 123:k=!0,L=0;break;case 125:L=k?0:1;break;case 39:L=34===m||96===m?0:1;break;case 34:L=39===m||96===m?0:1;break;case 96:L=39===m||34===m?0:1;break;default:L=a.get(b)}1===L&&(i.push(e._createLink(a,u,c,l,f)),g=!0)}else if(12===h){var L=void 0;91===b?(C=!0,L=0):L=a.get(b),1===L?g=!0:h=13}else h=o.nextState(h,b),0===h&&(g=!0);g&&(h=1,v=!1,C=!1,k=!1,l=f+1,m=b),f++}13===h&&i.push(e._createLink(a,u,c,l,d))}return i},e}();t.LinkComputer=d,t.computeLinks=o}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/modes/supports/inplaceReplaceSupport.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/modes/supports/inplaceReplaceSupport",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}return e.prototype.navigateValueSet=function(e,t,a,l,n){if(e&&t){var r=this.doNavigateValueSet(t,n);if(r)return{range:e,value:r}}if(a&&l){var r=this.doNavigateValueSet(l,n);if(r)return{range:a,value:r}}return null},e.prototype.doNavigateValueSet=function(e,t){var a=this.numberReplace(e,t);return null!==a?a:this.textReplace(e,t)},e.prototype.numberReplace=function(e,t){var a=Math.pow(10,e.length-(e.lastIndexOf(".")+1)),l=Number(e),n=parseFloat(e);return isNaN(l)||isNaN(n)||l!==n?null:0!==l||t?(l=Math.floor(l*a),l+=t?a:-a,String(l/a)):null},e.prototype.textReplace=function(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)},e.prototype.valueSetsReplace=function(e,t,a){for(var l=null,n=0,r=e.length;null===l&&r>n;n++)l=this.valueSetReplace(e[n],t,a);return l},e.prototype.valueSetReplace=function(e,t,a){var l=e.indexOf(t);return l>=0?(l+=a?1:-1,0>l?l=e.length-1:l%=e.length,e[l]):null},e.INSTANCE=new e,e}();t.BasicInplaceReplace=a}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/services/editorSimpleWorker",function(e,t){"use strict";function n(){return new y(null)}Object.defineProperty(t,"__esModule",{value:!0});var o=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),r=e("node_modules/monaco-editor/esm/vs/base/common/arrays"),i=e("node_modules/monaco-editor/esm/vs/base/common/diff/diff"),s=e("node_modules/monaco-editor/esm/vs/base/common/iterator"),u=e("node_modules/monaco-editor/esm/vs/base/common/platform"),l=e("node_modules/monaco-editor/esm/vs/base/common/uri"),a=e("node_modules/monaco-editor/esm/vs/editor/common/core/position"),m=e("node_modules/monaco-editor/esm/vs/editor/common/core/range"),d=e("node_modules/monaco-editor/esm/vs/editor/common/diff/diffComputer"),c=e("node_modules/monaco-editor/esm/vs/editor/common/model/mirrorTextModel"),f=e("node_modules/monaco-editor/esm/vs/editor/common/model/wordHelper"),p=e("node_modules/monaco-editor/esm/vs/editor/common/modes/linkComputer"),g=e("node_modules/monaco-editor/esm/vs/editor/common/modes/supports/inplaceReplaceSupport"),h=e("node_modules/monaco-editor/esm/vs/editor/common/standalone/standaloneBase"),v=e("node_modules/monaco-editor/esm/vs/base/common/types"),_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._versionId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"eol",{get:function(){return this._eol},enumerable:!0,configurable:!0}),t.prototype.getValue=function(){return this.getText()},t.prototype.getLinesContent=function(){return this._lines.slice(0)},t.prototype.getLineCount=function(){return this._lines.length},t.prototype.getLineContent=function(e){return this._lines[e-1]},t.prototype.getWordAtPosition=function(e,t){var n=f.getWordAtText(e.column,f.ensureValidWordDefinition(t),this._lines[e.lineNumber-1],0);return n?new m.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null},t.prototype.getWordUntilPosition=function(e,t){var n=this.getWordAtPosition(e,t);return n?{word:this._lines[e.lineNumber-1].substring(n.startColumn-1,e.column-1),startColumn:n.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}},t.prototype.createWordIterator=function(e){var t,n,o=this,r=0,i=0,u=[],l=function(){if(i=o._lines.length?s.FIN:(n=o._lines[r],u=o._wordenize(n,e),i=0,r+=1,l())};return{next:l}},t.prototype.getLineWords=function(e,t){for(var n=this._lines[e-1],o=this._wordenize(n,t),r=[],i=0,s=o;ii;i++)r.push(this._lines[i]);return r.push(this._lines[o].substring(0,e.endColumn-1)),r.join(t)},t.prototype.offsetAt=function(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getAccumulatedValue(e.lineNumber-2)+(e.column-1)},t.prototype.positionAt=function(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();var t=this._lineStarts.getIndexOf(e),n=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,n)}},t.prototype._validateRange=function(e){var t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),n=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||n.lineNumber!==e.endLineNumber||n.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:n.lineNumber,endColumn:n.column}:e},t.prototype._validatePosition=function(e){if(!a.Position.isIPosition(e))throw new Error("bad position");var t=e.lineNumber,n=e.column,o=!1;if(1>t)t=1,n=1,o=!0;else if(t>this._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,o=!0;else{var r=this._lines[t-1].length+1;1>n?(n=1,o=!0):n>r&&(n=r,o=!0)}return o?{lineNumber:t,column:n}:e},t}(c.MirrorTextModel),b=function(){function e(e){this._foreignModuleFactory=e,this._foreignModule=null}return e.prototype.computeDiff=function(e,t,n){var o=this._getModel(e),r=this._getModel(t);if(!o||!r)return Promise.resolve(null);var i=o.getLinesContent(),s=r.getLinesContent(),u=new d.DiffComputer(i,s,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0}),l=u.computeDiff(),a=l.length>0?!1:this._modelsAreIdentical(o,r);return Promise.resolve({identical:a,changes:l})},e.prototype._modelsAreIdentical=function(e,t){var n=e.getLineCount(),o=t.getLineCount();if(n!==o)return!1;for(var r=1;n>=r;r++){var i=e.getLineContent(r),s=t.getLineContent(r);if(i!==s)return!1}return!0},e.prototype.computeMoreMinimalEdits=function(t,n){var o=this._getModel(t);if(!o)return Promise.resolve(n);var s=[],u=void 0;n=r.mergeSort(n,function(e,t){if(e.range&&t.range)return m.Range.compareRangesUsingStarts(e.range,t.range);var n=e.range?0:1,o=t.range?0:1;return n-o});for(var l=0,a=n;le._diffLimit)s.push({range:c,text:f});else for(var h=i.stringDiff(g,f,!1),v=o.offsetAt(m.Range.lift(c).getStartPosition()),_=0,b=h;_i?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var c=e.length-1;c>=0;c--)(n=e[c])&&(s=(3>i?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},s=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}},c=e("node_modules/monaco-editor/esm/vs/base/common/async"),u=e("node_modules/monaco-editor/esm/vs/base/common/lifecycle"),d=e("node_modules/monaco-editor/esm/vs/base/common/worker/simpleWorker"),a=e("node_modules/monaco-editor/esm/vs/base/worker/defaultWorkerFactory"),l=o.__importStar(e("node_modules/monaco-editor/esm/vs/editor/common/modes")),p=e("node_modules/monaco-editor/esm/vs/editor/common/modes/languageConfigurationRegistry"),m=e("node_modules/monaco-editor/esm/vs/editor/common/services/editorSimpleWorker"),_=e("node_modules/monaco-editor/esm/vs/editor/common/services/modelService"),h=e("node_modules/monaco-editor/esm/vs/editor/common/services/resourceConfiguration"),g=e("node_modules/monaco-editor/esm/vs/base/common/strings"),f=e("node_modules/monaco-editor/esm/vs/base/common/arrays"),v=e("node_modules/monaco-editor/esm/vs/platform/log/common/log"),y=e("node_modules/monaco-editor/esm/vs/base/common/stopwatch"),S=6e4,k=3e5,M=function(e){function t(t,o,n){var i=e.call(this)||this;return i._modelService=t,i._workerManager=i._register(new w(i._modelService)),i._logService=n,i._register(l.LinkProviderRegistry.register("*",{provideLinks:function(e){return r(i._modelService,e.uri)?i._workerManager.withWorker().then(function(t){return t.computeLinks(e.uri)}).then(function(e){return e&&{links:e}}):Promise.resolve({links:[]})}})),i._register(l.CompletionProviderRegistry.register("*",new W(i._workerManager,o,i._modelService))),i}return n(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.canComputeDiff=function(e,t){return r(this._modelService,e)&&r(this._modelService,t)},t.prototype.computeDiff=function(e,t,r){return this._workerManager.withWorker().then(function(o){return o.computeDiff(e,t,r)})},t.prototype.computeMoreMinimalEdits=function(e,t){var o=this;if(f.isNonEmptyArray(t)){if(!r(this._modelService,e))return Promise.resolve(t);var n=y.StopWatch.create(!0),i=this._workerManager.withWorker().then(function(r){return r.computeMoreMinimalEdits(e,t)});return i.finally(function(){return o._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),n.elapsed())}),i}return Promise.resolve(void 0)},t.prototype.canNavigateValueSet=function(e){return r(this._modelService,e)},t.prototype.navigateValueSet=function(e,t,r){return this._workerManager.withWorker().then(function(o){return o.navigateValueSet(e,t,r)})},t.prototype.canComputeWordRanges=function(e){return r(this._modelService,e)},t.prototype.computeWordRanges=function(e,t){return this._workerManager.withWorker().then(function(r){return r.computeWordRanges(e,t)})},t=i([s(0,_.IModelService),s(1,h.ITextResourceConfigurationService),s(2,v.ILogService)],t)}(u.Disposable);t.EditorWorkerServiceImpl=M;var W=function(){function e(e,t,r){this._workerManager=e,this._configurationService=t,this._modelService=r}return e.prototype.provideCompletionItems=function(e,t){var o=this._configurationService.getValue(e.uri,t,"editor").wordBasedSuggestions;return o&&r(this._modelService,e.uri)?this._workerManager.withWorker().then(function(r){return r.textualSuggest(e.uri,t)}):void 0},e}(),w=function(e){function t(t){var r=e.call(this)||this;r._modelService=t,r._editorWorkerClient=null;var o=r._register(new c.IntervalTimer);return o.cancelAndSet(function(){return r._checkStopIdleWorker()},Math.round(k/2)),r._register(r._modelService.onModelRemoved(function(){return r._checkStopEmptyWorker()})),r}return n(t,e),t.prototype.dispose=function(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),e.prototype.dispose.call(this)},t.prototype._checkStopEmptyWorker=function(){if(this._editorWorkerClient){var e=this._modelService.getModels();0===e.length&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}},t.prototype._checkStopIdleWorker=function(){if(this._editorWorkerClient){var e=(new Date).getTime()-this._lastWorkerUsedTime;e>k&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}},t.prototype.withWorker=function(){return this._lastWorkerUsedTime=(new Date).getTime(),this._editorWorkerClient||(this._editorWorkerClient=new O(this._modelService,"editorWorkerService")),Promise.resolve(this._editorWorkerClient)},t}(u.Disposable),C=function(e){function t(t,r,o){var n=e.call(this)||this;if(n._syncedModels=Object.create(null),n._syncedModelsLastUsedTime=Object.create(null),n._proxy=t,n._modelService=r,!o){var i=new c.IntervalTimer;i.cancelAndSet(function(){return n._checkStopModelSync()},Math.round(S/2)),n._register(i)}return n}return n(t,e),t.prototype.dispose=function(){for(var t in this._syncedModels)u.dispose(this._syncedModels[t]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),e.prototype.dispose.call(this)},t.prototype.esureSyncedResources=function(e){for(var t=0,r=e;tS&&t.push(r)}for(var n=0,i=t;n>>1,this._text=e}return t.prototype.equals=function(e){return e instanceof t?this.slicedEquals(e,0,this._tokensCount):!1},t.prototype.slicedEquals=function(t,e,n){if(this._text!==t._text)return!1;if(this._tokensCount!==t._tokensCount)return!1;for(var o=e<<1,s=o+(n<<1),r=o;s>r;r++)if(this._tokens[r]!==t._tokens[r])return!1;return!0},t.prototype.getLineContent=function(){return this._text},t.prototype.getCount=function(){return this._tokensCount},t.prototype.getStartOffset=function(t){return t>0?this._tokens[t-1<<1]:0},t.prototype.getLanguageId=function(t){var e=this._tokens[(t<<1)+1];return n.TokenMetadata.getLanguageId(e)},t.prototype.getStandardTokenType=function(t){var e=this._tokens[(t<<1)+1];return n.TokenMetadata.getTokenType(e)},t.prototype.getForeground=function(t){var e=this._tokens[(t<<1)+1];return n.TokenMetadata.getForeground(e)},t.prototype.getClassName=function(t){var e=this._tokens[(t<<1)+1];return n.TokenMetadata.getClassNameFromMetadata(e)},t.prototype.getInlineStyle=function(t,e){var o=this._tokens[(t<<1)+1];return n.TokenMetadata.getInlineStyleFromMetadata(o,e)},t.prototype.getEndOffset=function(t){return this._tokens[t<<1]},t.prototype.findTokenIndexAtOffset=function(e){return t.findIndexInTokensArray(this._tokens,e)},t.prototype.inflate=function(){return this},t.prototype.sliceAndInflate=function(t,e,n){return new s(this,t,e,n)},t.convertToEndOffset=function(t,e){for(var n=t.length>>>1,o=n-1,s=0;o>s;s++)t[s<<1]=t[s+1<<1];t[o<<1]=e},t.findIndexInTokensArray=function(t,e){if(t.length<=2)return 0;for(var n=0,o=(t.length>>>1)-1;o>n;){var s=n+Math.floor((o-n)/2),r=t[s<<1];if(r===e)return s+1;e>r?n=s+1:r>e&&(o=s)}return n},t}();e.LineTokens=o;var s=function(){function t(t,e,n,o){this._source=t,this._startOffset=e,this._endOffset=n,this._deltaOffset=o,this._firstTokenIndex=t.findTokenIndexAtOffset(e),this._tokensCount=0;for(var s=this._firstTokenIndex,r=t.getCount();r>s;s++){var i=t.getStartOffset(s);if(i>=n)break;this._tokensCount++}}return t.prototype.equals=function(e){return e instanceof t?this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount):!1},t.prototype.getCount=function(){return this._tokensCount},t.prototype.getForeground=function(t){return this._source.getForeground(this._firstTokenIndex+t)},t.prototype.getEndOffset=function(t){var e=this._source.getEndOffset(this._firstTokenIndex+t);return Math.min(this._endOffset,e)-this._startOffset+this._deltaOffset},t.prototype.getClassName=function(t){return this._source.getClassName(this._firstTokenIndex+t)},t.prototype.getInlineStyle=function(t,e){return this._source.getInlineStyle(this._firstTokenIndex+t,e)},t.prototype.findTokenIndexAtOffset=function(t){return this._source.findTokenIndexAtOffset(t+this._startOffset-this._deltaOffset)-this._firstTokenIndex},t}();e.SlicedLineTokens=s}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/core/stringBuilder.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/core/stringBuilder",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=t("node_modules/tslib/tslib"),n=i.__importStar(t("node_modules/monaco-editor/esm/vs/base/common/strings"));e.createStringBuilder="undefined"!=typeof TextDecoder?function(t){return new r(t)}:function(){return new s};var r=function(){function t(t){this._decoder=new TextDecoder("UTF-16LE"),this._capacity=0|t,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}return t.prototype.reset=function(){this._completedStrings=null,this._bufferLength=0},t.prototype.build=function(){return null!==this._completedStrings?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()},t.prototype._buildBuffer=function(){if(0===this._bufferLength)return"";var t=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return this._decoder.decode(t)},t.prototype._flushBuffer=function(){var t=this._buildBuffer();this._bufferLength=0,null===this._completedStrings?this._completedStrings=[t]:this._completedStrings[this._completedStrings.length]=t},t.prototype.write1=function(t){var e=this._capacity-this._bufferLength;1>=e&&(0===e||n.isHighSurrogate(t))&&this._flushBuffer(),this._buffer[this._bufferLength++]=t},t.prototype.appendASCII=function(t){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=t},t.prototype.appendASCIIString=function(t){var e=t.length;if(this._bufferLength+e>=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=t);for(var i=0;e>i;i++)this._buffer[this._bufferLength++]=t.charCodeAt(i)},t}(),s=function(){function t(){this._pieces=[],this._piecesLen=0}return t.prototype.reset=function(){this._pieces=[],this._piecesLen=0},t.prototype.build=function(){return this._pieces.join("")},t.prototype.write1=function(t){this._pieces[this._piecesLen++]=String.fromCharCode(t)},t.prototype.appendASCII=function(t){this._pieces[this._piecesLen++]=String.fromCharCode(t)},t.prototype.appendASCIIString=function(t){this._pieces[this._piecesLen++]=t},t}()}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/viewLayout/lineDecorations.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/viewLayout/lineDecorations",function(t,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var e=t("node_modules/tslib/tslib"),n=e.__importStar(t("node_modules/monaco-editor/esm/vs/base/common/strings")),o=function(){function t(t,s,e,n){this.startColumn=t,this.endColumn=s,this.className=e,this.type=n}return t._equals=function(t,s){return t.startColumn===s.startColumn&&t.endColumn===s.endColumn&&t.className===s.className&&t.type===s.type},t.equalsArr=function(s,e){var n=s.length,o=e.length;if(n!==o)return!1;for(var r=0;n>r;r++)if(!t._equals(s[r],e[r]))return!1;return!0},t.filter=function(s,e,n,o){if(0===s.length)return[];for(var r=[],i=0,a=0,u=s.length;u>a;a++){var c=s[a],f=c.range;if(!(f.endLineNumbere||f.isEmpty()&&(0===c.type||3===c.type))){var l=f.startLineNumber===e?f.startColumn:n,m=f.endLineNumber===e?f.endColumn:o;r[i++]=new t(l,m,c.inlineClassName,c.type)}}return r},t.compare=function(t,s){return t.startColumn===s.startColumn?t.endColumn===s.endColumn?t.classNames.className?1:0:t.endColumn-s.endColumn:t.startColumn-s.startColumn},t}();s.LineDecoration=o;var r=function(){function t(t,s,e){this.startOffset=t,this.endOffset=s,this.className=e}return t}();s.DecorationSegment=r;var i=function(){function t(){this.stopOffsets=[],this.classNames=[],this.count=0}return t.prototype.consumeLowerThan=function(t,s,e){for(;this.count>0&&this.stopOffsets[0]0&&t>s&&(e.push(new r(s,t-1,this.classNames.join(" "))),s=t),s},t.prototype.insert=function(t,s){if(0===this.count||this.stopOffsets[this.count-1]<=t)this.stopOffsets.push(t),this.classNames.push(s);else for(var e=0;e=t){this.stopOffsets.splice(e,0,t),this.classNames.splice(e,0,s);break}this.count++},t}(),a=function(){function t(){}return t.normalize=function(t,s){if(0===s.length)return[];for(var e=[],o=new i,r=0,a=0,u=s.length;u>a;a++){var c=s[a],f=c.startColumn,l=c.endColumn,m=c.className;if(f>1){var h=t.charCodeAt(f-2);n.isHighSurrogate(h)&&f--}if(l>1){var h=t.charCodeAt(l-2);n.isHighSurrogate(h)&&l--}var p=f-1,d=l-2;r=o.consumeLowerThan(p,r,e),0===o.count&&(r=p),o.insert(d,m)}return o.consumeLowerThan(1073741824,r,e),e},t}();s.LineDecorationsNormalizer=a}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/viewLayout/viewLineRenderer.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/viewLayout/viewLineRenderer",function(e,t){"use strict";function n(e,t){if(0===e.lineContent.length){var n=0,r=" ";if(e.lineDecorations.length>0){for(var a=[],s=0,o=e.lineDecorations.length;o>s;s++){var h=e.lineDecorations[s];1===h.type&&(a.push(e.lineDecorations[s].className),n|=1),2===h.type&&(a.push(e.lineDecorations[s].className),n|=2)}0!==n&&(r='')}return t.appendASCIIString(r),new I(new v(0,0),!1,n)}return c(i(e),t)}function r(e){var t=f.createStringBuilder(1e4),r=n(e,t);return new w(r.characterMapping,t.build(),r.containsRTL,r.containsForeignElements)}function i(e){var t,n,r=e.useMonospaceOptimizations,i=e.lineContent;-1!==e.stopRenderingLineAfter&&e.stopRenderingLineAfter0){for(var p=0,f=e.lineDecorations.length;f>p;p++){var l=e.lineDecorations[p];3===l.type?d|=1:1===l.type?d|=1:2===l.type&&(d|=2)}c=h(i,n,c,e.lineDecorations)}return e.containsRTL||(c=s(i,c,!e.isBasicASCII||e.fontLigatures)),new C(r,e.canUseHalfwidthRightwardsArrow,i,n,t,c,d,e.tabSize,e.containsRTL,e.spaceWidth,e.renderWhitespace,e.renderControlCharacters)}function a(e,t,n){var r=[],i=0;t>0&&(r[i++]=new u(t,""));for(var a=0,s=e.getCount();s>a;a++){var o=e.getEndOffset(a);if(!(t>=o)){var h=e.getClassName(a);if(o>=n){r[i++]=new u(n,h);break}r[i++]=new u(o,h)}}return r}function s(e,t,n){var r=0,i=[],a=0;if(n)for(var s=0,o=t.length;o>s;s++){var h=t[s],c=h.endIndex;if(c>r+50){for(var d=h.type,p=-1,f=r,l=r;c>l;l++)32===e.charCodeAt(l)&&(p=l),-1!==p&&l-f>=50&&(i[a++]=new u(p+1,d),f=p+1,p=-1);f!==c&&(i[a++]=new u(c,d))}else i[a++]=h;r=c}else for(var s=0,o=t.length;o>s;s++){var h=t[s],c=h.endIndex,g=c-r;if(g>50){for(var d=h.type,v=Math.ceil(g/50),l=1;v>l;l++){var I=r+50*l;i[a++]=new u(I,d)}i[a++]=new u(c,d)}else i[a++]=h;r=c}return i}function o(e,t,n,r,i,a,s,o){var h,c=[],d=0,f=0,l=r[f].type,g=r[f].endIndex,v=r.length,I=p.firstNonWhitespaceIndex(e);-1===I?(I=t,h=t):h=p.lastNonWhitespaceIndex(e);for(var w=0,C=0;i>C;C++){var A=e.charCodeAt(C);9===A?w=a:p.isFullWidthCharacter(A)?w+=2:w++}w%=a;for(var S=!1,C=i;t>C;C++){var A=e.charCodeAt(C),m=void 0;if(I>C||C>h)m=!0;else if(9===A)m=!0;else if(32===A)if(o)if(S)m=!0;else{var L=t>C+1?e.charCodeAt(C+1):0;m=32===L||9===L}else m=!0;else m=!1;S?(!m||!s&&w>=a)&&(c[d++]=new u(C,"vs-whitespace"),w%=a):(C===g||m&&C>i)&&(c[d++]=new u(C,l),w%=a),9===A?w=a:p.isFullWidthCharacter(A)?w+=2:w++,S=m,C===g&&(f++,v>f&&(l=r[f].type,g=r[f].endIndex))}var W=!1;if(S)if(n&&o){var b=t>0?e.charCodeAt(t-1):0,R=t>1?e.charCodeAt(t-2):0,y=32===b&&32!==R&&9!==R;y||(W=!0)}else W=!0;return c[d++]=new u(t,W?"vs-whitespace":l),c}function h(e,t,n,r){r.sort(l.LineDecoration.compare);for(var i=l.LineDecorationsNormalizer.normalize(e,r),a=i.length,s=0,o=[],h=0,c=0,d=0,p=n.length;p>d;d++){for(var f=n[d],g=f.endIndex,v=f.type;a>s&&i[s].startOffsetc&&(c=I.startOffset,o[h++]=new u(c,v)),!(I.endOffset+1<=g)){c=g,o[h++]=new u(c,v+" "+I.className);break}c=I.endOffset+1,o[h++]=new u(c,v+" "+I.className),s++}g>c&&(c=g,o[h++]=new u(c,v))}var w=n[n.length-1].endIndex;if(a>s&&i[s].startOffset===w){for(var C=[];a>s&&i[s].startOffset===w;)C.push(i[s].className),s++;o[h++]=new u(c,C.join(" "))}return o}function c(e,t){var n=e.fontIsMonospace,r=e.canUseHalfwidthRightwardsArrow,i=e.containsForeignElements,a=e.lineContent,s=e.len,o=e.isOverflowing,h=e.parts,c=e.tabSize,d=e.containsRTL,f=e.spaceWidth,l=e.renderWhitespace,u=e.renderControlCharacters,g=new v(s+1,h.length),w=0,C=0,A=0,S=0,m=0;t.appendASCIIString("");for(var L=0,W=h.length;W>L;L++){m+=S;var b=h[L],R=b.endIndex,y=b.type,O=0!==l&&y.indexOf("vs-whitespace")>=0;if(A=0,t.appendASCIIString('w;w++){g.setPartData(w,L,A,m);var T=a.charCodeAt(w);if(9===T){var k=c-(w+C)%c;for(C+=k-1,A+=k-1,k>0&&(t.write1(!r||k>1?8594:65515),k--);k>0;)t.write1(160),k--}else t.write1(183);A++}S=x}else{var x=0;for(d&&t.appendASCIIString(' dir="ltr"'),t.appendASCII(62);R>w;w++){g.setPartData(w,L,A,m);var T=a.charCodeAt(w);switch(T){case 9:var k=c-(w+C)%c;for(C+=k-1,A+=k-1;k>0;)t.write1(160),x++,k--;break;case 32:t.write1(160),x++;break;case 60:t.appendASCIIString("<"),x++;break;case 62:t.appendASCIIString(">"),x++;break;case 38:t.appendASCIIString("&"),x++;break;case 0:t.appendASCIIString("�"),x++;break;case 65279:case 8232:t.write1(65533),x++;break;default:p.isFullWidthCharacter(T)&&C++,u&&32>T?(t.write1(9216+T),x++):(t.write1(T),x++)}A++}S=x}t.appendASCIIString("")}return g.setPartData(s,h.length-1,A,m),o&&t.appendASCIIString(""),t.appendASCIIString(""),new I(g,d,i)}Object.defineProperty(t,"__esModule",{value:!0});var d=e("node_modules/tslib/tslib"),p=d.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/strings")),f=e("node_modules/monaco-editor/esm/vs/editor/common/core/stringBuilder"),l=e("node_modules/monaco-editor/esm/vs/editor/common/viewLayout/lineDecorations"),u=function(){function e(e,t){this.endIndex=e,this.type=t}return e}(),g=function(){function e(e,t,n,r,i,a,s,o,h,c,d,p,f,l,u){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=n,this.continuesWithWrappedLine=r,this.isBasicASCII=i,this.containsRTL=a,this.fauxIndentLength=s,this.lineTokens=o,this.lineDecorations=h,this.tabSize=c,this.spaceWidth=d,this.stopRenderingLineAfter=p,this.renderWhitespace="all"===f?2:"boundary"===f?1:0,this.renderControlCharacters=l,this.fontLigatures=u}return e.prototype.equals=function(e){return this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineContent===e.lineContent&&this.continuesWithWrappedLine===e.continuesWithWrappedLine&&this.isBasicASCII===e.isBasicASCII&&this.containsRTL===e.containsRTL&&this.fauxIndentLength===e.fauxIndentLength&&this.tabSize===e.tabSize&&this.spaceWidth===e.spaceWidth&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.fontLigatures===e.fontLigatures&&l.LineDecoration.equalsArr(this.lineDecorations,e.lineDecorations)&&this.lineTokens.equals(e.lineTokens)},e}();t.RenderLineInput=g;var v=function(){function e(e){this.length=e,this._data=new Uint32Array(this.length),this._absoluteOffsets=new Uint32Array(this.length)}return e.getPartIndex=function(e){return(4294901760&e)>>>16},e.getCharIndex=function(e){return(65535&e)>>>0},e.prototype.setPartData=function(e,t,n,r){var i=(t<<16|n<<0)>>>0;this._data[e]=i,this._absoluteOffsets[e]=r+n},e.prototype.getAbsoluteOffsets=function(){return this._absoluteOffsets},e.prototype.charOffsetToPartData=function(e){return 0===this.length?0:0>e?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]},e.prototype.partDataToCharOffset=function(t,n,r){if(0===this.length)return 0;for(var i=(t<<16|r<<0)>>>0,a=0,s=this.length-1;s>a+1;){var o=a+s>>>1,h=this._data[o];if(h===i)return o;h>i?s=o:a=o}if(a===s)return a;var c=this._data[a],d=this._data[s];if(c===i)return a;if(d===i)return s;var p,f=e.getPartIndex(c),l=e.getCharIndex(c),u=e.getPartIndex(d);p=f!==u?n:e.getCharIndex(d);var g=r-l,v=p-r;return v>=g?a:s},e}();t.CharacterMapping=v;var I=function(){function e(e,t,n){this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=n}return e}();t.RenderLineOutput=I,t.renderViewLine=n;var w=function(){function e(e,t,n,r){this.characterMapping=e,this.html=t,this.containsRTL=n,this.containsForeignElements=r}return e}();t.RenderLineOutput2=w,t.renderViewLine2=r;var C=function(){function e(e,t,n,r,i,a,s,o,h,c,d,p){this.fontIsMonospace=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=n,this.len=r,this.isOverflowing=i,this.parts=a,this.containsForeignElements=s,this.tabSize=o,this.containsRTL=h,this.spaceWidth=c,this.renderWhitespace=d,this.renderControlCharacters=p}return e}()}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/viewModel/viewModel.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/viewModel/viewModel",function(i,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=i("node_modules/tslib/tslib"),e=t.__importStar(i("node_modules/monaco-editor/esm/vs/base/common/strings")),s=function(){function i(i,n,t,e){this.top=0|i,this.left=0|n,this.width=0|t,this.height=0|e}return i}();n.Viewport=s;var o=function(){function i(i,n){this.tabSize=i,this.data=n}return i}();n.MinimapLinesRenderingData=o;var a=function(){function i(i,n,t,e,s){this.content=i,this.continuesWithWrappedLine=n,this.minColumn=t,this.maxColumn=e,this.tokens=s}return i}();n.ViewLineData=a;var r=function(){function i(n,t,e,s,o,a,r,c,u){this.minColumn=n,this.maxColumn=t,this.content=e,this.continuesWithWrappedLine=s,this.isBasicASCII=i.isBasicASCII(e,a),this.containsRTL=i.containsRTL(e,this.isBasicASCII,o),this.tokens=r,this.inlineDecorations=c,this.tabSize=u}return i.isBasicASCII=function(i,n){return n?e.isBasicASCII(i):!0},i.containsRTL=function(i,n,t){return!n&&t?e.containsRTL(i):!1},i}();n.ViewLineRenderingData=r;var c=function(){function i(i,n,t){this.range=i,this.inlineClassName=n,this.type=t}return i}();n.InlineDecoration=c;var u=function(){function i(i,n){this.range=i,this.options=n}return i}();n.ViewModelDecoration=u}); ;/*!node_modules/monaco-editor/esm/vs/editor/standalone/common/monarch/monarchCommon.js*/ define("node_modules/monaco-editor/esm/vs/editor/standalone/common/monarch/monarchCommon",function(n,r){"use strict";function t(n){return Array.isArray(n)}function e(n){return!t(n)}function u(n){return"string"==typeof n}function o(n){return!u(n)}function i(n){return n?!1:!0}function s(n,r){return n.ignoreCase&&r?r.toLowerCase():r}function a(n){return n.replace(/[&<>'"_]/g,"-")}function l(n,r){console.log(n.languageId+": "+r)}function c(n,r){return new Error(n.languageId+": "+r)}function f(n,r,t,e,u){var o=/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,a=null;return r.replace(o,function(r,o,l,c,f,d,g){return i(l)?i(c)?!i(f)&&f0;){var e=n.tokenizer[t];if(e)return e;var u=t.lastIndexOf(".");t=0>u?null:t.substr(0,u)}return null}function g(n,r){for(var t=r;t&&t.length>0;){var e=n.stateNames[t];if(e)return!0;var u=t.lastIndexOf(".");t=0>u?null:t.substr(0,u)}return!1}Object.defineProperty(r,"__esModule",{value:!0}),r.isFuzzyActionArr=t,r.isFuzzyAction=e,r.isString=u,r.isIAction=o,r.empty=i,r.fixCase=s,r.sanitize=a,r.log=l,r.createError=c,r.substituteMatches=f,r.findRules=d,r.stateExists=g}); ;/*!node_modules/monaco-editor/esm/vs/editor/standalone/common/monarch/monarchLexer.js*/ define("node_modules/monaco-editor/esm/vs/editor/standalone/common/monarch/monarchLexer",function(e,t){"use strict";function n(e,t){if(!t)return null;t=u.fixCase(e,t);for(var n=e.brackets,r=0,i=n;r=this._maxCacheDepth)return new h(e,t);var n=h.getStackElementId(e);n.length>0&&(n+="|"),n+=t;var r=this._entries[n];return r?r:(r=new h(e,t),this._entries[n]=r,r)},e._INSTANCE=new e(d),e}(),h=function(){function e(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}return e.getStackElementId=function(e){for(var t="";null!==e;)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t},e._equals=function(e,t){for(;null!==e&&null!==t;){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return null===e&&null===t?!0:!1},e.prototype.equals=function(t){return e._equals(this,t)},e.prototype.push=function(e){return l.create(this,e)},e.prototype.pop=function(){return this.parent},e.prototype.popall=function(){for(var e=this;e.parent;)e=e.parent;return e},e.prototype.switchTo=function(e){return l.create(this.parent,e)},e}(),c=function(){function e(e,t){this.modeId=e,this.state=t}return e.prototype.equals=function(e){return this.modeId===e.modeId&&this.state.equals(e.state)},e.prototype.clone=function(){var t=this.state.clone();return t===this.state?this:new e(this.modeId,this.state)},e}(),f=function(){function e(e){this._maxCacheDepth=e,this._entries=Object.create(null)}return e.create=function(e,t){return this._INSTANCE.create(e,t)},e.prototype.create=function(e,t){if(null!==t)return new p(e,t);if(null!==e&&e.depth>=this._maxCacheDepth)return new p(e,t);var n=h.getStackElementId(e),r=this._entries[n];return r?r:(r=new p(e,null),this._entries[n]=r,r)},e._INSTANCE=new e(d),e}(),p=function(){function e(e,t){this.stack=e,this.embeddedModeData=t}return e.prototype.clone=function(){var e=this.embeddedModeData?this.embeddedModeData.clone():null;return e===this.embeddedModeData?this:f.create(this.stack,this.embeddedModeData)},e.prototype.equals=function(t){return t instanceof e&&this.stack.equals(t.stack)?null===this.embeddedModeData&&null===t.embeddedModeData?!0:null===this.embeddedModeData||null===t.embeddedModeData?!1:this.embeddedModeData.equals(t.embeddedModeData):!1},e}(),m=Object.hasOwnProperty,_=function(){function e(){this._tokens=[],this._language=null,this._lastTokenType=null,this._lastTokenLanguage=null}return e.prototype.enterMode=function(e,t){this._language=t},e.prototype.emit=function(e,t){(this._lastTokenType!==t||this._lastTokenLanguage!==this._language)&&(this._lastTokenType=t,this._lastTokenLanguage=this._language,this._tokens.push(new o.Token(e,t,this._language)))},e.prototype.nestedModeTokenize=function(e,t,n){var r=t.modeId,i=t.state,o=s.TokenizationRegistry.get(r);if(!o)return this.enterMode(n,r),this.emit(n,""),i;var a=o.tokenize(e,i,n);return this._tokens=this._tokens.concat(a.tokens),this._lastTokenType=null,this._lastTokenLanguage=null,this._language=null,a.endState},e.prototype.finalize=function(e){return new o.TokenizationResult(this._tokens,e)},e}(),g=function(){function e(e,t){this._modeService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}return e.prototype.enterMode=function(e,t){this._currentLanguageId=this._modeService.getLanguageIdentifier(t).id},e.prototype.emit=function(e,t){var n=this._theme.match(this._currentLanguageId,t);this._lastTokenMetadata!==n&&(this._lastTokenMetadata=n,this._tokens.push(e),this._tokens.push(n))},e._merge=function(e,t,n){var r=null!==e?e.length:0,i=t.length,o=null!==n?n.length:0;if(0===r&&0===i&&0===o)return new Uint32Array(0);if(0===r&&0===i)return n;if(0===i&&0===o)return e;var s=new Uint32Array(r+i+o);null!==e&&s.set(e);for(var a=0;i>a;a++)s[r+a]=t[a];return null!==n&&s.set(n,r+i),s},e.prototype.nestedModeTokenize=function(t,n,r){var i=n.modeId,o=n.state,a=s.TokenizationRegistry.get(i);if(!a)return this.enterMode(r,i),this.emit(r,""),o;var u=a.tokenize2(t,o,r);return this._prependTokens=e._merge(this._prependTokens,this._tokens,u.tokens),this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0,u.endState},e.prototype.finalize=function(t){return new o.TokenizationResult2(e._merge(this._prependTokens,this._tokens,null),t)},e}(),k=function(){function e(e,t,n,r){var i=this;this._modeService=e,this._standaloneThemeService=t,this._modeId=n,this._lexer=r,this._embeddedModes=Object.create(null),this.embeddedLoaded=Promise.resolve(void 0);var o=!1;this._tokenizationRegistryListener=s.TokenizationRegistry.onDidChange(function(e){if(!o){for(var t=!1,n=0,r=e.changedLanguages.length;r>n;n++){var a=e.changedLanguages[n];if(i._embeddedModes[a]){t=!0;break}}t&&(o=!0,s.TokenizationRegistry.fire([i._modeId]),o=!1)}})}return e.prototype.dispose=function(){this._tokenizationRegistryListener.dispose()},e.prototype.getLoadStatus=function(){var t=[];for(var n in this._embeddedModes){var r=s.TokenizationRegistry.get(n);if(r){if(r instanceof e){var i=r.getLoadStatus();i.loaded===!1&&t.push(i.promise)}}else{var o=s.TokenizationRegistry.getPromise(n);o&&t.push(o)}}return 0===t.length?{loaded:!0}:{loaded:!1,promise:Promise.all(t).then(function(){return void 0})}},e.prototype.getInitialState=function(){var e=l.create(null,this._lexer.start);return f.create(e,null)},e.prototype.tokenize=function(e,t,n){var r=new _,i=this._tokenize(e,t,n,r);return r.finalize(i)},e.prototype.tokenize2=function(e,t,n){var r=new g(this._modeService,this._standaloneThemeService.getTheme().tokenTheme),i=this._tokenize(e,t,n,r);return r.finalize(i)},e.prototype._tokenize=function(e,t,n,r){return t.embeddedModeData?this._nestedTokenize(e,t,n,r):this._myTokenize(e,t,n,r)},e.prototype._findLeavingNestedModeOffset=function(e,t){var n=this._lexer.tokenizer[t.stack.state];if(!n&&(n=u.findRules(this._lexer,t.stack.state),!n))throw u.createError(this._lexer,"tokenizer state is not defined: "+t.stack.state);var r=-1,i=!1;for(var o in n)if(m.call(n,o)){var s=n[o];if(u.isIAction(s.action)&&"@pop"===s.action.nextEmbedded){i=!0;var a=s.regex,d=s.regex.source;"^(?:"===d.substr(0,4)&&")"===d.substr(d.length-1,1)&&(a=new RegExp(d.substr(4,d.length-5),a.ignoreCase?"i":""));var l=e.search(a);-1!==l&&(-1===r||r>l)&&(r=l)}}if(!i)throw u.createError(this._lexer,'no rule containing nextEmbedded: "@pop" in tokenizer embedded state: '+t.stack.state);return r},e.prototype._nestedTokenize=function(e,t,n,r){var i=this._findLeavingNestedModeOffset(e,t);if(-1===i){var o=r.nestedModeTokenize(e,t.embeddedModeData,n);return f.create(t.stack,new c(t.embeddedModeData.modeId,o))}var s=e.substring(0,i);s.length>0&&r.nestedModeTokenize(s,t.embeddedModeData,n);var a=e.substring(i);return this._myTokenize(a,t,n+i,r)},e.prototype._safeRuleName=function(e){return e?e.name:"(unknown)"},e.prototype._myTokenize=function(e,t,r,i){i.enterMode(r,this._modeId);for(var o=e.length,s=t.embeddedModeData,a=t.stack,d=0,l=null,h=!0;h||o>d;){var c=d,p=a.depth,_=l?l.groups.length:0,g=a.state,k=null,v=null,b=null,y=null,x=null;if(l){k=l.matches;var T=l.groups.shift();v=T.matched,b=T.action,y=l.rule,0===l.groups.length&&(l=null)}else{if(!h&&d>=o)break;h=!1;var M=this._lexer.tokenizer[g];if(!M&&(M=u.findRules(this._lexer,g),!M))throw u.createError(this._lexer,"tokenizer state is not defined: "+g);var w=e.substr(d);for(var z in M)if(m.call(M,z)){var E=M[z];if((0===d||!E.matchOnlyAtLineStart)&&(k=w.match(E.regex))){v=k[0],b=E.action;break}}}if(k||(k=[""],v=""),b||(o>d&&(k=[e.charAt(d)],v=k[0]),b=this._lexer.defaultToken),null===v)break;for(d+=v.length;u.isFuzzyAction(b)&&u.isIAction(b)&&b.test;)b=b.test(v,k,g,d===o);var S=null;if("string"==typeof b||Array.isArray(b))S=b;else if(b.group)S=b.group;else if(null!==b.token&&void 0!==b.token){if(S=b.tokenSubst?u.substituteMatches(this._lexer,b.token,v,k,g):b.token,b.nextEmbedded)if("@pop"===b.nextEmbedded){if(!s)throw u.createError(this._lexer,"cannot pop embedded mode if not inside one");s=null}else{if(s)throw u.createError(this._lexer,"cannot enter embedded mode from within an embedded mode");x=u.substituteMatches(this._lexer,b.nextEmbedded,v,k,g)}if(b.goBack&&(d=Math.max(0,d-b.goBack)),b.switchTo&&"string"==typeof b.switchTo){var I=u.substituteMatches(this._lexer,b.switchTo,v,k,g);if("@"===I[0]&&(I=I.substr(1)),!u.findRules(this._lexer,I))throw u.createError(this._lexer,"trying to switch to a state '"+I+"' that is undefined in rule: "+this._safeRuleName(y));a=a.switchTo(I)}else{if(b.transform&&"function"==typeof b.transform)throw u.createError(this._lexer,"action.transform not supported");if(b.next)if("@push"===b.next){if(a.depth>=this._lexer.maxStack)throw u.createError(this._lexer,"maximum tokenizer stack size reached: ["+a.state+","+a.parent.state+",...]");a=a.push(g)}else if("@pop"===b.next){if(a.depth<=1)throw u.createError(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(y));a=a.pop()}else if("@popall"===b.next)a=a.popall();else{var I=u.substituteMatches(this._lexer,b.next,v,k,g);if("@"===I[0]&&(I=I.substr(1)),!u.findRules(this._lexer,I))throw u.createError(this._lexer,"trying to set a next state '"+I+"' that is undefined in rule: "+this._safeRuleName(y));a=a.push(I)}}b.log&&"string"==typeof b.log&&u.log(this._lexer,this._lexer.languageId+": "+u.substituteMatches(this._lexer,b.log,v,k,g))}if(null===S)throw u.createError(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(y));if(Array.isArray(S)){if(l&&l.groups.length>0)throw u.createError(this._lexer,"groups cannot be nested: "+this._safeRuleName(y));if(k.length!==S.length+1)throw u.createError(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(y));for(var R=0,D=1;Dd){var w=e.substr(d);return this._nestedTokenize(w,f.create(a,q),r+d,i)}return f.create(a,q)}}}return f.create(a,s)},e.prototype._getNestedEmbeddedModeData=function(e){var t=this._locateMode(e);if(t){var n=s.TokenizationRegistry.get(t);if(n)return new c(t,n.getInitialState())}return new c(t||a.NULL_MODE_ID,a.NULL_STATE)},e.prototype._locateMode=function(e){if(!e||!this._modeService.isRegisteredMode(e))return null;var t=this._modeService.getModeId(e);return t&&(this._modeService.triggerMode(t),this._embeddedModes[t]=!0),t},e}();t.MonarchTokenizer=k,t.createTokenizationSupport=r}); ;/*!node_modules/monaco-editor/esm/vs/editor/standalone/browser/colorizer.js*/ define("node_modules/monaco-editor/esm/vs/editor/standalone/browser/colorizer",function(e,n){"use strict";function o(e,n,o){return new Promise(function(i,r){var a=function(){var s=t(e,n,o);if(o instanceof l.MonarchTokenizer){var d=o.getLoadStatus();if(d.loaded===!1)return void d.promise.then(a,r)}i(s)};a()})}function i(e,n){var o=[],i=16793600,t=new Uint32Array(2);t[0]=0,t[1]=i;for(var r=0,a=e.length;a>r;r++){var s=e[r];t[0]=s.length;var c=new d.LineTokens(t,s),l=u.ViewLineRenderingData.isBasicASCII(s,!0),v=u.ViewLineRenderingData.containsRTL(s,l,!0),f=m.renderViewLine2(new m.RenderLineInput(!1,!0,s,!1,l,v,0,c,[],n,0,-1,"none",!1,!1));o=o.concat(f.html),o.push("
")}return o.join("")}function t(e,n,o){for(var i=[],t=o.getInitialState(),r=0,a=e.length;a>r;r++){var s=e[r],c=o.tokenize2(s,t,0);d.LineTokens.convertToEndOffset(c.tokens,s.length);var l=new d.LineTokens(c.tokens,s),v=u.ViewLineRenderingData.isBasicASCII(s,!0),f=u.ViewLineRenderingData.containsRTL(s,v,!0),g=m.renderViewLine2(new m.RenderLineInput(!1,!0,s,!1,v,f,0,l.inflate(),[],n,0,-1,"none",!1,!1));i=i.concat(g.html),i.push("
"),t=c.endState}return i.join("")}Object.defineProperty(n,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),a=e("node_modules/monaco-editor/esm/vs/base/common/async"),s=r.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/strings")),d=e("node_modules/monaco-editor/esm/vs/editor/common/core/lineTokens"),c=e("node_modules/monaco-editor/esm/vs/editor/common/modes"),m=e("node_modules/monaco-editor/esm/vs/editor/common/viewLayout/viewLineRenderer"),u=e("node_modules/monaco-editor/esm/vs/editor/common/viewModel/viewModel"),l=e("node_modules/monaco-editor/esm/vs/editor/standalone/common/monarch/monarchLexer"),v=function(){function e(){}return e.colorizeElement=function(e,n,o,i){i=i||{};var t=i.theme||"vs",r=i.mimeType||o.getAttribute("lang")||o.getAttribute("data-lang");if(!r)return console.error("Mode not detected"),Promise.resolve();e.setTheme(t);var a=o.firstChild?o.firstChild.nodeValue:"";o.className+=" "+t;var s=function(e){o.innerHTML=e};return this.colorize(n,a||"",r,i).then(s,function(e){return console.error(e)})},e.colorize=function(e,n,t,r){var d=4;r&&"number"==typeof r.tabSize&&(d=r.tabSize),s.startsWithUTF8BOM(n)&&(n=n.substr(1));var m=n.split(/\r\n|\r|\n/),u=e.getModeId(t);if(!u)return Promise.resolve(i(m,d));e.triggerMode(u);var l=c.TokenizationRegistry.get(u);if(l)return o(m,d,l);var v=c.TokenizationRegistry.getPromise(u);return new Promise(v?function(e,n){v.then(function(i){o(m,d,i).then(e,n)},n)}:function(e,n){var t=null,r=null,s=function(){t&&(t.dispose(),t=null),r&&(r.dispose(),r=null);var a=c.TokenizationRegistry.get(u);return a?void o(m,d,a).then(e,n):void e(i(m,d))};r=new a.TimeoutTimer,r.cancelAndSet(s,500),t=c.TokenizationRegistry.onDidChange(function(e){e.changedLanguages.indexOf(u)>=0&&s()})})},e.colorizeLine=function(e,n,o,i,t){void 0===t&&(t=4);var r=u.ViewLineRenderingData.isBasicASCII(e,n),a=u.ViewLineRenderingData.containsRTL(e,r,o),s=m.renderViewLine2(new m.RenderLineInput(!1,!0,e,!1,r,a,0,i,[],t,0,-1,"none",!1,!1));return s.html},e.colorizeModelLine=function(e,n,o){void 0===o&&(o=4);var i=e.getLineContent(n);e.forceTokenization(n);var t=e.getLineTokens(n),r=t.inflate();return this.colorizeLine(i,e.mightContainNonBasicASCII(),e.mightContainRTL(),r,o)},e}();n.Colorizer=v}); ;/*!node_modules/monaco-editor/esm/vs/base/common/severity.js*/ define("node_modules/monaco-editor/esm/vs/base/common/severity",function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var r,n=e("node_modules/tslib/tslib"),a=n.__importStar(e("node_modules/monaco-editor/esm/vs/nls")),s=n.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/strings"));!function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(r||(r={})),function(e){function o(o){return o?s.equalsIgnoreCase(r,o)?e.Error:s.equalsIgnoreCase(n,o)||s.equalsIgnoreCase(i,o)?e.Warning:s.equalsIgnoreCase(l,o)?e.Info:e.Ignore:e.Ignore}var r="error",n="warning",i="warn",l="info",t=Object.create(null);t[e.Error]=a.localize("sev.error","Error"),t[e.Warning]=a.localize("sev.warning","Warning"),t[e.Info]=a.localize("sev.info","Info"),e.fromValue=o}(r||(r={})),o.default=r}); ;/*!node_modules/monaco-editor/esm/vs/editor/browser/editorBrowser.js*/ define("node_modules/monaco-editor/esm/vs/editor/browser/editorBrowser",function(o,e){"use strict";function t(o){return o&&"function"==typeof o.getEditorType?o.getEditorType()===d.EditorType.ICodeEditor:!1}Object.defineProperty(e,"__esModule",{value:!0});var r=o("node_modules/tslib/tslib"),d=r.__importStar(o("node_modules/monaco-editor/esm/vs/editor/common/editorCommon"));e.isCodeEditor=t}); ;/*!node_modules/monaco-editor/esm/vs/platform/registry/common/platform.js*/ define("node_modules/monaco-editor/esm/vs/platform/registry/common/platform",function(t,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var e=t("node_modules/tslib/tslib"),s=e.__importStar(t("node_modules/monaco-editor/esm/vs/base/common/types")),n=e.__importStar(t("node_modules/monaco-editor/esm/vs/base/common/assert")),i=function(){function t(){this.data={}}return t.prototype.add=function(t,o){n.ok(s.isString(t)),n.ok(s.isObject(o)),n.ok(!this.data.hasOwnProperty(t),"There is already an extension with this id"),this.data[t]=o},t.prototype.as=function(t){return this.data[t]||null},t}();o.Registry=new i}); ;/*!node_modules/monaco-editor/esm/vs/platform/jsonschemas/common/jsonContributionRegistry.js*/ define("node_modules/monaco-editor/esm/vs/platform/jsonschemas/common/jsonContributionRegistry",function(e,n){"use strict";function o(e){return e.length>0&&"#"===e.charAt(e.length-1)?e.substring(0,e.length-1):e}Object.defineProperty(n,"__esModule",{value:!0});var t=e("node_modules/tslib/tslib"),i=t.__importStar(e("node_modules/monaco-editor/esm/vs/platform/registry/common/platform")),s=e("node_modules/monaco-editor/esm/vs/base/common/event");n.Extensions={JSONContribution:"base.contributions.json"};var r=function(){function e(){this._onDidChangeSchema=new s.Emitter,this.schemasById={}}return e.prototype.registerSchema=function(e,n){this.schemasById[o(e)]=n,this._onDidChangeSchema.fire(e)},e.prototype.notifySchemaChanged=function(e){this._onDidChangeSchema.fire(e)},e}(),m=new r;i.Registry.add(n.Extensions.JSONContribution,m)}); ;/*!node_modules/monaco-editor/esm/vs/platform/configuration/common/configurationRegistry.js*/ define("node_modules/monaco-editor/esm/vs/platform/configuration/common/configurationRegistry",function(e,t){"use strict";function r(e){var t=Array.isArray(e)?e[0]:e;switch(t){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}function i(e){return t.OVERRIDE_PROPERTY_PATTERN.test(e)?n.localize("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==v.getConfigurationProperties()[e]?n.localize("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):null}Object.defineProperty(t,"__esModule",{value:!0});var o=e("node_modules/tslib/tslib"),n=o.__importStar(e("node_modules/monaco-editor/esm/vs/nls")),s=e("node_modules/monaco-editor/esm/vs/base/common/event"),a=e("node_modules/monaco-editor/esm/vs/platform/registry/common/platform"),p=o.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/types")),d=o.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/strings")),u=e("node_modules/monaco-editor/esm/vs/platform/jsonschemas/common/jsonContributionRegistry");t.Extensions={Configuration:"base.contributions.configuration"},t.allSettings={properties:{},patternProperties:{}},t.applicationSettings={properties:{},patternProperties:{}},t.machineSettings={properties:{},patternProperties:{}},t.windowSettings={properties:{},patternProperties:{}},t.resourceSettings={properties:{},patternProperties:{}},t.editorConfigurationSchemaId="vscode://schemas/settings/editor";var c=a.Registry.as(u.Extensions.JSONContribution),g=function(){function e(){this.overrideIdentifiers=[],this._onDidSchemaChange=new s.Emitter,this._onDidUpdateConfiguration=new s.Emitter,this.defaultOverridesConfigurationNode={id:"defaultOverrides",title:n.localize("defaultConfigurations.title","Default Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultOverridesConfigurationNode],this.editorConfigurationSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting"},this.configurationProperties={},this.excludedConfigurationProperties={},this.computeOverridePropertyPattern(),c.registerSchema(t.editorConfigurationSchemaId,this.editorConfigurationSchema)}return e.prototype.registerConfiguration=function(e,t){void 0===t&&(t=!0),this.registerConfigurations([e],t)},e.prototype.registerConfigurations=function(e,t){var r=this;void 0===t&&(t=!0);var i=[];e.forEach(function(e){i.push.apply(i,r.validateAndRegisterProperties(e,t)),r.configurationContributors.push(e),r.registerJSONConfiguration(e),r.updateSchemaForOverrideSettingsConfiguration(e)}),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire(i)},e.prototype.registerOverrideIdentifiers=function(e){var t;(t=this.overrideIdentifiers).push.apply(t,e),this.updateOverridePropertyPatternKey()},e.prototype.validateAndRegisterProperties=function(e,o,n,s){void 0===o&&(o=!0),void 0===n&&(n=3),void 0===s&&(s=!1),n=p.isUndefinedOrNull(e.scope)?n:e.scope,s=e.overridable||s;var a=[],d=e.properties;if(d)for(var u in d){var c=void 0;if(o&&(c=i(u)))console.warn(c),delete d[u];else{var g=d[u],f=g.default;p.isUndefined(f)&&(g.default=r(g.type)),s&&(g.overridable=!0),g.scope=t.OVERRIDE_PROPERTY_PATTERN.test(u)?void 0:p.isUndefinedOrNull(g.scope)?n:g.scope,!d[u].hasOwnProperty("included")||d[u].included?(this.configurationProperties[u]=d[u],a.push(u)):(this.excludedConfigurationProperties[u]=d[u],delete d[u])}}var l=e.allOf;if(l)for(var h=0,v=l;h console.log` because `log` has been completed recently."),l.localize("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],"default":"recentlyUsed",description:l.localize("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")},"editor.suggestFontSize":{type:"integer","default":0,minimum:0,markdownDescription:l.localize("suggestFontSize","Font size for the suggest widget. When set to `0`, the value of `#editor.fontSize#` is used.")},"editor.suggestLineHeight":{type:"integer","default":0,minimum:0,markdownDescription:l.localize("suggestLineHeight","Line height for the suggest widget. When set to `0`, the value of `#editor.lineHeight#` is used.")},"editor.tabCompletion":{type:"string","default":"off","enum":["on","off","onlySnippets"],enumDescriptions:[l.localize("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),l.localize("tabCompletion.off","Disable tab completions."),l.localize("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:l.localize("tabCompletion","Enables tab completions.")},"editor.suggest.filterGraceful":{type:"boolean","default":!0,description:l.localize("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean","default":!1,description:l.localize("suggest.localityBonus","Controls whether sorting favours words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean","default":!1,markdownDescription:l.localize("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean","default":!0,description:l.localize("suggest.snippetsPreventQuickSuggestions","Control whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean","default":w.contribInfo.suggest.showIcons,description:l.localize("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.maxVisibleSuggestions":{type:"number","default":w.contribInfo.suggest.maxVisibleSuggestions,minimum:1,maximum:15,description:l.localize("suggest.maxVisibleSuggestions","Controls how many suggestions IntelliSense will show before showing a scrollbar (maximum 15).")},"editor.suggest.filteredTypes":{type:"object","default":{keyword:!0},markdownDescription:l.localize("suggest.filtered","Controls whether some suggestion types should be filtered from IntelliSense. A list of suggestion types can be found here: https://code.visualstudio.com/docs/editor/intellisense#_types-of-completions."),properties:{method:{type:"boolean","default":!0,markdownDescription:l.localize("suggest.filtered.method","When set to `false` IntelliSense never shows `method` suggestions.")},"function":{type:"boolean","default":!0,markdownDescription:l.localize("suggest.filtered.function","When set to `false` IntelliSense never shows `function` suggestions.")},constructor:{type:"boolean","default":!0,markdownDescription:l.localize("suggest.filtered.constructor","When set to `false` IntelliSense never shows `constructor` suggestions.")},field:{type:"boolean","default":!0,markdownDescription:l.localize("suggest.filtered.field","When set to `false` IntelliSense never shows `field` suggestions.")},variable:{type:"boolean","default":!0,markdownDescription:l.localize("suggest.filtered.variable","When set to `false` IntelliSense never shows `variable` suggestions.")},"class":{type:"boolean","default":!0,markdownDescription:l.localize("suggest.filtered.class","When set to `false` IntelliSense never shows `class` suggestions.")},struct:{type:"boolean","default":!0,markdownDescription:l.localize("suggest.filtered.struct","When set to `false` IntelliSense never shows `struct` suggestions.")},"interface":{type:"boolean","default":!0,markdownDescription:l.localize("suggest.filtered.interface","When set to `false` IntelliSense never shows `interface` suggestions.")},module:{type:"boolean","default":!0,markdownDescription:l.localize("suggest.filtered.module","When set to `false` IntelliSense never shows `module` suggestions.")},property:{type:"boolean","default":!0,markdownDescription:l.localize("suggest.filtered.property","When set to `false` IntelliSense never shows `property` suggestions.")},event:{type:"boolean","default":!0,markdownDescription:l.localize("suggest.filtered.event","When set to `false` IntelliSense never shows `event` suggestions.")},operator:{type:"boolean","default":!0,markdownDescription:l.localize("suggest.filtered.operator","When set to `false` IntelliSense never shows `operator` suggestions.")},unit:{type:"boolean","default":!0,markdownDescription:l.localize("suggest.filtered.unit","When set to `false` IntelliSense never shows `unit` suggestions.")},value:{type:"boolean","default":!0,markdownDescription:l.localize("suggest.filtered.value","When set to `false` IntelliSense never shows `value` suggestions.")},constant:{type:"boolean","default":!0,markdownDescription:l.localize("suggest.filtered.constant","When set to `false` IntelliSense never shows `constant` suggestions.")},"enum":{type:"boolean","default":!0,markdownDescription:l.localize("suggest.filtered.enum","When set to `false` IntelliSense never shows `enum` suggestions.")},enumMember:{type:"boolean","default":!0,markdownDescription:l.localize("suggest.filtered.enumMember","When set to `false` IntelliSense never shows `enumMember` suggestions.")},keyword:{type:"boolean","default":!0,markdownDescription:l.localize("suggest.filtered.keyword","When set to `false` IntelliSense never shows `keyword` suggestions.")},text:{type:"boolean","default":!0,markdownDescription:l.localize("suggest.filtered.text","When set to `false` IntelliSense never shows `text` suggestions.")},color:{type:"boolean","default":!0,markdownDescription:l.localize("suggest.filtered.color","When set to `false` IntelliSense never shows `color` suggestions.")},file:{type:"boolean","default":!0,markdownDescription:l.localize("suggest.filtered.file","When set to `false` IntelliSense never shows `file` suggestions.")},reference:{type:"boolean","default":!0,markdownDescription:l.localize("suggest.filtered.reference","When set to `false` IntelliSense never shows `reference` suggestions.")},customcolor:{type:"boolean","default":!0,markdownDescription:l.localize("suggest.filtered.customcolor","When set to `false` IntelliSense never shows `customcolor` suggestions.")},folder:{type:"boolean","default":!0,markdownDescription:l.localize("suggest.filtered.folder","When set to `false` IntelliSense never shows `folder` suggestions.")},typeParameter:{type:"boolean","default":!0,markdownDescription:l.localize("suggest.filtered.typeParameter","When set to `false` IntelliSense never shows `typeParameter` suggestions.")},snippet:{type:"boolean","default":!0,markdownDescription:l.localize("suggest.filtered.snippet","When set to `false` IntelliSense never shows `snippet` suggestions.")}}},"editor.gotoLocation.multiple":{description:l.localize("editor.gotoLocation.multiple","Controls the behavior of 'Go To' commands, like Go To Definition, when multiple target locations exist."),type:"string","enum":["peek","gotoAndPeek","goto"],"default":w.contribInfo.gotoLocation.multiple,enumDescriptions:[l.localize("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),l.localize("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),l.localize("editor.gotoLocation.multiple.goto","Go to the primary result and ignore others")]},"editor.selectionHighlight":{type:"boolean","default":w.contribInfo.selectionHighlight,description:l.localize("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")},"editor.occurrencesHighlight":{type:"boolean","default":w.contribInfo.occurrencesHighlight,description:l.localize("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")},"editor.overviewRulerLanes":{type:"integer","default":3,description:l.localize("overviewRulerLanes","Controls the number of decorations that can show up at the same position in the overview ruler.")},"editor.overviewRulerBorder":{type:"boolean","default":w.viewInfo.overviewRulerBorder,description:l.localize("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")},"editor.cursorBlinking":{type:"string","enum":["blink","smooth","phase","expand","solid"],"default":p.blinkingStyleToString(w.viewInfo.cursorBlinking),description:l.localize("cursorBlinking","Control the cursor animation style.")},"editor.mouseWheelZoom":{type:"boolean","default":w.viewInfo.mouseWheelZoom,markdownDescription:l.localize("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")},"editor.cursorSmoothCaretAnimation":{type:"boolean","default":w.viewInfo.cursorSmoothCaretAnimation,description:l.localize("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")},"editor.cursorStyle":{type:"string","enum":["block","block-outline","line","line-thin","underline","underline-thin"],"default":p.cursorStyleToString(w.viewInfo.cursorStyle),description:l.localize("cursorStyle","Controls the cursor style.")},"editor.cursorWidth":{type:"integer","default":w.viewInfo.cursorWidth,markdownDescription:l.localize("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")},"editor.fontLigatures":{type:"boolean","default":w.viewInfo.fontLigatures,description:l.localize("fontLigatures","Enables/Disables font ligatures.")},"editor.hideCursorInOverviewRuler":{type:"boolean","default":w.viewInfo.hideCursorInOverviewRuler,description:l.localize("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")},"editor.renderWhitespace":{type:"string","enum":["none","boundary","all"],enumDescriptions:["",l.localize("renderWhiteSpace.boundary","Render whitespace characters except for single spaces between words."),""],"default":w.viewInfo.renderWhitespace,description:l.localize("renderWhitespace","Controls how the editor should render whitespace characters.")},"editor.renderControlCharacters":{type:"boolean","default":w.viewInfo.renderControlCharacters,description:l.localize("renderControlCharacters","Controls whether the editor should render control characters.")},"editor.renderIndentGuides":{type:"boolean","default":w.viewInfo.renderIndentGuides,description:l.localize("renderIndentGuides","Controls whether the editor should render indent guides.")},"editor.highlightActiveIndentGuide":{type:"boolean","default":w.viewInfo.highlightActiveIndentGuide,description:l.localize("highlightActiveIndentGuide","Controls whether the editor should highlight the active indent guide.")},"editor.renderLineHighlight":{type:"string","enum":["none","gutter","line","all"],enumDescriptions:["","","",l.localize("renderLineHighlight.all","Highlights both the gutter and the current line.")],"default":w.viewInfo.renderLineHighlight,description:l.localize("renderLineHighlight","Controls how the editor should render the current line highlight.")},"editor.codeLens":{type:"boolean","default":w.contribInfo.codeLens,description:l.localize("codeLens","Controls whether the editor shows CodeLens.")},"editor.folding":{type:"boolean","default":w.contribInfo.folding,description:l.localize("folding","Controls whether the editor has code folding enabled.")},"editor.foldingStrategy":{type:"string","enum":["auto","indentation"],"default":w.contribInfo.foldingStrategy,markdownDescription:l.localize("foldingStrategy","Controls the strategy for computing folding ranges. `auto` uses a language specific folding strategy, if available. `indentation` uses the indentation based folding strategy.")},"editor.showFoldingControls":{type:"string","enum":["always","mouseover"],"default":w.contribInfo.showFoldingControls,description:l.localize("showFoldingControls","Controls whether the fold controls on the gutter are automatically hidden.")},"editor.matchBrackets":{type:"boolean","default":w.contribInfo.matchBrackets,description:l.localize("matchBrackets","Highlight matching brackets when one of them is selected.")},"editor.glyphMargin":{type:"boolean","default":w.viewInfo.glyphMargin,description:l.localize("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")},"editor.useTabStops":{type:"boolean","default":w.useTabStops,description:l.localize("useTabStops","Inserting and deleting whitespace follows tab stops.")},"editor.trimAutoWhitespace":{type:"boolean","default":y.trimAutoWhitespace,description:l.localize("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.stablePeek":{type:"boolean","default":!1,markdownDescription:l.localize("stablePeek","Keep peek editors open even when double clicking their content or when hitting `Escape`.")},"editor.dragAndDrop":{type:"boolean","default":w.dragAndDrop,description:l.localize("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")},"editor.accessibilitySupport":{type:"string","enum":["auto","on","off"],enumDescriptions:[l.localize("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),l.localize("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader."),l.localize("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],"default":w.accessibilitySupport,description:l.localize("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers.")},"editor.showUnused":{type:"boolean","default":w.showUnused,description:l.localize("showUnused","Controls fading out of unused code.")},"editor.links":{type:"boolean","default":w.contribInfo.links,description:l.localize("links","Controls whether the editor should detect links and make them clickable.")},"editor.colorDecorators":{type:"boolean","default":w.contribInfo.colorDecorators,description:l.localize("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")},"editor.lightbulb.enabled":{type:"boolean","default":w.contribInfo.lightbulbEnabled,description:l.localize("codeActions","Enables the code action lightbulb in the editor.")},"editor.maxTokenizationLineLength":{type:"integer","default":2e4,description:l.localize("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"editor.codeActionsOnSave":{type:"object",properties:{"source.organizeImports":{type:"boolean",description:l.localize("codeActionsOnSave.organizeImports","Controls whether organize imports action should be run on file save.")},"source.fixAll":{type:"boolean",description:l.localize("codeActionsOnSave.fixAll","Controls whether auto fix action should be run on file save.")}},additionalProperties:{type:"boolean"},"default":w.contribInfo.codeActionsOnSave,description:l.localize("codeActionsOnSave","Code action kinds to be run on save.")},"editor.codeActionsOnSaveTimeout":{type:"number","default":w.contribInfo.codeActionsOnSaveTimeout,description:l.localize("codeActionsOnSaveTimeout","Timeout in milliseconds after which the code actions that are run on save are cancelled.")},"editor.selectionClipboard":{type:"boolean","default":w.contribInfo.selectionClipboard,description:l.localize("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:u.isLinux},"diffEditor.renderSideBySide":{type:"boolean","default":!0,description:l.localize("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean","default":!0,description:l.localize("ignoreTrimWhitespace","Controls whether the diff editor shows changes in leading or trailing whitespace as diffs.")},"editor.largeFileOptimizations":{type:"boolean","default":y.largeFileOptimizations,description:l.localize("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"diffEditor.renderIndicators":{type:"boolean","default":!0,description:l.localize("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")}}},I=null; t.isEditorConfigurationKey=i,t.isDiffEditorConfigurationKey=n,S.registerConfiguration(C)}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/core/editOperation.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/core/editOperation",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("node_modules/monaco-editor/esm/vs/editor/common/core/range"),o=function(){function e(){}return e.insert=function(e,n){return{range:new r.Range(e.lineNumber,e.column,e.lineNumber,e.column),text:n,forceMoveMarkers:!0}},e.delete=function(e){return{range:e,text:null}},e.replace=function(e,n){return{range:e,text:n}},e.replaceMove=function(e,n){return{range:e,text:n,forceMoveMarkers:!0}},e}();n.EditOperation=o}); ;/*!node_modules/monaco-editor/esm/vs/platform/configuration/common/configuration.js*/ define("node_modules/monaco-editor/esm/vs/platform/configuration/common/configuration",function(e,n){"use strict";function t(e,n){var t=Object.create(null);for(var r in e)o(t,r,e[r],n);return t}function o(e,n,t,o){for(var r=n.split("."),i=r.pop(),a=e,u=0;ut;t++)0===e.indexOf(this.keys[t])&&(o=t);this.keys.splice(o,1,e)},e.prototype.removeKey=function(e){var o=this.keys.indexOf(e);return-1!==o?(this.keys.splice(o,1),!0):!1},e}();o.ConfigurationModel=d;var c=function(e){function o(){for(var o=this,t=f.getDefaultValues(),r=f.getConfigurationKeys(),i=[],n=0,s=Object.keys(t);n5e3&&o._leaveChordMode()):void o._leaveChordMode()},500)},t.prototype._leaveChordMode=function(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null},t.prototype._dispatch=function(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t)},t.prototype._doDispatch=function(e,t){var o=this,r=!1;if(e.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),!1;var i=e.getDispatchParts()[0];if(null===i)return r;var s=this._contextKeyService.getContext(t),c=this._currentChord?this._currentChord.keypress:null,d=e.getLabel(),a=this._getResolver().resolve(s,c,i);return a&&a.enterChord?(r=!0,this._enterChordMode(i,d),r):(this._statusService&&this._currentChord&&(a&&a.commandId||(this._statusService.setStatusMessage(n.localize("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,d),1e4),r=!0)),this._leaveChordMode(),a&&a.commandId&&(a.bubble||(r=!0),"undefined"==typeof a.commandArgs?this._commandService.executeCommand(a.commandId).then(void 0,function(e){return o._notificationService.warn(e)}):this._commandService.executeCommand(a.commandId,a.commandArgs).then(void 0,function(e){return o._notificationService.warn(e)}),this._telemetryService.publicLog("workbenchActionExecuted",{id:a.commandId,from:"keybinding"})),r)},t.prototype.mightProducePrintableCharacter=function(e){return e.ctrlKey||e.metaKey?!1:e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30?!0:!1},t}(c.Disposable);t.AbstractKeybindingService=a}); ;/*!node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js*/ define("node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey",function(e,t){"use strict";function r(e,t){var r=e.getType(),n=t.getType();if(r!==n)return r-n;switch(r){case 1:return e.cmp(t);case 2:return e.cmp(t);case 3:return e.cmp(t);case 4:return e.cmp(t);case 6:return e.cmp(t);default:throw new Error("Unknown ContextKeyExpr!")}}Object.defineProperty(t,"__esModule",{value:!0});var n=this&&this.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),o=e("node_modules/monaco-editor/esm/vs/base/common/strings"),i=e("node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation"),u=function(){function e(){}return e.has=function(e){return new s(e)},e.equals=function(e,t){return new a(e,t)},e.regex=function(e,t){return new y(e,t)},e.not=function(e){return new c(e)},e.and=function(){for(var e=[],t=0;t=0){var r=e.split("!=");return new p(r[0].trim(),this._deserializeValue(r[1],t))}if(e.indexOf("==")>=0){var r=e.split("==");return new a(r[0].trim(),this._deserializeValue(r[1],t))}if(e.indexOf("=~")>=0){var r=e.split("=~");return new y(r[0].trim(),this._deserializeRegexValue(r[1],t))}return/^\!\s*/.test(e)?new c(e.substr(1).trim()):new s(e)},e._deserializeValue=function(e){if(e=e.trim(),"true"===e)return!0;if("false"===e)return!1;var t=/^'([^']*)'$/.exec(e);return t?t[1].trim():e},e._deserializeRegexValue=function(e,t){if(o.isFalsyOrWhitespace(e)){if(t)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var r=e.indexOf("/"),n=e.lastIndexOf("/");if(r===n||0>r){if(t)throw new Error("bad regexp-value '"+e+"', missing /-enclosure");return console.warn("bad regexp-value '"+e+"', missing /-enclosure"),null}var i=e.slice(r+1,n),u="i"===e[n+1]?"i":"";try{return new RegExp(i,u)}catch(s){if(t)throw new Error("bad regexp-value '"+e+"', parse error: "+s);return console.warn("bad regexp-value '"+e+"', parse error: "+s),null}},e}();t.ContextKeyExpr=u;var s=function(){function e(e){this.key=e}return e.prototype.getType=function(){return 1},e.prototype.cmp=function(e){return this.keye.key?1:0},e.prototype.equals=function(t){return t instanceof e?this.key===t.key:!1},e.prototype.evaluate=function(e){return!!e.getValue(this.key)},e.prototype.normalize=function(){return this},e.prototype.keys=function(){return[this.key]},e}();t.ContextKeyDefinedExpr=s;var a=function(){function e(e,t){this.key=e,this.value=t}return e.prototype.getType=function(){return 3},e.prototype.cmp=function(e){return this.keye.key?1:this.valuee.value?1:0},e.prototype.equals=function(t){return t instanceof e?this.key===t.key&&this.value===t.value:!1},e.prototype.evaluate=function(e){return e.getValue(this.key)==this.value},e.prototype.normalize=function(){return"boolean"==typeof this.value?this.value?new s(this.key):new c(this.key):this},e.prototype.keys=function(){return[this.key]},e}();t.ContextKeyEqualsExpr=a;var p=function(){function e(e,t){this.key=e,this.value=t}return e.prototype.getType=function(){return 4},e.prototype.cmp=function(e){return this.keye.key?1:this.valuee.value?1:0},e.prototype.equals=function(t){return t instanceof e?this.key===t.key&&this.value===t.value:!1},e.prototype.evaluate=function(e){return e.getValue(this.key)!=this.value},e.prototype.normalize=function(){return"boolean"==typeof this.value?this.value?new c(this.key):new s(this.key):this},e.prototype.keys=function(){return[this.key]},e}();t.ContextKeyNotEqualsExpr=p;var c=function(){function e(e){this.key=e}return e.prototype.getType=function(){return 2},e.prototype.cmp=function(e){return this.keye.key?1:0},e.prototype.equals=function(t){return t instanceof e?this.key===t.key:!1},e.prototype.evaluate=function(e){return!e.getValue(this.key)},e.prototype.normalize=function(){return this},e.prototype.keys=function(){return[this.key]},e}();t.ContextKeyNotExpr=c;var y=function(){function e(e,t){this.key=e,this.regexp=t}return e.prototype.getType=function(){return 6},e.prototype.cmp=function(e){if(this.keye.key)return 1;var t=this.regexp?this.regexp.source:"",r=e.regexp?e.regexp.source:"";return r>t?-1:t>r?1:0},e.prototype.equals=function(t){if(t instanceof e){var r=this.regexp?this.regexp.source:"",n=t.regexp?t.regexp.source:"";return this.key===t.key&&r===n}return!1},e.prototype.evaluate=function(e){var t=e.getValue(this.key);return this.regexp?this.regexp.test(t):!1},e.prototype.normalize=function(){return this},e.prototype.keys=function(){return[this.key]},e}();t.ContextKeyRegexExpr=y;var f=function(){function e(t){this.expr=e._normalizeArr(t)}return e.prototype.getType=function(){return 5},e.prototype.equals=function(t){if(t instanceof e){if(this.expr.length!==t.expr.length)return!1;for(var r=0,n=this.expr.length;n>r;r++)if(!this.expr[r].equals(t.expr[r]))return!1;return!0}return!1},e.prototype.evaluate=function(e){for(var t=0,r=this.expr.length;r>t;t++)if(!this.expr[t].evaluate(e))return!1;return!0},e._normalizeArr=function(t){var n=[];if(t){for(var o=0,i=t.length;i>o;o++){var u=t[o];u&&(u=u.normalize(),u&&(u instanceof e?n=n.concat(u.expr):n.push(u)))}n.sort(r)}return n},e.prototype.normalize=function(){return 0===this.expr.length?void 0:1===this.expr.length?this.expr[0]:this},e.prototype.keys=function(){for(var e=[],t=0,r=this.expr;tr;r++){var s=n[r].command;s&&this._defaultBoundCommands.set(s,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=e.combine(n,t);for(var r=0,o=this._keybindings.length;o>r;r++){var a=this._keybindings[r];0!==a.keypressParts.length&&this._addKeyPress(a.keypressParts[0],a)}}return e._isTargetedForRemoval=function(e,n,t,r,o){if(e.command!==r)return!1;if(n&&e.keypressParts[0]!==n)return!1;if(t&&e.keypressParts[1]!==t)return!1;if(o){if(!e.when)return!1;if(!o.equals(e.when))return!1}return!0},e.combine=function(e,n){e=e.slice(0);for(var t=[],r=0,o=n;r=0;l--)this._isTargetedForRemoval(e[l],i,u,a,d)&&e.splice(l,1);else t.push(s)}return e.concat(t)},e.prototype._addKeyPress=function(n,t){var r=this._map.get(n);if("undefined"==typeof r)return this._map.set(n,[t]),void this._addToLookupMap(t);for(var o=r.length-1;o>=0;o--){var s=r[o];if(s.command!==t.command){var a=s.keypressParts.length>1,i=t.keypressParts.length>1;a&&i&&s.keypressParts[1]!==t.keypressParts[1]||e.whenIsEntirelyIncluded(s.when,t.when)&&this._removeFromLookupMap(s)}}r.push(t),this._addToLookupMap(t)},e.prototype._addToLookupMap=function(e){if(e.command){var n=this._lookupMap.get(e.command);"undefined"==typeof n?(n=[e],this._lookupMap.set(e.command,n)):n.push(e)}},e.prototype._removeFromLookupMap=function(e){if(e.command){var n=this._lookupMap.get(e.command);if("undefined"!=typeof n)for(var t=0,r=n.length;r>t;t++)if(n[t]===e)return void n.splice(t,1)}},e.whenIsEntirelyIncluded=function(e,n){if(!n)return!0;if(!e)return!1;for(var r=e instanceof t.ContextKeyAndExpr?e.expr:[e],o=n instanceof t.ContextKeyAndExpr?n.expr:[n],s=0,a=0,i=o;as;s++){var i=o[s];i.keypressParts[1]===t&&r.push(i)}}else{var o=this._map.get(t);if("undefined"==typeof o)return null;r=o}var u=this._findCommand(e,r);return u?null===n&&u.keypressParts.length>1&&null!==u.keypressParts[1]?{enterChord:!0,commandId:null,commandArgs:null,bubble:!1}:{enterChord:!1,commandId:u.command,commandArgs:u.commandArgs,bubble:u.bubble}:null},e.prototype._findCommand=function(n,t){for(var r=t.length-1;r>=0;r--){var o=t[r];if(e.contextMatchesRules(n,o.when))return o}return null},e.contextMatchesRules=function(e,n){return n?n.evaluate(e):!0},e}();n.KeybindingResolver=r}); ;/*!node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybindingsRegistry.js*/ define("node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybindingsRegistry",function(e,n){"use strict";function i(e,n){return e.weight1!==n.weight1?e.weight1-n.weight1:e.commandn.command?1:e.weight2-n.weight2}Object.defineProperty(n,"__esModule",{value:!0});var t=e("node_modules/monaco-editor/esm/vs/base/common/keyCodes"),o=e("node_modules/monaco-editor/esm/vs/base/common/platform"),r=e("node_modules/monaco-editor/esm/vs/platform/commands/common/commands"),s=e("node_modules/monaco-editor/esm/vs/platform/registry/common/platform"),d=function(){function e(){this._coreKeybindings=[],this._extensionKeybindings=[],this._cachedMergedKeybindings=null}return e.bindToCurrentPlatform=function(e){if(1===o.OS){if(e&&e.win)return e.win}else if(2===o.OS){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e},e.prototype.registerKeybindingRule=function(n){var i=e.bindToCurrentPlatform(n);if(i&&i.primary){var r=t.createKeybinding(i.primary,o.OS);r&&this._registerDefaultKeybinding(r,n.id,void 0,n.weight,0,n.when)}if(i&&Array.isArray(i.secondary))for(var s=0,d=i.secondary.length;d>s;s++){var a=i.secondary[s],r=t.createKeybinding(a,o.OS);r&&this._registerDefaultKeybinding(r,n.id,void 0,n.weight,-s-1,n.when)}},e.prototype.registerCommandAndKeybindingRule=function(e){this.registerKeybindingRule(e),r.CommandsRegistry.registerCommand(e)},e._mightProduceChar=function(e){return e>=21&&30>=e?!0:e>=31&&56>=e?!0:80===e||81===e||82===e||83===e||84===e||85===e||86===e||110===e||111===e||87===e||88===e||89===e||90===e||91===e||92===e},e.prototype._assertNoCtrlAlt=function(n,i){n.ctrlKey&&n.altKey&&!n.metaKey&&e._mightProduceChar(n.keyCode)&&console.warn("Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: ",n," for ",i)},e.prototype._registerDefaultKeybinding=function(e,n,i,t,r,s){1===o.OS&&this._assertNoCtrlAlt(e.parts[0],n),this._coreKeybindings.push({keybinding:e,command:n,commandArgs:i,when:s,weight1:t,weight2:r}),this._cachedMergedKeybindings=null},e.prototype.getDefaultKeybindings=function(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=[].concat(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(i)),this._cachedMergedKeybindings.slice(0)},e}();n.KeybindingsRegistry=new d,n.Extensions={EditorModes:"platform.keybindingsRegistry"},s.Registry.add(n.Extensions.EditorModes,n.KeybindingsRegistry)}); ;/*!node_modules/monaco-editor/esm/vs/platform/keybinding/common/resolvedKeybindingItem.js*/ define("node_modules/monaco-editor/esm/vs/platform/keybinding/common/resolvedKeybindingItem",function(e,t){"use strict";function n(e){for(var t=[],n=0,s=e.length;s>n;n++){var i=e[n];if(!i)return t;t.push(i)}return t}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t,s,i,r){this.resolvedKeybinding=e,this.keypressParts=e?n(e.getDispatchParts()):[],this.bubble=t?94===t.charCodeAt(0):!1,this.command=this.bubble?t.substr(1):t,this.commandArgs=s,this.when=i,this.isDefault=r}return e}();t.ResolvedKeybindingItem=s,t.removeElementsAfterNulls=n}); ;/*!node_modules/monaco-editor/esm/vs/base/common/keybindingLabels.js*/ define("node_modules/monaco-editor/esm/vs/base/common/keybindingLabels",function(e,o){"use strict";function t(e,o,t){if(null===o)return"";var r=[];return e.ctrlKey&&r.push(t.ctrlKey),e.shiftKey&&r.push(t.shiftKey),e.altKey&&r.push(t.altKey),e.metaKey&&r.push(t.metaKey),r.push(o),r.join(t.separator)}Object.defineProperty(o,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),l=r.__importStar(e("node_modules/monaco-editor/esm/vs/nls")),i=function(){function e(e,o,t){void 0===t&&(t=o),this.modifierLabels=[null],this.modifierLabels[2]=e,this.modifierLabels[1]=o,this.modifierLabels[3]=t}return e.prototype.toLabel=function(e,o,r){if(0===o.length)return null;for(var l=[],i=0,h=o.length;h>i;i++){var n=o[i],y=r(n);if(null===y)return null;l[i]=t(n,y,this.modifierLabels[e])}return l.join(" ")},e}();o.ModifierLabelProvider=i,o.UILabelProvider=new i({ctrlKey:"⌃",shiftKey:"⇧",altKey:"⌥",metaKey:"⌘",separator:""},{ctrlKey:l.localize({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:l.localize({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:l.localize({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:l.localize({key:"windowsKey",comment:["This is the short form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:l.localize({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:l.localize({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:l.localize({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:l.localize({key:"superKey",comment:["This is the short form for the Super key on the keyboard"]},"Super"),separator:"+"}),o.AriaLabelProvider=new i({ctrlKey:l.localize({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:l.localize({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:l.localize({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:l.localize({key:"cmdKey.long",comment:["This is the long form for the Command key on the keyboard"]},"Command"),separator:"+"},{ctrlKey:l.localize({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:l.localize({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:l.localize({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:l.localize({key:"windowsKey.long",comment:["This is the long form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:l.localize({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:l.localize({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:l.localize({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:l.localize({key:"superKey.long",comment:["This is the long form for the Super key on the keyboard"]},"Super"),separator:"+"})}); ;/*!node_modules/monaco-editor/esm/vs/platform/keybinding/common/baseResolvedKeybinding.js*/ define("node_modules/monaco-editor/esm/vs/platform/keybinding/common/baseResolvedKeybinding",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=this&&this.__extends||function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),r=t("node_modules/monaco-editor/esm/vs/base/common/errors"),n=t("node_modules/monaco-editor/esm/vs/base/common/keybindingLabels"),i=t("node_modules/monaco-editor/esm/vs/base/common/keyCodes"),s=function(t){function e(e,o){var n=t.call(this)||this;if(0===o.length)throw r.illegalArgument("parts");return n._os=e,n._parts=o,n}return o(e,t),e.prototype.getLabel=function(){var t=this;return n.UILabelProvider.toLabel(this._os,this._parts,function(e){return t._getLabel(e)})},e.prototype.getAriaLabel=function(){var t=this;return n.AriaLabelProvider.toLabel(this._os,this._parts,function(e){return t._getAriaLabel(e)})},e.prototype.isChord=function(){return this._parts.length>1},e.prototype.getParts=function(){var t=this;return this._parts.map(function(e){return t._getPart(e)})},e.prototype._getPart=function(t){return new i.ResolvedKeybindingPart(t.ctrlKey,t.shiftKey,t.altKey,t.metaKey,this._getLabel(t),this._getAriaLabel(t))},e.prototype.getDispatchParts=function(){var t=this;return this._parts.map(function(e){return t._getDispatchPart(e)})},e}(i.ResolvedKeybinding);e.BaseResolvedKeybinding=s}); ;/*!node_modules/monaco-editor/esm/vs/platform/keybinding/common/usLayoutResolvedKeybinding.js*/ define("node_modules/monaco-editor/esm/vs/platform/keybinding/common/usLayoutResolvedKeybinding",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=this&&this.__extends||function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),n=e("node_modules/monaco-editor/esm/vs/base/common/keyCodes"),r=e("node_modules/monaco-editor/esm/vs/platform/keybinding/common/baseResolvedKeybinding"),i=function(e){function t(t,o){return e.call(this,o,t.parts)||this}return o(t,e),t.prototype._keyCodeToUILabel=function(e){if(2===this._os)switch(e){case 15:return"←";case 16:return"↑";case 17:return"→";case 18:return"↓"}return n.KeyCodeUtils.toString(e)},t.prototype._getLabel=function(e){return e.isDuplicateModifierCase()?"":this._keyCodeToUILabel(e.keyCode)},t.prototype._getAriaLabel=function(e){return e.isDuplicateModifierCase()?"":n.KeyCodeUtils.toString(e.keyCode)},t.prototype._getDispatchPart=function(e){return t.getDispatchStr(e)},t.getDispatchStr=function(e){if(e.isModifierKey())return null;var t="";return e.ctrlKey&&(t+="ctrl+"),e.shiftKey&&(t+="shift+"),e.altKey&&(t+="alt+"),e.metaKey&&(t+="meta+"),t+=n.KeyCodeUtils.toString(e.keyCode)},t}(r.BaseResolvedKeybinding);t.USLayoutResolvedKeybinding=i}); ;/*!node_modules/monaco-editor/esm/vs/platform/notification/common/notification.js*/ define("node_modules/monaco-editor/esm/vs/platform/notification/common/notification",function(o,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=o("node_modules/tslib/tslib"),i=t.__importDefault(o("node_modules/monaco-editor/esm/vs/base/common/severity")),n=o("node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation");e.Severity=i.default,e.INotificationService=n.createDecorator("notificationService");var a=function(){function o(){}return o}();e.NoOpNotification=a}); ;/*!node_modules/monaco-editor/esm/vs/platform/workspace/common/workspace.js*/ define("node_modules/monaco-editor/esm/vs/platform/workspace/common/workspace",function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var t=e("node_modules/tslib/tslib"),r=e("node_modules/monaco-editor/esm/vs/base/common/uri"),n=t.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/resources")),i=e("node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation"),s=e("node_modules/monaco-editor/esm/vs/base/common/map");o.IWorkspaceContextService=i.createDecorator("contextService"),function(e){function o(e){return e&&"object"==typeof e&&"string"==typeof e.id&&Array.isArray(e.folders)}e.isIWorkspace=o}(o.IWorkspace||(o.IWorkspace={})),function(e){function o(e){return e&&"object"==typeof e&&r.URI.isUri(e.uri)&&"string"==typeof e.name&&"function"==typeof e.toResource}e.isIWorkspaceFolder=o}(o.IWorkspaceFolder||(o.IWorkspaceFolder={}));var a=function(){function e(e,o,t){void 0===o&&(o=[]),void 0===t&&(t=null),this._id=e,this._configuration=t,this._foldersMap=s.TernarySearchTree.forPaths(),this.folders=o}return Object.defineProperty(e.prototype,"folders",{get:function(){return this._folders},set:function(e){this._folders=e,this.updateFoldersMap()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"configuration",{get:function(){return this._configuration},set:function(e){this._configuration=e},enumerable:!0,configurable:!0}),e.prototype.getFolder=function(e){return e?this._foldersMap.findSubstr(e.toString())||null:null},e.prototype.updateFoldersMap=function(){this._foldersMap=s.TernarySearchTree.forPaths();for(var e=0,o=this.folders;er?o:null===t?t=Object.getOwnPropertyDescriptor(o,n):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,o,n,t);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(3>r?i(s):r>3?i(o,n,s):i(o,n))||s);return r>3&&s&&Object.defineProperty(o,n,s),s},c=this&&this.__param||function(e,o){return function(n,t){o(n,t,e)}},d=r.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/strings")),u=r.__importStar(e("node_modules/monaco-editor/esm/vs/base/browser/dom")),m=e("node_modules/monaco-editor/esm/vs/base/browser/keyboardEvent"),f=e("node_modules/monaco-editor/esm/vs/base/common/event"),l=e("node_modules/monaco-editor/esm/vs/base/common/keyCodes"),p=e("node_modules/monaco-editor/esm/vs/base/common/lifecycle"),v=e("node_modules/monaco-editor/esm/vs/base/common/platform"),g=r.__importDefault(e("node_modules/monaco-editor/esm/vs/base/common/severity")),y=e("node_modules/monaco-editor/esm/vs/base/common/uri"),h=e("node_modules/monaco-editor/esm/vs/editor/browser/editorBrowser"),_=e("node_modules/monaco-editor/esm/vs/editor/common/config/commonEditorConfig"),b=e("node_modules/monaco-editor/esm/vs/editor/common/core/editOperation"),S=e("node_modules/monaco-editor/esm/vs/editor/common/core/position"),w=e("node_modules/monaco-editor/esm/vs/editor/common/core/range"),E=e("node_modules/monaco-editor/esm/vs/editor/common/modes"),C=e("node_modules/monaco-editor/esm/vs/platform/commands/common/commands"),K=e("node_modules/monaco-editor/esm/vs/platform/configuration/common/configuration"),R=e("node_modules/monaco-editor/esm/vs/platform/configuration/common/configurationModels"),k=e("node_modules/monaco-editor/esm/vs/platform/keybinding/common/abstractKeybindingService"),O=e("node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybindingResolver"),P=e("node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybindingsRegistry"),D=e("node_modules/monaco-editor/esm/vs/platform/keybinding/common/resolvedKeybindingItem"),M=e("node_modules/monaco-editor/esm/vs/platform/keybinding/common/usLayoutResolvedKeybinding"),j=e("node_modules/monaco-editor/esm/vs/platform/notification/common/notification"),I=e("node_modules/monaco-editor/esm/vs/platform/workspace/common/workspace"),L=e("node_modules/monaco-editor/esm/vs/editor/common/standaloneStrings"),x=function(){function e(e){this.model=e,this._onDispose=new f.Emitter}return Object.defineProperty(e.prototype,"textEditorModel",{get:function(){return this.model},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._onDispose.fire()},e}();o.SimpleModel=x;var N=function(){function e(){}return e.prototype.setEditor=function(e){this.editor=e},e.prototype.createModelReference=function(e){var o=this,t=n(this.editor,function(n){return o.findModel(n,e)},function(n){return o.findModel(n.getOriginalEditor(),e)||o.findModel(n.getModifiedEditor(),e)});return t?Promise.resolve(new p.ImmortalReference(new x(t))):Promise.reject(new Error("Model not found"))},e.prototype.findModel=function(e,o){var n=e.getModel();return n&&n.uri.toString()!==o.toString()?null:n},e}();o.SimpleEditorModelResolverService=N;var V=function(){function e(){}return e.prototype.showWhile=function(){return Promise.resolve(void 0)},e}();o.SimpleProgressService=V;var W=function(){function e(){}return e}();o.SimpleDialogService=W;var U=function(){function e(){}return e.prototype.info=function(e){return this.notify({severity:g.default.Info,message:e})},e.prototype.warn=function(e){return this.notify({severity:g.default.Warning,message:e})},e.prototype.error=function(e){return this.notify({severity:g.default.Error,message:e})},e.prototype.notify=function(o){switch(o.severity){case g.default.Error:console.error(o.message);break;case g.default.Warning:console.warn(o.message);break;default:console.log(o.message)}return e.NO_OP},e.NO_OP=new j.NoOpNotification,e}();o.SimpleNotificationService=U;var F=function(){function e(e){this._onWillExecuteCommand=new f.Emitter,this._instantiationService=e,this._dynamicCommands=Object.create(null)}return e.prototype.addCommand=function(e){var o=this,n=e.id;return this._dynamicCommands[n]=e,p.toDisposable(function(){delete o._dynamicCommands[n]})},e.prototype.executeCommand=function(e){for(var o=[],n=1;nr;r++){var a=this._requests[r],h=void 0;0===a.type&&(h=n),2===a.type&&(h=i),1===a.type&&(h=o),h.appendChild(document.createElement("br"));var f=document.createElement("span");t._render(f,a),h.appendChild(f),s[r]=f}this._container=e,this._testElements=s},t._render=function(t,e){if(" "===e.chr){for(var n=" ",i=0;8>i;i++)n+=n;t.innerHTML=n}else{for(var o=e.chr,i=0;8>i;i++)o+=o;t.textContent=o}},t.prototype._readFromDomElements=function(){for(var t=0,e=this._requests.length;e>t;t++){var n=this._requests[t],i=this._testElements[t];n.fulfill(i.offsetWidth/256)}},t}();e.readCharWidths=n}); ;/*!node_modules/monaco-editor/esm/vs/editor/browser/config/elementSizeObserver.js*/ define("node_modules/monaco-editor/esm/vs/editor/browser/config/elementSizeObserver",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),o=e("node_modules/monaco-editor/esm/vs/base/common/lifecycle"),r=function(e){function t(t,n){var o=e.call(this)||this;return o.referenceDomElement=t,o.changeCallback=n,o.measureReferenceDomElementToken=-1,o.width=-1,o.height=-1,o.measureReferenceDomElement(!1),o}return n(t,e),t.prototype.dispose=function(){this.stopObserving(),e.prototype.dispose.call(this)},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.startObserving=function(){var e=this;-1===this.measureReferenceDomElementToken&&(this.measureReferenceDomElementToken=setInterval(function(){return e.measureReferenceDomElement(!0)},100))},t.prototype.stopObserving=function(){-1!==this.measureReferenceDomElementToken&&(clearInterval(this.measureReferenceDomElementToken),this.measureReferenceDomElementToken=-1)},t.prototype.observe=function(e){this.measureReferenceDomElement(!0,e)},t.prototype.measureReferenceDomElement=function(e,t){var n=0,o=0;t?(n=t.width,o=t.height):this.referenceDomElement&&(n=this.referenceDomElement.clientWidth,o=this.referenceDomElement.clientHeight),n=Math.max(5,n),o=Math.max(5,o),(this.width!==n||this.height!==o)&&(this.width=n,this.height=o,e&&this.changeCallback())},t}(o.Disposable);t.ElementSizeObserver=r}); ;/*!node_modules/monaco-editor/esm/vs/editor/browser/config/configuration.js*/ define("node_modules/monaco-editor/esm/vs/editor/browser/config/configuration",function(e,t){"use strict";function i(){m.INSTANCE.clearCache()}Object.defineProperty(t,"__esModule",{value:!0});var o=e("node_modules/tslib/tslib"),n=this&&this.__extends||function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),r=o.__importStar(e("node_modules/monaco-editor/esm/vs/base/browser/browser")),s=e("node_modules/monaco-editor/esm/vs/base/common/event"),a=e("node_modules/monaco-editor/esm/vs/base/common/lifecycle"),c=o.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/platform")),h=e("node_modules/monaco-editor/esm/vs/editor/browser/config/charWidthReader"),u=e("node_modules/monaco-editor/esm/vs/editor/browser/config/elementSizeObserver"),d=e("node_modules/monaco-editor/esm/vs/editor/common/config/commonEditorConfig"),l=e("node_modules/monaco-editor/esm/vs/editor/common/config/fontInfo"),p=function(){function e(){this._keys=Object.create(null),this._values=Object.create(null)}return e.prototype.has=function(e){var t=e.getId();return!!this._values[t]},e.prototype.get=function(e){var t=e.getId();return this._values[t]},e.prototype.put=function(e,t){var i=e.getId();this._keys[i]=e,this._values[i]=t},e.prototype.remove=function(e){var t=e.getId();delete this._keys[t],delete this._values[t]},e.prototype.getValues=function(){var e=this;return Object.keys(this._keys).map(function(t){return e._values[t]})},e}();t.clearAllFontInfos=i;var m=function(e){function t(){var t=e.call(this)||this;return t._onDidChange=t._register(new s.Emitter),t.onDidChange=t._onDidChange.event,t._cache=new p,t._evictUntrustedReadingsTimeout=-1,t}return n(t,e),t.prototype.dispose=function(){-1!==this._evictUntrustedReadingsTimeout&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),e.prototype.dispose.call(this)},t.prototype.clearCache=function(){this._cache=new p,this._onDidChange.fire()},t.prototype._writeToCache=function(e,t){var i=this;this._cache.put(e,t),t.isTrusted||-1!==this._evictUntrustedReadingsTimeout||(this._evictUntrustedReadingsTimeout=setTimeout(function(){i._evictUntrustedReadingsTimeout=-1,i._evictUntrustedReadings()},5e3))},t.prototype._evictUntrustedReadings=function(){for(var e=this._cache.getValues(),t=!1,i=0,o=e.length;o>i;i++){var n=e[i];n.isTrusted||(t=!0,this._cache.remove(n))}t&&this._onDidChange.fire()},t.prototype.readConfiguration=function(e){if(!this._cache.has(e)){var i=t._actualReadConfiguration(e);(i.typicalHalfwidthCharacterWidth<=2||i.typicalFullwidthCharacterWidth<=2||i.spaceWidth<=2||i.maxDigitWidth<=2)&&(i=new l.FontInfo({zoomLevel:r.getZoomLevel(),fontFamily:i.fontFamily,fontWeight:i.fontWeight,fontSize:i.fontSize,lineHeight:i.lineHeight,letterSpacing:i.letterSpacing,isMonospace:i.isMonospace,typicalHalfwidthCharacterWidth:Math.max(i.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(i.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:i.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(i.spaceWidth,5),maxDigitWidth:Math.max(i.maxDigitWidth,5)},!1)),this._writeToCache(e,i)}return this._cache.get(e)},t.createRequest=function(e,t,i,o){var n=new h.CharWidthRequest(e,t);return i.push(n),o&&o.push(n),n},t._actualReadConfiguration=function(e){var t=[],i=[],o=this.createRequest("n",0,t,i),n=this.createRequest("m",0,t,null),s=this.createRequest(" ",0,t,i),a=this.createRequest("0",0,t,i),c=this.createRequest("1",0,t,i),u=this.createRequest("2",0,t,i),d=this.createRequest("3",0,t,i),p=this.createRequest("4",0,t,i),m=this.createRequest("5",0,t,i),f=this.createRequest("6",0,t,i),g=this.createRequest("7",0,t,i),_=this.createRequest("8",0,t,i),v=this.createRequest("9",0,t,i),y=this.createRequest("→",0,t,i),R=this.createRequest("→",0,t,null);this.createRequest("·",0,t,i),this.createRequest("|",0,t,i),this.createRequest("/",0,t,i),this.createRequest("-",0,t,i),this.createRequest("_",0,t,i),this.createRequest("i",0,t,i),this.createRequest("l",0,t,i),this.createRequest("m",0,t,i),this.createRequest("|",1,t,i),this.createRequest("_",1,t,i),this.createRequest("i",1,t,i),this.createRequest("l",1,t,i),this.createRequest("m",1,t,i),this.createRequest("n",1,t,i),this.createRequest("|",2,t,i),this.createRequest("_",2,t,i),this.createRequest("i",2,t,i),this.createRequest("l",2,t,i),this.createRequest("m",2,t,i),this.createRequest("n",2,t,i),h.readCharWidths(e,t);for(var w=Math.max(a.width,c.width,u.width,d.width,p.width,m.width,f.width,g.width,_.width,v.width),C=!0,S=i[0].width,b=1,q=i.length;q>b;b++){var W=S-i[b].width;if(-.001>W||W>.001){C=!1;break}}var F=!0;C&&R.width!==S&&(F=!1),R.width>y.width&&(F=!1);var O=r.getTimeSinceLastZoomLevelChanged()>2e3;return new l.FontInfo({zoomLevel:r.getZoomLevel(),fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:C,typicalHalfwidthCharacterWidth:o.width,typicalFullwidthCharacterWidth:n.width,canUseHalfwidthRightwardsArrow:F,spaceWidth:s.width,maxDigitWidth:w},O)},t.INSTANCE=new t,t}(a.Disposable),f=function(e){function t(t,i,o,n){void 0===o&&(o=null);var s=e.call(this,t,i)||this;return s.accessibilityService=n,s._elementSizeObserver=s._register(new u.ElementSizeObserver(o,function(){return s._onReferenceDomElementSizeChanged()})),s._register(m.INSTANCE.onDidChange(function(){return s._onCSSBasedConfigurationChanged()})),s._validatedOptions.automaticLayout&&s._elementSizeObserver.startObserving(),s._register(r.onDidChangeZoomLevel(function(){return s._recomputeOptions()})),s._register(s.accessibilityService.onDidChangeAccessibilitySupport(function(){return s._recomputeOptions()})),s._recomputeOptions(),s}return n(t,e),t.applyFontInfoSlow=function(e,t){e.style.fontFamily=t.getMassagedFontFamily(),e.style.fontWeight=t.fontWeight,e.style.fontSize=t.fontSize+"px",e.style.lineHeight=t.lineHeight+"px",e.style.letterSpacing=t.letterSpacing+"px"},t.applyFontInfo=function(e,t){e.setFontFamily(t.getMassagedFontFamily()),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing)},t.prototype._onReferenceDomElementSizeChanged=function(){this._recomputeOptions()},t.prototype._onCSSBasedConfigurationChanged=function(){this._recomputeOptions()},t.prototype.observeReferenceElement=function(e){this._elementSizeObserver.observe(e)},t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._getExtraEditorClassName=function(){var e="";return r.isSafari||r.isWebkitWebView||(e+="no-user-select "),c.isMacintosh&&(e+="mac "),e},t.prototype._getEnvConfiguration=function(){return{extraEditorClassName:this._getExtraEditorClassName(),outerWidth:this._elementSizeObserver.getWidth(),outerHeight:this._elementSizeObserver.getHeight(),emptySelectionClipboard:r.isWebKit||r.isFirefox,pixelRatio:r.getPixelRatio(),zoomLevel:r.getZoomLevel(),accessibilitySupport:this.accessibilityService.getAccessibilitySupport()}},t.prototype.readConfiguration=function(e){return m.INSTANCE.readConfiguration(e)},t}(d.CommonEditorConfiguration);t.Configuration=f}); ;/*!node_modules/monaco-editor/esm/vs/base/common/actions.js*/ define("node_modules/monaco-editor/esm/vs/base/common/actions",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),o=e("node_modules/monaco-editor/esm/vs/base/common/lifecycle"),i=e("node_modules/monaco-editor/esm/vs/base/common/event"),r=function(){function e(e,t,n,o,r){void 0===t&&(t=""),void 0===n&&(n=""),void 0===o&&(o=!0),this._onDidChange=new i.Emitter,this.onDidChange=this._onDidChange.event,this._id=e,this._label=t,this._cssClass=n,this._enabled=o,this._actionCallback=r}return Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},set:function(e){this._setLabel(e)},enumerable:!0,configurable:!0}),e.prototype._setLabel=function(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))},Object.defineProperty(e.prototype,"tooltip",{get:function(){return this._tooltip},set:function(e){this._setTooltip(e)},enumerable:!0,configurable:!0}),e.prototype._setTooltip=function(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))},Object.defineProperty(e.prototype,"class",{get:function(){return this._cssClass},set:function(e){this._setClass(e)},enumerable:!0,configurable:!0}),e.prototype._setClass=function(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({"class":e}))},Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._setEnabled(e)},enumerable:!0,configurable:!0}),e.prototype._setEnabled=function(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))},Object.defineProperty(e.prototype,"checked",{get:function(){return this._checked},set:function(e){this._setChecked(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radio",{get:function(){return this._radio},set:function(e){this._setRadio(e)},enumerable:!0,configurable:!0}),e.prototype._setChecked=function(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))},e.prototype._setRadio=function(e){this._radio!==e&&(this._radio=e,this._onDidChange.fire({radio:e}))},e.prototype.run=function(e){return this._actionCallback?this._actionCallback(e):Promise.resolve(!0)},e.prototype.dispose=function(){this._onDidChange.dispose()},e}();t.Action=r;var s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onDidBeforeRun=t._register(new i.Emitter),t.onDidBeforeRun=t._onDidBeforeRun.event,t._onDidRun=t._register(new i.Emitter),t.onDidRun=t._onDidRun.event,t}return n(t,e),t.prototype.run=function(e,t){var n=this;return e.enabled?(this._onDidBeforeRun.fire({action:e}),this.runAction(e,t).then(function(t){n._onDidRun.fire({action:e,result:t})},function(t){n._onDidRun.fire({action:e,error:t})})):Promise.resolve(null)},t.prototype.runAction=function(e,t){var n=t?e.run(t):e.run();return Promise.resolve(n)},t}(o.Disposable);t.ActionRunner=s}); ;/*!node_modules/monaco-editor/esm/vs/platform/actions/common/actions.js*/ define("node_modules/monaco-editor/esm/vs/platform/actions/common/actions",function(t,e){"use strict";function n(t){return void 0!==t.command}Object.defineProperty(e,"__esModule",{value:!0});var o=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),i=this&&this.__decorate||function(t,e,n,o){var i,r=arguments.length,s=3>r?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,o);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(s=(3>r?i(s):r>3?i(e,n,s):i(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},r=this&&this.__param||function(t,e){return function(n,o){e(n,o,t)}},s=t("node_modules/monaco-editor/esm/vs/base/common/actions"),c=t("node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation"),a=t("node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey"),m=t("node_modules/monaco-editor/esm/vs/platform/commands/common/commands"),u=t("node_modules/monaco-editor/esm/vs/base/common/event");e.isIMenuItem=n,e.IMenuService=c.createDecorator("menuService"),e.MenuRegistry=new(function(){function t(){this._commands=Object.create(null),this._menuItems=Object.create(null),this._onDidChangeMenu=new u.Emitter,this.onDidChangeMenu=this._onDidChangeMenu.event}return t.prototype.addCommand=function(t){var e=this;return this._commands[t.id]=t,this._onDidChangeMenu.fire(0),{dispose:function(){delete e._commands[t.id]&&e._onDidChangeMenu.fire(0)}}},t.prototype.getCommand=function(t){return this._commands[t]},t.prototype.getCommands=function(){var t=Object.create(null);for(var e in this._commands)t[e]=this.getCommand(e);return t},t.prototype.appendMenuItem=function(t,e){var n=this,o=this._menuItems[t];return o?o.push(e):this._menuItems[t]=o=[e],this._onDidChangeMenu.fire(t),{dispose:function(){var i=o.indexOf(e);i>=0&&(o.splice(i,1),n._onDidChangeMenu.fire(t))}}},t.prototype.getMenuItems=function(t){var e=(this._menuItems[t]||[]).slice(0);return 0===t&&this._appendImplicitItems(e),e},t.prototype._appendImplicitItems=function(t){for(var e=new Set,o=t.filter(function(t){return n(t)}),i=0,r=o;ie;e++){o=arguments[e];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])}return t},u.apply(this,arguments)},c=t("node_modules/monaco-editor/esm/vs/base/common/errors"),a=t("node_modules/monaco-editor/esm/vs/base/common/uri"),p=t("node_modules/monaco-editor/esm/vs/editor/browser/services/codeEditorService"),l=t("node_modules/monaco-editor/esm/vs/editor/common/core/position"),h=t("node_modules/monaco-editor/esm/vs/editor/common/services/modelService"),f=t("node_modules/monaco-editor/esm/vs/editor/common/services/resolverService"),g=t("node_modules/monaco-editor/esm/vs/platform/actions/common/actions"),b=t("node_modules/monaco-editor/esm/vs/platform/commands/common/commands"),y=t("node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey"),C=t("node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybindingsRegistry"),v=t("node_modules/monaco-editor/esm/vs/platform/registry/common/platform"),E=t("node_modules/monaco-editor/esm/vs/platform/telemetry/common/telemetry"),_=t("node_modules/monaco-editor/esm/vs/base/common/types"),O=function(){function t(t){this.id=t.id,this.precondition=t.precondition,this._kbOpts=t.kbOpts,this._menubarOpts=t.menubarOpts,this._description=t.description}return t.prototype.register=function(){var t=this;if(this._menubarOpts&&g.MenuRegistry.appendMenuItem(this._menubarOpts.menuId,{group:this._menubarOpts.group,command:{id:this.id,title:this._menubarOpts.title},when:this._menubarOpts.when,order:this._menubarOpts.order}),this._kbOpts){var o=this._kbOpts.kbExpr;this.precondition&&(o=o?y.ContextKeyExpr.and(o,this.precondition):this.precondition),C.KeybindingsRegistry.registerCommandAndKeybindingRule({id:this.id,handler:function(o,e){return t.runCommand(o,e)},weight:this._kbOpts.weight,when:o,primary:this._kbOpts.primary,secondary:this._kbOpts.secondary,win:this._kbOpts.win,linux:this._kbOpts.linux,mac:this._kbOpts.mac,description:this._description})}else b.CommandsRegistry.registerCommand({id:this.id,handler:function(o,e){return t.runCommand(o,e)},description:this._description})},t}();o.Command=O;var A=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return m(o,t),o.bindToContribution=function(t){return function(o){function e(t){var e=o.call(this,t)||this;return e._callback=t.handler,e}return m(e,o),e.prototype.runEditorCommand=function(o,e,n){var i=t(e);i&&this._callback(t(e),n)},e}(o)},o.prototype.runCommand=function(t,o){var e=this,n=t.get(p.ICodeEditorService),i=n.getFocusedCodeEditor()||n.getActiveCodeEditor();return i?i.invokeWithinContext(function(t){var n=t.get(y.IContextKeyService);if(n.contextMatchesRules(_.withNullAsUndefined(e.precondition)))return e.runEditorCommand(t,i,o)}):void 0},o}(O);o.EditorCommand=A;var I=function(t){function o(o){var e=t.call(this,o)||this;return e.label=o.label,e.alias=o.alias,e.menuOpts=o.menuOpts,e}return m(o,t),o.prototype.register=function(){this.menuOpts&&g.MenuRegistry.appendMenuItem(7,{command:{id:this.id,title:this.label},when:y.ContextKeyExpr.and(this.precondition,this.menuOpts.when),group:this.menuOpts.group,order:this.menuOpts.order}),t.prototype.register.call(this)},o.prototype.runEditorCommand=function(t,o,e){return this.reportTelemetry(t,o),this.run(t,o,e||{})},o.prototype.reportTelemetry=function(t,o){t.get(E.ITelemetryService).publicLog("editorActionInvoked",u({name:this.label,id:this.id},o.getTelemetryData()))},o}(A);o.EditorAction=I,o.registerLanguageCommand=e,o.registerDefaultLanguageCommand=n,o.registerEditorCommand=i,o.registerEditorAction=r,o.registerInstantiatedEditorAction=s,o.registerEditorContribution=d,function(t){function o(t){return k.INSTANCE.getEditorCommand(t)}function e(){return k.INSTANCE.getEditorActions()}function n(){return k.INSTANCE.getEditorContributions()}t.getEditorCommand=o,t.getEditorActions=e,t.getEditorContributions=n}(o.EditorExtensionsRegistry||(o.EditorExtensionsRegistry={}));var w={EditorCommonContributions:"editor.contributions"},k=function(){function t(){this.editorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}return t.prototype.registerEditorContribution=function(t){this.editorContributions.push(t)},t.prototype.registerEditorAction=function(t){t.register(),this.editorActions.push(t)},t.prototype.getEditorContributions=function(){return this.editorContributions.slice(0)},t.prototype.getEditorActions=function(){return this.editorActions.slice(0)},t.prototype.registerEditorCommand=function(t){t.register(),this.editorCommands[t.id]=t},t.prototype.getEditorCommand=function(t){return this.editorCommands[t]||null},t.INSTANCE=new t,t}();v.Registry.add(w.EditorCommonContributions,k.INSTANCE)}); ;/*!node_modules/monaco-editor/esm/vs/base/browser/fastDomNode.js*/ define("node_modules/monaco-editor/esm/vs/base/browser/fastDomNode",function(t,i){"use strict";function o(t){return new h(t)}Object.defineProperty(i,"__esModule",{value:!0});var e=t("node_modules/tslib/tslib"),s=e.__importStar(t("node_modules/monaco-editor/esm/vs/base/browser/dom")),h=function(){function t(t){this.domNode=t,this._maxWidth=-1,this._width=-1,this._height=-1,this._top=-1,this._left=-1,this._bottom=-1,this._right=-1,this._fontFamily="",this._fontWeight="",this._fontSize=-1,this._lineHeight=-1,this._letterSpacing=-100,this._className="",this._display="",this._position="",this._visibility="",this._layerHint=!1}return t.prototype.setMaxWidth=function(t){this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth+"px")},t.prototype.setWidth=function(t){this._width!==t&&(this._width=t,this.domNode.style.width=this._width+"px")},t.prototype.setHeight=function(t){this._height!==t&&(this._height=t,this.domNode.style.height=this._height+"px")},t.prototype.setTop=function(t){this._top!==t&&(this._top=t,this.domNode.style.top=this._top+"px")},t.prototype.unsetTop=function(){-1!==this._top&&(this._top=-1,this.domNode.style.top="")},t.prototype.setLeft=function(t){this._left!==t&&(this._left=t,this.domNode.style.left=this._left+"px")},t.prototype.setBottom=function(t){this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom+"px")},t.prototype.setRight=function(t){this._right!==t&&(this._right=t,this.domNode.style.right=this._right+"px")},t.prototype.setFontFamily=function(t){this._fontFamily!==t&&(this._fontFamily=t,this.domNode.style.fontFamily=this._fontFamily)},t.prototype.setFontWeight=function(t){this._fontWeight!==t&&(this._fontWeight=t,this.domNode.style.fontWeight=this._fontWeight)},t.prototype.setFontSize=function(t){this._fontSize!==t&&(this._fontSize=t,this.domNode.style.fontSize=this._fontSize+"px")},t.prototype.setLineHeight=function(t){this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight+"px")},t.prototype.setLetterSpacing=function(t){this._letterSpacing!==t&&(this._letterSpacing=t,this.domNode.style.letterSpacing=this._letterSpacing+"px")},t.prototype.setClassName=function(t){this._className!==t&&(this._className=t,this.domNode.className=this._className)},t.prototype.toggleClassName=function(t,i){s.toggleClass(this.domNode,t,i),this._className=this.domNode.className},t.prototype.setDisplay=function(t){this._display!==t&&(this._display=t,this.domNode.style.display=this._display)},t.prototype.setPosition=function(t){this._position!==t&&(this._position=t,this.domNode.style.position=this._position)},t.prototype.setVisibility=function(t){this._visibility!==t&&(this._visibility=t,this.domNode.style.visibility=this._visibility)},t.prototype.setLayerHinting=function(t){this._layerHint!==t&&(this._layerHint=t,this.domNode.style.willChange=this._layerHint?"transform":"auto")},t.prototype.setAttribute=function(t,i){this.domNode.setAttribute(t,i)},t.prototype.removeAttribute=function(t){this.domNode.removeAttribute(t)},t.prototype.appendChild=function(t){this.domNode.appendChild(t.domNode)},t.prototype.removeChild=function(t){this.domNode.removeChild(t.domNode)},t}();i.FastDomNode=h,i.createFastDomNode=o}); ;/*!node_modules/monaco-editor/esm/vs/base/common/decorators.js*/ define("node_modules/monaco-editor/esm/vs/base/common/decorators",function(e,o){"use strict";function t(e,o,t){var n=null,r=null;if("function"==typeof t.value?(n="value",r=t.value,0!==r.length&&console.warn("Memoize should only be used in functions with zero parameters")):"function"==typeof t.get&&(n="get",r=t.get),!r)throw new Error("not supported");var u="$memoize$"+o;t[n]=function(){for(var e=[],o=0;oo?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(r=(3>o?a(r):o>3?a(t,n,r):a(t,n))||r);return o>3&&r&&Object.defineProperty(t,n,r),r},o=n.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/arrays")),r=e("node_modules/monaco-editor/esm/vs/base/common/lifecycle"),s=n.__importStar(e("node_modules/monaco-editor/esm/vs/base/browser/dom")),l=e("node_modules/monaco-editor/esm/vs/base/common/decorators");!function(e){e.Tap="-monaco-gesturetap",e.Change="-monaco-gesturechange",e.Start="-monaco-gesturestart",e.End="-monaco-gesturesend",e.Contextmenu="-monaco-gesturecontextmenu"}(t.EventType||(t.EventType={}));var c=function(e){function n(){var t=e.call(this)||this;return t.activeTouches={},t.handle=null,t.targets=[],t._register(s.addDisposableListener(document,"touchstart",function(e){return t.onTouchStart(e)})),t._register(s.addDisposableListener(document,"touchend",function(e){return t.onTouchEnd(e)})),t._register(s.addDisposableListener(document,"touchmove",function(e){return t.onTouchMove(e)})),t}return i(n,e),n.addTarget=function(e){n.isTouchDevice()&&(n.INSTANCE||(n.INSTANCE=new n),n.INSTANCE.targets.push(e))},n.isTouchDevice=function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0},n.prototype.dispose=function(){this.handle&&(this.handle.dispose(),this.handle=null),e.prototype.dispose.call(this)},n.prototype.onTouchStart=function(e){var n=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(var i=0,a=e.targetTouches.length;a>i;i++){var o=e.targetTouches.item(i);this.activeTouches[o.identifier]={id:o.identifier,initialTarget:o.target,initialTimeStamp:n,initialPageX:o.pageX,initialPageY:o.pageY,rollingTimestamps:[n],rollingPageX:[o.pageX],rollingPageY:[o.pageY]};var r=this.newGestureEvent(t.EventType.Start,o.target);r.pageX=o.pageX,r.pageY=o.pageY,this.dispatchEvent(r)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)},n.prototype.onTouchEnd=function(e){for(var i=Date.now(),a=Object.keys(this.activeTouches).length,r=function(r){var l=e.changedTouches.item(r);if(!s.activeTouches.hasOwnProperty(String(l.identifier)))return console.warn("move of an UNKNOWN touch",l),"continue";var c=s.activeTouches[l.identifier],g=Date.now()-c.initialTimeStamp;if(g=n.HOLD_DELAY&&Math.abs(c.initialPageX-o.tail(c.rollingPageX))<30&&Math.abs(c.initialPageY-o.tail(c.rollingPageY))<30){var h=s.newGestureEvent(t.EventType.Contextmenu,c.initialTarget);h.pageX=o.tail(c.rollingPageX),h.pageY=o.tail(c.rollingPageY),s.dispatchEvent(h)}else if(1===a){var u=o.tail(c.rollingPageX),p=o.tail(c.rollingPageY),d=o.tail(c.rollingTimestamps)-c.rollingTimestamps[0],v=u-c.rollingPageX[0],f=p-c.rollingPageY[0],m=s.targets.filter(function(e){return c.initialTarget instanceof Node&&e.contains(c.initialTarget)});s.inertia(m,i,Math.abs(v)/d,v>0?1:-1,u,Math.abs(f)/d,f>0?1:-1,p)}s.dispatchEvent(s.newGestureEvent(t.EventType.End,c.initialTarget)),delete s.activeTouches[l.identifier]},s=this,l=0,c=e.changedTouches.length;c>l;l++)r(l,c);this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)},n.prototype.newGestureEvent=function(e,t){var n=document.createEvent("CustomEvent");return n.initEvent(e,!1,!0),n.initialTarget=t,n},n.prototype.dispatchEvent=function(e){var t=this;this.targets.forEach(function(n){e.initialTarget instanceof Node&&n.contains(e.initialTarget)&&(n.dispatchEvent(e),t.dispatched=!0)})},n.prototype.inertia=function(e,i,a,o,r,l,c,g){var h=this;this.handle=s.scheduleAtNextAnimationFrame(function(){var s=Date.now(),u=s-i,p=0,d=0,v=!0;a+=n.SCROLL_FRICTION*u,l+=n.SCROLL_FRICTION*u,a>0&&(v=!1,p=o*a*u),l>0&&(v=!1,d=c*l*u);var f=h.newGestureEvent(t.EventType.Change);f.translationX=p,f.translationY=d,e.forEach(function(e){return e.dispatchEvent(f)}),v||h.inertia(e,s,a,o,r+p,l,c,g+d)})},n.prototype.onTouchMove=function(e){for(var n=Date.now(),i=0,a=e.changedTouches.length;a>i;i++){var r=e.changedTouches.item(i);if(this.activeTouches.hasOwnProperty(String(r.identifier))){var s=this.activeTouches[r.identifier],l=this.newGestureEvent(t.EventType.Change,s.initialTarget);l.translationX=r.pageX-o.tail(s.rollingPageX),l.translationY=r.pageY-o.tail(s.rollingPageY),l.pageX=r.pageX,l.pageY=r.pageY,this.dispatchEvent(l),s.rollingPageX.length>3&&(s.rollingPageX.shift(),s.rollingPageY.shift(),s.rollingTimestamps.shift()),s.rollingPageX.push(r.pageX),s.rollingPageY.push(r.pageY),s.rollingTimestamps.push(n)}else console.warn("end of an UNKNOWN touch",r)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)},n.SCROLL_FRICTION=-.005,n.HOLD_DELAY=700,a([l.memoize],n,"isTouchDevice",null),n}(r.Disposable);t.Gesture=c}); ;/*!node_modules/monaco-editor/esm/vs/base/browser/globalMouseMoveMonitor.js*/ define("node_modules/monaco-editor/esm/vs/base/browser/globalMouseMoveMonitor",function(o,e){"use strict";function t(o,e){var t=new a.StandardMouseEvent(e);return t.preventDefault(),{leftButton:t.leftButton,posx:t.posx,posy:t.posy}}Object.defineProperty(e,"__esModule",{value:!0});var n=o("node_modules/tslib/tslib"),s=this&&this.__extends||function(){var o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var t in e)e.hasOwnProperty(t)&&(o[t]=e[t])})(e,t)};return function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}(),i=n.__importStar(o("node_modules/monaco-editor/esm/vs/base/browser/dom")),r=o("node_modules/monaco-editor/esm/vs/base/browser/iframe"),a=o("node_modules/monaco-editor/esm/vs/base/browser/mouseEvent"),u=o("node_modules/monaco-editor/esm/vs/base/common/lifecycle");e.standardMouseMoveMerger=t;var l=function(o){function e(){var e=o.call(this)||this;return e.hooks=[],e.mouseMoveEventMerger=null,e.mouseMoveCallback=null,e.onStopCallback=null,e}return s(e,o),e.prototype.dispose=function(){this.stopMonitoring(!1),o.prototype.dispose.call(this)},e.prototype.stopMonitoring=function(o){if(this.isMonitoring()){this.hooks=u.dispose(this.hooks),this.mouseMoveEventMerger=null,this.mouseMoveCallback=null;var e=this.onStopCallback;this.onStopCallback=null,o&&e&&e()}},e.prototype.isMonitoring=function(){return this.hooks.length>0},e.prototype.startMonitoring=function(o,e,t){var n=this;if(!this.isMonitoring()){this.mouseMoveEventMerger=o,this.mouseMoveCallback=e,this.onStopCallback=t;for(var s=r.IframeUtils.getSameOriginWindowChain(),u=0,l=s;uo;o++){var r=e[o];switch(r.type){case 1:this.onConfigurationChanged(r)&&(n=!0);break;case 2:this.onCursorStateChanged(r)&&(n=!0);break;case 3:this.onDecorationsChanged(r)&&(n=!0);break;case 4:this.onFlushed(r)&&(n=!0);break;case 5:this.onFocusChanged(r)&&(n=!0);break;case 16:this.onLanguageConfigurationChanged(r)&&(n=!0);break;case 6:this.onLineMappingChanged(r)&&(n=!0);break;case 7:this.onLinesChanged(r)&&(n=!0);break;case 8:this.onLinesDeleted(r)&&(n=!0);break;case 9:this.onLinesInserted(r)&&(n=!0);break;case 10:this.onRevealRangeRequest(r)&&(n=!0);break;case 11:this.onScrollChanged(r)&&(n=!0);break;case 12:this.onTokensChanged(r)&&(n=!0);break;case 13:this.onTokensColorsChanged(r)&&(n=!0);break;case 14:this.onZonesChanged(r)&&(n=!0);break;case 15:this.onThemeChanged(r)&&(n=!0);break;default:console.info("View received unknown event: "),console.info(r)}}n&&(this._shouldRender=!0)},n}(t.Disposable);n.ViewEventHandler=r}); ;/*!node_modules/monaco-editor/esm/vs/editor/browser/view/viewPart.js*/ define("node_modules/monaco-editor/esm/vs/editor/browser/view/viewPart",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),o=t("node_modules/monaco-editor/esm/vs/base/browser/fastDomNode"),r=t("node_modules/monaco-editor/esm/vs/editor/common/viewModel/viewEventHandler"),i=function(t){function e(e){var n=t.call(this)||this;return n._context=e,n._context.addEventHandler(n),n}return n(e,t),e.prototype.dispose=function(){this._context.removeEventHandler(this),t.prototype.dispose.call(this)},e}(r.ViewEventHandler);e.ViewPart=i;var a=function(){function t(){}return t.write=function(t,e){t instanceof o.FastDomNode?t.setAttribute("data-mprt",String(e)):t.setAttribute("data-mprt",String(e))},t.read=function(t){var e=t.getAttribute("data-mprt");return null===e?0:parseInt(e,10)},t.collect=function(t,e){for(var n=[],o=0;t&&t!==document.body&&t!==e;)t.nodeType===t.ELEMENT_NODE&&(n[o++]=this.read(t)),t=t.parentElement;for(var r=new Uint8Array(o),i=0;o>i;i++)r[i]=n[o-i-1];return r},t}();e.PartFingerprints=a}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/view/renderingContext.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/view/renderingContext",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),o=function(){function t(t,e){this._viewLayout=t,this.viewportData=e,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;var i=this._viewLayout.getCurrentViewport();this.scrollTop=i.top,this.scrollLeft=i.left,this.viewportWidth=i.width,this.viewportHeight=i.height}return t.prototype.getScrolledTopFromAbsoluteTop=function(t){return t-this.scrollTop},t.prototype.getVerticalOffsetForLineNumber=function(t){return this._viewLayout.getVerticalOffsetForLineNumber(t)},t.prototype.getDecorationsInViewport=function(){return this.viewportData.getDecorationsInViewport()},t}();e.RestrictedRenderingContext=o;var n=function(t){function e(e,i,o){var n=t.call(this,e,i)||this;return n._viewLines=o,n}return i(e,t),e.prototype.linesVisibleRangesForRange=function(t,e){return this._viewLines.linesVisibleRangesForRange(t,e)},e.prototype.visibleRangeForPosition=function(t){return this._viewLines.visibleRangeForPosition(t)},e}(o);e.RenderingContext=n;var r=function(){function t(t,e){this.lineNumber=t,this.ranges=e}return t}();e.LineVisibleRanges=r;var s=function(){function t(t,e){this.left=Math.round(t),this.width=Math.round(e)}return t.prototype.toString=function(){return"["+this.left+","+this.width+"]"},t}();e.HorizontalRange=s}); ;/*!node_modules/monaco-editor/esm/vs/editor/browser/viewParts/lines/rangeUtil.js*/ define("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/lines/rangeUtil",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=t("node_modules/monaco-editor/esm/vs/editor/common/view/renderingContext"),r=function(){function t(t,e){this.left=t,this.width=e}return t.prototype.toString=function(){return"["+this.left+","+this.width+"]"},t.compare=function(t,e){return t.left-e.left},t}(),i=function(){function t(){}return t._createRange=function(){return this._handyReadyRange||(this._handyReadyRange=document.createRange()),this._handyReadyRange},t._detachRange=function(t,e){t.selectNodeContents(e)},t._readClientRects=function(t,e,n,r,i){var a=this._createRange();try{return a.setStart(t,e),a.setEnd(n,r),a.getClientRects()}catch(o){return null}finally{this._detachRange(a,i)}},t._mergeAdjacentRanges=function(t){if(1===t.length)return[new n.HorizontalRange(t[0].left,t[0].width)];t.sort(r.compare);for(var e=[],i=0,a=t[0].left,o=t[0].width,l=1,h=t.length;h>l;l++){var c=t[l],d=c.left,s=c.width;a+o+.9>=d?o=Math.max(o,d+s-a):(e[i++]=new n.HorizontalRange(a,o),a=d,o=s)}return e[i++]=new n.HorizontalRange(a,o),e},t._createHorizontalRangesFromClientRects=function(t,e){if(!t||0===t.length)return null;for(var n=[],i=0,a=t.length;a>i;i++){var o=t[i];n[i]=new r(Math.max(0,o.left-e),o.width)}return this._mergeAdjacentRanges(n)},t.readHorizontalRanges=function(t,e,n,r,i,a,o){var l=0,h=t.children.length-1;if(l>h)return null;e=Math.min(h,Math.max(l,e)),r=Math.min(h,Math.max(l,r)),e!==r&&r>0&&0===i&&(r--,i=Number.MAX_VALUE);var c=t.children[e].firstChild,d=t.children[r].firstChild;if(c&&d||(!c&&0===n&&e>0&&(c=t.children[e-1].firstChild,n=1073741824),!d&&0===i&&r>0&&(d=t.children[r-1].firstChild,i=1073741824)),!c||!d)return null;n=Math.min(c.textContent.length,Math.max(0,n)),i=Math.min(d.textContent.length,Math.max(0,i));var s=this._readClientRects(c,n,d,i,o);return this._createHorizontalRangesFromClientRects(s,a)},t}();e.RangeUtil=i}); ;/*!node_modules/monaco-editor/esm/vs/platform/theme/common/themeService.js*/ define("node_modules/monaco-editor/esm/vs/platform/theme/common/themeService",function(e,t){"use strict";function n(e){return{id:e}}function i(e){switch(e){case t.DARK:return"vs-dark";case t.HIGH_CONTRAST:return"hc-black";default:return"vs"}}function o(e){return h.onThemeChange(e)}Object.defineProperty(t,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),s=e("node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation"),m=e("node_modules/monaco-editor/esm/vs/base/common/lifecycle"),a=r.__importStar(e("node_modules/monaco-editor/esm/vs/platform/registry/common/platform")),c=e("node_modules/monaco-editor/esm/vs/base/common/event");t.IThemeService=s.createDecorator("themeService"),t.themeColorFromId=n,t.DARK="dark",t.HIGH_CONTRAST="hc",t.getThemeTypeSelector=i,t.Extensions={ThemingContribution:"base.contributions.theming"};var d=function(){function e(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new c.Emitter}return e.prototype.onThemeChange=function(e){var t=this;return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),m.toDisposable(function(){var n=t.themingParticipants.indexOf(e);t.themingParticipants.splice(n,1)})},e.prototype.getThemingParticipants=function(){return this.themingParticipants},e}(),h=new d;a.Registry.add(t.Extensions.ThemingContribution,h),t.registerThemingParticipant=o}); ;/*!node_modules/monaco-editor/esm/vs/editor/browser/viewParts/lines/viewLine.js*/ define("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/lines/viewLine",function(e,t){"use strict";function n(e,t,n,i,r){return new L(e,t,n,i,r)}function i(e,t,n,i,r){return new C(e,t,n,i,r)}Object.defineProperty(t,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),o=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=r.__importStar(e("node_modules/monaco-editor/esm/vs/base/browser/browser")),s=e("node_modules/monaco-editor/esm/vs/base/browser/fastDomNode"),h=r.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/platform")),d=e("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/lines/rangeUtil"),c=e("node_modules/monaco-editor/esm/vs/editor/common/view/renderingContext"),p=e("node_modules/monaco-editor/esm/vs/editor/common/viewLayout/lineDecorations"),l=e("node_modules/monaco-editor/esm/vs/editor/common/viewLayout/viewLineRenderer"),f=e("node_modules/monaco-editor/esm/vs/platform/theme/common/themeService"),u=function(){return h.isNative?!0:h.isLinux||a.isFirefox||a.isSafari?!1:!0}(),g=a.isEdgeOrIE,_=function(){function e(e,t){this._domNode=e,this._clientRectDeltaLeft=0,this._clientRectDeltaLeftRead=!1,this.endNode=t}return Object.defineProperty(e.prototype,"clientRectDeltaLeft",{get:function(){return this._clientRectDeltaLeftRead||(this._clientRectDeltaLeftRead=!0,this._clientRectDeltaLeft=this._domNode.getBoundingClientRect().left),this._clientRectDeltaLeft},enumerable:!0,configurable:!0}),e}();t.DomReadingContext=_;var m=function(){function e(e,t){this.themeType=t,this.renderWhitespace=e.editor.viewInfo.renderWhitespace,this.renderControlCharacters=e.editor.viewInfo.renderControlCharacters,this.spaceWidth=e.editor.fontInfo.spaceWidth,this.useMonospaceOptimizations=e.editor.fontInfo.isMonospace&&!e.editor.viewInfo.disableMonospaceOptimizations,this.canUseHalfwidthRightwardsArrow=e.editor.fontInfo.canUseHalfwidthRightwardsArrow,this.lineHeight=e.editor.lineHeight,this.stopRenderingLineAfter=e.editor.viewInfo.stopRenderingLineAfter,this.fontLigatures=e.editor.viewInfo.fontLigatures}return e.prototype.equals=function(e){return this.themeType===e.themeType&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.spaceWidth===e.spaceWidth&&this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.fontLigatures===e.fontLigatures},e}();t.ViewLineOptions=m;var w=function(){function e(e){this._options=e,this._isMaybeInvalid=!0,this._renderedViewLine=null}return e.prototype.getDomNode=function(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null},e.prototype.setDomNode=function(e){if(!this._renderedViewLine)throw new Error("I have no rendered view line to set the dom node to...");this._renderedViewLine.domNode=s.createFastDomNode(e)},e.prototype.onContentChanged=function(){this._isMaybeInvalid=!0},e.prototype.onTokensChanged=function(){this._isMaybeInvalid=!0},e.prototype.onDecorationsChanged=function(){this._isMaybeInvalid=!0},e.prototype.onOptionsChanged=function(e){this._isMaybeInvalid=!0,this._options=e},e.prototype.onSelectionChanged=function(){return g||this._options.themeType===f.HIGH_CONTRAST?(this._isMaybeInvalid=!0,!0):!1},e.prototype.renderLine=function(t,n,i,r){if(this._isMaybeInvalid===!1)return!1;this._isMaybeInvalid=!1;var o=i.getViewLineRenderingData(t),a=this._options,s=p.LineDecoration.filter(o.inlineDecorations,t,o.minColumn,o.maxColumn);if(g||a.themeType===f.HIGH_CONTRAST)for(var h=i.selections,d=0,c=h;dt)){var m=_.startLineNumber===t?_.startColumn:o.minColumn,w=_.endLineNumber===t?_.endColumn:o.maxColumn;w>m&&s.push(new p.LineDecoration(m,w,"inline-selected-text",0))}}var C=new l.RenderLineInput(a.useMonospaceOptimizations,a.canUseHalfwidthRightwardsArrow,o.content,o.continuesWithWrappedLine,o.isBasicASCII,o.containsRTL,o.minColumn-1,o.tokens,s,o.tabSize,a.spaceWidth,a.stopRenderingLineAfter,a.renderWhitespace,a.renderControlCharacters,a.fontLigatures);if(this._renderedViewLine&&this._renderedViewLine.input.equals(C))return!1;r.appendASCIIString('
');var L=l.renderViewLine(C,r);r.appendASCIIString("
");var y=null;return u&&o.isBasicASCII&&a.useMonospaceOptimizations&&0===L.containsForeignElements&&o.content.length<300&&C.lineTokens.getCount()<100&&(y=new R(this._renderedViewLine?this._renderedViewLine.domNode:null,C,L.characterMapping)),y||(y=v(this._renderedViewLine?this._renderedViewLine.domNode:null,C,L.characterMapping,L.containsRTL,L.containsForeignElements)),this._renderedViewLine=y,!0},e.prototype.layoutLine=function(e,t){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))},e.prototype.getWidth=function(){return this._renderedViewLine?this._renderedViewLine.getWidth():0},e.prototype.getWidthIsFast=function(){return this._renderedViewLine?this._renderedViewLine.getWidthIsFast():!0},e.prototype.getVisibleRangesForRange=function(e,t,n){if(!this._renderedViewLine)return null;e=0|e,t=0|t,e=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,e)),t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t));var i=0|this._renderedViewLine.input.stopRenderingLineAfter;return-1!==i&&e>i&&t>i?null:(-1!==i&&e>i&&(e=i),-1!==i&&t>i&&(t=i),this._renderedViewLine.getVisibleRangesForRange(e,t,n))},e.prototype.getColumnOfNodeOffset=function(e,t,n){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(e,t,n):1},e.CLASS_NAME="view-line",e}();t.ViewLine=w;var R=function(){function e(e,t,n){this.domNode=e,this.input=t,this._characterMapping=n,this._charWidth=t.spaceWidth}return e.prototype.getWidth=function(){return this._getCharPosition(this._characterMapping.length)},e.prototype.getWidthIsFast=function(){return!0},e.prototype.getVisibleRangesForRange=function(e,t){var n=this._getCharPosition(e),i=this._getCharPosition(t);return[new c.HorizontalRange(n,i-n)]},e.prototype._getCharPosition=function(e){var t=this._characterMapping.getAbsoluteOffsets();return 0===t.length?0:Math.round(this._charWidth*t[e-1])},e.prototype.getColumnOfNodeOffset=function(e,t,n){for(var i=t.textContent.length,r=-1;t;)t=t.previousSibling,r++;var o=this._characterMapping.partDataToCharOffset(r,i,n);return o+1},e}(),C=function(){function e(e,t,n,i,r){if(this.domNode=e,this.input=t,this._characterMapping=n,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=r,this._cachedWidth=-1,this._pixelOffsetCache=null,!i||0===this._characterMapping.length){this._pixelOffsetCache=new Int32Array(Math.max(2,this._characterMapping.length+1));for(var o=0,a=this._characterMapping.length;a>=o;o++)this._pixelOffsetCache[o]=-1}}return e.prototype._getReadingTarget=function(){return this.domNode.domNode.firstChild},e.prototype.getWidth=function(){return-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget().offsetWidth),this._cachedWidth},e.prototype.getWidthIsFast=function(){return-1===this._cachedWidth?!1:!0},e.prototype.getVisibleRangesForRange=function(e,t,n){if(null!==this._pixelOffsetCache){var i=this._readPixelOffset(e,n);if(-1===i)return null;var r=this._readPixelOffset(t,n);return-1===r?null:[new c.HorizontalRange(i,r-i)]}return this._readVisibleRangesForRange(e,t,n)},e.prototype._readVisibleRangesForRange=function(e,t,n){if(e===t){var i=this._readPixelOffset(e,n);return-1===i?null:[new c.HorizontalRange(i,0)]}return this._readRawVisibleRangesForRange(e,t,n)},e.prototype._readPixelOffset=function(e,t){if(0===this._characterMapping.length){if(0===this._containsForeignElements)return 0;if(2===this._containsForeignElements)return 0;if(1===this._containsForeignElements)return this.getWidth()}if(null!==this._pixelOffsetCache){var n=this._pixelOffsetCache[e];if(-1!==n)return n;var i=this._actualReadPixelOffset(e,t);return this._pixelOffsetCache[e]=i,i}return this._actualReadPixelOffset(e,t)},e.prototype._actualReadPixelOffset=function(e,t){if(0===this._characterMapping.length){var n=d.RangeUtil.readHorizontalRanges(this._getReadingTarget(),0,0,0,0,t.clientRectDeltaLeft,t.endNode);return n&&0!==n.length?n[0].left:-1}if(e===this._characterMapping.length&&this._isWhitespaceOnly&&0===this._containsForeignElements)return this.getWidth();var i=this._characterMapping.charOffsetToPartData(e-1),r=l.CharacterMapping.getPartIndex(i),o=l.CharacterMapping.getCharIndex(i),a=d.RangeUtil.readHorizontalRanges(this._getReadingTarget(),r,o,r,o,t.clientRectDeltaLeft,t.endNode);return a&&0!==a.length?a[0].left:-1},e.prototype._readRawVisibleRangesForRange=function(e,t,n){if(1===e&&t===this._characterMapping.length)return[new c.HorizontalRange(0,this.getWidth())];var i=this._characterMapping.charOffsetToPartData(e-1),r=l.CharacterMapping.getPartIndex(i),o=l.CharacterMapping.getCharIndex(i),a=this._characterMapping.charOffsetToPartData(t-1),s=l.CharacterMapping.getPartIndex(a),h=l.CharacterMapping.getCharIndex(a);return d.RangeUtil.readHorizontalRanges(this._getReadingTarget(),r,o,s,h,n.clientRectDeltaLeft,n.endNode)},e.prototype.getColumnOfNodeOffset=function(e,t,n){for(var i=t.textContent.length,r=-1;t;)t=t.previousSibling,r++;var o=this._characterMapping.partDataToCharOffset(r,i,n);return o+1},e}(),L=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype._readVisibleRangesForRange=function(t,n,i){var r=e.prototype._readVisibleRangesForRange.call(this,t,n,i);if(!r||0===r.length||t===n||1===t&&n===this._characterMapping.length)return r;if(!this.input.containsRTL){var o=this._readPixelOffset(n,i);if(-1!==o){var a=r[r.length-1];a.left=4&&3===t[0]&&7===t[3]},t.isStrictChildOfViewLines=function(t){return t.length>4&&3===t[0]&&7===t[3]},t.isChildOfScrollableElement=function(t){return t.length>=2&&3===t[0]&&5===t[1]},t.isChildOfMinimap=function(t){return t.length>=2&&3===t[0]&&8===t[1]},t.isChildOfContentWidgets=function(t){return t.length>=4&&3===t[0]&&1===t[3]},t.isChildOfOverflowingContentWidgets=function(t){return t.length>=1&&2===t[0]},t.isChildOfOverlayWidgets=function(t){return t.length>=2&&3===t[0]&&4===t[1]},t}(),h=function(){function t(t,e,i){this.model=t.model,this.layoutInfo=t.configuration.editor.layoutInfo,this.viewDomNode=e.viewDomNode,this.lineHeight=t.configuration.editor.lineHeight,this.typicalHalfwidthCharacterWidth=t.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,this.lastViewCursorsRenderData=i,this._context=t,this._viewHelper=e}return t.prototype.getZoneAtCoord=function(e){return t.getZoneAtCoord(this._context,e)},t.getZoneAtCoord=function(t,e){var i=t.viewLayout.getWhitespaceAtVerticalOffset(e);if(i){var n=i.verticalOffset+i.height/2,o=t.model.getLineCount(),r=null,l=void 0,s=null;return i.afterLineNumber!==o&&(s=new a.Position(i.afterLineNumber+1,1)),i.afterLineNumber>0&&(r=new a.Position(i.afterLineNumber,t.model.getLineMaxColumn(i.afterLineNumber))),l=null===s?r:null===r?s:n>e?r:s,{viewZoneId:i.id,afterLineNumber:i.afterLineNumber,positionBefore:r,positionAfter:s,position:l}}return null},t.prototype.getFullLineRangeAtCoord=function(t){if(this._context.viewLayout.isAfterLines(t)){var e=this._context.model.getLineCount(),i=this._context.model.getLineMaxColumn(e);return{range:new f.Range(e,i,e,i),isAfterLines:!0}}var n=this._context.viewLayout.getLineNumberAtVerticalOffset(t),o=this._context.model.getLineMaxColumn(n);return{range:new f.Range(n,1,n,o),isAfterLines:!1}},t.prototype.getLineNumberAtVerticalOffset=function(t){return this._context.viewLayout.getLineNumberAtVerticalOffset(t)},t.prototype.isAfterLines=function(t){return this._context.viewLayout.isAfterLines(t)},t.prototype.getVerticalOffsetForLineNumber=function(t){return this._context.viewLayout.getVerticalOffsetForLineNumber(t)},t.prototype.findAttribute=function(e,i){return t._findAttribute(e,i,this._viewHelper.viewDomNode)},t._findAttribute=function(t,e,i){for(;t&&t!==document.body;){if(t.hasAttribute&&t.hasAttribute(e))return t.getAttribute(e);if(t===i)return null;t=t.parentNode}return null},t.prototype.getLineWidth=function(t){return this._viewHelper.getLineWidth(t)},t.prototype.visibleRangeForPosition2=function(t,e){return this._viewHelper.visibleRangeForPosition2(t,e)},t.prototype.getPositionFromDOMInfo=function(t,e){return this._viewHelper.getPositionFromDOMInfo(t,e)},t.prototype.getCurrentScrollTop=function(){return this._context.viewLayout.getCurrentScrollTop()},t.prototype.getCurrentScrollLeft=function(){return this._context.viewLayout.getCurrentScrollLeft()},t}();e.HitTestContext=h;var g=function(){function t(t,e,i){this.editorPos=e,this.pos=i,this.mouseVerticalOffset=Math.max(0,t.getCurrentScrollTop()+i.y-e.y),this.mouseContentHorizontalOffset=t.getCurrentScrollLeft()+i.x-e.x-t.layoutInfo.contentLeft,this.isInMarginArea=i.x-e.x=t.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,v._getMouseColumn(this.mouseContentHorizontalOffset,t.typicalHalfwidthCharacterWidth))}return t}(),m=function(t){function e(e,i,n,o){var r=t.call(this,e,i,n)||this;return r._ctx=e,o?(r.target=o,r.targetPath=s.PartFingerprints.collect(o,e.viewDomNode)):(r.target=null,r.targetPath=new Uint8Array(0)),r}return o(e,t),e.prototype.toString=function(){return"pos("+this.pos.x+","+this.pos.y+"), editorPos("+this.editorPos.x+","+this.editorPos.y+"), mouseVerticalOffset: "+this.mouseVerticalOffset+", mouseContentHorizontalOffset: "+this.mouseContentHorizontalOffset+"\n target: "+(this.target?this.target.outerHTML:null)},e.prototype.fulfill=function(t,e,i,n){return void 0===e&&(e=null),void 0===i&&(i=null),void 0===n&&(n=null),new c(this.target,t,this.mouseColumn,e,i,n)},e.prototype.withTarget=function(t){return new e(this._ctx,this.editorPos,this.pos,t)},e}(g),p={isAfterLines:!0},v=function(){function t(t,e){this._context=t,this._viewHelper=e}return t.prototype.mouseTargetIsWidget=function(t){var e=t.target,i=s.PartFingerprints.collect(e,this._viewHelper.viewDomNode);return d.isChildOfContentWidgets(i)||d.isChildOfOverflowingContentWidgets(i)?!0:d.isChildOfOverlayWidgets(i)?!0:!1},t.prototype.createMouseTarget=function(e,i,n,o){var r=new h(this._context,this._viewHelper,e),l=new m(r,i,n,o);try{var s=t._createMouseTarget(r,l,!1);return s}catch(u){return l.fulfill(0)}},t._createMouseTarget=function(e,i,n){if(null===i.target){if(n)return i.fulfill(0);var o=t._doHitTest(e,i);return o.position?t.createMouseTargetFromHitTestPosition(e,i,o.position.lineNumber,o.position.column):this._createMouseTarget(e,i.withTarget(o.hitTarget),!0)}var r=i,l=null;return l=l||t._hitTestContentWidget(e,r),l=l||t._hitTestOverlayWidget(e,r),l=l||t._hitTestMinimap(e,r),l=l||t._hitTestScrollbarSlider(e,r),l=l||t._hitTestViewZone(e,r),l=l||t._hitTestMargin(e,r),l=l||t._hitTestViewCursor(e,r),l=l||t._hitTestTextArea(e,r),l=l||t._hitTestViewLines(e,r,n),l=l||t._hitTestScrollbar(e,r),l||i.fulfill(0)},t._hitTestContentWidget=function(t,e){if(d.isChildOfContentWidgets(e.targetPath)||d.isChildOfOverflowingContentWidgets(e.targetPath)){var i=t.findAttribute(e.target,"widgetId");return i?e.fulfill(9,null,null,i):e.fulfill(0)}return null},t._hitTestOverlayWidget=function(t,e){if(d.isChildOfOverlayWidgets(e.targetPath)){var i=t.findAttribute(e.target,"widgetId");return i?e.fulfill(12,null,null,i):e.fulfill(0)}return null},t._hitTestViewCursor=function(t,e){if(e.target)for(var i=t.lastViewCursorsRenderData,n=0,o=i;nr.contentLeft+r.width)){var f=t.getVerticalOffsetForLineNumber(r.position.lineNumber);if(s>=f&&s<=f+r.height)return e.fulfill(6,r.position)}}return null},t._hitTestViewZone=function(t,e){var i=t.getZoneAtCoord(e.mouseVerticalOffset);if(i){var n=e.isInContentArea?8:5;return e.fulfill(n,i.position,null,i)}return null},t._hitTestTextArea=function(t,e){return d.isTextArea(e.targetPath)?e.fulfill(1):null},t._hitTestMargin=function(t,e){if(e.isInMarginArea){var i=t.getFullLineRangeAtCoord(e.mouseVerticalOffset),n=i.range.getStartPosition(),o=Math.abs(e.pos.x-e.editorPos.x),r={isAfterLines:i.isAfterLines,glyphMarginLeft:t.layoutInfo.glyphMarginLeft,glyphMarginWidth:t.layoutInfo.glyphMarginWidth,lineNumbersWidth:t.layoutInfo.lineNumbersWidth,offsetX:o};return o-=t.layoutInfo.glyphMarginLeft,o<=t.layoutInfo.glyphMarginWidth?e.fulfill(2,n,i.range,r):(o-=t.layoutInfo.glyphMarginWidth,o<=t.layoutInfo.lineNumbersWidth?e.fulfill(3,n,i.range,r):(o-=t.layoutInfo.lineNumbersWidth,e.fulfill(4,n,i.range,r)))}return null},t._hitTestViewLines=function(e,n,o){if(!d.isChildOfViewLines(n.targetPath))return null;if(e.isAfterLines(n.mouseVerticalOffset)){var r=e.model.getLineCount(),l=e.model.getLineMaxColumn(r);return n.fulfill(7,new a.Position(r,l),void 0,p)}if(o){if(d.isStrictChildOfViewLines(n.targetPath)){var s=e.getLineNumberAtVerticalOffset(n.mouseVerticalOffset);if(0===e.model.getLineLength(s)){var u=e.getLineWidth(s),f=i(n.mouseContentHorizontalOffset-u);return n.fulfill(7,new a.Position(s,1),void 0,f)}}return n.fulfill(0)}var c=t._doHitTest(e,n);return c.position?t.createMouseTargetFromHitTestPosition(e,n,c.position.lineNumber,c.position.column):this._createMouseTarget(e,n.withTarget(c.hitTarget),!0)},t._hitTestMinimap=function(t,e){if(d.isChildOfMinimap(e.targetPath)){var i=t.getLineNumberAtVerticalOffset(e.mouseVerticalOffset),n=t.model.getLineMaxColumn(i);return e.fulfill(11,new a.Position(i,n))}return null},t._hitTestScrollbarSlider=function(t,e){if(d.isChildOfScrollableElement(e.targetPath)&&e.target&&1===e.target.nodeType){var i=e.target.className;if(i&&/\b(slider|scrollbar)\b/.test(i)){var n=t.getLineNumberAtVerticalOffset(e.mouseVerticalOffset),o=t.model.getLineMaxColumn(n);return e.fulfill(11,new a.Position(n,o))}}return null},t._hitTestScrollbar=function(t,e){if(d.isChildOfScrollableElement(e.targetPath)){var i=t.getLineNumberAtVerticalOffset(e.mouseVerticalOffset),n=t.model.getLineMaxColumn(i);return e.fulfill(11,new a.Position(i,n))}return null},t.prototype.getMouseColumn=function(e,i){var n=this._context.configuration.editor.layoutInfo,o=this._context.viewLayout.getCurrentScrollLeft()+i.x-e.x-n.contentLeft;return t._getMouseColumn(o,this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth)},t._getMouseColumn=function(t,e){if(0>t)return 1;var i=Math.round(t/e);return i+1},t.createMouseTargetFromHitTestPosition=function(t,e,n,o){var l=new a.Position(n,o),s=t.getLineWidth(n);if(e.mouseContentHorizontalOffset>s){if(r.isEdge&&1===l.column){var u=i(e.mouseContentHorizontalOffset-s);return e.fulfill(7,new a.Position(n,t.model.getLineMaxColumn(n)),void 0,u)}var c=i(e.mouseContentHorizontalOffset-s);return e.fulfill(7,l,void 0,c)}var d=t.visibleRangeForPosition2(n,o);if(!d)return e.fulfill(0,l);var h=d.left;if(e.mouseContentHorizontalOffset===h)return e.fulfill(6,l);var g=[];if(g.push({offset:d.left,column:o}),o>1){var m=t.visibleRangeForPosition2(n,o-1);m&&g.push({offset:m.left,column:o-1})}var p=t.model.getLineMaxColumn(n);if(p>o){var v=t.visibleRangeForPosition2(n,o+1);v&&g.push({offset:v.left,column:o+1})}g.sort(function(t,e){return t.offset-e.offset});for(var T=1;T=e.editorPos.y+t.layoutInfo.height&&(r=e.editorPos.y+t.layoutInfo.height-1);var s=new l.PageCoordinates(e.pos.x,r),u=this._actualDoHitTestWithCaretRangeFromPoint(t,s.toClientCoordinates());return u.position?u:this._actualDoHitTestWithCaretRangeFromPoint(t,e.pos.toClientCoordinates())},t._actualDoHitTestWithCaretRangeFromPoint=function(t,e){var i=document.caretRangeFromPoint(e.clientX,e.clientY);if(!i||!i.startContainer)return{position:null,hitTarget:null};var n=i.startContainer,o=null;if(n.nodeType===n.TEXT_NODE){var r=n.parentNode,l=r?r.parentNode:null,s=l?l.parentNode:null,a=s&&s.nodeType===s.ELEMENT_NODE?s.className:null;if(a===u.ViewLine.CLASS_NAME){var f=t.getPositionFromDOMInfo(r,i.startOffset);return{position:f,hitTarget:null}}o=n.parentNode}else if(n.nodeType===n.ELEMENT_NODE){var r=n.parentNode,l=r?r.parentNode:null,c=l&&l.nodeType===l.ELEMENT_NODE?l.className:null;if(c===u.ViewLine.CLASS_NAME){var f=t.getPositionFromDOMInfo(n,n.textContent.length);return{position:f,hitTarget:null}}o=n}return{position:null,hitTarget:o}},t._doHitTestWithCaretPositionFromPoint=function(t,e){var i=document.caretPositionFromPoint(e.clientX,e.clientY);if(i.offsetNode.nodeType===i.offsetNode.TEXT_NODE){var n=i.offsetNode.parentNode,o=n?n.parentNode:null,r=o?o.parentNode:null,l=r&&r.nodeType===r.ELEMENT_NODE?r.className:null;if(l===u.ViewLine.CLASS_NAME){var s=t.getPositionFromDOMInfo(i.offsetNode.parentNode,i.offset);return{position:s,hitTarget:null}}return{position:null,hitTarget:i.offsetNode.parentNode}}return{position:null,hitTarget:i.offsetNode}},t._doHitTestWithMoveToPoint=function(t,e){var i=null,n=null,o=document.body.createTextRange();try{o.moveToPoint(e.clientX,e.clientY)}catch(r){return{position:null,hitTarget:null}}o.collapse(!0);var l=o?o.parentElement():null,s=l?l.parentNode:null,a=s?s.parentNode:null,f=a&&a.nodeType===a.ELEMENT_NODE?a.className:"";if(f===u.ViewLine.CLASS_NAME){var c=o.duplicate();c.moveToElementText(l),c.setEndPoint("EndToStart",o),i=t.getPositionFromDOMInfo(l,c.text.length),c.moveToElementText(t.viewDomNode)}else n=l;return o.moveToElementText(t.viewDomNode),{position:i,hitTarget:n}},t._doHitTest=function(t,e){return document.caretRangeFromPoint?this._doHitTestWithCaretRangeFromPoint(t,e):document.caretPositionFromPoint?this._doHitTestWithCaretPositionFromPoint(t,e.pos.toClientCoordinates()):document.body.createTextRange?this._doHitTestWithMoveToPoint(t,e.pos.toClientCoordinates()):{position:null,hitTarget:null}},t}();e.MouseTargetFactory=v}); ;/*!node_modules/monaco-editor/esm/vs/editor/browser/controller/mouseHandler.js*/ define("node_modules/monaco-editor/esm/vs/editor/browser/controller/mouseHandler",function(e,t){"use strict";function o(e){return function(t,o){var n=!1;return e&&(n=e.mouseTargetIsWidget(o)),n||o.preventDefault(),o}}Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),i=this&&this.__extends||function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),s=n.__importStar(e("node_modules/monaco-editor/esm/vs/base/browser/browser")),r=n.__importStar(e("node_modules/monaco-editor/esm/vs/base/browser/dom")),u=e("node_modules/monaco-editor/esm/vs/base/browser/mouseEvent"),a=e("node_modules/monaco-editor/esm/vs/base/common/async"),l=e("node_modules/monaco-editor/esm/vs/base/common/lifecycle"),c=n.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/platform")),_=e("node_modules/monaco-editor/esm/vs/editor/browser/controller/mouseTarget"),p=e("node_modules/monaco-editor/esm/vs/editor/browser/editorDom"),m=e("node_modules/monaco-editor/esm/vs/editor/common/config/editorZoom"),d=e("node_modules/monaco-editor/esm/vs/editor/common/core/position"),h=e("node_modules/monaco-editor/esm/vs/editor/common/core/selection"),v=e("node_modules/monaco-editor/esm/vs/editor/common/viewModel/viewEventHandler"),f=function(e){function t(n,i,s){var l=e.call(this)||this;l._isFocused=!1,l._context=n,l.viewController=i,l.viewHelper=s,l.mouseTargetFactory=new _.MouseTargetFactory(l._context,s),l._mouseDownOperation=l._register(new M(l._context,l.viewController,l.viewHelper,function(e,t){return l._createMouseTarget(e,t)},function(e){return l._getMouseColumn(e)})),l._asyncFocus=l._register(new a.RunOnceScheduler(function(){return l.viewHelper.focusTextArea()},0)),l.lastMouseLeaveTime=-1;var c=new p.EditorMouseEventFactory(l.viewHelper.viewDomNode);l._register(c.onContextMenu(l.viewHelper.viewDomNode,function(e){return l._onContextMenu(e,!0)})),l._register(c.onMouseMoveThrottled(l.viewHelper.viewDomNode,function(e){return l._onMouseMove(e)},o(l.mouseTargetFactory),t.MOUSE_MOVE_MINIMUM_TIME)),l._register(c.onMouseUp(l.viewHelper.viewDomNode,function(e){return l._onMouseUp(e)})),l._register(c.onMouseLeave(l.viewHelper.viewDomNode,function(e){return l._onMouseLeave(e)})),l._register(c.onMouseDown(l.viewHelper.viewDomNode,function(e){return l._onMouseDown(e)}));var d=function(e){if(l.viewController.emitMouseWheel(e),l._context.configuration.editor.viewInfo.mouseWheelZoom){var t=new u.StandardWheelEvent(e);if(t.browserEvent.ctrlKey||t.browserEvent.metaKey){var o=m.EditorZoom.getZoomLevel(),n=t.deltaY>0?1:-1;m.EditorZoom.setZoomLevel(o+n),t.preventDefault(),t.stopPropagation()}}};return l._register(r.addDisposableListener(l.viewHelper.viewDomNode,"mousewheel",d,!0)),l._context.addEventHandler(l),l}return i(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),e.prototype.dispose.call(this)},t.prototype.onCursorStateChanged=function(e){return this._mouseDownOperation.onCursorStateChanged(e),!1},t.prototype.onFocusChanged=function(e){return this._isFocused=e.isFocused,!1},t.prototype.onScrollChanged=function(){return this._mouseDownOperation.onScrollChanged(),!1},t.prototype.getTargetAtClientPoint=function(e,t){var o=new p.ClientCoordinates(e,t),n=o.toPageCoordinates(),i=p.createEditorPagePosition(this.viewHelper.viewDomNode);if(n.yi.y+i.height||n.xi.x+i.width)return null;var s=this.viewHelper.getLastViewCursorsRenderData();return this.mouseTargetFactory.createMouseTarget(s,i,n,null)},t.prototype._createMouseTarget=function(e,t){var o=this.viewHelper.getLastViewCursorsRenderData();return this.mouseTargetFactory.createMouseTarget(o,e.editorPos,e.pos,t?e.target:null)},t.prototype._getMouseColumn=function(e){return this.mouseTargetFactory.getMouseColumn(e.editorPos,e.pos)},t.prototype._onContextMenu=function(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)})},t.prototype._onMouseMove=function(e){if(!this._mouseDownOperation.isActive()){var t=e.timestamp;tt.y+t.height){var s=n.getCurrentScrollTop()+(e.posy-t.y),r=_.HitTestContext.getZoneAtCoord(this._context,s);if(r){var u=this._helpPositionJumpOverViewZone(r);if(u)return new _.MouseTarget(null,13,i,u)}var l=n.getLineNumberAtVerticalOffset(s);return new _.MouseTarget(null,13,i,new d.Position(l,o.getLineMaxColumn(l)))}var c=n.getLineNumberAtVerticalOffset(n.getCurrentScrollTop()+(e.posy-t.y));return e.posxt.x+t.width?new _.MouseTarget(null,13,i,new d.Position(c,o.getLineMaxColumn(c))):null},t.prototype._findMousePosition=function(e,t){var o=this._getPositionOutsideEditor(e);if(o)return o;var n=this._createMouseTarget(e,t),i=n.position;if(!i)return null;if(8===n.type||5===n.type){var s=this._helpPositionJumpOverViewZone(n.detail);if(s)return new _.MouseTarget(n.element,n.type,n.mouseColumn,s,null,n.detail)}return n},t.prototype._helpPositionJumpOverViewZone=function(e){var t=new d.Position(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),o=e.positionBefore,n=e.positionAfter;return o&&n?o.isBefore(t)?o:n:null},t.prototype._dispatchMouse=function(e,t){e.position&&this._viewController.dispatchMouse({position:e.position,mouseColumn:e.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,inSelectionMode:t,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton})},t}(l.Disposable),y=function(){function e(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}return Object.defineProperty(e.prototype,"altKey",{get:function(){return this._altKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ctrlKey",{get:function(){return this._ctrlKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"metaKey",{get:function(){return this._metaKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shiftKey",{get:function(){return this._shiftKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"leftButton",{get:function(){return this._leftButton},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"middleButton",{get:function(){return this._middleButton},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startedOnLineNumbers",{get:function(){return this._startedOnLineNumbers},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"count",{get:function(){return this._lastMouseDownCount},enumerable:!0,configurable:!0}),e.prototype.setModifiers=function(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey},e.prototype.setStartButtons=function(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton},e.prototype.setStartedOnLineNumbers=function(e){this._startedOnLineNumbers=e},e.prototype.trySetCount=function(t,o){var n=(new Date).getTime();n-this._lastSetMouseDownCountTime>e.CLEAR_MOUSE_DOWN_COUNT_TIME&&(t=1),this._lastSetMouseDownCountTime=n,t>this._lastMouseDownCount+1&&(t=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(o)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=o,this._lastMouseDownCount=Math.min(t,this._lastMouseDownPositionEqualCount)},e.CLEAR_MOUSE_DOWN_COUNT_TIME=400,e}()}); ;/*!node_modules/monaco-editor/esm/vs/editor/browser/controller/pointerHandler.js*/ define("node_modules/monaco-editor/esm/vs/editor/browser/controller/pointerHandler",function(e,t){"use strict";function o(e,t){var o={translationY:t.translationY,translationX:t.translationX};return e&&(o.translationY+=e.translationY,o.translationX+=e.translationX),o}Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),r=this&&this.__extends||function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=n.__importStar(e("node_modules/monaco-editor/esm/vs/base/browser/dom")),s=e("node_modules/monaco-editor/esm/vs/base/browser/touch"),a=e("node_modules/monaco-editor/esm/vs/editor/browser/controller/mouseHandler"),l=e("node_modules/monaco-editor/esm/vs/editor/browser/editorDom"),u=function(e){function t(t,n,r){var s=e.call(this,t,n,r)||this;return s.viewHelper.linesContentDomNode.style.msTouchAction="none",s.viewHelper.linesContentDomNode.style.msContentZooming="none",s._installGestureHandlerTimeout=window.setTimeout(function(){if(s._installGestureHandlerTimeout=-1,window.MSGesture){var e=new MSGesture,t=new MSGesture;e.target=s.viewHelper.linesContentDomNode,t.target=s.viewHelper.linesContentDomNode,s.viewHelper.linesContentDomNode.addEventListener("MSPointerDown",function(o){var n=o.pointerType;return n===(o.MSPOINTER_TYPE_MOUSE||"mouse")?void(s._lastPointerType="mouse"):void(n===(o.MSPOINTER_TYPE_TOUCH||"touch")?(s._lastPointerType="touch",e.addPointer(o.pointerId)):(s._lastPointerType="pen",t.addPointer(o.pointerId)))}),s._register(i.addDisposableThrottledListener(s.viewHelper.linesContentDomNode,"MSGestureChange",function(e){return s._onGestureChange(e)},o)),s._register(i.addDisposableListener(s.viewHelper.linesContentDomNode,"MSGestureTap",function(e){return s._onCaptureGestureTap(e)},!0))}},100),s._lastPointerType="mouse",s}return r(t,e),t.prototype._onMouseDown=function(t){"mouse"===this._lastPointerType&&e.prototype._onMouseDown.call(this,t)},t.prototype._onCaptureGestureTap=function(e){var t=this,o=new l.EditorMouseEvent(e,this.viewHelper.viewDomNode),n=this._createMouseTarget(o,!1);n.position&&this.viewController.moveTo(n.position),o.browserEvent.fromElement?(o.preventDefault(),this.viewHelper.focusTextArea()):setTimeout(function(){t.viewHelper.focusTextArea()})},t.prototype._onGestureChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},t.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),e.prototype.dispose.call(this)},t}(a.MouseHandler),p=function(e){function t(t,n,r){var s=e.call(this,t,n,r)||this;return s.viewHelper.linesContentDomNode.style.touchAction="none",s._installGestureHandlerTimeout=window.setTimeout(function(){if(s._installGestureHandlerTimeout=-1,window.MSGesture){var e=new MSGesture,t=new MSGesture;e.target=s.viewHelper.linesContentDomNode,t.target=s.viewHelper.linesContentDomNode,s.viewHelper.linesContentDomNode.addEventListener("pointerdown",function(o){var n=o.pointerType;return"mouse"===n?void(s._lastPointerType="mouse"):void("touch"===n?(s._lastPointerType="touch",e.addPointer(o.pointerId)):(s._lastPointerType="pen",t.addPointer(o.pointerId)))}),s._register(i.addDisposableThrottledListener(s.viewHelper.linesContentDomNode,"MSGestureChange",function(e){return s._onGestureChange(e)},o)),s._register(i.addDisposableListener(s.viewHelper.linesContentDomNode,"MSGestureTap",function(e){return s._onCaptureGestureTap(e)},!0))}},100),s._lastPointerType="mouse",s}return r(t,e),t.prototype._onMouseDown=function(t){"mouse"===this._lastPointerType&&e.prototype._onMouseDown.call(this,t)},t.prototype._onCaptureGestureTap=function(e){var t=this,o=new l.EditorMouseEvent(e,this.viewHelper.viewDomNode),n=this._createMouseTarget(o,!1);n.position&&this.viewController.moveTo(n.position),o.browserEvent.fromElement?(o.preventDefault(),this.viewHelper.focusTextArea()):setTimeout(function(){t.viewHelper.focusTextArea()})},t.prototype._onGestureChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},t.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),e.prototype.dispose.call(this)},t}(a.MouseHandler),d=function(e){function t(t,o,n){var r=e.call(this,t,o,n)||this;return s.Gesture.addTarget(r.viewHelper.linesContentDomNode),r._register(i.addDisposableListener(r.viewHelper.linesContentDomNode,s.EventType.Tap,function(e){return r.onTap(e)})),r._register(i.addDisposableListener(r.viewHelper.linesContentDomNode,s.EventType.Change,function(e){return r.onChange(e)})),r._register(i.addDisposableListener(r.viewHelper.linesContentDomNode,s.EventType.Contextmenu,function(e){return r._onContextMenu(new l.EditorMouseEvent(e,r.viewHelper.viewDomNode),!1)})),r}return r(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.onTap=function(e){e.preventDefault(),this.viewHelper.focusTextArea();var t=this._createMouseTarget(new l.EditorMouseEvent(e,this.viewHelper.viewDomNode),!1);t.position&&this.viewController.moveTo(t.position)},t.prototype.onChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},t}(a.MouseHandler),c=function(){function e(e,t,o){this.handler=window.navigator.msPointerEnabled?new u(e,t,o):window.TouchEvent?new d(e,t,o):window.navigator.pointerEnabled||window.PointerEvent?new p(e,t,o):new a.MouseHandler(e,t,o)}return e.prototype.getTargetAtClientPoint=function(e,t){return this.handler.getTargetAtClientPoint(e,t)},e.prototype.dispose=function(){this.handler.dispose()},e}();t.PointerHandler=c}); ;/*!node_modules/monaco-editor/esm/vs/editor/browser/controller/textAreaState.js*/ define("node_modules/monaco-editor/esm/vs/editor/browser/controller/textAreaState",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),i=n.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/strings")),r=e("node_modules/monaco-editor/esm/vs/editor/common/core/position"),o=e("node_modules/monaco-editor/esm/vs/editor/common/core/range"),s=function(){function e(e,t,n,i,r){this.value=e,this.selectionStart=t,this.selectionEnd=n,this.selectionStartPosition=i,this.selectionEndPosition=r}return e.prototype.toString=function(){return"[ <"+this.value+">, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]"},e.readFromTextArea=function(t){return new e(t.getValue(),t.getSelectionStart(),t.getSelectionEnd(),null,null)},e.prototype.collapseSelection=function(){return new e(this.value,this.value.length,this.value.length,null,null)},e.prototype.writeToTextArea=function(e,t,n){t.setValue(e,this.value),n&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)},e.prototype.deduceEditorPosition=function(e){if(e<=this.selectionStart){var t=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,t,-1)}if(e>=this.selectionEnd){var t=this.value.substring(this.selectionEnd,e);return this._finishDeduceEditorPosition(this.selectionEndPosition,t,1)}var n=this.value.substring(this.selectionStart,e);if(-1===n.indexOf(String.fromCharCode(8230)))return this._finishDeduceEditorPosition(this.selectionStartPosition,n,1);var i=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,i,-1)},e.prototype._finishDeduceEditorPosition=function(e,t,n){for(var i=0,r=-1;-1!==(r=t.indexOf("\n",r+1));)i++;return[e,n*t.length,i]},e.selectedText=function(t){return new e(t,0,t.length,null,null)},e.deduceInput=function(e,t,n,r){if(!e)return{text:"",replaceCharCnt:0};var o=e.value,s=e.selectionStart,l=e.selectionEnd,a=t.value,u=t.selectionStart,g=t.selectionEnd;r&&o.length>0&&s===l&&u===g&&!i.startsWith(a,o)&&i.endsWith(a,o)&&(s=0,l=0);var c=o.substring(l),h=a.substring(g),d=i.commonSuffixLength(c,h);a=a.substring(0,a.length-d),o=o.substring(0,o.length-d);var f=o.substring(0,s),m=a.substring(0,u),E=i.commonPrefixLength(f,m);if(a=a.substring(E),o=o.substring(E),u-=E,s-=E,g-=E,l-=E,n&&u===g&&o.length>0){var v=null;if(u===a.length?i.startsWith(a,o)&&(v=a.substring(o.length)):i.endsWith(a,o)&&(v=a.substring(0,a.length-o.length)),null!==v&&v.length>0&&(/\uFE0F/.test(v)||i.containsEmoji(v)))return{text:v,replaceCharCnt:0}}if(u===g){if(o===a&&0===s&&l===o.length&&u===a.length&&-1===a.indexOf("\n")&&i.containsFullWidthCharacter(a))return{text:"",replaceCharCnt:0};var P=f.length-E;return{text:a,replaceCharCnt:P}}var S=l-s;return{text:a,replaceCharCnt:S}},e.EMPTY=new e("",0,0,null,null),e}();t.TextAreaState=s;var l=function(){function e(){}return e._getPageOfLine=function(t){return Math.floor((t-1)/e._LINES_PER_PAGE)},e._getRangeForPage=function(t){var n=t*e._LINES_PER_PAGE,i=n+1,r=n+e._LINES_PER_PAGE;return new o.Range(i,1,r+1,1)},e.fromEditorSelection=function(t,n,i,l){var a,u=e._getPageOfLine(i.startLineNumber),g=e._getRangeForPage(u),c=e._getPageOfLine(i.endLineNumber),h=e._getRangeForPage(c),d=g.intersectRanges(new o.Range(1,1,i.startLineNumber,i.startColumn)),f=n.getValueInRange(d,1),m=n.getLineCount(),E=n.getLineMaxColumn(m),v=h.intersectRanges(new o.Range(i.endLineNumber,i.endColumn,m,E)),P=n.getValueInRange(v,1);if(u===c||u+1===c)a=n.getValueInRange(i,1);else{var S=g.intersectRanges(i),_=h.intersectRanges(i);a=n.getValueInRange(S,1)+String.fromCharCode(8230)+n.getValueInRange(_,1)}if(l){var b=500;f.length>b&&(f=f.substring(f.length-b,f.length)),P.length>b&&(P=P.substring(0,b)),a.length>2*b&&(a=a.substring(0,b)+String.fromCharCode(8230)+a.substring(a.length-b,a.length))}return new s(f+a+P,f.length,f.length+a.length,new r.Position(i.startLineNumber,i.startColumn),new r.Position(i.endLineNumber,i.endColumn))},e._LINES_PER_PAGE=10,e}();t.PagedScreenReaderStrategy=l}); ;/*!node_modules/monaco-editor/esm/vs/editor/browser/controller/textAreaInput.js*/ define("node_modules/monaco-editor/esm/vs/editor/browser/controller/textAreaInput",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=e("node_modules/tslib/tslib"),n=this&&this.__extends||function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i=o.__importStar(e("node_modules/monaco-editor/esm/vs/base/browser/browser")),r=o.__importStar(e("node_modules/monaco-editor/esm/vs/base/browser/dom")),a=e("node_modules/monaco-editor/esm/vs/base/common/async"),s=e("node_modules/monaco-editor/esm/vs/base/common/event"),c=e("node_modules/monaco-editor/esm/vs/base/common/lifecycle"),d=o.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/platform")),l=o.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/strings")),_=e("node_modules/monaco-editor/esm/vs/editor/browser/controller/textAreaState"),u=e("node_modules/monaco-editor/esm/vs/editor/common/core/selection");t.CopyOptions={forceCopyWithSyntaxHighlighting:!1};var p=function(e){function o(t,o){var n=e.call(this)||this;n._onFocus=n._register(new s.Emitter),n.onFocus=n._onFocus.event,n._onBlur=n._register(new s.Emitter),n.onBlur=n._onBlur.event,n._onKeyDown=n._register(new s.Emitter),n.onKeyDown=n._onKeyDown.event,n._onKeyUp=n._register(new s.Emitter),n.onKeyUp=n._onKeyUp.event,n._onCut=n._register(new s.Emitter),n.onCut=n._onCut.event,n._onPaste=n._register(new s.Emitter),n.onPaste=n._onPaste.event,n._onType=n._register(new s.Emitter),n.onType=n._onType.event,n._onCompositionStart=n._register(new s.Emitter),n.onCompositionStart=n._onCompositionStart.event,n._onCompositionUpdate=n._register(new s.Emitter),n.onCompositionUpdate=n._onCompositionUpdate.event,n._onCompositionEnd=n._register(new s.Emitter),n.onCompositionEnd=n._onCompositionEnd.event,n._onSelectionChangeRequest=n._register(new s.Emitter),n.onSelectionChangeRequest=n._onSelectionChangeRequest.event,n._host=t,n._textArea=n._register(new g(o)),n._lastTextAreaEvent=0,n._asyncTriggerCut=n._register(new a.RunOnceScheduler(function(){return n._onCut.fire()},0)),n._textAreaState=_.TextAreaState.EMPTY,n.writeScreenReaderContent("ctor"),n._hasFocus=!1,n._isDoingComposition=!1,n._nextCommand=0,n._register(r.addStandardDisposableListener(o.domNode,"keydown",function(e){!n._isDoingComposition||109!==e.keyCode&&1!==e.keyCode||e.stopPropagation(),e.equals(9)&&e.preventDefault(),n._onKeyDown.fire(e)})),n._register(r.addStandardDisposableListener(o.domNode,"keyup",function(e){n._onKeyUp.fire(e)})),n._register(r.addDisposableListener(o.domNode,"compositionstart",function(){n._lastTextAreaEvent=1,n._isDoingComposition||(n._isDoingComposition=!0,i.isEdgeOrIE||n._setAndWriteTextAreaState("compositionstart",_.TextAreaState.EMPTY),n._onCompositionStart.fire())}));var c=function(e,t){var o=n._textAreaState,i=_.TextAreaState.readFromTextArea(n._textArea);return[i,_.TextAreaState.deduceInput(o,i,e,t)]},u=function(e){var t=n._textAreaState,o=_.TextAreaState.selectedText(e),i={text:o.value,replaceCharCnt:t.selectionEnd-t.selectionStart};return[o,i]},p=function(e){return i.isEdgeOrIE&&"ja"===e?!0:i.isIE&&0===e.indexOf("zh-Han")?!0:!1};return n._register(r.addDisposableListener(o.domNode,"compositionupdate",function(e){if(n._lastTextAreaEvent=2,p(e.locale)){var t=c(!1,!1),o=t[0],i=t[1];return n._textAreaState=o,n._onType.fire(i),void n._onCompositionUpdate.fire(e)}var r=u(e.data),a=r[0],s=r[1];n._textAreaState=a,n._onType.fire(s),n._onCompositionUpdate.fire(e)})),n._register(r.addDisposableListener(o.domNode,"compositionend",function(e){if(n._lastTextAreaEvent=3,p(e.locale)){var t=c(!1,!1),o=t[0],r=t[1];n._textAreaState=o,n._onType.fire(r)}else{var a=u(e.data),o=a[0],r=a[1];n._textAreaState=o,n._onType.fire(r)}(i.isEdgeOrIE||i.isChrome)&&(n._textAreaState=_.TextAreaState.readFromTextArea(n._textArea)),n._isDoingComposition&&(n._isDoingComposition=!1,n._onCompositionEnd.fire())})),n._register(r.addDisposableListener(o.domNode,"input",function(){var e=8===n._lastTextAreaEvent;if(n._lastTextAreaEvent=4,n._textArea.setIgnoreSelectionChangeTime("received input event"),!n._isDoingComposition){var t=c(d.isMacintosh,e&&d.isMacintosh),o=t[0],i=t[1];0===i.replaceCharCnt&&1===i.text.length&&l.isHighSurrogate(i.text.charCodeAt(0))||(n._textAreaState=o,0===n._nextCommand?""!==i.text&&n._onType.fire(i):(""!==i.text&&n._onPaste.fire({text:i.text}),n._nextCommand=0))}})),n._register(r.addDisposableListener(o.domNode,"cut",function(e){n._lastTextAreaEvent=5,n._textArea.setIgnoreSelectionChangeTime("received cut event"),n._ensureClipboardGetsEditorSelection(e),n._asyncTriggerCut.schedule()})),n._register(r.addDisposableListener(o.domNode,"copy",function(e){n._lastTextAreaEvent=6,n._ensureClipboardGetsEditorSelection(e)})),n._register(r.addDisposableListener(o.domNode,"paste",function(e){if(n._lastTextAreaEvent=7,n._textArea.setIgnoreSelectionChangeTime("received paste event"),m.canUseTextData(e)){var t=m.getTextData(e);""!==t&&n._onPaste.fire({text:t})}else n._textArea.getSelectionStart()!==n._textArea.getSelectionEnd()&&n._setAndWriteTextAreaState("paste",_.TextAreaState.EMPTY),n._nextCommand=1})),n._register(r.addDisposableListener(o.domNode,"focus",function(){n._lastTextAreaEvent=8,n._setHasFocus(!0)})),n._register(r.addDisposableListener(o.domNode,"blur",function(){n._lastTextAreaEvent=9,n._setHasFocus(!1)})),n}return n(o,e),o.prototype._installSelectionChangeListener=function(){var e=this,t=0;return r.addDisposableListener(document,"selectionchange",function(){if(e._hasFocus&&!e._isDoingComposition&&i.isChrome&&d.isWindows){var o=Date.now(),n=o-t;if(t=o,!(5>n)){var r=o-e._textArea.getIgnoreSelectionChangeTime();if(e._textArea.resetSelectionChangeTime(),!(100>r)&&e._textAreaState.selectionStartPosition&&e._textAreaState.selectionEndPosition){var a=e._textArea.getValue();if(e._textAreaState.value===a){var s=e._textArea.getSelectionStart(),c=e._textArea.getSelectionEnd();if(e._textAreaState.selectionStart!==s||e._textAreaState.selectionEnd!==c){var l=e._textAreaState.deduceEditorPosition(s),_=e._host.deduceModelPosition(l[0],l[1],l[2]),p=e._textAreaState.deduceEditorPosition(c),m=e._host.deduceModelPosition(p[0],p[1],p[2]),g=new u.Selection(_.lineNumber,_.column,m.lineNumber,m.column);e._onSelectionChangeRequest.fire(g)}}}}}})},o.prototype.dispose=function(){e.prototype.dispose.call(this),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)},o.prototype.focusTextArea=function(){this._setHasFocus(!0)},o.prototype.isFocused=function(){return this._hasFocus},o.prototype._setHasFocus=function(e){this._hasFocus!==e&&(this._hasFocus=e,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&(i.isEdge?this._setAndWriteTextAreaState("focusgain",_.TextAreaState.EMPTY):this.writeScreenReaderContent("focusgain")),this._hasFocus?this._onFocus.fire():this._onBlur.fire())},o.prototype._setAndWriteTextAreaState=function(e,t){this._hasFocus||(t=t.collapseSelection()),t.writeToTextArea(e,this._textArea,this._hasFocus),this._textAreaState=t},o.prototype.writeScreenReaderContent=function(e){this._isDoingComposition||this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent(this._textAreaState))},o.prototype._ensureClipboardGetsEditorSelection=function(e){var o=this._host.getPlainTextToCopy();if(!m.canUseTextData(e))return void this._setAndWriteTextAreaState("copy or cut",_.TextAreaState.selectedText(o));var n=null;i.hasClipboardSupport()&&(o.length<65536||t.CopyOptions.forceCopyWithSyntaxHighlighting)&&(n=this._host.getHTMLToCopy()),m.setTextData(e,o,n)},o}(c.Disposable);t.TextAreaInput=p;var m=function(){function e(){}return e.canUseTextData=function(e){return e.clipboardData?!0:window.clipboardData?!0:!1},e.getTextData=function(e){if(e.clipboardData)return e.preventDefault(),e.clipboardData.getData("text/plain");if(window.clipboardData)return e.preventDefault(),window.clipboardData.getData("Text");throw new Error("ClipboardEventUtils.getTextData: Cannot use text data!")},e.setTextData=function(e,t,o){if(e.clipboardData)return e.clipboardData.setData("text/plain",t),null!==o&&e.clipboardData.setData("text/html",o),void e.preventDefault();if(window.clipboardData)return window.clipboardData.setData("Text",t),void e.preventDefault();throw new Error("ClipboardEventUtils.setTextData: Cannot use text data!")},e}(),g=function(e){function t(t){var o=e.call(this)||this;return o._actual=t,o._ignoreSelectionChangeTime=0,o}return n(t,e),t.prototype.setIgnoreSelectionChangeTime=function(){this._ignoreSelectionChangeTime=Date.now()},t.prototype.getIgnoreSelectionChangeTime=function(){return this._ignoreSelectionChangeTime},t.prototype.resetSelectionChangeTime=function(){this._ignoreSelectionChangeTime=0},t.prototype.getValue=function(){return this._actual.domNode.value},t.prototype.setValue=function(e,t){var o=this._actual.domNode;o.value!==t&&(this.setIgnoreSelectionChangeTime("setValue"),o.value=t)},t.prototype.getSelectionStart=function(){return this._actual.domNode.selectionStart},t.prototype.getSelectionEnd=function(){return this._actual.domNode.selectionEnd},t.prototype.setSelectionRange=function(e,t,o){var n=this._actual.domNode,a=document.activeElement===n,s=n.selectionStart,c=n.selectionEnd;if(a&&s===t&&c===o)return void(i.isFirefox&&window.parent!==window&&n.focus());if(a)return this.setIgnoreSelectionChangeTime("setSelectionRange"),n.setSelectionRange(t,o),void(i.isFirefox&&window.parent!==window&&n.focus());try{var d=r.saveParentsScrollTop(n);this.setIgnoreSelectionChangeTime("setSelectionRange"),n.focus(),n.setSelectionRange(t,o),r.restoreParentsScrollTop(n,d)}catch(l){}},t}(c.Disposable)}); ;/*!node_modules/monaco-editor/esm/vs/editor/browser/view/dynamicViewOverlay.js*/ define("node_modules/monaco-editor/esm/vs/editor/browser/view/dynamicViewOverlay",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),o=e("node_modules/monaco-editor/esm/vs/editor/common/viewModel/viewEventHandler"),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(o.ViewEventHandler);t.DynamicViewOverlay=r}); ;/*!node_modules/monaco-editor/esm/vs/base/common/color.js*/ define("node_modules/monaco-editor/esm/vs/base/common/color",function(t,r){"use strict";function e(t,r){var e=Math.pow(10,r);return Math.round(t*e)/e}Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function t(t,r,a,n){void 0===n&&(n=1),this.r=0|Math.min(255,Math.max(0,t)),this.g=0|Math.min(255,Math.max(0,r)),this.b=0|Math.min(255,Math.max(0,a)),this.a=e(Math.max(Math.min(1,n),0),3)}return t.equals=function(t,r){return t.r===r.r&&t.g===r.g&&t.b===r.b&&t.a===r.a},t}();r.RGBA=a;var n=function(){function t(t,r,a,n){this.h=0|Math.max(Math.min(360,t),0),this.s=e(Math.max(Math.min(1,r),0),3),this.l=e(Math.max(Math.min(1,a),0),3),this.a=e(Math.max(Math.min(1,n),0),3)}return t.equals=function(t,r){return t.h===r.h&&t.s===r.s&&t.l===r.l&&t.a===r.a},t.fromRGBA=function(r){var e=r.r/255,a=r.g/255,n=r.b/255,o=r.a,i=Math.max(e,a,n),h=Math.min(e,a,n),u=0,s=0,c=(h+i)/2,l=i-h;if(l>0){switch(s=Math.min(.5>=c?l/(2*c):l/(2-2*c),1),i){case e:u=(a-n)/l+(n>a?6:0);break;case a:u=(n-e)/l+2;break;case n:u=(e-a)/l+4}u*=60,u=Math.round(u)}return new t(u,s,c,o)},t._hue2rgb=function(t,r,e){return 0>e&&(e+=1),e>1&&(e-=1),1/6>e?t+6*(r-t)*e:.5>e?r:2/3>e?t+(r-t)*(2/3-e)*6:t},t.toRGBA=function(r){var e,n,o,i=r.h/360,h=r.s,u=r.l,s=r.a;if(0===h)e=n=o=u;else{var c=.5>u?u*(1+h):u+h-u*h,l=2*u-c;e=t._hue2rgb(l,c,i+1/3),n=t._hue2rgb(l,c,i),o=t._hue2rgb(l,c,i-1/3)}return new a(Math.round(255*e),Math.round(255*n),Math.round(255*o),s)},t}();r.HSLA=n;var o=function(){function t(t,r,a,n){this.h=0|Math.max(Math.min(360,t),0),this.s=e(Math.max(Math.min(1,r),0),3),this.v=e(Math.max(Math.min(1,a),0),3),this.a=e(Math.max(Math.min(1,n),0),3)}return t.equals=function(t,r){return t.h===r.h&&t.s===r.s&&t.v===r.v&&t.a===r.a},t.fromRGBA=function(r){var e,a=r.r/255,n=r.g/255,o=r.b/255,i=Math.max(a,n,o),h=Math.min(a,n,o),u=i-h,s=0===i?0:u/i;return e=0===u?0:i===a?((n-o)/u%6+6)%6:i===n?(o-a)/u+2:(a-n)/u+4,new t(Math.round(60*e),s,i,r.a)},t.toRGBA=function(t){var r=t.h,e=t.s,n=t.v,o=t.a,i=n*e,h=i*(1-Math.abs(r/60%2-1)),u=n-i,s=[0,0,0],c=s[0],l=s[1],f=s[2];return 60>r?(c=i,l=h):120>r?(c=h,l=i):180>r?(l=i,f=h):240>r?(l=h,f=i):300>r?(c=h,f=i):360>r&&(c=i,f=h),c=Math.round(255*(c+u)),l=Math.round(255*(l+u)),f=Math.round(255*(f+u)),new a(c,l,f,o)},t}();r.HSVA=o;var i=function(){function t(t){if(!t)throw new Error("Color needs a value");if(t instanceof a)this.rgba=t;else if(t instanceof n)this._hsla=t,this.rgba=n.toRGBA(t);else{if(!(t instanceof o))throw new Error("Invalid color ctor argument");this._hsva=t,this.rgba=o.toRGBA(t)}}return t.fromHex=function(r){return t.Format.CSS.parseHex(r)||t.red},Object.defineProperty(t.prototype,"hsla",{get:function(){return this._hsla?this._hsla:n.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hsva",{get:function(){return this._hsva?this._hsva:o.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),t.prototype.equals=function(t){return!!t&&a.equals(this.rgba,t.rgba)&&n.equals(this.hsla,t.hsla)&&o.equals(this.hsva,t.hsva)},t.prototype.getRelativeLuminance=function(){var r=t._relativeLuminanceForComponent(this.rgba.r),a=t._relativeLuminanceForComponent(this.rgba.g),n=t._relativeLuminanceForComponent(this.rgba.b),o=.2126*r+.7152*a+.0722*n;return e(o,4)},t._relativeLuminanceForComponent=function(t){var r=t/255;return.03928>=r?r/12.92:Math.pow((r+.055)/1.055,2.4)},t.prototype.isLighter=function(){var t=(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3;return t>=128},t.prototype.isLighterThan=function(t){var r=this.getRelativeLuminance(),e=t.getRelativeLuminance();return r>e},t.prototype.isDarkerThan=function(t){var r=this.getRelativeLuminance(),e=t.getRelativeLuminance();return e>r},t.prototype.lighten=function(r){return new t(new n(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*r,this.hsla.a))},t.prototype.darken=function(r){return new t(new n(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*r,this.hsla.a))},t.prototype.transparent=function(r){var e=this.rgba,n=e.r,o=e.g,i=e.b,h=e.a;return new t(new a(n,o,i,h*r))},t.prototype.isTransparent=function(){return 0===this.rgba.a},t.prototype.isOpaque=function(){return 1===this.rgba.a},t.prototype.opposite=function(){return new t(new a(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))},t.prototype.toString=function(){return""+t.Format.CSS.format(this)},t.getLighterColor=function(t,r,e){if(t.isLighterThan(r))return t;e=e?e:.5;var a=t.getRelativeLuminance(),n=r.getRelativeLuminance();return e=e*(n-a)/n,t.lighten(e)},t.getDarkerColor=function(t,r,e){if(t.isDarkerThan(r))return t;e=e?e:.5;var a=t.getRelativeLuminance(),n=r.getRelativeLuminance();return e=e*(a-n)/a,t.darken(e)},t.white=new t(new a(255,255,255,1)),t.black=new t(new a(0,0,0,1)),t.red=new t(new a(255,0,0,1)),t.blue=new t(new a(0,0,255,1)),t.cyan=new t(new a(0,255,255,1)),t.lightgrey=new t(new a(211,211,211,1)),t.transparent=new t(new a(0,0,0,0)),t}();r.Color=i,function(t){var r;!function(r){var e;!function(r){function e(r){return 1===r.rgba.a?"rgb("+r.rgba.r+", "+r.rgba.g+", "+r.rgba.b+")":t.Format.CSS.formatRGBA(r)}function n(t){return"rgba("+t.rgba.r+", "+t.rgba.g+", "+t.rgba.b+", "+ +t.rgba.a.toFixed(2)+")"}function o(r){return 1===r.hsla.a?"hsl("+r.hsla.h+", "+(100*r.hsla.s).toFixed(2)+"%, "+(100*r.hsla.l).toFixed(2)+"%)":t.Format.CSS.formatHSLA(r)}function i(t){return"hsla("+t.hsla.h+", "+(100*t.hsla.s).toFixed(2)+"%, "+(100*t.hsla.l).toFixed(2)+"%, "+t.hsla.a.toFixed(2)+")"}function h(t){var r=t.toString(16);return 2!==r.length?"0"+r:r}function u(t){return"#"+h(t.rgba.r)+h(t.rgba.g)+h(t.rgba.b)}function s(r,e){return void 0===e&&(e=!1),e&&1===r.rgba.a?t.Format.CSS.formatHex(r):"#"+h(r.rgba.r)+h(r.rgba.g)+h(r.rgba.b)+h(Math.round(255*r.rgba.a))}function c(r){return r?r.isOpaque()?t.Format.CSS.formatHex(r):t.Format.CSS.formatRGBA(r):null}function l(r){if(!r)return null;var e=r.length;if(0===e)return null;if(35!==r.charCodeAt(0))return null;if(7===e){var n=16*f(r.charCodeAt(1))+f(r.charCodeAt(2)),o=16*f(r.charCodeAt(3))+f(r.charCodeAt(4)),i=16*f(r.charCodeAt(5))+f(r.charCodeAt(6));return new t(new a(n,o,i,1))}if(9===e){var n=16*f(r.charCodeAt(1))+f(r.charCodeAt(2)),o=16*f(r.charCodeAt(3))+f(r.charCodeAt(4)),i=16*f(r.charCodeAt(5))+f(r.charCodeAt(6)),h=16*f(r.charCodeAt(7))+f(r.charCodeAt(8));return new t(new a(n,o,i,h/255))}if(4===e){var n=f(r.charCodeAt(1)),o=f(r.charCodeAt(2)),i=f(r.charCodeAt(3));return new t(new a(16*n+n,16*o+o,16*i+i))}if(5===e){var n=f(r.charCodeAt(1)),o=f(r.charCodeAt(2)),i=f(r.charCodeAt(3)),h=f(r.charCodeAt(4));return new t(new a(16*n+n,16*o+o,16*i+i,(16*h+h)/255))}return null}function f(t){switch(t){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}r.formatRGB=e,r.formatRGBA=n,r.formatHSL=o,r.formatHSLA=i,r.formatHex=u,r.formatHexA=s,r.format=c,r.parseHex=l}(e=r.CSS||(r.CSS={}))}(r=t.Format||(t.Format={}))}(i||(r.Color=i={}))}); ;/*!node_modules/monaco-editor/esm/vs/platform/theme/common/colorRegistry.js*/ define("node_modules/monaco-editor/esm/vs/platform/theme/common/colorRegistry",function(o,r){"use strict";function e(o,r,e,t,i){return p.registerColor(o,r,e,t,i)}function t(o,r){return function(e){var t=a(o,e);return t?t.darken(r):void 0}}function i(o,r){return function(e){var t=a(o,e);return t?t.lighten(r):void 0}}function n(o,r){return function(e){var t=a(o,e);return t?t.transparent(r):void 0}}function l(){for(var o=[],r=0;r'+t+"":String(i)}return 3===this._renderLineNumbers?this._lastCursorModelPosition.lineNumber===t?String(t):t%10===0?String(t):"":String(t)},n.prototype.prepareRender=function(e){if(0===this._renderLineNumbers)return void(this._renderResult=null);for(var t=o.isLinux?this._lineHeight%2===0?" lh-even":" lh-odd":"",r=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,s='
',u=[],d=r;i>=d;d++){var l=d-r,a=this._getLineRenderLineNumber(d);u[l]=a?s+a+"
":""}this._renderResult=u},n.prototype.render=function(e,n){if(!this._renderResult)return"";var t=n-e;return 0>t||t>=this._renderResult.length?"":this._renderResult[t]},n.CLASS_NAME="line-numbers",n}(i.DynamicViewOverlay);n.LineNumbersOverlay=l,d.registerThemingParticipant(function(e,n){var t=e.getColor(u.editorLineNumbers);t&&n.addRule(".monaco-editor .line-numbers { color: "+t+"; }");var r=e.getColor(u.editorActiveLineNumber);r&&n.addRule(".monaco-editor .current-line ~ .line-numbers { color: "+r+"; }")})}); ;/*!node_modules/monaco-editor/esm/vs/editor/browser/viewParts/margin/margin.js*/ define("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/margin/margin",function(t,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var e=this&&this.__extends||function(){var t=function(o,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var e in o)o.hasOwnProperty(e)&&(t[e]=o[e])})(o,e)};return function(o,e){function n(){this.constructor=o}t(o,e),o.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),n=t("node_modules/monaco-editor/esm/vs/base/browser/fastDomNode"),i=t("node_modules/monaco-editor/esm/vs/editor/browser/view/viewPart"),r=function(t){function o(o){var e=t.call(this,o)||this;return e._canUseLayerHinting=e._context.configuration.editor.canUseLayerHinting,e._contentLeft=e._context.configuration.editor.layoutInfo.contentLeft,e._glyphMarginLeft=e._context.configuration.editor.layoutInfo.glyphMarginLeft,e._glyphMarginWidth=e._context.configuration.editor.layoutInfo.glyphMarginWidth,e._domNode=e._createDomNode(),e}return e(o,t),o.prototype.dispose=function(){t.prototype.dispose.call(this)},o.prototype.getDomNode=function(){return this._domNode},o.prototype._createDomNode=function(){var t=n.createFastDomNode(document.createElement("div"));return t.setClassName(o.OUTER_CLASS_NAME),t.setPosition("absolute"),t.setAttribute("role","presentation"),t.setAttribute("aria-hidden","true"),this._glyphMarginBackgroundDomNode=n.createFastDomNode(document.createElement("div")),this._glyphMarginBackgroundDomNode.setClassName(o.CLASS_NAME),t.appendChild(this._glyphMarginBackgroundDomNode),t},o.prototype.onConfigurationChanged=function(t){return t.canUseLayerHinting&&(this._canUseLayerHinting=this._context.configuration.editor.canUseLayerHinting),t.layoutInfo&&(this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft,this._glyphMarginLeft=this._context.configuration.editor.layoutInfo.glyphMarginLeft,this._glyphMarginWidth=this._context.configuration.editor.layoutInfo.glyphMarginWidth),!0},o.prototype.onScrollChanged=function(o){return t.prototype.onScrollChanged.call(this,o)||o.scrollTopChanged},o.prototype.prepareRender=function(){},o.prototype.render=function(t){this._domNode.setLayerHinting(this._canUseLayerHinting);var o=t.scrollTop-t.bigNumbersDelta;this._domNode.setTop(-o);var e=Math.min(t.scrollHeight,1e6);this._domNode.setHeight(e),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(e)},o.CLASS_NAME="glyph-margin",o.OUTER_CLASS_NAME="margin",o}(i.ViewPart);o.Margin=r}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/controller/wordCharacterClassifier.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/controller/wordCharacterClassifier",function(r,t){"use strict";function e(r){var t={};return function(e){return t.hasOwnProperty(e)||(t[e]=r(e)),t[e]}}Object.defineProperty(t,"__esModule",{value:!0});var o=this&&this.__extends||function(){var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var e in t)t.hasOwnProperty(e)&&(r[e]=t[e])})(t,e)};return function(t,e){function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}}(),n=r("node_modules/monaco-editor/esm/vs/editor/common/core/characterClassifier"),i=function(r){function t(t){for(var e=r.call(this,0)||this,o=0,n=t.length;n>o;o++)e.set(t.charCodeAt(o),2);return e.set(32,1),e.set(9,1),e}return o(t,r),t}(n.CharacterClassifier);t.WordCharacterClassifier=i,t.getMapForWordSeparators=e(function(r){return new i(r)})}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/view/viewEvents.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/view/viewEvents",function(t,e){"use strict";function n(t,e){try{t(e)}catch(n){r.onUnexpectedError(n)}}Object.defineProperty(e,"__esModule",{value:!0});var i=t("node_modules/tslib/tslib"),o=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=i.__importStar(t("node_modules/monaco-editor/esm/vs/base/common/errors")),s=t("node_modules/monaco-editor/esm/vs/base/common/lifecycle"),c=function(){function t(t){this.type=1,this.canUseLayerHinting=t.canUseLayerHinting,this.pixelRatio=t.pixelRatio,this.editorClassName=t.editorClassName,this.lineHeight=t.lineHeight,this.readOnly=t.readOnly,this.accessibilitySupport=t.accessibilitySupport,this.emptySelectionClipboard=t.emptySelectionClipboard,this.copyWithSyntaxHighlighting=t.copyWithSyntaxHighlighting,this.layoutInfo=t.layoutInfo,this.fontInfo=t.fontInfo,this.viewInfo=t.viewInfo,this.wrappingInfo=t.wrappingInfo}return t}();e.ViewConfigurationChangedEvent=c;var h=function(){function t(t){this.type=2,this.selections=t}return t}();e.ViewCursorStateChangedEvent=h;var l=function(){function t(){this.type=3}return t}();e.ViewDecorationsChangedEvent=l;var u=function(){function t(){this.type=4}return t}();e.ViewFlushedEvent=u;var a=function(){function t(t){this.type=5,this.isFocused=t}return t}();e.ViewFocusChangedEvent=a;var f=function(){function t(){this.type=6}return t}();e.ViewLineMappingChangedEvent=f;var p=function(){function t(t,e){this.type=7,this.fromLineNumber=t,this.toLineNumber=e}return t}();e.ViewLinesChangedEvent=p;var v=function(){function t(t,e){this.type=8,this.fromLineNumber=t,this.toLineNumber=e}return t}();e.ViewLinesDeletedEvent=v;var d=function(){function t(t,e){this.type=9,this.fromLineNumber=t,this.toLineNumber=e}return t}();e.ViewLinesInsertedEvent=d;var y=function(){function t(t,e,n,i){this.type=10,this.range=t,this.verticalType=e,this.revealHorizontal=n,this.scrollType=i}return t}();e.ViewRevealRangeRequestEvent=y;var g=function(){function t(t){this.type=11,this.scrollWidth=t.scrollWidth,this.scrollLeft=t.scrollLeft,this.scrollHeight=t.scrollHeight,this.scrollTop=t.scrollTop,this.scrollWidthChanged=t.scrollWidthChanged,this.scrollLeftChanged=t.scrollLeftChanged,this.scrollHeightChanged=t.scrollHeightChanged,this.scrollTopChanged=t.scrollTopChanged}return t}();e.ViewScrollChangedEvent=g;var _=function(){function t(t){this.type=12,this.ranges=t}return t}();e.ViewTokensChangedEvent=_;var m=function(){function t(){this.type=15}return t}();e.ViewThemeChangedEvent=m;var C=function(){function t(){this.type=13}return t}();e.ViewTokensColorsChangedEvent=C;var w=function(){function t(){this.type=14}return t}();e.ViewZonesChangedEvent=w;var E=function(){function t(){this.type=16}return t}();e.ViewLanguageConfigurationEvent=E;var b=function(t){function e(){var e=t.call(this)||this;return e._listeners=[],e._collector=null,e._collectorCnt=0,e}return o(e,t),e.prototype.dispose=function(){this._listeners=[],t.prototype.dispose.call(this)},e.prototype._beginEmit=function(){return this._collectorCnt++,1===this._collectorCnt&&(this._collector=new L),this._collector},e.prototype._endEmit=function(){if(this._collectorCnt--,0===this._collectorCnt){var t=this._collector.finalize();this._collector=null,t.length>0&&this._emit(t)}},e.prototype._emit=function(t){for(var e=this._listeners.slice(0),i=0,o=e.length;o>i;i++)n(e[i],t)},e.prototype.addEventListener=function(t){var e=this;return this._listeners.push(t),s.toDisposable(function(){for(var n=e._listeners,i=0,o=n.length;o>i;i++)if(n[i]===t){n.splice(i,1);break}})},e}(s.Disposable);e.ViewEventEmitter=b;var L=function(){function t(){this._eventsLen=0,this._events=[],this._eventsLen=0}return t.prototype.emit=function(t){this._events[this._eventsLen++]=t},t.prototype.finalize=function(){var t=this._events;return this._events=[],t},t}();e.ViewEventsCollector=L}); ;/*!node_modules/monaco-editor/esm/vs/editor/browser/controller/textAreaHandler.js*/ define("node_modules/monaco-editor/esm/vs/editor/browser/controller/textAreaHandler",function(t,e){"use strict";function o(t,e){var o=document.createElement("canvas"),i=o.getContext("2d");i.font=n(e);var r=i.measureText(t);return a.isFirefox?r.width+2:r.width}function n(t){return i("normal",t.fontWeight,t.fontSize,t.lineHeight,t.fontFamily)}function i(t,e,o,n,i){return t+" normal "+e+" "+o+"px / "+n+"px "+i}Object.defineProperty(e,"__esModule",{value:!0});var r=t("node_modules/tslib/tslib"),s=this&&this.__extends||function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),a=r.__importStar(t("node_modules/monaco-editor/esm/vs/base/browser/browser")),l=t("node_modules/monaco-editor/esm/vs/base/browser/fastDomNode"),c=r.__importStar(t("node_modules/monaco-editor/esm/vs/base/common/platform")),u=r.__importStar(t("node_modules/monaco-editor/esm/vs/base/common/strings")),p=t("node_modules/monaco-editor/esm/vs/editor/browser/config/configuration"),d=t("node_modules/monaco-editor/esm/vs/editor/browser/controller/textAreaInput"),_=t("node_modules/monaco-editor/esm/vs/editor/browser/controller/textAreaState"),f=t("node_modules/monaco-editor/esm/vs/editor/browser/view/viewPart"),h=t("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/lineNumbers/lineNumbers"),m=t("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/margin/margin"),g=t("node_modules/monaco-editor/esm/vs/editor/common/controller/wordCharacterClassifier"),y=t("node_modules/monaco-editor/esm/vs/editor/common/core/position"),x=t("node_modules/monaco-editor/esm/vs/editor/common/core/range"),v=t("node_modules/monaco-editor/esm/vs/editor/common/core/selection"),b=r.__importStar(t("node_modules/monaco-editor/esm/vs/editor/common/view/viewEvents")),A=function(){function t(t,e,o){this.top=t,this.left=e,this.width=o}return t.prototype.setWidth=function(e){return new t(this.top,this.left,e)},t}(),C=a.isEdgeOrIE||a.isFirefox,w=function(){function t(){this._lastState=null}return t.prototype.set=function(t){this._lastState=t},t.prototype.get=function(t){return this._lastState&&this._lastState.lastCopiedValue===t?this._lastState:(this._lastState=null,null)},t.INSTANCE=new t,t}(),S=function(t){function e(e,n,i){var r=t.call(this,e)||this;r._primaryCursorVisibleRange=null,r._viewController=n,r._viewHelper=i;var s=r._context.configuration.editor;r._accessibilitySupport=s.accessibilitySupport,r._contentLeft=s.layoutInfo.contentLeft,r._contentWidth=s.layoutInfo.contentWidth,r._contentHeight=s.layoutInfo.contentHeight,r._scrollLeft=0,r._scrollTop=0,r._fontInfo=s.fontInfo,r._lineHeight=s.lineHeight,r._emptySelectionClipboard=s.emptySelectionClipboard,r._copyWithSyntaxHighlighting=s.copyWithSyntaxHighlighting,r._visibleTextArea=null,r._selections=[new v.Selection(1,1,1,1)],r.textArea=l.createFastDomNode(document.createElement("textarea")),f.PartFingerprints.write(r.textArea,6),r.textArea.setClassName("inputarea"),r.textArea.setAttribute("wrap","off"),r.textArea.setAttribute("autocorrect","off"),r.textArea.setAttribute("autocapitalize","off"),r.textArea.setAttribute("autocomplete","off"),r.textArea.setAttribute("spellcheck","false"),r.textArea.setAttribute("aria-label",s.viewInfo.ariaLabel),r.textArea.setAttribute("role","textbox"),r.textArea.setAttribute("aria-multiline","true"),r.textArea.setAttribute("aria-haspopup","false"),r.textArea.setAttribute("aria-autocomplete","both"),r.textAreaCover=l.createFastDomNode(document.createElement("div")),r.textAreaCover.setPosition("absolute");var u={getLineCount:function(){return r._context.model.getLineCount()},getLineMaxColumn:function(t){return r._context.model.getLineMaxColumn(t)},getValueInRange:function(t,e){return r._context.model.getValueInRange(t,e)}},p={getPlainTextToCopy:function(){var t=r._context.model.getPlainTextToCopy(r._selections,r._emptySelectionClipboard,c.isWindows),e=r._context.model.getEOL(),o=r._emptySelectionClipboard&&1===r._selections.length&&r._selections[0].isEmpty(),n=Array.isArray(t)?t:null,i=Array.isArray(t)?t.join(e):t,s=null;if(o||n){var l=a.isFirefox?i.replace(/\r\n/g,"\n"):i;s={lastCopiedValue:l,isFromEmptySelection:r._emptySelectionClipboard&&1===r._selections.length&&r._selections[0].isEmpty(),multicursorText:n}}return w.INSTANCE.set(s),i},getHTMLToCopy:function(){return r._copyWithSyntaxHighlighting||d.CopyOptions.forceCopyWithSyntaxHighlighting?r._context.model.getHTMLToCopy(r._selections,r._emptySelectionClipboard):null},getScreenReaderContent:function(t){if(a.isIPad)return _.TextAreaState.EMPTY;if(1===r._accessibilitySupport){if(c.isMacintosh){var e=r._selections[0];if(e.isEmpty()){var o=e.getStartPosition(),n=r._getWordBeforePosition(o);if(0===n.length&&(n=r._getCharacterBeforePosition(o)),n.length>0)return new _.TextAreaState(n,n.length,n.length,o,o)}}return _.TextAreaState.EMPTY}return _.PagedScreenReaderStrategy.fromEditorSelection(t,u,r._selections[0],0===r._accessibilitySupport)},deduceModelPosition:function(t,e,o){return r._context.model.deduceModelPositionRelativeToViewPosition(t,e,o)}};return r._textAreaInput=r._register(new d.TextAreaInput(p,r.textArea)),r._register(r._textAreaInput.onKeyDown(function(t){r._viewController.emitKeyDown(t)})),r._register(r._textAreaInput.onKeyUp(function(t){r._viewController.emitKeyUp(t)})),r._register(r._textAreaInput.onPaste(function(t){var e=w.INSTANCE.get(t.text),o=!1,n=null;e&&(o=r._emptySelectionClipboard&&e.isFromEmptySelection,n=e.multicursorText),r._viewController.paste("keyboard",t.text,o,n)})),r._register(r._textAreaInput.onCut(function(){r._viewController.cut("keyboard")})),r._register(r._textAreaInput.onType(function(t){t.replaceCharCnt?r._viewController.replacePreviousChar("keyboard",t.text,t.replaceCharCnt):r._viewController.type("keyboard",t.text)})),r._register(r._textAreaInput.onSelectionChangeRequest(function(t){r._viewController.setSelection("keyboard",t)})),r._register(r._textAreaInput.onCompositionStart(function(){var t=r._selections[0].startLineNumber,e=r._selections[0].startColumn;r._context.privateViewEventBus.emit(new b.ViewRevealRangeRequestEvent(new x.Range(t,e,t,e),0,!0,1));var o=r._viewHelper.visibleRangeForPositionRelativeToEditor(t,e);o&&(r._visibleTextArea=new A(r._context.viewLayout.getVerticalOffsetForLineNumber(t),o.left,C?0:1),r._render()),r.textArea.setClassName("inputarea ime-input"),r._viewController.compositionStart("keyboard")})),r._register(r._textAreaInput.onCompositionUpdate(function(t){r._visibleTextArea=r._visibleTextArea.setWidth(a.isEdgeOrIE?0:o(t.data,r._fontInfo)),r._render()})),r._register(r._textAreaInput.onCompositionEnd(function(){r._visibleTextArea=null,r._render(),r.textArea.setClassName("inputarea"),r._viewController.compositionEnd("keyboard")})),r._register(r._textAreaInput.onFocus(function(){r._context.privateViewEventBus.emit(new b.ViewFocusChangedEvent(!0))})),r._register(r._textAreaInput.onBlur(function(){r._context.privateViewEventBus.emit(new b.ViewFocusChangedEvent(!1))})),r}return s(e,t),e.prototype.dispose=function(){t.prototype.dispose.call(this)},e.prototype._getWordBeforePosition=function(t){for(var e=this._context.model.getLineContent(t.lineNumber),o=g.getMapForWordSeparators(this._context.configuration.editor.wordSeparators),n=t.column,i=0;n>1;){var r=e.charCodeAt(n-2),s=o.get(r);if(0!==s||i>50)return e.substring(n-1,t.column-1);i++,n--}return e.substring(0,t.column-1)},e.prototype._getCharacterBeforePosition=function(t){if(t.column>1){var e=this._context.model.getLineContent(t.lineNumber),o=e.charAt(t.column-2);if(!u.isHighSurrogate(o.charCodeAt(0)))return o}return""},e.prototype.onConfigurationChanged=function(t){var e=this._context.configuration.editor;return t.fontInfo&&(this._fontInfo=e.fontInfo),t.viewInfo&&this.textArea.setAttribute("aria-label",e.viewInfo.ariaLabel),t.layoutInfo&&(this._contentLeft=e.layoutInfo.contentLeft,this._contentWidth=e.layoutInfo.contentWidth,this._contentHeight=e.layoutInfo.contentHeight),t.lineHeight&&(this._lineHeight=e.lineHeight),t.accessibilitySupport&&(this._accessibilitySupport=e.accessibilitySupport,this._textAreaInput.writeScreenReaderContent("strategy changed")),t.emptySelectionClipboard&&(this._emptySelectionClipboard=e.emptySelectionClipboard),t.copyWithSyntaxHighlighting&&(this._copyWithSyntaxHighlighting=e.copyWithSyntaxHighlighting),!0},e.prototype.onCursorStateChanged=function(t){return this._selections=t.selections.slice(0),this._textAreaInput.writeScreenReaderContent("selection changed"),!0},e.prototype.onDecorationsChanged=function(){return!0},e.prototype.onFlushed=function(){return!0},e.prototype.onLinesChanged=function(){return!0},e.prototype.onLinesDeleted=function(){return!0},e.prototype.onLinesInserted=function(){return!0},e.prototype.onScrollChanged=function(t){return this._scrollLeft=t.scrollLeft,this._scrollTop=t.scrollTop,!0},e.prototype.onZonesChanged=function(){return!0},e.prototype.isFocused=function(){return this._textAreaInput.isFocused()},e.prototype.focusTextArea=function(){this._textAreaInput.focusTextArea()},e.prototype.prepareRender=function(t){if(2===this._accessibilitySupport)this._primaryCursorVisibleRange=null;else{var e=new y.Position(this._selections[0].positionLineNumber,this._selections[0].positionColumn);this._primaryCursorVisibleRange=t.visibleRangeForPosition(e)}},e.prototype.render=function(){this._textAreaInput.writeScreenReaderContent("render"),this._render()},e.prototype._render=function(){if(this._visibleTextArea)return void this._renderInsideEditor(this._visibleTextArea.top-this._scrollTop,this._contentLeft+this._visibleTextArea.left-this._scrollLeft,this._visibleTextArea.width,this._lineHeight,!0);if(!this._primaryCursorVisibleRange)return void this._renderAtTopLeft();var t=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(tthis._contentLeft+this._contentWidth)return void this._renderAtTopLeft();var e=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;return 0>e||e>this._contentHeight?void this._renderAtTopLeft():void this._renderInsideEditor(e,t,C?0:1,C?0:1,!1)},e.prototype._renderInsideEditor=function(t,e,o,n,i){var r=this.textArea,s=this.textAreaCover;i?p.Configuration.applyFontInfo(r,this._fontInfo):(r.setFontSize(1),r.setLineHeight(this._fontInfo.lineHeight)),r.setTop(t),r.setLeft(e),r.setWidth(o),r.setHeight(n),s.setTop(0),s.setLeft(0),s.setWidth(0),s.setHeight(0)},e.prototype._renderAtTopLeft=function(){var t=this.textArea,e=this.textAreaCover;return p.Configuration.applyFontInfo(t,this._fontInfo),t.setTop(0),t.setLeft(0),e.setTop(0),e.setLeft(0),C?(t.setWidth(0),t.setHeight(0),e.setWidth(0),void e.setHeight(0)):(t.setWidth(1),t.setHeight(1),e.setWidth(1),e.setHeight(1),void e.setClassName(this._context.configuration.editor.viewInfo.glyphMargin?"monaco-editor-background textAreaCover "+m.Margin.OUTER_CLASS_NAME:0!==this._context.configuration.editor.viewInfo.renderLineNumbers?"monaco-editor-background textAreaCover "+h.LineNumbersOverlay.CLASS_NAME:"monaco-editor-background textAreaCover"))},e}(f.ViewPart);e.TextAreaHandler=S}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/model/editStack.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/model/editStack",function(t,e){"use strict";function r(t){var e=t.getEOL();return"\n"===e?0:1}Object.defineProperty(e,"__esModule",{value:!0});var n=t("node_modules/monaco-editor/esm/vs/base/common/errors"),o=function(){function t(t,e){this.beforeVersionId=t,this.beforeCursorState=e,this.afterCursorState=null,this.afterVersionId=-1,this.editOperations=[]}return t.prototype.undo=function(t){for(var e=this.editOperations.length-1;e>=0;e--)this.editOperations[e]={operations:t.applyEdits(this.editOperations[e].operations)}},t.prototype.redo=function(t){for(var e=0;e0){var t=this.past.pop();try{t.undo(this.model)}catch(e){return n.onUnexpectedError(e),this.clear(),null}return this.future.push(t),{selections:t.beforeCursorState,recordedVersionId:t.beforeVersionId}}return null},t.prototype.canUndo=function(){return this.past.length>0||null!==this.currentOpenStackElement},t.prototype.redo=function(){if(this.future.length>0){var t=this.future.pop();try{t.redo(this.model)}catch(e){return n.onUnexpectedError(e),this.clear(),null}return this.past.push(t),{selections:t.afterCursorState,recordedVersionId:t.afterVersionId}}return null},t.prototype.canRedo=function(){return this.future.length>0},t}();e.EditStack=i}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/model/indentationGuesser.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/model/indentationGuesser",function(e,n){"use strict";function o(e,n,o,r,t){t.spacesDiff=0,t.looksLikeAlignment=!1;var a;for(a=0;n>a&&r>a;a++){var i=e.charCodeAt(a),f=o.charCodeAt(a);if(i!==f)break}for(var s=0,c=0,d=a;n>d;d++){var i=e.charCodeAt(d);32===i?s++:c++}for(var v=0,u=0,d=a;r>d;d++){var f=o.charCodeAt(d);32===f?v++:u++}if(!(s>0&&c>0||v>0&&u>0)){var h=Math.abs(c-u),l=Math.abs(s-v);return 0===h?(t.spacesDiff=l,void(l>0&&v-1>=0&&v-1=l;l++){for(var g=e.getLineLength(l),C=e.getLineContent(l),m=65536>=g,A=!1,k=0,L=0,b=0,p=0,D=g;D>p;p++){var M=m?C.charCodeAt(p):e.getLineCharCode(l,p);if(9===M)b++;else{if(32!==M){A=!0,k=p;break}L++}}if(A&&(b>0?i++:L>1&&f++,o(s,c,C,k,h),!h.looksLikeAlignment)){var _=h.spacesDiff;v>=_&&u[_]++,s=C,c=k}}var S=r;i!==f&&(S=f>i);var j=n,w=S?0:.1*a;return d.forEach(function(e){var n=u[e];n>w&&(w=n,j=e)}),4===j&&u[4]>0&&u[2]>0&&u[2]>=u[4]/2&&(j=2),{insertSpaces:S,tabSize:j}}Object.defineProperty(n,"__esModule",{value:!0});var t=function(){function e(){}return e}();n.guessIndentation=r}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/model/intervalTree.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/model/intervalTree",function(t,e){"use strict";function r(t){return(1&t.metadata)>>>0}function a(t,e){t.metadata=254&t.metadata|e<<0}function n(t){return(2&t.metadata)>>>1===1}function i(t,e){t.metadata=253&t.metadata|(e?1:0)<<1}function o(t){return(4&t.metadata)>>>2===1}function l(t,e){t.metadata=251&t.metadata|(e?1:0)<<2}function s(t){return(8&t.metadata)>>>3===1}function f(t,e){t.metadata=247&t.metadata|(e?1:0)<<3}function h(t){return(48&t.metadata)>>>4}function d(t,e){t.metadata=207&t.metadata|e<<4}function p(t){return(64&t.metadata)>>>6===1}function N(t,e){t.metadata=191&t.metadata|(e?1:0)<<6}function E(t){for(var r=t.root,a=0;r!==e.SENTINEL;)r.left===e.SENTINEL||n(r.left)?r.right===e.SENTINEL||n(r.right)?(r.start=a+r.start,r.end=a+r.end,r.delta=0,O(r),i(r,!0),i(r.left,!1),i(r.right,!1),r===r.parent.right&&(a-=r.parent.delta),r=r.parent):(a+=r.delta,r=r.right):r=r.left;i(t.root,!1)}function u(t,e,r,a){return r>t?!0:t>r?!1:1===a?!1:2===a?!0:e}function c(t,e,r,a,n){var i=h(t),o=0===i||2===i,l=1===i||2===i,s=r-e,f=a,d=Math.min(s,f),N=t.start,E=!1,c=t.end,g=!1;N>=e&&r>=c&&p(t)&&(t.start=e,E=!0,t.end=e,g=!0);var I=n?1:s>0?2:0;if(!E&&u(N,o,e,I)&&(E=!0),!g&&u(c,l,e,I)&&(g=!0),d>0&&!n){var I=s>f?2:0;!E&&u(N,o,e+d,I)&&(E=!0),!g&&u(c,l,e+d,I)&&(g=!0)}var I=n?1:0;!E&&u(N,o,r,I)&&(t.start=e+f,E=!0),!g&&u(c,l,r,I)&&(t.end=e+f,g=!0);var S=f-s;E||(t.start=Math.max(0,N+S)),g||(t.end=Math.max(0,c+S)),t.start>t.end&&(t.end=t.start)}function g(t,r,a){for(var o=t.root,l=0,s=0,f=0,h=0,d=[],p=0;o!==e.SENTINEL;)if(n(o))i(o.left,!1),i(o.right,!1),o===o.parent.right&&(l-=o.parent.delta),o=o.parent;else{if(!n(o.left)){if(s=l+o.maxEnd,r>s){i(o,!0);continue}if(o.left!==e.SENTINEL){o=o.left;continue}}f=l+o.start,f>a?i(o,!0):(h=l+o.end,h>=r&&(o.setCachedOffsets(f,h,0),d[p++]=o),i(o,!0),o.right===e.SENTINEL||n(o.right)||(l+=o.delta,o=o.right))}return i(t.root,!1),d}function I(t,r,a,o){for(var l=t.root,s=0,f=0,h=0,d=o-(a-r);l!==e.SENTINEL;)if(n(l))i(l.left,!1),i(l.right,!1),l===l.parent.right&&(s-=l.parent.delta),O(l),l=l.parent;else{if(!n(l.left)){if(f=s+l.maxEnd,r>f){i(l,!0);continue}if(l.left!==e.SENTINEL){l=l.left;continue}}h=s+l.start,h>a?(l.start+=d,l.end+=d,l.delta+=d,(l.delta<-1073741824||l.delta>1073741824)&&(t.requestNormalizeDelta=!0),i(l,!0)):(i(l,!0),l.right===e.SENTINEL||n(l.right)||(s+=l.delta,l=l.right))}i(t.root,!1)}function S(t,r){for(var a=t.root,o=[],l=0;a!==e.SENTINEL;)n(a)?(i(a.left,!1),i(a.right,!1),a=a.parent):a.left===e.SENTINEL||n(a.left)?(a.ownerId===r&&(o[l++]=a),i(a,!0),a.right===e.SENTINEL||n(a.right)||(a=a.right)):a=a.left;return i(t.root,!1),o}function m(t){for(var r=t.root,a=[],o=0;r!==e.SENTINEL;)n(r)?(i(r.left,!1),i(r.right,!1),r=r.parent):r.left===e.SENTINEL||n(r.left)?r.right===e.SENTINEL||n(r.right)?(a[o++]=r,i(r,!0)):r=r.right:r=r.left;return i(t.root,!1),a}function T(t,r,a,l){for(var s=t.root,f=0,h=0,d=0,p=[],N=0;s!==e.SENTINEL;)if(n(s))i(s.left,!1),i(s.right,!1),s===s.parent.right&&(f-=s.parent.delta),s=s.parent;else if(s.left===e.SENTINEL||n(s.left)){h=f+s.start,d=f+s.end,s.setCachedOffsets(h,d,l);var E=!0;r&&s.ownerId&&s.ownerId!==r&&(E=!1),a&&o(s)&&(E=!1),E&&(p[N++]=s),i(s,!0),s.right===e.SENTINEL||n(s.right)||(f+=s.delta,s=s.right)}else s=s.left;return i(t.root,!1),p}function L(t,r,a,l,s,f){for(var h=t.root,d=0,p=0,N=0,E=0,u=[],c=0;h!==e.SENTINEL;)if(n(h))i(h.left,!1),i(h.right,!1),h===h.parent.right&&(d-=h.parent.delta),h=h.parent;else{if(!n(h.left)){if(p=d+h.maxEnd,r>p){i(h,!0);continue}if(h.left!==e.SENTINEL){h=h.left;continue}}if(N=d+h.start,N>a)i(h,!0);else{if(E=d+h.end,E>=r){h.setCachedOffsets(N,E,f);var g=!0;l&&h.ownerId&&h.ownerId!==l&&(g=!1),s&&o(h)&&(g=!1),g&&(u[c++]=h)}i(h,!0),h.right===e.SENTINEL||n(h.right)||(d+=h.delta,h=h.right)}}return i(t.root,!1),u}function v(t,n){if(t.root===e.SENTINEL)return n.parent=e.SENTINEL,n.left=e.SENTINEL,n.right=e.SENTINEL,a(n,0),t.root=n,t.root;y(t,n),A(n.parent);for(var i=n;i!==t.root&&1===r(i.parent);)if(i.parent===i.parent.parent.left){var o=i.parent.parent.right;1===r(o)?(a(i.parent,0),a(o,0),a(i.parent.parent,1),i=i.parent.parent):(i===i.parent.right&&(i=i.parent,q(t,i)),a(i.parent,0),a(i.parent.parent,1),w(t,i.parent.parent))}else{var o=i.parent.parent.left;1===r(o)?(a(i.parent,0),a(o,0),a(i.parent.parent,1),i=i.parent.parent):(i===i.parent.left&&(i=i.parent,w(t,i)),a(i.parent,0),a(i.parent.parent,1),q(t,i.parent.parent))}return a(t.root,0),n}function y(t,r){for(var n=0,i=t.root,o=r.start,l=r.end;;){var s=_(o,l,i.start+n,i.end+n);if(0>s){if(i.left===e.SENTINEL){r.start-=n,r.end-=n,r.maxEnd-=n,i.left=r;break}i=i.left}else{if(i.right===e.SENTINEL){r.start-=n+i.delta,r.end-=n+i.delta,r.maxEnd-=n+i.delta,i.right=r;break}n+=i.delta,i=i.right}}r.parent=i,r.left=e.SENTINEL,r.right=e.SENTINEL,a(r,1)}function x(t,n){var i,o;if(n.left===e.SENTINEL?(i=n.right,o=n,i.delta+=n.delta,(i.delta<-1073741824||i.delta>1073741824)&&(t.requestNormalizeDelta=!0),i.start+=n.delta,i.end+=n.delta):n.right===e.SENTINEL?(i=n.left,o=n):(o=z(n.right),i=o.right,i.start+=o.delta,i.end+=o.delta,i.delta+=o.delta,(i.delta<-1073741824||i.delta>1073741824)&&(t.requestNormalizeDelta=!0),o.start+=n.delta,o.end+=n.delta,o.delta=n.delta,(o.delta<-1073741824||o.delta>1073741824)&&(t.requestNormalizeDelta=!0)),o===t.root)return t.root=i,a(i,0),n.detach(),D(),O(i),void(t.root.parent=e.SENTINEL);var l=1===r(o);if(o===o.parent.left?o.parent.left=i:o.parent.right=i,o===n?i.parent=o.parent:(i.parent=o.parent===n?o:o.parent,o.left=n.left,o.right=n.right,o.parent=n.parent,a(o,r(n)),n===t.root?t.root=o:n===n.parent.left?n.parent.left=o:n.parent.right=o,o.left!==e.SENTINEL&&(o.left.parent=o),o.right!==e.SENTINEL&&(o.right.parent=o)),n.detach(),l)return A(i.parent),o!==n&&(A(o),A(o.parent)),void D();A(i),A(i.parent),o!==n&&(A(o),A(o.parent));for(var s;i!==t.root&&0===r(i);)i===i.parent.left?(s=i.parent.right,1===r(s)&&(a(s,0),a(i.parent,1),q(t,i.parent),s=i.parent.right),0===r(s.left)&&0===r(s.right)?(a(s,1),i=i.parent):(0===r(s.right)&&(a(s.left,0),a(s,1),w(t,s),s=i.parent.right),a(s,r(i.parent)),a(i.parent,0),a(s.right,0),q(t,i.parent),i=t.root)):(s=i.parent.left,1===r(s)&&(a(s,0),a(i.parent,1),w(t,i.parent),s=i.parent.left),0===r(s.left)&&0===r(s.right)?(a(s,1),i=i.parent):(0===r(s.left)&&(a(s.right,0),a(s,1),q(t,s),s=i.parent.left),a(s,r(i.parent)),a(i.parent,0),a(s.left,0),w(t,i.parent),i=t.root));a(i,0),D()}function z(t){for(;t.left!==e.SENTINEL;)t=t.left;return t}function D(){e.SENTINEL.parent=e.SENTINEL,e.SENTINEL.delta=0,e.SENTINEL.start=0,e.SENTINEL.end=0}function q(t,r){var a=r.right;a.delta+=r.delta,(a.delta<-1073741824||a.delta>1073741824)&&(t.requestNormalizeDelta=!0),a.start+=r.delta,a.end+=r.delta,r.right=a.left,a.left!==e.SENTINEL&&(a.left.parent=r),a.parent=r.parent,r.parent===e.SENTINEL?t.root=a:r===r.parent.left?r.parent.left=a:r.parent.right=a,a.left=r,r.parent=a,O(r),O(a)}function w(t,r){var a=r.left;r.delta-=a.delta,(r.delta<-1073741824||r.delta>1073741824)&&(t.requestNormalizeDelta=!0),r.start-=a.delta,r.end-=a.delta,r.left=a.right,a.right!==e.SENTINEL&&(a.right.parent=r),a.parent=r.parent,r.parent===e.SENTINEL?t.root=a:r===r.parent.right?r.parent.right=a:r.parent.left=a,a.right=r,r.parent=a,O(r),O(a)}function b(t){var r=t.end;if(t.left!==e.SENTINEL){var a=t.left.maxEnd;a>r&&(r=a)}if(t.right!==e.SENTINEL){var n=t.right.maxEnd+t.delta;n>r&&(r=n)}return r}function O(t){t.maxEnd=b(t)}function A(t){for(;t!==e.SENTINEL;){var r=b(t);if(t.maxEnd===r)return;t.maxEnd=r,t=t.parent}}function _(t,e,r,a){return t===r?e-a:t-r}Object.defineProperty(e,"__esModule",{value:!0}),e.getNodeColor=r,e.getNodeIsInOverviewRuler=s;var C=function(){function t(t,e,r){this.metadata=0,this.parent=this,this.left=this,this.right=this,a(this,1),this.start=e,this.end=r,this.delta=0,this.maxEnd=r,this.id=t,this.ownerId=0,this.options=null,l(this,!1),d(this,1),f(this,!1),N(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=r,this.range=null,i(this,!1)}return t.prototype.reset=function(t,e,r,a){this.start=e,this.end=r,this.maxEnd=r,this.cachedVersionId=t,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=r,this.range=a},t.prototype.setOptions=function(t){this.options=t;var e=this.options.className;l(this,"squiggly-error"===e||"squiggly-warning"===e||"squiggly-info"===e),d(this,this.options.stickiness),f(this,this.options.overviewRuler&&this.options.overviewRuler.color?!0:!1),N(this,this.options.collapseOnReplaceEdit)},t.prototype.setCachedOffsets=function(t,e,r){this.cachedVersionId!==r&&(this.range=null),this.cachedVersionId=r,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=e},t.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},t}();e.IntervalNode=C,e.SENTINEL=new C(null,0,0),e.SENTINEL.parent=e.SENTINEL,e.SENTINEL.left=e.SENTINEL,e.SENTINEL.right=e.SENTINEL,a(e.SENTINEL,0);var M=function(){function t(){this.root=e.SENTINEL,this.requestNormalizeDelta=!1}return t.prototype.intervalSearch=function(t,r,a,n,i){return this.root===e.SENTINEL?[]:L(this,t,r,a,n,i)},t.prototype.search=function(t,r,a){return this.root===e.SENTINEL?[]:T(this,t,r,a)},t.prototype.collectNodesFromOwner=function(t){return S(this,t)},t.prototype.collectNodesPostOrder=function(){return m(this)},t.prototype.insert=function(t){v(this,t),this._normalizeDeltaIfNecessary()},t.prototype.delete=function(t){x(this,t),this._normalizeDeltaIfNecessary()},t.prototype.resolveNode=function(t,e){for(var r=t,a=0;t!==this.root;)t===t.parent.right&&(a+=t.parent.delta),t=t.parent;var n=r.start+a,i=r.end+a;r.setCachedOffsets(n,i,e)},t.prototype.acceptReplace=function(t,e,r,a){for(var n=g(this,t,t+e),i=0,o=n.length;o>i;i++){var l=n[i];x(this,l)}this._normalizeDeltaIfNecessary(),I(this,t,t+e,r),this._normalizeDeltaIfNecessary();for(var i=0,o=n.length;o>i;i++){var l=n[i];l.start=l.cachedAbsoluteStart,l.end=l.cachedAbsoluteEnd,c(l,t,t+e,r,a),l.maxEnd=l.end,v(this,l)}this._normalizeDeltaIfNecessary()},t.prototype._normalizeDeltaIfNecessary=function(){this.requestNormalizeDelta&&(this.requestNormalizeDelta=!1,E(this))},t}();e.IntervalTree=M,e.nodeAcceptEdit=c,e.recomputeMaxEnd=O,e.intervalCompare=_}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/model/pieceTreeTextBuffer/rbTreeBase.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/model/pieceTreeTextBuffer/rbTreeBase",function(t,e){"use strict";function r(t){for(;t.left!==e.SENTINEL;)t=t.left;return t}function n(t){for(;t.right!==e.SENTINEL;)t=t.right;return t}function o(t){return t===e.SENTINEL?0:t.size_left+t.piece.length+o(t.right)}function l(t){return t===e.SENTINEL?0:t.lf_left+t.piece.lineFeedCnt+l(t.right)}function a(){e.SENTINEL.parent=e.SENTINEL}function p(t,r){var n=r.right;n.size_left+=r.size_left+(r.piece?r.piece.length:0),n.lf_left+=r.lf_left+(r.piece?r.piece.lineFeedCnt:0),r.right=n.left,n.left!==e.SENTINEL&&(n.left.parent=r),n.parent=r.parent,r.parent===e.SENTINEL?t.root=n:r.parent.left===r?r.parent.left=n:r.parent.right=n,n.left=r,r.parent=n}function f(t,r){var n=r.left;r.left=n.right,n.right!==e.SENTINEL&&(n.right.parent=r),n.parent=r.parent,r.size_left-=n.size_left+(n.piece?n.piece.length:0),r.lf_left-=n.lf_left+(n.piece?n.piece.lineFeedCnt:0),r.parent===e.SENTINEL?t.root=n:r===r.parent.right?r.parent.right=n:r.parent.left=n,n.right=r,r.parent=n}function i(t,n){var i,c;if(n.left===e.SENTINEL?(c=n,i=c.right):n.right===e.SENTINEL?(c=n,i=c.left):(c=r(n.right),i=c.right),c===t.root)return t.root=i,i.color=0,n.detach(),a(),void(t.root.parent=e.SENTINEL);var E=1===c.color;if(c===c.parent.left?c.parent.left=i:c.parent.right=i,c===n?(i.parent=c.parent,N(t,i)):(i.parent=c.parent===n?c:c.parent,N(t,i),c.left=n.left,c.right=n.right,c.parent=n.parent,c.color=n.color,n===t.root?t.root=c:n===n.parent.left?n.parent.left=c:n.parent.right=c,c.left!==e.SENTINEL&&(c.left.parent=c),c.right!==e.SENTINEL&&(c.right.parent=c),c.size_left=n.size_left,c.lf_left=n.lf_left,N(t,c)),n.detach(),i.parent.left===i){var s=o(i),g=l(i);if(s!==i.parent.size_left||g!==i.parent.lf_left){var u=s-i.parent.size_left,T=g-i.parent.lf_left;i.parent.size_left=s,i.parent.lf_left=g,h(t,i.parent,u,T)}}if(N(t,i.parent),E)return void a();for(var S;i!==t.root&&0===i.color;)i===i.parent.left?(S=i.parent.right,1===S.color&&(S.color=0,i.parent.color=1,p(t,i.parent),S=i.parent.right),0===S.left.color&&0===S.right.color?(S.color=1,i=i.parent):(0===S.right.color&&(S.left.color=0,S.color=1,f(t,S),S=i.parent.right),S.color=i.parent.color,i.parent.color=0,S.right.color=0,p(t,i.parent),i=t.root)):(S=i.parent.left,1===S.color&&(S.color=0,i.parent.color=1,f(t,i.parent),S=i.parent.left),0===S.left.color&&0===S.right.color?(S.color=1,i=i.parent):(0===S.left.color&&(S.right.color=0,S.color=1,p(t,S),S=i.parent.left),S.color=i.parent.color,i.parent.color=0,S.left.color=0,f(t,i.parent),i=t.root));i.color=0,a()}function c(t,e){for(N(t,e);e!==t.root&&1===e.parent.color;)if(e.parent===e.parent.parent.left){var r=e.parent.parent.right;1===r.color?(e.parent.color=0,r.color=0,e.parent.parent.color=1,e=e.parent.parent):(e===e.parent.right&&(e=e.parent,p(t,e)),e.parent.color=0,e.parent.parent.color=1,f(t,e.parent.parent))}else{var r=e.parent.parent.left;1===r.color?(e.parent.color=0,r.color=0,e.parent.parent.color=1,e=e.parent.parent):(e===e.parent.left&&(e=e.parent,f(t,e)),e.parent.color=0,e.parent.parent.color=1,p(t,e.parent.parent))}t.root.color=0}function h(t,r,n,o){for(;r!==t.root&&r!==e.SENTINEL;)r.parent.left===r&&(r.parent.size_left+=n,r.parent.lf_left+=o),r=r.parent}function N(t,e){var r=0,n=0;if(e!==t.root){if(0===r){for(;e!==t.root&&e===e.parent.right;)e=e.parent;if(e===t.root)return;e=e.parent,r=o(e.left)-e.size_left,n=l(e.left)-e.lf_left,e.size_left+=r,e.lf_left+=n}for(;e!==t.root&&(0!==r||0!==n);)e.parent.left===e&&(e.parent.size_left+=r,e.parent.lf_left+=n),e=e.parent}}Object.defineProperty(e,"__esModule",{value:!0});var E=function(){function t(t,e){this.piece=t,this.color=e,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}return t.prototype.next=function(){if(this.right!==e.SENTINEL)return r(this.right);for(var t=this;t.parent!==e.SENTINEL&&t.parent.left!==t;)t=t.parent;return t.parent===e.SENTINEL?e.SENTINEL:t.parent},t.prototype.prev=function(){if(this.left!==e.SENTINEL)return n(this.left);for(var t=this;t.parent!==e.SENTINEL&&t.parent.right!==t;)t=t.parent;return t.parent===e.SENTINEL?e.SENTINEL:t.parent},t.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},t}();e.TreeNode=E,e.SENTINEL=new E(null,0),e.SENTINEL.parent=e.SENTINEL,e.SENTINEL.left=e.SENTINEL,e.SENTINEL.right=e.SENTINEL,e.SENTINEL.color=0,e.leftest=r,e.righttest=n,e.calculateSize=o,e.calculateLF=l,e.resetSentinel=a,e.leftRotate=p,e.rightRotate=f,e.rbDelete=i,e.fixInsert=c,e.updateTreeMetadata=h,e.recomputeTreeMetadata=N}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/model/textModelSearch.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/model/textModelSearch",function(e,t){"use strict";function n(e){if(!e||0===e.length)return!1;for(var t=0,n=e.length;n>t;t++){var r=e.charCodeAt(t);if(92===r){if(t++,t>=n)break;var i=e.charCodeAt(t);if(110===i||114===i||87===i)return!0}}return!1}function r(e,t,n){if(!n)return new d.FindMatch(e,null);for(var r=[],i=0,a=t.length;a>i;i++)r[i]=t[i];return new d.FindMatch(e,r)}function i(e,t,n,r,i){if(0===r)return!0;var a=t.charCodeAt(r-1);if(0!==e.get(a))return!0;if(13===a||10===a)return!0;if(i>0){var o=t.charCodeAt(r);if(0!==e.get(o))return!0}return!1}function a(e,t,n,r,i){if(r+i===n)return!0;var a=t.charCodeAt(r+i);if(0!==e.get(a))return!0;if(13===a||10===a)return!0;if(i>0){var o=t.charCodeAt(r+i-1);if(0!==e.get(o))return!0}return!1}function o(e,t,n,r,o){return i(e,t,n,r,o)&&a(e,t,n,r,o)}Object.defineProperty(t,"__esModule",{value:!0});var s=e("node_modules/tslib/tslib"),u=s.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/strings")),h=e("node_modules/monaco-editor/esm/vs/editor/common/controller/wordCharacterClassifier"),l=e("node_modules/monaco-editor/esm/vs/editor/common/core/position"),c=e("node_modules/monaco-editor/esm/vs/editor/common/core/range"),d=e("node_modules/monaco-editor/esm/vs/editor/common/model"),f=999,g=function(){function e(e,t,n,r){this.searchString=e,this.isRegex=t,this.matchCase=n,this.wordSeparators=r}return e.prototype.parseSearchRequest=function(){if(""===this.searchString)return null;var e;e=this.isRegex?n(this.searchString):this.searchString.indexOf("\n")>=0;var t=null;try{t=u.createRegExp(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0})}catch(r){return null}if(!t)return null;var i=!this.isRegex&&!e;return i&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(i=this.matchCase),new m(t,this.wordSeparators?h.getMapForWordSeparators(this.wordSeparators):null,i?this.searchString:null)},e}();t.SearchParams=g,t.isMultilineRegexSource=n;var m=function(){function e(e,t,n){this.regex=e,this.wordSeparators=t,this.simpleSearch=n}return e}();t.SearchData=m,t.createFindMatch=r;var v=function(){function e(e){for(var t=[],n=0,r=0,i=e.length;i>r;r++)10===e.charCodeAt(r)&&(t[n++]=r);this._lineFeedsOffsets=t}return e.prototype.findLineFeedCountBeforeOffset=function(e){var t=this._lineFeedsOffsets,n=0,r=t.length-1;if(-1===r)return 0;if(e<=t[0])return 0;for(;r>n;){var i=n+((r-n)/2>>0);t[i]>=e?r=i-1:t[i+1]>=e?(n=i,r=i):n=i+1}return n+1},e}(),M=function(){function e(){}return e.findMatches=function(e,t,n,r,i){var a=t.parseSearchRequest();return a?a.regex.multiline?this._doFindMatchesMultiline(e,n,new L(a.wordSeparators,a.regex),r,i):this._doFindMatchesLineByLine(e,n,a,r,i):[]},e._getMultilineMatchRange=function(e,t,n,r,i,a){var o,s=0;r?(s=r.findLineFeedCountBeforeOffset(i),o=t+i+s):o=t+i;var u;if(r){var h=r.findLineFeedCountBeforeOffset(i+a.length),l=h-s;u=o+a.length+l}else u=o+a.length;var d=e.getPositionAt(o),f=e.getPositionAt(u);return new c.Range(d.lineNumber,d.column,f.lineNumber,f.column)},e._doFindMatchesMultiline=function(e,t,n,i,a){var o,s=e.getOffsetAt(t.getStartPosition()),u=e.getValueInRange(t,1),h="\r\n"===e.getEOL()?new v(u):null,l=[],c=0;for(n.reset(0);o=n.next(u);)if(l[c++]=r(this._getMultilineMatchRange(e,s,u,h,o.index,o[0]),o,i),c>=a)return l;return l},e._doFindMatchesLineByLine=function(e,t,n,r,i){var a=[],o=0;if(t.startLineNumber===t.endLineNumber){var s=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return o=this._findMatchesInLine(n,s,t.startLineNumber,t.startColumn-1,o,a,r,i),a}var u=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);o=this._findMatchesInLine(n,u,t.startLineNumber,t.startColumn-1,o,a,r,i);for(var h=t.startLineNumber+1;ho;h++)o=this._findMatchesInLine(n,e.getLineContent(h),h,0,o,a,r,i);if(i>o){var l=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);o=this._findMatchesInLine(n,l,t.endLineNumber,0,o,a,r,i)}return a},e._findMatchesInLine=function(e,t,n,i,a,s,u,h){var l=e.wordSeparators;if(!u&&e.simpleSearch){for(var f=e.simpleSearch,g=f.length,m=t.length,v=-g;-1!==(v=t.indexOf(f,v+g));)if((!l||o(l,t,m,v,g))&&(s[a++]=new d.FindMatch(new c.Range(n,v+1+i,n,v+1+g+i),null),a>=h))return a;return a}var M,_=new L(e.wordSeparators,e.regex);_.reset(0);do if(M=_.next(t),M&&(s[a++]=r(new c.Range(n,M.index+1+i,n,M.index+1+M[0].length+i),M,u),a>=h))return a;while(M);return a},e.findNextMatch=function(e,t,n,r){var i=t.parseSearchRequest();if(!i)return null;var a=new L(i.wordSeparators,i.regex);return i.regex.multiline?this._doFindNextMatchMultiline(e,n,a,r):this._doFindNextMatchLineByLine(e,n,a,r)},e._doFindNextMatchMultiline=function(e,t,n,i){var a=new l.Position(t.lineNumber,1),o=e.getOffsetAt(a),s=e.getLineCount(),u=e.getValueInRange(new c.Range(a.lineNumber,a.column,s,e.getLineMaxColumn(s)),1),h="\r\n"===e.getEOL()?new v(u):null;n.reset(t.column-1);var d=n.next(u);return d?r(this._getMultilineMatchRange(e,o,u,h,d.index,d[0]),d,i):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new l.Position(1,1),n,i):null},e._doFindNextMatchLineByLine=function(e,t,n,r){var i=e.getLineCount(),a=t.lineNumber,o=e.getLineContent(a),s=this._findFirstMatchInLine(n,o,a,t.column,r);if(s)return s;for(var u=1;i>=u;u++){var h=(a+u-1)%i,l=e.getLineContent(h+1),c=this._findFirstMatchInLine(n,l,h+1,1,r);if(c)return c}return null},e._findFirstMatchInLine=function(e,t,n,i,a){e.reset(i-1);var o=e.next(t);return o?r(new c.Range(n,o.index+1,n,o.index+1+o[0].length),o,a):null},e.findPreviousMatch=function(e,t,n,r){var i=t.parseSearchRequest();if(!i)return null;var a=new L(i.wordSeparators,i.regex);return i.regex.multiline?this._doFindPreviousMatchMultiline(e,n,a,r):this._doFindPreviousMatchLineByLine(e,n,a,r)},e._doFindPreviousMatchMultiline=function(e,t,n,r){var i=this._doFindMatchesMultiline(e,new c.Range(1,1,t.lineNumber,t.column),n,r,10*f);if(i.length>0)return i[i.length-1];var a=e.getLineCount();return t.lineNumber!==a||t.column!==e.getLineMaxColumn(a)?this._doFindPreviousMatchMultiline(e,new l.Position(a,e.getLineMaxColumn(a)),n,r):null},e._doFindPreviousMatchLineByLine=function(e,t,n,r){var i=e.getLineCount(),a=t.lineNumber,o=e.getLineContent(a).substring(0,t.column-1),s=this._findLastMatchInLine(n,o,a,r);if(s)return s;for(var u=1;i>=u;u++){var h=(i+a-u-1)%i,l=e.getLineContent(h+1),c=this._findLastMatchInLine(n,l,h+1,r);if(c)return c}return null},e._findLastMatchInLine=function(e,t,n,i){var a,o=null;for(e.reset(0);a=e.next(t);)o=r(new c.Range(n,a.index+1,n,a.index+1+a[0].length),a,i);return o},e}();t.TextModelSearch=M,t.isValidMatch=o;var L=function(){function e(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}return e.prototype.reset=function(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0},e.prototype.next=function(e){var t,n=e.length;do{if(this._prevMatchStartIndex+this._prevMatchLength===n)return null;if(t=this._searchRegex.exec(e),!t)return null;var r=t.index,i=t[0].length;if(r===this._prevMatchStartIndex&&i===this._prevMatchLength)return null;if(this._prevMatchStartIndex=r,this._prevMatchLength=i,!this._wordSeparators||o(this._wordSeparators,e,n,r,i))return t}while(t);return null},e}();t.Searcher=L}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeBase.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeBase",function(e,t){"use strict";function n(e){var t;return t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length),t.set(e,0),t}function i(e,t){void 0===t&&(t=!0);for(var i=[0],r=1,f=0,s=e.length;s>f;f++){var o=e.charCodeAt(f);13===o?s>f+1&&10===e.charCodeAt(f+1)?(i[r++]=f+2,f++):i[r++]=f+1:10===o&&(i[r++]=f+1)}return t?n(i):i}function r(e,t){e.length=0,e[0]=0;for(var i=1,r=0,f=0,s=0,o=!0,h=0,a=t.length;a>h;h++){var l=t.charCodeAt(h);13===l?a>h+1&&10===t.charCodeAt(h+1)?(s++,e[i++]=h+2,h++):(r++,e[i++]=h+1):10===l?(f++,e[i++]=h+1):o&&9!==l&&(32>l||l>126)&&(o=!1)}var d=new u(n(e),r,f,s,o);return e.length=0,d}Object.defineProperty(t,"__esModule",{value:!0});var f=e("node_modules/monaco-editor/esm/vs/editor/common/core/position"),s=e("node_modules/monaco-editor/esm/vs/editor/common/core/range"),o=e("node_modules/monaco-editor/esm/vs/editor/common/model"),h=e("node_modules/monaco-editor/esm/vs/editor/common/model/pieceTreeTextBuffer/rbTreeBase"),a=e("node_modules/monaco-editor/esm/vs/editor/common/model/textModelSearch");t.AverageBufferSize=65535,t.createUintArray=n;var u=function(){function e(e,t,n,i,r){this.lineStarts=e,this.cr=t,this.lf=n,this.crlf=i,this.isBasicASCII=r}return e}();t.LineStarts=u,t.createLineStartsFast=i,t.createLineStarts=r;var l=function(){function e(e,t,n,i,r){this.bufferIndex=e,this.start=t,this.end=n,this.lineFeedCnt=i,this.length=r}return e}();t.Piece=l;var d=function(){function e(e,t){this.buffer=e,this.lineStarts=t}return e}();t.StringBuffer=d;var c=function(){function e(e){this._limit=e,this._cache=[]}return e.prototype.get=function(e){for(var t=this._cache.length-1;t>=0;t--){var n=this._cache[t];if(n.nodeStartOffset<=e&&n.nodeStartOffset+n.node.piece.length>=e)return n}return null},e.prototype.get2=function(e){for(var t=this._cache.length-1;t>=0;t--){var n=this._cache[t];if(n.nodeStartLineNumber&&n.nodeStartLineNumber=e)return n}return null},e.prototype.set=function(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)},e.prototype.valdiate=function(e){for(var t=!1,n=this._cache,i=0;i=e)&&(n[i]=null,t=!0)}if(t){for(var f=[],s=0,o=n;sf;f++)if(e[f].buffer.length>0){e[f].lineStarts||(e[f].lineStarts=i(e[f].buffer));var o=new l(f+1,{line:0,column:0},{line:e[f].lineStarts.length-1,column:e[f].buffer.length-e[f].lineStarts[e[f].lineStarts.length-1]},e[f].lineStarts.length-1,e[f].buffer.length);this._buffers.push(e[f]),r=this.rbInsertRight(r,o)}this._searchCache=new c(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()},e.prototype.normalizeEOL=function(e){var n=this,r=t.AverageBufferSize,f=r-Math.floor(r/3),s=2*f,o="",h=0,a=[];if(this.iterate(this.root,function(t){var r=n.getNodeContent(t),u=r.length;if(f>=h||s>h+u)return o+=r,h+=u,!0;var l=o.replace(/\r\n|\r|\n/g,e);return a.push(new d(l,i(l))),o=r,h=u,!0}),h>0){var u=o.replace(/\r\n|\r|\n/g,e);a.push(new d(u,i(u)))}this.create(a,e,!0)},e.prototype.getEOL=function(){return this._EOL},e.prototype.setEOL=function(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)},e.prototype.getOffsetAt=function(e,t){for(var n=0,i=this.root;i!==h.SENTINEL;)if(i.left!==h.SENTINEL&&i.lf_left+1>=e)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt+1>=e){n+=i.size_left;var r=this.getAccumulatedValue(i,e-i.lf_left-2);return n+=r+t-1}e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right}return n},e.prototype.getPositionAt=function(e){e=Math.floor(e),e=Math.max(0,e);for(var t=this.root,n=0,i=e;t!==h.SENTINEL;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){var r=this.getIndexOf(t,e-t.size_left);if(n+=t.lf_left+r.index,0===r.index){var s=this.getOffsetAt(n+1,1),o=i-s;return new f.Position(n+1,o+1)}return new f.Position(n+1,r.remainder+1)}if(e-=t.size_left+t.piece.length,n+=t.lf_left+t.piece.lineFeedCnt,t.right===h.SENTINEL){var s=this.getOffsetAt(n+1,1),o=i-e-s;return new f.Position(n+1,o+1)}t=t.right}return new f.Position(1,1)},e.prototype.getValueInRange=function(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";var n=this.nodeAt2(e.startLineNumber,e.startColumn),i=this.nodeAt2(e.endLineNumber,e.endColumn),r=this.getValueInRange2(n,i);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?r:r.replace(/\r\n|\r|\n/g,t):r},e.prototype.getValueInRange2=function(e,t){if(e.node===t.node){var n=e.node,i=this._buffers[n.piece.bufferIndex].buffer,r=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i.substring(r+e.remainder,r+t.remainder)}var f=e.node,s=this._buffers[f.piece.bufferIndex].buffer,o=this.offsetInBuffer(f.piece.bufferIndex,f.piece.start),a=s.substring(o+e.remainder,o+f.piece.length);for(f=f.next();f!==h.SENTINEL;){var u=this._buffers[f.piece.bufferIndex].buffer,l=this.offsetInBuffer(f.piece.bufferIndex,f.piece.start);if(f===t.node){a+=u.substring(l,l+t.remainder);break}a+=u.substr(l,f.piece.length),f=f.next()}return a},e.prototype.getLinesContent=function(){return this.getContentOfSubTree(this.root).split(/\r\n|\r|\n/)},e.prototype.getLength=function(){return this._length},e.prototype.getLineCount=function(){return this._lineCnt},e.prototype.getLineContent=function(e){return this._lastVisitedLine.lineNumber===e?this._lastVisitedLine.value:(this._lastVisitedLine.lineNumber=e,this._lastVisitedLine.value=e===this._lineCnt?this.getLineRawContent(e):this._EOLNormalized?this.getLineRawContent(e,this._EOLLength):this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,""),this._lastVisitedLine.value)},e.prototype.getLineCharCode=function(e,t){var n=this.nodeAt2(e,t+1);if(n.remainder===n.node.piece.length){var i=n.node.next();if(!i)return 0;var r=this._buffers[i.piece.bufferIndex],f=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return r.buffer.charCodeAt(f)}var r=this._buffers[n.node.piece.bufferIndex],f=this.offsetInBuffer(n.node.piece.bufferIndex,n.node.piece.start),s=f+n.remainder;return r.buffer.charCodeAt(s)},e.prototype.getLineLength=function(e){if(e===this.getLineCount()){var t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength},e.prototype.findMatchesInNode=function(e,t,n,i,r,f,o,h,u,l,d){var c,p=this._buffers[e.piece.bufferIndex],g=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),b=this.offsetInBuffer(e.piece.bufferIndex,r),v=this.offsetInBuffer(e.piece.bufferIndex,f);t.reset(b);var _={line:0,column:0};do if(c=t.next(p.buffer)){if(c.index>=v)return l;this.positionInBuffer(e,c.index-g,_);var I=this.getLineFeedCnt(e.piece.bufferIndex,r,_),m=_.line===r.line?_.column-r.column+i:_.column+1,L=m+c[0].length;if(d[l++]=a.createFindMatch(new s.Range(n+I,m,n+I,L),c,h),c.index+c[0].length>=v)return l;if(l>=u)return l}while(c);return l},e.prototype.findMatchesLineByLine=function(e,t,n,i){var r=[],f=0,s=new a.Searcher(t.wordSeparators,t.regex),o=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===o)return[];var h=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===h)return[];var u=this.positionInBuffer(o.node,o.remainder),l=this.positionInBuffer(h.node,h.remainder);if(o.node===h.node)return this.findMatchesInNode(o.node,s,e.startLineNumber,e.startColumn,u,l,t,n,i,f,r),r;for(var d=e.startLineNumber,c=o.node;c!==h.node;){var p=this.getLineFeedCnt(c.piece.bufferIndex,u,c.piece.end);if(p>=1){var g=this._buffers[c.piece.bufferIndex].lineStarts,b=this.offsetInBuffer(c.piece.bufferIndex,c.piece.start),v=g[u.line+p],_=d===e.startLineNumber?e.startColumn:1;if(f=this.findMatchesInNode(c,s,d,_,u,this.positionInBuffer(c,v-b),t,n,i,f,r),f>=i)return r;d+=p}var I=d===e.startLineNumber?e.startColumn-1:0;if(d===e.endLineNumber){var m=this.getLineContent(d).substring(I,e.endColumn-1);return f=this._findMatchesInLine(t,s,m,e.endLineNumber,I,f,r,n,i),r}if(f=this._findMatchesInLine(t,s,this.getLineContent(d).substr(I),d,I,f,r,n,i),f>=i)return r;d++,o=this.nodeAt2(d,1),c=o.node,u=this.positionInBuffer(o.node,o.remainder)}if(d===e.endLineNumber){var L=d===e.startLineNumber?e.startColumn-1:0,m=this.getLineContent(d).substring(L,e.endColumn-1);return f=this._findMatchesInLine(t,s,m,e.endLineNumber,L,f,r,n,i),r}var C=d===e.startLineNumber?e.startColumn:1;return f=this.findMatchesInNode(h.node,s,d,C,u,l,t,n,i,f,r),r},e.prototype._findMatchesInLine=function(e,t,n,i,r,f,h,u,l){var d=e.wordSeparators;if(!u&&e.simpleSearch){for(var c=e.simpleSearch,p=c.length,g=n.length,b=-p;-1!==(b=n.indexOf(c,b+p));)if((!d||a.isValidMatch(d,n,g,b,p))&&(h[f++]=new o.FindMatch(new s.Range(i,b+1+r,i,b+1+p+r),null),f>=l))return f;return f}var v;t.reset(0);do if(v=t.next(n),v&&(h[f++]=a.createFindMatch(new s.Range(i,v.index+1+r,i,v.index+1+v[0].length+r),v,u),f>=l))return f;while(v);return f},e.prototype.insert=function(e,n,i){if(void 0===i&&(i=!1),this._EOLNormalized=this._EOLNormalized&&i,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==h.SENTINEL){var r=this.nodeAt(e),f=r.node,s=r.remainder,o=r.nodeStartOffset,a=f.piece,u=a.bufferIndex,d=this.positionInBuffer(f,s);if(0===f.piece.bufferIndex&&a.end.line===this._lastChangeBufferPos.line&&a.end.column===this._lastChangeBufferPos.column&&o+a.length===e&&n.lengthe){var c=[],p=new l(a.bufferIndex,d,a.end,this.getLineFeedCnt(a.bufferIndex,d,a.end),this.offsetInBuffer(u,a.end)-this.offsetInBuffer(u,d));if(this.shouldCheckCRLF()&&this.endWithCR(n)){var g=this.nodeCharCodeAt(f,s);if(10===g){var b={line:p.start.line+1,column:0};p=new l(p.bufferIndex,b,p.end,this.getLineFeedCnt(p.bufferIndex,b,p.end),p.length-1),n+="\n"}}if(this.shouldCheckCRLF()&&this.startWithLF(n)){var v=this.nodeCharCodeAt(f,s-1);if(13===v){var _=this.positionInBuffer(f,s-1);this.deleteNodeTail(f,_),n="\r"+n,0===f.piece.length&&c.push(f)}else this.deleteNodeTail(f,d)}else this.deleteNodeTail(f,d);var I=this.createNewPieces(n);p.length>0&&this.rbInsertRight(f,p);for(var m=f,L=0;L=t||this.root===h.SENTINEL)){var n=this.nodeAt(e),i=this.nodeAt(e+t),r=n.node,f=i.node;if(r===f){var s=this.positionInBuffer(r,n.remainder),o=this.positionInBuffer(r,i.remainder);if(n.nodeStartOffset===e){if(t===r.piece.length){var a=r.next();return h.rbDelete(this,r),this.validateCRLFWithPrevNode(a),void this.computeBufferMetadata()}return this.deleteNodeHead(r,o),this._searchCache.valdiate(e),this.validateCRLFWithPrevNode(r),void this.computeBufferMetadata()}return n.nodeStartOffset+r.piece.length===e+t?(this.deleteNodeTail(r,s),this.validateCRLFWithNextNode(r),void this.computeBufferMetadata()):(this.shrinkNode(r,s,o),void this.computeBufferMetadata())}var u=[],l=this.positionInBuffer(r,n.remainder);this.deleteNodeTail(r,l),this._searchCache.valdiate(e),0===r.piece.length&&u.push(r);var d=this.positionInBuffer(f,i.remainder);this.deleteNodeHead(f,d),0===f.piece.length&&u.push(f);for(var c=r.next(),p=c;p!==h.SENTINEL&&p!==f;p=p.next())u.push(p);var g=0===r.piece.length?r.prev():r;this.deleteNodes(u),this.validateCRLFWithNextNode(g),this.computeBufferMetadata()}},e.prototype.insertContentToNodeLeft=function(e,t){var n=[];if(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)){var i=t.piece,r={line:i.start.line+1,column:0},f=new l(i.bufferIndex,r,i.end,this.getLineFeedCnt(i.bufferIndex,r,i.end),i.length-1);t.piece=f,e+="\n",h.updateTreeMetadata(this,t,-1,-1),0===t.piece.length&&n.push(t)}for(var s=this.createNewPieces(e),o=this.rbInsertLeft(t,s[s.length-1]),a=s.length-2;a>=0;a--)o=this.rbInsertLeft(o,s[a]);this.validateCRLFWithPrevNode(o),this.deleteNodes(n)},e.prototype.insertContentToNodeRight=function(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");for(var n=this.createNewPieces(e),i=this.rbInsertRight(t,n[0]),r=i,f=1;f=h&&(u=h+(a-h)/2|0,d=f[u],u!==a);)if(l=f[u+1],d>o)a=u-1;else{if(!(o>=l))break;h=u+1}return n?(n.line=u,n.column=o-d,null):{line:u,column:o-d}},e.prototype.getLineFeedCnt=function(e,t,n){if(0===n.column)return n.line-t.line;var i=this._buffers[e].lineStarts;if(n.line===i.length-1)return n.line-t.line;var r=i[n.line+1],f=i[n.line]+n.column;if(r>f+1)return n.line-t.line;var s=f-1,o=this._buffers[e].buffer;return 13===o.charCodeAt(s)?n.line-t.line+1:n.line-t.line},e.prototype.offsetInBuffer=function(e,t){var n=this._buffers[e].lineStarts;return n[t.line]+t.column},e.prototype.deleteNodes=function(e){for(var t=0;tt.AverageBufferSize){for(var n=[];e.length>t.AverageBufferSize;){var r=e.charCodeAt(t.AverageBufferSize-1),f=void 0;13===r||r>=55296&&56319>=r?(f=e.substring(0,t.AverageBufferSize-1),e=e.substring(t.AverageBufferSize-1)):(f=e.substring(0,t.AverageBufferSize),e=e.substring(t.AverageBufferSize));var s=i(f);n.push(new l(this._buffers.length,{line:0,column:0},{line:s.length-1,column:f.length-s[s.length-1]},s.length-1,f.length)),this._buffers.push(new d(f,s))}var o=i(e);return n.push(new l(this._buffers.length,{line:0,column:0},{line:o.length-1,column:e.length-o[o.length-1]},o.length-1,e.length)),this._buffers.push(new d(e,o)),n}var h=this._buffers[0].buffer.length,a=i(e,!1),u=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===h&&0!==h&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},u=this._lastChangeBufferPos;for(var c=0;c=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){var f=this.getAccumulatedValue(n,e-n.lf_left-2),a=this.getAccumulatedValue(n,e-n.lf_left-1),s=this._buffers[n.piece.bufferIndex].buffer,o=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return u+=n.size_left,this._searchCache.set({node:n,nodeStartOffset:u,nodeStartLineNumber:l-(e-1-n.lf_left)}),s.substring(o+f,o+a-t)}if(n.lf_left+n.piece.lineFeedCnt===e-1){var f=this.getAccumulatedValue(n,e-n.lf_left-2),s=this._buffers[n.piece.bufferIndex].buffer,o=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);i=s.substring(o+f,o+n.piece.length);break}e-=n.lf_left+n.piece.lineFeedCnt,u+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==h.SENTINEL;){var s=this._buffers[n.piece.bufferIndex].buffer;if(n.piece.lineFeedCnt>0){var a=this.getAccumulatedValue(n,0),o=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i+=s.substring(o,o+a-t)}var o=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);i+=s.substr(o,n.piece.length),n=n.next()}return i},e.prototype.computeBufferMetadata=function(){for(var e=this.root,t=1,n=0;e!==h.SENTINEL;)t+=e.lf_left+e.piece.lineFeedCnt,n+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=n,this._searchCache.valdiate(this._length)},e.prototype.getIndexOf=function(e,t){var n=e.piece,i=this.positionInBuffer(e,t),r=i.line-n.start.line;if(this.offsetInBuffer(n.bufferIndex,n.end)-this.offsetInBuffer(n.bufferIndex,n.start)===t){var f=this.getLineFeedCnt(e.piece.bufferIndex,n.start,i);if(f!==r)return{index:f,remainder:0}}return{index:r,remainder:i.column}},e.prototype.getAccumulatedValue=function(e,t){if(0>t)return 0;var n=e.piece,i=this._buffers[n.bufferIndex].lineStarts,r=n.start.line+t+1;return r>n.end.line?i[n.end.line]+n.end.column-i[n.start.line]-n.start.column:i[r]-i[n.start.line]-n.start.column},e.prototype.deleteNodeTail=function(e,t){var n=e.piece,i=n.lineFeedCnt,r=this.offsetInBuffer(n.bufferIndex,n.end),f=t,s=this.offsetInBuffer(n.bufferIndex,f),o=this.getLineFeedCnt(n.bufferIndex,n.start,f),a=o-i,u=s-r,d=n.length+u;e.piece=new l(n.bufferIndex,n.start,f,o,d),h.updateTreeMetadata(this,e,u,a)},e.prototype.deleteNodeHead=function(e,t){var n=e.piece,i=n.lineFeedCnt,r=this.offsetInBuffer(n.bufferIndex,n.start),f=t,s=this.getLineFeedCnt(n.bufferIndex,f,n.end),o=this.offsetInBuffer(n.bufferIndex,f),a=s-i,u=r-o,d=n.length+u;e.piece=new l(n.bufferIndex,f,n.end,s,d),h.updateTreeMetadata(this,e,u,a)},e.prototype.shrinkNode=function(e,t,n){var i=e.piece,r=i.start,f=i.end,s=i.length,o=i.lineFeedCnt,a=t,u=this.getLineFeedCnt(i.bufferIndex,i.start,a),d=this.offsetInBuffer(i.bufferIndex,t)-this.offsetInBuffer(i.bufferIndex,r);e.piece=new l(i.bufferIndex,i.start,a,u,d),h.updateTreeMetadata(this,e,d-s,u-o);var c=new l(i.bufferIndex,n,f,this.getLineFeedCnt(i.bufferIndex,n,f),this.offsetInBuffer(i.bufferIndex,f)-this.offsetInBuffer(i.bufferIndex,n)),p=this.rbInsertRight(e,c);this.validateCRLFWithPrevNode(p)},e.prototype.appendToNode=function(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");var n=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),r=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;for(var f=i(t,!1),s=0;se)t=t.left;else{if(t.size_left+t.piece.length>=e){i+=t.size_left;var r={node:t,remainder:e-t.size_left,nodeStartOffset:i};return this._searchCache.set(r),r}e-=t.size_left+t.piece.length,i+=t.size_left+t.piece.length,t=t.right}return null},e.prototype.nodeAt2=function(e,t){for(var n=this.root,i=0;n!==h.SENTINEL;)if(n.left!==h.SENTINEL&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){var r=this.getAccumulatedValue(n,e-n.lf_left-2),f=this.getAccumulatedValue(n,e-n.lf_left-1);return i+=n.size_left,{node:n,remainder:Math.min(r+t-1,f),nodeStartOffset:i}}if(n.lf_left+n.piece.lineFeedCnt===e-1){var r=this.getAccumulatedValue(n,e-n.lf_left-2);if(r+t-1<=n.piece.length)return{node:n,remainder:r+t-1,nodeStartOffset:i};t-=n.piece.length-r;break}e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==h.SENTINEL;){if(n.piece.lineFeedCnt>0){var f=this.getAccumulatedValue(n,0),s=this.offsetOfNode(n);return{node:n,remainder:Math.min(t-1,f),nodeStartOffset:s}}if(n.piece.length>=t-1){var o=this.offsetOfNode(n);return{node:n,remainder:t-1,nodeStartOffset:o}}t-=n.piece.length,n=n.next()}return null},e.prototype.nodeCharCodeAt=function(e,t){if(e.piece.lineFeedCnt<1)return-1;var n=this._buffers[e.piece.bufferIndex],i=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return n.buffer.charCodeAt(i)},e.prototype.offsetOfNode=function(e){if(!e)return 0;for(var t=e.size_left;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t},e.prototype.shouldCheckCRLF=function(){return!(this._EOLNormalized&&"\n"===this._EOL)},e.prototype.startWithLF=function(e){if("string"==typeof e)return 10===e.charCodeAt(0);if(e===h.SENTINEL||0===e.piece.lineFeedCnt)return!1;var t=e.piece,n=this._buffers[t.bufferIndex].lineStarts,i=t.start.line,r=n[i]+t.start.column;if(i===n.length-1)return!1;var f=n[i+1];return f>r+1?!1:10===this._buffers[t.bufferIndex].buffer.charCodeAt(r)},e.prototype.endWithCR=function(e){return"string"==typeof e?13===e.charCodeAt(e.length-1):e===h.SENTINEL||0===e.piece.lineFeedCnt?!1:13===this.nodeCharCodeAt(e,e.piece.length-1)},e.prototype.validateCRLFWithPrevNode=function(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){var t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}},e.prototype.validateCRLFWithNextNode=function(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){var t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}},e.prototype.fixCRLF=function(e,t){var n,i=[],r=this._buffers[e.piece.bufferIndex].lineStarts;n=0===e.piece.end.column?{line:e.piece.end.line-1,column:r[e.piece.end.line]-r[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};var f=e.piece.length-1,s=e.piece.lineFeedCnt-1;e.piece=new l(e.piece.bufferIndex,e.piece.start,n,s,f),h.updateTreeMetadata(this,e,-1,-1),0===e.piece.length&&i.push(e);var o={line:t.piece.start.line+1,column:0},a=t.piece.length-1,u=this.getLineFeedCnt(t.piece.bufferIndex,o,t.piece.end);t.piece=new l(t.piece.bufferIndex,o,t.piece.end,u,a),h.updateTreeMetadata(this,t,-1,-1),0===t.piece.length&&i.push(t);var d=this.createNewPieces("\r\n");this.rbInsertRight(e,d[0]);for(var c=0;cu;u++){var c=g[u].range.getEndPosition(),d=g[u+1].range.getStartPosition();if(d.isBeforeOrEqual(c)){if(d.isBefore(c))throw new Error("Overlapping ranges are not allowed!");f=!0}}a&&(g=this._reduceOperations(g));for(var m=e._getInverseEditRanges(g),L=[],u=0;u0){L.sort(function(e,t){return t.lineNumber-e.lineNumber}),O=[];for(var u=0,y=L.length;y>u;u++){var C=L[u].lineNumber;if(!(u>0&&L[u-1].lineNumber===C)){var I=L[u].oldContent,T=this.getLineContent(C);0!==T.length&&T!==I&&-1===r.firstNonWhitespaceIndex(T)&&O.push(C)}}}return new o.ApplyEditsResult(N,b,O)},e.prototype._reduceOperations=function(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]},e.prototype._toSingleEditOperation=function(e){for(var t=!1,n=e[0].range,r=e[e.length-1].range,o=new i.Range(n.startLineNumber,n.startColumn,r.endLineNumber,r.endColumn),s=n.startLineNumber,a=n.startColumn,g=[],u=0,h=e.length;h>u;u++){var p=e[u],f=p.range;t=t||p.forceMoveMarkers;for(var l=s;lc;c++)0!==c&&g.push("\n"),g.push(p.lines[c]);s=p.range.endLineNumber,a=p.range.endColumn}return{sortIndex:0,identifier:e[0].identifier,range:o,rangeOffset:this.getOffsetAt(o.startLineNumber,o.startColumn),rangeLength:this.getValueLengthInRange(o,0),lines:g.join("").split("\n"),forceMoveMarkers:t,isAutoWhitespaceEdit:!1}},e.prototype._doApplyEdits=function(t){t.sort(e._sortOpsDescending);for(var n=[],r=0;rf){for(var c=[],d=f+1;p>=d;d++)c.push(o.lines[d]);c[c.length-1]=this.getLineContent(s+p-1)}var m=new i.Range(s,a,g,u);n.push({range:m,rangeLength:o.rangeLength,text:l,rangeOffset:o.rangeOffset,forceMoveMarkers:o.forceMoveMarkers})}}return n},e.prototype.findMatchesLineByLine=function(e,t,n,r){return this._pieceTree.findMatchesLineByLine(e,t,n,r)},e._getInverseEditRanges=function(e){for(var t=[],n=0,r=0,o=null,s=0,a=e.length;a>s;s++){var g=e[s],u=void 0,h=void 0;o?o.range.endLineNumber===g.range.startLineNumber?(u=n,h=r+(g.range.startColumn-o.range.endColumn)):(u=n+(g.range.startLineNumber-o.range.endLineNumber),h=g.range.startColumn):(u=g.range.startLineNumber,h=g.range.startColumn);var p=void 0;if(g.lines&&g.lines.length>0){var f=g.lines.length,l=g.lines[0],c=g.lines[f-1];p=1===f?new i.Range(u,h,u,h+l.length):new i.Range(u,h,u+f-1,c.length+1)}else p=new i.Range(u,h,u,h);n=p.endLineNumber,r=p.endColumn,t.push(p),o=g}return t},e._sortOpsAscending=function(e,t){var n=i.Range.compareRangesUsingEnds(e.range,t.range);return 0===n?e.sortIndex-t.sortIndex:n},e._sortOpsDescending=function(e,t){var n=i.Range.compareRangesUsingEnds(e.range,t.range);return 0===n?t.sortIndex-e.sortIndex:-n},e}();t.PieceTreeTextBuffer=a}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBufferBuilder.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBufferBuilder",function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=t("node_modules/tslib/tslib"),s=e.__importStar(t("node_modules/monaco-editor/esm/vs/base/common/strings")),r=t("node_modules/monaco-editor/esm/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeBase"),h=t("node_modules/monaco-editor/esm/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBuffer"),n=function(){function t(t,i,e,s,r,h,n,o){this._chunks=t,this._bom=i,this._cr=e,this._lf=s,this._crlf=r,this._containsRTL=h,this._isBasicASCII=n,this._normalizeEOL=o}return t.prototype._getEOL=function(t){var i=this._cr+this._lf+this._crlf,e=this._cr+this._crlf;return 0===i?1===t?"\n":"\r\n":e>i/2?"\r\n":"\n"},t.prototype.create=function(t){var i=this._getEOL(t),e=this._chunks;if(this._normalizeEOL&&("\r\n"===i&&(this._cr>0||this._lf>0)||"\n"===i&&(this._cr>0||this._crlf>0)))for(var s=0,n=e.length;n>s;s++){var o=e[s].buffer.replace(/\r\n|\r|\n/g,i),c=r.createLineStartsFast(o);e[s]=new r.StringBuffer(o,c)}return new h.PieceTreeTextBuffer(e,this._bom,i,this._containsRTL,this._isBasicASCII,this._normalizeEOL)},t}();i.PieceTreeTextBufferFactory=n;var o=function(){function t(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.isBasicASCII=!0}return t.prototype.acceptChunk=function(t){if(0!==t.length){0===this.chunks.length&&s.startsWithUTF8BOM(t)&&(this.BOM=s.UTF8_BOM_CHARACTER,t=t.substr(1));var i=t.charCodeAt(t.length-1);13===i||i>=55296&&56319>=i?(this._acceptChunk1(t.substr(0,t.length-1),!1),this._hasPreviousChar=!0,this._previousChar=i):(this._acceptChunk1(t,!1),this._hasPreviousChar=!1,this._previousChar=i)}},t.prototype._acceptChunk1=function(t,i){(i||0!==t.length)&&this._acceptChunk2(this._hasPreviousChar?String.fromCharCode(this._previousChar)+t:t)},t.prototype._acceptChunk2=function(t){var i=r.createLineStarts(this._tmpLineStarts,t);this.chunks.push(new r.StringBuffer(t,i.lineStarts)),this.cr+=i.cr,this.lf+=i.lf,this.crlf+=i.crlf,this.isBasicASCII&&(this.isBasicASCII=i.isBasicASCII),this.isBasicASCII||this.containsRTL||(this.containsRTL=s.containsRTL(t))},t.prototype.finish=function(t){return void 0===t&&(t=!0),this._finish(),new n(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.isBasicASCII,t)},t.prototype._finish=function(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;var t=this.chunks[this.chunks.length-1];t.buffer+=String.fromCharCode(this._previousChar);var i=r.createLineStartsFast(t.buffer);t.lineStarts=i,13===this._previousChar&&this.cr++}},t}();i.PieceTreeTextBufferBuilder=o}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/model/textModelEvents.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/model/textModelEvents",function(n,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function n(){this.changeType=1}return n}();e.ModelRawFlush=t;var i=function(){function n(n,e){this.changeType=2,this.lineNumber=n,this.detail=e}return n}();e.ModelRawLineChanged=i;var o=function(){function n(n,e){this.changeType=3,this.fromLineNumber=n,this.toLineNumber=e}return n}();e.ModelRawLinesDeleted=o;var s=function(){function n(n,e,t){this.changeType=4,this.fromLineNumber=n,this.toLineNumber=e,this.detail=t}return n}();e.ModelRawLinesInserted=s;var r=function(){function n(){this.changeType=5}return n}();e.ModelRawEOLChanged=r;var a=function(){function n(n,e,t,i){this.changes=n,this.versionId=e,this.isUndoing=t,this.isRedoing=i}return n.prototype.containsEvent=function(n){for(var e=0,t=this.changes.length;t>e;e++){var i=this.changes[e];if(i.changeType===n)return!0}return!1},n.merge=function(e,t){var i=[].concat(e.changes).concat(t.changes),o=t.versionId,s=e.isUndoing||t.isUndoing,r=e.isRedoing||t.isRedoing;return new n(i,o,s,r)},n}();e.ModelRawContentChangedEvent=a;var h=function(){function n(n,e){this.rawContentChangedEvent=n,this.contentChangedEvent=e}return n.prototype.merge=function(e){var t=a.merge(this.rawContentChangedEvent,e.rawContentChangedEvent),i=n._mergeChangeEvents(this.contentChangedEvent,e.contentChangedEvent);return new n(t,i)},n._mergeChangeEvents=function(n,e){var t=[].concat(n.changes).concat(e.changes),i=e.eol,o=e.versionId,s=n.isUndoing||e.isUndoing,r=n.isRedoing||e.isRedoing,a=n.isFlush||e.isFlush;return{changes:t,eol:i,versionId:o,isUndoing:s,isRedoing:r,isFlush:a}},n}();e.InternalModelContentChangeEvent=h}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/model/textModelTokens.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/model/textModelTokens",function(e,t){"use strict";function n(e){return(e<<0|0|0|16384|2<<23)>>>0}Object.defineProperty(t,"__esModule",{value:!0});var i=e("node_modules/tslib/tslib"),o=i.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/arrays")),s=e("node_modules/monaco-editor/esm/vs/base/common/errors"),r=e("node_modules/monaco-editor/esm/vs/editor/common/core/lineTokens"),a=e("node_modules/monaco-editor/esm/vs/editor/common/core/position"),l=e("node_modules/monaco-editor/esm/vs/editor/common/modes"),u=e("node_modules/monaco-editor/esm/vs/editor/common/modes/nullMode"),h=new Uint32Array(0).buffer,d=function(){function e(e){this._state=e,this._lineTokens=null,this._invalid=!0}return e.prototype.deleteBeginning=function(e){null!==this._lineTokens&&this._lineTokens!==h&&this.delete(0,e)},e.prototype.deleteEnding=function(e){if(null!==this._lineTokens&&this._lineTokens!==h){var t=new Uint32Array(this._lineTokens),n=t[t.length-2];this.delete(e,n)}},e.prototype.delete=function(e,t){if(null!==this._lineTokens&&this._lineTokens!==h&&e!==t){var n=new Uint32Array(this._lineTokens),i=n.length>>>1;if(0===e&&n[n.length-2]===t)return void(this._lineTokens=h);var o=r.LineTokens.findIndexInTokensArray(n,e),s=o>0?n[o-1<<1]:0,a=n[o<<1];if(a>t)for(var l=t-e,u=o;i>u;u++)n[u<<1]-=l;else{var d,_;s!==e?(n[o<<1]=e,d=o+1<<1,_=e):(d=o<<1,_=s);for(var k=t-e,f=o+1;i>f;f++){var p=n[f<<1]-k;p>_&&(n[d++]=p,n[d++]=n[(f<<1)+1],_=p)}if(d!==n.length){var v=new Uint32Array(d);v.set(n.subarray(0,d),0),this._lineTokens=v.buffer}}}},e.prototype.append=function(e){if(e!==h){if(this._lineTokens===h)return void(this._lineTokens=e);if(null!==this._lineTokens){if(null===e)return void(this._lineTokens=null);var t=new Uint32Array(this._lineTokens),n=new Uint32Array(e),i=n.length>>>1,o=new Uint32Array(t.length+n.length);o.set(t,0);for(var s=t.length,r=t[t.length-2],a=0;i>a;a++)o[s++]=n[a<<1]+r,o[s++]=n[(a<<1)+1];this._lineTokens=o.buffer}}},e.prototype.insert=function(e,t){if(this._lineTokens){var n=new Uint32Array(this._lineTokens),i=n.length>>>1,o=r.LineTokens.findIndexInTokensArray(n,e);if(o>0){var s=n[o-1<<1];s===e&&o--}for(var a=o;i>a;a++)n[a<<1]+=t}},e}(),_=function(){function e(e,t){if(this.languageIdentifier=e,this.tokenizationSupport=t,this._tokens=[],this.tokenizationSupport){var n=null;try{n=this.tokenizationSupport.getInitialState()}catch(i){s.onUnexpectedError(i),this.tokenizationSupport=null}n&&(this._tokens[0]=new d(n))}this._invalidLineStartIndex=0,this._lastState=null}return Object.defineProperty(e.prototype,"inValidLineStartIndex",{get:function(){return this._invalidLineStartIndex},enumerable:!0,configurable:!0}),e.prototype.getTokens=function(e,t,i){var o=null;if(t=e},e.prototype.hasLinesToTokenize=function(e){return this._invalidLineStartIndex1&&(a=l.TokenMetadata.getLanguageId(o[1])!==e),!a)return void(s._lineTokens=h)}o&&0!==o.length||(o=new Uint32Array(2),o[0]=0,o[1]=n(e)),r.LineTokens.convertToEndOffset(o,i),s._lineTokens=o.buffer},e.prototype._setState=function(e,t){if(e=0;r--)this.invalidateLine(e.startLineNumber+r-1);this._acceptDeleteRange(e),this._acceptInsertText(new a.Position(e.startLineNumber,e.startColumn),t,n)},e.prototype._acceptDeleteRange=function(e){var t=e.startLineNumber-1;if(!(t>=this._tokens.length)){if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;return void this._tokens[t].delete(e.startColumn-1,e.endColumn-1)}var n=this._tokens[t];n.deleteEnding(e.startColumn-1);var i=e.endLineNumber-1,o=null;if(i=this._tokens.length)){if(0===t)return void this._tokens[i].insert(e.column-1,n);var s=this._tokens[i];s.deleteEnding(e.column-1),s.insert(e.column-1,n);for(var r=new Array(t),a=t-1;a>=0;a--)r[a]=new d(null);this._tokens=o.arrayInsert(this._tokens,e.lineNumber,r)}}},e.prototype._tokenizeOneLine=function(e,t){if(!this.hasLinesToTokenize(e))return e.getLineCount()+1;var n=this._invalidLineStartIndex+1;return this._updateTokensUntilLine(e,t,n),n},e.prototype._tokenizeText=function(e,t,n){var i=null;if(this.tokenizationSupport)try{i=this.tokenizationSupport.tokenize2(t,n,0)}catch(o){s.onUnexpectedError(o)}return i||(i=u.nullTokenize2(this.languageIdentifier.id,t,n,0)),i},e.prototype._updateTokensUntilLine=function(e,t,n){if(!this.tokenizationSupport)return void(this._invalidLineStartIndex=e.getLineCount());for(var i=e.getLineCount(),o=n-1,r=this._invalidLineStartIndex;o>=r;r++){var a=r+1,l=e.getLineContent(r+1),h=this._getState(r),d=null;try{var _=h.clone();d=this.tokenizationSupport.tokenize2(l,_,0)}catch(k){s.onUnexpectedError(k)}if(d||(d=u.nullTokenize2(this.languageIdentifier.id,l,h,0)),this._setTokens(this.languageIdentifier.id,r,l.length,d.tokens),t.registerChangedTokens(r+1),this._setIsInvalid(r,!1),i>a){var f=this._getState(a);if(null!==f&&d.endState.equals(f)){for(var p=r+1;i>p&&!this._isInvalid(p);){if(i>p+1){if(null===this._getState(p+1))break}else if(null===this._lastState)break;p++}this._invalidLineStartIndex=Math.max(this._invalidLineStartIndex,p),r=p-1}else this._setState(a,d.endState)}else this._lastState=d.endState}this._invalidLineStartIndex=Math.max(this._invalidLineStartIndex,o+1)},e}();t.ModelLinesTokens=_;var k=function(){function e(){this._ranges=[]}return e.prototype.registerChangedTokens=function(e){var t=this._ranges,n=t.length,i=n>0?t[n-1]:null;i&&i.toLineNumber===e-1?i.toLineNumber++:t[n]={fromLineNumber:e,toLineNumber:e}},e.prototype.build=function(){return 0===this._ranges.length?null:{tokenizationSupportChanged:!1,ranges:this._ranges}},e}();t.ModelTokensChangedEventBuilder=k}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/model/textModel.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/model/textModel",function(e,t){"use strict";function n(){return new y.PieceTreeTextBufferBuilder}function i(e){var t=n();return t.acceptChunk(e),t.finish()}function o(e,t){var n="string"==typeof e?i(e):e;return n.create(t)}function r(e){var t=26;return e%=2*t,String.fromCharCode(t>e?97+e:65+e-t)}function s(e){return e.replace(/[^a-z0-9\-_]/gi," ")}function a(e){return e instanceof U?e:U.createDynamic(e)}Object.defineProperty(t,"__esModule",{value:!0});var u=e("node_modules/tslib/tslib"),d=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),h=e("node_modules/monaco-editor/esm/vs/base/common/errors"),l=e("node_modules/monaco-editor/esm/vs/base/common/event"),f=e("node_modules/monaco-editor/esm/vs/base/common/lifecycle"),g=e("node_modules/monaco-editor/esm/vs/base/common/stopwatch"),c=u.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/strings")),p=e("node_modules/monaco-editor/esm/vs/base/common/uri"),_=e("node_modules/monaco-editor/esm/vs/editor/common/config/editorOptions"),m=e("node_modules/monaco-editor/esm/vs/editor/common/core/position"),v=e("node_modules/monaco-editor/esm/vs/editor/common/core/range"),L=e("node_modules/monaco-editor/esm/vs/editor/common/core/selection"),C=u.__importStar(e("node_modules/monaco-editor/esm/vs/editor/common/model")),b=e("node_modules/monaco-editor/esm/vs/editor/common/model/editStack"),D=e("node_modules/monaco-editor/esm/vs/editor/common/model/indentationGuesser"),k=e("node_modules/monaco-editor/esm/vs/editor/common/model/intervalTree"),y=e("node_modules/monaco-editor/esm/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBufferBuilder"),T=e("node_modules/monaco-editor/esm/vs/editor/common/model/textModelEvents"),I=e("node_modules/monaco-editor/esm/vs/editor/common/model/textModelSearch"),E=e("node_modules/monaco-editor/esm/vs/editor/common/model/textModelTokens"),N=e("node_modules/monaco-editor/esm/vs/editor/common/model/wordHelper"),w=e("node_modules/monaco-editor/esm/vs/editor/common/modes"),S=e("node_modules/monaco-editor/esm/vs/editor/common/modes/languageConfigurationRegistry"),O=e("node_modules/monaco-editor/esm/vs/editor/common/modes/nullMode"),R=e("node_modules/monaco-editor/esm/vs/editor/common/modes/supports"),M=e("node_modules/monaco-editor/esm/vs/editor/common/modes/supports/richEditBrackets"),A=e("node_modules/monaco-editor/esm/vs/base/common/types"),x=2048;t.createTextBufferFactory=i,t.createTextBuffer=o;var z=0,B=999;t.LONG_LINE_BOUNDARY=1e4;var F=function(){throw new Error("Invalid change accessor")},P=function(e){function n(t,i,s,a){void 0===a&&(a=null);var u=e.call(this)||this;u._onWillDispose=u._register(new l.Emitter),u.onWillDispose=u._onWillDispose.event,u._onDidChangeDecorations=u._register(new G),u.onDidChangeDecorations=u._onDidChangeDecorations.event,u._onDidChangeLanguage=u._register(new l.Emitter),u.onDidChangeLanguage=u._onDidChangeLanguage.event,u._onDidChangeLanguageConfiguration=u._register(new l.Emitter),u.onDidChangeLanguageConfiguration=u._onDidChangeLanguageConfiguration.event,u._onDidChangeTokens=u._register(new l.Emitter),u.onDidChangeTokens=u._onDidChangeTokens.event,u._onDidChangeOptions=u._register(new l.Emitter),u.onDidChangeOptions=u._onDidChangeOptions.event,u._eventEmitter=u._register(new j),z++,u.id="$model"+z,u.isForSimpleWidget=i.isForSimpleWidget,u._associatedResource="undefined"==typeof a||null===a?p.URI.parse("inmemory://model/"+z):a,u._attachedEditorCount=0,u._buffer=o(t,i.defaultEOL),u._options=n.resolveOptions(u._buffer,i);var d=u._buffer.getLineCount(),h=u._buffer.getValueLengthInRange(new v.Range(1,1,d,u._buffer.getLineLength(d)+1),0);return u._isTooLargeForTokenization=i.largeFileOptimizations?h>n.LARGE_FILE_SIZE_THRESHOLD||d>n.LARGE_FILE_LINE_COUNT_THRESHOLD:!1,u._isTooLargeForSyncing=h>n.MODEL_SYNC_LIMIT,u._setVersionId(1),u._isDisposed=!1,u._isDisposing=!1,u._languageIdentifier=s||O.NULL_LANGUAGE_IDENTIFIER,u._tokenizationListener=w.TokenizationRegistry.onDidChange(function(e){-1!==e.changedLanguages.indexOf(u._languageIdentifier.language)&&(u._resetTokenizationState(),u.emitModelTokensChangedEvent({tokenizationSupportChanged:!0,ranges:[{fromLineNumber:1,toLineNumber:u.getLineCount()}]}),u._shouldAutoTokenize()&&u._warmUpTokens())}),u._revalidateTokensTimeout=-1,u._languageRegistryListener=S.LanguageConfigurationRegistry.onDidChange(function(e){e.languageIdentifier.id===u._languageIdentifier.id&&u._onDidChangeLanguageConfiguration.fire({})}),u._resetTokenizationState(),u._instanceId=r(z),u._lastDecorationId=0,u._decorations=Object.create(null),u._decorationsTree=new V,u._commandManager=new b.EditStack(u),u._isUndoing=!1,u._isRedoing=!1,u._trimAutoWhitespaceLines=null,u}return d(n,e),n.createFromString=function(e,t,i,o){return void 0===t&&(t=n.DEFAULT_CREATION_OPTIONS),void 0===i&&(i=null),void 0===o&&(o=null),new n(e,t,i,o)},n.resolveOptions=function(e,t){if(t.detectIndentation){var n=D.guessIndentation(e,t.tabSize,t.insertSpaces);return new C.TextModelResolvedOptions({tabSize:n.tabSize,indentSize:n.tabSize,insertSpaces:n.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL})}return new C.TextModelResolvedOptions({tabSize:t.tabSize,indentSize:t.indentSize,insertSpaces:t.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL})},n.prototype.onDidChangeRawContentFast=function(e){return this._eventEmitter.fastEvent(function(t){return e(t.rawContentChangedEvent)})},n.prototype.onDidChangeRawContent=function(e){return this._eventEmitter.slowEvent(function(t){return e(t.rawContentChangedEvent)})},n.prototype.onDidChangeContent=function(e){return this._eventEmitter.slowEvent(function(t){return e(t.contentChangedEvent)})},n.prototype.dispose=function(){this._isDisposing=!0,this._onWillDispose.fire(),this._tokenizationListener.dispose(),this._languageRegistryListener.dispose(),this._clearTimers(),this._isDisposed=!0,e.prototype.dispose.call(this),this._isDisposing=!1},n.prototype._assertNotDisposed=function(){if(this._isDisposed)throw new Error("Model is disposed!")},n.prototype._emitContentChangedEvent=function(e,t){this._isDisposing||this._eventEmitter.fire(new T.InternalModelContentChangeEvent(e,t))},n.prototype.setValue=function(e){if(this._assertNotDisposed(),null!==e){var t=o(e,this._options.defaultEOL);this.setValueFromTextBuffer(t)}},n.prototype._createContentChanged2=function(e,t,n,i,o,r,s){return{changes:[{range:e,rangeOffset:t,rangeLength:n,text:i}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:o,isRedoing:r,isFlush:s}},n.prototype.setValueFromTextBuffer=function(e){if(this._assertNotDisposed(),null!==e){var t=this.getFullModelRange(),n=this.getValueLengthInRange(t),i=this.getLineCount(),o=this.getLineMaxColumn(i);this._buffer=e,this._increaseVersionId(),this._resetTokenizationState(),this._decorations=Object.create(null),this._decorationsTree=new V,this._commandManager=new b.EditStack(this),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new T.ModelRawContentChangedEvent([new T.ModelRawFlush],this._versionId,!1,!1),this._createContentChanged2(new v.Range(1,1,i,o),0,n,this.getValue(),!1,!1,!0))}},n.prototype.setEOL=function(e){this._assertNotDisposed();var t=1===e?"\r\n":"\n";if(this._buffer.getEOL()!==t){var n=this.getFullModelRange(),i=this.getValueLengthInRange(n),o=this.getLineCount(),r=this.getLineMaxColumn(o);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new T.ModelRawContentChangedEvent([new T.ModelRawEOLChanged],this._versionId,!1,!1),this._createContentChanged2(new v.Range(1,1,o,r),0,i,this.getValue(),!1,!1,!1))}},n.prototype._onBeforeEOLChange=function(){var e=this.getVersionId(),t=this._decorationsTree.search(0,!1,!1,e);this._ensureNodesHaveRanges(t)},n.prototype._onAfterEOLChange=function(){for(var e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder(),n=0,i=t.length;i>n;n++){var o=t[n],r=o.cachedAbsoluteStart-o.start,s=this._buffer.getOffsetAt(o.range.startLineNumber,o.range.startColumn),a=this._buffer.getOffsetAt(o.range.endLineNumber,o.range.endColumn);o.cachedAbsoluteStart=s,o.cachedAbsoluteEnd=a,o.cachedVersionId=e,o.start=s-r,o.end=a-r,k.recomputeMaxEnd(o)}},n.prototype._resetTokenizationState=function(){this._clearTimers();var e=this._isTooLargeForTokenization?null:w.TokenizationRegistry.get(this._languageIdentifier.language);this._tokens=new E.ModelLinesTokens(this._languageIdentifier,e),this._beginBackgroundTokenization()},n.prototype._clearTimers=function(){-1!==this._revalidateTokensTimeout&&(clearTimeout(this._revalidateTokensTimeout),this._revalidateTokensTimeout=-1)},n.prototype.onBeforeAttached=function(){this._attachedEditorCount++,this._warmUpTokens()},n.prototype.onBeforeDetached=function(){this._attachedEditorCount--},n.prototype._shouldAutoTokenize=function(){return this.isAttachedToEditor()},n.prototype.isAttachedToEditor=function(){return this._attachedEditorCount>0},n.prototype.getAttachedEditorCount=function(){return this._attachedEditorCount},n.prototype.isTooLargeForSyncing=function(){return this._isTooLargeForSyncing},n.prototype.isTooLargeForTokenization=function(){return this._isTooLargeForTokenization},n.prototype.isDisposed=function(){return this._isDisposed},n.prototype.isDominatedByLongLines=function(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;for(var e=0,n=0,i=this._buffer.getLineCount(),o=1;i>=o;o++){var r=this._buffer.getLineLength(o);r>=t.LONG_LINE_BOUNDARY?n+=r:e+=r}return n>e},Object.defineProperty(n.prototype,"uri",{get:function(){return this._associatedResource},enumerable:!0,configurable:!0}),n.prototype.getOptions=function(){return this._assertNotDisposed(),this._options},n.prototype.getFormattingOptions=function(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}},n.prototype.updateOptions=function(e){this._assertNotDisposed();var t="undefined"!=typeof e.tabSize?e.tabSize:this._options.tabSize,n="undefined"!=typeof e.indentSize?e.indentSize:this._options.indentSize,i="undefined"!=typeof e.insertSpaces?e.insertSpaces:this._options.insertSpaces,o="undefined"!=typeof e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,r=new C.TextModelResolvedOptions({tabSize:t,indentSize:n,insertSpaces:i,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:o});if(!this._options.equals(r)){var s=this._options.createChangeEvent(r);this._options=r,this._onDidChangeOptions.fire(s)}},n.prototype.detectIndentation=function(e,t){this._assertNotDisposed();var n=D.guessIndentation(this._buffer,t,e);this.updateOptions({insertSpaces:n.insertSpaces,tabSize:n.tabSize,indentSize:n.tabSize})},n._normalizeIndentationFromWhitespace=function(e,t,n){for(var i=0,o=0;oo;o++)r+=" "}for(var o=0;i>o;o++)r+=" ";return r},n.normalizeIndentation=function(e,t,i){var o=c.firstNonWhitespaceIndex(e);return-1===o&&(o=e.length),n._normalizeIndentationFromWhitespace(e.substring(0,o),t,i)+e.substring(o)},n.prototype.normalizeIndentation=function(e){return this._assertNotDisposed(),n.normalizeIndentation(e,this._options.indentSize,this._options.insertSpaces)},n.prototype.getVersionId=function(){return this._assertNotDisposed(),this._versionId},n.prototype.mightContainRTL=function(){return this._buffer.mightContainRTL()},n.prototype.mightContainNonBasicASCII=function(){return this._buffer.mightContainNonBasicASCII()},n.prototype.getAlternativeVersionId=function(){return this._assertNotDisposed(),this._alternativeVersionId},n.prototype.getOffsetAt=function(e){this._assertNotDisposed();var t=this._validatePosition(e.lineNumber,e.column,!1);return this._buffer.getOffsetAt(t.lineNumber,t.column)},n.prototype.getPositionAt=function(e){this._assertNotDisposed();var t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)},n.prototype._increaseVersionId=function(){this._setVersionId(this._versionId+1)},n.prototype._setVersionId=function(e){this._versionId=e,this._alternativeVersionId=this._versionId},n.prototype._overwriteAlternativeVersionId=function(e){this._alternativeVersionId=e},n.prototype.getValue=function(e,t){void 0===t&&(t=!1),this._assertNotDisposed();var n=this.getFullModelRange(),i=this.getValueInRange(n,e);return t?this._buffer.getBOM()+i:i},n.prototype.getValueLength=function(e,t){void 0===t&&(t=!1),this._assertNotDisposed();var n=this.getFullModelRange(),i=this.getValueLengthInRange(n,e);return t?this._buffer.getBOM().length+i:i},n.prototype.getValueInRange=function(e,t){return void 0===t&&(t=0),this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)},n.prototype.getValueLengthInRange=function(e,t){return void 0===t&&(t=0),this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)},n.prototype.getLineCount=function(){return this._assertNotDisposed(),this._buffer.getLineCount()},n.prototype.getLineContent=function(e){if(this._assertNotDisposed(),1>e||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(e)},n.prototype.getLineLength=function(e){if(this._assertNotDisposed(),1>e||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)},n.prototype.getLinesContent=function(){return this._assertNotDisposed(),this._buffer.getLinesContent()},n.prototype.getEOL=function(){return this._assertNotDisposed(),this._buffer.getEOL()},n.prototype.getLineMinColumn=function(){return this._assertNotDisposed(),1},n.prototype.getLineMaxColumn=function(e){if(this._assertNotDisposed(),1>e||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1},n.prototype.getLineFirstNonWhitespaceColumn=function(e){if(this._assertNotDisposed(),1>e||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)},n.prototype.getLineLastNonWhitespaceColumn=function(e){if(this._assertNotDisposed(),1>e||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)},n.prototype._validateRangeRelaxedNoAllocations=function(e){var t,n,i=this._buffer.getLineCount(),o=e.startLineNumber,r=e.startColumn;if(1>o)t=1,n=1;else if(o>i)t=i,n=this.getLineMaxColumn(t);else if(t=0|o,1>=r)n=1;else{var s=this.getLineMaxColumn(t);n=r>=s?s:0|r}var a,u,d=e.endLineNumber,h=e.endColumn;if(1>d)a=1,u=1;else if(d>i)a=i,u=this.getLineMaxColumn(a);else if(a=0|d,1>=h)u=1;else{var s=this.getLineMaxColumn(a);u=h>=s?s:0|h}return o===t&&r===n&&d===a&&h===u&&e instanceof v.Range&&!(e instanceof L.Selection)?e:new v.Range(t,n,a,u)},n.prototype._isValidPosition=function(e,t,n){if("number"!=typeof e||"number"!=typeof t)return!1;if(isNaN(e)||isNaN(t))return!1;if(1>e||1>t)return!1;if((0|e)!==e||(0|t)!==t)return!1;var i=this._buffer.getLineCount();if(e>i)return!1;var o=this.getLineMaxColumn(e);if(t>o)return!1;if(n&&t>1){var r=this._buffer.getLineCharCode(e,t-2);if(c.isHighSurrogate(r))return!1}return!0},n.prototype._validatePosition=function(e,t,n){var i=Math.floor("number"!=typeof e||isNaN(e)?1:e),o=Math.floor("number"!=typeof t||isNaN(t)?1:t),r=this._buffer.getLineCount();if(1>i)return new m.Position(1,1);if(i>r)return new m.Position(r,this.getLineMaxColumn(r));if(1>=o)return new m.Position(i,1);var s=this.getLineMaxColumn(i);if(o>=s)return new m.Position(i,s);if(n){var a=this._buffer.getLineCharCode(i,o-2);if(c.isHighSurrogate(a))return new m.Position(i,o-1)}return new m.Position(i,o)},n.prototype.validatePosition=function(e){return this._assertNotDisposed(),e instanceof m.Position&&this._isValidPosition(e.lineNumber,e.column,!0)?e:this._validatePosition(e.lineNumber,e.column,!0)},n.prototype._isValidRange=function(e,t){var n=e.startLineNumber,i=e.startColumn,o=e.endLineNumber,r=e.endColumn;if(!this._isValidPosition(n,i,!1))return!1;if(!this._isValidPosition(o,r,!1))return!1;if(t){var s=i>1?this._buffer.getLineCharCode(n,i-2):0,a=r>1&&r<=this._buffer.getLineLength(o)?this._buffer.getLineCharCode(o,r-2):0,u=c.isHighSurrogate(s),d=c.isHighSurrogate(a);return u||d?!1:!0}return!0},n.prototype.validateRange=function(e){if(this._assertNotDisposed(),e instanceof v.Range&&!(e instanceof L.Selection)&&this._isValidRange(e,!0))return e;var t=this._validatePosition(e.startLineNumber,e.startColumn,!1),n=this._validatePosition(e.endLineNumber,e.endColumn,!1),i=t.lineNumber,o=t.column,r=n.lineNumber,s=n.column,a=o>1?this._buffer.getLineCharCode(i,o-2):0,u=s>1&&s<=this._buffer.getLineLength(r)?this._buffer.getLineCharCode(r,s-2):0,d=c.isHighSurrogate(a),h=c.isHighSurrogate(u);return d||h?i===r&&o===s?new v.Range(i,o-1,r,s-1):d&&h?new v.Range(i,o-1,r,s+1):d?new v.Range(i,o-1,r,s):new v.Range(i,o,r,s+1):new v.Range(i,o,r,s)},n.prototype.modifyPosition=function(e,t){this._assertNotDisposed();var n=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,n)))},n.prototype.getFullModelRange=function(){this._assertNotDisposed();var e=this.getLineCount();return new v.Range(1,1,e,this.getLineMaxColumn(e))},n.prototype.findMatchesLineByLine=function(e,t,n,i){return this._buffer.findMatchesLineByLine(e,t,n,i)},n.prototype.findMatches=function(e,t,n,i,o,r,s){void 0===s&&(s=B),this._assertNotDisposed();var a;if(a=v.Range.isIRange(t)?this.validateRange(t):this.getFullModelRange(),!n&&e.indexOf("\n")<0){var u=new I.SearchParams(e,n,i,o),d=u.parseSearchRequest();return d?this.findMatchesLineByLine(a,d,r,s):[]}return I.TextModelSearch.findMatches(this,new I.SearchParams(e,n,i,o),a,r,s)},n.prototype.findNextMatch=function(e,t,n,i,o,r){this._assertNotDisposed();var s=this.validatePosition(t);if(!n&&e.indexOf("\n")<0){var a=new I.SearchParams(e,n,i,o),u=a.parseSearchRequest();if(!u)return null;var d=this.getLineCount(),h=new v.Range(s.lineNumber,s.column,d,this.getLineMaxColumn(d)),l=this.findMatchesLineByLine(h,u,r,1);return I.TextModelSearch.findNextMatch(this,new I.SearchParams(e,n,i,o),s,r),l.length>0?l[0]:(h=new v.Range(1,1,s.lineNumber,this.getLineMaxColumn(s.lineNumber)),l=this.findMatchesLineByLine(h,u,r,1),l.length>0?l[0]:null)}return I.TextModelSearch.findNextMatch(this,new I.SearchParams(e,n,i,o),s,r)},n.prototype.findPreviousMatch=function(e,t,n,i,o,r){this._assertNotDisposed();var s=this.validatePosition(t);return I.TextModelSearch.findPreviousMatch(this,new I.SearchParams(e,n,i,o),s,r)},n.prototype.pushStackElement=function(){this._commandManager.pushStackElement()},n.prototype.pushEOL=function(e){var t="\n"===this.getEOL()?0:1;if(t!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},n.prototype.pushEditOperations=function(e,t,n){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(e,t,n)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},n.prototype._pushEditOperations=function(e,t,n){var i=this;if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){for(var o=t.map(function(e){return{range:i.validateRange(e.range),text:e.text}}),r=!0,s=0,a=e.length;a>s;s++){for(var u=e[s],d=!1,h=0,l=o.length;l>h;h++){var f=o[h].range,g=f.startLineNumber>u.endLineNumber,c=u.startLineNumber>f.endLineNumber;if(!g&&!c){d=!0;break}}if(!d){r=!1;break}}if(r)for(var s=0,a=this._trimAutoWhitespaceLines.length;a>s;s++){for(var p=this._trimAutoWhitespaceLines[s],_=this.getLineMaxColumn(p),m=!0,h=0,l=o.length;l>h;h++){var f=o[h].range,L=o[h].text;if(!(pf.endLineNumber||p===f.startLineNumber&&f.startColumn===_&&f.isEmpty()&&L&&L.length>0&&"\n"===L.charAt(0)||p===f.startLineNumber&&1===f.startColumn&&f.isEmpty()&&L&&L.length>0&&"\n"===L.charAt(L.length-1))){m=!1;break}}m&&t.push({range:new v.Range(p,1,p,_),text:null})}this._trimAutoWhitespaceLines=null}return this._commandManager.pushEditOperation(e,t,n)},n.prototype.applyEdits=function(e){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._applyEdits(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},n._eolCount=function(e){for(var t=0,n=0,i=0,o=e.length;o>i;i++){var r=e.charCodeAt(i);13===r?(0===t&&(n=i),t++,o>i+1&&10===e.charCodeAt(i+1)&&i++):10===r&&(0===t&&(n=i),t++)}return 0===t&&(n=e.length),[t,n]},n.prototype._applyEdits=function(e){for(var t=0,i=e.length;i>t;t++)e[t].range=this.validateRange(e[t].range);var o=this._buffer.getLineCount(),r=this._buffer.applyEdits(e,this._options.trimAutoWhitespace),s=this._buffer.getLineCount(),a=r.changes;if(this._trimAutoWhitespaceLines=r.trimAutoWhitespaceLineNumbers,0!==a.length){for(var u=[],d=o,t=0,i=a.length;i>t;t++){var h=a[t],l=n._eolCount(h.text),f=l[0],g=l[1];try{this._tokens.applyEdits(h.range,f,g)}catch(c){this._tokens=new E.ModelLinesTokens(this._tokens.languageIdentifier,this._tokens.tokenizationSupport)}this._onDidChangeDecorations.fire(),this._decorationsTree.acceptReplace(h.rangeOffset,h.rangeLength,h.text.length,h.forceMoveMarkers);for(var p=h.range.startLineNumber,_=h.range.endLineNumber,m=_-p,v=f,L=Math.min(m,v),C=v-m,b=L;b>=0;b--){var D=p+b,k=s-d-C+D;u.push(new T.ModelRawLineChanged(D,this.getLineContent(k)))}if(m>L){var y=p+L;u.push(new T.ModelRawLinesDeleted(y+1,_))}if(v>L){for(var I=p+L,N=v-L,w=s-d-N+I+1,S=[],O=0;N>O;O++){var R=w+O;S[R-w]=this.getLineContent(R)}u.push(new T.ModelRawLinesInserted(I+1,p+v,S))}d+=C}this._increaseVersionId(),this._emitContentChangedEvent(new T.ModelRawContentChangedEvent(u,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:a,eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return this._tokens.hasLinesToTokenize(this._buffer)&&this._beginBackgroundTokenization(),r.reverseEdits},n.prototype._undo=function(){this._isUndoing=!0;var e=this._commandManager.undo();return this._isUndoing=!1,e?(this._overwriteAlternativeVersionId(e.recordedVersionId),e.selections):null},n.prototype.undo=function(){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._undo()}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},n.prototype.canUndo=function(){return this._commandManager.canUndo()},n.prototype._redo=function(){this._isRedoing=!0;var e=this._commandManager.redo();return this._isRedoing=!1,e?(this._overwriteAlternativeVersionId(e.recordedVersionId),e.selections):null},n.prototype.redo=function(){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._redo()}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},n.prototype.canRedo=function(){return this._commandManager.canRedo()},n.prototype.changeDecorations=function(e,t){void 0===t&&(t=0),this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}},n.prototype._changeDecorations=function(e,t){var n=this,i={addDecoration:function(t,i){return n._onDidChangeDecorations.fire(),n._deltaDecorationsImpl(e,[],[{range:t,options:i}])[0]},changeDecoration:function(e,t){n._onDidChangeDecorations.fire(),n._changeDecorationImpl(e,t)},changeDecorationOptions:function(e,t){n._onDidChangeDecorations.fire(),n._changeDecorationOptionsImpl(e,a(t))},removeDecoration:function(t){n._onDidChangeDecorations.fire(),n._deltaDecorationsImpl(e,[t],[])},deltaDecorations:function(t,i){return 0===t.length&&0===i.length?[]:(n._onDidChangeDecorations.fire(),n._deltaDecorationsImpl(e,t,i))}},o=null;try{o=t(i)}catch(r){h.onUnexpectedError(r)}return i.addDecoration=F,i.changeDecoration=F,i.changeDecorationOptions=F,i.removeDecoration=F,i.deltaDecorations=F,o},n.prototype.deltaDecorations=function(e,t,n){if(void 0===n&&(n=0),this._assertNotDisposed(),e||(e=[]),0===e.length&&0===t.length)return[];try{return this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._deltaDecorationsImpl(n,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit()}},n.prototype._getTrackedRange=function(e){return this.getDecorationRange(e)},n.prototype._setTrackedRange=function(e,t,n){var i=e?this._decorations[e]:null;if(!i)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:H[n]}])[0]:null;if(!t)return this._decorationsTree.delete(i),delete this._decorations[i.id],null;var o=this._validateRangeRelaxedNoAllocations(t),r=this._buffer.getOffsetAt(o.startLineNumber,o.startColumn),s=this._buffer.getOffsetAt(o.endLineNumber,o.endColumn);return this._decorationsTree.delete(i),i.reset(this.getVersionId(),r,s,o),i.setOptions(H[n]),this._decorationsTree.insert(i),i.id},n.prototype.removeAllDecorationsWithOwnerId=function(e){if(!this._isDisposed)for(var t=this._decorationsTree.collectNodesFromOwner(e),n=0,i=t.length;i>n;n++){var o=t[n];this._decorationsTree.delete(o),delete this._decorations[o.id]}},n.prototype.getDecorationOptions=function(e){var t=this._decorations[e];return t?t.options:null},n.prototype.getDecorationRange=function(e){var t=this._decorations[e];if(!t)return null;var n=this.getVersionId();return t.cachedVersionId!==n&&this._decorationsTree.resolveNode(t,n),null===t.range&&(t.range=this._getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range},n.prototype.getLineDecorations=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=!1),1>e||e>this.getLineCount()?[]:this.getLinesDecorations(e,e,t,n)},n.prototype.getLinesDecorations=function(e,t,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var o=this.getLineCount(),r=Math.min(o,Math.max(1,e)),s=Math.min(o,Math.max(1,t)),a=this.getLineMaxColumn(s);return this._getDecorationsInRange(new v.Range(r,1,s,a),n,i)},n.prototype.getDecorationsInRange=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=!1);var i=this.validateRange(e);return this._getDecorationsInRange(i,t,n)},n.prototype.getOverviewRulerDecorations=function(e,t){void 0===e&&(e=0),void 0===t&&(t=!1);var n=this.getVersionId(),i=this._decorationsTree.search(e,t,!0,n);return this._ensureNodesHaveRanges(i)},n.prototype.getAllDecorations=function(e,t){void 0===e&&(e=0),void 0===t&&(t=!1);var n=this.getVersionId(),i=this._decorationsTree.search(e,t,!1,n);return this._ensureNodesHaveRanges(i)},n.prototype._getDecorationsInRange=function(e,t,n){var i=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),o=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn),r=this.getVersionId(),s=this._decorationsTree.intervalSearch(i,o,t,n,r);return this._ensureNodesHaveRanges(s)},n.prototype._ensureNodesHaveRanges=function(e){for(var t=0,n=e.length;n>t;t++){var i=e[t];null===i.range&&(i.range=this._getRangeAt(i.cachedAbsoluteStart,i.cachedAbsoluteEnd))}return e},n.prototype._getRangeAt=function(e,t){return this._buffer.getRangeAt(e,t-e)},n.prototype._changeDecorationImpl=function(e,t){var n=this._decorations[e];if(n){var i=this._validateRangeRelaxedNoAllocations(t),o=this._buffer.getOffsetAt(i.startLineNumber,i.startColumn),r=this._buffer.getOffsetAt(i.endLineNumber,i.endColumn);this._decorationsTree.delete(n),n.reset(this.getVersionId(),o,r,i),this._decorationsTree.insert(n)}},n.prototype._changeDecorationOptionsImpl=function(e,t){var n=this._decorations[e];if(n){var i=n.options.overviewRuler&&n.options.overviewRuler.color?!0:!1,o=t.overviewRuler&&t.overviewRuler.color?!0:!1;i!==o?(this._decorationsTree.delete(n),n.setOptions(t),this._decorationsTree.insert(n)):n.setOptions(t)}},n.prototype._deltaDecorationsImpl=function(e,t,n){for(var i=this.getVersionId(),o=t.length,r=0,s=n.length,u=0,d=new Array(s);o>r||s>u;){var h=null;if(o>r){do h=this._decorations[t[r++]];while(!h&&o>r);h&&this._decorationsTree.delete(h)}if(s>u){if(!h){var l=++this._lastDecorationId,f=this._instanceId+";"+l;h=new k.IntervalNode(f,0,0),this._decorations[f]=h}var g=n[u],c=this._validateRangeRelaxedNoAllocations(g.range),p=a(g.options),_=this._buffer.getOffsetAt(c.startLineNumber,c.startColumn),m=this._buffer.getOffsetAt(c.endLineNumber,c.endColumn);h.ownerId=e,h.reset(i,_,m,c),h.setOptions(p),this._decorationsTree.insert(h),d[u]=h.id,u++}else h&&delete this._decorations[h.id]}return d},n.prototype.tokenizeViewport=function(e,t){if(this._tokens.tokenizationSupport&&(e=Math.max(1,e),t=Math.min(this.getLineCount(),t),!(t<=this._tokens.inValidLineStartIndex))){if(e<=this._tokens.inValidLineStartIndex)return void this.forceTokenization(t);for(var n=this.getLineFirstNonWhitespaceColumn(e),i=[],o=null,r=e-1;n>0&&r>=1;r--){var s=this.getLineFirstNonWhitespaceColumn(r);if(0!==s&&n>s){if(o=this._tokens._getState(r-1))break;i.push(this.getLineContent(r)),n=s}}o||(o=this._tokens.tokenizationSupport.getInitialState());for(var a=o.clone(),r=i.length-1;r>=0;r--){var u=this._tokens._tokenizeText(this._buffer,i[r],a);a=u?u.endState.clone():o.clone()}for(var d=new E.ModelTokensChangedEventBuilder,r=e;t>=r;r++){var h=this.getLineContent(r),u=this._tokens._tokenizeText(this._buffer,h,a);u?(this._tokens._setTokens(this._tokens.languageIdentifier.id,r-1,h.length,u.tokens),this._tokens._setIsInvalid(r-1,!0),this._tokens._setState(r-1,a),a=u.endState.clone(),d.registerChangedTokens(r)):a=o.clone()}var l=d.build();l&&this._onDidChangeTokens.fire(l)}},n.prototype.flushTokens=function(){this._resetTokenizationState(),this.emitModelTokensChangedEvent({tokenizationSupportChanged:!1,ranges:[{fromLineNumber:1,toLineNumber:this.getLineCount()}]})},n.prototype.forceTokenization=function(e){if(1>e||e>this.getLineCount())throw new Error("Illegal value for lineNumber");var t=new E.ModelTokensChangedEventBuilder;this._tokens._updateTokensUntilLine(this._buffer,t,e);var n=t.build();n&&this._onDidChangeTokens.fire(n)},n.prototype.isCheapToTokenize=function(e){return this._tokens.isCheapToTokenize(e)?ee||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(e)},n.prototype._getLineTokens=function(e){var t=this._buffer.getLineContent(e);return this._tokens.getTokens(this._languageIdentifier.id,e-1,t)},n.prototype.getLanguageIdentifier=function(){return this._languageIdentifier},n.prototype.getModeId=function(){return this._languageIdentifier.language},n.prototype.setMode=function(e){if(this._languageIdentifier.id!==e.id){var t={oldLanguage:this._languageIdentifier.language,newLanguage:e.language};this._languageIdentifier=e,this._resetTokenizationState(),this.emitModelTokensChangedEvent({tokenizationSupportChanged:!0,ranges:[{fromLineNumber:1,toLineNumber:this.getLineCount()}]}),this._onDidChangeLanguage.fire(t),this._onDidChangeLanguageConfiguration.fire({})}},n.prototype.getLanguageIdAtPosition=function(e,t){if(!this._tokens.tokenizationSupport)return this._languageIdentifier.id;var n=this.validatePosition({lineNumber:e,column:t}),i=n.lineNumber,o=n.column,r=this._getLineTokens(i);return r.getLanguageId(r.findTokenIndexAtOffset(o-1))},n.prototype._beginBackgroundTokenization=function(){var e=this;this._shouldAutoTokenize()&&-1===this._revalidateTokensTimeout&&(this._revalidateTokensTimeout=setTimeout(function(){e._revalidateTokensTimeout=-1,e._revalidateTokensNow()},0))},n.prototype._warmUpTokens=function(){var e=Math.min(100,this.getLineCount()); this._revalidateTokensNow(e),this._tokens.hasLinesToTokenize(this._buffer)&&this._beginBackgroundTokenization()},n.prototype._revalidateTokensNow=function(e){void 0===e&&(e=this._buffer.getLineCount());for(var t=20,n=new E.ModelTokensChangedEventBuilder,i=g.StopWatch.create(!1);this._tokens.hasLinesToTokenize(this._buffer)&&!(i.elapsed()>t);){var o=this._tokens._tokenizeOneLine(this._buffer,n);if(o>=e)break}this._tokens.hasLinesToTokenize(this._buffer)&&this._beginBackgroundTokenization();var r=n.build();r&&this._onDidChangeTokens.fire(r)},n.prototype.emitModelTokensChangedEvent=function(e){this._isDisposing||this._onDidChangeTokens.fire(e)},n.prototype.getWordAtPosition=function(e){this._assertNotDisposed();var t=this.validatePosition(e),i=this.getLineContent(t.lineNumber),o=this._getLineTokens(t.lineNumber),r=o.findTokenIndexAtOffset(t.column-1),s=n._findLanguageBoundaries(o,r),a=s[0],u=s[1],d=N.getWordAtText(t.column,S.LanguageConfigurationRegistry.getWordDefinition(o.getLanguageId(r)),i.substring(a,u),a);if(d&&d.startColumn<=e.column&&e.column<=d.endColumn)return d;if(r>0&&a===t.column-1){var h=n._findLanguageBoundaries(o,r-1),l=h[0],f=h[1],g=N.getWordAtText(t.column,S.LanguageConfigurationRegistry.getWordDefinition(o.getLanguageId(r-1)),i.substring(l,f),l);if(g&&g.startColumn<=e.column&&e.column<=g.endColumn)return g}return null},n._findLanguageBoundaries=function(e,t){for(var n=e.getLanguageId(t),i=0,o=t;o>=0&&e.getLanguageId(o)===n;o--)i=e.getStartOffset(o);for(var r=e.getLineContent().length,o=t,s=e.getCount();s>o&&e.getLanguageId(o)===n;o++)r=e.getEndOffset(o);return[i,r]},n.prototype.getWordUntilPosition=function(e){var t=this.getWordAtPosition(e);return t?{word:t.word.substr(0,e.column-t.startColumn),startColumn:t.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}},n.prototype.findMatchingBracketUp=function(e,t){var n=e.toLowerCase(),i=this.validatePosition(t),o=this._getLineTokens(i.lineNumber),r=o.getLanguageId(o.findTokenIndexAtOffset(i.column-1)),s=S.LanguageConfigurationRegistry.getBracketsSupport(r);if(!s)return null;var a=s.textIsBracket[n];return a?this._findMatchingBracketUp(a,i):null},n.prototype.matchBracket=function(e){return this._matchBracket(this.validatePosition(e))},n.prototype._matchBracket=function(e){var t=e.lineNumber,n=this._getLineTokens(t),i=this._buffer.getLineContent(t),o=n.findTokenIndexAtOffset(e.column-1);if(0>o)return null;var r=S.LanguageConfigurationRegistry.getBracketsSupport(n.getLanguageId(o));if(r&&!R.ignoreBracketsInToken(n.getStandardTokenType(o))){for(var s=Math.max(n.getStartOffset(o),e.column-1-r.maxBracketLength),a=Math.min(n.getEndOffset(o),e.column-1+r.maxBracketLength),u=null;;){var d=M.BracketsUtils.findNextBracketInToken(r.forwardRegex,t,i,s,a);if(!d)break;if(d.startColumn<=e.column&&e.column<=d.endColumn){var h=i.substring(d.startColumn-1,d.endColumn-1);h=h.toLowerCase();var l=this._matchFoundBracket(d,r.textIsBracket[h],r.textIsOpenBracket[h]);l&&(u=l)}s=d.endColumn-1}if(u)return u}if(o>0&&n.getStartOffset(o)===e.column-1){var a=n.getStartOffset(o);o--;var f=S.LanguageConfigurationRegistry.getBracketsSupport(n.getLanguageId(o));if(f&&!R.ignoreBracketsInToken(n.getStandardTokenType(o))){var s=Math.max(n.getStartOffset(o),e.column-1-f.maxBracketLength),d=M.BracketsUtils.findPrevBracketInToken(f.reversedRegex,t,i,s,a);if(d&&d.startColumn<=e.column&&e.column<=d.endColumn){var h=i.substring(d.startColumn-1,d.endColumn-1);h=h.toLowerCase();var l=this._matchFoundBracket(d,f.textIsBracket[h],f.textIsOpenBracket[h]);if(l)return l}}}return null},n.prototype._matchFoundBracket=function(e,t,n){if(!t)return null;if(n){var i=this._findMatchingBracketDown(t,e.getEndPosition());if(i)return[e,i]}else{var i=this._findMatchingBracketUp(t,e.getStartPosition());if(i)return[e,i]}return null},n.prototype._findMatchingBracketUp=function(e,t){for(var n=e.languageIdentifier.id,i=e.reversedRegex,o=-1,r=t.lineNumber;r>=1;r--){var s=this._getLineTokens(r),a=s.getCount(),u=this._buffer.getLineContent(r),d=a-1,h=-1;for(r===t.lineNumber&&(d=s.findTokenIndexAtOffset(t.column-1),h=t.column-1);d>=0;d--){var l=s.getLanguageId(d),f=s.getStandardTokenType(d),g=s.getStartOffset(d),c=s.getEndOffset(d);if(-1===h&&(h=c),l===n&&!R.ignoreBracketsInToken(f))for(;;){var p=M.BracketsUtils.findPrevBracketInToken(i,r,u,g,h);if(!p)break;var _=u.substring(p.startColumn-1,p.endColumn-1);if(_=_.toLowerCase(),_===e.open?o++:_===e.close&&o--,0===o)return p;h=p.startColumn-1}h=-1}}return null},n.prototype._findMatchingBracketDown=function(e,t){for(var n=e.languageIdentifier.id,i=e.forwardRegex,o=1,r=t.lineNumber,s=this.getLineCount();s>=r;r++){var a=this._getLineTokens(r),u=a.getCount(),d=this._buffer.getLineContent(r),h=0,l=0;for(r===t.lineNumber&&(h=a.findTokenIndexAtOffset(t.column-1),l=t.column-1);u>h;h++){var f=a.getLanguageId(h),g=a.getStandardTokenType(h),c=a.getStartOffset(h),p=a.getEndOffset(h);if(0===l&&(l=c),f===n&&!R.ignoreBracketsInToken(g))for(;;){var _=M.BracketsUtils.findNextBracketInToken(i,r,d,l,p);if(!_)break;var m=d.substring(_.startColumn-1,_.endColumn-1);if(m=m.toLowerCase(),m===e.open?o++:m===e.close&&o--,0===o)return _;l=_.endColumn-1}l=0}}return null},n.prototype.findPrevBracket=function(e){for(var t=this.validatePosition(e),n=-1,i=null,o=t.lineNumber;o>=1;o--){var r=this._getLineTokens(o),s=r.getCount(),a=this._buffer.getLineContent(o),u=s-1,d=-1;for(o===t.lineNumber&&(u=r.findTokenIndexAtOffset(t.column-1),d=t.column-1);u>=0;u--){var h=r.getLanguageId(u),l=r.getStandardTokenType(u),f=r.getStartOffset(u),g=r.getEndOffset(u);if(-1===d&&(d=g),n!==h&&(n=h,i=S.LanguageConfigurationRegistry.getBracketsSupport(n)),i&&!R.ignoreBracketsInToken(l)){var c=M.BracketsUtils.findPrevBracketInToken(i.reversedRegex,o,a,f,d);if(c)return this._toFoundBracket(i,c)}d=-1}}return null},n.prototype.findNextBracket=function(e){for(var t=this.validatePosition(e),n=-1,i=null,o=t.lineNumber,r=this.getLineCount();r>=o;o++){var s=this._getLineTokens(o),a=s.getCount(),u=this._buffer.getLineContent(o),d=0,h=0;for(o===t.lineNumber&&(d=s.findTokenIndexAtOffset(t.column-1),h=t.column-1);a>d;d++){var l=s.getLanguageId(d),f=s.getStandardTokenType(d),g=s.getStartOffset(d),c=s.getEndOffset(d);if(0===h&&(h=g),n!==l&&(n=l,i=S.LanguageConfigurationRegistry.getBracketsSupport(n)),i&&!R.ignoreBracketsInToken(f)){var p=M.BracketsUtils.findNextBracketInToken(i.forwardRegex,o,u,h,c);if(p)return this._toFoundBracket(i,p)}h=0}}return null},n.prototype._toFoundBracket=function(e,t){if(!t)return null;var n=this.getValueInRange(t);n=n.toLowerCase();var i=e.textIsBracket[n];return i?{range:t,open:i.open,close:i.close,isOpen:e.textIsOpenBracket[n]}:null},n.computeIndentLevel=function(e,t){for(var n=0,i=0,o=e.length;o>i;){var r=e.charCodeAt(i);if(32===r)n++;else{if(9!==r)break;n=n-n%t+t}i++}return i===o?-1:n},n.prototype._computeIndentLevel=function(e){return n.computeIndentLevel(this._buffer.getLineContent(e+1),this._options.tabSize)},n.prototype.getActiveIndentGuide=function(e,t,n){var i=this;this._assertNotDisposed();var o=this.getLineCount();if(1>e||e>o)throw new Error("Illegal value for lineNumber");for(var r=S.LanguageConfigurationRegistry.getFoldingRules(this._languageIdentifier.id),s=Boolean(r&&r.offSide),a=-2,u=-1,d=-2,h=-1,l=function(e){if(-1!==a&&(-2===a||a>e-1)){a=-1,u=-1;for(var t=e-2;t>=0;t--){var n=i._computeIndentLevel(t);if(n>=0){a=t,u=n;break}}}if(-2===d){d=-1,h=-1;for(var t=e;o>t;t++){var r=i._computeIndentLevel(t);if(r>=0){d=t,h=r;break}}}},f=-2,g=-1,c=-2,p=-1,_=function(e){if(-2===f){f=-1,g=-1;for(var t=e-2;t>=0;t--){var n=i._computeIndentLevel(t);if(n>=0){f=t,g=n;break}}}if(-1!==c&&(-2===c||e-1>c)){c=-1,p=-1;for(var t=e;o>t;t++){var r=i._computeIndentLevel(t);if(r>=0){c=t,p=r;break}}}},m=0,v=!0,L=0,C=!0,b=0,D=0;v||C;D++){var k=e-D,y=e+D;if(0!==D&&(1>k||t>k)&&(v=!1),0!==D&&(y>o||y>n)&&(C=!1),D>5e4&&(v=!1,C=!1),v){var T=void 0,I=this._computeIndentLevel(k-1);if(I>=0?(d=k-1,h=I,T=Math.ceil(I/this._options.indentSize)):(l(k),T=this._getIndentLevelForWhitespaceLine(s,u,h)),0===D){if(m=k,L=y,b=T,0===b)return{startLineNumber:m,endLineNumber:L,indent:b};continue}T>=b?m=k:v=!1}if(C){var E=void 0,I=this._computeIndentLevel(y-1);I>=0?(f=y-1,g=I,E=Math.ceil(I/this._options.indentSize)):(_(y),E=this._getIndentLevelForWhitespaceLine(s,g,p)),E>=b?L=y:C=!1}}return{startLineNumber:m,endLineNumber:L,indent:b}},n.prototype.getLinesIndentGuides=function(e,t){this._assertNotDisposed();var n=this.getLineCount();if(1>e||e>n)throw new Error("Illegal value for startLineNumber");if(1>t||t>n)throw new Error("Illegal value for endLineNumber");for(var i=S.LanguageConfigurationRegistry.getFoldingRules(this._languageIdentifier.id),o=Boolean(i&&i.offSide),r=new Array(t-e+1),s=-2,a=-1,u=-2,d=-1,h=e;t>=h;h++){var l=h-e,f=this._computeIndentLevel(h-1);if(f>=0)s=h-1,a=f,r[l]=Math.ceil(f/this._options.indentSize);else{if(-2===s){s=-1,a=-1;for(var g=h-2;g>=0;g--){var c=this._computeIndentLevel(g);if(c>=0){s=g,a=c;break}}}if(-1!==u&&(-2===u||h-1>u)){u=-1,d=-1;for(var g=h;n>g;g++){var c=this._computeIndentLevel(g);if(c>=0){u=g,d=c;break}}}r[l]=this._getIndentLevelForWhitespaceLine(o,a,d)}}return r},n.prototype._getIndentLevelForWhitespaceLine=function(e,t,n){return-1===t||-1===n?0:n>t?1+Math.floor(t/this._options.indentSize):t===n?Math.ceil(n/this._options.indentSize):e?Math.ceil(n/this._options.indentSize):1+Math.floor(n/this._options.indentSize)},n.MODEL_SYNC_LIMIT=52428800,n.LARGE_FILE_SIZE_THRESHOLD=20971520,n.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5,n.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:_.EDITOR_MODEL_DEFAULTS.tabSize,indentSize:_.EDITOR_MODEL_DEFAULTS.indentSize,insertSpaces:_.EDITOR_MODEL_DEFAULTS.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:_.EDITOR_MODEL_DEFAULTS.trimAutoWhitespace,largeFileOptimizations:_.EDITOR_MODEL_DEFAULTS.largeFileOptimizations},n}(f.Disposable);t.TextModel=P;var V=function(){function e(){this._decorationsTree0=new k.IntervalTree,this._decorationsTree1=new k.IntervalTree}return e.prototype.intervalSearch=function(e,t,n,i,o){var r=this._decorationsTree0.intervalSearch(e,t,n,i,o),s=this._decorationsTree1.intervalSearch(e,t,n,i,o);return r.concat(s)},e.prototype.search=function(e,t,n,i){if(n)return this._decorationsTree1.search(e,t,i);var o=this._decorationsTree0.search(e,t,i),r=this._decorationsTree1.search(e,t,i);return o.concat(r)},e.prototype.collectNodesFromOwner=function(e){var t=this._decorationsTree0.collectNodesFromOwner(e),n=this._decorationsTree1.collectNodesFromOwner(e);return t.concat(n)},e.prototype.collectNodesPostOrder=function(){var e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder();return e.concat(t)},e.prototype.insert=function(e){k.getNodeIsInOverviewRuler(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)},e.prototype.delete=function(e){k.getNodeIsInOverviewRuler(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)},e.prototype.resolveNode=function(e,t){k.getNodeIsInOverviewRuler(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)},e.prototype.acceptReplace=function(e,t,n,i){this._decorationsTree0.acceptReplace(e,t,n,i),this._decorationsTree1.acceptReplace(e,t,n,i)},e}(),W=function(){function e(e){this.color=e.color||c.empty,this.darkColor=e.darkColor||c.empty,this.position="number"==typeof e.position?e.position:C.OverviewRulerLane.Center,this._resolvedColor=null}return e.prototype.getColor=function(e){return this._resolvedColor||(this._resolvedColor="light"!==e.type&&this.darkColor?this._resolveColor(this.darkColor,e):this._resolveColor(this.color,e)),this._resolvedColor},e.prototype.invalidateCachedColor=function(){this._resolvedColor=null},e.prototype._resolveColor=function(e,t){if("string"==typeof e)return e;var n=e?t.getColor(e.id):null;return n?n.toString():c.empty},e}();t.ModelDecorationOverviewRulerOptions=W;var U=function(){function e(e){this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?s(e.className):null,this.hoverMessage=A.withUndefinedAsNull(e.hoverMessage),this.glyphMarginHoverMessage=A.withUndefinedAsNull(e.glyphMarginHoverMessage),this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new W(e.overviewRuler):null,this.glyphMarginClassName=e.glyphMarginClassName?s(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?s(e.linesDecorationsClassName):null,this.marginClassName=e.marginClassName?s(e.marginClassName):null,this.inlineClassName=e.inlineClassName?s(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?s(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?s(e.afterContentClassName):null}return e.register=function(t){return new e(t)},e.createDynamic=function(t){return new e(t)},e}();t.ModelDecorationOptions=U,U.EMPTY=U.register({});var H=[U.register({stickiness:0}),U.register({stickiness:1}),U.register({stickiness:2}),U.register({stickiness:3})],G=function(e){function t(){var t=e.call(this)||this;return t._actual=t._register(new l.Emitter),t.event=t._actual.event,t._deferredCnt=0,t._shouldFire=!1,t}return d(t,e),t.prototype.beginDeferredEmit=function(){this._deferredCnt++},t.prototype.endDeferredEmit=function(){this._deferredCnt--,0===this._deferredCnt&&this._shouldFire&&(this._shouldFire=!1,this._actual.fire({}))},t.prototype.fire=function(){this._shouldFire=!0},t}(f.Disposable);t.DidChangeDecorationsEmitter=G;var j=function(e){function t(){var t=e.call(this)||this;return t._fastEmitter=t._register(new l.Emitter),t.fastEvent=t._fastEmitter.event,t._slowEmitter=t._register(new l.Emitter),t.slowEvent=t._slowEmitter.event,t._deferredCnt=0,t._deferredEvent=null,t}return d(t,e),t.prototype.beginDeferredEmit=function(){this._deferredCnt++},t.prototype.endDeferredEmit=function(){if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){var e=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(e),this._slowEmitter.fire(e)}},t.prototype.fire=function(e){return this._deferredCnt>0?void(this._deferredEvent=this._deferredEvent?this._deferredEvent.merge(e):e):(this._fastEmitter.fire(e),void this._slowEmitter.fire(e))},t}(f.Disposable);t.DidChangeContentEmitter=j}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/controller/cursorCommon.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/controller/cursorCommon",function(e,t){"use strict";function o(e){return"'"===e||'"'===e||"`"===e}Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),i=e("node_modules/monaco-editor/esm/vs/base/common/errors"),r=n.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/strings")),s=e("node_modules/monaco-editor/esm/vs/editor/common/core/position"),u=e("node_modules/monaco-editor/esm/vs/editor/common/core/range"),a=e("node_modules/monaco-editor/esm/vs/editor/common/core/selection"),l=e("node_modules/monaco-editor/esm/vs/editor/common/model/textModel"),c=e("node_modules/monaco-editor/esm/vs/editor/common/modes/languageConfigurationRegistry"),d=function(){return!0},g=function(){return!1},h=function(e){return" "===e||" "===e},m=function(){function e(t,o,n){this._languageIdentifier=t;var i=n.editor;this.readOnly=i.readOnly,this.tabSize=o.tabSize,this.indentSize=o.indentSize,this.insertSpaces=o.insertSpaces,this.pageSize=Math.max(1,Math.floor(i.layoutInfo.height/i.fontInfo.lineHeight)-2),this.lineHeight=i.lineHeight,this.useTabStops=i.useTabStops,this.wordSeparators=i.wordSeparators,this.emptySelectionClipboard=i.emptySelectionClipboard,this.copyWithSyntaxHighlighting=i.copyWithSyntaxHighlighting,this.multiCursorMergeOverlapping=i.multiCursorMergeOverlapping,this.autoClosingBrackets=i.autoClosingBrackets,this.autoClosingQuotes=i.autoClosingQuotes,this.autoSurround=i.autoSurround,this.autoIndent=i.autoIndent,this.autoClosingPairsOpen={},this.autoClosingPairsClose={},this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:e._getShouldAutoClose(t,this.autoClosingQuotes),bracket:e._getShouldAutoClose(t,this.autoClosingBrackets)};var r=e._getAutoClosingPairs(t);if(r)for(var s=0,u=r;so;o++)t[o]=this.fromModelSelection(e[o]);return t},e.prototype.equals=function(e){return this.viewState.equals(e.viewState)&&this.modelState.equals(e.modelState)},e}();t.CursorState=S;var w=function(){function e(e,t,o){this.type=e,this.commands=t,this.shouldPushStackElementBefore=o.shouldPushStackElementBefore,this.shouldPushStackElementAfter=o.shouldPushStackElementAfter}return e}();t.EditOperationResult=w;var b=function(){function e(){}return e.isLowSurrogate=function(e,t,o){var n=e.getLineContent(t);return 0>o||o>=n.length?!1:r.isLowSurrogate(n.charCodeAt(o))},e.isHighSurrogate=function(e,t,o){var n=e.getLineContent(t);return 0>o||o>=n.length?!1:r.isHighSurrogate(n.charCodeAt(o))},e.isInsideSurrogatePair=function(e,t,o){return this.isHighSurrogate(e,t,o-2)},e.visibleColumnFromColumn=function(e,t,o){var n=e.length;n>t-1&&(n=t-1);for(var i=0,s=0;n>s;s++){var u=e.charCodeAt(s);9===u?i=this.nextRenderTabStop(i,o):i+=r.isFullWidthCharacter(u)?2:1}return i},e.visibleColumnFromColumn2=function(e,t,o){return this.visibleColumnFromColumn(t.getLineContent(o.lineNumber),o.column,e.tabSize)},e.columnFromVisibleColumn=function(e,t,o){if(0>=t)return 1;for(var n=e.length,i=0,s=0;n>s;s++){var u=e.charCodeAt(s),a=void 0;if(a=9===u?this.nextRenderTabStop(i,o):r.isFullWidthCharacter(u)?i+2:i+1,a>=t){var l=t-i,c=a-t;return l>c?s+2:s+1}i=a}return n+1},e.columnFromVisibleColumn2=function(e,t,o,n){var i=this.columnFromVisibleColumn(t.getLineContent(o),n,e.tabSize),r=t.getLineMinColumn(o);if(r>i)return r;var s=t.getLineMaxColumn(o);return i>s?s:i},e.nextRenderTabStop=function(e,t){return e+t-e%t},e.nextIndentTabStop=function(e,t){return e+t-e%t},e.prevRenderTabStop=function(e,t){return e-1-(e-1)%t},e.prevIndentTabStop=function(e,t){return e-1-(e-1)%t},e}();t.CursorColumns=b,t.isQuote=o}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/controller/cursorColumnSelection.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/controller/cursorColumnSelection",function(o,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o("node_modules/monaco-editor/esm/vs/editor/common/controller/cursorCommon"),t=o("node_modules/monaco-editor/esm/vs/editor/common/core/position"),i=o("node_modules/monaco-editor/esm/vs/editor/common/core/range"),u=function(){function o(){}return o._columnSelect=function(o,e,u,r,l,m){for(var c=Math.abs(l-u)+1,s=u>l,C=r>m,a=m>r,d=[],f=0;c>f;f++){var S=u+(s?-f:f),v=n.CursorColumns.columnFromVisibleColumn2(o,e,S,r),b=n.CursorColumns.columnFromVisibleColumn2(o,e,S,m),h=n.CursorColumns.visibleColumnFromColumn2(o,e,new t.Position(S,v)),g=n.CursorColumns.visibleColumnFromColumn2(o,e,new t.Position(S,b));if(a){if(h>m)continue;if(r>g)continue}if(C){if(g>r)continue;if(m>h)continue}d.push(new n.SingleCursorState(new i.Range(S,v,S,v),0,new t.Position(S,b),0))}return{viewStates:d,reversed:s,toLineNumber:l,toVisualColumn:m}},o.columnSelect=function(e,i,u,r,l){var m=new t.Position(u.selectionStartLineNumber,u.selectionStartColumn),c=n.CursorColumns.visibleColumnFromColumn2(e,i,m);return o._columnSelect(e,i,m.lineNumber,c,r,l)},o.columnSelectLeft=function(o,e,n,t,i){return i>1&&i--,this.columnSelect(o,e,n.selection,t,i)},o.columnSelectRight=function(o,e,i,u,r){for(var l=0,m=Math.min(i.position.lineNumber,u),c=Math.max(i.position.lineNumber,u),s=m;c>=s;s++){var C=e.getLineMaxColumn(s),a=n.CursorColumns.visibleColumnFromColumn2(o,e,new t.Position(s,C));l=Math.max(l,a)}return l>r&&r++,this.columnSelect(o,e,i.selection,u,r)},o.columnSelectUp=function(o,e,n,t,i,u){var r=t?o.pageSize:1;return i-=r,1>i&&(i=1),this.columnSelect(o,e,n.selection,i,u)},o.columnSelectDown=function(o,e,n,t,i,u){var r=t?o.pageSize:1;return i+=r,i>e.getLineCount()&&(i=e.getLineCount()),this.columnSelect(o,e,n.selection,i,u)},o}();e.ColumnSelection=u}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/commands/replaceCommand.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/commands/replaceCommand",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=t("node_modules/monaco-editor/esm/vs/editor/common/core/selection"),i=function(){function t(t,e,n){void 0===n&&(n=!1),this._range=t,this._text=e,this.insertsAutoWhitespace=n}return t.prototype.getEditOperations=function(t,e){e.addTrackedEditOperation(this._range,this._text)},t.prototype.computeCursorState=function(t,e){var i=e.getInverseEditOperations(),o=i[0].range;return new n.Selection(o.endLineNumber,o.endColumn,o.endLineNumber,o.endColumn)},t}();e.ReplaceCommand=i;var o=function(){function t(t,e,n){void 0===n&&(n=!1),this._range=t,this._text=e,this.insertsAutoWhitespace=n}return t.prototype.getEditOperations=function(t,e){e.addTrackedEditOperation(this._range,this._text)},t.prototype.computeCursorState=function(t,e){var i=e.getInverseEditOperations(),o=i[0].range;return new n.Selection(o.startLineNumber,o.startColumn,o.startLineNumber,o.startColumn)},t}();e.ReplaceCommandWithoutChangingPosition=o;var r=function(){function t(t,e,n,i,o){void 0===o&&(o=!1),this._range=t,this._text=e,this._columnDeltaOffset=i,this._lineNumberDeltaOffset=n,this.insertsAutoWhitespace=o}return t.prototype.getEditOperations=function(t,e){e.addTrackedEditOperation(this._range,this._text)},t.prototype.computeCursorState=function(t,e){var i=e.getInverseEditOperations(),o=i[0].range;return new n.Selection(o.endLineNumber+this._lineNumberDeltaOffset,o.endColumn+this._columnDeltaOffset,o.endLineNumber+this._lineNumberDeltaOffset,o.endColumn+this._columnDeltaOffset)},t}();e.ReplaceCommandWithOffsetCursorState=r;var s=function(){function t(t,e,n){this._range=t,this._text=e,this._initialSelection=n}return t.prototype.getEditOperations=function(t,e){e.addEditOperation(this._range,this._text),this._selectionId=e.trackSelection(this._initialSelection)},t.prototype.computeCursorState=function(t,e){return e.getTrackedSelection(this._selectionId)},t}();e.ReplaceCommandThatPreservesSelection=s}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/controller/cursorMoveOperations.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/controller/cursorMoveOperations",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=e("node_modules/monaco-editor/esm/vs/editor/common/controller/cursorCommon"),i=e("node_modules/monaco-editor/esm/vs/editor/common/core/position"),t=e("node_modules/monaco-editor/esm/vs/editor/common/core/range"),r=function(){function e(e,n,o){this.lineNumber=e,this.column=n,this.leftoverVisibleColumns=o}return e}();n.CursorPosition=r;var u=function(){function e(){}return e.left=function(e,n,i,t){return t>n.getLineMinColumn(i)?t-=o.CursorColumns.isLowSurrogate(n,i,t-2)?2:1:i>1&&(i-=1,t=n.getLineMaxColumn(i)),new r(i,t,0)},e.moveLeft=function(n,o,i,t,r){var u,l;if(i.hasSelection()&&!t)u=i.selection.startLineNumber,l=i.selection.startColumn;else{var m=e.left(n,o,i.position.lineNumber,i.position.column-(r-1));u=m.lineNumber,l=m.column}return i.move(t,u,l,0)},e.right=function(e,n,i,t){return tC?(i=C,m?t=n.getLineMaxColumn(i):(t=Math.min(n.getLineMaxColumn(i),t),o.CursorColumns.isInsideSurrogatePair(n,i,t)&&(t-=1))):(t=o.CursorColumns.columnFromVisibleColumn2(e,n,i,s),o.CursorColumns.isInsideSurrogatePair(n,i,t)&&(t-=1)),u=s-o.CursorColumns.visibleColumnFromColumn(n.getLineContent(i),t,e.tabSize),new r(i,t,u)},e.moveDown=function(n,o,i,t,r){var u,l;i.hasSelection()&&!t?(u=i.selection.endLineNumber,l=i.selection.endColumn):(u=i.position.lineNumber,l=i.position.column);var m=e.down(n,o,u,l,i.leftoverVisibleColumns,r,!0);return i.move(t,m.lineNumber,m.column,m.leftoverVisibleColumns)},e.translateDown=function(n,r,u){var l=u.selection,m=e.down(n,r,l.selectionStartLineNumber,l.selectionStartColumn,u.selectionStartLeftoverVisibleColumns,1,!1),s=e.down(n,r,l.positionLineNumber,l.positionColumn,u.leftoverVisibleColumns,1,!1);return new o.SingleCursorState(new t.Range(m.lineNumber,m.column,m.lineNumber,m.column),m.leftoverVisibleColumns,new i.Position(s.lineNumber,s.column),s.leftoverVisibleColumns)},e.up=function(e,n,i,t,u,l,m){var s=o.CursorColumns.visibleColumnFromColumn(n.getLineContent(i),t,e.tabSize)+u;return i-=l,1>i?(i=1,m?t=n.getLineMinColumn(i):(t=Math.min(n.getLineMaxColumn(i),t),o.CursorColumns.isInsideSurrogatePair(n,i,t)&&(t-=1))):(t=o.CursorColumns.columnFromVisibleColumn2(e,n,i,s),o.CursorColumns.isInsideSurrogatePair(n,i,t)&&(t-=1)),u=s-o.CursorColumns.visibleColumnFromColumn(n.getLineContent(i),t,e.tabSize),new r(i,t,u)},e.moveUp=function(n,o,i,t,r){var u,l;i.hasSelection()&&!t?(u=i.selection.startLineNumber,l=i.selection.startColumn):(u=i.position.lineNumber,l=i.position.column);var m=e.up(n,o,u,l,i.leftoverVisibleColumns,r,!0);return i.move(t,m.lineNumber,m.column,m.leftoverVisibleColumns)},e.translateUp=function(n,r,u){var l=u.selection,m=e.up(n,r,l.selectionStartLineNumber,l.selectionStartColumn,u.selectionStartLeftoverVisibleColumns,1,!1),s=e.up(n,r,l.positionLineNumber,l.positionColumn,u.leftoverVisibleColumns,1,!1);return new o.SingleCursorState(new t.Range(m.lineNumber,m.column,m.lineNumber,m.column),m.leftoverVisibleColumns,new i.Position(s.lineNumber,s.column),s.leftoverVisibleColumns)},e.moveToBeginningOfLine=function(e,n,o,i){var t,r=o.position.lineNumber,u=n.getLineMinColumn(r),l=n.getLineFirstNonWhitespaceColumn(r)||u,m=o.position.column;return t=m===l?u:l,o.move(i,r,t,0)},e.moveToEndOfLine=function(e,n,o,i){var t=o.position.lineNumber,r=n.getLineMaxColumn(t);return o.move(i,t,r,0)},e.moveToBeginningOfBuffer=function(e,n,o,i){return o.move(i,1,1,0)},e.moveToEndOfBuffer=function(e,n,o,i){var t=n.getLineCount(),r=n.getLineMaxColumn(t);return o.move(i,t,r,0)},e}();n.MoveOperations=u}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/controller/cursorDeleteOperations.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/controller/cursorDeleteOperations",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=e("node_modules/tslib/tslib"),r=o.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/strings")),i=e("node_modules/monaco-editor/esm/vs/editor/common/commands/replaceCommand"),t=e("node_modules/monaco-editor/esm/vs/editor/common/controller/cursorCommon"),l=e("node_modules/monaco-editor/esm/vs/editor/common/controller/cursorMoveOperations"),u=e("node_modules/monaco-editor/esm/vs/editor/common/core/range"),m=function(){function e(){}return e.deleteRight=function(e,n,o,r){for(var t=[],m=3!==e,s=0,a=r.length;a>s;s++){var c=r[s],d=c;if(d.isEmpty()){var v=c.getPosition(),b=l.MoveOperations.right(n,o,v.lineNumber,v.column);d=new u.Range(b.lineNumber,b.column,v.lineNumber,v.column)}d.isEmpty()?t[s]=null:(d.startLineNumber!==d.endLineNumber&&(m=!0),t[s]=new i.ReplaceCommand(d,""))}return[m,t]},e._isAutoClosingPairDelete=function(e,n,o){if("never"===e.autoClosingBrackets&&"never"===e.autoClosingQuotes)return!1;for(var r=0,i=o.length;i>r;r++){var l=o[r],u=l.getPosition();if(!l.isEmpty())return!1;var m=n.getLineContent(u.lineNumber),s=m[u.column-2];if(!e.autoClosingPairsOpen.hasOwnProperty(s))return!1;if(t.isQuote(s)){if("never"===e.autoClosingQuotes)return!1}else if("never"===e.autoClosingBrackets)return!1;var a=m[u.column-1],c=e.autoClosingPairsOpen[s];if(a!==c)return!1}return!0},e._runAutoClosingPairDelete=function(e,n,o){for(var r=[],t=0,l=o.length;l>t;t++){var m=o[t].getPosition(),s=new u.Range(m.lineNumber,m.column-1,m.lineNumber,m.column+1);r[t]=new i.ReplaceCommand(s,"")}return[!0,r]},e.deleteLeft=function(e,n,o,m){if(this._isAutoClosingPairDelete(n,o,m))return this._runAutoClosingPairDelete(n,o,m);for(var s=[],a=2!==e,c=0,d=m.length;d>c;c++){var v=m[c],b=v;if(b.isEmpty()){var g=v.getPosition();if(n.useTabStops&&g.column>1){var f=o.getLineContent(g.lineNumber),C=r.firstNonWhitespaceIndex(f),N=-1===C?f.length+1:C+1;if(g.column<=N){var p=t.CursorColumns.visibleColumnFromColumn2(n,o,g),h=t.CursorColumns.prevIndentTabStop(p,n.indentSize),P=t.CursorColumns.columnFromVisibleColumn2(n,o,g.lineNumber,h);b=new u.Range(g.lineNumber,P,g.lineNumber,g.column)}else b=new u.Range(g.lineNumber,g.column-1,g.lineNumber,g.column)}else{var _=l.MoveOperations.left(n,o,g.lineNumber,g.column);b=new u.Range(_.lineNumber,_.column,g.lineNumber,g.column)}}b.isEmpty()?s[c]=null:(b.startLineNumber!==b.endLineNumber&&(a=!0),s[c]=new i.ReplaceCommand(b,""))}return[a,s]},e.cut=function(e,n,o){for(var r=[],l=0,m=o.length;m>l;l++){var s=o[l];if(s.isEmpty())if(e.emptySelectionClipboard){var a=s.getPosition(),c=void 0,d=void 0,v=void 0,b=void 0;a.lineNumber1?(c=a.lineNumber-1,d=n.getLineMaxColumn(a.lineNumber-1),v=a.lineNumber,b=n.getLineMaxColumn(a.lineNumber)):(c=a.lineNumber,d=1,v=a.lineNumber,b=n.getLineMaxColumn(a.lineNumber));var g=new u.Range(c,d,v,b);r[l]=g.isEmpty()?null:new i.ReplaceCommand(g,"")}else r[l]=null;else r[l]=new i.ReplaceCommand(s,"")}return new t.EditOperationResult(0,r,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},e}();n.DeleteOperations=m}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/controller/cursorWordOperations.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/controller/cursorWordOperations",function(e,n){"use strict";function t(e){return e.filter(function(e){return Boolean(e)})}Object.defineProperty(n,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),o=this&&this.__extends||function(){var e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])})(n,t)};return function(n,t){function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}}(),i=r.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/strings")),s=e("node_modules/monaco-editor/esm/vs/editor/common/controller/cursorCommon"),u=e("node_modules/monaco-editor/esm/vs/editor/common/controller/wordCharacterClassifier"),d=e("node_modules/monaco-editor/esm/vs/editor/common/core/position"),a=e("node_modules/monaco-editor/esm/vs/editor/common/core/range"),l=function(){function e(){}return e._createWord=function(e,n,t,r,o){return{start:r,end:o,wordType:n,nextCharClass:t}},e._findPreviousWordOnLine=function(e,n,t){var r=n.getLineContent(t.lineNumber);return this._doFindPreviousWordOnLine(r,e,t)},e._doFindPreviousWordOnLine=function(e,n,t){for(var r=0,o=t.column-2;o>=0;o--){var i=e.charCodeAt(o),s=n.get(i);if(0===s){if(2===r)return this._createWord(e,r,s,o+1,this._findEndOfWord(e,n,r,o+1));r=1}else if(2===s){if(1===r)return this._createWord(e,r,s,o+1,this._findEndOfWord(e,n,r,o+1));r=2}else if(1===s&&0!==r)return this._createWord(e,r,s,o+1,this._findEndOfWord(e,n,r,o+1))}return 0!==r?this._createWord(e,r,1,0,this._findEndOfWord(e,n,r,0)):null},e._findEndOfWord=function(e,n,t,r){for(var o=e.length,i=r;o>i;i++){var s=e.charCodeAt(i),u=n.get(s);if(1===u)return i;if(1===t&&2===u)return i;if(2===t&&0===u)return i}return o},e._findNextWordOnLine=function(e,n,t){var r=n.getLineContent(t.lineNumber);return this._doFindNextWordOnLine(r,e,t)},e._doFindNextWordOnLine=function(e,n,t){for(var r=0,o=e.length,i=t.column-1;o>i;i++){var s=e.charCodeAt(i),u=n.get(s);if(0===u){if(2===r)return this._createWord(e,r,u,this._findStartOfWord(e,n,r,i-1),i);r=1}else if(2===u){if(1===r)return this._createWord(e,r,u,this._findStartOfWord(e,n,r,i-1),i);r=2}else if(1===u&&0!==r)return this._createWord(e,r,u,this._findStartOfWord(e,n,r,i-1),i)}return 0!==r?this._createWord(e,r,1,this._findStartOfWord(e,n,r,o-1),o):null},e._findStartOfWord=function(e,n,t,r){for(var o=r;o>=0;o--){var i=e.charCodeAt(o),s=n.get(i);if(1===s)return o+1;if(1===t&&2===s)return o+1;if(2===t&&0===s)return o+1}return 0},e.moveWordLeft=function(n,t,r,o){var i=r.lineNumber,s=r.column,u=!1;1===s&&i>1&&(u=!0,i-=1,s=t.getLineMaxColumn(i));var a=e._findPreviousWordOnLine(n,t,new d.Position(i,s));if(0===o){if(a&&!u){var l=t.getLineLastNonWhitespaceColumn(i);if(s>l)return new d.Position(i,a.end+1)}return new d.Position(i,a?a.start+1:1)}return 1===o?(a&&2===a.wordType&&a.end-a.start===1&&0===a.nextCharClass&&(a=e._findPreviousWordOnLine(n,t,new d.Position(i,a.start+1))),new d.Position(i,a?a.start+1:1)):(a&&s<=a.end+1&&(a=e._findPreviousWordOnLine(n,t,new d.Position(i,a.start+1))),new d.Position(i,a?a.end+1:1))},e._moveWordPartLeft=function(e,n){var t=n.lineNumber,r=e.getLineMaxColumn(t);if(1===n.column)return t>1?new d.Position(t-1,e.getLineMaxColumn(t-1)):n;for(var o=e.getLineContent(t),s=n.column-1;s>1;s--){var u=o.charCodeAt(s-2),a=o.charCodeAt(s-1);if(95!==u&&95===a)return new d.Position(t,s);if(i.isLowerAsciiLetter(u)&&i.isUpperAsciiLetter(a))return new d.Position(t,s);if(i.isUpperAsciiLetter(u)&&i.isUpperAsciiLetter(a)&&r>s+1){var l=o.charCodeAt(s);if(i.isLowerAsciiLetter(l))return new d.Position(t,s)}}return new d.Position(t,1)},e.moveWordRight=function(n,t,r,o){var i=r.lineNumber,s=r.column,u=!1;s===t.getLineMaxColumn(i)&&i=a.start+1&&(a=e._findNextWordOnLine(n,t,new d.Position(i,a.end+1))),s=a?a.start+1:t.getLineMaxColumn(i)),new d.Position(i,s)},e._moveWordPartRight=function(e,n){var t=n.lineNumber,r=e.getLineMaxColumn(t);if(n.column===r)return ts;s++){var u=o.charCodeAt(s-2),a=o.charCodeAt(s-1);if(95===u&&95!==a)return new d.Position(t,s);if(i.isLowerAsciiLetter(u)&&i.isUpperAsciiLetter(a))return new d.Position(t,s);if(i.isUpperAsciiLetter(u)&&i.isUpperAsciiLetter(a)&&r>s+1){var l=o.charCodeAt(s);if(i.isLowerAsciiLetter(l))return new d.Position(t,s)}}return new d.Position(t,r)},e._deleteWordLeftWhitespace=function(e,n){var t=e.getLineContent(n.lineNumber),r=n.column-2,o=i.lastNonWhitespaceIndex(t,r);return r>o+1?new a.Range(n.lineNumber,o+2,n.lineNumber,n.column):null},e.deleteWordLeft=function(n,t,r,o,i){if(!r.isEmpty())return r;var s=new d.Position(r.positionLineNumber,r.positionColumn),u=s.lineNumber,l=s.column;if(1===u&&1===l)return null;if(o){var f=this._deleteWordLeftWhitespace(t,s);if(f)return f}var c=e._findPreviousWordOnLine(n,t,s);return 0===i?c?l=c.start+1:l>1?l=1:(u--,l=t.getLineMaxColumn(u)):(c&&l<=c.end+1&&(c=e._findPreviousWordOnLine(n,t,new d.Position(u,c.start+1))),c?l=c.end+1:l>1?l=1:(u--,l=t.getLineMaxColumn(u))),new a.Range(u,l,s.lineNumber,s.column)},e._deleteWordPartLeft=function(n,t){if(!t.isEmpty())return t;var r=t.getPosition(),o=e._moveWordPartLeft(n,r);return new a.Range(r.lineNumber,r.column,o.lineNumber,o.column)},e._findFirstNonWhitespaceChar=function(e,n){for(var t=e.length,r=n;t>r;r++){var o=e.charAt(r);if(" "!==o&&" "!==o)return r}return t},e._deleteWordRightWhitespace=function(e,n){var t=e.getLineContent(n.lineNumber),r=n.column-1,o=this._findFirstNonWhitespaceChar(t,r);return o>r+1?new a.Range(n.lineNumber,n.column,n.lineNumber,o+1):null},e.deleteWordRight=function(n,t,r,o,i){if(!r.isEmpty())return r;var s=new d.Position(r.positionLineNumber,r.positionColumn),u=s.lineNumber,l=s.column,f=t.getLineCount(),c=t.getLineMaxColumn(u);if(u===f&&l===c)return null;if(o){var m=this._deleteWordRightWhitespace(t,s);if(m)return m}var W=e._findNextWordOnLine(n,t,s);return 2===i?W?l=W.end+1:c>l||u===f?l=c:(u++,W=e._findNextWordOnLine(n,t,new d.Position(u,1)),l=W?W.start+1:t.getLineMaxColumn(u)):(W&&l>=W.start+1&&(W=e._findNextWordOnLine(n,t,new d.Position(u,W.end+1))),W?l=W.start+1:c>l||u===f?l=c:(u++,W=e._findNextWordOnLine(n,t,new d.Position(u,1)),l=W?W.start+1:t.getLineMaxColumn(u))),new a.Range(u,l,s.lineNumber,s.column)},e._deleteWordPartRight=function(n,t){if(!t.isEmpty())return t;var r=t.getPosition(),o=e._moveWordPartRight(n,r);return new a.Range(r.lineNumber,r.column,o.lineNumber,o.column)},e.word=function(n,t,r,o,i){var l=u.getMapForWordSeparators(n.wordSeparators),f=e._findPreviousWordOnLine(l,t,i),c=e._findNextWordOnLine(l,t,i);if(!o){var m,W;return f&&1===f.wordType&&f.start<=i.column-1&&i.column-1<=f.end?(m=f.start+1,W=f.end+1):c&&1===c.wordType&&c.start<=i.column-1&&i.column-1<=c.end?(m=c.start+1,W=c.end+1):(m=f?f.end+1:1,W=c?c.start+1:t.getLineMaxColumn(i.lineNumber)),new s.SingleCursorState(new a.Range(i.lineNumber,m,i.lineNumber,W),0,new d.Position(i.lineNumber,W),0)}var v,_;f&&1===f.wordType&&f.starts;s++){var m=t[s];n[a++]=new i.CursorState(m.modelState,m.viewState),n[a++]=o?i.CursorState.fromModelState(r.MoveOperations.translateDown(e.config,e.model,m.modelState)):i.CursorState.fromViewState(r.MoveOperations.translateDown(e.config,e.viewModel,m.viewState))}return n},e.addCursorUp=function(e,t,o){for(var n=[],a=0,s=0,l=t.length;l>s;s++){var m=t[s];n[a++]=new i.CursorState(m.modelState,m.viewState),n[a++]=o?i.CursorState.fromModelState(r.MoveOperations.translateUp(e.config,e.model,m.modelState)):i.CursorState.fromViewState(r.MoveOperations.translateUp(e.config,e.viewModel,m.viewState))}return n},e.moveToBeginningOfLine=function(e,t,o){for(var n=[],i=0,r=t.length;r>i;i++){var a=t[i];n[i]=this._moveToLineStart(e,a,o)}return n},e._moveToLineStart=function(e,t,o){var n=t.viewState.position.column,i=t.modelState.position.column,r=n===i,a=t.viewState.position.lineNumber,s=e.viewModel.getLineFirstNonWhitespaceColumn(a),l=n===s;return r||l?this._moveToLineStartByModel(e,t,o):this._moveToLineStartByView(e,t,o)},e._moveToLineStartByView=function(e,t,o){return i.CursorState.fromViewState(r.MoveOperations.moveToBeginningOfLine(e.config,e.viewModel,t.viewState,o))},e._moveToLineStartByModel=function(e,t,o){return i.CursorState.fromModelState(r.MoveOperations.moveToBeginningOfLine(e.config,e.model,t.modelState,o))},e.moveToEndOfLine=function(e,t,o){for(var n=[],i=0,r=t.length;r>i;i++){var a=t[i];n[i]=this._moveToLineEnd(e,a,o)}return n},e._moveToLineEnd=function(e,t,o){var n=t.viewState.position,i=e.viewModel.getLineMaxColumn(n.lineNumber),r=n.column===i,a=t.modelState.position,s=e.model.getLineMaxColumn(a.lineNumber),l=i-n.column===s-a.column;return r||l?this._moveToLineEndByModel(e,t,o):this._moveToLineEndByView(e,t,o)},e._moveToLineEndByView=function(e,t,o){return i.CursorState.fromViewState(r.MoveOperations.moveToEndOfLine(e.config,e.viewModel,t.viewState,o))},e._moveToLineEndByModel=function(e,t,o){return i.CursorState.fromModelState(r.MoveOperations.moveToEndOfLine(e.config,e.model,t.modelState,o))},e.expandLineSelection=function(e,t){for(var o=[],n=0,r=t.length;r>n;n++){var a=t[n],m=a.viewState.selection,u=m.startLineNumber,v=e.viewModel.getLineCount(),d=m.endLineNumber,c=void 0;d===v?c=e.viewModel.getLineMaxColumn(v):(d++,c=1),o[n]=i.CursorState.fromViewState(new i.SingleCursorState(new l.Range(u,1,u,1),0,new s.Position(d,c),0))}return o},e.moveToBeginningOfBuffer=function(e,t,o){for(var n=[],a=0,s=t.length;s>a;a++){var l=t[a];n[a]=i.CursorState.fromModelState(r.MoveOperations.moveToBeginningOfBuffer(e.config,e.model,l.modelState,o))}return n},e.moveToEndOfBuffer=function(e,t,o){for(var n=[],a=0,s=t.length;s>a;a++){var l=t[a];n[a]=i.CursorState.fromModelState(r.MoveOperations.moveToEndOfBuffer(e.config,e.model,l.modelState,o))}return n},e.selectAll=function(e){var t=e.model.getLineCount(),o=e.model.getLineMaxColumn(t);return i.CursorState.fromModelState(new i.SingleCursorState(new l.Range(1,1,1,1),0,new s.Position(t,o),0))},e.line=function(e,t,o,n,r){var a=e.model.validatePosition(n),m=r?e.validateViewPosition(new s.Position(r.lineNumber,r.column),a):e.convertModelPositionToViewPosition(a);if(!o||!t.modelState.hasSelection()){var u=e.model.getLineCount(),v=a.lineNumber+1,d=1;return v>u&&(v=u,d=e.model.getLineMaxColumn(v)),i.CursorState.fromModelState(new i.SingleCursorState(new l.Range(a.lineNumber,1,v,d),0,new s.Position(v,d),0))}var c=t.modelState.selectionStart.getStartPosition().lineNumber;if(a.lineNumberc){var u=e.viewModel.getLineCount(),w=m.lineNumber+1,f=1;return w>u&&(w=u,f=e.viewModel.getLineMaxColumn(w)),i.CursorState.fromViewState(t.viewState.move(t.modelState.hasSelection(),w,f,0))}var p=t.modelState.selectionStart.getEndPosition();return i.CursorState.fromModelState(t.modelState.move(t.modelState.hasSelection(),p.lineNumber,p.column,0))},e.word=function(e,t,o,n){var r=e.model.validatePosition(n);return i.CursorState.fromModelState(a.WordOperations.word(e.config,e.model,t.modelState,o,r))},e.cancelSelection=function(e,t){if(!t.modelState.hasSelection())return new i.CursorState(t.modelState,t.viewState);var o=t.viewState.position.lineNumber,n=t.viewState.position.column;return i.CursorState.fromViewState(new i.SingleCursorState(new l.Range(o,n,o,n),0,new s.Position(o,n),0))},e.moveTo=function(e,t,o,n,r){var a=e.model.validatePosition(n),l=r?e.validateViewPosition(new s.Position(r.lineNumber,r.column),a):e.convertModelPositionToViewPosition(a);return i.CursorState.fromViewState(t.viewState.move(o,l.lineNumber,l.column,0))},e.move=function(e,t,o){var n=o.select,i=o.value;switch(o.direction){case 0:return 4===o.unit?this._moveHalfLineLeft(e,t,n):this._moveLeft(e,t,n,i);case 1:return 4===o.unit?this._moveHalfLineRight(e,t,n):this._moveRight(e,t,n,i);case 2:return 2===o.unit?this._moveUpByViewLines(e,t,n,i):this._moveUpByModelLines(e,t,n,i);case 3:return 2===o.unit?this._moveDownByViewLines(e,t,n,i):this._moveDownByModelLines(e,t,n,i);case 4:return this._moveToViewMinColumn(e,t,n);case 5:return this._moveToViewFirstNonWhitespaceColumn(e,t,n);case 6:return this._moveToViewCenterColumn(e,t,n);case 7:return this._moveToViewMaxColumn(e,t,n);case 8:return this._moveToViewLastNonWhitespaceColumn(e,t,n);case 9:var r=t[0],a=e.getCompletelyVisibleModelRange(),s=this._firstLineNumberInRange(e.model,a,i),l=e.model.getLineFirstNonWhitespaceColumn(s);return[this._moveToModelPosition(e,r,n,s,l)];case 11:var r=t[0],a=e.getCompletelyVisibleModelRange(),s=this._lastLineNumberInRange(e.model,a,i),l=e.model.getLineFirstNonWhitespaceColumn(s);return[this._moveToModelPosition(e,r,n,s,l)];case 10:var r=t[0],a=e.getCompletelyVisibleModelRange(),s=Math.round((a.startLineNumber+a.endLineNumber)/2),l=e.model.getLineFirstNonWhitespaceColumn(s);return[this._moveToModelPosition(e,r,n,s,l)];case 12:for(var m=e.getCompletelyVisibleViewRange(),u=[],v=0,d=t.length;d>v;v++){var r=t[v];u[v]=this.findPositionInViewportIfOutside(e,r,m,n)}return u}return null},e.findPositionInViewportIfOutside=function(e,t,o,n){var r=t.viewState.position.lineNumber;if(o.startLineNumber<=r&&r<=o.endLineNumber-1)return new i.CursorState(t.modelState,t.viewState);r>o.endLineNumber-1&&(r=o.endLineNumber-1),rs;s++){var m=t[s],u=r.MoveOperations.moveLeft(e.config,e.viewModel,m.viewState,o,n);if(1===n&&u.position.lineNumber!==m.viewState.position.lineNumber){var v=e.viewModel.coordinatesConverter.convertViewPositionToModelPosition(u.position);v.lineNumber===m.modelState.position.lineNumber&&(u=r.MoveOperations.moveLeft(e.config,e.viewModel,u,o,1))}a[s]=i.CursorState.fromViewState(u)}return a},e._moveHalfLineLeft=function(e,t,o){for(var n=[],a=0,s=t.length;s>a;a++){var l=t[a],m=l.viewState.position.lineNumber,u=Math.round(e.viewModel.getLineContent(m).length/2);n[a]=i.CursorState.fromViewState(r.MoveOperations.moveLeft(e.config,e.viewModel,l.viewState,o,u))}return n},e._moveRight=function(e,t,o,n){for(var a=[],s=0,l=t.length;l>s;s++){var m=t[s],u=r.MoveOperations.moveRight(e.config,e.viewModel,m.viewState,o,n);if(1===n&&u.position.lineNumber!==m.viewState.position.lineNumber){var v=e.viewModel.coordinatesConverter.convertViewPositionToModelPosition(u.position);v.lineNumber===m.modelState.position.lineNumber&&(u=r.MoveOperations.moveRight(e.config,e.viewModel,u,o,1))}a[s]=i.CursorState.fromViewState(u)}return a},e._moveHalfLineRight=function(e,t,o){for(var n=[],a=0,s=t.length;s>a;a++){var l=t[a],m=l.viewState.position.lineNumber,u=Math.round(e.viewModel.getLineContent(m).length/2);n[a]=i.CursorState.fromViewState(r.MoveOperations.moveRight(e.config,e.viewModel,l.viewState,o,u))}return n},e._moveDownByViewLines=function(e,t,o,n){for(var a=[],s=0,l=t.length;l>s;s++){var m=t[s];a[s]=i.CursorState.fromViewState(r.MoveOperations.moveDown(e.config,e.viewModel,m.viewState,o,n))}return a},e._moveDownByModelLines=function(e,t,o,n){for(var a=[],s=0,l=t.length;l>s;s++){var m=t[s];a[s]=i.CursorState.fromModelState(r.MoveOperations.moveDown(e.config,e.model,m.modelState,o,n))}return a},e._moveUpByViewLines=function(e,t,o,n){for(var a=[],s=0,l=t.length;l>s;s++){var m=t[s];a[s]=i.CursorState.fromViewState(r.MoveOperations.moveUp(e.config,e.viewModel,m.viewState,o,n))}return a},e._moveUpByModelLines=function(e,t,o,n){for(var a=[],s=0,l=t.length;l>s;s++){var m=t[s];a[s]=i.CursorState.fromModelState(r.MoveOperations.moveUp(e.config,e.model,m.modelState,o,n))}return a},e._moveToViewPosition=function(e,t,o,n,r){return i.CursorState.fromViewState(t.viewState.move(o,n,r,0))},e._moveToModelPosition=function(e,t,o,n,r){return i.CursorState.fromModelState(t.modelState.move(o,n,r,0))},e._moveToViewMinColumn=function(e,t,o){for(var n=[],i=0,r=t.length;r>i;i++){var a=t[i],s=a.viewState.position.lineNumber,l=e.viewModel.getLineMinColumn(s);n[i]=this._moveToViewPosition(e,a,o,s,l)}return n},e._moveToViewFirstNonWhitespaceColumn=function(e,t,o){for(var n=[],i=0,r=t.length;r>i;i++){var a=t[i],s=a.viewState.position.lineNumber,l=e.viewModel.getLineFirstNonWhitespaceColumn(s);n[i]=this._moveToViewPosition(e,a,o,s,l)}return n},e._moveToViewCenterColumn=function(e,t,o){for(var n=[],i=0,r=t.length;r>i;i++){var a=t[i],s=a.viewState.position.lineNumber,l=Math.round((e.viewModel.getLineMaxColumn(s)+e.viewModel.getLineMinColumn(s))/2);n[i]=this._moveToViewPosition(e,a,o,s,l)}return n},e._moveToViewMaxColumn=function(e,t,o){for(var n=[],i=0,r=t.length;r>i;i++){var a=t[i],s=a.viewState.position.lineNumber,l=e.viewModel.getLineMaxColumn(s);n[i]=this._moveToViewPosition(e,a,o,s,l)}return n},e._moveToViewLastNonWhitespaceColumn=function(e,t,o){for(var n=[],i=0,r=t.length;r>i;i++){var a=t[i],s=a.viewState.position.lineNumber,l=e.viewModel.getLineLastNonWhitespaceColumn(s);n[i]=this._moveToViewPosition(e,a,o,s,l)}return n},e}();t.CursorMoveCommands=m,function(e){function t(t){if(!t.to)return null;var o;switch(t.to){case e.RawDirection.Left:o=0;break;case e.RawDirection.Right:o=1;break;case e.RawDirection.Up:o=2;break;case e.RawDirection.Down:o=3;break;case e.RawDirection.WrappedLineStart:o=4;break;case e.RawDirection.WrappedLineFirstNonWhitespaceCharacter:o=5;break;case e.RawDirection.WrappedLineColumnCenter:o=6;break;case e.RawDirection.WrappedLineEnd:o=7;break;case e.RawDirection.WrappedLineLastNonWhitespaceCharacter:o=8;break;case e.RawDirection.ViewPortTop:o=9;break;case e.RawDirection.ViewPortBottom:o=11;break;case e.RawDirection.ViewPortCenter:o=10;break;case e.RawDirection.ViewPortIfOutside:o=12;break;default:return null}var n=0;switch(t.by){case e.RawUnit.Line:n=1;break;case e.RawUnit.WrappedLine:n=2;break;case e.RawUnit.Character:n=3;break;case e.RawUnit.HalfLine:n=4}return{direction:o,unit:n,select:!!t.select,value:t.value||1}}var o=function(e){if(!n.isObject(e))return!1;var t=e;return n.isString(t.to)&&(n.isUndefined(t.select)||n.isBoolean(t.select))&&(n.isUndefined(t.by)||n.isString(t.by))&&(n.isUndefined(t.value)||n.isNumber(t.value))?!0:!1};e.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:\n * 'to': A mandatory logical position value providing where to move the cursor.\n ```\n 'left', 'right', 'up', 'down'\n 'wrappedLineStart', 'wrappedLineEnd', 'wrappedLineColumnCenter'\n 'wrappedLineFirstNonWhitespaceCharacter', 'wrappedLineLastNonWhitespaceCharacter'\n 'viewPortTop', 'viewPortCenter', 'viewPortBottom', 'viewPortIfOutside'\n ```\n * 'by': Unit to move. Default is computed based on 'to' value.\n ```\n 'line', 'wrappedLine', 'character', 'halfLine'\n ```\n * 'value': Number of units to move. Default is '1'.\n * 'select': If 'true' makes the selection. Default is 'false'.\n ",constraint:o,schema:{type:"object",required:["to"],properties:{to:{type:"string","enum":["left","right","up","down","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}}}}]},e.RawDirection={Left:"left",Right:"right",Up:"up",Down:"down",WrappedLineStart:"wrappedLineStart",WrappedLineFirstNonWhitespaceCharacter:"wrappedLineFirstNonWhitespaceCharacter",WrappedLineColumnCenter:"wrappedLineColumnCenter",WrappedLineEnd:"wrappedLineEnd",WrappedLineLastNonWhitespaceCharacter:"wrappedLineLastNonWhitespaceCharacter",ViewPortTop:"viewPortTop",ViewPortCenter:"viewPortCenter",ViewPortBottom:"viewPortBottom",ViewPortIfOutside:"viewPortIfOutside"},e.RawUnit={Line:"line",WrappedLine:"wrappedLine",Character:"character",HalfLine:"halfLine"},e.parse=t}(t.CursorMove||(t.CursorMove={}))}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/commands/shiftCommand.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/commands/shiftCommand",function(t,e){"use strict";function n(t,e){u[t]||(u[t]=["",t]);for(var n=u[t],o=n.length;e>=o;o++)n[o]=n[o-1]+t;return n[e]}Object.defineProperty(e,"__esModule",{value:!0});var o=t("node_modules/tslib/tslib"),i=o.__importStar(t("node_modules/monaco-editor/esm/vs/base/common/strings")),s=t("node_modules/monaco-editor/esm/vs/editor/common/controller/cursorCommon"),r=t("node_modules/monaco-editor/esm/vs/editor/common/core/range"),a=t("node_modules/monaco-editor/esm/vs/editor/common/core/selection"),d=t("node_modules/monaco-editor/esm/vs/editor/common/modes/languageConfigurationRegistry"),u=Object.create(null);e.cachedStringRepeat=n;var m=function(){function t(t,e){this._opts=e,this._selection=t,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}return t.unshiftIndent=function(t,e,o,i,r){var a=s.CursorColumns.visibleColumnFromColumn(t,e,o);if(r){var d=n(" ",i),u=s.CursorColumns.prevIndentTabStop(a,i),m=u/i;return n(d,m)}var d=" ",u=s.CursorColumns.prevRenderTabStop(a,o),m=u/o;return n(d,m)},t.shiftIndent=function(t,e,o,i,r){var a=s.CursorColumns.visibleColumnFromColumn(t,e,o);if(r){var d=n(" ",i),u=s.CursorColumns.nextIndentTabStop(a,i),m=u/i;return n(d,m)}var d=" ",u=s.CursorColumns.nextRenderTabStop(a,o),m=u/o;return n(d,m)},t.prototype._addEditOperation=function(t,e,n){this._useLastEditRangeForCursorEndPosition?t.addTrackedEditOperation(e,n):t.addEditOperation(e,n)},t.prototype.getEditOperations=function(e,o){var a=this._selection.startLineNumber,u=this._selection.endLineNumber;1===this._selection.endColumn&&a!==u&&(u-=1);var m=this._opts,l=m.tabSize,c=m.indentSize,h=m.insertSpaces,C=a===u;if(this._selection.isEmpty()&&/^\s*$/.test(e.getLineContent(a))&&(this._useLastEditRangeForCursorEndPosition=!0),this._opts.useTabStops)for(var f=0,p=0,_=a;u>=_;_++,f=p){p=0;var v=e.getLineContent(_),g=i.firstNonWhitespaceIndex(v);if((!this._opts.isUnshift||0!==v.length&&0!==g)&&(C||this._opts.isUnshift||0!==v.length)){if(-1===g&&(g=v.length),_>1){var S=s.CursorColumns.visibleColumnFromColumn(v,g+1,l);if(S%c!==0&&e.isCheapToTokenize(_-1)){var b=d.LanguageConfigurationRegistry.getRawEnterActionAtPosition(e,_-1,e.getLineMaxColumn(_-1));if(b){if(p=f,b.appendText)for(var E=0,L=b.appendText.length;L>E&&c>p&&32===b.appendText.charCodeAt(E);E++)p++;b.removeText&&(p=Math.max(0,p-b.removeText));for(var E=0;p>E&&(0!==g&&32===v.charCodeAt(g-1));E++)g--}}}if(!this._opts.isUnshift||0!==g){var T=void 0;T=this._opts.isUnshift?t.unshiftIndent(v,g+1,l,c,h):t.shiftIndent(v,g+1,l,c,h),this._addEditOperation(o,new r.Range(_,1,_,g+1),T),_===a&&(this._selectionStartColumnStaysPut=this._selection.startColumn<=g+1)}}}else for(var R=h?n(" ",c):" ",_=a;u>=_;_++){var v=e.getLineContent(_),g=i.firstNonWhitespaceIndex(v);if((!this._opts.isUnshift||0!==v.length&&0!==g)&&(C||this._opts.isUnshift||0!==v.length)&&(-1===g&&(g=v.length),!this._opts.isUnshift||0!==g))if(this._opts.isUnshift){g=Math.min(g,c);for(var x=0;g>x;x++){var y=v.charCodeAt(x);if(9===y){g=x+1;break}}this._addEditOperation(o,new r.Range(_,1,_,g+1),"")}else this._addEditOperation(o,new r.Range(_,1,_,1),R),_===a&&(this._selectionStartColumnStaysPut=1===this._selection.startColumn)}this._selectionId=o.trackSelection(this._selection)},t.prototype.computeCursorState=function(t,e){if(this._useLastEditRangeForCursorEndPosition){var n=e.getInverseEditOperations()[0];return new a.Selection(n.range.endLineNumber,n.range.endColumn,n.range.endLineNumber,n.range.endColumn)}var o=e.getTrackedSelection(this._selectionId);if(this._selectionStartColumnStaysPut){var i=this._selection.startColumn,s=o.startColumn;return i>=s?o:0===o.getDirection()?new a.Selection(o.startLineNumber,i,o.endLineNumber,o.endColumn):new a.Selection(o.endLineNumber,o.endColumn,o.startLineNumber,i)}return o},t}();e.ShiftCommand=m}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/commands/surroundSelectionCommand.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/commands/surroundSelectionCommand",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=e("node_modules/monaco-editor/esm/vs/editor/common/core/range"),o=e("node_modules/monaco-editor/esm/vs/editor/common/core/selection"),r=function(){function e(e,n,t){this._range=e,this._charBeforeSelection=n,this._charAfterSelection=t}return e.prototype.getEditOperations=function(e,n){n.addTrackedEditOperation(new t.Range(this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),n.addTrackedEditOperation(new t.Range(this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)},e.prototype.computeCursorState=function(e,n){var t=n.getInverseEditOperations(),r=t[0].range,i=t[1].range;return new o.Selection(r.endLineNumber,r.endColumn,i.endLineNumber,i.endColumn-this._charAfterSelection.length)},e}();n.SurroundSelectionCommand=r}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/controller/cursorTypeOperations.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/controller/cursorTypeOperations",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=e("node_modules/tslib/tslib"),r=e("node_modules/monaco-editor/esm/vs/base/common/errors"),o=t.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/strings")),i=e("node_modules/monaco-editor/esm/vs/editor/common/commands/replaceCommand"),a=e("node_modules/monaco-editor/esm/vs/editor/common/commands/shiftCommand"),u=e("node_modules/monaco-editor/esm/vs/editor/common/commands/surroundSelectionCommand"),s=e("node_modules/monaco-editor/esm/vs/editor/common/controller/cursorCommon"),l=e("node_modules/monaco-editor/esm/vs/editor/common/controller/wordCharacterClassifier"),m=e("node_modules/monaco-editor/esm/vs/editor/common/core/range"),d=e("node_modules/monaco-editor/esm/vs/editor/common/modes/languageConfiguration"),c=e("node_modules/monaco-editor/esm/vs/editor/common/modes/languageConfigurationRegistry"),f=function(){function e(){}return e.indent=function(e,n,t){if(null===n||null===t)return[];for(var r=[],o=0,i=t.length;i>o;o++)r[o]=new a.ShiftCommand(t[o],{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops});return r},e.outdent=function(e,n,t){for(var r=[],o=0,i=t.length;i>o;o++)r[o]=new a.ShiftCommand(t[o],{isUnshift:!0,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops});return r},e.shiftIndent=function(e,n,t){return t=t||1,a.ShiftCommand.shiftIndent(n,n.length+t,e.tabSize,e.indentSize,e.insertSpaces)},e.unshiftIndent=function(e,n,t){return t=t||1,a.ShiftCommand.unshiftIndent(n,n.length+t,e.tabSize,e.indentSize,e.insertSpaces)},e._distributedPaste=function(e,n,t,r){for(var o=[],a=0,u=t.length;u>a;a++)o[a]=new i.ReplaceCommand(t[a],r[a]);return new s.EditOperationResult(0,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},e._simplePaste=function(e,n,t,r,o){for(var a=[],u=0,l=t.length;l>u;u++){var d=t[u],c=d.getPosition();if(o&&r.indexOf("\n")!==r.length-1&&(o=!1),o&&d.startLineNumber!==d.endLineNumber&&(o=!1),o&&d.startColumn===n.getLineMinColumn(d.startLineNumber)&&d.endColumn===n.getLineMaxColumn(d.startLineNumber)&&(o=!1),o){var f=new m.Range(c.lineNumber,1,c.lineNumber,1);a[u]=new i.ReplaceCommand(f,r)}else a[u]=new i.ReplaceCommand(d,r)}return new s.EditOperationResult(0,a,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},e._distributePasteToCursors=function(e,n,t,r){if(t)return null;if(1===e.length)return null;if(r&&r.length===e.length)return r;10===n.charCodeAt(n.length-1)&&(n=n.substr(0,n.length-1));var o=n.split(/\r\n|\r|\n/);return o.length===e.length?o:null},e.paste=function(e,n,t,r,o,i){var a=this._distributePasteToCursors(t,r,o,i);return a?(t=t.sort(m.Range.compareRangesUsingStarts),this._distributedPaste(e,n,t,a)):this._simplePaste(e,n,t,r,o)},e._goodIndentForLine=function(n,t,r){var i=null,a="",u=n.autoIndent?c.LanguageConfigurationRegistry.getInheritIndentForLine(t,r,!1):null;if(u)i=u.action,a=u.indentation;else if(r>1){var s=void 0;for(s=r-1;s>=1;s--){var l=t.getLineContent(s),f=o.lastNonWhitespaceIndex(l);if(f>=0)break}if(1>s)return null;var h=t.getLineMaxColumn(s),g=c.LanguageConfigurationRegistry.getEnterAction(t,new m.Range(s,h,s,h));g&&(a=g.indentation,i=g.enterAction,i&&(a+=i.appendText))}return i&&(i===d.IndentAction.Indent&&(a=e.shiftIndent(n,a)),i===d.IndentAction.Outdent&&(a=e.unshiftIndent(n,a)),a=n.normalizeIndentation(a)),a?a:null},e._replaceJumpToNextIndent=function(e,n,t,r){var o="",a=t.getStartPosition();if(e.insertSpaces)for(var u=s.CursorColumns.visibleColumnFromColumn2(e,n,a),l=e.indentSize,m=l-u%l,d=0;m>d;d++)o+=" ";else o=" ";return new i.ReplaceCommand(t,o,r)},e.tab=function(e,n,t){for(var r=[],u=0,s=t.length;s>u;u++){var l=t[u];if(l.isEmpty()){var d=n.getLineContent(l.startLineNumber);if(/^\s*$/.test(d)&&n.isCheapToTokenize(l.startLineNumber)){var c=this._goodIndentForLine(e,n,l.startLineNumber);c=c||" ";var f=e.normalizeIndentation(c);if(!o.startsWith(d,f)){r[u]=new i.ReplaceCommand(new m.Range(l.startLineNumber,1,l.startLineNumber,d.length+1),f,!0);continue}}r[u]=this._replaceJumpToNextIndent(e,n,l,!0)}else{if(l.startLineNumber===l.endLineNumber){var h=n.getLineMaxColumn(l.startLineNumber);if(1!==l.startColumn||l.endColumn!==h){r[u]=this._replaceJumpToNextIndent(e,n,l,!1);continue}}r[u]=new a.ShiftCommand(l,{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops})}}return r},e.replacePreviousChar=function(e,n,t,r,o,a){for(var u=[],l=0,d=r.length;d>l;l++){var c=r[l];if(c.isEmpty()){var f=c.getPosition(),h=Math.max(1,f.column-a),g=new m.Range(f.lineNumber,h,f.lineNumber,f.column);u[l]=new i.ReplaceCommand(g,o)}else u[l]=null}return new s.EditOperationResult(1,u,{shouldPushStackElementBefore:1!==e,shouldPushStackElementAfter:!1})},e._typeCommand=function(e,n,t){return t?new i.ReplaceCommandWithoutChangingPosition(e,n,!0):new i.ReplaceCommand(e,n,!0)},e._enter=function(n,t,r,a){if(!t.isCheapToTokenize(a.getStartPosition().lineNumber)){var u=t.getLineContent(a.startLineNumber),l=o.getLeadingWhitespace(u).substring(0,a.startColumn-1);return e._typeCommand(a,"\n"+n.normalizeIndentation(l),r)}var f=c.LanguageConfigurationRegistry.getEnterAction(t,a);if(f){var h=f.enterAction,g=f.indentation;if(h.indentAction===d.IndentAction.None)return e._typeCommand(a,"\n"+n.normalizeIndentation(g+h.appendText),r);if(h.indentAction===d.IndentAction.Indent)return e._typeCommand(a,"\n"+n.normalizeIndentation(g+h.appendText),r);if(h.indentAction===d.IndentAction.IndentOutdent){var C=n.normalizeIndentation(g),p=n.normalizeIndentation(g+h.appendText),b="\n"+p+"\n"+C;return r?new i.ReplaceCommandWithoutChangingPosition(a,b,!0):new i.ReplaceCommandWithOffsetCursorState(a,b,-1,p.length-C.length,!0)}if(h.indentAction===d.IndentAction.Outdent){var v=e.unshiftIndent(n,g);return e._typeCommand(a,"\n"+n.normalizeIndentation(v+h.appendText),r)}}if(!n.autoIndent){var S=t.getLineContent(a.startLineNumber),I=o.getLeadingWhitespace(S).substring(0,a.startColumn-1);return e._typeCommand(a,"\n"+n.normalizeIndentation(I),r)}var L=c.LanguageConfigurationRegistry.getIndentForEnter(t,a,{unshiftIndent:function(t){return e.unshiftIndent(n,t)},shiftIndent:function(t){return e.shiftIndent(n,t)},normalizeIndentation:function(e){return n.normalizeIndentation(e)}},n.autoIndent),N=t.getLineContent(a.startLineNumber),P=o.getLeadingWhitespace(N).substring(0,a.startColumn-1);if(L){var _=s.CursorColumns.visibleColumnFromColumn2(n,t,a.getEndPosition()),E=a.endColumn,y="\n";P!==n.normalizeIndentation(L.beforeEnter)&&(y=n.normalizeIndentation(L.beforeEnter)+N.substring(P.length,a.startColumn-1)+"\n",a=new m.Range(a.startLineNumber,1,a.endLineNumber,a.endColumn));var w=t.getLineContent(a.endLineNumber),R=o.firstNonWhitespaceIndex(w);if(a=R>=0?a.setEndPosition(a.endLineNumber,Math.max(a.endColumn,R+1)):a.setEndPosition(a.endLineNumber,t.getLineMaxColumn(a.endLineNumber)),r)return new i.ReplaceCommandWithoutChangingPosition(a,y+n.normalizeIndentation(L.afterEnter),!0);var T=0;return R+1>=E&&(n.insertSpaces||(_=Math.ceil(_/n.indentSize)),T=Math.min(_+1-n.normalizeIndentation(L.afterEnter).length-1,0)),new i.ReplaceCommandWithOffsetCursorState(a,y+n.normalizeIndentation(L.afterEnter),0,T,!0)}return e._typeCommand(a,"\n"+n.normalizeIndentation(P),r)},e._isAutoIndentType=function(e,n,t){if(!e.autoIndent)return!1;for(var r=0,o=t.length;o>r;r++)if(!n.isCheapToTokenize(t[r].getEndPosition().lineNumber))return!1;return!0},e._runAutoIndentType=function(n,t,r,o){var i=c.LanguageConfigurationRegistry.getIndentationAtPosition(t,r.startLineNumber,r.startColumn),a=c.LanguageConfigurationRegistry.getIndentActionForType(t,r,o,{shiftIndent:function(t){return e.shiftIndent(n,t)},unshiftIndent:function(t){return e.unshiftIndent(n,t)}});if(null===a)return null;if(a!==n.normalizeIndentation(i)){var u=t.getLineFirstNonWhitespaceColumn(r.startLineNumber);return 0===u?e._typeCommand(new m.Range(r.startLineNumber,0,r.endLineNumber,r.endColumn),n.normalizeIndentation(a)+o,!1):e._typeCommand(new m.Range(r.startLineNumber,0,r.endLineNumber,r.endColumn),n.normalizeIndentation(a)+t.getLineContent(r.startLineNumber).substring(u-1,r.startColumn-1)+o,!1)}return null},e._isAutoClosingCloseCharType=function(e,n,t,r){var o=s.isQuote(r)?e.autoClosingQuotes:e.autoClosingBrackets;if("never"===o||!e.autoClosingPairsClose.hasOwnProperty(r))return!1;for(var i=r===e.autoClosingPairsClose[r],a=0,u=t.length;u>a;a++){var l=t[a];if(!l.isEmpty())return!1;var m=l.getPosition(),d=n.getLineContent(m.lineNumber),c=d.charAt(m.column-1);if(c!==r)return!1;if(i){var f=d.substr(0,m.column-1),h=this._countNeedlesInHaystack(f,r);if(h%2===0)return!1}}return!0},e._countNeedlesInHaystack=function(e,n){for(var t=0,r=-1;-1!==(r=e.indexOf(n,r+1));)t++;return t},e._runAutoClosingCloseCharType=function(e,n,t,r,o){for(var a=[],u=0,l=r.length;l>u;u++){var d=r[u],c=d.getPosition(),f=new m.Range(c.lineNumber,c.column,c.lineNumber,c.column+1);a[u]=new i.ReplaceCommand(f,o)}return new s.EditOperationResult(1,a,{shouldPushStackElementBefore:1!==e,shouldPushStackElementAfter:!1})},e._isBeforeClosingBrace=function(e,n,t){var r=e.autoClosingPairsOpen[n]===n,o=!1;for(var i in e.autoClosingPairsClose){var a=e.autoClosingPairsOpen[i]===i;if((r||!a)&&t===i){o=!0;break}}return o},e._isAutoClosingOpenCharType=function(n,t,o,i){var a=s.isQuote(i),u=a?n.autoClosingQuotes:n.autoClosingBrackets;if("never"===u||!n.autoClosingPairsOpen.hasOwnProperty(i))return!1;for(var m=a?n.shouldAutoCloseBefore.quote:n.shouldAutoCloseBefore.bracket,d=0,f=o.length;f>d;d++){var h=o[d];if(!h.isEmpty())return!1;var g=h.getPosition(),C=t.getLineContent(g.lineNumber);if(a&&g.column>1&&"always"!==u){var p=l.getMapForWordSeparators(n.wordSeparators),b=C.charCodeAt(g.column-2),v=p.get(b);if(0===v)return!1}var S=C.charAt(g.column-1);if(S){var I=e._isBeforeClosingBrace(n,i,S);if(!I&&!m(S))return!1}if(!t.isCheapToTokenize(g.lineNumber))return!1;t.forceTokenization(g.lineNumber);var L=t.getLineTokens(g.lineNumber),N=!1;try{N=c.LanguageConfigurationRegistry.shouldAutoClosePair(i,L,g.column)}catch(P){r.onUnexpectedError(P)}if(!N)return!1}return!0},e._runAutoClosingOpenCharType=function(e,n,t,r,o){for(var a=[],u=0,l=r.length;l>u;u++){var m=r[u],d=n.autoClosingPairsOpen[o];a[u]=new i.ReplaceCommandWithOffsetCursorState(m,o+d,0,-d.length)}return new s.EditOperationResult(1,a,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})},e._shouldSurroundChar=function(e,n){return s.isQuote(n)?"quotes"===e.autoSurround||"languageDefined"===e.autoSurround:"brackets"===e.autoSurround||"languageDefined"===e.autoSurround},e._isSurroundSelectionType=function(n,t,r,o){if(!e._shouldSurroundChar(n,o)||!n.surroundingPairs.hasOwnProperty(o))return!1;for(var i=s.isQuote(o),a=0,u=r.length;u>a;a++){var l=r[a];if(l.isEmpty())return!1;for(var m=!0,d=l.startLineNumber;d<=l.endLineNumber;d++){var c=t.getLineContent(d),f=d===l.startLineNumber?l.startColumn-1:0,h=d===l.endLineNumber?l.endColumn-1:c.length,g=c.substring(f,h);if(/[^ \t]/.test(g)){m=!1;break}}if(m)return!1;if(i&&l.startLineNumber===l.endLineNumber&&l.startColumn+1===l.endColumn){var C=t.getValueInRange(l);if(s.isQuote(C))return!1}}return!0},e._runSurroundSelectionType=function(e,n,t,r,o){for(var i=[],a=0,l=r.length;l>a;a++){var m=r[a],d=n.surroundingPairs[o];i[a]=new u.SurroundSelectionCommand(m,o,d)}return new s.EditOperationResult(0,i,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},e._isTypeInterceptorElectricChar=function(e,n,t){return 1===t.length&&n.isCheapToTokenize(t[0].getEndPosition().lineNumber)?!0:!1},e._typeInterceptorElectricChar=function(e,n,t,a,u){if(!n.electricChars.hasOwnProperty(u)||!a.isEmpty())return null;var l=a.getPosition();t.forceTokenization(l.lineNumber);var d,f=t.getLineTokens(l.lineNumber);try{d=c.LanguageConfigurationRegistry.onElectricCharacter(u,f,l.column)}catch(h){return r.onUnexpectedError(h),null}if(!d)return null;if(d.appendText){var g=new i.ReplaceCommandWithOffsetCursorState(a,u+d.appendText,0,-d.appendText.length);return new s.EditOperationResult(1,[g],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!0})}if(d.matchOpenBracket){var C=(f.getLineContent()+u).lastIndexOf(d.matchOpenBracket)+1,p=t.findMatchingBracketUp(d.matchOpenBracket,{lineNumber:l.lineNumber,column:C});if(p){if(p.startLineNumber===l.lineNumber)return null;var b=t.getLineContent(p.startLineNumber),v=o.getLeadingWhitespace(b),S=n.normalizeIndentation(v),I=t.getLineContent(l.lineNumber),L=t.getLineFirstNonWhitespaceColumn(l.lineNumber)||l.column,N=I.substring(L-1,l.column-1),P=S+N+u,_=new m.Range(l.lineNumber,1,l.lineNumber,l.column),g=new i.ReplaceCommand(_,P);return new s.EditOperationResult(1,[g],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!0})}}return null},e.compositionEndWithInterceptors=function(n,t,o,a){if("never"===t.autoClosingQuotes)return null;for(var u=[],m=0;m2){var p=l.getMapForWordSeparators(t.wordSeparators),b=f.charCodeAt(d.column-3),v=p.get(b);if(0===v)continue}var S=f.charAt(d.column-1);if(S){var I=e._isBeforeClosingBrace(t,h,S),L=s.isQuote(h)?t.shouldAutoCloseBefore.quote:t.shouldAutoCloseBefore.bracket;if(I)continue;if(!L(S))continue}if(!o.isCheapToTokenize(d.lineNumber))continue;o.forceTokenization(d.lineNumber);var N=o.getLineTokens(d.lineNumber),P=!1;try{P=c.LanguageConfigurationRegistry.shouldAutoClosePair(h,N,d.column-1)}catch(_){r.onUnexpectedError(_)}if(P){var E=t.autoClosingPairsOpen[h];u[m]=new i.ReplaceCommandWithOffsetCursorState(a[m],E,0,-E.length)}}}return new s.EditOperationResult(1,u,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})},e.typeWithInterceptors=function(n,t,r,o,a){if("\n"===a){for(var u=[],l=0,m=o.length;m>l;l++)u[l]=e._enter(t,r,!1,o[l]);return new s.EditOperationResult(1,u,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoIndentType(t,r,o)){for(var d=[],c=!1,l=0,m=o.length;m>l;l++)if(d[l]=this._runAutoIndentType(t,r,o[l],a),!d[l]){c=!0;break}if(!c)return new s.EditOperationResult(1,d,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoClosingCloseCharType(t,r,o,a))return this._runAutoClosingCloseCharType(n,t,r,o,a);if(this._isAutoClosingOpenCharType(t,r,o,a))return this._runAutoClosingOpenCharType(n,t,r,o,a);if(this._isSurroundSelectionType(t,r,o,a))return this._runSurroundSelectionType(n,t,r,o,a);if(this._isTypeInterceptorElectricChar(t,r,o)){var f=this._typeInterceptorElectricChar(n,t,r,o[0],a);if(f)return f}for(var h=[],l=0,m=o.length;m>l;l++)h[l]=new i.ReplaceCommand(o[l],a);var g=1!==n;return" "===a&&(g=!0),new s.EditOperationResult(1,h,{shouldPushStackElementBefore:g,shouldPushStackElementAfter:!1})},e.typeWithoutInterceptors=function(e,n,t,r,o){for(var a=[],u=0,l=r.length;l>u;u++)a[u]=new i.ReplaceCommand(r[u],o);return new s.EditOperationResult(1,a,{shouldPushStackElementBefore:1!==e,shouldPushStackElementAfter:!1})},e.lineInsertBefore=function(e,n,t){if(null===n||null===t)return[];for(var r=[],o=0,a=t.length;a>o;o++){var u=t[o].positionLineNumber;if(1===u)r[o]=new i.ReplaceCommandWithoutChangingPosition(new m.Range(1,1,1,1),"\n");else{u--;var s=n.getLineMaxColumn(u);r[o]=this._enter(e,n,!1,new m.Range(u,s,u,s))}}return r},e.lineInsertAfter=function(e,n,t){if(null===n||null===t)return[];for(var r=[],o=0,i=t.length;i>o;o++){var a=t[o].positionLineNumber,u=n.getLineMaxColumn(a);r[o]=this._enter(e,n,!1,new m.Range(a,u,a,u))}return r},e.lineBreakInsert=function(e,n,t){for(var r=[],o=0,i=t.length;i>o;o++)r[o]=this._enter(e,n,!0,t[o]);return r},e}();n.TypeOperations=f}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys",function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var t=e("node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey");!function(e){e.editorTextFocus=new t.RawContextKey("editorTextFocus",!1),e.focus=new t.RawContextKey("editorFocus",!1),e.textInputFocus=new t.RawContextKey("textInputFocus",!1),e.readOnly=new t.RawContextKey("editorReadonly",!1),e.writable=e.readOnly.toNegated(),e.hasNonEmptySelection=new t.RawContextKey("editorHasSelection",!1),e.hasOnlyEmptySelection=e.hasNonEmptySelection.toNegated(),e.hasMultipleSelections=new t.RawContextKey("editorHasMultipleSelections",!1),e.hasSingleSelection=e.hasMultipleSelections.toNegated(),e.tabMovesFocus=new t.RawContextKey("editorTabMovesFocus",!1),e.tabDoesNotMoveFocus=e.tabMovesFocus.toNegated(),e.isInEmbeddedEditor=new t.RawContextKey("isInEmbeddedEditor",!1),e.canUndo=new t.RawContextKey("canUndo",!1),e.canRedo=new t.RawContextKey("canRedo",!1),e.languageId=new t.RawContextKey("editorLangId",""),e.hasCompletionItemProvider=new t.RawContextKey("editorHasCompletionItemProvider",!1),e.hasCodeActionsProvider=new t.RawContextKey("editorHasCodeActionsProvider",!1),e.hasCodeLensProvider=new t.RawContextKey("editorHasCodeLensProvider",!1),e.hasDefinitionProvider=new t.RawContextKey("editorHasDefinitionProvider",!1),e.hasDeclarationProvider=new t.RawContextKey("editorHasDeclarationProvider",!1),e.hasImplementationProvider=new t.RawContextKey("editorHasImplementationProvider",!1),e.hasTypeDefinitionProvider=new t.RawContextKey("editorHasTypeDefinitionProvider",!1),e.hasHoverProvider=new t.RawContextKey("editorHasHoverProvider",!1),e.hasDocumentHighlightProvider=new t.RawContextKey("editorHasDocumentHighlightProvider",!1),e.hasDocumentSymbolProvider=new t.RawContextKey("editorHasDocumentSymbolProvider",!1),e.hasReferenceProvider=new t.RawContextKey("editorHasReferenceProvider",!1),e.hasRenameProvider=new t.RawContextKey("editorHasRenameProvider",!1),e.hasSignatureHelpProvider=new t.RawContextKey("editorHasSignatureHelpProvider",!1),e.hasDocumentFormattingProvider=new t.RawContextKey("editorHasDocumentFormattingProvider",!1),e.hasDocumentSelectionFormattingProvider=new t.RawContextKey("editorHasDocumentSelectionFormattingProvider",!1),e.hasMultipleDocumentFormattingProvider=new t.RawContextKey("editorHasMultipleDocumentFormattingProvider",!1),e.hasMultipleDocumentSelectionFormattingProvider=new t.RawContextKey("editorHasMultipleDocumentSelectionFormattingProvider",!1)}(o.EditorContextKeys||(o.EditorContextKeys={}))}); ;/*!node_modules/monaco-editor/esm/vs/editor/browser/controller/coreCommands.js*/ define("node_modules/monaco-editor/esm/vs/editor/browser/controller/coreCommands",function(e,t){"use strict";function o(e){e.register()}function r(e,t){o(new w("default:"+e,e)),o(new w(e,e,t))}Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),i=this&&this.__extends||function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),s=n.__importStar(e("node_modules/monaco-editor/esm/vs/nls")),u=n.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/types")),c=e("node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions"),a=e("node_modules/monaco-editor/esm/vs/editor/browser/services/codeEditorService"),l=e("node_modules/monaco-editor/esm/vs/editor/common/controller/cursorColumnSelection"),d=e("node_modules/monaco-editor/esm/vs/editor/common/controller/cursorCommon"),m=e("node_modules/monaco-editor/esm/vs/editor/common/controller/cursorDeleteOperations"),p=e("node_modules/monaco-editor/esm/vs/editor/common/controller/cursorMoveCommands"),C=e("node_modules/monaco-editor/esm/vs/editor/common/controller/cursorTypeOperations"),g=e("node_modules/monaco-editor/esm/vs/editor/common/core/position"),E=e("node_modules/monaco-editor/esm/vs/editor/common/core/range"),v=e("node_modules/monaco-editor/esm/vs/editor/common/editorCommon"),y=e("node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys"),S=e("node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey"),h=0,x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.runEditorCommand=function(e,t,o){var r=t._getCursors();r&&this.runCoreEditorCommand(r,o||{})},t}(c.EditorCommand);t.CoreEditorCommand=x,function(e){function t(t){var o;switch(t.to){case e.RawDirection.Up:o=1;break;case e.RawDirection.Down:o=2;break;default:return null}var r;switch(t.by){case e.RawUnit.Line:r=1;break;case e.RawUnit.WrappedLine:r=2;break;case e.RawUnit.Page:r=3;break;case e.RawUnit.HalfPage:r=4;break;default:r=2}var n=Math.floor(t.value||1),i=!!t.revealCursor;return{direction:o,unit:r,value:n,revealCursor:i,select:!!t.select}}var o=function(e){if(!u.isObject(e))return!1;var t=e;return u.isString(t.to)&&(u.isUndefined(t.by)||u.isString(t.by))&&(u.isUndefined(t.value)||u.isNumber(t.value))&&(u.isUndefined(t.revealCursor)||u.isBoolean(t.revealCursor))?!0:!1};e.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'\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:o,schema:{type:"object",required:["to"],properties:{to:{type:"string","enum":["up","down"]},by:{type:"string","enum":["line","wrappedLine","page","halfPage"]},value:{type:"number","default":1},revealCursor:{type:"boolean"}}}}]},e.RawDirection={Up:"up",Down:"down"},e.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage"},e.parse=t}(t.EditorScroll_||(t.EditorScroll_={})),function(e){var t=function(e){if(!u.isObject(e))return!1;var t=e;return u.isNumber(t.lineNumber)&&(u.isUndefined(t.at)||u.isString(t.at))?!0:!1};e.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:t,schema:{type:"object",required:["lineNumber"],properties:{lineNumber:{type:"number"},at:{type:"string","enum":["top","center","bottom"]}}}}]},e.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"}}(t.RevealLine_||(t.RevealLine_={})),function(e){var o=function(e){function t(t){var o=e.call(this,t)||this;return o._inSelectionMode=t.inSelectionMode,o}return i(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[p.CursorMoveCommands.moveTo(e.context,e.getPrimaryCursor(),this._inSelectionMode,t.position,t.viewPosition)]),e.reveal(!0,0,0)},t}(x);e.MoveTo=c.registerEditorCommand(new o({id:"_moveTo",inSelectionMode:!1,precondition:null})),e.MoveToSelect=c.registerEditorCommand(new o({id:"_moveToSelect",inSelectionMode:!0,precondition:null}));var r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement();var o=this._getColumnSelectResult(e.context,e.getPrimaryCursor(),e.getColumnSelectData(),t);e.setStates(t.source,3,o.viewStates.map(function(e){return d.CursorState.fromViewState(e)})),e.setColumnSelectData({toViewLineNumber:o.toLineNumber,toViewVisualColumn:o.toVisualColumn}),e.reveal(!0,o.reversed?1:2,0)},t}(x);e.ColumnSelect=c.registerEditorCommand(new(function(e){function t(){return e.call(this,{id:"columnSelect",precondition:null})||this}return i(t,e),t.prototype._getColumnSelectResult=function(e,t,o,r){var n,i=e.model.validatePosition(r.position);return n=r.viewPosition?e.validateViewPosition(new g.Position(r.viewPosition.lineNumber,r.viewPosition.column),i):e.convertModelPositionToViewPosition(i),l.ColumnSelection.columnSelect(e.config,e.viewModel,t.viewState.selection,n.lineNumber,r.mouseColumn-1)},t}(r))),e.CursorColumnSelectLeft=c.registerEditorCommand(new(function(e){function t(){return e.call(this,{id:"cursorColumnSelectLeft",precondition:null,kbOpts:{weight:h,kbExpr:y.EditorContextKeys.textInputFocus,primary:3599,linux:{primary:0}}})||this}return i(t,e),t.prototype._getColumnSelectResult=function(e,t,o){return l.ColumnSelection.columnSelectLeft(e.config,e.viewModel,t.viewState,o.toViewLineNumber,o.toViewVisualColumn)},t}(r))),e.CursorColumnSelectRight=c.registerEditorCommand(new(function(e){function t(){return e.call(this,{id:"cursorColumnSelectRight",precondition:null,kbOpts:{weight:h,kbExpr:y.EditorContextKeys.textInputFocus,primary:3601,linux:{primary:0}}})||this}return i(t,e),t.prototype._getColumnSelectResult=function(e,t,o){return l.ColumnSelection.columnSelectRight(e.config,e.viewModel,t.viewState,o.toViewLineNumber,o.toViewVisualColumn)},t}(r)));var n=function(e){function t(t){var o=e.call(this,t)||this;return o._isPaged=t.isPaged,o}return i(t,e),t.prototype._getColumnSelectResult=function(e,t,o){return l.ColumnSelection.columnSelectUp(e.config,e.viewModel,t.viewState,this._isPaged,o.toViewLineNumber,o.toViewVisualColumn)},t}(r);e.CursorColumnSelectUp=c.registerEditorCommand(new n({isPaged:!1,id:"cursorColumnSelectUp",precondition:null,kbOpts:{weight:h,kbExpr:y.EditorContextKeys.textInputFocus,primary:3600,linux:{primary:0}}})),e.CursorColumnSelectPageUp=c.registerEditorCommand(new n({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:null,kbOpts:{weight:h,kbExpr:y.EditorContextKeys.textInputFocus,primary:3595,linux:{primary:0}}}));var s=function(e){function t(t){var o=e.call(this,t)||this;return o._isPaged=t.isPaged,o}return i(t,e),t.prototype._getColumnSelectResult=function(e,t,o){return l.ColumnSelection.columnSelectDown(e.config,e.viewModel,t.viewState,this._isPaged,o.toViewLineNumber,o.toViewVisualColumn)},t}(r);e.CursorColumnSelectDown=c.registerEditorCommand(new s({isPaged:!1,id:"cursorColumnSelectDown",precondition:null,kbOpts:{weight:h,kbExpr:y.EditorContextKeys.textInputFocus,primary:3602,linux:{primary:0}}})),e.CursorColumnSelectPageDown=c.registerEditorCommand(new s({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:null,kbOpts:{weight:h,kbExpr:y.EditorContextKeys.textInputFocus,primary:3596,linux:{primary:0}}}));var u=function(e){function t(){return e.call(this,{id:"cursorMove",precondition:null,description:p.CursorMove.description})||this}return i(t,e),t.prototype.runCoreEditorCommand=function(e,t){var o=p.CursorMove.parse(t);o&&this._runCursorMove(e,t.source,o)},t.prototype._runCursorMove=function(e,t,o){e.context.model.pushStackElement(),e.setStates(t,3,p.CursorMoveCommands.move(e.context,e.getAll(),o)),e.reveal(!0,0,0)},t}(x);e.CursorMoveImpl=u,e.CursorMove=c.registerEditorCommand(new u);var a=function(t){function o(e){var o=t.call(this,e)||this;return o._staticArgs=e.args,o}return i(o,t),o.prototype.runCoreEditorCommand=function(t,o){var r=this._staticArgs;-1===this._staticArgs.value&&(r={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:t.context.config.pageSize}),e.CursorMove._runCursorMove(t,o.source,r)},o}(x);e.CursorLeft=c.registerEditorCommand(new a({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:null,kbOpts:{weight:h,kbExpr:y.EditorContextKeys.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),e.CursorLeftSelect=c.registerEditorCommand(new a({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:null,kbOpts:{weight:h,kbExpr:y.EditorContextKeys.textInputFocus,primary:1039}})),e.CursorRight=c.registerEditorCommand(new a({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:null,kbOpts:{weight:h,kbExpr:y.EditorContextKeys.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),e.CursorRightSelect=c.registerEditorCommand(new a({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:null,kbOpts:{weight:h,kbExpr:y.EditorContextKeys.textInputFocus,primary:1041}})),e.CursorUp=c.registerEditorCommand(new a({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:null,kbOpts:{weight:h,kbExpr:y.EditorContextKeys.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),e.CursorUpSelect=c.registerEditorCommand(new a({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:null,kbOpts:{weight:h,kbExpr:y.EditorContextKeys.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),e.CursorPageUp=c.registerEditorCommand(new a({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:null,kbOpts:{weight:h,kbExpr:y.EditorContextKeys.textInputFocus,primary:11}})),e.CursorPageUpSelect=c.registerEditorCommand(new a({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:null,kbOpts:{weight:h,kbExpr:y.EditorContextKeys.textInputFocus,primary:1035}})),e.CursorDown=c.registerEditorCommand(new a({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:null,kbOpts:{weight:h,kbExpr:y.EditorContextKeys.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),e.CursorDownSelect=c.registerEditorCommand(new a({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:null,kbOpts:{weight:h,kbExpr:y.EditorContextKeys.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),e.CursorPageDown=c.registerEditorCommand(new a({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:null,kbOpts:{weight:h,kbExpr:y.EditorContextKeys.textInputFocus,primary:12}})),e.CursorPageDownSelect=c.registerEditorCommand(new a({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:null,kbOpts:{weight:h,kbExpr:y.EditorContextKeys.textInputFocus,primary:1036}})),e.CreateCursor=c.registerEditorCommand(new(function(e){function t(){return e.call(this,{id:"createCursor",precondition:null})||this}return i(t,e),t.prototype.runCoreEditorCommand=function(e,t){var o,r=e.context;o=t.wholeLine?p.CursorMoveCommands.line(r,e.getPrimaryCursor(),!1,t.position,t.viewPosition):p.CursorMoveCommands.moveTo(r,e.getPrimaryCursor(),!1,t.position,t.viewPosition);var n=e.getAll();if(n.length>1)for(var i=o.modelState?o.modelState.position:null,s=o.viewState?o.viewState.position:null,u=0,c=n.length;c>u;u++){var a=n[u];if(!(i&&!a.modelState.selection.containsPosition(i)||s&&!a.viewState.selection.containsPosition(s)))return n.splice(u,1),e.context.model.pushStackElement(),void e.setStates(t.source,3,n)}n.push(o),e.context.model.pushStackElement(),e.setStates(t.source,3,n)},t}(x))),e.LastCursorMoveToSelect=c.registerEditorCommand(new(function(e){function t(){return e.call(this,{id:"_lastCursorMoveToSelect",precondition:null})||this}return i(t,e),t.prototype.runCoreEditorCommand=function(e,t){var o=e.context,r=e.getLastAddedCursorIndex(),n=e.getAll(),i=n.slice(0);i[r]=p.CursorMoveCommands.moveTo(o,n[r],!0,t.position,t.viewPosition),e.context.model.pushStackElement(),e.setStates(t.source,3,i)},t}(x)));var m=function(e){function t(t){var o=e.call(this,t)||this;return o._inSelectionMode=t.inSelectionMode,o}return i(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,p.CursorMoveCommands.moveToBeginningOfLine(e.context,e.getAll(),this._inSelectionMode)),e.reveal(!0,0,0)},t}(x);e.CursorHome=c.registerEditorCommand(new m({inSelectionMode:!1,id:"cursorHome",precondition:null,kbOpts:{weight:h,kbExpr:y.EditorContextKeys.textInputFocus,primary:14,mac:{primary:14,secondary:[2063]}}})),e.CursorHomeSelect=c.registerEditorCommand(new m({inSelectionMode:!0,id:"cursorHomeSelect",precondition:null,kbOpts:{weight:h,kbExpr:y.EditorContextKeys.textInputFocus,primary:1038,mac:{primary:1038,secondary:[3087]}}})),e.CursorLineStart=c.registerEditorCommand(new(function(e){function t(){return e.call(this,{id:"cursorLineStart",precondition:null,kbOpts:{weight:h,kbExpr:y.EditorContextKeys.textInputFocus,primary:0,mac:{primary:287}}})||this}return i(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,this._exec(e.context,e.getAll())),e.reveal(!0,0,0)},t.prototype._exec=function(e,t){for(var o=[],r=0,n=t.length;n>r;r++){var i=t[r],s=i.modelState.position.lineNumber;o[r]=d.CursorState.fromModelState(i.modelState.move(!1,s,1,0))}return o},t}(x)));var C=function(e){function t(t){var o=e.call(this,t)||this;return o._inSelectionMode=t.inSelectionMode,o}return i(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,p.CursorMoveCommands.moveToEndOfLine(e.context,e.getAll(),this._inSelectionMode)),e.reveal(!0,0,0)},t}(x);e.CursorEnd=c.registerEditorCommand(new C({inSelectionMode:!1,id:"cursorEnd",precondition:null,kbOpts:{weight:h,kbExpr:y.EditorContextKeys.textInputFocus,primary:13,mac:{primary:13,secondary:[2065]}}})),e.CursorEndSelect=c.registerEditorCommand(new C({inSelectionMode:!0,id:"cursorEndSelect",precondition:null,kbOpts:{weight:h,kbExpr:y.EditorContextKeys.textInputFocus,primary:1037,mac:{primary:1037,secondary:[3089]}}})),e.CursorLineEnd=c.registerEditorCommand(new(function(e){function t(){return e.call(this,{id:"cursorLineEnd",precondition:null,kbOpts:{weight:h,kbExpr:y.EditorContextKeys.textInputFocus,primary:0,mac:{primary:291}}})||this}return i(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,this._exec(e.context,e.getAll())),e.reveal(!0,0,0)},t.prototype._exec=function(e,t){for(var o=[],r=0,n=t.length;n>r;r++){var i=t[r],s=i.modelState.position.lineNumber,u=e.model.getLineMaxColumn(s);o[r]=d.CursorState.fromModelState(i.modelState.move(!1,s,u,0))}return o},t}(x)));var v=function(e){function t(t){var o=e.call(this,t)||this;return o._inSelectionMode=t.inSelectionMode,o}return i(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,p.CursorMoveCommands.moveToBeginningOfBuffer(e.context,e.getAll(),this._inSelectionMode)),e.reveal(!0,0,0)},t}(x);e.CursorTop=c.registerEditorCommand(new v({inSelectionMode:!1,id:"cursorTop",precondition:null,kbOpts:{weight:h,kbExpr:y.EditorContextKeys.textInputFocus,primary:2062,mac:{primary:2064}}})),e.CursorTopSelect=c.registerEditorCommand(new v({inSelectionMode:!0,id:"cursorTopSelect",precondition:null,kbOpts:{weight:h,kbExpr:y.EditorContextKeys.textInputFocus,primary:3086,mac:{primary:3088}}}));var S=function(e){function t(t){var o=e.call(this,t)||this;return o._inSelectionMode=t.inSelectionMode,o}return i(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,p.CursorMoveCommands.moveToEndOfBuffer(e.context,e.getAll(),this._inSelectionMode)),e.reveal(!0,0,0)},t}(x);e.CursorBottom=c.registerEditorCommand(new S({inSelectionMode:!1,id:"cursorBottom",precondition:null,kbOpts:{weight:h,kbExpr:y.EditorContextKeys.textInputFocus,primary:2061,mac:{primary:2066}}})),e.CursorBottomSelect=c.registerEditorCommand(new S({inSelectionMode:!0,id:"cursorBottomSelect",precondition:null,kbOpts:{weight:h,kbExpr:y.EditorContextKeys.textInputFocus,primary:3085,mac:{primary:3090}}}));var f=function(e){function o(){return e.call(this,{id:"editorScroll",precondition:null,description:t.EditorScroll_.description})||this}return i(o,e),o.prototype.runCoreEditorCommand=function(e,o){var r=t.EditorScroll_.parse(o);r&&this._runEditorScroll(e,o.source,r)},o.prototype._runEditorScroll=function(e,t,o){var r=this._computeDesiredScrollTop(e.context,o);if(o.revealCursor){var n=e.context.getCompletelyVisibleViewRangeAtScrollTop(r);e.setStates(t,3,[p.CursorMoveCommands.findPositionInViewportIfOutside(e.context,e.getPrimaryCursor(),n,o.select)])}e.scrollTo(r)},o.prototype._computeDesiredScrollTop=function(e,t){if(1===t.unit){var o=e.getCompletelyVisibleModelRange(),r=void 0;r=1===t.direction?Math.max(1,o.startLineNumber-t.value):Math.min(e.model.getLineCount(),o.startLineNumber+t.value);var n=e.convertModelPositionToViewPosition(new g.Position(r,1));return e.getVerticalOffsetForViewLine(n.lineNumber)}var i;i=3===t.unit?e.config.pageSize*t.value:4===t.unit?Math.round(e.config.pageSize/2)*t.value:t.value;var s=(1===t.direction?-1:1)*i;return e.getCurrentScrollTop()+s*e.config.lineHeight},o}(x);e.EditorScrollImpl=f,e.EditorScroll=c.registerEditorCommand(new f),e.ScrollLineUp=c.registerEditorCommand(new(function(t){function o(){return t.call(this,{id:"scrollLineUp",precondition:null,kbOpts:{weight:h,kbExpr:y.EditorContextKeys.textInputFocus,primary:2064,mac:{primary:267}}})||this}return i(o,t),o.prototype.runCoreEditorCommand=function(t,o){e.EditorScroll._runEditorScroll(t,o.source,{direction:1,unit:2,value:1,revealCursor:!1,select:!1})},o}(x))),e.ScrollPageUp=c.registerEditorCommand(new(function(t){function o(){return t.call(this,{id:"scrollPageUp",precondition:null,kbOpts:{weight:h,kbExpr:y.EditorContextKeys.textInputFocus,primary:2059,win:{primary:523},linux:{primary:523}}})||this}return i(o,t),o.prototype.runCoreEditorCommand=function(t,o){e.EditorScroll._runEditorScroll(t,o.source,{direction:1,unit:3,value:1,revealCursor:!1,select:!1})},o}(x))),e.ScrollLineDown=c.registerEditorCommand(new(function(t){function o(){return t.call(this,{id:"scrollLineDown",precondition:null,kbOpts:{weight:h,kbExpr:y.EditorContextKeys.textInputFocus,primary:2066,mac:{primary:268}}})||this}return i(o,t),o.prototype.runCoreEditorCommand=function(t,o){e.EditorScroll._runEditorScroll(t,o.source,{direction:2,unit:2,value:1,revealCursor:!1,select:!1})},o}(x))),e.ScrollPageDown=c.registerEditorCommand(new(function(t){function o(){return t.call(this,{id:"scrollPageDown",precondition:null,kbOpts:{weight:h,kbExpr:y.EditorContextKeys.textInputFocus,primary:2060,win:{primary:524},linux:{primary:524}}})||this}return i(o,t),o.prototype.runCoreEditorCommand=function(t,o){e.EditorScroll._runEditorScroll(t,o.source,{direction:2,unit:3,value:1,revealCursor:!1,select:!1})},o}(x)));var w=function(e){function t(t){var o=e.call(this,t)||this;return o._inSelectionMode=t.inSelectionMode,o}return i(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[p.CursorMoveCommands.word(e.context,e.getPrimaryCursor(),this._inSelectionMode,t.position)]),e.reveal(!0,0,0)},t}(x);e.WordSelect=c.registerEditorCommand(new w({inSelectionMode:!1,id:"_wordSelect",precondition:null})),e.WordSelectDrag=c.registerEditorCommand(new w({inSelectionMode:!0,id:"_wordSelectDrag",precondition:null})),e.LastCursorWordSelect=c.registerEditorCommand(new(function(e){function t(){return e.call(this,{id:"lastCursorWordSelect",precondition:null})||this}return i(t,e),t.prototype.runCoreEditorCommand=function(e,t){var o=e.context,r=e.getLastAddedCursorIndex(),n=e.getAll(),i=n.slice(0),s=n[r];i[r]=p.CursorMoveCommands.word(o,s,s.modelState.hasSelection(),t.position),o.model.pushStackElement(),e.setStates(t.source,3,i)},t}(x)));var b=function(e){function t(t){var o=e.call(this,t)||this;return o._inSelectionMode=t.inSelectionMode,o}return i(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[p.CursorMoveCommands.line(e.context,e.getPrimaryCursor(),this._inSelectionMode,t.position,t.viewPosition)]),e.reveal(!1,0,0)},t}(x);e.LineSelect=c.registerEditorCommand(new b({inSelectionMode:!1,id:"_lineSelect",precondition:null})),e.LineSelectDrag=c.registerEditorCommand(new b({inSelectionMode:!0,id:"_lineSelectDrag",precondition:null}));var k=function(e){function t(t){var o=e.call(this,t)||this;return o._inSelectionMode=t.inSelectionMode,o}return i(t,e),t.prototype.runCoreEditorCommand=function(e,t){var o=e.getLastAddedCursorIndex(),r=e.getAll(),n=r.slice(0);n[o]=p.CursorMoveCommands.line(e.context,r[o],this._inSelectionMode,t.position,t.viewPosition),e.context.model.pushStackElement(),e.setStates(t.source,3,n)},t}(x);e.LastCursorLineSelect=c.registerEditorCommand(new k({inSelectionMode:!1,id:"lastCursorLineSelect",precondition:null})),e.LastCursorLineSelectDrag=c.registerEditorCommand(new k({inSelectionMode:!0,id:"lastCursorLineSelectDrag",precondition:null})),e.ExpandLineSelection=c.registerEditorCommand(new(function(e){function t(){return e.call(this,{id:"expandLineSelection",precondition:null,kbOpts:{weight:h,kbExpr:y.EditorContextKeys.textInputFocus,primary:2090}})||this}return i(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,p.CursorMoveCommands.expandLineSelection(e.context,e.getAll())),e.reveal(!0,0,0)},t}(x))),e.CancelSelection=c.registerEditorCommand(new(function(e){function t(){return e.call(this,{id:"cancelSelection",precondition:y.EditorContextKeys.hasNonEmptySelection,kbOpts:{weight:h,kbExpr:y.EditorContextKeys.textInputFocus,primary:9,secondary:[1033]}})||this}return i(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[p.CursorMoveCommands.cancelSelection(e.context,e.getPrimaryCursor())]),e.reveal(!0,0,0)},t}(x))),e.RemoveSecondaryCursors=c.registerEditorCommand(new(function(e){function t(){return e.call(this,{id:"removeSecondaryCursors",precondition:y.EditorContextKeys.hasMultipleSelections,kbOpts:{weight:h+1,kbExpr:y.EditorContextKeys.textInputFocus,primary:9,secondary:[1033]}})||this}return i(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[e.getPrimaryCursor()]),e.reveal(!0,0,0)},t}(x))),e.RevealLine=c.registerEditorCommand(new(function(e){function o(){return e.call(this,{id:"revealLine",precondition:null,description:t.RevealLine_.description})||this}return i(o,e),o.prototype.runCoreEditorCommand=function(e,o){var r=o,n=(r.lineNumber||0)+1;1>n&&(n=1);var i=e.context.model.getLineCount();n>i&&(n=i);var s=new E.Range(n,1,n,e.context.model.getLineMaxColumn(n)),u=0;if(r.at)switch(r.at){case t.RevealLine_.RawAtArgument.Top:u=3;break;case t.RevealLine_.RawAtArgument.Center:u=1;break;case t.RevealLine_.RawAtArgument.Bottom:u=4}var c=e.context.convertModelRangeToViewRange(s);e.revealRange(!1,c,u,0)},o}(x))),e.SelectAll=c.registerEditorCommand(new(function(e){function t(){return e.call(this,{id:"selectAll",precondition:null})||this}return i(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[p.CursorMoveCommands.selectAll(e.context,e.getPrimaryCursor())])},t}(x))),e.SetSelection=c.registerEditorCommand(new(function(e){function t(){return e.call(this,{id:"setSelection",precondition:null})||this}return i(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[d.CursorState.fromModelSelection(t.selection)])},t}(x)))}(t.CoreNavigationCommands||(t.CoreNavigationCommands={})),function(e){var t=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.runEditorCommand=function(e,t,o){var r=t._getCursors();r&&this.runCoreEditingCommand(t,r,o||{})},t}(c.EditorCommand);e.CoreEditingCommand=t,e.LineBreakInsert=c.registerEditorCommand(new(function(e){function t(){return e.call(this,{id:"lineBreakInsert",precondition:y.EditorContextKeys.writable,kbOpts:{weight:h,kbExpr:y.EditorContextKeys.textInputFocus,primary:0,mac:{primary:301}}})||this}return i(t,e),t.prototype.runCoreEditingCommand=function(e,t){e.pushUndoStop(),e.executeCommands(this.id,C.TypeOperations.lineBreakInsert(t.context.config,t.context.model,t.getAll().map(function(e){return e.modelState.selection})))},t}(t))),e.Outdent=c.registerEditorCommand(new(function(e){function t(){return e.call(this,{id:"outdent",precondition:y.EditorContextKeys.writable,kbOpts:{weight:h,kbExpr:S.ContextKeyExpr.and(y.EditorContextKeys.editorTextFocus,y.EditorContextKeys.tabDoesNotMoveFocus),primary:1026}})||this}return i(t,e),t.prototype.runCoreEditingCommand=function(e,t){e.pushUndoStop(),e.executeCommands(this.id,C.TypeOperations.outdent(t.context.config,t.context.model,t.getAll().map(function(e){return e.modelState.selection}))),e.pushUndoStop()},t}(t))),e.Tab=c.registerEditorCommand(new(function(e){function t(){return e.call(this,{id:"tab",precondition:y.EditorContextKeys.writable,kbOpts:{weight:h,kbExpr:S.ContextKeyExpr.and(y.EditorContextKeys.editorTextFocus,y.EditorContextKeys.tabDoesNotMoveFocus),primary:2}})||this}return i(t,e),t.prototype.runCoreEditingCommand=function(e,t){e.pushUndoStop(),e.executeCommands(this.id,C.TypeOperations.tab(t.context.config,t.context.model,t.getAll().map(function(e){return e.modelState.selection}))),e.pushUndoStop()},t}(t))),e.DeleteLeft=c.registerEditorCommand(new(function(e){function t(){return e.call(this,{id:"deleteLeft",precondition:y.EditorContextKeys.writable,kbOpts:{weight:h,kbExpr:y.EditorContextKeys.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})||this}return i(t,e),t.prototype.runCoreEditingCommand=function(e,t){var o=m.DeleteOperations.deleteLeft(t.getPrevEditOperationType(),t.context.config,t.context.model,t.getAll().map(function(e){return e.modelState.selection})),r=o[0],n=o[1];r&&e.pushUndoStop(),e.executeCommands(this.id,n),t.setPrevEditOperationType(2)},t}(t))),e.DeleteRight=c.registerEditorCommand(new(function(e){function t(){return e.call(this,{id:"deleteRight",precondition:y.EditorContextKeys.writable,kbOpts:{weight:h,kbExpr:y.EditorContextKeys.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})||this}return i(t,e),t.prototype.runCoreEditingCommand=function(e,t){var o=m.DeleteOperations.deleteRight(t.getPrevEditOperationType(),t.context.config,t.context.model,t.getAll().map(function(e){return e.modelState.selection})),r=o[0],n=o[1];r&&e.pushUndoStop(),e.executeCommands(this.id,n),t.setPrevEditOperationType(3)},t}(t)))}(t.CoreEditingCommands||(t.CoreEditingCommands={}));var f=function(e){function t(t){var o=e.call(this,t)||this;return o._editorHandler=t.editorHandler,o._inputHandler=t.inputHandler,o}return i(t,e),t.prototype.runCommand=function(e,t){var o=e.get(a.ICodeEditorService).getFocusedCodeEditor();if(o&&o.hasTextFocus())return this._runEditorHandler(e,o,t);var r=document.activeElement;if(r&&["input","textarea"].indexOf(r.tagName.toLowerCase())>=0)return void document.execCommand(this._inputHandler);var n=e.get(a.ICodeEditorService).getActiveCodeEditor();return n?(n.focus(),this._runEditorHandler(e,n,t)):void 0},t.prototype._runEditorHandler=function(e,t,o){var r=this._editorHandler;"string"==typeof r?t.trigger("keyboard",r,o):(o=o||{},o.source="keyboard",r.runEditorCommand(e,t,o))},t}(c.Command),w=function(e){function t(t,o,r){var n=e.call(this,{id:t,precondition:null,description:r})||this;return n._handlerId=o,n}return i(t,e),t.prototype.runCommand=function(e,t){var o=e.get(a.ICodeEditorService).getFocusedCodeEditor();o&&o.trigger("keyboard",this._handlerId,t)},t}(c.Command);o(new f({editorHandler:t.CoreNavigationCommands.SelectAll,inputHandler:"selectAll",id:"editor.action.selectAll",precondition:y.EditorContextKeys.textInputFocus,kbOpts:{weight:h,kbExpr:null,primary:2079},menubarOpts:{menuId:22,group:"1_basic",title:s.localize({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1}})),o(new f({editorHandler:v.Handler.Undo,inputHandler:"undo",id:v.Handler.Undo,precondition:y.EditorContextKeys.writable,kbOpts:{weight:h,kbExpr:y.EditorContextKeys.textInputFocus,primary:2104},menubarOpts:{menuId:14,group:"1_do",title:s.localize({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1}})),o(new w("default:"+v.Handler.Undo,v.Handler.Undo)),o(new f({editorHandler:v.Handler.Redo,inputHandler:"redo",id:v.Handler.Redo,precondition:y.EditorContextKeys.writable,kbOpts:{weight:h,kbExpr:y.EditorContextKeys.textInputFocus,primary:2103,secondary:[3128],mac:{primary:3128}},menubarOpts:{menuId:14,group:"1_do",title:s.localize({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2}})),o(new w("default:"+v.Handler.Redo,v.Handler.Redo)),r(v.Handler.Type,{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),r(v.Handler.ReplacePreviousChar),r(v.Handler.CompositionStart),r(v.Handler.CompositionEnd),r(v.Handler.Paste),r(v.Handler.Cut)}); ;/*!node_modules/monaco-editor/esm/vs/editor/browser/view/viewController.js*/ define("node_modules/monaco-editor/esm/vs/editor/browser/view/viewController",function(o,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=o("node_modules/monaco-editor/esm/vs/editor/browser/controller/coreCommands"),i=o("node_modules/monaco-editor/esm/vs/editor/common/core/position"),n=function(){function o(o,e,t,i){this.configuration=o,this.viewModel=e,this.outgoingEvents=t,this.commandDelegate=i}return o.prototype._execMouseCommand=function(o,e){e.source="mouse",this.commandDelegate.executeEditorCommand(o,e)},o.prototype.paste=function(o,e,t,i){this.commandDelegate.paste(o,e,t,i)},o.prototype.type=function(o,e){this.commandDelegate.type(o,e)},o.prototype.replacePreviousChar=function(o,e,t){this.commandDelegate.replacePreviousChar(o,e,t)},o.prototype.compositionStart=function(o){this.commandDelegate.compositionStart(o)},o.prototype.compositionEnd=function(o){this.commandDelegate.compositionEnd(o)},o.prototype.cut=function(o){this.commandDelegate.cut(o)},o.prototype.setSelection=function(o,e){this.commandDelegate.executeEditorCommand(t.CoreNavigationCommands.SetSelection,{source:o,selection:e})},o.prototype._validateViewColumn=function(o){var e=this.viewModel.getLineMinColumn(o.lineNumber);return o.column=4?this._selectAll():3===o.mouseDownCount?this._hasMulticursorModifier(o)?o.inSelectionMode?this._lastCursorLineSelectDrag(o.position):this._lastCursorLineSelect(o.position):o.inSelectionMode?this._lineSelectDrag(o.position):this._lineSelect(o.position):2===o.mouseDownCount?this._hasMulticursorModifier(o)?this._lastCursorWordSelect(o.position):o.inSelectionMode?this._wordSelectDrag(o.position):this._wordSelect(o.position):this._hasMulticursorModifier(o)?this._hasNonMulticursorModifier(o)||(o.shiftKey?this._columnSelect(o.position,o.mouseColumn):o.inSelectionMode?this._lastCursorMoveToSelect(o.position):this._createCursor(o.position,!1)):o.inSelectionMode?o.altKey?this._columnSelect(o.position,o.mouseColumn):this._moveToSelect(o.position):this.moveTo(o.position)},o.prototype._usualArgs=function(o){return o=this._validateViewColumn(o),{position:this._convertViewToModelPosition(o),viewPosition:o}},o.prototype.moveTo=function(o){this._execMouseCommand(t.CoreNavigationCommands.MoveTo,this._usualArgs(o))},o.prototype._moveToSelect=function(o){this._execMouseCommand(t.CoreNavigationCommands.MoveToSelect,this._usualArgs(o))},o.prototype._columnSelect=function(o,e){o=this._validateViewColumn(o),this._execMouseCommand(t.CoreNavigationCommands.ColumnSelect,{position:this._convertViewToModelPosition(o),viewPosition:o,mouseColumn:e})},o.prototype._createCursor=function(o,e){o=this._validateViewColumn(o),this._execMouseCommand(t.CoreNavigationCommands.CreateCursor,{position:this._convertViewToModelPosition(o),viewPosition:o,wholeLine:e})},o.prototype._lastCursorMoveToSelect=function(o){this._execMouseCommand(t.CoreNavigationCommands.LastCursorMoveToSelect,this._usualArgs(o))},o.prototype._wordSelect=function(o){this._execMouseCommand(t.CoreNavigationCommands.WordSelect,this._usualArgs(o))},o.prototype._wordSelectDrag=function(o){this._execMouseCommand(t.CoreNavigationCommands.WordSelectDrag,this._usualArgs(o))},o.prototype._lastCursorWordSelect=function(o){this._execMouseCommand(t.CoreNavigationCommands.LastCursorWordSelect,this._usualArgs(o))},o.prototype._lineSelect=function(o){this._execMouseCommand(t.CoreNavigationCommands.LineSelect,this._usualArgs(o))},o.prototype._lineSelectDrag=function(o){this._execMouseCommand(t.CoreNavigationCommands.LineSelectDrag,this._usualArgs(o))},o.prototype._lastCursorLineSelect=function(o){this._execMouseCommand(t.CoreNavigationCommands.LastCursorLineSelect,this._usualArgs(o))},o.prototype._lastCursorLineSelectDrag=function(o){this._execMouseCommand(t.CoreNavigationCommands.LastCursorLineSelectDrag,this._usualArgs(o))},o.prototype._selectAll=function(){this._execMouseCommand(t.CoreNavigationCommands.SelectAll,{})},o.prototype._convertViewToModelPosition=function(o){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(o)},o.prototype.emitKeyDown=function(o){this.outgoingEvents.emitKeyDown(o)},o.prototype.emitKeyUp=function(o){this.outgoingEvents.emitKeyUp(o)},o.prototype.emitContextMenu=function(o){this.outgoingEvents.emitContextMenu(o)},o.prototype.emitMouseMove=function(o){this.outgoingEvents.emitMouseMove(o)},o.prototype.emitMouseLeave=function(o){this.outgoingEvents.emitMouseLeave(o)},o.prototype.emitMouseUp=function(o){this.outgoingEvents.emitMouseUp(o)},o.prototype.emitMouseDown=function(o){this.outgoingEvents.emitMouseDown(o)},o.prototype.emitMouseDrag=function(o){this.outgoingEvents.emitMouseDrag(o)},o.prototype.emitMouseDrop=function(o){this.outgoingEvents.emitMouseDrop(o)},o.prototype.emitMouseWheel=function(o){this.outgoingEvents.emitMouseWheel(o)},o}();e.ViewController=n}); ;/*!node_modules/monaco-editor/esm/vs/editor/browser/view/viewLayer.js*/ define("node_modules/monaco-editor/esm/vs/editor/browser/view/viewLayer",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/monaco-editor/esm/vs/base/browser/fastDomNode"),i=e("node_modules/monaco-editor/esm/vs/editor/common/core/stringBuilder"),r=function(){function e(e){this._createLine=e,this._set(1,[])}return e.prototype.flush=function(){this._set(1,[])},e.prototype._set=function(e,t){this._lines=t,this._rendLineNumberStart=e},e.prototype._get=function(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}},e.prototype.getStartLineNumber=function(){return this._rendLineNumberStart},e.prototype.getEndLineNumber=function(){return this._rendLineNumberStart+this._lines.length-1},e.prototype.getCount=function(){return this._lines.length},e.prototype.getLine=function(e){var t=e-this._rendLineNumberStart;if(0>t||t>=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[t]},e.prototype.onLinesDeleted=function(e,t){if(0===this.getCount())return null;var n=this.getStartLineNumber(),i=this.getEndLineNumber();if(n>t){var r=t-e+1;return this._rendLineNumberStart-=r,null}if(e>i)return null;for(var o=0,s=0,l=n;i>=l;l++){var u=l-this._rendLineNumberStart;l>=e&&t>=l&&(0===s?(o=u,s=1):s++)}if(n>e){var a=0;a=n>t?t-e+1:n-e,this._rendLineNumberStart-=a}var h=this._lines.splice(o,s);return h},e.prototype.onLinesChanged=function(e,t){if(0===this.getCount())return!1;for(var n=this.getStartLineNumber(),i=this.getEndLineNumber(),r=!1,o=e;t>=o;o++)o>=n&&i>=o&&(this._lines[o-this._rendLineNumberStart].onContentChanged(),r=!0);return r},e.prototype.onLinesInserted=function(e,t){if(0===this.getCount())return null;var n=t-e+1,i=this.getStartLineNumber(),r=this.getEndLineNumber();if(i>=e)return this._rendLineNumberStart+=n,null;if(e>r)return null;if(n+e>r){var o=this._lines.splice(e-this._rendLineNumberStart,r-e+1);return o}for(var s=[],l=0;n>l;l++)s[l]=this._createLine();var u=e-this._rendLineNumberStart,a=this._lines.slice(0,u),h=this._lines.slice(u,this._lines.length-n),d=this._lines.slice(this._lines.length-n,this._lines.length);return this._lines=a.concat(s).concat(h),d},e.prototype.onTokensChanged=function(e){if(0===this.getCount())return!1;for(var t=this.getStartLineNumber(),n=this.getEndLineNumber(),i=!1,r=0,o=e.length;o>r;r++){var s=e[r];if(!(s.toLineNumbern))for(var l=Math.max(t,s.fromLineNumber),u=Math.min(n,s.toLineNumber),a=l;u>=a;a++){var h=a-this._rendLineNumberStart;this._lines[h].onTokensChanged(),i=!0}}return i},e}();t.RenderedLinesCollection=r;var o=function(){function e(e){var t=this;this._host=e,this.domNode=this._createDomNode(),this._linesCollection=new r(function(){return t._host.createVisibleLine()})}return e.prototype._createDomNode=function(){var e=n.createFastDomNode(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e},e.prototype.onConfigurationChanged=function(e){return e.layoutInfo},e.prototype.onFlushed=function(){return this._linesCollection.flush(),!0},e.prototype.onLinesChanged=function(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.toLineNumber)},e.prototype.onLinesDeleted=function(e){var t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(var n=0,i=t.length;i>n;n++){var r=t[n].getDomNode();r&&this.domNode.domNode.removeChild(r)}return!0},e.prototype.onLinesInserted=function(e){var t=this._linesCollection.onLinesInserted(e.fromLineNumber,e.toLineNumber);if(t)for(var n=0,i=t.length;i>n;n++){var r=t[n].getDomNode();r&&this.domNode.domNode.removeChild(r)}return!0},e.prototype.onScrollChanged=function(e){return e.scrollTopChanged},e.prototype.onTokensChanged=function(e){return this._linesCollection.onTokensChanged(e.ranges)},e.prototype.onZonesChanged=function(){return!0},e.prototype.getStartLineNumber=function(){return this._linesCollection.getStartLineNumber()},e.prototype.getEndLineNumber=function(){return this._linesCollection.getEndLineNumber()},e.prototype.getVisibleLine=function(e){return this._linesCollection.getLine(e)},e.prototype.renderLines=function(e){var t=this._linesCollection._get(),n=new s(this.domNode.domNode,this._host,e),i={rendLineNumberStart:t.rendLineNumberStart,lines:t.lines,linesLength:t.lines.length},r=n.render(i,e.startLineNumber,e.endLineNumber,e.relativeVerticalOffset);this._linesCollection._set(r.rendLineNumberStart,r.lines)},e}();t.VisibleLinesCollection=o;var s=function(){function e(e,t,n){this.domNode=e,this.host=t,this.viewportData=n}return e.prototype.render=function(e,t,n,i){var r={rendLineNumberStart:e.rendLineNumberStart,lines:e.lines.slice(0),linesLength:e.linesLength};if(r.rendLineNumberStart+r.linesLength-1=o;o++)r.lines[o-t]=this.host.createVisibleLine();return this._finishRendering(r,!0,i),r}if(this._renderUntouchedLines(r,Math.max(t-r.rendLineNumberStart,0),Math.min(n-r.rendLineNumberStart,r.linesLength-1),i,t),r.rendLineNumberStart>t){var s=t,l=Math.min(n,r.rendLineNumberStart-1);l>=s&&(this._insertLinesBefore(r,s,l,i,t),r.linesLength+=l-s+1)}else if(r.rendLineNumberStart0&&(this._removeLinesBefore(r,u),r.linesLength-=u)}if(r.rendLineNumberStart=t,r.rendLineNumberStart+r.linesLength-1=s&&(this._insertLinesAfter(r,s,l,i,t),r.linesLength+=l-s+1)}else if(r.rendLineNumberStart+r.linesLength-1>n){var s=Math.max(0,n-r.rendLineNumberStart+1),l=r.linesLength-1,u=l-s+1;u>0&&(this._removeLinesAfter(r,u),r.linesLength-=u)}return this._finishRendering(r,!1,i),r},e.prototype._renderUntouchedLines=function(e,t,n,i,r){for(var o=e.rendLineNumberStart,s=e.lines,l=t;n>=l;l++){var u=o+l;s[l].layoutLine(u,i[u-r])}},e.prototype._insertLinesBefore=function(e,t,n){for(var i=[],r=0,o=t;n>=o;o++)i[r++]=this.host.createVisibleLine();e.lines=i.concat(e.lines)},e.prototype._removeLinesBefore=function(e,t){for(var n=0;t>n;n++){var i=e.lines[n].getDomNode();i&&this.domNode.removeChild(i)}e.lines.splice(0,t)},e.prototype._insertLinesAfter=function(e,t,n){for(var i=[],r=0,o=t;n>=o;o++)i[r++]=this.host.createVisibleLine();e.lines=e.lines.concat(i)},e.prototype._removeLinesAfter=function(e,t){for(var n=e.linesLength-t,i=0;t>i;i++){var r=e.lines[n+i].getDomNode();r&&this.domNode.removeChild(r)}e.lines.splice(n,t)},e.prototype._finishRenderingNewLines=function(e,t,n,i){var r=this.domNode.lastChild;t||!r?this.domNode.innerHTML=n:r.insertAdjacentHTML("afterend",n);for(var o=this.domNode.lastChild,s=e.linesLength-1;s>=0;s--){var l=e.lines[s];i[s]&&(l.setDomNode(o),o=o.previousSibling)}},e.prototype._finishRenderingInvalidLines=function(e,t,n){var i=document.createElement("div");i.innerHTML=t;for(var r=0;rh;h++){var d=s[h];u[h]=!1;var m=d.getDomNode();if(!m){var L=d.renderLine(h+l,i[h],this.viewportData,r);L&&(u[h]=!0,a=!0)}}a&&this._finishRenderingNewLines(t,n,r.build(),u),r.reset();for(var f=!1,c=[],h=0;o>h;h++){var d=s[h];if(c[h]=!1,!u[h]){var L=d.renderLine(h+l,i[h],this.viewportData,r);L&&(c[h]=!0,f=!0)}}f&&this._finishRenderingInvalidLines(t,r.build(),c)},e._sb=i.createStringBuilder(1e5),e}()}); ;/*!node_modules/monaco-editor/esm/vs/editor/browser/view/viewOverlays.js*/ define("node_modules/monaco-editor/esm/vs/editor/browser/view/viewOverlays",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),o=e("node_modules/monaco-editor/esm/vs/base/browser/fastDomNode"),i=e("node_modules/monaco-editor/esm/vs/editor/browser/config/configuration"),r=e("node_modules/monaco-editor/esm/vs/editor/browser/view/viewLayer"),s=e("node_modules/monaco-editor/esm/vs/editor/browser/view/viewPart"),d=function(e){function t(t){var n=e.call(this,t)||this;return n._visibleLines=new r.VisibleLinesCollection(n),n.domNode=n._visibleLines.domNode,n._dynamicOverlays=[],n._isFocused=!1,n.domNode.setClassName("view-overlays"),n}return n(t,e),t.prototype.shouldRender=function(){if(e.prototype.shouldRender.call(this))return!0;for(var t=0,n=this._dynamicOverlays.length;n>t;t++){var o=this._dynamicOverlays[t];if(o.shouldRender())return!0}return!1},t.prototype.dispose=function(){e.prototype.dispose.call(this);for(var t=0,n=this._dynamicOverlays.length;n>t;t++){var o=this._dynamicOverlays[t];o.dispose()}this._dynamicOverlays=[]},t.prototype.getDomNode=function(){return this.domNode},t.prototype.createVisibleLine=function(){return new a(this._context.configuration,this._dynamicOverlays)},t.prototype.addDynamicOverlay=function(e){this._dynamicOverlays.push(e)},t.prototype.onConfigurationChanged=function(e){this._visibleLines.onConfigurationChanged(e);for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),o=t;n>=o;o++){var i=this._visibleLines.getVisibleLine(o);i.onConfigurationChanged(e)}return!0},t.prototype.onFlushed=function(e){return this._visibleLines.onFlushed(e)},t.prototype.onFocusChanged=function(e){return this._isFocused=e.isFocused,!0},t.prototype.onLinesChanged=function(e){return this._visibleLines.onLinesChanged(e)},t.prototype.onLinesDeleted=function(e){return this._visibleLines.onLinesDeleted(e)},t.prototype.onLinesInserted=function(e){return this._visibleLines.onLinesInserted(e)},t.prototype.onScrollChanged=function(e){return this._visibleLines.onScrollChanged(e)||!0},t.prototype.onTokensChanged=function(e){return this._visibleLines.onTokensChanged(e)},t.prototype.onZonesChanged=function(e){return this._visibleLines.onZonesChanged(e)},t.prototype.prepareRender=function(e){for(var t=this._dynamicOverlays.filter(function(e){return e.shouldRender()}),n=0,o=t.length;o>n;n++){var i=t[n];i.prepareRender(e),i.onDidRender()}},t.prototype.render=function(e){this._viewOverlaysRender(e),this.domNode.toggleClassName("focused",this._isFocused)},t.prototype._viewOverlaysRender=function(e){this._visibleLines.renderLines(e.viewportData)},t}(s.ViewPart);t.ViewOverlays=d;var a=function(){function e(e,t){this._configuration=e,this._lineHeight=this._configuration.editor.lineHeight,this._dynamicOverlays=t,this._domNode=null,this._renderedContent=null}return e.prototype.getDomNode=function(){return this._domNode?this._domNode.domNode:null},e.prototype.setDomNode=function(e){this._domNode=o.createFastDomNode(e)},e.prototype.onContentChanged=function(){},e.prototype.onTokensChanged=function(){},e.prototype.onConfigurationChanged=function(e){e.lineHeight&&(this._lineHeight=this._configuration.editor.lineHeight)},e.prototype.renderLine=function(e,t,n,o){for(var i="",r=0,s=this._dynamicOverlays.length;s>r;r++){var d=this._dynamicOverlays[r];i+=d.render(n.startLineNumber,e)}return this._renderedContent===i?!1:(this._renderedContent=i,o.appendASCIIString('
'),o.appendASCIIString(i),o.appendASCIIString("
"),!0)},e.prototype.layoutLine=function(e,t){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(this._lineHeight))},e}();t.ViewOverlayLine=a;var h=function(e){function t(t){var n=e.call(this,t)||this;return n._contentWidth=n._context.configuration.editor.layoutInfo.contentWidth,n.domNode.setHeight(0),n}return n(t,e),t.prototype.onConfigurationChanged=function(t){return t.layoutInfo&&(this._contentWidth=this._context.configuration.editor.layoutInfo.contentWidth),e.prototype.onConfigurationChanged.call(this,t)},t.prototype.onScrollChanged=function(t){return e.prototype.onScrollChanged.call(this,t)||t.scrollWidthChanged},t.prototype._viewOverlaysRender=function(t){e.prototype._viewOverlaysRender.call(this,t),this.domNode.setWidth(Math.max(t.scrollWidth,this._contentWidth))},t}(d);t.ContentViewOverlays=h;var l=function(e){function t(t){var n=e.call(this,t)||this;return n._contentLeft=n._context.configuration.editor.layoutInfo.contentLeft,n.domNode.setClassName("margin-view-overlays"),n.domNode.setWidth(1),i.Configuration.applyFontInfo(n.domNode,n._context.configuration.editor.fontInfo),n}return n(t,e),t.prototype.onConfigurationChanged=function(t){var n=!1;return t.fontInfo&&(i.Configuration.applyFontInfo(this.domNode,this._context.configuration.editor.fontInfo),n=!0),t.layoutInfo&&(this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft,n=!0),e.prototype.onConfigurationChanged.call(this,t)||n},t.prototype.onScrollChanged=function(t){return e.prototype.onScrollChanged.call(this,t)||t.scrollHeightChanged},t.prototype._viewOverlaysRender=function(t){e.prototype._viewOverlaysRender.call(this,t);var n=Math.min(t.scrollHeight,1e6);this.domNode.setHeight(n),this.domNode.setWidth(this._contentLeft)},t}(d);t.MarginViewOverlays=l}); ;/*!node_modules/monaco-editor/esm/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js*/ define("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/contentWidgets/contentWidgets",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=t("node_modules/tslib/tslib"),i=this&&this.__extends||function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=o.__importStar(t("node_modules/monaco-editor/esm/vs/base/browser/dom")),r=t("node_modules/monaco-editor/esm/vs/base/browser/fastDomNode"),s=t("node_modules/monaco-editor/esm/vs/editor/browser/view/viewPart"),d=t("node_modules/monaco-editor/esm/vs/base/common/types"),h=function(){function t(t,e){this.top=t,this.left=e}return t}(),l=function(t){function e(e,o){var i=t.call(this,e)||this;return i._viewDomNode=o,i._widgets={},i.domNode=r.createFastDomNode(document.createElement("div")),s.PartFingerprints.write(i.domNode,1),i.domNode.setClassName("contentWidgets"),i.domNode.setPosition("absolute"),i.domNode.setTop(0),i.overflowingContentWidgetsDomNode=r.createFastDomNode(document.createElement("div")),s.PartFingerprints.write(i.overflowingContentWidgetsDomNode,2),i.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets"),i}return i(e,t),e.prototype.dispose=function(){t.prototype.dispose.call(this),this._widgets={}},e.prototype.onConfigurationChanged=function(t){for(var e=Object.keys(this._widgets),o=0,i=e;o=i,c=d,f=h>=i,u=t.left,p=e.left;return u+o>n.scrollLeft+n.viewportWidth&&(u=n.scrollLeft+n.viewportWidth-o),p+o>n.scrollLeft+n.viewportWidth&&(p=n.scrollLeft+n.viewportWidth-o),us||s>this._contentWidth)return null;var h=t.top-i,l=e.top+this._lineHeight,a=s+this._contentLeft,c=d+this._contentLeft,f=n.getDomNodePagePosition(this._viewDomNode.domNode),u=f.top+h-n.StandardWindow.scrollY,p=f.top+l-n.StandardWindow.scrollY,_=f.left+a-n.StandardWindow.scrollX,g=f.left+c-n.StandardWindow.scrollX,w=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,m=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,v=22,N=22,b=u>=v,y=m-N>=p+i;if(_+o+20>w){var W=_-(w-o-20);_-=W,a-=W}if(g+o+20>w){var W=g-(w-o-20);g-=W,c-=W}if(0>_){var W=_;_-=W,a-=W}if(0>g){var W=g;g-=W,c-=W}return this._fixedOverflowWidgets&&(h=u,l=p,a=_,c=g),{fitsAbove:b,aboveTop:h,aboveLeft:a,fitsBelow:y,belowTop:l,belowLeft:c}},t.prototype._prepareRenderWidgetAtExactPositionOverflowing=function(t){return new h(t.top,t.left+this._contentLeft)},t.prototype._getTopAndBottomLeft=function(t){if(!this._viewPosition)return[null,null];var e=t.visibleRangeForPosition(this._viewPosition);if(!e)return[null,null];var o=t.getVerticalOffsetForLineNumber(this._viewPosition.lineNumber)-t.scrollTop,i=new h(o,e.left),n=this._viewPosition.lineNumber,r=e.left;if(this._viewRange){var s=t.linesVisibleRangesForRange(this._viewRange,!1);if(s&&s.length>0)for(var d=s.length-1;d>=0;d--){var l=s[d];if(l.lineNumber>=n){l.lineNumber>n&&(n=l.lineNumber,r=1073741824);for(var a=0,c=l.ranges.length;c>a;a++){var f=l.ranges[a];f.left=s;s++)for(var d=0,l=this._preference;dt.endLineNumber||this.domNode.setMaxWidth(this._maxWidth))},t.prototype.prepareRender=function(t){this._renderData=this._prepareRenderWidget(t)},t.prototype.render=function(t){return this._renderData?(this.allowEditorOverflow?(this.domNode.setTop(this._renderData.top),this.domNode.setLeft(this._renderData.left)):(this.domNode.setTop(this._renderData.top+t.scrollTop-t.bigNumbersDelta),this.domNode.setLeft(this._renderData.left)),void(this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0))):void(this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden")))},t}()}); ;/*!node_modules/monaco-editor/esm/vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight.js*/ define("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=this&&this.__extends||function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),n=e("node_modules/monaco-editor/esm/vs/editor/browser/view/dynamicViewOverlay"),r=e("node_modules/monaco-editor/esm/vs/editor/common/view/editorColorRegistry"),o=e("node_modules/monaco-editor/esm/vs/platform/theme/common/themeService"),s=function(e){function t(t){var i=e.call(this)||this;return i._context=t,i._lineHeight=i._context.configuration.editor.lineHeight,i._renderLineHighlight=i._context.configuration.editor.viewInfo.renderLineHighlight,i._selectionIsEmpty=!0,i._primaryCursorLineNumber=1,i._scrollWidth=0,i._contentWidth=i._context.configuration.editor.layoutInfo.contentWidth,i._context.addEventHandler(i),i}return i(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.viewInfo&&(this._renderLineHighlight=this._context.configuration.editor.viewInfo.renderLineHighlight),e.layoutInfo&&(this._contentWidth=this._context.configuration.editor.layoutInfo.contentWidth),!0},t.prototype.onCursorStateChanged=function(e){var t=!1,i=e.selections[0].positionLineNumber;this._primaryCursorLineNumber!==i&&(this._primaryCursorLineNumber=i,t=!0);var n=e.selections[0].isEmpty();return this._selectionIsEmpty!==n?(this._selectionIsEmpty=n,!0):t},t.prototype.onFlushed=function(){return!0},t.prototype.onLinesDeleted=function(){return!0},t.prototype.onLinesInserted=function(){return!0},t.prototype.onScrollChanged=function(e){return e.scrollWidthChanged},t.prototype.onZonesChanged=function(){return!0},t.prototype.prepareRender=function(e){this._scrollWidth=e.scrollWidth},t.prototype.render=function(e,t){if(t===this._primaryCursorLineNumber){if(this._shouldShowCurrentLine()){var i=this._willRenderMarginCurrentLine(),n="current-line"+(i?" current-line-both":"");return'
'}return""}return""},t.prototype._shouldShowCurrentLine=function(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty},t.prototype._willRenderMarginCurrentLine=function(){return"gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight},t}(n.DynamicViewOverlay);t.CurrentLineHighlightOverlay=s,o.registerThemingParticipant(function(e,t){var i=e.getColor(r.editorLineHighlight);if(i&&t.addRule(".monaco-editor .view-overlays .current-line { background-color: "+i+"; }"),!i||i.isTransparent()||e.defines(r.editorLineHighlightBorder)){var n=e.getColor(r.editorLineHighlightBorder);n&&(t.addRule(".monaco-editor .view-overlays .current-line { border: 2px solid "+n+"; }"),"hc"===e.type&&t.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"))}})}); ;/*!node_modules/monaco-editor/esm/vs/editor/browser/viewParts/currentLineMarginHighlight/currentLineMarginHighlight.js*/ define("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/currentLineMarginHighlight/currentLineMarginHighlight",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),i=e("node_modules/monaco-editor/esm/vs/editor/browser/view/dynamicViewOverlay"),r=e("node_modules/monaco-editor/esm/vs/editor/common/view/editorColorRegistry"),o=e("node_modules/monaco-editor/esm/vs/platform/theme/common/themeService"),s=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._lineHeight=n._context.configuration.editor.lineHeight,n._renderLineHighlight=n._context.configuration.editor.viewInfo.renderLineHighlight,n._selectionIsEmpty=!0,n._primaryCursorLineNumber=1,n._contentLeft=n._context.configuration.editor.layoutInfo.contentLeft,n._context.addEventHandler(n),n}return n(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.viewInfo&&(this._renderLineHighlight=this._context.configuration.editor.viewInfo.renderLineHighlight),e.layoutInfo&&(this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft),!0},t.prototype.onCursorStateChanged=function(e){var t=!1,n=e.selections[0].positionLineNumber;this._primaryCursorLineNumber!==n&&(this._primaryCursorLineNumber=n,t=!0);var i=e.selections[0].isEmpty();return this._selectionIsEmpty!==i?(this._selectionIsEmpty=i,!0):t},t.prototype.onFlushed=function(){return!0},t.prototype.onLinesDeleted=function(){return!0},t.prototype.onLinesInserted=function(){return!0},t.prototype.onZonesChanged=function(){return!0},t.prototype.prepareRender=function(){},t.prototype.render=function(e,t){if(t===this._primaryCursorLineNumber){var n="current-line";if(this._shouldShowCurrentLine()){var i=this._willRenderContentCurrentLine();n="current-line current-line-margin"+(i?" current-line-margin-both":"")}return'
'}return""},t.prototype._shouldShowCurrentLine=function(){return"gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight},t.prototype._willRenderContentCurrentLine=function(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty},t}(i.DynamicViewOverlay);t.CurrentLineMarginHighlightOverlay=s,o.registerThemingParticipant(function(e,t){var n=e.getColor(r.editorLineHighlight);if(n)t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { background-color: "+n+"; border: none; }");else{var i=e.getColor(r.editorLineHighlightBorder);i&&t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid "+i+"; }"),"hc"===e.type&&t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")}})}); ;/*!node_modules/monaco-editor/esm/vs/editor/browser/viewParts/decorations/decorations.js*/ define("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/decorations/decorations",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=this&&this.__extends||function(){var e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])})(n,t)};return function(n,t){function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}}(),r=e("node_modules/monaco-editor/esm/vs/editor/browser/view/dynamicViewOverlay"),o=e("node_modules/monaco-editor/esm/vs/editor/common/core/range"),i=e("node_modules/monaco-editor/esm/vs/editor/common/view/renderingContext"),a=function(e){function n(n){var t=e.call(this)||this;return t._context=n,t._lineHeight=t._context.configuration.editor.lineHeight,t._typicalHalfwidthCharacterWidth=t._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,t._renderResult=null,t._context.addEventHandler(t),t}return t(n,e),n.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},n.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.fontInfo&&(this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth),!0},n.prototype.onDecorationsChanged=function(){return!0},n.prototype.onFlushed=function(){return!0},n.prototype.onLinesChanged=function(){return!0},n.prototype.onLinesDeleted=function(){return!0},n.prototype.onLinesInserted=function(){return!0},n.prototype.onScrollChanged=function(e){return e.scrollTopChanged||e.scrollWidthChanged},n.prototype.onZonesChanged=function(){return!0},n.prototype.prepareRender=function(e){for(var n=e.getDecorationsInViewport(),t=[],r=0,i=0,a=n.length;a>i;i++){var s=n[i];s.options.className&&(t[r++]=s)}t=t.sort(function(e,n){if(e.options.zIndexn.options.zIndex)return 1;var t=e.options.className,r=n.options.className;return r>t?-1:t>r?1:o.Range.compareRangesUsingStarts(e.range,n.range)});for(var l=e.visibleRange.startLineNumber,d=e.visibleRange.endLineNumber,c=[],u=l;d>=u;u++){var h=u-l;c[h]=""}this._renderWholeLineDecorations(e,t,c),this._renderNormalDecorations(e,t,c),this._renderResult=c},n.prototype._renderWholeLineDecorations=function(e,n,t){for(var r=String(this._lineHeight),o=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,a=0,s=n.length;s>a;a++){var l=n[a];if(l.options.isWholeLine)for(var d='
',c=Math.max(l.range.startLineNumber,o),u=Math.min(l.range.endLineNumber,i),h=c;u>=h;h++){var p=h-o;t[p]+=d}}},n.prototype._renderNormalDecorations=function(e,n,t){for(var r=String(this._lineHeight),i=e.visibleRange.startLineNumber,a=null,s=!1,l=null,d=0,c=n.length;c>d;d++){var u=n[d];if(!u.options.isWholeLine){var h=u.options.className,p=Boolean(u.options.showIfCollapsed),f=u.range;p&&1===f.endColumn&&f.endLineNumber!==f.startLineNumber&&(f=new o.Range(f.startLineNumber,f.startColumn,f.endLineNumber-1,this._context.model.getLineMaxColumn(f.endLineNumber-1))),a===h&&s===p&&o.Range.areIntersectingOrTouching(l,f)?l=o.Range.plusRange(l,f):(null!==a&&this._renderNormalDecoration(e,l,a,s,r,i,t),a=h,s=p,l=f)}}null!==a&&this._renderNormalDecoration(e,l,a,s,r,i,t)},n.prototype._renderNormalDecoration=function(e,n,t,r,o,a,s){var l=e.linesVisibleRangesForRange(n,"findMatch"===t);if(l)for(var d=0,c=l.length;c>d;d++){var u=l[d],h=u.lineNumber-a;if(r&&1===u.ranges.length){var p=u.ranges[0];0===p.width&&(u.ranges[0]=new i.HorizontalRange(p.left,this._typicalHalfwidthCharacterWidth))}for(var f=0,g=u.ranges.length;g>f;f++){var m=u.ranges[f],v='
';s[h]+=v}}},n.prototype.render=function(e,n){if(!this._renderResult)return"";var t=n-e;return 0>t||t>=this._renderResult.length?"":this._renderResult[t]},n}(r.DynamicViewOverlay);n.DecorationsOverlay=a}); ;/*!node_modules/monaco-editor/esm/vs/base/browser/ui/widget.js*/ define("node_modules/monaco-editor/esm/vs/base/browser/ui/widget",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),o=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),r=n.__importStar(e("node_modules/monaco-editor/esm/vs/base/browser/dom")),s=e("node_modules/monaco-editor/esm/vs/base/browser/keyboardEvent"),i=e("node_modules/monaco-editor/esm/vs/base/browser/mouseEvent"),u=e("node_modules/monaco-editor/esm/vs/base/common/lifecycle"),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.onclick=function(e,t){this._register(r.addDisposableListener(e,r.EventType.CLICK,function(e){return t(new i.StandardMouseEvent(e))}))},t.prototype.onmousedown=function(e,t){this._register(r.addDisposableListener(e,r.EventType.MOUSE_DOWN,function(e){return t(new i.StandardMouseEvent(e))}))},t.prototype.onmouseover=function(e,t){this._register(r.addDisposableListener(e,r.EventType.MOUSE_OVER,function(e){return t(new i.StandardMouseEvent(e))}))},t.prototype.onnonbubblingmouseout=function(e,t){this._register(r.addDisposableNonBubblingMouseOutListener(e,function(e){return t(new i.StandardMouseEvent(e))}))},t.prototype.onkeydown=function(e,t){this._register(r.addDisposableListener(e,r.EventType.KEY_DOWN,function(e){return t(new s.StandardKeyboardEvent(e))}))},t.prototype.onkeyup=function(e,t){this._register(r.addDisposableListener(e,r.EventType.KEY_UP,function(e){return t(new s.StandardKeyboardEvent(e))}))},t.prototype.oninput=function(e,t){this._register(r.addDisposableListener(e,r.EventType.INPUT,t))},t.prototype.onblur=function(e,t){this._register(r.addDisposableListener(e,r.EventType.BLUR,t))},t.prototype.onfocus=function(e,t){this._register(r.addDisposableListener(e,r.EventType.FOCUS,t))},t.prototype.onchange=function(e,t){this._register(r.addDisposableListener(e,r.EventType.CHANGE,t))},t}(u.Disposable);t.Widget=d}); ;/*!node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/scrollbarArrow.js*/ define("node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/scrollbarArrow",function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var t=this&&this.__extends||function(){var e=function(o,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var t in o)o.hasOwnProperty(t)&&(e[t]=o[t])})(o,t)};return function(o,t){function n(){this.constructor=o}e(o,t),o.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}(),n=e("node_modules/monaco-editor/esm/vs/base/browser/globalMouseMoveMonitor"),r=e("node_modules/monaco-editor/esm/vs/base/browser/ui/widget"),d=e("node_modules/monaco-editor/esm/vs/base/common/async");o.ARROW_IMG_SIZE=11;var i=function(e){function r(t){var r=e.call(this)||this;return r._onActivate=t.onActivate,r.bgDomNode=document.createElement("div"),r.bgDomNode.className="arrow-background",r.bgDomNode.style.position="absolute",r.bgDomNode.style.width=t.bgWidth+"px",r.bgDomNode.style.height=t.bgHeight+"px","undefined"!=typeof t.top&&(r.bgDomNode.style.top="0px"),"undefined"!=typeof t.left&&(r.bgDomNode.style.left="0px"),"undefined"!=typeof t.bottom&&(r.bgDomNode.style.bottom="0px"),"undefined"!=typeof t.right&&(r.bgDomNode.style.right="0px"),r.domNode=document.createElement("div"),r.domNode.className=t.className,r.domNode.style.position="absolute",r.domNode.style.width=o.ARROW_IMG_SIZE+"px",r.domNode.style.height=o.ARROW_IMG_SIZE+"px","undefined"!=typeof t.top&&(r.domNode.style.top=t.top+"px"),"undefined"!=typeof t.left&&(r.domNode.style.left=t.left+"px"),"undefined"!=typeof t.bottom&&(r.domNode.style.bottom=t.bottom+"px"),"undefined"!=typeof t.right&&(r.domNode.style.right=t.right+"px"),r._mouseMoveMonitor=r._register(new n.GlobalMouseMoveMonitor),r.onmousedown(r.bgDomNode,function(e){return r._arrowMouseDown(e)}),r.onmousedown(r.domNode,function(e){return r._arrowMouseDown(e)}),r._mousedownRepeatTimer=r._register(new d.IntervalTimer),r._mousedownScheduleRepeatTimer=r._register(new d.TimeoutTimer),r}return t(r,e),r.prototype._arrowMouseDown=function(e){var o=this,t=function(){o._mousedownRepeatTimer.cancelAndSet(function(){return o._onActivate()},1e3/24)};this._onActivate(),this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancelAndSet(t,200),this._mouseMoveMonitor.startMonitoring(n.standardMouseMoveMerger,function(){},function(){o._mousedownRepeatTimer.cancel(),o._mousedownScheduleRepeatTimer.cancel()}),e.preventDefault()},r}(r.Widget);o.ScrollbarArrow=i}); ;/*!node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/scrollbarVisibilityController.js*/ define("node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/scrollbarVisibilityController",function(i,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=this&&this.__extends||function(){var i=function(e,s){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,e){i.__proto__=e}||function(i,e){for(var s in e)e.hasOwnProperty(s)&&(i[s]=e[s])})(e,s)};return function(e,s){function t(){this.constructor=e}i(e,s),e.prototype=null===s?Object.create(s):(t.prototype=s.prototype,new t)}}(),t=i("node_modules/monaco-editor/esm/vs/base/common/async"),o=i("node_modules/monaco-editor/esm/vs/base/common/lifecycle"),l=function(i){function e(e,s,o){var l=i.call(this)||this;return l._visibility=e,l._visibleClassName=s,l._invisibleClassName=o,l._domNode=null,l._isVisible=!1,l._isNeeded=!1,l._shouldBeVisible=!1,l._revealTimer=l._register(new t.TimeoutTimer),l}return s(e,i),e.prototype.applyVisibilitySetting=function(i){return 2===this._visibility?!1:3===this._visibility?!0:i},e.prototype.setShouldBeVisible=function(i){var e=this.applyVisibilitySetting(i);this._shouldBeVisible!==e&&(this._shouldBeVisible=e,this.ensureVisibility())},e.prototype.setIsNeeded=function(i){this._isNeeded!==i&&(this._isNeeded=i,this.ensureVisibility())},e.prototype.setDomNode=function(i){this._domNode=i,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)},e.prototype.ensureVisibility=function(){return this._isNeeded?void(this._shouldBeVisible?this._reveal():this._hide(!0)):void this._hide(!1)},e.prototype._reveal=function(){var i=this;this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet(function(){i._domNode&&i._domNode.setClassName(i._visibleClassName)},0))},e.prototype._hide=function(i){this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,this._domNode&&this._domNode.setClassName(this._invisibleClassName+(i?" fade":"")))},e}(o.Disposable);e.ScrollbarVisibilityController=l}); ;/*!node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/abstractScrollbar.js*/ define("node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/abstractScrollbar",function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var t=e("node_modules/tslib/tslib"),s=this&&this.__extends||function(){var e=function(o,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var t in o)o.hasOwnProperty(t)&&(e[t]=o[t])})(o,t)};return function(o,t){function s(){this.constructor=o}e(o,t),o.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)}}(),i=t.__importStar(e("node_modules/monaco-editor/esm/vs/base/browser/dom")),r=e("node_modules/monaco-editor/esm/vs/base/browser/fastDomNode"),l=e("node_modules/monaco-editor/esm/vs/base/browser/globalMouseMoveMonitor"),n=e("node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/scrollbarArrow"),d=e("node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/scrollbarVisibilityController"),a=e("node_modules/monaco-editor/esm/vs/base/browser/ui/widget"),c=t.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/platform")),u=140,h=function(e){function o(o){var t=e.call(this)||this;return t._lazyRender=o.lazyRender,t._host=o.host,t._scrollable=o.scrollable,t._scrollbarState=o.scrollbarState,t._visibilityController=t._register(new d.ScrollbarVisibilityController(o.visibility,"visible scrollbar "+o.extraScrollbarClassName,"invisible scrollbar "+o.extraScrollbarClassName)),t._mouseMoveMonitor=t._register(new l.GlobalMouseMoveMonitor),t._shouldRender=!0,t.domNode=r.createFastDomNode(document.createElement("div")),t.domNode.setAttribute("role","presentation"),t.domNode.setAttribute("aria-hidden","true"),t._visibilityController.setDomNode(t.domNode),t.domNode.setPosition("absolute"),t.onmousedown(t.domNode.domNode,function(e){return t._domNodeMouseDown(e)}),t}return s(o,e),o.prototype._createArrow=function(e){var o=this._register(new n.ScrollbarArrow(e));this.domNode.domNode.appendChild(o.bgDomNode),this.domNode.domNode.appendChild(o.domNode)},o.prototype._createSlider=function(e,o,t,s){var i=this;this.slider=r.createFastDomNode(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(o),"number"==typeof t&&this.slider.setWidth(t),"number"==typeof s&&this.slider.setHeight(s),this.slider.setLayerHinting(!0),this.domNode.domNode.appendChild(this.slider.domNode),this.onmousedown(this.slider.domNode,function(e){e.leftButton&&(e.preventDefault(),i._sliderMouseDown(e,function(){}))})},o.prototype._onElementSize=function(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},o.prototype._onElementScrollSize=function(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},o.prototype._onElementScrollPosition=function(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},o.prototype.beginReveal=function(){this._visibilityController.setShouldBeVisible(!0)},o.prototype.beginHide=function(){this._visibilityController.setShouldBeVisible(!1)},o.prototype.render=function(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))},o.prototype._domNodeMouseDown=function(e){e.target===this.domNode.domNode&&this._onMouseDown(e)},o.prototype.delegateMouseDown=function(e){var o=this.domNode.domNode.getClientRects()[0].top,t=o+this._scrollbarState.getSliderPosition(),s=o+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),i=this._sliderMousePosition(e);i>=t&&s>=i?e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,function(){})):this._onMouseDown(e)},o.prototype._onMouseDown=function(e){var o,t;if(e.target===this.domNode.domNode&&"number"==typeof e.browserEvent.offsetX&&"number"==typeof e.browserEvent.offsetY)o=e.browserEvent.offsetX,t=e.browserEvent.offsetY;else{var s=i.getDomNodePagePosition(this.domNode.domNode);o=e.posx-s.left,t=e.posy-s.top}this._setDesiredScrollPositionNow(this._scrollbarState.getDesiredScrollPositionFromOffset(this._mouseDownRelativePosition(o,t))),e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,function(){}))},o.prototype._sliderMouseDown=function(e,o){var t=this,s=this._sliderMousePosition(e),i=this._sliderOrthogonalMousePosition(e),r=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._mouseMoveMonitor.startMonitoring(l.standardMouseMoveMerger,function(e){var o=t._sliderOrthogonalMousePosition(e),l=Math.abs(o-i);if(c.isWindows&&l>u)return void t._setDesiredScrollPositionNow(r.getScrollPosition());var n=t._sliderMousePosition(e),d=n-s;t._setDesiredScrollPositionNow(r.getDesiredScrollPositionFromDelta(d))},function(){t.slider.toggleClassName("active",!1),t._host.onDragEnd(),o()}),this._host.onDragStart()},o.prototype._setDesiredScrollPositionNow=function(e){var o={};this.writeScrollPosition(o,e),this._scrollable.setScrollPositionNow(o)},o}(a.Widget);o.AbstractScrollbar=h}); ;/*!node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/scrollbarState.js*/ define("node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/scrollbarState",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=20,o=function(){function e(e,t,i){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(i),this._arrowSize=Math.round(e),this._visibleSize=0,this._scrollSize=0,this._scrollPosition=0,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}return e.prototype.clone=function(){var t=new e(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize);return t.setVisibleSize(this._visibleSize),t.setScrollSize(this._scrollSize),t.setScrollPosition(this._scrollPosition),t},e.prototype.setVisibleSize=function(e){var t=Math.round(e);return this._visibleSize!==t?(this._visibleSize=t,this._refreshComputedValues(),!0):!1},e.prototype.setScrollSize=function(e){var t=Math.round(e);return this._scrollSize!==t?(this._scrollSize=t,this._refreshComputedValues(),!0):!1},e.prototype.setScrollPosition=function(e){var t=Math.round(e);return this._scrollPosition!==t?(this._scrollPosition=t,this._refreshComputedValues(),!0):!1},e._computeValues=function(e,t,o,r,s){var l=Math.max(0,o-e),u=Math.max(0,l-2*t),d=r>0&&r>o;if(!d)return{computedAvailableSize:Math.round(l),computedIsNeeded:d,computedSliderSize:Math.round(u),computedSliderRatio:0,computedSliderPosition:0};var n=Math.round(Math.max(i,Math.floor(o*u/r))),c=(u-n)/(r-o),a=s*c;return{computedAvailableSize:Math.round(l),computedIsNeeded:d,computedSliderSize:Math.round(n),computedSliderRatio:c,computedSliderPosition:Math.round(a)}},e.prototype._refreshComputedValues=function(){var t=e._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=t.computedAvailableSize,this._computedIsNeeded=t.computedIsNeeded,this._computedSliderSize=t.computedSliderSize,this._computedSliderRatio=t.computedSliderRatio,this._computedSliderPosition=t.computedSliderPosition},e.prototype.getArrowSize=function(){return this._arrowSize},e.prototype.getScrollPosition=function(){return this._scrollPosition},e.prototype.getRectangleLargeSize=function(){return this._computedAvailableSize},e.prototype.getRectangleSmallSize=function(){return this._scrollbarSize},e.prototype.isNeeded=function(){return this._computedIsNeeded},e.prototype.getSliderSize=function(){return this._computedSliderSize},e.prototype.getSliderPosition=function(){return this._computedSliderPosition},e.prototype.getDesiredScrollPositionFromOffset=function(e){if(!this._computedIsNeeded)return 0;var t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)},e.prototype.getDesiredScrollPositionFromDelta=function(e){if(!this._computedIsNeeded)return 0;var t=this._computedSliderPosition+e;return Math.round(t/this._computedSliderRatio)},e}();t.ScrollbarState=o}); ;/*!node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/horizontalScrollbar.js*/ define("node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/horizontalScrollbar",function(o,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=this&&this.__extends||function(){var o=function(e,r){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var r in e)e.hasOwnProperty(r)&&(o[r]=e[r])})(e,r)};return function(e,r){function t(){this.constructor=e}o(e,r),e.prototype=null===r?Object.create(r):(t.prototype=r.prototype,new t)}}(),t=o("node_modules/monaco-editor/esm/vs/base/browser/mouseEvent"),i=o("node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/abstractScrollbar"),l=o("node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/scrollbarArrow"),n=o("node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/scrollbarState"),s=function(o){function e(e,r,i){var s=o.call(this,{lazyRender:r.lazyRender,host:i,scrollbarState:new n.ScrollbarState(r.horizontalHasArrows?r.arrowSize:0,2===r.horizontal?0:r.horizontalScrollbarSize,2===r.vertical?0:r.verticalScrollbarSize),visibility:r.horizontal,extraScrollbarClassName:"horizontal",scrollable:e})||this;if(r.horizontalHasArrows){var a=(r.arrowSize-l.ARROW_IMG_SIZE)/2,c=(r.horizontalScrollbarSize-l.ARROW_IMG_SIZE)/2;s._createArrow({className:"left-arrow",top:c,left:a,bottom:void 0,right:void 0,bgWidth:r.arrowSize,bgHeight:r.horizontalScrollbarSize,onActivate:function(){return s._host.onMouseWheel(new t.StandardWheelEvent(null,1,0))}}),s._createArrow({className:"right-arrow",top:c,left:void 0,bottom:void 0,right:a,bgWidth:r.arrowSize,bgHeight:r.horizontalScrollbarSize,onActivate:function(){return s._host.onMouseWheel(new t.StandardWheelEvent(null,-1,0))}})}return s._createSlider(Math.floor((r.horizontalScrollbarSize-r.horizontalSliderSize)/2),0,void 0,r.horizontalSliderSize),s}return r(e,o),e.prototype._updateSlider=function(o,e){this.slider.setWidth(o),this.slider.setLeft(e)},e.prototype._renderDomNode=function(o,e){this.domNode.setWidth(o),this.domNode.setHeight(e),this.domNode.setLeft(0),this.domNode.setBottom(0)},e.prototype.onDidScroll=function(o){return this._shouldRender=this._onElementScrollSize(o.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(o.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(o.width)||this._shouldRender,this._shouldRender},e.prototype._mouseDownRelativePosition=function(o){return o},e.prototype._sliderMousePosition=function(o){return o.posx},e.prototype._sliderOrthogonalMousePosition=function(o){return o.posy},e.prototype.writeScrollPosition=function(o,e){o.scrollLeft=e},e}(i.AbstractScrollbar);e.HorizontalScrollbar=s}); ;/*!node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/verticalScrollbar.js*/ define("node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/verticalScrollbar",function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var r=this&&this.__extends||function(){var e=function(o,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var r in o)o.hasOwnProperty(r)&&(e[r]=o[r])})(o,r)};return function(o,r){function t(){this.constructor=o}e(o,r),o.prototype=null===r?Object.create(r):(t.prototype=r.prototype,new t)}}(),t=e("node_modules/monaco-editor/esm/vs/base/browser/mouseEvent"),i=e("node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/abstractScrollbar"),l=e("node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/scrollbarArrow"),s=e("node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/scrollbarState"),n=function(e){function o(o,r,i){var n=e.call(this,{lazyRender:r.lazyRender,host:i,scrollbarState:new s.ScrollbarState(r.verticalHasArrows?r.arrowSize:0,2===r.vertical?0:r.verticalScrollbarSize,0),visibility:r.vertical,extraScrollbarClassName:"vertical",scrollable:o})||this;if(r.verticalHasArrows){var a=(r.arrowSize-l.ARROW_IMG_SIZE)/2,c=(r.verticalScrollbarSize-l.ARROW_IMG_SIZE)/2;n._createArrow({className:"up-arrow",top:a,left:c,bottom:void 0,right:void 0,bgWidth:r.verticalScrollbarSize,bgHeight:r.arrowSize,onActivate:function(){return n._host.onMouseWheel(new t.StandardWheelEvent(null,0,1))}}),n._createArrow({className:"down-arrow",top:void 0,left:c,bottom:a,right:void 0,bgWidth:r.verticalScrollbarSize,bgHeight:r.arrowSize,onActivate:function(){return n._host.onMouseWheel(new t.StandardWheelEvent(null,0,-1))}})}return n._createSlider(0,Math.floor((r.verticalScrollbarSize-r.verticalSliderSize)/2),r.verticalSliderSize,void 0),n}return r(o,e),o.prototype._updateSlider=function(e,o){this.slider.setHeight(e),this.slider.setTop(o)},o.prototype._renderDomNode=function(e,o){this.domNode.setWidth(o),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)},o.prototype.onDidScroll=function(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender},o.prototype._mouseDownRelativePosition=function(e,o){return o},o.prototype._sliderMousePosition=function(e){return e.posy},o.prototype._sliderOrthogonalMousePosition=function(e){return e.posx},o.prototype.writeScrollPosition=function(e,o){e.scrollTop=o},o}(i.AbstractScrollbar);o.VerticalScrollbar=n}); ;/*!node_modules/monaco-editor/esm/vs/base/common/scrollable.js*/ define("node_modules/monaco-editor/esm/vs/base/common/scrollable",function(t,o){"use strict";function i(t,o){var i=o-t;return function(o){return t+i*r(o)}}function s(t,o,i){return function(s){return i>s?t(s/i):o((s-i)/(1-i))}}function l(t){return Math.pow(t,3)}function r(t){return 1-l(1-t)}Object.defineProperty(o,"__esModule",{value:!0});var n=this&&this.__extends||function(){var t=function(o,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var i in o)o.hasOwnProperty(i)&&(t[i]=o[i])})(o,i)};return function(o,i){function s(){this.constructor=o}t(o,i),o.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),e=t("node_modules/monaco-editor/esm/vs/base/common/event"),h=t("node_modules/monaco-editor/esm/vs/base/common/lifecycle"),c=function(){function t(t,o,i,s,l,r){t=0|t,o=0|o,i=0|i,s=0|s,l=0|l,r=0|r,0>t&&(t=0),i+t>o&&(i=o-t),0>i&&(i=0),0>s&&(s=0),r+s>l&&(r=l-s),0>r&&(r=0),this.width=t,this.scrollWidth=o,this.scrollLeft=i,this.height=s,this.scrollHeight=l,this.scrollTop=r}return t.prototype.equals=function(t){return this.width===t.width&&this.scrollWidth===t.scrollWidth&&this.scrollLeft===t.scrollLeft&&this.height===t.height&&this.scrollHeight===t.scrollHeight&&this.scrollTop===t.scrollTop},t.prototype.withScrollDimensions=function(o){return new t("undefined"!=typeof o.width?o.width:this.width,"undefined"!=typeof o.scrollWidth?o.scrollWidth:this.scrollWidth,this.scrollLeft,"undefined"!=typeof o.height?o.height:this.height,"undefined"!=typeof o.scrollHeight?o.scrollHeight:this.scrollHeight,this.scrollTop)},t.prototype.withScrollPosition=function(o){return new t(this.width,this.scrollWidth,"undefined"!=typeof o.scrollLeft?o.scrollLeft:this.scrollLeft,this.height,this.scrollHeight,"undefined"!=typeof o.scrollTop?o.scrollTop:this.scrollTop)},t.prototype.createScrollEvent=function(t){var o=this.width!==t.width,i=this.scrollWidth!==t.scrollWidth,s=this.scrollLeft!==t.scrollLeft,l=this.height!==t.height,r=this.scrollHeight!==t.scrollHeight,n=this.scrollTop!==t.scrollTop;return{width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:o,scrollWidthChanged:i,scrollLeftChanged:s,heightChanged:l,scrollHeightChanged:r,scrollTopChanged:n}},t}();o.ScrollState=c;var a=function(t){function o(o,i){var s=t.call(this)||this;return s._onScroll=s._register(new e.Emitter),s.onScroll=s._onScroll.event,s._smoothScrollDuration=o,s._scheduleAtNextAnimationFrame=i,s._state=new c(0,0,0,0,0,0),s._smoothScrolling=null,s}return n(o,t),o.prototype.dispose=function(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),t.prototype.dispose.call(this)},o.prototype.setSmoothScrollDuration=function(t){this._smoothScrollDuration=t},o.prototype.validateScrollPosition=function(t){return this._state.withScrollPosition(t)},o.prototype.getScrollDimensions=function(){return this._state},o.prototype.setScrollDimensions=function(t){var o=this._state.withScrollDimensions(t);this._setState(o),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)},o.prototype.getFutureScrollPosition=function(){return this._smoothScrolling?this._smoothScrolling.to:this._state},o.prototype.getCurrentScrollPosition=function(){return this._state},o.prototype.setScrollPositionNow=function(t){var o=this._state.withScrollPosition(t);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(o)},o.prototype.setScrollPositionSmooth=function(t){var o=this;if(0===this._smoothScrollDuration)return this.setScrollPositionNow(t);if(this._smoothScrolling){t={scrollLeft:"undefined"==typeof t.scrollLeft?this._smoothScrolling.to.scrollLeft:t.scrollLeft,scrollTop:"undefined"==typeof t.scrollTop?this._smoothScrolling.to.scrollTop:t.scrollTop};var i=this._state.withScrollPosition(t);if(this._smoothScrolling.to.scrollLeft===i.scrollLeft&&this._smoothScrolling.to.scrollTop===i.scrollTop)return;var s=this._smoothScrolling.combine(this._state,i,this._smoothScrollDuration);this._smoothScrolling.dispose(),this._smoothScrolling=s}else{var i=this._state.withScrollPosition(t);this._smoothScrolling=p.start(this._state,i,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){o._smoothScrolling&&(o._smoothScrolling.animationFrameDisposable=null,o._performSmoothScrolling())})},o.prototype._performSmoothScrolling=function(){var t=this;if(this._smoothScrolling){var o=this._smoothScrolling.tick(),i=this._state.withScrollPosition(o);return this._setState(i),o.isDone?(this._smoothScrolling.dispose(),void(this._smoothScrolling=null)):void(this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){t._smoothScrolling&&(t._smoothScrolling.animationFrameDisposable=null,t._performSmoothScrolling())}))}},o.prototype._setState=function(t){var o=this._state;o.equals(t)||(this._state=t,this._onScroll.fire(this._state.createScrollEvent(o)))},o}(h.Disposable);o.Scrollable=a;var u=function(){function t(t,o,i){this.scrollLeft=t,this.scrollTop=o,this.isDone=i}return t}();o.SmoothScrollingUpdate=u;var p=function(){function t(t,o,i,s){this.from=t,this.to=o,this.duration=s,this._startTime=i,this.animationFrameDisposable=null,this._initAnimations()}return t.prototype._initAnimations=function(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)},t.prototype._initAnimation=function(t,o,l){var r=Math.abs(t-o);if(r>2.5*l){var n=void 0,e=void 0;return o>t?(n=t+.75*l,e=o-.75*l):(n=t-.75*l,e=o+.75*l),s(i(t,n),i(e,o),.33)}return i(t,o)},t.prototype.dispose=function(){null!==this.animationFrameDisposable&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null)},t.prototype.acceptScrollDimensions=function(t){this.to=t.withScrollPosition(this.to),this._initAnimations()},t.prototype.tick=function(){return this._tick(Date.now())},t.prototype._tick=function(t){var o=(t-this._startTime)/this.duration;if(1>o){var i=this.scrollLeft(o),s=this.scrollTop(o);return new u(i,s,!1)}return new u(this.to.scrollLeft,this.to.scrollTop,!0)},t.prototype.combine=function(o,i,s){return t.start(o,i,s)},t.start=function(o,i,s){s+=10;var l=Date.now()-10;return new t(o,i,l,s)},t}();o.SmoothScrollingOperation=p}); ;/*!node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/scrollableElement.js*/ define("node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/scrollableElement",function(e,o){"use strict";function t(e){var o={lazyRender:"undefined"!=typeof e.lazyRender?e.lazyRender:!1,className:"undefined"!=typeof e.className?e.className:"",useShadows:"undefined"!=typeof e.useShadows?e.useShadows:!0,handleMouseWheel:"undefined"!=typeof e.handleMouseWheel?e.handleMouseWheel:!0,flipAxes:"undefined"!=typeof e.flipAxes?e.flipAxes:!1,alwaysConsumeMouseWheel:"undefined"!=typeof e.alwaysConsumeMouseWheel?e.alwaysConsumeMouseWheel:!1,scrollYToX:"undefined"!=typeof e.scrollYToX?e.scrollYToX:!1,mouseWheelScrollSensitivity:"undefined"!=typeof e.mouseWheelScrollSensitivity?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:"undefined"!=typeof e.fastScrollSensitivity?e.fastScrollSensitivity:5,mouseWheelSmoothScroll:"undefined"!=typeof e.mouseWheelSmoothScroll?e.mouseWheelSmoothScroll:!0,arrowSize:"undefined"!=typeof e.arrowSize?e.arrowSize:11,listenOnDomNode:"undefined"!=typeof e.listenOnDomNode?e.listenOnDomNode:null,horizontal:"undefined"!=typeof e.horizontal?e.horizontal:1,horizontalScrollbarSize:"undefined"!=typeof e.horizontalScrollbarSize?e.horizontalScrollbarSize:10,horizontalSliderSize:"undefined"!=typeof e.horizontalSliderSize?e.horizontalSliderSize:0,horizontalHasArrows:"undefined"!=typeof e.horizontalHasArrows?e.horizontalHasArrows:!1,vertical:"undefined"!=typeof e.vertical?e.vertical:1,verticalScrollbarSize:"undefined"!=typeof e.verticalScrollbarSize?e.verticalScrollbarSize:10,verticalHasArrows:"undefined"!=typeof e.verticalHasArrows?e.verticalHasArrows:!1,verticalSliderSize:"undefined"!=typeof e.verticalSliderSize?e.verticalSliderSize:0};return o.horizontalSliderSize="undefined"!=typeof e.horizontalSliderSize?e.horizontalSliderSize:o.horizontalScrollbarSize,o.verticalSliderSize="undefined"!=typeof e.verticalSliderSize?e.verticalSliderSize:o.verticalScrollbarSize,m.isMacintosh&&(o.className+=" mac"),o}Object.defineProperty(o,"__esModule",{value:!0});var s=e("node_modules/tslib/tslib"),i=this&&this.__extends||function(){var e=function(o,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var t in o)o.hasOwnProperty(t)&&(e[t]=o[t])})(o,t)};return function(o,t){function s(){this.constructor=o}e(o,t),o.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)}}(),r=s.__importStar(e("node_modules/monaco-editor/esm/vs/base/browser/dom")),l=e("node_modules/monaco-editor/esm/vs/base/browser/fastDomNode"),n=e("node_modules/monaco-editor/esm/vs/base/browser/mouseEvent"),a=e("node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/horizontalScrollbar"),d=e("node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/verticalScrollbar"),c=e("node_modules/monaco-editor/esm/vs/base/browser/ui/widget"),h=e("node_modules/monaco-editor/esm/vs/base/common/async"),u=e("node_modules/monaco-editor/esm/vs/base/common/event"),_=e("node_modules/monaco-editor/esm/vs/base/common/lifecycle"),m=s.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/platform")),p=e("node_modules/monaco-editor/esm/vs/base/common/scrollable"),f=500,S=50,v=!0,y=function(){function e(e,o,t){this.timestamp=e,this.deltaX=o,this.deltaY=t,this.score=0}return e}(),b=function(){function e(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}return e.prototype.isPhysicalMouseWheel=function(){if(-1===this._front&&-1===this._rear)return!1;for(var e=1,o=0,t=1,s=this._rear;;){var i=s===this._front?e:Math.pow(2,-t);if(e-=i,o+=this._memory[s].score*i,s===this._front)break;s=(this._capacity+s-1)%this._capacity,t++}return.5>=o},e.prototype.accept=function(e,o,t){var s=new y(e,o,t);s.score=this._computeScore(s),-1===this._front&&-1===this._rear?(this._memory[0]=s,this._front=0,this._rear=0):(this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=s)},e.prototype._computeScore=function(e){if(Math.abs(e.deltaX)>0&&Math.abs(e.deltaY)>0)return 1;{var o=.5;-1===this._front&&-1===this._rear?null:this._memory[this._rear]}return(Math.abs(e.deltaX-Math.round(e.deltaX))>0||Math.abs(e.deltaY-Math.round(e.deltaY))>0)&&(o+=.25),Math.min(Math.max(o,0),1)},e.INSTANCE=new e,e}();o.MouseWheelClassifier=b;var w=function(e){function o(o,s,i){var r=e.call(this)||this;r._onScroll=r._register(new u.Emitter),r.onScroll=r._onScroll.event,o.style.overflow="hidden",r._options=t(s),r._scrollable=i,r._register(r._scrollable.onScroll(function(e){r._onDidScroll(e),r._onScroll.fire(e)}));var n={onMouseWheel:function(e){return r._onMouseWheel(e)},onDragStart:function(){return r._onDragStart()},onDragEnd:function(){return r._onDragEnd()}};return r._verticalScrollbar=r._register(new d.VerticalScrollbar(r._scrollable,r._options,n)),r._horizontalScrollbar=r._register(new a.HorizontalScrollbar(r._scrollable,r._options,n)),r._domNode=document.createElement("div"),r._domNode.className="monaco-scrollable-element "+r._options.className,r._domNode.setAttribute("role","presentation"),r._domNode.style.position="relative",r._domNode.style.overflow="hidden",r._domNode.appendChild(o),r._domNode.appendChild(r._horizontalScrollbar.domNode.domNode),r._domNode.appendChild(r._verticalScrollbar.domNode.domNode),r._options.useShadows&&(r._leftShadowDomNode=l.createFastDomNode(document.createElement("div")),r._leftShadowDomNode.setClassName("shadow"),r._domNode.appendChild(r._leftShadowDomNode.domNode),r._topShadowDomNode=l.createFastDomNode(document.createElement("div")),r._topShadowDomNode.setClassName("shadow"),r._domNode.appendChild(r._topShadowDomNode.domNode),r._topLeftShadowDomNode=l.createFastDomNode(document.createElement("div")),r._topLeftShadowDomNode.setClassName("shadow top-left-corner"),r._domNode.appendChild(r._topLeftShadowDomNode.domNode)),r._listenOnDomNode=r._options.listenOnDomNode||r._domNode,r._mouseWheelToDispose=[],r._setListeningToMouseWheel(r._options.handleMouseWheel),r.onmouseover(r._listenOnDomNode,function(e){return r._onMouseOver(e)}),r.onnonbubblingmouseout(r._listenOnDomNode,function(e){return r._onMouseOut(e)}),r._hideTimeout=r._register(new h.TimeoutTimer),r._isDragging=!1,r._mouseIsOver=!1,r._shouldRender=!0,r._revealOnScroll=!0,r}return i(o,e),o.prototype.dispose=function(){this._mouseWheelToDispose=_.dispose(this._mouseWheelToDispose),e.prototype.dispose.call(this)},o.prototype.getDomNode=function(){return this._domNode},o.prototype.getOverviewRulerLayoutInfo=function(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}},o.prototype.delegateVerticalScrollbarMouseDown=function(e){this._verticalScrollbar.delegateMouseDown(e)},o.prototype.getScrollDimensions=function(){return this._scrollable.getScrollDimensions()},o.prototype.setScrollDimensions=function(e){this._scrollable.setScrollDimensions(e)},o.prototype.updateClassName=function(e){this._options.className=e,m.isMacintosh&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className},o.prototype.updateOptions=function(e){var o=t(e);this._options.handleMouseWheel=o.handleMouseWheel,this._options.mouseWheelScrollSensitivity=o.mouseWheelScrollSensitivity,this._options.fastScrollSensitivity=o.fastScrollSensitivity,this._setListeningToMouseWheel(this._options.handleMouseWheel),this._options.lazyRender||this._render()},o.prototype._setListeningToMouseWheel=function(e){var o=this,t=this._mouseWheelToDispose.length>0;if(t!==e&&(this._mouseWheelToDispose=_.dispose(this._mouseWheelToDispose),e)){var s=function(e){o._onMouseWheel(new n.StandardWheelEvent(e))};this._mouseWheelToDispose.push(r.addDisposableListener(this._listenOnDomNode,"mousewheel",s))}},o.prototype._onMouseWheel=function(e){var o,t=b.INSTANCE;if(v&&t.accept(Date.now(),e.deltaX,e.deltaY),e.deltaY||e.deltaX){var s=e.deltaY*this._options.mouseWheelScrollSensitivity,i=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.flipAxes&&(o=[i,s],s=o[0],i=o[1]);var r=!m.isMacintosh&&e.browserEvent&&e.browserEvent.shiftKey;!this._options.scrollYToX&&!r||i||(i=s,s=0),e.browserEvent&&e.browserEvent.altKey&&(i*=this._options.fastScrollSensitivity,s*=this._options.fastScrollSensitivity);var l=this._scrollable.getFutureScrollPosition(),n={};if(s){var a=l.scrollTop-S*s;this._verticalScrollbar.writeScrollPosition(n,a)}if(i){var d=l.scrollLeft-S*i;this._horizontalScrollbar.writeScrollPosition(n,d)}if(n=this._scrollable.validateScrollPosition(n),l.scrollLeft!==n.scrollLeft||l.scrollTop!==n.scrollTop){var c=v&&this._options.mouseWheelSmoothScroll&&t.isPhysicalMouseWheel();c?this._scrollable.setScrollPositionSmooth(n):this._scrollable.setScrollPositionNow(n),this._shouldRender=!0}}(this._options.alwaysConsumeMouseWheel||this._shouldRender)&&(e.preventDefault(),e.stopPropagation())},o.prototype._onDidScroll=function(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()},o.prototype.renderNow=function(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()},o.prototype._render=function(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){var e=this._scrollable.getCurrentScrollPosition(),o=e.scrollTop>0,t=e.scrollLeft>0;this._leftShadowDomNode.setClassName("shadow"+(t?" left":"")),this._topShadowDomNode.setClassName("shadow"+(o?" top":"")),this._topLeftShadowDomNode.setClassName("shadow top-left-corner"+(o?" top":"")+(t?" left":""))}},o.prototype._onDragStart=function(){this._isDragging=!0,this._reveal()},o.prototype._onDragEnd=function(){this._isDragging=!1,this._hide()},o.prototype._onMouseOut=function(){this._mouseIsOver=!1,this._hide()},o.prototype._onMouseOver=function(){this._mouseIsOver=!0,this._reveal()},o.prototype._reveal=function(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()},o.prototype._hide=function(){this._mouseIsOver||this._isDragging||(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())},o.prototype._scheduleHide=function(){var e=this;this._mouseIsOver||this._isDragging||this._hideTimeout.cancelAndSet(function(){return e._hide()},f)},o}(c.Widget);o.AbstractScrollableElement=w;var N=function(e){function o(o,t){var s=this;t=t||{},t.mouseWheelSmoothScroll=!1;var i=new p.Scrollable(0,function(e){return r.scheduleAtNextAnimationFrame(e)});return s=e.call(this,o,t,i)||this,s._register(i),s}return i(o,e),o.prototype.setScrollPosition=function(e){this._scrollable.setScrollPositionNow(e)},o.prototype.getScrollPosition=function(){return this._scrollable.getCurrentScrollPosition()},o}(w);o.ScrollableElement=N;var D=function(e){function o(o,t,s){return e.call(this,o,t,s)||this}return i(o,e),o}(w);o.SmoothScrollableElement=D;var g=function(e){function o(o,t){var s=e.call(this,o,t)||this;return s._element=o,s.onScroll(function(e){e.scrollTopChanged&&(s._element.scrollTop=e.scrollTop),e.scrollLeftChanged&&(s._element.scrollLeft=e.scrollLeft)}),s.scanDomNode(),s}return i(o,e),o.prototype.scanDomNode=function(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})},o}(N);o.DomScrollableElement=g}); ;/*!node_modules/monaco-editor/esm/vs/editor/browser/viewParts/editorScrollbar/editorScrollbar.js*/ define("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/editorScrollbar/editorScrollbar",function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var t=e("node_modules/tslib/tslib"),r=this&&this.__extends||function(){var e=function(o,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var t in o)o.hasOwnProperty(t)&&(e[t]=o[t])})(o,t)};return function(o,t){function r(){this.constructor=o}e(o,t),o.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}}(),i=t.__importStar(e("node_modules/monaco-editor/esm/vs/base/browser/dom")),l=e("node_modules/monaco-editor/esm/vs/base/browser/fastDomNode"),n=e("node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/scrollableElement"),s=e("node_modules/monaco-editor/esm/vs/editor/browser/view/viewPart"),a=e("node_modules/monaco-editor/esm/vs/platform/theme/common/themeService"),c=function(e){function o(o,t,r,c){var d=e.call(this,o)||this,u=d._context.configuration.editor,m=u.viewInfo.scrollbar,h={listenOnDomNode:r.domNode,className:"editor-scrollable "+a.getThemeTypeSelector(o.theme.type),useShadows:!1,lazyRender:!0,vertical:m.vertical,horizontal:m.horizontal,verticalHasArrows:m.verticalHasArrows,horizontalHasArrows:m.horizontalHasArrows,verticalScrollbarSize:m.verticalScrollbarSize,verticalSliderSize:m.verticalSliderSize,horizontalScrollbarSize:m.horizontalScrollbarSize,horizontalSliderSize:m.horizontalSliderSize,handleMouseWheel:m.handleMouseWheel,arrowSize:m.arrowSize,mouseWheelScrollSensitivity:m.mouseWheelScrollSensitivity,fastScrollSensitivity:m.fastScrollSensitivity};d.scrollbar=d._register(new n.SmoothScrollableElement(t.domNode,h,d._context.viewLayout.scrollable)),s.PartFingerprints.write(d.scrollbar.getDomNode(),5),d.scrollbarDomNode=l.createFastDomNode(d.scrollbar.getDomNode()),d.scrollbarDomNode.setPosition("absolute"),d._setLayout();var f=function(e,o,t){var r={};if(o){var i=e.scrollTop;i&&(r.scrollTop=d._context.viewLayout.getCurrentScrollTop()+i,e.scrollTop=0)}if(t){var l=e.scrollLeft;l&&(r.scrollLeft=d._context.viewLayout.getCurrentScrollLeft()+l,e.scrollLeft=0)}d._context.viewLayout.setScrollPositionNow(r)};return d._register(i.addDisposableListener(r.domNode,"scroll",function(){return f(r.domNode,!0,!0)})),d._register(i.addDisposableListener(t.domNode,"scroll",function(){return f(t.domNode,!0,!1)})),d._register(i.addDisposableListener(c.domNode,"scroll",function(){return f(c.domNode,!0,!1)})),d._register(i.addDisposableListener(d.scrollbarDomNode.domNode,"scroll",function(){return f(d.scrollbarDomNode.domNode,!0,!1)})),d}return r(o,e),o.prototype.dispose=function(){e.prototype.dispose.call(this)},o.prototype._setLayout=function(){var e=this._context.configuration.editor.layoutInfo;this.scrollbarDomNode.setLeft(e.contentLeft);var o=this._context.configuration.editor.viewInfo.minimap.side;this.scrollbarDomNode.setWidth("right"===o?e.contentWidth+e.minimapWidth:e.contentWidth),this.scrollbarDomNode.setHeight(e.contentHeight)},o.prototype.getOverviewRulerLayoutInfo=function(){return this.scrollbar.getOverviewRulerLayoutInfo()},o.prototype.getDomNode=function(){return this.scrollbarDomNode},o.prototype.delegateVerticalScrollbarMouseDown=function(e){this.scrollbar.delegateVerticalScrollbarMouseDown(e)},o.prototype.onConfigurationChanged=function(e){if(e.viewInfo){var o=this._context.configuration.editor,t={handleMouseWheel:o.viewInfo.scrollbar.handleMouseWheel,mouseWheelScrollSensitivity:o.viewInfo.scrollbar.mouseWheelScrollSensitivity,fastScrollSensitivity:o.viewInfo.scrollbar.fastScrollSensitivity};this.scrollbar.updateOptions(t)}return e.layoutInfo&&this._setLayout(),!0},o.prototype.onScrollChanged=function(){return!0},o.prototype.onThemeChanged=function(){return this.scrollbar.updateClassName("editor-scrollable "+a.getThemeTypeSelector(this._context.theme.type)),!0},o.prototype.prepareRender=function(){},o.prototype.render=function(){this.scrollbar.renderNow()},o}(s.ViewPart);o.EditorScrollbar=c}); ;/*!node_modules/monaco-editor/esm/vs/editor/browser/viewParts/glyphMargin/glyphMargin.js*/ define("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/glyphMargin/glyphMargin",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),r=t("node_modules/monaco-editor/esm/vs/editor/browser/view/dynamicViewOverlay"),i=function(){function t(t,e,n){this.startLineNumber=+t,this.endLineNumber=+e,this.className=String(n)}return t}();e.DecorationToRender=i;var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype._render=function(t,e,n){for(var r=[],i=t;e>=i;i++){var o=i-t;r[o]=[]}if(0===n.length)return r;n.sort(function(t,e){return t.className===e.className?t.startLineNumber===e.startLineNumber?t.endLineNumber-e.endLineNumber:t.startLineNumber-e.startLineNumber:t.classNameu;u++){var h=n[u],g=h.className,c=Math.max(h.startLineNumber,t)-t,p=Math.min(h.endLineNumber,e)-t;a===g?(c=Math.max(s+1,c),s=Math.max(s,p)):(a=g,s=p);for(var d=c;s>=d;d++)r[d].push(a)}return r},e}(r.DynamicViewOverlay);e.DedupOverlay=o;var a=function(t){function e(e){var n=t.call(this)||this;return n._context=e,n._lineHeight=n._context.configuration.editor.lineHeight,n._glyphMargin=n._context.configuration.editor.viewInfo.glyphMargin,n._glyphMarginLeft=n._context.configuration.editor.layoutInfo.glyphMarginLeft,n._glyphMarginWidth=n._context.configuration.editor.layoutInfo.glyphMarginWidth,n._renderResult=null,n._context.addEventHandler(n),n}return n(e,t),e.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,t.prototype.dispose.call(this)},e.prototype.onConfigurationChanged=function(t){return t.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),t.viewInfo&&(this._glyphMargin=this._context.configuration.editor.viewInfo.glyphMargin),t.layoutInfo&&(this._glyphMarginLeft=this._context.configuration.editor.layoutInfo.glyphMarginLeft,this._glyphMarginWidth=this._context.configuration.editor.layoutInfo.glyphMarginWidth),!0},e.prototype.onDecorationsChanged=function(){return!0},e.prototype.onFlushed=function(){return!0},e.prototype.onLinesChanged=function(){return!0},e.prototype.onLinesDeleted=function(){return!0},e.prototype.onLinesInserted=function(){return!0},e.prototype.onScrollChanged=function(t){return t.scrollTopChanged},e.prototype.onZonesChanged=function(){return!0},e.prototype._getDecorations=function(t){for(var e=t.getDecorationsInViewport(),n=[],r=0,o=0,a=e.length;a>o;o++){var s=e[o],u=s.options.glyphMarginClassName;u&&(n[r++]=new i(s.range.startLineNumber,s.range.endLineNumber,u))}return n},e.prototype.prepareRender=function(t){if(!this._glyphMargin)return void(this._renderResult=null);for(var e=t.visibleRange.startLineNumber,n=t.visibleRange.endLineNumber,r=this._render(e,n,this._getDecorations(t)),i=this._lineHeight.toString(),o=this._glyphMarginLeft.toString(),a=this._glyphMarginWidth.toString(),s='" style="left:'+o+"px;width:"+a+"px;height:"+i+'px;">',u=[],l=e;n>=l;l++){var h=l-e,g=r[h];u[h]=0===g.length?"":'
n||n>=this._renderResult.length?"":this._renderResult[n]},e}(o);e.GlyphMarginOverlay=a}); ;/*!node_modules/monaco-editor/esm/vs/editor/browser/viewParts/indentGuides/indentGuides.js*/ define("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/indentGuides/indentGuides",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),i=e("node_modules/monaco-editor/esm/vs/editor/browser/view/dynamicViewOverlay"),o=e("node_modules/monaco-editor/esm/vs/editor/common/core/position"),r=e("node_modules/monaco-editor/esm/vs/editor/common/view/editorColorRegistry"),d=e("node_modules/monaco-editor/esm/vs/platform/theme/common/themeService"),s=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._primaryLineNumber=0,n._lineHeight=n._context.configuration.editor.lineHeight,n._spaceWidth=n._context.configuration.editor.fontInfo.spaceWidth,n._enabled=n._context.configuration.editor.viewInfo.renderIndentGuides,n._activeIndentEnabled=n._context.configuration.editor.viewInfo.highlightActiveIndentGuide,n._renderResult=null,n._context.addEventHandler(n),n}return n(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.fontInfo&&(this._spaceWidth=this._context.configuration.editor.fontInfo.spaceWidth),e.viewInfo&&(this._enabled=this._context.configuration.editor.viewInfo.renderIndentGuides,this._activeIndentEnabled=this._context.configuration.editor.viewInfo.highlightActiveIndentGuide),!0},t.prototype.onCursorStateChanged=function(e){var t=e.selections[0],n=t.isEmpty()?t.positionLineNumber:0;return this._primaryLineNumber!==n?(this._primaryLineNumber=n,!0):!1},t.prototype.onDecorationsChanged=function(){return!0},t.prototype.onFlushed=function(){return!0},t.prototype.onLinesChanged=function(){return!0},t.prototype.onLinesDeleted=function(){return!0},t.prototype.onLinesInserted=function(){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(){return!0},t.prototype.onLanguageConfigurationChanged=function(){return!0},t.prototype.prepareRender=function(e){if(!this._enabled)return void(this._renderResult=null);var t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=this._context.model.getOptions().indentSize,r=i*this._spaceWidth,d=e.scrollWidth,s=this._lineHeight,u=this._context.model.getLinesIndentGuides(t,n),a=0,c=0,l=0;if(this._activeIndentEnabled&&this._primaryLineNumber){var h=this._context.model.getActiveIndentGuide(this._primaryLineNumber,t,n);a=h.startLineNumber,c=h.endLineNumber,l=h.indent}for(var p=[],f=t;n>=f;f++){for(var _=f>=a&&c>=f,m=f-t,g=u[m],v="",y=e.visibleRangeForPosition(new o.Position(f,1)),b=y?y.left:0,x=1;g>=x;x++){var I=_&&x===l?"cigra":"cigr";if(v+='
',b+=r,b>d)break}p[m]=v}this._renderResult=p},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return 0>n||n>=this._renderResult.length?"":this._renderResult[n]},t}(i.DynamicViewOverlay);t.IndentGuidesOverlay=s,d.registerThemingParticipant(function(e,t){var n=e.getColor(r.editorIndentGuides);n&&t.addRule(".monaco-editor .lines-content .cigr { box-shadow: 1px 0 0 0 "+n+" inset; }");var i=e.getColor(r.editorActiveIndentGuides)||n;i&&t.addRule(".monaco-editor .lines-content .cigra { box-shadow: 1px 0 0 0 "+i+" inset; }")})}); ;/*!node_modules/monaco-editor/esm/vs/editor/browser/viewParts/lines/viewLines.js*/ define("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/lines/viewLines",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=this&&this.__extends||function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),n=e("node_modules/monaco-editor/esm/vs/base/common/async"),o=e("node_modules/monaco-editor/esm/vs/editor/browser/config/configuration"),r=e("node_modules/monaco-editor/esm/vs/editor/browser/view/viewLayer"),s=e("node_modules/monaco-editor/esm/vs/editor/browser/view/viewPart"),a=e("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/lines/viewLine"),l=e("node_modules/monaco-editor/esm/vs/editor/common/core/position"),h=e("node_modules/monaco-editor/esm/vs/editor/common/core/range"),u=e("node_modules/monaco-editor/esm/vs/editor/common/view/renderingContext"),d=function(){function e(){this._currentVisibleRange=new h.Range(1,1,1,1)}return e.prototype.getCurrentVisibleRange=function(){return this._currentVisibleRange},e.prototype.setCurrentVisibleRange=function(e){this._currentVisibleRange=e},e}(),c=function(){function e(e,t,i,n,o,r){this.lineNumber=e,this.startColumn=t,this.endColumn=i,this.startScrollTop=n,this.stopScrollTop=o,this.scrollType=r}return e}(),p=function(e){function t(t,i){var l=e.call(this,t)||this;l._linesContent=i,l._textRangeRestingSpot=document.createElement("div"),l._visibleLines=new r.VisibleLinesCollection(l),l.domNode=l._visibleLines.domNode;var h=l._context.configuration;return l._lineHeight=h.editor.lineHeight,l._typicalHalfwidthCharacterWidth=h.editor.fontInfo.typicalHalfwidthCharacterWidth,l._isViewportWrapping=h.editor.wrappingInfo.isViewportWrapping,l._revealHorizontalRightPadding=h.editor.viewInfo.revealHorizontalRightPadding,l._canUseLayerHinting=h.editor.canUseLayerHinting,l._viewLineOptions=new a.ViewLineOptions(h,l._context.theme.type),s.PartFingerprints.write(l.domNode,7),l.domNode.setClassName("view-lines"),o.Configuration.applyFontInfo(l.domNode,h.editor.fontInfo),l._maxLineWidth=0,l._asyncUpdateLineWidths=new n.RunOnceScheduler(function(){l._updateLineWidthsSlow()},200),l._lastRenderedData=new d,l._horizontalRevealRequest=null,l}return i(t,e),t.prototype.dispose=function(){this._asyncUpdateLineWidths.dispose(),e.prototype.dispose.call(this)},t.prototype.getDomNode=function(){return this.domNode},t.prototype.createVisibleLine=function(){return new a.ViewLine(this._viewLineOptions)},t.prototype.onConfigurationChanged=function(e){this._visibleLines.onConfigurationChanged(e),e.wrappingInfo&&(this._maxLineWidth=0);var t=this._context.configuration;return e.lineHeight&&(this._lineHeight=t.editor.lineHeight),e.fontInfo&&(this._typicalHalfwidthCharacterWidth=t.editor.fontInfo.typicalHalfwidthCharacterWidth),e.wrappingInfo&&(this._isViewportWrapping=t.editor.wrappingInfo.isViewportWrapping),e.viewInfo&&(this._revealHorizontalRightPadding=t.editor.viewInfo.revealHorizontalRightPadding),e.canUseLayerHinting&&(this._canUseLayerHinting=t.editor.canUseLayerHinting),e.fontInfo&&o.Configuration.applyFontInfo(this.domNode,t.editor.fontInfo),this._onOptionsMaybeChanged(),e.layoutInfo&&(this._maxLineWidth=0),!0},t.prototype._onOptionsMaybeChanged=function(){var e=this._context.configuration,t=new a.ViewLineOptions(e,this._context.theme.type);if(!this._viewLineOptions.equals(t)){this._viewLineOptions=t;for(var i=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),o=i;n>=o;o++){var r=this._visibleLines.getVisibleLine(o);r.onOptionsChanged(this._viewLineOptions)}return!0}return!1},t.prototype.onCursorStateChanged=function(){for(var e=this._visibleLines.getStartLineNumber(),t=this._visibleLines.getEndLineNumber(),i=!1,n=e;t>=n;n++)i=this._visibleLines.getVisibleLine(n).onSelectionChanged()||i;return i},t.prototype.onDecorationsChanged=function(){for(var e=this._visibleLines.getStartLineNumber(),t=this._visibleLines.getEndLineNumber(),i=e;t>=i;i++)this._visibleLines.getVisibleLine(i).onDecorationsChanged();return!0},t.prototype.onFlushed=function(e){var t=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,t},t.prototype.onLinesChanged=function(e){return this._visibleLines.onLinesChanged(e)},t.prototype.onLinesDeleted=function(e){return this._visibleLines.onLinesDeleted(e)},t.prototype.onLinesInserted=function(e){return this._visibleLines.onLinesInserted(e)},t.prototype.onRevealRangeRequest=function(e){var t=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.range,e.verticalType),i=this._context.viewLayout.validateScrollPosition({scrollTop:t});e.revealHorizontal?e.range.startLineNumber!==e.range.endLineNumber?i={scrollTop:i.scrollTop,scrollLeft:0}:this._horizontalRevealRequest=new c(e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType):this._horizontalRevealRequest=null;var n=Math.abs(this._context.viewLayout.getCurrentScrollTop()-i.scrollTop);return 0===e.scrollType&&n>this._lineHeight?this._context.viewLayout.setScrollPositionSmooth(i):this._context.viewLayout.setScrollPositionNow(i),!0},t.prototype.onScrollChanged=function(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){var t=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),i=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTopi)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0},t.prototype.onTokensChanged=function(e){return this._visibleLines.onTokensChanged(e)},t.prototype.onZonesChanged=function(e){return this._context.viewLayout.onMaxLineWidthChanged(this._maxLineWidth),this._visibleLines.onZonesChanged(e)},t.prototype.onThemeChanged=function(){return this._onOptionsMaybeChanged()},t.prototype.getPositionFromDOMInfo=function(e,t){var i=this._getViewLineDomNode(e);if(null===i)return null;var n=this._getLineNumberFor(i);if(-1===n)return null;if(1>n||n>this._context.model.getLineCount())return null;if(1===this._context.model.getLineMaxColumn(n))return new l.Position(n,1);var o=this._visibleLines.getStartLineNumber(),r=this._visibleLines.getEndLineNumber();if(o>n||n>r)return null;var s=this._visibleLines.getVisibleLine(n).getColumnOfNodeOffset(n,e,t),a=this._context.model.getLineMinColumn(n);return a>s&&(s=a),new l.Position(n,s)},t.prototype._getViewLineDomNode=function(e){for(;e&&1===e.nodeType;){if(e.className===a.ViewLine.CLASS_NAME)return e;e=e.parentElement}return null},t.prototype._getLineNumberFor=function(e){for(var t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber(),n=t;i>=n;n++){var o=this._visibleLines.getVisibleLine(n);if(e===o.getDomNode())return n}return-1},t.prototype.getLineWidth=function(e){var t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();return t>e||e>i?-1:this._visibleLines.getVisibleLine(e).getWidth()},t.prototype.linesVisibleRangesForRange=function(e,t){if(this.shouldRender())return null;var i=e.endLineNumber,n=h.Range.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!n)return null;var o=[],r=0,s=new a.DomReadingContext(this.domNode.domNode,this._textRangeRestingSpot),d=0;t&&(d=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new l.Position(n.startLineNumber,1)).lineNumber);for(var c=this._visibleLines.getStartLineNumber(),p=this._visibleLines.getEndLineNumber(),g=n.startLineNumber;g<=n.endLineNumber;g++)if(!(c>g||g>p)){var _=g===n.startLineNumber?n.startColumn:1,L=g===n.endLineNumber?n.endColumn:this._context.model.getLineMaxColumn(g),m=this._visibleLines.getVisibleLine(g).getVisibleRangesForRange(_,L,s);if(m&&0!==m.length){if(t&&i>g){var v=d;d=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new l.Position(g+1,1)).lineNumber,v!==d&&(m[m.length-1].width+=this._typicalHalfwidthCharacterWidth)}o[r++]=new u.LineVisibleRanges(g,m)}}return 0===r?null:o},t.prototype.visibleRangesForRange2=function(e){if(this.shouldRender())return null;var t=h.Range.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!t)return null;for(var i=[],n=new a.DomReadingContext(this.domNode.domNode,this._textRangeRestingSpot),o=this._visibleLines.getStartLineNumber(),r=this._visibleLines.getEndLineNumber(),s=t.startLineNumber;s<=t.endLineNumber;s++)if(!(o>s||s>r)){var l=s===t.startLineNumber?t.startColumn:1,u=s===t.endLineNumber?t.endColumn:this._context.model.getLineMaxColumn(s),d=this._visibleLines.getVisibleLine(s).getVisibleRangesForRange(l,u,n);d&&0!==d.length&&(i=i.concat(d))}return 0===i.length?null:i},t.prototype.visibleRangeForPosition=function(e){var t=this.visibleRangesForRange2(new h.Range(e.lineNumber,e.column,e.lineNumber,e.column));return t?t[0]:null},t.prototype.updateLineWidths=function(){this._updateLineWidths(!1)},t.prototype._updateLineWidthsFast=function(){return this._updateLineWidths(!0)},t.prototype._updateLineWidthsSlow=function(){this._updateLineWidths(!1)},t.prototype._updateLineWidths=function(e){for(var t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber(),n=1,o=!0,r=t;i>=r;r++){var s=this._visibleLines.getVisibleLine(r);!e||s.getWidthIsFast()?n=Math.max(n,s.getWidth()):o=!1}return o&&1===t&&i===this._context.model.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(n),o},t.prototype.prepareRender=function(){throw new Error("Not supported")},t.prototype.render=function(){throw new Error("Not supported")},t.prototype.renderText=function(e){if(this._visibleLines.renderLines(e),this._lastRenderedData.setCurrentVisibleRange(e.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){var t=this._horizontalRevealRequest.lineNumber,i=this._horizontalRevealRequest.startColumn,n=this._horizontalRevealRequest.endColumn,o=this._horizontalRevealRequest.scrollType;if(e.startLineNumber<=t&&t<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();var r=this._computeScrollLeftToRevealRange(t,i,n),s=this._isViewportWrapping;s||this._ensureMaxLineWidth(r.maxHorizontalOffset),0===o?this._context.viewLayout.setScrollPositionSmooth({scrollLeft:r.scrollLeft}):this._context.viewLayout.setScrollPositionNow({scrollLeft:r.scrollLeft})}}this._updateLineWidthsFast()||this._asyncUpdateLineWidths.schedule(),this._linesContent.setLayerHinting(this._canUseLayerHinting);var a=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-a),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())},t.prototype._ensureMaxLineWidth=function(e){var t=Math.ceil(e);this._maxLineWidth=r&&a>=o)l=r;else{var h=(n+o)/2;l=Math.max(0,h-s/2)}else l=this._computeMinimumScrolling(r,a,n,o,3===i,4===i);return l},t.prototype._computeScrollLeftToRevealRange=function(e,i,n){var o=0,r=this._context.viewLayout.getCurrentViewport(),s=r.left,a=s+r.width,l=this.visibleRangesForRange2(new h.Range(e,i,e,n)),u=Number.MAX_VALUE,d=0;if(!l)return{scrollLeft:s,maxHorizontalOffset:o};for(var c=0,p=l;cd&&(d=g.left+g.width)}o=d,u=Math.max(0,u-t.HORIZONTAL_EXTRA_PX),d+=this._revealHorizontalRightPadding;var _=this._computeMinimumScrolling(s,a,u,d);return{scrollLeft:_,maxHorizontalOffset:o}},t.prototype._computeMinimumScrolling=function(e,t,i,n,o,r){e=0|e,t=0|t,i=0|i,n=0|n,o=!!o,r=!!r;var s=t-e,a=n-i;return s>a?o?i:r?Math.max(0,n-s):e>i?i:n>t?Math.max(0,n-s):e:i},t.HORIZONTAL_EXTRA_PX=30,t}(s.ViewPart);t.ViewLines=p}); ;/*!node_modules/monaco-editor/esm/vs/editor/browser/viewParts/linesDecorations/linesDecorations.js*/ define("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/linesDecorations/linesDecorations",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=this&&this.__extends||function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),n=t("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/glyphMargin/glyphMargin"),r=function(t){function e(e){var o=t.call(this)||this;return o._context=e,o._decorationsLeft=o._context.configuration.editor.layoutInfo.decorationsLeft,o._decorationsWidth=o._context.configuration.editor.layoutInfo.decorationsWidth,o._renderResult=null,o._context.addEventHandler(o),o}return o(e,t),e.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,t.prototype.dispose.call(this)},e.prototype.onConfigurationChanged=function(t){return t.layoutInfo&&(this._decorationsLeft=this._context.configuration.editor.layoutInfo.decorationsLeft,this._decorationsWidth=this._context.configuration.editor.layoutInfo.decorationsWidth),!0},e.prototype.onDecorationsChanged=function(){return!0},e.prototype.onFlushed=function(){return!0},e.prototype.onLinesChanged=function(){return!0},e.prototype.onLinesDeleted=function(){return!0},e.prototype.onLinesInserted=function(){return!0},e.prototype.onScrollChanged=function(t){return t.scrollTopChanged},e.prototype.onZonesChanged=function(){return!0},e.prototype._getDecorations=function(t){for(var e=t.getDecorationsInViewport(),o=[],r=0,i=0,s=e.length;s>i;i++){var a=e[i],c=a.options.linesDecorationsClassName;c&&(o[r++]=new n.DecorationToRender(a.range.startLineNumber,a.range.endLineNumber,c))}return o},e.prototype.prepareRender=function(t){for(var e=t.visibleRange.startLineNumber,o=t.visibleRange.endLineNumber,n=this._render(e,o,this._getDecorations(t)),r=this._decorationsLeft.toString(),i=this._decorationsWidth.toString(),s='" style="left:'+r+"px;width:"+i+'px;">
',a=[],c=e;o>=c;c++){for(var u=c-e,d=n[u],p="",l=0,f=d.length;f>l;l++)p+='
i;i++){var u=t[i],a=u.options.marginClassName;a&&(n[o++]=new r.DecorationToRender(u.range.startLineNumber,u.range.endLineNumber,a))}return n},t.prototype.prepareRender=function(e){for(var t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,r=this._render(t,n,this._getDecorations(e)),o=[],i=t;n>=i;i++){for(var s=i-t,u=r[s],a="",c=0,p=u.length;p>c;c++)a+='
';o[s]=a}this._renderResult=o},t.prototype.render=function(e,t){return this._renderResult?this._renderResult[t-e]:""},t}(r.DedupOverlay);t.MarginViewLineDecorationsOverlay=o}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/core/rgba.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/core/rgba",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(t,n,o,c){this.r=e._clamp(t),this.g=e._clamp(n),this.b=e._clamp(o),this.a=e._clamp(c)}return e._clamp=function(e){return 0>e?0:e>255?255:0|e},e.Empty=new e(0,0,0,0),e}();t.RGBA8=n}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/view/minimapCharRenderer.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/view/minimapCharRenderer",function(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var e=t("node_modules/monaco-editor/esm/vs/base/common/event"),o=t("node_modules/monaco-editor/esm/vs/editor/common/core/rgba"),n=t("node_modules/monaco-editor/esm/vs/editor/common/modes"),a=function(){function t(){var t=this;this._onDidChange=new e.Emitter,this.onDidChange=this._onDidChange.event,this._updateColorMap(),n.TokenizationRegistry.onDidChange(function(r){r.changedColorMap&&t._updateColorMap()})}return t.getInstance=function(){return this._INSTANCE||(this._INSTANCE=new t),this._INSTANCE},t.prototype._updateColorMap=function(){var t=n.TokenizationRegistry.getColorMap();if(!t)return this._colors=[o.RGBA8.Empty],void(this._backgroundIsLight=!0);this._colors=[o.RGBA8.Empty];for(var r=1;r=.5,this._onDidChange.fire(void 0)},t.prototype.getColor=function(t){return(1>t||t>=this._colors.length)&&(t=2),this._colors[t]},t.prototype.backgroundIsLight=function(){return this._backgroundIsLight},t._INSTANCE=null,t}();r.MinimapTokensColorTracker=a;var i=function(){function t(r,e){var o=760;if(r.length!==o)throw new Error("Invalid x2CharData");var n=190;if(e.length!==n)throw new Error("Invalid x1CharData");this.x2charData=r,this.x1charData=e,this.x2charDataLight=t.soften(r,.8),this.x1charDataLight=t.soften(e,50/60)}return t.soften=function(t,r){for(var e=new Uint8ClampedArray(t.length),o=0,n=t.length;n>o;o++)e[o]=t[o]*r;return e},t._getChIndex=function(t){return t-=32,0>t&&(t+=95),t%95},t.prototype.x2RenderChar=function(r,e,o,n,a,i,h){if(e+2>r.width||o+4>r.height)return void console.warn("bad render request outside image data");var d=h?this.x2charDataLight:this.x2charData,s=t._getChIndex(n),c=4*r.width,u=i.r,g=i.g,v=i.b,l=a.r-u,m=a.g-g,f=a.b-v,p=r.data,C=4*s*2,_=o*c+4*e,b=d[C]/255;p[_+0]=u+l*b,p[_+1]=g+m*b,p[_+2]=v+f*b;var b=d[C+1]/255;p[_+4]=u+l*b,p[_+5]=g+m*b,p[_+6]=v+f*b,_+=c;var b=d[C+2]/255;p[_+0]=u+l*b,p[_+1]=g+m*b,p[_+2]=v+f*b;var b=d[C+3]/255;p[_+4]=u+l*b,p[_+5]=g+m*b,p[_+6]=v+f*b,_+=c;var b=d[C+4]/255;p[_+0]=u+l*b,p[_+1]=g+m*b,p[_+2]=v+f*b;var b=d[C+5]/255;p[_+4]=u+l*b,p[_+5]=g+m*b,p[_+6]=v+f*b,_+=c;var b=d[C+6]/255;p[_+0]=u+l*b,p[_+1]=g+m*b,p[_+2]=v+f*b;var b=d[C+7]/255;p[_+4]=u+l*b,p[_+5]=g+m*b,p[_+6]=v+f*b},t.prototype.x1RenderChar=function(r,e,o,n,a,i,h){if(e+1>r.width||o+2>r.height)return void console.warn("bad render request outside image data");var d=h?this.x1charDataLight:this.x1charData,s=t._getChIndex(n),c=4*r.width,u=i.r,g=i.g,v=i.b,l=a.r-u,m=a.g-g,f=a.b-v,p=r.data,C=2*s*1,_=o*c+4*e,b=d[C]/255;p[_+0]=u+l*b,p[_+1]=g+m*b,p[_+2]=v+f*b,_+=c;var b=d[C+1]/255;p[_+0]=u+l*b,p[_+1]=g+m*b,p[_+2]=v+f*b},t.prototype.x2BlockRenderChar=function(t,r,e,o,n){if(r+2>t.width||e+4>t.height)return void console.warn("bad render request outside image data");var a=4*t.width,i=.5,h=n.r,d=n.g,s=n.b,c=o.r-h,u=o.g-d,g=o.b-s,v=h+c*i,l=d+u*i,m=s+g*i,f=t.data,p=e*a+4*r;f[p+0]=v,f[p+1]=l,f[p+2]=m,f[p+4]=v,f[p+5]=l,f[p+6]=m,p+=a,f[p+0]=v,f[p+1]=l,f[p+2]=m,f[p+4]=v,f[p+5]=l,f[p+6]=m,p+=a,f[p+0]=v,f[p+1]=l,f[p+2]=m,f[p+4]=v,f[p+5]=l,f[p+6]=m,p+=a,f[p+0]=v,f[p+1]=l,f[p+2]=m,f[p+4]=v,f[p+5]=l,f[p+6]=m},t.prototype.x1BlockRenderChar=function(t,r,e,o,n){if(r+1>t.width||e+2>t.height)return void console.warn("bad render request outside image data");var a=4*t.width,i=.5,h=n.r,d=n.g,s=n.b,c=o.r-h,u=o.g-d,g=o.b-s,v=h+c*i,l=d+u*i,m=s+g*i,f=t.data,p=e*a+4*r;f[p+0]=v,f[p+1]=l,f[p+2]=m,p+=a,f[p+0]=v,f[p+1]=l,f[p+2]=m},t}();r.MinimapCharRenderer=i}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/view/runtimeMinimapCharRenderer.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/view/runtimeMinimapCharRenderer",function(e,r){"use strict";function n(e){for(var r=new Uint8ClampedArray(e.length),n=0,i=e.length;i>n;n++)r[n]=e[n];return r}function i(){if(!a){var e=n(m);m=null;var r=n(t);t=null,a=new o.MinimapCharRenderer(r,e)}return a}Object.defineProperty(r,"__esModule",{value:!0});var o=e("node_modules/monaco-editor/esm/vs/editor/common/view/minimapCharRenderer"),a=null;r.getOrCreateMinimapCharRenderer=i;var t=[0,0,0,0,0,0,0,0,39,14,39,14,14,5,29,10,96,96,29,29,0,0,0,0,49,113,195,214,227,166,135,42,40,29,194,38,75,148,197,187,145,0,160,61,75,143,2,183,138,58,163,6,177,223,197,227,38,13,11,4,0,0,0,0,10,54,52,8,62,4,71,122,73,2,19,40,10,50,155,36,79,70,145,121,7,5,0,0,2,1,36,12,204,166,16,5,0,0,0,0,1,0,154,34,0,0,0,0,96,83,0,0,0,0,0,0,0,0,46,34,0,82,2,56,53,3,146,0,146,119,152,132,152,131,145,119,170,42,15,42,15,42,172,194,131,132,0,139,80,28,227,143,159,135,15,118,11,126,171,144,20,124,88,106,217,196,0,106,189,92,168,43,5,130,164,133,130,115,183,65,134,120,141,141,170,196,2,106,31,32,105,2,145,130,116,114,132,135,138,140,138,113,147,137,81,183,129,94,0,0,21,16,4,3,46,34,0,0,45,34,1,0,160,49,0,0,43,143,203,23,1,76,0,0,38,28,131,96,38,28,0,0,168,31,29,191,98,0,118,139,5,113,45,13,37,6,97,115,161,179,204,105,223,224,83,52,111,100,184,186,120,132,212,145,180,139,174,161,212,182,104,162,131,0,131,0,104,161,219,120,110,116,110,116,219,120,207,154,163,40,147,22,207,154,202,159,161,47,145,23,111,0,139,154,144,30,144,135,139,187,110,110,168,161,150,145,110,110,185,162,43,16,43,16,185,162,73,129,0,110,0,110,191,87,149,149,236,48,195,91,146,149,146,0,146,0,146,0,187,173,200,201,222,215,172,147,95,95,193,97,224,129,159,206,97,192,155,139,153,115,153,115,156,140,189,158,123,136,190,64,111,0,155,139,153,115,153,114,156,241,197,148,150,152,170,116,110,157,156,128,169,14,13,159,158,149,212,189,43,16,43,16,43,16,148,110,148,110,147,109,182,151,133,121,106,118,114,103,89,66,94,94,211,188,205,207,139,168,151,152,87,76,101,79,151,152,130,156,125,116,47,29,43,16,169,228,11,103,120,6,230,176,55,49,55,6,55,6,193,102,92,0,71,0,13,30,0,147,63,43,12,43,12,43,142,152,71,53,61,61,0,0,0,0,0,0,0,0,0,0,158,146,25,2,0,0,0,0,0,0,0,0,107,130,170,194,176,188,109,0,203,159,113,111,202,158,0,0,135,135,114,0,136,135,0,109,187,190,148,126,177,187,0,0,149,130,218,105,169,135,37,113,146,113,49,13,49,13,0,0,178,195,147,114,255,255,109,0,193,149,110,109,109,109,12,15,125,41,33,41,144,188,1,6,75,53,10,53,210,161,110,0,152,148,210,60,110,156,213,5,63,5,63,5,45,111,0,0,232,172,190,168,190,169,0,0,190,144,109,109,109,109,0,0,168,140,148,111,168,140,0,0,200,151,113,110,255,158,0,0,184,188,147,139,186,255,0,0,122,130,111,0,109,0,0,0,132,69,109,93,110,136,51,5,205,103,61,6,47,106,0,0,110,109,110,122,155,179,0,0,132,120,113,114,84,63,0,0,124,108,202,189,160,174,0,0,144,142,79,57,159,146,0,0,138,138,119,117,255,69,0,0,97,198,47,38,208,84,23,112,41,14,157,7,121,192,35,11,35,11,35,11,160,61,129,9,40,19,20,139,236,44,0,0,15,3,97,93,0,0],m=[0,0,23,12,53,0,130,127,58,149,67,77,72,198,13,0,25,51,25,49,94,2,8,64,0,24,0,21,0,9,19,27,126,126,51,80,72,105,87,98,73,93,106,85,111,123,87,30,116,126,123,110,4,16,9,28,21,53,8,62,23,52,73,21,132,183,78,142,168,175,70,70,128,128,123,110,125,43,100,139,125,119,78,78,54,77,139,139,33,87,201,117,162,149,130,130,138,60,130,172,149,127,95,98,95,25,118,135,110,85,147,175,105,110,121,30,101,113,34,68,20,26,34,68,56,0,0,44,3,0,27,175,80,133,31,66,85,147,32,150,90,25,45,230,77,101,36,83,22,84,71,118,44,44,52,172,38,101,35,130,40,197,43,197,29,26,23,103,67,44,25,129,29,85,27,177,33,97,32,145,33,77,38,96,20,55,36,95,2,22]}); ;/*!node_modules/monaco-editor/esm/vs/editor/browser/viewParts/minimap/minimap.js*/ define("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/minimap/minimap",function(e,t){"use strict";function i(e){return 2===e?4:4===e?6:1===e?2:3}function o(e){return 2===e?2:4===e?2:1===e?1:1}Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),r=this&&this.__extends||function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),a=n.__importStar(e("node_modules/monaco-editor/esm/vs/base/browser/dom")),s=e("node_modules/monaco-editor/esm/vs/base/browser/fastDomNode"),d=e("node_modules/monaco-editor/esm/vs/base/browser/globalMouseMoveMonitor"),l=n.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/platform")),h=n.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/strings")),m=e("node_modules/monaco-editor/esm/vs/editor/browser/view/viewLayer"),u=e("node_modules/monaco-editor/esm/vs/editor/browser/view/viewPart"),p=e("node_modules/monaco-editor/esm/vs/editor/common/core/range"),c=e("node_modules/monaco-editor/esm/vs/editor/common/view/minimapCharRenderer"),_=e("node_modules/monaco-editor/esm/vs/editor/common/view/runtimeMinimapCharRenderer"),f=n.__importStar(e("node_modules/monaco-editor/esm/vs/editor/common/view/viewEvents")),v=e("node_modules/monaco-editor/esm/vs/platform/theme/common/colorRegistry"),g=e("node_modules/monaco-editor/esm/vs/platform/theme/common/themeService"),L=140,w=function(){function e(e){var t=e.editor.pixelRatio,i=e.editor.layoutInfo,o=e.editor.viewInfo,n=e.editor.fontInfo;this.renderMinimap=0|i.renderMinimap,this.scrollBeyondLastLine=o.scrollBeyondLastLine,this.showSlider=o.minimap.showSlider,this.pixelRatio=t,this.typicalHalfwidthCharacterWidth=n.typicalHalfwidthCharacterWidth,this.lineHeight=e.editor.lineHeight,this.minimapLeft=i.minimapLeft,this.minimapWidth=i.minimapWidth,this.minimapHeight=i.height,this.canvasInnerWidth=Math.max(1,Math.floor(t*this.minimapWidth)),this.canvasInnerHeight=Math.max(1,Math.floor(t*this.minimapHeight)),this.canvasOuterWidth=this.canvasInnerWidth/t,this.canvasOuterHeight=this.canvasInnerHeight/t}return e.prototype.equals=function(e){return this.renderMinimap===e.renderMinimap&&this.scrollBeyondLastLine===e.scrollBeyondLastLine&&this.showSlider===e.showSlider&&this.pixelRatio===e.pixelRatio&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.lineHeight===e.lineHeight&&this.minimapLeft===e.minimapLeft&&this.minimapWidth===e.minimapWidth&&this.minimapHeight===e.minimapHeight&&this.canvasInnerWidth===e.canvasInnerWidth&&this.canvasInnerHeight===e.canvasInnerHeight&&this.canvasOuterWidth===e.canvasOuterWidth&&this.canvasOuterHeight===e.canvasOuterHeight},e}(),b=function(){function e(e,t,i,o,n,r,a){this.scrollTop=e,this.scrollHeight=t,this._computedSliderRatio=i,this.sliderTop=o,this.sliderHeight=n,this.startLineNumber=r,this.endLineNumber=a}return e.prototype.getDesiredScrollTopFromDelta=function(e){var t=this.sliderTop+e;return Math.round(t/this._computedSliderRatio)},e.create=function(t,o,n,r,a,s,d,l,h){var m,u=t.pixelRatio,p=i(t.renderMinimap),c=Math.floor(t.canvasInnerHeight/p),_=t.lineHeight;if(a&&n!==s){var f=n-o+1;m=Math.floor(f*p/u)}else{var v=r/_;m=Math.floor(v*p/u)}var g;g=t.scrollBeyondLastLine?(s-1)*p/u:Math.max(0,s*p/u-m),g=Math.min(t.minimapHeight-m,g);var L=g/(l-r),w=d*L;if(c>=s){var b=1,y=s;return new e(d,l,L,w,m,b,y)}var b=Math.max(1,Math.floor(o-w*u/p));h&&h.scrollHeight===l&&(h.scrollTop>d&&(b=Math.min(b,h.startLineNumber)),h.scrollTopo;o++)if(-1===i[o].dy)return!1;return!0},e.prototype._get=function(){var e=this._renderedLines._get();return{imageData:this._imageData,rendLineNumberStart:e.rendLineNumberStart,lines:e.lines}},e.prototype.onLinesChanged=function(e){return this._renderedLines.onLinesChanged(e.fromLineNumber,e.toLineNumber)},e.prototype.onLinesDeleted=function(e){this._renderedLines.onLinesDeleted(e.fromLineNumber,e.toLineNumber)},e.prototype.onLinesInserted=function(e){this._renderedLines.onLinesInserted(e.fromLineNumber,e.toLineNumber)},e.prototype.onTokensChanged=function(e){return this._renderedLines.onTokensChanged(e.ranges)},e}(),N=function(){function e(t,i,o,n){this._backgroundFillData=e._createBackgroundFillData(i,o,n),this._buffers=[t.createImageData(i,o),t.createImageData(i,o)],this._lastUsedBuffer=0}return e.prototype.getBuffer=function(){this._lastUsedBuffer=1-this._lastUsedBuffer;var e=this._buffers[this._lastUsedBuffer];return e.data.set(this._backgroundFillData),e},e._createBackgroundFillData=function(e,t,i){for(var o=i.r,n=i.g,r=i.b,a=new Uint8ClampedArray(e*t*4),s=0,d=0;t>d;d++)for(var l=0;e>l;l++)a[s]=o,a[s+1]=n,a[s+2]=r,a[s+3]=255,s+=4;return a},e}(),D=function(e){function t(t){var o=e.call(this,t)||this;return o._options=new w(o._context.configuration),o._lastRenderData=null,o._buffers=null,o._domNode=s.createFastDomNode(document.createElement("div")),u.PartFingerprints.write(o._domNode,8),o._domNode.setClassName(o._getMinimapDomNodeClassName()),o._domNode.setPosition("absolute"),o._domNode.setAttribute("role","presentation"),o._domNode.setAttribute("aria-hidden","true"),o._shadow=s.createFastDomNode(document.createElement("div")),o._shadow.setClassName("minimap-shadow-hidden"),o._domNode.appendChild(o._shadow),o._canvas=s.createFastDomNode(document.createElement("canvas")),o._canvas.setPosition("absolute"),o._canvas.setLeft(0),o._domNode.appendChild(o._canvas),o._slider=s.createFastDomNode(document.createElement("div")),o._slider.setPosition("absolute"),o._slider.setClassName("minimap-slider"),o._slider.setLayerHinting(!0),o._domNode.appendChild(o._slider),o._sliderHorizontal=s.createFastDomNode(document.createElement("div")),o._sliderHorizontal.setPosition("absolute"),o._sliderHorizontal.setClassName("minimap-slider-horizontal"),o._slider.appendChild(o._sliderHorizontal),o._tokensColorTracker=c.MinimapTokensColorTracker.getInstance(),o._applyLayout(),o._mouseDownListener=a.addStandardDisposableListener(o._canvas.domNode,"mousedown",function(e){e.preventDefault();var t=o._options.renderMinimap;if(0!==t&&o._lastRenderData){var n=i(t),r=o._options.pixelRatio*e.browserEvent.offsetY,a=Math.floor(r/n),s=a+o._lastRenderData.renderedLayout.startLineNumber;s=Math.min(s,o._context.model.getLineCount()),o._context.privateViewEventBus.emit(new f.ViewRevealRangeRequestEvent(new p.Range(s,1,s,1),1,!1,0))}}),o._sliderMouseMoveMonitor=new d.GlobalMouseMoveMonitor,o._sliderMouseDownListener=a.addStandardDisposableListener(o._slider.domNode,"mousedown",function(e){if(e.preventDefault(),e.leftButton&&o._lastRenderData){var t=e.posy,i=e.posx,n=o._lastRenderData.renderedLayout;o._slider.toggleClassName("active",!0),o._sliderMouseMoveMonitor.startMonitoring(d.standardMouseMoveMerger,function(e){var r=Math.abs(e.posx-i);if(l.isWindows&&r>L)return void o._context.viewLayout.setScrollPositionNow({scrollTop:n.scrollTop});var a=e.posy-t;o._context.viewLayout.setScrollPositionNow({scrollTop:n.getDesiredScrollTopFromDelta(a)})},function(){o._slider.toggleClassName("active",!1)})}}),o}return r(t,e),t.prototype.dispose=function(){this._mouseDownListener.dispose(),this._sliderMouseMoveMonitor.dispose(),this._sliderMouseDownListener.dispose(),e.prototype.dispose.call(this)},t.prototype._getMinimapDomNodeClassName=function(){return"always"===this._options.showSlider?"minimap slider-always":"minimap slider-mouseover"},t.prototype.getDomNode=function(){return this._domNode},t.prototype._applyLayout=function(){this._domNode.setLeft(this._options.minimapLeft),this._domNode.setWidth(this._options.minimapWidth),this._domNode.setHeight(this._options.minimapHeight),this._shadow.setHeight(this._options.minimapHeight),this._canvas.setWidth(this._options.canvasOuterWidth),this._canvas.setHeight(this._options.canvasOuterHeight),this._canvas.domNode.width=this._options.canvasInnerWidth,this._canvas.domNode.height=this._options.canvasInnerHeight,this._slider.setWidth(this._options.minimapWidth)},t.prototype._getBuffer=function(){return this._buffers||(this._buffers=new N(this._canvas.domNode.getContext("2d"),this._options.canvasInnerWidth,this._options.canvasInnerHeight,this._tokensColorTracker.getColor(2))),this._buffers.getBuffer()},t.prototype._onOptionsMaybeChanged=function(){var e=new w(this._context.configuration);return this._options.equals(e)?!1:(this._options=e,this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName()),!0)},t.prototype.onConfigurationChanged=function(){return this._onOptionsMaybeChanged()},t.prototype.onFlushed=function(){return this._lastRenderData=null,!0},t.prototype.onLinesChanged=function(e){return this._lastRenderData?this._lastRenderData.onLinesChanged(e):!1},t.prototype.onLinesDeleted=function(e){return this._lastRenderData&&this._lastRenderData.onLinesDeleted(e),!0},t.prototype.onLinesInserted=function(e){return this._lastRenderData&&this._lastRenderData.onLinesInserted(e),!0},t.prototype.onScrollChanged=function(){return!0},t.prototype.onTokensChanged=function(e){return this._lastRenderData?this._lastRenderData.onTokensChanged(e):!1},t.prototype.onTokensColorsChanged=function(){return this._lastRenderData=null,this._buffers=null,!0},t.prototype.onZonesChanged=function(){return this._lastRenderData=null,!0},t.prototype.prepareRender=function(){},t.prototype.render=function(e){var t=this._options.renderMinimap;if(0===t)return this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),void this._sliderHorizontal.setHeight(0);this._shadow.setClassName(e.scrollLeft+e.viewportWidth>=e.scrollWidth?"minimap-shadow-hidden":"minimap-shadow-visible");var i=b.create(this._options,e.visibleRange.startLineNumber,e.visibleRange.endLineNumber,e.viewportHeight,e.viewportData.whitespaceViewportData.length>0,this._context.model.getLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setTop(i.sliderTop),this._slider.setHeight(i.sliderHeight);var n=e.scrollLeft/this._options.typicalHalfwidthCharacterWidth,r=Math.min(this._options.minimapWidth,Math.round(n*o(this._options.renderMinimap)/this._options.pixelRatio));this._sliderHorizontal.setLeft(r),this._sliderHorizontal.setWidth(this._options.minimapWidth-r),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(i.sliderHeight),this._lastRenderData=this.renderLines(i)},t.prototype.renderLines=function(e){var o=this._options.renderMinimap,n=e.startLineNumber,r=e.endLineNumber,a=i(o);if(this._lastRenderData&&this._lastRenderData.linesEquals(e)){var s=this._lastRenderData._get();return new C(e,s.imageData,s.lines)}for(var d=this._getBuffer(),l=t._renderUntouchedLines(d,n,r,a,this._lastRenderData),h=l[0],m=l[1],u=l[2],p=this._context.model.getMinimapLinesRenderingData(n,r,u),c=p.tabSize,f=this._tokensColorTracker.getColor(2),v=this._tokensColorTracker.backgroundIsLight(),g=0,L=[],w=0,b=r-n+1;b>w;w++)u[w]&&t._renderLine(d,f,v,o,this._tokensColorTracker,_.getOrCreateMinimapCharRenderer(),g,c,p.data[w]),L[w]=new y(g),g+=a;var N=-1===h?0:h,D=-1===m?d.height:m,M=D-N,R=this._canvas.domNode.getContext("2d");return R.putImageData(d,0,0,0,N,d.width,M),new C(e,d,L)},t._renderUntouchedLines=function(e,t,i,o,n){var r=[];if(!n){for(var a=0,s=i-t+1;s>a;a++)r[a]=!0;return[-1,-1,r]}for(var d=n._get(),l=d.imageData.data,h=d.rendLineNumberStart,m=d.lines,u=m.length,p=e.width,c=e.data,_=(i-t+1)*o*p*4,f=-1,v=-1,g=-1,L=-1,w=-1,b=-1,y=0,C=t;i>=C;C++){var N=C-t,D=C-h,M=D>=0&&u>D?m[D].dy:-1;if(-1!==M){var R=M*p*4,H=(M+o)*p*4,x=y*p*4,W=(y+o)*p*4;L===R&&b===x?(L=H,b=W):(-1!==g&&(c.set(l.subarray(g,L),w),-1===f&&0===g&&g===w&&(f=L),-1===v&&L===_&&g===w&&(v=g)),g=R,L=H,w=x,b=W),r[N]=!1,y+=o}else r[N]=!0,y+=o}-1!==g&&(c.set(l.subarray(g,L),w),-1===f&&0===g&&g===w&&(f=L),-1===v&&L===_&&g===w&&(v=g));var k=-1===f?-1:f/(4*p),I=-1===v?-1:v/(4*p);return[k,I,r]},t._renderLine=function(e,t,i,n,r,a,s,d,l){for(var m=l.content,u=l.tokens,p=o(n),c=e.width-p,_=0,f=0,v=0,g=0,L=u.getCount();L>g;g++)for(var w=u.getEndOffset(g),b=u.getForeground(g),y=r.getColor(b);w>f;f++){if(_>c)return;var C=m.charCodeAt(f);if(9===C){var N=d-(f+v)%d;v+=N-1,_+=N*p}else if(32===C)_+=p;else for(var D=h.isFullWidthCharacter(C)?2:1,M=0;D>M;M++)if(2===n?a.x2RenderChar(e,_,s,C,y,t,i):1===n?a.x1RenderChar(e,_,s,C,y,t,i):4===n?a.x2BlockRenderChar(e,_,s,y,t,i):a.x1BlockRenderChar(e,_,s,y,t,i),_+=p,_>c)return}},t}(u.ViewPart);t.Minimap=D,g.registerThemingParticipant(function(e,t){var i=e.getColor(v.scrollbarSliderBackground);if(i){var o=i.transparent(.5);t.addRule(".monaco-editor .minimap-slider, .monaco-editor .minimap-slider .minimap-slider-horizontal { background: "+o+"; }")}var n=e.getColor(v.scrollbarSliderHoverBackground);if(n){var r=n.transparent(.5);t.addRule(".monaco-editor .minimap-slider:hover, .monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: "+r+"; }")}var a=e.getColor(v.scrollbarSliderActiveBackground);if(a){var s=a.transparent(.5);t.addRule(".monaco-editor .minimap-slider.active, .monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: "+s+"; }")}var d=e.getColor(v.scrollbarShadow);d&&t.addRule(".monaco-editor .minimap-shadow-visible { box-shadow: "+d+" -6px 0 6px -6px inset; }")})}); ;/*!node_modules/monaco-editor/esm/vs/editor/browser/viewParts/overlayWidgets/overlayWidgets.js*/ define("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/overlayWidgets/overlayWidgets",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=this&&this.__extends||function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),i=t("node_modules/monaco-editor/esm/vs/base/browser/fastDomNode"),r=t("node_modules/monaco-editor/esm/vs/editor/browser/view/viewPart"),n=function(t){function e(e){var o=t.call(this,e)||this;return o._widgets={},o._verticalScrollbarWidth=o._context.configuration.editor.layoutInfo.verticalScrollbarWidth,o._minimapWidth=o._context.configuration.editor.layoutInfo.minimapWidth,o._horizontalScrollbarHeight=o._context.configuration.editor.layoutInfo.horizontalScrollbarHeight,o._editorHeight=o._context.configuration.editor.layoutInfo.height,o._editorWidth=o._context.configuration.editor.layoutInfo.width,o._domNode=i.createFastDomNode(document.createElement("div")),r.PartFingerprints.write(o._domNode,4),o._domNode.setClassName("overlayWidgets"),o}return o(e,t),e.prototype.dispose=function(){t.prototype.dispose.call(this),this._widgets={}},e.prototype.getDomNode=function(){return this._domNode},e.prototype.onConfigurationChanged=function(t){return t.layoutInfo?(this._verticalScrollbarWidth=this._context.configuration.editor.layoutInfo.verticalScrollbarWidth,this._minimapWidth=this._context.configuration.editor.layoutInfo.minimapWidth,this._horizontalScrollbarHeight=this._context.configuration.editor.layoutInfo.horizontalScrollbarHeight,this._editorHeight=this._context.configuration.editor.layoutInfo.height,this._editorWidth=this._context.configuration.editor.layoutInfo.width,!0):!1},e.prototype.addWidget=function(t){var e=i.createFastDomNode(t.getDomNode());this._widgets[t.getId()]={widget:t,preference:null,domNode:e},e.setPosition("absolute"),e.setAttribute("widgetId",t.getId()),this._domNode.appendChild(e),this.setShouldRender()},e.prototype.setWidgetPosition=function(t,e){var o=this._widgets[t.getId()];return o.preference===e?!1:(o.preference=e,this.setShouldRender(),!0)},e.prototype.removeWidget=function(t){var e=t.getId();if(this._widgets.hasOwnProperty(e)){var o=this._widgets[e],i=o.domNode.domNode;delete this._widgets[e],i.parentNode.removeChild(i),this.setShouldRender()}},e.prototype._renderWidget=function(t){var e=t.domNode;if(null===t.preference)return void e.unsetTop();if(0===t.preference)e.setTop(0),e.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(1===t.preference){var o=e.domNode.clientHeight;e.setTop(this._editorHeight-o-2*this._horizontalScrollbarHeight),e.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else 2===t.preference&&(e.setTop(0),e.domNode.style.right="50%")},e.prototype.prepareRender=function(){},e.prototype.render=function(){this._domNode.setWidth(this._editorWidth);for(var t=Object.keys(this._widgets),e=0,o=t.length;o>e;e++){var i=t[e];this._renderWidget(this._widgets[i])}},e}(r.ViewPart);e.ViewOverlayWidgets=n}); ;/*!node_modules/monaco-editor/esm/vs/editor/browser/viewParts/overviewRuler/decorationsOverviewRuler.js*/ define("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/overviewRuler/decorationsOverviewRuler",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=this&&this.__extends||function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),i=t("node_modules/monaco-editor/esm/vs/base/browser/fastDomNode"),r=t("node_modules/monaco-editor/esm/vs/base/common/color"),s=t("node_modules/monaco-editor/esm/vs/editor/browser/view/viewPart"),n=t("node_modules/monaco-editor/esm/vs/editor/common/core/position"),h=t("node_modules/monaco-editor/esm/vs/editor/common/modes"),d=t("node_modules/monaco-editor/esm/vs/editor/common/view/editorColorRegistry"),a=function(){function t(t,e){this.lineHeight=t.editor.lineHeight,this.pixelRatio=t.editor.pixelRatio,this.overviewRulerLanes=t.editor.viewInfo.overviewRulerLanes,this.renderBorder=t.editor.viewInfo.overviewRulerBorder;var o=e.getColor(d.editorOverviewRulerBorder);this.borderColor=o?o.toString():null,this.hideCursor=t.editor.viewInfo.hideCursorInOverviewRuler;var i=e.getColor(d.editorCursorForeground);this.cursorColor=i?i.transparent(.7).toString():null,this.themeType=e.type;var s=t.editor.viewInfo.minimap.enabled,n=t.editor.viewInfo.minimap.side,a=s?h.TokenizationRegistry.getDefaultBackground():null;this.backgroundColor=null===a||"left"===n?null:r.Color.Format.CSS.formatHex(a);var l=t.editor.layoutInfo.overviewRuler;this.top=l.top,this.right=l.right,this.domWidth=l.width,this.domHeight=l.height,this.canvasWidth=this.domWidth*this.pixelRatio|0,this.canvasHeight=this.domHeight*this.pixelRatio|0;var u=this._initLanes(1,this.canvasWidth,this.overviewRulerLanes),c=u[0],g=u[1];this.x=c,this.w=g}return t.prototype._initLanes=function(t,e,o){var i=e-t;if(o>=3){var r=Math.floor(i/3),s=Math.floor(i/3),n=i-r-s,h=t,d=h+r,a=h+r+n;return[[0,h,d,h,a,h,d,h],[0,r,n,r+n,s,r+n+s,n+s,r+n+s]]}if(2===o){var r=Math.floor(i/2),s=i-r,h=t,a=h+r;return[[0,h,h,h,a,h,h,h],[0,r,r,r,s,r+s,r+s,r+s]]}var l=t,u=i;return[[0,l,l,l,l,l,l,l],[0,u,u,u,u,u,u,u]]},t.prototype.equals=function(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&&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},t}(),l=function(t){function e(e){var o=t.call(this,e)||this;return o._domNode=i.createFastDomNode(document.createElement("canvas")),o._domNode.setClassName("decorationsOverviewRuler"),o._domNode.setPosition("absolute"),o._domNode.setLayerHinting(!0),o._domNode.setAttribute("aria-hidden","true"),o._updateSettings(!1),o._tokensColorTrackerListener=h.TokenizationRegistry.onDidChange(function(t){t.changedColorMap&&o._updateSettings(!0)}),o._cursorPositions=[],o}return o(e,t),e.prototype.dispose=function(){t.prototype.dispose.call(this),this._tokensColorTrackerListener.dispose()},e.prototype._updateSettings=function(t){var e=new a(this._context.configuration,this._context.theme);return this._settings&&this._settings.equals(e)?!1:(this._settings=e,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,t&&this._render(),!0)},e.prototype.onConfigurationChanged=function(){return this._updateSettings(!1)},e.prototype.onCursorStateChanged=function(t){this._cursorPositions=[];for(var e=0,o=t.selections.length;o>e;e++)this._cursorPositions[e]=t.selections[e].getPosition();return this._cursorPositions.sort(n.Position.compare),!0},e.prototype.onDecorationsChanged=function(){return!0},e.prototype.onFlushed=function(){return!0},e.prototype.onScrollChanged=function(t){return t.scrollHeightChanged},e.prototype.onZonesChanged=function(){return!0},e.prototype.onThemeChanged=function(){return this._context.model.invalidateOverviewRulerColorCache(),this._updateSettings(!1)},e.prototype.getDomNode=function(){return this._domNode.domNode},e.prototype.prepareRender=function(){},e.prototype.render=function(){this._render()},e.prototype._render=function(){var t=this._settings.canvasWidth,e=this._settings.canvasHeight,o=this._settings.lineHeight,i=this._context.viewLayout,r=this._context.viewLayout.getScrollHeight(),s=e/r,n=this._context.model.getAllOverviewRulerDecorations(this._context.theme),h=6*this._settings.pixelRatio|0,d=h/2|0,a=this._domNode.domNode.getContext("2d");null===this._settings.backgroundColor?a.clearRect(0,0,t,e):(a.fillStyle=this._settings.backgroundColor,a.fillRect(0,0,t,e));var l=this._settings.x,u=this._settings.w,c=Object.keys(n);c.sort();for(var g=0,v=c.length;v>g;g++){var m=c[g],_=n[m];a.fillStyle=m;for(var p=0,f=0,C=0,w=0,y=_.length;y>w;w++){var R=_[3*w],b=_[3*w+1],N=_[3*w+2],x=i.getVerticalOffsetForLineNumber(b)*s|0,H=(i.getVerticalOffsetForLineNumber(N)+o)*s|0,k=H-x;if(h>k){var L=(x+H)/2|0;d>L?L=d:L+d>e&&(L=e-d),x=L-d,H=L+d}x>C+1||R!==p?(0!==w&&a.fillRect(l[p],f,u[p],C-f),p=R,f=x,C=H):H>C&&(C=H)}a.fillRect(l[p],f,u[p],C-f)}if(!this._settings.hideCursor&&this._settings.cursorColor){var O=2*this._settings.pixelRatio|0,P=O/2|0,S=this._settings.x[7],T=this._settings.w[7];a.fillStyle=this._settings.cursorColor;for(var f=-100,C=-100,w=0,y=this._cursorPositions.length;y>w;w++){var W=this._cursorPositions[w],L=i.getVerticalOffsetForLineNumber(W.lineNumber)*s|0;P>L?L=P:L+P>e&&(L=e-P);var x=L-P,H=x+O;x>C+1?(0!==w&&a.fillRect(S,f,T,C-f),f=x,C=H):H>C&&(C=H)}a.fillRect(S,f,T,C-f)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(a.beginPath(),a.lineWidth=1,a.strokeStyle=this._settings.borderColor,a.moveTo(0,0),a.lineTo(0,e),a.stroke(),a.moveTo(0,0),a.lineTo(t,0),a.stroke())},e}(s.ViewPart);e.DecorationsOverviewRuler=l}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/view/overviewZoneManager.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/view/overviewZoneManager",function(t,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var e=function(){function t(t,o,e){this.from=0|t,this.to=0|o,this.colorId=0|e}return t.compare=function(t,o){return t.colorId===o.colorId?t.from===o.from?t.to-o.to:t.from-o.from:t.colorId-o.colorId},t}();o.ColorZone=e;var i=function(){function t(t,o,e){this.startLineNumber=t,this.endLineNumber=o,this.color=e,this._colorZone=null}return t.compare=function(t,o){return t.color===o.color?t.startLineNumber===o.startLineNumber?t.endLineNumber-o.endLineNumber:t.startLineNumber-o.startLineNumber:t.colorl;l++){var c=this._zones[l];if(!t){var a=c.getColorZones();if(a){h.push(a);continue}}var _=Math.floor(n*this._getVerticalOffsetForLine(c.startLineNumber)),d=Math.floor(n*(this._getVerticalOffsetForLine(c.endLineNumber)+o)),f=Math.floor((_+d)/2),p=d-f;s>p&&(p=s),0>f-p&&(f=p),f+p>i&&(f=i-p);var g=c.color,m=this._color2Id[g];m||(m=++this._lastAssignedId,this._color2Id[g]=m,this._id2Color[m]=g);var v=new e(f-p,f+p,m);c.setColorZone(v),h.push(v)}return this._colorZonesInvalid=!1,h.sort(e.compare),h},t}();o.OverviewZoneManager=r}); ;/*!node_modules/monaco-editor/esm/vs/editor/browser/viewParts/overviewRuler/overviewRuler.js*/ define("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/overviewRuler/overviewRuler",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=this&&this.__extends||function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),n=e("node_modules/monaco-editor/esm/vs/base/browser/fastDomNode"),i=e("node_modules/monaco-editor/esm/vs/editor/common/view/overviewZoneManager"),r=e("node_modules/monaco-editor/esm/vs/editor/common/viewModel/viewEventHandler"),a=function(e){function t(t,o){var r=e.call(this)||this;return r._context=t,r._domNode=n.createFastDomNode(document.createElement("canvas")),r._domNode.setClassName(o),r._domNode.setPosition("absolute"),r._domNode.setLayerHinting(!0),r._zoneManager=new i.OverviewZoneManager(function(e){return r._context.viewLayout.getVerticalOffsetForLineNumber(e)}),r._zoneManager.setDOMWidth(0),r._zoneManager.setDOMHeight(0),r._zoneManager.setOuterHeight(r._context.viewLayout.getScrollHeight()),r._zoneManager.setLineHeight(r._context.configuration.editor.lineHeight),r._zoneManager.setPixelRatio(r._context.configuration.editor.pixelRatio),r._context.addEventHandler(r),r}return o(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._zoneManager.setLineHeight(this._context.configuration.editor.lineHeight),this._render()),e.pixelRatio&&(this._zoneManager.setPixelRatio(this._context.configuration.editor.pixelRatio),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0},t.prototype.onFlushed=function(){return this._render(),!0},t.prototype.onScrollChanged=function(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0},t.prototype.onZonesChanged=function(){return this._render(),!0},t.prototype.getDomNode=function(){return this._domNode.domNode},t.prototype.setLayout=function(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);var t=!1;t=this._zoneManager.setDOMWidth(e.width)||t,t=this._zoneManager.setDOMHeight(e.height)||t,t&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())},t.prototype.setZones=function(e){this._zoneManager.setZones(e),this._render()},t.prototype._render=function(){if(0===this._zoneManager.getOuterHeight())return!1;var e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),o=this._zoneManager.resolveColorZones(),n=this._zoneManager.getId2Color(),i=this._domNode.domNode.getContext("2d");return i.clearRect(0,0,e,t),o.length>0&&this._renderOneLane(i,o,n,e),!0},t.prototype._renderOneLane=function(e,t,o,n){for(var i=0,r=0,a=0,s=0,d=t;s=_?a=Math.max(a,c):(e.fillRect(0,r,n,a-r),r=_,a=c)}e.fillRect(0,r,n,a-r)},t}(r.ViewEventHandler);t.OverviewRuler=a}); ;/*!node_modules/monaco-editor/esm/vs/editor/browser/viewParts/rulers/rulers.js*/ define("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/rulers/rulers",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=this&&this.__extends||function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),r=e("node_modules/monaco-editor/esm/vs/base/browser/fastDomNode"),i=e("node_modules/monaco-editor/esm/vs/editor/browser/view/viewPart"),n=e("node_modules/monaco-editor/esm/vs/editor/common/view/editorColorRegistry"),s=e("node_modules/monaco-editor/esm/vs/platform/theme/common/themeService"),d=function(e){function t(t){var o=e.call(this,t)||this;return o.domNode=r.createFastDomNode(document.createElement("div")),o.domNode.setAttribute("role","presentation"),o.domNode.setAttribute("aria-hidden","true"),o.domNode.setClassName("view-rulers"),o._renderedRulers=[],o._rulers=o._context.configuration.editor.viewInfo.rulers,o._typicalHalfwidthCharacterWidth=o._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,o}return o(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.viewInfo||e.layoutInfo||e.fontInfo?(this._rulers=this._context.configuration.editor.viewInfo.rulers,this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,!0):!1},t.prototype.onScrollChanged=function(e){return e.scrollHeightChanged},t.prototype.prepareRender=function(){},t.prototype._ensureRulersCount=function(){var e=this._renderedRulers.length,t=this._rulers.length;if(e!==t)if(t>e)for(var o=this._context.model.getOptions().tabSize,i=o,n=t-e;n>0;){var s=r.createFastDomNode(document.createElement("div"));s.setClassName("view-ruler"),s.setWidth(i),this.domNode.appendChild(s),this._renderedRulers.push(s),n--}else for(var d=e-t;d>0;){var s=this._renderedRulers.pop();this.domNode.removeChild(s),d--}},t.prototype.render=function(e){this._ensureRulersCount();for(var t=0,o=this._rulers.length;o>t;t++){var r=this._renderedRulers[t];r.setHeight(Math.min(e.scrollHeight,1e6)),r.setLeft(this._rulers[t]*this._typicalHalfwidthCharacterWidth)}},t}(i.ViewPart);t.Rulers=d,s.registerThemingParticipant(function(e,t){var o=e.getColor(n.editorRuler);o&&t.addRule(".monaco-editor .view-ruler { box-shadow: 1px 0 0 0 "+o+" inset; }")})}); ;/*!node_modules/monaco-editor/esm/vs/editor/browser/viewParts/scrollDecoration/scrollDecoration.js*/ define("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/scrollDecoration/scrollDecoration",function(o,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=this&&this.__extends||function(){var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,t){o.__proto__=t}||function(o,t){for(var e in t)t.hasOwnProperty(e)&&(o[e]=t[e])})(t,e)};return function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),r=o("node_modules/monaco-editor/esm/vs/base/browser/fastDomNode"),i=o("node_modules/monaco-editor/esm/vs/editor/browser/view/viewPart"),n=o("node_modules/monaco-editor/esm/vs/platform/theme/common/colorRegistry"),s=o("node_modules/monaco-editor/esm/vs/platform/theme/common/themeService"),d=function(o){function t(t){var e=o.call(this,t)||this;return e._scrollTop=0,e._width=0,e._updateWidth(),e._shouldShow=!1,e._useShadows=e._context.configuration.editor.viewInfo.scrollbar.useShadows,e._domNode=r.createFastDomNode(document.createElement("div")),e._domNode.setAttribute("role","presentation"),e._domNode.setAttribute("aria-hidden","true"),e}return e(t,o),t.prototype.dispose=function(){o.prototype.dispose.call(this)},t.prototype._updateShouldShow=function(){var o=this._useShadows&&this._scrollTop>0;return this._shouldShow!==o?(this._shouldShow=o,!0):!1},t.prototype.getDomNode=function(){return this._domNode},t.prototype._updateWidth=function(){var o=this._context.configuration.editor.layoutInfo,t=0;return t=0===o.renderMinimap||o.minimapWidth>0&&0===o.minimapLeft?o.width:o.width-o.minimapWidth-o.verticalScrollbarWidth,this._width!==t?(this._width=t,!0):!1},t.prototype.onConfigurationChanged=function(o){var t=!1;return o.viewInfo&&(this._useShadows=this._context.configuration.editor.viewInfo.scrollbar.useShadows),o.layoutInfo&&(t=this._updateWidth()),this._updateShouldShow()||t},t.prototype.onScrollChanged=function(o){return this._scrollTop=o.scrollTop,this._updateShouldShow()},t.prototype.prepareRender=function(){},t.prototype.render=function(){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")},t}(i.ViewPart);t.ScrollDecorationViewPart=d,s.registerThemingParticipant(function(o,t){var e=o.getColor(n.scrollbarShadow);e&&t.addRule(".monaco-editor .scroll-decoration { box-shadow: "+e+" 0 6px 6px -6px inset; }")})}); ;/*!node_modules/monaco-editor/esm/vs/editor/browser/viewParts/selections/selections.js*/ define("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/selections/selections",function(e,t){"use strict";function n(e){return new d(e)}function o(e){return new _(e.lineNumber,e.ranges.map(n))}function i(e){return 0>e?-e:e}Object.defineProperty(t,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),l=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),s=r.__importStar(e("node_modules/monaco-editor/esm/vs/base/browser/browser")),a=e("node_modules/monaco-editor/esm/vs/editor/browser/view/dynamicViewOverlay"),c=e("node_modules/monaco-editor/esm/vs/platform/theme/common/colorRegistry"),u=e("node_modules/monaco-editor/esm/vs/platform/theme/common/themeService"),d=function(){function e(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null}return e}(),_=function(){function e(e,t){this.lineNumber=e,this.ranges=t}return e}(),h=s.isEdgeOrIE,f=function(e){function t(t){var n=e.call(this)||this;return n._previousFrameVisibleRangesWithStyle=[],n._context=t,n._lineHeight=n._context.configuration.editor.lineHeight,n._roundedSelection=n._context.configuration.editor.viewInfo.roundedSelection,n._typicalHalfwidthCharacterWidth=n._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,n._selections=[],n._renderResult=null,n._context.addEventHandler(n),n}return l(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.viewInfo&&(this._roundedSelection=this._context.configuration.editor.viewInfo.roundedSelection),e.fontInfo&&(this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth),!0},t.prototype.onCursorStateChanged=function(e){return this._selections=e.selections.slice(0),!0},t.prototype.onDecorationsChanged=function(){return!0},t.prototype.onFlushed=function(){return!0},t.prototype.onLinesChanged=function(){return!0},t.prototype.onLinesDeleted=function(){return!0},t.prototype.onLinesInserted=function(){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(){return!0},t.prototype._visibleRangesHaveGaps=function(e){for(var t=0,n=e.length;n>t;t++){var o=e[t];if(o.ranges.length>1)return!0}return!1},t.prototype._enrichVisibleRangesWithStyle=function(e,t,n){var o=this._typicalHalfwidthCharacterWidth/4,r=null,l=null;if(n&&n.length>0&&t.length>0){var s=t[0].lineNumber;if(s===e.startLineNumber)for(var a=0;!r&&a=0;a--)n[a].lineNumber===c&&(l=n[a].ranges[0]);r&&!r.startStyle&&(r=null),l&&!l.startStyle&&(l=null)}for(var a=0,u=t.length;u>a;a++){var d=t[a].ranges[0],_=d.left,h=d.left+d.width,f={top:0,bottom:0},p={top:0,bottom:0};if(a>0){var g=t[a-1].ranges[0].left,S=t[a-1].ranges[0].left+t[a-1].ranges[0].width;i(_-g)g&&(f.top=1),i(h-S)g&&S>h&&(p.top=1)}else r&&(f.top=r.startStyle.top,p.top=r.endStyle.top);if(u>a+1){var E=t[a+1].ranges[0].left,m=t[a+1].ranges[0].left+t[a+1].ranges[0].width;i(_-E)E&&m>_&&(f.bottom=1),i(h-m)h&&(p.bottom=1)}else l&&(f.bottom=l.startStyle.bottom,p.bottom=l.endStyle.bottom);d.startStyle=f,d.endStyle=p}},t.prototype._getVisibleRangesWithStyle=function(e,t,n){var i=t.linesVisibleRangesForRange(e,!0)||[],r=i.map(o),l=this._visibleRangesHaveGaps(r);return h||l||!this._roundedSelection||this._enrichVisibleRangesWithStyle(t.visibleRange,r,n),r},t.prototype._createSelectionPiece=function(e,t,n,o,i){return'
'},t.prototype._actualRenderOneSelection=function(e,n,o,i){for(var r=i.length>0&&i[0].ranges[0].startStyle,l=this._lineHeight.toString(),s=(this._lineHeight-1).toString(),a=i.length>0?i[0].lineNumber:0,c=i.length>0?i[i.length-1].lineNumber:0,u=0,d=i.length;d>u;u++){for(var _=i[u],h=_.lineNumber,f=h-n,p=o&&(h===c||h===a)?s:l,g=o&&h===a?1:0,S="",E=0,m=_.ranges.length;m>E;E++){var v=_.ranges[E];if(r){var y=v.startStyle,O=v.endStyle;if(1===y.top||1===y.bottom){S+=this._createSelectionPiece(g,p,t.SELECTION_CLASS_NAME,v.left-t.ROUNDED_PIECE_WIDTH,t.ROUNDED_PIECE_WIDTH);var T=t.EDITOR_BACKGROUND_CLASS_NAME;1===y.top&&(T+=" "+t.SELECTION_TOP_RIGHT),1===y.bottom&&(T+=" "+t.SELECTION_BOTTOM_RIGHT),S+=this._createSelectionPiece(g,p,T,v.left-t.ROUNDED_PIECE_WIDTH,t.ROUNDED_PIECE_WIDTH)}if(1===O.top||1===O.bottom){S+=this._createSelectionPiece(g,p,t.SELECTION_CLASS_NAME,v.left+v.width,t.ROUNDED_PIECE_WIDTH);var b=t.EDITOR_BACKGROUND_CLASS_NAME;1===O.top&&(b+=" "+t.SELECTION_TOP_LEFT),1===O.bottom&&(b+=" "+t.SELECTION_BOTTOM_LEFT),S+=this._createSelectionPiece(g,p,b,v.left+v.width,t.ROUNDED_PIECE_WIDTH)}}var C=t.SELECTION_CLASS_NAME;if(r){var y=v.startStyle,O=v.endStyle;0===y.top&&(C+=" "+t.SELECTION_TOP_LEFT),0===y.bottom&&(C+=" "+t.SELECTION_BOTTOM_LEFT),0===O.top&&(C+=" "+t.SELECTION_TOP_RIGHT),0===O.bottom&&(C+=" "+t.SELECTION_BOTTOM_RIGHT)}S+=this._createSelectionPiece(g,p,C,v.left,v.width)}e[f]+=S}},t.prototype.prepareRender=function(e){for(var t=[],n=e.visibleRange.startLineNumber,o=e.visibleRange.endLineNumber,i=n;o>=i;i++){var r=i-n;t[r]=""}for(var l=[],s=0,a=this._selections.length;a>s;s++){var c=this._selections[s];if(c.isEmpty())l[s]=null;else{var u=this._getVisibleRangesWithStyle(c,e,this._previousFrameVisibleRangesWithStyle[s]);l[s]=u,this._actualRenderOneSelection(t,n,this._selections.length>1,u)}}this._previousFrameVisibleRangesWithStyle=l,this._renderResult=t},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return 0>n||n>=this._renderResult.length?"":this._renderResult[n]},t.SELECTION_CLASS_NAME="selected-text",t.SELECTION_TOP_LEFT="top-left-radius",t.SELECTION_BOTTOM_LEFT="bottom-left-radius",t.SELECTION_TOP_RIGHT="top-right-radius",t.SELECTION_BOTTOM_RIGHT="bottom-right-radius",t.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",t.ROUNDED_PIECE_WIDTH=10,t}(a.DynamicViewOverlay);t.SelectionsOverlay=f,u.registerThemingParticipant(function(e,t){var n=e.getColor(c.editorSelectionBackground);n&&t.addRule(".monaco-editor .focused .selected-text { background-color: "+n+"; }");var o=e.getColor(c.editorInactiveSelection);o&&t.addRule(".monaco-editor .selected-text { background-color: "+o+"; }");var i=e.getColor(c.editorSelectionForeground);i&&t.addRule(".monaco-editor .view-line span.inline-selected-text { color: "+i+"; }")})}); ;/*!node_modules/monaco-editor/esm/vs/editor/browser/viewParts/viewCursors/viewCursor.js*/ define("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/viewCursors/viewCursor",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=t("node_modules/tslib/tslib"),o=i.__importStar(t("node_modules/monaco-editor/esm/vs/base/browser/dom")),n=t("node_modules/monaco-editor/esm/vs/base/browser/fastDomNode"),s=i.__importStar(t("node_modules/monaco-editor/esm/vs/base/common/strings")),r=t("node_modules/monaco-editor/esm/vs/editor/browser/config/configuration"),h=t("node_modules/monaco-editor/esm/vs/editor/common/config/editorOptions"),d=t("node_modules/monaco-editor/esm/vs/editor/common/core/position"),a=t("node_modules/monaco-editor/esm/vs/editor/common/core/range"),l=function(){function t(t,e,i,o,n,s){this.top=t,this.left=e,this.width=i,this.height=o,this.textContent=n,this.textContentClassName=s}return t}(),_=function(){function t(t){this._context=t,this._cursorStyle=this._context.configuration.editor.viewInfo.cursorStyle,this._lineHeight=this._context.configuration.editor.lineHeight,this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(this._context.configuration.editor.viewInfo.cursorWidth,this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=n.createFastDomNode(document.createElement("div")),this._domNode.setClassName("cursor"),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),r.Configuration.applyFontInfo(this._domNode,this._context.configuration.editor.fontInfo),this._domNode.setDisplay("none"),this.updatePosition(new d.Position(1,1)),this._lastRenderedContent="",this._renderData=null}return t.prototype.getDomNode=function(){return this._domNode},t.prototype.getPosition=function(){return this._position},t.prototype.show=function(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)},t.prototype.hide=function(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)},t.prototype.onConfigurationChanged=function(t){return t.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),t.fontInfo&&(r.Configuration.applyFontInfo(this._domNode,this._context.configuration.editor.fontInfo),this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth),t.viewInfo&&(this._cursorStyle=this._context.configuration.editor.viewInfo.cursorStyle,this._lineCursorWidth=Math.min(this._context.configuration.editor.viewInfo.cursorWidth,this._typicalHalfwidthCharacterWidth)),!0},t.prototype.onCursorPositionChanged=function(t){return this.updatePosition(t),!0},t.prototype._prepareRender=function(t){var e="",i="";if(this._cursorStyle===h.TextEditorCursorStyle.Line||this._cursorStyle===h.TextEditorCursorStyle.LineThin){var n=t.visibleRangeForPosition(this._position);if(!n)return null;var r;if(this._cursorStyle===h.TextEditorCursorStyle.Line){if(r=o.computeScreenAwareSize(this._lineCursorWidth>0?this._lineCursorWidth:2),r>2){var d=this._context.model.getLineContent(this._position.lineNumber);e=d.charAt(this._position.column-1)}}else r=o.computeScreenAwareSize(1);var _=n.left;r>=2&&_>=1&&(_-=1);var c=t.getVerticalOffsetForLineNumber(this._position.lineNumber)-t.bigNumbersDelta;return new l(c,_,r,this._lineHeight,e,i)}var u=t.linesVisibleRangesForRange(new a.Range(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column+1),!1);if(!u||0===u.length||0===u[0].ranges.length)return null;var m=u[0].ranges[0],f=m.width<1?this._typicalHalfwidthCharacterWidth:m.width;if(this._cursorStyle===h.TextEditorCursorStyle.Block){var p=this._context.model.getViewLineData(this._position.lineNumber);e=p.content.charAt(this._position.column-1),s.isHighSurrogate(p.content.charCodeAt(this._position.column-1))&&(e+=p.content.charAt(this._position.column));var g=p.tokens.findTokenIndexAtOffset(this._position.column-1);i=p.tokens.getClassName(g)}var C=t.getVerticalOffsetForLineNumber(this._position.lineNumber)-t.bigNumbersDelta,N=this._lineHeight;return(this._cursorStyle===h.TextEditorCursorStyle.Underline||this._cursorStyle===h.TextEditorCursorStyle.UnderlineThin)&&(C+=this._lineHeight-2,N=2),new l(C,m.left,f,N,e,i)},t.prototype.prepareRender=function(t){this._renderData=this._prepareRender(t)},t.prototype.render=function(){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName("cursor "+this._renderData.textContentClassName),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)},t.prototype.updatePosition=function(t){this._position=t},t}();e.ViewCursor=_}); ;/*!node_modules/monaco-editor/esm/vs/editor/browser/viewParts/viewCursors/viewCursors.js*/ define("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/viewCursors/viewCursors",function(o,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var e=this&&this.__extends||function(){var o=function(r,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var e in r)r.hasOwnProperty(e)&&(o[e]=r[e])})(r,e)};return function(r,e){function t(){this.constructor=r}o(r,e),r.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)}}(),t=o("node_modules/monaco-editor/esm/vs/base/browser/fastDomNode"),n=o("node_modules/monaco-editor/esm/vs/base/common/async"),s=o("node_modules/monaco-editor/esm/vs/editor/browser/view/viewPart"),i=o("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/viewCursors/viewCursor"),a=o("node_modules/monaco-editor/esm/vs/editor/common/config/editorOptions"),u=o("node_modules/monaco-editor/esm/vs/editor/common/view/editorColorRegistry"),d=o("node_modules/monaco-editor/esm/vs/platform/theme/common/themeService"),c=function(o){function r(r){var e=o.call(this,r)||this;return e._readOnly=e._context.configuration.editor.readOnly,e._cursorBlinking=e._context.configuration.editor.viewInfo.cursorBlinking,e._cursorStyle=e._context.configuration.editor.viewInfo.cursorStyle,e._cursorSmoothCaretAnimation=e._context.configuration.editor.viewInfo.cursorSmoothCaretAnimation,e._selectionIsEmpty=!0,e._primaryCursor=new i.ViewCursor(e._context),e._secondaryCursors=[],e._renderData=[],e._domNode=t.createFastDomNode(document.createElement("div")),e._domNode.setAttribute("role","presentation"),e._domNode.setAttribute("aria-hidden","true"),e._updateDomClassName(),e._domNode.appendChild(e._primaryCursor.getDomNode()),e._startCursorBlinkAnimation=new n.TimeoutTimer,e._cursorFlatBlinkInterval=new n.IntervalTimer,e._blinkingEnabled=!1,e._editorHasFocus=!1,e._updateBlinking(),e}return e(r,o),r.prototype.dispose=function(){o.prototype.dispose.call(this),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()},r.prototype.getDomNode=function(){return this._domNode},r.prototype.onConfigurationChanged=function(o){o.readOnly&&(this._readOnly=this._context.configuration.editor.readOnly),o.viewInfo&&(this._cursorBlinking=this._context.configuration.editor.viewInfo.cursorBlinking,this._cursorStyle=this._context.configuration.editor.viewInfo.cursorStyle,this._cursorSmoothCaretAnimation=this._context.configuration.editor.viewInfo.cursorSmoothCaretAnimation),this._primaryCursor.onConfigurationChanged(o),this._updateBlinking(),o.viewInfo&&this._updateDomClassName();for(var r=0,e=this._secondaryCursors.length;e>r;r++)this._secondaryCursors[r].onConfigurationChanged(o);return!0},r.prototype._onCursorPositionChanged=function(o,r){if(this._primaryCursor.onCursorPositionChanged(o),this._updateBlinking(),this._secondaryCursors.lengtht;t++){var n=new i.ViewCursor(this._context);this._domNode.domNode.insertBefore(n.getDomNode().domNode,this._primaryCursor.getDomNode().domNode.nextSibling),this._secondaryCursors.push(n)}else if(this._secondaryCursors.length>r.length)for(var s=this._secondaryCursors.length-r.length,t=0;s>t;t++)this._domNode.removeChild(this._secondaryCursors[0].getDomNode()),this._secondaryCursors.splice(0,1);for(var t=0;te;e++)r[e]=o.selections[e].getPosition();this._onCursorPositionChanged(r[0],r.slice(1));var n=o.selections[0].isEmpty();return this._selectionIsEmpty!==n&&(this._selectionIsEmpty=n,this._updateDomClassName()),!0},r.prototype.onDecorationsChanged=function(){return!0},r.prototype.onFlushed=function(){return!0},r.prototype.onFocusChanged=function(o){return this._editorHasFocus=o.isFocused,this._updateBlinking(),!1},r.prototype.onLinesChanged=function(){return!0},r.prototype.onLinesDeleted=function(){return!0},r.prototype.onLinesInserted=function(){return!0},r.prototype.onScrollChanged=function(){return!0},r.prototype.onTokensChanged=function(o){var r=function(r){for(var e=0,t=o.ranges.length;t>e;e++)if(o.ranges[e].fromLineNumber<=r.lineNumber&&r.lineNumber<=o.ranges[e].toLineNumber)return!0;return!1};if(r(this._primaryCursor.getPosition()))return!0;for(var e=0,t=this._secondaryCursors;eo;o++)this._secondaryCursors[o].show();this._isVisible=!0},r.prototype._hide=function(){this._primaryCursor.hide();for(var o=0,r=this._secondaryCursors.length;r>o;o++)this._secondaryCursors[o].hide();this._isVisible=!1},r.prototype.prepareRender=function(o){this._primaryCursor.prepareRender(o);for(var r=0,e=this._secondaryCursors.length;e>r;r++)this._secondaryCursors[r].prepareRender(o)},r.prototype.render=function(o){var r=[],e=0,t=this._primaryCursor.render(o);t&&(r[e++]=t);for(var n=0,s=this._secondaryCursors.length;s>n;n++){var i=this._secondaryCursors[n].render(o);i&&(r[e++]=i)}this._renderData=r},r.prototype.getLastRenderData=function(){return this._renderData},r.BLINK_INTERVAL=500,r}(s.ViewPart);r.ViewCursors=c,d.registerThemingParticipant(function(o,r){var e=o.getColor(u.editorCursorForeground);if(e){var t=o.getColor(u.editorCursorBackground);t||(t=e.opposite()),r.addRule(".monaco-editor .cursor { background-color: "+e+"; border-color: "+e+"; color: "+t+"; }"),"hc"===o.type&&r.addRule(".monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid "+t+"; border-right: 1px solid "+t+"; }")}})}); ;/*!node_modules/monaco-editor/esm/vs/editor/browser/viewParts/viewZones/viewZones.js*/ define("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/viewZones/viewZones",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=this&&this.__extends||function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),n=e("node_modules/monaco-editor/esm/vs/base/browser/fastDomNode"),i=e("node_modules/monaco-editor/esm/vs/base/common/errors"),r=e("node_modules/monaco-editor/esm/vs/editor/browser/view/viewPart"),s=e("node_modules/monaco-editor/esm/vs/editor/common/core/position"),d=function(e){function t(t){var o=e.call(this,t)||this;return o._lineHeight=o._context.configuration.editor.lineHeight,o._contentWidth=o._context.configuration.editor.layoutInfo.contentWidth,o._contentLeft=o._context.configuration.editor.layoutInfo.contentLeft,o.domNode=n.createFastDomNode(document.createElement("div")),o.domNode.setClassName("view-zones"),o.domNode.setPosition("absolute"),o.domNode.setAttribute("role","presentation"),o.domNode.setAttribute("aria-hidden","true"),o.marginDomNode=n.createFastDomNode(document.createElement("div")),o.marginDomNode.setClassName("margin-view-zones"),o.marginDomNode.setPosition("absolute"),o.marginDomNode.setAttribute("role","presentation"),o.marginDomNode.setAttribute("aria-hidden","true"),o._zones={},o}return o(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._zones={}},t.prototype._recomputeWhitespacesProps=function(){for(var e=!1,t=Object.keys(this._zones),o=0,n=t.length;n>o;o++){var i=t[o],r=this._zones[i],s=this._computeWhitespaceProps(r.delegate);this._context.viewLayout.changeWhitespace(parseInt(i,10),s.afterViewLineNumber,s.heightInPx)&&(this._safeCallOnComputedHeight(r.delegate,s.heightInPx),e=!0)}return e},t.prototype.onConfigurationChanged=function(e){return e.lineHeight?(this._lineHeight=this._context.configuration.editor.lineHeight,this._recomputeWhitespacesProps()):(e.layoutInfo&&(this._contentWidth=this._context.configuration.editor.layoutInfo.contentWidth,this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft),!0)},t.prototype.onLineMappingChanged=function(){var e=this._recomputeWhitespacesProps();return e&&this._context.viewLayout.onHeightMaybeChanged(),e},t.prototype.onLinesDeleted=function(){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged||e.scrollWidthChanged},t.prototype.onZonesChanged=function(){return!0},t.prototype.onLinesInserted=function(){return!0},t.prototype._getZoneOrdinal=function(e){return"undefined"!=typeof e.afterColumn?e.afterColumn:1e4},t.prototype._computeWhitespaceProps=function(e){if(0===e.afterLineNumber)return{afterViewLineNumber:0,heightInPx:this._heightInPixels(e),minWidthInPx:this._minWidthInPixels(e)};var t;if("undefined"!=typeof e.afterColumn)t=this._context.model.validateModelPosition({lineNumber:e.afterLineNumber,column:e.afterColumn});else{var o=this._context.model.validateModelPosition({lineNumber:e.afterLineNumber,column:1}).lineNumber;t=new s.Position(o,this._context.model.getModelLineMaxColumn(o))}var n;n=this._context.model.validateModelPosition(t.column===this._context.model.getModelLineMaxColumn(t.lineNumber)?{lineNumber:t.lineNumber+1,column:1}:{lineNumber:t.lineNumber,column:t.column+1});var i=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(t),r=this._context.model.coordinatesConverter.modelPositionIsVisible(n);return{afterViewLineNumber:i.lineNumber,heightInPx:r?this._heightInPixels(e):0,minWidthInPx:this._minWidthInPixels(e)}},t.prototype.addZone=function(e){var t=this._computeWhitespaceProps(e),o=this._context.viewLayout.addWhitespace(t.afterViewLineNumber,this._getZoneOrdinal(e),t.heightInPx,t.minWidthInPx),i={whitespaceId:o,delegate:e,isVisible:!1,domNode:n.createFastDomNode(e.domNode),marginDomNode:e.marginDomNode?n.createFastDomNode(e.marginDomNode):null};return this._safeCallOnComputedHeight(i.delegate,t.heightInPx),i.domNode.setPosition("absolute"),i.domNode.domNode.style.width="100%",i.domNode.setDisplay("none"),i.domNode.setAttribute("monaco-view-zone",i.whitespaceId.toString()),this.domNode.appendChild(i.domNode),i.marginDomNode&&(i.marginDomNode.setPosition("absolute"),i.marginDomNode.domNode.style.width="100%",i.marginDomNode.setDisplay("none"),i.marginDomNode.setAttribute("monaco-view-zone",i.whitespaceId.toString()),this.marginDomNode.appendChild(i.marginDomNode)),this._zones[i.whitespaceId.toString()]=i,this.setShouldRender(),i.whitespaceId},t.prototype.removeZone=function(e){if(this._zones.hasOwnProperty(e.toString())){var t=this._zones[e.toString()];return delete this._zones[e.toString()],this._context.viewLayout.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.setShouldRender(),!0}return!1},t.prototype.layoutZone=function(e){var t=!1;if(this._zones.hasOwnProperty(e.toString())){var o=this._zones[e.toString()],n=this._computeWhitespaceProps(o.delegate);t=this._context.viewLayout.changeWhitespace(o.whitespaceId,n.afterViewLineNumber,n.heightInPx)||t,t&&(this._safeCallOnComputedHeight(o.delegate,n.heightInPx),this.setShouldRender())}return t},t.prototype.shouldSuppressMouseDownOnViewZone=function(e){if(this._zones.hasOwnProperty(e.toString())){var t=this._zones[e.toString()];return Boolean(t.delegate.suppressMouseDown)}return!1},t.prototype._heightInPixels=function(e){return"number"==typeof e.heightInPx?e.heightInPx:"number"==typeof e.heightInLines?this._lineHeight*e.heightInLines:this._lineHeight},t.prototype._minWidthInPixels=function(e){return"number"==typeof e.minWidthInPx?e.minWidthInPx:0},t.prototype._safeCallOnComputedHeight=function(e,t){if("function"==typeof e.onComputedHeight)try{e.onComputedHeight(t)}catch(o){i.onUnexpectedError(o)}},t.prototype._safeCallOnDomNodeTop=function(e,t){if("function"==typeof e.onDomNodeTop)try{e.onDomNodeTop(t)}catch(o){i.onUnexpectedError(o)}},t.prototype.prepareRender=function(){},t.prototype.render=function(e){for(var t=e.viewportData.whitespaceViewportData,o={},n=!1,i=0,r=t.length;r>i;i++)o[t[i].id.toString()]=t[i],n=!0;for(var s=Object.keys(this._zones),i=0,r=s.length;r>i;i++){var d=s[i],a=this._zones[d],m=0,h=0,u="none";o.hasOwnProperty(d)?(m=o[d].verticalOffset-e.bigNumbersDelta,h=o[d].height,u="block",a.isVisible||(a.domNode.setAttribute("monaco-visible-view-zone","true"),a.isVisible=!0),this._safeCallOnDomNodeTop(a.delegate,e.getScrolledTopFromAbsoluteTop(o[d].verticalOffset))):(a.isVisible&&(a.domNode.removeAttribute("monaco-visible-view-zone"),a.isVisible=!1),this._safeCallOnDomNodeTop(a.delegate,e.getScrolledTopFromAbsoluteTop(-1e6))),a.domNode.setTop(m),a.domNode.setHeight(h),a.domNode.setDisplay(u),a.marginDomNode&&(a.marginDomNode.setTop(m),a.marginDomNode.setHeight(h),a.marginDomNode.setDisplay(u))}n&&(this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth)),this.marginDomNode.setWidth(this._contentLeft))},t}(r.ViewPart);t.ViewZones=d}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/view/viewContext.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/view/viewContext",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t,n,i){this.configuration=e,this.theme=t,this.model=n,this.viewLayout=n.viewLayout,this.privateViewEventBus=i}return e.prototype.addEventHandler=function(e){this.privateViewEventBus.addEventHandler(e)},e.prototype.removeEventHandler=function(e){this.privateViewEventBus.removeEventHandler(e)},e}();t.ViewContext=n}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/view/viewEventDispatcher.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/view/viewEventDispatcher",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this._eventHandlerGateKeeper=e,this._eventHandlers=[],this._eventQueue=null,this._isConsumingQueue=!1}return e.prototype.addEventHandler=function(e){for(var t=0,n=this._eventHandlers.length;n>t;t++)this._eventHandlers[t]===e&&console.warn("Detected duplicate listener in ViewEventDispatcher",e);this._eventHandlers.push(e)},e.prototype.removeEventHandler=function(e){for(var t=0;tn;n++)t[n].handleEvents(e)}},e}();t.ViewEventDispatcher=n}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/viewLayout/viewLinesViewportData.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/viewLayout/viewLinesViewportData",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=e("node_modules/monaco-editor/esm/vs/editor/common/core/range"),n=function(){function e(e,t,n,o){this.selections=e,this.startLineNumber=0|t.startLineNumber,this.endLineNumber=0|t.endLineNumber,this.relativeVerticalOffset=t.relativeVerticalOffset,this.bigNumbersDelta=0|t.bigNumbersDelta,this.whitespaceViewportData=n,this._model=o,this.visibleRange=new i.Range(t.startLineNumber,this._model.getLineMinColumn(t.startLineNumber),t.endLineNumber,this._model.getLineMaxColumn(t.endLineNumber))}return e.prototype.getViewLineRenderingData=function(e){return this._model.getViewLineRenderingData(this.visibleRange,e)},e.prototype.getDecorationsInViewport=function(){return this._model.getDecorationsInViewport(this.visibleRange)},e}();t.ViewportData=n}); ;/*!node_modules/monaco-editor/esm/vs/editor/browser/view/viewImpl.js*/ define("node_modules/monaco-editor/esm/vs/editor/browser/view/viewImpl",function(e,t){"use strict";function o(e){try{return e()}catch(t){a.onUnexpectedError(t)}}function i(e,t){try{return e(t)}catch(o){a.onUnexpectedError(o)}}Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),r=this&&this.__extends||function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),s=n.__importStar(e("node_modules/monaco-editor/esm/vs/base/browser/dom")),d=e("node_modules/monaco-editor/esm/vs/base/browser/fastDomNode"),a=e("node_modules/monaco-editor/esm/vs/base/common/errors"),l=e("node_modules/monaco-editor/esm/vs/editor/browser/controller/pointerHandler"),c=e("node_modules/monaco-editor/esm/vs/editor/browser/controller/textAreaHandler"),u=e("node_modules/monaco-editor/esm/vs/editor/browser/view/viewController"),h=e("node_modules/monaco-editor/esm/vs/editor/browser/view/viewOverlays"),v=e("node_modules/monaco-editor/esm/vs/editor/browser/view/viewPart"),m=e("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/contentWidgets/contentWidgets"),w=e("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight"),p=e("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/currentLineMarginHighlight/currentLineMarginHighlight"),g=e("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/decorations/decorations"),_=e("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/editorScrollbar/editorScrollbar"),f=e("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/glyphMargin/glyphMargin"),y=e("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/indentGuides/indentGuides"),C=e("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/lineNumbers/lineNumbers"),P=e("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/lines/viewLines"),N=e("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/linesDecorations/linesDecorations"),x=e("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/margin/margin"),D=e("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/marginDecorations/marginDecorations"),b=e("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/minimap/minimap"),L=e("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/overlayWidgets/overlayWidgets"),R=e("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/overviewRuler/decorationsOverviewRuler"),O=e("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/overviewRuler/overviewRuler"),W=e("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/rulers/rulers"),A=e("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/scrollDecoration/scrollDecoration"),H=e("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/selections/selections"),V=e("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/viewCursors/viewCursors"),E=e("node_modules/monaco-editor/esm/vs/editor/browser/viewParts/viewZones/viewZones"),F=e("node_modules/monaco-editor/esm/vs/editor/common/core/position"),M=e("node_modules/monaco-editor/esm/vs/editor/common/view/renderingContext"),S=e("node_modules/monaco-editor/esm/vs/editor/common/view/viewContext"),Z=e("node_modules/monaco-editor/esm/vs/editor/common/view/viewEventDispatcher"),T=n.__importStar(e("node_modules/monaco-editor/esm/vs/editor/common/view/viewEvents")),G=e("node_modules/monaco-editor/esm/vs/editor/common/viewLayout/viewLinesViewportData"),I=e("node_modules/monaco-editor/esm/vs/editor/common/viewModel/viewEventHandler"),B=e("node_modules/monaco-editor/esm/vs/platform/theme/common/themeService"),j=function(){throw new Error("Invalid change accessor")},k=function(e){function t(t,o,i,n,r,s){var d=e.call(this)||this;d._cursor=r,d._renderAnimationFrame=null,d.outgoingEvents=s;var a=new u.ViewController(o,n,d.outgoingEvents,t);return d.eventDispatcher=new Z.ViewEventDispatcher(function(e){return d._renderOnce(e)}),d.eventDispatcher.addEventHandler(d),d._context=new S.ViewContext(o,i.getTheme(),n,d.eventDispatcher),d._register(i.onThemeChange(function(e){d._context.theme=e,d.eventDispatcher.emit(new T.ViewThemeChangedEvent),d.render(!0,!1)})),d.viewParts=[],d._textAreaHandler=new c.TextAreaHandler(d._context,a,d.createTextAreaHandlerHelper()),d.viewParts.push(d._textAreaHandler),d.createViewParts(),d._setLayout(),d.pointerHandler=new l.PointerHandler(d._context,a,d.createPointerHandlerHelper()),d._register(n.addEventListener(function(e){d.eventDispatcher.emitMany(e)})),d._register(d._cursor.addEventListener(function(e){d.eventDispatcher.emitMany(e)})),d}return r(t,e),t.prototype.createViewParts=function(){this.linesContent=d.createFastDomNode(document.createElement("div")),this.linesContent.setClassName("lines-content monaco-editor-background"),this.linesContent.setPosition("absolute"),this.domNode=d.createFastDomNode(document.createElement("div")),this.domNode.setClassName(this.getEditorClassName()),this.overflowGuardContainer=d.createFastDomNode(document.createElement("div")),v.PartFingerprints.write(this.overflowGuardContainer,3),this.overflowGuardContainer.setClassName("overflow-guard"),this._scrollbar=new _.EditorScrollbar(this._context,this.linesContent,this.domNode,this.overflowGuardContainer),this.viewParts.push(this._scrollbar),this.viewLines=new P.ViewLines(this._context,this.linesContent),this.viewZones=new E.ViewZones(this._context),this.viewParts.push(this.viewZones);var e=new R.DecorationsOverviewRuler(this._context);this.viewParts.push(e);var t=new A.ScrollDecorationViewPart(this._context);this.viewParts.push(t);var o=new h.ContentViewOverlays(this._context);this.viewParts.push(o),o.addDynamicOverlay(new w.CurrentLineHighlightOverlay(this._context)),o.addDynamicOverlay(new H.SelectionsOverlay(this._context)),o.addDynamicOverlay(new y.IndentGuidesOverlay(this._context)),o.addDynamicOverlay(new g.DecorationsOverlay(this._context));var i=new h.MarginViewOverlays(this._context);this.viewParts.push(i),i.addDynamicOverlay(new p.CurrentLineMarginHighlightOverlay(this._context)),i.addDynamicOverlay(new f.GlyphMarginOverlay(this._context)),i.addDynamicOverlay(new D.MarginViewLineDecorationsOverlay(this._context)),i.addDynamicOverlay(new N.LinesDecorationsOverlay(this._context)),i.addDynamicOverlay(new C.LineNumbersOverlay(this._context));var n=new x.Margin(this._context);n.getDomNode().appendChild(this.viewZones.marginDomNode),n.getDomNode().appendChild(i.getDomNode()),this.viewParts.push(n),this.contentWidgets=new m.ViewContentWidgets(this._context,this.domNode),this.viewParts.push(this.contentWidgets),this.viewCursors=new V.ViewCursors(this._context),this.viewParts.push(this.viewCursors),this.overlayWidgets=new L.ViewOverlayWidgets(this._context),this.viewParts.push(this.overlayWidgets);var r=new W.Rulers(this._context);this.viewParts.push(r);var s=new b.Minimap(this._context);if(this.viewParts.push(s),e){var a=this._scrollbar.getOverviewRulerLayoutInfo();a.parent.insertBefore(e.getDomNode(),a.insertBefore)}this.linesContent.appendChild(o.getDomNode()),this.linesContent.appendChild(r.domNode),this.linesContent.appendChild(this.viewZones.domNode),this.linesContent.appendChild(this.viewLines.getDomNode()),this.linesContent.appendChild(this.contentWidgets.domNode),this.linesContent.appendChild(this.viewCursors.getDomNode()),this.overflowGuardContainer.appendChild(n.getDomNode()),this.overflowGuardContainer.appendChild(this._scrollbar.getDomNode()),this.overflowGuardContainer.appendChild(t.getDomNode()),this.overflowGuardContainer.appendChild(this._textAreaHandler.textArea),this.overflowGuardContainer.appendChild(this._textAreaHandler.textAreaCover),this.overflowGuardContainer.appendChild(this.overlayWidgets.getDomNode()),this.overflowGuardContainer.appendChild(s.getDomNode()),this.domNode.appendChild(this.overflowGuardContainer),this.domNode.appendChild(this.contentWidgets.overflowingContentWidgetsDomNode)},t.prototype._flushAccumulatedAndRenderNow=function(){this._renderNow()},t.prototype.createPointerHandlerHelper=function(){var e=this;return{viewDomNode:this.domNode.domNode,linesContentDomNode:this.linesContent.domNode,focusTextArea:function(){e.focus()},getLastViewCursorsRenderData:function(){return e.viewCursors.getLastRenderData()||[]},shouldSuppressMouseDownOnViewZone:function(t){return e.viewZones.shouldSuppressMouseDownOnViewZone(t)},shouldSuppressMouseDownOnWidget:function(t){return e.contentWidgets.shouldSuppressMouseDownOnWidget(t)},getPositionFromDOMInfo:function(t,o){return e._flushAccumulatedAndRenderNow(),e.viewLines.getPositionFromDOMInfo(t,o)},visibleRangeForPosition2:function(t,o){return e._flushAccumulatedAndRenderNow(),e.viewLines.visibleRangeForPosition(new F.Position(t,o))},getLineWidth:function(t){return e._flushAccumulatedAndRenderNow(),e.viewLines.getLineWidth(t)}}},t.prototype.createTextAreaHandlerHelper=function(){var e=this;return{visibleRangeForPositionRelativeToEditor:function(t,o){return e._flushAccumulatedAndRenderNow(),e.viewLines.visibleRangeForPosition(new F.Position(t,o))}}},t.prototype._setLayout=function(){var e=this._context.configuration.editor.layoutInfo;this.domNode.setWidth(e.width),this.domNode.setHeight(e.height),this.overflowGuardContainer.setWidth(e.width),this.overflowGuardContainer.setHeight(e.height),this.linesContent.setWidth(1e6),this.linesContent.setHeight(1e6)},t.prototype.getEditorClassName=function(){var e=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.editor.editorClassName+" "+B.getThemeTypeSelector(this._context.theme.type)+e},t.prototype.onConfigurationChanged=function(e){return e.editorClassName&&this.domNode.setClassName(this.getEditorClassName()),e.layoutInfo&&this._setLayout(),!1},t.prototype.onFocusChanged=function(e){return this.domNode.setClassName(this.getEditorClassName()),this._context.model.setHasFocus(e.isFocused),e.isFocused?this.outgoingEvents.emitViewFocusGained():this.outgoingEvents.emitViewFocusLost(),!1},t.prototype.onScrollChanged=function(e){return this.outgoingEvents.emitScrollChanged(e),!1},t.prototype.onThemeChanged=function(){return this.domNode.setClassName(this.getEditorClassName()),!1},t.prototype.dispose=function(){null!==this._renderAnimationFrame&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this.eventDispatcher.removeEventHandler(this),this.outgoingEvents.dispose(),this.pointerHandler.dispose(),this.viewLines.dispose();for(var t=0,o=this.viewParts.length;o>t;t++)this.viewParts[t].dispose();this.viewParts=[],e.prototype.dispose.call(this)},t.prototype._renderOnce=function(e){var t=o(e);return this._scheduleRender(),t},t.prototype._scheduleRender=function(){null===this._renderAnimationFrame&&(this._renderAnimationFrame=s.runAtThisOrScheduleAtNextAnimationFrame(this._onRenderScheduled.bind(this),100))},t.prototype._onRenderScheduled=function(){this._renderAnimationFrame=null,this._flushAccumulatedAndRenderNow()},t.prototype._renderNow=function(){var e=this;o(function(){return e._actualRender()})},t.prototype._getViewPartsToRender=function(){for(var e=[],t=0,o=0,i=this.viewParts.length;i>o;o++){var n=this.viewParts[o];n.shouldRender()&&(e[t++]=n)}return e},t.prototype._actualRender=function(){if(s.isInDOM(this.domNode.domNode)){var e=this._getViewPartsToRender();if(this.viewLines.shouldRender()||0!==e.length){var t=this._context.viewLayout.getLinesViewportData();this._context.model.setViewport(t.startLineNumber,t.endLineNumber,t.centeredLineNumber);var o=new G.ViewportData(this._cursor.getViewSelections(),t,this._context.viewLayout.getWhitespaceViewportData(),this._context.model);this.contentWidgets.shouldRender()&&this.contentWidgets.onBeforeRender(o),this.viewLines.shouldRender()&&(this.viewLines.renderText(o),this.viewLines.onDidRender(),e=this._getViewPartsToRender());for(var i=new M.RenderingContext(this._context.viewLayout,o,this.viewLines),n=0,r=e.length;r>n;n++){var d=e[n];d.prepareRender(i)}for(var n=0,r=e.length;r>n;n++){var d=e[n];d.render(i),d.onDidRender()}}}},t.prototype.delegateVerticalScrollbarMouseDown=function(e){this._scrollbar.delegateVerticalScrollbarMouseDown(e)},t.prototype.restoreState=function(e){this._context.viewLayout.setScrollPositionNow({scrollTop:e.scrollTop}),this._context.model.tokenizeViewport(),this._renderNow(),this.viewLines.updateLineWidths(),this._context.viewLayout.setScrollPositionNow({scrollLeft:e.scrollLeft})},t.prototype.getOffsetForColumn=function(e,t){var o=this._context.model.validateModelPosition({lineNumber:e,column:t}),i=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(o);this._flushAccumulatedAndRenderNow();var n=this.viewLines.visibleRangeForPosition(new F.Position(i.lineNumber,i.column));return n?n.left:-1},t.prototype.getTargetAtClientPoint=function(e,t){return this.pointerHandler.getTargetAtClientPoint(e,t)},t.prototype.createOverviewRuler=function(e){return new O.OverviewRuler(this._context,e)},t.prototype.change=function(e){var t=this,o=!1;return this._renderOnce(function(){var n={addZone:function(e){return o=!0,t.viewZones.addZone(e)},removeZone:function(e){e&&(o=t.viewZones.removeZone(e)||o)},layoutZone:function(e){e&&(o=t.viewZones.layoutZone(e)||o)}};i(e,n),n.addZone=j,n.removeZone=j,n.layoutZone=j,o&&(t._context.viewLayout.onHeightMaybeChanged(),t._context.privateViewEventBus.emit(new T.ViewZonesChangedEvent))}),o},t.prototype.render=function(e,t){if(t){this.viewLines.forceShouldRender();for(var o=0,i=this.viewParts.length;i>o;o++){var n=this.viewParts[o];n.forceShouldRender()}}e?this._flushAccumulatedAndRenderNow():this._scheduleRender()},t.prototype.focus=function(){this._textAreaHandler.focusTextArea()},t.prototype.isFocused=function(){return this._textAreaHandler.isFocused()},t.prototype.addContentWidget=function(e){this.contentWidgets.addWidget(e.widget),this.layoutContentWidget(e),this._scheduleRender()},t.prototype.layoutContentWidget=function(e){var t=e.position?e.position.position:null,o=e.position?e.position.range:null,i=e.position?e.position.preference:null;this.contentWidgets.setWidgetPosition(e.widget,t,o,i),this._scheduleRender()},t.prototype.removeContentWidget=function(e){this.contentWidgets.removeWidget(e.widget),this._scheduleRender()},t.prototype.addOverlayWidget=function(e){this.overlayWidgets.addWidget(e.widget),this.layoutOverlayWidget(e),this._scheduleRender()},t.prototype.layoutOverlayWidget=function(e){var t=e.position?e.position.preference:null,o=this.overlayWidgets.setWidgetPosition(e.widget,t);o&&this._scheduleRender()},t.prototype.removeOverlayWidget=function(e){this.overlayWidgets.removeWidget(e.widget),this._scheduleRender()},t}(I.ViewEventHandler);t.View=k}); ;/*!node_modules/monaco-editor/esm/vs/editor/browser/view/viewOutgoingEvents.js*/ define("node_modules/monaco-editor/esm/vs/editor/browser/view/viewOutgoingEvents",function(o,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=this&&this.__extends||function(){var o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var t in e)e.hasOwnProperty(t)&&(o[t]=e[t])})(e,t)};return function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}(),n=o("node_modules/monaco-editor/esm/vs/base/common/lifecycle"),i=o("node_modules/monaco-editor/esm/vs/editor/browser/controller/mouseTarget"),s=function(o){function e(e){var t=o.call(this)||this;return t.onDidScroll=null,t.onDidGainFocus=null,t.onDidLoseFocus=null,t.onKeyDown=null,t.onKeyUp=null,t.onContextMenu=null,t.onMouseMove=null,t.onMouseLeave=null,t.onMouseUp=null,t.onMouseDown=null,t.onMouseDrag=null,t.onMouseDrop=null,t.onMouseWheel=null,t._viewModel=e,t}return t(e,o),e.prototype.emitScrollChanged=function(o){this.onDidScroll&&this.onDidScroll(o)},e.prototype.emitViewFocusGained=function(){this.onDidGainFocus&&this.onDidGainFocus(void 0)},e.prototype.emitViewFocusLost=function(){this.onDidLoseFocus&&this.onDidLoseFocus(void 0)},e.prototype.emitKeyDown=function(o){this.onKeyDown&&this.onKeyDown(o)},e.prototype.emitKeyUp=function(o){this.onKeyUp&&this.onKeyUp(o)},e.prototype.emitContextMenu=function(o){this.onContextMenu&&this.onContextMenu(this._convertViewToModelMouseEvent(o))},e.prototype.emitMouseMove=function(o){this.onMouseMove&&this.onMouseMove(this._convertViewToModelMouseEvent(o))},e.prototype.emitMouseLeave=function(o){this.onMouseLeave&&this.onMouseLeave(this._convertViewToModelMouseEvent(o))},e.prototype.emitMouseUp=function(o){this.onMouseUp&&this.onMouseUp(this._convertViewToModelMouseEvent(o))},e.prototype.emitMouseDown=function(o){this.onMouseDown&&this.onMouseDown(this._convertViewToModelMouseEvent(o))},e.prototype.emitMouseDrag=function(o){this.onMouseDrag&&this.onMouseDrag(this._convertViewToModelMouseEvent(o))},e.prototype.emitMouseDrop=function(o){this.onMouseDrop&&this.onMouseDrop(this._convertViewToModelMouseEvent(o))},e.prototype.emitMouseWheel=function(o){this.onMouseWheel&&this.onMouseWheel(o)},e.prototype._convertViewToModelMouseEvent=function(o){return o.target?{event:o.event,target:this._convertViewToModelMouseTarget(o.target)}:o},e.prototype._convertViewToModelMouseTarget=function(o){return new u(o.element,o.type,o.mouseColumn,o.position?this._convertViewToModelPosition(o.position):null,o.range?this._convertViewToModelRange(o.range):null,o.detail)},e.prototype._convertViewToModelPosition=function(o){return this._viewModel.coordinatesConverter.convertViewPositionToModelPosition(o)},e.prototype._convertViewToModelRange=function(o){return this._viewModel.coordinatesConverter.convertViewRangeToModelRange(o)},e}(n.Disposable);e.ViewOutgoingEvents=s;var u=function(){function o(o,e,t,n,i,s){this.element=o,this.type=e,this.mouseColumn=t,this.position=n,this.range=i,this.detail=s}return o.prototype.toString=function(){return i.MouseTarget.toString(this)},o}()}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/controller/oneCursor.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/controller/oneCursor",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=e("node_modules/monaco-editor/esm/vs/editor/common/controller/cursorCommon"),n=e("node_modules/monaco-editor/esm/vs/editor/common/core/position"),i=e("node_modules/monaco-editor/esm/vs/editor/common/core/range"),r=e("node_modules/monaco-editor/esm/vs/editor/common/core/selection"),s=function(){function e(e){this._selTrackedRange=null,this._trackSelection=!0,this._setState(e,new o.SingleCursorState(new i.Range(1,1,1,1),0,new n.Position(1,1),0),new o.SingleCursorState(new i.Range(1,1,1,1),0,new n.Position(1,1),0))}return e.prototype.dispose=function(e){this._removeTrackedRange(e)},e.prototype.startTrackingSelection=function(e){this._trackSelection=!0,this._updateTrackedRange(e)},e.prototype.stopTrackingSelection=function(e){this._trackSelection=!1,this._removeTrackedRange(e)},e.prototype._updateTrackedRange=function(e){this._trackSelection&&(this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))},e.prototype._removeTrackedRange=function(e){this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,null,0)},e.prototype.asCursorState=function(){return new o.CursorState(this.modelState,this.viewState)},e.prototype.readSelectionFromMarkers=function(e){var t=e.model._getTrackedRange(this._selTrackedRange);return 0===this.modelState.selection.getDirection()?new r.Selection(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new r.Selection(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)},e.prototype.ensureValidState=function(e){this._setState(e,this.modelState,this.viewState)},e.prototype.setState=function(e,t,o){this._setState(e,t,o)},e.prototype._setState=function(e,t,r){if(t){var s=e.model.validateRange(t.selectionStart),a=t.selectionStart.equalsRange(s)?t.selectionStartLeftoverVisibleColumns:0,l=e.model.validatePosition(t.position),c=t.position.equals(l)?t.leftoverVisibleColumns:0;t=new o.SingleCursorState(s,a,l,c)}else{if(!r)return;var s=e.model.validateRange(e.convertViewRangeToModelRange(r.selectionStart)),l=e.model.validatePosition(e.convertViewPositionToModelPosition(r.position.lineNumber,r.position.column));t=new o.SingleCursorState(s,r.selectionStartLeftoverVisibleColumns,l,r.leftoverVisibleColumns)}if(r){var d=e.validateViewRange(r.selectionStart,t.selectionStart),u=e.validateViewPosition(r.position,t.position);r=new o.SingleCursorState(d,t.selectionStartLeftoverVisibleColumns,u,t.leftoverVisibleColumns)}else{var m=e.convertModelPositionToViewPosition(new n.Position(t.selectionStart.startLineNumber,t.selectionStart.startColumn)),S=e.convertModelPositionToViewPosition(new n.Position(t.selectionStart.endLineNumber,t.selectionStart.endColumn)),d=new i.Range(m.lineNumber,m.column,S.lineNumber,S.column),u=e.convertModelPositionToViewPosition(t.position);r=new o.SingleCursorState(d,t.selectionStartLeftoverVisibleColumns,u,t.leftoverVisibleColumns)}this.modelState=t,this.viewState=r,this._updateTrackedRange(e)},e}();t.OneCursor=s}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/controller/cursorCollection.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/controller/cursorCollection",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=t("node_modules/monaco-editor/esm/vs/editor/common/controller/cursorCommon"),o=t("node_modules/monaco-editor/esm/vs/editor/common/controller/oneCursor"),s=t("node_modules/monaco-editor/esm/vs/editor/common/core/selection"),n=function(){function t(t){this.context=t,this.primaryCursor=new o.OneCursor(t),this.secondaryCursors=[],this.lastAddedCursorIndex=0}return t.prototype.dispose=function(){this.primaryCursor.dispose(this.context),this.killSecondaryCursors()},t.prototype.startTrackingSelections=function(){this.primaryCursor.startTrackingSelection(this.context);for(var t=0,e=this.secondaryCursors.length;e>t;t++)this.secondaryCursors[t].startTrackingSelection(this.context)},t.prototype.stopTrackingSelections=function(){this.primaryCursor.stopTrackingSelection(this.context);for(var t=0,e=this.secondaryCursors.length;e>t;t++)this.secondaryCursors[t].stopTrackingSelection(this.context)},t.prototype.updateContext=function(t){this.context=t},t.prototype.ensureValidState=function(){this.primaryCursor.ensureValidState(this.context);for(var t=0,e=this.secondaryCursors.length;e>t;t++)this.secondaryCursors[t].ensureValidState(this.context)},t.prototype.readSelectionFromMarkers=function(){var t=[];t[0]=this.primaryCursor.readSelectionFromMarkers(this.context);for(var e=0,r=this.secondaryCursors.length;r>e;e++)t[e+1]=this.secondaryCursors[e].readSelectionFromMarkers(this.context);return t},t.prototype.getAll=function(){var t=[];t[0]=this.primaryCursor.asCursorState();for(var e=0,r=this.secondaryCursors.length;r>e;e++)t[e+1]=this.secondaryCursors[e].asCursorState();return t},t.prototype.getViewPositions=function(){var t=[];t[0]=this.primaryCursor.viewState.position;for(var e=0,r=this.secondaryCursors.length;r>e;e++)t[e+1]=this.secondaryCursors[e].viewState.position;return t},t.prototype.getSelections=function(){var t=[];t[0]=this.primaryCursor.modelState.selection;for(var e=0,r=this.secondaryCursors.length;r>e;e++)t[e+1]=this.secondaryCursors[e].modelState.selection;return t},t.prototype.getViewSelections=function(){var t=[];t[0]=this.primaryCursor.viewState.selection;for(var e=0,r=this.secondaryCursors.length;r>e;e++)t[e+1]=this.secondaryCursors[e].viewState.selection;return t},t.prototype.setSelections=function(t){this.setStates(r.CursorState.fromModelSelections(t))},t.prototype.getPrimaryCursor=function(){return this.primaryCursor.asCursorState()},t.prototype.setStates=function(t){null!==t&&(this.primaryCursor.setState(this.context,t[0].modelState,t[0].viewState),this._setSecondaryStates(t.slice(1)))},t.prototype._setSecondaryStates=function(t){var e=this.secondaryCursors.length,r=t.length;if(r>e)for(var o=r-e,s=0;o>s;s++)this._addSecondaryCursor();else if(e>r)for(var n=e-r,s=0;n>s;s++)this._removeSecondaryCursor(this.secondaryCursors.length-1);for(var s=0;r>s;s++)this.secondaryCursors[s].setState(this.context,t[s].modelState,t[s].viewState)},t.prototype.killSecondaryCursors=function(){this._setSecondaryStates([])},t.prototype._addSecondaryCursor=function(){this.secondaryCursors.push(new o.OneCursor(this.context)),this.lastAddedCursorIndex=this.secondaryCursors.length},t.prototype.getLastAddedCursorIndex=function(){return 0===this.secondaryCursors.length||0===this.lastAddedCursorIndex?0:this.lastAddedCursorIndex},t.prototype._removeSecondaryCursor=function(t){this.lastAddedCursorIndex>=t+1&&this.lastAddedCursorIndex--,this.secondaryCursors[t].dispose(this.context),this.secondaryCursors.splice(t,1)},t.prototype._getAll=function(){var t=[];t[0]=this.primaryCursor;for(var e=0,r=this.secondaryCursors.length;r>e;e++)t[e+1]=this.secondaryCursors[e];return t},t.prototype.normalize=function(){if(0!==this.secondaryCursors.length){for(var t=this._getAll(),e=[],o=0,n=t.length;n>o;o++)e.push({index:o,selection:t[o].modelState.selection});e.sort(function(t,e){return t.selection.startLineNumber===e.selection.startLineNumber?t.selection.startColumn-e.selection.startColumn:t.selection.startLineNumber-e.selection.startLineNumber});for(var i=0;im&&A.index--}t.splice(m,1),e.splice(C,1),this._removeSecondaryCursor(m-1),i--}}}}},t}();e.CursorCollection=n}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/controller/cursor.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/controller/cursor",function(e,t){"use strict";function o(e){for(var t=0,o=e.length;o>t;t++)if(6===e[t].type)return!0;return!1}Object.defineProperty(t,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),n=this&&this.__extends||function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),i=e("node_modules/monaco-editor/esm/vs/base/common/errors"),s=e("node_modules/monaco-editor/esm/vs/base/common/event"),a=r.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/strings")),c=e("node_modules/monaco-editor/esm/vs/editor/common/controller/cursorCollection"),u=e("node_modules/monaco-editor/esm/vs/editor/common/controller/cursorCommon"),l=e("node_modules/monaco-editor/esm/vs/editor/common/controller/cursorDeleteOperations"),d=e("node_modules/monaco-editor/esm/vs/editor/common/controller/cursorTypeOperations"),m=e("node_modules/monaco-editor/esm/vs/editor/common/core/range"),p=e("node_modules/monaco-editor/esm/vs/editor/common/core/selection"),h=r.__importStar(e("node_modules/monaco-editor/esm/vs/editor/common/editorCommon")),_=r.__importStar(e("node_modules/monaco-editor/esm/vs/editor/common/view/viewEvents")),f=function(){function e(e,t,o){this.selections=e,this.source=t,this.reason=o}return e}();t.CursorStateChangedEvent=f;var g=function(){function e(e,t){this.modelVersionId=e.getVersionId(),this.cursorState=t.getAll()}return e.prototype.equals=function(e){if(!e)return!1;if(this.modelVersionId!==e.modelVersionId)return!1;if(this.cursorState.length!==e.cursorState.length)return!1;for(var t=0,o=this.cursorState.length;o>t;t++)if(!this.cursorState[t].equals(e.cursorState[t]))return!1;return!0},e}();t.CursorModelState=g;var v=function(e){function t(t,r,n){var i=e.call(this)||this;i._onDidReachMaxCursorCount=i._register(new s.Emitter),i.onDidReachMaxCursorCount=i._onDidReachMaxCursorCount.event,i._onDidAttemptReadOnlyEdit=i._register(new s.Emitter),i.onDidAttemptReadOnlyEdit=i._onDidAttemptReadOnlyEdit.event,i._onDidChange=i._register(new s.Emitter),i.onDidChange=i._onDidChange.event,i._configuration=t,i._model=r,i._knownModelVersionId=i._model.getVersionId(),i._viewModel=n,i.context=new u.CursorContext(i._configuration,i._model,i._viewModel),i._cursors=new c.CursorCollection(i.context),i._isHandling=!1,i._isDoingComposition=!1,i._columnSelectData=null,i._prevEditOperationType=0,i._register(i._model.onDidChangeRawContent(function(e){if(i._knownModelVersionId=e.versionId,!i._isHandling){var t=e.containsEvent(1);i._onModelContentChanged(t)}})),i._register(n.addEventListener(function(e){o(e)&&i._knownModelVersionId===i._model.getVersionId()&&i.setStates("viewModel",0,i.getAll())}));var a=function(){i.context=new u.CursorContext(i._configuration,i._model,i._viewModel),i._cursors.updateContext(i.context)};return i._register(i._model.onDidChangeLanguage(function(){a()})),i._register(i._model.onDidChangeLanguageConfiguration(function(){a()})),i._register(i._model.onDidChangeOptions(function(){a()})),i._register(i._configuration.onDidChange(function(e){u.CursorConfiguration.shouldRecreate(e)&&a()})),i}return n(t,e),t.prototype.dispose=function(){this._cursors.dispose(),e.prototype.dispose.call(this)},t.prototype.getPrimaryCursor=function(){return this._cursors.getPrimaryCursor()},t.prototype.getLastAddedCursorIndex=function(){return this._cursors.getLastAddedCursorIndex()},t.prototype.getAll=function(){return this._cursors.getAll()},t.prototype.setStates=function(e,o,r){null!==r&&r.length>t.MAX_CURSOR_COUNT&&(r=r.slice(0,t.MAX_CURSOR_COUNT),this._onDidReachMaxCursorCount.fire(void 0));var n=new g(this._model,this);this._cursors.setStates(r),this._cursors.normalize(),this._columnSelectData=null,this._emitStateChangedIfNecessary(e,o,n)},t.prototype.setColumnSelectData=function(e){this._columnSelectData=e},t.prototype.reveal=function(e,t,o){this._revealRange(t,0,e,o)},t.prototype.revealRange=function(e,t,o,r){this.emitCursorRevealRange(t,o,e,r)},t.prototype.scrollTo=function(e){this._viewModel.viewLayout.setScrollPositionSmooth({scrollTop:e})},t.prototype.saveState=function(){for(var e=[],t=this._cursors.getSelections(),o=0,r=t.length;r>o;o++){var n=t[o];e.push({inSelectionMode:!n.isEmpty(),selectionStart:{lineNumber:n.selectionStartLineNumber,column:n.selectionStartColumn},position:{lineNumber:n.positionLineNumber,column:n.positionColumn}})}return e},t.prototype.restoreState=function(e){for(var t=[],o=0,r=e.length;r>o;o++){var n=e[o],i=1,s=1;n.position&&n.position.lineNumber&&(i=n.position.lineNumber),n.position&&n.position.column&&(s=n.position.column);var a=i,c=s;n.selectionStart&&n.selectionStart.lineNumber&&(a=n.selectionStart.lineNumber),n.selectionStart&&n.selectionStart.column&&(c=n.selectionStart.column),t.push({selectionStartLineNumber:a,selectionStartColumn:c,positionLineNumber:i,positionColumn:s})}this.setStates("restoreState",0,u.CursorState.fromModelSelections(t)),this.reveal(!0,0,1)},t.prototype._onModelContentChanged=function(e){if(this._prevEditOperationType=0,e)this._cursors.dispose(),this._cursors=new c.CursorCollection(this.context),this._emitStateChangedIfNecessary("model",1,null);else{var t=this._cursors.readSelectionFromMarkers();this.setStates("modelChange",2,u.CursorState.fromModelSelections(t))}},t.prototype.getSelection=function(){return this._cursors.getPrimaryCursor().modelState.selection},t.prototype.getColumnSelectData=function(){if(this._columnSelectData)return this._columnSelectData;var e=this._cursors.getPrimaryCursor(),t=e.viewState.position;return{toViewLineNumber:t.lineNumber,toViewVisualColumn:u.CursorColumns.visibleColumnFromColumn2(this.context.config,this.context.viewModel,t)}},t.prototype.getSelections=function(){return this._cursors.getSelections()},t.prototype.getViewSelections=function(){return this._cursors.getViewSelections()},t.prototype.getPosition=function(){return this._cursors.getPrimaryCursor().modelState.position},t.prototype.setSelections=function(e,t){this.setStates(e,0,u.CursorState.fromModelSelections(t))},t.prototype.getPrevEditOperationType=function(){return this._prevEditOperationType},t.prototype.setPrevEditOperationType=function(e){this._prevEditOperationType=e},t.prototype._executeEditOperation=function(e){if(e){e.shouldPushStackElementBefore&&this._model.pushStackElement();var t=C.executeCommands(this._model,this._cursors.getSelections(),e.commands);t&&(this._interpretCommandResult(t),this._prevEditOperationType=e.type),e.shouldPushStackElementAfter&&this._model.pushStackElement()}},t.prototype._interpretCommandResult=function(e){e&&0!==e.length||(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize()},t.prototype._emitStateChangedIfNecessary=function(e,t,o){var r=new g(this._model,this);if(r.equals(o))return!1;var n=this._cursors.getSelections(),i=this._cursors.getViewSelections();try{var s=this._beginEmit();s.emit(new _.ViewCursorStateChangedEvent(i))}finally{this._endEmit()}return(!o||o.cursorState.length!==r.cursorState.length||r.cursorState.some(function(e,t){return!e.modelState.equals(o.cursorState[t].modelState)}))&&this._onDidChange.fire(new f(n,e||"keyboard",t)),!0},t.prototype._revealRange=function(e,t,o,r){var n=this._cursors.getViewPositions(),i=n[0];if(1===e)for(var s=1;s1)return;var a=new m.Range(i.lineNumber,i.column,i.lineNumber,i.column);this.emitCursorRevealRange(a,t,o,r)},t.prototype.emitCursorRevealRange=function(e,t,o,r){try{var n=this._beginEmit();n.emit(new _.ViewRevealRangeRequestEvent(e,t,o,r))}finally{this._endEmit()}},t.prototype.trigger=function(e,t,o){var r=h.Handler;if(t===r.CompositionStart)return void(this._isDoingComposition=!0);if(t===r.CompositionEnd&&(this._isDoingComposition=!1),this._configuration.editor.readOnly)return void this._onDidAttemptReadOnlyEdit.fire(void 0);var n=new g(this._model,this),s=0;t!==r.Undo&&t!==r.Redo&&this._cursors.stopTrackingSelections(),this._cursors.ensureValidState(),this._isHandling=!0;try{switch(t){case r.Type:this._type(e,o.text);break;case r.ReplacePreviousChar:this._replacePreviousChar(o.text,o.replaceCharCnt);break;case r.Paste:s=4,this._paste(o.text,o.pasteOnNewLine,o.multicursorText);break;case r.Cut:this._cut();break;case r.Undo:s=5,this._interpretCommandResult(this._model.undo());break;case r.Redo:s=6,this._interpretCommandResult(this._model.redo());break;case r.ExecuteCommand:this._externalExecuteCommand(o);break;case r.ExecuteCommands:this._externalExecuteCommands(o);break;case r.CompositionEnd:this._interpretCompositionEnd(e)}}catch(a){i.onUnexpectedError(a)}this._isHandling=!1,t!==r.Undo&&t!==r.Redo&&this._cursors.startTrackingSelections(),this._emitStateChangedIfNecessary(e,s,n)&&this._revealRange(0,0,!0,0)},t.prototype._interpretCompositionEnd=function(e){this._isDoingComposition||"keyboard"!==e||this._executeEditOperation(d.TypeOperations.compositionEndWithInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections()))},t.prototype._type=function(e,t){if(this._isDoingComposition||"keyboard"!==e)this._executeEditOperation(d.TypeOperations.typeWithoutInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),t));else for(var o=0,r=t.length;r>o;o++){var n=t.charCodeAt(o),i=void 0;a.isHighSurrogate(n)&&r>o+1?(i=t.charAt(o)+t.charAt(o+1),o++):i=t.charAt(o),this._executeEditOperation(d.TypeOperations.typeWithInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),i))}},t.prototype._replacePreviousChar=function(e,t){this._executeEditOperation(d.TypeOperations.replacePreviousChar(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),e,t))},t.prototype._paste=function(e,t,o){this._executeEditOperation(d.TypeOperations.paste(this.context.config,this.context.model,this.getSelections(),e,t,o))},t.prototype._cut=function(){this._executeEditOperation(l.DeleteOperations.cut(this.context.config,this.context.model,this.getSelections()))},t.prototype._externalExecuteCommand=function(e){this._cursors.killSecondaryCursors(),this._executeEditOperation(new u.EditOperationResult(0,[e],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},t.prototype._externalExecuteCommands=function(e){this._executeEditOperation(new u.EditOperationResult(0,e,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},t.MAX_CURSOR_COUNT=1e4,t}(_.ViewEventEmitter);t.Cursor=v;var C=function(){function e(){}return e.executeCommands=function(e,t,o){for(var r={model:e,selectionsBefore:t,trackedRanges:[],trackedRangesDirection:[]},n=this._innerExecuteCommands(r,o),i=0,s=r.trackedRanges.length;s>i;i++)r.model._setTrackedRange(r.trackedRanges[i],null,0);return n},e._innerExecuteCommands=function(e,t){if(this._arrayIsEmpty(t))return null;var o=this._getEditOperations(e,t);if(0===o.operations.length)return null;var r=o.operations,n=this._getLoserCursorMap(r);if(n.hasOwnProperty("0"))return console.warn("Ignoring commands"),null;for(var i=[],s=0,a=r.length;a>s;s++)n.hasOwnProperty(r[s].identifier.major.toString())||i.push(r[s]);o.hadTrackedEditOperation&&i.length>0&&(i[0]._isTracked=!0);var c=e.model.pushEditOperations(e.selectionsBefore,i,function(o){for(var r=[],n=0;n0?(r[o].sort(c),u[o]=t[o].computeCursorState(e.model,{getInverseEditOperations:function(){return r[o]},getTrackedSelection:function(t){var o=parseInt(t,10),r=e.model._getTrackedRange(e.trackedRanges[o]);return 0===e.trackedRangesDirection[o]?new p.Selection(r.startLineNumber,r.startColumn,r.endLineNumber,r.endColumn):new p.Selection(r.endLineNumber,r.endColumn,r.startLineNumber,r.startColumn)}})):u[o]=e.selectionsBefore[o]},n=0;nt;t++)if(e[t])return!1;return!0},e._getEditOperations=function(e,t){for(var o=[],r=!1,n=0,i=t.length;i>n;n++){var s=t[n];if(s){var a=this._getEditOperationsFromCommand(e,n,s);o=o.concat(a.operations),r=r||a.hadTrackedEditOperation}}return{operations:o,hadTrackedEditOperation:r}},e._getEditOperationsFromCommand=function(e,t,o){var r=[],n=0,s=function(e,i){e.isEmpty()&&""===i||r.push({identifier:{major:t,minor:n++},range:e,text:i,forceMoveMarkers:!1,isAutoWhitespaceEdit:o.insertsAutoWhitespace})},a=!1,c=function(e,t){a=!0,s(e,t)},u=function(t,o){var r;if(t.isEmpty())if("boolean"==typeof o)r=o?2:3;else{var n=e.model.getLineMaxColumn(t.startLineNumber);r=t.startColumn===n?2:3}else r=1;var i=e.trackedRanges.length,s=e.model._setTrackedRange(null,t,r);return e.trackedRanges[i]=s,e.trackedRangesDirection[i]=t.getDirection(),i.toString()},l={addEditOperation:s,addTrackedEditOperation:c,trackSelection:u};try{o.getEditOperations(e.model,l)}catch(d){return i.onUnexpectedError(d),{operations:[],hadTrackedEditOperation:!1}}return{operations:r,hadTrackedEditOperation:a}},e._getLoserCursorMap=function(e){e=e.slice(0),e.sort(function(e,t){return-m.Range.compareRangesUsingEnds(e.range,t.range)});for(var t={},o=1;on.identifier.major?r.identifier.major:n.identifier.major,t[i.toString()]=!0;for(var s=0;ss&&o--,s--);o>0&&o--}}return t},e}()}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/editorAction.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/editorAction",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t,i,o,n,r){this.id=e,this.label=t,this.alias=i,this._precondition=o,this._run=n,this._contextKeyService=r}return e.prototype.isSupported=function(){return this._contextKeyService.contextMatchesRules(this._precondition)},e.prototype.run=function(){if(!this.isSupported())return Promise.resolve(void 0);var e=this._run();return e?e:Promise.resolve(void 0)},e}();t.InternalEditorAction=i}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/modes/textToHtmlTokenizer.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/modes/textToHtmlTokenizer",function(e,n){"use strict";function o(e,n){return void 0===n&&(n=c),r(e,n||c)}function t(e,n,o,t,r,s){for(var a="
",i=t,d=0,c=0,l=n.getCount();l>c;c++){var m=n.getEndOffset(c);if(!(t>=m)){for(var u="";m>i&&r>i;i++){var f=e.charCodeAt(i);switch(f){case 9:var v=s-(i+d)%s;for(d+=v-1;v>0;)u+=" ",v--;break;case 60:u+="<";break;case 62:u+=">";break;case 38:u+="&";break;case 0:u+="�";break;case 65279:case 8232:u+="�";break;case 13:u+="​";break;default:u+=String.fromCharCode(f)}}if(a+=''+u+"",m>r||i>=r)break}}return a+="
"}function r(e,n){for(var o='
',t=e.split(/\r\n|\r|\n/),r=n.getInitialState(),s=0,d=t.length;d>s;s++){var c=t[s];s>0&&(o+="
");var l=n.tokenize2(c,r,0);i.LineTokens.convertToEndOffset(l.tokens,c.length);for(var m=new i.LineTokens(l.tokens,c),u=m.inflate(),f=0,v=0,k=u.getCount();k>v;v++){var b=u.getClassName(v),g=u.getEndOffset(v);o+=''+a.escape(c.substring(f,g))+"",f=g}r=l.endState}return o+="
"}Object.defineProperty(n,"__esModule",{value:!0});var s=e("node_modules/tslib/tslib"),a=s.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/strings")),i=e("node_modules/monaco-editor/esm/vs/editor/common/core/lineTokens"),d=e("node_modules/monaco-editor/esm/vs/editor/common/modes/nullMode"),c={getInitialState:function(){return d.NULL_STATE},tokenize2:function(e,n,o){return d.nullTokenize2(0,e,n,o)}};n.tokenizeToString=o,n.tokenizeLineToHTML=t}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/viewLayout/whitespaceComputer.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/viewLayout/whitespaceComputer",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this._heights=[],this._minWidths=[],this._ids=[],this._afterLineNumbers=[],this._ordinals=[],this._prefixSum=[],this._prefixSumValidIndex=-1,this._whitespaceId2Index={},this._lastWhitespaceId=0,this._minWidth=-1}return e.findInsertionIndex=function(e,t,i,s){for(var h=0,r=e.length;r>h;){var n=h+r>>>1;t===e[n]?sa;a++){var p=n[a],d=this._whitespaceId2Index[p];d>=t&&(this._whitespaceId2Index[p]=d+1)}this._whitespaceId2Index[e.toString()]=t,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)},e.prototype.changeWhitespace=function(e,t,i){e=0|e,t=0|t,i=0|i;var s=!1;return s=this.changeWhitespaceHeight(e,i)||s,s=this.changeWhitespaceAfterLineNumber(e,t)||s},e.prototype.changeWhitespaceHeight=function(e,t){e=0|e,t=0|t;var i=e.toString();if(this._whitespaceId2Index.hasOwnProperty(i)){var s=this._whitespaceId2Index[i];if(this._heights[s]!==t)return this._heights[s]=t,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,s-1),!0}return!1},e.prototype.changeWhitespaceAfterLineNumber=function(t,i){t=0|t,i=0|i;var s=t.toString();if(this._whitespaceId2Index.hasOwnProperty(s)){var h=this._whitespaceId2Index[s];if(this._afterLineNumbers[h]!==i){var r=this._ordinals[h],n=this._heights[h],a=this._minWidths[h];this.removeWhitespace(t);var o=e.findInsertionIndex(this._afterLineNumbers,i,this._ordinals,r);return this._insertWhitespaceAtIndex(t,o,i,r,n,a),!0}}return!1},e.prototype.removeWhitespace=function(e){e=0|e;var t=e.toString();if(this._whitespaceId2Index.hasOwnProperty(t)){var i=this._whitespaceId2Index[t];return delete this._whitespaceId2Index[t],this._removeWhitespaceAtIndex(i),this._minWidth=-1,!0}return!1},e.prototype._removeWhitespaceAtIndex=function(e){e=0|e,this._heights.splice(e,1),this._minWidths.splice(e,1),this._ids.splice(e,1),this._afterLineNumbers.splice(e,1),this._ordinals.splice(e,1),this._prefixSum.splice(e,1),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,e-1);for(var t=Object.keys(this._whitespaceId2Index),i=0,s=t.length;s>i;i++){var h=t[i],r=this._whitespaceId2Index[h];r>=e&&(this._whitespaceId2Index[h]=r-1)}},e.prototype.onLinesDeleted=function(e,t){e=0|e,t=0|t;for(var i=0,s=this._afterLineNumbers.length;s>i;i++){var h=this._afterLineNumbers[i];h>=e&&t>=h?this._afterLineNumbers[i]=e-1:h>t&&(this._afterLineNumbers[i]-=t-e+1)}},e.prototype.onLinesInserted=function(e,t){e=0|e,t=0|t;for(var i=0,s=this._afterLineNumbers.length;s>i;i++){var h=this._afterLineNumbers[i];h>=e&&(this._afterLineNumbers[i]+=t-e+1)}},e.prototype.getTotalHeight=function(){return 0===this._heights.length?0:this.getAccumulatedHeight(this._heights.length-1)},e.prototype.getAccumulatedHeight=function(e){e=0|e;var t=Math.max(0,this._prefixSumValidIndex+1);0===t&&(this._prefixSum[0]=this._heights[0],t++);for(var i=t;e>=i;i++)this._prefixSum[i]=this._prefixSum[i-1]+this._heights[i];return this._prefixSumValidIndex=Math.max(this._prefixSumValidIndex,e),this._prefixSum[e]},e.prototype.getAccumulatedHeightBeforeLineNumber=function(e){e=0|e;var t=this._findLastWhitespaceBeforeLineNumber(e);return-1===t?0:this.getAccumulatedHeight(t)},e.prototype._findLastWhitespaceBeforeLineNumber=function(e){e=0|e;for(var t=this._afterLineNumbers,i=0,s=t.length-1;s>=i;){var h=s-i|0,r=h/2|0,n=i+r|0;if(t[n]=t.length||t[n+1]>=e)return n;i=n+1|0}else s=n-1|0}return-1},e.prototype._findFirstWhitespaceAfterLineNumber=function(e){e=0|e;var t=this._findLastWhitespaceBeforeLineNumber(e),i=t+1;return it;t++)e=Math.max(e,this._minWidths[t]);this._minWidth=e}return this._minWidth},e.prototype.getAfterLineNumberForWhitespaceIndex=function(e){return e=0|e,this._afterLineNumbers[e]},e.prototype.getIdForWhitespaceIndex=function(e){return e=0|e,this._ids[e]},e.prototype.getHeightForWhitespaceIndex=function(e){return e=0|e,this._heights[e]},e.prototype.getWhitespaces=function(e){e=0|e;for(var t=[],i=0;i1?this._lineHeight*(e-1):0;var i=this._whitespaces.getAccumulatedHeightBeforeLineNumber(e);return t+i},e.prototype.getWhitespaceAccumulatedHeightBeforeLineNumber=function(e){return this._whitespaces.getAccumulatedHeightBeforeLineNumber(e)},e.prototype.getWhitespaceMinWidth=function(){return this._whitespaces.getMinWidth()},e.prototype.isAfterLines=function(e){var t=this.getLinesTotalHeight();return e>t},e.prototype.getLineNumberAtOrAfterVerticalOffset=function(e){if(e=0|e,0>e)return 1;for(var t=0|this._lineCount,i=this._lineHeight,r=1,s=t;s>r;){var n=(r+s)/2|0,h=0|this.getVerticalOffsetForLineNumber(n);if(e>=h+i)r=n+1;else{if(e>=h)return n;s=n}}return r>t?t:r},e.prototype.getLinesViewportData=function(e,t){e=0|e,t=0|t;var i,r,s=this._lineHeight,n=0|this.getLineNumberAtOrAfterVerticalOffset(e),h=0|this.getVerticalOffsetForLineNumber(n),o=0|this._lineCount,a=0|this._whitespaces.getFirstWhitespaceIndexAfterLineNumber(n),c=0|this._whitespaces.getCount();-1===a?(a=c,r=o+1,i=0):(r=0|this._whitespaces.getAfterLineNumberForWhitespaceIndex(a),i=0|this._whitespaces.getHeightForWhitespaceIndex(a));var p=h,u=p,f=5e5,g=0;h>=f&&(g=Math.floor(h/f)*f,g=Math.floor(g/s)*s,u-=g);for(var l=[],d=e+(t-e)/2,_=-1,m=n;o>=m;m++){if(-1===_){var W=p,w=p+s;(d>=W&&w>d||W>d)&&(_=m)}for(p+=s,l[m-n]=u,u+=s;r===m;)u+=i,p+=i,a++,a>=c?r=o+1:(r=0|this._whitespaces.getAfterLineNumberForWhitespaceIndex(a),i=0|this._whitespaces.getHeightForWhitespaceIndex(a));if(p>=t){o=m;break}}-1===_&&(_=o);var L=0|this.getVerticalOffsetForLineNumber(o),v=n,b=o;return b>v&&e>h&&v++,b>v&&L+s>t&&b--,{bigNumbersDelta:g,startLineNumber:n,endLineNumber:o,relativeVerticalOffset:l,centeredLineNumber:_,completelyVisibleStartLineNumber:v,completelyVisibleEndLineNumber:b}},e.prototype.getVerticalOffsetForWhitespaceIndex=function(e){e=0|e;var t,i=this._whitespaces.getAfterLineNumberForWhitespaceIndex(e);t=i>=1?this._lineHeight*i:0;var r;return r=e>0?this._whitespaces.getAccumulatedHeight(e-1):0,t+r},e.prototype.getWhitespaceIndexAtOrAfterVerticallOffset=function(e){e=0|e;var t,i,r,s=0,n=this._whitespaces.getCount()-1;if(0>n)return-1;var h=this.getVerticalOffsetForWhitespaceIndex(n),o=this._whitespaces.getHeightForWhitespaceIndex(n);if(e>=h+o)return-1;for(;n>s;)if(t=Math.floor((s+n)/2),i=this.getVerticalOffsetForWhitespaceIndex(t),r=this._whitespaces.getHeightForWhitespaceIndex(t),e>=i+r)s=t+1;else{if(e>=i)return t;n=t}return s},e.prototype.getWhitespaceAtVerticalOffset=function(e){e=0|e;var t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(0>t)return null;if(t>=this._whitespaces.getCount())return null;var i=this.getVerticalOffsetForWhitespaceIndex(t);if(i>e)return null;var r=this._whitespaces.getHeightForWhitespaceIndex(t),s=this._whitespaces.getIdForWhitespaceIndex(t),n=this._whitespaces.getAfterLineNumberForWhitespaceIndex(t);return{id:s,afterLineNumber:n,verticalOffset:i,height:r}},e.prototype.getWhitespaceViewportData=function(e,t){e=0|e,t=0|t;var i=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),r=this._whitespaces.getCount()-1;if(0>i)return[];for(var s=[],n=i;r>=n;n++){var h=this.getVerticalOffsetForWhitespaceIndex(n),o=this._whitespaces.getHeightForWhitespaceIndex(n);if(h>=t)break;s.push({id:this._whitespaces.getIdForWhitespaceIndex(n),afterLineNumber:this._whitespaces.getAfterLineNumberForWhitespaceIndex(n),verticalOffset:h,height:o})}return s},e.prototype.getWhitespaces=function(){return this._whitespaces.getWhitespaces(this._lineHeight)},e}();t.LinesLayout=r}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/viewLayout/viewLayout.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/viewLayout/viewLayout",function(t,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var e=this&&this.__extends||function(){var t=function(o,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var e in o)o.hasOwnProperty(e)&&(t[e]=o[e])})(o,e)};return function(o,e){function i(){this.constructor=o}t(o,e),o.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),i=t("node_modules/monaco-editor/esm/vs/base/common/lifecycle"),r=t("node_modules/monaco-editor/esm/vs/base/common/scrollable"),n=t("node_modules/monaco-editor/esm/vs/editor/common/viewLayout/linesLayout"),l=t("node_modules/monaco-editor/esm/vs/editor/common/viewModel/viewModel"),s=125,c=function(t){function o(o,e,i){var l=t.call(this)||this;return l._configuration=o,l._linesLayout=new n.LinesLayout(e,l._configuration.editor.lineHeight),l.scrollable=l._register(new r.Scrollable(0,i)),l._configureSmoothScrollDuration(),l.scrollable.setScrollDimensions({width:o.editor.layoutInfo.contentWidth,height:o.editor.layoutInfo.contentHeight}),l.onDidScroll=l.scrollable.onScroll,l._updateHeight(),l}return e(o,t),o.prototype.dispose=function(){t.prototype.dispose.call(this)},o.prototype.onHeightMaybeChanged=function(){this._updateHeight()},o.prototype._configureSmoothScrollDuration=function(){this.scrollable.setSmoothScrollDuration(this._configuration.editor.viewInfo.smoothScrolling?s:0)},o.prototype.onConfigurationChanged=function(t){t.lineHeight&&this._linesLayout.setLineHeight(this._configuration.editor.lineHeight),t.layoutInfo&&this.scrollable.setScrollDimensions({width:this._configuration.editor.layoutInfo.contentWidth,height:this._configuration.editor.layoutInfo.contentHeight}),t.viewInfo&&this._configureSmoothScrollDuration(),this._updateHeight()},o.prototype.onFlushed=function(t){this._linesLayout.onFlushed(t)},o.prototype.onLinesDeleted=function(t,o){this._linesLayout.onLinesDeleted(t,o)},o.prototype.onLinesInserted=function(t,o){this._linesLayout.onLinesInserted(t,o)},o.prototype._getHorizontalScrollbarHeight=function(t){return 2===this._configuration.editor.viewInfo.scrollbar.horizontal?0:t.width>=t.scrollWidth?0:this._configuration.editor.viewInfo.scrollbar.horizontalScrollbarSize},o.prototype._getTotalHeight=function(){var t=this.scrollable.getScrollDimensions(),o=this._linesLayout.getLinesTotalHeight();return o+=this._configuration.editor.viewInfo.scrollBeyondLastLine?t.height-this._configuration.editor.lineHeight:this._getHorizontalScrollbarHeight(t),Math.max(t.height,o)},o.prototype._updateHeight=function(){this.scrollable.setScrollDimensions({scrollHeight:this._getTotalHeight()})},o.prototype.getCurrentViewport=function(){var t=this.scrollable.getScrollDimensions(),o=this.scrollable.getCurrentScrollPosition();return new l.Viewport(o.scrollTop,o.scrollLeft,t.width,t.height)},o.prototype.getFutureViewport=function(){var t=this.scrollable.getScrollDimensions(),o=this.scrollable.getFutureScrollPosition();return new l.Viewport(o.scrollTop,o.scrollLeft,t.width,t.height)},o.prototype._computeScrollWidth=function(t,o){var e=this._configuration.editor.wrappingInfo.isViewportWrapping;if(!e){var i=this._configuration.editor.viewInfo.scrollBeyondLastColumn*this._configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,r=this._linesLayout.getWhitespaceMinWidth();return Math.max(t+i,o,r)}return Math.max(t,o)},o.prototype.onMaxLineWidthChanged=function(t){var o=this._computeScrollWidth(t,this.getCurrentViewport().width);this.scrollable.setScrollDimensions({scrollWidth:o}),this._updateHeight()},o.prototype.saveState=function(){var t=this.scrollable.getFutureScrollPosition(),o=t.scrollTop,e=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(o),i=this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(e);return{scrollTop:o,scrollTopWithoutViewZones:o-i,scrollLeft:t.scrollLeft}},o.prototype.addWhitespace=function(t,o,e,i){return this._linesLayout.insertWhitespace(t,o,e,i)},o.prototype.changeWhitespace=function(t,o,e){return this._linesLayout.changeWhitespace(t,o,e)},o.prototype.removeWhitespace=function(t){return this._linesLayout.removeWhitespace(t)},o.prototype.getVerticalOffsetForLineNumber=function(t){return this._linesLayout.getVerticalOffsetForLineNumber(t)},o.prototype.isAfterLines=function(t){return this._linesLayout.isAfterLines(t)},o.prototype.getLineNumberAtVerticalOffset=function(t){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t)},o.prototype.getWhitespaceAtVerticalOffset=function(t){return this._linesLayout.getWhitespaceAtVerticalOffset(t)},o.prototype.getLinesViewportData=function(){var t=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(t.top,t.top+t.height)},o.prototype.getLinesViewportDataAtScrollTop=function(t){var o=this.scrollable.getScrollDimensions();return t+o.height>o.scrollHeight&&(t=o.scrollHeight-o.height),0>t&&(t=0),this._linesLayout.getLinesViewportData(t,t+o.height)},o.prototype.getWhitespaceViewportData=function(){var t=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(t.top,t.top+t.height)},o.prototype.getWhitespaces=function(){return this._linesLayout.getWhitespaces()},o.prototype.getScrollWidth=function(){var t=this.scrollable.getScrollDimensions();return t.scrollWidth},o.prototype.getScrollHeight=function(){var t=this.scrollable.getScrollDimensions();return t.scrollHeight},o.prototype.getCurrentScrollLeft=function(){var t=this.scrollable.getCurrentScrollPosition();return t.scrollLeft},o.prototype.getCurrentScrollTop=function(){var t=this.scrollable.getCurrentScrollPosition();return t.scrollTop},o.prototype.validateScrollPosition=function(t){return this.scrollable.validateScrollPosition(t)},o.prototype.setScrollPositionNow=function(t){this.scrollable.setScrollPositionNow(t)},o.prototype.setScrollPositionSmooth=function(t){this.scrollable.setScrollPositionSmooth(t)},o.prototype.deltaScrollNow=function(t,o){var e=this.scrollable.getCurrentScrollPosition();this.scrollable.setScrollPositionNow({scrollLeft:e.scrollLeft+t,scrollTop:e.scrollTop+o})},o}(i.Disposable);o.ViewLayout=c}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/viewModel/splitLinesCollection.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/viewModel/splitLinesCollection",function(e,t){"use strict";function i(e,t,i,n,o,r,s){var u=e.createLineMapping(t,i,n,o,r);return null===u?s?m.INSTANCE:c.INSTANCE:new g(u,s)}Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),o=e("node_modules/monaco-editor/esm/vs/editor/common/core/position"),r=e("node_modules/monaco-editor/esm/vs/editor/common/core/range"),s=e("node_modules/monaco-editor/esm/vs/editor/common/model/textModel"),u=n.__importStar(e("node_modules/monaco-editor/esm/vs/editor/common/view/viewEvents")),l=e("node_modules/monaco-editor/esm/vs/editor/common/viewModel/prefixSumComputer"),a=e("node_modules/monaco-editor/esm/vs/editor/common/viewModel/viewModel"),p=function(){function e(e,t){this.outputLineIndex=e,this.outputOffset=t}return e}();t.OutputPosition=p;var d=function(){function e(e){this._lines=e}return e.prototype.convertViewPositionToModelPosition=function(e){return this._lines.convertViewPositionToModelPosition(e.lineNumber,e.column)},e.prototype.convertViewRangeToModelRange=function(e){var t=this._lines.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),i=this._lines.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new r.Range(t.lineNumber,t.column,i.lineNumber,i.column)},e.prototype.validateViewPosition=function(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t)},e.prototype.validateViewRange=function(e,t){var i=this._lines.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition()),n=this._lines.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new r.Range(i.lineNumber,i.column,n.lineNumber,n.column)},e.prototype.convertModelPositionToViewPosition=function(e){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column)},e.prototype.convertModelRangeToViewRange=function(e){var t=this._lines.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn),i=this._lines.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn);return new r.Range(t.lineNumber,t.column,i.lineNumber,i.column)},e.prototype.modelPositionIsVisible=function(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)},e}();t.CoordinatesConverter=d;var h=function(){function e(e,t,i,n,o,r){this.model=e,this._validModelVersionId=-1,this.tabSize=i,this.wrappingColumn=n,this.columnsForFullWidthChar=o,this.wrappingIndent=r,this.linePositionMapperFactory=t,this._constructLines(!0)}return e.prototype.dispose=function(){this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,[])},e.prototype.createCoordinatesConverter=function(){return new d(this)},e.prototype._ensureValidState=function(){var e=this.model.getVersionId();if(e!==this._validModelVersionId)throw new Error("ViewModel is out of sync with Model!");this.lines.length!==this.model.getLineCount()&&this._constructLines(!1)},e.prototype._constructLines=function(e){var t=this;this.lines=[],e&&(this.hiddenAreasIds=[]);for(var n=this.model.getLinesContent(),o=n.length,s=new Uint32Array(o),u=this.hiddenAreasIds.map(function(e){return t.model.getDecorationRange(e)}).sort(r.Range.compareRangesUsingStarts),a=1,p=0,d=-1,h=d+1m;m++){var c=m+1;c===h&&(d++,a=u[d].startLineNumber,p=u[d].endLineNumber,h=d+1=a&&p>=c,f=i(this.linePositionMapperFactory,n[m],this.tabSize,this.wrappingColumn,this.columnsForFullWidthChar,this.wrappingIndent,!g);s[m]=f.getViewLineCount(),this.lines[m]=f}this._validModelVersionId=this.model.getVersionId(),this.prefixSumComputer=new l.PrefixSumComputerWithCache(s)},e.prototype.getHiddenAreas=function(){var e=this;return this.hiddenAreasIds.map(function(t){return e.model.getDecorationRange(t)})},e.prototype._reduceRanges=function(e){var t=this;if(0===e.length)return[];for(var i=e.map(function(e){return t.model.validateRange(e)}).sort(r.Range.compareRangesUsingStarts),n=[],o=i[0].startLineNumber,s=i[0].endLineNumber,u=1,l=i.length;l>u;u++){var a=i[u];a.startLineNumber>s+1?(n.push(new r.Range(o,1,s,1)),o=a.startLineNumber,s=a.endLineNumber):a.endLineNumber>s&&(s=a.endLineNumber)}return n.push(new r.Range(o,1,s,1)),n},e.prototype.setHiddenAreas=function(e){var t=this,i=this._reduceRanges(e),n=this.hiddenAreasIds.map(function(e){return t.model.getDecorationRange(e)}).sort(r.Range.compareRangesUsingStarts);if(i.length===n.length){for(var o=!1,u=0;u=m&&c>=V?this.lines[u].isVisible()&&(this.lines[u]=this.lines[u].setVisible(!1),L=!0):(w=!0,this.lines[u].isVisible()||(this.lines[u]=this.lines[u].setVisible(!0),L=!0)),L){var v=this.lines[u].getViewLineCount();this.prefixSumComputer.changeValue(u,v)}}return w||this.setHiddenAreas([]),!0},e.prototype.modelPositionIsVisible=function(e){return 1>e||e>this.lines.length?!1:this.lines[e-1].isVisible()},e.prototype.setTabSize=function(e){return this.tabSize===e?!1:(this.tabSize=e,this._constructLines(!1),!0)},e.prototype.setWrappingSettings=function(e,t,i){return this.wrappingIndent===e&&this.wrappingColumn===t&&this.columnsForFullWidthChar===i?!1:(this.wrappingIndent=e,this.wrappingColumn=t,this.columnsForFullWidthChar=i,this._constructLines(!1),!0)},e.prototype.onModelFlushed=function(){this._constructLines(!0)},e.prototype.onModelLinesDeleted=function(e,t,i){if(e<=this._validModelVersionId)return null;var n=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,o=this.prefixSumComputer.getAccumulatedValue(i-1);return this.lines.splice(t-1,i-t+1),this.prefixSumComputer.removeValues(t-1,i-t+1),new u.ViewLinesDeletedEvent(n,o)},e.prototype.onModelLinesInserted=function(e,t,n,r){if(e<=this._validModelVersionId)return null;for(var s=this.getHiddenAreas(),l=!1,a=new o.Position(t,1),p=0,d=s;pw;w++){var L=i(this.linePositionMapperFactory,r[w],this.tabSize,this.wrappingColumn,this.columnsForFullWidthChar,this.wrappingIndent,!l);g.push(L);var v=L.getViewLineCount();c+=v,f[w]=v}return this.lines=this.lines.slice(0,t-1).concat(g).concat(this.lines.slice(t-1)),this.prefixSumComputer.insertValues(t-1,f),new u.ViewLinesInsertedEvent(m,m+c-1)},e.prototype.onModelLineChanged=function(e,t,n){if(e<=this._validModelVersionId)return[!1,null,null,null];var o=t-1,r=this.lines[o].getViewLineCount(),s=this.lines[o].isVisible(),l=i(this.linePositionMapperFactory,n,this.tabSize,this.wrappingColumn,this.columnsForFullWidthChar,this.wrappingIndent,s);this.lines[o]=l;var a=this.lines[o].getViewLineCount(),p=!1,d=0,h=-1,m=0,c=-1,g=0,f=-1;r>a?(d=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,h=d+a-1,g=h+1,f=g+(r-a)-1,p=!0):a>r?(d=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,h=d+r-1,m=h+1,c=m+(a-r)-1,p=!0):(d=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,h=d+a-1),this.prefixSumComputer.changeValue(o,a);var w=h>=d?new u.ViewLinesChangedEvent(d,h):null,V=c>=m?new u.ViewLinesInsertedEvent(m,c):null,L=f>=g?new u.ViewLinesDeletedEvent(g,f):null;return[p,w,V,L]},e.prototype.acceptVersionId=function(e){this._validModelVersionId=e,1!==this.lines.length||this.lines[0].isVisible()||this.setHiddenAreas([])},e.prototype.getViewLineCount=function(){return this._ensureValidState(),this.prefixSumComputer.getTotalValue()},e.prototype._toValidViewLineNumber=function(e){if(1>e)return 1;var t=this.getViewLineCount();return e>t?t:e},e.prototype.warmUpLookupCache=function(e,t){this.prefixSumComputer.warmUpCache(e-1,t-1)},e.prototype.getActiveIndentGuide=function(e,t,i){this._ensureValidState(),e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t),i=this._toValidViewLineNumber(i);var n=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),o=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),r=this.convertViewPositionToModelPosition(i,this.getViewLineMinColumn(i)),s=this.model.getActiveIndentGuide(n.lineNumber,o.lineNumber,r.lineNumber),u=this.convertModelPositionToViewPosition(s.startLineNumber,1),l=this.convertModelPositionToViewPosition(s.endLineNumber,this.model.getLineMaxColumn(s.endLineNumber));return{startLineNumber:u.lineNumber,endLineNumber:l.lineNumber,indent:s.indent}},e.prototype.getViewLinesIndentGuides=function(e,t){this._ensureValidState(),e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);for(var i=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),n=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t)),r=[],s=[],u=[],l=i.lineNumber-1,a=n.lineNumber-1,p=null,d=l;a>=d;d++){var h=this.lines[d];if(h.isVisible()){var m=h.getViewLineNumberOfModelPosition(0,d===l?i.column:1),c=h.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(d+1)),g=c-m+1,f=0;g>1&&1===h.getViewLineMinColumn(this.model,d+1,c)&&(f=0===m?1:2),s.push(g),u.push(f),null===p&&(p=new o.Position(d+1,0))}else null!==p&&(r=r.concat(this.model.getLinesIndentGuides(p.lineNumber,d)),p=null)}null!==p&&(r=r.concat(this.model.getLinesIndentGuides(p.lineNumber,n.lineNumber)),p=null);for(var w=t-e+1,V=new Array(w),L=0,v=0,C=r.length;C>v;v++){var b=r[v],g=Math.min(w-L,s[v]),f=u[v],N=void 0;N=2===f?0:1===f?1:g;for(var y=0;g>y;y++)y===N&&(b=0),V[L++]=b}return V},e.prototype.getViewLineContent=function(e){this._ensureValidState(),e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),i=t.index,n=t.remainder;return this.lines[i].getViewLineContent(this.model,i+1,n)},e.prototype.getViewLineLength=function(e){this._ensureValidState(),e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),i=t.index,n=t.remainder;return this.lines[i].getViewLineLength(this.model,i+1,n)},e.prototype.getViewLineMinColumn=function(e){this._ensureValidState(),e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),i=t.index,n=t.remainder;return this.lines[i].getViewLineMinColumn(this.model,i+1,n)},e.prototype.getViewLineMaxColumn=function(e){this._ensureValidState(),e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),i=t.index,n=t.remainder;return this.lines[i].getViewLineMaxColumn(this.model,i+1,n)},e.prototype.getViewLineData=function(e){this._ensureValidState(),e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),i=t.index,n=t.remainder;return this.lines[i].getViewLineData(this.model,i+1,n)},e.prototype.getViewLinesData=function(e,t,i){this._ensureValidState(),e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);for(var n=this.prefixSumComputer.getIndexOf(e-1),o=e,r=n.index,s=n.remainder,u=[],l=r,a=this.model.getLineCount();a>l;l++){var p=this.lines[l];if(p.isVisible()){var d=l===r?s:0,h=p.getViewLineCount()-d,m=!1;o+h>t&&(m=!0,h=t-o+1);var c=d+h;if(p.getViewLinesData(this.model,l+1,d,c,o-e,i,u),o+=h,m)break}}return u},e.prototype.validateViewPosition=function(e,t,i){this._ensureValidState(),e=this._toValidViewLineNumber(e);var n=this.prefixSumComputer.getIndexOf(e-1),r=n.index,s=n.remainder,u=this.lines[r],l=u.getViewLineMinColumn(this.model,r+1,s),a=u.getViewLineMaxColumn(this.model,r+1,s);l>t&&(t=l),t>a&&(t=a);var p=u.getModelColumnOfViewPosition(s,t),d=this.model.validatePosition(new o.Position(r+1,p));return d.equals(i)?new o.Position(e,t):this.convertModelPositionToViewPosition(i.lineNumber,i.column)},e.prototype.convertViewPositionToModelPosition=function(e,t){this._ensureValidState(),e=this._toValidViewLineNumber(e);var i=this.prefixSumComputer.getIndexOf(e-1),n=i.index,r=i.remainder,s=this.lines[n].getModelColumnOfViewPosition(r,t);return this.model.validatePosition(new o.Position(n+1,s))},e.prototype.convertModelPositionToViewPosition=function(e,t){this._ensureValidState();for(var i=this.model.validatePosition(new o.Position(e,t)),n=i.lineNumber,r=i.column,s=n-1,u=!1;s>0&&!this.lines[s].isVisible();)s--,u=!0;if(0===s&&!this.lines[s].isVisible())return new o.Position(1,1);var l,a=1+(0===s?0:this.prefixSumComputer.getAccumulatedValue(s-1));return l=u?this.lines[s].getViewPositionOfModelPosition(a,this.model.getLineMaxColumn(s+1)):this.lines[n-1].getViewPositionOfModelPosition(a,r)},e.prototype._getViewLineNumberForModelPosition=function(e,t){var i=e-1;if(this.lines[i].isVisible()){var n=1+(0===i?0:this.prefixSumComputer.getAccumulatedValue(i-1));return this.lines[i].getViewLineNumberOfModelPosition(n,t)}for(;i>0&&!this.lines[i].isVisible();)i--;if(0===i&&!this.lines[i].isVisible())return 1;var o=1+(0===i?0:this.prefixSumComputer.getAccumulatedValue(i-1));return this.lines[i].getViewLineNumberOfModelPosition(o,this.model.getLineMaxColumn(i+1))},e.prototype.getAllOverviewRulerDecorations=function(e,t,i){for(var n=this.model.getOverviewRulerDecorations(e,t),o=new V,r=0,s=n;r=d;d++){var h=this.lines[d];if(h.isVisible())null===p&&(p=new o.Position(d+1,d===l?n.column:1));else if(null!==p){var m=this.model.getLineMaxColumn(d);u=u.concat(this.model.getDecorationsInRange(new r.Range(p.lineNumber,p.column,d,m),t,i)),p=null}}null!==p&&(u=u.concat(this.model.getDecorationsInRange(new r.Range(p.lineNumber,p.column,s.lineNumber,s.column),t,i)),p=null),u.sort(function(e,t){var i=r.Range.compareRangesUsingStarts(e.range,t.range);return 0===i?e.idt.id?1:0:i});for(var c=[],g=0,f=null,w=0,V=u;w0&&(r=this.wrappedIndent+r),r},e.prototype.getViewLineLength=function(e,t,i){if(!this._isVisible)throw new Error("Not supported");var n=this.getInputStartOffsetOfOutputLineIndex(i),o=this.getInputEndOffsetOfOutputLineIndex(e,t,i),r=o-n;return i>0&&(r=this.wrappedIndent.length+r),r},e.prototype.getViewLineMinColumn=function(e,t,i){if(!this._isVisible)throw new Error("Not supported");return i>0?this.wrappedIndentLength+1:1},e.prototype.getViewLineMaxColumn=function(e,t,i){if(!this._isVisible)throw new Error("Not supported");return this.getViewLineContent(e,t,i).length+1},e.prototype.getViewLineData=function(e,t,i){if(!this._isVisible)throw new Error("Not supported");var n=this.getInputStartOffsetOfOutputLineIndex(i),o=this.getInputEndOffsetOfOutputLineIndex(e,t,i),r=e.getValueInRange({startLineNumber:t,startColumn:n+1,endLineNumber:t,endColumn:o+1});i>0&&(r=this.wrappedIndent+r);var s=i>0?this.wrappedIndentLength+1:1,u=r.length+1,l=i+10&&(p=this.wrappedIndentLength);var d=e.getLineTokens(t);return new a.ViewLineData(r,l,s,u,d.sliceAndInflate(n,o,p))},e.prototype.getViewLinesData=function(e,t,i,n,o,r,s){if(!this._isVisible)throw new Error("Not supported");for(var u=i;n>u;u++){var l=o+u-i;s[l]=r[l]?this.getViewLineData(e,t,u):null}},e.prototype.getModelColumnOfViewPosition=function(e,t){if(!this._isVisible)throw new Error("Not supported");var i=t-1;return e>0&&(i0&&(r+=this.wrappedIndentLength),new o.Position(e+n,r)},e.prototype.getViewLineNumberOfModelPosition=function(e,t){if(!this._isVisible)throw new Error("Not supported");var i=this.positionMapper.getOutputPositionOfInputOffset(t-1);return e+i.outputLineIndex},e}();t.SplitLine=g;var f=function(){function e(e){this._lines=e}return e.prototype._validPosition=function(e){return this._lines.model.validatePosition(e)},e.prototype._validRange=function(e){return this._lines.model.validateRange(e)},e.prototype.convertViewPositionToModelPosition=function(e){return this._validPosition(e)},e.prototype.convertViewRangeToModelRange=function(e){return this._validRange(e)},e.prototype.validateViewPosition=function(e,t){return this._validPosition(t)},e.prototype.validateViewRange=function(e,t){return this._validRange(t)},e.prototype.convertModelPositionToViewPosition=function(e){return this._validPosition(e)},e.prototype.convertModelRangeToViewRange=function(e){return this._validRange(e)},e.prototype.modelPositionIsVisible=function(e){var t=this._lines.model.getLineCount();return e.lineNumber<1||e.lineNumber>t?!1:!0},e}();t.IdentityCoordinatesConverter=f;var w=function(){function e(e){this.model=e}return e.prototype.dispose=function(){},e.prototype.createCoordinatesConverter=function(){return new f(this)},e.prototype.getHiddenAreas=function(){return[]},e.prototype.setHiddenAreas=function(){return!1},e.prototype.setTabSize=function(){return!1},e.prototype.setWrappingSettings=function(){return!1},e.prototype.onModelFlushed=function(){},e.prototype.onModelLinesDeleted=function(e,t,i){return new u.ViewLinesDeletedEvent(t,i)},e.prototype.onModelLinesInserted=function(e,t,i){return new u.ViewLinesInsertedEvent(t,i)},e.prototype.onModelLineChanged=function(e,t){return[!1,new u.ViewLinesChangedEvent(t,t),null,null]},e.prototype.acceptVersionId=function(){},e.prototype.getViewLineCount=function(){return this.model.getLineCount()},e.prototype.warmUpLookupCache=function(){},e.prototype.getActiveIndentGuide=function(e){return{startLineNumber:e,endLineNumber:e,indent:0}},e.prototype.getViewLinesIndentGuides=function(e,t){for(var i=t-e+1,n=new Array(i),o=0;i>o;o++)n[o]=0;return n},e.prototype.getViewLineContent=function(e){return this.model.getLineContent(e)},e.prototype.getViewLineLength=function(e){return this.model.getLineLength(e)},e.prototype.getViewLineMinColumn=function(e){return this.model.getLineMinColumn(e)},e.prototype.getViewLineMaxColumn=function(e){return this.model.getLineMaxColumn(e)},e.prototype.getViewLineData=function(e){var t=this.model.getLineTokens(e),i=t.getLineContent();return new a.ViewLineData(i,!1,1,i.length+1,t.inflate())},e.prototype.getViewLinesData=function(e,t,i){var n=this.model.getLineCount();e=Math.min(Math.max(1,e),n),t=Math.min(Math.max(1,t),n);for(var o=[],r=e;t>=r;r++){var s=r-e;i[s]||(o[s]=null),o[s]=this.getViewLineData(r)}return o},e.prototype.getAllOverviewRulerDecorations=function(e,t,i){for(var n=this.model.getOverviewRulerDecorations(e,t),o=new V,r=0,s=n;r=t)return void(i>s&&(o[o.length-1]=i));o.push(n,t,i)}else this.result[e]=[n,t,i]},e}()}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/viewModel/characterHardWrappingLineMapper.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/viewModel/characterHardWrappingLineMapper",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=e("node_modules/tslib/tslib"),n=this&&this.__extends||function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),r=o.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/strings")),i=e("node_modules/monaco-editor/esm/vs/editor/common/core/characterClassifier"),s=e("node_modules/monaco-editor/esm/vs/editor/common/core/uint"),u=e("node_modules/monaco-editor/esm/vs/editor/common/viewModel/prefixSumComputer"),a=e("node_modules/monaco-editor/esm/vs/editor/common/viewModel/splitLinesCollection"),c=function(e){function t(t,o,n){for(var r=e.call(this,0)||this,i=0;i=12352&&12543>=t||t>=13312&&19903>=t||t>=19968&&40959>=t?4:e.prototype.get.call(this,t)},t}(i.CharacterClassifier),p=function(){function e(e,t,o){this.classifier=new c(e,t,o)}return e.nextVisibleColumn=function(e,t,o,n){return e=+e,t=+t,n=+n,o?e+(t-e%t):e+n},e.prototype.createLineMapping=function(t,o,n,i,a){if(-1===n)return null;o=+o,n=+n,i=+i,a=+a;var c=0,p="",f=-1;if(0!==a&&(f=r.firstNonWhitespaceIndex(t),-1!==f)){p=t.substring(0,f);for(var l=0;f>l;l++)c=e.nextVisibleColumn(c,o,9===t.charCodeAt(l),1);var m=0;2===a?m=1:3===a&&(m=2);for(var l=0;m>l;l++)p+=" ",c=e.nextVisibleColumn(c,o,!0,1);c+i>n&&(p="",c=0)}for(var h=this.classifier,v=0,_=[],C=0,g=0,x=-1,y=0,b=-1,O=0,w=t.length,l=0;w>l;l++){var A=t.charCodeAt(l),L=9===A,M=h.get(A);if(1===M&&(x=l,y=c),4===M&&l>0){var V=t.charCodeAt(l-1),I=h.get(V);1!==I&&(x=l,y=c)}var P=1;if(r.isFullWidthCharacter(A)&&(P=i),g=e.nextVisibleColumn(g,o,L,P),g>n&&0!==l){var S=void 0,W=void 0;-1!==x&&n>=y?(S=x,W=y):-1!==b&&n>=O?(S=b,W=O):(S=l,W=c),_[C++]=S-v,v=S,g=e.nextVisibleColumn(W,o,L,P),x=-1,y=0,b=-1,O=0}if(-1!==x&&(y=e.nextVisibleColumn(y,o,L,P)),-1!==b&&(O=e.nextVisibleColumn(O,o,L,P)),2===M&&(0===a||l>=f)&&(x=l+1,y=c),4===M&&w-1>l){var j=t.charCodeAt(l+1),H=h.get(j);2!==H&&(x=l+1,y=c)}3===M&&(b=l+1,O=c)}return 0===C?null:(_[C++]=w-v,new d(new u.PrefixSumComputer(s.toUint32Array(_)),p))},e}();t.CharacterHardWrappingLineMapperFactory=p;var d=function(){function e(e,t){this._prefixSums=e,this._wrappedLinesIndent=t}return e.prototype.getOutputLineCount=function(){return this._prefixSums.getCount()},e.prototype.getWrappedLinesIndent=function(){return this._wrappedLinesIndent},e.prototype.getInputOffsetOfOutputPosition=function(e,t){return 0===e?t:this._prefixSums.getAccumulatedValue(e-1)+t},e.prototype.getOutputPositionOfInputOffset=function(e){var t=this._prefixSums.getIndexOf(e);return new a.OutputPosition(t.index,t.remainder)},e}();t.CharacterHardWrappingLineMapping=d}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/viewModel/viewModelDecorations.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/viewModel/viewModelDecorations",function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var n=e("node_modules/monaco-editor/esm/vs/editor/common/core/position"),t=e("node_modules/monaco-editor/esm/vs/editor/common/core/range"),i=e("node_modules/monaco-editor/esm/vs/editor/common/viewModel/viewModel"),r=function(){function e(e,o,n,t,i){this.editorId=e,this.model=o,this.configuration=n,this._linesCollection=t,this._coordinatesConverter=i,this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}return e.prototype._clearCachedModelDecorationsResolver=function(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null},e.prototype.dispose=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},e.prototype.reset=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},e.prototype.onModelDecorationsChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},e.prototype.onLineMappingChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},e.prototype._getOrCreateViewModelDecoration=function(e){var o=e.id,r=this._decorationsCache[o];if(!r){var a=e.range,s=e.options,c=void 0;if(s.isWholeLine){var l=this._coordinatesConverter.convertModelPositionToViewPosition(new n.Position(a.startLineNumber,1)),d=this._coordinatesConverter.convertModelPositionToViewPosition(new n.Position(a.endLineNumber,this.model.getLineMaxColumn(a.endLineNumber)));c=new t.Range(l.lineNumber,l.column,d.lineNumber,d.column)}else c=this._coordinatesConverter.convertModelRangeToViewRange(a);r=new i.ViewModelDecoration(c,s),this._decorationsCache[o]=r}return r},e.prototype.getDecorationsViewportData=function(e){var o=null!==this._cachedModelDecorationsResolver;return o=o&&e.equalsRange(this._cachedModelDecorationsResolverViewRange),o||(this._cachedModelDecorationsResolver=this._getDecorationsViewportData(e),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver},e.prototype._getDecorationsViewportData=function(e){for(var o=this._linesCollection.getDecorationsInRange(e,this.editorId,this.configuration.editor.readOnly),n=e.startLineNumber,r=e.endLineNumber,a=[],s=0,c=[],l=n;r>=l;l++)c[l-n]=[];for(var d=0,h=o.length;h>d;d++){var u=o[d],m=u.options,v=this._getOrCreateViewModelDecoration(u),C=v.range;if(a[s++]=v,m.inlineClassName)for(var _=new i.InlineDecoration(C,m.inlineClassName,m.inlineClassNameAffectsLetterSpacing?3:0),p=Math.max(n,C.startLineNumber),D=Math.min(r,C.endLineNumber),l=p;D>=l;l++)c[l-n].push(_);if(m.beforeContentClassName&&n<=C.startLineNumber&&C.startLineNumber<=r){var _=new i.InlineDecoration(new t.Range(C.startLineNumber,C.startColumn,C.startLineNumber,C.startColumn),m.beforeContentClassName,1);c[C.startLineNumber-n].push(_)}if(m.afterContentClassName&&n<=C.endLineNumber&&C.endLineNumber<=r){var _=new i.InlineDecoration(new t.Range(C.endLineNumber,C.endColumn,C.endLineNumber,C.endColumn),m.afterContentClassName,2);c[C.endLineNumber-n].push(_)}}return{decorations:a,inlineDecorations:c}},e}();o.ViewModelDecorations=r}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/viewModel/viewModelImpl.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/viewModel/viewModelImpl",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=e("node_modules/tslib/tslib"),n=this&&this.__extends||function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),o=e("node_modules/monaco-editor/esm/vs/base/common/color"),r=i.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/strings")),a=e("node_modules/monaco-editor/esm/vs/editor/common/core/position"),s=e("node_modules/monaco-editor/esm/vs/editor/common/core/range"),l=e("node_modules/monaco-editor/esm/vs/editor/common/modes"),d=e("node_modules/monaco-editor/esm/vs/editor/common/modes/textToHtmlTokenizer"),u=e("node_modules/monaco-editor/esm/vs/editor/common/view/minimapCharRenderer"),c=i.__importStar(e("node_modules/monaco-editor/esm/vs/editor/common/view/viewEvents")),m=e("node_modules/monaco-editor/esm/vs/editor/common/viewLayout/viewLayout"),g=e("node_modules/monaco-editor/esm/vs/editor/common/viewModel/characterHardWrappingLineMapper"),p=e("node_modules/monaco-editor/esm/vs/editor/common/viewModel/splitLinesCollection"),h=e("node_modules/monaco-editor/esm/vs/editor/common/viewModel/viewModel"),v=e("node_modules/monaco-editor/esm/vs/editor/common/viewModel/viewModelDecorations"),w=e("node_modules/monaco-editor/esm/vs/base/common/async"),f=!0,L=function(e){function t(t,i,n,o){var r=e.call(this)||this;if(r.editorId=t,r.configuration=i,r.model=n,r._tokenizeViewportSoon=r._register(new w.RunOnceScheduler(function(){return r.tokenizeViewport()},50)),r.hasFocus=!1,r.viewportStartLine=-1,r.viewportStartLineTrackedRange=null,r.viewportStartLineDelta=0,f&&r.model.isTooLargeForTokenization())r.lines=new p.IdentityLinesCollection(r.model);else{var a=r.configuration.editor,s=new g.CharacterHardWrappingLineMapperFactory(a.wrappingInfo.wordWrapBreakBeforeCharacters,a.wrappingInfo.wordWrapBreakAfterCharacters,a.wrappingInfo.wordWrapBreakObtrusiveCharacters);r.lines=new p.SplitLinesCollection(r.model,s,r.model.getOptions().tabSize,a.wrappingInfo.wrappingColumn,a.fontInfo.typicalFullwidthCharacterWidth/a.fontInfo.typicalHalfwidthCharacterWidth,a.wrappingInfo.wrappingIndent)}return r.coordinatesConverter=r.lines.createCoordinatesConverter(),r.viewLayout=r._register(new m.ViewLayout(r.configuration,r.getLineCount(),o)),r._register(r.viewLayout.onDidScroll(function(e){e.scrollTopChanged&&r._tokenizeViewportSoon.schedule();try{var t=r._beginEmit();t.emit(new c.ViewScrollChangedEvent(e))}finally{r._endEmit()}})),r.decorations=new v.ViewModelDecorations(r.editorId,r.model,r.configuration,r.lines,r.coordinatesConverter),r._registerModelEvents(),r._register(r.configuration.onDidChange(function(e){try{var t=r._beginEmit();r._onConfigurationChanged(t,e)}finally{r._endEmit()}})),r._register(u.MinimapTokensColorTracker.getInstance().onDidChange(function(){try{var e=r._beginEmit();e.emit(new c.ViewTokensColorsChangedEvent)}finally{r._endEmit()}})),r}return n(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this.decorations.dispose(),this.lines.dispose(),this.viewportStartLineTrackedRange=this.model._setTrackedRange(this.viewportStartLineTrackedRange,null,1)},t.prototype.tokenizeViewport=function(){var e=this.viewLayout.getLinesViewportData(),t=this.coordinatesConverter.convertViewPositionToModelPosition(new a.Position(e.startLineNumber,1)),i=this.coordinatesConverter.convertViewPositionToModelPosition(new a.Position(e.endLineNumber,1));this.model.tokenizeViewport(t.lineNumber,i.lineNumber)},t.prototype.setHasFocus=function(e){this.hasFocus=e},t.prototype._onConfigurationChanged=function(e,t){var i=null;if(-1!==this.viewportStartLine){var n=new a.Position(this.viewportStartLine,this.getLineMinColumn(this.viewportStartLine));i=this.coordinatesConverter.convertViewPositionToModelPosition(n)}var o=!1,r=this.configuration.editor;if(this.lines.setWrappingSettings(r.wrappingInfo.wrappingIndent,r.wrappingInfo.wrappingColumn,r.fontInfo.typicalFullwidthCharacterWidth/r.fontInfo.typicalHalfwidthCharacterWidth)&&(e.emit(new c.ViewFlushedEvent),e.emit(new c.ViewLineMappingChangedEvent),e.emit(new c.ViewDecorationsChangedEvent),this.decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),0!==this.viewLayout.getCurrentScrollTop()&&(o=!0)),t.readOnly&&(this.decorations.reset(),e.emit(new c.ViewDecorationsChangedEvent)),e.emit(new c.ViewConfigurationChangedEvent(t)),this.viewLayout.onConfigurationChanged(t),o&&i){var s=this.coordinatesConverter.convertModelPositionToViewPosition(i),l=this.viewLayout.getVerticalOffsetForLineNumber(s.lineNumber);this.viewLayout.setScrollPositionNow({scrollTop:l+this.viewportStartLineDelta})}},t.prototype._registerModelEvents=function(){var e=this;this._register(this.model.onDidChangeRawContentFast(function(t){try{for(var i=e._beginEmit(),n=!1,o=!1,r=t.changes,a=t.versionId,s=0,l=r.length;l>s;s++){var d=r[s];switch(d.changeType){case 1:e.lines.onModelFlushed(),i.emit(new c.ViewFlushedEvent),e.decorations.reset(),e.viewLayout.onFlushed(e.getLineCount()),n=!0;break;case 3:var u=e.lines.onModelLinesDeleted(a,d.fromLineNumber,d.toLineNumber);null!==u&&(i.emit(u),e.viewLayout.onLinesDeleted(u.fromLineNumber,u.toLineNumber)),n=!0;break;case 4:var m=e.lines.onModelLinesInserted(a,d.fromLineNumber,d.toLineNumber,d.detail);null!==m&&(i.emit(m),e.viewLayout.onLinesInserted(m.fromLineNumber,m.toLineNumber)),n=!0;break;case 2:var g=e.lines.onModelLineChanged(a,d.lineNumber,d.detail),p=g[0],h=g[1],m=g[2],u=g[3];o=p,h&&i.emit(h),m&&(i.emit(m),e.viewLayout.onLinesInserted(m.fromLineNumber,m.toLineNumber)),u&&(i.emit(u),e.viewLayout.onLinesDeleted(u.fromLineNumber,u.toLineNumber));break;case 5:}}e.lines.acceptVersionId(a),e.viewLayout.onHeightMaybeChanged(),!n&&o&&(i.emit(new c.ViewLineMappingChangedEvent),i.emit(new c.ViewDecorationsChangedEvent),e.decorations.onLineMappingChanged())}finally{e._endEmit()}if(e.viewportStartLine=-1,e.configuration.setMaxLineNumber(e.model.getLineCount()),!e.hasFocus&&e.model.getAttachedEditorCount()>=2&&e.viewportStartLineTrackedRange){var v=e.model._getTrackedRange(e.viewportStartLineTrackedRange);if(v){var w=e.coordinatesConverter.convertModelPositionToViewPosition(v.getStartPosition()),f=e.viewLayout.getVerticalOffsetForLineNumber(w.lineNumber);e.viewLayout.setScrollPositionNow({scrollTop:f+e.viewportStartLineDelta})}}})),this._register(this.model.onDidChangeTokens(function(t){for(var i=[],n=0,o=t.ranges.length;o>n;n++){var r=t.ranges[n],s=e.coordinatesConverter.convertModelPositionToViewPosition(new a.Position(r.fromLineNumber,1)).lineNumber,l=e.coordinatesConverter.convertModelPositionToViewPosition(new a.Position(r.toLineNumber,e.model.getLineMaxColumn(r.toLineNumber))).lineNumber;i[n]={fromLineNumber:s,toLineNumber:l}}try{var d=e._beginEmit();d.emit(new c.ViewTokensChangedEvent(i))}finally{e._endEmit()}t.tokenizationSupportChanged&&e._tokenizeViewportSoon.schedule()})),this._register(this.model.onDidChangeLanguageConfiguration(function(){try{var t=e._beginEmit();t.emit(new c.ViewLanguageConfigurationEvent)}finally{e._endEmit()}})),this._register(this.model.onDidChangeOptions(function(){if(e.lines.setTabSize(e.model.getOptions().tabSize)){e.decorations.onLineMappingChanged(),e.viewLayout.onFlushed(e.getLineCount());try{var t=e._beginEmit();t.emit(new c.ViewFlushedEvent),t.emit(new c.ViewLineMappingChangedEvent),t.emit(new c.ViewDecorationsChangedEvent)}finally{e._endEmit()}}})),this._register(this.model.onDidChangeDecorations(function(){e.decorations.onModelDecorationsChanged();try{var t=e._beginEmit();t.emit(new c.ViewDecorationsChangedEvent)}finally{e._endEmit()}}))},t.prototype.setHiddenAreas=function(e){try{var t=this._beginEmit(),i=this.lines.setHiddenAreas(e);i&&(t.emit(new c.ViewFlushedEvent),t.emit(new c.ViewLineMappingChangedEvent),t.emit(new c.ViewDecorationsChangedEvent),this.decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged())}finally{this._endEmit()}},t.prototype.getVisibleRanges=function(){var e=this.getCompletelyVisibleViewRange(),t=this.coordinatesConverter.convertViewRangeToModelRange(e),i=this.lines.getHiddenAreas();if(0===i.length)return[t];for(var n=[],o=0,r=t.startLineNumber,a=t.startColumn,l=t.endLineNumber,d=t.endColumn,u=0,c=i.length;c>u;u++){var m=i[u].startLineNumber,g=i[u].endLineNumber;r>g||m>l||(m>r&&(n[o++]=new s.Range(r,a,m-1,this.model.getLineMaxColumn(m-1))),r=g+1,a=1)}return(l>r||r===l&&d>a)&&(n[o++]=new s.Range(r,a,l,d)),n},t.prototype.getCompletelyVisibleViewRange=function(){var e=this.viewLayout.getLinesViewportData(),t=e.completelyVisibleStartLineNumber,i=e.completelyVisibleEndLineNumber;return new s.Range(t,this.getLineMinColumn(t),i,this.getLineMaxColumn(i))},t.prototype.getCompletelyVisibleViewRangeAtScrollTop=function(e){var t=this.viewLayout.getLinesViewportDataAtScrollTop(e),i=t.completelyVisibleStartLineNumber,n=t.completelyVisibleEndLineNumber;return new s.Range(i,this.getLineMinColumn(i),n,this.getLineMaxColumn(n))},t.prototype.saveState=function(){var e=this.viewLayout.saveState(),t=e.scrollTop,i=this.viewLayout.getLineNumberAtVerticalOffset(t),n=this.coordinatesConverter.convertViewPositionToModelPosition(new a.Position(i,this.getLineMinColumn(i))),o=this.viewLayout.getVerticalOffsetForLineNumber(i)-t;return{scrollLeft:e.scrollLeft,firstPosition:n,firstPositionDeltaTop:o}},t.prototype.reduceRestoreState=function(e){if("undefined"==typeof e.firstPosition)return this._reduceRestoreStateCompatibility(e);var t=this.model.validatePosition(e.firstPosition),i=this.coordinatesConverter.convertModelPositionToViewPosition(t),n=this.viewLayout.getVerticalOffsetForLineNumber(i.lineNumber)-e.firstPositionDeltaTop;return{scrollLeft:e.scrollLeft,scrollTop:n}},t.prototype._reduceRestoreStateCompatibility=function(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTopWithoutViewZones}},t.prototype.getTabSize=function(){return this.model.getOptions().tabSize},t.prototype.getOptions=function(){return this.model.getOptions()},t.prototype.getLineCount=function(){return this.lines.getViewLineCount()},t.prototype.setViewport=function(e,t){this.lines.warmUpLookupCache(e,t),this.viewportStartLine=e;var i=this.coordinatesConverter.convertViewPositionToModelPosition(new a.Position(e,this.getLineMinColumn(e)));this.viewportStartLineTrackedRange=this.model._setTrackedRange(this.viewportStartLineTrackedRange,new s.Range(i.lineNumber,i.column,i.lineNumber,i.column),1);var n=this.viewLayout.getVerticalOffsetForLineNumber(e),o=this.viewLayout.getCurrentScrollTop();this.viewportStartLineDelta=o-n},t.prototype.getActiveIndentGuide=function(e,t,i){return this.lines.getActiveIndentGuide(e,t,i)},t.prototype.getLinesIndentGuides=function(e,t){return this.lines.getViewLinesIndentGuides(e,t)},t.prototype.getLineContent=function(e){return this.lines.getViewLineContent(e)},t.prototype.getLineLength=function(e){return this.lines.getViewLineLength(e)},t.prototype.getLineMinColumn=function(e){return this.lines.getViewLineMinColumn(e)},t.prototype.getLineMaxColumn=function(e){return this.lines.getViewLineMaxColumn(e)},t.prototype.getLineFirstNonWhitespaceColumn=function(e){var t=r.firstNonWhitespaceIndex(this.getLineContent(e));return-1===t?0:t+1},t.prototype.getLineLastNonWhitespaceColumn=function(e){var t=r.lastNonWhitespaceIndex(this.getLineContent(e));return-1===t?0:t+2},t.prototype.getDecorationsInViewport=function(e){return this.decorations.getDecorationsViewportData(e).decorations},t.prototype.getViewLineRenderingData=function(e,t){var i=this.model.mightContainRTL(),n=this.model.mightContainNonBasicASCII(),o=this.getTabSize(),r=this.lines.getViewLineData(t),a=this.decorations.getDecorationsViewportData(e).inlineDecorations,s=a[t-e.startLineNumber];return new h.ViewLineRenderingData(r.minColumn,r.maxColumn,r.content,r.continuesWithWrappedLine,i,n,r.tokens,s,o)},t.prototype.getViewLineData=function(e){return this.lines.getViewLineData(e)},t.prototype.getMinimapLinesRenderingData=function(e,t,i){var n=this.lines.getViewLinesData(e,t,i);return new h.MinimapLinesRenderingData(this.getTabSize(),n)},t.prototype.getAllOverviewRulerDecorations=function(e){return this.lines.getAllOverviewRulerDecorations(this.editorId,this.configuration.editor.readOnly,e)},t.prototype.invalidateOverviewRulerColorCache=function(){for(var e=this.model.getOverviewRulerDecorations(),t=0,i=e;tt?t-=i:t+=i);var o=this.model.getOffsetAt(n),r=o+t;return this.model.getPositionAt(r)},t.prototype.getEOL=function(){return this.model.getEOL()},t.prototype.getPlainTextToCopy=function(e,t,i){var n=this,o=i?"\r\n":this.model.getEOL();e=e.slice(0),e.sort(s.Range.compareRangesUsingStarts);var r=e.filter(function(e){return!e.isEmpty()});if(0===r.length){if(!t)return"";for(var l=e.map(function(e){var t=new a.Position(e.startLineNumber,1);return n.coordinatesConverter.convertViewPositionToModelPosition(t).lineNumber}),d="",u=0;u0&&l[u-1]===l[u]||(d+=this.model.getLineContent(l[u])+o);return d}for(var c=[],m=0,g=r;m'+this._getHTMLToCopy(i,r)+"
"},t.prototype._getHTMLToCopy=function(e,t){for(var i=e.startLineNumber,n=e.startColumn,o=e.endLineNumber,r=e.endColumn,a=this.getTabSize(),s="",l=i;o>=l;l++){var u=this.model.getLineTokens(l),c=u.getLineContent(),m=l===i?n-1:0,g=l===o?r-1:c.length;s+=""===c?"
":d.tokenizeLineToHTML(c,u.inflate(),t,m,g,a)}return s},t.prototype._getColorMap=function(){var e=l.TokenizationRegistry.getColorMap(),t=["#000000"];if(e)for(var i=1,n=e.length;n>i;i++)t[i]=o.Color.Format.CSS.formatHex(e[i]);return t},t}(c.ViewEventEmitter);t.ViewModel=L}); ;/*!node_modules/monaco-editor/esm/vs/platform/instantiation/common/serviceCollection.js*/ define("node_modules/monaco-editor/esm/vs/platform/instantiation/common/serviceCollection",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){for(var e=[],t=0;tr?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(3>r?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},a=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}},d=n.__importStar(e("node_modules/monaco-editor/esm/vs/nls")),l=n.__importStar(e("node_modules/monaco-editor/esm/vs/base/browser/dom")),u=e("node_modules/monaco-editor/esm/vs/base/common/errors"),c=e("node_modules/monaco-editor/esm/vs/base/common/event"),m=e("node_modules/monaco-editor/esm/vs/base/common/lifecycle"),h=e("node_modules/monaco-editor/esm/vs/base/common/network"),g=e("node_modules/monaco-editor/esm/vs/editor/browser/config/configuration"),_=e("node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions"),p=e("node_modules/monaco-editor/esm/vs/editor/browser/services/codeEditorService"),v=e("node_modules/monaco-editor/esm/vs/editor/browser/view/viewImpl"),f=e("node_modules/monaco-editor/esm/vs/editor/browser/view/viewOutgoingEvents"),y=e("node_modules/monaco-editor/esm/vs/editor/common/controller/cursor"),D=e("node_modules/monaco-editor/esm/vs/editor/common/controller/cursorCommon"),C=e("node_modules/monaco-editor/esm/vs/editor/common/core/position"),w=e("node_modules/monaco-editor/esm/vs/editor/common/core/range"),S=e("node_modules/monaco-editor/esm/vs/editor/common/core/selection"),E=e("node_modules/monaco-editor/esm/vs/editor/common/editorAction"),P=n.__importStar(e("node_modules/monaco-editor/esm/vs/editor/common/editorCommon")),b=e("node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys"),R=n.__importStar(e("node_modules/monaco-editor/esm/vs/editor/common/modes")),T=e("node_modules/monaco-editor/esm/vs/editor/common/view/editorColorRegistry"),M=e("node_modules/monaco-editor/esm/vs/editor/common/viewModel/viewModelImpl"),x=e("node_modules/monaco-editor/esm/vs/platform/commands/common/commands"),F=e("node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey"),I=e("node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation"),L=e("node_modules/monaco-editor/esm/vs/platform/instantiation/common/serviceCollection"),W=e("node_modules/monaco-editor/esm/vs/platform/notification/common/notification"),O=e("node_modules/monaco-editor/esm/vs/platform/theme/common/themeService"),V=e("node_modules/monaco-editor/esm/vs/platform/accessibility/common/accessibility"),K=e("node_modules/monaco-editor/esm/vs/base/common/types"),N=0,H="showUnused",A=function(){function e(e,t,o,i,n,r){this.model=e,this.viewModel=t,this.cursor=o,this.view=i,this.hasRealView=n,this.listenersToRemove=r}return e.prototype.dispose=function(){m.dispose(this.listenersToRemove),this.model.onBeforeDetached(),this.hasRealView&&this.view.dispose(),this.cursor.dispose(),this.viewModel.dispose()},e}(),k=function(e){function t(t,o,i,n,r,s,a,d,l,m){var h=e.call(this)||this;h._onDidDispose=h._register(new c.Emitter),h.onDidDispose=h._onDidDispose.event,h._onDidChangeModelContent=h._register(new c.Emitter),h.onDidChangeModelContent=h._onDidChangeModelContent.event,h._onDidChangeModelLanguage=h._register(new c.Emitter),h.onDidChangeModelLanguage=h._onDidChangeModelLanguage.event,h._onDidChangeModelLanguageConfiguration=h._register(new c.Emitter),h.onDidChangeModelLanguageConfiguration=h._onDidChangeModelLanguageConfiguration.event,h._onDidChangeModelOptions=h._register(new c.Emitter),h.onDidChangeModelOptions=h._onDidChangeModelOptions.event,h._onDidChangeModelDecorations=h._register(new c.Emitter),h.onDidChangeModelDecorations=h._onDidChangeModelDecorations.event,h._onDidChangeConfiguration=h._register(new c.Emitter),h.onDidChangeConfiguration=h._onDidChangeConfiguration.event,h._onDidChangeModel=h._register(new c.Emitter),h.onDidChangeModel=h._onDidChangeModel.event,h._onDidChangeCursorPosition=h._register(new c.Emitter),h.onDidChangeCursorPosition=h._onDidChangeCursorPosition.event,h._onDidChangeCursorSelection=h._register(new c.Emitter),h.onDidChangeCursorSelection=h._onDidChangeCursorSelection.event,h._onDidAttemptReadOnlyEdit=h._register(new c.Emitter),h.onDidAttemptReadOnlyEdit=h._onDidAttemptReadOnlyEdit.event,h._onDidLayoutChange=h._register(new c.Emitter),h.onDidLayoutChange=h._onDidLayoutChange.event,h._editorTextFocus=h._register(new U),h.onDidFocusEditorText=h._editorTextFocus.onDidChangeToTrue,h.onDidBlurEditorText=h._editorTextFocus.onDidChangeToFalse,h._editorWidgetFocus=h._register(new U),h.onDidFocusEditorWidget=h._editorWidgetFocus.onDidChangeToTrue,h.onDidBlurEditorWidget=h._editorWidgetFocus.onDidChangeToFalse,h._onWillType=h._register(new c.Emitter),h.onWillType=h._onWillType.event,h._onDidType=h._register(new c.Emitter),h.onDidType=h._onDidType.event,h._onCompositionStart=h._register(new c.Emitter),h.onCompositionStart=h._onCompositionStart.event,h._onCompositionEnd=h._register(new c.Emitter),h.onCompositionEnd=h._onCompositionEnd.event,h._onDidPaste=h._register(new c.Emitter),h.onDidPaste=h._onDidPaste.event,h._onMouseUp=h._register(new c.Emitter),h.onMouseUp=h._onMouseUp.event,h._onMouseDown=h._register(new c.Emitter),h.onMouseDown=h._onMouseDown.event,h._onMouseDrag=h._register(new c.Emitter),h.onMouseDrag=h._onMouseDrag.event,h._onMouseDrop=h._register(new c.Emitter),h.onMouseDrop=h._onMouseDrop.event,h._onContextMenu=h._register(new c.Emitter),h.onContextMenu=h._onContextMenu.event,h._onMouseMove=h._register(new c.Emitter),h.onMouseMove=h._onMouseMove.event,h._onMouseLeave=h._register(new c.Emitter),h.onMouseLeave=h._onMouseLeave.event,h._onMouseWheel=h._register(new c.Emitter),h.onMouseWheel=h._onMouseWheel.event,h._onKeyUp=h._register(new c.Emitter),h.onKeyUp=h._onKeyUp.event,h._onKeyDown=h._register(new c.Emitter),h.onKeyDown=h._onKeyDown.event,h._onDidScrollChange=h._register(new c.Emitter),h.onDidScrollChange=h._onDidScrollChange.event,h._onDidChangeViewZones=h._register(new c.Emitter),h.onDidChangeViewZones=h._onDidChangeViewZones.event,h._domElement=t,h._id=++N,h._decorationTypeKeysToIds={},h._decorationTypeSubtypes={},h.isSimpleWidget=i.isSimpleWidget||!1,h._telemetryData=i.telemetryData,o=o||{},h._configuration=h._register(h._createConfiguration(o,m)),h._register(h._configuration.onDidChange(function(e){h._onDidChangeConfiguration.fire(e),e.layoutInfo&&h._onDidLayoutChange.fire(h._configuration.editor.layoutInfo),h._configuration.editor.showUnused?h._domElement.classList.add(H):h._domElement.classList.remove(H)})),h._contextKeyService=h._register(a.createScoped(h._domElement)),h._notificationService=l,h._codeEditorService=r,h._commandService=s,h._themeService=d,h._register(new B(h,h._contextKeyService)),h._register(new j(h,h._contextKeyService)),h._instantiationService=n.createChild(new L.ServiceCollection([F.IContextKeyService,h._contextKeyService])),h._attachModel(null),h._contributions={},h._actions={},h._focusTracker=new q(t),h._focusTracker.onChange(function(){h._editorWidgetFocus.setValue(h._focusTracker.hasFocus())}),h._contentWidgets={},h._overlayWidgets={};var g;g=Array.isArray(i.contributions)?i.contributions:_.EditorExtensionsRegistry.getEditorContributions();for(var p=0,v=g.length;v>p;p++){var f=g[p];try{var y=h._instantiationService.createInstance(f,h);h._contributions[y.getId()]=y}catch(D){u.onUnexpectedError(D)}}return _.EditorExtensionsRegistry.getEditorActions().forEach(function(e){var t=new E.InternalEditorAction(e.id,e.label,e.alias,K.withNullAsUndefined(e.precondition),function(){return h._instantiationService.invokeFunction(function(t){return Promise.resolve(e.runEditorCommand(t,h,null))})},h._contextKeyService);h._actions[t.id]=t}),h._codeEditorService.addCodeEditor(h),h}return r(t,e),t.prototype._createConfiguration=function(e,t){return new g.Configuration(this.isSimpleWidget,e,this._domElement,t)},t.prototype.getId=function(){return this.getEditorType()+":"+this._id},t.prototype.getEditorType=function(){return P.EditorType.ICodeEditor},t.prototype.dispose=function(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose();for(var t=Object.keys(this._contributions),o=0,i=t.length;i>o;o++){var n=t[o];this._contributions[n].dispose()}this._removeDecorationTypes(),this._postDetachModelCleanup(this._detachModel()),this._onDidDispose.fire(),e.prototype.dispose.call(this)},t.prototype.invokeWithinContext=function(e){return this._instantiationService.invokeFunction(e)},t.prototype.updateOptions=function(e){this._configuration.updateOptions(e)},t.prototype.getConfiguration=function(){return this._configuration.editor},t.prototype.getRawConfiguration=function(){return this._configuration.getRawOptions()},t.prototype.getValue=function(e){if(void 0===e&&(e=null),!this._modelData)return"";var t=e&&e.preserveBOM?!0:!1,o=0;return e&&e.lineEnding&&"\n"===e.lineEnding?o=1:e&&e.lineEnding&&"\r\n"===e.lineEnding&&(o=2),this._modelData.model.getValue(o,t)},t.prototype.setValue=function(e){this._modelData&&this._modelData.model.setValue(e)},t.prototype.getModel=function(){return this._modelData?this._modelData.model:null},t.prototype.setModel=function(e){void 0===e&&(e=null);var t=e;if(!(null===this._modelData&&null===t||this._modelData&&this._modelData.model===t)){var o=this._detachModel();this._attachModel(t);var i={oldModelUrl:o?o.uri:null,newModelUrl:t?t.uri:null};this._removeDecorationTypes(),this._onDidChangeModel.fire(i),this._postDetachModelCleanup(o)}},t.prototype._removeDecorationTypes=function(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(var e in this._decorationTypeSubtypes){var t=this._decorationTypeSubtypes[e];for(var o in t)this._removeDecorationType(e+"-"+o)}this._decorationTypeSubtypes={}}},t.prototype.getVisibleRanges=function(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]},t.prototype.getWhitespaces=function(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]},t._getVerticalOffsetForPosition=function(e,t,o){var i=e.model.validatePosition({lineNumber:t,column:o}),n=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i);return e.viewModel.viewLayout.getVerticalOffsetForLineNumber(n.lineNumber)},t.prototype.getTopForLineNumber=function(e){return this._modelData?t._getVerticalOffsetForPosition(this._modelData,e,1):-1},t.prototype.getTopForPosition=function(e,o){return this._modelData?t._getVerticalOffsetForPosition(this._modelData,e,o):-1},t.prototype.setHiddenAreas=function(e){this._modelData&&this._modelData.viewModel.setHiddenAreas(e.map(function(e){return w.Range.lift(e)}))},t.prototype.getVisibleColumnFromPosition=function(e){if(!this._modelData)return e.column;var t=this._modelData.model.validatePosition(e),o=this._modelData.model.getOptions().tabSize;return D.CursorColumns.visibleColumnFromColumn(this._modelData.model.getLineContent(t.lineNumber),t.column,o)+1},t.prototype.getPosition=function(){return this._modelData?this._modelData.cursor.getPosition():null},t.prototype.setPosition=function(e){if(this._modelData){if(!C.Position.isIPosition(e))throw new Error("Invalid arguments");this._modelData.cursor.setSelections("api",[{selectionStartLineNumber:e.lineNumber,selectionStartColumn:e.column,positionLineNumber:e.lineNumber,positionColumn:e.column}])}},t.prototype._sendRevealRange=function(e,t,o,i){if(this._modelData){if(!w.Range.isIRange(e))throw new Error("Invalid arguments");var n=this._modelData.model.validateRange(e),r=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(n);this._modelData.cursor.emitCursorRevealRange(r,t,o,i)}},t.prototype.revealLine=function(e,t){void 0===t&&(t=0),this._revealLine(e,0,t)},t.prototype.revealLineInCenter=function(e,t){void 0===t&&(t=0),this._revealLine(e,1,t)},t.prototype.revealLineInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this._revealLine(e,2,t)},t.prototype._revealLine=function(e,t,o){if("number"!=typeof e)throw new Error("Invalid arguments");this._sendRevealRange(new w.Range(e,1,e,1),t,!1,o)},t.prototype.revealPosition=function(e,t){void 0===t&&(t=0),this._revealPosition(e,0,!0,t)},t.prototype.revealPositionInCenter=function(e,t){void 0===t&&(t=0),this._revealPosition(e,1,!0,t)},t.prototype.revealPositionInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this._revealPosition(e,2,!0,t)},t.prototype._revealPosition=function(e,t,o,i){if(!C.Position.isIPosition(e))throw new Error("Invalid arguments");this._sendRevealRange(new w.Range(e.lineNumber,e.column,e.lineNumber,e.column),t,o,i)},t.prototype.getSelection=function(){return this._modelData?this._modelData.cursor.getSelection():null},t.prototype.getSelections=function(){return this._modelData?this._modelData.cursor.getSelections():null},t.prototype.setSelection=function(e){var t=S.Selection.isISelection(e),o=w.Range.isIRange(e);if(!t&&!o)throw new Error("Invalid arguments");if(t)this._setSelectionImpl(e);else if(o){var i={selectionStartLineNumber:e.startLineNumber,selectionStartColumn:e.startColumn,positionLineNumber:e.endLineNumber,positionColumn:e.endColumn};this._setSelectionImpl(i)}},t.prototype._setSelectionImpl=function(e){if(this._modelData){var t=new S.Selection(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn);this._modelData.cursor.setSelections("api",[t])}},t.prototype.revealLines=function(e,t,o){void 0===o&&(o=0),this._revealLines(e,t,0,o)},t.prototype.revealLinesInCenter=function(e,t,o){void 0===o&&(o=0),this._revealLines(e,t,1,o)},t.prototype.revealLinesInCenterIfOutsideViewport=function(e,t,o){void 0===o&&(o=0),this._revealLines(e,t,2,o)},t.prototype._revealLines=function(e,t,o,i){if("number"!=typeof e||"number"!=typeof t)throw new Error("Invalid arguments");this._sendRevealRange(new w.Range(e,1,t,1),o,!1,i)},t.prototype.revealRange=function(e,t,o,i){void 0===t&&(t=0),void 0===o&&(o=!1),void 0===i&&(i=!0),this._revealRange(e,o?1:0,i,t)},t.prototype.revealRangeInCenter=function(e,t){void 0===t&&(t=0),this._revealRange(e,1,!0,t)},t.prototype.revealRangeInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this._revealRange(e,2,!0,t)},t.prototype.revealRangeAtTop=function(e,t){void 0===t&&(t=0),this._revealRange(e,3,!0,t)},t.prototype._revealRange=function(e,t,o,i){if(!w.Range.isIRange(e))throw new Error("Invalid arguments");this._sendRevealRange(w.Range.lift(e),t,o,i)},t.prototype.setSelections=function(e,t){if(void 0===t&&(t="api"),this._modelData){if(!e||0===e.length)throw new Error("Invalid arguments");for(var o=0,i=e.length;i>o;o++)if(!S.Selection.isISelection(e[o]))throw new Error("Invalid arguments");this._modelData.cursor.setSelections(t,e)}},t.prototype.getScrollWidth=function(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollWidth():-1},t.prototype.getScrollLeft=function(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollLeft():-1},t.prototype.getScrollHeight=function(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollHeight():-1},t.prototype.getScrollTop=function(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollTop():-1},t.prototype.setScrollLeft=function(e){if(this._modelData){if("number"!=typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPositionNow({scrollLeft:e})}},t.prototype.setScrollTop=function(e){if(this._modelData){if("number"!=typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPositionNow({scrollTop:e})}},t.prototype.setScrollPosition=function(e){this._modelData&&this._modelData.viewModel.viewLayout.setScrollPositionNow(e)},t.prototype.saveViewState=function(){if(!this._modelData)return null;for(var e={},t=Object.keys(this._contributions),o=0,i=t;or;r++){var a=n[r],d=this._contributions[a];"function"==typeof d.restoreViewState&&d.restoreViewState(i[a])}var l=this._modelData.viewModel.reduceRestoreState(t.viewState);this._modelData.view.restoreState(l)}}},t.prototype.getContribution=function(e){return this._contributions[e]||null},t.prototype.getActions=function(){for(var e=[],t=Object.keys(this._actions),o=0,i=t.length;i>o;o++){var n=t[o];e.push(this._actions[n])}return e},t.prototype.getSupportedActions=function(){var e=this.getActions();return e=e.filter(function(e){return e.isSupported()})},t.prototype.getAction=function(e){return this._actions[e]||null},t.prototype.trigger=function(e,t,o){if(o=o||{},t===P.Handler.Type){if(!this._modelData||"string"!=typeof o.text||0===o.text.length)return;return"keyboard"===e&&this._onWillType.fire(o.text),this._modelData.cursor.trigger(e,t,o),void("keyboard"===e&&this._onDidType.fire(o.text))}if(t===P.Handler.Paste){if(!this._modelData||"string"!=typeof o.text||0===o.text.length)return;var i=this._modelData.cursor.getSelection().getStartPosition();this._modelData.cursor.trigger(e,t,o);var n=this._modelData.cursor.getSelection().getStartPosition();return void("keyboard"===e&&this._onDidPaste.fire(new w.Range(i.lineNumber,i.column,n.lineNumber,n.column)))}t===P.Handler.CompositionStart&&this._onCompositionStart.fire(),t===P.Handler.CompositionEnd&&this._onCompositionEnd.fire();var r=this.getAction(t);return r?void Promise.resolve(r.run()).then(void 0,u.onUnexpectedError):void(this._modelData&&(this._triggerEditorCommand(e,t,o)||this._modelData.cursor.trigger(e,t,o)))},t.prototype._triggerEditorCommand=function(e,t,o){var i=this,n=_.EditorExtensionsRegistry.getEditorCommand(t);return n?(o=o||{},o.source=e,this._instantiationService.invokeFunction(function(e){Promise.resolve(n.runEditorCommand(e,i,o)).then(void 0,u.onUnexpectedError)}),!0):!1},t.prototype._getCursors=function(){return this._modelData?this._modelData.cursor:null},t.prototype.pushUndoStop=function(){return this._modelData?this._configuration.editor.readOnly?!1:(this._modelData.model.pushStackElement(),!0):!1},t.prototype.executeEdits=function(e,t,o){return this._modelData?this._configuration.editor.readOnly?!1:(this._modelData.model.pushEditOperations(this._modelData.cursor.getSelections(),t,function(){return o?o:null}),o&&this._modelData.cursor.setSelections(e,o),!0):!1},t.prototype.executeCommand=function(e,t){this._modelData&&this._modelData.cursor.trigger(e,P.Handler.ExecuteCommand,t)},t.prototype.executeCommands=function(e,t){this._modelData&&this._modelData.cursor.trigger(e,P.Handler.ExecuteCommands,t)},t.prototype.changeDecorations=function(e){return this._modelData?this._modelData.model.changeDecorations(e,this._id):null},t.prototype.getLineDecorations=function(e){return this._modelData?this._modelData.model.getLineDecorations(e,this._id,this._configuration.editor.readOnly):null},t.prototype.deltaDecorations=function(e,t){return this._modelData?0===e.length&&0===t.length?e:this._modelData.model.deltaDecorations(e,t,this._id):[]},t.prototype.removeDecorations=function(e){var t=this._decorationTypeKeysToIds[e];t&&this.deltaDecorations(t,[]),this._decorationTypeKeysToIds.hasOwnProperty(e)&&delete this._decorationTypeKeysToIds[e],this._decorationTypeSubtypes.hasOwnProperty(e)&&delete this._decorationTypeSubtypes[e]},t.prototype.getLayoutInfo=function(){return this._configuration.editor.layoutInfo},t.prototype.createOverviewRuler=function(e){return this._modelData&&this._modelData.hasRealView?this._modelData.view.createOverviewRuler(e):null},t.prototype.getDomNode=function(){return this._modelData&&this._modelData.hasRealView?this._modelData.view.domNode.domNode:null},t.prototype.delegateVerticalScrollbarMouseDown=function(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.delegateVerticalScrollbarMouseDown(e)},t.prototype.layout=function(e){this._configuration.observeReferenceElement(e),this.render()},t.prototype.focus=function(){this._modelData&&this._modelData.hasRealView&&this._modelData.view.focus()},t.prototype.hasTextFocus=function(){return this._modelData&&this._modelData.hasRealView?this._modelData.view.isFocused():!1},t.prototype.hasWidgetFocus=function(){return this._focusTracker&&this._focusTracker.hasFocus()},t.prototype.addContentWidget=function(e){var t={widget:e,position:e.getPosition()};this._contentWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting a content widget with the same id."),this._contentWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(t)},t.prototype.layoutContentWidget=function(e){var t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){var o=this._contentWidgets[t];o.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(o)}},t.prototype.removeContentWidget=function(e){var t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){var o=this._contentWidgets[t];delete this._contentWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(o)}},t.prototype.addOverlayWidget=function(e){var t={widget:e,position:e.getPosition()};this._overlayWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting an overlay widget with the same id."),this._overlayWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(t)},t.prototype.layoutOverlayWidget=function(e){var t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){var o=this._overlayWidgets[t];o.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(o)}},t.prototype.removeOverlayWidget=function(e){var t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){var o=this._overlayWidgets[t];delete this._overlayWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(o)}},t.prototype.changeViewZones=function(e){if(this._modelData&&this._modelData.hasRealView){var t=this._modelData.view.change(e);t&&this._onDidChangeViewZones.fire()}},t.prototype.getTargetAtClientPoint=function(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getTargetAtClientPoint(e,t):null},t.prototype.getScrolledVisiblePosition=function(e){if(!this._modelData||!this._modelData.hasRealView)return null;var o=this._modelData.model.validatePosition(e),i=this._configuration.editor.layoutInfo,n=t._getVerticalOffsetForPosition(this._modelData,o.lineNumber,o.column)-this.getScrollTop(),r=this._modelData.view.getOffsetForColumn(o.lineNumber,o.column)+i.glyphMarginWidth+i.lineNumbersWidth+i.decorationsWidth-this.getScrollLeft();return{top:n,left:r,height:this._configuration.editor.lineHeight}},t.prototype.getOffsetForColumn=function(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getOffsetForColumn(e,t):-1},t.prototype.render=function(e){void 0===e&&(e=!1),this._modelData&&this._modelData.hasRealView&&this._modelData.view.render(!0,e)},t.prototype.applyFontInfo=function(e){g.Configuration.applyFontInfoSlow(e,this._configuration.editor.fontInfo)},t.prototype._attachModel=function(e){var t=this;if(!e)return void(this._modelData=null);var o=[];this._domElement.setAttribute("data-mode-id",e.getLanguageIdentifier().language),this._configuration.setIsDominatedByLongLines(e.isDominatedByLongLines()),this._configuration.setMaxLineNumber(e.getLineCount()),e.onBeforeAttached();var i=new M.ViewModel(this._id,this._configuration,e,function(e){return l.scheduleAtNextAnimationFrame(e)});o.push(e.onDidChangeDecorations(function(e){return t._onDidChangeModelDecorations.fire(e)})),o.push(e.onDidChangeLanguage(function(o){t._domElement.setAttribute("data-mode-id",e.getLanguageIdentifier().language),t._onDidChangeModelLanguage.fire(o)})),o.push(e.onDidChangeLanguageConfiguration(function(e){return t._onDidChangeModelLanguageConfiguration.fire(e)})),o.push(e.onDidChangeContent(function(e){return t._onDidChangeModelContent.fire(e)})),o.push(e.onDidChangeOptions(function(e){return t._onDidChangeModelOptions.fire(e)})),o.push(e.onWillDispose(function(){return t.setModel(null)}));var n=new y.Cursor(this._configuration,e,i);o.push(n.onDidReachMaxCursorCount(function(){t._notificationService.warn(d.localize("cursors.maximum","The number of cursors has been limited to {0}.",y.Cursor.MAX_CURSOR_COUNT))})),o.push(n.onDidAttemptReadOnlyEdit(function(){t._onDidAttemptReadOnlyEdit.fire(void 0)})),o.push(n.onDidChange(function(e){for(var o=[],i=0,n=e.selections.length;n>i;i++)o[i]=e.selections[i].getPosition();var r={position:o[0],secondaryPositions:o.slice(1),reason:e.reason,source:e.source};t._onDidChangeCursorPosition.fire(r);var s={selection:e.selections[0],secondarySelections:e.selections.slice(1),source:e.source,reason:e.reason};t._onDidChangeCursorSelection.fire(s)}));var r=this._createView(i,n),s=r[0],a=r[1];if(a){this._domElement.appendChild(s.domNode.domNode);for(var u=Object.keys(this._contentWidgets),c=0,m=u.length;m>c;c++){var h=u[c];s.addContentWidget(this._contentWidgets[h])}u=Object.keys(this._overlayWidgets);for(var c=0,m=u.length;m>c;c++){var h=u[c];s.addOverlayWidget(this._overlayWidgets[h])}s.render(!1,!0),s.domNode.domNode.setAttribute("data-uri",e.uri.toString())}this._modelData=new A(e,i,n,s,a,o)},t.prototype._createView=function(e,t){var o,i=this;o=this.isSimpleWidget?{executeEditorCommand:function(e,o){e.runCoreEditorCommand(t,o)},paste:function(e,t,o,n){i.trigger(e,P.Handler.Paste,{text:t,pasteOnNewLine:o,multicursorText:n})},type:function(e,t){i.trigger(e,P.Handler.Type,{text:t})},replacePreviousChar:function(e,t,o){i.trigger(e,P.Handler.ReplacePreviousChar,{text:t,replaceCharCnt:o})},compositionStart:function(e){i.trigger(e,P.Handler.CompositionStart,void 0)},compositionEnd:function(e){i.trigger(e,P.Handler.CompositionEnd,void 0)},cut:function(e){i.trigger(e,P.Handler.Cut,void 0)}}:{executeEditorCommand:function(e,o){e.runCoreEditorCommand(t,o)},paste:function(e,t,o,n){i._commandService.executeCommand(P.Handler.Paste,{text:t,pasteOnNewLine:o,multicursorText:n})},type:function(e,t){i._commandService.executeCommand(P.Handler.Type,{text:t})},replacePreviousChar:function(e,t,o){i._commandService.executeCommand(P.Handler.ReplacePreviousChar,{text:t,replaceCharCnt:o})},compositionStart:function(){i._commandService.executeCommand(P.Handler.CompositionStart,{})},compositionEnd:function(){i._commandService.executeCommand(P.Handler.CompositionEnd,{})},cut:function(){i._commandService.executeCommand(P.Handler.Cut,{})}};var n=new f.ViewOutgoingEvents(e);n.onDidGainFocus=function(){i._editorTextFocus.setValue(!0),i._editorWidgetFocus.setValue(!0)},n.onDidScroll=function(e){return i._onDidScrollChange.fire(e)},n.onDidLoseFocus=function(){return i._editorTextFocus.setValue(!1)},n.onContextMenu=function(e){return i._onContextMenu.fire(e)},n.onMouseDown=function(e){return i._onMouseDown.fire(e)},n.onMouseUp=function(e){return i._onMouseUp.fire(e)},n.onMouseDrag=function(e){return i._onMouseDrag.fire(e)},n.onMouseDrop=function(e){return i._onMouseDrop.fire(e)},n.onKeyUp=function(e){return i._onKeyUp.fire(e)},n.onMouseMove=function(e){return i._onMouseMove.fire(e)},n.onMouseLeave=function(e){return i._onMouseLeave.fire(e)},n.onMouseWheel=function(e){return i._onMouseWheel.fire(e)},n.onKeyDown=function(e){return i._onKeyDown.fire(e)};var r=new v.View(o,this._configuration,this._themeService,e,t,n);return[r,!0]},t.prototype._postDetachModelCleanup=function(e){e&&e.removeAllDecorationsWithOwnerId(this._id)},t.prototype._detachModel=function(){if(!this._modelData)return null;var e=this._modelData.model,t=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;return this._modelData.dispose(),this._modelData=null,this._domElement.removeAttribute("data-mode-id"),t&&this._domElement.removeChild(t),e},t.prototype._removeDecorationType=function(e){this._codeEditorService.removeDecorationType(e)},t.prototype.getTelemetryData=function(){return this._telemetryData},t.prototype.hasModel=function(){return null!==this._modelData},t=s([a(3,I.IInstantiationService),a(4,p.ICodeEditorService),a(5,x.ICommandService),a(6,F.IContextKeyService),a(7,O.IThemeService),a(8,W.INotificationService),a(9,V.IAccessibilityService)],t)}(m.Disposable);t.CodeEditorWidget=k;var U=function(e){function t(){var t=e.call(this)||this;return t._onDidChangeToTrue=t._register(new c.Emitter),t.onDidChangeToTrue=t._onDidChangeToTrue.event,t._onDidChangeToFalse=t._register(new c.Emitter),t.onDidChangeToFalse=t._onDidChangeToFalse.event,t._value=0,t}return r(t,e),t.prototype.setValue=function(e){var t=e?2:1;this._value!==t&&(this._value=t,2===this._value?this._onDidChangeToTrue.fire():1===this._value&&this._onDidChangeToFalse.fire())},t}(m.Disposable);t.BooleanEventEmitter=U;var B=function(e){function t(t,o){var i=e.call(this)||this;return i._editor=t,o.createKey("editorId",t.getId()),i._editorFocus=b.EditorContextKeys.focus.bindTo(o),i._textInputFocus=b.EditorContextKeys.textInputFocus.bindTo(o),i._editorTextFocus=b.EditorContextKeys.editorTextFocus.bindTo(o),i._editorTabMovesFocus=b.EditorContextKeys.tabMovesFocus.bindTo(o),i._editorReadonly=b.EditorContextKeys.readOnly.bindTo(o),i._hasMultipleSelections=b.EditorContextKeys.hasMultipleSelections.bindTo(o),i._hasNonEmptySelection=b.EditorContextKeys.hasNonEmptySelection.bindTo(o),i._canUndo=b.EditorContextKeys.canUndo.bindTo(o),i._canRedo=b.EditorContextKeys.canRedo.bindTo(o),i._register(i._editor.onDidChangeConfiguration(function(){return i._updateFromConfig()})),i._register(i._editor.onDidChangeCursorSelection(function(){return i._updateFromSelection()})),i._register(i._editor.onDidFocusEditorWidget(function(){return i._updateFromFocus()})),i._register(i._editor.onDidBlurEditorWidget(function(){return i._updateFromFocus()})),i._register(i._editor.onDidFocusEditorText(function(){return i._updateFromFocus()})),i._register(i._editor.onDidBlurEditorText(function(){return i._updateFromFocus()})),i._register(i._editor.onDidChangeModel(function(){return i._updateFromModel()})),i._register(i._editor.onDidChangeConfiguration(function(){return i._updateFromModel()})),i._updateFromConfig(),i._updateFromSelection(),i._updateFromFocus(),i._updateFromModel(),i}return r(t,e),t.prototype._updateFromConfig=function(){var e=this._editor.getConfiguration();this._editorTabMovesFocus.set(e.tabFocusMode),this._editorReadonly.set(e.readOnly)},t.prototype._updateFromSelection=function(){var e=this._editor.getSelections();e?(this._hasMultipleSelections.set(e.length>1),this._hasNonEmptySelection.set(e.some(function(e){return!e.isEmpty()}))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())},t.prototype._updateFromFocus=function(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus()) },t.prototype._updateFromModel=function(){var e=this._editor.getModel();this._canUndo.set(Boolean(e&&e.canUndo())),this._canRedo.set(Boolean(e&&e.canRedo()))},t}(m.Disposable),j=function(e){function t(t,o){var i=e.call(this)||this;i._editor=t,i._contextKeyService=o,i._langId=b.EditorContextKeys.languageId.bindTo(o),i._hasCompletionItemProvider=b.EditorContextKeys.hasCompletionItemProvider.bindTo(o),i._hasCodeActionsProvider=b.EditorContextKeys.hasCodeActionsProvider.bindTo(o),i._hasCodeLensProvider=b.EditorContextKeys.hasCodeLensProvider.bindTo(o),i._hasDefinitionProvider=b.EditorContextKeys.hasDefinitionProvider.bindTo(o),i._hasDeclarationProvider=b.EditorContextKeys.hasDeclarationProvider.bindTo(o),i._hasImplementationProvider=b.EditorContextKeys.hasImplementationProvider.bindTo(o),i._hasTypeDefinitionProvider=b.EditorContextKeys.hasTypeDefinitionProvider.bindTo(o),i._hasHoverProvider=b.EditorContextKeys.hasHoverProvider.bindTo(o),i._hasDocumentHighlightProvider=b.EditorContextKeys.hasDocumentHighlightProvider.bindTo(o),i._hasDocumentSymbolProvider=b.EditorContextKeys.hasDocumentSymbolProvider.bindTo(o),i._hasReferenceProvider=b.EditorContextKeys.hasReferenceProvider.bindTo(o),i._hasRenameProvider=b.EditorContextKeys.hasRenameProvider.bindTo(o),i._hasSignatureHelpProvider=b.EditorContextKeys.hasSignatureHelpProvider.bindTo(o),i._hasDocumentFormattingProvider=b.EditorContextKeys.hasDocumentFormattingProvider.bindTo(o),i._hasDocumentSelectionFormattingProvider=b.EditorContextKeys.hasDocumentSelectionFormattingProvider.bindTo(o),i._hasMultipleDocumentFormattingProvider=b.EditorContextKeys.hasMultipleDocumentFormattingProvider.bindTo(o),i._hasMultipleDocumentSelectionFormattingProvider=b.EditorContextKeys.hasMultipleDocumentSelectionFormattingProvider.bindTo(o),i._isInWalkThrough=b.EditorContextKeys.isInEmbeddedEditor.bindTo(o);var n=function(){return i._update()};return i._register(t.onDidChangeModel(n)),i._register(t.onDidChangeModelLanguage(n)),i._register(R.CompletionProviderRegistry.onDidChange(n)),i._register(R.CodeActionProviderRegistry.onDidChange(n)),i._register(R.CodeLensProviderRegistry.onDidChange(n)),i._register(R.DefinitionProviderRegistry.onDidChange(n)),i._register(R.DeclarationProviderRegistry.onDidChange(n)),i._register(R.ImplementationProviderRegistry.onDidChange(n)),i._register(R.TypeDefinitionProviderRegistry.onDidChange(n)),i._register(R.HoverProviderRegistry.onDidChange(n)),i._register(R.DocumentHighlightProviderRegistry.onDidChange(n)),i._register(R.DocumentSymbolProviderRegistry.onDidChange(n)),i._register(R.ReferenceProviderRegistry.onDidChange(n)),i._register(R.RenameProviderRegistry.onDidChange(n)),i._register(R.DocumentFormattingEditProviderRegistry.onDidChange(n)),i._register(R.DocumentRangeFormattingEditProviderRegistry.onDidChange(n)),i._register(R.SignatureHelpProviderRegistry.onDidChange(n)),n(),i}return r(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.reset=function(){var e=this;this._contextKeyService.bufferChangeEvents(function(){e._langId.reset(),e._hasCompletionItemProvider.reset(),e._hasCodeActionsProvider.reset(),e._hasCodeLensProvider.reset(),e._hasDefinitionProvider.reset(),e._hasDeclarationProvider.reset(),e._hasImplementationProvider.reset(),e._hasTypeDefinitionProvider.reset(),e._hasHoverProvider.reset(),e._hasDocumentHighlightProvider.reset(),e._hasDocumentSymbolProvider.reset(),e._hasReferenceProvider.reset(),e._hasRenameProvider.reset(),e._hasDocumentFormattingProvider.reset(),e._hasDocumentSelectionFormattingProvider.reset(),e._hasSignatureHelpProvider.reset(),e._isInWalkThrough.reset()})},t.prototype._update=function(){var e=this,t=this._editor.getModel();return t?void this._contextKeyService.bufferChangeEvents(function(){e._langId.set(t.getLanguageIdentifier().language),e._hasCompletionItemProvider.set(R.CompletionProviderRegistry.has(t)),e._hasCodeActionsProvider.set(R.CodeActionProviderRegistry.has(t)),e._hasCodeLensProvider.set(R.CodeLensProviderRegistry.has(t)),e._hasDefinitionProvider.set(R.DefinitionProviderRegistry.has(t)),e._hasDeclarationProvider.set(R.DeclarationProviderRegistry.has(t)),e._hasImplementationProvider.set(R.ImplementationProviderRegistry.has(t)),e._hasTypeDefinitionProvider.set(R.TypeDefinitionProviderRegistry.has(t)),e._hasHoverProvider.set(R.HoverProviderRegistry.has(t)),e._hasDocumentHighlightProvider.set(R.DocumentHighlightProviderRegistry.has(t)),e._hasDocumentSymbolProvider.set(R.DocumentSymbolProviderRegistry.has(t)),e._hasReferenceProvider.set(R.ReferenceProviderRegistry.has(t)),e._hasRenameProvider.set(R.RenameProviderRegistry.has(t)),e._hasSignatureHelpProvider.set(R.SignatureHelpProviderRegistry.has(t)),e._hasDocumentFormattingProvider.set(R.DocumentFormattingEditProviderRegistry.has(t)||R.DocumentRangeFormattingEditProviderRegistry.has(t)),e._hasDocumentSelectionFormattingProvider.set(R.DocumentRangeFormattingEditProviderRegistry.has(t)),e._hasMultipleDocumentFormattingProvider.set(R.DocumentFormattingEditProviderRegistry.all(t).length+R.DocumentRangeFormattingEditProviderRegistry.all(t).length>1),e._hasMultipleDocumentSelectionFormattingProvider.set(R.DocumentRangeFormattingEditProviderRegistry.all(t).length>1),e._isInWalkThrough.set(t.uri.scheme===h.Schemas.walkThroughSnippet)}):void this.reset()},t}(m.Disposable);t.EditorModeContext=j;var q=function(e){function t(t){var o=e.call(this)||this;return o._onChange=o._register(new c.Emitter),o.onChange=o._onChange.event,o._hasFocus=!1,o._domFocusTracker=o._register(l.trackFocus(t)),o._register(o._domFocusTracker.onDidFocus(function(){o._hasFocus=!0,o._onChange.fire(void 0)})),o._register(o._domFocusTracker.onDidBlur(function(){o._hasFocus=!1,o._onChange.fire(void 0)})),o}return r(t,e),t.prototype.hasFocus=function(){return this._hasFocus},t}(m.Disposable),Z=encodeURIComponent(""),G=encodeURIComponent('');O.registerThemingParticipant(function(e,t){var n=e.getColor(T.editorErrorBorder);n&&t.addRule(".monaco-editor .squiggly-error { border-bottom: 4px double "+n+"; }");var r=e.getColor(T.editorErrorForeground);r&&t.addRule('.monaco-editor .squiggly-error { background: url("data:image/svg+xml,'+o(r)+'") repeat-x bottom left; }');var s=e.getColor(T.editorWarningBorder);s&&t.addRule(".monaco-editor .squiggly-warning { border-bottom: 4px double "+s+"; }");var a=e.getColor(T.editorWarningForeground);a&&t.addRule('.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,'+o(a)+'") repeat-x bottom left; }');var d=e.getColor(T.editorInfoBorder);d&&t.addRule(".monaco-editor .squiggly-info { border-bottom: 4px double "+d+"; }");var l=e.getColor(T.editorInfoForeground);l&&t.addRule('.monaco-editor .squiggly-info { background: url("data:image/svg+xml,'+o(l)+'") repeat-x bottom left; }');var u=e.getColor(T.editorHintBorder);u&&t.addRule(".monaco-editor .squiggly-hint { border-bottom: 2px dotted "+u+"; }");var c=e.getColor(T.editorHintForeground);c&&t.addRule('.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,'+i(c)+'") no-repeat bottom left; }');var m=e.getColor(T.editorUnnecessaryCodeOpacity);m&&t.addRule("."+H+" .monaco-editor .squiggly-inline-unnecessary { opacity: "+m.rgba.a+"; }");var h=e.getColor(T.editorUnnecessaryCodeBorder);h&&t.addRule("."+H+" .monaco-editor .squiggly-unnecessary { border-bottom: 2px dashed "+h+"; }")})}); ;/*!node_modules/monaco-editor/esm/vs/base/browser/ui/sash/sash.js*/ define("node_modules/monaco-editor/esm/vs/base/browser/ui/sash/sash",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=t("node_modules/tslib/tslib"),s=this&&this.__extends||function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function s(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(s.prototype=o.prototype,new s)}}(),n=t("node_modules/monaco-editor/esm/vs/base/common/lifecycle"),a=t("node_modules/monaco-editor/esm/vs/base/browser/browser"),i=t("node_modules/monaco-editor/esm/vs/base/common/platform"),r=o.__importStar(t("node_modules/monaco-editor/esm/vs/base/common/types")),l=t("node_modules/monaco-editor/esm/vs/base/browser/touch"),h=t("node_modules/monaco-editor/esm/vs/base/browser/mouseEvent"),d=t("node_modules/monaco-editor/esm/vs/base/common/event"),g=t("node_modules/monaco-editor/esm/vs/base/browser/dom"),p=t("node_modules/monaco-editor/esm/vs/base/browser/event"),u=!1,m=function(t){function e(e,o,s){void 0===s&&(s={});var n=t.call(this)||this;return n._state=3,n._onDidEnablementChange=n._register(new d.Emitter),n.onDidEnablementChange=n._onDidEnablementChange.event,n._onDidStart=n._register(new d.Emitter),n.onDidStart=n._onDidStart.event,n._onDidChange=n._register(new d.Emitter),n.onDidChange=n._onDidChange.event,n._onDidReset=n._register(new d.Emitter),n.onDidReset=n._onDidReset.event,n._onDidEnd=n._register(new d.Emitter),n.onDidEnd=n._onDidEnd.event,n.linkedSash=void 0,n.orthogonalStartSashDisposables=[],n.orthogonalEndSashDisposables=[],n.el=g.append(e,g.$(".monaco-sash")),i.isMacintosh&&g.addClass(n.el,"mac"),n._register(p.domEvent(n.el,"mousedown")(n.onMouseDown,n)),n._register(p.domEvent(n.el,"dblclick")(n.onMouseDoubleClick,n)),l.Gesture.addTarget(n.el),n._register(p.domEvent(n.el,l.EventType.Start)(n.onTouchStart,n)),a.isIPad&&g.addClass(n.el,"touch"),n.setOrientation(s.orientation||0),n.hidden=!1,n.layoutProvider=o,n.orthogonalStartSash=s.orthogonalStartSash,n.orthogonalEndSash=s.orthogonalEndSash,g.toggleClass(n.el,"debug",u),n}return s(e,t),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},set:function(t){this._state!==t&&(g.toggleClass(this.el,"disabled",0===t),g.toggleClass(this.el,"minimum",1===t),g.toggleClass(this.el,"maximum",2===t),this._state=t,this._onDidEnablementChange.fire(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orthogonalStartSash",{get:function(){return this._orthogonalStartSash},set:function(t){this.orthogonalStartSashDisposables=n.dispose(this.orthogonalStartSashDisposables),t?(t.onDidEnablementChange(this.onOrthogonalStartSashEnablementChange,this,this.orthogonalStartSashDisposables),this.onOrthogonalStartSashEnablementChange(t.state)):this.onOrthogonalStartSashEnablementChange(0),this._orthogonalStartSash=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orthogonalEndSash",{get:function(){return this._orthogonalEndSash},set:function(t){this.orthogonalEndSashDisposables=n.dispose(this.orthogonalEndSashDisposables),t?(t.onDidEnablementChange(this.onOrthogonalEndSashEnablementChange,this,this.orthogonalEndSashDisposables),this.onOrthogonalEndSashEnablementChange(t.state)):this.onOrthogonalEndSashEnablementChange(0),this._orthogonalEndSash=t},enumerable:!0,configurable:!0}),e.prototype.setOrientation=function(t){this.orientation=t,1===this.orientation?(g.addClass(this.el,"horizontal"),g.removeClass(this.el,"vertical")):(g.removeClass(this.el,"horizontal"),g.addClass(this.el,"vertical")),this.layoutProvider&&this.layout()},e.prototype.onMouseDown=function(t){var e=this;g.EventHelper.stop(t,!1);var o=!1;if(this.linkedSash&&!t.__linkedSashEvent&&(t.__linkedSashEvent=!0,this.linkedSash.onMouseDown(t)),!t.__orthogonalSashEvent){var s=void 0;0===this.orientation?t.offsetY<=4?s=this.orthogonalStartSash:t.offsetY>=this.el.clientHeight-4&&(s=this.orthogonalEndSash):t.offsetX<=4?s=this.orthogonalStartSash:t.offsetX>=this.el.clientWidth-4&&(s=this.orthogonalEndSash),s&&(o=!0,t.__orthogonalSashEvent=!0,s.onMouseDown(t))}if(this.state){for(var a=g.getElementsByTagName("iframe"),r=0,l=a;r0){e=n[0].getStartPosition();var s=o.getTopForPosition(e.lineNumber,e.column);i=o.getScrollTop()-s}}return new t(e,i)},t.prototype.restore=function(t){if(this._visiblePosition){var o=t.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);t.setScrollTop(o+this._visiblePositionScrollDelta)}},t}();o.StableEditorScrollState=u}); ;/*!node_modules/monaco-editor/esm/vs/base/browser/ui/actionbar/actionbar.js*/ define("node_modules/monaco-editor/esm/vs/base/browser/ui/actionbar/actionbar",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=e("node_modules/tslib/tslib"),i=this&&this.__extends||function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=o.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/platform")),s=o.__importStar(e("node_modules/monaco-editor/esm/vs/nls")),r=e("node_modules/monaco-editor/esm/vs/base/common/lifecycle"),a=e("node_modules/monaco-editor/esm/vs/base/common/actions"),c=o.__importStar(e("node_modules/monaco-editor/esm/vs/base/browser/dom")),d=o.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/types")),u=e("node_modules/monaco-editor/esm/vs/base/browser/touch"),l=e("node_modules/monaco-editor/esm/vs/base/browser/keyboardEvent"),p=e("node_modules/monaco-editor/esm/vs/base/common/event"),h=e("node_modules/monaco-editor/esm/vs/base/common/arrays"),m=function(e){function t(t,o,i){var n=e.call(this)||this;return n.options=i,n._context=t||n,n._action=o,o instanceof a.Action&&n._register(o.onDidChange(function(e){n.element&&n.handleActionChangeEvent(e)})),n}return i(t,e),t.prototype.handleActionChangeEvent=function(e){void 0!==e.enabled&&this.updateEnabled(),void 0!==e.checked&&this.updateChecked(),void 0!==e.class&&this.updateClass(),void 0!==e.label&&(this.updateLabel(),this.updateTooltip()),void 0!==e.tooltip&&this.updateTooltip()},Object.defineProperty(t.prototype,"actionRunner",{get:function(){return this._actionRunner},set:function(e){this._actionRunner=e},enumerable:!0,configurable:!0}),t.prototype.getAction=function(){return this._action},t.prototype.isEnabled=function(){return this._action.enabled},t.prototype.setActionContext=function(e){this._context=e},t.prototype.render=function(e){var t=this;this.element=e,u.Gesture.addTarget(e);var o=this.options&&this.options.draggable;o&&(e.draggable=!0),this._register(c.addDisposableListener(this.element,u.EventType.Tap,function(e){return t.onClick(e)})),this._register(c.addDisposableListener(this.element,c.EventType.MOUSE_DOWN,function(e){o||c.EventHelper.stop(e,!0),t._action.enabled&&0===e.button&&t.element&&c.addClass(t.element,"active")})),this._register(c.addDisposableListener(this.element,c.EventType.CLICK,function(e){c.EventHelper.stop(e,!0),t.options&&t.options.isMenu?t.onClick(e):n.setImmediate(function(){return t.onClick(e)})})),this._register(c.addDisposableListener(this.element,c.EventType.DBLCLICK,function(e){c.EventHelper.stop(e,!0)})),[c.EventType.MOUSE_UP,c.EventType.MOUSE_OUT].forEach(function(e){t._register(c.addDisposableListener(t.element,e,function(e){c.EventHelper.stop(e),c.removeClass(t.element,"active")}))})},t.prototype.onClick=function(e){c.EventHelper.stop(e,!0);var t;d.isUndefinedOrNull(this._context)?t=e:(t=this._context,d.isObject(t)&&(t.event=e)),this._actionRunner.run(this._action,t)},t.prototype.focus=function(){this.element&&(this.element.focus(),c.addClass(this.element,"focused"))},t.prototype.blur=function(){this.element&&(this.element.blur(),c.removeClass(this.element,"focused"))},t.prototype.updateEnabled=function(){},t.prototype.updateLabel=function(){},t.prototype.updateTooltip=function(){},t.prototype.updateClass=function(){},t.prototype.updateChecked=function(){},t.prototype.dispose=function(){this.element&&(c.removeNode(this.element),this.element=void 0),e.prototype.dispose.call(this)},t}(r.Disposable);t.BaseActionItem=m;var f=function(e){function t(o){var i=e.call(this,t.ID,o,o?"separator text":"separator")||this;return i.checked=!1,i.radio=!1,i.enabled=!1,i}return i(t,e),t.ID="vs.actions.separator",t}(a.Action);t.Separator=f;var b=function(e){function t(t,o,i){void 0===i&&(i={});var n=e.call(this,t,o,i)||this;return n.options=i,n.options.icon=void 0!==i.icon?i.icon:!1,n.options.label=void 0!==i.label?i.label:!0,n.cssClass="",n}return i(t,e),t.prototype.render=function(t){e.prototype.render.call(this,t),this.element&&(this.label=c.append(this.element,c.$("a.action-label"))),this._action.id===f.ID?this.label.setAttribute("role","presentation"):this.options.isMenu?this.label.setAttribute("role","menuitem"):this.label.setAttribute("role","button"),this.options.label&&this.options.keybinding&&this.element&&(c.append(this.element,c.$("span.keybinding")).textContent=this.options.keybinding),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()},t.prototype.focus=function(){e.prototype.focus.call(this),this.label.focus()},t.prototype.updateLabel=function(){this.options.label&&(this.label.textContent=this.getAction().label)},t.prototype.updateTooltip=function(){var e=null;this.getAction().tooltip?e=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(e=this.getAction().label,this.options.keybinding&&(e=s.localize({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e&&(this.label.title=e)},t.prototype.updateClass=function(){this.cssClass&&c.removeClasses(this.label,this.cssClass),this.options.icon?(this.cssClass=this.getAction().class,c.addClass(this.label,"icon"),this.cssClass&&c.addClasses(this.label,this.cssClass),this.updateEnabled()):c.removeClass(this.label,"icon")},t.prototype.updateEnabled=function(){this.getAction().enabled?(this.label.removeAttribute("aria-disabled"),this.element&&c.removeClass(this.element,"disabled"),c.removeClass(this.label,"disabled"),this.label.tabIndex=0):(this.label.setAttribute("aria-disabled","true"),this.element&&c.addClass(this.element,"disabled"),c.addClass(this.label,"disabled"),c.removeTabIndexAndUpdateFocus(this.label))},t.prototype.updateChecked=function(){this.getAction().checked?c.addClass(this.label,"checked"):c.removeClass(this.label,"checked")},t}(m);t.ActionItem=b;var v={orientation:0,context:null,triggerKeys:{keys:[3,10],keyDown:!1}},y=function(e){function t(t,o){void 0===o&&(o=v);var i=e.call(this)||this;i._onDidBlur=i._register(new p.Emitter),i._onDidCancel=i._register(new p.Emitter),i._onDidRun=i._register(new p.Emitter),i._onDidBeforeRun=i._register(new p.Emitter),i.options=o,i._context=o.context,i.options.triggerKeys||(i.options.triggerKeys=v.triggerKeys),i.options.actionRunner?i._actionRunner=i.options.actionRunner:(i._actionRunner=new a.ActionRunner,i._register(i._actionRunner)),i._register(i._actionRunner.onDidRun(function(e){return i._onDidRun.fire(e)})),i._register(i._actionRunner.onDidBeforeRun(function(e){return i._onDidBeforeRun.fire(e)})),i.items=[],i.focusedItem=void 0,i.domNode=document.createElement("div"),i.domNode.className="monaco-action-bar",o.animated!==!1&&c.addClass(i.domNode,"animated");var n,s;switch(i.options.orientation){case 0:n=15,s=17;break;case 1:n=17,s=15,i.domNode.className+=" reverse";break;case 2:n=16,s=18,i.domNode.className+=" vertical";break;case 3:n=18,s=16,i.domNode.className+=" vertical reverse"}return i._register(c.addDisposableListener(i.domNode,c.EventType.KEY_DOWN,function(e){var t=new l.StandardKeyboardEvent(e),o=!0;t.equals(n)?i.focusPrevious():t.equals(s)?i.focusNext():t.equals(9)?i.cancel():i.isTriggerKeyEvent(t)?i.options.triggerKeys&&i.options.triggerKeys.keyDown&&i.doTrigger(t):o=!1,o&&(t.preventDefault(),t.stopPropagation())})),i._register(c.addDisposableListener(i.domNode,c.EventType.KEY_UP,function(e){var t=new l.StandardKeyboardEvent(e);i.isTriggerKeyEvent(t)?(i.options.triggerKeys&&!i.options.triggerKeys.keyDown&&i.doTrigger(t),t.preventDefault(),t.stopPropagation()):(t.equals(2)||t.equals(1026))&&i.updateFocusedItem()})),i.focusTracker=i._register(c.trackFocus(i.domNode)),i._register(i.focusTracker.onDidBlur(function(){document.activeElement!==i.domNode&&c.isAncestor(document.activeElement,i.domNode)||(i._onDidBlur.fire(),i.focusedItem=void 0)})),i._register(i.focusTracker.onDidFocus(function(){return i.updateFocusedItem()})),i.actionsList=document.createElement("ul"),i.actionsList.className="actions-container",i.actionsList.setAttribute("role","toolbar"),i.options.ariaLabel&&i.actionsList.setAttribute("aria-label",i.options.ariaLabel),i.domNode.appendChild(i.actionsList),t.appendChild(i.domNode),i}return i(t,e),Object.defineProperty(t.prototype,"onDidBlur",{get:function(){return this._onDidBlur.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidCancel",{get:function(){return this._onDidCancel.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidRun",{get:function(){return this._onDidRun.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidBeforeRun",{get:function(){return this._onDidBeforeRun.event},enumerable:!0,configurable:!0}),t.prototype.isTriggerKeyEvent=function(e){var t=!1;return this.options.triggerKeys&&this.options.triggerKeys.keys.forEach(function(o){t=t||e.equals(o)}),t},t.prototype.updateFocusedItem=function(){for(var e=0;en||n>=o.actionsList.children.length?(o.actionsList.appendChild(i),o.items.push(s)):(o.actionsList.insertBefore(i,o.actionsList.children[n]),o.items.splice(n,0,s),n++)})},t.prototype.clear=function(){this.items=r.dispose(this.items),c.clearNode(this.actionsList)},t.prototype.isEmpty=function(){return 0===this.items.length},t.prototype.focus=function(e){var t=!1,o=void 0;void 0===e?t=!0:"number"==typeof e?o=e:"boolean"==typeof e&&(t=e),t&&"undefined"==typeof this.focusedItem?(this.focusedItem=this.items.length-1,this.focusNext()):(void 0!==o&&(this.focusedItem=o),this.updateFocus())},t.prototype.focusNext=function(){"undefined"==typeof this.focusedItem&&(this.focusedItem=this.items.length-1);var e,t=this.focusedItem;do this.focusedItem=(this.focusedItem+1)%this.items.length,e=this.items[this.focusedItem];while(this.focusedItem!==t&&!e.isEnabled());this.focusedItem!==t||e.isEnabled()||(this.focusedItem=void 0),this.updateFocus()},t.prototype.focusPrevious=function(){"undefined"==typeof this.focusedItem&&(this.focusedItem=0);var e,t=this.focusedItem;do this.focusedItem=this.focusedItem-1,this.focusedItem<0&&(this.focusedItem=this.items.length-1),e=this.items[this.focusedItem];while(this.focusedItem!==t&&!e.isEnabled());this.focusedItem!==t||e.isEnabled()||(this.focusedItem=void 0),this.updateFocus(!0)},t.prototype.updateFocus=function(e){"undefined"==typeof this.focusedItem&&this.actionsList.focus();for(var t=0;to;o++){var r=t[o];if(r.hasWidgetFocus())return r}return null}Object.defineProperty(i,"__esModule",{value:!0});var o=e("node_modules/tslib/tslib"),n=this&&this.__extends||function(){var e=function(i,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var t in i)i.hasOwnProperty(t)&&(e[t]=i[t])})(i,t)};return function(i,t){function o(){this.constructor=i}e(i,t),i.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}}(),r=o.__importStar(e("node_modules/monaco-editor/esm/vs/nls")),d=o.__importStar(e("node_modules/monaco-editor/esm/vs/base/browser/dom")),s=e("node_modules/monaco-editor/esm/vs/base/browser/fastDomNode"),a=e("node_modules/monaco-editor/esm/vs/base/browser/ui/actionbar/actionbar"),f=e("node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/scrollableElement"),l=e("node_modules/monaco-editor/esm/vs/base/common/actions"),c=e("node_modules/monaco-editor/esm/vs/base/common/lifecycle"),m=e("node_modules/monaco-editor/esm/vs/editor/browser/config/configuration"),u=e("node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions"),h=e("node_modules/monaco-editor/esm/vs/editor/browser/services/codeEditorService"),g=e("node_modules/monaco-editor/esm/vs/editor/common/core/lineTokens"),_=e("node_modules/monaco-editor/esm/vs/editor/common/core/position"),v=e("node_modules/monaco-editor/esm/vs/editor/common/view/editorColorRegistry"),p=e("node_modules/monaco-editor/esm/vs/editor/common/viewLayout/viewLineRenderer"),w=e("node_modules/monaco-editor/esm/vs/editor/common/viewModel/viewModel"),b=e("node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey"),E=e("node_modules/monaco-editor/esm/vs/platform/theme/common/colorRegistry"),L=e("node_modules/monaco-editor/esm/vs/platform/theme/common/themeService"),N=3,y=function(){function e(e,i,t,o){this.originalLineStart=e,this.originalLineEnd=i,this.modifiedLineStart=t,this.modifiedLineEnd=o}return e.prototype.getType=function(){return 0===this.originalLineStart?1:0===this.modifiedLineStart?2:0},e}(),C=function(){function e(e){this.entries=e}return e}(),S=function(e){function i(i){var t=e.call(this)||this;return t._width=0,t._diffEditor=i,t._isVisible=!1,t.shadow=s.createFastDomNode(document.createElement("div")),t.shadow.setClassName("diff-review-shadow"),t.actionBarContainer=s.createFastDomNode(document.createElement("div")),t.actionBarContainer.setClassName("diff-review-actions"),t._actionBar=t._register(new a.ActionBar(t.actionBarContainer.domNode)),t._actionBar.push(new l.Action("diffreview.close",r.localize("label.close","Close"),"close-diff-review",!0,function(){return t.hide(),Promise.resolve(null)}),{label:!1,icon:!0}),t.domNode=s.createFastDomNode(document.createElement("div")),t.domNode.setClassName("diff-review monaco-editor-background"),t._content=s.createFastDomNode(document.createElement("div")),t._content.setClassName("diff-review-content"),t.scrollbar=t._register(new f.DomScrollableElement(t._content.domNode,{})),t.domNode.domNode.appendChild(t.scrollbar.getDomNode()),t._register(i.onDidUpdateDiff(function(){t._isVisible&&(t._diffs=t._compute(),t._render())})),t._register(i.getModifiedEditor().onDidChangeCursorPosition(function(){t._isVisible&&t._render()})),t._register(i.getOriginalEditor().onDidFocusEditorWidget(function(){t._isVisible&&t.hide()})),t._register(i.getModifiedEditor().onDidFocusEditorWidget(function(){t._isVisible&&t.hide()})),t._register(d.addStandardDisposableListener(t.domNode.domNode,"click",function(e){e.preventDefault();var i=d.findParentWithClass(e.target,"diff-review-row");i&&t._goToRow(i)})),t._register(d.addStandardDisposableListener(t.domNode.domNode,"keydown",function(e){(e.equals(18)||e.equals(2066)||e.equals(530))&&(e.preventDefault(),t._goToRow(t._getNextRow())),(e.equals(16)||e.equals(2064)||e.equals(528))&&(e.preventDefault(),t._goToRow(t._getPrevRow())),(e.equals(9)||e.equals(2057)||e.equals(521)||e.equals(1033))&&(e.preventDefault(),t.hide()),(e.equals(10)||e.equals(3))&&(e.preventDefault(),t.accept())})),t._diffs=[],t._currentDiff=null,t}return n(i,e),i.prototype.prev=function(){var e=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){for(var i=-1,t=0,o=this._diffs.length;o>t;t++)if(this._diffs[t]===this._currentDiff){i=t;break}e=this._diffs.length+i-1}else e=this._findDiffIndex(this._diffEditor.getPosition());0!==this._diffs.length&&(e%=this._diffs.length,this._diffEditor.setPosition(new _.Position(this._diffs[e].entries[0].modifiedLineStart,1)),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow()))},i.prototype.next=function(){var e=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){for(var i=-1,t=0,o=this._diffs.length;o>t;t++)if(this._diffs[t]===this._currentDiff){i=t;break}e=i+1}else e=this._findDiffIndex(this._diffEditor.getPosition());0!==this._diffs.length&&(e%=this._diffs.length,this._diffEditor.setPosition(new _.Position(this._diffs[e].entries[0].modifiedLineStart,1)),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow()))},i.prototype.accept=function(){var e=-1,i=this._getCurrentFocusedRow();if(i){var t=parseInt(i.getAttribute("data-line"),10);isNaN(t)||(e=t)}this.hide(),-1!==e&&(this._diffEditor.setPosition(new _.Position(e,1)),this._diffEditor.revealPosition(new _.Position(e,1),1))},i.prototype.hide=function(){this._isVisible=!1,this._diffEditor.focus(),this._diffEditor.doLayout(),this._render()},i.prototype._getPrevRow=function(){var e=this._getCurrentFocusedRow();return e?e.previousElementSibling?e.previousElementSibling:e:this._getFirstRow()},i.prototype._getNextRow=function(){var e=this._getCurrentFocusedRow();return e?e.nextElementSibling?e.nextElementSibling:e:this._getFirstRow()},i.prototype._getFirstRow=function(){return this.domNode.domNode.querySelector(".diff-review-row")},i.prototype._getCurrentFocusedRow=function(){var e=document.activeElement;return e&&/diff-review-row/.test(e.className)?e:null},i.prototype._goToRow=function(e){var i=this._getCurrentFocusedRow();e.tabIndex=0,e.focus(),i&&i!==e&&(i.tabIndex=-1),this.scrollbar.scanDomNode()},i.prototype.isVisible=function(){return this._isVisible},i.prototype.layout=function(e,i,t){this._width=i,this.shadow.setTop(e-6),this.shadow.setWidth(i),this.shadow.setHeight(this._isVisible?6:0),this.domNode.setTop(e),this.domNode.setWidth(i),this.domNode.setHeight(t),this._content.setHeight(t),this._content.setWidth(i),this._isVisible?(this.actionBarContainer.setAttribute("aria-hidden","false"),this.actionBarContainer.setDisplay("block")):(this.actionBarContainer.setAttribute("aria-hidden","true"),this.actionBarContainer.setDisplay("none"))},i.prototype._compute=function(){var e=this._diffEditor.getLineChanges();if(!e||0===e.length)return[];var t=this._diffEditor.getOriginalEditor().getModel(),o=this._diffEditor.getModifiedEditor().getModel();return t&&o?i._mergeAdjacent(e,t.getLineCount(),o.getLineCount()):[]},i._mergeAdjacent=function(e,i,t){if(!e||0===e.length)return[];for(var o=[],n=0,r=0,d=e.length;d>r;r++){var s=e[r],a=s.originalStartLineNumber,f=s.originalEndLineNumber,l=s.modifiedStartLineNumber,c=s.modifiedEndLineNumber,m=[],u=0,h=0===f?a:a-1,g=0===c?l:l-1,_=1,v=1;if(r>0){var p=e[r-1];_=0===p.originalEndLineNumber?p.originalStartLineNumber+1:p.originalEndLineNumber+1,v=0===p.modifiedEndLineNumber?p.modifiedStartLineNumber+1:p.modifiedEndLineNumber+1}var w=h-N+1,b=g-N+1;if(_>w){var E=_-w;w+=E,b+=E}if(v>b){var E=v-b;w+=E,b+=E}m[u++]=new y(w,h,b,g),0!==f&&(m[u++]=new y(a,f,0,0)),0!==c&&(m[u++]=new y(0,0,l,c));var L=0===f?a+1:f+1,S=0===c?l+1:c+1,D=i,x=t;if(d>r+1){var R=e[r+1];D=0===R.originalEndLineNumber?R.originalStartLineNumber:R.originalStartLineNumber-1,x=0===R.modifiedEndLineNumber?R.modifiedStartLineNumber:R.modifiedStartLineNumber-1}var I=L+N-1,A=S+N-1;if(I>D){var E=D-I;I+=E,A+=E}if(A>x){var E=x-A;I+=E,A+=E}m[u++]=new y(L,I,S,A),o[n++]=new C(m)}for(var T=o[0].entries,P=[],V=0,r=1,d=o.length;d>r;r++){var k=o[r].entries,M=T[T.length-1],F=k[0];0===M.getType()&&0===F.getType()&&F.originalLineStart<=M.originalLineEnd?(T[T.length-1]=new y(M.originalLineStart,F.originalLineEnd,M.modifiedLineStart,F.modifiedLineEnd),T=T.concat(k.slice(1))):(P[V++]=new C(T),T=k)}return P[V++]=new C(T),P},i.prototype._findDiffIndex=function(e){for(var i=e.lineNumber,t=0,o=this._diffs.length;o>t;t++){var n=this._diffs[t].entries,r=n[n.length-1].modifiedLineEnd;if(r>=i)return t}return 0},i.prototype._render=function(){var e=this._diffEditor.getOriginalEditor().getConfiguration(),t=this._diffEditor.getModifiedEditor().getConfiguration(),o=this._diffEditor.getOriginalEditor().getModel(),n=this._diffEditor.getModifiedEditor().getModel(),s=o.getOptions(),a=n.getOptions();if(!this._isVisible||!o||!n)return d.clearNode(this._content.domNode),this._currentDiff=null,void this.scrollbar.scanDomNode();var f=this._findDiffIndex(this._diffEditor.getPosition());if(this._diffs[f]!==this._currentDiff){this._currentDiff=this._diffs[f];var l=this._diffs[f].entries,c=document.createElement("div");c.className="diff-review-table",c.setAttribute("role","list"),m.Configuration.applyFontInfoSlow(c,t.fontInfo);for(var u=0,h=0,g=0,_=0,v=0,p=l.length;p>v;v++){var w=l[v],b=w.originalLineStart,E=w.originalLineEnd,L=w.modifiedLineStart,N=w.modifiedLineEnd;0!==b&&(0===u||u>b)&&(u=b),0!==E&&(0===h||E>h)&&(h=E),0!==L&&(0===g||g>L)&&(g=L),0!==N&&(0===_||N>_)&&(_=N)}var y=document.createElement("div");y.className="diff-review-row";var C=document.createElement("div");C.className="diff-review-cell diff-review-summary";var S=h-u+1,D=_-g+1;C.appendChild(document.createTextNode(f+1+"/"+this._diffs.length+": @@ -"+u+","+S+" +"+g+","+D+" @@")),y.setAttribute("data-line",String(g));var x=function(e){return 0===e?r.localize("no_lines","no lines"):1===e?r.localize("one_line","1 line"):r.localize("more_lines","{0} lines",e)},R=x(S),I=x(D);y.setAttribute("aria-label",r.localize({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines", "1 line" or "X lines", localized separately.']},"Difference {0} of {1}: original {2}, {3}, modified {4}, {5}",f+1,this._diffs.length,u,R,g,I)),y.appendChild(C),y.setAttribute("role","listitem"),c.appendChild(y);for(var A=g,v=0,p=l.length;p>v;v++){var w=l[v];i._renderSection(c,w,A,this._width,e,o,s,t,n,a),0!==w.modifiedLineStart&&(A=w.modifiedLineEnd)}d.clearNode(this._content.domNode),this._content.domNode.appendChild(c),this.scrollbar.scanDomNode()}},i._renderSection=function(e,i,t,o,n,d,s,a,f,l){var c=i.getType(),m="diff-review-row",u="",h="diff-review-spacer";switch(c){case 1:m="diff-review-row line-insert",u=" char-insert",h="diff-review-spacer insert-sign";break;case 2:m="diff-review-row line-delete",u=" char-delete",h="diff-review-spacer delete-sign"}for(var g=i.originalLineStart,_=i.originalLineEnd,v=i.modifiedLineStart,p=i.modifiedLineEnd,w=Math.max(p-v,_-g),b=n.layoutInfo.glyphMarginWidth+n.layoutInfo.lineNumbersWidth,E=10+a.layoutInfo.glyphMarginWidth+a.layoutInfo.lineNumbersWidth,L=0;w>=L;L++){var N=0===g?0:g+L,y=0===v?0:v+L,C=document.createElement("div");C.style.minWidth=o+"px",C.className=m,C.setAttribute("role","listitem"),0!==y&&(t=y),C.setAttribute("data-line",String(t));var S=document.createElement("div");S.className="diff-review-cell",C.appendChild(S);var D=document.createElement("span");D.style.width=b+"px",D.style.minWidth=b+"px",D.className="diff-review-line-number"+u,0!==N?D.appendChild(document.createTextNode(String(N))):D.innerHTML=" ",S.appendChild(D);var x=document.createElement("span");x.style.width=E+"px",x.style.minWidth=E+"px",x.style.paddingRight="10px",x.className="diff-review-line-number"+u,0!==y?x.appendChild(document.createTextNode(String(y))):x.innerHTML=" ",S.appendChild(x);var R=document.createElement("span");R.className=h,R.innerHTML="  ",S.appendChild(R);var I=void 0;0!==y?(S.insertAdjacentHTML("beforeend",this._renderLine(f,a,l.tabSize,y)),I=f.getLineContent(y)):(S.insertAdjacentHTML("beforeend",this._renderLine(d,n,s.tabSize,N)),I=d.getLineContent(N)),0===I.length&&(I=r.localize("blankLine","blank"));var A="";switch(c){case 0:A=r.localize("equalLine","original {0}, modified {1}: {2}",N,y,I);break;case 1:A=r.localize("insertLine","+ modified {0}: {1}",y,I);break;case 2:A=r.localize("deleteLine","- original {0}: {1}",N,I)}C.setAttribute("aria-label",A),e.appendChild(C)}},i._renderLine=function(e,i,t,o){var n=e.getLineContent(o),r=16793600,d=new Uint32Array(2);d[0]=n.length,d[1]=r;var s=new g.LineTokens(d,n),a=w.ViewLineRenderingData.isBasicASCII(n,e.mightContainNonBasicASCII()),f=w.ViewLineRenderingData.containsRTL(n,a,e.mightContainRTL()),l=p.renderViewLine2(new p.RenderLineInput(i.fontInfo.isMonospace&&!i.viewInfo.disableMonospaceOptimizations,i.fontInfo.canUseHalfwidthRightwardsArrow,n,!1,a,f,0,s,[],t,i.fontInfo.spaceWidth,i.viewInfo.stopRenderingLineAfter,i.viewInfo.renderWhitespace,i.viewInfo.renderControlCharacters,i.viewInfo.fontLigatures));return l.html},i}(c.Disposable);i.DiffReview=S,L.registerThemingParticipant(function(e,i){var t=e.getColor(v.editorLineNumbers);t&&i.addRule(".monaco-diff-editor .diff-review-line-number { color: "+t+"; }");var o=e.getColor(E.scrollbarShadow);o&&i.addRule(".monaco-diff-editor .diff-review-shadow { box-shadow: "+o+" 0 -6px 6px -6px inset; }")});var D=function(e){function i(){return e.call(this,{id:"editor.action.diffReview.next",label:r.localize("editor.action.diffReview.next","Go to Next Difference"),alias:"Go to Next Difference",precondition:b.ContextKeyExpr.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})||this}return n(i,e),i.prototype.run=function(e){var i=t(e);i&&i.diffReviewNext()},i}(u.EditorAction),x=function(e){function i(){return e.call(this,{id:"editor.action.diffReview.prev",label:r.localize("editor.action.diffReview.prev","Go to Previous Difference"),alias:"Go to Previous Difference",precondition:b.ContextKeyExpr.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1089,weight:100}})||this}return n(i,e),i.prototype.run=function(e){var i=t(e);i&&i.diffReviewPrev()},i}(u.EditorAction);u.registerEditorAction(D),u.registerEditorAction(x)}); ;/*!node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditorWidget.js*/ define("node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditorWidget",function(e,i){"use strict";function t(e,i,t,o,n){return{range:new b.Range(e,i,t,o),options:n}}function o(e){return e.modifiedEndLineNumber>0}function n(e){return e.originalEndLineNumber>0}function r(){var e=document.createElement("div");return e.className="diagonal-fill",e}Object.defineProperty(i,"__esModule",{value:!0});var d=e("node_modules/tslib/tslib"),a=this&&this.__extends||function(){var e=function(i,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var t in i)i.hasOwnProperty(t)&&(e[t]=i[t])})(i,t)};return function(i,t){function o(){this.constructor=i}e(i,t),i.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}}(),s=this&&this.__decorate||function(e,i,t,o){var n,r=arguments.length,d=3>r?i:null===o?o=Object.getOwnPropertyDescriptor(i,t):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(e,i,t,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(d=(3>r?n(d):r>3?n(i,t,d):n(i,t))||d);return r>3&&d&&Object.defineProperty(i,t,d),d},l=this&&this.__param||function(e,i){return function(t,o){i(t,o,e)}},m=d.__importStar(e("node_modules/monaco-editor/esm/vs/nls")),h=d.__importStar(e("node_modules/monaco-editor/esm/vs/base/browser/dom")),u=e("node_modules/monaco-editor/esm/vs/base/browser/fastDomNode"),c=e("node_modules/monaco-editor/esm/vs/base/browser/ui/sash/sash"),f=e("node_modules/monaco-editor/esm/vs/base/common/async"),g=e("node_modules/monaco-editor/esm/vs/base/common/event"),_=e("node_modules/monaco-editor/esm/vs/base/common/lifecycle"),p=d.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/objects")),v=e("node_modules/monaco-editor/esm/vs/editor/browser/config/configuration"),E=e("node_modules/monaco-editor/esm/vs/editor/browser/core/editorState"),w=e("node_modules/monaco-editor/esm/vs/editor/browser/services/codeEditorService"),S=e("node_modules/monaco-editor/esm/vs/editor/browser/widget/codeEditorWidget"),D=e("node_modules/monaco-editor/esm/vs/editor/browser/widget/diffReview"),N=d.__importStar(e("node_modules/monaco-editor/esm/vs/editor/common/config/editorOptions")),b=e("node_modules/monaco-editor/esm/vs/editor/common/core/range"),L=e("node_modules/monaco-editor/esm/vs/editor/common/core/stringBuilder"),y=d.__importStar(e("node_modules/monaco-editor/esm/vs/editor/common/editorCommon")),I=e("node_modules/monaco-editor/esm/vs/editor/common/model/textModel"),C=e("node_modules/monaco-editor/esm/vs/editor/common/services/editorWorkerService"),R=e("node_modules/monaco-editor/esm/vs/editor/common/view/overviewZoneManager"),O=e("node_modules/monaco-editor/esm/vs/editor/common/viewLayout/lineDecorations"),V=e("node_modules/monaco-editor/esm/vs/editor/common/viewLayout/viewLineRenderer"),M=e("node_modules/monaco-editor/esm/vs/editor/common/viewModel/viewModel"),T=e("node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey"),W=e("node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation"),H=e("node_modules/monaco-editor/esm/vs/platform/instantiation/common/serviceCollection"),F=e("node_modules/monaco-editor/esm/vs/platform/notification/common/notification"),x=e("node_modules/monaco-editor/esm/vs/platform/theme/common/colorRegistry"),Z=e("node_modules/monaco-editor/esm/vs/platform/theme/common/themeService"),A=function(){function e(){this._zones=[],this._zonesMap={},this._decorations=[]}return e.prototype.getForeignViewZones=function(e){var i=this;return e.filter(function(e){return!i._zonesMap[String(e.id)]})},e.prototype.clean=function(e){var i=this;this._zones.length>0&&e.changeViewZones(function(e){for(var t=0,o=i._zones.length;o>t;t++)e.removeZone(i._zones[t])}),this._zones=[],this._zonesMap={},this._decorations=e.deltaDecorations(this._decorations,[])},e.prototype.apply=function(e,i,t,o){var n=this,r=o?E.StableEditorScrollState.capture(e):null;e.changeViewZones(function(e){for(var i=0,o=n._zones.length;o>i;i++)e.removeZone(n._zones[i]);n._zones=[],n._zonesMap={};for(var i=0,r=t.zones.length;r>i;i++){t.zones[i].suppressMouseDown=!0;var d=e.addZone(t.zones[i]);n._zones.push(d),n._zonesMap[String(d)]=!0}}),r&&r.restore(e),this._decorations=e.deltaDecorations(this._decorations,t.decorations),i&&i.setZones(t.overviewZones)},e}(),P=0,z=function(e){function i(t,o,n,r,d,a,s,l){var m=e.call(this)||this;m._onDidDispose=m._register(new g.Emitter),m.onDidDispose=m._onDidDispose.event,m._onDidUpdateDiff=m._register(new g.Emitter),m.onDidUpdateDiff=m._onDidUpdateDiff.event,m._lastOriginalWarning=null,m._lastModifiedWarning=null,m._editorWorkerService=n,m._codeEditorService=a,m._contextKeyService=m._register(r.createScoped(t)),m._contextKeyService.createKey("isInDiffEditor",!0),m._themeService=s,m._notificationService=l,m.id=++P,m._domElement=t,o=o||{},m._renderSideBySide=!0,"undefined"!=typeof o.renderSideBySide&&(m._renderSideBySide=o.renderSideBySide),m._ignoreTrimWhitespace=!0,"undefined"!=typeof o.ignoreTrimWhitespace&&(m._ignoreTrimWhitespace=o.ignoreTrimWhitespace),m._renderIndicators=!0,"undefined"!=typeof o.renderIndicators&&(m._renderIndicators=o.renderIndicators),m._originalIsEditable=!1,"undefined"!=typeof o.originalEditable&&(m._originalIsEditable=Boolean(o.originalEditable)),m._updateDecorationsRunner=m._register(new f.RunOnceScheduler(function(){return m._updateDecorations()},0)),m._containerDomElement=document.createElement("div"),m._containerDomElement.className=i._getClassName(m._themeService.getTheme(),m._renderSideBySide),m._containerDomElement.style.position="relative",m._containerDomElement.style.height="100%",m._domElement.appendChild(m._containerDomElement),m._overviewViewportDomElement=u.createFastDomNode(document.createElement("div")),m._overviewViewportDomElement.setClassName("diffViewport"),m._overviewViewportDomElement.setPosition("absolute"),m._overviewDomElement=document.createElement("div"),m._overviewDomElement.className="diffOverview",m._overviewDomElement.style.position="absolute",m._overviewDomElement.appendChild(m._overviewViewportDomElement.domNode),m._register(h.addStandardDisposableListener(m._overviewDomElement,"mousedown",function(e){m.modifiedEditor.delegateVerticalScrollbarMouseDown(e)})),m._containerDomElement.appendChild(m._overviewDomElement),m._createLeftHandSide(),m._createRightHandSide(),m._beginUpdateDecorationsTimeout=-1,m._currentlyChangingViewZones=!1,m._diffComputationToken=0,m._originalEditorState=new A,m._modifiedEditorState=new A,m._isVisible=!0,m._isHandlingScrollEvent=!1,m._width=0,m._height=0,m._reviewHeight=0,m._diffComputationResult=null;var c=m._contextKeyService.createScoped();c.createKey("isInDiffLeftEditor",!0);var _=new H.ServiceCollection;_.set(T.IContextKeyService,c);var p=d.createChild(_),v=m._contextKeyService.createScoped();v.createKey("isInDiffRightEditor",!0);var E=new H.ServiceCollection;E.set(T.IContextKeyService,v);var w=d.createChild(E);return m._createLeftHandSideEditor(o,p),m._createRightHandSideEditor(o,w),m._reviewPane=new D.DiffReview(m),m._containerDomElement.appendChild(m._reviewPane.domNode.domNode),m._containerDomElement.appendChild(m._reviewPane.shadow.domNode),m._containerDomElement.appendChild(m._reviewPane.actionBarContainer.domNode),o.automaticLayout&&(m._measureDomElementToken=window.setInterval(function(){return m._measureDomElement(!1)},100)),m._enableSplitViewResizing=!0,"undefined"!=typeof o.enableSplitViewResizing&&(m._enableSplitViewResizing=o.enableSplitViewResizing),m._setStrategy(m._renderSideBySide?new q(m._createDataSource(),m._enableSplitViewResizing):new X(m._createDataSource(),m._enableSplitViewResizing)),m._register(s.onThemeChange(function(e){m._strategy&&m._strategy.applyColors(e)&&m._updateDecorationsRunner.schedule(),m._containerDomElement.className=i._getClassName(m._themeService.getTheme(),m._renderSideBySide)})),m._codeEditorService.addDiffEditor(m),m}return a(i,e),i.prototype.hasWidgetFocus=function(){return h.isAncestor(document.activeElement,this._domElement)},i.prototype.diffReviewNext=function(){this._reviewPane.next()},i.prototype.diffReviewPrev=function(){this._reviewPane.prev()},i._getClassName=function(e,i){var t="monaco-diff-editor monaco-editor-background ";return i&&(t+="side-by-side "),t+=Z.getThemeTypeSelector(e.type)},i.prototype._recreateOverviewRulers=function(){this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),this.originalEditor.hasModel()&&(this._originalOverviewRuler=this.originalEditor.createOverviewRuler("original diffOverviewRuler"),this._overviewDomElement.appendChild(this._originalOverviewRuler.getDomNode())),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose()),this.modifiedEditor.hasModel()&&(this._modifiedOverviewRuler=this.modifiedEditor.createOverviewRuler("modified diffOverviewRuler"),this._overviewDomElement.appendChild(this._modifiedOverviewRuler.getDomNode())),this._layoutOverviewRulers()},i.prototype._createLeftHandSide=function(){this._originalDomNode=document.createElement("div"),this._originalDomNode.className="editor original",this._originalDomNode.style.position="absolute",this._originalDomNode.style.height="100%",this._containerDomElement.appendChild(this._originalDomNode)},i.prototype._createRightHandSide=function(){this._modifiedDomNode=document.createElement("div"),this._modifiedDomNode.className="editor modified",this._modifiedDomNode.style.position="absolute",this._modifiedDomNode.style.height="100%",this._containerDomElement.appendChild(this._modifiedDomNode)},i.prototype._createLeftHandSideEditor=function(e,i){var t=this;this.originalEditor=this._createInnerEditor(i,this._originalDomNode,this._adjustOptionsForLeftHandSide(e,this._originalIsEditable)),this._register(this.originalEditor.onDidScrollChange(function(e){t._isHandlingScrollEvent||(e.scrollTopChanged||e.scrollLeftChanged||e.scrollHeightChanged)&&(t._isHandlingScrollEvent=!0,t.modifiedEditor.setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}),t._isHandlingScrollEvent=!1,t._layoutOverviewViewport())})),this._register(this.originalEditor.onDidChangeViewZones(function(){t._onViewZonesChanged()})),this._register(this.originalEditor.onDidChangeModelContent(function(){t._isVisible&&t._beginUpdateDecorationsSoon()}))},i.prototype._createRightHandSideEditor=function(e,i){var t=this;this.modifiedEditor=this._createInnerEditor(i,this._modifiedDomNode,this._adjustOptionsForRightHandSide(e)),this._register(this.modifiedEditor.onDidScrollChange(function(e){t._isHandlingScrollEvent||(e.scrollTopChanged||e.scrollLeftChanged||e.scrollHeightChanged)&&(t._isHandlingScrollEvent=!0,t.originalEditor.setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}),t._isHandlingScrollEvent=!1,t._layoutOverviewViewport())})),this._register(this.modifiedEditor.onDidChangeViewZones(function(){t._onViewZonesChanged()})),this._register(this.modifiedEditor.onDidChangeConfiguration(function(e){e.fontInfo&&t.modifiedEditor.getModel()&&t._onViewZonesChanged()})),this._register(this.modifiedEditor.onDidChangeModelContent(function(){t._isVisible&&t._beginUpdateDecorationsSoon()}))},i.prototype._createInnerEditor=function(e,i,t){return e.createInstance(S.CodeEditorWidget,i,t,{})},i.prototype.dispose=function(){this._codeEditorService.removeDiffEditor(this),-1!==this._beginUpdateDecorationsTimeout&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),window.clearInterval(this._measureDomElementToken),this._cleanViewZonesAndDecorations(),this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose()),this._overviewDomElement.removeChild(this._overviewViewportDomElement.domNode),this._containerDomElement.removeChild(this._overviewDomElement),this._containerDomElement.removeChild(this._originalDomNode),this.originalEditor.dispose(),this._containerDomElement.removeChild(this._modifiedDomNode),this.modifiedEditor.dispose(),this._strategy.dispose(),this._containerDomElement.removeChild(this._reviewPane.domNode.domNode),this._containerDomElement.removeChild(this._reviewPane.shadow.domNode),this._containerDomElement.removeChild(this._reviewPane.actionBarContainer.domNode),this._reviewPane.dispose(),this._domElement.removeChild(this._containerDomElement),this._onDidDispose.fire(),e.prototype.dispose.call(this)},i.prototype.getId=function(){return this.getEditorType()+":"+this.id},i.prototype.getEditorType=function(){return y.EditorType.IDiffEditor},i.prototype.getLineChanges=function(){return this._diffComputationResult?this._diffComputationResult.changes:null},i.prototype.getOriginalEditor=function(){return this.originalEditor},i.prototype.getModifiedEditor=function(){return this.modifiedEditor},i.prototype.updateOptions=function(e){var t=!1;"undefined"!=typeof e.renderSideBySide&&this._renderSideBySide!==e.renderSideBySide&&(this._renderSideBySide=e.renderSideBySide,t=!0);var o=!1;"undefined"!=typeof e.ignoreTrimWhitespace&&this._ignoreTrimWhitespace!==e.ignoreTrimWhitespace&&(this._ignoreTrimWhitespace=e.ignoreTrimWhitespace,o=!0),"undefined"!=typeof e.renderIndicators&&this._renderIndicators!==e.renderIndicators&&(this._renderIndicators=e.renderIndicators,o=!0),o&&this._beginUpdateDecorations(),"undefined"!=typeof e.originalEditable&&(this._originalIsEditable=Boolean(e.originalEditable)),this.modifiedEditor.updateOptions(this._adjustOptionsForRightHandSide(e)),this.originalEditor.updateOptions(this._adjustOptionsForLeftHandSide(e,this._originalIsEditable)),"undefined"!=typeof e.enableSplitViewResizing&&(this._enableSplitViewResizing=e.enableSplitViewResizing),this._strategy.setEnableSplitViewResizing(this._enableSplitViewResizing),t&&(this._setStrategy(this._renderSideBySide?new q(this._createDataSource(),this._enableSplitViewResizing):new X(this._createDataSource(),this._enableSplitViewResizing)),this._containerDomElement.className=i._getClassName(this._themeService.getTheme(),this._renderSideBySide))},i.prototype.getModel=function(){return{original:this.originalEditor.getModel(),modified:this.modifiedEditor.getModel()}},i.prototype.setModel=function(e){if(e&&(!e.original||!e.modified))throw new Error(e.original?"DiffEditorWidget.setModel: Modified model is null":"DiffEditorWidget.setModel: Original model is null");this._cleanViewZonesAndDecorations(),this.originalEditor.setModel(e?e.original:null),this.modifiedEditor.setModel(e?e.modified:null),this._updateDecorationsRunner.cancel(),e&&(this.originalEditor.setScrollTop(0),this.modifiedEditor.setScrollTop(0)),this._diffComputationResult=null,this._diffComputationToken++,e?(this._recreateOverviewRulers(),this._beginUpdateDecorations()):this._diffComputationResult=null,this._layoutOverviewViewport()},i.prototype.getDomNode=function(){return this._domElement},i.prototype.getVisibleColumnFromPosition=function(e){return this.modifiedEditor.getVisibleColumnFromPosition(e)},i.prototype.getPosition=function(){return this.modifiedEditor.getPosition()},i.prototype.setPosition=function(e){this.modifiedEditor.setPosition(e)},i.prototype.revealLine=function(e,i){void 0===i&&(i=0),this.modifiedEditor.revealLine(e,i)},i.prototype.revealLineInCenter=function(e,i){void 0===i&&(i=0),this.modifiedEditor.revealLineInCenter(e,i)},i.prototype.revealLineInCenterIfOutsideViewport=function(e,i){void 0===i&&(i=0),this.modifiedEditor.revealLineInCenterIfOutsideViewport(e,i)},i.prototype.revealPosition=function(e,i){void 0===i&&(i=0),this.modifiedEditor.revealPosition(e,i)},i.prototype.revealPositionInCenter=function(e,i){void 0===i&&(i=0),this.modifiedEditor.revealPositionInCenter(e,i)},i.prototype.revealPositionInCenterIfOutsideViewport=function(e,i){void 0===i&&(i=0),this.modifiedEditor.revealPositionInCenterIfOutsideViewport(e,i)},i.prototype.getSelection=function(){return this.modifiedEditor.getSelection()},i.prototype.getSelections=function(){return this.modifiedEditor.getSelections()},i.prototype.setSelection=function(e){this.modifiedEditor.setSelection(e)},i.prototype.setSelections=function(e){this.modifiedEditor.setSelections(e)},i.prototype.revealLines=function(e,i,t){void 0===t&&(t=0),this.modifiedEditor.revealLines(e,i,t)},i.prototype.revealLinesInCenter=function(e,i,t){void 0===t&&(t=0),this.modifiedEditor.revealLinesInCenter(e,i,t)},i.prototype.revealLinesInCenterIfOutsideViewport=function(e,i,t){void 0===t&&(t=0),this.modifiedEditor.revealLinesInCenterIfOutsideViewport(e,i,t)},i.prototype.revealRange=function(e,i,t,o){void 0===i&&(i=0),void 0===t&&(t=!1),void 0===o&&(o=!0),this.modifiedEditor.revealRange(e,i,t,o)},i.prototype.revealRangeInCenter=function(e,i){void 0===i&&(i=0),this.modifiedEditor.revealRangeInCenter(e,i)},i.prototype.revealRangeInCenterIfOutsideViewport=function(e,i){void 0===i&&(i=0),this.modifiedEditor.revealRangeInCenterIfOutsideViewport(e,i)},i.prototype.revealRangeAtTop=function(e,i){void 0===i&&(i=0),this.modifiedEditor.revealRangeAtTop(e,i)},i.prototype.getSupportedActions=function(){return this.modifiedEditor.getSupportedActions()},i.prototype.saveViewState=function(){var e=this.originalEditor.saveViewState(),i=this.modifiedEditor.saveViewState();return{original:e,modified:i}},i.prototype.restoreViewState=function(e){if(e.original&&e.modified){var i=e;this.originalEditor.restoreViewState(i.original),this.modifiedEditor.restoreViewState(i.modified)}},i.prototype.layout=function(e){this._measureDomElement(!1,e)},i.prototype.focus=function(){this.modifiedEditor.focus()},i.prototype.hasTextFocus=function(){return this.originalEditor.hasTextFocus()||this.modifiedEditor.hasTextFocus()},i.prototype.trigger=function(e,i,t){this.modifiedEditor.trigger(e,i,t)},i.prototype.changeDecorations=function(e){return this.modifiedEditor.changeDecorations(e)},i.prototype._measureDomElement=function(e,i){return i=i||{width:this._containerDomElement.clientWidth,height:this._containerDomElement.clientHeight},i.width<=0?(this._width=0,this._height=0,void(this._reviewHeight=0)):void((e||i.width!==this._width||i.height!==this._height)&&(this._width=i.width,this._height=i.height,this._reviewHeight=this._reviewPane.isVisible()?this._height:0,this._doLayout()))},i.prototype._layoutOverviewRulers=function(){var e=i.ENTIRE_DIFF_OVERVIEW_WIDTH-2*i.ONE_OVERVIEW_WIDTH,t=this.modifiedEditor.getLayoutInfo();t&&(this._originalOverviewRuler.setLayout({top:0,width:i.ONE_OVERVIEW_WIDTH,right:e+i.ONE_OVERVIEW_WIDTH,height:this._height-this._reviewHeight}),this._modifiedOverviewRuler.setLayout({top:0,right:0,width:i.ONE_OVERVIEW_WIDTH,height:this._height-this._reviewHeight}))},i.prototype._onViewZonesChanged=function(){this._currentlyChangingViewZones||this._updateDecorationsRunner.schedule()},i.prototype._beginUpdateDecorationsSoon=function(){var e=this;-1!==this._beginUpdateDecorationsTimeout&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._beginUpdateDecorationsTimeout=window.setTimeout(function(){return e._beginUpdateDecorations()},i.UPDATE_DIFF_DECORATIONS_DELAY)},i._equals=function(e,i){return e||i?e&&i?e.toString()===i.toString():!1:!0},i.prototype._beginUpdateDecorations=function(){var e=this;this._beginUpdateDecorationsTimeout=-1;var t=this.originalEditor.getModel(),o=this.modifiedEditor.getModel();if(t&&o){this._diffComputationToken++;var n=this._diffComputationToken;return this._editorWorkerService.canComputeDiff(t.uri,o.uri)?void this._editorWorkerService.computeDiff(t.uri,o.uri,this._ignoreTrimWhitespace).then(function(i){n===e._diffComputationToken&&t===e.originalEditor.getModel()&&o===e.modifiedEditor.getModel()&&(e._diffComputationResult=i,e._updateDecorationsRunner.schedule(),e._onDidUpdateDiff.fire())},function(){n===e._diffComputationToken&&t===e.originalEditor.getModel()&&o===e.modifiedEditor.getModel()&&(e._diffComputationResult=null,e._updateDecorationsRunner.schedule())}):void(i._equals(t.uri,this._lastOriginalWarning)&&i._equals(o.uri,this._lastModifiedWarning)||(this._lastOriginalWarning=t.uri,this._lastModifiedWarning=o.uri,this._notificationService.warn(m.localize("diff.tooLarge","Cannot compare files because one file is too large."))))}},i.prototype._cleanViewZonesAndDecorations=function(){this._originalEditorState.clean(this.originalEditor),this._modifiedEditorState.clean(this.modifiedEditor)},i.prototype._updateDecorations=function(){if(this.originalEditor.getModel()&&this.modifiedEditor.getModel()){var e=this._diffComputationResult?this._diffComputationResult.changes:[],i=this._originalEditorState.getForeignViewZones(this.originalEditor.getWhitespaces()),t=this._modifiedEditorState.getForeignViewZones(this.modifiedEditor.getWhitespaces()),o=this._strategy.getEditorsDiffDecorations(e,this._ignoreTrimWhitespace,this._renderIndicators,i,t,this.originalEditor,this.modifiedEditor);try{this._currentlyChangingViewZones=!0,this._originalEditorState.apply(this.originalEditor,this._originalOverviewRuler,o.original,!1),this._modifiedEditorState.apply(this.modifiedEditor,this._modifiedOverviewRuler,o.modified,!0)}finally{this._currentlyChangingViewZones=!1}}},i.prototype._adjustOptionsForSubEditor=function(e){var i=p.deepClone(e||{});return i.inDiffEditor=!0,i.wordWrap="off",i.wordWrapMinified=!1,i.automaticLayout=!1,i.scrollbar=i.scrollbar||{},i.scrollbar.vertical="visible",i.folding=!1,i.codeLens=!1,i.fixedOverflowWidgets=!0,i.minimap||(i.minimap={}),i.minimap.enabled=!1,i},i.prototype._adjustOptionsForLeftHandSide=function(e,i){var t=this._adjustOptionsForSubEditor(e);return t.readOnly=!i,t.overviewRulerLanes=1,t.extraEditorClassName="original-in-monaco-diff-editor",t},i.prototype._adjustOptionsForRightHandSide=function(e){var t=this._adjustOptionsForSubEditor(e);return t.revealHorizontalRightPadding=N.EDITOR_DEFAULTS.viewInfo.revealHorizontalRightPadding+i.ENTIRE_DIFF_OVERVIEW_WIDTH,t.scrollbar.verticalHasArrows=!1,t.extraEditorClassName="modified-in-monaco-diff-editor",t},i.prototype.doLayout=function(){this._measureDomElement(!0)},i.prototype._doLayout=function(){var e=this._strategy.layout();this._originalDomNode.style.width=e+"px",this._originalDomNode.style.left="0px",this._modifiedDomNode.style.width=this._width-e+"px",this._modifiedDomNode.style.left=e+"px",this._overviewDomElement.style.top="0px",this._overviewDomElement.style.height=this._height-this._reviewHeight+"px",this._overviewDomElement.style.width=i.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewDomElement.style.left=this._width-i.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewViewportDomElement.setWidth(i.ENTIRE_DIFF_OVERVIEW_WIDTH),this._overviewViewportDomElement.setHeight(30),this.originalEditor.layout({width:e,height:this._height-this._reviewHeight}),this.modifiedEditor.layout({width:this._width-e-i.ENTIRE_DIFF_OVERVIEW_WIDTH,height:this._height-this._reviewHeight}),(this._originalOverviewRuler||this._modifiedOverviewRuler)&&this._layoutOverviewRulers(),this._reviewPane.layout(this._height-this._reviewHeight,this._width,this._reviewHeight),this._layoutOverviewViewport()},i.prototype._layoutOverviewViewport=function(){var e=this._computeOverviewViewport();e?(this._overviewViewportDomElement.setTop(e.top),this._overviewViewportDomElement.setHeight(e.height)):(this._overviewViewportDomElement.setTop(0),this._overviewViewportDomElement.setHeight(0))},i.prototype._computeOverviewViewport=function(){var e=this.modifiedEditor.getLayoutInfo();if(!e)return null;var i=this.modifiedEditor.getScrollTop(),t=this.modifiedEditor.getScrollHeight(),o=Math.max(0,e.contentHeight),n=Math.max(0,o-0),r=t>0?n/t:0,d=Math.max(0,Math.floor(e.contentHeight*r)),a=Math.floor(i*r);return{height:d,top:a}},i.prototype._createDataSource=function(){var e=this;return{getWidth:function(){return e._width},getHeight:function(){return e._height-e._reviewHeight},getContainerDomNode:function(){return e._containerDomElement},relayoutEditors:function(){e._doLayout()},getOriginalEditor:function(){return e.originalEditor},getModifiedEditor:function(){return e.modifiedEditor}}},i.prototype._setStrategy=function(e){this._strategy&&this._strategy.dispose(),this._strategy=e,e.applyColors(this._themeService.getTheme()),this._diffComputationResult&&this._updateDecorations(),this._measureDomElement(!0)},i.prototype._getLineChangeAtOrBeforeLineNumber=function(e,i){var t=this._diffComputationResult?this._diffComputationResult.changes:[];if(0===t.length||eo;){var r=Math.floor((o+n)/2),d=i(t[r]),a=n>=r+1?i(t[r+1]):Number.MAX_VALUE;d>e?n=r-1:e>=a?o=r+1:(o=r,n=r)}return t[o]},i.prototype._getEquivalentLineForOriginalLineNumber=function(e){var i=this._getLineChangeAtOrBeforeLineNumber(e,function(e){return e.originalStartLineNumber});if(!i)return e;var t=i.originalStartLineNumber+(i.originalEndLineNumber>0?-1:0),o=i.modifiedStartLineNumber+(i.modifiedEndLineNumber>0?-1:0),n=i.originalEndLineNumber>0?i.originalEndLineNumber-i.originalStartLineNumber+1:0,r=i.modifiedEndLineNumber>0?i.modifiedEndLineNumber-i.modifiedStartLineNumber+1:0,d=e-t;return n>=d?o+Math.min(d,r):o+r-n+d},i.prototype._getEquivalentLineForModifiedLineNumber=function(e){var i=this._getLineChangeAtOrBeforeLineNumber(e,function(e){return e.modifiedStartLineNumber});if(!i)return e;var t=i.originalStartLineNumber+(i.originalEndLineNumber>0?-1:0),o=i.modifiedStartLineNumber+(i.modifiedEndLineNumber>0?-1:0),n=i.originalEndLineNumber>0?i.originalEndLineNumber-i.originalStartLineNumber+1:0,r=i.modifiedEndLineNumber>0?i.modifiedEndLineNumber-i.modifiedStartLineNumber+1:0,d=e-o;return r>=d?t+Math.min(d,n):t+n-r+d},i.prototype.getDiffLineInformationForOriginal=function(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(e)}:null},i.prototype.getDiffLineInformationForModified=function(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(e)}:null},i.ONE_OVERVIEW_WIDTH=15,i.ENTIRE_DIFF_OVERVIEW_WIDTH=30,i.UPDATE_DIFF_DECORATIONS_DELAY=200,i=s([l(2,C.IEditorWorkerService),l(3,T.IContextKeyService),l(4,W.IInstantiationService),l(5,w.ICodeEditorService),l(6,Z.IThemeService),l(7,F.INotificationService)],i)}(_.Disposable);i.DiffEditorWidget=z;var U=function(e){function i(i){var t=e.call(this)||this;return t._dataSource=i,t}return a(i,e),i.prototype.applyColors=function(e){var i=(e.getColor(x.diffInserted)||x.defaultInsertColor).transparent(2),t=(e.getColor(x.diffRemoved)||x.defaultRemoveColor).transparent(2),o=!i.equals(this._insertColor)||!t.equals(this._removeColor);return this._insertColor=i,this._removeColor=t,o},i.prototype.getEditorsDiffDecorations=function(e,i,t,o,n,r,d){n=n.sort(function(e,i){return e.afterLineNumber-i.afterLineNumber}),o=o.sort(function(e,i){return e.afterLineNumber-i.afterLineNumber});var a=this._getViewZones(e,o,n,r,d,t),s=this._getOriginalEditorDecorations(e,i,t,r,d),l=this._getModifiedEditorDecorations(e,i,t,r,d);return{original:{decorations:s.decorations,overviewZones:s.overviewZones,zones:a.original},modified:{decorations:l.decorations,overviewZones:l.overviewZones,zones:a.modified}}},i}(_.Disposable),B=function(){function e(e){this._source=e,this._index=-1,this.advance()}return e.prototype.advance=function(){this._index++,this.current=this._index0){var t=e[e.length-1];if(t.afterLineNumber===i.afterLineNumber&&null===t.domNode)return void(t.heightInLines+=i.heightInLines)}e.push(i)},u=new B(this.modifiedForeignVZ),c=new B(this.originalForeignVZ),f=0,g=this.lineChanges.length;g>=f;f++){var _=g>f?this.lineChanges[f]:null;null!==_?(d=_.originalStartLineNumber+(_.originalEndLineNumber>0?-1:0),a=_.modifiedStartLineNumber+(_.modifiedEndLineNumber>0?-1:0),r=_.originalEndLineNumber>0?_.originalEndLineNumber-_.originalStartLineNumber+1:0,t=_.modifiedEndLineNumber>0?_.modifiedEndLineNumber-_.modifiedStartLineNumber+1:0,s=Math.max(_.originalStartLineNumber,_.originalEndLineNumber),l=Math.max(_.modifiedStartLineNumber,_.modifiedEndLineNumber)):(d+=1e7+r,a+=1e7+t,s=d,l=a);for(var p=[],v=[];u.current&&u.current.afterLineNumber<=l;){var E=void 0;E=u.current.afterLineNumber<=a?d-a+u.current.afterLineNumber:s;var w=null;_&&_.modifiedStartLineNumber<=u.current.afterLineNumber&&u.current.afterLineNumber<=_.modifiedEndLineNumber&&(w=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()),p.push({afterLineNumber:E,heightInLines:u.current.heightInLines,domNode:null,marginDomNode:w}),u.advance()}for(;c.current&&c.current.afterLineNumber<=s;){var E=void 0;E=c.current.afterLineNumber<=d?a-d+c.current.afterLineNumber:l,v.push({afterLineNumber:E,heightInLines:c.current.heightInLines,domNode:null}),c.advance()}if(null!==_&&o(_)){var S=this._produceOriginalFromDiff(_,r,t);S&&p.push(S)}if(null!==_&&n(_)){var S=this._produceModifiedFromDiff(_,r,t);S&&v.push(S)}var D=0,N=0;for(p=p.sort(m),v=v.sort(m);Dy?(h(i.original,b),D++):y>I?(h(i.modified,L),N++):b.shouldNotShrink?(h(i.original,b),D++):L.shouldNotShrink?(h(i.modified,L),N++):b.heightInLines>=L.heightInLines?(b.heightInLines-=L.heightInLines,N++):(L.heightInLines-=b.heightInLines,D++)}for(;D2*i.MINIMUM_EDITOR_WIDTH?(no-i.MINIMUM_EDITOR_WIDTH&&(n=o-i.MINIMUM_EDITOR_WIDTH)):n=r,this._sashPosition!==n&&(this._sashPosition=n,this._sash.layout()),this._sashPosition },i.prototype.onSashDragStart=function(){this._startSashPosition=this._sashPosition},i.prototype.onSashDrag=function(e){var i=this._dataSource.getWidth(),t=i-z.ENTIRE_DIFF_OVERVIEW_WIDTH,o=this.layout((this._startSashPosition+(e.currentX-e.startX))/t);this._sashRatio=o/t,this._dataSource.relayoutEditors()},i.prototype.onSashDragEnd=function(){this._sash.layout()},i.prototype.onSashReset=function(){this._sashRatio=.5,this._dataSource.relayoutEditors(),this._sash.layout()},i.prototype.getVerticalSashTop=function(){return 0},i.prototype.getVerticalSashLeft=function(){return this._sashPosition},i.prototype.getVerticalSashHeight=function(){return this._dataSource.getHeight()},i.prototype._getViewZones=function(e,i,t){var o=new K(e,i,t);return o.getViewZones()},i.prototype._getOriginalEditorDecorations=function(e,i,r,d){for(var a=this._removeColor.toString(),s={decorations:[],overviewZones:[]},l=d.getModel(),m=0,h=e.length;h>m;m++){var u=e[m];if(n(u)&&(s.decorations.push({range:new b.Range(u.originalStartLineNumber,1,u.originalEndLineNumber,Number.MAX_VALUE),options:r?j.lineDeleteWithSign:j.lineDelete}),o(u)&&u.charChanges||s.decorations.push(t(u.originalStartLineNumber,1,u.originalEndLineNumber,Number.MAX_VALUE,j.charDeleteWholeLine)),s.overviewZones.push(new R.OverviewRulerZone(u.originalStartLineNumber,u.originalEndLineNumber,a)),u.charChanges))for(var c=0,f=u.charChanges.length;f>c;c++){var g=u.charChanges[c];if(n(g))if(i)for(var _=g.originalStartLineNumber;_<=g.originalEndLineNumber;_++){var p=void 0,v=void 0;p=_===g.originalStartLineNumber?g.originalStartColumn:l.getLineFirstNonWhitespaceColumn(_),v=_===g.originalEndLineNumber?g.originalEndColumn:l.getLineLastNonWhitespaceColumn(_),s.decorations.push(t(_,p,_,v,j.charDelete))}else s.decorations.push(t(g.originalStartLineNumber,g.originalStartColumn,g.originalEndLineNumber,g.originalEndColumn,j.charDelete))}}return s},i.prototype._getModifiedEditorDecorations=function(e,i,r,d,a){for(var s=this._insertColor.toString(),l={decorations:[],overviewZones:[]},m=a.getModel(),h=0,u=e.length;u>h;h++){var c=e[h];if(o(c)&&(l.decorations.push({range:new b.Range(c.modifiedStartLineNumber,1,c.modifiedEndLineNumber,Number.MAX_VALUE),options:r?j.lineInsertWithSign:j.lineInsert}),n(c)&&c.charChanges||l.decorations.push(t(c.modifiedStartLineNumber,1,c.modifiedEndLineNumber,Number.MAX_VALUE,j.charInsertWholeLine)),l.overviewZones.push(new R.OverviewRulerZone(c.modifiedStartLineNumber,c.modifiedEndLineNumber,s)),c.charChanges))for(var f=0,g=c.charChanges.length;g>f;f++){var _=c.charChanges[f];if(o(_))if(i)for(var p=_.modifiedStartLineNumber;p<=_.modifiedEndLineNumber;p++){var v=void 0,E=void 0;v=p===_.modifiedStartLineNumber?_.modifiedStartColumn:m.getLineFirstNonWhitespaceColumn(p),E=p===_.modifiedEndLineNumber?_.modifiedEndColumn:m.getLineLastNonWhitespaceColumn(p),l.decorations.push(t(p,v,p,E,j.charInsert))}else l.decorations.push(t(_.modifiedStartLineNumber,_.modifiedStartColumn,_.modifiedEndLineNumber,_.modifiedEndColumn,j.charInsert))}}return l},i.MINIMUM_EDITOR_WIDTH=100,i}(U),K=function(e){function i(i,t,o){return e.call(this,i,t,o)||this}return a(i,e),i.prototype._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion=function(){return null},i.prototype._produceOriginalFromDiff=function(e,i,t){return t>i?{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:t-i,domNode:null}:null},i.prototype._produceModifiedFromDiff=function(e,i,t){return i>t?{afterLineNumber:Math.max(e.modifiedStartLineNumber,e.modifiedEndLineNumber),heightInLines:i-t,domNode:null}:null},i}(k),X=function(e){function i(i){var t=e.call(this,i)||this;return t.decorationsLeft=i.getOriginalEditor().getLayoutInfo().decorationsLeft,t._register(i.getOriginalEditor().onDidLayoutChange(function(e){t.decorationsLeft!==e.decorationsLeft&&(t.decorationsLeft=e.decorationsLeft,i.relayoutEditors())})),t}return a(i,e),i.prototype.setEnableSplitViewResizing=function(){},i.prototype._getViewZones=function(e,i,t,o,n,r){var d=new Y(e,i,t,o,n,r);return d.getViewZones()},i.prototype._getOriginalEditorDecorations=function(e){for(var i=this._removeColor.toString(),t={decorations:[],overviewZones:[]},o=0,r=e.length;r>o;o++){var d=e[o];n(d)&&(t.decorations.push({range:new b.Range(d.originalStartLineNumber,1,d.originalEndLineNumber,Number.MAX_VALUE),options:j.lineDeleteMargin}),t.overviewZones.push(new R.OverviewRulerZone(d.originalStartLineNumber,d.originalEndLineNumber,i)))}return t},i.prototype._getModifiedEditorDecorations=function(e,i,n,r,d){for(var a=this._insertColor.toString(),s={decorations:[],overviewZones:[]},l=d.getModel(),m=0,h=e.length;h>m;m++){var u=e[m];if(o(u))if(s.decorations.push({range:new b.Range(u.modifiedStartLineNumber,1,u.modifiedEndLineNumber,Number.MAX_VALUE),options:n?j.lineInsertWithSign:j.lineInsert}),s.overviewZones.push(new R.OverviewRulerZone(u.modifiedStartLineNumber,u.modifiedEndLineNumber,a)),u.charChanges)for(var c=0,f=u.charChanges.length;f>c;c++){var g=u.charChanges[c];if(o(g))if(i)for(var _=g.modifiedStartLineNumber;_<=g.modifiedEndLineNumber;_++){var p=void 0,v=void 0;p=_===g.modifiedStartLineNumber?g.modifiedStartColumn:l.getLineFirstNonWhitespaceColumn(_),v=_===g.modifiedEndLineNumber?g.modifiedEndColumn:l.getLineLastNonWhitespaceColumn(_),s.decorations.push(t(_,p,_,v,j.charInsert))}else s.decorations.push(t(g.modifiedStartLineNumber,g.modifiedStartColumn,g.modifiedEndLineNumber,g.modifiedEndColumn,j.charInsert))}else s.decorations.push(t(u.modifiedStartLineNumber,1,u.modifiedEndLineNumber,Number.MAX_VALUE,j.charInsertWholeLine))}return s},i.prototype.layout=function(){return Math.max(5,this.decorationsLeft)},i}(U),Y=function(e){function i(i,t,o,n,r,d){var a=e.call(this,i,t,o)||this;return a.originalModel=n.getModel(),a.modifiedEditorConfiguration=r.getConfiguration(),a.modifiedEditorTabSize=r.getModel().getOptions().tabSize,a.renderIndicators=d,a}return a(i,e),i.prototype._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion=function(){var e=document.createElement("div");return e.className="inline-added-margin-view-zone",e},i.prototype._produceOriginalFromDiff=function(e,i,t){var o=document.createElement("div");return o.className="inline-added-margin-view-zone",{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:t,domNode:document.createElement("div"),marginDomNode:o}},i.prototype._produceModifiedFromDiff=function(e,i){var t=[];if(e.charChanges)for(var o=0,r=e.charChanges.length;r>o;o++){var d=e.charChanges[o];n(d)&&t.push(new M.InlineDecoration(new b.Range(d.originalStartLineNumber,d.originalStartColumn,d.originalEndLineNumber,d.originalEndColumn),"char-delete",0))}for(var a=L.createStringBuilder(1e4),s=[],l=this.modifiedEditorConfiguration.layoutInfo.decorationsWidth,m=this.modifiedEditorConfiguration.lineHeight,h=this.modifiedEditorConfiguration.fontInfo.typicalHalfwidthCharacterWidth,u=0,c=e.originalStartLineNumber;c<=e.originalEndLineNumber;c++)if(u=Math.max(u,this._renderOriginalLine(c-e.originalStartLineNumber,this.originalModel,this.modifiedEditorConfiguration,this.modifiedEditorTabSize,c,t,a)),this.renderIndicators){var f=c-e.originalStartLineNumber;s=s.concat(['
'])}u+=this.modifiedEditorConfiguration.viewInfo.scrollBeyondLastColumn;var g=document.createElement("div");g.className="view-lines line-delete",g.innerHTML=a.build(),v.Configuration.applyFontInfoSlow(g,this.modifiedEditorConfiguration.fontInfo);var _=document.createElement("div");return _.className="inline-deleted-margin-view-zone",_.innerHTML=s.join(""),v.Configuration.applyFontInfoSlow(_,this.modifiedEditorConfiguration.fontInfo),{shouldNotShrink:!0,afterLineNumber:0===e.modifiedEndLineNumber?e.modifiedStartLineNumber:e.modifiedStartLineNumber-1,heightInLines:i,minWidthInPx:u*h,domNode:g,marginDomNode:_}},i.prototype._renderOriginalLine=function(e,i,t,o,n,r,d){var a=i.getLineTokens(n),s=a.getLineContent(),l=O.LineDecoration.filter(r,n,1,s.length+1);d.appendASCIIString('
');var m=M.ViewLineRenderingData.isBasicASCII(s,i.mightContainNonBasicASCII()),h=M.ViewLineRenderingData.containsRTL(s,m,i.mightContainRTL()),u=V.renderViewLine(new V.RenderLineInput(t.fontInfo.isMonospace&&!t.viewInfo.disableMonospaceOptimizations,t.fontInfo.canUseHalfwidthRightwardsArrow,s,!1,m,h,0,a,l,o,t.fontInfo.spaceWidth,t.viewInfo.stopRenderingLineAfter,t.viewInfo.renderWhitespace,t.viewInfo.renderControlCharacters,t.viewInfo.fontLigatures),d);d.appendASCIIString("
");var c=u.characterMapping.getAbsoluteOffsets();return c.length>0?c[c.length-1]:0},i}(k);Z.registerThemingParticipant(function(e,i){var t=e.getColor(x.diffInserted);t&&(i.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { background-color: "+t+"; }"),i.addRule(".monaco-diff-editor .line-insert, .monaco-diff-editor .char-insert { background-color: "+t+"; }"),i.addRule(".monaco-editor .inline-added-margin-view-zone { background-color: "+t+"; }"));var o=e.getColor(x.diffRemoved);o&&(i.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { background-color: "+o+"; }"),i.addRule(".monaco-diff-editor .line-delete, .monaco-diff-editor .char-delete { background-color: "+o+"; }"),i.addRule(".monaco-editor .inline-deleted-margin-view-zone { background-color: "+o+"; }"));var n=e.getColor(x.diffInsertedOutline);n&&i.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+n+"; }");var r=e.getColor(x.diffRemovedOutline);r&&i.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+r+"; }");var d=e.getColor(x.scrollbarShadow);d&&i.addRule(".monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px "+d+"; }");var a=e.getColor(x.diffBorder);a&&i.addRule(".monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid "+a+"; }")})}); ;/*!node_modules/monaco-editor/esm/vs/editor/standalone/common/standaloneThemeService.js*/ define("node_modules/monaco-editor/esm/vs/editor/standalone/common/standaloneThemeService",function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var n=e("node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation");o.IStandaloneThemeService=n.createDecorator("themeService")}); ;/*!node_modules/monaco-editor/esm/vs/platform/contextview/browser/contextView.js*/ define("node_modules/monaco-editor/esm/vs/platform/contextview/browser/contextView",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=e("node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation");t.IContextViewService=o.createDecorator("contextViewService"),t.IContextMenuService=o.createDecorator("contextMenuService")}); ;/*!node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybinding.js*/ define("node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybinding",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=e("node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation");n.IKeybindingService=o.createDecorator("keybindingService")}); ;/*!node_modules/monaco-editor/esm/vs/editor/standalone/browser/standaloneCodeEditor.js*/ define("node_modules/monaco-editor/esm/vs/editor/standalone/browser/standaloneCodeEditor",function(e,o){"use strict";function t(){D||(D=!0,s.setARIAContainer(document.body))}Object.defineProperty(o,"__esModule",{value:!0});var i=e("node_modules/tslib/tslib"),n=this&&this.__extends||function(){var e=function(o,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var t in o)o.hasOwnProperty(t)&&(e[t]=o[t])})(o,t)};return function(o,t){function i(){this.constructor=o}e(o,t),o.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}}(),r=this&&this.__decorate||function(e,o,t,i){var n,r=arguments.length,d=3>r?o:null===i?i=Object.getOwnPropertyDescriptor(o,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(e,o,t,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(d=(3>r?n(d):r>3?n(o,t,d):n(o,t))||d);return r>3&&d&&Object.defineProperty(o,t,d),d},d=this&&this.__param||function(e,o){return function(t,i){o(t,i,e)}},a=i.__importStar(e("node_modules/monaco-editor/esm/vs/base/browser/browser")),s=i.__importStar(e("node_modules/monaco-editor/esm/vs/base/browser/ui/aria/aria")),c=e("node_modules/monaco-editor/esm/vs/base/common/lifecycle"),l=e("node_modules/monaco-editor/esm/vs/editor/browser/services/codeEditorService"),m=e("node_modules/monaco-editor/esm/vs/editor/browser/widget/codeEditorWidget"),u=e("node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditorWidget"),p=e("node_modules/monaco-editor/esm/vs/editor/common/editorAction"),f=e("node_modules/monaco-editor/esm/vs/editor/common/services/editorWorkerService"),v=e("node_modules/monaco-editor/esm/vs/editor/standalone/browser/simpleServices"),y=e("node_modules/monaco-editor/esm/vs/editor/standalone/common/standaloneThemeService"),_=e("node_modules/monaco-editor/esm/vs/platform/actions/common/actions"),h=e("node_modules/monaco-editor/esm/vs/platform/commands/common/commands"),g=e("node_modules/monaco-editor/esm/vs/platform/configuration/common/configuration"),S=e("node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey"),b=e("node_modules/monaco-editor/esm/vs/platform/contextview/browser/contextView"),C=e("node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation"),I=e("node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybinding"),w=e("node_modules/monaco-editor/esm/vs/platform/notification/common/notification"),x=e("node_modules/monaco-editor/esm/vs/platform/theme/common/themeService"),E=e("node_modules/monaco-editor/esm/vs/platform/accessibility/common/accessibility"),K=e("node_modules/monaco-editor/esm/vs/editor/common/standaloneStrings"),M=0,D=!1,O=function(e){function o(o,i,n,r,d,s,c,l,m,u){var p=this;return i=i||{},i.ariaLabel=i.ariaLabel||K.StandaloneCodeEditorNLS.editorViewAccessibleLabel,i.ariaLabel=i.ariaLabel+";"+(a.isIE?K.StandaloneCodeEditorNLS.accessibilityHelpMessageIE:K.StandaloneCodeEditorNLS.accessibilityHelpMessage),p=e.call(this,o,i,{},n,r,d,s,l,m,u)||this,c instanceof v.StandaloneKeybindingService&&(p._standaloneKeybindingService=c),t(),p}return n(o,e),o.prototype.addCommand=function(e,o,t){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;var i="DYNAMIC_"+ ++M,n=S.ContextKeyExpr.deserialize(t);return this._standaloneKeybindingService.addDynamicKeybinding(i,e,o,n),i},o.prototype.createContextKey=function(e,o){return this._contextKeyService.createKey(e,o)},o.prototype.addAction=function(e){var o=this;if("string"!=typeof e.id||"string"!=typeof e.label||"function"!=typeof e.run)throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),c.Disposable.None;var t=e.id,i=e.label,n=S.ContextKeyExpr.and(S.ContextKeyExpr.equals("editorId",this.getId()),S.ContextKeyExpr.deserialize(e.precondition)),r=e.keybindings,d=S.ContextKeyExpr.and(n,S.ContextKeyExpr.deserialize(e.keybindingContext)),a=e.contextMenuGroupId||null,s=e.contextMenuOrder||0,l=function(){return Promise.resolve(e.run(o))},m=[],u=this.getId()+":"+t;if(m.push(h.CommandsRegistry.registerCommand(u,l)),a){var f={command:{id:u,title:i},when:n,group:a,order:s};m.push(_.MenuRegistry.appendMenuItem(7,f))}Array.isArray(r)&&(m=m.concat(r.map(function(e){return o._standaloneKeybindingService.addDynamicKeybinding(u,e,l,d)})));var v=new p.InternalEditorAction(u,i,i,n,l,this._contextKeyService);return this._actions[t]=v,m.push(c.toDisposable(function(){delete o._actions[t]})),c.combinedDisposable(m)},o=r([d(2,C.IInstantiationService),d(3,l.ICodeEditorService),d(4,h.ICommandService),d(5,S.IContextKeyService),d(6,I.IKeybindingService),d(7,x.IThemeService),d(8,w.INotificationService),d(9,E.IAccessibilityService)],o)}(m.CodeEditorWidget);o.StandaloneCodeEditor=O;var A=function(e){function o(o,t,i,n,r,d,a,s,c,l,m,u,p){var f=this;v.applyConfigurationValues(u,t,!1),t=t||{},"string"==typeof t.theme&&l.setTheme(t.theme);var y=t.model;delete t.model,f=e.call(this,o,t,n,r,d,a,s,l,m,p)||this,f._contextViewService=c,f._configurationService=u,f._register(i);var _;if("undefined"==typeof y?(_=self.monaco.editor.createModel(t.value||"",t.language||"text/plain"),f._ownsModel=!0):(_=y,f._ownsModel=!1),f._attachModel(_),_){var h={oldModelUrl:null,newModelUrl:_.uri};f._onDidChangeModel.fire(h)}return f}return n(o,e),o.prototype.dispose=function(){e.prototype.dispose.call(this)},o.prototype.updateOptions=function(o){v.applyConfigurationValues(this._configurationService,o,!1),e.prototype.updateOptions.call(this,o)},o.prototype._attachModel=function(o){e.prototype._attachModel.call(this,o),this._modelData&&this._contextViewService.setContainer(this._modelData.view.domNode.domNode)},o.prototype._postDetachModelCleanup=function(o){e.prototype._postDetachModelCleanup.call(this,o),o&&this._ownsModel&&(o.dispose(),this._ownsModel=!1)},o=r([d(3,C.IInstantiationService),d(4,l.ICodeEditorService),d(5,h.ICommandService),d(6,S.IContextKeyService),d(7,I.IKeybindingService),d(8,b.IContextViewService),d(9,y.IStandaloneThemeService),d(10,w.INotificationService),d(11,g.IConfigurationService),d(12,E.IAccessibilityService)],o)}(O);o.StandaloneEditor=A;var V=function(e){function o(o,t,i,n,r,d,a,s,c,l,m,u){var p=this;return v.applyConfigurationValues(u,t,!0),t=t||{},"string"==typeof t.theme&&(t.theme=l.setTheme(t.theme)),p=e.call(this,o,t,s,r,n,c,l,m)||this,p._contextViewService=a,p._configurationService=u,p._register(i),p._contextViewService.setContainer(p._containerDomElement),p}return n(o,e),o.prototype.dispose=function(){e.prototype.dispose.call(this)},o.prototype.updateOptions=function(o){v.applyConfigurationValues(this._configurationService,o,!0),e.prototype.updateOptions.call(this,o)},o.prototype._createInnerEditor=function(e,o,t){return e.createInstance(O,o,t)},o.prototype.getOriginalEditor=function(){return e.prototype.getOriginalEditor.call(this)},o.prototype.getModifiedEditor=function(){return e.prototype.getModifiedEditor.call(this)},o.prototype.addCommand=function(e,o,t){return this.getModifiedEditor().addCommand(e,o,t)},o.prototype.createContextKey=function(e,o){return this.getModifiedEditor().createContextKey(e,o)},o.prototype.addAction=function(e){return this.getModifiedEditor().addAction(e)},o=r([d(3,C.IInstantiationService),d(4,S.IContextKeyService),d(5,I.IKeybindingService),d(6,b.IContextViewService),d(7,f.IEditorWorkerService),d(8,l.ICodeEditorService),d(9,y.IStandaloneThemeService),d(10,w.INotificationService),d(11,g.IConfigurationService)],o)}(u.DiffEditorWidget);o.StandaloneDiffEditor=V}); ;/*!node_modules/monaco-editor/esm/vs/editor/browser/services/bulkEditService.js*/ define("node_modules/monaco-editor/esm/vs/editor/browser/services/bulkEditService",function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var i=e("node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation");o.IBulkEditService=i.createDecorator("IWorkspaceEditService")}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/services/modeService.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/services/modeService",function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var i=e("node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation");o.IModeService=i.createDecorator("modeService")}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/modes/abstractMode.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/modes/abstractMode",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=function(){function e(e){this._languageIdentifier=e}return e.prototype.getId=function(){return this._languageIdentifier.language},e}();n.FrankensteinMode=t}); ;/*!node_modules/monaco-editor/esm/vs/base/common/mime.js*/ define("node_modules/monaco-editor/esm/vs/base/common/mime",function(e,n){"use strict";function i(e,n){void 0===n&&(n=!1);var i=t(e);f.push(i),i.userConfigured?p.push(i):u.push(i),n&&!i.userConfigured&&f.forEach(function(e){e.mime===i.mime||e.userConfigured||(i.extension&&e.extension===i.extension&&console.warn("Overwriting extension <<"+i.extension+">> to now point to mime <<"+i.mime+">>"),i.filename&&e.filename===i.filename&&console.warn("Overwriting filename <<"+i.filename+">> to now point to mime <<"+i.mime+">>"),i.filepattern&&e.filepattern===i.filepattern&&console.warn("Overwriting filepattern <<"+i.filepattern+">> to now point to mime <<"+i.mime+">>"),i.firstline&&e.firstline===i.firstline&&console.warn("Overwriting firstline <<"+i.firstline+">> to now point to mime <<"+i.mime+">>"))})}function t(e){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:e.userConfigured,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?e.filepattern.toLowerCase():void 0,filepatternOnPath:e.filepattern?e.filepattern.indexOf(a.posix.sep)>=0:!1}}function o(e,i){if(!e)return[n.MIME_UNKNOWN];e=e.toLowerCase();var t=a.basename(e),o=r(e,t,p);if(o)return[o,n.MIME_TEXT];var m=r(e,t,u);if(m)return[m,n.MIME_TEXT];if(i){var l=s(i);if(l)return[l,n.MIME_TEXT]}return[n.MIME_UNKNOWN]}function r(e,n,i){for(var t=null,o=null,r=null,s=i.length-1;s>=0;s--){var a=i[s];if(n===a.filenameLowercase){t=a;break}if(a.filepattern&&(!o||a.filepattern.length>o.filepattern.length)){var f=a.filepatternOnPath?e:n;l.match(a.filepatternLowercase,f)&&(o=a)}a.extension&&(!r||a.extension.length>r.extension.length)&&m.endsWith(n,a.extensionLowercase)&&(r=a)}return t?t.mime:o?o.mime:r?r.mime:null}function s(e){if(m.startsWithUTF8BOM(e)&&(e=e.substr(1)),e.length>0)for(var n=0,i=f;n0)return t.mime}}return null}Object.defineProperty(n,"__esModule",{value:!0});var a=e("node_modules/monaco-editor/esm/vs/base/common/path"),m=e("node_modules/monaco-editor/esm/vs/base/common/strings"),l=e("node_modules/monaco-editor/esm/vs/base/common/glob");n.MIME_TEXT="text/plain",n.MIME_UNKNOWN="application/unknown";var f=[],u=[],p=[];n.registerTextMime=i,n.guessMimeTypes=o}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/modes/modesRegistry.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/modes/modesRegistry",function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var s=e("node_modules/tslib/tslib"),t=s.__importStar(e("node_modules/monaco-editor/esm/vs/nls")),n=e("node_modules/monaco-editor/esm/vs/base/common/event"),i=e("node_modules/monaco-editor/esm/vs/editor/common/modes"),a=e("node_modules/monaco-editor/esm/vs/editor/common/modes/languageConfigurationRegistry"),g=e("node_modules/monaco-editor/esm/vs/platform/registry/common/platform");o.Extensions={ModesRegistry:"editor.modesRegistry"};var r=function(){function e(){this._onDidChangeLanguages=new n.Emitter,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[],this._dynamicLanguages=[]}return e.prototype.registerLanguage=function(e){this._languages.push(e),this._onDidChangeLanguages.fire(void 0)},e.prototype.getLanguages=function(){return[].concat(this._languages).concat(this._dynamicLanguages)},e}();o.EditorModesRegistry=r,o.ModesRegistry=new r,g.Registry.add(o.Extensions.ModesRegistry,o.ModesRegistry),o.PLAINTEXT_MODE_ID="plaintext",o.PLAINTEXT_LANGUAGE_IDENTIFIER=new i.LanguageIdentifier(o.PLAINTEXT_MODE_ID,1),o.ModesRegistry.registerLanguage({id:o.PLAINTEXT_MODE_ID,extensions:[".txt",".gitignore"],aliases:[t.localize("plainText.alias","Plain Text"),"text"],mimetypes:["text/plain"]}),a.LanguageConfigurationRegistry.register(o.PLAINTEXT_LANGUAGE_IDENTIFIER,{brackets:[["(",")"],["[","]"],["{","}"]]})}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/services/languagesRegistry.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/services/languagesRegistry",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=e("node_modules/tslib/tslib"),i=this&&this.__extends||function(){var e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])})(n,t)};return function(n,t){function i(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}}(),a=e("node_modules/monaco-editor/esm/vs/base/common/errors"),r=e("node_modules/monaco-editor/esm/vs/base/common/event"),s=e("node_modules/monaco-editor/esm/vs/base/common/lifecycle"),o=t.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/mime")),g=t.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/strings")),m=e("node_modules/monaco-editor/esm/vs/editor/common/modes"),u=e("node_modules/monaco-editor/esm/vs/editor/common/modes/modesRegistry"),l=e("node_modules/monaco-editor/esm/vs/editor/common/modes/nullMode"),d=e("node_modules/monaco-editor/esm/vs/platform/configuration/common/configurationRegistry"),p=e("node_modules/monaco-editor/esm/vs/platform/registry/common/platform"),c=Object.prototype.hasOwnProperty,_=function(e){function n(n,t){void 0===n&&(n=!0),void 0===t&&(t=!1);var i=e.call(this)||this;return i._onDidChange=i._register(new r.Emitter),i.onDidChange=i._onDidChange.event,i._warnOnOverwrite=t,i._nextLanguageId2=1,i._languageIdToLanguage=[],i._languageToLanguageId=Object.create(null),i._languages={},i._mimeTypesMap={},i._nameMap={},i._lowercaseNameMap={},n&&(i._initializeFromRegistry(),i._register(u.ModesRegistry.onDidChangeLanguages(function(){return i._initializeFromRegistry()}))),i}return i(n,e),n.prototype._initializeFromRegistry=function(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={};var e=u.ModesRegistry.getLanguages();this._registerLanguages(e)},n.prototype._registerLanguages=function(e){for(var n=this,t=0,i=e;t0&&((t=e.mimetypes).push.apply(t,n.mimetypes),r=n.mimetypes[0]),r||(r="text/x-"+i,e.mimetypes.push(r)),Array.isArray(n.extensions))for(var s=0,m=n.extensions;s0){var h=n.firstLine;"^"!==h.charAt(0)&&(h="^"+h);try{var y=new RegExp(h);g.regExpLeadsToEndlessLoop(y)||o.registerTextMime({id:i,mime:r,firstline:y},this._warnOnOverwrite)}catch(v){a.onUnexpectedError(v)}}e.aliases.push(i);var L=null;if("undefined"!=typeof n.aliases&&Array.isArray(n.aliases)&&(L=0===n.aliases.length?[null]:n.aliases),null!==L)for(var M=0,w=L;M0;if(O&&null===L[0]);else{var T=(O?L[0]:null)||i;(O||!e.name)&&(e.name=T)}n.configuration&&e.configurationFiles.push(n.configuration)},n.prototype.isRegisteredMode=function(e){return c.call(this._mimeTypesMap,e)?!0:c.call(this._languages,e)},n.prototype.getModeIdForLanguageNameLowercase=function(e){return c.call(this._lowercaseNameMap,e)?this._lowercaseNameMap[e].language:null},n.prototype.extractModeIds=function(e){var n=this;return e?e.split(",").map(function(e){return e.trim()}).map(function(e){return c.call(n._mimeTypesMap,e)?n._mimeTypesMap[e].language:e}).filter(function(e){return c.call(n._languages,e)}):[]},n.prototype.getLanguageIdentifier=function(e){if(e===l.NULL_MODE_ID||0===e)return l.NULL_LANGUAGE_IDENTIFIER;var n;if("string"==typeof e)n=e;else if(n=this._languageIdToLanguage[e],!n)return null;return c.call(this._languages,n)?this._languages[n].identifier:null},n.prototype.getModeIdsFromFilepathOrFirstLine=function(e,n){if(!e&&!n)return[];var t=o.guessMimeTypes(e,n);return this.extractModeIds(t.join(","))},n}(s.Disposable);n.LanguagesRegistry=_}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/services/modeServiceImpl.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/services/modeServiceImpl",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),o=e("node_modules/monaco-editor/esm/vs/base/common/event"),r=e("node_modules/monaco-editor/esm/vs/base/common/lifecycle"),i=e("node_modules/monaco-editor/esm/vs/editor/common/modes/abstractMode"),a=e("node_modules/monaco-editor/esm/vs/editor/common/modes/nullMode"),s=e("node_modules/monaco-editor/esm/vs/editor/common/services/languagesRegistry"),d=function(e){function t(t,n){var r=e.call(this)||this;return r._onDidChange=r._register(new o.Emitter),r.onDidChange=r._onDidChange.event,r._selector=n,r.languageIdentifier=r._selector(),r._register(t(function(){return r._evaluate()})),r}return n(t,e),t.prototype._evaluate=function(){var e=this._selector();e.id!==this.languageIdentifier.id&&(this.languageIdentifier=e,this._onDidChange.fire(this.languageIdentifier))},t}(r.Disposable),g=function(){function e(e){var t=this;void 0===e&&(e=!1),this._onDidCreateMode=new o.Emitter,this.onDidCreateMode=this._onDidCreateMode.event,this._onLanguagesMaybeChanged=new o.Emitter,this.onLanguagesMaybeChanged=this._onLanguagesMaybeChanged.event,this._instantiatedModes={},this._registry=new s.LanguagesRegistry(!0,e),this._registry.onDidChange(function(){return t._onLanguagesMaybeChanged.fire()})}return e.prototype.isRegisteredMode=function(e){return this._registry.isRegisteredMode(e)},e.prototype.getModeIdForLanguageName=function(e){return this._registry.getModeIdForLanguageNameLowercase(e)},e.prototype.getModeIdByFilepathOrFirstLine=function(e,t){var n=this._registry.getModeIdsFromFilepathOrFirstLine(e,t);return n.length>0?n[0]:null},e.prototype.getModeId=function(e){var t=this._registry.extractModeIds(e);return t.length>0?t[0]:null},e.prototype.getLanguageIdentifier=function(e){return this._registry.getLanguageIdentifier(e)},e.prototype.create=function(e){var t=this;return new d(this.onLanguagesMaybeChanged,function(){var n=t.getModeId(e);return t._createModeAndGetLanguageIdentifier(n)})},e.prototype.createByFilepathOrFirstLine=function(e,t){var n=this;return new d(this.onLanguagesMaybeChanged,function(){var o=n.getModeIdByFilepathOrFirstLine(e,t);return n._createModeAndGetLanguageIdentifier(o)})},e.prototype._createModeAndGetLanguageIdentifier=function(e){var t=this.getLanguageIdentifier(e||"plaintext")||a.NULL_LANGUAGE_IDENTIFIER;return this._getOrCreateMode(t.language),t},e.prototype.triggerMode=function(e){var t=this.getModeId(e);this._getOrCreateMode(t||"plaintext")},e.prototype._getOrCreateMode=function(e){if(!this._instantiatedModes.hasOwnProperty(e)){var t=this.getLanguageIdentifier(e)||a.NULL_LANGUAGE_IDENTIFIER;this._instantiatedModes[e]=new i.FrankensteinMode(t),this._onDidCreateMode.fire(this._instantiatedModes[e])}return this._instantiatedModes[e]},e}();t.ModeServiceImpl=g}); ;/*!node_modules/monaco-editor/esm/vs/editor/common/services/modelServiceImpl.js*/ define("node_modules/monaco-editor/esm/vs/editor/common/services/modelServiceImpl",function(e,t){"use strict";function o(e){return e.toString()}Object.defineProperty(t,"__esModule",{value:!0});var i=e("node_modules/tslib/tslib"),n=this&&this.__extends||function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=3>r?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var d=e.length-1;d>=0;d--)(n=e[d])&&(s=(3>r?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}},d=e("node_modules/monaco-editor/esm/vs/base/common/event"),a=e("node_modules/monaco-editor/esm/vs/base/common/lifecycle"),l=i.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/platform")),u=e("node_modules/monaco-editor/esm/vs/editor/common/config/editorOptions"),c=e("node_modules/monaco-editor/esm/vs/editor/common/model/textModel"),p=e("node_modules/monaco-editor/esm/vs/editor/common/modes/modesRegistry"),g=e("node_modules/monaco-editor/esm/vs/editor/common/services/resourceConfiguration"),m=e("node_modules/monaco-editor/esm/vs/platform/configuration/common/configuration"),_=function(){function e(e,t,o){this.model=e,this._languageSelection=null,this._languageSelectionListener=null,this._modelEventListeners=[],this._modelEventListeners.push(e.onWillDispose(function(){return t(e)})),this._modelEventListeners.push(e.onDidChangeLanguage(function(t){return o(e,t)}))}return e.prototype._disposeLanguageSelection=function(){this._languageSelectionListener&&(this._languageSelectionListener.dispose(),this._languageSelectionListener=null),this._languageSelection&&(this._languageSelection.dispose(),this._languageSelection=null)},e.prototype.dispose=function(){this._modelEventListeners=a.dispose(this._modelEventListeners),this._disposeLanguageSelection()},e.prototype.setLanguage=function(e){var t=this;this._disposeLanguageSelection(),this._languageSelection=e,this._languageSelectionListener=this._languageSelection.onDidChange(function(){return t.model.setMode(e.languageIdentifier)}),this.model.setMode(e.languageIdentifier)},e}(),f=l.isLinux||l.isMacintosh?1:2,h=function(e){function t(t,o){var i=e.call(this)||this;return i._onModelAdded=i._register(new d.Emitter),i.onModelAdded=i._onModelAdded.event,i._onModelRemoved=i._register(new d.Emitter),i.onModelRemoved=i._onModelRemoved.event,i._onModelModeChanged=i._register(new d.Emitter),i.onModelModeChanged=i._onModelModeChanged.event,i._configurationService=t,i._resourcePropertiesService=o,i._models={},i._modelCreationOptionsByLanguageAndResource=Object.create(null),i._configurationServiceSubscription=i._configurationService.onDidChangeConfiguration(function(){return i._updateModelOptions()}),i._updateModelOptions(),i}return n(t,e),t._readModelOptions=function(e,t){var o=u.EDITOR_MODEL_DEFAULTS.tabSize;if(e.editor&&"undefined"!=typeof e.editor.tabSize){var i=parseInt(e.editor.tabSize,10);isNaN(i)||(o=i),1>o&&(o=1)}var n=o;if(e.editor&&"undefined"!=typeof e.editor.indentSize&&"tabSize"!==e.editor.indentSize){var r=parseInt(e.editor.indentSize,10);isNaN(r)||(n=r),1>n&&(n=1)}var s=u.EDITOR_MODEL_DEFAULTS.insertSpaces;e.editor&&"undefined"!=typeof e.editor.insertSpaces&&(s="false"===e.editor.insertSpaces?!1:Boolean(e.editor.insertSpaces));var d=f,a=e.eol;"\r\n"===a?d=2:"\n"===a&&(d=1);var l=u.EDITOR_MODEL_DEFAULTS.trimAutoWhitespace;e.editor&&"undefined"!=typeof e.editor.trimAutoWhitespace&&(l="false"===e.editor.trimAutoWhitespace?!1:Boolean(e.editor.trimAutoWhitespace));var c=u.EDITOR_MODEL_DEFAULTS.detectIndentation;e.editor&&"undefined"!=typeof e.editor.detectIndentation&&(c="false"===e.editor.detectIndentation?!1:Boolean(e.editor.detectIndentation));var p=u.EDITOR_MODEL_DEFAULTS.largeFileOptimizations;return e.editor&&"undefined"!=typeof e.editor.largeFileOptimizations&&(p="false"===e.editor.largeFileOptimizations?!1:Boolean(e.editor.largeFileOptimizations)),{isForSimpleWidget:t,tabSize:o,indentSize:n,insertSpaces:s,detectIndentation:c,defaultEOL:d,trimAutoWhitespace:l,largeFileOptimizations:p}},t.prototype.getCreationOptions=function(e,o,i){var n=this._modelCreationOptionsByLanguageAndResource[e+o];if(!n){var r=this._configurationService.getValue("editor",{overrideIdentifier:e,resource:o}),s=this._resourcePropertiesService.getEOL(o,e);n=t._readModelOptions({editor:r,eol:s},i),this._modelCreationOptionsByLanguageAndResource[e+o]=n}return n},t.prototype._updateModelOptions=function(){var e=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);for(var o=Object.keys(this._models),i=0,n=o.length;n>i;i++){var r=o[i],s=this._models[r],d=s.model.getLanguageIdentifier().language,a=s.model.uri,l=e[d+a],u=this.getCreationOptions(d,a,s.model.isForSimpleWidget);t._setModelOptionsForModel(s.model,u,l)}},t._setModelOptionsForModel=function(e,t,o){o&&o.detectIndentation===t.detectIndentation&&o.insertSpaces===t.insertSpaces&&o.tabSize===t.tabSize&&o.indentSize===t.indentSize&&o.trimAutoWhitespace===t.trimAutoWhitespace||(t.detectIndentation?(e.detectIndentation(t.insertSpaces,t.tabSize),e.updateOptions({trimAutoWhitespace:t.trimAutoWhitespace})):e.updateOptions({insertSpaces:t.insertSpaces,tabSize:t.tabSize,indentSize:t.indentSize,trimAutoWhitespace:t.trimAutoWhitespace}))},t.prototype.dispose=function(){this._configurationServiceSubscription.dispose(),e.prototype.dispose.call(this)},t.prototype._createModelData=function(e,t,i,n){var r=this,s=this.getCreationOptions(t.language,i,n),d=new c.TextModel(e,s,t,i),a=o(d.uri);if(this._models[a])throw new Error("ModelService: Cannot add model because it already exists!");var l=new _(d,function(e){return r._onWillDispose(e)},function(e,t){return r._onDidChangeLanguage(e,t)});return this._models[a]=l,l},t.prototype.createModel=function(e,t,o,i){void 0===i&&(i=!1);var n;return t?(n=this._createModelData(e,t.languageIdentifier,o,i),this.setMode(n.model,t)):n=this._createModelData(e,p.PLAINTEXT_LANGUAGE_IDENTIFIER,o,i),this._onModelAdded.fire(n.model),n.model},t.prototype.setMode=function(e,t){if(t){var i=this._models[o(e.uri)];i&&i.setLanguage(t)}},t.prototype.getModels=function(){for(var e=[],t=Object.keys(this._models),o=0,i=t.length;i>o;o++){var n=t[o];e.push(this._models[n].model)}return e},t.prototype.getModel=function(e){var t=o(e),i=this._models[t];return i?i.model:null},t.prototype._onWillDispose=function(e){var t=o(e.uri),i=this._models[t];delete this._models[t],i.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageIdentifier().language+e.uri],this._onModelRemoved.fire(e)},t.prototype._onDidChangeLanguage=function(e,o){var i=o.oldLanguage,n=e.getLanguageIdentifier().language,r=this.getCreationOptions(i,e.uri,e.isForSimpleWidget),s=this.getCreationOptions(n,e.uri,e.isForSimpleWidget);t._setModelOptionsForModel(e,s,r),this._onModelModeChanged.fire({model:e,oldModeId:i})},t=r([s(0,m.IConfigurationService),s(1,g.ITextResourcePropertiesService)],t)}(a.Disposable);t.ModelServiceImpl=h}); ;/*!node_modules/monaco-editor/esm/vs/editor/browser/services/abstractCodeEditorService.js*/ define("node_modules/monaco-editor/esm/vs/editor/browser/services/abstractCodeEditorService",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=this&&this.__extends||function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),r=t("node_modules/monaco-editor/esm/vs/base/common/event"),i=t("node_modules/monaco-editor/esm/vs/base/common/lifecycle"),d=function(t){function e(){var e=t.call(this)||this;return e._onCodeEditorAdd=e._register(new r.Emitter),e.onCodeEditorAdd=e._onCodeEditorAdd.event,e._onCodeEditorRemove=e._register(new r.Emitter),e._onDiffEditorAdd=e._register(new r.Emitter),e._onDiffEditorRemove=e._register(new r.Emitter),e._codeEditors=Object.create(null),e._diffEditors=Object.create(null),e}return o(e,t),e.prototype.addCodeEditor=function(t){this._codeEditors[t.getId()]=t,this._onCodeEditorAdd.fire(t)},e.prototype.removeCodeEditor=function(t){delete this._codeEditors[t.getId()]&&this._onCodeEditorRemove.fire(t)},e.prototype.listCodeEditors=function(){var t=this;return Object.keys(this._codeEditors).map(function(e){return t._codeEditors[e]})},e.prototype.addDiffEditor=function(t){this._diffEditors[t.getId()]=t,this._onDiffEditorAdd.fire(t)},e.prototype.removeDiffEditor=function(t){delete this._diffEditors[t.getId()]&&this._onDiffEditorRemove.fire(t)},e.prototype.listDiffEditors=function(){var t=this;return Object.keys(this._diffEditors).map(function(e){return t._diffEditors[e]})},e.prototype.getFocusedCodeEditor=function(){for(var t=null,e=this.listCodeEditors(),o=0,r=e;oi?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(3>i?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__param||function(e,t){return function(o,r){t(o,r,e)}},s=o.__importStar(e("node_modules/monaco-editor/esm/vs/base/browser/dom")),a=e("node_modules/monaco-editor/esm/vs/base/common/lifecycle"),l=o.__importStar(e("node_modules/monaco-editor/esm/vs/base/common/strings")),c=e("node_modules/monaco-editor/esm/vs/base/common/uri"),h=e("node_modules/monaco-editor/esm/vs/editor/browser/services/abstractCodeEditorService"),u=e("node_modules/monaco-editor/esm/vs/editor/common/editorCommon"),d=e("node_modules/monaco-editor/esm/vs/editor/common/model"),p=e("node_modules/monaco-editor/esm/vs/platform/theme/common/themeService"),m=function(e){function t(t,o){void 0===o&&(o=s.createStyleSheet());var r=e.call(this)||this;return r._styleSheet=o,r._decorationOptionProviders=Object.create(null),r._themeService=t,r}return r(t,e),t.prototype.registerDecorationType=function(e,t,o){var r=this._decorationOptionProviders[e];if(!r){var n={styleSheet:this._styleSheet,key:e,parentTypeKey:o,options:t||Object.create(null)};r=o?new f(this._themeService,n):new C(this._themeService,n),this._decorationOptionProviders[e]=r}r.refCount++},t.prototype.removeDecorationType=function(e){var t=this._decorationOptionProviders[e];t&&(t.refCount--,t.refCount<=0&&(delete this._decorationOptionProviders[e],t.dispose(),this.listCodeEditors().forEach(function(t){return t.removeDecorations(e)})))},t.prototype.resolveDecorationOptions=function(e,t){var o=this._decorationOptionProviders[e];if(!o)throw new Error("Unknown decoration type key: "+e);return o.getOptions(this,t)},t=n([i(0,p.IThemeService)],t)}(h.AbstractCodeEditorService);t.CodeEditorServiceImpl=m;var f=function(){function e(e,t){this._parentTypeKey=t.parentTypeKey,this.refCount=0,this._beforeContentRules=new S(3,t,e),this._afterContentRules=new S(4,t,e)}return e.prototype.getOptions=function(e){var t=e.resolveDecorationOptions(this._parentTypeKey,!0);return this._beforeContentRules&&(t.beforeContentClassName=this._beforeContentRules.className),this._afterContentRules&&(t.afterContentClassName=this._afterContentRules.className),t},e.prototype.dispose=function(){this._beforeContentRules&&(this._beforeContentRules.dispose(),this._beforeContentRules=null),this._afterContentRules&&(this._afterContentRules.dispose(),this._afterContentRules=null)},e}(),C=function(){function e(e,t){var o=this;this.refCount=0,this._disposables=[];var r=function(r){var n=new S(r,t,e);return o._disposables.push(n),n.hasContent?n.className:void 0},n=function(r){var n=new S(r,t,e);return o._disposables.push(n),n.hasContent?{className:n.className,hasLetterSpacing:n.hasLetterSpacing}:null};this.className=r(0);var i=n(1);i&&(this.inlineClassName=i.className,this.inlineClassNameAffectsLetterSpacing=i.hasLetterSpacing),this.beforeContentClassName=r(3),this.afterContentClassName=r(4),this.glyphMarginClassName=r(2);var s=t.options;this.isWholeLine=Boolean(s.isWholeLine),this.stickiness=s.rangeBehavior;var a=s.light&&s.light.overviewRulerColor||s.overviewRulerColor,l=s.dark&&s.dark.overviewRulerColor||s.overviewRulerColor;("undefined"!=typeof a||"undefined"!=typeof l)&&(this.overviewRuler={color:a||l,darkColor:l||a,position:s.overviewRulerLane||d.OverviewRulerLane.Center})}return e.prototype.getOptions=function(e,t){return t?{inlineClassName:this.inlineClassName,beforeContentClassName:this.beforeContentClassName,afterContentClassName:this.afterContentClassName,className:this.className,glyphMarginClassName:this.glyphMarginClassName,isWholeLine:this.isWholeLine,overviewRuler:this.overviewRuler,stickiness:this.stickiness}:this},e.prototype.dispose=function(){this._disposables=a.dispose(this._disposables)},e}(),g={color:"color:{0} !important;",opacity:"opacity:{0};",backgroundColor:"background-color:{0};",outline:"outline:{0};",outlineColor:"outline-color:{0};",outlineStyle:"outline-style:{0};",outlineWidth:"outline-width:{0};",border:"border:{0};",borderColor:"border-color:{0};",borderRadius:"border-radius:{0};",borderSpacing:"border-spacing:{0};",borderStyle:"border-style:{0};",borderWidth:"border-width:{0};",fontStyle:"font-style:{0};",fontWeight:"font-weight:{0};",textDecoration:"text-decoration:{0};",cursor:"cursor:{0};",letterSpacing:"letter-spacing:{0};",gutterIconPath:"background:url('{0}') center center no-repeat;",gutterIconSize:"background-size:{0};",contentText:"content:'{0}';",contentIconPath:"content:url('{0}');",margin:"margin:{0};",width:"width:{0};",height:"height:{0};"},S=function(){function e(e,t,o){var r=this;this._theme=o.getTheme(),this._ruleType=e,this._providerArgs=t,this._usesThemeColors=!1,this._hasContent=!1,this._hasLetterSpacing=!1;var n=v.getClassName(this._providerArgs.key,e);this._providerArgs.parentTypeKey&&(n=n+" "+v.getClassName(this._providerArgs.parentTypeKey,e)),this._className=n,this._unThemedSelector=v.getSelector(this._providerArgs.key,this._providerArgs.parentTypeKey,e),this._buildCSS(),this._themeListener=this._usesThemeColors?o.onThemeChange(function(){r._theme=o.getTheme(),r._removeCSS(),r._buildCSS()}):null}return e.prototype.dispose=function(){this._hasContent&&(this._removeCSS(),this._hasContent=!1),this._themeListener&&(this._themeListener.dispose(),this._themeListener=null)},Object.defineProperty(e.prototype,"hasContent",{get:function(){return this._hasContent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasLetterSpacing",{get:function(){return this._hasLetterSpacing},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"className",{get:function(){return this._className},enumerable:!0,configurable:!0}),e.prototype._buildCSS=function(){var e,t,o,r=this._providerArgs.options;switch(this._ruleType){case 0:e=this.getCSSTextForModelDecorationClassName(r),t=this.getCSSTextForModelDecorationClassName(r.light),o=this.getCSSTextForModelDecorationClassName(r.dark);break;case 1:e=this.getCSSTextForModelDecorationInlineClassName(r),t=this.getCSSTextForModelDecorationInlineClassName(r.light),o=this.getCSSTextForModelDecorationInlineClassName(r.dark);break;case 2:e=this.getCSSTextForModelDecorationGlyphMarginClassName(r),t=this.getCSSTextForModelDecorationGlyphMarginClassName(r.light),o=this.getCSSTextForModelDecorationGlyphMarginClassName(r.dark);break;case 3:e=this.getCSSTextForModelDecorationContentClassName(r.before),t=this.getCSSTextForModelDecorationContentClassName(r.light&&r.light.before),o=this.getCSSTextForModelDecorationContentClassName(r.dark&&r.dark.before);break;case 4:e=this.getCSSTextForModelDecorationContentClassName(r.after),t=this.getCSSTextForModelDecorationContentClassName(r.light&&r.light.after),o=this.getCSSTextForModelDecorationContentClassName(r.dark&&r.dark.after);break;default:throw new Error("Unknown rule type: "+this._ruleType)}var n=this._providerArgs.styleSheet.sheet,i=!1;e.length>0&&(n.insertRule(this._unThemedSelector+" {"+e+"}",0),i=!0),t.length>0&&(n.insertRule(".vs"+this._unThemedSelector+" {"+t+"}",0),i=!0),o.length>0&&(n.insertRule(".vs-dark"+this._unThemedSelector+", .hc-black"+this._unThemedSelector+" {"+o+"}",0),i=!0),this._hasContent=i},e.prototype._removeCSS=function(){s.removeCSSRulesContainingSelector(this._unThemedSelector,this._providerArgs.styleSheet)},e.prototype.getCSSTextForModelDecorationClassName=function(e){if(!e)return"";var t=[];return this.collectCSSText(e,["backgroundColor"],t),this.collectCSSText(e,["outline","outlineColor","outlineStyle","outlineWidth"],t),this.collectBorderSettingsCSSText(e,t),t.join("")},e.prototype.getCSSTextForModelDecorationInlineClassName=function(e){if(!e)return"";var t=[];return this.collectCSSText(e,["fontStyle","fontWeight","textDecoration","cursor","color","opacity","letterSpacing"],t),e.letterSpacing&&(this._hasLetterSpacing=!0),t.join("")},e.prototype.getCSSTextForModelDecorationContentClassName=function(e){if(!e)return"";var t=[];if("undefined"!=typeof e){if(this.collectBorderSettingsCSSText(e,t),"undefined"!=typeof e.contentIconPath&&t.push(l.format(g.contentIconPath,c.URI.revive(e.contentIconPath).toString(!0).replace(/'/g,"%27"))),"string"==typeof e.contentText){var o=e.contentText.match(/^.*$/m)[0],r=o.replace(/['\\]/g,"\\$&");t.push(l.format(g.contentText,r))}this.collectCSSText(e,["fontStyle","fontWeight","textDecoration","color","opacity","backgroundColor","margin"],t),this.collectCSSText(e,["width","height"],t)&&t.push("display:inline-block;")}return t.join("")},e.prototype.getCSSTextForModelDecorationGlyphMarginClassName=function(e){if(!e)return"";var t=[];return"undefined"!=typeof e.gutterIconPath&&(t.push(l.format(g.gutterIconPath,c.URI.revive(e.gutterIconPath).toString(!0).replace(/'/g,"%27"))),"undefined"!=typeof e.gutterIconSize&&t.push(l.format(g.gutterIconSize,e.gutterIconSize))),t.join("")},e.prototype.collectBorderSettingsCSSText=function(e,t){return this.collectCSSText(e,["border","borderColor","borderRadius","borderSpacing","borderStyle","borderWidth"],t)?(t.push(l.format("box-sizing: border-box;")),!0):!1},e.prototype.collectCSSText=function(e,t,o){for(var r=o.length,n=0,i=t;nn;n++){var i=t[n],a=-1;if("string"==typeof i.fontStyle){a=0;for(var u=i.fontStyle.split(" "),c=0,f=u.length;f>c;c++){var h=u[c];switch(h){case"italic":a=1|a;break;case"bold":a=2|a;break;case"underline":a=4|a}}}var d=null;"string"==typeof i.foreground&&(d=i.foreground);var l=null;"string"==typeof i.background&&(l=i.background),e[r++]=new s(i.token||"",n,a,d,l)}return e}function n(t,e){t.sort(function(t,e){var r=i(t.token,e.token);return 0!==r?r:t.index-e.index});for(var r=0,n="000000",o="ffffff";t.length>=1&&""===t[0].token;){var a=t.shift();-1!==a.fontStyle&&(r=a.fontStyle),null!==a.foreground&&(n=a.foreground),null!==a.background&&(o=a.background)}for(var u=new f,s=0,c=e;sk;k++){var b=t[k];v.insert(b.token,b.fontStyle,u.getId(b.foreground),u.getId(b.background))}return new h(u,v)}function o(t){var e=t.match(d);if(!e)return 0;switch(e[1]){case"comment":return 1;case"string":return 2;case"regex":return 4;case"regexp":return 4}throw new Error("Unexpected match for standard token type!")}function i(t,e){return e>t?-1:t>e?1:0}function a(t){for(var e=[],r=1,n=t.length;n>r;r++){var o=t[r];e[r]=".mtk"+r+" { color: "+o+"; }"}return e.push(".mtki { font-style: italic; }"),e.push(".mtkb { font-weight: bold; }"),e.push(".mtku { text-decoration: underline; text-underline-position: under; }"),e.join("\n")}Object.defineProperty(e,"__esModule",{value:!0});var u=t("node_modules/monaco-editor/esm/vs/base/common/color"),s=function(){function t(t,e,r,n,o){this.token=t,this.index=e,this.fontStyle=r,this.foreground=n,this.background=o}return t}();e.ParsedTokenThemeRule=s,e.parseTokenTheme=r;var c=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/,f=function(){function t(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}return t.prototype.getId=function(t){if(null===t)return 0;var e=t.match(c);if(!e)throw new Error("Illegal value for token color: "+t);t=e[1].toUpperCase();var r=this._color2id.get(t);return r?r:(r=++this._lastColorId,this._color2id.set(t,r),this._id2color[r]=u.Color.fromHex("#"+t),r)},t.prototype.getColorMap=function(){return this._id2color.slice(0)},t}();e.ColorMap=f;var h=function(){function t(t,e){this._colorMap=t,this._root=e,this._cache=new Map}return t.createFromRawTokenTheme=function(t,e){return this.createFromParsedTokenTheme(r(t),e)},t.createFromParsedTokenTheme=function(t,e){return n(t,e)},t.prototype.getColorMap=function(){return this._colorMap.getColorMap()},t.prototype._match=function(t){return this._root.match(t)},t.prototype.match=function(t,e){var r=this._cache.get(e);if("undefined"==typeof r){var n=this._match(e),i=o(e);r=(n.metadata|i<<8)>>>0,this._cache.set(e,r)}return(r|t<<0)>>>0},t}();e.TokenTheme=h;var d=/\b(comment|string|regex|regexp)\b/;e.toStandardTokenType=o,e.strcmp=i;var l=function(){function t(t,e,r){this._fontStyle=t,this._foreground=e,this._background=r,this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}return t.prototype.clone=function(){return new t(this._fontStyle,this._foreground,this._background)},t.prototype.acceptOverwrite=function(t,e,r){-1!==t&&(this._fontStyle=t),0!==e&&(this._foreground=e),0!==r&&(this._background=r),this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0},t}();e.ThemeTrieElementRule=l;var g=function(){function t(t){this._mainRule=t,this._children=new Map}return t.prototype.match=function(t){if(""===t)return this._mainRule;var e,r,n=t.indexOf(".");-1===n?(e=t,r=""):(e=t.substring(0,n),r=t.substring(n+1));var o=this._children.get(e);return"undefined"!=typeof o?o.match(r):this._mainRule},t.prototype.insert=function(e,r,n,o){if(""===e)return void this._mainRule.acceptOverwrite(r,n,o);var i,a,u=e.indexOf(".");-1===u?(i=e,a=""):(i=e.substring(0,u),a=e.substring(u+1));var s=this._children.get(i);"undefined"==typeof s&&(s=new t(this._mainRule.clone()),this._children.set(i,s)),s.insert(a,r,n,o)},t}();e.ThemeTrieElement=g,e.generateTokensCSSForColorMap=a}); ;/*!node_modules/monaco-editor/esm/vs/editor/standalone/common/themes.js*/ define("node_modules/monaco-editor/esm/vs/editor/standalone/common/themes",function(o,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,n,t,d=o("node_modules/monaco-editor/esm/vs/editor/common/view/editorColorRegistry"),g=o("node_modules/monaco-editor/esm/vs/platform/theme/common/colorRegistry");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:"09885A"},{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:"09885A"},{token:"attribute.value.unit",foreground:"09885A"},{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:"FF00FF"}],colors:(r={},r[g.editorBackground]="#FFFFFE",r[g.editorForeground]="#000000",r[g.editorInactiveSelection]="#E5EBF1",r[d.editorIndentGuides]="#D3D3D3",r[d.editorActiveIndentGuides]="#939393",r[g.editorSelectionHighlight]="#ADD6FF4D",r)},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={},n[g.editorBackground]="#1E1E1E",n[g.editorForeground]="#D4D4D4",n[g.editorInactiveSelection]="#3A3D41",n[d.editorIndentGuides]="#404040",n[d.editorActiveIndentGuides]="#707070",n[g.editorSelectionHighlight]="#ADD6FF26",n)},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:(t={},t[g.editorBackground]="#000000",t[g.editorForeground]="#FFFFFF",t[d.editorIndentGuides]="#FFFFFF",t[d.editorActiveIndentGuides]="#FFFFFF",t)}}); ;/*!node_modules/monaco-editor/esm/vs/editor/standalone/browser/standaloneThemeServiceImpl.js*/ define("node_modules/monaco-editor/esm/vs/editor/standalone/browser/standaloneThemeServiceImpl",function(e,t){"use strict";function o(e){return e===p||e===_||e===T}function n(e){switch(e){case p:return c.vs;case _:return c.vs_dark;case T:return c.hc_black}}function r(e){var t=n(e);return new g(e,t)}Object.defineProperty(t,"__esModule",{value:!0});var s=e("node_modules/tslib/tslib"),i=s.__importStar(e("node_modules/monaco-editor/esm/vs/base/browser/dom")),a=e("node_modules/monaco-editor/esm/vs/base/common/color"),h=e("node_modules/monaco-editor/esm/vs/base/common/event"),m=e("node_modules/monaco-editor/esm/vs/editor/common/modes"),l=e("node_modules/monaco-editor/esm/vs/editor/common/modes/supports/tokenization"),c=e("node_modules/monaco-editor/esm/vs/editor/standalone/common/themes"),u=e("node_modules/monaco-editor/esm/vs/platform/registry/common/platform"),d=e("node_modules/monaco-editor/esm/vs/platform/theme/common/colorRegistry"),f=e("node_modules/monaco-editor/esm/vs/platform/theme/common/themeService"),p="vs",_="vs-dark",T="hc-black",v=u.Registry.as(d.Extensions.ColorContribution),b=u.Registry.as(f.Extensions.ThemingContribution),g=function(){function e(e,t){this.themeData=t;var o=t.base;e.length>0?(this.id=o+" "+e,this.themeName=e):(this.id=o,this.themeName=o),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}return Object.defineProperty(e.prototype,"base",{get:function(){return this.themeData.base},enumerable:!0,configurable:!0}),e.prototype.notifyBaseUpdated=function(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)},e.prototype.getColors=function(){if(!this.colors){var e=Object.create(null);for(var t in this.themeData.colors)e[t]=a.Color.fromHex(this.themeData.colors[t]);if(this.themeData.inherit){var o=n(this.themeData.base);for(var t in o.colors)e[t]||(e[t]=a.Color.fromHex(o.colors[t]))}this.colors=e}return this.colors},e.prototype.getColor=function(e,t){var o=this.getColors()[e];return o?o:t!==!1?this.getDefault(e):void 0},e.prototype.getDefault=function(e){var t=this.defaultColors[e];return t?t:(t=v.resolveDefaultColor(e,this),this.defaultColors[e]=t,t)},e.prototype.defines=function(e){return Object.prototype.hasOwnProperty.call(this.getColors(),e)},Object.defineProperty(e.prototype,"type",{get:function(){switch(this.base){case p:return"light";case T:return"hc";default:return"dark"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tokenTheme",{get:function(){if(!this._tokenTheme){var e=[],t=[];if(this.themeData.inherit){var o=n(this.themeData.base);e=o.rules,o.encodedTokensColors&&(t=o.encodedTokensColors)}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=l.TokenTheme.createFromRawTokenTheme(e,t)}return this._tokenTheme},enumerable:!0,configurable:!0}),e}(),y=function(){function e(){this.environment=Object.create(null),this._onThemeChange=new h.Emitter,this._onIconThemeChange=new h.Emitter,this._knownThemes=new Map,this._knownThemes.set(p,r(p)),this._knownThemes.set(_,r(_)),this._knownThemes.set(T,r(T)),this._styleElement=i.createStyleSheet(),this._styleElement.className="monaco-colors",this.setTheme(p)}return Object.defineProperty(e.prototype,"onThemeChange",{get:function(){return this._onThemeChange.event},enumerable:!0,configurable:!0}),e.prototype.defineTheme=function(e,t){if(!/^[a-z0-9\-]+$/i.test(e))throw new Error("Illegal theme name!");if(!o(t.base)&&!o(e))throw new Error("Illegal theme base!");this._knownThemes.set(e,new g(e,t)),o(e)&&this._knownThemes.forEach(function(t){t.base===e&&t.notifyBaseUpdated()}),this._theme&&this._theme.themeName===e&&this.setTheme(e)},e.prototype.getTheme=function(){return this._theme},e.prototype.setTheme=function(e){var t,o=this;if(t=this._knownThemes.get(this._knownThemes.has(e)?e:p),this._theme===t)return t.id;this._theme=t;var n=[],r={},s={addRule:function(e){r[e]||(n.push(e),r[e]=!0)}};b.getThemingParticipants().forEach(function(e){return e(t,s,o.environment)});var i=t.tokenTheme,a=i.getColorMap();return s.addRule(l.generateTokensCSSForColorMap(a)),this._styleElement.innerHTML=n.join("\n"),m.TokenizationRegistry.setColorMap(a),this._onThemeChange.fire(t),t.id},e.prototype.getIconTheme=function(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}},e}();t.StandaloneThemeServiceImpl=y}); ;/*!node_modules/monaco-editor/esm/vs/platform/contextkey/browser/contextKeyService.js*/ define("node_modules/monaco-editor/esm/vs/platform/contextkey/browser/contextKeyService",function(e,t){"use strict";function n(e){for(;e;){if(e.hasAttribute(d)){var t=e.getAttribute(d);return t?parseInt(t,10):0/0}e=e.parentElement}return 0}Object.defineProperty(t,"__esModule",{value:!0});var o=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),i=this&&this.__decorate||function(e,t,n,o){var i,r=arguments.length,s=3>r?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(s=(3>r?i(s):r>3?i(t,n,s):i(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__param||function(e,t){return function(n,o){t(n,o,e)}},s=e("node_modules/monaco-editor/esm/vs/base/common/event"),u=e("node_modules/monaco-editor/esm/vs/base/common/lifecycle"),a=e("node_modules/monaco-editor/esm/vs/base/common/map"),c=e("node_modules/monaco-editor/esm/vs/platform/commands/common/commands"),p=e("node_modules/monaco-editor/esm/vs/platform/configuration/common/configuration"),h=e("node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey"),f=e("node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybindingResolver"),d="data-keybinding-context",l=function(){function e(e,t){this._id=e,this._parent=t,this._value=Object.create(null),this._value._contextId=e}return e.prototype.setValue=function(e,t){return this._value[e]!==t?(this._value[e]=t,!0):!1},e.prototype.removeValue=function(e){return e in this._value?(delete this._value[e],!0):!1},e.prototype.getValue=function(e){var t=this._value[e];return"undefined"==typeof t&&this._parent?this._parent.getValue(e):t},e}();t.Context=l;var _=function(e){function t(){return e.call(this,-1,null)||this}return o(t,e),t.prototype.setValue=function(){return!1},t.prototype.removeValue=function(){return!1},t.prototype.getValue=function(){return void 0},t.INSTANCE=new t,t}(l),y=function(e){function t(t,n,o){var i=e.call(this,t,null)||this;return i._configurationService=n,i._values=new Map,i._listener=i._configurationService.onDidChangeConfiguration(function(e){if(6===e.source){var t=a.keys(i._values);i._values.clear(),o.fire(new m(t))}else{for(var n=[],r=0,s=e.affectedKeys;r1){var s=n.shift();s&&(o.focusItemByElement(s.container),n.push(s)),o.mnemonics.set(t,n)}}})),y.isLinux&&o._register(m.addDisposableListener(i,m.EventType.KEY_DOWN,function(e){var t=new p.StandardKeyboardEvent(e);t.equals(14)||t.equals(11)?(o.focusedItem=o.items.length-1,o.focusNext(),m.EventHelper.stop(e,!0)):(t.equals(13)||t.equals(12))&&(o.focusedItem=0,o.focusPrevious(),m.EventHelper.stop(e,!0))})),o._register(m.addDisposableListener(o.domNode,m.EventType.MOUSE_OUT,function(e){var t=e.relatedTarget;m.isAncestor(t,o.domNode)||(o.focusedItem=void 0,o.scrollTopHold=o.menuElement.scrollTop,o.updateFocus(),e.stopPropagation())})),o._register(m.addDisposableListener(o.domNode,m.EventType.MOUSE_UP,function(e){m.EventHelper.stop(e,!0)})),o._register(m.addDisposableListener(o.actionsList,m.EventType.MOUSE_OVER,function(e){var t=e.target;if(t&&m.isAncestor(t,o.actionsList)&&t!==o.actionsList){for(;t.parentElement!==o.actionsList&&null!==t.parentElement;)t=t.parentElement;if(m.hasClass(t,"action-item")){var n=o.focusedItem;o.scrollTopHold=o.menuElement.scrollTop,o.setFocusedItem(t),n!==o.focusedItem&&o.updateFocus()}}}));var a={parent:o};o.mnemonics=new Map,o.push(n,{icon:!0,label:!0,isMenu:!0}),o.scrollableElement=o._register(new b.DomScrollableElement(i,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));var r=o.scrollableElement.getDomNode();return r.style.position=null,i.style.maxHeight=Math.max(10,window.innerHeight-t.getBoundingClientRect().top-30)+"px",o.scrollableElement.onScroll(function(){o._onScroll.fire()},o,o.menuDisposables),o._register(m.addDisposableListener(o.menuElement,m.EventType.SCROLL,function(){void 0!==o.scrollTopHold&&(o.menuElement.scrollTop=o.scrollTopHold,o.scrollTopHold=void 0),o.scrollableElement.scanDomNode()})),t.appendChild(o.scrollableElement.getDomNode()),o.scrollableElement.scanDomNode(),o.items.filter(function(e){return!(e instanceof _)}).forEach(function(e,t,n){e.updatePositionInSet(t+1,n.length)}),o}return a(t,e),t.prototype.style=function(e){var t=this.getContainer(),n=e.foregroundColor?""+e.foregroundColor:null,s=e.backgroundColor?""+e.backgroundColor:null,o=e.borderColor?"2px solid "+e.borderColor:null,i=e.shadowColor?"0 2px 4px "+e.shadowColor:null;t.style.border=o,this.domNode.style.color=n,this.domNode.style.backgroundColor=s,t.style.boxShadow=i,this.items&&this.items.forEach(function(t){(t instanceof g||t instanceof _)&&t.style(e)})},t.prototype.getContainer=function(){return this.scrollableElement.getDomNode()},Object.defineProperty(t.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scrollOffset",{get:function(){return this.menuElement.scrollTop},enumerable:!0,configurable:!0}),t.prototype.focusItemByElement=function(e){var t=this.focusedItem;this.setFocusedItem(e),t!==this.focusedItem&&this.updateFocus()},t.prototype.setFocusedItem=function(e){for(var t=0;t